${value}
`;\r\n }\r\n const closeButtonPopUp = modal.querySelector('.close') || modal.querySelector('.close-icon') || modal.querySelector('#reorder-modal-close');\r\n closeButtonPopUp && closeButtonPopUp.focus();\r\n function FocusModal(event) {\r\n if (!modal.contains(event.target)) {\r\n closeButtonPopUp && closeButtonPopUp.focus();\r\n event.preventDefault();\r\n }\r\n }\r\n document.addEventListener('focusin', FocusModal);\r\n if (window.innerWidth <= 1024) {\r\n document.body.style.overflow = 'hidden';\r\n }\r\n if (sliderComponent) {\r\n sliderComponent.autoplay.stop();\r\n }\r\n\r\n const handleRemoveAttribute = () => {\r\n headerSticky?.removeAttribute('aria-hidden');\r\n bodyContainer?.removeAttribute('aria-hidden');\r\n componentFooter?.removeAttribute('aria-hidden');\r\n modal?.setAttribute('aria-hidden', 'true');\r\n if(variant) {\r\n modalVariant.classList.remove(variant);\r\n }\r\n focusBack.focus();\r\n };\r\n\r\n const closeHandler = () => {\r\n modal.classList.remove('show');\r\n if (modal.classList.contains('reordermodal-overlay')) {\r\n analytics.emptyVirtualName();\r\n }\r\n handleRemoveAttribute();\r\n if (window.innerWidth <= 1024) {\r\n document.body.style.overflow = '';\r\n }\r\n if (sliderComponent) {\r\n sliderComponent.autoplay.start();\r\n }\r\n };\r\n\r\n const windowClose = event => {\r\n if (event.target == modal) {\r\n modal.classList.remove('show');\r\n handleRemoveAttribute();\r\n if (window.innerWidth <= 1024) {\r\n document.body.style.overflow = '';\r\n }\r\n if (sliderComponent) {\r\n sliderComponent.autoplay.start();\r\n }\r\n }\r\n };\r\n\r\n modal.addEventListener('keydown', event => {\r\n const focusableElements = modal.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusable = focusableElements[0];\r\n const lastFocusable = focusableElements[focusableElements.length - 1];\r\n\r\n if (event.key === 'Tab') {\r\n if (event.shiftKey && document.activeElement === firstFocusable) {\r\n event.preventDefault();\r\n lastFocusable.focus();\r\n } else if (!event.shiftKey && document.activeElement === lastFocusable) {\r\n event.preventDefault();\r\n firstFocusable.focus();\r\n }\r\n }\r\n });\r\n\r\n closeButtonPopUp && closeButtonPopUp.addEventListener('click', closeHandler);\r\n modal.addEventListener('click', windowClose);\r\n }\r\n}\r\n\r\nexport { modalPopupOpen };\r\n","const menuLinks = document.querySelectorAll('.second_level_tabs .menu_link a');\r\nif (menuLinks) {\r\n menuLinks.forEach(menuLink => {\r\n menuLink.addEventListener('click', event => {\r\n const active = document.querySelector(\r\n '.tab_link.active .second_level_tabs .menu_link.active',\r\n );\r\n if (active) {\r\n active.classList.remove('active');\r\n }\r\n menuLink.parentElement.classList.add('active');\r\n });\r\n });\r\n}\r\n\r\nconst jumpLinks = document.querySelectorAll('.jump_link a');\r\nif (jumpLinks) {\r\n jumpLinks.forEach(menuLink => {\r\n menuLink.addEventListener('click', event => {\r\n const active = document.querySelector('.jump_link.active');\r\n if (active) {\r\n active.classList.remove('active');\r\n }\r\n menuLink.parentElement.classList.add('active');\r\n const navTabLinkList = document.querySelector('.rail .left_rail_wrapper .nav_tab');\r\n if (navTabLinkList) {\r\n navTabLinkList.classList.toggle('show_mobile_dropdown');\r\n }\r\n });\r\n });\r\n}\r\n\r\nconst activeTabLink = document.querySelector('.tab_link.active');\r\nif (activeTabLink) {\r\n activeTabLink.addEventListener('click', event => {\r\n event.preventDefault();\r\n const navTabLinkList = document.querySelector('.rail .left_rail_wrapper .nav_tab');\r\n if (navTabLinkList) {\r\n navTabLinkList.classList.toggle('show_mobile_dropdown');\r\n }\r\n });\r\n}\r\n\r\ndocument.body.addEventListener('click', event => {\r\n const myElement = document.querySelector('.show_mobile_dropdown');\r\n if (myElement && event.target.parentElement.parentElement !== myElement) {\r\n myElement.classList.remove('show_mobile_dropdown');\r\n event.preventDefault();\r\n }\r\n});\r\n\r\nconst offerPromotions = document.querySelectorAll('.isLoggedOut .body_container .component_wrapper .offers_promoslider .component_wrapper .component_promotions');\r\nif (offerPromotions) {\r\n offerPromotions.forEach(text => {\r\n const button = text.querySelector('.fullwidth[data-combo_cta]');\r\n if (button) {\r\n const urlParams = new URLSearchParams(button.href);\r\n const mCategoryId = urlParams.get('mCategoryId');\r\n if (window.orderViewModel.selectedStoreId) {\r\n button.href = menuList(\r\n window.orderViewModel.headerFooterLanguageCode.toLowerCase(),\r\n window.orderViewModel.selectedStoreId,\r\n mCategoryId\r\n );\r\n }\r\n }\r\n });\r\n}\r\n\r\nfunction menuList(language, restaurantId, categoryId) {\r\n return `${window.location.origin}/${language}/restaurant/${restaurantId}/menu/category/${categoryId}`;\r\n}\r\n","const accordion_titles = document.querySelectorAll('.accordion_titles');\r\n\r\naccordion_titles.forEach(accordion_title => {\r\n accordion_title.addEventListener('click', event => {\r\n const active = document.querySelector('.accordion_titles.active');\r\n if (active && active !== accordion_title) {\r\n active.classList.toggle('active');\r\n active.nextElementSibling.style.display = 'none';\r\n accordion_title.setAttribute('aria-expanded', false);\r\n }\r\n accordion_title.classList.toggle('active');\r\n const description = accordion_title.nextElementSibling;\r\n if (accordion_title.classList.contains('active')) {\r\n description.style.display = 'block';\r\n accordion_title.setAttribute('aria-expanded', true);\r\n const componentName = accordion_title.getAttribute('data-component-name');\r\n const componentText = accordion_title.getAttribute('data-component-text').replace(/(<([^>]+)>)/gi, \"\");\r\n const buttontext = accordion_title.getAttribute('data-component-faqTitle');\r\n sendClickInfoToAnalyticsCMS(\r\n componentName,\r\n '',\r\n componentText,\r\n 'accordion',\r\n '',\r\n buttontext,\r\n event,\r\n );\r\n } else {\r\n description.style.display = 'none';\r\n accordion_title.setAttribute('aria-expanded', false);\r\n }\r\n });\r\n});\r\n\r\ndocument.body.addEventListener('click', event => {\r\n accordion_titles.forEach(accordion => {\r\n if (accordion && event.target.parentElement !== accordion.parentElement) {\r\n if (accordion.classList.contains('active')) {\r\n accordion.classList.toggle('active');\r\n accordion.nextElementSibling.style.display = 'none';\r\n accordion.setAttribute('aria-expanded', false);\r\n }\r\n }\r\n });\r\n});","/**\r\n * Configure video component\r\n */\r\n\r\nwindow.onscroll = function () {\r\n scrollPage();\r\n railSticky();\r\n};\r\n\r\nfunction scrollPage() {\r\n const scrollButton = document.querySelector('#scroll_button');\r\n if (scrollButton) {\r\n if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {\r\n scrollButton.style.display = 'block';\r\n } else {\r\n scrollButton.style.display = 'none';\r\n }\r\n }\r\n}\r\n\r\nfunction scrolltoTop() {\r\n document.body.scrollTop = 0;\r\n document.documentElement.scrollTop = 0;\r\n}\r\n\r\nfunction railSticky() {\r\n var railLayout = document.querySelector('.left_rail_wrapper');\r\n if (railLayout) {\r\n var sticky = railLayout.offsetTop - 1;\r\n if (window.pageYOffset >= sticky) {\r\n railLayout.classList.add('stick');\r\n } else {\r\n railLayout.classList.remove('stick');\r\n }\r\n }\r\n}\r\n\r\nexport { scrolltoTop, railSticky };\r\n","function iframeVideo(event) {\r\n const clickElement = event.currentTarget;\r\n const videoClass = '.component_featureCTA_video';\r\n const iframePopup = clickElement.querySelectorAll(videoClass);\r\n const closeBtn = '.component_featureCTA_close';\r\n const closeButtonPopUp = clickElement.querySelectorAll(closeBtn);\r\n const iframeId = '#iframeVideo';\r\n const iframeVideoId = clickElement.querySelectorAll(iframeId);\r\n const iframeVideoSrc = iframeVideoId[0].src;\r\n const videoId = getVideoId(iframeVideoSrc);\r\n iframeVideoId[0].src = 'https://www.youtube.com/embed/' + videoId + '?';\r\n\r\n if (iframePopup) {\r\n iframePopup[0].style.display = 'block';\r\n iframeVideoId[0].src += '&autoplay=1';\r\n iframeVideoId[0].contentWindow.focus();\r\n }\r\n\r\n const closeHandler = event => {\r\n iframeVideoId[0].src = iframeVideoSrc;\r\n iframePopup[0].style.display = 'none';\r\n event.stopPropagation();\r\n };\r\n\r\n closeButtonPopUp[0].addEventListener('click', closeHandler);\r\n closeButtonPopUp[0].addEventListener('keypress', function (e) {\r\n if (e.key === 'Enter' || e.keyCode == 13) {\r\n closeHandler();\r\n }\r\n });\r\n}\r\n\r\nfunction iframeVideo1up(event) {\r\n const clickElement = event.currentTarget;\r\n const iframeClass = '.component_inline_card_1up_video';\r\n const iframePopup = clickElement.querySelectorAll(iframeClass);\r\n const closeBtn = '.component_inline_card_1up_close';\r\n const closeButtonPopUp = clickElement.querySelectorAll(closeBtn);\r\n const iframeId = '#iframeVideo1up';\r\n const iframeVideoId = clickElement.querySelectorAll(iframeId);\r\n const iframeVideoSrc = iframeVideoId[0].src;\r\n const videoId = getVideoId(iframeVideoSrc);\r\n iframeVideoId[0].src = 'https://www.youtube.com/embed/' + videoId + '?';\r\n\r\n if (iframePopup) {\r\n iframePopup[0].style.display = 'block';\r\n iframeVideoId[0].src += '&autoplay=1';\r\n iframeVideoId[0].contentWindow.focus();\r\n }\r\n\r\n const closeHandler = event => {\r\n iframeVideoId[0].src = iframeVideoSrc;\r\n iframePopup[0].style.display = 'none';\r\n event.stopPropagation();\r\n };\r\n\r\n closeButtonPopUp[0].addEventListener('click', closeHandler);\r\n closeButtonPopUp[0].addEventListener('keypress', function (e) {\r\n if (e.key === 'Enter' || e.keyCode == 13) {\r\n closeHandler();\r\n }\r\n });\r\n}\r\n\r\nfunction getVideoId(url) {\r\n const regExp = /^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|&v=)([^#&?]*).*/;\r\n const match = url?.match(regExp);\r\n\r\n return match && match[2].length === 11 ? match[2] : null;\r\n}\r\n\r\nexport { iframeVideo, iframeVideo1up };\r\n","/**\n * SSR Window 4.0.2\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2021, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: December 13, 2021\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return (obj !== null &&\n typeof obj === 'object' &&\n 'constructor' in obj &&\n obj.constructor === Object);\n}\nfunction extend(target = {}, src = {}) {\n Object.keys(src).forEach((key) => {\n if (typeof target[key] === 'undefined')\n target[key] = src[key];\n else if (isObject(src[key]) &&\n isObject(target[key]) &&\n Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\n\nconst ssrDocument = {\n body: {},\n addEventListener() { },\n removeEventListener() { },\n activeElement: {\n blur() { },\n nodeName: '',\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() { },\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() { },\n getElementsByTagName() {\n return [];\n },\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: '',\n },\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\n\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: '',\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: '',\n },\n history: {\n replaceState() { },\n pushState() { },\n go() { },\n back() { },\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() { },\n removeEventListener() { },\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n },\n };\n },\n Image() { },\n Date() { },\n screen: {},\n setTimeout() { },\n clearTimeout() { },\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n },\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { extend, getDocument, getWindow, ssrDocument, ssrWindow };\n","setTimeout(() => {\r\n const hrefLinks =\r\n document.querySelectorAll('.otnotice .otnotice-section') &&\r\n document.querySelectorAll('.otnotice .otnotice-section')[0];\r\n hrefLinks &&\r\n hrefLinks.querySelectorAll(' ul li').forEach((li, i) => {\r\n const anchorTag = li.querySelector('a');\r\n const sectionTag = document.querySelectorAll('.otnotice-sections section');\r\n if (anchorTag && anchorTag.hash.charAt(0) === '#') {\r\n const valueAfterHash = anchorTag.hash.substring(1);\r\n if (i < sectionTag.length) {\r\n sectionTag[i + 1].id = valueAfterHash;\r\n }\r\n }\r\n });\r\n}, 3000);","/**\n * Dom7 4.0.4\n * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API\n * https://framework7.io/docs/dom7.html\n *\n * Copyright 2022, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: January 11, 2022\n */\nimport { getWindow, getDocument } from 'ssr-window';\n\n/* eslint-disable no-proto */\nfunction makeReactive(obj) {\n const proto = obj.__proto__;\n Object.defineProperty(obj, '__proto__', {\n get() {\n return proto;\n },\n\n set(value) {\n proto.__proto__ = value;\n }\n\n });\n}\n\nclass Dom7 extends Array {\n constructor(items) {\n if (typeof items === 'number') {\n super(items);\n } else {\n super(...(items || []));\n makeReactive(this);\n }\n }\n\n}\n\nfunction arrayFlat(arr = []) {\n const res = [];\n arr.forEach(el => {\n if (Array.isArray(el)) {\n res.push(...arrayFlat(el));\n } else {\n res.push(el);\n }\n });\n return res;\n}\nfunction arrayFilter(arr, callback) {\n return Array.prototype.filter.call(arr, callback);\n}\nfunction arrayUnique(arr) {\n const uniqueArray = [];\n\n for (let i = 0; i < arr.length; i += 1) {\n if (uniqueArray.indexOf(arr[i]) === -1) uniqueArray.push(arr[i]);\n }\n\n return uniqueArray;\n}\nfunction toCamelCase(string) {\n return string.toLowerCase().replace(/-(.)/g, (match, group) => group.toUpperCase());\n}\n\n// eslint-disable-next-line\n\nfunction qsa(selector, context) {\n if (typeof selector !== 'string') {\n return [selector];\n }\n\n const a = [];\n const res = context.querySelectorAll(selector);\n\n for (let i = 0; i < res.length; i += 1) {\n a.push(res[i]);\n }\n\n return a;\n}\n\nfunction $(selector, context) {\n const window = getWindow();\n const document = getDocument();\n let arr = [];\n\n if (!context && selector instanceof Dom7) {\n return selector;\n }\n\n if (!selector) {\n return new Dom7(arr);\n }\n\n if (typeof selector === 'string') {\n const html = selector.trim();\n\n if (html.indexOf('<') >= 0 && html.indexOf('>') >= 0) {\n let toCreate = 'div';\n if (html.indexOf('