{"version":3,"file":"scripts.min.js","names":["mobileBreakpoint","displayWidth","window","innerWidth","displayName","lottieSrc","location","host","toggleHelperMenu","menu","document","querySelector","addEventListener","e","target","id","classList","toggle","helperMenu","pages","createElement","btn","ul","rootURL","add","innerHTML","appendChild","lis","map","page","li","join","body","carouselCounter","sliderEl","$","on","event","slick","slideCount","after","currentSlide","next","find","text","productDetailSlider","slides_to_show_in_navigation","nextSlide","click","remove","sliderMainOptions","arrows","infinite","asNavFor","vertical","verticalSwiping","responsive","breakpoint","settings","sliderNavOptions","slidesToShow","focusOnSelect","slickSliderWithResize","console","log","pfsAccordion","slideUp","hasClass","removeClass","slideDown","addClass","ready","toggleClass","focus","blur","_self","length","$slides","get","bodymovin","loadAnimation","container","render","loop","autoplay","path","initial_bg_color","getComputedStyle","backgroundColor","css","slidesToScroll","speed","fade","dots","prevent_scroll","scroll_direction","deltaY","setTimeout","new_bg_color","fadeOut","html","fadeIn","item","webline_item","childNodes","variableWidth","centerMode","each","key","value","centerPadding","appendArrows","parent","show","signUpButton","getElementById","signInButton","hide"],"sources":["scripts.js"],"sourcesContent":["var mobileBreakpoint = 1200;\r\nvar displayWidth = window.innerWidth;\r\nvar displayName;\r\nvar lottieSrc = '/ResourcePackages/FranceFoodService/assets/img/lottie/';\r\n\r\nif (window.location.host === \"localhost:3000\" ||\r\n window.location.host === \"ramo.daviesmeyer.com\") {\r\n lottieSrc = \"./img/lottie/\";\r\n}\r\n\r\nif (displayWidth >= mobileBreakpoint) {\r\n displayName = 'desktop';\r\n} else {\r\n displayName = 'mobile';\r\n}\r\n\r\n// Inserts helper menu for html pages\r\nfunction toggleHelperMenu() {\r\n const menu = document.querySelector('.helper-menu')\r\n document.addEventListener('click', function (e) {\r\n if (e.target && e.target.id == 'helper-menu-btn') {\r\n menu.classList.toggle('open')\r\n }\r\n });\r\n}\r\n\r\n\r\nfunction helperMenu() {\r\n const pages = [\r\n \"menu-generator\",\r\n \"profile\",\r\n \"photo-library\",\r\n \"recipe-listing\",\r\n \"profile-saved-menu\",\r\n \"profile-saved-recipes\",\r\n \"brand-listing\",\r\n \"brand-detail\",\r\n 'more-content',\r\n \"news-listing\",\r\n \"news-detail\",\r\n \"product-listing\",\r\n \"product-detail\",\r\n \"recipe-detail\",\r\n \"search-results\",\r\n \"contact\",\r\n \"coming-soon\",\r\n \"menu-generator-intro\",\r\n \"simple-text\",\r\n \"login\",\r\n \"forgot-password-form\",\r\n \"index\"\r\n ]\r\n\r\n const menu = document.createElement('div')\r\n const btn = ``\r\n const ul = document.createElement(\"ul\")\r\n var rootURL = '/';\r\n if (window.location.host === 'ramo.daviesmeyer.com') {\r\n rootURL = '/pepsi_fsf/';\r\n }\r\n menu.classList.add('helper-menu')\r\n menu.innerHTML = btn\r\n menu.appendChild(ul)\r\n const lis = pages.map(page => {\r\n const li = `