{"version":3,"sources":["assets/img/plus.svg","assets/milano/milano-logo-header.svg","assets/img/minus.svg","assets/img/deliveryMan.svg","assets/img/icons/facebook.svg","assets/img/icons/instagram.svg","assets/img/icons/twitter.svg","assets/img/Icons_16/GF.svg","assets/img/Icons_16/Veg.svg","assets/img/Icons_16/Vegan.svg","assets/img/Icons_16/Spicy.svg","assets/img/Icons_16/extraSpicy.svg","assets/img/icons/google-play-seeklogo.svg","assets/img/icons/apple-store-seeklogo.svg","assets/img/generic.jpg","assets/img/chevronDown.svg","assets/img/icons/closeIcon.svg","assets/img/icons/chevronLeftPlum.svg","assets/img/chevronLeft.svg","assets/img/xmark.svg","assets/img/pelogo.png","assets/img/binoculars.svg","assets/img/mapmarker-wireframe.png","assets/img/closeButton.svg","assets/img/tick.svg","assets/img/refresh.svg","assets/img/google-icon.png","assets/img/filter-icon.svg","assets/img/slices/slice3.svg","assets/img/slices/slice4.svg","assets/img/slices/slice-and-hand.svg","assets/img/slices/burst.svg","assets/img/slices/star.svg","assets/milano/milano_logo.png","assets/img/icons sync /^/.*/.svg$","assets/img/icons/chevronRightPlum.svg","assets/img/icons/linkedin.svg","assets/img/icons/tiktok.svg","assets/img/icons/youtube.svg","assets/img/refresh/Refresh.svg","assets/img/roseFiligreeHeader.svg","assets/img/examples/drinks/honey_dew_ale_384.jpg","assets/img/examples/drinks/peroni_gluten_free_384.jpg","assets/img/examples/drinks/peroni_gran_riserva_384_v2.jpg","assets/img/examples/drinks/grecanico_chardonnay_384_v2.jpg","assets/img/examples/drinks/peroni_libera_384.jpg","lib/constants.js","processes/PaymentProcess.js","mobx/withAppState.js","components/TopBanner.js","components/Swipeable.js","components/ErrorModal.js","components/Modal.js","components/MenuFooter.js","components/legal_components/PeTandC.js","components/legal_components/PePrivacyPolicy.js","components/legal_components/MenuPeTandC.js","components/legal_components/MiTandC.js","components/legal_components/MiPrivacyPolicy.js","components/legal_components/MenuMiTandC.js","components/Legal.js","components/Footer.js","helpers/fontResizer.js","components/Header.js","helpers/PromiseWrapper.js","components/RestaurantSearch.js","wrappers/Milano/PayAtTable/RestaurantSearchWrapper.js","assets/img/crosshairs.svg","assets/img/crosshairs-circle.svg","components/PreOrderRestaurantSearch.js","wrappers/Milano/MenuOnly/RestaurantSearchWrapper.js","components/Numpad.js","components/Loading.js","components/TablePicker.js","wrappers/Milano/common/AssignSplits.js","wrappers/Milano/PayAtTable/TablePickerWrapper.js","helpers/GetCsrfToken.js","components/SplitByItem.js","components/Bill.js","wrappers/Milano/PayAtTable/BillWrapper.js","components/SplitBillMenu.js","wrappers/Milano/PayAtTable/SplitBillMenuWrapper.js","components/SplitBillName.js","wrappers/Milano/PayAtTable/SplitBillNameWrapper.js","components/GratuityInput.js","components/ApplyGratuity.js","wrappers/Milano/PayAtTable/ApplyGratuityWrapper.js","components/FacebookLogin.js","components/GoogleLogin.js","components/Login.js","components/VoucherCodeInput.js","components/ApplyVoucher.js","wrappers/Milano/PayAtTable/ApplyVoucherWrapper.js","components/PayByCard.js","components/PayByVault.js","components/PayByPaypal.js","components/PayByApplePay.js","components/ContentPage.js","wrappers/PizzaExpress/PreOrder/ContentPageWrapper.js","components/PayByGooglePay.js","components/Pay.js","wrappers/Milano/PayAtTable/PayWrapper.js","components/PaymentConfirmation.js","wrappers/Milano/PayAtTable/PaymentConfirmationWrapper.js","lib/compareItemChoices.js","helpers/useContainerDimensions.js","components/DigitalMenuHeader.js","components/NavMenu.js","components/MenuCard.js","components/MenuPages.js","lib/mapItemChoicesToPrices.js","components/MenuItem.js","components/MenuBasket.js","components/MenuFooterLinks.js","components/PreOrderMenu.js","wrappers/Milano/MenuOnly/MenuWrapper.js","components/PreOrderDataCapture.js","wrappers/Milano/MenuOnly/DataCaptureWrapper.js","flows/Milano/PayAtTable.js","flows/Milano.js","App.js","registerServiceWorker.js","index.js"],"names":["module","exports","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","GuidEmpty","Steps","DEFAULT","HOME","RESTAURANT_SEARCH","TABLE_PICKER","BILL","APPLY_GRATUITY","PAY","PAYMENT_CONFIRMATION","APPLY_VOUCHER","REGISTER","FORGOTTEN_PASSWORD","SPLIT_BILL_MENU","SPLIT_BILL_NAME","ORDER_OR_PAY","PRE_ORDER_DATA_CAPTURE","PRE_ORDER","CONTENT_PAGE","SplitType","PaymentProcess","activeStep","previousSteps","postRegisterAction","bufferedAction","restaurantSearchCache","restaurant","tableNumber","selectedSplitIndex","bill","billTotal","billTotalWhenPaying","discountTotal","gratuityTotal","grandTotal","paymentFailed","paymentFailReason","paymentLoadingAnimation","submittingPayment","customer","mainCTAActive","mainCTAText","secondaryCTAActive","secondaryCTAText","errorModalEnabled","errorModalMessage","errorModalDisableTimeout","errorModalMessageClearTimeout","isRegistered","modalActive","modalTitle","modalMessage","modalVoucherCode","modalMainCTAText","modalSecondaryCTAText","cachedEmailAddress","socialCustomer","mainCTALoadingAnimationActive","secondaryCTALoadingAnimationActive","privacyPolicyAndTermsConditionsModal","privacyPolicyAndTermsConditionsModalMenu","termAndConditionsCopy","termAndConditionsMenuCopy","cookiesPolicyCopy","privacyPolicyCopy","splitBillSessionToken","assignedSplitIndex","sourceIsApp","appPlatform","externalConfig","refreshButtonLoading","optingInAtCheckout","optedOutAtCheckout","isOrderJourney","isCheckInJourney","dataCaptureStatus","brandTermConditions","culture","symbol","language","currency","canSignup","hasSocialLinks","companyName","returnHref","cookiesAccepted","homePageImage","applySoftOptIn","swipeableModalPosition","swipeable","slideOutAnimation","digitalMenuOffsetHeight","appFooterHeight","appHeaderHeight","callback","this","mainModalCTA","title","voucherCode","message","closeSlideUpModal","setBillTotal","outstandingBalance","setDiscountTotal","totalDiscounts","updateBillTotalAndSplit","updateBillCTAs","bills","setGrandTotal","splits","splitBill","length","splitType","paid","splitBalance","amount","discountAmount","value","parseFloat","toFixed","step","push","pop","data","fetch","providerId","then","response","status","json","catch","err","setBill","setTimeout","startRefreshBillCycle","popStep","setErrorModalMessage","paymentResponse","payment","billPaid","paymentStatus","setAssignedSplitIndex","setSelectedSplitIndex","reason","acceptCookie","Cookies","get","customerSessionToken","pizzaExpressId","emailAddress","token","firstName","lastName","vaultId","emailOptIn","favouriteRestaurants","setOptingInAtCheckout","setOptedOutAtCheckout","remove","domain","mainCTA","secondaryCTA","enableSecondaryCTA","text","gratuitySliderValue","window","clearTimeout","disableErrorModal","clearSlideUpModalContents","payload","storeInVault","isOptedIn","result","JSON","stringify","PaymentMethodNonce","nonce","Bill","ProviderId","GrandTotal","BillTotal","GratuityTotal","Customer","VaultId","Restaurant","StoreCardInVault","SplitIndex","OptIn","MerchantAccountId","SourceIsApp","LoggedIn","TableNumber","profile","updateLoadingAnimation","startRefreshButtonLoading","restaurantId","console","error","success","stopRefreshButtonLoading","enableMainCTA","disableMainCTA","payments","setSecondaryCTA","disableSecondaryCTA","openCancelSplitModal","setSecondaryCTAText","setMainCTAText","some","s","sessionToken","setMainCTA","goToStep","openPayOtherSplitModal","checkoutButtonHandler","getCheckoutCTAText","splitBillMenuButtonHandler","setMainModalCTA","providerValues","showEatOutToHelpOutPage","setBufferedAction","getCurrency","platform","baskets","localStorage","getItem","parse","basket","updated","Date","now","setItem","localItem","slideModalTitleBackground","slideModalHeaderTitle","slideModalHeaderText","slideModalTitle","slideModalIconBtn","slideModalSecondaryCTAText","disableSecondaryModalCta","slideModalPrimaryCTAText","slideUpModalTable","slideUpModalWaiterMessage","slideModalBtnColumn","slideModalBtnColumnCustomClasses","slideUpModal","React","Component","decorate","observable","footerStub","secondaryCTALoading","setComanyName","setApplySoftOtIn","setDigitalMenuOffset","setAppFooterHeight","setAppHeaderHeight","withAppState","WrappedComponent","mobXProps","mobXActions","withAppStateComponent","innerProps","props","resolvedMobXProps","forEach","key","undefined","resolvedMobXActions","bind","observer","elementClose","faChevronLeft","icon","faTimes","state","backDisabled","setupMainModal","enableMainModal","addEventListener","forceUpdate","restaurantNameTitle","contentTableNumber","isAfterSelectTable","includes","className","name","currentStep","REGISTER_CONFIRMATION","buttonDisabled","onClick","openModal","src","chevronLeft","toUpperCase","closePrivacyPolicyTermsAndConditionsModal","useState","isOpen","setIsOpen","dietFilterOpen","setDietFilterOpen","innerModal","useRef","handlers","useSwipeable","onSwiping","eventData","dir","setSwipeable","setDragDownModal","deltaY","current","clientHeight","innerHeight","handleModalCancel","onSwiped","trackTouch","trackMouse","dragDownHeight","bottom","touchAction","useEffect","document","body","classList","toggle","style","swipeableOffsetFooter","ref","xmark","children","handleClickOutside","wrapperRef","contains","target","handleClose","setWrapperRef","node","removeEventListener","errorModalTitle","errorModalTitleBackground","Swipeable","disableMainModal","handleModalConfirm","brand","hasMarginTop","socialLinks","footerLinks","hasPEClub","year","setYear","today","getFullYear","appFooter","updateWindowDimensions","social","i","href","link","require","googlePayIcon","applePayIcon","footer","cta","rel","deliveryMan","PeTandC","Fragment","PePrivacyPolicy","MenuPeTandC","MenuMiTandC","backButtonHandler","MiPrivacyPolicy","MiTandC","SecondaryCTA","fontSize","MainCTA","loadingAnimation","innerWrapper","restaurantName","type","restTitleLength","windowWidth","innerWidth","availableSpace","calculateFontSize","fontResizer","logo","appHeader","isBurgerMenuOpen","setIsBurgerMenuOpen","burger","faBars","toggleBurgerMenu","handleOutsideClick","event","closest","prev","menuHeader","nav","navIdx","makeCancelable","promise","onCancel","hasCanceled_","cancel","reject","isCanceled","mapmarker","faMapMarkerAlt","locationSearch","createRef","results","displayingNearby","nearbyResults","searchString","loading","searching","resultMessage","favRest","timer","requests","locationRequests","loadingTimeout","locationHandle","handleLocationSearch","cancelLocationRequests","a","triggerSearch","searchInput","getElementsByName","setState","trim","LOADING_TIMEOUT_SECONDS","request","navigator","geolocation","getCurrentPosition","position","lat","coords","latitude","lng","longitude","permissions","query","permissionQuery","getLocation","cacheRestaurantSearch","handleRestaurantSelect","restaurants","output","index","restaurantResult","starIcon","faStar","star","distance","Number","fullAddress","faMapMarkedAlt","width","display","justifyContent","autoComplete","placeholder","onKeyDown","handleSearchChange","displayResults","displayFavourites","selectRestaurant","_extends","assign","arguments","source","prototype","hasOwnProperty","call","apply","_objectWithoutProperties","excluded","sourceKeys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","createElement","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","_ref","svgRef","height","viewBox","fill","ForwardRef","forwardRef","x","y","rx","alt","mapmarkerWireframe","toggleLocationModal","locationModalShow","handleInputFocus","isInputFocused","handleInputBlur","isResultCardVisible","prevState","log","flexDirection","onFocus","onBlur","input","focus","tabIndex","binos","termAndConditionsModalMenu","twitterIcon","facebookIcon","instagramIcon","class","getHomePageImage","milogo","PreOrderRestaurantSearch","getDataCaptureStatusForCurrentRestaurant","Numkey","onMouseDown","pressNumkey","DelKey","pressDelKey","close","Enter","faCheck","role","pressEnterKey","tick","Numpad","Loading","comingSoon","comingSoonContent","tableValue","setLoading","Math","floor","comingSoonPayAtTableTitle","comingSoonPayAtTableContent","selectTableNumber","customerId","hasExistingPaidSplit","newSplitsAvailable","assignSplits","getCsrfToken","requestToken","handleCsrfFailure","alert","location","reload","elementPlus","plusIcon","elementMinus","minusIcon","removeItemFromSplit","item","method","headers","Accept","splitIndex","addItemToSplit","availableItems","split","splitBillInfoRef","items","removeFromSplitBillButton","additionNames","additions","addition","adIndex","cost","additionQuantities","quantity","additionCosts","description","splitBillItemsSelected","itemName","addToSplitBillButton","iconRef","scrollIntoView","inline","handleNoBill","isSplitBill","groupedItems","MainBill","selected","SplitBills","isSelected","refreshTable","block","AddSplit","handleJoinSplitButton","transformAdditions","transformAdditionNames","nestingLevel","array","itemCosts","totalCosts","operator","paddingLeft","transformAdditionQuantities","transformAdditionCosts","isSplitBillTab","totalRemaining","remainingItems","j","splitBillInfo","refresh","fontWeight","discounts","discount","percentage","promotions","filter","p","hasItems","paymentMethod","charges","charge","handleApplyVoucherButton","SplitByAmount","peopleNumberInput","setValue","setInputValue","newValue","numberValue","onChange","initiateSplit","setActiveStep","handleBackButton","initiateSplitByItem","numPeople","ok","goToStepWithoutHistory","SplitBillName","setName","maxLength","assignName","inputName","Name","SplitBillSessionToken","PizzaExpressId","responseValues","newSplitIndex","GratuityInput","nameRef","cursor","inputMode","onKeyDownCapture","SLIDER_VALUES","gratuityPercentage","setGratuityTotal","sliderValueSelected","cachedCustomValue","enteringCustomAmount","theCurrency","mainCTACallback","originalTotal","valueOf","toString","ex","handleCancelCustomGratuity","customGratuityPercentage","totalSliderValues","sliderWasChanged","maskedValue","accounting","unformat","countDecimals","nativeEvent","preventDefault","blur","maskedGratuityTotal","toLocaleString","handleDecreasePress","handleIncreasePress","handleChange","handleKeyDown","FacebookLogin","handleResponse","provider","accessToken","tokenDetail","userId","userID","email","responseData","handleLogin","first_name","last_name","goToRegister","handleError","elementFacebook","faFacebookSquare","mainText","appId","scope","onCompleted","onError","handleClick","googleUser","getBasicProfile","getId","getEmail","authResponse","getAuthResponse","id_token","clientId","render","renderProps","disabled","gIcon","buttonText","onSuccess","onFailure","cookiePolicy","Login","loginFailed","emailEmpty","emailValid","passwordEmpty","passwordVisible","emailInput","getElementById","add","test","handleLoginAsCustomer","password","pwInput","elementEye","faEye","elementEyeSlash","faEyeSlash","goToRegisterFromSocial","validateEmail","autoCapitalize","handleVisibility","goToForgottenPassword","signUp","VoucherCodeInput","handleOfferSelect","inputButtonLoading","selectedVoucher","oIndex","vIndex","oImage","oTitle","oDescription","voucherCodeLogin","offers","lookupVouchers","wasInputButton","handleApplyVoucherSuccessResponse","voucher","offer","voucherCodes","imgURL","backgroundImage","loginAsCustomer","getCanSignup","voucherLoginViewSwitch","setSocialCustomer","setCachedEmailAddress","handleConfirmVoucher","braintree","PayByCard","handleFocus","vaultCheckbox","hostedFieldsInstance","fields","formValid","vaultCheckboxTicked","emailAddressProps","isInvalid","isEmpty","displayInvalidFields","creditCard","cvv","expiry","submitPaymentCancel","checked","generatePaymentBody","submitPaymentFail","teardown","teardownErr","storeCustomerEmail","paymentSuccessful","storeVaultId","every","isValid","number","expirationDate","emailProps","checkEmailValidity","submitPayment","tokenize","threeDSecureParameters","bin","details","onLookupComplete","next","client","create","authorization","clientToken","clientInstance","threeDSecure","version","threeDSecureInstance","payByCardContainer","on","pausePaymentLoadingAnimation","appendChild","element","verifyCard","unpausePaymentLoadingAnimation","threeDSecureElem","getElementsByClassName","removeChild","postPayment","options","styles","color","padding","container","hostedFields","getState","finishedPaymentLoadingAnimation","checkFormValidity","emittedBy","htmlFor","handleEmailChange","handleEmailKeyPress","defaultValue","PayByVault","paymentMethods","vaultManagerInstance","vaultManager","fetchPaymentMethods","deleteCard","payWithPayload","payWithCardCallback","getVaultManagerCards","Index","CustomerId","RestaurantId","openUseSavedCardModal","cardType","lastFour","openCancelCardModal","paypal","PayByPaypal","paypalCheckout","paypalCheckoutInstance","Button","env","environment","size","shape","label","tagline","createPayment","flow","enableShippingAddress","shippingAddressEditable","landingPageType","locale","onAuthorize","actions","tokenizePayment","canMakePaymentsWithActiveCard","finishedLoadingApplePay","ApplePaySession","supportsVersion","canMakePayments","applePay","applePayInstance","merchantIdentifier","paymentRequest","createPaymentRequest","total","requiredShippingContactFields","requiredBillingContactFields","session","onvalidatemerchant","performValidation","validationURL","displayName","merchantSession","completeMerchantValidation","validationErr","abort","onpaymentauthorized","shippingContact","completePayment","STATUS_SUCCESS","tokenizeErr","STATUS_FAILURE","begin","visibility","margin","useBufferedAction","ContentPage","google","paymentsClient","api","PaymentsClient","googlePayment","googlePayVersion","googleMerchantId","merchantId","googlePaymentInstance","button","createButton","paymentDataRequest","createPaymentDataRequest","transactionInfo","currencyCode","totalPriceStatus","totalPrice","emailRequired","shippingAddressRequired","isReadyToPay","apiVersion","apiVersionMinor","allowedPaymentMethods","existingPaymentMethodRequired","loadPaymentData","paymentData","parseResponse","payData","dataresponse","isNetworkTokenized","canUseApplePay","googlePayEnabled","paypalEnabled","googleEnvironment","paypalEnvironment","optInCheckbox","startedLoadingPaymentForm","handleNoClientToken","updateMainCTAText","getApplySoftOptIn","defaultChecked","clickedCheckoutOptIn","clickedCheckoutOptOut","getCompanyName","termAndConditionsModal","privacyPolicyModal","getReturnHref","faFacebookF","TwitterIcon","faTwitter","InstagramIcon","faInstagram","handleGoToRegister","handleBackToBillsButton","setPostRegisterAction","resetToBillStepPayAtTable","getHasSocialLinks","compareItemChoiceItems","itemChoiceItemsA","itemChoiceItemsB","itemChoiceItemA","qty","itemChoicesA","itemChoices","itemChoiceItemB","find","itemChoicesB","compareItemChoices","itemChoiceA","itemChoiceItems","itemChoiceB","useContainerDimensions","myRef","getDimensions","offsetWidth","offsetHeight","dimensions","setDimensions","handleResize","dietaryFilterCta","dietaryFilter","copy","linkText","linkHref","headerMessage","download","textDecoration","paddingTop","backgroundColor","NavButton","MenuList","list","scrollItemIndex","selectedScrollItemPos","setSelectedScrollItemPos","navRef","titleRef","headerStyle","toLowerCase","navCTA","rootCategories","menuBanner","selectedIndex","setIndex","displaySubcategories","scrollContainer","scrollWrapper","navMenuContainer","navMenuWrapper","filledRootCategories","mc","menuCategories","tabs","menuCategory","menuCategoryClass","setIsOverflowing","widthNavMenuContainer","menuBannerHeight","getNavigationBarWidth","navWrapper","lastChild","offsetLeft","useLayoutEffect","selectedMenuCategory","selectedMenuCategoryList","DietaryFilterIcon","filtered","filterIcon","marginTop","top","MenuCard","categoryIndex","categoryType","uiTags","dietaryAndAllergens","minPrice","image","descriptionInfo","isExpanded","setIsExpanded","showButton","setShowButton","cardInfo","useMemo","calories","string","safetyMeasure","first","last","phrase","slice","getCalories","replace","textRef","scrollHeight","scrollWidth","isOverflown","focusItem","marginBottom","spicy","extraSpicy","glutenFree","vegan","vegetarian","lineHeight","maxWidth","WebkitBoxOrient","WebkitLineClamp","overflow","textOverflow","whiteSpace","info","stopPropagation","ChevronDown","transform","generic","subTitle","renderMenuItems","filterDiet","getPizzaCategoryLogoText","childrenArray","selectedCategory","offsetStyle","menuItems","renderMenuCategories","category","burst","hand","headerText","spinach","tomato","mapItemChoiceItemPrices","menuItemChoiceItems","itemChoiceItem","menuItemChoiceItem","menuItemChoices","price","mapItemChoicesToPrices","itemChoice","menuItemChoice","MenuItemChoiceItems","update","maximum","allowChoiceFiltering","readOnly","totalQuantities","MenuItemChoice","allowCustomisation","MenuItemChoices","createItemChoiceItemObject","defaultQuantity","isIncluded","createItemChoiceObject","areItemChoiceItemsValid","areItemChoicesValid","minimum","validItemChoiceItems","hasBasket","promotionalItemText","defaultItemChoices","setItemChoices","canOrder","backgroundSize","iconSrc","addToBasket","populateItemChoiceItems","resultList","choiceCount","isAlwaysVisible","pushItem","populateItemChoices","object","choiceList","reduceQuantity","increaseQuantity","choice","choiceQty","Array","MenuFooterLinks","recursivelyTransformMenuCategories","line","startsWith","substring","getDescriptionInfo","dietaryAllergen","getPage","pathArray","pathname","substr","path","currentPage","mainComponent","focusedItem","filteredData","popoutActive","handleScroll","MenuBasket","obj","changeQuantity","closeFocusedItem","menuPage","navSelected","getBasket","tagManagerArgs","dataLayer","itemAdded","itemAddedChoices","dataLayerName","TagManager","basketItems","basketItem","foundSameChoices","basketItemCount","setBasket","increment","basketObj","splice","homeButtonHandler","pageCount","scrollTo","c","recursiveMenuCategoryDietaryFilter","filteredMenuItems","filteredMenuCategoriesResult","getFilteredData","fd","loadMenus","navContainerSize","getBoundingClientRect","left","dietaryFilterActive","reduce","acc","categoryName","subcategory","PageDataLayer","onScroll","toggleDietFilterMenu","togglePopout","page","setPage","isMobile","handleDietaryFilterChange","handleDietaryResetAll","payButtonHandler","toggleErrorModal","errors","customerData","mobileNumber","pizzaExpressTermsAndConditionsAgreed","optIn","trackAndTraceAgreed","over16","firstNameEmpty","firstNameValid","mobileNoEmpty","mobileNoValid","showTAndCError","fieldName","currentTarget","valid","allowIrishPhoneNumbers","isValidPhonenumber","validateField","skip","continueButtonHandler","formIsValid","setDataCaptureStatusForCurrentRestaurant","minLength","toggleTandC","termAndConditionsWebModalMenu","privacyPolicyWebModalMenu","toggleOptIn","testAndTraceTitle","testAndTraceDescription","toggleTestAndTrace","hideSkip","logout","PreOrderDataCapture","MenuWrapper","DataCaptureWrapper","TablePickerWrapper","BillWrapper","SplitBillMenuWrapper","SplitBillNameWrapper","ApplyVoucherWrapper","ApplyGratuityWrapper","PayWrapper","PaymentConfirmationWrapper","uuidv4","getRestaurantNameFromUrl","acceptCookieSet","setCurrency","setCanSignup","setHasSocialLinks","setReturnHref","urlParams","URLSearchParams","search","isOrder","isCheckIn","setIsOrderJourney","setIsCheckInJourney","restaurantNameFromUrl","hasAcceptedCookies","restaurantData","gtmId","googleTagManagerId","initialize","uuid","set","expires","setSplitBillSessionToken","stepId","footerMargin","menuJourneyHeader","pageName","sessioncamConfiguration","SessionCamPath","SessionCamPageName","enabled","setSourceIsAppTrue","setAppPlatform","Boolean","hostname","match","rootElement","ReactDOM","serviceWorker","ready","registration","unregister"],"mappings":"oHAAAA,EAAOC,QAAU,IAA0B,kC,gBCA3CD,EAAOC,QAAU,IAA0B,gD,kBCA3CD,EAAOC,QAAU,IAA0B,mC,kBCA3CD,EAAOC,QAAU,IAA0B,yC,gBCA3CD,EAAOC,QAAU,IAA0B,sC,gBCA3CD,EAAOC,QAAU,IAA0B,uC,gBCA3CD,EAAOC,QAAU,IAA0B,qC,iBCA3CD,EAAOC,QAAU,IAA0B,gC,gBCA3CD,EAAOC,QAAU,IAA0B,iC,gBCA3CD,EAAOC,QAAU,IAA0B,mC,gBCA3CD,EAAOC,QAAU,IAA0B,mC,gBCA3CD,EAAOC,QAAU,IAA0B,wC,6BCA3CD,EAAOC,QAAU,IAA0B,kD,gBCA3CD,EAAOC,QAAU,IAA0B,kD,gBCA3CD,EAAOC,QAAU,IAA0B,qC,kBCA3CD,EAAOC,QAAU,IAA0B,yC,kBCA3CD,EAAOC,QAAU,IAA0B,uC,gBCA3CD,EAAOC,QAAU,IAA0B,6C,yDCA3CD,EAAOC,QAAU,IAA0B,yC,gBCA3CD,EAAOC,QAAU,IAA0B,mC,eCA3CD,EAAOC,QAAU,85Z,gBCAjBD,EAAOC,QAAU,IAA0B,wC,cCA3CD,E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AkoB,yBApBW,EAKXA,yBAgBAX,kBArBW,EAMXA,kBAgBAT,YAtBW,EAOXA,YAgBAC,aAvBW,EAQXA,aAgBAC,kBAxBW,EASXA,kBAgBAx/B,cAzBW,EAUXA,cAgBAy/B,cA1BW,EAWXA,cAgBAS,mBA3BW,EAYXA,mBAgBAF,oBA5BW,EAaXA,oBAgBA//B,iBA7BW,EAcXA,qBChPW,qBAAM,kBAAC,GAAD,OCjCDohC,QACW,cAA7B5mC,OAAO0Y,SAASmuB,UAEa,UAA7B7mC,OAAO0Y,SAASmuB,UAEhB7mC,OAAO0Y,SAASmuB,SAASC,MACvB,2DCVJ,IAAMC,GAAcl9B,SAAS4Z,eAAe,QAE5CujB,IAAStkB,OACL,kBAAC,GAAD,MACFqkB,ID4FI,kBAAmBj2B,WACrBA,UAAUm2B,cAAcC,MAAMzpC,MAAK,SAAA0pC,GACjCA,EAAaC,mB","file":"static/js/main.82be4b08.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/plus.809a5941.svg\";","module.exports = __webpack_public_path__ + \"static/media/milano-logo-header.b63e777e.svg\";","module.exports = __webpack_public_path__ + \"static/media/minus.4eea7755.svg\";","module.exports = __webpack_public_path__ + \"static/media/deliveryMan.1684bd72.svg\";","module.exports = __webpack_public_path__ + \"static/media/facebook.a0ccf44a.svg\";","module.exports = __webpack_public_path__ + \"static/media/instagram.965893b8.svg\";","module.exports = __webpack_public_path__ + \"static/media/twitter.3966ce74.svg\";","module.exports = __webpack_public_path__ + \"static/media/GF.48ee7892.svg\";","module.exports = __webpack_public_path__ + \"static/media/Veg.6a6fbfab.svg\";","module.exports = __webpack_public_path__ + \"static/media/Vegan.1287ea95.svg\";","module.exports = __webpack_public_path__ + \"static/media/Spicy.90128814.svg\";","module.exports = __webpack_public_path__ + \"static/media/extraSpicy.7398ff41.svg\";","module.exports = __webpack_public_path__ + \"static/media/google-play-seeklogo.d4df7386.svg\";","module.exports = __webpack_public_path__ + \"static/media/apple-store-seeklogo.c31e2dd2.svg\";","module.exports = __webpack_public_path__ + \"static/media/generic.c749a5f1.jpg\";","module.exports = __webpack_public_path__ + \"static/media/chevronDown.959f0126.svg\";","module.exports = __webpack_public_path__ + \"static/media/closeIcon.2bfcbfc8.svg\";","module.exports = __webpack_public_path__ + \"static/media/chevronLeftPlum.da26f6ff.svg\";","module.exports = __webpack_public_path__ + \"static/media/chevronLeft.3f4da001.svg\";","module.exports = __webpack_public_path__ + \"static/media/xmark.37c46494.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACACAYAAABOUyafAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LjE2NDc1MywgMjAyMS8wMi8xNS0xMTo1MjoxMyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkRCQzZ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PknjZC9g3EqPto56xDpYDcphN1bXMw5tRqWqA6MSlFaFe82BZ+vU9HJ72Z1CFkR9AL9/54mFSXLOcyA3oPuPfl7Daf2Jr5vpbSwVIkoK21Jjeqaer1wDZvwFPxDJ1AMWm51dp8hTYJ9i8mkqGnH/qKGmqnSxFbQ57KkpXA+T0gRLDyoULFuKZegoWUJatq/aUlDIyMOcqFmeTFORGdo2tD/ZdigmqeUlNCTVAfEBx2RlE1FPwHNPGqqPHTC2itqxFFWhbyH40hsxTnZ6OV3Md1prBHs9RqQHytoFChuw9BJ5peCB1kVd0hxoYNUAOYcj7DHKu6iSHVFWEpAkZ4/StG+A1QPZDiBHT40MrlhgV6DOsKi3mWzyfvFbm8wP+DLFTtg5s1gCp2yZSZdODaTJYBR2pVKlsH9h9I6juIaMcrPtaWtQAOQawhOwP33dLSc2rQVED5FjBwivEV3H3Vm18L3wKR1YfuAZI3TaxHbiqdFnhFo9CNUtrMOy//b8AAwCR9eDLQBbJZgAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/binoculars.98aa4596.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFXSURBVHgBzVSLUcMwDBVM0A0wG3QDwgRkA7JBu0G8Ad0g2QA2yDFBR3CZIN0gyOGZuo5im5S79t29S+7p5yiyiK6MFXPLfGca5gAaaBVdgA2z9xI2TA36Bc2SQm8I7phFxK9AsQExWagRoCkfGjFNyrFckDwsUvjiXeBkW6KYj0KCgvmC90/mh+CzZx6Zz4JtTGxPUAm2BraeTj9e6vkWtgfBNiYeUEjStadpklupIof8DQphP7sT9A62EGeF7z2DvVRHIcDqB0H/gi0Kv8ABAWGQ1ctAt+9PNC2s8JQOOk7JZMw83aBQRT+tif2vgmZgJ0Tqd0nnu6iHFsKtkFnoxAnWND21g6KMS7qi+a9IwYAq5ejWRfbyotP+qnIDdgioM3w38N3RH9FmFHmFz54Woo0Uqb3kyQsXg2uXHUGFZA20li5M7uC2pJuUAdq/QiG5HeE13Qq+AW0ob2htvB5fAAAAAElFTkSuQmCC\"","module.exports = __webpack_public_path__ + \"static/media/closeButton.4ee55600.svg\";","module.exports = __webpack_public_path__ + \"static/media/tick.d96fc75d.svg\";","module.exports = __webpack_public_path__ + \"static/media/refresh.3b059483.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOsAAADvCAYAAAATmyPDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAgH0lEQVR42u2dd2BVVbaHf2ufW3LTQEPoWFBRERBJAkZagKgPR0UIiWIvYx2d0aeiIqMZ+/ieOo716dhRIEGxoCgmIaI8JJfYlQHsIJBQkpB+7z17vT+CPlRKyi3nnLu+vyQx95699/rOWvuUvQmC5amaNKoXKd2HNPUHcV/N6Eeg/iD0JmYPA91AUGB0B6BA6A6GAtBtl48xQdjxy78YtQBqAdQRqI6h64iomhkbmHgDw/jJpdX6tLT+m6m42JRRiD0kXWAN1mdn+xIS9GAmPZQJQwgYRqBBGtyHAE8MDy0I8NdgWg2ifzPrfytDrW5pML4csGJFs4ycyOpotowencKe1rGkKJNBQwEeCuBQAIaNmhEC8AWAVUTwM9ifXsNfUGVlUEZYZLUtm08YlkTamw3QGMU8WgPjYpwtI0UTAf/LTCVQ5vL0GqwUeUVWS8M5Oa4qd+N4Q9OJGjyegBEAXHHYFbUAloJ4kek23+iz+OMtEh0ia8xZN/lQb/fg/rnMmAbwFABp0iu/wgRoBZN+XbF6Lb20Yq10icgaNdZnZ/sSfKFcKMpn5lPx66uvwt6qD+ArYnoemp/rWe7fLD0iskaEqgmZo5WhLmXmPACJ0iNdzbh4l4A5LU2uV+QKs8jaZbbnZnQzoU5nxhUAjpYei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ji/KzTa0vIaAA8mZPtDFB9DYYj6w6fcHbTr1wJLKGmVFzzkrVrpYzGLhcsm00Sl08b2jz8Q9nvPq9dIjI2qVsy6a+lAnTIU9FhYtGAIs0aM4hihYXFxSb0iUia9jIeeb8hMbE+uOZkQ/gFMi6UB2llYF3CVTs9QUWLp/yer10icgacXbe/pkEcB7AUwDqIb2yW7YAvJiI3lTBhLfj7YquyGox8ovyjW9CofFKGScCPB5ABgBXnHZHiIBVYCrR4EWVa4b6UVioJUpEVksy7PlzkrzepmzWNAbEo9H2XLLXwXJ+CkIJgOWa1LLKguI6iQKR1bbyuj3No4mRCeJhDAyltocw7JZ9mwj4jAmVAD4iUh/pmv2+rLz0iaCMssjq7DmvqY8CeAiIhhIwjNsefewLICGWmRLAJgBrwVgHYC0U1hghrPP13fadXRYbE1mFqHBMUX46hXQfIh4AUn2IdD/W1I8U9YXWySBKAdAd4FQCGQDAbVemaZcM2Nr2c2oGuAVAM4BaENUy61oiqgWjFsBmgNZD0SbTbN1wqOGtktso1uD/AGKTL8uTv7kPAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA5LTI2VDA4OjU5OjU2KzAwOjAwcY0WSgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wOS0yNlQwODo1OTo1NiswMDowMADQrvYAAAAASUVORK5CYII=\"","module.exports = __webpack_public_path__ + \"static/media/filter-icon.7679e502.svg\";","module.exports = __webpack_public_path__ + \"static/media/slice3.1996ec13.svg\";","module.exports = __webpack_public_path__ + \"static/media/slice4.528ecbae.svg\";","module.exports = __webpack_public_path__ + \"static/media/slice-and-hand.a96adf3b.svg\";","module.exports = __webpack_public_path__ + \"static/media/burst.2cf6cb77.svg\";","module.exports = __webpack_public_path__ + \"static/media/star.3e3ccfab.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAeL0lEQVR4nO2df5BX1XXAP/fMd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P1nGXnzt/8d4eGFsY8hH6u0l9yP0r2jQEaT+83IbJvHfgV/Ir6qgODePpE6mstq1dOnyxZiBlUnbRmBnhdi29UKes3UeNKDVPTI7+LfkPGOl1OrWY7zkWlzjRK3G+L8j+w8RZUQlCZUw9lKSIe/B1VpF6PsbQLVkXk+au+ewkI9hRoET0ZBe7QgzbaVdxQmuxG1+w+tPWFpQDWaOqyM0khmbyp9L8rvZQ7VP+S8GTU39xLj+o4GaaI6MNfz/w2ofj2JPkmgDcbi2lFVcx753xT2n9W260444uvND3AcQASNoz8HvZNQDPE4iObl+SWwkSzZd5YC4A00VwV62qUZDRMfiObjGYJeqBuFuhuLQvRFND3xQnBPnLjQ+Dy8jQsQgzSgMfR/jd6WHAZ13Ss+bOXqLfsEeov/HuDBI89H3fdwkixADCLozZsxwJ+jDu4OS+5dT3hfgu6O59EdtB7SR8E9cnyysh8bnIQLUAYi9msW/q6tT5sfw0H0uuxrwBvl6cTehXehAP8P/T9OKPxe8GMAAAAASUVORK5CYII=\"","var map = {\n\t\"./apple-store-seeklogo.svg\": 55,\n\t\"./chevronLeftPlum.svg\": 63,\n\t\"./chevronRightPlum.svg\": 136,\n\t\"./closeIcon.svg\": 62,\n\t\"./facebook.svg\": 32,\n\t\"./google-play-seeklogo.svg\": 54,\n\t\"./instagram.svg\": 33,\n\t\"./linkedin.svg\": 137,\n\t\"./tiktok.svg\": 138,\n\t\"./twitter.svg\": 34,\n\t\"./youtube.svg\": 139\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 135;","module.exports = __webpack_public_path__ + \"static/media/chevronRightPlum.3fd3713f.svg\";","module.exports = __webpack_public_path__ + \"static/media/linkedin.425558eb.svg\";","module.exports = __webpack_public_path__ + \"static/media/tiktok.5044f4fa.svg\";","module.exports = __webpack_public_path__ + \"static/media/youtube.a8308bd0.svg\";","module.exports = __webpack_public_path__ + \"static/media/Refresh.e251b0fd.svg\";","module.exports = __webpack_public_path__ + \"static/media/roseFiligreeHeader.55a8f289.svg\";","module.exports = __webpack_public_path__ + \"static/media/honey_dew_ale_384.f2099ade.jpg\";","module.exports = __webpack_public_path__ + \"static/media/peroni_gluten_free_384.fb106561.jpg\";","module.exports = __webpack_public_path__ + \"static/media/peroni_gran_riserva_384_v2.d862893b.jpg\";","module.exports = __webpack_public_path__ + \"static/media/grecanico_chardonnay_384_v2.5958bb96.jpg\";","module.exports = __webpack_public_path__ + \"static/media/peroni_libera_384.d30d4869.jpg\";","export const GuidEmpty = '00000000-0000-0000-0000-000000000000';\r\n\r\nexport const Steps = {\r\n DEFAULT: 0,\r\n HOME: 1,\r\n RESTAURANT_SEARCH: 2,\r\n TABLE_PICKER: 3,\r\n BILL: 4,\r\n APPLY_GRATUITY: 5,\r\n PAY: 6,\r\n PAYMENT_CONFIRMATION: 7,\r\n APPLY_VOUCHER: 8,\r\n REGISTER: 9,\r\n FORGOTTEN_PASSWORD: 10,\r\n SPLIT_BILL_MENU: 11,\r\n SPLIT_BILL_NAME: 12,\r\n ORDER_OR_PAY: 13,\r\n PRE_ORDER_DATA_CAPTURE: 14,\r\n PRE_ORDER: 15,\r\n CONTENT_PAGE: 16\r\n};\r\n\r\nexport const GetStepName = (stepId) => {\r\n return Object.keys(Steps).find((step) => Steps[step] === stepId);\r\n}\r\n\r\nexport const SplitType = {\r\n None: 0,\r\n SplitByAmount: 1,\r\n SplitByItem: 2\r\n};","import { decorate, observable } from 'mobx';\r\n\r\nimport Cookies from 'js-cookie';\r\nimport React from 'react';\r\n\r\nimport { Steps, SplitType, GuidEmpty } from '../lib/constants';\r\n\r\nconst MILLISECONDS_PER_HOUR = 60 * 60 * 1000;\r\nconst HYDRATION_EXPIRY = 4 * MILLISECONDS_PER_HOUR;\r\n\r\nclass PaymentProcess extends React.Component {\r\n constructor() {\r\n super()\r\n this.activeStep = Steps.DEFAULT;\r\n this.previousSteps = [];\r\n this.postRegisterAction = () => { };\r\n this.bufferedAction = () => { };\r\n this.restaurantSearchCache = {};\r\n this.restaurant = null;\r\n this.tableNumber = 0;\r\n this.selectedSplitIndex = null;\r\n this.bill = null;\r\n this.billTotal = 0;\r\n this.billTotalWhenPaying = 0;\r\n this.discountTotal = 0;\r\n this.gratuityTotal = 0;\r\n this.grandTotal = 0;\r\n this.paymentFailed = false;\r\n this.paymentFailReason = null;\r\n this.paymentLoadingAnimation = false;\r\n this.submittingPayment = false;\r\n this.customer = null;\r\n this.mainCTAActive = false;\r\n this.mainCTAText = null;\r\n this.secondaryCTAActive = false;\r\n this.secondaryCTAText = '';\r\n this.errorModalEnabled = false;\r\n this.errorModalMessage = null;\r\n this.errorModalDisableTimeout = null;\r\n this.errorModalMessageClearTimeout = null;\r\n this.isRegistered = false;\r\n this.modalActive = null;\r\n this.modalTitle = '';\r\n this.modalMessage = '';\r\n this.modalVoucherCode = '';\r\n this.modalMainCTAText = '';\r\n this.modalSecondaryCTAText = '';\r\n this.cachedEmailAddress = '';\r\n this.socialCustomer = null;\r\n this.mainCTALoadingAnimationActive = false;\r\n this.secondaryCTALoadingAnimationActive = false;\r\n this.privacyPolicyAndTermsConditionsModal = null;\r\n this.privacyPolicyAndTermsConditionsModalMenu = null;\r\n this.termAndConditionsCopy = false;\r\n this.termAndConditionsMenuCopy = false;\r\n this.cookiesPolicyCopy = false;\r\n this.privacyPolicyCopy = false;\r\n this.splitBillSessionToken = null;\r\n this.assignedSplitIndex = null;\r\n this.sourceIsApp = false;\r\n this.appPlatform = null;\r\n this.externalConfig = null;\r\n this.refreshButtonLoading = false;\r\n this.optingInAtCheckout = false;\r\n this.optedOutAtCheckout = false;\r\n this.isOrderJourney = false;\r\n this.isCheckInJourney = false;\r\n this.dataCaptureStatus = {};\r\n this.brandTermConditions = false;\r\n this.culture ={\r\n symbol:\"\",\r\n language:\"\",\r\n currency:\"\"\r\n };\r\n this.canSignup = true;\r\n this.hasSocialLinks = true;\r\n this.companyName = \"PizzaExpress\";\r\n this.returnHref = \"http://www.pizzaexpress.com\";\r\n this.cookiesAccepted = false;\r\n this.homePageImage = \"PE_Truant_Updated_Homepage.jpg\";\r\n this.applySoftOptIn = true;\r\n this.swipeableModalPosition = '-100%';\r\n this.swipeable = false;\r\n this.slideOutAnimation = false;\r\n this.digitalMenuOffsetHeight = null;\r\n this.appFooterHeight = null;\r\n this.appHeaderHeight = null;\r\n }\r\n\r\n mainCTA() {\r\n return;\r\n };\r\n\r\n secondaryCTA() {\r\n return;\r\n };\r\n\r\n mainModalCTA() {\r\n return;\r\n };\r\n\r\n setMainModalCTA(callback) {\r\n this.mainModalCTA = callback;\r\n };\r\n\r\n setupMainModal({ title, voucherCode, message, mainCTAText, secondaryCTAText }) {\r\n this.modalTitle = title || null;\r\n this.modalVoucherCode = voucherCode || null;\r\n this.modalMessage = message || null;\r\n this.modalMainCTAText = mainCTAText;\r\n this.modalSecondaryCTAText = secondaryCTAText;\r\n }\r\n\r\n enableMainModal() {\r\n this.modalActive = true;\r\n }\r\n\r\n disableMainModal() {\r\n this.modalActive = false;\r\n this.closeSlideUpModal();\r\n }\r\n\r\n setSelectedSplitIndex(selectedSplitIndex) {\r\n this.selectedSplitIndex = selectedSplitIndex;\r\n if (selectedSplitIndex === null) {\r\n this.setBillTotal(this.bill[0].outstandingBalance);\r\n this.setDiscountTotal(this.bill[0].totalDiscounts);\r\n } else {\r\n this.updateBillTotalAndSplit();\r\n }\r\n if (this.activeStep === Steps.BILL) {\r\n this.updateBillCTAs();\r\n }\r\n }\r\n\r\n setBill(bills) {\r\n this.bill = bills;\r\n\r\n this.updateBillTotalAndSplit();\r\n this.setGrandTotal();\r\n\r\n if (this.activeStep === Steps.BILL) {\r\n this.updateBillCTAs();\r\n }\r\n }\r\n\r\n updateBillTotalAndSplit() {\r\n let splits = !!this.bill[0].splitBill\r\n ? this.bill[0].splitBill.splits\r\n : null;\r\n let numberOfSplits = splits.length;\r\n\r\n if (\r\n numberOfSplits > 0 &&\r\n this.selectedSplitIndex !== null &&\r\n !!splits[this.selectedSplitIndex] &&\r\n this.bill[0].splitBill.splitType !== SplitType.None\r\n ) {\r\n if (splits[this.selectedSplitIndex].paid === true) {\r\n this.setBillTotal(0);\r\n } else {\r\n var splitBalance = splits[this.selectedSplitIndex].amount;\r\n this.setBillTotal(splitBalance);\r\n }\r\n var discountTotal = splits[this.selectedSplitIndex].discountAmount;\r\n this.setDiscountTotal(discountTotal)\r\n } else {\r\n this.selectedSplitIndex = null;\r\n this.setBillTotal(this.bill[0].outstandingBalance);\r\n this.setDiscountTotal(this.bill[0].totalDiscounts)\r\n }\r\n\r\n if (this.bill[0].splitBill.splitType === SplitType.None) {\r\n this.assignedSplitIndex = null;\r\n }\r\n }\r\n\r\n setDiscountTotal(value) {\r\n this.discountTotal = value;\r\n }\r\n\r\n setBillTotal(value) {\r\n this.billTotal = value;\r\n }\r\n\r\n setGratuityTotal(value) {\r\n this.gratuityTotal = value;\r\n }\r\n\r\n setGrandTotal() {\r\n this.grandTotal = (\r\n parseFloat(this.billTotal) + parseFloat(this.gratuityTotal)\r\n ).toFixed(2);\r\n }\r\n\r\n clearPreviousSteps() {\r\n this.previousSteps = [];\r\n }\r\n\r\n goToStep(step) {\r\n if (!(step >= 0)) throw new Error(`goToStep was passed invalid parameter (${step}) in PaymentProcess`)\r\n\r\n this.mainCTAActive = false;\r\n this.previousSteps.push(this.activeStep);\r\n this.activeStep = step;\r\n }\r\n\r\n goToStepWithoutHistory(step) {\r\n this.mainCTAActive = false;\r\n this.activeStep = step;\r\n }\r\n\r\n setBufferedAction(bufferedAction) {\r\n this.bufferedAction = bufferedAction;\r\n }\r\n\r\n useBufferedAction() {\r\n if (this.bufferedAction !== null) {\r\n this.bufferedAction();\r\n this.bufferedAction = null;\r\n }\r\n }\r\n\r\n setPostRegisterAction(postRegisterAction) {\r\n this.postRegisterAction = postRegisterAction;\r\n }\r\n\r\n usePostRegisterAction() {\r\n if (this.postRegisterAction !== null) {\r\n this.postRegisterAction();\r\n this.postRegisterAction = null;\r\n }\r\n }\r\n\r\n popStep() {\r\n this.mainCTAActive = false;\r\n if (this.previousSteps.length > 0) {\r\n this.activeStep = this.previousSteps.pop();\r\n }\r\n }\r\n\r\n resetToBillStepPayAtTable() {\r\n this.activeStep = Steps.BILL;\r\n this.previousSteps = [\r\n Steps.HOME,\r\n Steps.RESTAURANT_SEARCH,\r\n Steps.TABLE_PICKER\r\n ];\r\n }\r\n\r\n selectRestaurant(restaurant) {\r\n if (restaurant !== this.restaurant) {\r\n this.tableNumber = 0;\r\n }\r\n if (restaurant) {\r\n this.restaurant = restaurant;\r\n }\r\n }\r\n\r\n cacheRestaurantSearch(data) {\r\n if (data) {\r\n this.restaurantSearchCache = data;\r\n }\r\n }\r\n\r\n selectTableNumber(tableNumber) {\r\n if (tableNumber) {\r\n this.tableNumber = tableNumber;\r\n }\r\n }\r\n\r\n startRefreshBillCycle() {\r\n if (\r\n this.activeStep >= Steps.BILL &&\r\n this.activeStep <= Steps.PAY &&\r\n this.submittingPayment !== true &&\r\n !!this.restaurant &&\r\n !!this.restaurant.id &&\r\n !!this.tableNumber &&\r\n !!this.bill && this.bill[0]\r\n ) {\r\n fetch(`api/Bill/LookupCache/${this.bill[0].providerId}/${this.restaurant.id}/${this.tableNumber}`) \r\n .then(response => {\r\n if (response.status === 200) {\r\n return response\r\n .json()\r\n .catch(err => {\r\n return null;\r\n })\r\n .then(data => {\r\n let bills = data.bills;\r\n\r\n if (!!bills && bills.length > 0) {\r\n this.setBill(bills);\r\n\r\n setTimeout(() => this.startRefreshBillCycle(), 2.5 * 1000);\r\n } else {\r\n this.popStep();\r\n this.setErrorModalMessage('Bill no longer available');\r\n }\r\n });\r\n }\r\n })\r\n .catch(err => {\r\n setTimeout(() => this.startRefreshBillCycle(), 7.5 * 1000);\r\n });\r\n }\r\n }\r\n\r\n paymentSuccessful(data) {\r\n var paymentResponse = data.payment;\r\n if (\r\n paymentResponse.billPaid.paymentStatus === 2 ||\r\n (paymentResponse.billPaid.paymentStatus === 1 &&\r\n paymentResponse.billPaid.splitBill.splits.length > 0)\r\n ) {\r\n this.billTotalWhenPaying = this.billTotal;\r\n\r\n let bill = this.bill;\r\n bill[0] = paymentResponse.billPaid;\r\n this.setBill(bill);\r\n\r\n this.previousSteps = [];\r\n this.isRegistered = !!data.isRegistered && data.isRegistered;\r\n this.activeStep = Steps.PAYMENT_CONFIRMATION;\r\n this.setAssignedSplitIndex(null);\r\n this.setSelectedSplitIndex(null);\r\n } else {\r\n this.setErrorModalMessage(\r\n 'Your payment was successful, but your bill has not been completely settled'\r\n );\r\n let bill = this.bill;\r\n bill[0] = paymentResponse.billPaid;\r\n this.setBill(bill);\r\n while (this.activeStep !== Steps.BILL) {\r\n this.popStep();\r\n }\r\n this.startRefreshBillCycle();\r\n }\r\n\r\n this.submittingPayment = false;\r\n }\r\n\r\n submitPayment() {\r\n this.submittingPayment = true;\r\n this.paymentFailed = false;\r\n this.paymentFailReason = null;\r\n this.paymentLoadingAnimation = true;\r\n this.mainCTAActive = false;\r\n }\r\n\r\n submitPaymentFail(reason = null) {\r\n this.submittingPayment = false;\r\n this.paymentFailed = true;\r\n this.paymentFailReason = reason;\r\n this.paymentLoadingAnimation = false;\r\n this.mainCTAActive = true;\r\n this.startRefreshBillCycle();\r\n }\r\n\r\n submitPaymentCancel() {\r\n this.submittingPayment = false;\r\n this.mainCTAActive = true;\r\n }\r\n\r\n startedLoadingPaymentForm() {\r\n this.paymentLoadingAnimation = true;\r\n this.paymentFailed = false;\r\n this.paymentFailReason = null;\r\n }\r\n\r\n pausePaymentLoadingAnimation() {\r\n this.paymentLoadingAnimation = false;\r\n }\r\n\r\n unpausePaymentLoadingAnimation() {\r\n this.paymentLoadingAnimation = true;\r\n }\r\n\r\n finishedPaymentLoadingAnimation() {\r\n this.paymentLoadingAnimation = false;\r\n }\r\n\r\n startMainCTALoadingAnimation() {\r\n this.mainCTALoadingAnimationActive = true;\r\n }\r\n\r\n stopMainCTALoadingAnimation() {\r\n this.mainCTALoadingAnimationActive = false;\r\n }\r\n\r\n startSecondaryCTALoadingAnimation() {\r\n this.secondaryCTALoadingAnimationActive = true;\r\n }\r\n\r\n stopSecondaryCTALoadingAnimation() {\r\n this.secondaryCTALoadingAnimationActive = false;\r\n }\r\n\r\n termAndConditionsModal() {\r\n this.privacyPolicyAndTermsConditionsModal = true;\r\n this.termAndConditionsCopy = true;\r\n }\r\n\r\n privacyPolicyModal() {\r\n this.privacyPolicyAndTermsConditionsModal = true;\r\n this.privacyPolicyCopy = true;\r\n }\r\n\r\n termAndConditionsWebModalMenu() {\r\n this.privacyPolicyAndTermsConditionsModalMenu = true;\r\n this.termAndConditionsCopy = true;\r\n }\r\n\r\n privacyPolicyWebModalMenu() {\r\n this.privacyPolicyAndTermsConditionsModalMenu = true;\r\n this.privacyPolicyCopy = true;\r\n }\r\n\r\n termAndConditionsModalMenu() {\r\n this.privacyPolicyAndTermsConditionsModalMenu = true;\r\n this.termAndConditionsMenuCopy = true;\r\n }\r\n\r\n cookiePolicyModal() {\r\n this.privacyPolicyAndTermsConditionsModalMenu = true;\r\n this.cookiesPolicyCopy = true;\r\n }\r\n\r\n closePrivacyPolicyTermsAndConditionsModal() {\r\n this.privacyPolicyAndTermsConditionsModalMenu = null;\r\n this.privacyPolicyAndTermsConditionsModal = null;\r\n this.termAndConditionsMenuCopy = false;\r\n this.termAndConditionsCopy = false;\r\n this.privacyPolicyCopy = false;\r\n this.cookiesPolicyCopy = false;\r\n }\r\n\r\n hasAcceptedCookies() {\r\n let acceptCookie = Cookies.get('PAT_ACCEPT_COOKIES');\r\n if (!!acceptCookie) {\r\n return acceptCookie == 'true';\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n\r\n loginAsGuest() {\r\n this.customer = null;\r\n }\r\n\r\n loginAsCustomer(data) {\r\n const {\r\n customerSessionToken: {\r\n pizzaExpressId,\r\n emailAddress,\r\n token\r\n },\r\n title,\r\n firstName,\r\n lastName,\r\n vaultId,\r\n emailOptIn,\r\n favouriteRestaurants\r\n } = data;\r\n\r\n this.setOptingInAtCheckout(false);\r\n this.setOptedOutAtCheckout(false);\r\n this.customer = {\r\n id: pizzaExpressId,\r\n vaultId: vaultId,\r\n emailOptIn: emailOptIn,\r\n emailAddress: emailAddress,\r\n token: token,\r\n title: title,\r\n firstName: firstName,\r\n lastName: lastName,\r\n favouriteRestaurants: favouriteRestaurants,\r\n };\r\n }\r\n\r\n setCustomer({\r\n id,\r\n title,\r\n firstName,\r\n lastName,\r\n emailAddress,\r\n emailOptIn,\r\n vaultId,\r\n token,\r\n favouriteRestaurants\r\n }) {\r\n this.setOptingInAtCheckout(false);\r\n this.setOptedOutAtCheckout(false);\r\n this.customer = {\r\n id,\r\n title,\r\n firstName,\r\n lastName,\r\n emailAddress,\r\n emailOptIn,\r\n vaultId,\r\n token,\r\n favouriteRestaurants,\r\n };\r\n }\r\n\r\n\r\n logout() {\r\n this.customer = null;\r\n Cookies.remove('USER_SESSION_TOKEN', { domain: '.pizzaexpress.com' });\r\n Cookies.remove('UAT_USER_SESSION_TOKEN', { domain: '.pizzaexpress.com' });\r\n }\r\n\r\n setMainCTA(callback) {\r\n this.mainCTA = callback;\r\n this.mainCTAActive = true;\r\n };\r\n\r\n setMainCTAText(value) {\r\n this.mainCTAText = value;\r\n };\r\n\r\n setSecondaryCTA(callback) {\r\n this.secondaryCTA = callback;\r\n this.enableSecondaryCTA();\r\n };\r\n\r\n setSecondaryCTAText(text) {\r\n this.secondaryCTAText = text;\r\n };\r\n\r\n enableMainCTA() {\r\n this.mainCTAActive = true;\r\n };\r\n\r\n disableMainCTA() {\r\n this.mainCTAActive = false;\r\n };\r\n\r\n enableSecondaryCTA() {\r\n this.secondaryCTAActive = true;\r\n };\r\n\r\n disableSecondaryCTA() {\r\n this.secondaryCTAActive = false;\r\n };\r\n\r\n setGratuitySliderValue(value) {\r\n this.gratuitySliderValue = value;\r\n }\r\n\r\n setErrorModalMessage(message) {\r\n this.errorModalEnabled = true;\r\n this.errorModalMessage = message;\r\n if (!!this.errorModalDisableTimeout) {\r\n window.clearTimeout(this.errorModalDisableTimeout);\r\n }\r\n if (!!this.errorModalMessageClearTimeout) {\r\n window.clearTimeout(this.errorModalMessageClearTimeout);\r\n }\r\n\r\n this.errorModalDisableTimeout = setTimeout(() => {\r\n this.disableErrorModal();\r\n }, 10 * 1000);\r\n }\r\n\r\n disableErrorModal() {\r\n if (!!this.errorModalDisableTimeout) {\r\n window.clearTimeout(this.errorModalDisableTimeout);\r\n }\r\n if (!!this.errorModalMessageClearTimeout) {\r\n window.clearTimeout(this.errorModalMessageClearTimeout);\r\n }\r\n setTimeout(() => {\r\n this.errorModalEnabled = false;\r\n this.errorModalMessageClearTimeout = setTimeout(\r\n () => (this.errorModalMessage = null),\r\n 1.1 * 1000\r\n );\r\n this.clearSlideUpModalContents();\r\n }, 300)\r\n }\r\n\r\n storeVaultId(vaultId) {\r\n this.customer.vaultId = vaultId;\r\n }\r\n\r\n storeCustomerEmail(emailAddress) {\r\n if (this.customer == null || (!!this.customer && !this.customer.id)) {\r\n this.customer = {\r\n emailAddress\r\n };\r\n }\r\n }\r\n\r\n generatePaymentBody(\r\n payload,\r\n emailAddress = null,\r\n storeInVault = false\r\n ) {\r\n \r\n //there are two types of optin journey soft opt in which askes to optout and the original which asks to opt in\r\n \r\n var isOptedIn = this.applySoftOptIn?!this.optedOutAtCheckout: this.optingInAtCheckout;\r\n\r\n const result = JSON.stringify({\r\n PaymentMethodNonce: payload.nonce,\r\n Bill: this.bill[0],\r\n ProviderId: this.bill[0]?.providerId,\r\n GrandTotal: this.grandTotal,\r\n BillTotal: this.billTotal,\r\n GratuityTotal: this.gratuityTotal,\r\n Customer:\r\n !!this.customer && !!this.customer.id && !!this.customer.emailAddress\r\n ? this.customer\r\n : { emailAddress },\r\n VaultId: !!this.customer?.vaultId || null,\r\n Restaurant: this.restaurant,\r\n StoreCardInVault: storeInVault,\r\n SplitIndex: this.selectedSplitIndex,\r\n OptIn: isOptedIn,\r\n MerchantAccountId: 'PizzaExpressMobile', // TODO(john): Put in restaurant object\r\n SourceIsApp: this.sourceIsApp,\r\n LoggedIn: !!this.customer && !!this.customer.id && !!this.customer.emailAddress,\r\n TableNumber: this.tableNumber\r\n });\r\n return result;\r\n }\r\n\r\n setCachedEmailAddress(emailAddress) {\r\n this.cachedEmailAddress = emailAddress;\r\n }\r\n\r\n resetIsRegistered() {\r\n this.isRegistered = false;\r\n }\r\n\r\n setIsRegistered() {\r\n this.isRegistered = true;\r\n }\r\n\r\n setSocialCustomer(profile) {\r\n this.socialCustomer = profile;\r\n }\r\n\r\n setSplitBillSessionToken(value) {\r\n this.splitBillSessionToken = value;\r\n }\r\n\r\n setAssignedSplitIndex(value) {\r\n this.assignedSplitIndex = value;\r\n }\r\n\r\n async refreshTable(updateLoadingAnimation = true) {\r\n if (updateLoadingAnimation) this.startRefreshButtonLoading();\r\n if (this.restaurant == null || this.bill == null) {\r\n return;\r\n }\r\n\r\n let restaurantId = this.restaurant.id;\r\n let tableNumber = this.tableNumber;\r\n let providerId = this.bill[0].providerId;\r\n let response = await fetch(`api/Bill/RefreshTable/${providerId}/${restaurantId}/${tableNumber}`);\r\n if (response.status === 200) {\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n\r\n const { success, bills } = data;\r\n if (success === true) {\r\n this.setBill(bills);\r\n }\r\n }\r\n if (updateLoadingAnimation) this.stopRefreshButtonLoading();\r\n }\r\n\r\n updateBillCTAs() {\r\n if (this.billTotal > 0) {\r\n this.enableMainCTA();\r\n } else {\r\n this.disableMainCTA();\r\n }\r\n\r\n this.stopRefreshButtonLoading();\r\n let mainCTAActive =\r\n !!this.bill && !!this.bill[0] && this.bill[0].outstandingBalance > 0;\r\n if (mainCTAActive === true) {\r\n let bill = this.bill[0];\r\n\r\n let splitBillOpen =\r\n !!bill.splitBill &&\r\n !!bill.splitBill.splits &&\r\n bill.splitBill.splitType !== SplitType.None;\r\n\r\n if (splitBillOpen) {\r\n let splitBill = bill.splitBill;\r\n if (bill.payments.length > 0) {\r\n this.setSecondaryCTA(() =>\r\n this.setErrorModalMessage(\r\n 'You cannot cancel a split bill once payments have been made.'\r\n )\r\n );\r\n this.disableSecondaryCTA();\r\n } else {\r\n this.setSecondaryCTA(() => this.openCancelSplitModal());\r\n }\r\n this.setSecondaryCTAText('Cancel Split');\r\n\r\n if (this.selectedSplitIndex === null) {\r\n if (this.assignedSplitIndex === null) {\r\n this.setMainCTAText('Join split bill');\r\n if (\r\n bill.splitBill.splitType === SplitType.SplitByItem ||\r\n bill.splitBill.splits.some(s => s.sessionToken === GuidEmpty)\r\n ) {\r\n this.setMainCTA(() => this.goToStep(Steps.SPLIT_BILL_NAME));\r\n } else {\r\n this.setMainCTA(() =>\r\n this.setErrorModalMessage('All splits have been assigned')\r\n );\r\n this.disableMainCTA();\r\n }\r\n } else {\r\n this.setMainCTAText('Go to my bill');\r\n this.setMainCTA(() => this.setSelectedSplitIndex(this.assignedSplitIndex));\r\n }\r\n } else {\r\n if (this.billTotal > 0) {\r\n if (this.selectedSplitIndex !== this.assignedSplitIndex) {\r\n this.setMainCTA(this.openPayOtherSplitModal);\r\n } else {\r\n this.setMainCTA(this.checkoutButtonHandler);\r\n }\r\n this.setMainCTAText(this.getCheckoutCTAText());\r\n } else if (\r\n splitBill.splitType === SplitType.SplitByItem &&\r\n splitBill.splits[this.selectedSplitIndex].paid === false\r\n ) {\r\n this.setMainCTAText('No items selected.');\r\n } else {\r\n this.setMainCTAText('Payment complete.');\r\n }\r\n }\r\n } else {\r\n this.setSecondaryCTA(this.splitBillMenuButtonHandler);\r\n this.setMainCTAText(this.getCheckoutCTAText());\r\n this.setMainCTA(this.checkoutButtonHandler);\r\n this.setSecondaryCTAText('Split Bill');\r\n this.enableSecondaryCTA();\r\n }\r\n } else {\r\n this.disableSecondaryCTA();\r\n }\r\n }\r\n\r\n openPayOtherSplitModal() {\r\n this.modalActive = true;\r\n this.modalTitle = 'Pay other split';\r\n this.modalMessage =\r\n \"You are about to pay for someone else's split. Are you sure you want to proceed?\";\r\n this.modalMainCTAText = 'Yes';\r\n this.modalSecondaryCTAText = 'No';\r\n this.setMainModalCTA(this.checkoutButtonHandler);\r\n }\r\n\r\n showEatOutToHelpOutPage() {\r\n const { providerValues } = this.bill[0];\r\n var eatOutToHelpOutEnabled = providerValues[\"EatOutToHelpOutEnabled\"] === 'True';\r\n if (!eatOutToHelpOutEnabled) {\r\n return false;\r\n }\r\n\r\n var eatOutToHelpOutDiscountFound = providerValues[\"EatOutToHelpOutDiscountFound\"] === 'True';\r\n if (eatOutToHelpOutDiscountFound) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n checkoutButtonHandler() {\r\n if (this.showEatOutToHelpOutPage()) {\r\n this.setBufferedAction(() => this.popStep())\r\n this.goToStep(Steps.CONTENT_PAGE);\r\n } else {\r\n this.goToStep(Steps.APPLY_GRATUITY)\r\n }\r\n }\r\n\r\n splitBillMenuButtonHandler() {\r\n if (this.showEatOutToHelpOutPage()) {\r\n this.setBufferedAction(() => this.popStep())\r\n this.goToStep(Steps.CONTENT_PAGE);\r\n } else {\r\n this.goToStep(Steps.SPLIT_BILL_MENU)\r\n }\r\n }\r\n\r\n openCancelSplitModal() {\r\n this.modalActive = true;\r\n this.modalTitle = 'Cancel Split';\r\n this.modalMessage =\r\n 'This will remove all split bills on your table. Are you sure you want to proceed?';\r\n this.modalMainCTAText = 'Yes';\r\n this.modalSecondaryCTAText = 'No';\r\n const deleteCardCallback = () => {\r\n fetch(\r\n `api/Bill/CancelSplitBill/${this.bill[0].providerId}/${this.restaurant.id}/${this.tableNumber}/`\r\n )\r\n .then(response => response.json())\r\n .catch(err => {\r\n console.error(err);\r\n })\r\n .then(data => {\r\n if (!!data && data.success === true) {\r\n this.setBill(data.bills);\r\n } else {\r\n this.setErrorModalMessage(data.reason);\r\n }\r\n });\r\n };\r\n this.setMainModalCTA(deleteCardCallback);\r\n }\r\n\r\n getCheckoutCTAText() {\r\n var text = `Checkout ${this.getCurrency().symbol + parseFloat(this.billTotal).toFixed(2)}`;\r\n return text;\r\n }\r\n\r\n setSourceIsAppTrue() {\r\n this.sourceIsApp = true;\r\n }\r\n\r\n setAppPlatform(platform) {\r\n this.appPlatform = platform;\r\n }\r\n\r\n useSetup(data) {\r\n this.externalConfig = data;\r\n }\r\n\r\n startRefreshButtonLoading() {\r\n this.refreshButtonLoading = true;\r\n }\r\n\r\n stopRefreshButtonLoading() {\r\n this.refreshButtonLoading = false;\r\n }\r\n\r\n setOptingInAtCheckout(value) {\r\n this.optingInAtCheckout = value;\r\n }\r\n setOptedOutAtCheckout(value) {\r\n this.optedOutAtCheckout = value;\r\n }\r\n \r\n setIsOrderJourney(value) {\r\n this.isOrderJourney = value;\r\n }\r\n setIsCheckInJourney(value) {\r\n this.isCheckInJourney = value;\r\n }\r\n \r\n\r\n getBasket() {\r\n const baskets = localStorage.getItem('baskets');\r\n if (!baskets) return [];\r\n\r\n const data = JSON.parse(baskets)[this.restaurant.id];\r\n if (!data) return [];\r\n\r\n const { basket, updated } = data;\r\n if ((Date.now() - updated) > 172800000) return [];\r\n\r\n return basket;\r\n }\r\n\r\n setBasket(value) {\r\n const data = { basket: value, updated: Date.now() }\r\n let baskets = localStorage.getItem('baskets');\r\n if (!baskets) baskets = {}\r\n else baskets = JSON.parse(baskets);\r\n baskets[this.restaurant.id] = data;\r\n localStorage.setItem('baskets', JSON.stringify(baskets));\r\n }\r\n\r\n setDataCaptureStatusForCurrentRestaurant(value) {\r\n const data = { status: value, updated: Date.now() }\r\n const localItem = localStorage.getItem('trackTrace');\r\n\r\n let dataCaptureStatus = {};\r\n if (!!localItem) dataCaptureStatus = JSON.parse(localItem);\r\n\r\n dataCaptureStatus[this.restaurant.id] = data;\r\n\r\n localStorage.setItem('trackTrace', JSON.stringify(dataCaptureStatus));\r\n }\r\n\r\n getDataCaptureStatusForCurrentRestaurant() {\r\n if(this.isCheckInJourney){\r\n const localItem = localStorage.getItem('trackTrace');\r\n if (!localItem) return null;\r\n \r\n const data = JSON.parse(localItem)[this.restaurant.id];\r\n if (!data) return null;\r\n \r\n const { status, updated } = data;\r\n if ((Date.now() - updated) > HYDRATION_EXPIRY) return null;\r\n \r\n return status;\r\n }\r\n \r\n return false;\r\n }\r\n\r\n setCurrency(data){\r\n this.culture = data;\r\n }\r\n getCurrency(){\r\n return this.culture;\r\n }\r\n setCanSignup(value){\r\n this.canSignup = value\r\n }\r\n getCanSignup(){\r\n return this.canSignup;\r\n }\r\n setHasSocialLinks(value){\r\n this.hasSocialLinks = value\r\n }\r\n getHasSocialLinks(){\r\n return this.hasSocialLinks;\r\n }\r\n setComanyName(value){\r\n this.companyName = value\r\n }\r\n getCompanyName(){\r\n return this.companyName;\r\n }\r\n setApplySoftOtIn(value){\r\n this.applySoftOptIn = value\r\n }\r\n getApplySoftOptIn(){\r\n return this.applySoftOptIn;\r\n }\r\n setReturnHref(value){\r\n this.returnHref = value\r\n }\r\n getReturnHref(){\r\n return this.returnHref;\r\n }\r\n getHomePageImage(){\r\n return this.homePageImage;\r\n }\r\n clearSlideUpModalContents() {\r\n this.slideModalTitleBackground = '';\r\n this.slideModalHeaderTitle = null;\r\n this.slideModalHeaderText = null;\r\n this.slideModalTitle = '';\r\n this.slideModalIconBtn = false;\r\n this.slideModalSecondaryCTAText = '';\r\n this.disableSecondaryModalCta = false;\r\n this.slideModalPrimaryCTAText = '';\r\n this.slideUpModalTable = null;\r\n this.slideUpModalWaiterMessage = false;\r\n this.slideModalBtnColumn = false;\r\n this.slideModalBtnColumnCustomClasses = '';\r\n this.slideOutAnimation = false;\r\n this.swipeableModalPosition = '-100%';\r\n this.modalMessage = '';\r\n }\r\n\r\n closeSlideUpModal() {\r\n this.slideOutAnimation = true;\r\n setTimeout(() => {\r\n this.slideUpModal = false;\r\n this.clearSlideUpModalContents();\r\n }, 300)\r\n }\r\n\r\n setSwipeable(value) {\r\n this.swipeable = value;\r\n }\r\n\r\n setDragDownModal(value) {\r\n this.swipeableModalPosition = value;\r\n }\r\n\r\n setDigitalMenuOffset(value) {\r\n this.digitalMenuOffsetHeight = value\r\n }\r\n\r\n setAppFooterHeight(value) {\r\n this.appFooterHeight = value\r\n }\r\n\r\n setAppHeaderHeight(value) {\r\n this.appHeaderHeight = value\r\n }\r\n\r\n\r\n}\r\n\r\ndecorate(PaymentProcess, {\r\n activeStep: observable,\r\n customer: observable,\r\n grandTotal: observable,\r\n previousSteps: observable,\r\n footerStub: observable,\r\n billTotal: observable,\r\n discountTotal: observable,\r\n gratuityTotal: observable,\r\n paymentLoadingAnimation: observable,\r\n selectedSplitIndex: observable,\r\n bill: observable,\r\n mainCTAActive: observable,\r\n mainCTAText: observable,\r\n mainCTA: observable,\r\n secondaryCTAActive: observable,\r\n secondaryCTAText: observable,\r\n secondaryCTALoading: observable,\r\n errorModalMessage: observable,\r\n errorModalEnabled: observable,\r\n submittingPayment: observable,\r\n paymentFailed: observable,\r\n paymentFailReason: observable,\r\n isRegistered: observable,\r\n modalActive: observable,\r\n modalTitle: observable,\r\n modalMessage: observable,\r\n modalVoucherCode: observable,\r\n modalMainCTAText: observable,\r\n modalSecondaryCTAText: observable,\r\n mainCTALoadingAnimationActive: observable,\r\n secondaryCTALoadingAnimationActive: observable,\r\n privacyPolicyAndTermsConditionsModal: observable,\r\n privacyPolicyAndTermsConditionsModalMenu: observable,\r\n cookiesAccepted: observable,\r\n splitBillSessionToken: observable,\r\n assignedSplitIndex: observable,\r\n refreshButtonLoading: observable,\r\n isOrderJourney: observable,\r\n isCheckInJourney: observable,\r\n setComanyName: observable,\r\n setApplySoftOtIn:observable,\r\n setDigitalMenuOffset: observable,\r\n digitalMenuOffsetHeight: observable,\r\n swipeableModalPosition: observable,\r\n setAppFooterHeight: observable,\r\n appFooterHeight: observable,\r\n setAppHeaderHeight: observable,\r\n appHeaderHeight: observable,\r\n});\r\n\r\nexport default new PaymentProcess();\r\n","import React from 'react';\r\nimport PaymentProcess from '../processes/PaymentProcess';\r\n\r\nimport { observer } from 'mobx-react';\r\n\r\nconst withAppState = (WrappedComponent, { mobXProps, mobXActions }) => {\r\n const withAppStateComponent = class extends React.Component {\r\n render() {\r\n let innerProps = { ...this.props };\r\n\r\n if (mobXProps) {\r\n const resolvedMobXProps = mobXProps(PaymentProcess);\r\n Object.keys(resolvedMobXProps).forEach(key => {\r\n if (innerProps[key]) throw new Error(`duplicate prop ${key} in withAppState`)\r\n innerProps[key] = resolvedMobXProps[key];\r\n if (innerProps[key] === undefined) {\r\n throw new Error(`withAppState did not find prop ${key} in PaymentProcess`)\r\n }\r\n if (typeof innerProps[key] === \"function\") {\r\n throw new Error(`withAppState was passed a function as a prop ${key} in PaymentProcess`)\r\n }\r\n });\r\n }\r\n \r\n if (mobXActions) {\r\n const resolvedMobXActions = mobXActions(PaymentProcess);\r\n Object.keys(resolvedMobXActions).forEach(key => {\r\n if (innerProps[key]) throw new Error(`duplicate action ${key} in withAppState`)\r\n innerProps[key] = resolvedMobXActions[key]\r\n if (innerProps[key]) {\r\n innerProps[key] = innerProps[key].bind(PaymentProcess);\r\n } else {\r\n throw new Error(`withAppState did not find action ${key} in PaymentProcess`)\r\n }\r\n if (typeof innerProps[key] !== \"function\") {\r\n throw new Error(`withAppState was passed a prop as a function ${key} in PaymentProcess`)\r\n }\r\n });\r\n }\r\n\r\n return \r\n }\r\n }\r\n\r\n return observer(withAppStateComponent);\r\n}\r\n\r\nexport default withAppState;","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\nimport { Steps } from '../lib/constants';\r\n\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faChevronLeft, faTimes } from '@fortawesome/free-solid-svg-icons';\r\nimport chevronLeft from '../assets/img/chevronLeft.svg'\r\n\r\nconst arrowLeft = ;\r\nconst elementClose = ;\r\n\r\nclass TopBanner extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n backDisabled: false\r\n };\r\n }\r\n\r\n openModal() {\r\n this.props.setMainModalCTA(() => {\r\n this.props.popStep();\r\n });\r\n\r\n const title = 'Are you sure you want to go back?';\r\n const mainCTAText = 'Confirm';\r\n const secondaryCTAText = 'Cancel';\r\n\r\n this.props.setupMainModal({ title, mainCTAText, secondaryCTAText });\r\n this.props.enableMainModal();\r\n }\r\n\r\n componentDidMount() {\r\n window.addEventListener('resize', () => {\r\n this.forceUpdate();\r\n });\r\n }\r\n\r\n render() {\r\n let restaurantNameTitle = [];\r\n let contentTableNumber = [];\r\n var tableSelected = false;\r\n this.props.activeStep > Steps.TABLE_PICKER &&\r\n !!this.props.tableNumber\r\n ? (tableSelected = true)\r\n : (tableSelected = false);\r\n\r\n if (tableSelected) {\r\n var isAfterSelectTable = this.props.previousSteps.includes(\r\n Steps.TABLE_PICKER\r\n );\r\n\r\n contentTableNumber.push(\r\n \r\n

\r\n Table \r\n {this.props.bill &&\r\n this.props.bill.length > 0 &&\r\n this.props.bill[0] &&\r\n this.props.bill[0].providerValues['TableNumber']}\r\n

\r\n \r\n );\r\n } else {\r\n }\r\n\r\n if (\r\n this.props.activeStep > Steps.RESTAURANT_SEARCH &&\r\n !!this.props.restaurant &&\r\n !!this.props.restaurant.name\r\n ) {\r\n restaurantNameTitle.push(\r\n

\r\n {this.props.restaurant.name}\r\n

\r\n );\r\n }\r\n\r\n let currentStep = '';\r\n switch (this.props.activeStep) {\r\n case Steps.RESTAURANT_SEARCH:\r\n currentStep = 'Restaurant';\r\n break;\r\n case Steps.TABLE_PICKER:\r\n currentStep = 'Table';\r\n break;\r\n case Steps.BILL:\r\n case Steps.SPLIT_BILL_NAME:\r\n case Steps.SPLIT_BILL_MENU:\r\n currentStep = 'Bill';\r\n break;\r\n case Steps.APPLY_GRATUITY:\r\n currentStep = 'Gratutity';\r\n break;\r\n case Steps.PAY:\r\n currentStep = 'Payment';\r\n break;\r\n case Steps.PAYMENT_CONFIRMATION:\r\n currentStep = 'Payment Complete';\r\n break;\r\n case Steps.REGISTER_CONFIRMATION:\r\n currentStep = 'Registered';\r\n break;\r\n case Steps.APPLY_VOUCHER:\r\n currentStep = 'Voucher';\r\n break;\r\n case Steps.REGISTER:\r\n currentStep = 'Register';\r\n break;\r\n default:\r\n currentStep = 'Pay my Bill';\r\n }\r\n\r\n var buttonDisabled =\r\n this.props.previousSteps.length === 0 ||\r\n this.props.activeStep === Steps.RESTAURANT_SEARCH ||\r\n this.props.activeStep === Steps.PAYMENT_CONFIRMATION ||\r\n this.props.activeStep === Steps.SPLIT_BILL_NAME ||\r\n this.props.submittingPayment === true;\r\n\r\n return (\r\n <>\r\n
\r\n {this.props.activeStep !== 0 && {\r\n if (!buttonDisabled) {\r\n if (this.props.activeStep === Steps.BILL) {\r\n this.openModal();\r\n } else {\r\n this.props.popStep();\r\n }\r\n }\r\n }}\r\n >\r\n \r\n
\r\n Back\r\n
\r\n }\r\n
\r\n
\r\n
\r\n

{currentStep.toUpperCase()}

\r\n
{contentTableNumber}
\r\n
\r\n
{restaurantNameTitle}
\r\n
\r\n {!!this.props.privacyPolicyAndTermsConditionsModal ? (\r\n \r\n this.props.closePrivacyPolicyTermsAndConditionsModal()\r\n }\r\n >\r\n
\r\n {elementClose}\r\n
\r\n

Close

\r\n
\r\n
\r\n \r\n ) : !buttonDisabled ? (\r\n null\r\n ) : (\r\n ''\r\n )}\r\n \r\n
\r\n {!!this.props.privacyPolicyAndTermsConditionsModal ? (\r\n `${\r\n !!this.props.termAndConditionsCopy ? \"T&C's\" : 'Privacy'\r\n }`\r\n ) : (\r\n null\r\n )}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(TopBanner,\r\n {\r\n mobXProps: ({\r\n activeStep,\r\n tableNumber,\r\n previousSteps,\r\n bill,\r\n restaurant,\r\n submittingPayment,\r\n sourceIsApp,\r\n appPlatform,\r\n privacyPolicyAndTermsConditionsModal,\r\n termAndConditionsCopy,\r\n }) => ({\r\n activeStep,\r\n tableNumber,\r\n previousSteps,\r\n bill,\r\n restaurant,\r\n submittingPayment,\r\n sourceIsApp,\r\n appPlatform,\r\n privacyPolicyAndTermsConditionsModal,\r\n termAndConditionsCopy,\r\n }),\r\n mobXActions: ({\r\n setMainModalCTA,\r\n setupMainModal,\r\n enableMainModal,\r\n popStep,\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n }) => ({\r\n setMainModalCTA,\r\n setupMainModal,\r\n enableMainModal,\r\n popStep,\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n })\r\n }\r\n);","import React, { useState, useEffect, useRef } from 'react';\r\nimport { useSwipeable } from 'react-swipeable';\r\nimport withAppState from '../mobx/withAppState';\r\nimport closeIcon from '../assets/img/icons/closeIcon.svg';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faXmark } from '@fortawesome/free-solid-svg-icons';\r\nimport xmark from '../assets/img/xmark.svg';\r\n\r\nconst SwipeableContainer = props => {\r\n const [isOpen, setIsOpen] = useState(props.slideUpModal);\r\n const [dietFilterOpen, setDietFilterOpen] = useState(props.dietFilterOpen);\r\n\r\n const innerModal = useRef(null);\r\n\r\n const handlers = useSwipeable({\r\n onSwiping: eventData => {\r\n if (eventData.dir === 'Down') {\r\n props.setSwipeable(true);\r\n props.setDragDownModal(eventData.deltaY);\r\n if (eventData.deltaY > (innerModal.current.clientHeight / 2 || window.innerHeight / 2)) {\r\n setTimeout(() => {\r\n props.setDragDownModal(innerModal.current.clientHeight);\r\n props.handleModalCancel();\r\n }, 0);\r\n }\r\n }\r\n },\r\n onSwiped: eventData => {\r\n props.setSwipeable(false);\r\n if (eventData.deltaY < (innerModal.current.clientHeight / 2 || window.innerHeight / 2)) {\r\n props.setDragDownModal(0);\r\n setIsOpen(!isOpen);\r\n }\r\n },\r\n trackTouch: true,\r\n trackMouse: false,\r\n });\r\n var dragDownHeight = {\r\n bottom: -props.swipeableModalPosition + 'px',\r\n touchAction: 'pan-y',\r\n };\r\n\r\n useEffect(() => {\r\n document.body.classList.toggle('modal-open', props.slideUpModal);\r\n }, [props.slideUpModal]);\r\n\r\n return (\r\n <>\r\n props.handleModalCancel()}\r\n style={props.slideUpModal ? dragDownHeight : null}\r\n {...handlers}\r\n className={`modal-slide-up ${props.slideUpModal ? 'active' : ''} ${props.swipeable ? 'is-swipeable' : ''} ${props.slideOutAnimation ? 'is-animatingOut' : ''\r\n }`}>\r\n \r\n
{\r\n props.handleModalCancel();\r\n setDietFilterOpen(false);\r\n }} className=\"modal-close\">\r\n \r\n
\r\n
\r\n {props.children}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default withAppState(SwipeableContainer, {\r\n mobXProps: ({\r\n modalActive,\r\n swipeable,\r\n swipeableModalPosition,\r\n slideOutAnimation,\r\n }) => ({\r\n modalActive,\r\n swipeable,\r\n swipeableModalPosition,\r\n slideOutAnimation,\r\n }),\r\n mobXActions: ({\r\n closeSlideUpModal,\r\n setSwipeable,\r\n setDragDownModal\r\n }) => ({\r\n closeSlideUpModal,\r\n setSwipeable,\r\n setDragDownModal,\r\n }),\r\n});\r\n","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\n\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\r\nimport SwipeableContainer from '../components/Swipeable';\r\n\r\nclass ErrorModal extends React.Component {\r\n componentDidMount() {\r\n document.addEventListener('mousedown', this.handleClickOutside);\r\n }\r\n\r\n componentWillUnmount() {\r\n document.removeEventListener('mousedown', this.handleClickOutside);\r\n }\r\n\r\n handleClickOutside = (e) => {\r\n if (this.wrapperRef && !this.wrapperRef.contains(e.target)) {\r\n this.handleClose()\r\n }\r\n }\r\n \r\n \r\n handleClose = () => {\r\n if (this.props.errorModalEnabled === true) {\r\n this.props.disableErrorModal()\r\n }\r\n }\r\n\r\n \r\n setWrapperRef = (node) => {\r\n this.wrapperRef = node;\r\n }\r\n \r\n render() {\r\n const elementClose = \r\n const { errorModalEnabled, errorModalTitle, errorModalMessage, errorModalTitleBackground } = this.props\r\n return (\r\n <>\r\n
{ this.handleClose() }}>
\r\n this.handleClose()} slideUpModal={errorModalEnabled}>\r\n {/*
\r\n
{this.handleClose()}}>\r\n {elementClose}\r\n
\r\n
\r\n

{this.props.errorModalMessage}

\r\n
\r\n
*/}\r\n
\r\n
\r\n
\r\n
\r\n

{errorModalTitle ? errorModalTitle : 'Error'}

\r\n
\r\n {errorModalMessage &&
\r\n

{errorModalMessage}

\r\n
}\r\n\r\n
\r\n
\r\n { this.handleClose() }}\r\n >\r\n\r\n Close\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(ErrorModal,\r\n {\r\n mobXProps: ({\r\n errorModalEnabled,\r\n errorModalMessage,\r\n }) => ({\r\n errorModalEnabled,\r\n errorModalMessage,\r\n }),\r\n mobXActions: ({ \r\n disableErrorModal,\r\n }) => ({\r\n disableErrorModal,\r\n })\r\n }\r\n);\r\n","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\nimport SwipeableContainer from '../components/Swipeable';\r\n\r\nclass Modal extends React.Component {\r\n handleModalCancel = () => {\r\n this.props.disableMainModal();\r\n }\r\n\r\n handleModalConfirm = () => {\r\n this.props.mainModalCTA();\r\n this.props.disableMainModal();\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n
{ this.handleModalCancel() }}>
\r\n this.handleModalCancel()} slideUpModal={this.props.modalActive}>\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{this.props.modalTitle ? this.props.modalTitle : 'Error'}

\r\n
\r\n
\r\n {this.props.modalVoucherCode && (\r\n

{this.props.modalVoucherCode}

\r\n )}\r\n {this.props.modalMessage && (\r\n

{this.props.modalMessage}

\r\n )}\r\n
\r\n
\r\n
\r\n {this.handleModalCancel()}}\r\n >\r\n {this.props.modalSecondaryCTAText}\r\n \r\n {this.handleModalConfirm()}}\r\n >\r\n {this.props.modalMainCTAText}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(Modal,\r\n {\r\n mobXProps: ({\r\n modalActive,\r\n modalTitle,\r\n modalVoucherCode,\r\n modalMessage,\r\n modalSecondaryCTAText,\r\n modalMainCTAText,\r\n }) => ({\r\n modalActive,\r\n modalTitle,\r\n modalVoucherCode,\r\n modalMessage,\r\n modalSecondaryCTAText,\r\n modalMainCTAText,\r\n }),\r\n mobXActions: ({ \r\n mainModalCTA,\r\n disableMainModal,\r\n }) => ({\r\n mainModalCTA,\r\n disableMainModal,\r\n })\r\n }\r\n);","import React, { useEffect, useState, useRef } from \"react\";\r\nimport withAppState from \"../mobx/withAppState\";\r\nimport googlePayIcon from \"../assets/img/icons/google-play-seeklogo.svg\";\r\nimport applePayIcon from \"../assets/img/icons/apple-store-seeklogo.svg\";\r\nimport deliveryMan from '../assets/img/deliveryMan.svg';\r\n\r\nconst MenuFooter = ({\r\n brand,\r\n appPlatform,\r\n hasMarginTop,\r\n socialLinks,\r\n footerLinks,\r\n hasPEClub,\r\n children,\r\n setAppFooterHeight\r\n}) => {\r\n const [year, setYear] = useState(null);\r\n useEffect(() => {\r\n var today = new Date();\r\n setYear(today.getFullYear());\r\n });\r\n const appFooter = useRef();\r\n const googlePayLink =\r\n \"https://play.google.com/store/apps/details?id=com.pizzaexpress.appv2\";\r\n const applePayLink = \"https://apps.apple.com/gb/app/pizzaexpress/id440565075\";\r\n\r\n useEffect(() => {\r\n\r\n if (appFooter.current) {\r\n setAppFooterHeight(appFooter.current.clientHeight);\r\n }\r\n\r\n const updateWindowDimensions = () => {\r\n if (appFooter.current) {\r\n setAppFooterHeight(appFooter.current.clientHeight);\r\n }\r\n };\r\n\r\n window.addEventListener(\"resize\", updateWindowDimensions);\r\n\r\n return () => window.removeEventListener(\"resize\", updateWindowDimensions)\r\n\r\n }, [appFooter.current]);\r\n\r\n return !!appPlatform ? null : (\r\n \r\n
\r\n {!!socialLinks && (\r\n <>\r\n
\r\n {socialLinks.map((social, i) => {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n })}\r\n
\r\n
\r\n\r\n \r\n )}\r\n {!!hasPEClub && (\r\n <>\r\n
\r\n
\r\n
PizzaExpress Club
\r\n \r\n Sign Up to My PizzaExpress\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n )\r\n\r\n }\r\n {children}\r\n
\r\n
\r\n \r\n © {brand} {year}\r\n \r\n {!!footerLinks &&\r\n footerLinks.map((footer, i) => {\r\n return (\r\n \r\n {footer.cta}\r\n \r\n );\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n \r\n © {brand} {year}\r\n \r\n {!!footerLinks &&\r\n footerLinks.map((footer, i) => {\r\n return (\r\n \r\n {footer.cta}\r\n \r\n );\r\n })}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default withAppState(MenuFooter, {\r\n mobXProps: ({ appPlatform }) => ({\r\n appPlatform,\r\n }),\r\n mobXActions: ({\r\n setAppFooterHeight\r\n }) => ({\r\n setAppFooterHeight\r\n }),\r\n});\r\n","import React from 'react';\r\n\r\nconst PeTandC = () => {\r\n\r\n return (\r\n \r\n

Terms and Conditions

\r\n

Terms and Conditions of Pay At Table

\r\n

1. These are the terms and conditions that apply to the PizzaExpress Pay at Table App https://mobile-pay.pizzaexpress.com/ (the “App”). Please read these terms and conditions carefully, together with our Terms of Use and Privacy Policy before paying for your order through the App. We recommend that you print and retain a copy for future reference.

\r\n

2. By paying through the App, you agree to be bound by these terms and conditions. If you do not accept these terms and conditions, you should not make payment through this App.

\r\n

3.\tIf you have any questions relating to these terms and conditions, please contact our Customer Service team using the “Contact Us” form on the Help & Contact page before you pay.

\r\n

4.\tOur restaurants are operated by PizzaExpress (Restaurants) Limited (\"we\", \"our\" or \"us\").We are registered in England and Wales under company number 02805490 at Building 01, Arc Uxbridge, Sanderson Road, Uxbridge, Middlesex, UB81DH. Our VAT number is 627 076 730 and our GST number is 0001300.

\r\n

5.\tYou may only pay via the App if you are at least 16 years old or over. By paying, you warrant that you are at least 16 years old and you are legally capable of entering into binding contracts.

\r\n

Process for Payment

\r\n

6.\tYou do not have to have a PizzaExpress account to pay through the App, you may continue to pay as a guest.

\r\n

7.\tPlease confirm the restaurant location, table number and bill items before making payment.

\r\n

8.\tIf you would like to use a voucher, please ensure you enter this before making payment. Once paid, we will not be able to apply a voucher to an order.

\r\n

9.\tYou can split the bill by item or by amount. Please follow the instructions on screen. You must ensure that the bill is settled in full.

\r\n

10. When paying for any alcohol, the payee must be 18 or over.

\r\n

11.\tYou may select which method of payment you prefer. This may vary depending on the type of device you are using. When using a Credit or Debit Card, PayPal, Apple Pay or Google Pay, please ensure you read the terms and conditions of use from your provider, if applicable.

\r\n

12.\tYou will receive confirmation of your payment via email. Please make sure that the email address and telephone number you provide are correct and functional, as our restaurant teams will not be able to provide payment confirmation.

\r\n

13.\tIf you experience technical issues when using the App (for example, if the App screen freezes, payment is interrupted or you are charged twice for the same order), please speak to a team member.

\r\n

14.\tFor any queries or refunds, please contact our customer services using the Help & Contact page. Our restaurant teams are unable to process any refunds.

\r\n

Your Data

\r\n

15.\tOur Privacy Policy applies to these terms and conditions. Please read them carefully as it contains important information about how we use your data, retention of your data, security measures and your rights.

\r\n

16.\tIn addition to the information stated in the privacy policy, for this App specifically, we collect:

\r\n

a) information you submit to us, such as your email address, name and card details;

\r\n

b) location information;

\r\n

c) transactional information from 3rd parties we work with who provide technical and payment services. We do not see your card details.

\r\n

17.\tWhat we use it for:

\r\n

a) (a) to process your payment;

\r\n

b) for order history;

\r\n

c) determine what restaurant you are dining in to get order and payment information;

\r\n

18.\tIf you want to know what information we collect and hold about you, or to exercise any of your rights, please contact us at legal@pizzaexpress.com or at the address in point 4 above.

\r\n

Liability

\r\n

19.\tWe accept no responsibility for any damage or data loss caused to your device as a result of downloading the App and any unforeseeable loss or damage. Our liability to you with respect to loss or damage you suffer as a foreseeable result of our breach or negligence is limited to the purchase price you paid applicable to your claim.

\r\n

20.\tWe do not exclude or limit liability for: death or personal injury caused by our negligence; fraud or fraudulent misrepresentation; or any liability which cannot legally be limited or excluded.

\r\n

21.\tWe will not be liable or responsible for any failure to perform, or delay in performance of, any of our obligations under a contract that is caused by events outside our reasonable control.

\r\n

General

\r\n

22.\tAny failure or delay by us to enforce our rights against you is not a waiver of such rights unless explicitly waived by us in writing.

\r\n

23.\tEach of the paragraphs of these terms and conditions operates separately. If any court or relevant authority decides that any of them are unlawful or unenforceable, the remaining paragraphs will remain in full force and effect.

\r\n

24.\tWe may transfer our rights and obligations under any contract with you to another organisation, but this will not affect your rights or our obligations under these terms and conditions. You may not transfer your rights or your obligations under these terms and conditions to another person.

\r\n

25.\tThese terms and conditions and any document expressly referred to in them represent the entire agreement in relation to the subject matter of any contract and supersede any prior agreement, understanding or arrangement between you, us and our restaurants, whether oral or in writing.

\r\n

26.\tWe reserve the right to amend these terms and conditions from time to time. Any changes we make to these terms and conditions will be posted on this page. You will be subject to the policies and terms and conditions in force at the time that you use the App, unless any change to those policies or these terms and conditions is required to be made by law or governmental authority.

\r\n

27.\tNo one other than a party to these terms and conditions shall have any right to enforce any of its terms and conditions.

\r\n

28.\tThese terms and conditions and any dispute or claim arising out of or in connection with the App will be governed by English law and shall be subject to jurisdiction of the courts of England and Wales.

\r\n
\r\n );\r\n}\r\n\r\nexport default PeTandC;","import React from 'react';\r\n\r\nconst PePrivacyPolicy = () => {\r\n return (\r\n \r\n

Privacy Policy

\r\n

1. Privacy and Your Personal Data

\r\n

1.1 PizzaExpress (Restaurants) Limited is committed to protecting the privacy of our users and customers. This privacy policy (\"Privacy Policy\") is intended to inform you on how we gather, define, and utilise your Information (as defined below).

\r\n

1.2 It applies to Information collected by us, or provided by you, whether in one of our restaurants, over our Website (including the mobile optimised version of the website accessible from your portable hand-held device), our PizzaExpress App, or in any other way (such as over the telephone). It is also intended to assist you in making informed decisions when using our Website, App and our products and services. Please take a minute to read and understand the policy.

\r\n

1.3 All your personal Information shall be held and used in accordance with the EU General Data Protection Regulation 2016/679 (\"GDPR\") and national laws implementing GDPR and any legislation that replaces it in whole or in part and any other legislation relating to the protection of personal data. If you want to know what information we collect and hold about you, or to exercise any of your rights as set out in section 9 below, please write to us at the below address or via email at legal@pizzaexpress.com:

\r\n

FAO: Legal Department
PizzaExpress (Restaurants) Limited
Building 01,
Arc Uxbridge,
Sanderson Road,
Uxbridge,
Middlesex,
UB81DH

\r\n

1.4 PizzaExpress (Restaurants) Limited is the controller of your Information for the purposes of the GDPR and is a company registered under number 02805490 and whose VAT number is GB 627 0767 30.

\r\n

2. What Information Do We Collect on our Website?

\r\n

2.1 When you visit our Website (including the mobile optimised version of the website accessible from your portable hand-held device) you may provide us with personal information such as name, postcode, email address, mobile phone number, date of birth (month and year only), credit, debit, or PayPal account details and information about other members of your family who might be interested in our services (\"Information\"). You may provide us with Information in a number of ways:

\r\n

a) by supplying us with the Information as listed above, on an individual basis by registering as a registered user or subscribing to receive updates or offers from us. To become a registered user you must provide us with your name, postcode, date of birth (month and year only), and email address, but you may also provide us with additional information if you choose to do so.

\r\n

b) by corresponding with us by email, in which case we may retain the content of your email messages together with your email address and our responses;

\r\n

c) by booking a table, ordering a takeaway online using our Click & Collect or Delivery service, downloading our offers, purchasing a gift card, purchasing PizzaExpress Live tickets, or applying for a job with us;

\r\n

d) through any preferences and areas of interest as advised by you on subscribing to our online services;

\r\n

e) by Information provided when you use our App (see below); and

\r\n

f) by Information provided when you use our mobile optimised website from your portable hand-held device including details of your physical location, where you have agreed to it being used.

\r\n

2.2 From time to time we may give you the option to provide us with Information about other people in your life, for example as a registered user, you have the option to tell us whether you have any children and if so their gender and the month and year of their birth We use this Information to tell you about offers that may be relevant to your friends or family members in accordance with their age.

\r\n

2.3 We may collect Information about your computer, including where available your IP address, operating system, browser type and the geographical location of your computer, for system administration purposes. We may also report aggregate information to our advertisers. This is statistical data about browsing actions and patterns and does not identify you as an individual.

\r\n

3. What Information do we collect on our App?

\r\n

3.1 When using our App, you may provide us with the following Information:

\r\n

a) your name and contact details (email address and mobile telephone number), if you use the App to book a table at one of our restaurants;

\r\n

b) further information (mobile phone number, date of birth (month and year only), favourite restaurants, details about other members of your family who might be interested in our services, if you use the App to register as a registered user or subscribe to receive updates or offers from us. To become a registered user you must provide us with your name, postcode, email address, and date of birth (month and year only), but you may also provide us with additional information if you choose to do so;

\r\n

c) information which allows us to identify your credit or debit account details to complete a transaction with you, should you elect to pay for your takeaway or pay your restaurant bill using the ‘Pay at Table’ function via the App;

\r\n

d) your physical location, where you have agreed to it being used for the restaurant locator feature on the App or where you allow the App to access your location settings; and

\r\n

e) other Information that may be provided by you when adding content to our App, or to our social network pages such as Facebook.

\r\n

4. What Information do we collect in our restaurants or elsewhere?

\r\n

4.1 When you are in one of our restaurants, we may collect the following Information when you use the PizzaExpress Wi-Fi service:

\r\n

a) your name and contact details (date of birth), email address, postcode and mobile telephone number)

\r\n

b) your physical location, whilst you are in the restaurant only

\r\n

5. How we use your Information

\r\n

5.1 We will hold, use and disclose your Information for our legitimate business purposes including:

\r\n

a) to keep you up to date about important changes to our business;

\r\n

b) to direct-market products and services (including push notifications), advise you of news and industry updates, events, promotions and competitions and other information. Before we do so, you will be given an option to opt-out of such communications and an option to unsubscribe will also be provided with each communication;

\r\n

c) to apply profiling technology which analyses our customers’ engagement with our direct marketing communications, activity and interests so that we can send you content that is relevant to you;

\r\n

d) to answer your queries;

\r\n

e) to provide further services to you by sharing your Information with other companies within our group of companies, as well as trusted third parties. Further details about this are set out in the section 8 below on Sharing your Personal Information;

\r\n

f) to release Information to regulatory or law enforcement agencies, if we are required or permitted to do so.

\r\n

5.2 We may process certain sensitive personal data (known as special category data in GDPR) where you include it in information you send to us e.g. if you include information about your health in booking requests. We have processes in place to limit our use and disclosure of such sensitive data other than where permitted by law.

\r\n

6. The legal basis for processing your Information

\r\n

6.1 Under GDPR, the main grounds that we rely upon in order to process your Information are the following:

\r\n

a) Necessary for compliance with a legal obligation – we are subject to certain legal requirements which may require us to process your Information. We may also be obliged by law to disclose your Information to a regulatory body or law enforcement agency;

\r\n

b) Necessary for the purposes of legitimate interests - either we, or a third party, will need to process your Information for the purposes of our (or a third party's) legitimate interests, provided we have established that those interests are not overridden by your rights and freedoms, including your right to have your Information protected. Our legitimate interests include responding to requests and enquiries from you or a third party, fulfilling takeaway, gift card or PizzaExpress Live ticket sales, optimising our website and customer experience, informing you about our products and services and ensuring that our operations are conducted in an appropriate and efficient manner;

\r\n

c) Consent – in some circumstances, we may ask for your consent to process your Information in a particular way.

\r\n

7. How we share your Information

\r\n

7.1 In certain circumstances we will share your Information with other parties. Details of those parties are set out below along with the reasons for sharing it.

\r\n

a) Other parties within our group of companies: Your information may be shared with our UK affiliates including our parent company, as certain processing functions within PizzaExpress are centralised. Your information will not be shared with any of our international affiliates.

\r\n

b) Trusted third parties: In order to provide certain services, we will share your information with third party service providers such as IT infrastructure companies and email logistics providers. We will not share your data with any third party where it is not necessary to do so to provide a service to you.

\r\n

c) Regulatory and law enforcement agencies. As noted above, if we receive a request from a regulatory body or law enforcement agency, and if permitted under GDPR and other laws, we may disclose certain personal information to such bodies or agencies.

\r\n

d) New business owners. If we or our business merges with or is acquired by another business or company, we will share your personal information with the new owners of the business or company and their advisors. If this happens, you will be sent notice of such event.

\r\n

8. How long we hold your Information

\r\n

We will only retain your Information for as long as is necessary for the purpose or purposes for which we have collected it. The criteria that we use to determine retention periods will be determined by the nature of the data and the purposes for which it is kept. For example, if we receive your Information through a competition entry, we will retain your data for as long as is necessary to administer the competition. If we receive your Information when you apply for a job, we will retain your data for as long as is necessary to process your application, and maintain application statistics. We will not directly market to you for longer than three (3) years, unless you consent to receive direct marketing by opting in again before the expiry of that three (3) year period. In certain circumstances, once we have deleted or anonymised your data, we may need to retain parts of it (for example, your email address), in order to comply with our obligations under GDPR or other legislation, or for fraud detection purposes.

\r\n

9. Your rights relating to your Information

\r\n

9.1 You have certain rights in relation to personal information we hold about you. Details of these rights and how to exercise them are set out below. We will require evidence of your identity before we are able to act on your request.

\r\n

a) Right of Access. You have the right at any time to ask us for a copy of the Information about you that we hold, and to confirm the nature of the Information and how it is used. Where we have good reason, and if the GDPR permits, we can refuse your request for a copy of your Information, or certain elements of the request. If we refuse your request or any element of it, we will provide you with our reasons for doing so.

\r\n

b) Right of Correction or Completion. If Information we hold about you is not accurate, or is out of date or incomplete, and requires amendment or correction you have a right to have the data rectified, updated or completed. You can let us know by contacting us at the address or email address set out above.

\r\n

c) Right of Erasure. In certain circumstances, you have the right to request that Information we hold about you is erased e.g. if the Information is no longer necessary for the purposes for which it was collected or processed or our processing of the Information is based on your consent and there are no other legal grounds on which we may process the Information.

\r\n

d) Right to Object to or Restrict Processing. In certain circumstances, you have the right to object to our processing of your Information by contacting us at the address or email address set out above. For example, if we are processing your Information on the basis of our legitimate interests and there are no compelling legitimate grounds for our processing which override your rights and interests. You also have the right to object to use of your Information for direct marketing purposes.

\r\n

You may also have the right to restrict our use of your Information, such as in circumstances where you have challenged the accuracy of the Information and during the period where we are verifying its accuracy.

\r\n

e) Right of Data Portability. In certain instances, you have a right to receive any Information that we hold about you in a structured, commonly used and machine-readable format. You can ask us to transmit that Information to you or directly to a third party organisation.

\r\n

This right exists in respect of Information that:

\r\n
    \r\n
  • you have provided to us previously; and
  • \r\n
  • is processed by us using automated means.
  • \r\n
\r\n

While we are happy for such requests to be made, we are not able to guarantee technical compatibility with a third party organisation's systems. We are also unable to comply with requests that relate to Information of others without their consent.

\r\n

9.2 You can exercise any of the above rights by contacting us at the address or email address set out above. You can exercise your rights free of charge.

\r\n

9.3 Most of the above rights are subject to limitations and exceptions. We will provide reasons if we are unable to comply with any request for the exercise of your rights.

\r\n

10. Consent

\r\n

To the extent that we are processing your Information based on your consent, you have the right to withdraw your consent at any time. You can do this by unsubscribing via the link provided in any direct marketing communication, or contacting us at the address or email address set out above.

\r\n

11. Cookies

\r\n

11.1 Similar to other commercial websites, our Website uses a technology called \"cookies\" and web server logs to collect information about how our Website is used. A cookie is a very small text document, which often includes an anonymous unique identifier. When you visit a website, that site's computer asks your computer for permission to store this file in a part of your hard drive specifically designated for cookies

\r\n

11.2 Information gathered through cookies and web server logs may include the date and time of visits, the pages viewed, time spent at our Website, and the websites visited just before and just after our Website.

\r\n

11.3 Cookies, in conjunction with our web server's log files, allow us to calculate the aggregate number of people visiting our Website and which parts of the website are most popular. This helps us gather feedback so that we can improve our Website and better serve our customers. Cookies do not allow us to gather any personal Information about you and we do not generally store any personal Information that you provided to us in your cookies.

\r\n

11.4 We use ‘session’ cookies which enable you to carry information across pages of the Website and avoid having to re-enter information. Session cookies enable us to compile statistics that help us to understand how the Website is being used and to improve its structure.

\r\n

11.5 We also use ‘persistent’ cookies which remain in the cookies file of your browser for longer and help us to recognise you as a unique visitor to the Website, tailoring the content of certain areas of the Website to offer you content that match your preferred interests.

\r\n

12. Website Accessibility

\r\n

12.1 PizzaExpress recognises the importance of providing a website that is accessible to everyone and is easy to use. This section outlines our ongoing commitment to making our online services accessible and explains some of the accessibility features of this Website.

\r\n

12.2 Website accessibility means that people with disabilities can use the Website. More specifically, Website accessibility means that people with disabilities can perceive, understand, navigate, and interact with the Website, and that they can contribute to the Website. Website accessibility also benefits others, including older people with changing abilities due to aging. (Quote from https://www.w3.org/WAI/intro/accessibility.php)

\r\n

12.3 This Website contains the following features which should help users make the website more accessible:

\r\n

a) providing a sitemap;

\r\n

b) every content and decorative image has the ability to have alternative text added so if images are disabled or not appearing the user can see read what the image is displaying;

\r\n

c) tabbing through the Website is organised in a logical top down left to right order;

\r\n

d) clearly defined visible hover and focus (tab) state for each link;

\r\n

e) the ability to jump to the main content on the page by bypassing the top menu when you use the keyboard;

\r\n

f) HTML for lists, tables and quotes being coded correctly;

\r\n

g) the ability to navigate around the site and access all functionality by only using the keyboard;

\r\n

h) all fields and labels within forms including error messages, are clearly labelled and have the correct notations;

\r\n

i) the visual contrast combination of text and background colours meet the correct ratio so all text is easily read; and

\r\n

j) the Website is readable when large size text is used in Internet Explorer

\r\n

12.4 At PizzaExpress we are committed to making our Website accessible to as many abled and less abled people as possible. We will continue to review, test and modify our Website for usability and accessibility issues using a combination of both manual and automated testing tools. These tools and techniques help us to aim towards meeting (where possible) the W3C guidelines as part of our ongoing commitment towards an accessible Website.

\r\n

13. Changes to our Privacy Policy

\r\n

This privacy policy can be changed by us at any time. If we change our privacy policy in the future, we will advise you of material changes or updates to our privacy policy by email, where we are holding your email address.

\r\n

14. Complaints

\r\n

If you are unhappy about our use of your Information, you can contact us at the address or email address above. You are also entitled to lodge a complaint with the UK Information Commissioner's Office using any of the below contact methods:

\r\n

Telephone: 0303 123 11113
Website: https://ico.org.uk/concerns/
Post: Information Commissioner's Office
Wycliffe House
Water Lane
Wilmslow
Cheshire
SK9 5AF

\r\n
\r\n );\r\n }\r\n\r\nexport default PePrivacyPolicy;","import React from 'react';\r\n\r\nconst MenuPeTandC = () => {\r\n \r\n return (\r\n \r\n

All gratuities go to the team who looked after you today.

\r\n

Please watch out for stray olive stones and bones.

\r\n

V Suitable for Vegetarians. (Ve) Suitable for Vegans (other dishes are available, please ask for the Vegan menu).

\r\n

All our prices include VAT (Jersey GST) but no service charge. However, we will ask for a discretionary 12.5% service charge for parties of 7 or more adults (aged 18 years+). Whether you include it or not is entirely up to you.

\r\n

The ABV% on alcoholic drinks are correct at time of printing this menu, however, may be subject to change.

\r\n

The policy of the trustees of the Veneziana Fund (registered charity number 262146) was set up by PizzaExpress founder, Peter Boizot. Please visit www.pizzaexpress.com for full details.

\r\n

For every Padana pizza sold, a discretionary donation of 25p will be paid to Macmillan Cancer Support, a registered charity in England & Wales (261017), in Scotland (SC039907) and in the Isle of Man (604). Macmillan Cancer Support provides emotional, financial, medical and practical support for people affected by cancer. For more information, visit www.macmillan.org.uk

\r\n

Head Office: PizzaExpress, Building 01, Arc Uxbridge, Sanderson Road, Uxbridge, Middlesex, UB81DH

\r\n
\r\n );\r\n }\r\n\r\nexport default MenuPeTandC;","import React from 'react';\r\n\r\nconst MenuMiTandC = () => {\r\n\r\n return (\r\n <>\r\n

Terms and Conditions

\r\n\r\n

\r\n Terms and Conditions of Pay At Table\r\n

\r\n

\r\n 1.\tThese are the terms and conditions that apply to Milano Pay at Table\r\n [https://pay.milano.ie] (“PaT”). Please read these terms and\r\n conditions carefully, together with our Terms\r\n of Use and Privacy Policy before\r\n paying for your order through PaT. We recommend that you print and retain a copy for future reference.\r\n

\r\n

\r\n 2.\tBy paying through PaT, you agree to be bound by these terms and conditions. If you do not accept these terms and\r\n conditions, you should not make payment through PaT.\r\n

\r\n

\r\n 3.\tIf you have any questions relating to these terms and conditions, please contact our Customer Service team at\r\n customerserices@milano.ie or using the “Talk to Us” form\r\n on the Help & Contact page before you pay.\r\n

\r\n

\r\n 4.\tOur restaurants are operated by Agenbite Limited (trading as Milano) (\"we\", \"our\" or \"us\"). We are registered\r\n Ireland at 38 Main Street, Swords, Co. Dublin, Ireland.\r\n

\r\n

\r\n 5.\tYou may only pay via the PaT if you are at least 16 years old or over. By paying, you warrant that you are at\r\n least 16 years old and you are legally capable of entering into binding contracts.\r\n

\r\n\r\n

\r\n Process for Payment\r\n

\r\n

\r\n 6.\tPlease confirm the restaurant location, table number and bill items before making payment.\r\n

\r\n

\r\n 7.\tIf you would like to use a voucher, please ensure you enter this before making payment. Once paid, we will not\r\n be able to apply a voucher to an order.\r\n

\r\n

\r\n 8.\tYou can split the bill by item or by amount. Please follow the instructions on screen. You must ensure that the bill\r\n is settled in full.\r\n

\r\n

\r\n 9.\tWhen paying for any alcohol, the payee must be 18 or over.\r\n

\r\n

\r\n 10.\tYou may select which method of payment you prefer. This may vary depending on the type of device you are using.\r\n When using a Credit or Debit Card (excludes Amex), Apple Pay\r\n or Google Pay,\r\n please ensure you read the terms and conditions of use from your provider, if applicable.\r\n

\r\n

\r\n 11.\tYou will receive confirmation of your payment via email. Please make sure that the email address and telephone number\r\n you provide are correct and functional, as our restaurant teams will not be able to provide payment confirmation.\r\n

\r\n

\r\n 12.\tIf you experience technical issues when using PaT (for example, if the page freezes, payment is interrupted or you\r\n are charged twice for the same order), please speak to a team member.\r\n

\r\n

\r\n 13.\tFor any queries or refunds, please contact our customer services using the\r\n Help & Contact page. Our restaurant teams\r\n are unable to process any refunds.\r\n

\r\n

\r\n Your Data\r\n

\r\n

\r\n 14.\tOur Privacy Policy applies to these\r\n terms and conditions. Please read them carefully as it contains important information about how we use your data,\r\n retention of your data, security measures and your rights.\r\n

\r\n

\r\n 15.\tIn addition to the information stated in the privacy policy, for PaT specifically, we collect:\r\n

\r\n

\r\n a) information you submit to us, such as your email address, name and card details;\r\n

\r\n

\r\n b) location information;\r\n

\r\n

\r\n c) transactional information from 3rd parties we work who provide technical and payment services. We do not see your\r\n card details.\r\n

\r\n

\r\n 16.\tWhat we use it for:\r\n

\r\n

\r\n a) to process your payment;\r\n

\r\n

\r\n b) for order history;\r\n

\r\n

\r\n c) determine what restaurant you are dining in to get order and payment information;\r\n

\r\n

\r\n 17.\tIf you want to know what information we collect and hold about you, or to exercise any of your rights, please\r\n contact us at feedback@milano.ie or at the address in point\r\n 4 above.\r\n

\r\n\r\n

\r\n Liability\r\n

\r\n

\r\n 18.\tWe accept no responsibility for any damage or data loss caused to your device as a result of using PaT and any\r\n unforeseeable loss or damage. Our liability to you with respect to loss or damage you suffer as a foreseeable result\r\n of our breach or negligence is limited to the purchase price you paid applicable to your claim.\r\n

\r\n

\r\n 19.\tWe do not exclude or limit liability for: death or personal injury caused by our negligence; fraud or fraudulent\r\n misrepresentation; or any liability which cannot legally be limited or excluded.\r\n

\r\n

\r\n 20.\tWe will not be liable or responsible for any failure to perform, or delay in performance of, any of our obligations\r\n under a contract that is caused by events outside our reasonable control.\r\n

\r\n\r\n

\r\n General\r\n

\r\n

\r\n 21.\tAny failure or delay by us to enforce our rights against you is not a waiver of such rights unless explicitly\r\n waived by us in writing.\r\n

\r\n

\r\n 22.\tEach of the paragraphs of these terms and conditions operates separately. If any court or relevant authority\r\n decides that any of them are unlawful or unenforceable, the remaining paragraphs will remain in full force and effect.\r\n

\r\n

\r\n 23.\tWe may transfer our rights and obligations under any contract with you to another organisation, but this will not\r\n affect your rights or our obligations under these terms and conditions. You may not transfer your rights or your\r\n obligations under these terms and conditions to another person.\r\n

\r\n

\r\n 24.\tThese terms and conditions and any document expressly referred to in them represent the entire agreement in relation\r\n to the subject matter of any contract and supersede any prior agreement, understanding or arrangement between you, us\r\n and our restaurants, whether oral or in writing.\r\n

\r\n

\r\n 25.\tWe reserve the right to amend these terms and conditions from time to time. Any changes we make to these terms and\r\n conditions will be posted on this page. You will be subject to the policies and terms and conditions in force at the\r\n time that you use PaT, unless any change to those policies or these terms and conditions is required to be made by law\r\n or governmental authority.\r\n

\r\n

\r\n 26.\tNo one other than a party to these terms and conditions shall have any right to enforce any of its terms and\r\n conditions.\r\n

\r\n

\r\n 27.\tThese terms and conditions and any dispute or claim arising out of or in connection with PaT will be governed by\r\n English law and shall be subject to jurisdiction of the courts of England and Wales.\r\n

\r\n \r\n );\r\n}\r\n\r\nexport default MenuMiTandC;","import React from 'react';\r\n\r\nconst MenuMiTandC = () => {\r\n \r\n return (\r\n <>\r\n

Privacy Policy

\r\n

\r\n 1. Privacy and Your Personal Data\r\n

\r\n

\r\n 1.1 Agenbite Limited (trading as Milano) is committed to protecting the\r\n privacy of our users and customers. This privacy policy (\"Privacy Policy\")\r\n is intended to inform you on how we gather, define, and utilise your\r\n Information (as defined below).\r\n

\r\n

\r\n 1.2 It applies to Information collected by us, or provided by you, whether\r\n in one of our restaurants, over our Website (including the mobile optimised\r\n version of the website accessible from your portable hand-held device) or\r\n in any other way (such as over the telephone). It is also intended to\r\n assist you in making informed decisions when using our Website and our\r\n products and services. Please take a minute to read and understand the\r\n policy.\r\n

\r\n

\r\n 1.3 All your personal Information shall be held and used in accordance with\r\n the EU General Data Protection Regulation 2016/679 (\"GDPR\") and national\r\n laws implementing GDPR and any legislation that replaces it in whole or in\r\n part and any other legislation relating to the protection of personal data.\r\n If you want to know what information we collect and hold about you, or to\r\n exercise any of your rights as set out in section 9 below, please write to\r\n us at the below address or via e-mail at feedback@milano.ie:\r\n

\r\n

\r\n Agenbite Limited\r\n

\r\n

\r\n 38 Main Street\r\n

\r\n

\r\n Swords\r\n

\r\n

\r\n Dublin\r\n

\r\n

\r\n County Dublin\r\n

\r\n

\r\n Republic of Ireland\r\n

\r\n

\r\n 1.4 Agenbite Limited is the controller of your Information for the purposes\r\n of the GDPR and is a company registered under number 0218338 and whose VAT\r\n number is IE8218338W.\r\n

\r\n

\r\n 2. What Information Do We Collect on our Website?\r\n

\r\n

\r\n 2.1 When you visit our Website (including the mobile optimised version of\r\n the website accessible from your portable hand-held device) you may provide\r\n us with personal information such as name, postcode, email address, mobile\r\n phone number, date of birth (month and year only) and information about\r\n other members of your family who might be interested in our services\r\n (\"Information\"). You may provide us with Information in a number of ways:\r\n

\r\n

\r\n a) by supplying us with the Information as listed above, on an individual\r\n basis by registering as a registered user or subscribing to receive updates\r\n or offers from us. To become a registered user you must provide us with\r\n your name, postcode, date of birth (month and year only), and email\r\n address, but you may also provide us with additional information if you\r\n choose to do so.\r\n

\r\n

\r\n b) by corresponding with us by email, in which case we may retain the\r\n content of your email messages together with your email address and our\r\n responses;\r\n

\r\n

\r\n c) by booking a table, downloading our offers, purchasing a gift card, or\r\n applying for a job with us;\r\n

\r\n

\r\n d) through any preferences and areas of interest as advised by you on\r\n subscribing to our online services; and\r\n

\r\n

\r\n e) by Information provided when you use our mobile optimised website from\r\n your portable hand-held device including details of your physical location,\r\n where you have agreed to it being used.\r\n

\r\n

\r\n 2.2 From time-to-time we may give you the option to provide us with\r\n Information about other people in your life, for example as a registered\r\n user, you have the option to tell us whether you have any children and if\r\n so their gender and the month and year of their birth. We use this\r\n Information to tell you about offers that may be relevant to your friends\r\n or family members in accordance with their age.\r\n

\r\n

\r\n 2.3 We may collect Information about your computer, including where\r\n available your IP address, operating system, browser type and the\r\n geographical location of your computer, for system administration purposes.\r\n We may also report aggregate information to our advertisers. This is\r\n statistical data about browsing actions and patterns and does not identify\r\n you as an individual.\r\n

\r\n

\r\n 3. How we use your Information\r\n

\r\n

\r\n 3.1 We will hold, use and disclose your Information for our legitimate\r\n business purposes including:\r\n

\r\n

\r\n a) to keep you up to date about important changes to our business;\r\n

\r\n

\r\n b) to direct-market products and services, advise you of news and industry\r\n updates, events, promotions and competitions and other information. Before\r\n we do so, you will be given an option to opt-out of such communications and\r\n an option to unsubscribe will also be provided with each communication;\r\n

\r\n

\r\n c) to apply profiling technology which analyses our customers’ engagement\r\n with our direct marketing communications, activity and interests so that we\r\n can send you content that is relevant to you;\r\n

\r\n

\r\n d) to answer your queries;\r\n

\r\n

\r\n e) to provide further services to you by sharing your Information with\r\n other companies within our group of companies, as well as trusted third\r\n parties. Further details about this are set out in the section 8 below on\r\n Sharing your Personal Information;\r\n

\r\n

\r\n f) to release Information to regulatory or law enforcement agencies, if we\r\n are required or permitted to do so.\r\n

\r\n

\r\n 3.2 We may process certain sensitive personal data (known as special\r\n category data in GDPR) where you include it in information you send to us\r\n e.g. if you include information about your health in booking requests. We\r\n have processes in place to limit our use and disclosure of such sensitive\r\n data other than where permitted by law.\r\n

\r\n

\r\n 4. What Information do we collect in our restaurants or elsewhere?\r\n

\r\n

\r\n 4.1 When you are in one of our restaurants, we may collect the following\r\n Information when you use the Milano Wi-Fi service:\r\n

\r\n

\r\n a) your name and contact details (date of birth), email address, postcode\r\n and mobile telephone number)\r\n

\r\n

\r\n b) your physical location, whilst you are in the restaurant only\r\n

\r\n

\r\n 5. The legal basis for processing your Information\r\n

\r\n

\r\n 5.1 Under GDPR, the main grounds that we rely upon in order to process your\r\n Information are the following:\r\n

\r\n

\r\n a) Necessary for compliance with a legal obligation – we\r\n are subject to certain legal requirements which may require us to process\r\n your Information. We may also be obliged by law to disclose your\r\n Information to a regulatory body or law enforcement agency;\r\n

\r\n

\r\n b) Necessary for the purposes of legitimate interests -\r\n either we, or a third party, will need to process your Information for the\r\n purposes of our (or a third party's) legitimate interests, provided we have\r\n established that those interests are not overridden by your rights and\r\n freedoms, including your right to have your Information protected. Our\r\n legitimate interests include responding to requests and enquiries from you\r\n or a third party, fulfilling gift card sales, optimising our website and\r\n customer experience, informing you about our products and services and\r\n ensuring that our operations are conducted in an appropriate and efficient\r\n manner;\r\n

\r\n

\r\n c) Consent – in some circumstances, we may ask for your\r\n consent to process your Information in a particular way.\r\n

\r\n

\r\n 6. How we share your Information\r\n

\r\n

\r\n 6.1 In certain circumstances we will share your Information with other\r\n parties. Details of those parties are set out below along with the reasons\r\n for sharing it.\r\n

\r\n

\r\n a) Other parties within our group of companies: Your\r\n information may be shared with our UK affiliates including our parent\r\n company, as certain processing functions within Milano and PizzaExpress\r\n are centralised. Your information will not be shared with any of our\r\n international affiliates.\r\n

\r\n

\r\n b) Trusted third parties: In order to provide certain\r\n services, we will share your information with third party service providers\r\n such as IT infrastructure companies and email logistics providers. We will\r\n not share your data with any third party where it is not necessary to do so\r\n to provide a service to you.\r\n

\r\n

\r\n c) Regulatory and law enforcement agencies. As noted\r\n above, if we receive a request from a regulatory body or law enforcement\r\n agency, and if permitted under GDPR and other laws, we may disclose certain\r\n personal information to such bodies or agencies.\r\n

\r\n

\r\n d) New business owners. If we or our business merges with\r\n or is acquired by another business or company, we will share your personal\r\n information with the new owners of the business or company and their\r\n advisors. If this happens, you will be sent notice of such event.\r\n

\r\n

\r\n 7. How long we hold your Information\r\n

\r\n

\r\n We will only retain your Information for as long as is necessary for the\r\n purpose or purposes for which we have collected it. The criteria that we\r\n use to determine retention periods will be determined by the nature of the\r\n data and the purposes for which it is kept. For example, if we receive your\r\n Information through a competition entry, we will retain your data for as\r\n long as is necessary to administer the competition. If we receive your\r\n Information when you apply for a job, we will retain your data for as long\r\n as is necessary to process your application, and maintain application\r\n statistics. We will not directly market to you for longer than three (3)\r\n years, unless you consent to receive direct marketing by opting in again\r\n before the expiry of that three (3) year period. In certain circumstances,\r\n once we have deleted or anonymised your data, we may need to retain parts\r\n of it (for example, your email address), in order to comply with our\r\n obligations under GDPR or other legislation, or for fraud detection\r\n purposes.\r\n

\r\n

\r\n 8. Your rights relating to your Information\r\n

\r\n

\r\n 8.1 You have certain rights in relation to personal information we hold\r\n about you. Details of these rights and how to exercise them are set out\r\n below. We will require evidence of your identity before we are able to act\r\n on your request.\r\n

\r\n

\r\n a) Right of Access. You have the right at any time to ask\r\n us for a copy of the Information about you that we hold, and to confirm the\r\n nature of the Information and how it is used. Where we have good reason,\r\n and if the GDPR permits, we can refuse your request for a copy of your\r\n Information, or certain elements of the request. If we refuse your request\r\n or any element of it, we will provide you with our reasons for doing so.\r\n

\r\n

\r\n b) Right of Correction or Completion. If Information we\r\n hold about you is not accurate, or is out of date or incomplete, and\r\n requires amendment or correction you have a right to have the data\r\n rectified, updated or completed. You can let us know by contacting us at\r\n the address or email address set out above.\r\n

\r\n

\r\n c) Right of Erasure. In certain circumstances, you have\r\n the right to request that Information we hold about you is erased e.g. if\r\n the Information is no longer necessary for the purposes for which it was\r\n collected or processed or our processing of the Information is based on\r\n your consent and there are no other legal grounds on which we may process\r\n the Information.\r\n

\r\n

\r\n d) Right to Object to or Restrict Processing. In certain\r\n circumstances, you have the right to object to our processing of your\r\n Information by contacting us at the address or email address set out above.\r\n For example, if we are processing your Information on the basis of our\r\n legitimate interests and there are no compelling legitimate grounds for our\r\n processing which override your rights and interests. You also have the\r\n right to object to use of your Information for direct marketing purposes.\r\n

\r\n

\r\n You may also have the right to restrict our use of your Information, such\r\n as in circumstances where you have challenged the accuracy of the\r\n Information and during the period where we are verifying its accuracy.\r\n

\r\n

\r\n e) Right of Data Portability. In certain instances, you\r\n have a right to receive any Information that we hold about you in a\r\n structured, commonly used and machine-readable format. You can ask us to\r\n transmit that Information to you or directly to a third party organisation.\r\n

\r\n

\r\n This right exists in respect of Information that:\r\n

\r\n

\r\n • you have provided to us previously; and\r\n

\r\n

\r\n • is processed by us using automated means.\r\n

\r\n

\r\n While we are happy for such requests to be made, we are not able to\r\n guarantee technical compatibility with a third party organisation's\r\n systems. We are also unable to comply with requests that relate to\r\n Information of others without their consent.\r\n

\r\n

\r\n 8.2 You can exercise any of the above rights by contacting us at the\r\n address or e-mail address set out above. You can exercise your rights free\r\n of charge.\r\n

\r\n

\r\n 8.3 Most of the above rights are subject to limitations and exceptions. We\r\n will provide reasons if we are unable to comply with any request for the\r\n exercise of your rights.\r\n

\r\n

\r\n 9. Consent\r\n

\r\n

\r\n To the extent that we are processing your Information based on your\r\n consent, you have the right to withdraw your consent at any time. You can\r\n do this by unsubscribing via the link provided in any direct marketing\r\n communication, or contacting us at the address or email address set out\r\n above.\r\n

\r\n

\r\n 10. Cookies\r\n

\r\n

\r\n 10.1 Similar to other commercial websites, our Website uses a technology\r\n called \"cookies\" and web server logs to collect information about how our\r\n Website is used. A cookie is a very small text document, which often\r\n includes an anonymous unique identifier. When you visit a website, that\r\n site's computer asks your computer for permission to store this file in a\r\n part of your hard drive specifically designated for cookies\r\n

\r\n

\r\n 10.2 Information gathered through cookies and web server logs may include\r\n the date and time of visits, the pages viewed, time spent at our Website,\r\n and the websites visited just before and just after our Website.\r\n

\r\n

\r\n 10.3 Cookies, in conjunction with our web server's log files, allow us to\r\n calculate the aggregate number of people visiting our Website and which\r\n parts of the website are most popular. This helps us gather feedback so\r\n that we can improve our Website and better serve our customers. Cookies do\r\n not allow us to gather any personal Information about you and we do not\r\n generally store any personal Information that you provided to us in your\r\n cookies.\r\n

\r\n

\r\n 10.4 We use ‘session’ cookies which enable you to carry information across\r\n pages of the Website and avoid having to re-enter information. Session\r\n cookies enable us to compile statistics that help us to understand how the\r\n Website is being used and to improve its structure.\r\n

\r\n

\r\n 10.5 We also use ‘persistent’ cookies which remain in the cookies file of\r\n your browser for longer and help us to recognise you as a unique visitor to\r\n the Website, tailoring the content of certain areas of the Website to offer\r\n you content that match your preferred interests.\r\n

\r\n

\r\n 11. Website Accessibility\r\n

\r\n

\r\n 11.1 Milano recognises the importance of providing a website that is\r\n accessible to everyone and is easy to use. This section outlines our\r\n ongoing commitment to making our online services accessible and explains\r\n some of the accessibility features of this Website.\r\n

\r\n

\r\n 11.2 Website accessibility means that people with disabilities can use the\r\n Website. More specifically, Website accessibility means that people with\r\n disabilities can perceive, understand, navigate, and interact with the\r\n Website, and that they can contribute to the Website. Website accessibility\r\n also benefits others, including older people with changing abilities due to\r\n aging. (Quote from https://www.w3.org/WAI/intro/accessibility.php)\r\n

\r\n

\r\n 11.3 This Website contains the following features which should help users\r\n make the website more accessible:\r\n

\r\n

\r\n a) providing a sitemap;\r\n

\r\n

\r\n b) every content and decorative image has the ability to have alternative\r\n text added so if images are disabled or not appearing the user can see read\r\n what the image is displaying;\r\n

\r\n

\r\n c) tabbing through the Website is organised in a logical top down left to\r\n right order;\r\n

\r\n

\r\n d) clearly defined visible hover and focus (tab) state for each link;\r\n

\r\n

\r\n e) the ability to jump to the main content on the page by bypassing the top\r\n menu when you use the keyboard;\r\n

\r\n

\r\n f) HTML for lists, tables and quotes being coded correctly;\r\n

\r\n

\r\n g) the ability to navigate around the site and access all functionality by\r\n only using the keyboard;\r\n

\r\n

\r\n h) all fields and labels within forms including error messages, are clearly\r\n labelled and have the correct notations;\r\n

\r\n

\r\n i) the visual contrast combination of text and background colours meet the\r\n correct ratio so all text is easily read; and\r\n

\r\n

\r\n j) the Website is readable when large size text is used in Internet\r\n Explorer\r\n

\r\n

\r\n 11.4 At Milano we are committed to making our Website accessible to as many\r\n abled and less abled people as possible. We will continue to review, test\r\n and modify our Website for usability and accessibility issues using a\r\n combination of both manual and automated testing tools. These tools and\r\n techniques help us to aim towards meeting (where possible) the W3C\r\n guidelines as part of our ongoing commitment towards an accessible Website.\r\n

\r\n

\r\n 12. Changes to our Privacy Policy\r\n

\r\n

\r\n This privacy policy can be changed by us at any time. If we change our\r\n privacy policy in the future, we will advise you of material changes or\r\n updates to our privacy policy by e-mail, where we are holding your e-mail\r\n address.\r\n

\r\n

\r\n 13. Complaints\r\n

\r\n

\r\n If you are unhappy about our use of your Information, you can contact us at\r\n the address or e-mail address above. You are also entitled to lodge a\r\n complaint with the Irish Data Protection Commissioner’s Office using any of\r\n the below contact methods:\r\n

\r\n

\r\n Telephone: +353 (0761) 104 800\r\n

\r\n

\r\n Email: info@dataprotection.ie\r\n

\r\n

\r\n Post: Office of the Data Protection Commissioner\r\n

\r\n

\r\n Canal House\r\n

\r\n

\r\n Station Road\r\n

\r\n

\r\n Portarlington\r\n

\r\n

\r\n Co.Laois\r\n

\r\n

\r\n R32 AP23\r\n

\r\n \r\n );\r\n }\r\n\r\nexport default MenuMiTandC;","import React from 'react';\r\n\r\nconst MenuMiTandC = () => {\r\n \r\n return (\r\n \r\n

Please watch out for stray olive stones and bones.

\r\n

V Suitable for Vegetarians. Ve Suitable for Vegans (other dishes are available, ask for the Vegan menu).

\r\n

We apply a discretionary 12.5% service charge for parties of 7 or more adults (aged 18 years+). Whether you include it or not is entirely up to you. Where we include a discretionary service charge on your bill, this service charge includes VAT at the prevailing rate and we share the remainder (net of VAT) amongst the waiters and kitchen team that helped create your Milano experience. Any gratuity you pay which is not included within your bill is outside the scope of VAT, whether you pay by cash or card. For more information please visit our website www.milano.ie

\r\n

The ABV% on alcoholic drinks are correct at time of printing this menu, however may be subject to change.

\r\n

Tom Flanagan Fund (registered charity number CHY4908) supports Enable Ireland and its Assistive Technology Programme to open a new world of possibilities to those excluded due to disability.

\r\n

The policy of the trustees of the Veneziana Fund (registered charity number 262146) and details of the causes supported can be found on our website www.milano.ie

\r\n

Head Office: Agenbite Limited (trading as Milano), 38 Main Street, Swords, Co. Dublin, Republic of Ireland.

\r\n
\r\n );\r\n }\r\n\r\nexport default MenuMiTandC;","\r\nimport React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\nimport PeTandC from './legal_components/PeTandC';\r\nimport PePrivacyPolicy from './legal_components/PePrivacyPolicy';\r\nimport MenuPeTandC from './legal_components/MenuPeTandC';\r\n\r\nimport MiTandC from './legal_components/MiTandC';\r\nimport MiPrivacyPolicy from './legal_components/MiPrivacyPolicy';\r\nimport MenuMiTandC from './legal_components/MenuMiTandC';\r\nimport SwipeableContainer from '../components/Swipeable';\r\n\r\nclass Legal extends React.Component {\r\n render() {\r\n const name = \"Menu Terms & Conditions\";\r\n const backButtonHandler = this.props.closePrivacyPolicyTermsAndConditionsModal;\r\n const slideUpModal = !!this.props.privacyPolicyAndTermsConditionsModal || !!this.props.privacyPolicyAndTermsConditionsModalMenu;\r\n\r\n return (\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
{name !== null &&

{name}

}
\r\n
\r\n {!!slideUpModal && (\r\n
\r\n
\r\n {this.props.brandTermConditions\r\n ? \r\n {this.props.privacyPolicyCopy && }\r\n {this.props.termAndConditionsCopy && }\r\n {this.props.termAndConditionsMenuCopy && }\r\n \r\n : \r\n {this.props.privacyPolicyCopy && }\r\n {this.props.termAndConditionsCopy && }\r\n {this.props.termAndConditionsMenuCopy && }\r\n \r\n }\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(Legal,\r\n {\r\n mobXProps: ({\r\n privacyPolicyAndTermsConditionsModal,\r\n privacyPolicyAndTermsConditionsModalMenu,\r\n privacyPolicyCopy,\r\n termAndConditionsCopy,\r\n termAndConditionsMenuCopy\r\n }) => ({\r\n privacyPolicyAndTermsConditionsModal,\r\n privacyPolicyAndTermsConditionsModalMenu,\r\n privacyPolicyCopy,\r\n termAndConditionsCopy,\r\n termAndConditionsMenuCopy\r\n }),\r\n mobXActions: ({ \r\n closePrivacyPolicyTermsAndConditionsModal,\r\n }) => ({\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n })\r\n}\r\n);\r\n\r\n\r\n\r\n// import React from 'react';\r\n\r\n// import withAppState from '../mobx/withAppState'\r\n// class Legal extends React.Component {\r\n// render() {\r\n// return (\r\n//
\r\n \r\n// {this.props.privacyPolicyCopy === true &&\r\n//
\r\n//

Privacy Policy

\r\n//

1. Privacy and Your Personal Data

\r\n//

1.1 PizzaExpress (Restaurants) Limited is committed to protecting the privacy of our users and customers. This privacy policy (\"Privacy Policy\") is intended to inform you on how we gather, define, and utilise your Information (as defined below).

\r\n//

1.2 It applies to Information collected by us, or provided by you, whether in one of our restaurants, over our Website (including the mobile optimised version of the website accessible from your portable hand-held device), our PizzaExpress App, or in any other way (such as over the telephone). It is also intended to assist you in making informed decisions when using our Website, App and our products and services. Please take a minute to read and understand the policy.

\r\n//

1.3 All your personal Information shall be held and used in accordance with the EU General Data Protection Regulation 2016/679 (\"GDPR\") and national laws implementing GDPR and any legislation that replaces it in whole or in part and any other legislation relating to the protection of personal data. If you want to know what information we collect and hold about you, or to exercise any of your rights as set out in section 9 below, please write to us at the below address or via email at legal@pizzaexpress.com:

\r\n//

FAO: Legal Department
PizzaExpress (Restaurants) Limited
Hunton House,
Highbridge Estate,
Oxford Road,
Uxbridge,
Middlesex,
UB8 1LX

\r\n//

1.4 PizzaExpress (Restaurants) Limited is the controller of your Information for the purposes of the GDPR and is a company registered under number 02805490 and whose VAT number is GB 627 0767 30.

\r\n//

2. What Information Do We Collect on our Website?

\r\n//

2.1 When you visit our Website (including the mobile optimised version of the website accessible from your portable hand-held device) you may provide us with personal information such as name, postcode, email address, mobile phone number, date of birth (month and year only), credit, debit, or PayPal account details and information about other members of your family who might be interested in our services (\"Information\"). You may provide us with Information in a number of ways:

\r\n//

a) by supplying us with the Information as listed above, on an individual basis by registering as a registered user or subscribing to receive updates or offers from us. To become a registered user you must provide us with your name, postcode, date of birth (month and year only), and email address, but you may also provide us with additional information if you choose to do so.

\r\n//

b) by corresponding with us by email, in which case we may retain the content of your email messages together with your email address and our responses;

\r\n//

c) by booking a table, ordering a takeaway online using our Click & Collect or Delivery service, downloading our offers, purchasing a gift card, purchasing PizzaExpress Live tickets, or applying for a job with us;

\r\n//

d) through any preferences and areas of interest as advised by you on subscribing to our online services;

\r\n//

e) by Information provided when you use our App (see below); and

\r\n//

f) by Information provided when you use our mobile optimised website from your portable hand-held device including details of your physical location, where you have agreed to it being used.

\r\n//

2.2 From time to time we may give you the option to provide us with Information about other people in your life, for example as a registered user, you have the option to tell us whether you have any children and if so their gender and the month and year of their birth We use this Information to tell you about offers that may be relevant to your friends or family members in accordance with their age.

\r\n//

2.3 We may collect Information about your computer, including where available your IP address, operating system, browser type and the geographical location of your computer, for system administration purposes. We may also report aggregate information to our advertisers. This is statistical data about browsing actions and patterns and does not identify you as an individual.

\r\n//

3. What Information do we collect on our App?

\r\n//

3.1 When using our App, you may provide us with the following Information:

\r\n//

a) your name and contact details (email address and mobile telephone number), if you use the App to book a table at one of our restaurants;

\r\n//

b) further information (mobile phone number, date of birth (month and year only), favourite restaurants, details about other members of your family who might be interested in our services, if you use the App to register as a registered user or subscribe to receive updates or offers from us. To become a registered user you must provide us with your name, postcode, email address, and date of birth (month and year only), but you may also provide us with additional information if you choose to do so;

\r\n//

c) information which allows us to identify your credit or debit account details to complete a transaction with you, should you elect to pay for your takeaway or pay your restaurant bill using the ‘Pay at Table’ function via the App;

\r\n//

d) your physical location, where you have agreed to it being used for the restaurant locator feature on the App or where you allow the App to access your location settings; and

\r\n//

e) other Information that may be provided by you when adding content to our App, or to our social network pages such as Facebook.

\r\n//

4. What Information do we collect in our restaurants or elsewhere?

\r\n//

4.1 When you are in one of our restaurants, we may collect the following Information when you use the PizzaExpress Wi-Fi service:

\r\n//

a) your name and contact details (date of birth), email address, postcode and mobile telephone number)

\r\n//

b) your physical location, whilst you are in the restaurant only

\r\n//

5. How we use your Information

\r\n//

5.1 We will hold, use and disclose your Information for our legitimate business purposes including:

\r\n//

a) to keep you up to date about important changes to our business;

\r\n//

b) to direct-market products and services (including push notifications), advise you of news and industry updates, events, promotions and competitions and other information. Before we do so, you will be given an option to opt-out of such communications and an option to unsubscribe will also be provided with each communication;

\r\n//

c) to apply profiling technology which analyses our customers’ engagement with our direct marketing communications, activity and interests so that we can send you content that is relevant to you;

\r\n//

d) to answer your queries;

\r\n//

e) to provide further services to you by sharing your Information with other companies within our group of companies, as well as trusted third parties. Further details about this are set out in the section 8 below on Sharing your Personal Information;

\r\n//

f) to release Information to regulatory or law enforcement agencies, if we are required or permitted to do so.

\r\n//

5.2 We may process certain sensitive personal data (known as special category data in GDPR) where you include it in information you send to us e.g. if you include information about your health in booking requests. We have processes in place to limit our use and disclosure of such sensitive data other than where permitted by law.

\r\n//

6. The legal basis for processing your Information

\r\n//

6.1 Under GDPR, the main grounds that we rely upon in order to process your Information are the following:

\r\n//

a) Necessary for compliance with a legal obligation – we are subject to certain legal requirements which may require us to process your Information. We may also be obliged by law to disclose your Information to a regulatory body or law enforcement agency;

\r\n//

b) Necessary for the purposes of legitimate interests - either we, or a third party, will need to process your Information for the purposes of our (or a third party's) legitimate interests, provided we have established that those interests are not overridden by your rights and freedoms, including your right to have your Information protected. Our legitimate interests include responding to requests and enquiries from you or a third party, fulfilling takeaway, gift card or PizzaExpress Live ticket sales, optimising our website and customer experience, informing you about our products and services and ensuring that our operations are conducted in an appropriate and efficient manner;

\r\n//

c) Consent – in some circumstances, we may ask for your consent to process your Information in a particular way.

\r\n//

7. How we share your Information

\r\n//

7.1 In certain circumstances we will share your Information with other parties. Details of those parties are set out below along with the reasons for sharing it.

\r\n//

a) Other parties within our group of companies: Your information may be shared with our UK affiliates including our parent company, as certain processing functions within PizzaExpress are centralised. Your information will not be shared with any of our international affiliates.

\r\n//

b) Trusted third parties: In order to provide certain services, we will share your information with third party service providers such as IT infrastructure companies and email logistics providers. We will not share your data with any third party where it is not necessary to do so to provide a service to you.

\r\n//

c) Regulatory and law enforcement agencies. As noted above, if we receive a request from a regulatory body or law enforcement agency, and if permitted under GDPR and other laws, we may disclose certain personal information to such bodies or agencies.

\r\n//

d) New business owners. If we or our business merges with or is acquired by another business or company, we will share your personal information with the new owners of the business or company and their advisors. If this happens, you will be sent notice of such event.

\r\n//

8. How long we hold your Information

\r\n//

We will only retain your Information for as long as is necessary for the purpose or purposes for which we have collected it. The criteria that we use to determine retention periods will be determined by the nature of the data and the purposes for which it is kept. For example, if we receive your Information through a competition entry, we will retain your data for as long as is necessary to administer the competition. If we receive your Information when you apply for a job, we will retain your data for as long as is necessary to process your application, and maintain application statistics. We will not directly market to you for longer than three (3) years, unless you consent to receive direct marketing by opting in again before the expiry of that three (3) year period. In certain circumstances, once we have deleted or anonymised your data, we may need to retain parts of it (for example, your email address), in order to comply with our obligations under GDPR or other legislation, or for fraud detection purposes.

\r\n//

9. Your rights relating to your Information

\r\n//

9.1 You have certain rights in relation to personal information we hold about you. Details of these rights and how to exercise them are set out below. We will require evidence of your identity before we are able to act on your request.

\r\n//

a) Right of Access. You have the right at any time to ask us for a copy of the Information about you that we hold, and to confirm the nature of the Information and how it is used. Where we have good reason, and if the GDPR permits, we can refuse your request for a copy of your Information, or certain elements of the request. If we refuse your request or any element of it, we will provide you with our reasons for doing so.

\r\n//

b) Right of Correction or Completion. If Information we hold about you is not accurate, or is out of date or incomplete, and requires amendment or correction you have a right to have the data rectified, updated or completed. You can let us know by contacting us at the address or email address set out above.

\r\n//

c) Right of Erasure. In certain circumstances, you have the right to request that Information we hold about you is erased e.g. if the Information is no longer necessary for the purposes for which it was collected or processed or our processing of the Information is based on your consent and there are no other legal grounds on which we may process the Information.

\r\n//

d) Right to Object to or Restrict Processing. In certain circumstances, you have the right to object to our processing of your Information by contacting us at the address or email address set out above. For example, if we are processing your Information on the basis of our legitimate interests and there are no compelling legitimate grounds for our processing which override your rights and interests. You also have the right to object to use of your Information for direct marketing purposes.

\r\n//

You may also have the right to restrict our use of your Information, such as in circumstances where you have challenged the accuracy of the Information and during the period where we are verifying its accuracy.

\r\n//

e) Right of Data Portability. In certain instances, you have a right to receive any Information that we hold about you in a structured, commonly used and machine-readable format. You can ask us to transmit that Information to you or directly to a third party organisation.

\r\n//

This right exists in respect of Information that:

\r\n//
    \r\n//
  • you have provided to us previously; and
  • \r\n//
  • is processed by us using automated means.
  • \r\n//
\r\n//

While we are happy for such requests to be made, we are not able to guarantee technical compatibility with a third party organisation's systems. We are also unable to comply with requests that relate to Information of others without their consent.

\r\n//

9.2 You can exercise any of the above rights by contacting us at the address or email address set out above. You can exercise your rights free of charge.

\r\n//

9.3 Most of the above rights are subject to limitations and exceptions. We will provide reasons if we are unable to comply with any request for the exercise of your rights.

\r\n//

10. Consent

\r\n//

To the extent that we are processing your Information based on your consent, you have the right to withdraw your consent at any time. You can do this by unsubscribing via the link provided in any direct marketing communication, or contacting us at the address or email address set out above.

\r\n//

11. Cookies

\r\n//

11.1 Similar to other commercial websites, our Website uses a technology called \"cookies\" and web server logs to collect information about how our Website is used. A cookie is a very small text document, which often includes an anonymous unique identifier. When you visit a website, that site's computer asks your computer for permission to store this file in a part of your hard drive specifically designated for cookies

\r\n//

11.2 Information gathered through cookies and web server logs may include the date and time of visits, the pages viewed, time spent at our Website, and the websites visited just before and just after our Website.

\r\n//

11.3 Cookies, in conjunction with our web server's log files, allow us to calculate the aggregate number of people visiting our Website and which parts of the website are most popular. This helps us gather feedback so that we can improve our Website and better serve our customers. Cookies do not allow us to gather any personal Information about you and we do not generally store any personal Information that you provided to us in your cookies.

\r\n//

11.4 We use ‘session’ cookies which enable you to carry information across pages of the Website and avoid having to re-enter information. Session cookies enable us to compile statistics that help us to understand how the Website is being used and to improve its structure.

\r\n//

11.5 We also use ‘persistent’ cookies which remain in the cookies file of your browser for longer and help us to recognise you as a unique visitor to the Website, tailoring the content of certain areas of the Website to offer you content that match your preferred interests.

\r\n//

12. Website Accessibility

\r\n//

12.1 PizzaExpress recognises the importance of providing a website that is accessible to everyone and is easy to use. This section outlines our ongoing commitment to making our online services accessible and explains some of the accessibility features of this Website.

\r\n//

12.2 Website accessibility means that people with disabilities can use the Website. More specifically, Website accessibility means that people with disabilities can perceive, understand, navigate, and interact with the Website, and that they can contribute to the Website. Website accessibility also benefits others, including older people with changing abilities due to aging. (Quote from https://www.w3.org/WAI/intro/accessibility.php)

\r\n//

12.3 This Website contains the following features which should help users make the website more accessible:

\r\n//

a) providing a sitemap;

\r\n//

b) every content and decorative image has the ability to have alternative text added so if images are disabled or not appearing the user can see read what the image is displaying;

\r\n//

c) tabbing through the Website is organised in a logical top down left to right order;

\r\n//

d) clearly defined visible hover and focus (tab) state for each link;

\r\n//

e) the ability to jump to the main content on the page by bypassing the top menu when you use the keyboard;

\r\n//

f) HTML for lists, tables and quotes being coded correctly;

\r\n//

g) the ability to navigate around the site and access all functionality by only using the keyboard;

\r\n//

h) all fields and labels within forms including error messages, are clearly labelled and have the correct notations;

\r\n//

i) the visual contrast combination of text and background colours meet the correct ratio so all text is easily read; and

\r\n//

j) the Website is readable when large size text is used in Internet Explorer

\r\n//

12.4 At PizzaExpress we are committed to making our Website accessible to as many abled and less abled people as possible. We will continue to review, test and modify our Website for usability and accessibility issues using a combination of both manual and automated testing tools. These tools and techniques help us to aim towards meeting (where possible) the W3C guidelines as part of our ongoing commitment towards an accessible Website.

\r\n//

13. Changes to our Privacy Policy

\r\n//

This privacy policy can be changed by us at any time. If we change our privacy policy in the future, we will advise you of material changes or updates to our privacy policy by email, where we are holding your email address.

\r\n//

14. Complaints

\r\n//

If you are unhappy about our use of your Information, you can contact us at the address or email address above. You are also entitled to lodge a complaint with the UK Information Commissioner's Office using any of the below contact methods:

\r\n//

Telephone: 0303 123 11113
Website: https://ico.org.uk/concerns/
Post: Information Commissioner's Office
Wycliffe House
Water Lane
Wilmslow
Cheshire
SK9 5AF

\r\n//
\r\n// }\r\n\r\n// {this.props.termAndConditionsCopy === true &&\r\n//
\r\n//

Terms and Conditions

\r\n//

1. Introduction

\r\n//

1.1 Welcome to our website, www.pizzaexpress.com, which is accessible via your computer or your portable hand-held device (the “Website”), or App (the “App”). The Website and App are provided by PizzaExpress (Restaurants) Limited of Hunton House, Highbridge Estate, Oxford Road, Uxbridge, Middlesex, UB8 1LX (“PizzaExpress”, “us”, “we” or “our” for short). “you” and “your” means you as the user of our Website.

\r\n//

1.2 We have set out the terms under which we are providing you with access to our Website or App and their products and services. These include the terms and conditions that govern:

\r\n//

a) your use of our Website or App (including the mobile optimised version of our Website accessible from your portable hand-held device);

\r\n//

b) your use of the services and products offered through our Website or App;

\r\n//

c) your rights to link to our Website or App;

\r\n//

d) how we will use and protect information about you (see our separate “Privacy and Cookies Policy”) and

\r\n//

e) your obligations when uploading comments to our Website (see our “Content Standards” below).

\r\n//

1.3 Collectively these documents are termed as the “Terms of Use”.

\r\n//

1.4 We may change our Terms of Use from time to time. The revised Terms of Use will be available via the Website and App. You should check the Terms of Use regularly to ensure that you understand and are familiar with any changes. You will be deemed to have accepted any changes to the Terms of Use after you have been notified of the changes on our Website home page and you continue to access or use the Website or App.

\r\n//

2. Use of This Website & App

\r\n//

2.1 These Terms of Use set out how you may use our Website or App. By accessing the Website or App, you agree to these Terms of Use.

\r\n//

2.2 If you do not agree to these Terms of Use, you should not use the Website or App. You should read all the Terms of Use prior to using the Website. You should also save and/or print out a copy of these Terms of Use for future reference.

\r\n//

3. Age Restrictions

\r\n//

3.1 Our Website is suitable for users of any age, however there are particular products or services available through this site and our App which are only available to users over the age of 16. These are:

\r\n//

a) Booking a table

\r\n//

b) Creating a MyPizzaExpress account

\r\n//

c) Downloading an offer

\r\n//

d) Accessing our in-restaurant Wi-Fi service

\r\n//

e) Ordering a takeaway via our Click&Collect service

\r\n//

f) Purchasing a gift card or eGift

\r\n//

4. Specific Terms

\r\n//

4.1 There are specific terms which apply to particular products or services available through this site, including:

\r\n//

a) Booking a table

\r\n//

b) Ordering a takeaway

\r\n//

d) Offers and Promotions

\r\n//

e) Gifting

\r\n//

4.2 These terms are located on the relevant page of this site for each product or service, and only relate to the specific products or services mentioned. If there is a conflict between these general Terms of Use and the specific terms, the relevant specific terms will take precedence.

\r\n//

5. Accessing Our Website & App

\r\n//

5.1 Access to our Website is permitted on a temporary basis. We update our website regularly and so may change the content at any time without notice to you. We reserve the right to withdraw, vary or suspend the service at any time without notice.

\r\n//

5.2 You are responsible for making all arrangements necessary to access this Website. You are also responsible for ensuring that all persons accessing our Website through your internet connection are aware of these Terms of Use.

\r\n//

5.3 Please note that use of our Website is subject to your computer and/or portable device complying with our minimum standard technical specification and compatibility notice. You are advised to check this specification to ensure that your computer and/or portable device is compatible with our products and services and we shall not be liable for any failure arising in the Website which arises from incompatibility (including, without limitation, minimum storage and memory requirements from time to time).

\r\n//

6. Reliance on Information Posted

\r\n//

6.1 Materials posted on our Website are not intended as advice and should not be relied upon as such. We therefore accept no liability or responsibility arising from any reliance placed on such information to the fullest extent permissible by law.

\r\n//

6.2 Where we provide details of our restaurant menus, we make no promise that those details will be available in a particular restaurant on a particular day – all menus are subject to availability.

\r\n//

7. Intellectual Property

\r\n//

7.1 You may access, view and print out one copy of this Website and all information, images, and other content displayed on the Website (\"Materials\") strictly in accordance with these Terms of Use.

\r\n//

7.2 You may only view, print out, use, quote from and cite the Website and the Materials for your own personal, non-commercial use and on the condition that you provide the relevant acknowledgement where appropriate to PizzaExpress. All intellectual property rights in and to the Website and the Materials are either owned by or licensed to us and your use of the Website and Materials is subject to the following restrictions. You must not:

\r\n//

a) remove any copyright or other proprietary notices contained in the Materials;

\r\n//

b) use any Materials from the Website in any manner that may infringe any copyright, intellectual property right or proprietary right of us or any third parties; or

\r\n//

c) reproduce, modify, display, perform, publish, distribute, disseminate, broadcast, frame, communicate to the public or circulate to any third party or exploit this Website and/or the Materials for any commercial purpose, without our prior written consent.

\r\n//
\r\n// }\r\n// {this.props.termAndConditionsMenuCopy === true && \r\n//
\r\n// {this.props.brandTermConditions ?\r\n// <>\r\n//

All gratuities go to the team who looked after you today.

\r\n//

Please watch out for stray olive stones and bones.

\r\n//

V Suitable for Vegetarians. (Ve) Suitable for Vegans (other dishes are available, please ask for the Vegan menu).

\r\n//

All our prices include VAT (Jersey GST) but no service charge. However, we will ask for a discretionary 12.5% service charge for parties of 7 or more adults (aged 18 years+). Whether you include it or not is entirely up to you.

\r\n//

The ABV% on alcoholic drinks are correct at time of printing this menu, however, may be subject to change.

\r\n//

The policy of the trustees of the Veneziana Fund (registered charity number 262146) was set up by PizzaExpress founder, Peter Boizot. Please visit www.pizzaexpress.com for full details.

\r\n//

For every Padana pizza sold, a discretionary donation of 25p will be paid to Macmillan Cancer Support, a registered charity in England & Wales (261017), in Scotland (SC039907) and in the Isle of Man (604). Macmillan Cancer Support provides emotional, financial, medical and practical support for people affected by cancer. For more information, visit www.macmillan.org.uk

\r\n//

Head Office: PizzaExpress, Hunton House, Highbridge Estate, Oxford Road, Uxbridge, UB8 1LX.

\r\n// : <>\r\n//

Please watch out for stray olive stones and bones.

\r\n//

V Suitable for Vegetarians. (Ve) Suitable for Vegans (other dishes are available, please ask for the Vegan menu).

\r\n//

All our prices include VAT but no service charge; however, we will ask for a discretionary 12.5% service charge for parties of 7 or more adults (aged 18 years+). Whether you include it or not is entirely up to you. Where we include a discretionary service charge on your bill, this service charge includes VAT at 13.5% and we share the remainder (net of VAT) amongst the waiters and kitchen team that helped create your Milano experience. Any gratuity you pay which is not included in your bill is outside the scope of VAT and 100% of any such gratuity is shared amongst the waiters and kitchen team. This is the same whether you pay by card or cash. For more information please visit our website www.milano.ie

\r\n//

The ABV% on alcoholic drinks are correct at time of printing this menu, however may be subject to change.

\r\n//

Tom Flanagan Fund (registered charity number CHY4908) supports Enable Ireland and its Assistive Technology Programme to open a new world of possibilities to those excluded due to disability.

\r\n//

The policy of the trustees of the Veneziana Fund (registered charity number 262146) and details of the causes supported can be found on our website www.milano.ie

\r\n//

Head Office: Milano, Hunton House, Highbridge Estate, Oxford Road, Uxbridge, UB8 1LX.

\r\n// \r\n// }\r\n//
\r\n// }\r\n// {this.props.cookiesPolicyCopy === true && \r\n//
\r\n//

Cookies

\r\n//

1.1 Similar to other commercial websites, our Website uses a technology called \"cookies\" and web server logs to collect information about how our Website is used. A cookie is a very small text document, which often includes an anonymous unique identifier. When you visit a website, that site's computer asks your computer for permission to store this file in a part of your hard drive specifically designated for cookies

\r\n//

1.2 Information gathered through cookies and web server logs may include the date and time of visits, the pages viewed, time spent at our Website, and the websites visited just before and just after our Website.

\r\n//

1.3 Cookies, in conjunction with our web server's log files, allow us to calculate the aggregate number of people visiting our Website and which parts of the website are most popular. This helps us gather feedback so that we can improve our Website and better serve our customers. Cookies do not allow us to gather any personal Information about you and we do not generally store any personal Information that you provided to us in your cookies.

\r\n//

1.4 We use ‘session’ cookies which enable you to carry information across pages of the Website and avoid having to re-enter information. Session cookies enable us to compile statistics that help us to understand how the Website is being used and to improve its structure.

\r\n//

1.5 We also use ‘persistent’ cookies which remain in the cookies file of your browser for longer and help us to recognise you as a unique visitor to the Website, tailoring the content of certain areas of the Website to offer you content that match your preferred interests.

\r\n//

1.6 You can refuse to accept cookies by activating the setting on your browser which allows you to refuse the setting of cookies. However, if you select this setting you may be unable to access certain parts of the Website.

\r\n//
\r\n// }\r\n\r\n// {this.props.privacyPolicyAndTermsConditionsModalMenu === true ? (\r\n//
\r\n//
\r\n// \r\n//
\r\n//
\r\n// ) : null}\r\n//
\r\n// );\r\n// }\r\n// }\r\n\r\n// export default withAppState(Legal,\r\n// {\r\n// mobXProps: ({\r\n// privacyPolicyAndTermsConditionsModal,\r\n// privacyPolicyAndTermsConditionsModalMenu,\r\n// privacyPolicyCopy,\r\n// termAndConditionsCopy,\r\n// termAndConditionsMenuCopy,\r\n// cookiesPolicyCopy,\r\n// }) => ({\r\n// privacyPolicyAndTermsConditionsModal,\r\n// privacyPolicyAndTermsConditionsModalMenu,\r\n// privacyPolicyCopy,\r\n// termAndConditionsCopy,\r\n// termAndConditionsMenuCopy,\r\n// cookiesPolicyCopy,\r\n// }),\r\n// mobXActions: ({ \r\n// closePrivacyPolicyTermsAndConditionsModal,\r\n// }) => ({\r\n// closePrivacyPolicyTermsAndConditionsModal,\r\n// })\r\n// }\r\n// );\r\n\r\n","import React, { createRef } from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\nimport { Steps } from '../lib/constants';\r\nimport { fontResizer } from '../helpers/fontResizer.js';\r\n\r\nconst SecondaryCTA = (props) => {\r\n const { activeStep, secondaryCTAActive, fontSize, secondaryCTALoadingAnimationActive, secondaryCTAText } = props;\r\n return activeStep === Steps.BILL\r\n ? (\r\n \r\n {secondaryCTALoadingAnimationActive === true\r\n ? \r\n : {secondaryCTAText}}\r\n \r\n )\r\n : null\r\n}\r\n\r\nconst MainCTA = (props) => {\r\n const { activeStep, fontSize, mainCTAActive, mainCTAText, mainCTALoadingAnimationActive } = props;\r\n return (\r\n mainCTAActive === true && props.mainCTA()}\r\n >\r\n {mainCTALoadingAnimationActive === true\r\n ? ()\r\n : ({mainCTAText})}\r\n \r\n );\r\n}\r\n\r\nclass Footer extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n loadingAnimation: true\r\n };\r\n }\r\n\r\n \r\n \r\n componentDidMount() {\r\n window.addEventListener('resize', () => {\r\n this.forceUpdate();\r\n });\r\n }\r\n \r\n render() {\r\n\r\n const {\r\n activeStep,\r\n submittingPayment,\r\n innerWrapper,\r\n } = this.props;\r\n\r\n if (submittingPayment === true) {\r\n return null;\r\n }\r\n let fontSize = 16;\r\n if (activeStep === Steps.BILL) {\r\n fontSize = fontResizer('', 'btn');\r\n if (fontSize > 16) fontSize = 16;\r\n }\r\n\r\n if (activeStep === Steps.BILL ||\r\n activeStep === Steps.APPLY_GRATUITY ||\r\n activeStep === Steps.PAY ||\r\n activeStep === Steps.REGISTER) {\r\n return (\r\n
\r\n {innerWrapper === true ? (\r\n
\r\n \r\n \r\n
) : ( \r\n <>\r\n \r\n \r\n )}\r\n
\r\n )\r\n }\r\n return null\r\n }\r\n}\r\n\r\nexport default withAppState(Footer,\r\n {\r\n mobXProps: ({\r\n submittingPayment,\r\n activeStep,\r\n secondaryCTAActive,\r\n secondaryCTALoadingAnimationActive,\r\n secondaryCTAText,\r\n mainCTAActive,\r\n mainCTALoadingAnimationActive,\r\n mainCTAText,\r\n }) => ({\r\n submittingPayment,\r\n activeStep,\r\n secondaryCTAActive,\r\n secondaryCTALoadingAnimationActive,\r\n secondaryCTAText,\r\n mainCTAActive,\r\n mainCTALoadingAnimationActive,\r\n mainCTAText,\r\n }),\r\n mobXActions: ({\r\n secondaryCTA,\r\n mainCTA,\r\n }) => ({\r\n secondaryCTA,\r\n mainCTA,\r\n })\r\n }\r\n);","export function fontResizer(restaurantName, type='top') {\r\n\r\n\r\n if (restaurantName) {\r\n\r\n let restTitleLength = restaurantName.length\r\n\r\n // Check if we are in mobile, tablet or desktop views\r\n var windowWidth = window.innerWidth\r\n if (windowWidth >= 800) {\r\n windowWidth = 400;\r\n }\r\n\r\n let availableSpace = 0\r\n let widthPerLetter = 0\r\n let fontSize = 10\r\n\r\n const calculateFontSize = () => {\r\n\r\n if (type === 'top') {\r\n availableSpace = windowWidth - 50;\r\n } else if (type === 'btn') {\r\n availableSpace = (windowWidth / 2 - 8);\r\n }\r\n\r\n widthPerLetter = availableSpace / restTitleLength;\r\n fontSize = widthPerLetter * 1.5;\r\n if (fontSize > 20.8) fontSize = 20.8\r\n // if (fontSize > 17.5) fontSize = 17.5\r\n\r\n return fontSize;\r\n }\r\n return calculateFontSize();\r\n }\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport withAppState from '../mobx/withAppState';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faMapMarkerAlt, faBars } from '@fortawesome/free-solid-svg-icons';\r\nconst Header = props => {\r\n const { appPlatform, logo, setAppHeaderHeight } = props;\r\n const appHeader = useRef();\r\n const [isBurgerMenuOpen, setIsBurgerMenuOpen] = useState(false);\r\n const burger = \r\n\r\n const toggleBurgerMenu = () => {\r\n setIsBurgerMenuOpen(!isBurgerMenuOpen);\r\n };\r\n\r\n const handleOutsideClick = (event) => {\r\n if (!event.target.closest('.active')) {\r\n setIsBurgerMenuOpen(prev => !prev);\r\n }\r\n };\r\n useEffect(() => {\r\n if (isBurgerMenuOpen) {\r\n document.addEventListener('click', handleOutsideClick);\r\n }\r\n return () => document.removeEventListener('click', handleOutsideClick);\r\n }, [isBurgerMenuOpen])\r\n\r\n useEffect(() => {\r\n if (appHeader.current) {\r\n setAppHeaderHeight(appHeader.current.clientHeight);\r\n }\r\n\r\n const updateWindowDimensions = () => {\r\n if (appHeader.current) {\r\n setAppHeaderHeight(appHeader.current.clientHeight);\r\n }\r\n };\r\n\r\n window.addEventListener(\"resize\", updateWindowDimensions);\r\n\r\n return () => window.removeEventListener(\"resize\", updateWindowDimensions)\r\n\r\n }, [appHeader.current], []);\r\n\r\n const menuHeader = [\r\n { value: 'Menu', link: 'https://www.milano.ie/restaurant-menu' },\r\n { value: 'Book', link: 'https://www.milano.ie/book/book-a-table-uk' },\r\n { value: 'Collection', link: 'https://order.milano.ie/' },\r\n { value: 'Delivery', link: 'https://www.milano.ie/delivery' },\r\n { value: 'Cook at Home', link: 'https://www.milano.ie/cook-at-home' },\r\n { value: 'Offers', link: 'https://www.milano.ie/offers' },\r\n { value: 'Gifts', link: 'https://www.milano.ie/giftsu' },\r\n { value: 'Help', link: 'https://www.milano.ie/help-and-contact' }\r\n ]\r\n\r\n return !!appPlatform ? null : (\r\n
\r\n
\r\n
\r\n {logo}\r\n
\r\n
    \r\n {menuHeader.map((nav, navIdx) => {\r\n return (\r\n
  • \r\n {nav?.value}\r\n
  • \r\n\r\n )\r\n })}\r\n
\r\n
    \r\n
    \r\n
      \r\n \r\n \r\n {isBurgerMenuOpen && (\r\n
      \r\n
        \r\n {menuHeader.map((nav, navIdx) => {\r\n return (\r\n
      • \r\n {nav?.value}\r\n
      • \r\n\r\n )\r\n })}\r\n
      \r\n
      \r\n )}\r\n \r\n
    \r\n
    \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default withAppState(Header, {\r\n mobXProps: ({\r\n appPlatform\r\n }) => ({\r\n appPlatform,\r\n }),\r\n mobXActions: ({\r\n setAppHeaderHeight\r\n }) => ({\r\n setAppHeaderHeight\r\n }),\r\n});\r\n","const makeCancelable = (promise, onCancel) => {\r\n return {\r\n hasCanceled_: false,\r\n result: promise,\r\n cancel() {\r\n this.hasCanceled_ = true;\r\n },\r\n async then(resolve, reject) {\r\n let result = await promise;\r\n if (this.hasCanceled_) {\r\n if (onCancel && typeof onCancel === \"function\") {\r\n onCancel();\r\n }\r\n\r\n return resolve(\r\n {\r\n status: 499,\r\n isCanceled: true,\r\n result: result\r\n });\r\n }\r\n else {\r\n return resolve(result);\r\n }\r\n }\r\n };\r\n};\r\nexport default makeCancelable;","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\n\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport {\r\n faMapMarkedAlt,\r\n faStar,\r\n faMapMarkerAlt\r\n} from '@fortawesome/free-solid-svg-icons';\r\n\r\nimport makeCancelable from '../helpers/PromiseWrapper';\r\n\r\nconst mapmarker = ;\r\n\r\nconst WAIT_INTERVAL = 500;\r\nconst LOADING_TIMEOUT_SECONDS = 7;\r\n\r\nclass RestaurantSearch extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.locationSearch = React.createRef();\r\n this.state = {\r\n results: this.props.restaurantSearchCache,\r\n displayingNearby: false,\r\n nearbyResults: {},\r\n searchString: '',\r\n loading: false,\r\n searching: false,\r\n resultMessage: 'Use my location',\r\n favRest:\r\n !!this.props.customer &&\r\n !!this.props.customer.favouriteRestaurants\r\n ? this.props.customer.favouriteRestaurants\r\n : null\r\n };\r\n this.timer = null;\r\n this.requests = [];\r\n this.locationRequests = [];\r\n this.loadingTimeout = null; \r\n }\r\n\r\n componentDidMount() {\r\n if(this.locationHandle) {\r\n this.handleLocationSearch();\r\n }\r\n }\r\n\r\n cancelLocationRequests() {\r\n for (let i = 0; i < this.locationRequests.length; i++) {\r\n this.locationRequests[i].cancel();\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n for (let i = 0; i < this.requests.length; i++) {\r\n this.requests[i].cancel();\r\n }\r\n this.cancelLocationRequests();\r\n }\r\n\r\n async handleSearchChange() {\r\n clearTimeout(this.timer);\r\n this.timer = setTimeout(\r\n async () => await this.triggerSearch(),\r\n WAIT_INTERVAL\r\n );\r\n }\r\n\r\n async triggerSearch() {\r\n let searchInput = document.getElementsByName('search-input')[0];\r\n\r\n if (!!searchInput) {\r\n const searchString = searchInput.value;\r\n this.setState({\r\n searchString\r\n });\r\n if (searchString.trim() !== '') {\r\n this.cancelLocationRequests();\r\n\r\n if (!this.loadingTimeout) {\r\n this.loadingTimeout = setTimeout(() => {\r\n this.setState({ loading: true });\r\n }, LOADING_TIMEOUT_SECONDS * 1000);\r\n }\r\n\r\n var request = makeCancelable(\r\n fetch('api/Restaurant/LookupName/' + searchString)\r\n );\r\n this.setState({ searching: true });\r\n this.requests.push(request);\r\n let response = await request;\r\n if (response.status === 200) {\r\n return response\r\n .json()\r\n .catch(err => {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({ loading: false, searching: false });\r\n })\r\n .then(data => {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n displayingNearby: false,\r\n results: data,\r\n loading: false,\r\n searching: false\r\n });\r\n });\r\n } else {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({ loading: false, searching: false });\r\n }\r\n } else {\r\n this.setState({\r\n displayingNearby: true\r\n });\r\n }\r\n }\r\n }\r\n\r\n getLocation() {\r\n navigator.geolocation.getCurrentPosition(\r\n position => {\r\n const lat = position.coords.latitude;\r\n const lng = position.coords.longitude;\r\n\r\n if (!this.loadingTimeout) {\r\n this.loadingTimeout = setTimeout(() => {\r\n this.setState({ loading: true });\r\n }, LOADING_TIMEOUT_SECONDS * 1000);\r\n }\r\n this.setState({ searching: true });\r\n let request = makeCancelable(\r\n fetch(`api/Restaurant/LookupLatLong/${lat}/${lng}`)\r\n );\r\n this.locationRequests.push(request);\r\n request\r\n .then(response => {\r\n if (response.status === 200) {\r\n response.json().then(data => {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n nearbyResults: data,\r\n displayingNearby: true,\r\n loading: false,\r\n searching: false\r\n });\r\n });\r\n } else {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n loading: false,\r\n searching: false\r\n });\r\n }\r\n })\r\n .catch(err => {\r\n console.error(err);\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n loading: false,\r\n searching: false\r\n });\r\n });\r\n },\r\n error => {\r\n let resultMessage = 'Enable your location to discover nearby restaurants';\r\n\r\n this.setState({\r\n loading: false,\r\n searching: false,\r\n resultMessage\r\n });\r\n\r\n // console.log(error.code);\r\n // console.log(error.message);\r\n\r\n // error.code can be:\r\n // 0: unknown error\r\n // 1: permission denied\r\n // 2: position unavailable (error response from location provider)\r\n // 3: timed out\r\n }\r\n );\r\n } \r\n\r\n\r\n async handleLocationSearch() {\r\n // navigator.permissions is not supported on iOS\r\n\r\n if (navigator && navigator.permissions && navigator.permissions.query) {\r\n let permissionQuery = await navigator.permissions.query({\r\n name: 'geolocation'\r\n });\r\n var navigatorGeolocationState = permissionQuery.state;\r\n if (navigatorGeolocationState === 'prompt') {\r\n this.setState({\r\n resultMessage: 'Would you like to search for nearby restaurants?',\r\n });\r\n this.getLocation();\r\n } else {\r\n this.getLocation();\r\n }\r\n } else {\r\n this.getLocation();\r\n }\r\n }\r\n\r\n handleRestaurantSelect(restaurant) {\r\n this.props.cacheRestaurantSearch(this.state.results);\r\n this.props.handleRestaurantSelect(restaurant);\r\n }\r\n\r\n displayResults() {\r\n let results = this.state.displayingNearby\r\n ? this.state.nearbyResults\r\n : this.state.results;\r\n\r\n if (!!results && !!results.restaurants) {\r\n var restaurants = results.restaurants;\r\n\r\n if (restaurants.length > 0) {\r\n var output = [];\r\n\r\n if (this.state.displayingNearby === true) {\r\n output.push(\r\n \r\n
Nearby
\r\n \r\n );\r\n } else {\r\n output.push(\r\n \r\n
Search results
\r\n \r\n );\r\n }\r\n\r\n output.push(\r\n restaurants.map((restaurant, index) => {\r\n return this.restaurantResult(restaurant, index);\r\n })\r\n );\r\n\r\n return output;\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n displayFavourites() {\r\n if (\r\n !!this.props.customer &&\r\n !!this.props.customer.favouriteRestaurants\r\n ) {\r\n const favouriteRestaurants = this.props.customer.favouriteRestaurants;\r\n return (\r\n
\r\n
\r\n

My Favourites

\r\n {favouriteRestaurants.map((restaurant, index) => {\r\n return this.restaurantResult(restaurant, index);\r\n })}\r\n
\r\n
\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n restaurantResult(restaurant, index) {\r\n const { customer } = this.props;\r\n const starIcon = ;\r\n let star = null;\r\n if (customer) {\r\n const { favouriteRestaurants } = customer;\r\n const firstFavRestaurantId = (favouriteRestaurants && favouriteRestaurants.length > 0) ? favouriteRestaurants[0].id : null\r\n if (firstFavRestaurantId === restaurant.id) {\r\n star = {starIcon};\r\n }\r\n }\r\n\r\n\r\n let distance = null;\r\n if (this.state.displayingNearby === true && !!restaurant.distance)\r\n distance = (Number(restaurant.distance) / 1000).toFixed(1) + 'km';\r\n return (\r\n this.handleRestaurantSelect(restaurant)}\r\n >\r\n
\r\n {`${restaurant.name}`}\r\n {!!distance && (\r\n \r\n  - {distance} {mapmarker}\r\n \r\n )}\r\n
\r\n
{!!star && star}
\r\n\r\n {!!restaurant.fullAddress && (\r\n
{restaurant.fullAddress}
\r\n )}\r\n \r\n );\r\n }\r\n\r\n render() {\r\n const elementMap = ;\r\n const resultMessage = this.state.resultMessage;\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

Enter your postcode or location

\r\n
\r\n
\r\n await this.handleSearchChange()}\r\n >\r\n
\r\n
\r\n {this.displayResults() || (\r\n
\r\n
this.handleLocationSearch()}\r\n >\r\n \r\n
\r\n {resultMessage}\r\n
\r\n
\r\n )} \r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n {this.state.loading === true ? (\r\n

Sorry, we're taking longer than usual to process your search

\r\n ) : null}\r\n
\r\n\r\n {this.displayFavourites()}\r\n
\r\n
\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(RestaurantSearch,\r\n {\r\n mobXProps: ({\r\n restaurantSearchCache,\r\n customer\r\n }) => ({\r\n restaurantSearchCache,\r\n customer\r\n }),\r\n mobXActions: ({ \r\n cacheRestaurantSearch,\r\n selectRestaurant,\r\n }) => ({\r\n cacheRestaurantSearch,\r\n selectRestaurant,\r\n })\r\n }\r\n);","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport { Steps } from '../../../lib/constants';\r\nimport RestaurantSearch from '../../../components/RestaurantSearch';\r\n\r\nconst MiPayAtTableRestaurantSearchWrapper = props => {\r\n const handleRestaurantSelect = (restaurant) => {\r\n props.selectRestaurant(restaurant);\r\n props.goToStep(Steps.TABLE_PICKER);\r\n }\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(MiPayAtTableRestaurantSearchWrapper,\r\n {\r\n mobXActions: ({\r\n selectRestaurant,\r\n goToStep,\r\n }) => ({\r\n selectRestaurant,\r\n goToStep,\r\n })\r\n }\r\n);","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React from \"react\";\n\nvar _ref2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 3V1M3 11H1M11 19V21M19 11H21M18.5 11C18.5 15.1421 15.1421 18.5 11 18.5C6.85786 18.5 3.5 15.1421 3.5 11C3.5 6.85786 6.85786 3.5 11 3.5C15.1421 3.5 18.5 6.85786 18.5 11ZM14 11C14 12.6569 12.6569 14 11 14C9.34315 14 8 12.6569 8 11C8 9.34315 9.34315 8 11 8C12.6569 8 14 9.34315 14 11Z\",\n stroke: \"#1C1A1A\",\n strokeWidth: 1.5,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n});\n\nvar SvgCrosshairs = function SvgCrosshairs(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 22,\n height: 22,\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _ref2);\n};\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgCrosshairs, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/crosshairs.d704868e.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React from \"react\";\n\nvar _ref2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 16V14M16 24H14M24 32V34M32 24H34M31.5 24C31.5 28.1421 28.1421 31.5 24 31.5C19.8579 31.5 16.5 28.1421 16.5 24C16.5 19.8579 19.8579 16.5 24 16.5C28.1421 16.5 31.5 19.8579 31.5 24ZM27 24C27 25.6569 25.6569 27 24 27C22.3431 27 21 25.6569 21 24C21 22.3431 22.3431 21 24 21C25.6569 21 27 22.3431 27 24Z\",\n stroke: \"#1C1A1A\",\n strokeWidth: 1.5,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n});\n\nvar _ref3 = /*#__PURE__*/React.createElement(\"rect\", {\n x: 0.75,\n y: 0.75,\n width: 46.5,\n height: 46.5,\n rx: 23.25,\n stroke: \"#1C1A1A\",\n strokeWidth: 1.5\n});\n\nvar SvgCrosshairsCircle = function SvgCrosshairsCircle(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 48,\n height: 48,\n viewBox: \"0 0 48 48\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _ref2, _ref3);\n};\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgCrosshairsCircle, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/crosshairs-circle.be2a0d1f.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\nimport MenuFooter from './MenuFooter';\r\nimport Header from './Header';\r\n\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport {\r\n faStar,\r\n faMapMarkerAlt\r\n} from '@fortawesome/free-solid-svg-icons';\r\nimport { ReactComponent as Crosshairs } from '../assets/img/crosshairs.svg';\r\nimport { ReactComponent as CrosshairsCircle } from '../assets/img/crosshairs-circle.svg';\r\nimport binos from '../assets/img/binoculars.svg';\r\nimport mapmarkerWireframe from '../assets/img/mapmarker-wireframe.png'\r\nimport twitterIcon from '../assets/img/icons/twitter.svg';\r\nimport instagramIcon from '../assets/img/icons/instagram.svg';\r\nimport facebookIcon from '../assets/img/icons/facebook.svg';\r\nimport deliveryMan from '../assets/img/deliveryMan.svg';\r\n\r\nimport makeCancelable from '../helpers/PromiseWrapper';\r\nconst mapmarker = \"distance\";\r\n\r\n\r\nconst WAIT_INTERVAL = 500;\r\nconst LOADING_TIMEOUT_SECONDS = 7;\r\n\r\nclass RestaurantSearch extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.locationSearch = React.createRef();\r\n this.state = {\r\n results: this.props.restaurantSearchCache,\r\n displayingNearby: false,\r\n nearbyResults: {},\r\n searchString: '',\r\n loading: false,\r\n searching: false,\r\n locationModalShow: false,\r\n resultMessage: 'Use my location',\r\n favRest:\r\n !!this.props.customer &&\r\n !!this.props.customer.favouriteRestaurants\r\n ? this.props.customer.favouriteRestaurants\r\n : null,\r\n isResultCardVisible: false,\r\n isInputFocused: false\r\n };\r\n this.timer = null;\r\n this.requests = [];\r\n this.locationRequests = [];\r\n this.loadingTimeout = null;\r\n }\r\n\r\n\r\n componentDidMount() {\r\n if (this.locationSearch) {\r\n this.handleLocationSearch();\r\n }\r\n }\r\n\r\n cancelLocationRequests() {\r\n for (let i = 0; i < this.locationRequests.length; i++) {\r\n this.locationRequests[i].cancel();\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n for (let i = 0; i < this.requests.length; i++) {\r\n this.requests[i].cancel();\r\n }\r\n this.cancelLocationRequests();\r\n }\r\n\r\n async handleSearchChange() {\r\n clearTimeout(this.timer);\r\n this.timer = setTimeout(async () => {\r\n await this.triggerSearch();\r\n this.setState((prevState) => ({\r\n isResultCardVisible: prevState.searchString.trim() !== '' || prevState.searching,\r\n }));\r\n }, WAIT_INTERVAL);\r\n }\r\n\r\n toggleLocationModal = () => {\r\n this.setState({ locationModalShow: !this.state.locationModalShow })\r\n }\r\n\r\n async triggerSearch() {\r\n let searchInput = document.getElementsByName('search-input')[0];\r\n\r\n if (!!searchInput) {\r\n const searchString = searchInput.value;\r\n this.setState({\r\n searchString\r\n });\r\n if (searchString.trim() !== '') {\r\n this.cancelLocationRequests();\r\n\r\n if (!this.loadingTimeout) {\r\n this.loadingTimeout = setTimeout(() => {\r\n this.setState({ loading: true });\r\n }, LOADING_TIMEOUT_SECONDS * 1000);\r\n }\r\n\r\n var request = makeCancelable(\r\n fetch('api/Restaurant/LookupName/' + searchString)\r\n );\r\n this.setState({ searching: true });\r\n this.requests.push(request);\r\n let response = await request;\r\n if (response.status === 200) {\r\n return response\r\n .json()\r\n .catch(err => {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({ loading: false, searching: false });\r\n })\r\n .then(data => {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n displayingNearby: false,\r\n results: data,\r\n loading: false,\r\n searching: false\r\n });\r\n });\r\n } else {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({ loading: false, searching: false });\r\n }\r\n } else {\r\n this.setState({\r\n displayingNearby: true\r\n });\r\n }\r\n }\r\n }\r\n\r\n getLocation() {\r\n navigator.geolocation.getCurrentPosition(\r\n position => {\r\n // const lat = position.coords.latitude;\r\n // const lng = position.coords.longitude;\r\n const lat = 53.345238;\r\n const lng = -6.280838;\r\n if (!this.loadingTimeout) {\r\n this.loadingTimeout = setTimeout(() => {\r\n this.setState({ loading: true });\r\n }, LOADING_TIMEOUT_SECONDS * 1000);\r\n }\r\n this.setState({ searching: true });\r\n let request = makeCancelable(\r\n fetch(`api/Restaurant/LookupLatLong/${lat}/${lng}`)\r\n );\r\n this.locationRequests.push(request);\r\n request\r\n .then(response => {\r\n if (response.status === 200) {\r\n response.json().then(data => {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n nearbyResults: data,\r\n displayingNearby: true,\r\n loading: false,\r\n searching: false\r\n });\r\n });\r\n } else {\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n loading: false,\r\n searching: false\r\n });\r\n }\r\n })\r\n .catch(err => {\r\n console.error(err);\r\n this.loadingTimeout = clearTimeout(this.loadingTimeout);\r\n this.setState({\r\n loading: false,\r\n searching: false\r\n });\r\n });\r\n },\r\n error => {\r\n let resultMessage = 'Enable your location to discover nearby restaurants';\r\n\r\n this.setState({\r\n loading: false,\r\n searching: false,\r\n resultMessage\r\n });\r\n\r\n console.log(error.code);\r\n console.log(error.message);\r\n\r\n\r\n // error.code can be:\r\n // 0: unknown error\r\n // 1: permission denied\r\n // 2: position unavailable (error response from location provider)\r\n // 3: timed out\r\n }\r\n );\r\n }\r\n\r\n\r\n async handleLocationSearch() {\r\n // navigator.permissions is not supported on iOS\r\n if (navigator && navigator.permissions && navigator.permissions.query) {\r\n let permissionQuery = await navigator.permissions.query({\r\n name: 'geolocation'\r\n });\r\n var navigatorGeolocationState = permissionQuery.state;\r\n if (navigatorGeolocationState === 'prompt') {\r\n this.setState({\r\n resultMessage: 'Would you like to search for nearby restaurants?',\r\n });\r\n this.getLocation();\r\n } else {\r\n this.getLocation();\r\n }\r\n } else {\r\n this.getLocation();\r\n }\r\n }\r\n\r\n handleRestaurantSelect(restaurant) {\r\n this.props.cacheRestaurantSearch(this.state.results);\r\n this.props.handleRestaurantSelect(restaurant);\r\n }\r\n\r\n displayResults() {\r\n let results = this.state.displayingNearby\r\n ? this.state.nearbyResults\r\n : this.state.results;\r\n\r\n if (!!results && !!results.restaurants) {\r\n var restaurants = results.restaurants;\r\n\r\n if (restaurants.length > 0) {\r\n var output = [];\r\n\r\n if (this.state.searching === true) {\r\n output.push(\r\n
\r\n
\r\n
\r\n
\r\n {this.state.loading === true ? (

Sorry, we're taking longer than usual to process your search

\r\n ) :

Searching...

}\r\n
\r\n
\r\n
\r\n )\r\n } else {\r\n if (this.state.displayingNearby === true) {\r\n output.push(\r\n \r\n
Search Results
\r\n \r\n );\r\n } else {\r\n output.push(\r\n \r\n
Search results
\r\n \r\n );\r\n }\r\n }\r\n\r\n output.push(\r\n restaurants.map((restaurant, index) => {\r\n return this.restaurantResult(restaurant, index);\r\n })\r\n );\r\n\r\n return output;\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n displayFavourites() {\r\n if (\r\n !!this.props.customer &&\r\n !!this.props.customer.favouriteRestaurants\r\n ) {\r\n const favouriteRestaurants = this.props.customer.favouriteRestaurants;\r\n return (\r\n
\r\n
\r\n

My Favourites

\r\n {favouriteRestaurants.map((restaurant, index) => {\r\n return this.restaurantResult(restaurant, index);\r\n })}\r\n
\r\n
\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n restaurantResult(restaurant, index) {\r\n const { customer } = this.props;\r\n const starIcon = ;\r\n let star = null;\r\n if (customer) {\r\n const { favouriteRestaurants } = customer;\r\n const firstFavRestaurantId = (favouriteRestaurants && favouriteRestaurants.length > 0) ? favouriteRestaurants[0].id : null\r\n if (firstFavRestaurantId === restaurant.id) {\r\n star = {starIcon};\r\n }\r\n }\r\n\r\n\r\n let distance = null;\r\n if (this.state.displayingNearby === true && !!restaurant.distance)\r\n distance = (Number(restaurant.distance) / 1000).toFixed(1) + 'km';\r\n return (\r\n this.handleRestaurantSelect(restaurant)}\r\n >\r\n
\r\n

\r\n {`${restaurant.name}`}\r\n

\r\n
\r\n
\r\n {!!distance && (\r\n \r\n {mapmarker} {distance}\r\n \r\n )}\r\n
\r\n\r\n {!!this.props.customer && !!this.props.customer.favouriteRestaurants && (\r\n
{!!star && star}
\r\n )}\r\n {!!restaurant.fullAddress && (\r\n
{restaurant.fullAddress}
\r\n )}\r\n \r\n );\r\n }\r\n\r\n handleInputFocus = () => {\r\n this.setState({ isInputFocused: true });\r\n }\r\n\r\n handleInputBlur = () => {\r\n this.setState({ isInputFocused: false });\r\n }\r\n\r\n\r\n render() {\r\n\r\n const resultMessage = this.state.resultMessage;\r\n const isInputFocused = this.state.isInputFocused;\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {!this.props.isCheckInJourney &&\r\n
\r\n
\r\n

MENU

\r\n
\r\n
}\r\n {this.props.isCheckInJourney &&\r\n
\r\n
\r\n

Test & Trace Check-in

\r\n

Welcome to everyone's favourite pizzeria. Please click let’s get started to enter in your information for Test and Trace purposes whilst dining in our pizzerias.

\r\n
\r\n
}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {this.props.children}\r\n
\r\n
\r\n

Enter your postcode or location

\r\n
\r\n
\r\n
\r\n
\r\n input && input.focus()}\r\n tabIndex=\"0\"\r\n type=\"text\"\r\n autoComplete=\"off\"\r\n name=\"search-input\"\r\n className=\"preorder-search-input\"\r\n placeholder=\"Search location\"\r\n onKeyDown={async () => await this.handleSearchChange()}\r\n >\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n {this.displayResults() || (\r\n
\r\n
this.handleLocationSearch()}>\r\n
\r\n {resultMessage}\r\n
\r\n
\r\n )}\r\n {this.displayFavourites()}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \"twitter\"\r\n
\r\n
\r\n \"facebook\"\r\n
\r\n
\r\n \"instagram\"\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Food
\r\n Menu\r\n Collection\r\n Delivery\r\n Cook at Home\r\n Allergens & Nutritionals\r\n
\r\n
\r\n
Bookings
\r\n Book a Table\r\n Offers\r\n
\r\n
\r\n
Explore
\r\n About Us\r\n International\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(RestaurantSearch,\r\n {\r\n mobXProps: ({\r\n restaurantSearchCache,\r\n privacyPolicyAndTermsConditionsModal,\r\n privacyPolicyAndTermsConditionsModalMenu,\r\n customer,\r\n isCheckInJourney\r\n }) => ({\r\n restaurantSearchCache,\r\n privacyPolicyAndTermsConditionsModal,\r\n privacyPolicyAndTermsConditionsModalMenu,\r\n customer,\r\n isCheckInJourney\r\n }),\r\n mobXActions: ({\r\n cacheRestaurantSearch,\r\n selectRestaurant,\r\n termAndConditionsModalMenu,\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n getHomePageImage\r\n }) => ({\r\n cacheRestaurantSearch,\r\n selectRestaurant,\r\n termAndConditionsModalMenu,\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n getHomePageImage\r\n })\r\n }\r\n);","// Brand: Milano\r\n// Flow: PreOrder\r\n\r\nimport React from 'react';\r\n\r\nimport withAppState from '../../../mobx/withAppState'\r\n\r\nimport PreOrderRestaurantSearch from '../../../components/PreOrderRestaurantSearch';\r\nimport { Steps } from '../../../lib/constants';\r\n\r\nimport milogo from '../../../assets/milano/milano-logo-header.svg';\r\n\r\nconst RestaurantSearchWrapper = props => {\r\n const handleRestaurantSelect = (restaurant) => {\r\n props.selectRestaurant(restaurant);\r\n \r\n if(!props.isCheckInJourney){\r\n props.goToStep(Steps.PRE_ORDER);\r\n }\r\n else{\r\n if (props.getDataCaptureStatusForCurrentRestaurant() === true) props.goToStep(Steps.PRE_ORDER);\r\n else props.goToStep(Steps.PRE_ORDER_DATA_CAPTURE);\r\n\r\n }\r\n\r\n }\r\n\r\n const logo = (\r\n \r\n \"Milano\"\r\n \r\n )\r\n\r\n return (\r\n {props.isCheckInJourney &&\r\n

Select your restaurant, browse away, click on your favourite dishes to add to your basket as a reminder, then call us over and we'll take your order.

}\r\n
);\r\n}\r\n\r\nexport default withAppState(RestaurantSearchWrapper,\r\n {\r\n mobXActions: ({\r\n getDataCaptureStatusForCurrentRestaurant,\r\n selectRestaurant,\r\n goToStep,\r\n }) => ({\r\n getDataCaptureStatusForCurrentRestaurant,\r\n selectRestaurant,\r\n goToStep,\r\n }),\r\n mobXProps: ({\r\n isCheckInJourney\r\n }) => ({\r\n isCheckInJourney\r\n })\r\n\r\n }\r\n);","import React from 'react';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faTimes, faCheck } from '@fortawesome/free-solid-svg-icons';\r\nimport close from '../assets/img/closeButton.svg'\r\nimport tick from '../assets/img/tick.svg'\r\n\r\n\r\nconst Numkey = (props) => {\r\n return (\r\n \r\n )\r\n}\r\n\r\nconst DelKey = (props) => {\r\n const element = \r\n return(\r\n \r\n );\r\n}\r\n\r\nconst Enter = (props) => {\r\n const element = \r\n return(\r\n \r\n )\r\n}\r\n\r\nexport default function Numpad(props) {\r\n return(\r\n\r\n
\r\n
\r\n {/*
*/}\r\n props.pressNumkey(value)} value={1} />\r\n props.pressNumkey(value)} value={2} />\r\n props.pressNumkey(value)} value={3} />\r\n props.pressNumkey(value)} value={4} />\r\n props.pressNumkey(value)} value={5} />\r\n props.pressNumkey(value)} value={6} />\r\n props.pressNumkey(value)} value={7} />\r\n props.pressNumkey(value)} value={8} />\r\n props.pressNumkey(value)} value={9} />\r\n props.pressDelKey()} />\r\n props.pressNumkey(value)} value={0} />\r\n \r\n
\r\n
\r\n\r\n );\r\n}\r\n","import React from 'react';\r\n\r\nexport default function Loading() {\r\n return (\r\n
\r\n )\r\n}","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\n\r\nimport Numpad from './Numpad';\r\nimport Loading from './Loading';\r\n\r\nclass TablePicker extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n let comingSoon = false;\r\n \r\n if (!!this.props.restaurant)\r\n comingSoon = this.props.restaurant.comingSoon === true;\r\n else\r\n comingSoon = true;\r\n\r\n this.state = {\r\n comingSoon,\r\n comingSoonContent: null,\r\n tableValue: this.props.tableNumber,\r\n data: null,\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n if (this.state.comingSoon === true) {\r\n this.props.setLoading(true);\r\n const response = await fetch(`api/Restaurant/GetComingSoonContent`);\r\n this.props.setLoading(false);\r\n if (response.status === 200) {\r\n let data;\r\n try {\r\n data = await response.json()\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n this.setState({\r\n comingSoonContent: data\r\n });\r\n }\r\n }\r\n }\r\n\r\n pressNumkey(value) {\r\n const result = this.state.tableValue * 10 + value;\r\n if (result < 1000) {\r\n this.setState({ tableValue: result });\r\n }\r\n }\r\n\r\n pressDelKey() {\r\n const result = Math.floor(this.state.tableValue / 10);\r\n this.setState({ tableValue: result });\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n {this.state.comingSoon === true ? (\r\n !!this.state.comingSoonContent ? (\r\n
\r\n

{this.state.comingSoonContent.comingSoonPayAtTableTitle}

\r\n

{this.state.comingSoonContent.comingSoonPayAtTableContent}

\r\n
\r\n ) : null\r\n ) : (\r\n
\r\n \r\n {this.state.tableValue === 0\r\n ? 'Table No.'\r\n : this.state.tableValue}\r\n \r\n this.pressNumkey(value)}\r\n pressDelKey={() => this.pressDelKey()}\r\n pressEnterKey={() => this.props.pressEnterKey(this.state.tableValue)}\r\n />\r\n
\r\n

\r\n Can't find your table number?\r\n
\r\n Please ask your waiting staff.\r\n

\r\n
\r\n
\r\n )}\r\n {this.props.loading === true && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(TablePicker,\r\n {\r\n mobXProps: ({\r\n tableNumber,\r\n restaurant,\r\n }) => ({\r\n tableNumber,\r\n restaurant,\r\n }),\r\n mobXActions: ({\r\n selectTableNumber,\r\n setErrorModalMessage,\r\n }) => ({\r\n selectTableNumber,\r\n setErrorModalMessage,\r\n })\r\n }\r\n);","\r\nimport { SplitType, GuidEmpty, Steps } from \"../../../lib/constants\";\r\n\r\nexport default (props, bill, customer, splitBillSessionToken) => {\r\n const splitType = bill.splitBill.splitType;\r\n if (splitType === SplitType.None) return;\r\n\r\n const splits = bill.splitBill.splits;\r\n\r\n let customerId = !!customer ? customer.id : null;\r\n let assignedSplitIndex = null;\r\n let hasExistingPaidSplit = false;\r\n\r\n if (customerId !== null) {\r\n for (let i = 0; i < splits.length; i++) {\r\n if (splits[i].pizzaExpressId === customerId) {\r\n if (splits[i].paid === false) {\r\n assignedSplitIndex = i;\r\n break;\r\n } else {\r\n hasExistingPaidSplit = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (assignedSplitIndex === null) {\r\n for (let i = 0; i < splits.length; i++) {\r\n if (splits[i].sessionToken === splitBillSessionToken) {\r\n if (splits[i].paid === false) {\r\n assignedSplitIndex = i;\r\n break;\r\n } else {\r\n hasExistingPaidSplit = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n props.setAssignedSplitIndex(assignedSplitIndex);\r\n props.setSelectedSplitIndex(assignedSplitIndex);\r\n\r\n const newSplitsAvailable = splitType === SplitType.SplitByItem || (splitType === SplitType.SplitByAmount && splits.some(s => s.sessionToken === GuidEmpty));\r\n if (assignedSplitIndex === null && hasExistingPaidSplit === false && newSplitsAvailable === true) {\r\n props.goToStep(Steps.SPLIT_BILL_NAME)\r\n }\r\n}","import React, { useState } from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport TablePicker from '../../../components/TablePicker';\r\nimport assignSplits from '../common/AssignSplits';\r\nimport { Steps } from '../../../lib/constants';\r\n\r\nconst MiPayAtTableTablePickerWrapper = (props) => {\r\n const [loading, setLoading] = useState(false);\r\n\r\n const pressEnterKey = async (tableNumber) => {\r\n const { restaurant: { id: restaurantId }, splitBillSessionToken, customer } = props;\r\n if (tableNumber > 0) {\r\n setLoading(true);\r\n const response = await fetch(\r\n `api/Bill/Lookup/${restaurantId}/${tableNumber}`\r\n )\r\n\r\n if (response.status !== 200) {\r\n props.setErrorModalMessage(\r\n `Sorry, we could not find a table ${tableNumber}.`\r\n );\r\n setLoading(false);\r\n return;\r\n }\r\n\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n setLoading(false);\r\n return;\r\n }\r\n\r\n props.selectTableNumber(tableNumber);\r\n\r\n const { bills, success } = data;\r\n const bill = bills[0];\r\n\r\n if (success !== true || !bill) {\r\n props.setErrorModalMessage(\r\n `Sorry, we could not find a table ${tableNumber}.`\r\n );\r\n setLoading(false);\r\n return;\r\n }\r\n\r\n setLoading(false)\r\n props.setBill(bills);\r\n props.goToStep(Steps.BILL);\r\n assignSplits(props, bill, customer, splitBillSessionToken);\r\n }\r\n }\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(MiPayAtTableTablePickerWrapper,\r\n {\r\n mobXProps: ({\r\n restaurant,\r\n bill,\r\n customer,\r\n splitBillSessionToken,\r\n }) => ({\r\n restaurant,\r\n bill,\r\n customer,\r\n splitBillSessionToken,\r\n }),\r\n mobXActions: ({\r\n goToStep,\r\n setErrorModalMessage,\r\n setSelectedSplitIndex,\r\n setAssignedSplitIndex,\r\n setBill,\r\n selectTableNumber,\r\n getCurrency\r\n }) => ({\r\n goToStep,\r\n setErrorModalMessage,\r\n setSelectedSplitIndex,\r\n setAssignedSplitIndex,\r\n setBill,\r\n selectTableNumber,\r\n getCurrency\r\n })\r\n }\r\n);","import Cookies from 'js-cookie';\r\n\r\nexport const getCsrfToken = function() {\r\n var requestToken = Cookies.get('X-XSRF-REQUEST-TOKEN');\r\n if(requestToken) return requestToken;\r\n return \"0\";\r\n}\r\n\r\n\r\nexport const handleCsrfFailure = function () {\r\n alert(\"Sorry, the application has failed to process your request, please refresh and try again\");\r\n window.location.reload();\r\n}","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\nimport { getCsrfToken, handleCsrfFailure } from '../helpers/GetCsrfToken';\r\nimport plusIcon from '../assets/img/plus.svg';\r\nimport minusIcon from '../assets/img/minus.svg';\r\n\r\nconst elementPlus = \"plus\";\r\nconst elementMinus = \"minus\";\r\n\r\nconst removeItemFromSplit = async (props, item) => {\r\n const { selectedSplitIndex } = props;\r\n\r\n if (!props.bill || !props.bill[0]) {\r\n console.error(\"No bill object found\");\r\n return\r\n }\r\n\r\n const { providerId } = props.bill[0]\r\n const response = await fetch(\r\n `api/Bill/RemoveItemFromSplit/${providerId}/${props.restaurant.id}/${props.tableNumber}`,\r\n {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n item,\r\n splitIndex: selectedSplitIndex\r\n })\r\n }\r\n );\r\n\r\n if (response.status === 200) {\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n props.setErrorModalMessage(\"Error retrieving bill\");\r\n return;\r\n }\r\n const { bills } = data;\r\n props.setBill(bills);\r\n } else if (response.status === 400) {\r\n handleCsrfFailure();\r\n }\r\n};\r\n\r\nconst addItemToSplit = async (props, item) => {\r\n const { selectedSplitIndex } = props;\r\n const response = await fetch(\r\n `api/Bill/AddItemToSplit/${props.bill[0].providerId}/${props.restaurant.id}/${props.tableNumber}`,\r\n {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n item,\r\n splitIndex: selectedSplitIndex\r\n })\r\n }\r\n );\r\n if (response.status === 200) {\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n props.setErrorModalMessage(\"Error retrieving bill\");\r\n return\r\n }\r\n const { bills } = data;\r\n props.setBill(bills);\r\n } else if (response.status === 400) {\r\n handleCsrfFailure();\r\n }\r\n};\r\n\r\nconst splitBillItemsSelected = (props) => {\r\n const { split } = props;\r\n\r\n if (!!split && !!split.items) {\r\n if (split.items.length === 0) {\r\n return (\r\n
\r\n

None

\r\n
\r\n );\r\n } else {\r\n const paid = split.paid;\r\n return split.items.map((item, index) => {\r\n const removeFromSplitBillButton =\r\n paid === false ? (\r\n \r\n ) : null;\r\n\r\n const additionNames =\r\n item.additions.length > 0\r\n ? item.additions.map((addition, adIndex) => {\r\n if (addition.cost > 0) {\r\n return (\r\n

\r\n {` + ${addition.name}`}\r\n

\r\n );\r\n }\r\n return null;\r\n })\r\n : null;\r\n\r\n const additionQuantities =\r\n item.additions.length > 0\r\n ? item.additions.map((addition, adIndex) => {\r\n if (addition.cost > 0) {\r\n return (\r\n

\r\n {`${addition.quantity}`}\r\n

\r\n );\r\n }\r\n return null;\r\n })\r\n : null;\r\n\r\n const additionCosts =\r\n item.additions.length > 0\r\n ? item.additions.map((addition, adIndex) => {\r\n if (addition.cost > 0) {\r\n return (\r\n

\r\n {`${props.currency.symbol + addition.cost.toFixed(2)}`}\r\n

\r\n );\r\n }\r\n return null;\r\n })\r\n : null;\r\n\r\n return (\r\n
\r\n \r\n
  • \r\n
    \r\n

    \r\n {`${item.name} ${\r\n !!item.description ? `${item.description}` : ``\r\n }`}\r\n

    \r\n {additionNames}\r\n
    \r\n
  • \r\n
  • \r\n

    {item.quantity}

    \r\n {additionQuantities}\r\n
  • \r\n
  • \r\n

    {props.currency.symbol + item.cost.toFixed(2)}

    \r\n {additionCosts}\r\n
  • \r\n
  • \r\n {removeFromSplitBillButton}{' '}\r\n
  • \r\n \r\n
    \r\n );\r\n });\r\n }\r\n } else return null;\r\n};\r\n\r\nfunction SplitByItem(props) {\r\n const { availableItems } = props;\r\n if (!availableItems) return null;\r\n\r\n return (\r\n
    \r\n {!!props.split && props.selectedSplitIndex != null ?
    \r\n
    \r\n
    \r\n
    \r\n

    BASKET

    \r\n
    \r\n
    \r\n
    \r\n\r\n {splitBillItemsSelected(props)}\r\n
    : null}\r\n
    \r\n
    \r\n
    \r\n
    \r\n

    REMAINING

    \r\n
    \r\n
    \r\n
    \r\n {availableItems.length === 0 ? (\r\n
    \r\n

    None

    \r\n
    \r\n ) : (\r\n availableItems.map((item, index) => {\r\n var itemName = item.name;\r\n var description = item.description;\r\n var quantity = item.quantity;\r\n var cost = parseFloat(item.cost);\r\n var additionNames =\r\n item.additions.length > 0\r\n ? item.additions.map((addition, adIndex) => {\r\n if (addition.cost > 0) {\r\n return (\r\n \r\n {` + ${addition.name}`}\r\n

    \r\n );\r\n }\r\n return null;\r\n })\r\n : null;\r\n var additionQuantities =\r\n item.additions.length > 0\r\n ? item.additions.map((addition, adIndex) => {\r\n if (addition.cost > 0) {\r\n return (\r\n \r\n {`${addition.quantity}`}\r\n

    \r\n );\r\n }\r\n return null;\r\n })\r\n : null;\r\n var additionCosts =\r\n item.additions.length > 0\r\n ? item.additions.map((addition, adIndex) => {\r\n if (addition.cost > 0) {\r\n return (\r\n \r\n {`${props.currency.symbol + addition.cost.toFixed(2)}`}\r\n

    \r\n );\r\n }\r\n return null;\r\n })\r\n : null;\r\n const addToSplitBillButton =\r\n !!props.split && props.split.paid === false ? (\r\n \r\n ) : null;\r\n\r\n return (\r\n
    \r\n \r\n
  • \r\n
    \r\n

    \r\n {`${itemName} ${!!description ? `${description}` : ``}`}\r\n

    \r\n {additionNames}\r\n
    \r\n
  • \r\n
  • \r\n

    {quantity}

    \r\n {additionQuantities}\r\n
  • \r\n
  • \r\n

    {props.currency.symbol + cost.toFixed(2)}

    \r\n {additionCosts}\r\n
  • \r\n
  • \r\n {addToSplitBillButton}{' '}\r\n
  • \r\n \r\n
    \r\n );\r\n })\r\n )}\r\n
    \r\n
    \r\n );\r\n}\r\n\r\n\r\nexport default withAppState(SplitByItem,\r\n {\r\n mobXProps: ({\r\n restaurant,\r\n tableNumber,\r\n bill,\r\n }) => ({\r\n restaurant,\r\n tableNumber,\r\n bill,\r\n }),\r\n mobXActions: ({\r\n setBill,\r\n setErrorModalMessage\r\n }) => ({\r\n setBill,\r\n setErrorModalMessage\r\n })\r\n }\r\n);","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\nimport { GuidEmpty, SplitType } from '../lib/constants';\r\n\r\nimport SplitByItem from './SplitByItem';\r\n\r\nimport refreshIcon from './../assets/img/refresh/Refresh.svg'\r\nimport plusIcon from '../assets/img/plus.svg';\r\nimport refresh from '../assets/img/refresh.svg';\r\n\r\n\r\nconst elementPlus = \"plus\";\r\n\r\nconst refreshButton = (props) => {\r\n return (\r\n
    \r\n await props.refreshTable()}\r\n >\r\n \"refresh\"\r\n \r\n {props.refreshButtonLoading === false ? \"Refresh\" : \"Refreshing\"}\r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nconst getItemComparisonStringElements = item => {\r\n let comparisonStringElements = [];\r\n if (item.additions.length > 0) {\r\n comparisonStringElements.push(item.productId + \"|\" + item.quantity + \"|\" + item.cost);\r\n item.additions.forEach(addition => comparisonStringElements.push(getItemComparisonStringElements(addition)));\r\n }\r\n else {\r\n comparisonStringElements.push(item.productId);\r\n }\r\n\r\n return comparisonStringElements;\r\n}\r\n\r\nconst itemsMatch = (item, otherItem) => {\r\n let itemComparisonStringElements = getItemComparisonStringElements(item);\r\n let otherItemComparisonStringElements = getItemComparisonStringElements(otherItem);\r\n\r\n if (itemComparisonStringElements.length != otherItemComparisonStringElements.length)\r\n return false;\r\n\r\n return itemComparisonStringElements.sort().join('|') === otherItemComparisonStringElements.sort().join('|')\r\n}\r\n\r\nconst splitBillInfo = (props, bill, splitBillInfoRef) => {\r\n let totalRemaining = 0;\r\n\r\n if (bill.splitBill.splitType === SplitType.SplitByItem) {\r\n let remainingItems = bill.availableItems;\r\n for (let i = 0; i < remainingItems.length; i++) {\r\n totalRemaining += remainingItems[i].cost;\r\n let additions = remainingItems[i].additions;\r\n for (let j = 0; j < additions.length; j++) {\r\n totalRemaining += additions[j].cost;\r\n }\r\n }\r\n } else {\r\n totalRemaining = bill.outstandingBalance - props.billTotal;\r\n }\r\n return (\r\n
    \r\n
      \r\n
    • \r\n

      You're paying

      \r\n
    • \r\n
    • \r\n

      {props.currency.symbol + props.billTotal.toFixed(2)}

      \r\n
    • \r\n
    \r\n
      \r\n
    • \r\n

      Remaining

      \r\n
    • \r\n
    • \r\n

      {`${props.currency.symbol + (totalRemaining).toFixed(2)}`}\r\n

      \r\n
    • \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nclass Bill extends React.Component {\r\n constructor() {\r\n super();\r\n this.splitBillInfoRef = React.createRef();\r\n this.iconRef = React.createRef();\r\n }\r\n\r\n componentDidMount() {\r\n \r\n !!this.iconRef.current && this.iconRef.current.scrollIntoView({\r\n inline: 'center'\r\n });\r\n\r\n if (!this.props.bill || this.props.bill.length === 0) {\r\n this.props.handleNoBill();\r\n } else {\r\n this.props.startRefreshBillCycle();\r\n }\r\n }\r\n\r\n render() {\r\n if (!!this.props.bill && this.props.bill.length > 0) {\r\n const { bill: bills, selectedSplitIndex } = this.props;\r\n const bill = bills[0];\r\n let items = JSON.parse(JSON.stringify(bill.items));\r\n\r\n const { splitBill: { splitType, splits } } = bill;\r\n const availableItems = splitType === SplitType.SplitByItem\r\n ? bill.availableItems\r\n : null;\r\n\r\n const isSplitBill = splitType !== SplitType.None;\r\n\r\n if (splitType !== SplitType.SplitByItem) {\r\n items = bill.groupedItems;\r\n }\r\n\r\n const MainBill = () => {\r\n if (isSplitBill) {\r\n let selected = selectedSplitIndex === null;\r\n return (\r\n {\r\n this.props.setSelectedSplitIndex(null)\r\n }}\r\n >\r\n Bill\r\n
    \r\n );\r\n }\r\n return null;\r\n };\r\n\r\n const SplitBills = () => {\r\n if (!isSplitBill) {\r\n return null;\r\n }\r\n\r\n return bill.splitBill.splits.map((split, index) => {\r\n if (split.sessionToken === GuidEmpty) {\r\n return null;\r\n }\r\n let isSelected = index === selectedSplitIndex;\r\n const { name, paid } = split;\r\n return (\r\n {\r\n this.props.setSelectedSplitIndex(index);\r\n await this.props.refreshTable(false);\r\n if (!!this.splitBillInfoRef.current) {\r\n this.splitBillInfoRef.current.scrollIntoView({\r\n block: 'end'\r\n });\r\n }\r\n }}\r\n >\r\n {name}\r\n
    \r\n );\r\n });\r\n };\r\n\r\n const AddSplit = () => {\r\n if (\r\n this.props.assignedSplitIndex === null &&\r\n (bill.splitBill.splitType === SplitType.SplitByItem ||\r\n splits.some(s => s.sessionToken === GuidEmpty))\r\n )\r\n return (\r\n \r\n {elementPlus}\r\n \r\n );\r\n\r\n return null;\r\n };\r\n\r\n const transformAdditionNames = (nestingLevel, array, item, index) => {\r\n item.additions.forEach((addition, adIndex) => {\r\n itemCosts += parseFloat(addition.cost);\r\n totalCosts += parseFloat(addition.cost);\r\n const operator = addition.quantity >= 0 ? '+' : '-';\r\n array.push(\r\n \r\n {`${operator} ${addition.name} ${\r\n !!addition.description ? `${addition.description}` : ``\r\n }`}\r\n

    \r\n );\r\n\r\n transformAdditionNames(nestingLevel + 1, array, addition, adIndex);\r\n\r\n });\r\n }\r\n\r\n const transformAdditionQuantities = (nestingLevel, array, item, index) => {\r\n item.additions.forEach((addition, adIndex) => {\r\n array.push(\r\n \r\n {addition.quantity >= 2 ? addition.quantity : ( )}\r\n

    \r\n );\r\n transformAdditionQuantities(nestingLevel + 1, array, addition, adIndex);\r\n });\r\n }\r\n\r\n const transformAdditionCosts = (nestingLevel, array, item, index) => {\r\n item.additions.forEach((addition, adIndex) => {\r\n array.push(\r\n \r\n {addition.cost !== 0 ? `${this.props.currency.symbol + addition.cost.toFixed(2)}` : ( )}\r\n

    \r\n );\r\n transformAdditionCosts(nestingLevel + 1, array, addition, adIndex);\r\n });\r\n }\r\n\r\n const transformAdditions = (item, index) => {\r\n\r\n const result = { additionNames: [], additionQuantities: [], additionCosts: [] };\r\n\r\n transformAdditionNames(0, result.additionNames, item, index);\r\n transformAdditionQuantities(0, result.additionQuantities, item, index);\r\n transformAdditionCosts(0, result.additionCosts, item, index);\r\n\r\n return result\r\n\r\n }\r\n\r\n var itemCosts = 0.0;\r\n var totalCosts = 0.0;\r\n let isSplitBillTab = this.props.selectedSplitIndex !== null;\r\n\r\n return (\r\n
    \r\n {isSplitBill ? (\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n {isSplitBillTab ? (\r\n
    \r\n {splitBillInfo(this.props, bill)}\r\n
    \r\n ) : null}\r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n
    \r\n
    TABLE ORDER
    \r\n
    \r\n
    \r\n {refreshButton(this.props)}\r\n
    \r\n
    \r\n
    \r\n \r\n {bill.splitBill.splitType === SplitType.SplitByItem && isSplitBillTab ? (\r\n \r\n ) : (\r\n items.map((item, index) => {\r\n var itemName = item.name;\r\n var description = item.description;\r\n var quantity = item.quantity;\r\n var cost = parseFloat(item.cost);\r\n var { additionNames, additionQuantities, additionCosts } = transformAdditions(item, index);\r\n\r\n itemCosts += parseFloat(cost);\r\n totalCosts += parseFloat(cost);\r\n\r\n let splitBillInfoRef =\r\n index === 0 ? this.splitBillInfoRef : null;\r\n\r\n return (\r\n
    \r\n \r\n
  • \r\n

    \r\n {' '}\r\n {`${itemName} ${\r\n !!description ? `${description}` : ``\r\n }`}\r\n

    \r\n {additionNames}\r\n
  • \r\n
  • \r\n

    {quantity}

    \r\n {additionQuantities}\r\n
  • \r\n
  • \r\n

    {this.props.currency.symbol + cost.toFixed(2)}

    \r\n {additionCosts}\r\n
  • \r\n \r\n
    \r\n );\r\n })\r\n )}\r\n\r\n {(bill.splitBill.splitType !== SplitType.SplitByItem || !isSplitBillTab) &&\r\n <>\r\n
    \r\n \r\n
  • \r\n

    Subtotal

    \r\n
  • \r\n
  • \r\n
  • \r\n

    € {`${this.props.currency.symbol + itemCosts.toFixed(2)}`}

    \r\n
  • \r\n \r\n
    \r\n\r\n {bill.discounts.map((discount, index) => {\r\n totalCosts -= parseFloat(discount.amount);\r\n return (\r\n
    \r\n \r\n
  • \r\n {\r\n

    {`${discount.name} ${\r\n !!discount.percentage\r\n ? `- ${discount.percentage}% off`\r\n : ''\r\n }`}

    \r\n }\r\n
  • \r\n
  • \r\n
  • \r\n

    € {this.props.currency.symbol + discount.amount.toFixed(2)}

    \r\n
  • \r\n \r\n
    \r\n );\r\n })}\r\n\r\n {bill.promotions.filter(p => p.hasItems === false).map((promotions, index) => {\r\n totalCosts -= parseFloat(promotions.amount);\r\n return ( \r\n
    \r\n \r\n
  • \r\n

    {promotions.name}

    \r\n
  • \r\n
  • \r\n
  • \r\n

    € {this.props.currency.symbol}-{promotions.amount.toFixed(2)}

    \r\n
  • \r\n \r\n
    \r\n );\r\n })}\r\n\r\n {bill.payments.map((payment, index) => {\r\n totalCosts -= parseFloat(payment.amount);\r\n return (\r\n
    \r\n \r\n
  • \r\n

    Payment - {payment.paymentMethod}

    \r\n
  • \r\n
  • \r\n
  • \r\n

    € {this.props.currency.symbol}-{payment.amount.toFixed(2)}

    \r\n
  • \r\n \r\n
    \r\n );\r\n })}\r\n\r\n {bill.charges.map((charge, index) => {\r\n totalCosts += parseFloat(charge.amount);\r\n return (\r\n
    \r\n \r\n
  • \r\n

    Service charge

    \r\n
  • \r\n
  • \r\n
  • \r\n

    {this.props.currency.symbol + charge.amount.toFixed(2)}

    \r\n
  • \r\n \r\n
    \r\n );\r\n })}\r\n\r\n
    \r\n \r\n
  • \r\n

    Grand total

    \r\n
  • \r\n
  • \r\n
  • \r\n

    € {this.props.currency.symbol + totalCosts.toFixed(2)}

    \r\n
  • \r\n \r\n
    \r\n \r\n }\r\n\r\n {!isSplitBill &&\r\n bill.providerValues['CanApplyVouchers'] === 'True'\r\n ? (\r\n
    \r\n
    \r\n

    \r\n \r\n Apply Voucher\r\n \r\n

    \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n}\r\n\r\nexport default withAppState(Bill,\r\n {\r\n mobXProps: ({\r\n billTotal,\r\n bill,\r\n selectedSplitIndex,\r\n assignedSplitIndex,\r\n refreshButtonLoading,\r\n }) => ({\r\n billTotal,\r\n bill,\r\n selectedSplitIndex,\r\n assignedSplitIndex,\r\n refreshButtonLoading,\r\n }),\r\n mobXActions: ({\r\n startRefreshBillCycle,\r\n setSelectedSplitIndex,\r\n refreshTable\r\n \r\n }) => ({\r\n startRefreshBillCycle,\r\n setSelectedSplitIndex,\r\n refreshTable\r\n })\r\n }\r\n);","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport { Steps } from '../../../lib/constants';\r\nimport Bill from '../../../components/Bill';\r\n\r\nconst MiPayAtTableBillWrapper = (props) => {\r\n const handleNoBill = () => {\r\n props.popStep();\r\n }\r\n \r\n const handleApplyVoucherButton = () => {\r\n props.goToStep(Steps.APPLY_VOUCHER);\r\n }\r\n\r\n const handleJoinSplitButton = () => {\r\n props.goToStep(Steps.SPLIT_BILL_NAME);\r\n }\r\n\r\n \r\n return (\r\n \r\n )\r\n}\r\n\r\nexport default withAppState(MiPayAtTableBillWrapper,\r\n {\r\n mobXActions: ({\r\n popStep,\r\n goToStep,\r\n getCurrency\r\n }) => ({\r\n popStep,\r\n goToStep,\r\n getCurrency\r\n })\r\n }\r\n);","import React, { useState, useRef } from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\nimport plusIcon from '../assets/img/plus.svg';\r\nimport minusIcon from '../assets/img/minus.svg';\r\n\r\nconst Steps = {\r\n MENU: 0,\r\n SPLIT_BY_AMOUNT: 1\r\n};\r\n\r\nconst elementPlus = \"plus\";\r\nconst elementMinus = \"minus\";\r\n\r\nfunction SplitBillMenu(props) {\r\n const [activeStep, setActiveStep] = useState(Steps.MENU);\r\n\r\n const { handleBackButton, bill: bills } = props;\r\n const bill = bills && bills.length > 0 ? bills[0] : null;\r\n\r\n if (!bills || bills.length === 0) return null;\r\n\r\n if (activeStep === Steps.MENU) {\r\n return (\r\n
    \r\n

    Split your bill by?

    \r\n\r\n
    \r\n
    \r\n setActiveStep(Steps.SPLIT_BY_AMOUNT)}\r\n >\r\n Amount\r\n \r\n {\r\n if (\r\n bill.providerValues['CanSplitByItem'] ===\r\n 'True'\r\n ) {\r\n props.initiateSplitByItem();\r\n } else {\r\n props.setErrorModalMessage(\r\n 'This table cannot be split by item. Please speak to your waiter.'\r\n );\r\n }\r\n }}\r\n >\r\n Items\r\n \r\n
    \r\n
    \r\n \r\n Back\r\n \r\n
    \r\n );\r\n }\r\n if (activeStep === Steps.SPLIT_BY_AMOUNT)\r\n return ;\r\n}\r\n\r\nfunction SplitByAmount(props) {\r\n const peopleNumberInput = useRef(null);\r\n const [value, setValue] = useState('');\r\n\r\n const setInputValue = newValue => {\r\n let numberValue = Number(newValue);\r\n if ((!!numberValue || numberValue === 0) && numberValue >= 0) {\r\n if (numberValue > 0 && newValue <= 30) {\r\n numberValue = Math.floor(numberValue);\r\n setValue(numberValue);\r\n } else if (numberValue > 30) {\r\n setValue(30);\r\n } else {\r\n setValue('');\r\n }\r\n }\r\n };\r\n\r\n const { loading } = props;\r\n return (\r\n
    \r\n

    \r\n How many people would you like to split by?\r\n

    \r\n\r\n
    \r\n\r\n\r\n
    \r\n
    \r\n {\r\n setInputValue(value - 1);\r\n }}\r\n >\r\n {elementMinus}\r\n \r\n {\r\n setInputValue(e.target.value);\r\n }}\r\n />\r\n {\r\n setInputValue(value + 1);\r\n }}\r\n >\r\n {elementPlus}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n props.initiateSplit(value)}\r\n >\r\n {loading === false ? (\r\n 'Confirm'\r\n ) : (\r\n
    \r\n )}\r\n \r\n
    \r\n );\r\n}\r\n\r\nexport default withAppState(SplitBillMenu,\r\n {\r\n mobXProps: ({\r\n bill,\r\n }) => ({\r\n bill,\r\n }),\r\n mobXActions: ({\r\n updateBillTotalAndSplit,\r\n setErrorModalMessage,\r\n }) => ({\r\n updateBillTotalAndSplit,\r\n setErrorModalMessage,\r\n })\r\n }\r\n);","import React, { useState } from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport { Steps } from '../../../lib/constants';\r\nimport SplitBillMenu from '../../../components/SplitBillMenu';\r\n\r\nconst MiPayAtTableSplitBillMenuWrapper = (props) => {\r\n const [loading, setLoading] = useState(false);\r\n const { restaurant, tableNumber, bill } = props;\r\n\r\n const initiateSplit = async (numPeople) => {\r\n if (!!numPeople && numPeople > 1) {\r\n setLoading(true);\r\n const response = await fetch(`api/Bill/SplitTableByAmount/${bill[0].providerId}/${restaurant.id}/${tableNumber}/${numPeople}`)\r\n if (!response.ok) {\r\n setLoading(false);\r\n props.setErrorModalMessage(\"We could not complete your request\");\r\n return;\r\n }\r\n\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n setLoading(false);\r\n props.setErrorModalMessage(\"We could not complete your request\");\r\n return;\r\n }\r\n\r\n const { success, bills } = data;\r\n if (success === true) {\r\n props.setBill(bills);\r\n props.goToStepWithoutHistory(Steps.SPLIT_BILL_NAME);\r\n } else {\r\n props.setErrorModalMessage(\"We could not complete your request\");\r\n }\r\n setLoading(false);\r\n }\r\n };\r\n\r\n const initiateSplitByItem = async () => {\r\n setLoading(true);\r\n const response = await fetch(`api/Bill/SplitTableByItem/${bill[0].providerId}/${restaurant.id}/${tableNumber}/`)\r\n if (!response.ok) {\r\n setLoading(false);\r\n props.setErrorModalMessage(\"We could not complete your request\");\r\n return;\r\n }\r\n\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n setLoading(false);\r\n props.setErrorModalMessage(\"We could not complete your request\");\r\n return;\r\n }\r\n\r\n const { success, bills } = data;\r\n if (success === true) props.setBill(bills);\r\n else props.setErrorModalMessage(\"We could not complete your request\");\r\n props.updateBillTotalAndSplit();\r\n props.goToStepWithoutHistory(Steps.SPLIT_BILL_NAME);\r\n };\r\n\r\n const handleBackButton = () => {\r\n props.popStep()\r\n }\r\n\r\n\r\n return \r\n}\r\n\r\n\r\nexport default withAppState(MiPayAtTableSplitBillMenuWrapper,\r\n {\r\n mobXProps: ({\r\n restaurant,\r\n tableNumber,\r\n bill,\r\n }) => ({\r\n restaurant,\r\n tableNumber,\r\n bill,\r\n }),\r\n mobXActions: ({\r\n setBill,\r\n popStep,\r\n updateBillTotalAndSplit,\r\n goToStepWithoutHistory,\r\n setErrorModalMessage,\r\n }) => ({\r\n setBill,\r\n popStep,\r\n updateBillTotalAndSplit,\r\n goToStepWithoutHistory,\r\n setErrorModalMessage,\r\n })\r\n }\r\n);","import React, { useState } from 'react';\r\n\r\nexport default function SplitBillName(props) {\r\n const [name, setName] = useState('');\r\n\r\n return (\r\n
    \r\n
    \r\n

    Please enter your initials

    \r\n setName(e.target.value.toUpperCase())}\r\n maxLength={2}\r\n onKeyDown={e => {\r\n if (e.key === 'Enter') props.assignName(name);\r\n }}\r\n />\r\n
    \r\n \r\n Back\r\n \r\n props.assignName(name)}\r\n >\r\n Confirm\r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n}","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport SplitBillName from '../../../components/SplitBillName';\r\nimport { getCsrfToken } from '../../../helpers/GetCsrfToken';\r\n\r\nconst MiPayAtTableSplitBillNameWrapper = (props) => {\r\n const { splitBillSessionToken, customer, restaurant, tableNumber, bill } = props;\r\n \r\n const handleBackButton = () => {\r\n props.popStep();\r\n }\r\n\r\n const assignName = async (inputName) => {\r\n \r\n if (inputName.length !== 2) {\r\n return;\r\n }\r\n \r\n const response = await fetch(`api/Bill/AssignName/${bill[0].providerId}/${restaurant.id}/${tableNumber}`,\r\n {\r\n \r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n Name: inputName,\r\n SplitBillSessionToken: splitBillSessionToken,\r\n PizzaExpressId:\r\n !!customer && !!customer.id\r\n ? customer.id\r\n : null\r\n })\r\n }\r\n );\r\n\r\n if (!response.ok) {\r\n props.setErrorModalMessage(\r\n 'There was a problem joining this split.'\r\n );\r\n return;\r\n }\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n props.setErrorModalMessage(\r\n 'There was a problem joining this split.'\r\n );\r\n return;\r\n }\r\n\r\n const { success, bills, responseValues } = data;\r\n if (success === true) {\r\n props.setBill(bills);\r\n if (\r\n !!responseValues &&\r\n !!responseValues['splitIndex']\r\n ) {\r\n var newSplitIndex = Number(responseValues['splitIndex']);\r\n if (newSplitIndex >= 0) {\r\n props.setSelectedSplitIndex(newSplitIndex);\r\n props.setAssignedSplitIndex(newSplitIndex);\r\n }\r\n }\r\n } else {\r\n props.setErrorModalMessage(\r\n 'There was a problem joining this split.'\r\n );\r\n }\r\n props.popStep();\r\n }\r\n\r\n return \r\n}\r\n\r\n\r\nexport default withAppState(MiPayAtTableSplitBillNameWrapper,\r\n {\r\n mobXProps: ({\r\n splitBillSessionToken,\r\n customer,\r\n restaurant,\r\n tableNumber,\r\n bill,\r\n }) => ({\r\n splitBillSessionToken,\r\n customer,\r\n restaurant,\r\n tableNumber,\r\n bill\r\n }),\r\n mobXActions: ({\r\n setBill,\r\n setSelectedSplitIndex,\r\n setAssignedSplitIndex,\r\n setErrorModalMessage,\r\n popStep,\r\n getCurrency\r\n }) => ({\r\n setBill,\r\n setSelectedSplitIndex,\r\n setAssignedSplitIndex,\r\n setErrorModalMessage,\r\n popStep,\r\n getCurrency\r\n })\r\n }\r\n);","import React from 'react';\r\n\r\nexport default class GratuityInput extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.nameRef = React.createRef();\r\n this.cursor = null;\r\n }\r\n\r\n render() {\r\n return (\r\n {\r\n this.props.onChange(e);\r\n }}\r\n onKeyDownCapture={(e) => this.props.onKeyDown(e)}\r\n />\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\n\r\nimport GratuityInput from './GratuityInput';\r\n\r\nimport accounting from 'accounting';\r\nimport plusIcon from '../assets/img/plus.svg';\r\nimport minusIcon from '../assets/img/minus.svg';\r\n\r\nconst elementPlus = \"plus\";\r\nconst elementMinus = \"minus\";\r\n\r\nconst SLIDER_VALUES = [0, 10.0, 12.5, 15.0, 17.5, 20.0, 22.5];\r\n\r\nconst MAX_VALUE = 250;\r\n\r\nclass ApplyGratuity extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n const sliderValueSelected = 2;\r\n const gratuityPercentage = SLIDER_VALUES[sliderValueSelected];\r\n\r\n const originalTotal = this.props.billTotal + this.props.discountTotal;\r\n const gratuityTotal = (\r\n (originalTotal / 100) *\r\n gratuityPercentage\r\n ).toFixed(2);\r\n\r\n this.props.setGratuityTotal(gratuityTotal);\r\n\r\n this.state = {\r\n sliderValueSelected,\r\n cachedCustomValue: gratuityTotal,\r\n enteringCustomAmount: false,\r\n theCurrency: null\r\n };\r\n this.cursor = null;\r\n }\r\n\r\n setMainCTAText() {\r\n const mainCTAText = `Pay ${this.props.getCurrency().symbol +(\r\n parseFloat(this.props.billTotal) +\r\n parseFloat(this.props.gratuityTotal || 0)\r\n ).toFixed(2)}`;\r\n this.props.setMainCTAText(mainCTAText);\r\n }\r\n\r\n componentDidMount() {\r\n this.setMainCTAText();\r\n this.props.setMainCTA(this.props.mainCTACallback.bind(this));\r\n (async () => {\r\n var updateLoadingAnimation = false;\r\n this.props.refreshTable(updateLoadingAnimation);\r\n })();\r\n this.setState({theCurrency: this.props.getCurrency()?.currency});\r\n }\r\n\r\n componentDidUpdate() {\r\n const gratuityPercentage = SLIDER_VALUES[this.state.sliderValueSelected];\r\n const originalTotal = this.props.billTotal + this.props.discountTotal;\r\n if (this.state.enteringCustomAmount === false) {\r\n const gratuityTotal = (\r\n (originalTotal / 100) *\r\n gratuityPercentage\r\n ).toFixed(2);\r\n this.props.setGratuityTotal(gratuityTotal);\r\n }\r\n this.setMainCTAText();\r\n }\r\n\r\n countDecimals(value) {\r\n try{\r\n if(Math.floor(this.valueOf(value)) === this.valueOf(value)) return 0;\r\n return value.toString().split(\".\")[1].length || 0; \r\n }\r\n catch(ex){\r\n return 0;\r\n }\r\n }\r\n\r\n handleIncreasePress() {\r\n if (this.state.enteringCustomAmount === true) {\r\n this.handleCancelCustomGratuity(1);\r\n } else {\r\n let sliderValueSelected = this.state.sliderValueSelected;\r\n if (sliderValueSelected + 1 < SLIDER_VALUES.length) {\r\n sliderValueSelected += 1;\r\n\r\n const gratuityPercentage = SLIDER_VALUES[sliderValueSelected];\r\n const originalTotal = (this.props.billTotal + this.props.discountTotal)\r\n const gratuityTotal = (\r\n (originalTotal / 100) *\r\n gratuityPercentage\r\n ).toFixed(2);\r\n this.setState({\r\n sliderValueSelected,\r\n cachedCustomValue: gratuityTotal\r\n });\r\n this.props.setGratuityTotal(gratuityTotal);\r\n }\r\n }\r\n }\r\n\r\n handleDecreasePress() {\r\n if (this.state.enteringCustomAmount === true) {\r\n this.handleCancelCustomGratuity(-1);\r\n } else {\r\n let sliderValueSelected = this.state.sliderValueSelected;\r\n if (sliderValueSelected - 1 >= 0) {\r\n sliderValueSelected -= 1;\r\n\r\n const gratuityPercentage = SLIDER_VALUES[sliderValueSelected];\r\n const originalTotal = this.props.billTotal + this.props.discountTotal;\r\n const gratuityTotal = (\r\n (originalTotal / 100) *\r\n gratuityPercentage\r\n ).toFixed(2);\r\n this.setState({\r\n sliderValueSelected,\r\n cachedCustomValue: gratuityTotal\r\n });\r\n this.props.setGratuityTotal(gratuityTotal);\r\n }\r\n }\r\n }\r\n\r\n handleCancelCustomGratuity(amount) {\r\n const originalTotal = this.props.billTotal + this.props.discountTotal;\r\n let customGratuityPercentage =\r\n (this.state.cachedCustomValue / originalTotal) * 100;\r\n customGratuityPercentage = customGratuityPercentage.toFixed(2);\r\n const totalSliderValues = SLIDER_VALUES.length;\r\n\r\n let sliderWasChanged = false;\r\n let sliderValueSelected = null;\r\n if (amount === 1) {\r\n for (var i = 0; i < totalSliderValues; i++) {\r\n if (SLIDER_VALUES[i] > customGratuityPercentage) {\r\n sliderValueSelected = i;\r\n this.setState({ sliderValueSelected });\r\n sliderWasChanged = true;\r\n break;\r\n }\r\n }\r\n if (sliderWasChanged === false) {\r\n sliderValueSelected = totalSliderValues - 1;\r\n this.setState({ sliderValueSelected });\r\n }\r\n } else if (amount === -1) {\r\n for (var j = totalSliderValues - 1; j >= 0; j--) {\r\n if (SLIDER_VALUES[j] < customGratuityPercentage) {\r\n sliderValueSelected = j;\r\n this.setState({ sliderValueSelected });\r\n sliderWasChanged = true;\r\n break;\r\n }\r\n }\r\n if (sliderWasChanged === false) {\r\n sliderValueSelected = 0;\r\n this.setState({ sliderValueSelected });\r\n }\r\n }\r\n\r\n const gratuityPercentage = SLIDER_VALUES[sliderValueSelected];\r\n const gratuityTotal = (\r\n (originalTotal / 100) *\r\n gratuityPercentage\r\n ).toFixed(2);\r\n\r\n this.props.setGratuityTotal(gratuityTotal);\r\n this.setState({\r\n enteringCustomAmount: false,\r\n cachedCustomValue: gratuityTotal\r\n });\r\n }\r\n\r\n handleChange(event) {\r\n const maskedValue = event.target.value;\r\n let value = accounting.unformat(maskedValue);\r\n console.log(\"value\", value)\r\n if(/*value.toString()[0] === \"0\"*/ (this.countDecimals(value) > 2 || event.nativeEvent.data === \"0\")){\r\n value = accounting.toFixed(value * 10, 2);\r\n if(value > MAX_VALUE){\r\n value = MAX_VALUE;\r\n }\r\n this.setState({\r\n cachedCustomValue: value,\r\n enteringCustomAmount: true\r\n });\r\n this.props.setGratuityTotal(value);\r\n }\r\n }\r\n\r\n handleKeyDown(event) {\r\n const key = event.key;\r\n const cachedCustomValue = this.state.cachedCustomValue;\r\n if (key === 'Backspace') {\r\n const value = (((cachedCustomValue * 100) / 10) | 0) / 100;\r\n const gratuityTotal = accounting.toFixed(value, 2);\r\n this.props.setGratuityTotal(gratuityTotal);\r\n this.setState({\r\n enteringCustomAmount: true,\r\n cachedCustomValue: gratuityTotal\r\n });\r\n event.preventDefault();\r\n } else if (key === 'Enter') {\r\n event.target.blur();\r\n }\r\n }\r\n\r\n render() {\r\n const originalTotal = this.props.billTotal + this.props.discountTotal;\r\n const gratuityPercentage = this.state.enteringCustomAmount\r\n ? (this.state.cachedCustomValue / originalTotal) * 100\r\n : SLIDER_VALUES[this.state.sliderValueSelected];\r\n const gratuityTotal = this.state.enteringCustomAmount\r\n ? this.state.cachedCustomValue\r\n : this.props.gratuityTotal;\r\n let maskedGratuityTotal;\r\n if (!!this.state.theCurrency) {\r\n maskedGratuityTotal = Number(gratuityTotal).toLocaleString(this.props.getCurrency()?.language, {\r\n style: 'currency',\r\n currency: this.state.theCurrency\r\n });\r\n } else {\r\n maskedGratuityTotal = Number(gratuityTotal)\r\n }\r\n return (\r\n
    \r\n
    \r\n
    \r\n this.handleDecreasePress()}\r\n >\r\n {elementMinus}\r\n
    \r\n
    \r\n\r\n \r\n

    \r\n {gratuityPercentage.toFixed(1)}%\r\n

    \r\n
    \r\n\r\n
    \r\n this.handleIncreasePress()}\r\n >\r\n {elementPlus}\r\n
    \r\n \r\n\r\n
    \r\n {\r\n this.handleChange(e);\r\n }}\r\n onKeyDown={e => {\r\n this.handleKeyDown(e);\r\n }}\r\n />\r\n
    \r\n \r\n\r\n
      \r\n
    • \r\n

      Your Meal:

      \r\n
    • \r\n
    • \r\n

      {this.props.getCurrency().symbol}{(originalTotal).toFixed(2)}

      \r\n
    • \r\n
    \r\n
      \r\n
    • \r\n

      After Discounts:

      \r\n
    • \r\n
    • \r\n

      {this.props.getCurrency().symbol + this.props.billTotal.toFixed(2)}

      \r\n
    • \r\n
    \r\n
      \r\n
    • \r\n

      Gratuity:

      \r\n
    • \r\n
    • \r\n

      {this.props.getCurrency().symbol+ gratuityTotal}

      \r\n
    • \r\n
    \r\n
    \r\n

    \r\n All cash tips go to your waiter. But card tips and service charge\r\n are different. Tips made on electronic card payments are fully\r\n distributed among our employees with no deductions. Currently, 50\r\n percent of card-based tips go to cleaners, chefs and other kitchen\r\n staff; with the remaining 50 percent going to your waiter as a\r\n reward for great customer service.\r\n

    \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(ApplyGratuity,\r\n {\r\n mobXProps: ({\r\n discountTotal,\r\n gratuityTotal,\r\n billTotal,\r\n }) => ({\r\n discountTotal,\r\n gratuityTotal,\r\n billTotal,\r\n }),\r\n mobXActions: ({ \r\n setGratuityTotal,\r\n setMainCTAText,\r\n setMainCTA,\r\n refreshTable,\r\n setGrandTotal,\r\n getCurrency\r\n }) => ({\r\n setGratuityTotal,\r\n setMainCTAText,\r\n setMainCTA,\r\n refreshTable,\r\n setGrandTotal,\r\n getCurrency\r\n })\r\n }\r\n);","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport ApplyGratuity from '../../../components/ApplyGratuity';\r\nimport { Steps } from '../../../lib/constants'\r\n\r\nconst MiPayAtTableApplyGratuityWrapper = (props) => {\r\n const completeGratuity = () => {\r\n props.setGrandTotal();\r\n props.goToStep(Steps.PAY);\r\n }\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(MiPayAtTableApplyGratuityWrapper,\r\n {\r\n mobXActions: ({\r\n goToStep,\r\n setGrandTotal\r\n }) => ({\r\n goToStep,\r\n setGrandTotal\r\n })\r\n }\r\n);","import React from 'react';\r\nimport { FacebookProvider, Login } from 'react-facebook';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faFacebookSquare } from '@fortawesome/free-brands-svg-icons';\r\nimport makeCancelable from '../helpers/PromiseWrapper';\r\nimport { getCsrfToken, handleCsrfFailure } from '../helpers/GetCsrfToken';\r\n\r\nexport default class FacebookLogin extends React.Component {\r\n constructor() {\r\n super();\r\n\r\n this.state = {\r\n loading: false\r\n };\r\n this.requests = [];\r\n }\r\n componentWillUnmount() {\r\n for (let i = 0; i < this.requests.length; i++) {\r\n this.requests[i].cancel();\r\n }\r\n }\r\n handleResponse = data => {\r\n this.setState({ loading: true });\r\n let request = makeCancelable(fetch('api/Customer/SocialLogin', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n provider: 'facebook',\r\n accessToken: data.tokenDetail.accessToken,\r\n userId: data.tokenDetail.userID,\r\n emailAddress: data.profile.email\r\n })\r\n }));\r\n this.requests.push(request);\r\n request.then(response => {\r\n if (response.status === 200) {\r\n response.json().then(responseData => {\r\n if (\r\n !!responseData.customerSessionToken &&\r\n responseData.customerSessionToken.pizzaExpressId > 0\r\n ) {\r\n this.setState({\r\n loading: false\r\n });\r\n this.props.handleLogin(responseData);\r\n } else {\r\n this.setState({\r\n loading: false\r\n });\r\n var profile = {\r\n firstName: data.profile.first_name,\r\n lastName: data.profile.last_name,\r\n emailAddress: data.profile.email\r\n };\r\n this.props.goToRegister(profile);\r\n }\r\n });\r\n } else if (response.status === 400) {\r\n handleCsrfFailure();\r\n }\r\n })\r\n .catch(error => {\r\n this.setState({\r\n loading: false\r\n });\r\n console.log(error);\r\n });\r\n };\r\n\r\n handleError = error => {\r\n console.log(error);\r\n this.setState({loading: false})\r\n };\r\n\r\n render() {\r\n const elementFacebook = ;\r\n const mainText = this.state.loading === true ? 'Logging in...' : 'Log in with Facebook';\r\n return (\r\n \r\n \r\n {({ loading, handleClick, error, data }) => (\r\n \r\n {elementFacebook} {mainText}\r\n \r\n )}\r\n \r\n \r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport { GoogleLogin } from 'react-google-login';\r\nimport gIcon from '../assets/img/google-icon.png';\r\nimport makeCancelable from '../helpers/PromiseWrapper';\r\nimport { getCsrfToken, handleCsrfFailure } from '../helpers/GetCsrfToken';\r\n\r\nexport default class FacebookLogin extends React.Component {\r\n constructor() {\r\n super();\r\n\r\n this.state = {\r\n loading: false\r\n };\r\n this.requests = [];\r\n }\r\n\r\n componentWillUnmount() {\r\n for (let i = 0; i < this.requests.length; i++) {\r\n this.requests[i].cancel();\r\n }\r\n }\r\n\r\n handleResponse = googleUser => {\r\n this.setState({\r\n loading: true\r\n });\r\n var profile = googleUser.getBasicProfile();\r\n let userId = profile.getId();\r\n let emailAddress = profile.getEmail();\r\n var authResponse = googleUser.getAuthResponse();\r\n if (!!authResponse) {\r\n var id_token = authResponse.id_token;\r\n let request = makeCancelable(\r\n fetch('api/Customer/SocialLogin', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n provider: 'google',\r\n accessToken: id_token,\r\n userId,\r\n emailAddress\r\n })\r\n })\r\n );\r\n this.requests.push(request);\r\n request\r\n .then(response => {\r\n if (response.status === 200) {\r\n response.json().then(responseData => {\r\n if (\r\n !!responseData.customerSessionToken &&\r\n responseData.customerSessionToken.pizzaExpressId > 0\r\n ) {\r\n this.setState({\r\n loading: false\r\n });\r\n this.props.handleLogin(responseData);\r\n } else {\r\n this.setState({\r\n loading: false\r\n });\r\n // let firstName = profile.getGivenName();\r\n // let lastName = profile.getFamilyName();\r\n var profile = {\r\n // firstName,\r\n // lastName,\r\n emailAddress\r\n };\r\n this.props.goToRegister(profile);\r\n }\r\n });\r\n } else if (response.status === 400) {\r\n handleCsrfFailure();\r\n }\r\n })\r\n .catch(error => {\r\n this.setState({ loading: false });\r\n console.error(error);\r\n });\r\n } else {\r\n this.setState({\r\n loading: false\r\n });\r\n }\r\n };\r\n\r\n handleError = error => {\r\n console.error(error);\r\n this.setState({ loading: false });\r\n };\r\n\r\n render() {\r\n const mainText =\r\n this.state.loading === true ? 'Logging in...' : 'Log in with Google';\r\n return (\r\n (\r\n \r\n \"google\r\n {mainText}\r\n \r\n )}\r\n buttonText=\"Login\"\r\n onSuccess={this.handleResponse}\r\n onFailure={this.handleError}\r\n cookiePolicy={'single_host_origin'}\r\n />\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons';\r\n\r\nimport FacebookLogin from './FacebookLogin';\r\nimport GoogleLogin from './GoogleLogin';\r\nimport makeCancelable from '../helpers/PromiseWrapper';\r\nimport { getCsrfToken, handleCsrfFailure } from '../helpers/GetCsrfToken';\r\n\r\n// export default class Login extends React.Component {\r\nexport default class Login extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n loading: false,\r\n loginFailed: false,\r\n emailEmpty: false,\r\n emailValid: true,\r\n passwordEmpty: false,\r\n passwordVisible: false,\r\n emailAddress: \"\",\r\n };\r\n this.requests = [];\r\n }\r\n\r\n componentWillUnmount() {\r\n for (let i = 0; i < this.requests.length; i++) {\r\n this.requests[i].cancel();\r\n }\r\n }\r\n\r\n validateEmail(e) {\r\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@(([[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n const emailInput = document.getElementById('emailAddress');\r\n\r\n if (e.target.value.trim().length === 0) {\r\n this.setState({\r\n emailValid: true,\r\n emailEmpty: false\r\n });\r\n emailInput.classList.add('warning');\r\n } else {\r\n if (re.test(e.target.value.trim())) {\r\n this.setState({\r\n emailValid: true,\r\n emailEmpty: false\r\n });\r\n emailInput.classList.remove('warning');\r\n } else {\r\n this.setState({\r\n emailValid: false,\r\n emailEmpty: false\r\n });\r\n emailInput.classList.add('warning');\r\n }\r\n }\r\n };\r\n\r\n handleKeyDown(e) {\r\n if (e.key === 'Enter') {\r\n this.handleLoginAsCustomer();\r\n }\r\n }\r\n\r\n handleLoginAsCustomer() {\r\n const emailAddress = document.getElementById('emailAddress').value;\r\n const password = document.getElementById('password').value;\r\n this.setState({\r\n loginFailed: false,\r\n emailEmpty: !emailAddress,\r\n passwordEmpty: !password\r\n });\r\n\r\n if (!!emailAddress && !!password) {\r\n this.setState({\r\n loading: true\r\n });\r\n let request = makeCancelable(fetch('api/Customer/Login', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n emailAddress: emailAddress,\r\n password: password\r\n })\r\n }));\r\n this.requests.push(request);\r\n request.then(async response => {\r\n if (response.status === 400) {\r\n handleCsrfFailure();\r\n return\r\n }\r\n let data;\r\n try {\r\n data = await response.json()\r\n if (\r\n !!data.customerSessionToken &&\r\n data.customerSessionToken.pizzaExpressId > 0\r\n ) {\r\n this.setState({\r\n loading: false\r\n });\r\n this.props.handleLogin(data);\r\n }\r\n else\r\n throw \"Login Failed\";\r\n } catch (error) {\r\n this.setState({\r\n loginFailed: true,\r\n loading: false\r\n });\r\n }\r\n })\r\n }\r\n }\r\n\r\n handleVisibility() {\r\n const pwInput = document.getElementById('password');\r\n if (pwInput.type === 'password') {\r\n pwInput.type = 'text';\r\n this.setState({ passwordVisible: true });\r\n } else {\r\n pwInput.type = 'password';\r\n this.setState({ passwordVisible: false });\r\n }\r\n }\r\n\r\n render() {\r\n const elementEye = \r\n const elementEyeSlash = \r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n\r\n
    \r\n \r\n this.handleKeyDown(e)}\r\n onBlur={e => this.validateEmail(e)}\r\n onChange={e => this.setState({ emailAddress: e.target.value })}\r\n />\r\n {this.state.emailEmpty && (\r\n

    Email cannot be empty.

    \r\n )}\r\n {!this.state.emailEmpty && !this.state.emailValid && (\r\n

    \r\n Email does not have a correct format.\r\n

    \r\n )}\r\n
    \r\n
    \r\n \r\n
    \r\n this.handleKeyDown(e)}\r\n />\r\n\r\n this.handleVisibility()}\r\n >\r\n {!this.state.passwordVisible &&
    {elementEyeSlash}
    }\r\n {this.state.passwordVisible &&
    {elementEye}
    }\r\n \r\n
    \r\n {this.state.passwordEmpty && (\r\n

    Password cannot be empty.

    \r\n )}\r\n
    \r\n

    \r\n this.props.goToForgottenPassword(this.state.emailAddress)}\r\n >\r\n Forgotten password?\r\n \r\n

    \r\n {this.state.loginFailed && (\r\n

    \r\n Login failed, please try different credentials.\r\n

    \r\n )}\r\n\r\n this.handleLoginAsCustomer()}\r\n >\r\n {(this.state.loading === false) ? 'Log in with Email' : }\r\n \r\n
    \r\n
    \r\n this.props.signUp()}\r\n >\r\n Sign up\r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nclass VoucherCodeInput extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n voucherCode: '',\r\n loading: false\r\n };\r\n }\r\n\r\n handleChange = event => {\r\n let value = event.target.value;\r\n value = value.toUpperCase();\r\n this.setState({ voucherCode: value });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n

    ENTER A VOUCHER CODE

    \r\n \r\n this.props.handleOfferSelect(this.state.voucherCode, true)}\r\n >\r\n {this.props.loading === false ? (\r\n 'Apply Voucher Code'\r\n ) : (\r\n \r\n )}\r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default VoucherCodeInput;\r\n","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\n\r\nimport Loading from './Loading';\r\nimport Login from './Login';\r\nimport VoucherCodeInput from './VoucherCodeInput';\r\n\r\nimport Modal from './Modal';\r\n\r\nimport makeCancelable from '../helpers/PromiseWrapper';\r\nimport { getCsrfToken, handleCsrfFailure } from '../helpers/GetCsrfToken';\r\n\r\nclass ApplyVoucher extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n results: null,\r\n loading: false,\r\n inputButtonLoading: false,\r\n selectedVoucher: {},\r\n oIndex: '',\r\n vIndex: '',\r\n oImage: '',\r\n oTitle: '',\r\n oDescription: '',\r\n voucherCodeLogin: true\r\n };\r\n this.requests = [];\r\n }\r\n\r\n setLoading(value) {\r\n this.setState({ loading: value });\r\n }\r\n \r\n lookupVouchers() {\r\n const { customer, restaurant } = this.props;\r\n if (!!customer && !!customer.id) {\r\n this.setState({\r\n loading: true\r\n });\r\n fetch(\r\n `api/Offers/GetOffers/${customer.emailAddress}/${restaurant.id}`\r\n ).then(response => {\r\n this.setState({\r\n loading: false\r\n });\r\n if (response.status === 200) {\r\n response.json().then(data => {\r\n this.setState({\r\n results: data.offers\r\n });\r\n })\r\n }\r\n });\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n this.lookupVouchers();\r\n }\r\n\r\n componentWillUnmount() {\r\n for (let i = 0; i < this.requests.length; i++) {\r\n this.requests[i].cancel();\r\n }\r\n }\r\n\r\n setLoading(value, wasInputButton) {\r\n if (wasInputButton) {\r\n this.setState({ inputButtonLoading: value });\r\n } else {\r\n this.setState({ loading: value });\r\n }\r\n }\r\n\r\n handleOfferSelect(voucherCode, wasInputButton = false) {\r\n const { restaurant, bill } = this.props;\r\n this.setLoading(true, wasInputButton);\r\n var data = JSON.stringify({\r\n voucherCode: voucherCode,\r\n restaurantId: restaurant.id,\r\n bill: bill[0]\r\n });\r\n\r\n let request = makeCancelable(\r\n fetch('api/Offers/ApplyVoucher/', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken(),\r\n },\r\n body: data\r\n })\r\n );\r\n this.requests.push(request);\r\n request\r\n .then(async response => {\r\n if (response.status === 200) {\r\n await this.props.handleApplyVoucherSuccessResponse(response);\r\n } else if (response.status === 400) {\r\n handleCsrfFailure();\r\n } else {\r\n this.props.setErrorModalMessage(\r\n 'We were unable to apply this voucher code.'\r\n );\r\n }\r\n this.setLoading(false, wasInputButton);\r\n })\r\n .catch(err => {\r\n this.setLoading(false, wasInputButton);\r\n });\r\n }\r\n\r\n openModal(voucher) {\r\n this.props.setMainModalCTA(() => this.handleOfferSelect(voucher.code));\r\n\r\n const title = 'Apply the following voucher?';\r\n const voucherCode = voucher.code;\r\n const message = 'This cannot be undone.';\r\n const mainCTAText = 'Confirm';\r\n const secondaryCTAText = 'Cancel';\r\n this.props.setupMainModal({ title, message, voucherCode, mainCTAText, secondaryCTAText });\r\n this.props.enableMainModal();\r\n }\r\n\r\n displayResults() {\r\n if (this.state.results !== null) {\r\n var offers = this.state.results;\r\n if (offers.length > 0) {\r\n return offers.map((offer, oIndex) => {\r\n const voucherCodes = offer.voucherCodes;\r\n if (voucherCodes.length > 0) {\r\n return voucherCodes.map((voucher, vIndex) => {\r\n return (\r\n this.openModal(voucher)}\r\n >\r\n {!!offer.imgURL ? (\r\n \r\n ) : null}\r\n
    \r\n

    {offer.title}

    \r\n

    {offer.description}

    \r\n

    {voucher.code}

    \r\n
    \r\n \r\n );\r\n });\r\n } else {\r\n return null;\r\n }\r\n });\r\n }\r\n return (\r\n
    \r\n

    No applicable vouchers found.

    \r\n
    \r\n );\r\n }\r\n }\r\n\r\n voucherLoginViewSwitch() {\r\n this.setState({\r\n voucherCodeLogin: !this.state.voucherCodeLogin\r\n });\r\n }\r\n\r\n handleLogin(data) {\r\n this.props.loginAsCustomer(data);\r\n this.lookupVouchers();\r\n }\r\n\r\n render() {\r\n const {\r\n customer,\r\n signUp,\r\n goToForgottenPassword,\r\n bufferedAction,\r\n } = this.props;\r\n\r\n return !customer || !customer.id ? (\r\n
    \r\n {this.state.voucherCodeLogin === true ? (\r\n
    \r\n \r\n {this.props.getCanSignup() &&\r\n
    \r\n this.voucherLoginViewSwitch()}\r\n >\r\n Log in to redeem a saved voucher\r\n \r\n
    }\r\n
    \r\n ) : (\r\n
    \r\n this.handleLogin(data)}\r\n signUp={signUp}\r\n />\r\n
    \r\n )}\r\n
    \r\n ) : (\r\n
    \r\n {this.state.loading === true && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n {this.state.display === true && ? (\r\n \r\n ) : (\r\n ''\r\n )}\r\n\r\n
    \r\n {this.displayResults()}\r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(ApplyVoucher,\r\n {\r\n mobXProps: ({\r\n customer,\r\n restaurant,\r\n bill,\r\n modalActive,\r\n modalTitle,\r\n modalVoucherCode,\r\n modalMessage,\r\n modalMainCTAText,\r\n modalSecondaryCTAText,\r\n }) => ({\r\n customer,\r\n restaurant,\r\n bill,\r\n modalActive,\r\n modalTitle,\r\n modalVoucherCode,\r\n modalMessage,\r\n modalMainCTAText,\r\n modalSecondaryCTAText,\r\n }),\r\n mobXActions: ({\r\n setErrorModalMessage,\r\n enableMainModal,\r\n setupMainModal,\r\n setMainModalCTA,\r\n loginAsCustomer,\r\n getCanSignup\r\n }) => ({\r\n setErrorModalMessage,\r\n enableMainModal,\r\n setupMainModal,\r\n setMainModalCTA,\r\n loginAsCustomer,\r\n getCanSignup\r\n })\r\n }\r\n);\r\n","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport { Steps } from '../../../lib/constants';\r\nimport ApplyVoucher from '../../../components/ApplyVoucher';\r\n\r\nconst MiPayAtTableApplyVoucherWrapper = (props) => {\r\n const goToRegister = () => {\r\n props.goToStep(Steps.REGISTER);\r\n }\r\n\r\n const goToRegisterFromSocial = (profile) => {\r\n props.setSocialCustomer(profile);\r\n props.goToStep(Steps.REGISTER);\r\n }\r\n\r\n const goToForgottenPassword = (cachedEmailAddress) => {\r\n props.setCachedEmailAddress(cachedEmailAddress);\r\n props.goToStep(Steps.FORGOTTEN_PASSWORD);\r\n }\r\n\r\n const handleConfirmVoucher = (offer) => {\r\n props.popStep();\r\n };\r\n\r\n const handleApplyVoucherSuccessResponse = async (response) => {\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n props.setErrorModalMessage(\r\n 'We were unable to apply this voucher code.'\r\n );\r\n }\r\n\r\n const { success, bills, reason } = data;\r\n if (success === true) {\r\n props.setBill(bills);\r\n props.popStep();\r\n } else {\r\n props.setErrorModalMessage(reason ? reason : \r\n 'We were unable to apply this voucher code.'\r\n );\r\n }\r\n }\r\n\r\n\r\n props.setBufferedAction(() => {\r\n props.goToStepWithoutHistory(Steps.APPLY_VOUCHER);\r\n })\r\n\r\n return (\r\n \r\n )\r\n}\r\n\r\nexport default withAppState(MiPayAtTableApplyVoucherWrapper,\r\n {\r\n mobXActions: ({\r\n goToStepWithoutHistory,\r\n setErrorModalMessage,\r\n setBill,\r\n popStep,\r\n setSocialCustomer,\r\n goToStep,\r\n setCachedEmailAddress,\r\n setBufferedAction,\r\n }) => ({\r\n goToStepWithoutHistory,\r\n setErrorModalMessage,\r\n setBill,\r\n popStep,\r\n setSocialCustomer,\r\n goToStep,\r\n setCachedEmailAddress,\r\n setBufferedAction,\r\n })\r\n }\r\n);","import React from 'react';\r\n\r\nimport { getCsrfToken } from '../helpers/GetCsrfToken';\r\n\r\nconst braintree = require('braintree-web');\r\n\r\nexport default class PayByCard extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.vaultCheckbox = React.createRef();\r\n\r\n this.state = {\r\n hostedFieldsInstance: null,\r\n fields: {},\r\n formValid: false,\r\n vaultCheckboxTicked: false,\r\n emailAddress:\r\n !!this.props.customer &&\r\n !!this.props.customer.id &&\r\n !!this.props.customer.emailAddress\r\n ? this.props.customer.emailAddress\r\n : '',\r\n emailAddressProps: {\r\n isInvalid: false,\r\n isEmpty: false\r\n },\r\n displayInvalidFields: {\r\n email: false,\r\n creditCard: false,\r\n cvv: false,\r\n expiry: false\r\n }\r\n };\r\n }\r\n\r\n componentWillUnmount() {\r\n this.props.submitPaymentCancel();\r\n }\r\n\r\n checkEmailValidity() {\r\n const emailAddress = this.state.emailAddress;\r\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@(([[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n if (emailAddress === '') {\r\n const emailAddressProps = {\r\n isInvalid: false,\r\n isEmpty: true\r\n };\r\n this.setState(\r\n {\r\n emailAddressProps\r\n }\r\n );\r\n return emailAddressProps;\r\n } else if (re.test(emailAddress) === false) {\r\n const emailAddressProps = {\r\n isInvalid: true,\r\n isEmpty: false\r\n };\r\n this.setState(\r\n {\r\n emailAddressProps\r\n }\r\n );\r\n return emailAddressProps;\r\n } else {\r\n var displayInvalidFields = this.state.displayInvalidFields;\r\n displayInvalidFields.email = false;\r\n const emailAddressProps = {\r\n isInvalid: false,\r\n isEmpty: false\r\n }\r\n this.setState(\r\n {\r\n emailAddressProps,\r\n displayInvalidFields\r\n }\r\n );\r\n return emailAddressProps;\r\n }\r\n }\r\n\r\n async postPayment(payload, hostedFieldsInstance) {\r\n var storeInVault = false;\r\n if (!!this.props.customer && !!this.props.customer.id) {\r\n if (!!this.vaultCheckbox && this.vaultCheckbox.current.checked === true) storeInVault = true;\r\n }\r\n\r\n const response = await fetch(`api/Braintree/Pay`, {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: this.props.generatePaymentBody(\r\n payload,\r\n this.state.emailAddress,\r\n storeInVault\r\n )\r\n });\r\n\r\n let data;\r\n try {\r\n data = await response.json()\r\n } catch (err) {\r\n console.error(err);\r\n this.props.submitPaymentFail();\r\n return;\r\n }\r\n if (data.success === false) {\r\n this.props.submitPaymentFail(data.reason);\r\n return;\r\n }\r\n\r\n hostedFieldsInstance.teardown(function (teardownErr) {\r\n if (teardownErr) console.error('Could not tear down the Hosted Fields form!');\r\n });\r\n this.props.storeCustomerEmail(this.state.emailAddress);\r\n this.props.paymentSuccessful(data);\r\n\r\n if (!!data.vaultId) {\r\n this.props.storeVaultId(data.vaultId);\r\n }\r\n }\r\n\r\n checkFormValidity(event) {\r\n var formValid = Object.keys(event.fields).every(key => {\r\n return event.fields[key].isValid;\r\n });\r\n\r\n let displayInvalidFields = this.state.displayInvalidFields;\r\n if (event.fields.number.isValid === true)\r\n displayInvalidFields.creditCard = false;\r\n if (event.fields.cvv.isValid === true) displayInvalidFields.cvv = false;\r\n if (event.fields.expirationDate.isValid === true)\r\n displayInvalidFields.expiry = false;\r\n\r\n this.setState({ fields: event.fields, displayInvalidFields, formValid });\r\n }\r\n\r\n submitPayment(event) {\r\n this.setState({ fields: event.fields });\r\n if (this.props.submittingPayment === false) {\r\n\r\n const emailProps = this.checkEmailValidity();\r\n if (emailProps.isInvalid === true || emailProps.isEmpty === true) {\r\n let displayInvalidFields = this.state.displayInvalidFields;\r\n displayInvalidFields.email = true;\r\n this.setState({\r\n displayInvalidFields\r\n });\r\n }\r\n \r\n const hostedFieldsInstance = this.state.hostedFieldsInstance;\r\n if (\r\n this.state.formValid === true &&\r\n emailProps.isInvalid === false &&\r\n emailProps.isEmpty === false\r\n ) {\r\n this.props.submitPayment();\r\n hostedFieldsInstance.tokenize({}, async (err, payload) => {\r\n if (err) {\r\n console.error(err);\r\n return;\r\n }\r\n var threeDSecureParameters = {\r\n amount: this.props.grandTotal,\r\n nonce: payload.nonce,\r\n bin: payload.details.bin,\r\n email: this.props.customer\r\n ? this.props.customer.emailAddress\r\n : this.state.email,\r\n onLookupComplete: (data, next) => {\r\n // use `data` here, then call `next()`\r\n next();\r\n }\r\n };\r\n\r\n try {\r\n\r\n let threeDSecure;\r\n\r\n const clientInstance = await braintree.client.create({\r\n authorization: this.props.clientToken\r\n });\r\n\r\n const threeDSecureInstance = await braintree.threeDSecure.create({\r\n version: '2', // Will use 3DS 2 whenever possible\r\n client: clientInstance\r\n });\r\n\r\n threeDSecure = threeDSecureInstance;\r\n const payByCardContainer = document.getElementById(\r\n 'pay-by-card-container'\r\n );\r\n\r\n threeDSecure.on(\r\n 'authentication-iframe-available',\r\n (event, next) => {\r\n this.props.pausePaymentLoadingAnimation();\r\n payByCardContainer.appendChild(event.element);\r\n event.element.className = 'three-d-secure-container';\r\n next();\r\n }\r\n );\r\n\r\n try {\r\n let response = await threeDSecure\r\n .verifyCard(threeDSecureParameters)\r\n\r\n this.props.unpausePaymentLoadingAnimation();\r\n threeDSecure.teardown();\r\n var threeDSecureElem = document.getElementsByClassName(\r\n 'three-d-secure-container'\r\n )[0];\r\n if (!!threeDSecureElem) {\r\n payByCardContainer.removeChild(threeDSecureElem);\r\n }\r\n this.postPayment(response, hostedFieldsInstance);\r\n } catch (error) {\r\n console.log(error);\r\n this.props.unpausePaymentLoadingAnimation();\r\n threeDSecure.teardown();\r\n var threeDSecureElem = document.getElementsByClassName(\r\n 'three-d-secure-container'\r\n )[0];\r\n if (!!threeDSecureElem) {\r\n payByCardContainer.removeChild(threeDSecureElem);\r\n }\r\n this.props.submitPaymentFail();\r\n // Handle error\r\n };\r\n } catch (err) {\r\n console.log(err);\r\n this.props.submitPaymentFail();\r\n // Handle component creation error\r\n };\r\n });\r\n } else {\r\n let displayInvalidFields = this.state.displayInvalidFields;\r\n if (\r\n event.fields.number.isValid === false ||\r\n event.fields.number.isEmpty === true\r\n )\r\n displayInvalidFields.creditCard = true;\r\n if (\r\n event.fields.cvv.isValid === false ||\r\n event.fields.cvv.isEmpty === true\r\n )\r\n displayInvalidFields.cvv = true;\r\n if (\r\n event.fields.expirationDate.isValid === false ||\r\n event.fields.expirationDate.isEmpty === true\r\n )\r\n displayInvalidFields.expiry = true;\r\n\r\n this.setState({ fields: event.fields, displayInvalidFields });\r\n }\r\n\r\n }\r\n }\r\n\r\n async componentDidMount() {\r\n if (this.state.hostedFieldsInstance !== null) return;\r\n\r\n braintree.client\r\n .create({\r\n authorization: this.props.clientToken\r\n })\r\n .then(clientInstance => {\r\n var options = {\r\n client: clientInstance,\r\n styles: {\r\n input: {\r\n 'font-family': 'DMSans-Regular, sans-serif',\r\n 'font-size': '1.5rem',\r\n 'line-height': '1.35rem',\r\n color: 'rgb(8, 16, 32)',\r\n padding: '1rem 0.625rem',\r\n 'background-color': '#ffffff',\r\n 'max-width': '500px',\r\n 'border-radius': '20px'\r\n },\r\n 'input#credit-card-number': {},\r\n 'input#cvv': {},\r\n 'input#expiration': {},\r\n '.valid': {\r\n color: '#008041'\r\n },\r\n '#card-number input::-ms-input-placeholder': {\r\n color: 'pink'\r\n },\r\n '#card-number input:-ms-input-placeholder': {\r\n color: 'pink'\r\n },\r\n '#card-number input::-moz-placeholder': {\r\n color: 'pink'\r\n },\r\n '#card-number input:-moz-placeholder': {\r\n color: 'pink'\r\n },\r\n '#card-number input::-webkit-input-placeholder': {\r\n color: 'pink'\r\n },\r\n '#card-number input:placeholder-shown': {\r\n color: 'pink'\r\n },\r\n '#card-number input::placeholder': {\r\n color: 'pink'\r\n }\r\n },\r\n fields: {\r\n number: {\r\n container: '#card-number',\r\n placeholder: '4111 1111 1111 1111'\r\n },\r\n cvv: {\r\n container: '#cvv',\r\n placeholder: '987'\r\n },\r\n expirationDate: {\r\n container: '#expiration-date',\r\n placeholder: '01 / 23'\r\n }\r\n }\r\n };\r\n return braintree.hostedFields.create(options);\r\n })\r\n .then(hostedFieldsInstance => {\r\n this.setState({ fields: hostedFieldsInstance.getState() });\r\n this.props.setMainCTA(() => this.submitPayment(this.state.hostedFieldsInstance.getState()));\r\n this.props.finishedPaymentLoadingAnimation();\r\n\r\n hostedFieldsInstance.on('inputSubmitRequest', event => {\r\n this.submitPayment(event);\r\n });\r\n hostedFieldsInstance.on('validityChange', event => {\r\n this.checkFormValidity(event);\r\n });\r\n hostedFieldsInstance.on('focus', event => {\r\n let container = event.fields[event.emittedBy].container;\r\n container.scrollIntoView({\r\n block: 'center',\r\n inline: 'nearest'\r\n });\r\n });\r\n\r\n this.setState({\r\n hostedFieldsInstance\r\n });\r\n })\r\n .catch(function (err) {\r\n console.log('Error.', err);\r\n });\r\n }\r\n\r\n handleEmailChange(e) {\r\n const emailAddress = e.target.value.trim();\r\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@(([[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n let emailAddressProps = this.state.emailAddressProps;\r\n let displayInvalidFields = this.state.displayInvalidFields;\r\n if (re.test(emailAddress) === true) {\r\n emailAddressProps.isInvalid = false;\r\n emailAddressProps.isEmpty = false;\r\n displayInvalidFields.email = false;\r\n }\r\n this.setState({\r\n emailAddress: e.target.value.trim(),\r\n emailAddressProps,\r\n displayInvalidFields\r\n });\r\n }\r\n\r\n handleEmailKeyPress(e) {\r\n if (e.key === 'Enter') {\r\n this.submitPayment(this.state.hostedFieldsInstance.getState());\r\n }\r\n }\r\n\r\n handleFocus = e => {\r\n var element = e.target;\r\n element.scrollIntoView({\r\n block: 'center',\r\n inline: 'nearest'\r\n });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n {(!this.props.customer ||\r\n !this.props.customer.emailAddress ||\r\n !this.props.customer.token) && (\r\n
    \r\n \r\n
    \r\n this.handleEmailChange(e)}\r\n onKeyDown={e => this.handleEmailKeyPress(e)}\r\n onFocus={e => this.handleFocus(e)}\r\n defaultValue={\r\n !!this.props.socialCustomer\r\n ? this.props.socialCustomer.emailAddress\r\n : ''\r\n }\r\n maxLength=\"100\"\r\n name=\"email\"\r\n autoComplete=\"on\"\r\n >\r\n
    \r\n {this.state.displayInvalidFields.email === true &&\r\n this.state.emailAddressProps.isEmpty === true && (\r\n

    Email address required

    \r\n )}\r\n {this.state.displayInvalidFields.email === true &&\r\n this.state.emailAddressProps.isEmpty === false &&\r\n this.state.emailAddressProps.isInvalid === true && (\r\n

    Email not valid

    \r\n )}\r\n
    \r\n )}\r\n\r\n \r\n
    \r\n
    \r\n\r\n {this.state.displayInvalidFields.creditCard === true &&\r\n !!this.state.fields.number &&\r\n this.state.fields.number.isValid === false &&\r\n this.state.fields.number.isEmpty === false && (\r\n

    Card number not valid

    \r\n )}\r\n {this.state.displayInvalidFields.creditCard === true &&\r\n !!this.state.fields.number &&\r\n this.state.fields.number.isEmpty === true && (\r\n

    Card number required

    \r\n )}\r\n\r\n \r\n
    \r\n\r\n {this.state.displayInvalidFields.cvv === true &&\r\n !!this.state.fields.cvv &&\r\n this.state.fields.cvv.isValid === false &&\r\n this.state.fields.cvv.isEmpty === false && (\r\n

    CVV not valid

    \r\n )}\r\n {this.state.displayInvalidFields.cvv === true &&\r\n !!this.state.fields.cvv &&\r\n this.state.fields.cvv.isEmpty === true && (\r\n

    CVV required

    \r\n )}\r\n\r\n \r\n
    \r\n\r\n {this.state.displayInvalidFields.expiry === true &&\r\n !!this.state.fields.expirationDate &&\r\n this.state.fields.expirationDate.isValid === false &&\r\n this.state.fields.expirationDate.isEmpty === false && (\r\n

    Expiration date not valid

    \r\n )}\r\n {this.state.displayInvalidFields.expiry === true &&\r\n !!this.state.fields.expirationDate &&\r\n this.state.fields.expirationDate.isEmpty === true && (\r\n

    Expiration date required

    \r\n )}\r\n {!!this.props.customer && !!this.props.customer.id ? (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n ) : null}\r\n {/* Pretty sure this \"pay-button\" div is defunct now */}\r\n
    \r\n \r\n \r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport { getCsrfToken } from '../helpers/GetCsrfToken';\r\n\r\nconst braintree = require('braintree-web');\r\n\r\nexport default class PayByVault extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n paymentMethods: null,\r\n vaultManagerInstance: null\r\n };\r\n }\r\n\r\n getVaultManagerCards() {\r\n braintree.vaultManager\r\n .create({\r\n authorization: this.props.clientToken,\r\n paymentMethods: null\r\n })\r\n .then(vaultManagerInstance => {\r\n this.setState({ vaultManagerInstance });\r\n vaultManagerInstance.fetchPaymentMethods((err, paymentMethods) => {\r\n this.setState({ paymentMethods });\r\n });\r\n });\r\n }\r\n\r\n openCancelCardModal(index) {\r\n\r\n const deleteCardCallback = () => this.deleteCard(index);\r\n this.props.setMainModalCTA(deleteCardCallback);\r\n\r\n const title = 'Delete card?';\r\n const message = 'Are you sure you want to proceed?';\r\n const mainCTAText = 'Yes';\r\n const secondaryCTAText = 'No';\r\n this.props.setupMainModal({ title, message, mainCTAText, secondaryCTAText });\r\n this.props.enableMainModal();\r\n }\r\n\r\n openUseSavedCardModal(payload) {\r\n const payWithCardCallback = payload => {\r\n this.payWithPayload(payload);\r\n };\r\n this.props.setMainModalCTA(() => payWithCardCallback(payload));\r\n\r\n const title = 'Pay using this card?';\r\n const message = 'Confirm that you will use this card to pay';\r\n const mainCTAText = 'Pay';\r\n const secondaryCTAText = 'Cancel';\r\n this.props.setupMainModal({ title, message, mainCTAText, secondaryCTAText });\r\n this.props.enableMainModal();\r\n }\r\n\r\n componentDidMount() {\r\n this.getVaultManagerCards();\r\n }\r\n\r\n async postPayment(payload, hostedFieldsInstance) {\r\n const response = await fetch(`api/Braintree/Pay`, {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: this.props.generatePaymentBody(payload)\r\n })\r\n let data;\r\n try {\r\n data = await response.json();\r\n } catch (err) {\r\n console.error(err)\r\n this.props.submitPaymentFail();\r\n }\r\n if (data.success === true) {\r\n this.state.vaultManagerInstance.teardown(function (teardownErr) {\r\n if (teardownErr) console.error('Could not tear down the Hosted Fields form!');\r\n });\r\n this.props.paymentSuccessful(data);\r\n } else {\r\n this.props.submitPaymentFail(data.reason);\r\n }\r\n }\r\n\r\n payWithPayload(payload) {\r\n this.props.submitPayment();\r\n\r\n var threeDSecureParameters = {\r\n amount: this.props.grandTotal,\r\n nonce: payload.nonce,\r\n bin: payload.details.bin,\r\n email: this.props.customer\r\n ? this.props.customer.emailAddress\r\n : null,\r\n onLookupComplete: (data, next) => {\r\n // use `data` here, then call `next()`\r\n next();\r\n }\r\n };\r\n\r\n let threeDSecure;\r\n\r\n braintree.client\r\n .create({\r\n authorization: this.props.clientToken\r\n })\r\n .then(clientInstance => {\r\n return braintree.threeDSecure.create({\r\n version: '2-inline-iframe', // Will use 3DS 2 whenever possible\r\n client: clientInstance\r\n });\r\n })\r\n .then(threeDSecureInstance => {\r\n threeDSecure = threeDSecureInstance;\r\n const payByCardContainer = document.getElementById(\r\n 'pay-by-card-container'\r\n );\r\n threeDSecure.on('authentication-iframe-available', (event, next) => {\r\n this.props.pausePaymentLoadingAnimation();\r\n payByCardContainer.appendChild(event.element);\r\n event.element.className = 'three-d-secure-container';\r\n next();\r\n });\r\n threeDSecure\r\n .verifyCard(threeDSecureParameters)\r\n .then(async response => {\r\n this.props.unpausePaymentLoadingAnimation();\r\n threeDSecure.teardown();\r\n var threeDSecureElem = document.getElementsByClassName(\r\n 'three-d-secure-container'\r\n )[0];\r\n if (!!threeDSecureElem) {\r\n payByCardContainer.removeChild(threeDSecureElem);\r\n }\r\n await this.postPayment(response, threeDSecureInstance);\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n this.props.unpausePaymentLoadingAnimation();\r\n threeDSecure.teardown();\r\n var threeDSecureElem = document.getElementsByClassName(\r\n 'three-d-secure-container'\r\n )[0];\r\n if (!!threeDSecureElem) {\r\n payByCardContainer.removeChild(threeDSecureElem);\r\n }\r\n this.props.submitPaymentFail();\r\n // Handle error\r\n });\r\n })\r\n .catch(err => {\r\n console.log(err);\r\n this.props.submitPaymentFail();\r\n // Handle component creation error\r\n });\r\n }\r\n\r\n deleteCard(index) {\r\n\r\n fetch('api/Braintree/RemoveVaultedCard', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify({\r\n Index: index,\r\n VaultId: !!this.props.customer && this.props.customer.vaultId,\r\n CustomerId: !!this.props.customer && this.props.customer.id,\r\n RestaurantId: this.props.restaurant.id\r\n })\r\n })\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.success === true) {\r\n this.getVaultManagerCards();\r\n } else {\r\n // ?\r\n }\r\n })\r\n .catch(err => {\r\n console.log(err);\r\n });\r\n }\r\n\r\n render() {\r\n\r\n const paymentMethods =\r\n this.state.paymentMethods &&\r\n this.state.paymentMethods.map((paymentMethod, index) => {\r\n return (\r\n
    \r\n {/*
    this.payWithPayload(paymentMethod.nonce)}>{paymentMethod.details.cardType} ****{paymentMethod.details.lastFour}
    */}\r\n this.openUseSavedCardModal(paymentMethod, index)}\r\n >\r\n {paymentMethod.details.cardType} ****\r\n {paymentMethod.details.lastFour}\r\n
    \r\n {/*
    { this.deleteCard(index) }}>X
    */}\r\n this.openCancelCardModal(index)}\r\n >\r\n X\r\n \r\n \r\n );\r\n });\r\n if (!!paymentMethods && paymentMethods.length > 0) {\r\n return (\r\n
    \r\n

    Saved Cards

    \r\n {paymentMethods}\r\n
    \r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nimport { getCsrfToken } from '../helpers/GetCsrfToken';\r\nconst paypal = require('paypal-checkout');\r\nconst braintree = require('braintree-web');\r\n\r\nexport default class PayByPaypal extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n paymentFailed: false\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const { currency, language } = this.props.getCurrency();\r\n braintree.client\r\n .create({\r\n authorization: this.props.clientToken\r\n })\r\n .then(clientInstance => {\r\n // Create a PayPal Checkout component.\r\n return braintree.paypalCheckout.create({\r\n client: clientInstance\r\n });\r\n })\r\n .then(paypalCheckoutInstance => {\r\n // Set up PayPal with the checkout.js library\r\n return paypal.Button.render(\r\n {\r\n env: this.props.environment,\r\n style: {\r\n size: 'responsive',\r\n height: 40,\r\n width: 'inherit',\r\n color: 'gold',\r\n shape: 'rect',\r\n label: 'checkout',\r\n tagline: 'false'\r\n },\r\n\r\n payment: () => {\r\n return paypalCheckoutInstance.createPayment({\r\n flow: 'checkout', // Required\r\n amount: this.props.grandTotal, // Required\r\n currency: currency, // Required\r\n enableShippingAddress: false,\r\n shippingAddressEditable: false,\r\n landingPageType: 'billing',\r\n locale: language\r\n });\r\n },\r\n\r\n onAuthorize: (data, actions) => {\r\n this.props.submitPayment();\r\n let email = \"\";\r\n return paypalCheckoutInstance\r\n .tokenizePayment(data)\r\n .then(payload => {\r\n email = payload.details.email;\r\n fetch('api/Braintree/Pay', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: this.props.generatePaymentBody(payload, email)\r\n })\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.success === true) {\r\n this.props.storeCustomerEmail(email);\r\n this.props.paymentSuccessful(data);\r\n } else {\r\n console.log(data.reason);\r\n this.props.submitPaymentFail();\r\n }\r\n })\r\n .catch(err => {\r\n console.log(err);\r\n this.props.submitPaymentFail();\r\n });\r\n });\r\n },\r\n\r\n onCancel: data => {\r\n console.log(\r\n 'checkout.js payment cancelled',\r\n JSON.stringify(data, 0, 2)\r\n );\r\n },\r\n\r\n onError: err => {\r\n console.error('checkout.js error', err);\r\n }\r\n },\r\n '#paypal-button'\r\n );\r\n // return (null)\r\n })\r\n .then(() => {\r\n // The PayPal button will be rendered in an html element with the id\r\n // `paypal-button`. This will be called when the PayPal button\r\n // is set up and ready to be used.\r\n })\r\n .catch(err => {\r\n console.error(err);\r\n // Handle component creation error\r\n });\r\n }\r\n\r\n render() {\r\n // const formValid = this.state.formValid;\r\n return (\r\n \r\n
    \r\n \r\n );\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nimport braintree from 'braintree-web';\r\n\r\nimport { getCsrfToken } from '../helpers/GetCsrfToken';\r\n\r\nexport default class extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n canMakePaymentsWithActiveCard: false,\r\n finishedLoadingApplePay: false\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const ApplePaySession = window.ApplePaySession;\r\n if (\r\n !!window.ApplePaySession &&\r\n ApplePaySession.supportsVersion(3) &&\r\n ApplePaySession.canMakePayments()\r\n ) {\r\n // This device supports version 3 of Apple Pay.\r\n }\r\n if (!ApplePaySession) {\r\n console.error('This device does not support Apple Pay');\r\n }\r\n\r\n if (!ApplePaySession.canMakePayments()) {\r\n console.error('This device is not capable of making Apple Pay payments');\r\n }\r\n\r\n braintree.client\r\n .create({\r\n authorization: this.props.clientToken\r\n })\r\n .then(clientInstance => {\r\n return braintree.applePay.create({\r\n client: clientInstance\r\n });\r\n })\r\n .then(applePayInstance => {\r\n // Alternatively, check if the device has an Apple Pay card available.\r\n // You can do this if your checkout flow defaults to Apple Pay\r\n // or if you are displaying Apple Pay buttons on a product detail page.\r\n\r\n // Use your Apple Pay merchant identifier\r\n // to check if payments can be made.\r\n return ApplePaySession.canMakePaymentsWithActiveCard(\r\n applePayInstance.merchantIdentifier\r\n ).then(canMakePaymentsWithActiveCard => {\r\n // Set up Apple Pay buttons\r\n this.setState({\r\n canMakePaymentsWithActiveCard: true,\r\n finishedLoadingApplePay: true\r\n });\r\n var paymentRequest = applePayInstance.createPaymentRequest({\r\n total: {\r\n label: 'Pizza Express',\r\n amount: this.props.grandTotal\r\n },\r\n requiredShippingContactFields: ['email'],\r\n\r\n // We recommend collecting billing address information, at minimum\r\n // billing postal code, and passing that billing postal code with\r\n // all Apple Pay transactions as a best practice.\r\n requiredBillingContactFields: ['postalAddress']\r\n }); \r\n\r\n this.paymentRequest = paymentRequest;\r\n\r\n const button = document.getElementById('apple-pay-button');\r\n\r\n button.addEventListener('click', event => {\r\n event.preventDefault();\r\n var session = new ApplePaySession(3, paymentRequest);\r\n\r\n session.onvalidatemerchant = event => {\r\n applePayInstance\r\n .performValidation({\r\n validationURL: event.validationURL,\r\n displayName: 'Pay at Table'\r\n })\r\n .then(merchantSession => {\r\n session.completeMerchantValidation(merchantSession);\r\n })\r\n .catch(validationErr => {\r\n // You should show an error to the user, e.g. 'Apple Pay failed to load.'\r\n console.error('Error validating merchant:', validationErr);\r\n session.abort();\r\n });\r\n };\r\n let email = \"\";\r\n session.onpaymentauthorized = event => {\r\n this.props.submitPayment();\r\n email = event.payment.shippingContact.emailAddress;\r\n applePayInstance\r\n .tokenize({\r\n token: event.payment.token\r\n })\r\n .then(payload => {\r\n fetch('api/Braintree/Pay', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: this.props.generatePaymentBody(payload, email)\r\n })\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.success === true) {\r\n this.props.storeCustomerEmail(email);\r\n this.props.paymentSuccessful(data);\r\n } else {\r\n this.props.submitPaymentFail();\r\n }\r\n })\r\n .catch(err => {\r\n console.log(err);\r\n this.props.submitPaymentFail();\r\n });\r\n\r\n // After you have transacted with the payload.nonce,\r\n // call `completePayment` to dismiss the Apple Pay sheet.\r\n session.completePayment(ApplePaySession.STATUS_SUCCESS);\r\n })\r\n .catch(tokenizeErr => {\r\n console.error('Error tokenizing Apple Pay:', tokenizeErr);\r\n session.completePayment(ApplePaySession.STATUS_FAILURE);\r\n });\r\n };\r\n\r\n session.begin();\r\n });\r\n });\r\n })\r\n .catch(err => {\r\n this.setState({\r\n canMakePaymentsWithActiveCard: false,\r\n finishedLoadingApplePay: true\r\n });\r\n // Handle error\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n {this.state.finishedLoadingApplePay === true &&\r\n this.state.canMakePaymentsWithActiveCard === false && (\r\n
    \r\n

    \r\n Your browser or device does not support Apple Pay on the web.\r\n

    \r\n
    \r\n )}\r\n \r\n );\r\n }\r\n}\r\n","export default (props) => {\r\n return props.render\r\n}","// Brand: PizzaExpress\r\n// Flow: PreOrder\r\n\r\nimport React from 'react';\r\n\r\nimport withAppState from '../../../mobx/withAppState';\r\n\r\nimport ContentPage from \"../../../components/ContentPage\"\r\n\r\nconst ContentPageWrapper = (props) => {\r\n const { refreshButtonLoading } = props;\r\n const showEatOutToHelpOutPage = props.showEatOutToHelpOutPage();\r\n if (!showEatOutToHelpOutPage) {\r\n props.useBufferedAction();\r\n }\r\n\r\n const render = (\r\n
    \r\n

    You are eligible for the Government’s Discount Scheme, please ask a team member to apply your discount.

    \r\n

    Once your discount has been added, press ‘refresh’ on your bill to update the total

    \r\n \r\n
    \r\n )\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(ContentPageWrapper,\r\n {\r\n mobXProps: ({\r\n refreshButtonLoading,\r\n }) => ({\r\n refreshButtonLoading,\r\n }),\r\n mobXActions: ({\r\n showEatOutToHelpOutPage,\r\n useBufferedAction,\r\n refreshTable,\r\n }) => ({\r\n showEatOutToHelpOutPage,\r\n useBufferedAction,\r\n refreshTable,\r\n })\r\n }\r\n);","import React from 'react';\r\n\r\nimport braintree from 'braintree-web';\r\nimport { getCsrfToken } from '../helpers/GetCsrfToken';\r\nimport ContentPageWrapper from '../wrappers/PizzaExpress/PreOrder/ContentPageWrapper';\r\n\r\nexport default class extends React.Component {\r\n async componentDidMount() {\r\n const { clientToken } = this.props;\r\n const { currency } = this.props.getCurrency();\r\n if (!clientToken) return;\r\n\r\n const google = window.google;\r\n\r\n \r\n\r\n var paymentsClient = new google.payments.api.PaymentsClient({\r\n environment: this.props.environment\r\n });\r\n\r\n const clientInstance = await braintree.client\r\n .create({\r\n authorization: clientToken\r\n });\r\n\r\n const googlePaymentInstance = await braintree.googlePayment.create({\r\n client: clientInstance,\r\n googlePayVersion: 2,\r\n googleMerchantId: this.props.merchantId\r\n });\r\n\r\n\r\n const button = paymentsClient.createButton({\r\n onClick: () => {\r\n /* Click handler */\r\n }\r\n });\r\n document.getElementById('button-container').appendChild(button);\r\n\r\n button.addEventListener('click', async event => {\r\n event.preventDefault();\r\n\r\n var paymentDataRequest = googlePaymentInstance.createPaymentDataRequest(\r\n {\r\n transactionInfo: {\r\n currencyCode: currency,\r\n totalPriceStatus: 'FINAL',\r\n totalPrice: this.props.grandTotal\r\n },\r\n emailRequired: true,\r\n shippingAddressRequired: true\r\n }\r\n );\r\n\r\n paymentsClient.isReadyToPay({\r\n // see https://developers.google.com/pay/api/web/reference/object#IsReadyToPayRequest\r\n apiVersion: 2,\r\n apiVersionMinor: 0,\r\n allowedPaymentMethods: googlePaymentInstance.createPaymentDataRequest()\r\n .allowedPaymentMethods,\r\n existingPaymentMethodRequired: false // Optional\r\n });\r\n\r\n let email = \"\";\r\n paymentsClient\r\n .loadPaymentData(paymentDataRequest)\r\n .then('api/Braintree/Pay')\r\n .then(async paymentData => {\r\n this.props.submitPayment();\r\n email = paymentData.email;\r\n return googlePaymentInstance.parseResponse(paymentData);\r\n })\r\n .then(payload => {\r\n\r\n const payments = async (payData) => {\r\n \r\n let dataresponse = await fetch('api/Braintree/Pay', {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: this.props.generatePaymentBody(payData, email)\r\n });\r\n \r\n let data = await dataresponse.json();\r\n if (data.success === true) {\r\n this.props.storeCustomerEmail(email);\r\n this.props.paymentSuccessful(data);\r\n } else {\r\n this.props.submitPaymentFail();\r\n }\r\n \r\n }\r\n if (payload.details.isNetworkTokenized === false) { // eligible for 3DS Verification \r\n\r\n var threeDSecureParameters = {\r\n amount: this.props.grandTotal,\r\n nonce: payload.nonce,\r\n email: (this.props.customer\r\n ? this.props.customer.emailAddress\r\n : email),\r\n onLookupComplete: (data, next) => {\r\n // use `data` here, then call `next()`\r\n next();\r\n }\r\n };\r\n\r\n braintree.threeDSecure.create({\r\n version: '2', // Will use 3DS 2 whenever possible\r\n client: clientInstance\r\n }).then(async threeDSecureInstance => {\r\n let threeDSecure = threeDSecureInstance;\r\n const payByCardContainer = document.getElementById(\r\n 'pay-by-card-container'\r\n );\r\n\r\n threeDSecure.on(\r\n 'authentication-iframe-available',\r\n async (event, next) => {\r\n this.props.pausePaymentLoadingAnimation();\r\n payByCardContainer.appendChild(event.element);\r\n event.element.className = 'three-d-secure-container';\r\n next();\r\n }\r\n );\r\n\r\n try {\r\n let response = await threeDSecure\r\n .verifyCard(threeDSecureParameters)\r\n this.props.unpausePaymentLoadingAnimation();\r\n threeDSecure.teardown();\r\n var threeDSecureElem = document.getElementsByClassName(\r\n 'three-d-secure-container'\r\n )[0];\r\n if (!!threeDSecureElem) {\r\n payByCardContainer.removeChild(threeDSecureElem);\r\n }\r\n\r\n payments(response);\r\n\r\n } catch (e) {\r\n console.log(e);\r\n }\r\n });\r\n } else {\r\n //console.log(payload);\r\n //payload.threeDSecureInfo.liabilityShiftPossible = false;\r\n //console.log(payload);\r\n payments(payload);\r\n }\r\n })\r\n .catch(err => {\r\n console.log(err);\r\n this.props.submitPaymentFail();\r\n });\r\n });\r\n }\r\n\r\n render() {\r\n const { clientToken } = this.props;\r\n return !clientToken\r\n ? (null)\r\n : (\r\n \r\n
    \r\n \r\n );\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\n\r\nimport PayByCard from './PayByCard';\r\nimport PayByVault from './PayByVault';\r\nimport PayByPaypal from './PayByPaypal';\r\nimport PayByApplePay from './PayByApplePay';\r\nimport PayByGooglePay from './PayByGooglePay';\r\n\r\nimport Loading from './Loading';\r\n\r\nclass Pay extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n canUseApplePay: false,\r\n clientToken: null,\r\n googlePayEnabled: true,\r\n paypalEnabled: true,\r\n googleEnvironment: null,\r\n googleMerchantId: null,\r\n paypalEnvironment: null,\r\n loading: false\r\n };\r\n this.optInCheckbox = React.createRef();\r\n this.props.startedLoadingPaymentForm();\r\n }\r\n\r\n componentWillUnmount() {\r\n this.props.submitPaymentCancel();\r\n }\r\n\r\n async componentDidMount() {\r\n const ApplePaySession = window.ApplePaySession;\r\n if (\r\n !!ApplePaySession &&\r\n ApplePaySession.supportsVersion(3) &&\r\n ApplePaySession.canMakePayments()\r\n ) {\r\n this.setState({ canUseApplePay: true });\r\n }\r\n\r\n var vaultId = '';\r\n if (!!this.props.customer && !!this.props.customer.vaultId)\r\n vaultId = this.props.customer.vaultId;\r\n\r\n const { id: restaurantId } = this.props.restaurant;\r\n console.log(\"restaurant Id = \" + restaurantId + \" vault id = \" + vaultId)\r\n const response = await fetch(`api/Braintree/GetClientToken/${restaurantId}/${vaultId}`);\r\n let data;\r\n try {\r\n data = await response.json();\r\n const { clientToken, paypalEnabled, googlePayEnabled, googleEnvironment, googleMerchantId, paypalEnvironment } = data;\r\n\r\n this.setState({\r\n clientToken: clientToken,\r\n paypalEnabled: paypalEnabled,\r\n googlePayEnabled: googlePayEnabled,\r\n googleEnvironment: googleEnvironment,\r\n googleMerchantId: googleMerchantId,\r\n paypalEnvironment: paypalEnvironment\r\n });\r\n } catch (err) {\r\n this.props.handleNoClientToken();\r\n }\r\n }\r\n\r\n componentDidUpdate() {\r\n this.updateMainCTAText();\r\n }\r\n\r\n updateMainCTAText() {\r\n let mainCTAText = `Pay ${this.props.getCurrency().symbol + (\r\n parseFloat(this.props.billTotal) +\r\n parseFloat(this.props.gratuityTotal || 0)\r\n ).toFixed(2)}`;\r\n this.props.setMainCTAText(mainCTAText);\r\n }\r\n\r\n clickedCheckoutOptIn() {\r\n let checked = this.optInCheckbox.current.checked;\r\n this.props.setOptingInAtCheckout(checked);\r\n }\r\n\r\n clickedCheckoutOptOut() {\r\n let checked = this.optInCheckbox.current.checked;\r\n this.props.setOptedOutAtCheckout(checked)\r\n }\r\n\r\n render() {\r\n\r\n if (!!this.state.clientToken) {\r\n const paymentFailReason = !!this.props.paymentFailReason\r\n ? this.props.paymentFailReason\r\n : 'Payment failed, please try again.';\r\n\r\n return (\r\n
    \r\n {this.props.paymentLoadingAnimation === true && (\r\n
    \r\n \r\n
    \r\n )}\r\n {this.props.paymentFailed === true && (\r\n

    {paymentFailReason}

    \r\n )}\r\n\r\n {(this.state.canUseApplePay || this.state.googlePayEnabled || this.state.paypalEnabled) ? (\r\n \r\n \r\n EXPRESS CHECKOUT\r\n \r\n {this.state.paypalEnabled && (\r\n )}\r\n\r\n {this.state.canUseApplePay && (\r\n \r\n )}\r\n {this.state.googlePayEnabled &&\r\n \r\n }\r\n {!!this.props.customer &&\r\n this.props.customer.vaultId && (\r\n \r\n )}\r\n
    \r\n ) : null}\r\n\r\n <>\r\n \r\n Pay by card\r\n \r\n \r\n \r\n\r\n {this.props.submittingPayment === false &&\r\n ((!!this.props.customer && !!this.props.customer.id) ===\r\n false ||\r\n (!!this.props.customer &&\r\n !!this.props.customer.emailOptIn) === false) ? (\r\n
    \r\n
    \r\n {!this.props.getApplySoftOptIn() &&\r\n this.clickedCheckoutOptIn()}\r\n />\r\n }\r\n {this.props.getApplySoftOptIn() &&\r\n this.clickedCheckoutOptOut()}\r\n />\r\n }\r\n
    \r\n \r\n
    \r\n ) : null}\r\n \r\n );\r\n } else {\r\n return (\r\n
    \r\n \r\n
    \r\n );\r\n }\r\n }\r\n}\r\n\r\nexport default withAppState(Pay,\r\n {\r\n mobXProps: ({\r\n customer,\r\n socialCustomer,\r\n billTotal,\r\n gratuityTotal,\r\n paymentFailReason,\r\n paymentLoadingAnimation,\r\n paymentFailed,\r\n submittingPayment,\r\n grandTotal,\r\n restaurant,\r\n }) => ({\r\n customer,\r\n socialCustomer,\r\n billTotal,\r\n gratuityTotal,\r\n paymentFailReason,\r\n paymentLoadingAnimation,\r\n paymentFailed,\r\n submittingPayment,\r\n grandTotal,\r\n restaurant,\r\n }),\r\n mobXActions: ({\r\n startedLoadingPaymentForm,\r\n submitPayment,\r\n submitPaymentCancel,\r\n submitPaymentFail,\r\n setErrorModalMessage,\r\n setMainCTAText,\r\n setMainCTA,\r\n setOptingInAtCheckout,\r\n setOptedOutAtCheckout,\r\n termAndConditionsModal,\r\n privacyPolicyModal,\r\n generatePaymentBody,\r\n storeCustomerEmail,\r\n paymentSuccessful,\r\n storeVaultId,\r\n pausePaymentLoadingAnimation,\r\n unpausePaymentLoadingAnimation,\r\n finishedPaymentLoadingAnimation,\r\n setMainModalCTA,\r\n setupMainModal,\r\n enableMainModal,\r\n getCurrency,\r\n getCompanyName,\r\n getReturnHref,\r\n getApplySoftOptIn\r\n }) => ({\r\n startedLoadingPaymentForm,\r\n submitPayment,\r\n submitPaymentCancel,\r\n submitPaymentFail,\r\n setErrorModalMessage,\r\n setMainCTAText,\r\n setMainCTA,\r\n setOptingInAtCheckout,\r\n setOptedOutAtCheckout,\r\n termAndConditionsModal,\r\n privacyPolicyModal,\r\n generatePaymentBody,\r\n storeCustomerEmail,\r\n paymentSuccessful,\r\n storeVaultId,\r\n pausePaymentLoadingAnimation,\r\n unpausePaymentLoadingAnimation,\r\n finishedPaymentLoadingAnimation,\r\n setMainModalCTA,\r\n setupMainModal,\r\n enableMainModal,\r\n getCurrency,\r\n getCompanyName,\r\n getReturnHref,\r\n getApplySoftOptIn\r\n })\r\n }\r\n);\r\n","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport Pay from '../../../components/Pay';\r\n\r\nconst MiPayAtTablePayWrapper = props => {\r\n const handleNoClientToken = () => {\r\n props.popStep();\r\n props.setErrorModalMessage(\r\n 'Could not contact payment provider.'\r\n );\r\n }\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(MiPayAtTablePayWrapper,\r\n {\r\n mobXActions: ({\r\n popStep,\r\n goToStep,\r\n setErrorModalMessage,\r\n }) => ({\r\n popStep,\r\n goToStep,\r\n setErrorModalMessage,\r\n })\r\n }\r\n);","import React from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState'\r\n\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faFacebookF, faTwitter, faInstagram } from '@fortawesome/free-brands-svg-icons';\r\n\r\nclass PaymentConfirmation extends React.Component {\r\n \r\n render() {\r\n const facebookIcon = \r\n const TwitterIcon = \r\n const InstagramIcon = \r\n\r\n const { bill: bills } = this.props;\r\n const bill = bills && bills.length > 0 ? bills[0] : null;\r\n\r\n const { outstandingBalance } = bill;\r\n return (\r\n
    \r\n
    \r\n

    {outstandingBalance > 0 ? `${this.props.getCurrency().symbol + this.props.billTotalWhenPaying.toFixed(2)} has been paid towards your bill. There is ${this.props.getCurrency().symbol + outstandingBalance.toFixed(2)} remaining.` : 'Bill is paid in full, you are free to leave.'}

    \r\n {(!!this.props.customer && !!this.props.customer.emailAddress) &&

    A receipt has been sent to {this.props.customer.emailAddress}.

    }\r\n

    Thank you for your visit.

    \r\n {this.props.canSignup && !this.props.isRegistered &&
    \r\n \r\n
    }\r\n {outstandingBalance > 0 && }\r\n Return to {this.props.companyName}\r\n \r\n {this.props.hasSocialLinks &&\r\n
    \r\n \r\n {TwitterIcon}\r\n \r\n \r\n {facebookIcon}\r\n \r\n \r\n {InstagramIcon}\r\n \r\n
    }\r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(PaymentConfirmation,\r\n {\r\n mobXProps: ({\r\n bill,\r\n billTotalWhenPaying,\r\n customer,\r\n isRegistered,\r\n }) => ({\r\n bill,\r\n billTotalWhenPaying,\r\n customer,\r\n isRegistered,\r\n }),\r\n mobXActions: ({ \r\n getCurrency\r\n }) => ({\r\n getCurrency\r\n })\r\n }\r\n);\r\n","import React from 'react';\r\nimport withAppState from '../../../mobx/withAppState'\r\nimport { Steps } from '../../../lib/constants';\r\nimport PaymentConfirmation from '../../../components/PaymentConfirmation';\r\n\r\nconst MiPayAtTablePaymentConfirmationWrapper = (props) => {\r\n const handleGoToRegister = () => {\r\n props.goToStep(Steps.REGISTER);\r\n props.setPostRegisterAction(() => window.location = \"https://www.pizzaexpress.com/\");\r\n }\r\n\r\n const handleBackToBillsButton = () => {\r\n props.updateBillTotalAndSplit();\r\n props.resetToBillStepPayAtTable();\r\n props.startRefreshBillCycle();\r\n }\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(MiPayAtTablePaymentConfirmationWrapper,\r\n {\r\n mobXActions: ({\r\n goToStep,\r\n setPostRegisterAction,\r\n resetToBillStepPayAtTable,\r\n updateBillTotalAndSplit,\r\n startRefreshBillCycle,\r\n getCanSignup,\r\n getHasSocialLinks,\r\n getCompanyName,\r\n getReturnHref,\r\n getApplySoftOptIn\r\n }) => ({\r\n goToStep,\r\n setPostRegisterAction,\r\n updateBillTotalAndSplit,\r\n resetToBillStepPayAtTable,\r\n startRefreshBillCycle,\r\n getCanSignup,\r\n getHasSocialLinks,\r\n getCompanyName,\r\n getReturnHref,\r\n getApplySoftOptIn\r\n }),\r\n mobXProps: ({\r\n bill,\r\n gratuityTotal,\r\n billTotal,\r\n billTotalWhenPaying\r\n }) => ({\r\n bill,\r\n gratuityTotal,\r\n billTotal,\r\n billTotalWhenPaying\r\n })\r\n }\r\n);","\r\nconst compareItemChoiceItems = (itemChoiceItemsA, itemChoiceItemsB) => {\r\n if (!itemChoiceItemsA && !itemChoiceItemsB) return true;\r\n if (!itemChoiceItemsA || !itemChoiceItemsB) return false;\r\n if (itemChoiceItemsA.length !== itemChoiceItemsB.length) return false;\r\n\r\n return itemChoiceItemsA.every(itemChoiceItemA => {\r\n const { id, qty, itemChoices: itemChoicesA } = itemChoiceItemA\r\n const itemChoiceItemB = itemChoiceItemsB.find(i => i.id === id);\r\n \r\n if (!itemChoiceItemB) return false;\r\n if (qty !== itemChoiceItemB.qty) return false;\r\n\r\n const { itemChoices: itemChoicesB } = itemChoiceItemB\r\n return compareItemChoices(itemChoicesA, itemChoicesB);\r\n })\r\n}\r\n\r\nconst compareItemChoices = (itemChoicesA, itemChoicesB) => {\r\n if (!itemChoicesA && !itemChoicesB) return true;\r\n if (!itemChoicesA || !itemChoicesB) return false\r\n if (itemChoicesA.length !== itemChoicesB.length) return false;\r\n\r\n return itemChoicesA.every(itemChoiceA => {\r\n const { id, itemChoiceItems: itemChoiceItemsA } = itemChoiceA\r\n const itemChoiceB = itemChoicesB.find(i => i.id === id);\r\n if (!itemChoiceB) return false;\r\n const { itemChoiceItems: itemChoiceItemsB } = itemChoiceB;\r\n return compareItemChoiceItems(itemChoiceItemsA, itemChoiceItemsB);\r\n })\r\n}\r\n\r\nexport default compareItemChoices","import React, { useState, useEffect } from 'react';\r\n\r\nexport default function useContainerDimensions(myRef) {\r\n const getDimensions = () => ({\r\n width: myRef.current.offsetWidth,\r\n height: myRef.current.offsetHeight\r\n })\r\n \r\n const [dimensions, setDimensions] = useState({ width: 0, height: 0 })\r\n \r\n useEffect(() => {\r\n const handleResize = () => {\r\n setDimensions(getDimensions())\r\n }\r\n \r\n if (myRef.current) {\r\n setDimensions(getDimensions())\r\n }\r\n \r\n window.addEventListener(\"resize\", handleResize)\r\n \r\n return () => {\r\n window.removeEventListener(\"resize\", handleResize)\r\n }\r\n }, [myRef])\r\n \r\n return dimensions;\r\n };","import React, {useState} from 'react';\r\nimport { Steps } from '../lib/constants';\r\nimport withAppState from '../mobx/withAppState';\r\nimport chevronLeftPlum from '../assets/img/icons/chevronLeftPlum.svg';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faChevronLeft, faTimes } from '@fortawesome/free-solid-svg-icons';\r\nconst DigitalMenuHeader = props => {\r\n const { dietaryFilterCta, dietaryFilter, restaurant, appPlatform, popStep, activeStep, previousSteps } = props;\r\n const arrowLeft = ;\r\n\r\n let title = null;\r\n let copy = null;\r\n let linkText = null;\r\n let linkHref = null;\r\n let headerMessage = null;\r\n let link = \"https://www.pizzaexpress.com/-/media/Files/PDFs/Event Menus/Event_Menu_\";\r\n\r\n\r\n switch (props.activeStep) {\r\n case Steps.RESTAURANT_SEARCH:\r\n if (!props.isCheckInJourney) {\r\n title = 'Menu';\r\n copy = '';\r\n } else {\r\n title = 'Test & Trace Check-in';\r\n copy = `Welcome to everyone's favourite pizzeria. As per government regulations, it is mandatory for all customers to complete test\r\n and trace information whilst dining in our pizzerias. Please continue to enter in your details.`;\r\n }\r\n break;\r\n default:\r\n title = 'Our Menu';\r\n linkText = 'Allergen & Nutritional Information';\r\n linkHref = 'https://www.milano.ie/allergens-and-nutritionals';\r\n headerMessage = restaurant?.headerMessage ?\r\n <>\r\n

    \r\n An update to all our customers\r\n

    \r\n

    \r\n During big events, we offer a shorter menu which helps our kitchens keep up with orders and serve you quickly so you can get to your event on time.\r\n {\" \"}\r\n \r\n Click here\r\n {\" \"}\r\n to view.\r\n

    \r\n \r\n : null;\r\n }\r\n\r\n var buttonDisabled =\r\n previousSteps.length === 0 ||\r\n activeStep === Steps.PAYMENT_CONFIRMATION ||\r\n activeStep === Steps.SPLIT_BILL_NAME;\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n {!!title &&

    {title.toUpperCase()}

    }\r\n {!!copy &&

    {copy}

    }\r\n {!!restaurant &&

    {restaurant.name}

    }\r\n {!!linkText &&

    {linkText}

    }\r\n {!!headerMessage &&

    {headerMessage}

    }\r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default withAppState(DigitalMenuHeader, {\r\n mobXProps: ({ \r\n activeStep, \r\n previousSteps,\r\n isCheckInJourney, \r\n restaurant,\r\n appPlatform, \r\n }) => ({\r\n activeStep,\r\n previousSteps,\r\n isCheckInJourney,\r\n restaurant,\r\n appPlatform,\r\n }),\r\n mobXActions: ({\r\n popStep,\r\n }) => ({\r\n popStep,\r\n })\r\n});\r\n","import React, { createRef, useRef, useEffect, useState, useLayoutEffect } from 'react';\r\nimport useContainerDimensions from '../helpers/useContainerDimensions';\r\nimport DigitalMenuHeader from './DigitalMenuHeader';\r\nimport withAppState from '../mobx/withAppState';\r\nimport filterIcon from '../assets/img/filter-icon.svg';\r\n\r\nconst NavButton = (props) => {\r\n const { selected, children } = props;\r\n return (\r\n
    \r\n {children}\r\n
    \r\n )\r\n}\r\n\r\nconst MenuList = (props) => {\r\n const { list, scrollItemIndex } = props;\r\n const [selectedScrollItemPos, setSelectedScrollItemPos ] = useState(scrollItemIndex);\r\n return list.map((item, index) => {\r\n const { name } = item;\r\n if (!item.ref) item.ref = createRef();\r\n if (!item.navRef) item.navRef = createRef();\r\n if (!item.titleRef) item.titleRef = createRef();\r\n\r\n const selected = index === (selectedScrollItemPos || 0);\r\n \r\n return (\r\n \r\n
    {\r\n item.ref.current.scrollIntoView({\r\n block: \"start\",\r\n inline: \"center\"\r\n });\r\n setSelectedScrollItemPos(index);\r\n }\r\n }>\r\n

    {name.toLowerCase()}

    \r\n
    \r\n )\r\n })\r\n}\r\n\r\n\r\nconst NavMenu = props => {\r\n const navCTA = useRef([]);\r\n const { \r\n rootCategories, \r\n menuBanner, \r\n selectedIndex, \r\n setIndex, \r\n displaySubcategories, \r\n scrollItemIndex, \r\n scrollContainer, \r\n scrollWrapper, \r\n dietaryFilterCta,\r\n dietaryFilter,\r\n navMenuContainer,\r\n navMenuWrapper,\r\n setDigitalMenuOffset,\r\n digitalMenuOffsetHeight\r\n } = props;\r\n const filledRootCategories = rootCategories.filter(mc => mc.menuCategories.length !== 0);\r\n\r\n const tabs = filledRootCategories\r\n ? filledRootCategories.map(menuCategory => {\r\n const menuCategoryClass = (menuCategory?.name?.split(' ')[0]?.toLowerCase()) || '';\r\n return (\r\n
    (navCTA.current = [...navCTA.current, menuCategory])} className={`nav-button ${menuCategoryClass}`}>\r\n

    {menuCategory.name}

    \r\n
    \r\n )\r\n }\r\n ) : [];\r\n\r\n const [isOverflowing, setIsOverflowing] = useState(false);\r\n const widthNavMenuContainer = useContainerDimensions(navMenuContainer);\r\n const menuBannerHeight = useContainerDimensions(menuBanner);\r\n\r\n useEffect(() => {\r\n setDigitalMenuOffset(menuBannerHeight.height + 50);\r\n});\r\n\r\n const divStyle = {\r\n backgroundColor: '#331a1f',\r\n height: '32px',\r\n marginTop: '-32px',\r\n top: '0px',\r\n width: '100%',\r\n position: 'absolute',\r\n };\r\n\r\n const getNavigationBarWidth = (navWrapper) => {\r\n let overFlowRightWidth = 0;\r\n if (navWrapper.current != null) {\r\n const lastChild = navWrapper.current.lastChild;\r\n overFlowRightWidth = lastChild.offsetLeft + lastChild.offsetWidth;\r\n if (overFlowRightWidth < widthNavMenuContainer.width) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n };\r\n \r\n useLayoutEffect(() => {\r\n setIsOverflowing(getNavigationBarWidth(navMenuWrapper) || getNavigationBarWidth(scrollContainer));\r\n }, [menuBannerHeight.width]);\r\n\r\n const selectedMenuCategory = filledRootCategories[selectedIndex];\r\n const selectedMenuCategoryList = !selectedMenuCategory || !selectedMenuCategory.menuCategories ? [] : selectedMenuCategory.menuCategories;\r\n\r\n const DietaryFilterIcon = props => {\r\n const { dietaryFilter } = props;\r\n var keys = Object.keys(dietaryFilter);\r\n var filtered = keys.filter(key => {\r\n return dietaryFilter[key];\r\n });\r\n return filtered.length > 0 ? {filtered.length} : null;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n
    1 ? 'nav-menu' : ''}`}>\r\n
    \r\n {dietaryFilterCta && dietaryFilter ? (\r\n
    \r\n \r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n
    \r\n
    \r\n {tabs.map((element, index) => {\r\n const selected = selectedIndex === index;\r\n return (\r\n <>\r\n setIndex(index)}>\r\n {element}\r\n \r\n \r\n );\r\n })}\r\n
    \r\n
    \r\n {selectedMenuCategoryList.length > 1 ? (\r\n
    \r\n \r\n
    \r\n ) : (\r\n ''\r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n};\r\nexport default withAppState(NavMenu, {\r\n mobXProps: ({ \r\n activeStep,\r\n digitalMenuOffsetHeight \r\n }) => ({\r\n activeStep,\r\n digitalMenuOffsetHeight\r\n }),\r\n mobXActions: ({ \r\n setDigitalMenuOffset \r\n }) => ({\r\n setDigitalMenuOffset\r\n }),\r\n});\r\n","import React, { useRef, useState, useEffect, useMemo } from 'react'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons';\r\nimport generic from '../assets/img/generic.jpg';\r\nimport glutenFree from '../assets/img/Icons_16/GF.svg';\r\nimport vegetarian from '../assets/img/Icons_16/Veg.svg';\r\nimport vegan from '../assets/img/Icons_16/Vegan.svg';\r\nimport spicy from '../assets/img/Icons_16/Spicy.svg';\r\nimport extraSpicy from '../assets/img/Icons_16/extraSpicy.svg';\r\nimport ChevronDown from '../assets/img/chevronDown.svg';\r\nimport filigree from '../assets/img/roseFiligreeHeader.svg';\r\n\r\n\r\n\r\nconst MenuCard = props => {\r\n const { categoryIndex, item, culture, categoryType } = props;\r\n const { uiTags = [], name, dietaryAndAllergens, minPrice, image, descriptionInfo } = item;\r\n\r\n const [isExpanded, setIsExpanded] = useState(false);\r\n const [showButton, setShowButton] = useState(false);\r\n\r\n const getCalories = (string) => {\r\n let safetyMeasure = 0\r\n while (string.length > 10 && safetyMeasure < 10) {\r\n let first = 0;\r\n safetyMeasure++\r\n let last = 0;\r\n first = string.indexOf(\"(\", first);\r\n last = string.indexOf(\")\")\r\n\r\n if (first == -1 || last == -1) return null\r\n let phrase = string.slice(first + 1, last)\r\n if (/kcal/.test(phrase)) return phrase\r\n string = string.slice(last + 1);\r\n }\r\n return null\r\n }\r\n\r\n const cardInfo = useMemo(() => {\r\n let description = descriptionInfo.description;\r\n const calories = getCalories(description)\r\n if (!calories) return { calories: null, description }\r\n\r\n description = description.replace(/\\([^()]*\\)/g, '')\r\n description = description.replace(\" .\", \".\");\r\n return { calories, description }\r\n }, [descriptionInfo])\r\n\r\n const textRef = useRef(null)\r\n\r\n const isOverflown = (ref) => {\r\n if (ref.current !== null) {\r\n return setShowButton(ref.current?.offsetHeight < ref.current?.scrollHeight || ref.current?.offsetWidth < ref.current?.scrollWidth);\r\n }\r\n };\r\n\r\n const expand = (e) => {\r\n e.stopPropagation();\r\n setIsExpanded(!isExpanded);\r\n };\r\n\r\n useEffect(() => {\r\n isOverflown(textRef);\r\n }, [item]);\r\n\r\n return (\r\n <>\r\n
    \r\n props.focusItem(item)} className=\"menu-card-inner\">\r\n
    \r\n
    \r\n
    \r\n
    \r\n

    \r\n {name}\r\n

    \r\n
    \r\n
    \r\n {minPrice && (\r\n \r\n

    \r\n \r\n €\r\n {minPrice.toFixed(2)}\r\n \r\n

    \r\n \r\n {uiTags.includes('Glass - HiBal') && }\r\n {uiTags.includes('Glass - Martini') && }\r\n {uiTags.includes('Glass - Rocks') && }\r\n {uiTags.includes('Glass - Wine') && }\r\n {uiTags.includes('Glass - Prosecco') && }\r\n {uiTags.includes('Spicy 1') && (\r\n \r\n \"spicy\"\r\n \r\n )}\r\n {uiTags.includes('Spicy 2') && (\r\n \r\n \"extraspicy\"\r\n \r\n )}\r\n {dietaryAndAllergens && dietaryAndAllergens.includes('Gluten-Free') && (\r\n \r\n \"Gluten-Free\"\r\n \r\n )}\r\n {dietaryAndAllergens && dietaryAndAllergens.includes('Vegan') && (\r\n \r\n \"Vegan\"\r\n \r\n )}\r\n {dietaryAndAllergens && dietaryAndAllergens.includes('Vegetarian') && (\r\n \r\n \"Vegetarian\"\r\n \r\n )}\r\n \r\n
    \r\n )}\r\n {cardInfo?.calories &&

    \r\n {cardInfo?.calories}\r\n

    }\r\n
    \r\n {descriptionInfo.description && (\r\n
    \r\n
    \r\n

    {cardInfo?.description}

    \r\n {descriptionInfo.info &&

    {descriptionInfo.info}

    }\r\n
    \r\n {showButton && (\r\n
    \r\n {isExpanded ? (\r\n \"Logo\"\r\n ) : (\r\n \"Logo\")}\r\n
    \r\n )}\r\n
    \r\n\r\n )}\r\n\r\n\r\n {uiTags.includes('New') || uiTags.includes('Popular') || uiTags.includes('It\\'s Back!') ? (\r\n
    \r\n {uiTags.includes('New') && New}\r\n {uiTags.includes('Popular') && Popular}\r\n {uiTags.includes('It\\'s Back!') && It's Back!}\r\n
    \r\n ) : null}\r\n
    \r\n ,.\\/?\"\\- \\t\\r\\n]+/g, '-')\r\n }`}>\r\n
    \r\n \r\n {uiTags.includes('New') || uiTags.includes('Popular') || uiTags.includes('It\\'s Back!') ? (\r\n
    \r\n {uiTags.includes('New') && New}\r\n {uiTags.includes('Popular') && Popular}\r\n {uiTags.includes('It\\'s Back!') && It's Back!}\r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n \r\n \r\n \r\n {\r\n descriptionInfo.title && (\r\n
    \r\n
    \r\n
    \r\n

    {descriptionInfo.title.toUpperCase()}

    \r\n

    {descriptionInfo.subTitle}

    \r\n
    \r\n
    \r\n
    \r\n )\r\n }\r\n \r\n )\r\n}\r\n\r\nexport default MenuCard","import React from 'react';\r\nimport withAppState from '../mobx/withAppState';\r\n\r\nimport MenuCard from './MenuCard';\r\nimport spinach from '../assets/img/slices/slice3.svg';\r\nimport tomato from '../assets/img/slices/slice4.svg';\r\nimport hand from '../assets/img/slices/slice-and-hand.svg';\r\nimport burst from '../assets/img/slices/burst.svg';\r\nimport star from '../assets/img/slices/star.svg';\r\n\r\n\r\n\r\n\r\nconst renderMenuItems = props => {\r\n const { data, dietaryFilter, filterDiet } = props;\r\n\r\n return data\r\n .filter(item => {\r\n if (!filterDiet) return true;\r\n for (let key in dietaryFilter) {\r\n if (dietaryFilter[key] === true) {\r\n if (item.dietaryAndAllergens.includes(key) === false) return false;\r\n }\r\n }\r\n return true;\r\n })\r\n .map((item, index) => {\r\n return (\r\n \r\n );\r\n });\r\n};\r\n\r\nconst renderMenuCategories = props => {\r\n const { data, culture, categoryType, offsetStyle } = props;\r\n return data.map((category, index) => {\r\n const menuItems =\r\n !category.menuItems || category.menuItems.length === 0\r\n ? null\r\n : renderMenuItems({ focusItem: props.focusItem, data: category.menuItems, categoryIndex: index, culture, categoryType });\r\n\r\n const menuCategories =\r\n !category.menuCategories || !category.menuCategories.length === 0\r\n ? null\r\n : renderMenuCategories({ focusItem: props.focusItem, data: category.menuCategories, culture, categoryType });\r\n\r\n if ((!category.menuItems || category.menuItems.length === 0) && category.menuCategories === null) return null;\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n

    {category.name.toUpperCase()}

    \r\n {category.description &&

    {category.description}

    }\r\n
    \r\n
    \r\n\r\n
    \r\n {menuItems}\r\n {menuCategories}\r\n
    \r\n\r\n {index === props.data.length - 1 &&
    \r\n
    \r\n
    \r\n
    \r\n Adults need around 2000 kcal per day.\r\n
    \r\n
    \r\n
    \r\n
    }\r\n\r\n
    \r\n );\r\n });\r\n};\r\n\r\nconst MenuPages = props => {\r\n const { data, selectedIndex, children, getPizzaCategoryLogoText, culture, digitalMenuOffsetHeight } = props;\r\n\r\n const rootCategories = data.menuCategories.filter(mc => mc.menuCategories.length !== 0) || [];\r\n const childrenArray = !!children && !children.length ? [children] : children;\r\n const rootCategoriesAndChildren = rootCategories.length + childrenArray.length;\r\n\r\n if (selectedIndex >= rootCategoriesAndChildren) return null;\r\n if (selectedIndex >= rootCategories.length) return childrenArray[selectedIndex - rootCategories.length];\r\n\r\n const selectedCategory = rootCategories[selectedIndex];\r\n\r\n const offsetStyle = {\r\n marginTop: -(digitalMenuOffsetHeight - 1),\r\n paddingTop: digitalMenuOffsetHeight + 1,\r\n };\r\n\r\n const menuItems =\r\n !selectedCategory.menuItems || selectedCategory.menuItems.length === 0\r\n ? null\r\n : renderMenuItems({ focusItem: props.focusItem, data: selectedCategory.menuItems, culture });\r\n const menuCategories =\r\n !selectedCategory.menuCategories || selectedCategory.menuCategories.length === 0\r\n ? null\r\n : renderMenuCategories({\r\n focusItem: props.focusItem,\r\n data: selectedCategory.menuCategories,\r\n culture,\r\n categoryType: selectedCategory.name,\r\n offsetStyle,\r\n });\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n\r\n \r\n
    \r\n {!!selectedCategory.name &&

    {selectedCategory.name.toUpperCase()}

    }\r\n {selectedCategory.headerText &&

    {selectedCategory.headerText}

    }\r\n {selectedCategory.name.toLowerCase() == 'lunch' ?

    Terms Apply

    : ''}\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n {!menuCategories ? (\r\n
    \r\n
    \r\n
    \r\n

    {selectedCategory.name}

    \r\n

    {selectedCategory.description}

    \r\n
    \r\n
    \r\n {!menuItems ? (\r\n
    \r\n
    \r\n

    \r\n No items found.\r\n

    \r\n
    \r\n
    \r\n ) : (\r\n
    {menuItems}
    \r\n )}\r\n
    \r\n ) : (\r\n ''\r\n )}\r\n {menuCategories}\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\nexport default withAppState(MenuPages, {\r\n mobXProps: ({ digitalMenuOffsetHeight }) => ({\r\n digitalMenuOffsetHeight,\r\n }),\r\n});\r\n","\r\nconst mapItemChoiceItemPrices = (itemChoiceItems, menuItemChoiceItems) => {\r\n let result = 0;\r\n\r\n if (!itemChoiceItems || !menuItemChoiceItems) return result;\r\n\r\n itemChoiceItems.forEach(itemChoiceItem => {\r\n const { id, qty, itemChoices } = itemChoiceItem\r\n const menuItemChoiceItem = menuItemChoiceItems.find(i => i.id === id);\r\n if (!menuItemChoiceItem) return;\r\n const { menuItemChoices } = menuItemChoiceItem\r\n result += menuItemChoiceItem.price * qty;\r\n result += mapItemChoicesToPrices(itemChoices, menuItemChoices);\r\n })\r\n\r\n return result;\r\n}\r\n\r\nconst mapItemChoicesToPrices = (itemChoices, menuItemChoices) => {\r\n let result = 0;\r\n\r\n if (!itemChoices || !menuItemChoices) return result;\r\n\r\n itemChoices.forEach(itemChoice => {\r\n const { id, itemChoiceItems } = itemChoice\r\n const menuItemChoice = menuItemChoices.find(i => i.id === id);\r\n if (!menuItemChoice) return;\r\n const { menuItemChoiceItems } = menuItemChoice;\r\n result += mapItemChoiceItemPrices(itemChoiceItems, menuItemChoiceItems);\r\n })\r\n\r\n return result;\r\n}\r\n\r\nexport default mapItemChoicesToPrices","import React, { useState } from 'react';\r\nimport withAppState from '../mobx/withAppState';\r\nimport mapItemChoicesToPrices from '../lib/mapItemChoicesToPrices';\r\nimport SwipeableContainer from '../components/Swipeable';\r\nimport spicy from '../assets/img/Icons_16/Spicy.svg';\r\nimport extraSpicy from '../assets/img/Icons_16/extraSpicy.svg';\r\nimport glutenFree from '../assets/img/Icons_16/GF.svg';\r\nimport vegetarian from '../assets/img/Icons_16/Veg.svg';\r\nimport vegan from '../assets/img/Icons_16/Vegan.svg';\r\n\r\nconst MenuItemChoiceItems = ({\r\n uiTags = [],\r\n menuItemChoiceItems,\r\n itemChoiceItems,\r\n update,\r\n maximum,\r\n filterDiet,\r\n dietaryFilter,\r\n categoryIndex,\r\n allowChoiceFiltering,\r\n culture\r\n}) => {\r\n if (!menuItemChoiceItems) return null;\r\n\r\n return menuItemChoiceItems\r\n .filter(item => {\r\n if (!filterDiet) return true;\r\n for (let key in dietaryFilter) {\r\n if (dietaryFilter[key] === true) {\r\n if (allowChoiceFiltering && item.dietaryAndAllergens.includes(key) === false) return false;\r\n }\r\n }\r\n return true;\r\n })\r\n .map((menuItemChoiceItem, index) => {\r\n const { name, description, price, dietaryAndAllergens = [], uiTags = [] } = menuItemChoiceItem;\r\n const itemChoiceItem = itemChoiceItems.find(\r\n (i) => i.id == menuItemChoiceItem.id\r\n );\r\n let selected = itemChoiceItem.qty > 0;\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n });\r\n};\r\n\r\nconst MenuItemChoice = ({\r\n name,\r\n menuItemChoiceItems,\r\n itemChoiceItems,\r\n update,\r\n index,\r\n maximum,\r\n allowCustomisation,\r\n dietaryFilter,\r\n filterDiet,\r\n allowChoiceFiltering,\r\n culture\r\n}) => {\r\n const result = [];\r\n\r\n if (itemChoiceItems.length > 1 && allowCustomisation) {\r\n result.push(\r\n
    \r\n
    \r\n {name.toLowerCase() !== 'please choose' &&
    \r\n
    \r\n

    {name}

    \r\n {/*

    Choose how hot you want it

    */}\r\n
    \r\n
    }\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n\r\n menuItemChoiceItems.forEach((menuItemChoiceItem) => {\r\n const { id, menuItemChoices } = menuItemChoiceItem;\r\n const itemChoiceItem = itemChoiceItems.find((i) => i.id === id);\r\n if (!itemChoiceItem) return;\r\n const { qty, itemChoices } = itemChoiceItem;\r\n if (qty > 0) {\r\n result.push(\r\n \r\n );\r\n }\r\n });\r\n return result;\r\n};\r\n\r\nconst MenuItemChoices = ({ menuItemChoices, itemChoices, update, dietaryFilter, filterDiet, culture }) => {\r\n if (!menuItemChoices) return null;\r\n return menuItemChoices.map((menuItemChoice, index) => {\r\n const { name, menuItemChoiceItems, maximum, allowCustomisation, allowChoiceFiltering } = menuItemChoice;\r\n const { itemChoiceItems } = itemChoices[index];\r\n return (\r\n \r\n );\r\n });\r\n};\r\n\r\nconst createItemChoiceItemObject = (menuItemChoiceItems) => {\r\n if (!menuItemChoiceItems) return null;\r\n\r\n let defaultQuantity = 0;\r\n if (menuItemChoiceItems.length === 1) defaultQuantity = 1;\r\n\r\n return menuItemChoiceItems.map((menuItemChoiceItem) => {\r\n const { id, menuItemChoices } = menuItemChoiceItem;\r\n const result = {\r\n id,\r\n qty: menuItemChoiceItem.isIncluded ? 1 : defaultQuantity,\r\n itemChoices: [],\r\n };\r\n result.itemChoices = createItemChoiceObject(menuItemChoices);\r\n return result;\r\n });\r\n};\r\n\r\nconst areItemChoiceItemsValid = (itemChoiceItems, menuItemChoiceItems) => {\r\n if (!itemChoiceItems && !menuItemChoiceItems) return true;\r\n if (!itemChoiceItems || !menuItemChoiceItems) return false;\r\n\r\n return itemChoiceItems.every(itemChoiceItem => {\r\n const { id, itemChoices } = itemChoiceItem\r\n\r\n const menuItemChoiceItem = menuItemChoiceItems.find(i => i.id === id);\r\n if (!menuItemChoiceItem) return false;\r\n const { menuItemChoices } = menuItemChoiceItem\r\n\r\n return areItemChoicesValid(itemChoices, menuItemChoices);\r\n })\r\n}\r\n\r\nconst areItemChoicesValid = (itemChoices, menuItemChoices) => {\r\n if (!itemChoices && !menuItemChoices) return true;\r\n if (!itemChoices || !menuItemChoices) return false;\r\n\r\n return itemChoices.every(itemChoice => {\r\n const { id, itemChoiceItems } = itemChoice\r\n\r\n const menuItemChoice = menuItemChoices.find(i => i.id === id);\r\n if (!menuItemChoice) return false;\r\n const { menuItemChoiceItems, minimum } = menuItemChoice;\r\n\r\n const validItemChoiceItems = itemChoiceItems.filter(item => item.qty >= minimum);\r\n if (validItemChoiceItems.length === 0) return false\r\n\r\n return areItemChoiceItemsValid(validItemChoiceItems, menuItemChoiceItems);\r\n })\r\n}\r\n\r\nconst createItemChoiceObject = (menuItemChoices) => {\r\n if (!menuItemChoices) return null;\r\n return menuItemChoices.map((menuItemChoice) => {\r\n const { id, menuItemChoiceItems } = menuItemChoice;\r\n const result = {\r\n id,\r\n itemChoiceItems: [],\r\n };\r\n result.itemChoiceItems = createItemChoiceItemObject(menuItemChoiceItems);\r\n return result;\r\n });\r\n};\r\n\r\nconst MenuItem = props => {\r\n const { item, dietaryFilter, filterDiet, backButtonHandler, slideUpModal, categoryType, culture, hasBasket } = props;\r\n if (item !== null) {\r\n var { name, image, descriptionInfo, dietaryAndAllergens, menuItemChoices, promotionalItemText, uiTags } = item;\r\n }\r\n const defaultItemChoices = createItemChoiceObject(menuItemChoices);\r\n const [itemChoices, setItemChoices] = useState(defaultItemChoices);\r\n const update = () => {\r\n setItemChoices([...itemChoices]);\r\n };\r\n\r\n const price = mapItemChoicesToPrices(itemChoices, menuItemChoices);\r\n const canOrder = areItemChoicesValid(itemChoices, menuItemChoices);\r\n return (\r\n <>\r\n
    \r\n \r\n\r\n
    \r\n {!!slideUpModal && (\r\n
    \r\n ,.\\/?\"\\- \\t\\r\\n]+/g, '-')\r\n }`}\r\n style={{ backgroundImage: `url(${item.image || require('../assets/img/generic.jpg')})`, backgroundSize: 'cover' }}>\r\n {uiTags.includes('New') || uiTags.includes('Popular') || uiTags.includes('It\\'s Back!') ?
    \r\n {!!uiTags && uiTags.includes('New') && (\r\n New\r\n )}\r\n {!!uiTags && uiTags.includes('Popular') && (\r\n Popular\r\n )}\r\n {!!uiTags && uiTags.includes('It\\'s Back!') && (\r\n It's Back!\r\n )}\r\n
    : null}\r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {name !== null &&

    {name}

    }
    \r\n
    \r\n {price !== 0 ? (\r\n <>\r\n {culture?.symbol}\r\n {price.toFixed(2)}\r\n \r\n ) : (\r\n <>\r\n {culture?.symbol}\r\n {item?.minPrice.toFixed(2)}\r\n \r\n )}\r\n
    \r\n
    \r\n\r\n {dietaryAndAllergens !== null || [] ? (\r\n
    \r\n {uiTags\r\n ? uiTags.map(element => {\r\n if (element.includes('Spicy')) {\r\n let iconSrc = '';\r\n const value = element.toLowerCase().replace(' ', '-');\r\n if (value === 'spicy-1') {\r\n iconSrc = spicy;\r\n } else if (value === 'spicy-2') {\r\n iconSrc = extraSpicy;\r\n }\r\n return {value};\r\n }\r\n })\r\n : ''}\r\n {dietaryAndAllergens\r\n ? dietaryAndAllergens.map(element => {\r\n const value = element.toLowerCase().replace(' ', '-');\r\n let iconSrc = '';\r\n if (value === 'gluten-free') {\r\n iconSrc = glutenFree;\r\n } else if (value === 'vegetarian') {\r\n iconSrc = vegetarian;\r\n } else if (value === 'vegan') {\r\n iconSrc = vegan;\r\n }\r\n return (\r\n {value}\r\n );\r\n })\r\n : ''}\r\n
    \r\n ) : (\r\n ''\r\n )}\r\n\r\n {!!slideUpModal && !!descriptionInfo.description ? (\r\n
    \r\n
    \r\n {item !== null &&

    {descriptionInfo.description}

    }\r\n {descriptionInfo.info !== '' && (\r\n

    \r\n {descriptionInfo.info}\r\n

    \r\n )}\r\n
    \r\n
    \r\n ) : (\r\n ''\r\n )}\r\n\r\n {!!slideUpModal && promotionalItemText && (\r\n
    \r\n
    \r\n

    {promotionalItemText}

    \r\n
    \r\n
    \r\n )}\r\n\r\n
    \r\n\r\n
    \r\n \r\n\r\n {!!slideUpModal && canOrder && (\r\n
    \r\n
    \r\n props.addToBasket(item, itemChoices)}\r\n >\r\n Add to order {price.toFixed(2)}\r\n \r\n
    \r\n
    \r\n )}\r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default withAppState(MenuItem, {\r\n mobXProps: ({ swipeable, }) => ({\r\n swipeable,\r\n\r\n }),\r\n});","import React from \"react\";\r\n\r\nimport exampleDrink1 from \"../assets/img/examples/drinks/honey_dew_ale_384.jpg\";\r\nimport exampleDrink2 from \"../assets/img/examples/drinks/peroni_gluten_free_384.jpg\";\r\nimport exampleDrink3 from \"../assets/img/examples/drinks/peroni_gran_riserva_384_v2.jpg\";\r\nimport exampleDrink4 from \"../assets/img/examples/drinks/grecanico_chardonnay_384_v2.jpg\";\r\nimport exampleDrink5 from \"../assets/img/examples/drinks/peroni_libera_384.jpg\";\r\n\r\nimport mapItemChoicesToPrices from \"../lib/mapItemChoicesToPrices\";\r\n\r\nconst populateItemChoiceItems = (\r\n itemChoiceItems,\r\n menuItemChoiceItems,\r\n resultList\r\n) => {\r\n if (!itemChoiceItems || !menuItemChoiceItems) return;\r\n\r\n const choiceCount = itemChoiceItems.length;\r\n itemChoiceItems.forEach((itemChoiceItem) => {\r\n const { id, qty, itemChoices } = itemChoiceItem;\r\n const menuItemChoiceItem = menuItemChoiceItems.find((i) => i.id === id);\r\n if (!menuItemChoiceItem) return;\r\n\r\n const { name, price, menuItemChoices, isIncluded, isAlwaysVisible } = menuItemChoiceItem;\r\n\r\n \r\n let pushItem = isAlwaysVisible || choiceCount > 1;\r\n if (!isAlwaysVisible && pushItem && qty === 1 && isIncluded === true) pushItem = false;\r\n if (!isAlwaysVisible && pushItem && qty === 0 && isIncluded === false) pushItem = false;\r\n\r\n if (pushItem) resultList.push({ name, price, qty });\r\n\r\n populateItemChoices(itemChoices, menuItemChoices, resultList);\r\n });\r\n};\r\n\r\nconst populateItemChoices = (itemChoices, menuItemChoices, resultList) => {\r\n if (!itemChoices || !menuItemChoices) return;\r\n\r\n itemChoices.forEach((itemChoice) => {\r\n const { id, itemChoiceItems } = itemChoice;\r\n const menuItemChoice = menuItemChoices.find((i) => i.id === id);\r\n if (!menuItemChoice) return;\r\n const { menuItemChoiceItems } = menuItemChoice;\r\n populateItemChoiceItems(\r\n itemChoiceItems,\r\n menuItemChoiceItems,\r\n resultList\r\n );\r\n });\r\n};\r\n\r\nexport default (props) => {\r\n const { items } = props;\r\n let totalPrice = 0;\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n

    Your selection so far

    \r\n

    When you’re ready place your order with a staff member.\r\n
    \r\n
    \r\n Fancy a drink or second thoughts on dessert? Order more at any time by asking a staff member\r\n

    \r\n
    \r\n
    \r\n
    \r\n {items.map((object) => {\r\n const { item, qty, itemChoices } = object;\r\n const { name, menuItemChoices } = item;\r\n\r\n const choiceList = [];\r\n const price = mapItemChoicesToPrices(\r\n itemChoices,\r\n menuItemChoices\r\n );\r\n totalPrice += (price * qty);\r\n\r\n populateItemChoices(itemChoices, menuItemChoices, choiceList);\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n

    {name}

    \r\n
    \r\n
    \r\n
    \r\n props.reduceQuantity(object)}\r\n >\r\n \r\n {(qty * price).toFixed(2)}\r\n \r\n props.increaseQuantity(object)}\r\n >\r\n \r\n

    {qty}

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n {choiceList.map((choice) => {\r\n const { qty: choiceQty, name } = choice;\r\n const qtyDisplay = choiceQty > 0 ? choiceQty : 1;\r\n return Array(qtyDisplay)\r\n .fill(null)\r\n .map(() => {\r\n return (\r\n
    \r\n
    \r\n

    0 ? '' : 'zero-quantity'}`}>- {name}

    \r\n
    \r\n
    \r\n {/*

    £{(price).toFixed(2)}

    */}\r\n {/*

    £{(quantity * price).toFixed(2)}

    */}\r\n {/*

    {choiceQty * quantity}

    */}\r\n
    \r\n
    \r\n );\r\n });\r\n })}\r\n
    \r\n
    \r\n );\r\n })}\r\n
    \r\n
    \r\n

    When you’re ready place your order with a staff member.

    \r\n
    \r\n
    \r\n
    \r\n

    Order total {totalPrice.toFixed(2)}

    \r\n
    \r\n
    \r\n {/*
    \r\n
    \r\n \r\n
    \r\n

    (Don’t worry, you can order more anytime)

    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n","import React from \"react\";\r\n\r\nconst MenuFooterLinks = () => {\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \"twitter\"\r\n
    \r\n
    \r\n \"facebook\"\r\n
    \r\n
    \r\n \"instagram\"\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    Food
    \r\n Menu\r\n Collection\r\n Delivery\r\n Cook at Home\r\n Allergens & Nutritionals\r\n
    \r\n
    \r\n
    Bookings
    \r\n Book a Table\r\n Offers\r\n
    \r\n
    \r\n
    Explore
    \r\n About Us\r\n International\r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default MenuFooterLinks;\r\n","import React, { createRef } from 'react';\r\n\r\nimport withAppState from '../mobx/withAppState';\r\nimport compareItemChoices from './../lib/compareItemChoices'\r\n\r\nimport NavMenu from './NavMenu';\r\nimport MenuPages from './MenuPages';\r\nimport MenuItem from './MenuItem';\r\nimport Loading from './Loading';\r\nimport MenuBasket from './MenuBasket';\r\nimport Header from './Header';\r\nimport MenuFooter from './MenuFooter';\r\nimport MenuFooterLinks from './MenuFooterLinks';\r\nimport SwipeableContainer from './Swipeable';\r\nimport StickyFooter from './StickyFooter';\r\n\r\nimport TagManager from 'react-gtm-module';\r\n\r\nconst getDescriptionInfo = (description) => {\r\n let descriptionInfo = { description: '', subTitle: '', title: '', info: '' };\r\n description.split('\\r\\n').forEach((line) => {\r\n if (line.startsWith('###')) descriptionInfo.subTitle += line.substring(3);\r\n else if (line.startsWith('##')) descriptionInfo.title += line.substring(2);\r\n else if (line.startsWith('#')) descriptionInfo.info += line.substring(1);\r\n else descriptionInfo.description += line;\r\n });\r\n\r\n return descriptionInfo;\r\n};\r\n\r\nconst recursivelyTransformMenuCategories = (menuCategories, dietaryFilter) => {\r\n if (menuCategories != null && menuCategories.length > 0) {\r\n menuCategories.forEach((category) => {\r\n const { menuItems, menuCategories } = category;\r\n if (menuItems != null && menuItems.length > 0) {\r\n menuItems.forEach((item) => {\r\n const { dietaryAndAllergens, description } = item;\r\n const descriptionInfo = getDescriptionInfo(description);\r\n item.descriptionInfo = descriptionInfo;\r\n if (dietaryAndAllergens != null && dietaryAndAllergens.length > 0) {\r\n dietaryAndAllergens.forEach((dietaryAllergen) => {\r\n if (dietaryFilter[dietaryAllergen] === undefined) {\r\n dietaryFilter[dietaryAllergen] = false;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n recursivelyTransformMenuCategories(menuCategories, dietaryFilter);\r\n });\r\n }\r\n};\r\n\r\nconst recursiveMenuCategoryDietaryFilter = (category, dietaryFilter) => {\r\n const { menuItems, menuCategories } = category;\r\n const filteredMenuItems = menuItems\r\n ? menuItems.filter((item) => {\r\n const {\r\n uiTags = [],\r\n dietaryAndAllergens = []\r\n } = item;\r\n for (let key in dietaryFilter) {\r\n if (dietaryFilter[key] === true) {\r\n if (dietaryAndAllergens.includes(key) === false) return false;\r\n }\r\n }\r\n if (uiTags.includes(\"Vegan Alternative\")) return dietaryFilter[\"Vegan\"];\r\n return true;\r\n })\r\n : [];\r\n category.menuItems = filteredMenuItems;\r\n\r\n const filteredMenuCategoriesResult = !menuCategories\r\n ? []\r\n : menuCategories.filter((c) =>\r\n recursiveMenuCategoryDietaryFilter(c, dietaryFilter)\r\n );\r\n category.menuCategories = filteredMenuCategoriesResult;\r\n\r\n if (filteredMenuCategoriesResult.length > 0 || filteredMenuItems.length > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n};\r\n\r\nclass PreOrderMenu extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n data: null,\r\n filteredData: null,\r\n results: null,\r\n loading: true,\r\n currentPage: 0,\r\n popoutActive: false,\r\n dietFilterOpen: false,\r\n dietaryFilter: {},\r\n focusedItem: null,\r\n navSelected: false,\r\n scrollItemIndex: 0,\r\n basket: this.props.getBasket()\r\n };\r\n this.requests = [];\r\n this.menuPage = createRef();\r\n this.menuBanner = createRef();\r\n this.scrollWrapper = createRef();\r\n this.scrollContainer = createRef();\r\n this.navMenuWrapper = createRef();\r\n this.navMenuContainer = createRef();\r\n }\r\n\r\n focusItem(item) {\r\n this.setState({ focusedItem: item });\r\n }\r\n\r\n addToBasket(item, itemChoices) {\r\n const tagManagerArgs = {\r\n dataLayer: {\r\n itemAdded: {\r\n id: item?.id,\r\n name: item?.name,\r\n },\r\n itemAddedChoices: itemChoices\r\n },\r\n dataLayerName: 'PageDataLayer'\r\n }\r\n TagManager.dataLayer(tagManagerArgs)\r\n\r\n const { basket } = this.state;\r\n const basketItems = basket.filter(basketItem => basketItem.id === item.id);\r\n\r\n let foundSameChoices = false;\r\n if (basketItems.length > 0) {\r\n const basketItemCount = basketItems.length;\r\n for (let i = 0; i < basketItemCount; i++) {\r\n const basketItem = basketItems[i];\r\n const hasSameChoiceTree = compareItemChoices(itemChoices, basketItem.itemChoices);\r\n if (hasSameChoiceTree) {\r\n basketItem.qty += 1;\r\n foundSameChoices = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!foundSameChoices) basket.push({ item, qty: 1, id: item.id, itemChoices });\r\n\r\n this.setBasket(basket);\r\n this.setState({ focusedItem: null });\r\n }\r\n\r\n setBasket(basket) {\r\n this.setState({ basket });\r\n this.props.setBasket(basket);\r\n }\r\n\r\n changeQuantity(obj, increment) {\r\n const { basket } = this.state;\r\n const basketObj = basket.find((basketObj) => basketObj === obj);\r\n\r\n basketObj.qty += increment;\r\n\r\n if (basketObj.qty <= 0) {\r\n basket.splice(basket.indexOf(basketObj), 1);\r\n }\r\n\r\n this.setBasket(basket);\r\n }\r\n\r\n homeButtonHandler() {\r\n this.props.homeButtonHandler();\r\n }\r\n\r\n backButtonHandler() {\r\n const { currentPage, filteredData } = this.state;\r\n const rootCategories = (filteredData && filteredData.menuCategories) || [];\r\n const pageCount = rootCategories.length;\r\n\r\n if (this.state.focusedItem !== null) {\r\n this.setState({ focusedItem: null });\r\n } else if (pageCount > 0 && currentPage === pageCount) {\r\n this.setState({ currentPage: 3 }); // TODO(john): We need to build a proper history of pages selection on menu \r\n } else {\r\n this.props.backButtonHandler();\r\n }\r\n }\r\n\r\n closeFocusedItem() {\r\n if (this.state.focusedItem !== null) {\r\n setTimeout(() => {\r\n this.setState({ focusedItem: null });\r\n this.props.clearSlideUpModalContents();\r\n }, 300);\r\n }\r\n }\r\n\r\n setPage(value) {\r\n const { currentPage } = this.state;\r\n if (currentPage !== value) this.setState({ currentPage: value });\r\n if (this.state.focusedItem !== null) this.setState({ focusedItem: null });\r\n\r\n this.menuPage.current.scrollTo(0, 0);\r\n this.setState({ popoutActive: false });\r\n\r\n }\r\n\r\n togglePopout() {\r\n this.setState({ popoutActive: !this.state.popoutActive });\r\n }\r\n\r\n toggleDietFilterMenu() {\r\n this.setState({ dietFilterOpen: !this.state.dietFilterOpen });\r\n }\r\n\r\n getFilteredData(data, dietaryFilter) {\r\n const result = JSON.parse(JSON.stringify(data));\r\n result.menuCategories.forEach((c) =>\r\n recursiveMenuCategoryDietaryFilter(c, dietaryFilter)\r\n );\r\n return result;\r\n }\r\n\r\n handleDietaryFilterChange({ target: { checked } }, name) {\r\n const { dietaryFilter, data } = this.state;\r\n dietaryFilter[name] = checked;\r\n\r\n const filteredData = this.getFilteredData(data, dietaryFilter)\r\n\r\n this.setState({ dietaryFilter, filteredData });\r\n }\r\n\r\n handleDietaryResetAll() {\r\n const { dietaryFilter, data } = this.state;\r\n\r\n Object.keys(dietaryFilter).forEach(name => dietaryFilter[name] = false);\r\n\r\n const filteredData = this.getFilteredData(data, dietaryFilter)\r\n\r\n this.setState({ dietaryFilter, filteredData });\r\n }\r\n\r\n getPage = () => {\r\n const pathName = window.location.pathname.substr(1);\r\n var category;\r\n var pathArray = pathName.split('/');\r\n pathArray = pathArray.filter(path => path !== \"\");\r\n\r\n const { dietaryFilter, data } = this.state;\r\n\r\n if (pathArray.length == 0) {\r\n\r\n this.setState({ currentPage: 3 });\r\n\r\n return;\r\n\r\n };\r\n\r\n switch (pathArray[pathArray.length - 1].toLowerCase()) {\r\n case \"restaurant-menu\":\r\n case \"main-menu\":\r\n category = 2;\r\n break;\r\n case \"lunch-menu\":\r\n category = 6;\r\n break;\r\n case \"piccolo-menu\":\r\n category = 5;\r\n break;\r\n case \"vegan-menu\":\r\n category = 2;\r\n dietaryFilter['Vegan'] = true;\r\n break;\r\n default:\r\n category = 0;\r\n }\r\n\r\n this.setState({ currentPage: category });\r\n\r\n }\r\n\r\n async loadMenus() {\r\n const { restaurant } = this.props;\r\n if (!restaurant) return null;\r\n const response = await fetch(`api/Menu/GetMenu/${restaurant.id}`);\r\n\r\n if (response.status === 200) {\r\n let data;\r\n try {\r\n const json = await response.json();\r\n data = json.data;\r\n } catch (error) { }\r\n\r\n if (!data) {\r\n this.setState({ loading: false });\r\n return;\r\n }\r\n\r\n const { menuCategories } = data;\r\n\r\n const dietaryFilter = {};\r\n recursivelyTransformMenuCategories(menuCategories, dietaryFilter);\r\n\r\n data = { ...data, menuCategories: menuCategories.filter(fd => fd.menuCategories.length >= 1) };\r\n const filteredData = this.getFilteredData(data, dietaryFilter)\r\n\r\n this.setState({ data, filteredData, dietaryFilter });\r\n\r\n this.getPage();\r\n }\r\n this.setState({ loading: false });\r\n }\r\n\r\n async componentDidMount() {\r\n await this.loadMenus();\r\n }\r\n\r\n\r\n handleScroll(e) {\r\n const { filteredData, currentPage, scrollItemIndex } = this.state;\r\n const scrollContainer = this.scrollContainer.current;\r\n if (scrollContainer !== null) {\r\n var navContainerSize = scrollContainer?.getBoundingClientRect();\r\n const scrollWrapper = this.scrollWrapper.current;\r\n const rootCategories = filteredData.menuCategories || [];\r\n const selectedMenu = rootCategories[currentPage];\r\n const { menuCategories } = selectedMenu;\r\n let selectedIndex = 0;\r\n for (let i = 0; i < menuCategories.length; i++) {\r\n const { titleRef: categoryRef } = menuCategories[i];\r\n const { top: categoryTop } = categoryRef.current?.getBoundingClientRect();\r\n if (categoryTop - 25 <= navContainerSize.bottom) {\r\n selectedIndex = i;\r\n } else {\r\n break;\r\n }\r\n }\r\n if (scrollItemIndex !== selectedIndex) {\r\n this.setState({ scrollItemIndex: selectedIndex })\r\n const { navRef } = menuCategories[selectedIndex];\r\n const { x } = navRef.current?.getBoundingClientRect()\r\n scrollWrapper.scrollTo({\r\n left: (x) - navContainerSize.x,\r\n });\r\n }\r\n }\r\n }\r\n\r\n mainComponent = () => {\r\n const { focusedItem, filteredData, currentPage, popoutActive, dietaryFilter } = this.state;\r\n const { basket } = this.state;\r\n const filteredCategories = filteredData?.menuCategories || [];\r\n const categoryType = filteredCategories[currentPage]?.name;\r\n console.log(\"height ==> \", this.props.appFooterHeight)\r\n if (!filteredData)\r\n return (\r\n
    \r\n\r\n

    \r\n Sorry! We do not have an online menu for this restaurant\r\n yet.\r\n

    \r\n\r\n
    \r\n );\r\n\r\n return (\r\n <>\r\n\r\n this.focusItem(item)}\r\n handleScroll={(e) => this.handleScroll(e)}\r\n >\r\n this.changeQuantity(obj, 1)}\r\n reduceQuantity={(obj) => this.changeQuantity(obj, -1)}\r\n />\r\n \r\n dietaryFilter[key])}\r\n item={focusedItem}\r\n categoryType={categoryType}\r\n slideUpModal={this.state.focusedItem}\r\n culture={this.props.culture}\r\n backButtonHandler={() => this.closeFocusedItem()}\r\n addToBasket={(item, itemChoices) => this.addToBasket(item, itemChoices)}\r\n />\r\n \r\n );\r\n };\r\n\r\n render() {\r\n const {\r\n focusedItem,\r\n filteredData,\r\n currentPage,\r\n popoutActive,\r\n dietFilterOpen,\r\n dietaryFilter,\r\n loading,\r\n scrollItemIndex,\r\n } = this.state;\r\n const { basket } = this.state;\r\n\r\n if (loading)\r\n return (\r\n
    \r\n \r\n
    \r\n );\r\n\r\n const dietaryFilterActive = Object.keys(dietaryFilter).length > 0;\r\n const dietaryFilterCounter = Object.keys(dietaryFilter).reduce((acc, key) => {\r\n return acc + (dietaryFilter[key] === true ? 1 : 0)\r\n }, 0);\r\n\r\n const rootCategories = (filteredData && filteredData.menuCategories) || [];\r\n const pageCount = rootCategories.length;\r\n const basketCount = basket.length > 0 && basket.reduce((acc, item) => acc + item.qty, 0);\r\n\r\n const categoryName = rootCategories[currentPage]?.name;\r\n const subcategory = rootCategories[currentPage]?.menuCategories[scrollItemIndex]?.name;\r\n const item = focusedItem?.name\r\n\r\n const tagManagerArgs = {\r\n dataLayer: {\r\n category: categoryName,\r\n subcategory: subcategory,\r\n item: item,\r\n },\r\n dataLayerName: 'PageDataLayer'\r\n }\r\n TagManager.dataLayer(tagManagerArgs)\r\n window.PageDataLayer.push({ 'set-page-event': categoryName + '/' + subcategory });\r\n return (\r\n <>\r\n
    this.handleScroll(e)} ref={this.menuPage} className=\"menu-page\">\r\n
    \r\n {filteredData && dietaryFilterActive && !this.toggleDietFilterMenu()}\r\n dietaryFilter={dietaryFilter}\r\n scrollContainer={this.scrollContainer}\r\n scrollWrapper={this.scrollWrapper}\r\n togglePopout={() => this.togglePopout()}\r\n setIndex={(page) => this.setPage(page)}\r\n scrollItemIndex={scrollItemIndex}\r\n displaySubcategories={!!rootCategories && currentPage <= rootCategories.length && focusedItem === null}\r\n menuBanner={this.menuBanner}\r\n />}\r\n {this.mainComponent({ focusedItem, filteredData, currentPage, popoutActive, basket })}\r\n dietaryFilterActive && !this.toggleDietFilterMenu()}>
    \r\n dietaryFilterActive && !this.toggleDietFilterMenu()}\r\n slideUpModal={dietFilterOpen}\r\n dietFilterOpen={true}\r\n >\r\n
    \r\n
    \r\n
    \r\n

    FILTER BY DIET

    \r\n
    \r\n

    Click to filter the menu by dietary requirement and remember to let our team know when you order.

    \r\n
    \r\n
    \r\n {Object.keys(dietaryFilter).map((item, index) => {\r\n const id = `${index}-${item.toLowerCase()}`;\r\n return (\r\n \r\n );\r\n })}\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n );\r\n }\r\n}\r\n\r\n\r\nexport default withAppState(PreOrderMenu, {\r\n mobXActions: ({\r\n getBasket,\r\n setBasket,\r\n clearSlideUpModalContents\r\n }) => ({\r\n getBasket,\r\n setBasket,\r\n clearSlideUpModalContents\r\n }),\r\n mobXProps: ({\r\n restaurant,\r\n appFooterHeight,\r\n appHeaderHeight\r\n }) => ({\r\n restaurant,\r\n appFooterHeight,\r\n appHeaderHeight\r\n }),\r\n});","// Brand: Milano\r\n// Flow: PreOrder\r\n\r\nimport React from 'react'\r\n\r\nimport PreOrderMenu from \"../../../components/PreOrderMenu\"\r\nimport withAppState from '../../../mobx/withAppState';\r\nimport { Steps } from '../../../lib/constants';\r\n\r\nimport milogo from '../../../assets/milano/milano-logo-header.svg';\r\n\r\nconst PreOrderMenuWrapper = (props) => {\r\n const backButtonHandler = () => {\r\n props.popStep();\r\n }\r\n\r\n const payButtonHandler = () => {\r\n props.goToStep(Steps.TABLE_PICKER)\r\n }\r\n const homeButtonHandler = () => {\r\n props.goToStep(Steps.DEFAULT)\r\n }\r\n\r\n const logo = (\r\n \r\n \"Milano\"\r\n \r\n)\r\n\r\n return \r\n\r\n}\r\n\r\nexport default withAppState(PreOrderMenuWrapper, {\r\n mobXActions: ({\r\n goToStep,\r\n popStep,\r\n getCurrency\r\n }) => ({\r\n goToStep,\r\n popStep,\r\n getCurrency\r\n })\r\n});","import React from 'react';\r\nimport withAppState from '../mobx/withAppState';\r\nimport { getCsrfToken } from '../helpers/GetCsrfToken';\r\n\r\nclass PreOrderMenuDataCapture extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n customerData: {\r\n firstName: '',\r\n emailAddress: '',\r\n mobileNumber: '',\r\n pizzaExpressTermsAndConditionsAgreed: false,\r\n optIn: false,\r\n trackAndTraceAgreed: true,\r\n over16: true,\r\n restaurantId: props.restaurant.id,\r\n },\r\n results: null,\r\n loading: true,\r\n firstNameEmpty: false,\r\n firstNameValid: true,\r\n mobileNoEmpty: false,\r\n mobileNoValid: true,\r\n emailEmpty: false,\r\n emailValid: true,\r\n showTAndCError: false,\r\n errors: null\r\n };\r\n\r\n }\r\n\r\n componentDidMount() {\r\n this.setState({\r\n loading: false\r\n });\r\n }\r\n\r\n toggleErrorModal = () => {\r\n this.setState({ errors: null })\r\n }\r\n\r\n handleFocus = e => {\r\n var element = e.target;\r\n element.scrollIntoView({\r\n block: 'center',\r\n inline: 'nearest'\r\n });\r\n };\r\n\r\n handleChange(e, fieldName) {\r\n\r\n const { customerData } = this.state;\r\n\r\n switch (fieldName) {\r\n case \"firstName\":\r\n customerData.firstName = e.currentTarget.value.trim();\r\n break;\r\n case \"emailAddress\":\r\n customerData.emailAddress = e.currentTarget.value.trim();\r\n break;\r\n case \"mobileNumber\":\r\n customerData.mobileNumber = e.currentTarget.value.trim();\r\n break;\r\n }\r\n this.setState({ customerData });\r\n }\r\n\r\n validateField(fieldName) {\r\n const { customerData } = this.state;\r\n const { allowIrishPhoneNumbers } = this.props;\r\n let valid = false;\r\n\r\n switch (fieldName) {\r\n case \"firstName\":\r\n\r\n const feRe = /^[\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF a-zA-Z0-9_,.'-]*$/i;\r\n valid = feRe.test(customerData.firstName.trim());\r\n this.setState({\r\n firstNameValid: valid,\r\n firstNameEmpty: false\r\n })\r\n\r\n break;\r\n case \"emailAddress\":\r\n const eaRe = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@(([[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n valid = eaRe.test(customerData.emailAddress.trim());\r\n this.setState({\r\n emailValid: valid,\r\n emailEmpty: false\r\n })\r\n\r\n break;\r\n case \"mobileNumber\":\r\n valid = this.isValidPhonenumber(customerData.mobileNumber.trim());\r\n this.setState({\r\n mobileNoValid: valid,\r\n mobileNoEmpty: false\r\n })\r\n\r\n break;\r\n }\r\n this.setState({ customerData });\r\n return valid;\r\n };\r\n\r\n \r\n isValidPhonenumber(value) {\r\n return (/^\\d{7,}$/).test(value.replace(/[\\s()+\\-\\.]|ext/gi, ''));\r\n }\r\n toggleTandC() {\r\n const { customerData } = this.state;\r\n customerData.pizzaExpressTermsAndConditionsAgreed = !customerData.pizzaExpressTermsAndConditionsAgreed;\r\n this.setState({ customerData });\r\n this.setState({ showTAndCError: !customerData.pizzaExpressTermsAndConditionsAgreed });\r\n };\r\n\r\n toggleOptIn() {\r\n const { customerData } = this.state;\r\n customerData.optIn = !customerData.optIn;\r\n this.setState({ customerData });\r\n };\r\n\r\n toggleTestAndTrace() {\r\n const { customerData } = this.state;\r\n customerData.trackAndTraceAgreed = !customerData.trackAndTraceAgreed;\r\n this.setState({ customerData });\r\n }\r\n\r\n formIsValid() {\r\n var isValid = true;\r\n const { customerData } = this.state;\r\n\r\n //check email \r\n if (!customerData.emailAddress) {\r\n this.setState({ emailEmpty: true });\r\n isValid = false;\r\n }\r\n else {\r\n isValid = this.validateField(\"emailAddress\");\r\n this.setState({ emailEmpty: false });\r\n }\r\n //check first name\r\n if (!customerData.firstName) {\r\n this.setState({ firstNameEmpty: true });\r\n isValid = false;\r\n }\r\n else {\r\n isValid = this.validateField(\"firstName\");\r\n this.setState({ firstNameEmpty: false });\r\n }\r\n //check mobile number\r\n if (!customerData.mobileNumber && customerData.trackAndTraceAgreed) {\r\n this.setState({ mobileNoEmpty: true });\r\n isValid = false;\r\n }\r\n else {\r\n isValid = this.validateField(\"mobileNumber\");\r\n this.setState({ mobileNoEmpty: false });\r\n }\r\n //check T & C\r\n if (!customerData.pizzaExpressTermsAndConditionsAgreed) {\r\n this.setState({ showTAndCError: true });\r\n isValid = false;\r\n }\r\n else {\r\n this.setState({ showTAndCError: false });\r\n }\r\n\r\n return isValid;\r\n }\r\n\r\n async continueButtonHandler(skip) {\r\n\r\n if (skip) {\r\n this.props.continueButtonHandler();\r\n }\r\n else {\r\n if (this.formIsValid()) {\r\n this.setState({ loading: true });\r\n\r\n const response = await fetch(`api/DataCapture/DataCapture`, {\r\n method: 'post',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'X-XSRF-TOKEN': getCsrfToken()\r\n },\r\n body: JSON.stringify(this.state.customerData)\r\n });\r\n\r\n let data;\r\n try {\r\n data = await response.json()\r\n if (data.code == 200) {\r\n this.props.setDataCaptureStatusForCurrentRestaurant(true);\r\n this.props.continueButtonHandler();\r\n }\r\n else {\r\n this.setState({\r\n errors: [\"We could not check you in at this time. Please try later.\"]\r\n });\r\n this.setState({ loading: false });\r\n return;\r\n }\r\n\r\n }\r\n catch (err) {\r\n console.error(err);\r\n this.setState({\r\n errors: [\"We could not check you in at this time. Please try later.\"]\r\n });\r\n this.setState({ loading: false });\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n render() {\r\n const {\r\n loading,\r\n customerData: {\r\n optIn,\r\n firstName,\r\n emailAddress,\r\n mobileNumber,\r\n trackAndTraceAgreed,\r\n pizzaExpressTermsAndConditionsAgreed,\r\n },\r\n errors,\r\n firstNameEmpty,\r\n firstNameValid,\r\n emailEmpty,\r\n emailValid,\r\n mobileNoEmpty,\r\n mobileNoValid,\r\n showTAndCError,\r\n } = this.state;\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    this.toggleErrorModal()}>
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n

    {errors}

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {this.props.logo}\r\n
    \r\n
    \r\n\r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n

    Check in

    \r\n

    To get started please fill in a few essential details:

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n this.handleFocus(e)}\r\n onChange={e => this.handleChange(e, \"firstName\")}\r\n />\r\n
    \r\n {firstNameEmpty && (\r\n

    \r\n Please enter your name\r\n

    \r\n )}\r\n {!firstNameValid && (\r\n

    \r\n First name only accepts ', - and letters.\r\n

    \r\n )}\r\n
    \r\n
    \r\n
    \r\n this.handleFocus(e)}\r\n onChange={e => this.handleChange(e, \"emailAddress\")}\r\n />\r\n
    \r\n {(emailEmpty || !emailValid) && (\r\n

    \r\n Please enter a valid email address.\r\n

    \r\n )}\r\n
    \r\n\r\n
    \r\n
    \r\n this.handleFocus(e)}\r\n onChange={e => this.handleChange(e, \"mobileNumber\")}\r\n />\r\n
    \r\n {(trackAndTraceAgreed && (!mobileNoValid || mobileNoEmpty)) && (\r\n

    \r\n Please enter a valid phone number.\r\n

    \r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n {showTAndCError && (\r\n

    \r\n You must agree to Terms and Conditions to continue. If you do not agree, please skip.\r\n

    \r\n )}\r\n {!!errors &&\r\n errors.map((error, index) => {\r\n return (\r\n

    \r\n {error.description}\r\n

    \r\n );\r\n })}\r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n

    {this.props.testAndTraceTitle}

    \r\n

    {this.props.testAndTraceDescription} this.props.privacyPolicyWebModalMenu()}>privacy policy and this.props.termAndConditionsWebModalMenu()}>Ts&Cs

    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n

    By clicking continue you are confirming you are over 18

    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n this.continueButtonHandler(false)}\r\n >\r\n {loading && (
    )}\r\n Submit\r\n \r\n {!this.props.hideSkip &&\r\n this.continueButtonHandler(true)}\r\n >\r\n Skip\r\n \r\n }\r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n\r\n );\r\n\r\n }\r\n}\r\n\r\n\r\n\r\nexport default withAppState(PreOrderMenuDataCapture,\r\n {\r\n mobXProps: ({\r\n restaurant,\r\n privacyPolicyAndTermsConditionsModal,\r\n privacyPolicyAndTermsConditionsModalMenu,\r\n termAndConditionsCopy,\r\n }) => ({\r\n restaurant,\r\n privacyPolicyAndTermsConditionsModal,\r\n privacyPolicyAndTermsConditionsModalMenu,\r\n termAndConditionsCopy,\r\n }),\r\n mobXActions: ({\r\n logout,\r\n termAndConditionsModal,\r\n termAndConditionsWebModalMenu,\r\n privacyPolicyWebModalMenu,\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n setDataCaptureStatusForCurrentRestaurant\r\n }) => ({\r\n logout,\r\n termAndConditionsModal,\r\n termAndConditionsWebModalMenu,\r\n privacyPolicyWebModalMenu,\r\n closePrivacyPolicyTermsAndConditionsModal,\r\n setDataCaptureStatusForCurrentRestaurant,\r\n })\r\n }\r\n);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","// Brand: PizzaExpress\r\n// Flow: PreOrder\r\n\r\nimport React from 'react'\r\n\r\nimport PreOrderDataCapture from \"../../../components/PreOrderDataCapture\"\r\nimport withAppState from '../../../mobx/withAppState';\r\nimport { Steps } from '../../../lib/constants';\r\n\r\nimport milogo from '../../../assets/milano/milano_logo.png';\r\n\r\n\r\nconst PreOrderMenuDataCaptureWrapper = (props) => {\r\n const continueButtonHandler = () => { \r\n props.goToStepWithoutHistory(Steps.PRE_ORDER); \r\n }\r\n\r\n const logo = (\r\n
    \r\n \r\n \"Milano\"\r\n \r\n
    \r\n )\r\n\r\n return \r\n}\r\n\r\nexport default withAppState(PreOrderMenuDataCaptureWrapper, {\r\n mobXActions: ({\r\n goToStepWithoutHistory,\r\n popStep,\r\n }) => ({\r\n goToStepWithoutHistory,\r\n popStep,\r\n })\r\n});","// Brand: Milano\r\n\r\nimport React from 'react';\r\n\r\nimport withAppState from '../../mobx/withAppState'\r\nimport { Steps } from '../../lib/constants';\r\nimport PayAtTableRestaurantSearchWrapper from '../../wrappers/Milano/PayAtTable/RestaurantSearchWrapper';\r\nimport MenuOnlyRestaurantSearchWrapper from '../../wrappers/Milano/MenuOnly/RestaurantSearchWrapper';\r\nimport TablePickerWrapper from '../../wrappers/Milano/PayAtTable/TablePickerWrapper';\r\nimport BillWrapper from '../../wrappers/Milano/PayAtTable/BillWrapper';\r\nimport SplitBillMenuWrapper from '../../wrappers/Milano/PayAtTable/SplitBillMenuWrapper';\r\nimport SplitBillNameWrapper from '../../wrappers/Milano/PayAtTable/SplitBillNameWrapper';\r\nimport ApplyGratuityWrapper from '../../wrappers/Milano/PayAtTable/ApplyGratuityWrapper'\r\nimport ApplyVoucherWrapper from '../../wrappers/Milano/PayAtTable/ApplyVoucherWrapper';\r\nimport PayWrapper from '../../wrappers/Milano/PayAtTable/PayWrapper';\r\nimport PaymentConfirmationWrapper from '../../wrappers/Milano/PayAtTable/PaymentConfirmationWrapper';\r\nimport MenuWrapper from '../../wrappers/Milano/MenuOnly/MenuWrapper';\r\nimport DataCaptureWrapper from '../../wrappers/Milano/MenuOnly/DataCaptureWrapper';\r\n\r\nimport '../../styles/PizzaExpress/App.css';\r\nimport '../../styles/PizzaExpress/TopBanner.css';\r\n\r\n\r\nconst Flow = (props) => {\r\n const { activeStep, isOrderJourney } = props;\r\n\r\n const defaultStep = () => {\r\n if (isOrderJourney) return (\r\n

    Select your restaurant, browse away, click on your favourite dishes to add to your basket as a reminder, then call us over and we'll take your order.

    \r\n
    );\r\n return ;\r\n }\r\n \r\n \r\n return (\r\n <>\r\n {(activeStep === Steps.DEFAULT) && defaultStep()}\r\n {activeStep === Steps.RESTAURANT_SEARCH && }\r\n {activeStep === Steps.PRE_ORDER && }\r\n {activeStep === Steps.PRE_ORDER_DATA_CAPTURE && }\r\n {activeStep === Steps.TABLE_PICKER && }\r\n {activeStep === Steps.BILL && }\r\n {activeStep === Steps.SPLIT_BILL_MENU && }\r\n {activeStep === Steps.SPLIT_BILL_NAME && }\r\n {activeStep === Steps.APPLY_VOUCHER && }\r\n {activeStep === Steps.APPLY_GRATUITY && }\r\n {activeStep === Steps.PAY && }\r\n {activeStep === Steps.PAYMENT_CONFIRMATION && }\r\n \r\n );\r\n}\r\n\r\nexport default withAppState(Flow,\r\n {\r\n mobXProps: ({\r\n activeStep,\r\n isOrderJourney,\r\n restaurant,\r\n }) => ({\r\n activeStep,\r\n isOrderJourney,\r\n restaurant,\r\n }),\r\n }\r\n);","// Brand: Milano\r\n\r\nimport React from \"react\";\r\nimport withAppState from \"../mobx/withAppState\";\r\nimport { Steps, GetStepName } from \"../lib/constants\";\r\nimport TopBanner from \"../components/TopBanner\";\r\nimport ErrorModal from \"../components/ErrorModal\";\r\nimport Modal from \"../components/Modal\";\r\nimport MenuFooter from \"../components/MenuFooter\";\r\nimport Rotate from \"../components/Rotate\";\r\nimport Legal from \"../components/Legal\";\r\nimport Footer from \"../components/Footer\";\r\nimport Header from \"../components/Header\";\r\n\r\nimport Flow from \"./Milano/PayAtTable\";\r\nimport \"../styles/PizzaExpress/App.css\";\r\nimport \"../styles/PizzaExpress/TopBanner.css\";\r\nimport \"../styles/PizzaExpress/Menu.css\";\r\nimport milogo from \"../assets/milano/milano-logo-header.svg\";\r\nimport TagManager from \"react-gtm-module\";\r\nimport Cookies from \"js-cookie\";\r\nimport twitterIcon from '../assets/img/icons/twitter.svg';\r\nimport instagramIcon from '../assets/img/icons/instagram.svg';\r\nimport facebookIcon from '../assets/img/icons/facebook.svg';\r\nimport deliveryMan from '../assets/img/deliveryMan.svg';\r\n\r\n\r\n\r\nconst uuidv4 = require(\"uuid/v4\");\r\n\r\nclass Milano extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n acceptCookieSet: false,\r\n };\r\n }\r\n\r\n getRestaurantNameFromUrl = () => {\r\n var pathName = window.location.pathname.substr(1);\r\n var pathArray = pathName.split('/');\r\n if (!pathArray || pathArray[0].toLowerCase() == 'restaurant-menu' || pathArray[0] == '') {\r\n return null;\r\n }\r\n return pathArray[0];\r\n }\r\n\r\n async componentDidMount() {\r\n document.title = \"Menu | Milano\";\r\n let culture = { symbol: \"\", language: \"en-IE\", currency: null };\r\n this.props.setCurrency(culture);\r\n this.props.setCanSignup(false);\r\n this.props.setHasSocialLinks(false);\r\n this.props.setComanyName(\"Milano\");\r\n this.props.setApplySoftOtIn(false);\r\n this.props.setReturnHref(\"https://milano.ie/\");\r\n const urlParams = new URLSearchParams(window.location.search);\r\n var isOrder = urlParams.get(\"order\");\r\n var isCheckIn = urlParams.get(\"checkin\");\r\n this.props.setIsOrderJourney(isOrder !== null || isCheckIn !== null);\r\n this.props.setIsCheckInJourney(isCheckIn !== null);\r\n let splitBillSessionToken = Cookies.get(\"SPLIT_BILL_SESSION_TOKEN\");\r\n\r\n var restaurantNameFromUrl = this.getRestaurantNameFromUrl();\r\n\r\n this.setState({ acceptCookieSet: this.props.hasAcceptedCookies() });\r\n\r\n const response = await fetch(`api/Setup`);\r\n\r\n let restaurant = null;\r\n\r\n if (restaurantNameFromUrl != null) {\r\n restaurant = await fetch(`api/Restaurant/GetSingleRestaurantFromVanityName/${restaurantNameFromUrl}`);\r\n }\r\n\r\n if (restaurantNameFromUrl !== null) {\r\n const restaurantData = await restaurant.json();\r\n console.log(restaurantData);\r\n this.props.selectRestaurant(restaurantData)\r\n this.props.goToStepWithoutHistory(Steps.PRE_ORDER);\r\n }\r\n\r\n if (response.status === 200) {\r\n let data;\r\n try {\r\n data = await response.json();\r\n const gtmId = data.googleTagManagerId;\r\n if (gtmId) {\r\n TagManager.initialize({\r\n gtmId,\r\n dataLayerName: \"PageDataLayer\",\r\n });\r\n }\r\n } catch (err) { }\r\n }\r\n\r\n if (splitBillSessionToken == null) {\r\n var uuid = uuidv4();\r\n Cookies.set(\"SPLIT_BILL_SESSION_TOKEN\", uuid, { expires: 90, path: \"\" });\r\n this.props.setSplitBillSessionToken(uuid);\r\n } else {\r\n this.props.setSplitBillSessionToken(splitBillSessionToken);\r\n }\r\n }\r\n\r\n render() {\r\n const { activeStep, submittingPayment, isOrderJourney } = this.props;\r\n var footerMargin =\r\n (activeStep === Steps.BILL ||\r\n activeStep === Steps.APPLY_GRATUITY ||\r\n activeStep === Steps.PAY ||\r\n activeStep === Steps.REGISTER) &&\r\n submittingPayment === false;\r\n\r\n var menuJourneyHeader =\r\n isOrderJourney &&\r\n (this.props.activeStep === Steps.DEFAULT ||\r\n this.props.activeStep === Steps.PRE_ORDER ||\r\n this.props.activeStep === Steps.PRE_ORDER_DATA_CAPTURE);\r\n\r\n const pageName = GetStepName(this.props.activeStep);\r\n const tagManagerArgs = {\r\n dataLayer: {\r\n restaurantId: this.props.restaurant?.id,\r\n tableNumber: this.props.tableNumber,\r\n page: pageName,\r\n },\r\n dataLayerName: \"PageDataLayer\",\r\n };\r\n TagManager.dataLayer(tagManagerArgs);\r\n if (!window.sessioncamConfiguration)\r\n window.sessioncamConfiguration = new Object();\r\n\r\n window.sessioncamConfiguration.SessionCamPath = \"\";\r\n window.sessioncamConfiguration.SessionCamPageName = pageName;\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n {menuJourneyHeader === true \r\n ? ()\r\n : (\r\n <>\r\n
    } />\r\n
    \r\n
    \r\n } />\r\n \r\n
    \r\n \r\n
    \r\n \r\n )}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withAppState(Milano, {\r\n mobXProps: ({\r\n sourceIsApp,\r\n activeStep,\r\n submittingPayment,\r\n modalActive,\r\n errorModalMessage,\r\n privacyPolicyAndTermsConditionsModal,\r\n isOrderJourney,\r\n tableNumber,\r\n restaurant,\r\n brandTermConditions,\r\n }) => ({\r\n sourceIsApp,\r\n activeStep,\r\n submittingPayment,\r\n modalActive,\r\n errorModalMessage,\r\n privacyPolicyAndTermsConditionsModal,\r\n isOrderJourney,\r\n tableNumber,\r\n restaurant,\r\n brandTermConditions,\r\n }),\r\n mobXActions: ({\r\n setSourceIsAppTrue,\r\n setAppPlatform,\r\n selectRestaurant,\r\n goToStepWithoutHistory,\r\n setSplitBillSessionToken,\r\n setIsOrderJourney,\r\n setCurrency,\r\n setCanSignup,\r\n setHasSocialLinks,\r\n setComanyName,\r\n setReturnHref,\r\n hasAcceptedCookies,\r\n setIsCheckInJourney,\r\n setApplySoftOtIn,\r\n }) => ({\r\n setSourceIsAppTrue,\r\n setAppPlatform,\r\n selectRestaurant,\r\n goToStepWithoutHistory,\r\n setSplitBillSessionToken,\r\n setIsOrderJourney,\r\n setCurrency,\r\n setCanSignup,\r\n setHasSocialLinks,\r\n setComanyName,\r\n setReturnHref,\r\n hasAcceptedCookies,\r\n setIsCheckInJourney,\r\n setApplySoftOtIn,\r\n }),\r\n});\r\n","import React from \"react\";\r\n\r\nimport \"./App.css\";\r\n\r\nimport \"./styles/app/TopBanner.css\";\r\nimport \"./styles/app/TablePicker.css\";\r\nimport \"./styles/app/SplitBill.css\";\r\nimport \"./styles/app/SplitBillMenu.css\";\r\nimport \"./styles/app/Rotate.css\";\r\nimport \"./styles/app/RestaurantSearch.css\";\r\nimport \"./styles/app/RegistrationForm.css\";\r\nimport \"./styles/app/PaymentConfirmation.css\";\r\nimport \"./styles/app/ApplePayButton.css\";\r\nimport \"./styles/app/PayBy.css\";\r\nimport \"./styles/app/OrderOrPay.css\";\r\nimport \"./styles/app/Numpad.css\";\r\nimport \"./styles/app/Modal.css\";\r\nimport \"./styles/app/MainLoading.css\";\r\nimport \"./styles/app/Loading.css\";\r\nimport \"./styles/app/Legal.css\";\r\nimport \"./styles/app/Home.css\";\r\nimport \"./styles/app/LoginForm.css\";\r\nimport \"./styles/app/Footer.css\";\r\nimport \"./styles/app/ErrorModal.css\";\r\nimport \"./styles/app/Bill.css\";\r\nimport \"./styles/app/ApplyVoucher.css\";\r\nimport \"./styles/app/ApplyGratuity.css\";\r\nimport \"./styles/app/AllergensFilter.css\";\r\nimport \"./styles/app/NavMenu.css\";\r\nimport \"./styles/app/MenuFooter.css\";\r\nimport \"./styles/app/Menu.css\";\r\nimport \"./styles/app/MenuHome.css\";\r\nimport \"./styles/app/MenuItem.css\";\r\nimport \"./styles/app/Basket.css\";\r\nimport \"./styles/app/MenuCheckin.css\";\r\nimport \"./styles/app/MenuErrorModal.css\";\r\nimport \"./Firefox_fix.css\"; //Css for Firefox\r\nimport \"./Safari10_1.css\"; //Css for Safari 10.1+\r\nimport \"./screenSizes.css\";\r\n\r\n// import Flow from './flows/Milano';\r\nimport Flow from './flows/Milano';\r\n\r\nexport default () => ;\r\n","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register () {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Lets check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl);\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW (swUrl) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker (swUrl) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister () {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import 'bootstrap/dist/css/bootstrap.css';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport { unregister } from './registerServiceWorker';\r\n\r\nconst rootElement = document.getElementById('root');\r\n\r\nReactDOM.render(\r\n ,\r\n rootElement);\r\n\r\nunregister();\r\n"],"sourceRoot":""}