/*! For license information please see component---src-templates-secondary-page-js-bb0dc3145d0b6c9f0d93.js.LICENSE.txt */ (self.webpackChunkLaTagliata=self.webpackChunkLaTagliata||[]).push([[581],{5900:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return d?e:e.capture}function h(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var v=function(e){function t(){var e;l(this,t);for(var n=arguments.length,i=Array(n),r=0;rt&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),n=e.style,r=e.children,a=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,s(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return i.default.createElement(this.props.tagName,o({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},a),r)}}]),t}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:r.default.string,className:r.default.string,style:r.default.object,children:r.default.node,allowMouseEvents:r.default.bool,onSwipeUp:r.default.func,onSwipeDown:r.default.func,onSwipeLeft:r.default.func,onSwipeRight:r.default.func,onSwipeStart:r.default.func,onSwipeMove:r.default.func,onSwipeEnd:r.default.func,innerRef:r.default.func,tolerance:r.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v},void 0===(a="function"==typeof i?i.apply(t,r):i)||(e.exports=a)},3304:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){var i=0===e?e:e+t;return"translate3d"+("("+("horizontal"===n?[i,0,0]:[0,i,0]).join(",")+")")}},9391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var i,r=n(7294),a=(i=n(3304))&&i.__esModule?i:{default:i},o=n(906);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;tc))return s<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?n.itemListStyle=(0,o.setPosition)(-(c+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):n.itemListStyle=(0,o.setPosition)(100*-(c+2),e.axis):s>c&&(n.itemListStyle=(0,o.setPosition)(0,e.axis)),n;var u=(0,o.getPosition)(i,e),p=(0,a.default)(u,"%",e.axis),d=e.transitionTime+"ms";return n.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},t.swiping||(n.itemListStyle=l(l({},n.itemListStyle),{},{WebkitTransitionDuration:d,MozTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d})),n};t.slideSwipeAnimationHandler=function(e,t,n,i){var a={},s="horizontal"===t.axis,l=r.Children.count(t.children),c=(0,o.getPosition)(n.selectedItem,t),u=t.infiniteLoop?(0,o.getPosition)(l-1,t)-100:(0,o.getPosition)(l-1,t),p=s?e.x:e.y,d=p;0===c&&p>0&&(d=0),c===u&&p<0&&(d=0);var m=c+100/(n.itemSize/d),f=Math.abs(p)>t.swipeScrollTolerance;return t.infiniteLoop&&f&&(0===n.selectedItem&&m>-100?m-=100*l:n.selectedItem===l-1&&m<100*-l&&(m+=100*l)),(!t.preventMovementUntilSwipeScrollTolerance||f||n.swipeMovementStarted)&&(n.swipeMovementStarted||i({swipeMovementStarted:!0}),a.itemListStyle=(0,o.setPosition)(m,t.axis)),f&&!n.cancelClick&&i({cancelClick:!0}),a};t.slideStopSwipingHandler=function(e,t){var n=(0,o.getPosition)(t.selectedItem,e);return{itemListStyle:(0,o.setPosition)(n,e.axis)}};t.fadeAnimationHandler=function(e,t){var n=e.transitionTime+"ms",i="ease-in-out",r={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:i,msTransitionTimingFunction:i,MozTransitionTimingFunction:i,WebkitTransitionTimingFunction:i,OTransitionTimingFunction:i};return t.swiping||(r=l(l({},r),{},{WebkitTransitionDuration:n,MozTransitionDuration:n,OTransitionDuration:n,transitionDuration:n,msTransitionDuration:n})),{slideStyle:r,selectedStyle:l(l({},r),{},{opacity:1,position:"relative"}),prevStyle:l({},r)}}},3197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(7294)),r=p(n(9881)),a=p(n(4698)),o=p(n(3343)),s=p(n(6962)),l=p(n(729)),c=n(906),u=n(9391);function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function m(e){return m="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},m(e)}function f(){return f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"==typeof e?e:1))})),E(b(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"==typeof e?e:1))})),E(b(t),"moveTo",(function(e){if("number"==typeof e){var n=i.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?n:0),e>n&&(e=t.props.infiniteLoop?0:n),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),E(b(t),"onClickNext",(function(){t.increment(1)})),E(b(t),"onClickPrev",(function(){t.decrement(1)})),E(b(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),E(b(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),E(b(t),"changeItem",(function(e){return function(n){(0,c.isKeyboardEvent)(n)&&"Enter"!==n.key||t.moveTo(e)}})),E(b(t),"selectItem",(function(e){t.setState(v({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,i.Children.toArray(t.props.children)[e.selectedItem])})),E(b(t),"getInitialImage",(function(){var e=t.props.selectedItem,n=t.itemsRef&&t.itemsRef[e];return(n&&n.getElementsByTagName("img")||[])[0]})),E(b(t),"getVariableItemHeight",(function(e){var n=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&n&&n.children.length){var i=n.children[0].getElementsByTagName("img")||[];if(i.length>0){var r=i[0];if(!r.complete){r.addEventListener("load",(function e(){t.forceUpdate(),r.removeEventListener("load",e)}))}}var a=(i[0]||n.children[0]).clientHeight;return a>0?a:null}return null}));var n={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"==typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&u.fadeAnimationHandler||u.slideAnimationHandler,t.state=v(v({},n),t.animationHandler(e,n)),t}return t=m,(n=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(v({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&i.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?i.Children.map(this.props.children,(function(n,r){var o=r===t.state.selectedItem,s=r===t.state.previousItem,l=o&&t.state.selectedStyle||s&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(l=v(v({},l),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(l=v(v({},l),{},{pointerEvents:"none"}));var c={ref:function(e){return t.setItemsRef(e,r)},key:"itemKey"+r+(e?"clone":""),className:a.default.ITEM(!0,r===t.state.selectedItem,r===t.state.previousItem),onClick:t.handleClickItem.bind(t,r,n),style:l};return i.default.createElement("li",c,t.props.renderItem(n,{isSelected:r===t.state.selectedItem,isPrevious:r===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,n=t.showIndicators,r=t.labels,a=t.renderIndicator,o=t.children;return n?i.default.createElement("ul",{className:"control-dots"},i.Children.map(o,(function(t,n){return a&&a(e.changeItem(n),n===e.state.selectedItem,n,r.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?i.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,i.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==i.Children.count(this.props.children)?i.default.createElement(o.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===i.Children.count(this.props.children))return null;var t=this.props.swipeable&&i.Children.count(this.props.children)>1,n="horizontal"===this.props.axis,o=this.props.showArrows&&i.Children.count(this.props.children)>1,s=o&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,l=o&&(this.state.selectedItem0&&(n=0),a===100*-Math.max(r-t.state.visibleItems,0)/t.state.visibleItems&&n<0&&(n=0);var s=a+100/(t.itemsWrapperRef.clientWidth/n);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,o.default)(s,"%",t.props.axis)})),!0})),g(v(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"==typeof e?e:1))})),g(v(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"==typeof e?e:1))})),g(v(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=p,(n=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e1,a=this.state.showArrows&&this.state.firstItem>0,l=this.state.showArrows&&this.state.firstItem{let{Title:t,Text:n,TopPadding:a,BottomPadding:o,Center:s}=e;return i.createElement(i.Fragment,null,i.createElement("div",{className:"side-image-container "+(a?" padding-top ":"")+" "+(o?" padding-bottom ":"")},i.createElement("div",{className:"side-image-section"},i.createElement("div",{className:"alignment"},t?i.createElement("h1",{className:"title"},t):"",i.createElement("b",null)),i.createElement("div",{className:"uk-child-width-expand@s uk-grid-small uk-margin-remove ","data-uk-grid":!0},i.createElement("div",{className:"uk-width-1-1@m"},s?i.createElement("div",{className:"side-image-section__description",style:{textAlign:"center"}},i.createElement(r.Z,{children:n})):i.createElement("div",{className:"side-image-section__description"},i.createElement(r.Z,{children:n})))))))}},9876:function(e,t,n){"use strict";var i=n(7294),r=n(8769),a=n(1419),o=n(2341);t.Z=e=>{let{children:t,pageData:n,SEOTitle:s,SEODescription:l,footerDisclaimer:c,darkThemeNav:u}=e;const{0:p,1:d}=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=sessionStorage.getItem("popup"),t=sessionStorage.getItem("secondaryPopup"),n=(new Date).getTime(),i=new Date("2025-08-31").getTime(),r=setTimeout((()=>{(!e||n-e>864e5)&&(!t||n-t>864e5)&&nclearTimeout(r)}),[]);return i.createElement(i.Fragment,null,i.createElement(r.Z,{title:s,description:l}),i.createElement(o.Z,null),p&&i.createElement("div",{className:"popup-container","uk-scrollspy":"cls: uk-animation-scale-up; target: .popup;"},i.createElement("div",{className:"popup"},i.createElement("div",{className:"popup-content"},i.createElement("p",null,"All Mondays and Fridays of August, we will be closed (ONLY) for LUNCH!"),i.createElement("button",{onClick:()=>{d(!1),sessionStorage.setItem("secondaryPopup",(new Date).getTime())}},"Close")))),i.createElement("main",null,t),i.createElement(a.Z,null))}},1280:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var i=n(7294),r=(n(5444),n(195),n(7692),n(4405));var a=n(8243),o=n(9876),s=n(6600),l=n(1678),c=n(8397),u=n(6125),p=n(5565),d=n(3201);var m=e=>{let{images:t}=e;const{0:n,1:r}=(0,i.useState)(!1),{0:a,1:o}=(0,i.useState)(0);return i.createElement(i.Fragment,null,i.createElement("div",{className:"images-container padding-top padding-bottom lateral-padding"},i.createElement("div",{className:"img-content uk-child-width-1-2@s uk-child-width-1-3@m uk-child-width-1-4@l uk-text-center","uk-grid":"masonry: true"},t&&t.map(((e,t)=>i.createElement("div",{key:t,className:"image-overlay-container",onClick:()=>(e=>{r(!0),o(e)})(t)},i.createElement(u.G,{image:e.gatsbyImageData,alt:"",className:"image-hovering"}),i.createElement("div",{className:"overlay"},i.createElement("span",{className:"icon-search"},i.createElement(d.LT3,null)))))))),n&&i.createElement("div",{className:"show-modal modal-overlay",onClick:e=>{e.target.classList.contains("modal-overlay")&&r(!1)}},i.createElement("div",{className:"modal-content"},i.createElement("div",{className:"modal-header"},i.createElement("span",{className:"close",onClick:()=>r(!1)},"×")),i.createElement("div",{className:"modal-body"},i.createElement(p.lr,{selectedItem:a,onChange:e=>o(e),showArrows:!0,showStatus:!1,showIndicators:!1,infiniteLoop:!0},t&&t.map(((e,t)=>i.createElement("div",{key:t,className:"uk-panel"},i.createElement(u.G,{image:e.gatsbyImageData,alt:"",className:"gallery-img"})))))))))},f=n(8681),h=n(3529),v=n(1694),y=n(122),g=n(1852),S=n(6668);var b=e=>{let{content:t}=e;return i.createElement(i.Fragment,null,i.createElement("div",{className:"cards-main uk-child-width-expand@s uk-text-center","data-uk-grid":!0},t.map(((e,t)=>i.createElement("div",{className:"card-content uk-card uk-card-default uk-card-body"},i.createElement("h2",{className:"card-title"},e.Title),e.Description?i.createElement("div",{className:"card-description"},i.createElement(h.Z,null,e.Description)):"",e.HTML?i.createElement("div",{style:{width:"100%"}},i.createElement(v.Z,{htmlContent:e.HTML,fullWidth:!0})):"",null!==e.Button?i.createElement("div",{className:1==e.Socials?"icons-box":"buttons-box"},e.Button.map(((t,n)=>i.createElement("div",{className:"cta-container",key:n},i.createElement("a",{href:t.CTAUrl,className:1==e.Socials?"icons":"btn","aria-label":"socials",target:"_blank"},"Facebook"==t.CTALabel?i.createElement(y.tBk,null):"Instagram"==t.CTALabel?i.createElement(g.Vs6,null):"Twitter"==t.CTALabel?i.createElement(y.LCd,null):"Linkedin"==t.CTALabel?i.createElement(S.gG6,null):t.CTALabel))))):"")))))};n(8027);var w=e=>{let{images:t}=e;const{0:n,1:r}=(0,i.useState)(!1),{0:a,1:o}=(0,i.useState)(0);return i.createElement(i.Fragment,null,i.createElement("div",{className:"images-container padding-top padding-bottom lateral-padding"},i.createElement("div",{className:"img-content uk-child-width-1-2@s uk-child-width-1-3@m uk-child-width-1-4@l uk-text-center","uk-grid":"masonry: true"},t&&t.map(((e,t)=>i.createElement("div",{key:t,className:"image-overlay-container",onClick:()=>(e=>{r(!0),o(e)})(t)},i.createElement("img",{src:e,className:"image-hovering",alt:""}),i.createElement("div",{className:"overlay"},i.createElement("span",{className:"icon-search"},i.createElement(d.LT3,null)))))))),n&&i.createElement("div",{className:"show-modal modal-overlay",onClick:e=>{e.target.classList.contains("modal-overlay")&&r(!1)}},i.createElement("div",{className:"modal-content"},i.createElement("div",{className:"modal-header"},i.createElement("span",{className:"close",onClick:()=>r(!1)},"×")),i.createElement("div",{className:"modal-body"},i.createElement(p.lr,{selectedItem:a,onChange:e=>o(e),showArrows:!0,showStatus:!1,showIndicators:!1,infiniteLoop:!0,showThumbs:!1},t&&t.map(((e,t)=>i.createElement("div",{key:t,className:"uk-panel"},i.createElement("img",{src:e,className:"gallery-img",alt:""})))))))))};var E=()=>{const{0:e,1:t}=(0,i.useState)("Piatti"),{0:n,1:r}=(0,i.useState)("Bar"),a={Piatti:["/gallery/Piatti/Piatti1.jpg","/gallery/Piatti/Piatti2.jpg","/gallery/Piatti/Piatti3.jpg","/gallery/Piatti/Piatti4.jpg","/gallery/Piatti/Piatti5.jpg","/gallery/Piatti/Piatti6.jpg","/gallery/Piatti/Piatti7.jpg","/gallery/Piatti/Piatti8.jpg","/gallery/Piatti/Piatti9.jpg","/gallery/Piatti/Piatti10.jpg"],Drinks:["/gallery/Drinks/Drinks1.jpg","/gallery/Drinks/Drinks2.jpg","/gallery/Drinks/Drinks3.jpg","/gallery/Drinks/Drinks4.jpg","/gallery/Drinks/Drinks5.jpg","/gallery/Drinks/Drinks6.jpg","/gallery/Drinks/Drinks7.jpg","/gallery/Drinks/Drinks8.jpg","/gallery/Drinks/Drinks9.jpg"],Localle:{Bar:["/gallery/Localle/Bar/Bar1.jpg","/gallery/Localle/Bar/Bar2.jpg","/gallery/Localle/Bar/Bar3.jpg","/gallery/Localle/Bar/Bar4.jpg","/gallery/Localle/Bar/Bar5.jpg","/gallery/Localle/Bar/Bar6.jpg","/gallery/Localle/Bar/Bar7.jpg"],Biblioteca:["/gallery/Localle/Biblioteca/Biblioteca1.jpg","/gallery/Localle/Biblioteca/Biblioteca2.jpg","/gallery/Localle/Biblioteca/Biblioteca3.jpg","/gallery/Localle/Biblioteca/Biblioteca4.jpg","/gallery/Localle/Biblioteca/Biblioteca5.jpg"],Cantinetta:["/gallery/Localle/Cantinetta/Cantinetta1.jpg","/gallery/Localle/Cantinetta/Cantinetta2.jpg","/gallery/Localle/Cantinetta/Cantinetta3.jpg","/gallery/Localle/Cantinetta/Cantinetta4.jpg","/gallery/Localle/Cantinetta/Cantinetta5.jpg"],Dispensa:["/gallery/Localle/Dispensa/Dispensa1.jpg","/gallery/Localle/Dispensa/Dispensa2.jpg","/gallery/Localle/Dispensa/Dispensa3.jpg","/gallery/Localle/Dispensa/Dispensa4.jpg"],SallaDellaMusica:["/gallery/Localle/SallaDellaMusica/SDM1.jpg","/gallery/Localle/SallaDellaMusica/SDM2.jpg","/gallery/Localle/SallaDellaMusica/SDM3.jpg","/gallery/Localle/SallaDellaMusica/SDM4.jpg","/gallery/Localle/SallaDellaMusica/SDM5.jpg","/gallery/Localle/SallaDellaMusica/SDM6.jpg"],Studio:["/gallery/Localle/Studio/Studio1.jpg","/gallery/Localle/Studio/Studio2.jpg","/gallery/Localle/Studio/Studio3.jpg","/gallery/Localle/Studio/Studio4.jpg","/gallery/Localle/Studio/Studio5.jpg"]}},o="Localle"===e?a.Localle[n]||[]:a[e]||[];return i.createElement(i.Fragment,null,i.createElement("div",{className:"page-content"},i.createElement("div",{className:"menu-list"},i.createElement("ul",{className:"categories-list"},["Piatti","Drinks","Localle"].map((n=>i.createElement("li",{key:n,className:"category"},i.createElement("a",{href:"#",className:e===n?"category-link-selected":"category-link",onClick:e=>((e,n)=>{n.preventDefault(),t(e),r("Localle"===e?"Bar":null)})(n,e)},n)))))),"Localle"===e&&i.createElement("div",{className:"menu-list"},i.createElement("div",{className:"categories-list"},["Bar","Biblioteca","Cantinetta","Dispensa","SallaDellaMusica","Studio"].map((e=>i.createElement("li",{key:e,className:"category"},i.createElement("a",{href:"#",className:n===e?"category-link-selected":"category-link",onClick:t=>((e,t)=>{t.preventDefault(),r(e)})(e,t)},"SallaDellaMusica"===e?"Salla Della Musica":e))))))),i.createElement(w,{images:o}))};var P=e=>{let{pageContext:t,data:n}=e;return i.createElement(o.Z,{SEOTitle:n.strapiSecondaryPages.SEOTitle||n.strapiSecondaryPages.Title,SEODescription:n.strapiSecondaryPages.SEODescription},n.strapiSecondaryPages.PageContent.map(((e,o)=>{switch(e.strapi_component){case"page-components.header":return i.createElement(s.Z,{key:o,Title:e.Title,Subtitle:e.Subtitle,FirstCTATitle:e.FirstCTATitle,FirstCTAURL:e.FirstCTAUrl,SecondCTATitle:e.SecondCTATitle,SecondCTAURL:e.SecondCTAUrl,ThirdCTATitle:e.ThirdCTATitle,ThirdCTAURL:e.ThirdCTAUrl,Background:(0,r.Z)(e.Background.localFile___NODE,t.images),Icon:null!==e.Icon?(0,r.Z)(e.Icon.localFile___NODE,t.images):null,HeaderHeight:e.HeaderHeight,FooterInformation:null!==e.FooterInformation?e.FooterInformation:null});case"page-components.paragraph":return i.createElement(l.Z,{key:o,Title:e.Title?e.Title:"",Text:e.Text,TopPadding:null===e.TopPadding||!0===e.TopPadding,BottomPadding:null===e.BottomPadding||!0===e.BottomPadding});case"page-components.text-component":return i.createElement(i.Fragment,null,i.createElement(f.Z,{Title:e.Title,Description:e.Description,Button:e.Button,BackgroundColor:e.BackgroundColor}));case"page-components.text-image-component":return i.createElement(i.Fragment,null,i.createElement(c.Z,{Image:null!==e.Image?(0,r.Z)(e.Image.localFile___NODE,t.images):null,ImagePosition:e.ImagePosition,Title:e.Title,Description:e.Description,Button:e.Button}));case"page-components.images":var u=[];return e.Images.map(((e,n)=>{u.push((0,r.Z)(e.Image.localFile___NODE,t.images))})),i.createElement(i.Fragment,null,"gallery"===n.strapiSecondaryPages.Slug?i.createElement(E,null):i.createElement(m,{key:o,images:u}));case"page-components.contact-component":return i.createElement(a.Z,{Title:e.Title,Address:e.Address,HTML:e.HTML});case"page-components.info-cards":return i.createElement(b,{content:e.SecondaryCards});default:return""}})))}}}]); //# sourceMappingURL=component---src-templates-secondary-page-js-bb0dc3145d0b6c9f0d93.js.map