1(window.webpackJsonp=window.webpackJsonp||[]).push([[121,90,91],{653:function(t,e,r){"use strict";r.d(e,"a",function(){return n});r(174);function n(t){var e=t&&t.file&&t.file.url||t&&t.url||"";return e?e.startsWith("//")?"https:".concat(e):e:""}},658:function(t,e,r){"use strict";r.r(e);var n={methods:{linkTarget:function(t){return!0===t?"_blank":void 0},onResize:function(){this.showScrollSidewaysButtons()},onScroll:function(){var t=document.getElementById("subNav");0===t.scrollLeft?t.parentElement.classList.remove("show-left-button"):t.parentElement.classList.add("show-left-button"),Math.round(t.scrollWidth-t.scrollLeft)===Math.round(t.offsetWidth)?t.parentElement.classList.remove("show-right-button"):t.parentElement.classList.add("show-right-button")},scrollLeft:function(){document.getElementById("subNav").scrollBy({top:0,left:-320,behavior:"smooth"})},scrollRight:function(){document.getElementById("subNav").scrollBy({top:0,left:320,behavior:"smooth"})},showScrollSidewaysButtons:function(){var t=document.getElementById("subNav");Math.ceil(t.offsetWidth)<t.scrollWidth?(0===t.scrollLeft?t.parentElement.classList.remove("show-left-button"):t.parentElement.classList.add("show-left-button"),t.parentElement.classList.add("show-right-button")):(t.parentElement.classList.remove("show-left-button"),t.parentElement.classList.remove("show-right-button"))}},mounted:function(){window.addEventListener("resize",this.onResize),this.showScrollSidewaysButtons()},props:["subnav"]},o=r(69),component=Object(o.a)(n,function(){var t=this,e=t._self._c;return e("div",{staticClass:"sub-nav"},[e("div",{staticClass:"scroll-sideways-nav"},[e("button",{staticClass:"btn scroll-left-nav",attrs:{"aria-label":"Scroll left"},on:{click:function(e){return t.scrollLeft()}}},[e("svg",{staticClass:"svg-inline--fa fa-chevron-left fa-w-10",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fa","data-icon":"chevron-left",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""}},[e("path",{attrs:{fill:"currentColor",d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}})])]),t._v(" "),e("ul",{staticClass:"sub-nav-list flex-nowrap overflow-auto scrollbar-none",attrs:{id:"subNav"},on:{scroll:function(e){return t.onScroll()}}},t._l(t.subnav.links,function(link){return e("li",{key:link.elementId,staticClass:"sub-nav-item"},[link.linkUrl?e("nuxt-link",{staticClass:"sub-nav-link",attrs:{to:link.linkUrl,target:t.linkTarget(link.openInNewTab)}},[t._v("\n "+t._s(link.linkText)+"\n ")]):t._e()],1)}),0),t._v(" "),e("button",{staticClass:"btn scroll-right-nav",attrs:{"aria-label":"Scroll right"},on:{click:function(e){return t.scrollRight()}}},[e("svg",{staticClass:"svg-inline--fa fa-chevron-right fa-w-10",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fa","data-icon":"chevron-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""}},[e("path",{attrs:{fill:"currentColor",d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}})])])])])},[],!1,null,null,null);e.default=component.exports},666:function(t,e,r){"use strict";r.r(e);r(74),r(96);var n=r(3),o=(r(36),r(11),r(29),r(40),r(15),r(75),r(686)),c={beforeCreate:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.$router.currentRoute.path,t.settings&&t.settings&&("/book-now"!=r||t.settings.tabs&&t.settings.tabs.includes("Book-now")||t.$router.push("/#booking"),"/find-us"!=r||t.settings.tabs&&t.settings.tabs.includes("Find-Us")||t.$router.push("/restaurants"),"/our-menu"!=r||t.settings.tabs&&t.settings.tabs.includes("Menu")||t.$router.push("/menu"));case 1:case"end":return e.stop()}},e)}))()},mounted:function(){var t=this;setTimeout(function(){t.$gsap.registerPlugin(o.ScrollTrigger),t.setAnimationsOnLoad()},0);var e=this.$nuxt.$route.hash;e&&document.getElementById(e.replace("#",""))&&document.getElementById(e.replace("#","")).scrollIntoView({behavior:"smooth"}),this.$store.dispatch("preferences/clearPreferencesMessage")},computed:{currentPage:function(){return this.$store.state.page.currentPage},isLoading:function(){return this.$store.state.page.isLoading},site_name:function(){return this.$store.getters.site_name},site_id:function(){return this.$store.getters.site_id},settings:function(){return this.$store.state.settings.settings},showPreferencesButton:function(){return!(!this.currentPage||"sign-up/thanks"!=this.currentPage.url)},customerGuid:function(){return this.$store.getters["preferences/customerGuid"]}},methods:{setAnimationsOnLoad:function(){var t=this,e=this.$gsap.utils.toArray(".slide-in-from-the-right");e.forEach(function(e){t.$gsap.from(e,{scrollTrigger:{trigger:e,start:"top 75%",end:"top 25%",scrub:!0,toggleActions:"play pause play pause"},duration:1,x:"100vw",ease:"power4"})}),(e=this.$gsap.utils.toArray(".slide-in-from-the-left")).forEac
1h(function(e){t.$gsap.from(e,{scrollTrigger:{trigger:e,start:"top 75%",end:"top 25%",scrub:!0,toggleActions:"play pause play pause"},duration:1,x:"-100vw",ease:"power4"})}),(e=this.$gsap.utils.toArray(".slide-in-from-the-bottom")).forEach(function(e){t.$gsap.from(e,{scrollTrigger:{trigger:e,start:"top 100%",end:"top 75%",scrub:!0,toggleActions:"play pause play pause"},duration:1,y:"50vh",ease:"power4"})}),(e=this.$gsap.utils.toArray(".slide-in-from-the-top")).forEach(function(e){t.$gsap.from(e,{scrollTrigger:{trigger:e.parentNode,start:"top 62.5%",end:"top 5%",scrub:!0,toggleActions:"play pause play pause"},duration:1,y:"-50vh",ease:"power4"})})},getRouteName:function(){var t=this.$route.path.split("/");return"/"+t[1]+"/"+t[2]+"/"+t[3]}}},l=r(69),component=Object(l.a)(c,function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-root"},[!t.isLoading&&t.currentPage&&t.currentPage.subNavigation?e("PagesSubNav",{attrs:{subnav:t.currentPage.subNavigation}}):t._e(),t._v(" "),e("article",{class:[t.isLoading?"loading":"loaded","page-article",t.currentPage&&t.currentPage.subNavigation?"sub-nav-article":""]},[t.isLoading?t._e():e("div",[e("div",{staticClass:"tiles"},[this.$router.currentRoute.path.includes("/our-menu")?t._e():e("LazyPagesHeroTileCarousel"),t._v(" "),e("LazyPagesHomePageTabs"),t._v(" "),t.currentPage&&"homepage"==t.currentPage.url.toLowerCase()&&t.settings.tabs?e("section",{staticClass:"tabs-content w-100"},[e("nuxt-child",{attrs:{enableBookings:t.settings.enableBookings,resetState:!0}})],1):t._e(),t._v(" "),t.currentPage?e("div",{staticClass:"rest-of-page"},[t._l(t.currentPage.sections,function(r,n){return[r.sys.contentType?["section"===r.sys.contentType.sys.id?e("LazyTilesPageSection",{key:n+"-pageSection",attrs:{section:r,index:n}}):t._e(),t._v(" "),"tile"===r.sys.contentType.sys.id?e("LazyTilesPageFigure",{key:n+"-pageTile",attrs:{tile:r,index:n}}):"mapTile"===r.sys.contentType.sys.id?e("LazyTilesMapTile",{key:n+"-mapTile",attrs:{tile:r,index:n}}):"formTile"===r.sys.contentType.sys.id?e("LazyTilesFormTile",{key:n+"-formTile",attrs:{tile:r,index:n}}):"takeawayTile"===r.sys.contentType.sys.id?e("LazyTilesTakeawayTile",{key:n+"-takeawayTile",attrs:{tile:r,index:n}}):"socialGrid"===r.sys.contentType.sys.id?e("LazyTilesSocialGrid",{key:n+"-socialGrid",attrs:{tile:r,index:n}}):t._e()]:t._e()]})],2):t._e(),t._v(" "),t.customerGuid&&t.showPreferencesButton?e("div",{staticClass:"preferences-btn w-100 p-3 d-flex justify-content-center"},[e("nuxt-link",{staticClass:"btn btn-primary",attrs:{to:"/preferences/"+t.customerGuid}},[t._v("Tell Us More")])],1):t._e()],1)])])],1)},[],!1,null,null,null);e.default=component.exports;installComponents(component,{PagesSubNav:r(658).default})},695:function(t,e,r){"use strict";e.a={layout:function(){return"amalfi_layout"}}},733:function(t,e,r){"use strict";r.d(e,"a",function(){return c});r(29);var n=[/\.php(\/|$)/i,/wp-admin/i,/wp-login/i,/\/vendor\//i,/\/\.git/i,/\/\.env/i,/\/wp-content/i,/\/wp-includes/i,/\/administrator/i,/\/admin/i,/\/cms/i,/\/phpmyadmin/i,/\/mysql/i,/\/sql/i,/\/backup/i,/\/config/i,/\/includes/i,/\/install/i,/\/setup/i,/\/debug/i,/\/shell/i,/\/cmd/i,/\/exec/i,/\/system/i],o=function(path){if(!path)return!1;for(var t=0,e=n;t<e.length;t++){if(e[t].test(path))return!0}return!1},c=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0,c=e;n<c.length;n++){var l=c[n];if(o(l))return!1}return!0}},962:function(t,e,r){"use strict";r.r(e);var n=r(3),o=(r(36),r(19),r(77),r(48),r(16),r(135),r(11),r(29),r(40),r(15),r(653)),c=r(695),l=r(733),h=r(60),d=function(t,e){if(!Array.isArray(t)||!e)return null;var r=e.toLowerCase(),n=t.find(function(t){return t&&t.slug&&t.slug.toLowerCase()===r})||t.find(function(t){return t&&t.title&&t.title.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")===r});return n&&n.slug?n.slug:null},f={mixins:[c.a],fetch:function(t){return Object(n.a)(regeneratorRuntime.mark(function e(){var r,n,o,c,h,f,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.store,n=t.params,o=t.error,e.prev=1,c=n.id1,Object(l.a)(c)){e.next=2;break}return o({statusCode:404,message:"This page could not be found"}),e.abrupt("return");case 2:return e.next=3,r.dispatch("page/getPageById",c);
1case 3:return e.next=4,r.dispatch("restaurant/setRestaurant",null);case 4:if(e.prev=4,!(h=r.state.locations&&r.state.locations.contentfulLocations)||!h.length){e.next=5;break}m=h,e.next=7;break;case 5:return e.next=6,r.dispatch("locations/fetchContentfulLocations");case 6:m=e.sent;case 7:if(!(f=d(m,c))){e.next=8;break}return e.next=8,r.dispatch("restaurant/fetchRestaurantBySlug",{slug:f});case 8:e.next=10;break;case 9:e.prev=9,e.catch(4);case 10:e.next=12;break;case 11:e.prev=11,e.catch(1),o({statusCode:404,message:"This page could not be found"});case 12:case"end":return e.stop()}},e,null,[[1,11],[4,9]])}))()},computed:{settings:function(){return this.$store.state.settings.settings},pageIsLoading:function(){return this.$store.state.page.isLoading}},head:function(){var t=this.$store.state.page.currentPage,e=this.$route.params.id1,r=t&&t.canonicalUrl?t.canonicalUrl:e&&"undefined"!==e?"".concat("https://www.amalfi.co.uk","/").concat(e):null;return{title:"".concat(this.title," | ").concat(this.$store.getters.site_name),meta:[{hid:"description",name:"description",content:this.$store.state.page.currentPage&&this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoDescription?this.$store.state.page.currentPage.seoDescription:""},{hid:"keywords",name:"keywords",content:this.$store.state.page.currentPage&&this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoKeywords?this.$store.state.page.currentPage.seoKeywords:""},{hid:"og:title",property:"og:title",content:"".concat(this.title," | ").concat(this.$store.getters.site_name)},{hid:"og:description",property:"og:description",content:this.$store.state.page.currentPage&&this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoDescription?this.$store.state.page.currentPage.seoDescription:""},{hid:"og:image",property:"og:image",content:this.$store.state.page.currentPage&&this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoImage?Object(o.a)(this.$store.state.page.currentPage.seoImage):""}],script:[this.structuredData?{hid:"restaurant-schema",type:"application/ld+json",innerHTML:Object(h.i)(this.structuredData)}:null].filter(Boolean),__dangerouslyDisableSanitizersByTagID:{"restaurant-schema":["innerHTML"]},link:r?[{hid:"canonical",rel:"canonical",href:r}]:[]}},data:function(){var t=[];this.$store.state.settings.settings.socialMediaItems&&this.$store.state.settings.settings.socialMediaItems.length>0&&this.$store.state.settings.settings.socialMediaItems.forEach(function(e,r){t.push(e.linkUrl)});var e=this.$store.getters["restaurant/restaurant"],r=this.$store.getters.site_url,n=[{name:"Home",item:"".concat(r,"/")},{name:"Locations",item:"".concat(r,"/locations")}];return e&&e.title&&n.push({name:e.title}),{title:this.$store.state.page.currentPage?this.$store.state.page.currentPage.title:"",seoDescription:this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoDescription?this.$store.state.page.currentPage.seoDescription:this.$store.state.settings.settings.structuredData.description,seoKeywords:this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoKeywords?this.$store.state.page.currentPage.seoKeywords:"",seoImage:this.$store.state.page.currentPage&&this.$store.state.page.currentPage.seoImage?Object(o.a)(this.$store.state.page.currentPage.seoImage):"",structuredData:Object(h.h)({restaurant:this.$store.getters["restaurant/restaurant"],settings:this.$store.state.settings.settings,siteName:this.$store.getters.site_name,siteUrl:this.$store.getters.site_url,routePath:this.$route.path,socialLinks:t,cuisine:"",offers:(this.$store.getters["restaurant/restaurant"]||{}).showOffers?this.$store.getters["restaurant/offers"]:[],priceRange:"",breadcrumbs:n})}}},m=r(69),component=Object(m.a)(f,function(){var t=this._self._c;return t("div",[t("PagesPageRoot")],1)},[],!1,null,null,null);e.default=component.exports;installComponents(component,{PagesPageRoot:r(666).default})}}]);
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.