(self.webpackChunkCustomerApp=self.webpackChunkCustomerApp||[]).push([[2410],{88369:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.BackToTopStyle=void 0;var r=i(a(73457)),n=a(83209),o=a(33484),s={arrowIconContainer:{position:(0,a(12834).isWeb)()?"fixed":"relative",bottom:120,right:10,alignItems:"flex-end",justifyContent:"flex-end",color:n.Colors.white},arrowIconBackground:{width:40,height:40,borderRadius:20,backgroundColor:n.Colors.textMain,justifyContent:"center",alignItems:"center"}},l={arrowIconContainer:{position:"fixed",bottom:120,right:95,alignItems:"flex-end",justifyContent:"flex-end",color:n.Colors.white},arrowIconBackground:{width:40,height:40,borderRadius:20,backgroundColor:n.Colors.textMain,justifyContent:"center",alignItems:"center"}};t.BackToTopStyle=r.default.create((0,o.mergeWebTabletMobileStyle)(s,{},l));!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Styles/BackToTopStyle.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Styles/BackToTopStyle.js")}}()},80315:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.alphabets=t.WEB_LINK=t.USEFUL_LINKS=t.UN_SUBSCRIBE=t.TOP_CUISINES_SEC=t.TOP_CUISINES=t.TOP_CUISINE=t.SCREEN_NAME=t.NAVIGATION=t.MODAL=t.LOCATIONS_SEC=t.LOCATIONS=t.LOCATION=t.LANGUAGE=t.HEADER_HEIGHT=t.FOOTER_SECTIONS=t.FOOTER_RESTAURANTS_LIST=t.FOODHUB_RESELLER_URL=t.FOODHUB_FOR_BUSINESS=t.FOODHUB_CARERS_URL=t.FOODHUB_BECAME_A_PARTNER=t.ELEMENT_TYPE=t.CUSTOMER_WEB_SEC=t.CUSTOMER_WEB_FOOTER=t.CUSTOMER_SERVICES_SEC=t.CUSTOMER_SERVICES=t.CUISINE_COLUMN_SIZE=t.CONTACT_US_URL=t.BRAND_URL=t.BLOG_URL=t.ACCESSIBILITY_LABEL=void 0;var i=a(33638),r=a(11143),n=a(93578),o=a(33484),s=a(26539),l=t.NAVIGATION="navigation",_=t.WEB_LINK="web_link",d=t.MODAL="MODAL",E=t.CONTACT_US_URL="https://help.foodhub.com/portal/en/home",u=t.BRAND_URL="https://brand.foodhub.co.uk",T=t.BLOG_URL="https://blog.foodhub.com/",c=t.FOODHUB_CARERS_URL="https://foodhubcareers.com/",A=t.FOODHUB_RESELLER_URL="https://reseller.foodhub.com/",S=(t.FOODHUB_BECAME_A_PARTNER="https://foodhubforbusiness.com/partner-with-foodhub/",t.FOODHUB_FOR_BUSINESS="https://foodhubforbusiness.com/"),p=t.CUSTOMER_WEB_SEC=function(e,t,a,o,s){var E,u=[];return u.push({key:"ordernow",text:"ORDER_NOW",view_id:n.VIEW_ID.CUSTOMER_WEB+"_ordernow",redirect:l,link:r.SCREEN_OPTIONS.MENU_SCREEN.route_name},{key:"reviews",text:"REVIEWS",view_id:n.VIEW_ID.CUSTOMER_WEB+"_reviews",redirect:l,link:r.SCREEN_OPTIONS.VIEW_ALL_REVIEWS.route_name}),t&&u.push({key:"tableBooking",text:"TABLE_BOOKING",view_id:n.VIEW_ID.CUSTOMER_WEB+"_tableBooking",redirect:l,link:r.SCREEN_OPTIONS.TABLE_BOOKING.route_name}),e&&u.push({key:"loyaltyPoints",text:"LOYALTY_POINTS",view_id:n.VIEW_ID.CUSTOMER_WEB+"_loyaltyPoints",redirect:l,link:r.SCREEN_OPTIONS.LOYALTY_POINTS.route_name}),u.push({key:"contactUs",text:"CONTACT_US",view_id:n.VIEW_ID.CUSTOMER_WEB+"_contactUs",redirect:l,link:r.SCREEN_OPTIONS.TAKEAWAY_DETAILS.route_name},!a&&(null==s||null==(E=s.toString())?void 0:E.toLowerCase())!==i.CLIENT_TYPE.RESELLER&&{key:"foodhubForBusiness",text:"FOODHUB_FOR_BUSINESS",view_id:n.VIEW_ID.CUSTOMER_WEB+"_foodhubForBusiness",redirect:_,link:S},{key:"termsAndConditions",text:"TERMS_AND_CONDITIONS",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_termsAndConditions",link:r.SCREEN_OPTIONS.TERMS_AND_CONDITIONS.route_name,redirect:l},{key:"termsOfUse",text:"TERMS_OF_USE",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_termsOfUse",link:r.SCREEN_OPTIONS.TERMS_OF_USE.route_name,redirect:l},{key:"privacyPolicy",text:"PRIVACY_POLICY",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_privacyPolicy",link:r.SCREEN_OPTIONS.PRIVACY_POLICY.route_name,redirect:l},{key:"allergyInformation",text:"ALLERGY_INFORMATION",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_allergyInformation",link:r.SCREEN_OPTIONS.ALLERGY_INFORMATION.route_name,redirect:l},{key:"unsubscribe",text:"UNSUBSCRIBE",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_unsubscribe",redirect:d}),o&&u.push({key:"cookiesPolicy",text:"COOKIES_POLICY",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_cookiesPolicy",link:r.SCREEN_OPTIONS.COOKIES.route_name,redirect:l}),u},O=t.CUSTOMER_SERVICES_SEC=function(e,t,a){var i,S,p,O,I,y,L=[];(L.push({key:"aboutUs",text:"ABOUT_US",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_aboutUs",link:r.SCREEN_OPTIONS.ABOUT_US.route_name,redirect:l}),(0,o.isFoodHubApp)()&&t===s.T2SConfig.country.UK&&L.push({key:"careers",text:"CAREERS",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_careers",redirect:_,link:c}),((0,o.isFoodHubApp)()||null!=e&&null!=(i=e.features)&&i.contactUs)&&L.push({key:"contactUs",text:"CONTACT_US",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_contactUs",redirect:(0,o.isFoodHubApp)()?_:l,link:(0,o.isFoodHubApp)()?E:r.SCREEN_OPTIONS.CONTACT_US.route_name}),(0,o.isFoodHubApp)()&&L.push({key:"blog",text:"BLOG",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_blog",redirect:_,link:T}),(0,o.isValidString)(null==e||null==(S=e.pages)?void 0:S.becomeAPartnerLink))&&L.push({key:"becomePartner",text:"BECOME_A_PARTNER",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_becomePartner",redirect:_,link:null==e||null==(O=e.pages)?void 0:O.becomeAPartnerLink});((0,o.isFoodHubApp)()&&t===s.T2SConfig.country.UK&&L.push({key:"becomeReseller",text:"BECOME_A_RESELLER",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_becomeReseller",redirect:_,link:A}),(0,o.isValidString)(null==e||null==(p=e.pages)?void 0:p.brand)||(0,o.isFoodHubApp)())&&L.push({key:"ourBrand",text:"OUR_BRAND",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_ourBrand",redirect:_,link:(0,o.isValidString)(null==e||null==(I=e.pages)?void 0:I.brand)?null==e||null==(y=e.pages)?void 0:y.brand:u});return L.push({key:"termsAndConditions",text:"TERMS_AND_CONDITIONS",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_termsAndConditions",link:r.SCREEN_OPTIONS.TERMS_AND_CONDITIONS.route_name,redirect:l},{key:"termsOfUse",text:"TERMS_OF_USE",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_termsOfUse",link:r.SCREEN_OPTIONS.TERMS_OF_USE.route_name,redirect:l},{key:"privacyPolicy",text:"PRIVACY_POLICY",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_privacyPolicy",link:r.SCREEN_OPTIONS.PRIVACY_POLICY.route_name,redirect:l},{key:"unsubscribe",text:"UNSUBSCRIBE",view_id:n.VIEW_ID.CUSTOMER_SERVICES+"_unsubscribe",redirect:d}),a&&L.push({key:"cookiesPolicy",text:"COOKIES_POLICY",view_id:n.VIEW_ID.CUSTOMER_WEB_SERVICES+"_cookiesPolicy",link:r.SCREEN_OPTIONS.COOKIES.route_name,redirect:l}),L},I=t.TOP_CUISINES_SEC=[{key:"indian",text:"INDIAN",view_id:n.VIEW_ID.TOP_CUISINES+"_indian"},{key:"chinese",text:"CHINESE",view_id:n.VIEW_ID.TOP_CUISINES+"_chinese"},{key:"italian",text:"ITALIAN",view_id:n.VIEW_ID.TOP_CUISINES+"_italian"},{key:"pizza",text:"PIZZA",view_id:n.VIEW_ID.TOP_CUISINES+"pizza"},{key:"japanese",text:"JAPANESE",view_id:n.VIEW_ID.TOP_CUISINES+"_japanese"}],y=t.LOCATIONS_SEC=[{key:"carlisle",text:"CARLISLE",view_id:n.VIEW_ID.LOCATIONS+"_carlisle"},{key:"stoke on trent",text:"STOKE_ON_TRENT",view_id:n.VIEW_ID.LOCATIONS+"_stokeOnTrent"},{key:"edinburgh",text:"EDINBURGH",view_id:n.VIEW_ID.LOCATIONS+"_edinburgh"},{key:"cardiff",text:"CARDIFF",view_id:n.VIEW_ID.LOCATIONS+"_cardiff"}],L=t.CUSTOMER_SERVICES="customer_services",C=(t.USEFUL_LINKS="USEFUL_LINKS",t.TOP_CUISINES="cuisines"),f=(t.TOP_CUISINE="cuisine",t.UN_SUBSCRIBE="unsubscribe",t.LOCATIONS="locations");t.LOCATION="location",t.LANGUAGE="language",t.FOOTER_RESTAURANTS_LIST="Restaurants you will love",t.CUSTOMER_WEB_FOOTER=function(e,t,a,i,r){return[{key:L,view_id:n.VIEW_ID.CUSTOMER_WEB,title:"CUSTOMER_SERVICE",data:p(e,t,a,i,r)}]},t.FOOTER_SECTIONS=function(e,t,a){return[{key:L,view_id:n.VIEW_ID.CUSTOMER_SERVICES,title:"CUSTOMER_SERVICE",data:O(e,t,a)},{key:C,view_id:n.VIEW_ID.TOP_CUISINES,title:"TOP_CUISINES",data:I},{key:f,view_id:n.VIEW_ID.LOCATIONS,title:"LOCATIONS",data:y}]},t.alphabets="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t.ACCESSIBILITY_LABEL={VERIFY_PAYMENT:"Verified by Visa",FOODHUB_LOGO:"Logo",WEB_LOGO:"Web_logo",CARDS_IMAGE:"Cards_image"},t.SCREEN_NAME={FOOTER:"footer",NOT_FOUND:"NotFound"},t.HEADER_HEIGHT=80,t.CUISINE_COLUMN_SIZE={SIZE_2:2,SIZE_4:4,SIZE_5:5},t.ELEMENT_TYPE={ANIMATED_FLATLIST:"Animated.flatlist",SECTION_LIST:"SectionList",SECTION_FLATLIST:"SectionFlatList",SCROLL_VIEW:"ScrollView"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Utils/Constants.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Utils/Constants.js")}}()},91420:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.showOrHideTheFooterSection=t.seoFriendlyUrlForCuisines=t.poweredByUrl=t.overRideRouteName=t.isOrders2Me=t.hasGroceries=t.hasGifts=t.getSeoContentForCuisineList=t.getMetaTagsWithDetails=t.getMetaTags=t.getCurrentUrl=t.getAppLinks=t.SOCIAL_LINKS=void 0;var r=i(a(319)),n=a(80315),o=a(33484),s=a(33484),l=a(26539),_=a(77939),d=a(66347),E=a(96961),u=a(71066),T=a(64588),c=(t.getCurrentUrl=function(e){var t="undefined"!=typeof window?window.location.href:"";if(!(0,o.isValidString)(t))return"";if((0,o.isValidString)(e)){var a=""+window.location.origin+e,i=new URL(a);return i.origin+i.pathname}return t},t.SOCIAL_LINKS={facebookUrl:{key:"facebook",image:a(87512),style:"fbSocialIcon"},instagramUrl:{key:"instagram",image:a(52733),style:"socialIcon"},tiktokUrl:{key:"tiktok",image:a(57477),style:"tiktokSocialIcon"},twitterUrl:{key:"twitter",image:a(39015),style:"socialIcon"},youtubeUrl:{key:"youtube",image:a(78541),style:"socialIcon"},linkedinUrl:{key:"linkedin",image:a(34022),style:"socialIcon"}},function(e,t,a,i,r,n,l,_,d,E,u,c){var A,S,p,O,I,y,L,C,f,R,m,g,N,v,h=T.STORE_TYPE_MAPPING[c],b=new RegExp(Object.keys(h).join("|"),"gi"),D=null==e||null==(A=e.replace(/<location name>/g,(0,s.firstLetterUppercase)(t)))||null==(S=A.replace(/<takeaway name>/g,i))||null==(p=S.replace(/<takeaway town>/g,(0,s.firstLetterUppercase)(r)))||null==(O=p.replace(/<cuisine name>/g,(0,s.firstLetterUppercase)(n)))||null==(I=O.replace(/<cuisine location>/g,l))||null==(y=I.replace(/<app name>/g,_))||null==(L=y.replace(/<category name>/g,(0,s.firstLetterUppercase)(d)))||null==(C=L.replace(/<item name>/g,(0,s.firstLetterUppercase)(u)))?void 0:C.replace(b,(function(e){return h[e]}));(D=null==(f=D)||null==(R=f.replace(T.STORE_TYPE_MAPPING.RESTAURANTS_WITH_AMP,T.STORE_TYPE_MAPPING.RESTAURANTS))?void 0:R.replace(T.STORE_TYPE_MAPPING.RESTAURANTS_WITH_AND,T.STORE_TYPE_MAPPING.RESTAURANTS),(0,o.isValidString)(a))?D=null==(m=D)?void 0:m.replace(/<postcode>/g,(0,o.nonFormattedPostCode)(a)):D=null==(g=D)?void 0:g.replace(/ - <postcode>|<postcode>/g,"");(0,o.isValidString)(E)?D=null==(N=D)?void 0:N.replace(/<cuisine>/g,(0,s.firstLetterUppercase)(E)):D=null==(v=D)?void 0:v.replace(/ <cuisine>/g,"");return D});t.getMetaTagsWithDetails=function(e){var t=e.title,a=void 0===t?"":t,i=e.keywords,r=void 0===i?"":i,n=e.description,s=void 0===n?"":n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",E=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",A=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",S=arguments.length>8?arguments[8]:void 0,p=arguments.length>9?arguments[9]:void 0,O=arguments.length>11?arguments[11]:void 0,I=arguments.length>12?arguments[12]:void 0,y=arguments.length>13&&void 0!==arguments[13]?arguments[13]:T.STORE_TYPE.TAKEAWAY;return{title:(0,o.isValidString)(a)?c(a,l,_,d,E,u,A,S,p,O,I,y):"",keywords:(0,o.isValidString)(r)?c(r,l,_,d,E,u,A,S,p,"",I,y):"",description:(0,o.isValidString)(s)?c(s,l,_,d,E,u,A,S,p,"",I,y):""}},t.showOrHideTheFooterSection=function(e,t,a){return e===n.LOCATIONS?t:e!==n.TOP_CUISINES||a},t.getAppLinks=function(e,t,a){var i,r,n="",s="";a?(0,o.isValidElement)(e)&&(n=null==e?void 0:e.ios_link,s=null==e?void 0:e.android_link):t&&(n=null==t||null==(i=t.appUrl)?void 0:i.iosStoreUrl,s=null==t||null==(r=t.appUrl)?void 0:r.androidStoreUrl);return{iosAppUrl:n,playStoreAppUrl:s}},t.getMetaTags=function(e,t,a){return[{property:"og:type",content:"website"},{name:"googletag"}].concat((0,r.default)(e?[{name:"smartbanner:title",content:e}]:[]),[{name:"smartbanner:author",content:"Order Your Food Online"},{name:"smartbanner:price",content:"FREE"},{name:"smartbanner:price-suffix-apple",content:" - On the App Store"},{name:"smartbanner:price-suffix-google",content:" - In Google Play"},{name:"smartbanner:icon-apple",content:"https://takeaway-configs.s3.eu-west-2.amazonaws.com/images/smartbanner-foodhub-logo.svg"},{name:"smartbanner:icon-google",content:"img/logo-app.png"},{name:"smartbanner:button",content:"View"}],(0,r.default)(t?[{name:"smartbanner:button-url-apple",content:t}]:[]),(0,r.default)(a?[{name:"smartbanner:button-url-google",content:a}]:[]),[{name:"smartbanner:enabled-platforms",content:"android"},{name:"smartbanner:enabled-platforms",content:"ios"}])},t.seoFriendlyUrlForCuisines=function(e){return(0,o.isValidString)(e)?decodeURI(null==e?void 0:e.toLowerCase()):""},t.poweredByUrl=function(e,t,a,i){var r=null==l.T2SConfig?void 0:l.T2SConfig.website_url[Object.keys(null==l.T2SConfig?void 0:l.T2SConfig.website_url).find((function(t){return(null==l.T2SConfig?void 0:l.T2SConfig.country[t])===e}))];return"https://"+(r=i&&!(0,o.isFoodHubApp)()?i:r)+"/"+(0,o.seoFriendlyUrl)(t)+"/"+(0,o.seoFriendlyUrl)(a)+(null==_.redirectURL?void 0:_.redirectURL.ORDERNOW)},t.isOrders2Me=function(){var e;return(null!=(e=(0,o.getWebHost)())?e:"").includes("."+u.ORDERS2ME_WEBSITE)},t.overRideRouteName=function(e,t){return(0,o.isValidString)(t)?t:e},t.hasGroceries=function(e,t){return e&&(0,o.isArrayNonEmpty)(t)},t.hasGifts=function(e,t){return e&&(0,o.isArrayNonEmpty)(t)},t.getSeoContentForCuisineList=function(e,t,a){var i,r,s=(0,o.isBigfoodieApp)();if((0,o.isValidElement)(t)){var l=(0,E.replaceHyphenWithSpace)(a),_=(0,E.capitalizeFirstLetter)(l);return(0,o.isValidElement)(_)&&(i=d.LOCALIZATION_STRINGS.formatString(s?d.LOCALIZATION_STRINGS.CHECKOUT_CUISINES_BIGFOODIE_HEADLINE:d.LOCALIZATION_STRINGS.SELECTED_CUISINES_HEADLINE,decodeURI(_)),r=d.LOCALIZATION_STRINGS.formatString(s?d.LOCALIZATION_STRINGS.BIGFOODIE_HAS_IT_ALL_CONTENT:d.LOCALIZATION_STRINGS.SELECTED_CUISINES_CONTENT,decodeURI(_))),{headLine:i,content:r}}if((0,o.isValidElement)(e)){if(e===n.LOCATIONS)return{headLine:i=s?d.LOCALIZATION_STRINGS.FIND_YOUR_PERFECT_WITH_BIGFOODIE_HEADLINE:d.LOCALIZATION_STRINGS.LOCATION_HEADLINE,content:r=s?d.LOCALIZATION_STRINGS.BIGFOODIE_FROM_LOCAL_RESTAURANT_CONTENT:d.LOCALIZATION_STRINGS.LOCATION_CONTENT};if(e===n.TOP_CUISINES)return{headLine:i=s?d.LOCALIZATION_STRINGS.BIGFOODIE_FAVOURITES_HEADLINE:d.LOCALIZATION_STRINGS.CUISINES_ALL_HEADLINE,content:r=s?d.LOCALIZATION_STRINGS.BIGFOODIE_CRAVINGS_CONTENT:d.LOCALIZATION_STRINGS.CUISINES_ALL_CONTENT}}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Utils/Helper.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Utils/Helper.js")}}()},20222:function(e,t,a){var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(a(63038)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=O(t);if(a&&a.has(e))return a.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,a&&a.set(e,i),i}(a(32330)),o=i(a(73457)),s=i(a(67177)),l=a(88369),_=a(12770),d=i(a(99155)),E=a(91050),u=a(83209),T=a(92231),c=a(11143),A=a(33484),S=a(16610),p=a(85893);function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(O=function(e){return e?a:t})(e)}t.default=function(e){var t,a,i=e.show,O=e.handleElementScroll,I=e.isLandscapeTabletWebDevice,y=(0,T.useNavigation)(),L=(null==(t=y.getState())?void 0:t.routes.length)-1,C=null==(a=y.getState())?void 0:a.routes[L],f=(0,n.useState)(!1),R=(0,r.default)(f,2),m=R[0],g=R[1],N=(0,S.useSelector)((function(e){return e.basketState.localCartItemQuantityAndPrice})),v=(0,A.isValidElement)(N)&&!I,h=(0,n.useCallback)((function(){(0,A.isValidFunction)(O)?O():window.scrollTo({top:0,behavior:"auto"})}),[O]);(0,n.useEffect)((function(){var e=function(){var e=(document.documentElement.scrollTop||document.body.scrollTop)>50;m!==e&&g(e)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[m,C]);var b=(0,n.useMemo)((function(){return m&&(null==C?void 0:C.name)!==c.SCREEN_OPTIONS.QUICK_FEEDBACK.route_name}),[null==C?void 0:C.name,m]),D=(0,n.useMemo)((function(){var e;return o.default.flatten([l.BackToTopStyle.arrowIconContainer,v?{bottom:(null==(e=l.BackToTopStyle.arrowIconContainer)?void 0:e.bottom)+30}:null])}),[v]);return(0,p.jsx)(p.Fragment,{children:b||i?(0,p.jsx)(_.T2STouchableOpacity,{onPress:h,style:D,children:(0,p.jsx)(s.default,{style:l.BackToTopStyle.arrowIconBackground,children:(0,p.jsx)(d.default,{name:E.FONT_ICON.UP,size:18,color:u.Colors.white})})}):null})};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/BackToTop.web.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/BackToTop.web.js")}}()},51268:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HomeNetwork=void 0;var i=a(27061),r=a(33484),n=a(66252),o=a(46375),s=a(26625),l=a(12834);t.HomeNetwork={getRecentTakeawayCall:function(){return{method:i.NETWORK_METHOD.GET,url:"/consumer/recent/takeaway?app_name="+(0,s.getAppType)(),isAuthRequired:!0,excludeStoreId:!0}},getRecentOrders:function(e){var t={};return(0,r.isCustomerApp)()&&(0,r.isValidString)(e.storeID)&&(t={store:e.storeID}),{method:i.NETWORK_METHOD.GET,url:"/consumer/menu/recent/order?canceled_orders=true&includes=review&app_name="+(0,s.getAppType)(),config:{headers:t},isAuthRequired:!0,excludeStoreId:!0}},getFoodHubTotalSavingsCall:function(){return{method:i.NETWORK_METHOD.GET,url:"/foodhub/last_week_savings?api_token="+n.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name="+n.BASE_API_CONFIG.applicationName,isAuthRequired:!1}},getFooterUsefulLinksCall:function(){return{method:i.NETWORK_METHOD.GET,url:(0,l.getFooterUsefulLinksUrl)(),isAuthRequired:!1}},fuzzySearchAutoComplete:function(e){var t=(0,r.isValidString)(null==e?void 0:e.sessiontoken)?e.sessiontoken:(0,o.randomSessionToken)();return{method:i.NETWORK_METHOD.POST,url:"/franchise/autocomplete?api_token="+n.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name="+n.BASE_API_CONFIG.applicationName+"&sessiontoken="+t+"&platform_id="+n.BASE_PRODUCT_CONFIG.platform_id+"&product_id="+n.BASE_PRODUCT_CONFIG.product_id+"&uuid="+e.deviceId,data:{search:e.text,sessiontoken:t},isAuthRequired:!1}}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Network/HomeNetwork.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Network/HomeNetwork.js")}}()},89917:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateFooterUsefulLinks=t.showDeliveryCollectionPopup=t.setAppCurrentStateAction=t.resetTextInputState=t.resetTakeawayRelatedOrderResponse=t.resetAutoCompletePlacesAction=t.postcodeInput=t.handleFooterExpandAction=t.getUserAddressFormBackground=t.getRecentTakeawayAction=t.getRecentOrders=t.getFooterUsefulLinks=t.getFoodHubTotalSavingsAction=t.getAutoCompletePlacesAction=t.cancelGetUserAddressFormBackground=void 0;var i=a(33603);t.getRecentTakeawayAction=function(){return{type:i.HOME_TYPE.GET_RECENT_TAKEAWAYS}},t.getRecentOrders=function(){return{type:i.HOME_TYPE.GET_RECENT_ORDERS}},t.getFoodHubTotalSavingsAction=function(){return{type:i.HOME_TYPE.GET_FOODHUB_TOTALSAVINGS}},t.getAutoCompletePlacesAction=function(e,t){return{type:i.HOME_TYPE.GET_AUTOCOMPLETE_PLACES,text:e,sessiontoken:t}},t.resetAutoCompletePlacesAction=function(){return{type:i.HOME_TYPE.RESET_AUTOCOMPLETE_PLACES}},t.resetTakeawayRelatedOrderResponse=function(){return{type:i.HOME_TYPE.RESET_RECENT_TAKEAWAY_RESPONSE}},t.postcodeInput=function(e){return{type:i.HOME_TYPE.POSTCODE_INPUT,payload:e}},t.resetTextInputState=function(){return{type:i.HOME_TYPE.RESET_POSTCODE_TEXT_INPUT}},t.getUserAddressFormBackground=function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:i.HOME_TYPE.GET_USER_ADDRESS_LOCATION_FROM_BACKGROUND,latitude:e,longitude:t,redirectTAList:a,savedAddressResponse:r,isNewUserLocation:n}},t.cancelGetUserAddressFormBackground=function(){return{type:i.HOME_TYPE.CANCEL_GET_ADDRESS}},t.setAppCurrentStateAction=function(e){return{type:i.HOME_TYPE.SET_APP_CURRENT_STATE,payload:e}},t.showDeliveryCollectionPopup=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:i.HOME_TYPE.SHOW_DELIVERY_COLLECTION_POPUP,value:e,isUserShowDeliveryCollectionPopup:t}},t.updateFooterUsefulLinks=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:i.HOME_TYPE.GET_FOOTER_USEFUL_LINKS_SUCCESS,payload:e}},t.getFooterUsefulLinks=function(){return{type:i.HOME_TYPE.GET_FOOTER_USEFUL_LINKS}},t.handleFooterExpandAction=function(e){return{type:i.HOME_TYPE.FOOTER_EXPANSION,payload:e}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeAction.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeAction.js")}}()},97921:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(33603),r={recentTakeawayResponse:null,recentOrdersResponse:null,foodHubTotalSavings:null,autocompletePlaces:null,recentOrdersOfTakeaway:null,getDeliveryCollectionPopup:!1,userDeliveryCollectionPopup:!1,postcode:"",isAppOpen:!1,footerUsefulLinks:[],footerExpansion:a(80315).CUSTOMER_SERVICES};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.HOME_TYPE.GET_RECENT_TAKEAWAYS_SUCCESS:return Object.assign({},e,{recentTakeawayResponse:t.payload});case i.HOME_TYPE.GET_FOODHUB_TOTALSAVINGS_SUCCESS:return Object.assign({},e,{foodHubTotalSavings:t.payload});case i.HOME_TYPE.GET_RECENT_ORDERS_SUCCESS:return Object.assign({},e,{recentOrdersResponse:t.payload});case i.HOME_TYPE.GET_AUTOCOMPLETE_PLACES_SUCCESS:return Object.assign({},e,{autocompletePlaces:t.payload});case i.HOME_TYPE.RESET_AUTOCOMPLETE_PLACES:return Object.assign({},e,{autocompletePlaces:null});case i.HOME_TYPE.MODIFY_RECENT_TAKEAWAY_RESPONSE:return Object.assign({},e,{recentOrdersOfTakeaway:t.payload});case i.HOME_TYPE.RESET_RECENT_TAKEAWAY_RESPONSE:return Object.assign({},e,{recentOrdersOfTakeaway:null});case i.HOME_TYPE.POSTCODE_INPUT:return Object.assign({},e,{postcode:t.payload});case i.HOME_TYPE.RESET_POSTCODE_TEXT_INPUT:return Object.assign({},e,{postcode:""});case i.HOME_TYPE.SET_APP_CURRENT_STATE:return Object.assign({},e,{isAppOpen:t.payload});case i.HOME_TYPE.SHOW_DELIVERY_COLLECTION_POPUP:return Object.assign({},e,{getDeliveryCollectionPopup:t.value,userDeliveryCollectionPopup:t.isUserShowDeliveryCollectionPopup});case i.HOME_TYPE.GET_FOOTER_USEFUL_LINKS_SUCCESS:return Object.assign({},e,{footerUsefulLinks:t.payload});case i.HOME_TYPE.FOOTER_EXPANSION:return Object.assign({},e,{footerExpansion:t.payload});default:return e}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeReducer.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeReducer.js")}}()},53577:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.makeGetAutocompletePlacesCall=m,t.makeGetFoodhubTotalSavingsCall=f,t.makeGetFooterUsefulLinksCall=g,t.makeGetRecentOrdersCall=R,t.makeGetRecentTakeawayCall=C;var i=a(34857),r=a(33484),n=a(39759),o=a(51268),s=a(33603),l=a(33202),_=a(76782),d=a(66347),E=a(58386),u=a(4466),T=a(11143),c=a(99404),A=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=L(t);if(a&&a.has(e))return a.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,a&&a.set(e,i),i}(a(31668)),S=a(78669),p=a(57173),O=a(78628),I=a(75833),y=a(33638);function L(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(L=function(e){return e?a:t})(e)}function*C(e){try{if(yield(0,i.select)(_.selectHasUserLoggedIn)){var t=yield(0,l.apiCall)(o.HomeNetwork.getRecentTakeawayCall,e);(0,r.isValidElement)(t)?yield(0,i.put)({type:s.HOME_TYPE.GET_RECENT_TAKEAWAYS_SUCCESS,payload:t}):(0,n.showErrorMessage)(d.LOCALIZATION_STRINGS.WENT_WRONG)}}catch(e){(0,n.showErrorMessage)(e)}}function*f(e){try{var t=yield(0,l.apiCall)(o.HomeNetwork.getFoodHubTotalSavingsCall,e);(0,r.isValidElement)(t)&&(yield(0,i.put)({type:s.HOME_TYPE.GET_FOODHUB_TOTALSAVINGS_SUCCESS,payload:t}))}catch(e){}}function*R(){try{var e,t,a=yield(0,i.select)(_.selectStoreId),u=yield(0,i.select)(_.selectHasUserLoggedIn),S=null==A||null==(e=A.navigationRef)||null==(t=e.current)?void 0:t.getCurrentRoute();if(u){var L=yield(0,l.apiCall)(o.HomeNetwork.getRecentOrders,{storeID:(0,r.isValidString)(a)?a:void 0});if((0,r.isValidElement)(L)){var C;if((0,r.isArrayNonEmpty)(L.data)&&(0,c.showReview)(L.data[0]))if((0,r.isValidElement)(null==S?void 0:S.name)&&S.name!==T.SCREEN_OPTIONS.PBL_PAGE_PAYMENT.route_name)(yield(0,i.select)((function(e){return e.foodHubHomeState.getDeliveryCollectionPopup})))&&(yield(0,i.put)({type:s.HOME_TYPE.SHOW_DELIVERY_COLLECTION_POPUP,value:!1,isUserShowDeliveryCollectionPopup:!0})),!(0,p.isOrderPlacedOneMonthBefore)(L.data[0].order_placed_on,L.data[0].timeZone)||L.data[0].status===I.ORDER_STATUS.CANCEL_ORDER&&(null==(C=L.data[0].cancelled_by)||null==C.toLowerCase?void 0:C.toLowerCase())===y.CANCELLED_BY.CONSUMER||(yield(0,i.put)((0,O.showQuickReviewFeedbackAction)(!0)));yield(0,i.put)({type:s.HOME_TYPE.GET_RECENT_ORDERS_SUCCESS,payload:L}),yield(0,i.put)({type:E.ORDER_MANAGEMENT_TYPE.DISABLE_RE_ORDER_BUTTON_ACTION,payload:!1})}else(0,n.showErrorMessage)(d.LOCALIZATION_STRINGS.WENT_WRONG)}}catch(e){(0,n.showErrorMessage)(e)}}function*m(e){try{var t,a=(0,r.isValidElement)(e)&&(0,r.isValidElement)(e.isFuzzySearch)&&e.isFuzzySearch,_=yield(0,S.getDeviceUniqueId)();t=yield(0,l.apiCall)(o.HomeNetwork.fuzzySearchAutoComplete,Object.assign({},e,{deviceId:_})),(0,r.isValidElement)(t)?yield(0,i.put)({type:s.HOME_TYPE.GET_AUTOCOMPLETE_PLACES_SUCCESS,payload:a||(0,r.isValidElement)(t.result)?t.result:t.data}):(0,n.showErrorMessage)(d.LOCALIZATION_STRINGS.WENT_WRONG)}catch(e){(0,n.showErrorMessage)(e)}}function*g(e){try{var t=yield(0,l.apiCall)(o.HomeNetwork.getFooterUsefulLinksCall,e);(0,r.isValidElement)(t)&&(yield(0,i.put)({type:s.HOME_TYPE.GET_FOOTER_USEFUL_LINKS_SUCCESS,payload:t.links||[]}))}catch(e){}}function*N(){try{yield(0,i.fork)(R),yield(0,i.fork)(C)}catch(e){(0,n.showErrorMessage)(e)}}t.default=function*(){yield(0,i.all)([(0,i.takeLatest)(s.HOME_TYPE.GET_RECENT_TAKEAWAYS,C),(0,i.takeLatest)(s.HOME_TYPE.GET_RECENT_ORDERS,R),(0,i.takeLatest)(s.HOME_TYPE.GET_FOOTER_USEFUL_LINKS,g),(0,i.takeLatest)(s.HOME_TYPE.GET_AUTOCOMPLETE_PLACES,m),(0,i.takeLatest)(s.HOME_TYPE.GET_FOODHUB_TOTALSAVINGS,f),(0,i.takeLatest)(u.TOTAL_SAVING_TYPE.REFRESH_FH_HOME_SCREEN_USER_DATA,N)])};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeSaga.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeSaga.js")}}()},33603:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HOME_TYPE=void 0;t.HOME_TYPE={GET_RECENT_TAKEAWAYS:"get_recent_takeaways",GET_RECENT_TAKEAWAYS_SUCCESS:"get_recent_takeaways_success",GET_RECENT_ORDERS:"get_recent_orders",GET_RECENT_ORDERS_SUCCESS:"get_recent_orders_success",GET_FOODHUB_TOTALSAVINGS:"get_foodhub_totalsavings",GET_FOODHUB_TOTALSAVINGS_SUCCESS:"get_foodhub_totalSavings_success",GET_AUTOCOMPLETE_PLACES:"get_autocomplete_places",GET_AUTOCOMPLETE_PLACES_SUCCESS:"get_autocomplete_places_success",RESET_AUTOCOMPLETE_PLACES:"reset_autocomplete_places",MODIFY_RECENT_TAKEAWAY_RESPONSE:"MODIFY_RECENT_TAKEAWAY_RESPONSE",RESET_RECENT_TAKEAWAY_RESPONSE:"reset_recent_takeaway_response",POSTCODE_INPUT:"postcode_input",RESET_POSTCODE_TEXT_INPUT:"reset_postcode_text_input",GET_USER_ADDRESS_LOCATION_FROM_BACKGROUND:"get_address_for_user_location_background",CANCEL_GET_ADDRESS:"cancel_get_address",SET_APP_CURRENT_STATE:"set_app_current_state",SHOW_DELIVERY_COLLECTION_POPUP:"show_delivery_collection_popup",GET_FILTER_MENU_RECOMMENDATION:"get_filter_menu_recommendation",GET_FOOTER_USEFUL_LINKS:"get_footer_useful_links",GET_FOOTER_USEFUL_LINKS_SUCCESS:"get_footer_useful_links_success",FOOTER_EXPANSION:"footer_expansion"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeType.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Redux/HomeType.js")}}()},46375:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.deliveryOrderSortByOrderPlacedTime=t.ValidatePostCodeUK=void 0,t.extractValueString=function(e){return(0,n.isValidElement)(e)&&(0,n.isValidString)(e.value)?e.value:""},t.renderSummaryItems=t.randomSessionToken=t.isPendingOrderNotAvailable=t.getTakeawayImage=t.getStickyHeaderOpacityInterpolation=t.getShareImage=t.getRecentOrderedDate=t.getPostCodeFromRecentOrder=t.getOrderItemsWithQuantity=t.getModifiedReviews=t.getModifiedRating=t.getModifiedName=t.getModifiedImageURL=t.getLatestOrder=t.getDeliveryOrders=void 0;var r=i(a(319)),n=a(33484),o=i(a(72918)),s=a(66347),l=i(a(95998)),_=a(12834),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(t);if(a&&a.has(e))return a.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,a&&a.set(e,i),i}(a(30966)),E=a(33638),u=a(86932),T=a(87035);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}var A=l.default.get("window").height/6.66;t.ValidatePostCodeUK=function(e){return!!(0,n.isValidElement)(e)&&(0,n.validateRegex)(E.UK_REGEX_PATTERN,e)},t.getModifiedName=function(e){return(0,n.isValidElement)(e)?e.substring(0,10):""},t.getModifiedRating=function(e){return(0,n.isValidNumber)(e)?parseFloat(e).toFixed(1):(0).toFixed(1)},t.getModifiedReviews=function(e){return(0,n.kFormatter)(e)},t.getModifiedImageURL=function(e){return(0,n.isValidElement)(e)?e:""},t.getRecentOrderedDate=function(e,t,a){if(!(0,n.isValidElement)(e)||!(0,n.isValidString)(e))return"";var i=(0,T.getCountryBaseDateFormat)(a);if((0,n.isValidElement)(t)){var r=(0,o.default)().tz(t).format(i),l=(0,o.default)().tz(t).subtract(1,"days"),_=(0,o.default)().tz(t).add(1,"days");return r===o.default.tz(e,t).format(i)?s.LOCALIZATION_STRINGS.TODAY:(0,o.default)(l).format(i)===o.default.tz(e,t).format(i)?s.LOCALIZATION_STRINGS.YESTERDAY:(0,o.default)(_).format(i)===o.default.tz(e,t).format(i)?s.LOCALIZATION_STRINGS.TOMORROW:o.default.tz(e,t).format(i)}return(0,o.default)(e).format(i)},t.randomSessionToken=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};t.getStickyHeaderOpacityInterpolation=function(e){return null==e?void 0:e.interpolate({inputRange:[0,A-10,A-5,A],outputRange:[0,.7,.8,1]})},t.renderSummaryItems=function(e){if((0,n.isValidElement)(null==e?void 0:e.items)&&Array.isArray(null==e?void 0:e.items)){var t=null==e?void 0:e.items.map((function(e){return e.name})).join(", "),a=null==e?void 0:e.missing_items.map((function(e){return e.name})).join(", ");return((0,n.isValidElement)(t)&&(null==t?void 0:t.length)>0?t:"")+((null==a?void 0:a.length)>0&&(null==t?void 0:t.length)>0?", ":"")+a}return""},t.getTakeawayImage=function(e,t){var a,i,r;return(0,n.isValidElement)(null==e||null==(a=e.store)?void 0:a.website_logo_url)?e.store.website_logo_url:(0,n.isValidElement)(null==e||null==(i=e.store)||null==(r=i.portal_setting)?void 0:r.logo_url)?e.store.portal_setting.logo_url:(0,_.getDefaultTALogoSmall)(t)};var S=t.getDeliveryOrders=function(e){if((0,n.isValidElement)(e))return e.filter((function(e){return"to"===(null==e?void 0:e.sending)}))},p=t.getLatestOrder=function(e,t){var a,i,o;a=(0,n.isValidElement)(e)&&(null==e?void 0:e.length)>0?S(e):[],i=(0,n.isValidElement)(t)&&(null==t?void 0:t.length)>0?S(t):[];var s=[].concat((0,r.default)(a),(0,r.default)(i));return o=O(s),(0,n.isValidElement)(o)&&o.length>0?o[0]:null},O=(t.getPostCodeFromRecentOrder=function(e,t,a){if((0,_.isUKApp)(a)){var i=p(e,t);if((0,n.isValidElement)(null==i?void 0:i.postcode))return i.postcode}},t.deliveryOrderSortByOrderPlacedTime=function(e){return d.orderBy(e,[function(e){return(0,n.isValidElement)(null==e?void 0:e.order_placed_on)&&(0,o.default)(e.order_placed_on)}],["desc"])});t.isPendingOrderNotAvailable=function(e){return!(0,n.isValidElement)(null==e?void 0:e.length)||e.length<=0},t.getOrderItemsWithQuantity=function(e){if((0,n.isValidElement)(null==e?void 0:e.items)&&Array.isArray(null==e?void 0:e.items)){var t=null==e?void 0:e.items.map((function(e){return((0,n.isValidElement)(e.quantity)&&e.quantity>1?e.quantity+"x ":"")+e.name})).join(", "),a=null==e?void 0:e.missing_items.map((function(e){return((0,n.isValidElement)(e.quantity)&&e.quantity>1?e.quantity+"x ":"")+e.name})).join(", ");return((0,n.isArrayNonEmpty)(t)?t:"")+((0,n.isArrayNonEmpty)(a)&&(0,n.isArrayNonEmpty)(t)?", ":"")+a}return""},t.getShareImage=function(e){return e===u.VIEW_ID.SHARE_MESSAGE_IMAGE?a(86653):e===u.VIEW_ID.SHARE_WHATSAPP_IMAGE?a(3398):e===u.VIEW_ID.SHARE_OPTION_IMAGE?a(41669):void 0};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Utils/Helper.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Utils/Helper.js")}}()},93578:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.carousalHeight=t.VIEW_ID=t.SCREEN_NAME=t.HOME_CONSTANTS=void 0;var r=i(a(95998));t.SCREEN_NAME={HOME_SCREEN:"home_screen"},t.VIEW_ID={STEP1:"Step1",LOCATE:"Locate",SELECT:"Select",PAY:"Pay",RELISH:"Relish",RECENT_TAKEAWAY_LIST:"recent_takeaway_list",CARD_VIEW:"card_view",CARD_TAKEAWAY_NAME:"card_takeaway_name",ROW_VIEW:"row_view",RATING_TEXT:"rating_text",STEP_NO_TEXT:"step_no_text",CARD_TITLE:"card_title",ENJOY_FOOD_VIEW:"enjoy_food_view",ENJOY_FOOD_TEXT:"enjoy_food_text",REVIEWS_TEXT:"reviews_text",RECENT_ORDERS_TEXT:"recent_orders_text",CAROUSEL_IMAGE:"carousel_image",CAROUSEL_IMAGE_TEXT:"carousel_image_text",CURRENCY_SYMBOL:"currency_symbol",RENDER_CARDS:"render_cards",RECENT_ORDER_TEXT_VIEW:"recent_orders_text_view",RECENT_ORDERS:"recent_orders",ORDER_STATUS_CONTAINER:"order_status_container",ORDER_STATUS_TEXT:"order_status_text",CLOCK_VIEW:"clock_view",DELIVERY_TEXT_CONTAINER:"delivery_text_container",DELIVERY:"delivery",COLLECTION:"collection",DEFAULT_TIME:"default_time",RECENT_TAKEAWAY:"recent_takeaway",RECENT_TAKEAWAY_TITLE_TEXT:"recent_takeaway_title_text",RATING_ROW_VIEW:"ratings_row_view",SEARCH_BAR_VIEW:"search_bar_view",SEARCH_BAR_INPUT_VIEW:"search_bar_input_view",SEARCH_BAR_CONTAINER:"search_bar_container",GPS_ICON:"gps_icon",FIND_BUTTON:"find_button",FIND_TEXT:"find_text",CLOSE_ICON:"close_icon",CLOSE_ICON_TOUCHID:"close_icon_id",ORDER_STATUS_VIEW:"order_status_view",VIEW_MENU_BTN:"view_menu_btn",OUR_RECOMMENDATION_VIEW_ALL:"our_recommendation_view_all_text",WEBVIEW_MODAL:"web_view_modal",WEBVIEW_SCREEN_BASE_COMPONENT:"webview_Screen_base_component",WEBVIEW_COMPONENT:"webview_component",RECENT_ORDER_VIEW:"recent_order_view",RECENT_ORDER_STORE_NAME:"recent_order_store_name",RECENT_ORDER_TIMER_VIEW:"recent_order_timer_view",RECENT_ORDER_TOTAL_PRICE:"recent_order_total_price",ORDER_SUMMARY_ITEMS:"order_summary_items",ORDER_PLACED_DATE:"order_placed_date",ORDER_STORE_NAME:"order_store_name",ORDER_TYPE:"order_type",REORDER_CLICKABLE_VIEW:"reorder_clickable_view",ORDER_HISTORY_VIEW_ALL:"order_history_view_all",VIEW_ALL:"view_all",CART_ICON:"cart_icon",CART_ICON_VIEW:"cart_icon_view",CART_BUTTON:"cart_button",ITEM_COUNT:"item_count",CUSTOM_TOTALSAVINGS_IMAGE_VIEW:"custom_totalsavings_image_view",CUSTOM_ORDERNOW_IMAGE_VIEW:"custom_ordernow_image_view",CUSTOM_DELIVERY_IMAGE_VIEW:"custome_delivery_imageview",WORNG_ICON:"worng_icon",MAP_ICON:"map",TOTAL_SAVING_AMOUNT:"total_savings_amount",NO_TAKEAWAY_IMAGE:"no_takeaway_image",NO_TAKEAWAY_TEXT:"no_takeaway_text",ORDER_TIMER_TEXT:"order_timer_text",NO_TAKEAWAY_BUTTON:"no_takeaway_button",OK:"ok",ORDER_DATE_AND_TIME_TEXT:"order_date_and_time_text",ORDER_STATUS_IMAGE:"order_status_image",REORDER_TOTAL_TEXT:"reorder_total_text",REORDER_TOTAL:"reorder_total",HOME_SCREEN_TAKEAWAY_IMAGE:"home_screen",SORRY_NO_TAKEAWAY_FOUND:"sorry_no_takeaway_found",CUSTOMER_SERVICES:"customer_services",ABOUT_US:"about_us",CONTACT_US:"contact_us",CAREERS:"careers",BECOME_PARTNER:"become_partner",BECOME_RESELLER:"become_reseller",OUR_BRAND:"our_brand",BLOG:"blog",TERMS_AND_CONDITIONS:"terms_and_condition",TERMS_OF_USE:"terms_of_use",PRIVACY_POLICY:"privacy_policy",UNSUBSCRIBE:"unsubscribe",TOP_CUISINES:"top_cuisines",LOCATIONS:"locations",USEFUL_LINKS:"useful_links",CUISINES_HEADER:"cuisines_header",EXPAND_ICON:"expand_icon",UNSUBSCRIBE_MAIN_VIEW:"unsubscribe_main_view",UNSUBSCRIBE_CLOSE_BUTTON:"un_subscribe_close_button",UNSUBSCRIBE_SUB_CONTAINER_VIEW:"un_subscribe_sub_container_view",UNSUBSCRIBE_TITLE:"un_subscribe_title",UNSUBSCRIBE_DESCRIPTION:"un_subscribe_description",UNSUBSCRIBE_TEXT_INPUT_ERROR:"un_subscribe_text_input_error",NOT_FOUND_IMAGE:"not_found_image",NOT_FOUND_TITLE:"not_found_title",NOT_FOUND_DESCRIPTION:"not_found_description",GO_TO_TAKEAWAY_BUTTON:"go_to_takeaway_button",GO_TO_TAKEAWAY_TEXT:"go_to_takeaway_button_text",CUSTOMER_WEB:"customer_web",CUSTOMER_WEB_SERVICES:"customer_web_services",SECTION_HEADER:"section_header",SECTION_ITEM:"section_item",CUISINE_LIST_SEO_HEADER:"cuisine_list_seo_header",CUISINE_LIST_SEO_CONTENT:"cuisine_list_seo_content",VIEW_MORE_OR_LESS_BTN:"view_more_or_less_btn",VIEW_MORE_OR_LESS:"view_more_or_less",MARKETING_BANNER_SCREEN:"marketing_banner_screen",MARKETING_BANNER_CONTINUE_BUTTON:"marketing_banner_continue_button"},t.HOME_CONSTANTS={POSTCODE_TIMEOUT:1e3,SEARCH_ADDRESS:"address",ENTER_POSTCODE:"Enter your Postcode",ENTER_AREA:"Enter your Area"},t.carousalHeight=39*r.default.get("window").height/100;!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Utils/HomeConstants.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/HomeModule/Utils/HomeConstants.js")}}()},16329:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LandingNetwork=void 0;var i=a(27061),r=a(66252),n=a(6601),o=a(95276);t.LandingNetwork={getCountryListCall:function(){return{method:i.NETWORK_METHOD.GET,url:"/foodhub/country/list?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN,isAuthRequired:!1}},shortUrlApiCall:function(e){return{method:i.NETWORK_METHOD.POST,url:n.WEB_CONSTANTS.SHORT_URL+"?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name="+r.BASE_API_CONFIG.applicationName,data:e}},shortUrlApiStats:function(e){return{method:i.NETWORK_METHOD.PUT,url:n.WEB_CONSTANTS.SHORT_URL_STATS+"/"+(0,o.getCookies)("short_url_id")+"?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name="+r.BASE_API_CONFIG.applicationName,data:e}}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Networks/LandingNetwork.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Networks/LandingNetwork.js")}}()},78044:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(73254),r={countryList:[],showShortUrl:null};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.LANDING_TYPE.GET_COUNTRY_LIST_SUCCESS:return Object.assign({},e,{countryList:t.payload});case i.LANDING_TYPE.SHORT_URL_RESPONSE:return Object.assign({},e,{showShortUrl:t.showShortUrl});default:return e}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Redux/LandingReducer.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Redux/LandingReducer.js")}}()},91696:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.makeCountryListCall=d;var i=a(34857),r=a(39759),n=a(73254),o=a(33202),s=a(16329),l=a(33484),_=a(66347);function*d(e){try{var t=yield(0,o.apiCall)(s.LandingNetwork.getCountryListCall);(0,l.isValidElement)(t)?yield(0,i.put)({type:n.LANDING_TYPE.GET_COUNTRY_LIST_SUCCESS,payload:t}):(0,r.showErrorMessage)(_.LOCALIZATION_STRINGS.WENT_WRONG)}catch(e){(0,r.showErrorMessage)(e)}}t.default=function*(){yield(0,i.all)([(0,i.takeLatest)(n.LANDING_TYPE.GET_COUNTRY_LIST,d)])};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Redux/LandingSaga.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Redux/LandingSaga.js")}}()},73254:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LANDING_TYPE=void 0;t.LANDING_TYPE={GET_COUNTRY_LIST:"get_country_list",GET_COUNTRY_LIST_SUCCESS:"get_country_list_success",SHORT_URL:"short_url",SHORT_URL_RESPONSE:"short_url_response"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Redux/LandingType.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Redux/LandingType.js")}}()},93574:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCountryList=t.getCountryById=t.COUNTRY_DATA=void 0;var i=a(33484),r=t.getCountryList=function(e){return(0,i.isArrayNonEmpty)(null==e?void 0:e.data)?e.data:n.data},n=(t.getCountryById=function(e,t){var a=r(e).filter((function(e){return(null==e?void 0:e.id)===t}));return(null==a?void 0:a.length)>=0?a[0]:null},t.COUNTRY_DATA={data:[{id:1,name:"United Kingdom",flag:"gb",short_name:"UK",iso:"GB",host:"foodhub.co.uk",sit_host:"sit-foodhub-uk.stage.t2sonline.com",preprod_host:"preprod-foodhub-uk.t2sonline.com",franchise_id:"2465",sit_franchise_id:"2478",preprod_franchise_id:"2485",foodhub_store_id:"794891",sit_foodhub_store_id:"8050697",SIT_CX_HOST:"sit-franchise-foodhub-uk.stage.t2sonline.com"},{id:2,name:"Ireland",flag:"ie",short_name:"IRE",iso:"IE",host:"food-hub.ie",sit_host:"sit-foodhub-ire.stage.t2sonline.com",preprod_host:"preprod-foodhub-ire.t2sonline.com",franchise_id:"2462",sit_franchise_id:"2462",preprod_franchise_id:"2449",foodhub_store_id:"852293",sit_foodhub_store_id:"852293"},{id:3,name:"Australia",flag:"au",short_name:"AUS",iso:"AU",host:"foodhub.com.au",sit_host:"sit-foodhub-aus.stage.t2sonline.com",preprod_host:"preprod-foodhub-aus.t2sonline.com",franchise_id:"2459",sit_franchise_id:"2622",preprod_franchise_id:"2450",foodhub_store_id:"852235",sit_foodhub_store_id:"8052008"},{id:4,name:"New Zealand",flag:"nz",short_name:"NZ",iso:"NZ",host:"food-hub.nz",sit_host:"sit-foodhub-nz.stage.t2sonline.com",preprod_host:"preprod-foodhub-nz.t2sonline.com",franchise_id:"2460",sit_franchise_id:"2821",preprod_franchise_id:"2452",foodhub_store_id:"852289",sit_foodhub_store_id:"8059781"},{id:7,name:"United States",flag:"us",short_name:"USA",iso:"US",host:"foodhub.com",sit_host:"sit-foodhub-usa.stage.t2sonline.com",preprod_host:"preprod-foodhub-usa.t2sonline.com",franchise_id:"2461",sit_franchise_id:"2473",preprod_franchise_id:"2666",foodhub_store_id:"853661",sit_foodhub_store_id:"8051220"}]});!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Utils/Helper.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Utils/Helper.js")}}()},79343:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_ID=t.COUNTRY_CONFIG=void 0;var i=a(38295);t.COUNTRY_CONFIG={au:{api_version:i.AppConfig.API_VERSION,country:{id:3,name:"Australia",code:36,iso:"AU",syncInitialConfig:0,alias:"australia"},currency:{id:7,value:6,name:"AU Dollar",symbol:"$",iso:"AUD"},post_code:{fusion_reg_ex:"[0-9]{4}$",reg_ex:"[a-zA-Z0-9]{2,45}$",min_length:"2",max_length:"45",message:"The :attribute format is invalid",available:!0,name:"Postcode"},mobile:{reg_ex:"(^(\\+?[6][1][1-9]{1}))(\\d{7,10}$)|(^(0([1-9]{1})))(\\d{7,10}$)",min_length:"9",max_length:"15",message:"Valid mobile number required for :attribute"},phone:{reg_ex:"(^(\\+?[6][1][1-9]{1}))(\\d{7,10}$)|(^(0([1-9]{1})))(\\d{7,10}$)",min_length:"9",max_length:"15",message:"Valid phone number required for :attribute"},house_number:{name:"House/Door No",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Apartment",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Street",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},area:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},map:{latitude:"-26.1772288",longitude:"133.4170119",zoom_level:"3",available:!0},search:{name:"Enter Your Area",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},analytics:{gtm:"GTM-MMZL693",google_verification:"IAhRT9SEADpDm13vRrMODGzX19zsAEwmm04xOZrYgos"},config:{host:"foodhub.co.uk",franchise:{id:2465,store_id:794891}}},ie:{api_version:i.AppConfig.API_VERSION,country:{id:2,name:"Ireland",code:372,iso:"IE",syncInitialConfig:0,alias:"ireland"},currency:{id:1,value:0,name:"Euro",symbol:"€",iso:"EUR"},post_code:{fusion_reg_ex:"([a-z]{1}[a-y]{0,1}[0-9]{1,2})([ ]{0,})([0-9]{1}[a-z]{2}$)|([a-z]{1}[0-9]{1}[a-w]{1})([ ]{0,})([0-9]{1}[a-z]{2}$)|([a-z]{1}[a-y][0-9]{1}[a-y])([ ]{0,})([0-9]{1}[a-z]{2}$)|((gir)([ ]{0,})(0aa)$)|((bfpo)([ ]{0,})[0-9]{1,4}$)|((bfpo)([ ]{0,})(c/o([ ]{0,})[0-9]{1,3})$)|(([a-z]{4})([ ]{0,})(1zz)$)",reg_ex:"[a-zA-Z0-9 ]{2,45}$",min_length:"2",max_length:"45",message:"The :attribute format is invalid",available:!0,name:"Postcode"},mobile:{reg_ex:"^0[1-9]{1}[0-9]{8,12}$",min_length:10,max_length:14,message:"Valid phone number required for :attribute"},phone:{reg_ex:"^0[1-9]{1}[0-9]{8,12}$",min_length:10,max_length:14,message:"Valid phone number required for :attribute"},house_number:{name:"House/Door No",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Apartment",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Street",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},area:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},map:{latitude:"37.09024",longitude:"-95.712891",zoom_level:"3",available:!0},search:{name:"Enter Your Area",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},analytics:{gtm:"GTM-TN6PN2F",google_verification:"E2Nl-4v-UTE5b_STk4h7PIi636M2n6mZ42u3OFwVelI"}},nz:{api_version:i.AppConfig.API_VERSION,country:{id:4,name:"New Zealand",code:554,iso:"NZ",syncInitialConfig:0,alias:"new zealand"},currency:{id:8,value:7,name:"NZ Dollar",symbol:"$",iso:"NZD"},post_code:{fusion_reg_ex:"[0-9]{4}$",reg_ex:"[a-zA-Z0-9 ]{2,45}$",min_length:"2",max_length:"45",message:"The :attribute format is invalid",available:!0,name:"Postcode"},mobile:{reg_ex:"(^(\\+?[6][4][1-9]{1}))(\\d{7,11}$)|(^(0([1-9]{1})))(\\d{7,11}$)",min_length:"9",max_length:"12",message:"Valid mobile number required for :attribute"},phone:{reg_ex:"(^(\\+?[6][4][1-9]{1}))(\\d{7,11}$)|(^(0([1-9]{1})))(\\d{7,11}$)",min_length:"9",max_length:"12",message:"Valid phone number required for :attribute"},house_number:{name:"House/Door No",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Apartment",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Street",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},area:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},map:{latitude:"-42.6656729",longitude:"172.4344171",zoom_level:"5",available:!0},search:{name:"Enter Your Area",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},analytics:{gtm:"GTM-N27V3G9",google_verification:"KjXqlEzHGxNErbajFhgiYObPDR54hle_ON4ThsC7MZc"}},gb:{api_version:i.AppConfig.API_VERSION,country:{id:1,name:"United Kingdom",code:826,iso:"GB",syncInitialConfig:0,alias:"united kingdom"},currency:{id:2,value:1,name:"Pound",symbol:"£",iso:"GBP"},post_code:{fusion_reg_ex:"([a-z]{1}[a-y]{0,1}[0-9]{1,2})([ ]{0,})([0-9]{1}[a-z]{2}$)|([a-z]{1}[0-9]{1}[a-w]{1})([ ]{0,})([0-9]{1}[a-z]{2}$)|([a-z]{1}[a-y][0-9]{1}[a-y])([ ]{0,})([0-9]{1}[a-z]{2}$)|((gir)([ ]{0,})(0aa)$)|((bfpo)([ ]{0,})[0-9]{1,4}$)|((bfpo)([ ]{0,})(c/o([ ]{0,})[0-9]{1,3})$)|(([a-z]{4})([ ]{0,})(1zz)$)",reg_ex:"[a-zA-Z0-9 ]{2,45}$",min_length:"2",max_length:"45",message:"The :attribute format is invalid",available:!0,name:"Postcode"},mobile:{reg_ex:"^0[7|8|9]{1}[0-9]{8,9}$",min_length:10,max_length:11,message:"Valid mobile number required for :attribute"},phone:{reg_ex:"^0[1-9]{1}[0-9]{8,12}$",min_length:10,max_length:14,message:"Valid phone number required for :attribute"},search:{name:"Enter your Postcode",type:"postcode",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},house_number:{name:"House/Door No.",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Flat",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Address",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},area:{name:"State",available:!1,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},map:{latitude:"53.062790",longitude:"-2.202990",zoom_level:"3",available:!1},analytics:{gtm:"GTM-PCWKKR4",google_verification:"DgERHjaK4YhLxHjID_RXdGuyVXwTHis6PA-DqDxQvik",facebook_pixel:"449874532221917"},social_media:{facebook:"https://www.facebook.com/Foodhub.co.uk/",twitter:"https://twitter.com/FoodhubUK",youtube:"https://www.youtube.com/channel/UC12E2pidPaspN8tWTvaRs-A",instagram:"https://www.instagram.com/foodhub.co.uk/"}},us:{api_version:i.AppConfig.API_VERSION,country:{id:7,name:"United States",code:840,iso:"US",syncInitialConfig:0,alias:"united states"},currency:{id:4,value:3,name:"US Dollar",symbol:"$",iso:"USD"},post_code:{fusion_reg_ex:"[0-9]{5}(-[0-9]{4})?$",reg_ex:"[0-9]{5}(-[0-9]{4})?$",min_length:"5",max_length:"10",message:"The :attribute format is invalid",available:!0,name:"Zip Code"},mobile:{reg_ex:"^(0?1[- ]?)?(([0-9]{3})[- ]?([0-9]{3})[- ]?([0-9]{4}))$",min_length:10,max_length:17,message:"Valid mobile number required for :attribute"},phone:{reg_ex:"^(0?1[- ]?)?(([0-9]{3})[- ]?([0-9]{3})[- ]?([0-9]{4}))$",min_length:10,max_length:17,message:"Valid phone number required for :attribute"},search:{name:"Enter Your Area.",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},house_number:{name:"House/Door No",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Apartment",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Street",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},area:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},map:{latitude:"37.09024",longitude:"-95.712891",zoom_level:"3",available:!0},analytics:{gtm:"GTM-MMSS5FQ",google_verification:"qylkYFLBKscA0idK2nYC1U7apvMyJhgoOKzEMx39E6Y"},social_media:{facebook:"https://www.facebook.com/FoodhubUS",twitter:"https://twitter.com/FoodhubU",youtube:"https://www.youtube.com/channel/UC12E2pidPaspN8tWTvaRs-A",instagram:"https://www.instagram.com/foodhub.usa/"}},ca:{api_version:i.AppConfig.API_VERSION,address_search:"street",country:{id:5,name:"Canada",code:124,iso:"CA",syncInitialConfig:0,alias:"canada",flag:"ca",tax_type:"EXCLUDED",customer_care_number:"",phone_number_starts_with:null,short_name:"CA",distance_type:"miles",phone_code:1,tax_label:"VAT",distance_label:"mi"},currency:{id:6,value:5,name:"CA Dollar",symbol:"$",iso:"CAD",currency_unit:"cents"},self_signup:[{id:"2595",name:"ULTIMATE MYPOS",setupFee:"99",weeklyFee:"7",setupFeeDML:"150.00",weeklyFeeDML:"13",description:"<div><h5 class='small strong'>Ultimate Android MYPOS</h5><p>A cost-effective Android POS system that streamlines your operations. Manage online orders easily with real time order tracking and integrated printer.</p><p class='small'><span>Set Up Fee : $99</span></p><p class='small'><span>Weekly Rental : $7</span></p><p>3rd Party Payment Processing Fee (per transaction):  3.4% + 20c</p><ul class='planlists'><li><span>Full order & delivery management by app or web</span></li><li><span>3rd Party Integration for Payment Processing**</span></li><li><span>Dedicated 24/7 Phone Support</span></li><li><span>On-demand delivery***</span></li><li><span>Foodhub Marketplace listing</span></li><li><span>8 weeks free trial period</span></li></ul></div>"}],datman:{support:"https://support.datman.je/portal/en/home",mail:"info@datman.je",phone:"03330165548"},post_code:{fusion_reg_ex:"[0-9]{5}(-[0-9]{4})?$",reg_ex:"[0-9]{5}(-[0-9]{4})?$",min_length:"5",max_length:"10",message:"The :attribute format is invalid",available:!0,name:"Zip Code",keyboard:"NUMERIC"},mobile:{reg_ex:"^(0?1[- ]?)?(([0-9]{3})[- ]?([0-9]{3})[- ]?([0-9]{4}))$",min_length:10,max_length:17,message:"Valid mobile number required for :attribute"},phone:{reg_ex:"^(0?1[- ]?)?(([0-9]{3})[- ]?([0-9]{3})[- ]?([0-9]{4}))$",min_length:10,max_length:17,message:"Valid phone number required for :attribute"},search:{name:"Enter Your Area",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},house_number:{name:"House/Door No",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Apartment",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Street",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},area:{name:"Area",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},map:{latitude:"0",longitude:"0",zoom_level:"3",available:!0},analytics:{gtm:"",google_verification:"",facebook_pixel:""},social_media:{facebook:"https://www.facebook.com/FoodhubUS",twitter:"https://twitter.com/FoodhubU",youtube:"https://www.youtube.com/channel/UC12E2pidPaspN8tWTvaRs-A",instagram:"https://www.instagram.com/foodhub.usa/"},address_template:{format:"No : <house_number>,\r\n<address_line1>,\r\n<address_line2>,\r\n<area>,\r\n,\r\n<country> - <post_code>"},language:{default:{name:"English (UK)",code:"en-gb",default:!0,title:"English (UK)"},options:[]},ms_date_format:{long_format:{date:"d/m/Y",time:"HH:i:ss",date_time:"d/M/Y h:i:s A"},short_format:{date:"d/m/Y",time:"HH:i:s",date_time:"d/m/Y HH:i:s"}},date_format:{long_format:{date:"DD/MM/YYYY",time:"H:mm:ss",date_time:"DD/MM/YYYY H:mm:ss"},short_format:{date:"DD/MM/YY",time:"hh:mm:ss A",date_time:"DD/MM/YY hh:mm:ss A"}},municipality:{name:"Municipality",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},neighborhood:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},client_projects:{"MY-TAKEAWAY":{coupon_avilable:["ALL"]}},fallback:null,product_id:4},in:{api_version:i.AppConfig.API_VERSION,address_search:"street",country:{id:15,name:"India",code:356,iso:"IN",syncInitialConfig:0,alias:"india",flag:"in",tax_type:"EXCLUDED",customer_care_number:"",phone_number_starts_with:"",short_name:"IN",distance_type:"kms",phone_code:91,tax_label:"GST",distance_label:"km"},currency:{id:3,value:2,name:"Rupee",symbol:"₹",iso:"INR",currency_unit:"paise"},phone:{reg_ex:"^[9][1][6-9]{1}[0-9]{9}$",min_length:10,max_length:10,message:"Valid phone number required for :attribute"},mobile:{reg_ex:"^[9][1][6-9]{1}[0-9]{9}$",min_length:10,max_length:10,message:"Valid mobile number required for :attribute"},post_code:{fusion_reg_ex:"^[1-9]{1}[0-9]{5}$",reg_ex:"^[1-9]{1}[0-9]{5}$",min_length:"6",max_length:"6",message:"The :attribute format is invalid",available:!0,name:"Pin code",keyboard:"NUMERIC"},address_line1:{name:"address_line1",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},address_line2:{name:"Town",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},analytics:{gtm:"",google_verification:""},area:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},flat:{name:"Street no.",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},house_number:{name:"House no.",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},language:{default:{name:"English (India)",code:"en-in",default:!0,title:"English (India)"},options:[{name:"भारत",code:"hi-in",title:"Hindi (India)"},{name:"Kannada (India)",code:"kn-in",title:"Kannada (India)"},{name:"Malayalam (India)",code:"ml-in",title:"Malayalam (India)"},{name:"தமிழ்",code:"ta-in",title:"Tamil (India)"},{name:"Telugu (India)",code:"te-in",title:"Telugu (India)"}]},map:{latitude:"13.0243823",longitude:"80.1772356",zoom_level:"3",available:!0},search:{name:"Enter Your Area",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_\\/]+$",message:"The :attribute format is invalid"},datman:{support:"https://support.datman.je/portal/en/home",mail:"info@datman.je",phone:"03330165548"},social_media:{facebook:"https://www.facebook.com/FoodhubUS",twitter:"https://twitter.com/FoodhubU",youtube:"https://www.youtube.com/channel/UC12E2pidPaspN8tWTvaRs-A",instagram:"https://www.instagram.com/foodhub.usa/"},address_template:{format:"<house_number><flat><address_line1><address_line2><district><country><post_code>"},date_format:{long_format:{date:"DD/MM/YYYY",time:"H:mm:ss",date_time:"DD/MM/YYYY H:mm:ss"},short_format:{date:"DD/MM/YY",time:"hh:mm:ss A",date_time:"DD/MM/YY hh:mm:ss A"}},ms_date_format:{long_format:{date:"d-M-Y",time:"HH:i:ss",date_time:"d/M/Y h:i:s A"},short_format:{date:"d/m/Y",time:"HH:i:s",date_time:"d/m/Y HH:i:s"}},municipality:{name:"Municipality",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},neighborhood:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},client_projects:{"MY-TAKEAWAY":{coupon_avilable:["ALL"]}},fallback:null,product_id:4},es:{api_version:i.AppConfig.API_VERSION,address_search:"street",country:{id:261,name:"Spain",code:724,iso:"ES",syncInitialConfig:1642500263,alias:"spain",flag:"es",tax_type:"EXCLUDED",customer_care_number:"",phone_number_starts_with:"6,7",short_name:"ESP",distance_type:"kms",phone_code:34,tax_label:"VAT",distance_label:"km"},currency:{id:224,value:224,name:"Euro",symbol:"€",iso:"EUR",currency_unit:"centimes"},post_code:{fusion_reg_ex:"[0-9]{5}(-[0-9]{4})?$",reg_ex:"[0-9]{5}(-[0-9]{4})?$",min_length:"5",max_length:"10",message:"The :attribute format is invalid",available:!0,name:"Zip Code",keyboard:"NUMERIC"},mobile:{reg_ex:"^(0?1[- ]?)?(([0-9]{3})[- ]?([0-9]{3})[- ]?([0-9]{4}))$",min_length:10,max_length:17,message:"Valid mobile number required for :attribute"},phone:{reg_ex:"^(0?1[- ]?)?(([0-9]{3})[- ]?([0-9]{3})[- ]?([0-9]{4}))$",min_length:10,max_length:17,message:"Valid phone number required for :attribute"},search:{name:"Enter Your Area",type:"address",min_length:"3",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},house_number:{name:"House/Door No",available:!0,min_length:"1",max_length:"100",reg_ex:"^(?!0+$)(?!0.0+$)([0-9a-zA-Z ]{1,}$|[0-9a-zA-Z]{1}[0-9a-zA-Z -.,&:_\\/]{0,}[0-9a-zA-Z]{1}$)",message:"The :attribute format is invalid"},flat:{name:"Apartment",available:!0,min_length:"0",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},address_line1:{name:"Street",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},address_line2:{name:"City",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},area:{name:"Area",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},map:{latitude:"0",longitude:"0",zoom_level:"3",available:!0},analytics:{gtm:"",google_verification:"",facebook_pixel:""},social_media:{facebook:"https://www.facebook.com/FoodhubUS",twitter:"https://twitter.com/FoodhubU",youtube:"https://www.youtube.com/channel/UC12E2pidPaspN8tWTvaRs-A",instagram:"https://www.instagram.com/foodhub.usa/"},address_template:{format:"No : <house_number>,\r\n<address_line1>,\r\n<address_line2>,\r\n<area>,\r\n,\r\n<country> - <post_code>"},language:{default:{name:"Espanol (Spanish)",code:"es",default:!0,title:"Spanish"},options:[{name:"English (United Kingdom)",code:"en-gb",title:"English (United Kingdom)"},{name:"English (United States)",code:"en-us",title:"English (United States)"}]},ms_date_format:{long_format:{date:"d-M-Y",time:"HH:i:ss",date_time:"d/M/Y h:i:s A"},short_format:{date:"d/m/Y",time:"HH:i:s",date_time:"d/m/Y HH:i:s"}},date_format:{long_format:{date:"DD/MM/YYYY",time:"H:mm:ss",date_time:"DD/MM/YYYY H:mm:ss"},short_format:{date:"DD/MM/YY",time:"hh:mm:ss A",date_time:"DD/MM/YY hh:mm:ss A"}},municipality:{name:"Municipality",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},neighborhood:{name:"State",available:!0,min_length:"1",max_length:"100",reg_ex:"^[a-zA-Z0-9 -.,&:_/]+$",message:"The :attribute format is invalid"},client_projects:{"MY-TAKEAWAY":{coupon_avilable:["ALL"]}},sample_address:[{house_number:"",address_line1:"",address_line2:"",postcode:"",latitude:"",longitude:""}],fallback:null,product_id:4}},t.VIEW_ID={COUNTRY_SELECTION:"country_selection",LEFT_BUTTON:"left_button",ICON_TICK:"icon_tick",DESCRIPTION:"description",WE_DONT_CHARGE_ANY_COMMISSION:"we_dont_charge_any_commission",EXC_DISCOUNT:"exc_discount",AND:"and",OFFERS:"offers",NOW_ORDER_YOUR_FAVORITE_FOOD:"now_order_your_favorite_food",SELECT_COUNTRY:"select_country"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Utils/LandingPageConstants.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/LandingPage/Utils/LandingPageConstants.js")}}()},21511:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateTALiveTrackingAction=t.updateStoreConfigResponseForViewAction=t.updateStoreConfigResponseAction=t.updateSelectedCuisines=t.updateHomeScreenStatusAction=t.updateCuisineTAFilter=t.updateCheckedCuisines=t.updateAdvancedCheckedCuisines=t.takeawayListClickAction=t.takeawayListAction=t.stopTakeawayButtonLoadingAction=t.startTakeawayFindLoadingAction=t.sortStoreBasedOnFilter=t.sortBasedOnCuisines=t.setTakeawayScrollTop=t.setShowNewLocationTooltip=t.setIsSavedAddress=t.setIsNewUserLOcation=t.setHideGrocery=t.setFilterType=t.searchElementMethodAction=t.resetUserSearchedAddress=t.resetTakeawaysOnCountrySwitchAction=t.resetTakeawayAction=t.resetStoreIDAction=t.resetStoreAndConfigResponseAction=t.resetSnappyList=t.resetSelectedPostCodeAction=t.resetSelectedAddress=t.resetFavouriteSearchListAction=t.resetCuisines=t.resetAdvanceFilterAction=t.resetAdvanceFilter=t.resetAdvanceCuisines=t.resetAction=t.refreshTakeawayData=t.postFavouriteTakeawayAction=t.openMenuPage=t.navigatingTAWithPrevLocationAction=t.handleOrderTypeChangeAction=t.handleFindTakeawayBtnLoading=t.goBackToTAListAction=t.getTakeawayListFromUserAddress=t.getTakeawayListByPostcodeAction=t.getTakeawayListByLocation=t.getTakeawayListByAddressAction=t.getTakeawayListAction=t.getRecentOrders=t.getOfferBasedTakeawayListAction=t.getFavouriteTakeawayListAction=t.getFavouriteTakeawayAction=t.getCuisinesListBasedOnLocation=t.getCuisinesList=t.getAssociateTakeawayAction=t.getAllLocationList=t.getAllCuisinesList=t.filterTakeawayByOrderTypeAction=t.filterTARecomendation=t.filterTARecByOrderTypeAction=t.cusineLocationSearch=t.cancelTakeawayListClickAction=void 0;var i=a(87280),r=a(81114),n=a(33484),o=a(33638),s=a(75833),l=a(86730),_=a(33603);t.getTakeawayListAction=function(e){var t=e.postCode,a=e.searchByAddress,r=void 0!==a&&a,n=e.orderType,o=void 0===n?s.ORDER_TYPE.DELIVERY:n,l=e.selectedAddress,_=e.town,d=void 0===_?void 0:_,E=e.lat,u=void 0===E?void 0:E,T=e.lng,c=void 0===T?void 0:T,A=e.isNewUserLocation,S=void 0!==A&&A,p=e.isSavedAddress,O=void 0!==p&&p,I=e.resetUserSearchedAddress,y=void 0!==I&&I,L=e.redirectTAList,C=void 0===L||L,f=e.isAddressSearched,R=void 0!==f&&f,m=e.isFromCuisineList,g=void 0!==m&&m,N=e.updateAddress,v=e.isMissingGoogleListingPostcode,h=void 0!==v&&v,b=e.isLandscapeMode,D=void 0===b?null:b,P=e.isFromPromotionCoupon,w=void 0!==P&&P,Y=e.isFromPromotionOffer,k=void 0!==Y&&Y;return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST,postCode:t,searchByAddress:r,orderType:o,town:d,selectedAddress:l,lat:u,lng:c,isNewUserLocation:S,isSavedAddress:O,resetUserSearchedAddress:y,redirectTAList:C,isAddressSearched:R,isFromCuisineList:g,updateAddress:N,isMissingGoogleListingPostcode:h,isLandscapeMode:D,isFromPromotionCoupon:w,isFromPromotionOffer:k}},t.getTakeawayListByAddressAction=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.ORDER_TYPE.DELIVERY,r=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,_=arguments.length>5&&void 0!==arguments[5]&&arguments[5],d=arguments.length>6&&void 0!==arguments[6]&&arguments[6];t=(0,n.isValidString)(null==e?void 0:e.type)&&"name"===e.type?o.SEARCH_TYPE.NAME:t;var E={type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_ADDRESS,addressObj:e,searchType:t,orderType:a,sessiontoken:r,isAddressSearched:_,isNewUserLocation:d};return l&&(E.redirectTAList=l),E},t.getTakeawayListByLocation=function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.ORDER_TYPE.DELIVERY,n=arguments.length>4?arguments[4]:void 0;return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_ADDRESS,addressObj:e,lat:t,lng:a,searchType:null==e?void 0:e.type,orderType:r,sessiontoken:n}},t.getTakeawayListFromUserAddress=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_USER_ADDRESS,address:e}},t.takeawayListAction=function(e,t,a){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TAKEAWAY,filterType:e,takeawayList:t,postCode:a}},t.searchElementMethodAction=function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.ORDER_TYPE.DELIVERY,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SEARCH_ELEMENT,arrayList:e,searchString:t,searchType:a,orderType:r,filterType:n}},t.setFilterType=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_FILTER_TYPE,filter:e,isSnappy:t}},t.updateCheckedCuisines=function(e,t,a){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_CHECKED_CUISINES,cuisinesArray:e,filterList:t,isSnappy:a}},t.updateAdvancedCheckedCuisines=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_CHECKED_ADVANCE_CUISINES,cuisinesArray:e,filterList:t}},t.sortBasedOnCuisines=function(e,t,a,r,n,o,l){var _=arguments.length>7&&void 0!==arguments[7]?arguments[7]:s.ORDER_TYPE.DELIVERY,d=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],E=arguments.length>9&&void 0!==arguments[9]&&arguments[9];return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_CUISINES,cuisines:e,takeawayList:t,filterType:a,postCode:r,filterList:n,homeScreenFilter:o,selectedCuisineFilterName:l,orderType:_,manualChange:d,isNotRestaurant:E}},t.updateSelectedCuisines=function(e,t){return{type:t?i.TAKEAWAY_SEARCH_LIST_TYPE.ADVANCE_SELECTED_CUISINES_LIST:i.TAKEAWAY_SEARCH_LIST_TYPE.SELECTED_CUISINES_LIST,cuisines:e}},t.resetAction=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_ACTION,isSnappy:e}},t.resetCuisines=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_CUISINES_ACTION}},t.resetAdvanceCuisines=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_ADVANCE_CUISINES_ACTION}},t.resetAdvanceFilterAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.ADVANCED_RESET_ACTION}},t.postFavouriteTakeawayAction=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.POST_FAVOURITE_TAKEAWAY,storeId:e,favourite:t}},t.getFavouriteTakeawayAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY}},t.getFavouriteTakeawayListAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY_LIST}},t.takeawayListClickAction=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.TAKEAWAY_LIST_CLICK_ACTION,storeID:null==e?void 0:e.id,storeInfo:e,isFromRecentTakeaway:t,selectedPreOrder:a}},t.cancelTakeawayListClickAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.TAKEAWAY_LIST_CLICK_ACTION,cancel:!0}},t.resetStoreAndConfigResponseAction=function(){return{type:r.TYPES_CONFIG.RESET_STORE_AND_BASKET_CONFIG}},t.resetStoreIDAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_STORE_ID_CONFIG}},t.resetTakeawayAction=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_TAKEAWAY_LIST,exculdeLocationData:e}},t.startTakeawayFindLoadingAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.START_TAKEAWAY_FIND_LOADING}},t.navigatingTAWithPrevLocationAction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.NAVIGATING_TA_WITH_PREV_LOCATION,latitude:e,longitude:t,savedAddress:a,isRedirect:r}},t.setTakeawayScrollTop=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TAKEAWAY_SCROLL_TOP,payload:e}},t.getAssociateTakeawayAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_ASSOCIATE_TAKEAWAY}},t.updateStoreConfigResponseAction=function(e){return{type:r.TYPES_CONFIG.STORE_CONFIG_SUCCESS,payload:e}},t.updateStoreConfigResponseForViewAction=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{type:r.TYPES_CONFIG.UPDATE_STORE_CONFIG_RESPONSE_FOR_VIEW,payload:e,isFromReOrder:t,isFromRecentTakeAway:a,isFromTAList:i,trackData:n}},t.resetTakeawaysOnCountrySwitchAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_TAKEAWAYS_ON_COUNTRY_SWITCH}},t.resetFavouriteSearchListAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_FAVOURITE_SEARCH_LIST}},t.stopTakeawayButtonLoadingAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.STOP_TAKEAWAY_FIND_LOADING}},t.filterTakeawayByOrderTypeAction=function(e,t,a,r){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_FILTERED_TAKEAWAYS,payload:(0,l.filterTakeawayList)({takeAwayList:e,checkByOrderType:!0,orderType:t,postcode:a,mileRestrictionConfig:r})}},t.updateHomeScreenStatusAction=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_HOME_SCREEN_FILTER_STATUS,homeScreenStatus:e,selectedAdvancedFilterName:t}},t.resetAdvanceFilter=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.FITLER_RESET}},t.getOfferBasedTakeawayListAction=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.ORDER_TYPE.DELIVERY;return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TAKEAWAY_BASED_ON_OFFER,offer:e,offerMax:t,orderType:a}},t.updateTALiveTrackingAction=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_LIVE_TRACKING,event:e,body:t}},t.filterTARecomendation=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TA_RECOMENDATION,taRecommendation:e,filterType:t}},t.filterTARecByOrderTypeAction=function(e,t,a,r,n){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_FILTERBY_RECOMMENDATION,payload:(0,l.filterRecommendedTakeawayList)(e,a,!0,t,r,n)}},t.getRecentOrders=function(){return{type:_.HOME_TYPE.GET_RECENT_ORDERS}},t.setIsNewUserLOcation=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_NEW_USER_LOCATION,payload:e}},t.setIsSavedAddress=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATED_SEARCH_ADDRESS,payload:e}},t.setShowNewLocationTooltip=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SHOW_TA_NEW_ADDRESS_TOOLTIP,payload:e}},t.resetSelectedAddress=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SELECTED_ADDRESS}},t.resetUserSearchedAddress=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_USER_SEARCH_ADDRESS}},t.openMenuPage=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.OPEN_MENU_PAGE,takeaway:e,selectedTakeAway:t}},t.getCuisinesList=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_CUISINES_LIST,cuisine:e}},t.getCuisinesListBasedOnLocation=function(e,t){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_CUISINES_LIST_BASED_ON_LOCATION,location:e,cuisine:t}},t.getAllCuisinesList=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_ALL_CUISINES}},t.getAllLocationList=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_ALL_LOCATION}},t.handleOrderTypeChangeAction=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.ORDER_TYPE_CHANGE,orderType:e}},t.refreshTakeawayData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.REFRESH_TAKEAWAY_DATA,actionItems:e}},t.getTakeawayListByPostcodeAction=function(e){var t=e.postCode,a=e.searchByAddress,r=void 0!==a&&a,n=e.orderType,o=void 0===n?s.ORDER_TYPE.DELIVERY:n,l=e.selectedAddress,_=e.town,d=void 0===_?void 0:_,E=e.lat,u=void 0===E?void 0:E,T=e.lng,c=void 0===T?void 0:T,A=e.isNewUserLocation,S=void 0===A||A,p=e.isSavedAddress,O=void 0!==p&&p,I=e.resetUserSearchedAddress,y=void 0!==I&&I,L=e.redirectTAList,C=void 0===L||L,f=e.isAddressSearched,R=void 0!==f&&f,m=e.isFromCuisineList,g=void 0!==m&&m,N=e.isCusineBasedList,v=e.cuisines;return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_POSTCODE,postCode:t,searchByAddress:r,orderType:o,town:d,selectedAddress:l,lat:u,lng:c,isNewUserLocation:S,isSavedAddress:O,resetUserSearchedAddress:y,redirectTAList:C,isAddressSearched:R,isFromCuisineList:g,isCusineBasedList:N,cuisines:v}},t.cusineLocationSearch=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.CUISINE_LOCATION_SEARCH,payload:e}},t.handleFindTakeawayBtnLoading=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_FIND_TAKEAWAY_BTN_LOADING,payload:e}},t.goBackToTAListAction=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.GO_BACK_TA_LIST,redirect:e}},t.resetSelectedPostCodeAction=function(){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SELECTED_POST_CODE}},t.resetSnappyList=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SNAPPY_LIST,businessType:e}},t.setHideGrocery=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.SET_HIDE_GROCERY,payload:e}},t.sortStoreBasedOnFilter=function(e,t,a,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:s.ORDER_TYPE.DELIVERY,l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],_=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_STORE,storeList:e,filterType:t,postCode:a,filterList:r,homeScreenFilter:n,orderType:o,manualChange:l,isNotRestaurant:_}},t.updateCuisineTAFilter=function(e){return{type:i.TAKEAWAY_SEARCH_LIST_TYPE.CUISINE_BASED_TA_FILTER,payload:e}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListAction.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListAction.js")}}()},33271:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(87280),r=a(33484),n=a(86730),o=a(33603),s=a(65167),l=a(81114),_=a(51086),d=a(23135),E={takeawayList:null,listDetails:null,cuisinesArray:null,filteredElementArray:null,filterType:null,cuisinesSelected:[],selectedCuisines:[],advancedSelectedCuisines:[],filterList:[],sortedCuisinesTakeawayList:null,filteredTakeaways:null,favouriteTakeaways:null,favouriteTakeawayList:null,searchedFavouriteTakeawayList:null,takeawaysCount:null,searchedTakeawayCount:null,selectedPostcode:null,takeawayFetching:!1,takeawayGetSuccess:!1,takeawayListScrollTop:!1,isCuisinesUpdated:!1,associateTakeawayResponseObject:{},isFilterTypeUpdated:!1,previouslySelectedCuisines:[],previousSelectedFilterType:null,redirectBasketRoute:null,redirectNavigation:null,advancedFilterType:null,advancedCuisineSelected:[],advancedFilterList:[],homeScreenFilter:!1,advancedTakeaways:null,selectedAdvancedFilterName:null,filterListWithOffer:null,filterListWithMaxOffer:null,isFromOfferList:!1,cuisinesResponse:null,favouriteTakeawayListResponse:null,takeaway_recommendation_response:null,search_takeaway_response:null,selectedAddress:null,isSavedAddress:null,searchAddress:null,isDifferentAddress:null,addressCurrentLocation:null,takeawayLiveTrackingEventID:null,recommendationTA:null,initialLocationFetch:null,lat:null,lng:null,isNewUserLocation:!1,userSearchedAddress:null,globalCuisinesList:null,allCuisinesList:null,allLocationList:null,hasPreviousSessionLocation:null,optionalUpdateDismissed:!1,searchedAddressData:null,offersData:null,showNewLocationTooltip:null,previousCountryId:null,cuisineSearch:!1,takeAwayListLocation:null,findTakeawaybtnLoading:!1,isMissingGoogleListingPostcode:!1,groceryList:[],giftList:[],filteredStores:[],snappySortType:d.FILTER_TYPE.DISTANCE_VALUE,snappyFilterList:[],hideGroceryRoute:!0,listTypes:{},searchLookupResponse:null,cuisineTAFilter:!1};t.default=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case o.HOME_TYPE.RESET_AUTOCOMPLETE_PLACES:case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_TAKEAWAY_LIST:return Object.assign({},t,{takeawayList:null,filteredTakeaways:null,takeawayGetSuccess:!1,selectedPostcode:null!=a&&a.exculdeLocationData?t.selectedPostcode:null,takeawaysCount:null,searchedTakeawayCount:null,invalidPostCodeOrAddress:!1,advancedTakeaways:null,filterListWithOffer:null,filterListWithMaxOffer:null,isFromOfferList:!1,cuisinesResponse:null,takeawayLiveTrackingEventID:null,takeaway_recommendation_response:null,search_takeaway_response:null,recommendationTA:null,cuisineTAFilter:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TA_LIST_BY_AUTO_FETCH:case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST:case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_ADDRESS:case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_USER_ADDRESS:var u=a.isSavedAddress,T=a.isDifferentAddress,c=a.postCode,A=a.searchAddress,S=a.lat,p=a.lng,O=a.selectedAddress,I=a.isMissingGoogleListingPostcode;return Object.assign({},t,{takeawayFetching:!0,invalidPostCodeOrAddress:!1,takeawayList:null,selectedAddress:I?E.selectedAddress:O||t.selectedAddress,isSavedAddress:(0,r.isBoolean)(u)?u:t.isSavedAddress,searchAddress:I?E.searchAddress:A,isDifferentAddress:(0,r.isValidElement)(T)?T:t.isDifferentAddress,selectedPostcode:(0,r.isValidString)(c)?c.toUpperCase():t.selectedPostcode,lat:(0,r.isValidElement)(S)?S:t.lat,lng:(0,r.isValidElement)(p)?p:t.lng,userSearchedAddress:I?E.userSearchedAddress:null!=a&&a.resetUserSearchedAddress?null:t.userSearchedAddress,searchLookupResponse:I||null!=a&&a.resetUserSearchedAddress?null:t.searchLookupResponse,isMissingGoogleListingPostcode:I});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_SUCCESS:var y,L=a.cuisinesList,C=a.selectedPostcode,f=a.listDetail,R=a.selectedAddress,m=a.groceryList,g=a.giftList,N=a.listTypes;return null==a||(null==(y=a.actionItems)||delete y.screen),Object.assign({},t,{takeawayList:a.payload,takeawayGetSuccess:!0,invalidPostCodeOrAddress:!1,cuisinesArray:(0,r.isValidElement)(L)?L:t.cuisinesArray,selectedPostcode:(0,r.isValidString)(C)?C.toUpperCase():t.selectedPostcode,listDetails:(0,r.isValidElement)(f)?f:t.listDetails},(0,n.setFilterType)(t.homeScreenFilter,a,t.filterType,t.advancedFilterType),{cuisinesResponse:a.cuisinesResponse,selectedAddress:R,takeaway_recommendation_response:a.takeaway_recommendation_response,searchedAddressData:null==a?void 0:a.actionItems,takeAwayListLocation:null==a?void 0:a.takeAwayListLocation,groceryList:m,giftList:g,listTypes:N});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_FAILURE:return Object.assign({},t,{takeawayList:[],groceryList:[],giftList:[],filteredStores:[],takeawayGetSuccess:!0,takeawayFetching:!1,invalidPostCodeOrAddress:!0,findTakeawaybtnLoading:!1,searchedAddressData:null,hideGroceryRoute:null==a?void 0:a.hideGroceryRoute});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESTAURANT_LIST_EMPTY:return Object.assign({},t,{takeawayList:[],takeawayGetSuccess:!0,takeawayFetching:!1,findTakeawaybtnLoading:!1,cuisinesArray:null,cuisinesResponse:null,recommendationTA:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TAKEAWAY_SUCCESS:return Object.assign({},t,{takeawayList:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SEARCH_ELEMENT_SUCCESS:return Object.assign({},t,{filteredElementArray:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_FILTER_TYPE:var v;return null!=a&&a.isSnappy?Object.assign({},t,{snappySortType:null!=(v=null==a?void 0:a.filter)?v:t.filterType}):Object.assign({},t,(0,n.setFilterType)(t.homeScreenFilter,a,t.filterType,t.advancedFilterType));case i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_CHECKED_ADVANCE_CUISINES:return Object.assign({},t,{advancedCuisineSelected:a.cuisinesArray,advancedSelectedCuisines:a.cuisinesArray,advancedFilterList:(0,r.isValidElement)(a.filterList)?a.filterList:t.filterList,cuisinesArray:(0,r.isArrayNonEmpty)(a.cuisinesArray)?(0,n.sortBySelectedCuisine)(t.cuisinesArray,a.cuisinesArray):(0,n.sortByCuisineCount)(t.cuisinesArray)});case i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_CHECKED_CUISINES:return a.isSnappy?Object.assign({},t,{snappyFilterList:(0,r.isValidElement)(a.filterList)?a.filterList:t.filterList}):Object.assign({},t,{cuisinesSelected:a.cuisinesArray,selectedCuisines:a.cuisinesArray,filterList:(0,r.isValidElement)(a.filterList)?a.filterList:t.filterList,cuisinesArray:(0,r.isArrayNonEmpty)(a.cuisinesArray)?(0,n.sortBySelectedCuisine)(t.cuisinesArray,a.cuisinesArray):(0,n.sortByCuisineCount)(t.cuisinesArray)});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_ACTION:return null!=a&&a.isSnappy?Object.assign({},t,{snappyFilterList:[],snappySortType:d.FILTER_TYPE.DISTANCE_VALUE}):Object.assign({},t,{cuisinesSelected:[],selectedCuisines:[],filterList:[],cuisinesArray:(0,n.sortByCuisineCount)(t.cuisinesArray),filterType:(0,n.updateFilterType)(t.listDetails),takeawaysCount:null,searchedTakeawayCount:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.ADVANCED_RESET_ACTION:return Object.assign({},t,{advancedCuisineSelected:[],advancedSelectedCuisines:[],advancedFilterList:[],cuisinesArray:(0,n.sortByCuisineCount)((0,n.getFilterCuisinesList)(t.takeawayList,t.selectedAdvancedFilterName,t.cuisinesArray)),advancedFilterType:(0,n.updateFilterType)(t.listDetails),takeawaysCount:null,searchedTakeawayCount:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_CUISINES_ACTION:return Object.assign({},t,{cuisinesSelected:[],selectedCuisines:[],cuisinesArray:(0,n.sortByCuisineCount)(t.cuisinesArray)});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_ADVANCE_CUISINES_ACTION:return Object.assign({},t,{advancedCuisineSelected:[],advancedSelectedCuisines:[],cuisinesArray:(0,n.sortByCuisineCount)((0,n.getFilterCuisinesList)(t.takeawayList,t.selectedAdvancedFilterName,t.cuisinesArray))});case i.TAKEAWAY_SEARCH_LIST_TYPE.FITLER_RESET:return Object.assign({},t,{advancedCuisineSelected:[],advancedSelectedCuisines:[],advancedFilterList:[],cuisinesArray:(0,n.sortBySelectedCuisine)((0,n.getCuisinesFromTakeawayList)(t.takeawayList,t.cuisinesResponse),t.selectedCuisines),advancedFilterType:(0,n.updateFilterType)(t.listDetails),takeawaysCount:null,searchedTakeawayCount:null,filterListWithOffer:null,filterListWithMaxOffer:null,isFromOfferList:!1,cuisineTAFilter:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_FILTERED_TAKEAWAYS:return Object.assign({},t,{filteredTakeaways:(0,n.getFilteredTakeawayList)(a.payload),advancedFilterType:(0,n.updateFilterType)(t.listDetails),takeawayFetching:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_FILTERED_STORELIST:return Object.assign({},t,{filteredStores:(0,n.getFilteredTakeawayList)(a.payload),advancedFilterType:(0,n.updateFilterType)(t.listDetails),hideGroceryRoute:null!=(e=a.hideGroceryRoute)?e:t.hideGroceryRoute});case i.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_ADVANCED_FILTERED_TAKEAWAYS:return Object.assign({},t,{advancedTakeaways:(0,n.getFilteredTakeawayList)(a.payload)});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY_SUCCESS:return Object.assign({},t,{favouriteTakeaways:(0,r.isValidElement)(a.payload)?a.payload:E.favouriteTakeaways});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY_LIST_SUCCESS:return Object.assign({},t,{favouriteTakeawayList:(0,r.isValidElement)(a.payload)?(0,n.getFilteredTakeawayList)(a.payload):E.favouriteTakeawayList,favouriteTakeawayListResponse:(0,r.isValidElement)(a.response)&&a.response});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_SEARCHED_FAVOURITE_TAKEAWAY_SUCCESS:return Object.assign({},t,{searchedFavouriteTakeawayList:(0,r.isValidElement)(a.payload)?(0,n.getFilteredTakeawayList)(a.payload):E.searchedFavouriteTakeawayList});case i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_LOCAL_TAKEAWAY_LIST_FAVORITE:return Object.assign({},t,{favouriteTakeaways:(0,n.takeawayListWithFavoritesUpdated)(t.favouriteTakeaways,a.payload.storeId,a.payload.favourite)});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_FILTERED_TAKEAWAYS_COUNT:return Object.assign({},t,{takeawaysCount:a.payload,searchedTakeawayCount:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_SEARCHED_TAKEAWAY_COUNT:return Object.assign({},t,{searchedTakeawayCount:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.POST_FAVOURITE_TAKEAWAY:return Object.assign({},t,{favouriteTakeawayList:"NO"===a.favourite&&(0,r.isArrayNonEmpty)(t.favouriteTakeawayList)?t.favouriteTakeawayList.filter((function(e){return e.id!==a.storeId})):t.favouriteTakeawayList});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TAKEAWAY_SCROLL_TOP:return Object.assign({},t,{takeawayListScrollTop:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_ASSOCIATE_TAKEAWAY_SUCCESS:return Object.assign({},t,{associateTakeawayResponseObject:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_FAVOURITE_SEARCH_LIST:return Object.assign({},t,{searchedFavouriteTakeawayList:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_TAKEAWAYS_ON_COUNTRY_SWITCH:return Object.assign({},t,{takeawayList:null,takeawayGetSuccess:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.STOP_TAKEAWAY_FIND_LOADING:return Object.assign({},t,{takeawayFetching:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.START_TAKEAWAY_FIND_LOADING:return Object.assign({},t,{takeawayFetching:!0});case i.TAKEAWAY_SEARCH_LIST_TYPE.SELECTED_CUISINES_LIST:return Object.assign({},t,{selectedCuisines:a.cuisines,cuisinesSelected:a.cuisines});case i.TAKEAWAY_SEARCH_LIST_TYPE.ADVANCE_SELECTED_CUISINES_LIST:return Object.assign({},t,{advancedSelectedCuisines:a.cuisines});case i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_HOME_SCREEN_FILTER_STATUS:return Object.assign({},t,{homeScreenFilter:a.homeScreenStatus,selectedAdvancedFilterName:a.selectedAdvancedFilterName});case i.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TAKEAWAY_BASED_ON_OFFER:return Object.assign({},t,{filterListWithOffer:a.offer,filterListWithMaxOffer:a.offerMax,isFromOfferList:!0});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_FILTER_TA_RECOMMENDATION:return Object.assign({},t,{recommendationTA:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_SEARCH_TA_RECOMMENDATION:return Object.assign({},t,{search_takeaway_response:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.UPDATED_SEARCH_ADDRESS:return Object.assign({},t,{isSavedAddress:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.FETCHING_ADDRESS_FOR_TA_LIST:case s.ADDRESS_TYPE.UPDATE_CURRENT_LOCATION:return Object.assign({},t,{addressCurrentLocation:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_EVENT_ID:return Object.assign({},t,{takeawayLiveTrackingEventID:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_TA_EVENT_ID:return Object.assign({},t,{takeawayLiveTrackingEventID:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_FILTERBY_RECOMMENDATION:return Object.assign({},t,{recommendationTA:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.FILTERED_OFFER_TAKEAWAYS:return Object.assign({},t,{offersData:a.payload});case l.TYPES_CONFIG.INITIAL_LOCATION_FETCH:var h=a.initialLocationFetch,b=a.hasPreviousSessionLocation;return Object.assign({},t,{initialLocationFetch:h,hasPreviousSessionLocation:b});case _.AUTH_TYPE.INITIATE_LOGOUT_ACTION:return Object.assign({},t,{recommendationTA:null,takeaway_recommendation_response:null,favouriteTakeaways:null,isNewUserLocation:!0,isSavedAddress:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_NEW_USER_LOCATION:return Object.assign({},t,{isNewUserLocation:a.payload,isSavedAddress:!a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_USER_SEARCHED_ADDRESS:return Object.assign({},t,{userSearchedAddress:a.payload,searchLookupResponse:a.lookupResponse,isNewUserLocation:!0,isSavedAddress:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_SELECTED_ADDRESS:return Object.assign({},t,{selectedAddress:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SELECTED_ADDRESS:return Object.assign({},t,{selectedAddress:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_RECOMMENDATION:return Object.assign({},t,{takeaway_recommendation_response:null!=a&&a.takeaway_recommendation_response?null==a?void 0:a.takeaway_recommendation_response:t.takeaway_recommendation_response,recommendationTA:null!=a&&a.recommendationTA?null==a?void 0:a.recommendationTA:t.recommendationTA});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_USER_SEARCH_ADDRESS:return Object.assign({},t,{userSearchedAddress:null,searchLookupResponse:null,isNewUserLocation:!1});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_CUISINES_LIST:return Object.assign({},t,{globalCuisinesList:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_ALL_CUISINES:return Object.assign({},t,{allCuisinesList:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_ALL_LOCATION:return Object.assign({},t,{allLocationList:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.DISMISS_OPTIONAL_UPDATE:return Object.assign({},t,{optionalUpdateDismissed:!0});case i.TAKEAWAY_SEARCH_LIST_TYPE.SHOW_TA_NEW_ADDRESS_TOOLTIP:return Object.assign({},t,{showNewLocationTooltip:null==a?void 0:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_REDIRECT_SUCCESS:return Object.assign({},t,{searchedAddressData:Object.assign({},a.searchedAddressData,a.actionItems)});case i.TAKEAWAY_SEARCH_LIST_TYPE.CUISINE_LOCATION_SEARCH:return Object.assign({},t,{cuisineSearch:null==a?void 0:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_FIND_TAKEAWAY_BTN_LOADING:return Object.assign({},t,{findTakeawaybtnLoading:null==a?void 0:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SELECTED_POST_CODE:return Object.assign({},t,{selectedPostcode:null});case i.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SNAPPY_LIST:return Object.assign({},t,{snappySortType:d.FILTER_TYPE.DISTANCE_VALUE,snappyFilterList:[]});case i.TAKEAWAY_SEARCH_LIST_TYPE.SET_HIDE_GROCERY:return Object.assign({},t,{hideGroceryRoute:null==a?void 0:a.payload});case i.TAKEAWAY_SEARCH_LIST_TYPE.CUISINE_BASED_TA_FILTER:return Object.assign({},t,{cuisineTAFilter:a.payload});default:return Object.assign({},t)}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListReducer.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListReducer.js")}}()},96322:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getAllTakeawayListForFranchise=function*(){var e=yield(0,T.apiCall)(l.FilterTakeawayNetwork.makeGetAllTakeawayListForFranchise);if((0,_.isArrayNonEmpty)(null==e?void 0:e.data)){var t=e.data,a=e.cuisines;if(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_SUCCESS,payload:t,listDetail:null,filterDataType:null,selectedAddress:null,isSavedAddress:!1,searchAddress:null,isDifferentAddress:null,cuisinesResponse:a,actionItems:null,takeAwayListLocation:null,isMissingGoogleListingPostcode:!1}),yield Re(t,!1),!1!==(yield(0,o.select)((function(e){var t;return null==e||null==(t=e.appConfiguratorState)?void 0:t.show_offer_tab_option})))){var i=(0,d.filterTakeawayListByOffers)(t),r=(0,d.filterOfferData)(i);yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.FILTERED_OFFER_TAKEAWAYS,payload:r})}}yield*(0,oe.makeGetOrderListCall)(),ne.default.hide()},t.getAssociateTakeawayList=Ye,t.getFavouriteTakeaway=he,t.getFilterTARecommendation=Ue,t.getOfferBasedTakeawayList=ke,t.getTakeawayList=Le,t.goBackToTAList=Ze,t.handleTakeawayClickAction=De,t.openMenuPage=Ge,t.refreshTakeawayList=je,t.resetSnappyList=ze,t.updateStoreID=we,t.updateTALiveTracking=Fe;var r=i(a(59713)),n=i(a(6479)),o=a(34857),s=a(87280),l=a(7543),_=a(33484),d=a(86730),E=a(39759),u=a(23135),T=a(33202),c=a(98330),A=a(77047),S=a(31501),p=a(57173),O=a(81114),I=a(41613),y=a(21511),L=a(3435),C=a(76782),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=Te(t);if(a&&a.has(e))return a.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,a&&a.set(e,i),i}(a(31077)),R=a(33414),m=a(12834),g=a(61400),N=a(65167),v=a(75833),h=a(34061),b=a(64588),D=a(46375),P=a(62494),w=a(82887),Y=a(78669),k=a(36671),F=a(11143),U=a(18692),W=a(12834),M=a(56652),H=a(55082),G=a(33638),V=a(33266),x=a(89917),K=a(57173),B=a(26662),j=a(71094),Z=a(93574),z=a(12867),$=a(53577),X=a(99547),q=a(78628),Q=a(85362),J=a(31668),ee=a(37222),te=a(83448),ae=a(80539),ie=a(85011),re=a(51702),ne=i(a(84802)),oe=a(72324),se=a(66347),le=a(34061),_e=a(49402),de=a(36217),Ee=a(20414),ue=["hasMileresriction"];function Te(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(Te=function(e){return e?a:t})(e)}var ce=(0,W.isWeb)();function*Ae(e){try{var t,a,i,r,n,l,d,E,u,c=(null==e?void 0:e.postCode)===H.VALID_TEST_POSTCODE,A=!0,S={},p=null,O=yield(0,o.select)(C.selectS3Response);if(!c){var I=null;if(null!=e&&e.postCode){var y,f,R=null==e||null==(y=e.postCode)?void 0:y.replace(/%20/g," ");I=null==(f=(0,z.formatPostcodeFormatUK)((0,z.postcodeValidationFormatter)(R)))?void 0:f.toUpperCase()}else null!=e&&e.town&&(p=null==e?void 0:e.town,A=!1);if(I){var m=yield(0,o.select)(C.selectEnvConfig),g=yield(0,Y.getDeviceUniqueId)(),v=yield(0,o.select)(C.selectGoogleSessionToken),h=yield(0,T.apiCall)(L.AddressNetwork.getAutocompletePlacesCall,Object.assign({text:I,sessiontoken:v},(0,j.getHostAndFranchise)(m),{deviceId:g}));if(null!=h&&h.data){var b,D,P,w=Object.assign({addressObj:{place_id:null!=h&&null!=(b=h.data)&&null!=(D=b[0])&&D.place_id?null==h||null==(P=h.data)?void 0:P[0].place_id:null}},e);S=yield(0,T.apiCall)(L.AddressNetwork.getLocationLookupCall,Object.assign({},w,{deviceId:g}))}else A=!1}}if((0,_.isArrayNonEmpty)(null==(t=S)?void 0:t.data)&&(0,_.isValidNumber)(null==(a=S)||null==(i=a.data[0])||null==(r=i.geometry)||null==(n=r.location)?void 0:n.lat)&&(0,_.isValidNumber)(null==(l=S)||null==(d=l.data[0])||null==(E=d.geometry)||null==(u=E.location)?void 0:u.lng)||c||!A){var k,F,U,W,M,G,V,x;if(yield(0,o.put)(Object.assign({},e,{selectedAddress:c||!A?p?{area:(0,_.firstCharacterUpperCased)(p)}:null:(0,j.extractAddress)(null==(k=S)||null==(F=k.data)?void 0:F[0],O,null==(U=S)||null==(W=U.data)||null==(M=W[0])||null==(G=M.address_components)?void 0:G[0]),type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST})),null!=(V=S)&&null!=(x=V.data)&&x[0]){var K,B,Z,$,X,q,Q,J,ee=(0,j.extractAddress)(S.data[0],O);yield(0,o.put)({type:N.ADDRESS_TYPE.GET_ADDRESS_FROM_LOCATION_SUCCESS,payload:ee}),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_USER_SEARCHED_ADDRESS,payload:(0,j.extractAddress)(null==(K=S)||null==(B=K.data)?void 0:B[0],O,null==(Z=S)||null==($=Z.data)||null==(X=$[0])||null==(q=X.address_components)?void 0:q[0]),lookupResponse:null==(Q=S)||null==(J=Q.data)?void 0:J[0]})}yield(0,o.put)({type:N.ADDRESS_TYPE.RESET_DELIVERY_ADDRESS})}}catch(e){yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_FAILURE})}}function*Se(e){try{var t,a=(null==(t=e.addressObj)?void 0:t.type)===u.SEARCH_TYPE.NAME;if((0,_.isValidElement)(null==e?void 0:e.searchType)&&u.SEARCH_TYPE.FUZZY_SEARCH===e.searchType.toString()||a)yield Le(Object.assign({},e,{searchByAddress:!1}));else{var i,r,n,l,d,E,c=yield(0,Y.getDeviceUniqueId)(),A=yield(0,T.apiCall)(L.AddressNetwork.getLocationLookupCall,Object.assign({},e,{deviceId:c}));if(yield(0,o.put)({type:O.TYPES_CONFIG.UPDATE_GOOGLE_SESSION_TOKEN,googleSessionToken:(0,D.randomSessionToken)()}),(0,_.isArrayNonEmpty)(null==A?void 0:A.data)&&(0,_.isValidNumber)(null==(i=A.data[0])||null==(r=i.geometry)||null==(n=r.location)?void 0:n.lat)&&(0,_.isValidNumber)(null==(l=A.data[0])||null==(d=l.geometry)||null==(E=d.location)?void 0:E.lng)){var S,p=(0,j.extractAddress)(A.data[0],y);yield(0,o.put)({type:N.ADDRESS_TYPE.GET_ADDRESS_FROM_LOCATION_SUCCESS,payload:p});var I=A.data[0].geometry.location,y=yield(0,o.select)(C.selectS3Response),f=Object.assign({},e,{lat:I.lat,lng:I.lng,searchByAddress:!0,selectedAddress:Object.assign({},(0,j.extractAddress)(null==A?void 0:A.data[0],y,null==A||null==(S=A.data[0])?void 0:S.address_components[0]),{googleResponseAddress:e.addressObj})});yield(0,o.put)(Object.assign({},f,{type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST}))}}}catch(e){yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_FAILURE})}}function*pe(e){try{yield Le({lat:e.address.latitude,lng:e.address.longitude,searchByAddress:!0,addressObj:Object.assign({},e.address,{description:(0,p.getFormattedAddress)(e.address)}),description:(0,p.getFormattedAddress)(e.address)})}catch(e){}}function*Oe(e,t,a,i,r,n){var E=yield function*(e,t){try{var a=yield(0,o.select)(C.selectEnvConfig);return yield(0,T.apiCall)(l.FilterTakeawayNetwork.getTakeawayRecommendation,Object.assign({},e,{customer_id:t,postCode:e.postCode.replace(/\s/g,""),configType:a}))}catch(e){}}(e,t,null==e||e.orderType);if((0,_.isArrayNonEmpty)(null==E?void 0:E.Data)){var u,c=(0,d.filterRecommendedTakeawayByDistance)(null==E?void 0:E.Data,a);(0,d.patchDistanceOfTakeaway)(i,null==r||null==(u=r.country)?void 0:u.distance_type,n,c),yield function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;return function*(){try{var i,r=yield(0,o.select)(C.selectS3Response),n=null==r||null==(i=r.country)?void 0:i.id,l=yield(0,o.select)(h.selectCountryBaseFeatureGateResponse),_=!!(0,m.isOrderTypeToggleEnabled)(n,l)&&t,E=yield(0,o.call)(fe,{takeAwayList:e,checkByOrderType:_,orderType:a}),u=yield(0,o.call)(d.filterTakeawayList,E);yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_RECOMMENDATION,takeaway_recommendation_response:e,recommendationTA:null==u?void 0:u.onlineTakeaways})}catch(e){}}()}(c,!0,null==e?void 0:e.orderType)}}function Ie(e,t,a,i){var r,n;(e.town="",(null==t?void 0:t.searchType)===G.SEARCH_TYPE.POSTCODE)&&(e.town=(0,_.isValidString)(null==a||null==(r=a.value)?void 0:r.town)?(0,_.seoFriendlyUrl)(null==a||null==(n=a.value)?void 0:n.town):(0,_.isValidString)(null==e?void 0:e.postCode)?"-":(0,_.seoFriendlyUrl)(i),e.postcode=(0,_.nonFormattedPostCode)(e.postCode));return(null==t?void 0:t.searchType)===G.SEARCH_TYPE.POSTCODE&&(0,_.isValidElement)(e.postCode)?{town:e.town,postcode:e.postcode,cuisines:null==e?void 0:e.cuisines}:Object.assign({},e,{cuisines:null==e?void 0:e.cuisines})}function ye(e){return ce?Object.assign({},e,{businessType:G.BUSINESS_TYPE.GROCERY}):{screen:F.SCREEN_OPTIONS.GROCERY.route_name,params:Object.assign({},e,{businessType:G.BUSINESS_TYPE.GROCERY})}}function*Le(e){var t,a,i,r,n,E,c,A=e||{},S=A.isNewUserLocation,p=A.redirectTAList,O=A.isSavedAddress,I=A.selectedAddress,L=A.isFromCuisineList,m=A.addressObj,P=A.searchByAddress,w=void 0!==P&&P,Y=A.postCode,M=A.updateAddress,x=void 0===M||M,K=A.town,B=A.lat,j=A.lng,$=A.isMissingGoogleListingPostcode,X=A.isLandscapeMode,q=void 0===X?null:X,Q=A.isCusineBasedList,ee=A.isFromPromotionCoupon,te=A.isFromPromotionOffer,ae=yield(0,o.select)(C.selectS3Response),ie=null==ae||null==(t=ae.country)?void 0:t.id,re=null==ae||null==(a=ae.country)?void 0:a.iso,ne=yield(0,o.select)(h.selectUserID),oe=yield(0,o.select)(U.selectAppState),se=yield(0,o.select)(C.selectedOrderType),le=yield(0,o.select)(C.selectIsSnappyEnabled),ue=null,Te=null==(i=J.navigationRef.current)||null==i.getState||null==(r=i.getState())?void 0:r.routes,Ae=null==Te?void 0:Te[Te.length-1],Se=null!=Ae&&Ae.name.includes("modal")?null==Te?void 0:Te[Te.length-2]:Ae,pe=null,Le=ce?k.handleNavigation:k.handleReplace,fe=(null==Se?void 0:Se.name)===F.SCREEN_OPTIONS.GROCERY.route_name||(null==Se?void 0:Se.name)===F.SCREEN_OPTIONS.GIFT.route_name||1===(null==Se||null==(n=Se.state)?void 0:n.index),me=!!(0,_.isBoolean)(q)&&(q?(null==Se?void 0:Se.name)===F.SCREEN_OPTIONS.GROCERY.route_name:1===(null==Se||null==(E=Se.state)?void 0:E.index));e.orderType=ce?null!=(c=null==e?void 0:e.orderType)?c:se:null==e?void 0:e.orderType;var ge=ce?(0,W.isUKApp)(ie)?{town:(0,_.isValidString)(K)?(0,_.seoFriendlyUrl)(K):"-",postcode:(0,_.nonFormattedPostCode)(e.postCode)}:Object.assign({},e):{};if(w&&ce&&!(0,_.isValidElement)(B)&&!(0,_.isValidElement)(j)&&(0,_.isValidElement)(I)){var ve=I.latitude,he=I.longitude;e.lat=ve,e.lng=he}var be=(0,_.isValidElement)(null==m?void 0:m.value)?m.value:(0,_.isValidElement)(null==m?void 0:m.description)?null==m?void 0:m.description:null,De=(ce?yield(0,o.select)(g.getInitialConfigWeb):{}).features,Pe=(0,_.isFoodHubApp)()||(0,_.isFranchiseApp)()&&(0,W.isUKApp)(ie)||ce&&(0,W.isUKApp)(ie)&&(null==De?void 0:De.searchType)===G.SEARCH_TYPE.POSTCODE?w?(0,_.isValidElement)(null==m?void 0:m.description)?m.description:"":(0,_.isValidElement)(Y)?Y:null==m?void 0:m.description:be,we=yield(0,o.select)(C.selectEnvConfig);try{var Ye,ke,Fe,Ue,We,Me,He,Ge;if(yield(0,o.put)((0,y.resetTakeawayAction)(!0)),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.FILTERED_OFFER_TAKEAWAYS,payload:null}),ce&&!L){ie=yield(0,o.select)(C.selectCountry);var Ve=yield(0,o.select)(C.selectCountryList),xe=(0,Z.getCountryById)(Ve,parseInt(ie,10));e.franchise=null==xe?void 0:xe.host,yield(0,o.delay)(1e3)}var Ke=Y;(0,W.isUKApp)(ie)&&(null==Se?void 0:Se.name)===F.SCREEN_OPTIONS.CUISINE_BASED_TA_LIST_SCREEN.route_name&&(0,_.isValidString)(K)&&(0,D.ValidatePostCodeUK)(K)&&(Ke=(0,z.formatPostcodeFormatUK)((0,z.postcodeValidationFormatter)(K)).toUpperCase()||Y);var Be=(0,_.getSearchURL)(w,B,j,Ke,K,m,ie);if(!(0,_.isValidString)(Be)&&!ce)return void(0,k.handleReplace)(F.SCREEN_OPTIONS.LOCATION_SEARCH_SCREEN.route_name,{viewType:H.ADDRESS_FORM_TYPE.SEARCH_TAKEAWAY,formLocationFetch:!0,searchType:(0,W.isUKApp)(ie)?G.SEARCH_TYPE.POSTCODE:G.SEARCH_TYPE.AUTOCOMPLETE});He=yield(0,T.apiCall)(l.FilterTakeawayNetwork.makePostGetTakeawayListCallInisFranchiseAppSearch,Object.assign({searchUrl:Be},(0,_.getHostBasedOnEnv)(ie,we)));var je=(0,_.isValidElement)(null==(Ye=He)||null==(ke=Ye.value)||null==(Fe=ke.filter_by)?void 0:Fe.filter),Ze=(0,_.isValidElement)(null==(Ue=He)?void 0:Ue.value)?null==(We=He)?void 0:We.value:{};if((0,_.isArrayNonEmpty)(null==(Me=He)?void 0:Me.data)){var ze,$e,Xe,qe,Qe,Je,et,tt,at,it,rt,nt,ot,st=He,lt=st.data,_t=st.cuisines,dt=st.value;(0,_.isNonCustomerApp)()&&(Ge=yield(0,d.getCuisinesFromTakeawayList)(lt,_t));var Et,ut=yield(0,o.select)(C.selectBestMatchResponse),Tt=yield(0,o.select)(C.selectRedirectScreen);if((0,_.isValidString)(ne)&&(0,_.isTARecommendationAvailable)(ie))yield(0,o.fork)(Oe,e,ne,null==dt||null==(Et=dt.filter_by)?void 0:Et.filter,ae,ut);if(ce&&p&&(null!=e&&e.isAddressSearched||Tt!==F.SCREEN_OPTIONS.ORDER_HISTORY.route_name&&Tt!==F.SCREEN_OPTIONS.BASKET.route_name)){var ct,At,St,pt,Ot,It,yt,Lt,Ct,ft=yield(0,o.call)(Ie,e,De,He,K);fe&&(ft=yield(0,o.call)(ye,ft));var Rt=null==e?void 0:e.screen,mt=null==(ct=J.navigationRef.current)||null==ct.getState||null==(At=ct.getState().routes)||null==(St=At[0].state)?void 0:St.type,gt=null==(pt=J.navigationRef.current)||null==pt.getState||null==(Ot=pt.getState().routes)||null==(It=Ot[0].state)?void 0:It.index;if(Rt===F.SCREEN_OPTIONS.GROCERY.route_name||(null==Se?void 0:Se.name)===F.SCREEN_OPTIONS.GROCERY.route_name||(null==(yt=J.navigationRef.current)||null==yt.getState||null==(Lt=yt.getState().routes)||null==(Ct=Lt[0].state)?void 0:Ct.routeNames[gt])===F.SCREEN_OPTIONS.GROCERY.route_name)"tab"===mt?setTimeout((function(){return(0,k.handleNavigation)(F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,Object.assign({screen:F.SCREEN_OPTIONS.GROCERY.route_name},ft))})):(0,k.handleNavigation)(F.SCREEN_OPTIONS.GROCERY.route_name,ft);else if(1===gt||Rt===F.SCREEN_OPTIONS.OFFERS.route_name)setTimeout((function(){return(0,k.handleNavigation)(F.SCREEN_OPTIONS.OFFERS.route_name,ft)}));else if(Q&&(0,_.isArrayNonEmpty)(e.cuisines)){var Nt,vt,ht;ft={town:e.postcode,selectedCuisines:e.cuisines[0],isSingleCuisine:!0},yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_CHECKED_CUISINES,cuisinesArray:[null==e||null==(Nt=e.cuisines)?void 0:Nt[0]],filterList:[]}),yield(0,o.call)(Ne,{cuisines:[null==e||null==(vt=e.cuisines)?void 0:vt[0]],takeawayList:lt,filterType:null!=Dt?Dt:u.FILTER_TYPE.DISTANCE_VALUE,postCode:Pe,filterList:[],homeScreenFilter:!0,selectedCuisineFilterName:null==e||null==(ht=e.cuisines)?void 0:ht[0],orderType:null==e?void 0:e.orderType,fromFooter:!0}),yield(0,o.put)((0,y.updateSelectedCuisines)(e.cuisines)),(0,k.handleNavigation)(F.SCREEN_OPTIONS.CUISINE_BASED_TA_LIST_SCREEN.route_name,ft)}else(0,k.handleNavigation)(F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,ft)}(0,d.patchDistanceOfTakeaway)(He,null==ae||null==(ze=ae.country)?void 0:ze.distance_type,ut,null);var bt=yield(0,o.select)(C.selectHasUserLoggedIn);(le&&null!=($e=He)&&null!=(Xe=$e.list_types)&&Xe.grocery||null!=(qe=He)&&null!=(Qe=qe.list_types)&&Qe.gift)&&(ue=yield(0,o.call)(d.getSanppyList,lt)||{});var Dt=je?null==(Je=He)||null==(et=Je.value)||null==(tt=et.filter_by)?void 0:tt.filter:u.FILTER_TYPE.DISTANCE_VALUE,Pt=ue||{},wt=Pt.groceries,Yt=Pt.gifts,kt=Pt.restaurants;(0,_.isArrayNonEmpty)(wt)?(pe=(0,d.filterTakeawayData)(u.FILTER_TYPE.DISTANCE_VALUE,wt),yield Re(pe,!0,v.ORDER_TYPE.DELIVERY,!0,!0,!1,q)):yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_FILTERED_STORELIST,payload:[],hideGroceryRoute:!le||!me}),lt=null!=kt?kt:lt,yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_SUCCESS,payload:lt,selectedPostcode:Pe,cuisinesList:(0,_.isValidElement)(Ge)?Ge:null,listDetail:(0,_.isValidElement)(dt)?dt:null,filterDataType:je?null==dt||null==(at=dt.filter_by)?void 0:at.filter:null,selectedAddress:(0,_.isValidElement)(e.selectedAddress)?e.selectedAddress:null,isSavedAddress:!!(0,_.isValidElement)(e.isSavedAddress)&&e.isSavedAddress,searchAddress:e.searchAddress,isDifferentAddress:e.isDifferentAddress&&bt,cuisinesResponse:_t,actionItems:e,takeAwayListLocation:null==(it=He)?void 0:it.value,isMissingGoogleListingPostcode:$||!1,groceryList:pe||[],giftList:Yt||[],listTypes:null==(rt=He)?void 0:rt.list_types});var Ft=(0,d.filterTakeawayListByOffers)(lt),Ut=(0,d.filterOfferData)(Ft),Wt=le&&((0,_.isArrayNonEmpty)(pe)||(0,_.isArrayNonEmpty)(Yt));if(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.FILTERED_OFFER_TAKEAWAYS,payload:Ut}),function(e,t,a,i,r,n){var o=r||n,s=r?R.SEGMENT_EVENTS.PROMOTION_SEARCH_TAKEAWAY_SUCCESS:R.SEGMENT_EVENTS.OFFER_SEARCH_TAKEAWAY_SUCCESS;o?f.trackEvent(s,{country_code:a,value:(0,d.getSearchTermFromTakeawayList)(t),method:(0,d.getSearchMethodFromTakeawayList)(t),result:(0,_.isArrayNonEmpty)(i)?i.length:0,postcode_from:r?de.PROMOTION_DEALS_CONSTANTS.PROMOTIONS_COUPON:de.PROMOTION_DEALS_CONSTANTS.PROMOTIONS_OFFER}):f.trackEvent(e,{country_code:a,value:(0,d.getSearchTermFromTakeawayList)(t),method:(0,d.getSearchMethodFromTakeawayList)(t),result:(0,_.isArrayNonEmpty)(i)?i.length:0})}(R.SEGMENT_EVENTS.ADDRESS_SEARCH_SUCCESS,e,re,null==(nt=He)?void 0:nt.data,ee,te),(0,_e.setLastSearchedPostcode)(null==e?void 0:e.postcode),(0,Ee.fbSearchTakeawaySuccess)(e,re,null==(ot=He)?void 0:ot.data),(0,_.isValidElement)(He.value)){var Mt=(0,d.filterTakeawayData)(Dt,lt);if((0,_.isArrayNonEmpty)(Mt)){var Ht=(0,d.newTakeawayList)(Mt),Gt=yield(0,o.select)((function(e){var t;return null==(t=e.takeawayListReducer)?void 0:t.cuisinesSelected}));(0,_.isArrayNonEmpty)(Gt)&&(Ht=(0,d.sortBasedOnCuisineAndFilter)(Gt,Ht,null,null,null,Q)),(0,_.isArrayNonEmpty)(Ht)&&(yield Re(Ht,!0,e.orderType,!1,!1,Wt))}else yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.RESTAURANT_LIST_EMPTY})}else yield Re(lt,!0,e.orderType,!1,!1,Wt);if(!oe&&p&&!ce){var Vt=(new Date).getTime(),xt=null!=e&&e.startTime?Vt-(null==e?void 0:e.startTime):0;f.trackEvent(R.SEGMENT_EVENTS.TAKEAWAY_LIST_SUCCESS,xt?{duration:xt}:{}),(0,k.handleReplace)(F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name)}(0,_.isBoolean)(S)&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_NEW_USER_LOCATION,payload:S})),!S&&O&&(0,_.isValidElement)(I)&&bt&&x&&(yield(0,o.put)((0,V.updateSelectedOrderType)({selectedOrderType:se,selectedPostcode:e.selectedAddress.postcode,selectedAddressId:e.selectedAddress.id})),yield(0,o.put)({type:N.ADDRESS_TYPE.DELIVERY_ADDRESS_SELECT,deliveryAddress:e.selectedAddress})),yield(0,o.put)((0,y.handleFindTakeawayBtnLoading)(!1))}else{var Kt;if(Ce(e,re,"no_result"),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.FILTERED_OFFER_TAKEAWAYS,payload:[]}),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_FAILURE,hideGroceryRoute:!me}),(0,W.isUKApp)(ie)&&null!=ge&&ge.town)ge.town=(0,_.seoFriendlyUrl)(null!=(Kt=null==Ze?void 0:Ze.town)?Kt:null==ge?void 0:ge.town);var Bt=ge;fe&&(Bt=yield(0,o.call)(ye,Bt)),p&&Le(fe&&q?F.SCREEN_OPTIONS.GROCERY.route_name:F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,Bt)}}catch(t){Ce(e,re,(null==t?void 0:t.type)===b.NETWORK_CONSTANTS.API_ERROR?"failed":"connection_error"),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.FILTERED_OFFER_TAKEAWAYS,payload:[]}),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_FAILURE,hideGroceryRoute:!me});var jt=ge;fe&&(jt=yield(0,o.call)(ye,jt)),!oe&&p&&(null==t?void 0:t.message)===u.INVALID_POSTCODE_API_MESSAGE||ce&&(null==t?void 0:t.type)===b.NETWORK_CONSTANTS.API_ERROR?Le(fe&&q?F.SCREEN_OPTIONS.GROCERY.route_name:F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,jt):!oe&&p&&Le(F.SCREEN_OPTIONS.LOCATION_SEARCH_SCREEN.route_name,{viewType:H.ADDRESS_FORM_TYPE.SEARCH_TAKEAWAY,formLocationFetch:!0,searchType:(0,W.isUKApp)(ie)?G.SEARCH_TYPE.POSTCODE:G.SEARCH_TYPE.AUTOCOMPLETE})}}function Ce(e,t,a){f.trackEvent(R.SEGMENT_EVENTS.ADDRESS_SEARCH_FAILED,{country_code:t,cause:e.searchByAddress?R.SEGMENT_STRINGS.NO_TAKEAWAY_FOUND_AREA:R.SEGMENT_STRINGS.NO_TAKEAWAY_FOUND_POSTCODE,search:(0,d.getSearchTermFromTakeawayList)(e),type:a})}function fe(e){var t=e.hasMileresriction,a=void 0===t||t,i=(0,n.default)(e,ue);return function*(){var e=yield(0,o.select)(B.selectSelectedAddress),t=(0,j.getPostocdeFromAddressState)(e),r=yield(0,o.select)(C.selectTAListMilesRestrictionConfig),n=yield(0,o.select)(B.selectSelectedPostcode)||t||null,s=a?{postcode:n,mileRestrictionConfig:r}:{};return Object.assign({},i,s)}()}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return function*(){try{var E,u,T,c,A=yield(0,o.select)(C.selectS3Response),S=null==A||null==(E=A.country)?void 0:E.id,p=yield(0,o.select)(h.selectCountryBaseFeatureGateResponse),O=!!(0,m.isOrderTypeToggleEnabled)(S,p)&&t,I=yield(0,o.call)(fe,{takeAwayList:e,checkByOrderType:O,orderType:a}),y=yield(0,o.call)(d.filterTakeawayList,I),L=null==(u=J.navigationRef.current)||null==u.getState||null==(T=u.getState())?void 0:T.routes,f=null==L?void 0:L[L.length-1],R=null!=f&&f.name.includes("modal")?null==L?void 0:L[L.length-2]:f,g=!!(0,_.isBoolean)(l)&&(l?(null==R?void 0:R.name)===F.SCREEN_OPTIONS.GROCERY.route_name:1===(null==R||null==(c=R.state)?void 0:c.index)),b=yield(0,o.select)(C.selectIsSnappyEnabled);if((0,_.isValidElement)(i)&&!i&&a===v.ORDER_TYPE.DELIVERY&&t&&a&&(0,d.isTakeawayListEmpty)(y)&&!n&&(y=yield(0,o.call)(d.filterTakeawayList,{takeAwayList:e,checkByOrderType:O,orderType:v.ORDER_TYPE.COLLECTION}),yield(0,o.put)({type:N.ADDRESS_TYPE.SELECTED_TA_ORDER_TYPE,payload:v.ORDER_TYPE.COLLECTION}),yield(0,o.put)({type:N.ADDRESS_TYPE.UPDATE_NON_BASKET_ORDER_TYPE,payload:v.ORDER_TYPE.COLLECTION})),(0,_.isValidElement)(y)){var D=(0,d.getFilteredTakeawayList)(y);if(r)yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_FILTERED_STORELIST,payload:y,hideGroceryRoute:!(!b||g)&&!(0,_.isArrayNonEmpty)(D)});else{var w=(0,P.getCurrentPageFromNavigation)();w!==F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name&&w!==F.SCREEN_OPTIONS.REGION_BASED_TA.route_name||!(0,_.isArrayNonEmpty)(D)||(yield(0,o.put)((0,q.getSchemaAction)(F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,D))),yield(0,o.putResolve)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_FILTERED_TAKEAWAYS,payload:y})}}}catch(e){}}()}function me(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;return function*(){try{var i,r=yield(0,o.select)(C.selectS3Response),n=yield(0,o.select)(h.selectCountryBaseFeatureGateResponse),l=null==r||null==(i=r.country)?void 0:i.id,E=!!(0,m.isOrderTypeToggleEnabled)(l,n)&&t,u=yield(0,o.call)(fe,{takeAwayList:e,checkByOrderType:E,orderType:a}),T=yield(0,o.call)(d.filterTakeawayList,u);(0,_.isValidElement)(T)&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SAVE_ADVANCED_FILTERED_TAKEAWAYS,payload:T}))}catch(e){}}()}function*ge(e){try{var t,a,i=yield(0,o.select)(C.selectTakeawayListReducer);if((0,_.isValidElement)(e.searchString)&&(0,_.isValidElement)(e.arrayList)&&(0,_.isValidElement)(e.searchType)&&(0,_.isValidElement)(i)){var r,n,l,E=(0,_.isValidElement)(null==(r=i)?void 0:r.takeaway_recommendation_response)&&i.takeaway_recommendation_response.length>0?i.takeaway_recommendation_response.slice(0,3):null;if(e.searchType===u.SEARCH_TYPE.CUISINES_FILTER?t=(0,d.searchMethod)(e.arrayList,e.searchString):(t=yield(0,d.searchTakeawayName)(e.arrayList,e.searchString),(0,_.isValidElement)(E)&&(a=yield(0,d.searchTARecommendationName)(E,e.searchString),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_SEARCH_TA_RECOMMENDATION,payload:a}))),(0,_.isValidElement)(t)&&e.searchType===u.SEARCH_TYPE.TAKEAWAY_FILTER)if(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_SEARCHED_TAKEAWAY_COUNT,payload:t.length}),i=yield(0,o.select)(C.selectTakeawayListReducer),(0,_.isValidElement)(i)&&(i.homeScreenFilter||i.isFromOfferList||null!=(n=i)&&n.cuisineTAFilter))yield me(t,(0,_.isEmpty)(e.searchString),e.orderType);else{var T=(0,d.filterTakeawayData)(e.filterType,t);if((0,_.isArrayNonEmpty)(T)){var c=(0,d.newTakeawayList)(T);(0,_.isArrayNonEmpty)(c)&&(yield Re(c,(0,_.isEmpty)(e.searchString),e.orderType))}}else if((0,_.isValidElement)(t)&&e.searchType===u.SEARCH_TYPE.GROCERY_FILTER){var A=(0,d.filterTakeawayData)(e.filterType,t);yield Re(A,(0,_.isEmpty)(e.searchString),e.orderType,!1,!0)}else if((0,_.isValidElement)(t)&&e.searchType===u.SEARCH_TYPE.CUISINES_FILTER)yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SEARCH_ELEMENT_SUCCESS,payload:t});else if((0,_.isValidElement)(t)&&e.searchType===u.SEARCH_TYPE.FAVOURITE_TAKEAWAYS){var S=yield(0,d.filterTakeawayList)({takeAwayList:t});yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_SEARCHED_FAVOURITE_TAKEAWAY_SUCCESS,payload:S})}if((0,_.isValidString)(null==e?void 0:e.searchString)&&(0,_.isValidElement)(t))yield function(e,t,a){var i=(0,P.getCurrentPageFromNavigation)();f.trackEvent(R.SEGMENT_EVENTS.TA_SEARCH,{search_string:t.searchString,sorting:a,result:(0,_.isArrayNonEmpty)(e)?e.length:0,search_status:e.length>0?R.SEGMENT_STRINGS.SUCCESS:R.SEGMENT_STRINGS.FAILED,source:(0,_.isValidString)(i)?i:u.SCREEN_NAME.TAKEAWAY_LIST_SCREEN})}(t,e,null==(l=i)?void 0:l.filterType)}}catch(e){}}function*Ne(e){var t=null!=e?e:{},a=t.cuisines,i=t.takeawayList,r=t.filterList,n=t.homeScreenFilter,l=t.selectedCuisineFilterName,E=t.fromFooter,T=t.isNotRestaurant;try{if(yield(0,o.select)((function(e){return e.appConfiguratorState.skip_location_for_takeaway_listing})))return void((0,_.isValidElement)(e.takeawayList)&&(yield Re(e.takeawayList,!1)));if((0,_.isValidElement)(e.takeawayList)){var c=(0,d.sortBasedOnCuisineAndFilter)(a,i,r,n,l,E,T);(0,_.isArrayNonEmpty)(c)&&(yield function*(e,t){var a=e.isNotRestaurant,i=e.cuisines,r=e.filterList,n=e.filterType,l=e.selectedCuisineFilterName,E=e.homeScreenFilter,T=e.orderType,c=e.manualChange;try{var A=yield(0,o.select)((function(e){var t;return null==(t=e.takeawayListReducer)?void 0:t.cuisineTAFilter}));if((0,_.isValidElement)(n)&&(0,_.isValidElement)(t)){var S=yield(0,d.filterTakeawayData)(n,t);a||(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_FILTERED_TAKEAWAYS_COUNT,payload:(0,_.isValidElement)(S)?S.length:0}));var p=S;(0,_.isValidElement)(i)&&0===i.length&&(0,_.isValidElement)(r)&&0===r.length&&(0,_.isValidElement)(n)&&n===u.FILTER_TYPE.DISTANCE_VALUE&&!(0,_.isValidString)(l)&&(p=(0,d.newTakeawayList)(S)),E||A?yield me(p,!0,T):yield Re(p,!0,T,c,a)}}catch(e){}}(e,c))}}catch(e){}}function*ve(e){try{(0,_.isValidElement)(e.storeId)&&(0,_.isValidElement)(e.favourite)&&(yield(0,T.apiCall)(l.FilterTakeawayNetwork.makePostFavouriteTakeawayCall,e)),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_LOCAL_TAKEAWAY_LIST_FAVORITE,payload:e})}catch(e){}}function*he(){try{var e=yield(0,T.apiCall)(l.FilterTakeawayNetwork.makeGetFavouriteTakeawayCall);(0,_.isValidElement)(e)&&(0,_.isValidElement)(e.customer)&&(0,_.isValidElement)(e.customer.stores)&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY_SUCCESS,payload:e.customer.stores}))}catch(e){(0,E.showErrorMessage)(e)}}function*be(){try{var e=yield(0,T.apiCall)(l.FilterTakeawayNetwork.makeGetFavouriteTakeawayListCall);if((0,_.isValidElement)(null==e?void 0:e.wishlist)){var t=yield(0,o.call)(d.filterTakeawayList,{takeAwayList:e.wishlist});(0,_.isValidElement)(t)&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY_LIST_SUCCESS,payload:t,response:e.wishlist}))}}catch(e){}}function*De(e){if(null==e||!e.cancel)try{var t,a,i,r;yield(0,o.put)((0,ie.updateMenuUIState)(re.UI_STATE_TYPES.LOADING));var n=null==e?void 0:e.storeInfo,s=yield(0,o.select)(h.selectCountryBaseFeatureGateResponse),l=yield(0,o.select)(le.selectBasketState),u=(0,M.getAdvanceDiscountEnabled)(s);(0,Q.isEventOrderFlow)();(0,_.isValidElement)(null==l?void 0:l.deliveryPreOrderData)||(yield(0,X.fetchCustomPreorderSlots)()),u&&(0,_.isValidElement)(null==(t=n)?void 0:t.id)&&(yield(0,o.fork)(A.getAdvanceDiscount,{storeId:n.id})),yield we(e);var S=(null!=e?e:{}).isFromRecentTakeaway,p=yield(0,o.select)(w.selectMenuResponse);(0,_.isCustomerApp)()&&(0,_.isValidElement)(p)&&(yield(0,o.put)((0,ie.updateMenuUIState)(re.UI_STATE_TYPES.SUCCESS))),yield(0,o.put)({type:I.HOME_TYPE.FILTER_OUR_RECOMMENDATIONS,payload:null}),yield(0,o.fork)(A.resetMenuForNonCustomerApp,null==(a=n)?void 0:a.host);var y=!1;(0,_.isValidElement)(null==(i=n)?void 0:i.id)?(yield(0,A.makeGetMenuApiCall)({storeConfigResponse:n,fallback:!1,isFromRecentTakeaway:S}),(0,_.isCustomerApp)()&&(yield(0,o.fork)($.makeGetRecentOrdersCall))):y=!0;var L=(0,d.checkIfAllMenuObjectExist)(e.storeInfo),C=ce&&(0,_.isCustomerApp)();n=!S&&L||!(0,_.isNonCustomerApp)()?e.storeInfo:yield(0,T.apiCall)(c.appBase.makeStoreConfigCall);var f,R=!ce||!C||C&&(0,W.getWebHost)()==(null==(r=n)?void 0:r.host);if(R&&(yield(0,o.fork)(Y.logStoreConfigResponse,n)),(0,_.isValidElement)(n))(0,_.isNonCustomerApp)()&&(R&&(yield(0,o.put)({type:O.TYPES_CONFIG.STORE_CONFIG_SUCCESS,payload:n})),yield(0,X.fetchCustomPreorderSlots)()),ce&&(yield(0,o.put)((0,q.getSchemaAction)(F.SCREEN_OPTIONS.MENU_SCREEN.route_name))),y&&(0,_.isValidElement)(null==(f=n)?void 0:f.id)&&(yield(0,A.makeGetMenuApiCall)({storeConfigResponse:n,fallback:!1,isFromRecentTakeaway:S}));else yield(0,o.put)((0,ie.updateMenuUIState)(re.UI_STATE_TYPES.FAILURE))}catch(e){yield(0,o.put)((0,ie.updateMenuUIState)(re.UI_STATE_TYPES.FAILURE)),(0,E.showErrorMessage)(e)}}function*Pe(){if((0,_.isNonCustomerApp)()){var e=yield(0,o.select)(g.getConfiguration);yield(0,o.call)(T.updateConfiguration,Object.assign({},e,(0,r.default)({},S.CONFIG_KEYS.basket_store_id,null)))}}function*we(e){var t=e.storeID,a=e.storeInfo;if((0,_.isNonCustomerApp)()){var i=(0,_.isValidElement)(t)?t:(0,_.isValidElement)(null==a?void 0:a.config_id)?a.config_id:null,n=yield(0,o.select)(g.getConfiguration);yield(0,o.call)(T.updateConfiguration,Object.assign({},n,(0,r.default)({},S.CONFIG_KEYS.basket_store_id,i)))}}function*Ye(){try{var e=yield(0,T.apiCall)(l.FilterTakeawayNetwork.makeAssociateTakeawayCall);if((0,_.isValidElement)(e)&&(0,_.isValidElement)(e.customer)&&(0,_.isValidElement)(e.customer.stores)){var t=(0,ee.convertArrayToObject)(e.customer.stores);yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.GET_ASSOCIATE_TAKEAWAY_SUCCESS,payload:t})}}catch(e){}}function*ke(e){try{var t=yield(0,o.select)(C.selectTakeawayListReducer);if((0,_.isValidElement)(t)&&(0,_.isValidElement)(t.takeawayList)){var a=t.takeawayList.filter((function(t){return t.discount>=e.offer&&t.discount<=e.offerMax})),i=(0,d.filterTakeawayData)(u.FILTER_TYPE.DISCOUNT,a);yield me(i,!0,e.orderType)}}catch(e){}}function*Fe(e){try{var t=(null!=e?e:{}).body;if((0,_.isValidElement)(null==t?void 0:t.config_id)&&(0,_.isValidElement)(null==t?void 0:t.type)){var a=yield(0,T.apiCall)(l.FilterTakeawayNetwork.makeLiveTrackingCall,e);(0,_.isValidElement)(null==a?void 0:a.outcome)&&"success"===a.outcome&&(e.event===u.LIVE_TRACKING_EVENT.SELECT_TA_FILTER_TYPE_EVENT&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_EVENT_ID,payload:a.id})),a.id||(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.RESET_TA_EVENT_ID})))}}catch(e){}}function*Ue(e){try{if((0,_.isValidElement)(e.taRecommendation)){var t=(0,d.filterTakeawayData)(e.filterType,e.taRecommendation);yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_FILTER_TA_RECOMMENDATION,payload:t})}}catch(e){}}function*We(e){var t=yield(0,o.select)((function(e){var t,a;return null==(t=e.appState.s3ConfigResponse)||null==(a=t.country)?void 0:a.id})),a=se.LOCALIZATION_STRINGS.INVALID_CUISINE,i=F.SCREEN_OPTIONS.CUISINES_LOCATION_LIST.route_name;try{var r=e.cuisine,n=yield(0,T.apiCall)(l.FilterTakeawayNetwork.getCuisinesList,decodeURI(r));(0,_.isArrayNonEmpty)(null==n?void 0:n.data)?yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_CUISINES_LIST,payload:n.data}):(0,d.handleCuisineLocationRedirection)(null,null,null,t,a,i)}catch(e){(0,d.handleCuisineLocationRedirection)(e,null,null,t,a,i)}}function*Me(e){var t=e.latitude,a=e.longitude,i=e.savedAddress,r=e.isRedirect;yield(0,o.put)((0,x.getUserAddressFormBackground)(t,a,!0,i)),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.START_TAKEAWAY_FIND_LOADING}),r&&(0,k.handleReplace)(F.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name)}function*He(e,t){e===v.ORDER_TYPE.COLLECTION?yield(0,o.put)((0,V.updateSelectedOrderType)({selectedOrderType:v.ORDER_TYPE.COLLECTION})):yield function*(e){var t=e.show_delivery,a=e.show_collection,i=(0,d.getStoreStatusDelivery)(e),r=(0,d.getStoreStatusCollection)(e),n=(0,d.getPreorderStatus)(e,v.ORDER_TYPE.DELIVERY,i),s=(0,d.getPreorderStatus)(e,v.ORDER_TYPE.COLLECTION,r),l=(0,C.isDeliveryAvailableForStore)(t,i)||(0,K.isPreOrderAvailableForDelivery)(n),_=(0,C.isCollectionAvailableForStore)(a,r)||(0,K.isPreOrderAvailableForCollection)(s);if(l||!_){var E=yield(0,o.select)((function(e){return e.takeawayListReducer.selectedPostcode})),u=yield(0,o.select)((function(e){return e.addressState.selectedAddressId})),T=yield(0,o.select)(C.selectBasketStoreID),c=yield(0,o.select)(h.selectCartItems);yield(0,o.put)((0,V.updateSelectedOrderType)({selectedOrderType:v.ORDER_TYPE.DELIVERY,selectedPostcode:E,selectedAddressId:u,isBasketChanged:(null==c?void 0:c.length)>0?(0,j.isBasketOrder)(T,null==e?void 0:e.id):null}))}else yield(0,o.put)((0,V.updateSelectedOrderType)({selectedOrderType:v.ORDER_TYPE.COLLECTION}))}(t)}function*Ge(e){var t=e.takeaway,a=e.selectedTakeAway,i=yield(0,o.select)(C.selectSelectedTAOrderType),r=t.town,n=t.slug_name,s=yield(0,o.select)(C.getNetworkStatus),l=yield(0,o.select)(B.selectFilterType),T={isFromReOrder:!1,isFromRecentTakeAway:!1,storeConfig:t,isLoading:s&&(null==t?void 0:t.id)!==a,town:(0,_.seoFriendlyUrl)(r),slug_name:(0,_.seoFriendlyUrl)(n)},c=yield(0,o.select)(C.selectStoreConfigResponse);(0,te.checkIfSameMenuParamsReceivedForStore)(c,T)||(yield(0,o.put)((0,ae.resetMenuResponseAction)())),(0,k.handleNavigation)(F.SCREEN_OPTIONS.MENU_SCREEN.route_name,T),yield He(i,t),yield function*(e,t){var a=t.name,i=t.show_delivery,r=t.show_collection,n=(0,d.getStoreStatusDelivery)(t),s=(0,d.getStoreStatusCollection)(t),l=(0,d.getPreorderStatus)(t,v.ORDER_TYPE.DELIVERY,n),u=(0,d.getPreorderStatus)(t,v.ORDER_TYPE.COLLECTION,s),T=(0,d.isDeliveryOrPreOrderAvailable)(i,n,l),c=(0,d.isCollectionOrPreOrderAvailable)(r,s,u),A=yield(0,o.select)(C.selectCountryId),S=yield(0,o.select)(h.selectCountryBaseFeatureGateResponse),p=(0,K.getToastMessageForTakeawayOpenStatus)(A,a,S,e,T,c);(0,_.isValidString)(p)&&(0,E.showErrorMessage)(p)}(i,t);var A={config_id:t.id,type:"create",filter_by:l},S={event:u.LIVE_TRACKING_EVENT.SELECT_TA_FILTER_TYPE_EVENT,body:A};yield(0,o.put)({type:O.TYPES_CONFIG.UPDATE_STORE_CONFIG_RESPONSE_FOR_VIEW,payload:t,isFromReOrder:!1,isFromRecentTakeAway:!1,isFromTAList:!0,trackData:S})}function*Ve(e){var t=e.location,a=e.cuisine,i=yield(0,o.select)((function(e){var t;return null==(t=e.takeawayListReducer)?void 0:t.searchedAddressData})),r=yield(0,o.select)(B.selectSelectedAddress);yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.START_TAKEAWAY_FIND_LOADING}),yield(0,o.call)(Le,{town:(0,_.isValidString)(t)?t:(0,_.isValidString)(null==i?void 0:i.town)?null==i?void 0:i.town:"",postcode:(0,_.isValidString)(null==i?void 0:i.postCode)?null==i?void 0:i.postCode:"",isFromCuisineList:!0,selectedAddress:(0,_.isValidElement)(t)?{area:(0,_.firstCharacterUpperCased)(t)}:r}),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.STOP_TAKEAWAY_FIND_LOADING}),yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.CUISINE_LOCATION_SEARCH,payload:!1});var n=yield(0,o.select)((function(e){return e.takeawayListReducer})),l=n.takeawayList,d=n.selectedPostcode,E=yield(0,o.select)((function(e){return(0,B.selectFilterType)(e)})),u=yield(0,o.select)((function(e){return e.addressState.selectedTAOrderType}));yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.UPDATE_CHECKED_CUISINES,cuisinesArray:[a],filterList:[]}),yield(0,o.call)(Ne,{cuisines:[a],takeawayList:l,filterType:E,postCode:d,filterList:[],homeScreenFilter:!0,selectedCuisineFilterName:a,orderType:u,fromFooter:!0})}function*xe(){var e=yield(0,T.apiCall)(l.FilterTakeawayNetwork.getAllCuisinesList);(0,_.isArrayNonEmpty)(null==e?void 0:e.data)&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_ALL_CUISINES,payload:e.data}))}function*Ke(){var e,t,a=yield(0,T.apiCall)(l.FilterTakeawayNetwork.getAllLocationList);(0,_.isValidElement)(null==a||null==(e=a.response)?void 0:e.city_list)&&(yield(0,o.put)({type:s.TAKEAWAY_SEARCH_LIST_TYPE.SET_ALL_LOCATION,payload:(0,d.groupAllLocation)(null==a||null==(t=a.response)?void 0:t.city_list)}))}function Be(e){var t=e.orderType;return function*(){try{var e=yield(0,o.select)((function(e){return e.takeawayListReducer})),a=e.takeawayList,i=e.takeaway_recommendation_response,r=e.cuisinesSelected,n=e.selectedAdvancedFilterName,s=e.selectedPostcode,l=e.searchedAddressData,d=e.selectedAddress,E=s||(null==d?void 0:d.postCode)||(null==d?void 0:d.postcode)||null,T=yield(0,o.select)(B.selectFilterType),c=yield(0,o.select)(B.selectFilterList),A=yield(0,o.select)(C.selectCountryId),S=yield(0,o.select)(C.selectTAListMilesRestrictionConfig),p=(yield(0,o.select)(U.selectAddressState))||{},O=p.selectedPostcode,I=p.selectedAddressId;yield(0,o.put)((0,V.selectedTAOrderTypeAction)(t)),yield(0,o.put)((0,V.updateNonBasketOrderType)(t,O,I,!0)),yield(0,o.put)((0,y.filterTakeawayByOrderTypeAction)(a,t,E,S)),yield function(e,t,a,i,r){f.trackEvent(R.SEGMENT_EVENTS.ORDER_TYPE,{postcode:(0,W.isUKApp)(r)?(0,_.nonFormattedPostCode)(a):null==i?void 0:i.searchAddress,order_type:t,result:null==e?void 0:e.length})}(a,t,s,l,A),yield(0,o.put)((0,y.filterTARecByOrderTypeAction)(i,t,T)),yield(0,o.put)((0,y.sortBasedOnCuisines)(r,a,T,u.SEARCH_TYPE.POST_CODE,c,null,n,t))}catch(e){}}()}function*je(e){try{var t=yield(0,o.select)((function(e){return e.takeawayListReducer.takeawayList}));if(!(0,_.isValidElement)(t)){var a=yield(0,o.select)((function(e){return e.takeawayListReducer.selectedPostcode})),i=yield(0,o.select)((function(e){return e.takeawayListReducer.searchedAddressData})),r=yield(0,o.select)((function(e){return e.addressState.deliveryAddress})),n=(0,_.isValidElement)(i)?i:(0,_.isValidElement)(null==e?void 0:e.actionItems)?e.actionItems:(0,_.isValidElement)(a)?{postCode:a}:null;!(0,_.isValidElement)(null==n?void 0:n.postCode)&&(0,_.isValidString)(null==n?void 0:n.postcode)&&(n.postCode=null==n?void 0:n.selectedPostcode),(0,_.isValidElement)(r)&&(0,_.isValidElement)(n)&&(n.isNewUserLocation=!1,n.isSavedAddress=!0),(0,_.isValidElement)(n)&&(n.updateAddress=!1,n.redirectTAList=!1,yield(0,o.put)((0,y.getTakeawayListAction)(n)))}}catch(e){}}function*Ze(e){var t=yield(0,o.select)((function(e){var t;return null==(t=e.addressState.addressResponse)?void 0:t.data})),a=yield(0,o.select)((function(e){return e.takeawayListReducer.selectedAddress})),i=yield(0,o.select)(C.selectHasUserLoggedIn),r=yield(0,o.select)((function(e){var t,a;return null==(t=e.appState.s3ConfigResponse)||null==(a=t.country)?void 0:a.id})),n=(0,W.getPreviousSessionLocation)({savedAddressList:t,isUserLoggedIn:i,lastSearchedAddress:a});if((0,_.isValidElement)(n)&&(0,j.isSavedAddress)(n))yield(0,o.put)((0,y.navigatingTAWithPrevLocationAction)(null,null,n,null==e?void 0:e.redirect));else{if(!(0,_.isValidElement)(n)||(0,j.isSavedAddress)(n))return(0,k.handleReplace)(F.SCREEN_OPTIONS.LOCATION_SEARCH_SCREEN.route_name,{viewType:H.ADDRESS_FORM_TYPE.SEARCH_TAKEAWAY,formLocationFetch:!0,searchType:(0,W.isUKApp)(r)?G.SEARCH_TYPE.POSTCODE:G.SEARCH_TYPE.AUTOCOMPLETE}),!0;yield(0,o.put)((0,y.navigatingTAWithPrevLocationAction)(null==n?void 0:n.latitude,null==n?void 0:n.longitude,null,null==e?void 0:e.redirect))}}function*ze(e){var t=(0,_.isGroceryType)(null==e?void 0:e.businessType)?yield(0,o.select)(B.selectGroceryList):yield(0,o.select)(B.selectGiftList),a=(0,d.filterTakeawayData)(u.FILTER_TYPE.DISTANCE_VALUE,t);yield Re(a,!0,v.ORDER_TYPE.DELIVERY,!0,!0)}t.default=function*(){yield(0,o.all)([(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST,Le),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.SEARCH_ELEMENT,ge),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_CUISINES,Ne),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.POST_FAVOURITE_TAKEAWAY,ve),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY,he),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_FAVOURITE_TAKEAWAY_LIST,be),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.TAKEAWAY_LIST_CLICK_ACTION,De),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.RESET_STORE_ID_CONFIG,Pe),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_ADDRESS,Se),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_USER_ADDRESS,pe),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_ASSOCIATE_TAKEAWAY,Ye),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TAKEAWAY_BASED_ON_OFFER,ke),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.FILTER_TA_RECOMENDATION,Ue),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.SET_TA_LIVE_TRACKING,Fe),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_CUISINES_LIST,We),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_CUISINES_LIST_BASED_ON_LOCATION,Ve),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_ALL_CUISINES,xe),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.ORDER_TYPE_CHANGE,Be),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_ALL_LOCATION,Ke),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.NAVIGATING_TA_WITH_PREV_LOCATION,Me),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.OPEN_MENU_PAGE,Ge),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GO_BACK_TA_LIST,Ze),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.REFRESH_TAKEAWAY_DATA,je),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.GET_TAKEAWAY_LIST_BY_POSTCODE,Ae),(0,o.takeLatest)(s.TAKEAWAY_SEARCH_LIST_TYPE.RESET_SNAPPY_LIST,ze)])};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListSaga.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListSaga.js")}}()},26662:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.selectTakeawayListState=t.selectSnappySortType=t.selectSnappyFilterList=t.selectSelectedPostcode=t.selectSelectedCuisinesList=t.selectSelectedAddress=t.selectSearchedAddressData=t.selectSearchedAddress=t.selectPrimaryAddress=t.selectPreorderDeliveryStatus=t.selectPreorderCollectionStatus=t.selectLongitude=t.selectLatitude=t.selectIsMissingGoogleListingPostcode=t.selectHideGroceryRoute=t.selectHasPreviousSelectors=t.selectGroceryList=t.selectGiftList=t.selectFilteredStores=t.selectFilterType=t.selectFilterList=t.selectDeliveryStatus=t.selectCuisineSelected=t.selectCollectionStatus=void 0;var i=a(33484),r=a(18692),n=a(71094),o=a(12834),s=a(76782),l=a(86730),_=a(75833),d=a(55082),E=t.selectTakeawayListState=function(e){return e.takeawayListReducer},u=(t.selectHasPreviousSelectors=function(e){return e.takeawayListReducer.hasPreviousSessionLocation},t.selectHideGroceryRoute=function(e){return e.takeawayListReducer.hideGroceryRoute},t.selectSnappySortType=function(e){return e.takeawayListReducer.snappySortType},t.selectGroceryList=function(e){return e.takeawayListReducer.groceryList},t.selectGiftList=function(e){return e.takeawayListReducer.giftList},t.selectFilteredStores=function(e){return e.takeawayListReducer.filteredStores},t.selectSnappyFilterList=function(e){return e.takeawayListReducer.snappyFilterList},t.selectSearchedAddress=function(e){var t,a,l=(0,o.isUKApp)(null==(t=(0,s.selectS3Response)(e))||null==(a=t.country)?void 0:a.id),_=(0,r.selectAddressState)(e),d=E(e),u=((0,i.isValidElement)(d)&&d).selectedPostcode,T=_.addressResponse,c=((0,i.isValidElement)(T)&&T).data,A=null,S=(0,i.isValidElement)(null==_?void 0:_.selectedAddressId);return l&&(0,i.isArrayNonEmpty)(c)&&(0,i.isValidElement)(u)&&!S?(A=c.find((function(e){return e.postcode===u&(0,n.isPrimaryAddress)(e)})),(0,i.isValidElement)(A)?A:c.find((function(e){return e.postcode===u}))):null},t.selectPrimaryAddress=function(e){var t=(0,r.selectAddressState)(e).addressResponse,a=((0,i.isValidElement)(t)&&t).data;if((0,i.isValidElement)(a)&&a.length>0){var o=a.find((function(e){return(0,n.isPrimaryAddress)(e)}));return(0,i.isValidElement)(o)?o:a[0]}return null},t.selectIsMissingGoogleListingPostcode=function(e){var t=E(e);return null==t?void 0:t.isMissingGoogleListingPostcode},t.selectCuisineSelected=function(e){var t=E(e),a=t.homeScreenFilter,r=t.advancedCuisineSelected,n=t.cuisinesSelected;return(0,i.isValidElement)(a)&&(0,i.isValidElement)(r)&&(0,i.isValidElement)(n)&&a?r:n},t.selectFilterType=function(e){var t=E(e),a=t.homeScreenFilter,r=t.advancedFilterType,n=t.filterType;return(0,i.isValidElement)(a)&&(0,i.isValidElement)(r)&&(0,i.isValidElement)(n)?a?r:n:null},t.selectFilterList=function(e){var t=E(e),a=t.homeScreenFilter,r=t.advancedFilterList,n=t.filterList;return(0,i.isValidElement)(a)?a?r:n:null},t.selectSelectedCuisinesList=function(e){var t=E(e),a=t.homeScreenFilter,r=t.selectedCuisines,n=t.advancedSelectedCuisines;return(0,i.isValidElement)(a)?a?n:r:null},t.selectSelectedPostcode=function(e){var t=E(e);return(0,i.isValidElement)(null==t?void 0:t.selectedPostcode)?null==t?void 0:t.selectedPostcode:null},t.selectSearchedAddressData=function(e){var t=E(e);return(0,i.isValidElement)(null==t?void 0:t.searchedAddressData)?null==t?void 0:t.searchedAddressData:null},t.selectSelectedAddress=function(e){var t=E(e);return(0,i.isValidElement)(null==t?void 0:t.selectedAddress)?null==t?void 0:t.selectedAddress:null},t.selectLatitude=function(e){var t=E(e);return(0,i.isValidElement)(null==t?void 0:t.lat)?null==t?void 0:t.lat:null},t.selectLongitude=function(e){var t=E(e);return(0,i.isValidElement)(null==t?void 0:t.lng)?null==t?void 0:t.lng:null},t.selectDeliveryStatus=function(e){var t=(0,s.selectStoreConfigResponse)(e);return(0,l.getStoreStatusDelivery)(t)}),T=t.selectCollectionStatus=function(e){var t=(0,s.selectStoreConfigResponse)(e);return(0,l.getStoreStatusCollection)(t)};t.selectPreorderDeliveryStatus=function(e){var t,a=u(e),r=(0,s.selectStoreConfigResponse)(e),n=null==e||null==(t=e.basketState)?void 0:t.dliveryPreOrderIsAvailable;return(0,i.isValidElement)(n)?(0,i.boolValue)(n)?d.BOOL_CONSTANT.YES:d.BOOL_CONSTANT.NO:(0,l.getPreorderStatus)(r,_.ORDER_TYPE.DELIVERY,a).toLowerCase()===d.BOOL_CONSTANT.YES.toLowerCase()?d.BOOL_CONSTANT.YES:d.BOOL_CONSTANT.NO},t.selectPreorderCollectionStatus=function(e){var t,a,r=T(e),n=(0,s.selectStoreConfigResponse)(e),o=null==e||null==(t=e.basketState)?void 0:t.collectionPreOrderIsAvailable;return(0,i.isValidElement)(o)?(0,i.boolValue)(o)?d.BOOL_CONSTANT.YES:d.BOOL_CONSTANT.NO:(null==(a=(0,l.getPreorderStatus)(n,_.ORDER_TYPE.COLLECTION,r))?void 0:a.toLowerCase())===d.BOOL_CONSTANT.YES.toLowerCase()?d.BOOL_CONSTANT.YES:d.BOOL_CONSTANT.NO};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListSelectors.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListSelectors.js")}}()},87280:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TAKEAWAY_SEARCH_LIST_TYPE=void 0;t.TAKEAWAY_SEARCH_LIST_TYPE={GET_TAKEAWAY_LIST:"get_takeaway_list",GET_TA_LIST_BY_AUTO_FETCH:"get_TA_list_by_auto_fetch",GET_TAKEAWAY_LIST_FETCHING:"get_takeaway_list_fetching",GET_TAKEAWAY_LIST_SUCCESS:"get_takeaway_list_success",GET_TAKEAWAY_LIST_FAILURE:"get_takeaway_list_failure",RESET_TAKEAWAY_LIST:"reset_takeaway_list",FILTER_TAKEAWAY:"filter_takeaway",FILTER_TAKEAWAY_SUCCESS:"filter_takeaway_success",SEARCH_ELEMENT:"search_element",SEARCH_ELEMENT_SUCCESS:"search_element_success",SET_FILTER_TYPE:"set_filter_type",UPDATE_CHECKED_CUISINES:"update_checked_cuisines",UPDATE_CHECKED_ADVANCE_CUISINES:"update_checked_advance_cuisines",FILTER_CUISINES:"filter_cuisines",FILTER_CUISINES_SUCCESS:"filter_cuisines_success",RESET_ACTION:"reset_action",RESET_CUISINES_ACTION:"reset_cuisines_action",RESET_ADVANCE_CUISINES_ACTION:"reset_advance_cuisines_action",ADVANCED_RESET_ACTION:"advanced_reset_action",POST_FAVOURITE_TAKEAWAY:"post_favourite_takeaway",SAVE_FILTERED_TAKEAWAYS:"save_filtered_takeaways",FILTERED_OFFER_TAKEAWAYS:"filter_offer_takeaways",SAVE_ADVANCED_FILTERED_TAKEAWAYS:"advanced_save_filtered_takeaways",GET_FAVOURITE_TAKEAWAY:"get_favourite_takeaway",GET_FAVOURITE_TAKEAWAY_SUCCESS:"get_favourite_takeaway_success",UPDATE_LOCAL_TAKEAWAY_LIST_FAVORITE:"update_local_takeaway_list_favorite",GET_FAVOURITE_TAKEAWAY_LIST:"get_favourite_takeaway_list",GET_FAVOURITE_TAKEAWAY_LIST_SUCCESS:"get_favourite_takeaway_list_success",GET_SEARCHED_FAVOURITE_TAKEAWAY_SUCCESS:"get_searched_favourite_takeaway_success",GET_FILTERED_TAKEAWAYS_COUNT:"get_filtered_takeaways_count",GET_SEARCHED_TAKEAWAY_COUNT:"get_searched_takeaway_count",TAKEAWAY_LIST_CLICK_ACTION:"takeaway_list_click_action",RESET_STORE_ID_CONFIG:"reset_store_id_config",START_MENU_LOADER:"start_menu_loader",STOP_MENU_LOADER:"stop_menu_loader",SET_TAKEAWAY_SCROLL_TOP:"set_takeaway_scroll_top",UPDATE_STORE_ID_CONFIGURATION:"update_store_id_configuration",UPDATE_CHECK_FILTER_TYPE:"update_check_filter_type",RESET_CHECK_FILTER_TYPE:"reset_check_filter_type",PREVIOUS_SELECTED_FILTER_TYPE:"previous_selected_filter_type",GET_TAKEAWAY_LIST_BY_ADDRESS:"get_takeaway_list_by_address",GET_TAKEAWAY_LIST_BY_USER_ADDRESS:"get_takeaway_list_by_user_address",REVERT_CUISINES_UPDATED_STATUS:"revert_cuisines_updated_status",UPDATE_PREVIOUS_SELECTED_CUISINES:"update_previous_selected_cuisines",GET_ASSOCIATE_TAKEAWAY:"get_associate_takeaway",GET_ASSOCIATE_TAKEAWAY_SUCCESS:"get_associate_takeaway_success",RESET_FAVOURITE_SEARCH_LIST:"reset_favourite_search_list",RESET_TAKEAWAYS_ON_COUNTRY_SWITCH:"reset_takeaways_on_country_switch",REDIRECT_ROUTE_BASKET_ACTION:"redirect_route_basket_action",STOP_TAKEAWAY_FIND_LOADING:"stop_takeaway_find_loading",SELECTED_CUISINES_LIST:"selected_cuisines_list",ADVANCE_SELECTED_CUISINES_LIST:"advance_selected_cuisines_list",UPDATE_HOME_SCREEN_FILTER_STATUS:"update_home_screen_filter_status",FITLER_RESET:"filter_Reset",FILTER_TAKEAWAY_BASED_ON_OFFER:"filter_Takeaway_based_on_offer",UPDATED_SEARCH_ADDRESS:"updated_search_address",SET_TA_LIVE_TRACKING:"set_takeaway_live_tracking",SET_TA_EVENT_ID:"select_takeaway_event_id",RESET_TA_EVENT_ID:"reset_takeaway_event_id",FILTER_TA_RECOMENDATION:"filter_ta_recommendation",SET_FILTER_TA_RECOMMENDATION:"set_filter_ta_recommendation",SET_SEARCH_TA_RECOMMENDATION:"set_search_ta_recommendation",SET_TA_FILTERBY_RECOMMENDATION:"set_ta_filterby_recommendation",FETCHING_ADDRESS_FOR_TA_LIST:"feching_address_for_ta_list",SET_NEW_USER_LOCATION:"set_new_user_location",SET_USER_SEARCHED_ADDRESS:"set_user_searched_address",RESET_SELECTED_ADDRESS:"reset_selected_address",RESET_USER_SEARCH_ADDRESS:"reset_user_search_address",OPEN_MENU_PAGE:"open_menu_page",GET_CUISINES_LIST:"get_cuisines_list",SET_CUISINES_LIST:"set_cuisines_list",GET_CUISINES_LIST_BASED_ON_LOCATION:"get_cuisines_list_based_on_location",GET_ALL_CUISINES:"get_cuisines_all",SET_ALL_CUISINES:"set_cuisines_all",GET_ALL_LOCATION:"get_location_all",ORDER_TYPE_CHANGE:"order_type_change",SET_ALL_LOCATION:"set_location_all",SET_TA_RECOMMENDATION:"set_ta_recommendation",GET_TAKEAWAY_LIST_REDIRECT_SUCCESS:"get_takeaway_list_redirect_success",START_TAKEAWAY_FIND_LOADING:"start_takeaway_find_loading",NAVIGATING_TA_WITH_PREV_LOCATION:"navigating_ta_with_prev_location",RESET_SAVED_ADDRESS:"reset_saved_address",SHOW_TA_NEW_ADDRESS_TOOLTIP:"show_TA_new_address_tooltip",REFRESH_TAKEAWAY_DATA:"refresh_takeaway_data",CUISINE_LOCATION_SEARCH:"cuisinelocationsearch",GET_TAKEAWAY_LIST_BY_POSTCODE:"get_takeaway_list_by_postcode",SET_FIND_TAKEAWAY_BTN_LOADING:"set_find_takeaway_btn_loading",GO_BACK_TA_LIST:"go_back_ta_list",RESET_SELECTED_POST_CODE:"reset_selected_post_code",SET_SELECTED_ADDRESS:"set_selected_address",FILTER_STORE:"filter_store",SAVE_FILTERED_STORELIST:"save_filtered_store",RESET_SNAPPY_LIST:"reset_snappy_list",RESTAURANT_LIST_EMPTY:"restaurant_list_empty",SET_HIDE_GROCERY:"set_hide_grocery",CUISINE_BASED_TA_FILTER:"cuisine_based_ta_filter"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListType.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Redux/TakeawayListType.js")}}()},23135:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACCESSIBILITY_NAME=void 0,t.CuisineFAQ=function(){return[{question:n.LOCALIZATION_STRINGS.IS_IT_POSSIBLE_TO_ORDER,answer:n.LOCALIZATION_STRINGS.FOODHUB_IS_AVAILABLE_IN},{question:n.LOCALIZATION_STRINGS.WHICH_TAKEAWAY_NEAR_ME,answer:n.LOCALIZATION_STRINGS.TO_DISCOVER_TAKEAWAY},{question:n.LOCALIZATION_STRINGS.CAN_I_PLACE_ORDER,answer:n.LOCALIZATION_STRINGS.AFTER_FINDING_TAKEAWAY},{question:n.LOCALIZATION_STRINGS.HOW_CAN_I_FIND_BEST_CUISINE,answer:n.LOCALIZATION_STRINGS.TO_FIND_TA_WITH_OFFERS},{question:n.LOCALIZATION_STRINGS.HOW_DOES_FOODHUB_WORK,answer:n.LOCALIZATION_STRINGS.YOU_CAN_ORDER_THROUGH}]},t.VIEW_ID=t.TOOL_TIP_LENGTH_VALUE=t.TAKEAWAY_STATUS=t.SNAPPY_LABELS=t.SHOW_TAKEAWAY=t.SEARCH_TYPE=t.SCREEN_NAME=t.NUM_OF_ONGOING_ORDER_TWO=t.NUM_OF_ONGOING_ORDER_THREE=t.NO_MATCH_FOUND=t.NON_DELIVERABLE_ADDRESS_API_MESSAGE=t.NEW_LABEL=t.NASH_DELIVERY_CHARGE_RANGE_VALUE=t.MINIMUM_REVIEW_COUNT=t.MINIMUM_RATING_COUNT=t.MAXIMUM_CUISINE_COUNT=t.LIVE_TRACKING_EVENT=t.LIMIT_DISCOUNT_VALUE_TO_DISPLAY=t.INVALID_POSTCODE_API_MESSAGE=t.FILTER_TYPE=t.FILTER_TAKEAWAY_LIST=t.FILTER_TAKEAWAY_CONSTANTS=t.FAVOURITE_TAKEAWAY=t.FALLBACK_CUISINES=t.DISTANCE_TYPE=t.DEFAULT_MILE_RESTRICTION=t.DEFAULT_CUISINES=void 0,t.cuisineDescription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{Indian:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.INDIAN_TEXT,e),Chinese:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.CHINESE_TEXT,e),Pizza:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.PIZZA_TEXT,e),Burgers:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.BURGER_TEXT,e),Italian:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.ITALIAN_TEXT,e),"Fish and Chips":n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.FISH_AND_CHIPS_TEXT,e)}},t.locationFAQ=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[{question:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.IS_FOODHUB_AVAILABLE,e),answer:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.YES_FOODHUB_OFFERS,e)},{question:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.HOW_CAN_I_FIND,e),answer:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.OUR_RATING_SYSTEM,e)},{question:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.HOW_CAN_I_AVAIL,e),answer:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.CONSIDER_EXPLORING,e)},{question:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.WHERE_CAN_I,e),answer:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.FOODHUB_OFFERS,e)},{question:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.DOES_FOODHUB,e),answer:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.YES_FOODHUB,e)},{question:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.WHAT_TYPES,e),answer:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.FOODHUB_HAS,e)}]},t.locationFilterData=function(){return[{id:1,key:8,min:10,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.OFFERS_NEAR,"10"),subTitle:n.LOCALIZATION_STRINGS.DISCOVER_DELICIOUS,icon:r.FONT_ICON.SPARKLE,iconColor:"",data:[]},{id:2,key:4,min:0,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.TOP_RATED_TAKEAWAYS_IN,"30"),subTitle:n.LOCALIZATION_STRINGS.DISCOVER_THE_FINEST,icon:r.FONT_ICON.SPARKLE,iconColor:"",data:[]},{id:3,key:4,min:0,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.NEW_TAKEAWAYS_IN,"30"),subTitle:n.LOCALIZATION_STRINGS.IF_YOUR_FEELING,icon:r.FONT_ICON.SPARKLE,iconColor:"",data:[]},{id:4,key:4,min:0,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.TOP_RATED_TAKEAWAYS_IN),cuisineId:0,subTitle:"",icon:r.FONT_ICON.SPARKLE,iconColor:"",data:[]},{id:5,key:4,min:0,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.TOP_RATED_TAKEAWAYS_IN),cuisineId:1,subTitle:"",icon:r.FONT_ICON.SPARKLE,iconColor:"",data:[]},{id:6,key:4,min:0,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.TOP_RATED_TAKEAWAYS_IN),cuisineId:2,subTitle:"",icon:r.FONT_ICON.SPARKLE,iconColor:"",data:[]}]},t.mapVariant=void 0,t.offersBaseData=function(){return[{id:1,key:100,min:31,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.OFFER_BASE_ABOVE,"30"),subTitle:n.LOCALIZATION_STRINGS.ON_DELICIOUS,icon:r.FONT_ICON.DISCOUNTS_FILL,iconColor:i.Colors.orange,data:[]},{id:2,min:21,key:30,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.OFFERS_VALUE,"20","30"),subTitle:n.LOCALIZATION_STRINGS.ON_DELICIOUS,icon:r.FONT_ICON.DISCOUNTS_FILL,iconColor:i.Colors.green,data:[]},{id:3,key:20,min:11,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.OFFERS_VALUE,"10","20"),subTitle:n.LOCALIZATION_STRINGS.ON_DELICIOUS,icon:r.FONT_ICON.DISCOUNTS_FILL,iconColor:i.Colors.foodhubPrimaryColor,data:[]},{id:4,key:10,min:0,title:n.LOCALIZATION_STRINGS.formatString(n.LOCALIZATION_STRINGS.OFFERS_UPTO_VALUE,"10"),subTitle:n.LOCALIZATION_STRINGS.ON_DELICIOUS,icon:r.FONT_ICON.DISCOUNTS_FILL,iconColor:i.Colors.purple,data:[]}]};var i=a(83209),r=a(91050),n=a(66347),o=(t.DEFAULT_MILE_RESTRICTION=5,t.FILTER_TYPE={DISTANCE_VALUE:"Nearby",CUSTOMER_RATING:"Rating",DELIVERY_TIME:"Delivery_time",MINIMUM_ORDER:"Minimum_order",DELIVERY_FEE:"Delivery_fee",DISCOUNT:"Discount",BEST_MATCH:"BestMatch",MIN_ORDER:"Minimum order"},t.TAKEAWAY_STATUS={OPEN:"open",CLOSED:"closed"},t.FILTER_TAKEAWAY_LIST={FOUR_STAR_ABOVE:"4StarAbove",FREE_DELIVERY:"FreeDelivery",OFFER:"Offer",HYGIENE_RATING:"HygieneRating",LOW_DELIVERY_FEE:"LowDeliveryFee"},t.FILTER_TAKEAWAY_CONSTANTS={CHECKED:"checked",ENABLED:"ENABLED",TAKEAWAY_LIST:"takeaway_list",FAVOURITE_TAKEAWAY_LIST:"favourite_takeaway_list",INITIAL_ARRAY_STATE:[],FALSE:"false",TRUE:"true",DISABLED:"DISABLED",CUISINE_LIST:"cuisine_list",ANIMATED_CUISINES:"AnimatedCuisine",GROCERIES_LIST:"groceries_list"},t.SCREEN_NAME={CUISINES_SCREEN:"cuisines_screen",FILTER_SCREEN:"filter_screen_modal",COMMON_BUTTON_SCREEN:"common_button_screen",NAVIGATOR_SCREEN:"navigator_screen",TAKEAWAY_LIST_SCREEN:"takeaway_list_screen",FAVOURITE_TAKEAWAY_LIST:"favourite_takeaway_list",SORT_FILTER_SCREEN:"sort_filter_screen",FILTERED_TAKEAWAY_LIST_SCREEN:"filtered_takeaway_list_screen",OFFERS:"offers",GROCERY_LIST:"grocery_list_screen"});t.VIEW_ID={TOOLTIP_MSG:"tool_tip_message",CHECKBOX_BUTTON:"checkbox_button",CUISINE_NAME_TEXT:"cuisine_name_text",SEARCH_ICON:"search_icon",FILTER_RADIOBUTTON:"filter_radio_button",FILTER_RADIOBUTTON_SELECTED:"filter_radio_button_selected",SORT_NAME_TEXT:"sort_name_text",SORT_NAME_TEXT_SELECTED:"sort_name_text_selected",FILTER_NAME_TEXT:"filter_name_text",FILTER_NAME_TEXT_SELECTED:"filter_name_text_selected",ORDER_STATUS_CONTAINER:"order_status_container",ORDER_STATUS_TEXT:"order_status_text",CUISINES_TEXT:"cuisines_text",SHOW_MORE_TEXT:"show_more_text",APPLY_BUTTON:"apply_button",RESET_BUTTON:"reset_button",RESET_BUTTON_TEXT:"reset_button_text",HEADER_BAR:"header_bar",HEART_ICON:"heart_icon",FILTER_ICON:"filter_icon",TAKEAWAY_LIST_LENGTH_TEXT:"takeaway_list_length_text",CHANGE_LOCATION_TEXT:"change_location_text",TAKEAWAY_DETAILED_PRESS:"takeaway_detailed_press",TAKEAWAY_NAME_TEXT:"takeaway_name_text",RATING_TEXT:"rating_text",DELIVERY_RADIUS_TEXT:"delivery_radius_text",COLLECTION_TEXT:"collection_text",DELIVERY_TEXT:"delivery_text",TAKEAWAY_IMAGE:"takeaway_image",HEART_ICON_PRESS:"heart_icon_press",YOUR_FAV:"your_fav",SECTION_HEADER:"section_header",DISCOUNT_TEXT:"discount_text",DISCOUNT_OFFER_VIEW:"discount_offer_view",MIN_VALUE_TEXT:"min_value_text",CLOSED_MESSAGE:"close_message",OPENING_TIME_TEXT:"opening_time_text",ITEM_SEPARATOR:"item_separator",FAVOURITE_COUNT_TEXT:"favourite_count_text",PRE_ORDER_TEXT:"pre_order_text",CUISINE_COUNT_TEXT:"cuisine_count_text",SEARCH_BAR_TEXT_INPUT:"search_input",SEARCH_BAR_TEXT_INPUT_VIEW:"search_input_view",REVIEW_TEXT:"review_text",DELIVERY_CHARGES_TEXT:"delivery_charges_text",SELECTED_HEART_ICON:"selected_heart_icon",UNSELECTED_HEART_ICON:"unselected_heart_icon",FILTER:"Filter",CLOSED_ICON:"closed_icon",CLOSED_ICON_TOUCHABLE:"closed_icon_touchable",CHECKED:"checked",UN_CHECKED:"un_checked",NO_FAVOURITES:"no_favourites",CUISINE_TITLE:"cuisine_title",TICK_ICON:"tick_icon",HEADER_TITLE:"header_text",FILTER_TITLE:"filter_title",TAKEAWAY_NEAR_FOUND:"takeaway_near_found",LABEL_TEXT:"label_text",POST_CODE:"post_code",ORDER_TYPE_COLLECTION_TEXT:"order_type_collection_text",SORT_BY_ARROW_ICON:"sort_by_arrow_icon",SORT_BY_LABEL:"sort_by_label",SORT_BY:"sort_by",SORT_BY_VIEW_TOUCHABLE:"sort_by_view_touchable",RATING_STARS_VIEW:"rating_stars_view",COLLECTION_MINS_TEXT:"collection_mins_text",NEW_TAKEAWAY_TEXT:"new_takeaway_text",ARROW_DOWN_ICON:"arrow_down_icon",ORDER_TYPE_BUTTON:"order_type_button",ORDER_TYPE_TEXT:"order_type_text",OFFER_BANNER_VIEW:"offer_banner_view",OFFER_BANNER_DESCRIPTION:"offer_banner_description",OFFER_BANNER_TEXT:"offer_banner_text",SEE_MORE_TOUCHABLE:"see_more_touchable",SEE_MORE_TEXT:"see_more_text",MENUS:"menus",SPOON_ICON:"spoon_icon",WAITING_TIME:"waiting_time",RATINGS_STAR_VIEW:"ratings_start_view",FILTER_ICON_VIEW:"filter_icon_view",HEART_ICON_VIEW:"heart_icon_view",MILES_ICON:"miles_icon",MILES_TEXT:"miles_text",RATING_STARS_TEXT:"rating_star_text",NO_RATING_TEXT:"no_rating_text",RATING_STARS_ICON:"rating_star_icon",CARD_VIEW:"card_view",CARD_TAKEAWAY_NAME:"card_takeaway_name",RATING_ROW_VIEW:"ratings_row_view",REVIEWS_TEXT:"reviews_text",TA_RECOMMENED_IMAGE:"ta_recommended_image",DELIVERY_BUTTON:"delivery_button",COLLECTION_BUTTON:"collection_button",CHOOSE_YOUR_ORDER_TYPE_TEXT:"choose_your_order_type",CLOSE_BUTTON:"close_button",EMPTY_MENU_TEXT:"empty_menu_text",SHOW_MORE:"show_more",ORDER_TYPE_SELECTION_MODAL_VIEW:"order_type_selection_modal_view",ORDER_TYPE_BUTTONS_VIEW:"order_type_buttons_view",SPARKLE_ICON:"sparkle_icon",CLOSED_TXT_INFO:"closed_text_info",PRE_ORDER_TIME:"preorder_time",PRE_ORDER_OPEN_INFO:"pre_order_open_info",DELIVERY_TIME_TEXT:"delivery_time_text",COLLECTION_TIME_TEXT:"collection_time-text",MINIMUM_TEXT:"minimum_text",ORDER_STATUS_TITLE:"order_status_title",ORDER_STATUS_SUBTITLE:"order_status_subtitle",SORT:"Sort",SORT_CONTAINER:"sort_container",FILTER_CONTAINER:"filter_container",POST_CODE_TXT:"post_code_txt",TA_TOWN_TXT:"ta_town_txt",NEAR_BY_GROCERY:"nera_by_grocery",GROCERY_LIST:"grocery_list",GIFT_LIST:"gift_list",OFFERS_LIST:"offers_list",LOCATION_HEADING:"location_heading",LOCATION_DESC:"location_desc",FAQ:"faq",FAQ_QUESTION:"faq_question",FAQ_ANSWER:"faq_answer",CUISINE_SEO_HEADER:"cuisine_seo_header",CUISINE_SE0_CONTENT:"cuisine_seo_content",OFFERS_SEO_HEADER:"offers_seo_header",OFFERS_SEO_CONTENT:"offers_seo_content"},t.SEARCH_TYPE={CUISINES_FILTER:"cuisines_filter",TAKEAWAY_FILTER:"takeaway_filter",POST_CODE:"ST6 6DX",FAVOURITE_TAKEAWAYS:"favourite_takeaways",FUZZY_SEARCH:"fuzzySearch",NAME:"name",GROCERY_FILTER:"grocery_filter"},t.LIMIT_DISCOUNT_VALUE_TO_DISPLAY=6,t.FAVOURITE_TAKEAWAY={YES:"YES",NO:"NO"},t.DISTANCE_TYPE={MILES:"miles"},t.NO_MATCH_FOUND=-1,t.NEW_LABEL="new",t.TOOL_TIP_LENGTH_VALUE={ARROW_STYLE:150,LEFT:15,TOP:-40},t.SHOW_TAKEAWAY=1,t.LIVE_TRACKING_EVENT={SELECT_TA_FILTER_TYPE_EVENT:"select_takeaway_filter_type_event",PLACE_ORDER:"place_order"},t.NASH_DELIVERY_CHARGE_RANGE_VALUE={charge:"3.99 - 6.99"},t.NUM_OF_ONGOING_ORDER_TWO=[1,2],t.NUM_OF_ONGOING_ORDER_THREE=[1,2,3],t.INVALID_POSTCODE_API_MESSAGE="Invalid postcode.",t.NON_DELIVERABLE_ADDRESS_API_MESSAGE="Delivery is not available for this address",t.ACCESSIBILITY_NAME={FOODHUB_DEFAULT_IMAGE:""};t.SNAPPY_LABELS={OFFERS:o.OFFERS,GROCERIES:"groceries",GIFTS:"gifts"},t.mapVariant={dark:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}]},t.DEFAULT_CUISINES=["Indian","Chinese","Pizza"],t.FALLBACK_CUISINES=["Burgers","Italian","Fish and Chips"];t.MINIMUM_RATING_COUNT=4,t.MINIMUM_REVIEW_COUNT=10,t.MAXIMUM_CUISINE_COUNT=20;!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Utils/Constants.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Utils/Constants.js")}}()},7543:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTakeawayNetwork=void 0;var i=a(27061),r=a(66252),n=a(33484),o=a(38295),s=a(12834),l=a(6601),_=(0,s.isWeb)(),d=function(e){return _?l.WEB_CONSTANTS.PROTOCOL+(0,s.getWebHost)()+l.WEB_CONSTANTS.LEGACY_SLASH_API+l.RECOMMENDATION_CONSTANTS.TA_RECOMMENDATION:(0,o.getTARecommendationURL)(e.configType)};t.FilterTakeawayNetwork={makePostGetTakeawayListCallInisFranchiseAppSearch:function(e){var t={},a=e||{},o=a.franchise,l=a.searchUrl;return(0,n.isFoodHubApp)()&&(0,n.isValidElement)(o)&&(t={headers:{franchise:_?(0,s.getWebHost)():o}}),{method:i.NETWORK_METHOD.GET,url:"/franchise/v2/takeaway/list?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name=FRANCHISE"+l,config:t}},makeGetAllTakeawayListForFranchise:function(){return{method:i.NETWORK_METHOD.GET,url:"/franchise/v2/takeaway/list/all?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name=FRANCHISE"}},makePostFavouriteTakeawayCall:function(e){return{method:i.NETWORK_METHOD.PUT,url:"/consumer/stores/favourites?api_token=J6WDf0ttQKGfYhQkRCjwraBS11JYuIDx&app_name="+r.BASE_API_CONFIG.applicationName,data:{favourite:e.favourite,store_id:[e.storeId]},excludeStoreId:!0}},makeGetFavouriteTakeawayCall:function(){return{method:i.NETWORK_METHOD.GET,url:"/consumer/stores/favourites?app_name="+r.BASE_API_CONFIG.applicationName,excludeStoreId:!0}},makeGetFavouriteTakeawayListCall:function(){return{method:i.NETWORK_METHOD.GET,url:"/consumer/wishlist?app_name="+r.BASE_API_CONFIG.applicationName,excludeStoreId:!0}},makeAssociateTakeawayCall:function(){return{method:i.NETWORK_METHOD.GET,url:"consumer/stores/list?app_name="+r.BASE_API_CONFIG.applicationName}},makeS3BestMatchWeightageCall:function(){return{method:i.NETWORK_METHOD.GET,url:s.directAPI+"/lang/foodhub/best_match_weightage_united_kingdom.json?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name="+r.BASE_API_CONFIG.applicationName}},makeLiveTrackingCall:function(e){return{method:i.NETWORK_METHOD.POST,url:"/list_takeaway_tracking?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name="+r.BASE_API_CONFIG.applicationName,data:Object.assign({},e.body)}},getTakeawayRecommendation:function(e){return{method:i.NETWORK_METHOD.GET,url:d(e)+"?postcode="+e.postCode+"&customer_id="+e.customer_id}},getCuisinesList:function(e){return{method:i.NETWORK_METHOD.POST,url:(0,s.getSlashAPI)()+"/foodhub/cuisine/filter?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name=FRANCHISE",data:{cuisine:e}}},getAllCuisinesList:function(){return{method:i.NETWORK_METHOD.GET,url:"https://"+(0,s.getWebHost)()+"/viewCuisines.json?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name=FRANCHISE"}},getAllLocationList:function(){return{method:i.NETWORK_METHOD.GET,url:"https://"+(0,s.getWebHost)()+"/location.json?api_token="+r.BASE_PRODUCT_CONFIG.OPEN_API_TOKEN+"&app_name=FRANCHISE"}}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Utils/FilterTakeawayNetwork.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Utils/FilterTakeawayNetwork.js")}}()},86730:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.distanceBestMatch=t.discountBasedFilter=t.decodeCuisinesArray=t.cuisinesList=t.cuisineTopRated=t.convertStringToArrayForCuisines=t.convertLatLngToString=t.constructH1TagsForTakeAwayListPage=t.cleanSpecialCharForSeo=t.checkIfAllMenuObjectExist=t.canPreorder=t.calculateCuisineCount=void 0,t.extractTimeLogicForNextOpening=me,t.getCuisineColorCode=t.getCollectionWaitingTime=t.getAdvanceFilterCuisinesBasedSort=t.generateTopCuisineList=t.filterTakeawayListByOffers=t.filterTakeawayList=t.filterTakeawayData=t.filterTakeawayByOfferNearBy=t.filterRecommendedTakeawayList=t.filterRecommendedTakeawayByDistance=t.filterOfferList=t.filterOfferData=void 0,t.getCuisinesFromTakeawayList=function(e,t){if((0,s.isArrayNonEmpty)(e)&&(0,s.isArrayNonEmpty)(t)){var a=new Set(t.map((function(e){return e.name}))),i=new Map;for(var n of e)if((0,s.isArrayNonEmpty)(n.cuisines))for(var o of n.cuisines)if(a.has(o)){var l=i.get(o)||0;i.set(o,l+1)}var _=Array.from(i.entries()).sort((function(e,t){return t[1]-e[1]})).map((function(e){var a=(0,r.default)(e,2),i=a[0],n=a[1],o=t.find((function(e){return e.name.toString()===i.toString()}));return{name:o.name,image_url:o.image_url,count:n}}));return(0,s.isArrayNonEmpty)(_)?_:[]}return[]},t.searchMethod=t.searchByAddress=t.preorderTakeawayOpenTime=t.portalDiscount=t.patchTakeawayMaxDiscountValue=t.patchDistanceOfTakeaway=t.orderByBestMatchScore=t.newTakeawayList=t.navigationToOrdersPage=t.navigationToMenuPage=t.navigateToLoginScreen=t.logFavouritesSegment=t.logFavouriteList=t.logCuisine=t.isValidFavouriteTAList=t.isValidFavSearchedTakeawayList=t.isUserInNewLocation=t.isTakeawayOpen=t.isTakeawayListEmpty=t.isTakeawayBlocked=t.isOrderTypeEnabled=t.isNewTakeaway=t.isNashTakeaway=t.isLowDeliveryFree=t.isFullDeliveryClosed=t.isFullCollectionClosed=t.isFreeDelivery=t.isDeliveryPreorderAvailable=t.isDeliveryOrPreOrderAvailable=t.isDeliveryOpen=t.isDeliveryFreeEnabled=t.isDeliveryChargeAvailable=t.isDeliveryAvailable=t.isCollectionPreorderAvailable=t.isCollectionOrPreOrderAvailable=t.isCollectionAvailable=t.handleCuisineLocationRedirection=t.groupBasedOnFirstLetter=t.groupAllLocation=t.getTopCusines=t.getTakeawayLogoUrl=t.getTakeAwayCloseAndPreOrderStatus=t.getTAURL=t.getStoreStatusDelivery=t.getStoreStatusCollection=t.getStatusOrder=t.getSnappyListId=t.getSnappyListData=t.getSnappyListBgImage=t.getShareOptionContent=t.getSearchTermFromTakeawayList=t.getSearchMethodFromTakeawayList=t.getSanppyList=t.getRequiredCuisinesData=t.getRatings=t.getPreorderStatus=t.getPopularCuisines=t.getOpenStatusBasedOnBusinessHours=t.getNearestBusinessHours=t.getNashRangeValueAsArray=t.getModifiedTakeawayList=t.getMinimumOrderDiscountText=t.getMinOrder=t.getMaxAdvaceTakeList=t.getGroceryBannerImage=t.getGiftBannerImage=t.getFormattedMessage=t.getFilteredTakeawayList=t.getFilterCuisinesList=t.getFavouriteTakeaways=t.getDistanceTypeValue=t.getDistanceType=t.getDiscountAmount=t.getDeliveryWaitingTime=void 0,t.searchTARecommendationName=void 0,t.searchTakeawayName=function*(e,t){var a,i,r;t=null!=(a=null==(i=t)||null==(r=i.trim())?void 0:r.toUpperCase())?a:"";for(var n=[],o=0;o<e.length;o++)e[o].name.toUpperCase().includes(t)&&n.push(e[o]);var l=yield(0,p.select)(O.selectTakeawayListReducer);if((0,s.isValidElement)(l)&&(0,s.isValidElement)(l.isFromOfferList)&&l.isFromOfferList){var d=n.filter((function(e){return e.discount>=l.filterListWithOffer&&e.discount<=l.filterListWithMaxOffer}));return yield G(_.FILTER_TYPE.DISCOUNT,d)}if((0,s.isValidElement)(l)&&l.homeScreenFilter&&((0,s.isArrayNonEmpty)(l.advancedCuisineSelected)||(0,s.isArrayNonEmpty)(l.advancedFilterList))){var E=Z(l.advancedCuisineSelected,n,l.advancedFilterList,!0,l.selectedAdvancedFilterName);return yield G(l.advancedFilterType,E)}if((0,s.isValidElement)(l)&&(0,s.isValidElement)(l.cuisinesSelected)&&l.cuisinesSelected.length>0){var u=Z(l.cuisinesSelected,n,l.filterList,!1,null);return yield G(l.filterType,u)}return n},t.updateFilterType=t.topRatedTakeaways=t.takeawayListWithFavoritesUpdated=t.takeawayBlockedMessage=t.sortTakeaways=t.sortTakeawayListByBestMatchScore=t.sortBySelectedCuisine=t.sortByCuisineCount=t.sortBasedOnCuisines=t.sortBasedOnCuisineAndFilter=t.setFilterType=t.setDistanceInMilesForTakeawayList=void 0;var r=i(a(63038)),n=i(a(319)),o=i(a(72918)),s=a(33484),l=a(87035),_=a(23135),d=a(66347),E=a(75833),u=M(a(30966)),T=a(99404),c=a(39759),A=a(33414),S=M(a(31077)),p=a(34857),O=a(76782),I=a(55082),y=a(83209),L=a(75599),C=a(36671),f=a(11143),R=a(77258),m=a(21511),g=a(89917),N=a(12834),v=a(33638),h=a(64588),b=a(91420),D=a(55082),P=M(a(625)),w=a(87280),Y=a(42832),k=a(57173),F=a(27081),U=a(56652);function W(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(W=function(e){return e?a:t})(e)}function M(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=W(t);if(a&&a.has(e))return a.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,a&&a.set(e,i),i}var H=(0,N.isWeb)(),G=t.filterTakeawayData=function(e,t){if((0,s.isValidElement)(e)&&(0,s.isValidElement)(t))switch(e){case _.FILTER_TYPE.BEST_MATCH:return V(t);case _.FILTER_TYPE.DISTANCE_VALUE:return u.orderBy(t,[function(e){return(0,s.distanceValue)(e.distanceInMiles)},function(e){return e.name.trim().toLowerCase()}],["asc","asc"]);case _.FILTER_TYPE.CUSTOMER_RATING:return u.orderBy(t,[function(e){return(0,T.getCustomerRatingandTotalReviews)(e)},function(e){return(0,s.distanceValue)(e.distanceInMiles)},function(e){return e.name.trim().toLowerCase()}],["desc","asc","asc"]);case _.FILTER_TYPE.DELIVERY_TIME:return u.orderBy(t,[function(e){return K(e)},function(e){return Number(parseInt(e.delivery_time))},function(e){return(0,s.distanceValue)(e.distanceInMiles)},function(e){return e.name.trim().toLowerCase()}],["desc","asc","asc","asc"]);case _.FILTER_TYPE.MINIMUM_ORDER:return u.orderBy(t,[function(e){return(0,T.getMinimumOrderValue)(e)},function(e){return e.name.trim().toLowerCase()}],["asc","asc"]);case _.FILTER_TYPE.DELIVERY_FEE:return u.orderBy(t,[function(e){return K(e)},function(e){return(0,T.getDeliveryFeeValue)(e)},function(e){return e.name.trim().toLowerCase()}],["desc","asc","asc"]);case _.FILTER_TYPE.DISCOUNT:return u.orderBy(t,[function(e){var t,a=Ae(null==e?void 0:e.advanced_discounts),i=null==a||null==(t=a.maxAdvanceDiscountItem)?void 0:t.value,r=null==e?void 0:e.discount,n=(0,s.isValidElement)(i)&&i>0?i:(0,s.isValidElement)(r)&&r>0?r:0;return Number(parseFloat(n))},function(e){return Number(parseFloat(e.delivery_time))},function(e){return(0,s.distanceValue)(e.distanceInMiles)},function(e){return e.name.trim().toLowerCase()}],["desc","asc","asc","asc"]);default:return t}return null!=t?t:[]},V=t.sortTakeawayListByBestMatchScore=function(e){if((0,s.isArrayNonEmpty)(e)){var t=e.filter((function(e){return(0,s.distanceValue)(null==e?void 0:e.distanceInMiles)>L.BEST_MATCH_MIN_DISTANCE_VALUE})),a=e.filter((function(e){return(0,s.distanceValue)(null==e?void 0:e.distanceInMiles)<=L.BEST_MATCH_MIN_DISTANCE_VALUE}));return[].concat((0,n.default)(x(a)),(0,n.default)(x(t)))}return[]},x=t.orderByBestMatchScore=function(e){return(0,s.isArrayNonEmpty)(e)?u.orderBy(e,[function(e){return(0,T.getBestMatchCount)(e)},function(e){return(0,s.distanceValue)(e.distanceInMiles)},function(e){return e.name.trim().toLowerCase()}],["desc","asc","asc"]):[]},K=t.isDeliveryOpen=function(e){var t=te(e);return(0,s.isValidString)(t)?t:""};var B=t.getRequiredCuisinesData=function(e,t){var a=[],i=j(t);return(0,s.isValidElement)(e)&&(a=i.map((function(t){return Object.assign({},e.find((function(e){return e.name.toString()===t.name.toString()})),t)}))),(0,s.isArrayNonEmpty)(a)?ve(a):a},j=t.calculateCuisineCount=function(e){return u.chain(e).countBy().map((function(e,t){return{name:t,count:e}})).value()};t.searchMethod=function(e,t){var a=null==e?void 0:e.filter((function(e){return!(!(0,s.isValidElement)(e)||!(0,s.isValidString)(e.name))&&e.name.toUpperCase().includes(t.toUpperCase())}));return null!=a?a:[]},t.searchTARecommendationName=function(e,t){var a=[];if((0,s.isValidElement)(e)&&(0,s.isValidString)(t))for(var i=0;i<e.length;i++)e[i].name.toUpperCase().includes(t.toUpperCase())&&a.push(e[i]);return a};var Z=t.sortBasedOnCuisineAndFilter=function(e,t,a,i,r,n,o){var l,d=o?t:null!=(l=q(e,t,i,r,n))?l:[];return(0,s.isValidElement)(a)&&a.length>0&&(a.includes(_.FILTER_TAKEAWAY_LIST.FOUR_STAR_ABOVE)&&(d=d.filter((function(e){return(0,s.isValidString)(e.rating)&&e.rating>=4}))),a.includes(_.FILTER_TAKEAWAY_LIST.FREE_DELIVERY)&&(d=d.filter((function(e){return z(e)}))),a.includes(_.FILTER_TAKEAWAY_LIST.OFFER)&&(d=d.filter((function(e){return $(e)}))),a.includes(_.FILTER_TAKEAWAY_LIST.LOW_DELIVERY_FEE)&&(d=d.filter((function(e){return X(e)}))),a.includes(_.FILTER_TAKEAWAY_LIST.HYGIENE_RATING)&&(d=d.filter((function(e){return(0,s.isValidString)(e.rating_value)&&e.rating_value>3&&-1!==e.rating_value})))),d},z=(t.isOrderTypeEnabled=function(e){return(0,s.isValidString)(e)&&1===e},t.isDeliveryFreeEnabled=function(e){var t;return(0,s.isValidElement)(null==e||null==(t=e.delivery)?void 0:t.charge)&&!Number(parseFloat(e.delivery.charge))>0}),$=t.discountBasedFilter=function(e){var t,a=Ae(null==e?void 0:e.advanced_discounts),i=null==a||null==(t=a.maxAdvanceDiscountItem)?void 0:t.value,r=null==e?void 0:e.discount;return(0,s.isValidElement)(i)&&i>0||(0,s.isValidElement)(r)&&r>0},X=t.isLowDeliveryFree=function(e){var t;return(0,s.isValidElement)(null==e||null==(t=e.delivery)?void 0:t.charge)&&Number(parseFloat(e.delivery.charge))<=2},q=t.sortBasedOnCuisines=function(e,t,a,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=null!=t?t:[];return(0,s.isValidElement)(a)&&a&&(0,s.isValidString)(i)&&(n=Q(t,[i],r)),Q(n,e,r)},Q=t.getAdvanceFilterCuisinesBasedSort=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[];if((0,s.isValidElement)(e)&&(0,s.isValidElement)(t)&&t.length>0){var r=new Set(t.map((function(e){return(0,s.formatString)(e).toLowerCase()})));for(var o of e)for(var l of o.cuisines)if(r.has((0,s.formatString)(l).toLowerCase())){i.push(o);break}var _=new Set(i);return(0,s.isArrayNonEmpty)(i)?(0,n.default)(_):(a&&(0,s.isArrayEmpty)(i)&&(0,c.showErrorMessage)(d.LOCALIZATION_STRINGS.SELECTED_CUISINES_NOT_AVAILABLE),e)}return null!=e?e:[]},J=(t.getFilterCuisinesList=function(e,t){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],r=0;r<(null==e?void 0:e.length);r++)for(var o=0;o<e[r].cuisines.length;o++){var l;(0,s.isValidElement)(null==(l=e[r])?void 0:l.cuisines[o])&&e[r].cuisines[o].toLowerCase()===t.toLowerCase()&&(i=[].concat((0,n.default)(i),(0,n.default)(e[r].cuisines)))}i=i.filter((function(e){return e!==t}));var _=B(a,i);return(0,n.default)(_)},t.cuisinesList=function(e){return(0,s.isArrayNonEmpty)(e)?e.slice(0,3).map((function(e){return(0,s.capsWordCase)((0,s.isValidString)(null==e?void 0:e.name)?e.name:e)})).join(", "):""},t.getTakeawayLogoUrl=function(e,t,a){var i,r=(0,N.getDefaultTALogoSmall)(a);return(0,s.isValidElement)(e)?t?(0,s.isValidString)(e.logo_url)?{uri:e.logo_url}:(0,s.isValidString)(e.thumbnail_url)?{uri:e.thumbnail_url}:r:(0,s.isValidElement)(null==e||null==(i=e.setting)?void 0:i.logo_url)?{uri:e.setting.logo_url}:r:r},t.portalDiscount=function(e){if(u.isEmpty(e))return null;if(!(0,s.isValidString)(e.portal_discount)&&!(0,s.isValidElement)(e.setting))return e.discount;var t=(0,s.isValidString)(e.portal_discount)?e.portal_discount:(0,s.isValidElement)(e.setting)?e.setting.discount:null,a=e.discount;return"item"===e.gifttype?t:(0,s.isValidElement)(t)?(0,s.isValidElement)(a)?Math.max(t,a):t:a},t.getMinOrder=function(e){var t,a;return(0,s.isValidNumber)(null==e||null==(t=e.setting)?void 0:t.min_order)?e.setting.min_order:(0,s.isValidNumber)(null==e||null==(a=e.delivery)?void 0:a.minimum_order)?e.delivery.minimum_order:null},t.getDeliveryWaitingTime=function(e,t){if((0,s.isValidString)(null==e?void 0:e.delivery_time)){var a=e.show_delivery,i=te(e),r=Te(e,E.ORDER_TYPE.DELIVERY,i);return Se(a,i)&&(0,s.isValidNumber)(e.delivery_time)&&(0,s.isMoreZero)(e.delivery_time)?(0,s.safeIntValue)(e.delivery_time)>1?e.delivery_time+" "+d.LOCALIZATION_STRINGS.MINS:e.delivery_time+" "+d.LOCALIZATION_STRINGS.MIN.toLowerCase():(0,s.isValidElement)(t)?t&&(0,s.safeStringValue)(a)===F.TAKEAWAY_OPEN_STATUS.AVAILABLE?d.LOCALIZATION_STRINGS.PREORDER:d.LOCALIZATION_STRINGS.CLOSED:J(a,i,r)?d.LOCALIZATION_STRINGS.CLOSED:d.LOCALIZATION_STRINGS.PREORDER}return""},t.isFullDeliveryClosed=function(e,t,a){return!Se(e,t)&&!ye(e,a)}),ee=t.isFullCollectionClosed=function(e,t,a){return!pe(e,t)&&!Le(e,a)},te=t.getStoreStatusDelivery=function(e){var t;return(0,s.isValidString)(null==e||null==(t=e.store_status)?void 0:t.delivery)?e.store_status.delivery:ue(null==e?void 0:e.business_hours,E.ORDER_TYPE.DELIVERY,(0,l.getCurrentDateWithTimeZone)(null==e?void 0:e.time_zone))},ae=t.getStoreStatusCollection=function(e){var t;return(0,s.isValidString)(null==e||null==(t=e.store_status)?void 0:t.collection)?e.store_status.collection:ue(null==e?void 0:e.business_hours,E.ORDER_TYPE.COLLECTION,(0,l.getCurrentDateWithTimeZone)(null==e?void 0:e.time_zone))},ie=(t.getCollectionWaitingTime=function(e,t){if((0,s.isValidString)(null==e?void 0:e.collection_time)){var a=e.show_collection,i=ae(e),r=Te(e,E.ORDER_TYPE.COLLECTION,i);return pe(a,i)&&(0,s.isValidNumber)(e.collection_time)&&(0,s.isMoreZero)(e.collection_time)?(0,s.safeIntValue)(e.collection_time)>1?e.collection_time+" "+d.LOCALIZATION_STRINGS.MINS:e.collection_time+" "+d.LOCALIZATION_STRINGS.MIN.toLowerCase():(0,s.isCustomerApp)()&&(0,s.isValidElement)(t)?t&&(0,s.safeStringValue)(a)===F.TAKEAWAY_OPEN_STATUS.AVAILABLE?d.LOCALIZATION_STRINGS.PREORDER:d.LOCALIZATION_STRINGS.CLOSED:ee(a,i,r)?d.LOCALIZATION_STRINGS.CLOSED:d.LOCALIZATION_STRINGS.PREORDER}return""},t.getRatings=function(e){return(0,s.isValidElement)(e)&&(0,s.isMoreZero)(e)?(0,s.safeFloatValueWithoutDecimal)(e):0},t.filterTakeawayList=function(e){var t,a,i,r,o=e.takeAwayList,l=e.checkByOrderType,d=void 0!==l&&l,u=e.orderType,T=void 0===u?null:u,c=e.postcode,p=void 0===c?null:c,O=e.mileRestrictionConfig,I=void 0===O?null:O,y={onlineTakeaways:[],preOrderTakeaways:[],closedTakeawayList:[]},L=null!=I?I:{},C=L.enable,f=L.miles,R=0,m=0,g=0,N=[];if((0,s.isArrayNonEmpty)(o))for(var v=0;v<o.length;v++){var h;if(((0,s.isBigfoodieApp)()||(0,s.isFoodHubApp)())&&I&&p&&T===E.ORDER_TYPE.DELIVERY&&C&&(0,s.isValidElement)(null==(h=o[v])?void 0:h.distanceInMiles)&&o[v].distanceInMiles>=(null!=f?f:_.DEFAULT_MILE_RESTRICTION)&&p!==D.VALID_TEST_POSTCODE){var b;N=[].concat((0,n.default)(N),[null==(b=o[v])?void 0:b.id])}else{var P=(0,s.isValidElement)(o[v])&&o[v],w=P.show_delivery,Y=P.show_collection,k=te(o[v]),F=ae(o[v]),U=Te(o[v],E.ORDER_TYPE.DELIVERY,k),W=Te(o[v],E.ORDER_TYPE.COLLECTION,F),M=d?T===E.ORDER_TYPE.DELIVERY?Se(w,k):pe(Y,F):Oe(w,k,Y,F),H=d?T===E.ORDER_TYPE.DELIVERY?ye(w,U):Le(Y,W):Ie(w,U,Y,W);if(M){var G=Object.assign(o[v],{index:R});y.onlineTakeaways.push(G),R+=1}else if(H){var V=Object.assign(o[v],{index:m});y.preOrderTakeaways.push(V),m+=1}else{var x=void 0,K=T===E.ORDER_TYPE.DELIVERY,B=T===E.ORDER_TYPE.COLLECTION,j=K&&w===_.SHOW_TAKEAWAY||B&&Y===_.SHOW_TAKEAWAY;d&&!j||(x=Object.assign(o[v],{index:g}),y.closedTakeawayList.push(Object.assign({},x,{isClosed:!0})),g+=1)}}}C&&S.trackEvent(A.SEGMENT_EVENTS.TA_BEYOND_MILE_RESTRICTION,{excludedCount:null!=(t=null==(a=N)?void 0:a.length)?t:0,excludedTAs:N,postcode:p,value:null!=(i=null==(r=N)?void 0:r.length)?i:0});return y}),re=(t.filterTakeawayListByOffers=function(e){var t=(0,_.offersBaseData)();return oe(e,0).forEach((function(e){for(var a=e.maxDiscount,i=0;i<t.length;i++)if(a<=t[i].key&&a>=t[i].min){t[i].data.push(e);break}})),t.filter((function(e){return e.data.length>0}))},t.filterTakeawayByOfferNearBy=function(e,t){if((0,s.isArrayNonEmpty)(e)){var a=ne(e),i=(0,_.locationFilterData)();return null==i||i.forEach((function(i){var r,n,o=[];switch(i.id){case 1:o=oe(e,10);break;case 2:o=se(e,_.MINIMUM_RATING_COUNT,_.MINIMUM_REVIEW_COUNT);break;case 3:o=le(e);break;case 4:case 5:case 6:o=_e(e,a,null==i?void 0:i.cuisineId)}if((i.data=null==(r=o)?void 0:r.slice(0,Math.min(i.key,o.length)),i.id>3&&(0,s.isValidElement)(null==i?void 0:i.data))&&(i.title=d.LOCALIZATION_STRINGS.formatString(d.LOCALIZATION_STRINGS.TOP_RATED_TA_IN,null==(n=a[null==i?void 0:i.cuisineId])?void 0:n[0]),(0,s.isValidString)(t))){var l,E=(0,_.cuisineDescription)(t);i.subTitle=E[null==(l=a[null==i?void 0:i.cuisineId])?void 0:l[0]]}return i})),(null==i?void 0:i.length)>0&&(null==i?void 0:i.filter((function(e){var t;return(null==e||null==(t=e.data)?void 0:t.length)>0})))}return null},t.filterOfferData=function(e){return e.map((function(e){var t=ie({takeAwayList:e.data}),a=t.onlineTakeaways,i=t.preOrderTakeaways,r=t.closedTakeawayList,o=[].concat((0,n.default)(a),(0,n.default)(i),(0,n.default)(r));return Object.assign({},e,{data:o})}))},t.generateTopCuisineList=function(e){var t=new Map(e),a=[];for(var i of _.DEFAULT_CUISINES)if(t.has(i)){var r=t.get(i);a.push([i,r])}if((null==a?void 0:a.length)<3)for(var n of _.FALLBACK_CUISINES)if(t.has(n)){var o=t.get(n);a.push([n,o])}return a}),ne=t.getTopCusines=function(e){var t={};null==e||e.forEach((function(e){var a;(null==e?void 0:e.rating)>=_.MINIMUM_RATING_COUNT&&(null==e?void 0:e.total_reviews)>_.MINIMUM_REVIEW_COUNT&&(null==e||null==(a=e.cuisines)||a.forEach((function(e){t[e]=(t[e]||0)+1})))}));var a=Object.entries(t);return re(a)},oe=(t.getPopularCuisines=function(e){var t={};null==e||e.forEach((function(e){var a;null==e||null==(a=e.cuisines)||a.forEach((function(e){t[e]=(t[e]||0)+1}))}));var a=Object.entries(t);return a.sort((function(e,t){return t[1]-e[1]})),a.slice(0,_.MAXIMUM_CUISINE_COUNT)},t.patchTakeawayMaxDiscountValue=function(e,t){var a=e.map((function(e){var a=e.discount,i=e.advanced_discounts,r=Ae(i).maxAdvanceDiscountItem,n=(0,s.isValidElement)(null==r?void 0:r.value)&&(null==r?void 0:r.value)>0?r.value:(0,s.isValidElement)(a)&&a>0?a:0;return(null==e?void 0:e.total_reviews)>_.MINIMUM_REVIEW_COUNT&&(null==e?void 0:e.rating)>=_.MINIMUM_RATING_COUNT&&n>t?(e.maxDiscount=n,e):null})).filter((function(e){return e}));return Ee(a,_.FILTER_TYPE.DISCOUNT)}),se=t.topRatedTakeaways=function(e,t,a){return Ee(null==e?void 0:e.filter((function(e){return(null==e?void 0:e.rating)>=t&&(null==e?void 0:e.total_reviews)>a})))},le=function(e){return e.filter((function(e){return e.new_takeaway}))},_e=t.cuisineTopRated=function(e,t,a){var i=null==t?void 0:t[a];if(i){var r=null==e?void 0:e.filter((function(e){var t;return(null==e?void 0:e.rating)>=_.MINIMUM_RATING_COUNT&&(null==e?void 0:e.total_reviews)>_.MINIMUM_REVIEW_COUNT&&((0,s.isValidString)(null==i?void 0:i[0])&&(null==e||null==(t=e.cuisines)?void 0:t.includes(i[0])))}));return Ee(r)}},de=t.getStatusOrder=function(e){var t,a;return(0,Y.isDeliveryOpened)(e)?1:(0,k.isPreOrderAvailableForDelivery)(null==e||null==(t=e.preorder_hours)||null==(a=t.delivery)?void 0:a.pre_order)?2:3},Ee=t.sortTakeaways=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.sort((function(a,i){var r=de(a),n=de(i);return r!==n?r-n:t===_.FILTER_TYPE.DISCOUNT&&(null==i?void 0:i.maxDiscount)!==(null==a?void 0:a.maxDiscount)?(null==i?void 0:i.maxDiscount)-(null==a?void 0:a.maxDiscount):(null==a?void 0:a.rating)===(null==i?void 0:i.rating)?(null==a?void 0:a.total_reviews)===(null==i?void 0:i.total_reviews)?(null==e?void 0:e.indexOf(a))-(null==e?void 0:e.indexOf(i)):(null==i?void 0:i.total_reviews)-(null==a?void 0:a.total_reviews):(null==i?void 0:i.rating)-(null==a?void 0:a.rating)}))},ue=(t.filterRecommendedTakeawayList=function(e,t){var a=ie(e,arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),i=G(t,null==a?void 0:a.onlineTakeaways);return(0,s.isArrayNonEmpty)(i)?i:null},t.getOpenStatusBasedOnBusinessHours=function(e,t,a){var i=null,r=[];if((0,s.isArrayNonEmpty)(e)){for(var n=0;n<e.length;n++){var o,_,d;(0,l.isToday)(null==(o=e[n])?void 0:o.business_date)&&(null==(_=e[n])||null==(d=_.service_type)?void 0:d.toLowerCase())===t&&r.push(e[n])}for(var u=0;u<r.length;u++){var T,c,A,S=(null==(T=r[u])?void 0:T.open_at)<=a&&a>(null==(c=r[u])?void 0:c.open_at)&&a<=(null==(A=r[u])?void 0:A.close_at);i=(0,s.isBoolean)(i)&&i||S}}return(0,s.isBoolean)(i)&&i?E.ORDER_TYPE_STATUS.OPEN:E.ORDER_TYPE_STATUS.CLOSED}),Te=t.getPreorderStatus=function(e,t,a){if((t===E.ORDER_TYPE.DELIVERY?(0,s.boolValue)(null==e?void 0:e.show_delivery):(0,s.boolValue)(null==e?void 0:e.show_collection))&&(null==e?void 0:e.preorder)===_.FILTER_TAKEAWAY_CONSTANTS.ENABLED)if((0,s.isValidElement)(null==e?void 0:e.preorder_hours)){var i,r,n,o,l,d,u,T,c=t===E.ORDER_TYPE.DELIVERY?null==(i=e.preorder_hours)||null==(r=i.delivery)?void 0:r.next_open:null==(n=e.preorder_hours)||null==(o=n.collection)?void 0:o.next_open;if((0,s.isValidDateString)(c))return I.BOOL_CONSTANT.YES.toLowerCase();var A=t===E.ORDER_TYPE.DELIVERY?null==(l=e.preorder_hours)||null==(d=l.delivery)?void 0:d.pre_order:null==(u=e.preorder_hours)||null==(T=u.collection)?void 0:T.pre_order;if((0,s.isValidElement)(A))return A===I.BOOL_CONSTANT.YES.toLowerCase()?A:I.BOOL_CONSTANT.NO.toLowerCase()}else if(a===E.ORDER_TYPE_STATUS.CLOSED){var S=ce(null==e?void 0:e.business_hours,t,null,null==e?void 0:e.time_zone,null==e?void 0:e.next_open);return(0,s.isValidElement)(S)?I.BOOL_CONSTANT.YES.toLowerCase():I.BOOL_CONSTANT.NO.toLowerCase()}return I.BOOL_CONSTANT.NO.toLowerCase()},ce=t.getNearestBusinessHours=function(e){var t,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=null;if((0,s.isValidString)(_))return _;if((0,s.isValidElement)(r)&&(0,s.isValidElement)(i)){var E=(0,s.isValidElement)(r[i])?r[i]:"";return(0,s.isValidString)(null==E?void 0:E.next_open)?E.next_open:""}return(0,s.isValidElement)(e)&&(t=(0,s.isValidElement)(i)?e.filter((function(e){var t;return(null==e||null==(t=e.service_type)?void 0:t.toLowerCase())===i&&(null==e?void 0:e.open_at)>(0,l.getCurrentDateWithTimeZone)(n)})):e.filter((function(e){return(null==e?void 0:e.open_at)>(0,l.getCurrentDateWithTimeZone)(n)})),(0,s.isArrayNonEmpty)(t)&&(d=u.sortBy(t,(function(e){return(0,o.default)(e.open_at)})),(0,s.isArrayNonEmpty)(d)&&(0,s.isValidElement)(null==(a=d[0])?void 0:a.open_at)))?d[0].open_at:null},Ae=(t.getFavouriteTakeaways=function(e){var t=[];if((0,s.isValidElement)(e)&&e.length>0){for(var a=0;a<e.length;a++)t.push(e[a].id);return t}return null},t.getDiscountAmount=function(e){return(0,s.isValidElement)(e)?/^\d$/.test(e)?" "+parseInt(e):parseInt(e):0},t.getMaxAdvaceTakeList=function(e){if((0,s.isArrayNonEmpty)(e)){var t=(0,s.getCurrentDayInNumber)(),a=(0,N.isWeb)()?v.PLATFORM.MOBILE:v.PLATFORM.WEB,i=e.filter((function(e){var i;return(null==e||null==(i=e.days)?void 0:i.includes((0,N.convertCase)(t,h.CASE.LOWER_CASE)))&&(0,N.convertCase)(null==e?void 0:e.platform,h.CASE.LOWER_CASE)!==(0,N.convertCase)(a,h.CASE.LOWER_CASE)}));if(i.sort((function(e,t){return parseFloat(null==t?void 0:t.value)-parseFloat(null==e?void 0:e.value)})),(0,s.isArrayNonEmpty)(i))return{maxAdvanceDiscountItem:i[0],listCount:i.length}}return{maxAdvanceDiscountItem:null,listCount:null}}),Se=t.isDeliveryAvailable=function(e,t){return(0,s.isValidElement)(e)&&(0,s.isValidString)(t)&&1===e&&t.toLowerCase()===E.ORDER_TYPE_STATUS.OPEN.toLowerCase()},pe=t.isCollectionAvailable=function(e,t){return(0,s.isValidElement)(e)&&(0,s.isValidElement)(t)&&1===e&&t===E.ORDER_TYPE_STATUS.OPEN},Oe=t.isTakeawayOpen=function(e,t,a,i){return Se(e,t)||pe(a,i)},Ie=(t.isDeliveryOrPreOrderAvailable=function(e,t,a){return Se(e,t)||ye(e,a)},t.isCollectionOrPreOrderAvailable=function(e,t,a){return pe(e,t)||Le(e,a)},t.canPreorder=function(e,t,a,i){return ye(e,t)||Le(a,i)}),ye=t.isDeliveryPreorderAvailable=function(e,t){return(0,s.isValidElement)(e)&&1===e&&(0,s.isValidElement)(t)&&(0,s.boolValue)(t)},Le=t.isCollectionPreorderAvailable=function(e,t){return(0,s.isValidElement)(e)&&1===e&&(0,s.isValidElement)(t)&&(0,s.boolValue)(t)},Ce=t.getDistanceTypeValue=function(e){return(0,s.isValidString)(e)?e:_.DISTANCE_TYPE.MILES},fe=(t.patchDistanceOfTakeaway=function(e,t,a,i){var r,n=Ce(t);if((0,s.isValidElement)(null==e||null==(r=e.value)?void 0:r.location)&&(0,s.isValidElement)(null==e?void 0:e.data)){var o=e.value.location.lat,l=e.value.location.long,_=e.data,d=i;fe(o,l,_,a,n),(0,s.isArrayNonEmpty)(i)&&fe(o,l,d,a,n)}},t.filterRecommendedTakeawayByDistance=function(e,t){if((0,s.isArrayNonEmpty)(e)&&(0,s.isValidString)(t)){var a=e.filter((function(e){return(0,s.distanceValue)(e.distanceInMiles)<=L.BEST_MATCH_MIN_DISTANCE_VALUE}));return G(t,a)}return[]},t.setDistanceInMilesForTakeawayList=function(e,t,a,i,r){if((0,s.isValidString)(e)&&(0,s.isValidString)(t)&&(0,s.isArrayNonEmpty)(a))for(var n=0;n<a.length;n++){var o;if((0,s.isValidElement)(a[n].lat)&&(0,s.isValidElement)(a[n].lng))if(a[n].distanceInMiles=(0,s.distance)(e,t,a[n].lat,a[n].lng,r===_.DISTANCE_TYPE.MILES?"M":"K"),(0,s.isValidElement)(i)&&(0,s.isValidElement)(null==(o=i[4])?void 0:o.distance)){var l=he(i[4],a[n].distanceInMiles);a[n].best_match=Number(l)+Number(a[n].best_match)}}return(0,s.isArrayNonEmpty)(a)?a:[]}),Re=(t.newTakeawayList=function(e){var t=[],a=[];if((0,s.isValidElement)(e)&&e.length>0){for(var i=0;i<e.length;i++)Re(e[i])?t.push(e[i]):a.push(e[i]);return t.concat(a)}return e},t.isNewTakeaway=function(e){if(e){var t=e.priority,a=e.new_takeaway,i=e.setting;return(0,s.isValidString)(t)?t.toLowerCase()===_.NEW_LABEL:(0,s.isValidElement)(a)?a:(0,s.isValidElement)(null==i?void 0:i.priority)&&i.priority.toLowerCase()===_.NEW_LABEL&&(0,s.isValidElement)(null==i?void 0:i.priority_start_date)&&(0,s.isValidElement)(null==i?void 0:i.priority_end_date)&&(0,l.isBetweenDays)(i.priority_start_date,i.priority_end_date)}return!1});t.isValidFavouriteTAList=function(e){return(0,s.isValidElement)(e)&&e.length>0},t.getFilteredTakeawayList=function(e){var t=e.onlineTakeaways,a=void 0===t?[]:t,i=e.preOrderTakeaways,r=void 0===i?[]:i,o=e.closedTakeawayList,s=void 0===o?[]:o;return[].concat((0,n.default)(a),(0,n.default)(r),(0,n.default)(s))},t.updateFilterType=function(e){var t;return(0,s.isValidString)(null==e||null==(t=e.filter_by)?void 0:t.filter)?e.filter_by.filter:_.FILTER_TYPE.DISTANCE_VALUE};function me(e,t){var a=o.default.tz(t),i=(0,o.default)(e,l.DATE_FORMAT.YYYY_MM_DD_HH_MM_SS,!0),r=i.diff(a.format(l.DATE_FORMAT.YYYY_MM_DD),"days"),n=a.format(l.DATE_FORMAT.YYYY_MM_DD),s=i.toDate();return{today:n,tomorrow:1===r,actualDate:i.format(l.DATE_FORMAT.YYYY_MM_DD),date:s,isAfter1Day:r>1}}t.preorderTakeawayOpenTime=function(e,t,a){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=me(e,t),n=r.today,d=r.tomorrow,E=r.actualDate,u=r.date,T=(0,o.default)(u).format(l.DATE_FORMAT.H_MM_A),c=(0,o.default)(u).format(l.DATE_FORMAT.YYYY_MM_DD_H_MM_A);return(0,s.isValidString)(e)&&a===_.VIEW_ID.CLOSED_MESSAGE?ge(n,E,d,i):(0,s.isValidString)(e)&&a===_.VIEW_ID.OPENING_TIME_TEXT?E===n||d?{openTime:T,tomorrow:d}:{openTime:c,isTomorrow:d}:void 0};var ge=t.getFormattedMessage=function(e,t,a,i){var r=i?d.LOCALIZATION_STRINGS.OPENS_AT+" ":d.LOCALIZATION_STRINGS.formatString(d.LOCALIZATION_STRINGS.SORRY_WE_ARE_CLOSED_AND_WILL_OPEN,"","");return t===e?r:t===a?i?d.LOCALIZATION_STRINGS.OPENING_TOMORROW_AT+" ":d.LOCALIZATION_STRINGS.formatString(d.LOCALIZATION_STRINGS.SORRY_WE_ARE_CLOSED_AND_WILL_OPEN,d.LOCALIZATION_STRINGS.TOMORROW," "):r},Ne=(t.isTakeawayBlocked=function(e,t){if((0,s.isValidElement)(e)&&(0,s.isValidElement)(t)){var a=t[e.toString()];if((0,s.isValidElement)(a))return(0,s.boolValue)(a.block_order)}return!1},t.takeawayBlockedMessage=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if((0,s.isValidElement)(e)&&(0,s.isValidElement)(t)){var i=t[e.toString()];if((0,s.isValidElement)(i)&&(0,s.isValidNotEmptyString)(i.block_order_message))return(0,c.convertMessageToAppLanguage)(i.block_order_message,a)}return d.LOCALIZATION_STRINGS.TAKEAWAY_BLOCKED_MESSAGE},t.getDistanceType=function(e){var t=(0,s.isValidString)(e)?e:_.DISTANCE_TYPE.MILES;return t.toLowerCase()===_.DISTANCE_TYPE.MILES?" "+d.LOCALIZATION_STRINGS.MILES_SHORT:" "+t},t.takeawayListWithFavoritesUpdated=function(e,t,a){for(var i=u.cloneDeep(e),r=_.NO_MATCH_FOUND,n=0;n<i.length;n++)if(i[n].id===t){r=n;break}return a===_.FAVOURITE_TAKEAWAY.YES&&r===_.NO_MATCH_FOUND?i.push({id:t}):r>_.NO_MATCH_FOUND&&i.splice(r,1),i},t.logFavouritesSegment=function(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=[];t===A.SEGMENT_CONSTANTS.ADD?(S.trackEvent(A.SEGMENT_EVENTS.ADDED_TO_FAVOURITES,{takeaway:e}),r=[e]):t===A.SEGMENT_CONSTANTS.REMOVE&&S.trackEvent(A.SEGMENT_EVENTS.REMOVED_FROM_FAVOURITES,{takeaway:e}),i?((0,s.isValidElement)(a)&&a.map((function(a){(t===A.SEGMENT_CONSTANTS.ADD&&(0,s.isValidElement)(a.name)||t===A.SEGMENT_CONSTANTS.REMOVE&&e!==a.name&&(0,s.isValidElement)(a.name))&&r.push(a.name)})),Ne(r)):Ne(a)},t.logFavouriteList=function(e){S.trackEventNonInteractiveEvent(A.SEGMENT_EVENTS.FAVOURITE_LIST,{favourite_ta_names:e.length>0?e.toString():""},e.length>0?e:[])}),ve=(t.sortBySelectedCuisine=function(e,t){return(0,s.isValidElement)(t)&&t.length>0?u.orderBy(e,[function(e){return(0,s.isValidElement)(t)?t.includes(e.name):e.name},function(e){return e.count}],["desc","desc"]):e},t.sortByCuisineCount=function(e){return u.orderBy(e,[function(e){return e.count},function(e){return e.name}],["desc","asc"])}),he=(t.setFilterType=function(e,t,a,i){var r={};return(0,s.isValidElement)(e)&&e?(r.advancedFilterType=(0,s.isValidElement)(null==t?void 0:t.filter)?t.filter:(0,s.isValidElement)(null==t?void 0:t.filterDataType)?t.filterDataType:i,(0,s.isValidElement)(r.advancedFilterType)||(r.advancedFilterType=_.FILTER_TYPE.DISTANCE_VALUE)):(r.filterType=(0,s.isValidElement)(null==t?void 0:t.filter)?t.filter:(0,s.isValidElement)(null==t?void 0:t.filterDataType)?t.filterDataType:a,(0,s.isValidElement)(r.filterType)||(r.filterType=_.FILTER_TYPE.DISTANCE_VALUE)),r},t.filterOfferList=function(e,t){var a=[];return(0,s.isValidElement)(e)&&(0,s.isValidElement)(t)?(e.map((function(e){t.filter((function(t){return t.discount>=e.offer&&t.discount<=e.offerMax})).length>0&&a.push(e)})),a):e},t.getCuisineColorCode=function(e){switch(e%5){case 0:default:return y.Colors.orange;case 1:return y.Colors.purple;case 2:return y.Colors.yellow;case 3:return y.Colors.green;case 4:return y.Colors.blue}},t.getSnappyListBgImage=function(e){switch(e%5){case 0:default:return a(26211);case 1:return a(21476);case 2:return a(77932)}},t.getSnappyListId=function(e){switch(e%5){case 0:default:return"GROCERY_LIST";case 1:return"OFFERS_LIST";case 2:return"GIFT_LIST"}},t.getGroceryBannerImage=function(e){return a(e?52495:26211)},t.getGiftBannerImage=function(e){return a(e?81092:77932)},t.checkIfAllMenuObjectExist=function(e){return(0,s.isValidElement)(null==e?void 0:e.global_tip)&&(0,s.isValidElement)(null==e?void 0:e.ORDER_ITEM_COMMENT)},t.distanceBestMatch=function(e,t){for(var a,i,r,n,o,s,l,_,d=null!=(a=null==e||null==(i=e.distance)?void 0:i.min_value)?a:0,E=null!=(r=null==e||null==(n=e.distance)?void 0:n.max_value)?r:0,u=null!=(o=null==e||null==(s=e.distance)?void 0:s.value_split)?o:1,T=null!=(l=null==e||null==(_=e.distance)?void 0:_.weightage)?l:1,c=(E-d)/u,A=10/u,S=0,p=t%c/c,O=E;O>d;O-=c){if(t>=O&&t<E)return(S-p)*T/100;S+=A}return t>E?0:(10-p)*T/100}),be=(t.isTakeawayListEmpty=function(e){var t=e.onlineTakeaways,a=e.preOrderTakeaways,i=e.closedTakeawayList;return 0===(null==t?void 0:t.length)&&0===(null==i?void 0:i.length)&&0===(null==a?void 0:a.length)},t.convertLatLngToString=function(e){if((0,s.isValidElement)(null==e?void 0:e.lat)&&(0,s.isValidElement)(null==e?void 0:e.lng))return e.lat+","+e.lng});t.getTAURL=function(e,t){var i=a(70594);return(0,s.isValidString)(e)?e:(0,s.isValidString)(t)?t:i},t.getSearchMethodFromTakeawayList=function(e){return null!=e&&e.searchByAddress||!(0,s.isValidString)(null==e?void 0:e.postCode)?null!=e&&e.searchByAddress&&(0,s.isValidString)(null==e?void 0:e.searchType)?e.searchType:"":A.SEGMENT_CONSTANTS.POSTCODE},t.getSearchTermFromTakeawayList=function(e){var t,a,i,r;return(0,s.isValidString)(null==e||null==(t=e.addressObj)?void 0:t.description)?null==e||null==(a=e.addressObj)?void 0:a.description:null!=(i=null!=(r=be(e))?r:null==e?void 0:e.postcode)?i:""},t.isDeliveryChargeAvailable=function(e){return(0,s.isValidElement)(null==e?void 0:e.charge)&&parseFloat(e.charge)>0},t.isFreeDelivery=function(e){var t,a,i,r;return"0.00"===(null==e||null==(t=e.charge)?void 0:t.toString())||0===(null==e||null==(a=e.charge)?void 0:a.length)||"0"===(null==e||null==(i=e.charge)?void 0:i.toString())||"0.0"===(null==e||null==(r=e.charge)?void 0:r.toString())},t.isNashTakeaway=function(e){return(0,s.isValidElement)(e)&&e===L.CONSTANTS.FALCON_DELIVERY},t.getNashRangeValueAsArray=function(){return _.NASH_DELIVERY_CHARGE_RANGE_VALUE.charge.split("-")},t.isValidFavSearchedTakeawayList=function(e){return(0,s.isValidElement)(e)&&((0,s.isArrayNonEmpty)(e.onlineTakeaways)||(0,s.isArrayNonEmpty)(e.preorderTakeaways)||(0,s.isArrayNonEmpty)(e.closedTakeaways))},t.getMinimumOrderDiscountText=function(e,t,a,i){return(0,s.isValidString)(t)&&(0,s.isValidElement)(i)&&(0,s.isValidElement)(e)?e?d.LOCALIZATION_STRINGS.MIN+": "+(0,s.currencyValue)(t,a,2)+" ":"("+(i?d.LOCALIZATION_STRINGS.FOR_ORDER_ABOVE:d.LOCALIZATION_STRINGS.MIN_ORDER)+" "+(0,s.currencyValue)(t,a,2)+")":""},t.getTakeAwayCloseAndPreOrderStatus=function(e,t,a,i,r,n,o,l,d,u){return e===_.FILTER_TAKEAWAY_CONSTANTS.TAKEAWAY_LIST&&t&&!(0,s.isValidString)(a)?i===E.ORDER_TYPE.DELIVERY&&Se(r,n)||i===E.ORDER_TYPE.COLLECTION&&pe(o,l)||i===E.ORDER_TYPE.BOTH&&Se(r,n)&&pe(o,l)?{canPreOrder:!1,isTakeAwayClosed:!1}:i===E.ORDER_TYPE.DELIVERY&&ye(r,d)||i===E.ORDER_TYPE.COLLECTION&&Le(o,u)?{canPreOrder:!0,isTakeAwayClosed:!1}:{canPreOrder:!1,isTakeAwayClosed:!0}:Oe(r,n,o,l)?{canPreOrder:!1,isTakeAwayClosed:!1}:Ie(r,d,o,u)?{canPreOrder:!0,isTakeAwayClosed:!1}:{canPreOrder:!1,isTakeAwayClosed:!0}},t.groupBasedOnFirstLetter=function(e){var t=e.reduce((function(e,t){if((0,s.isValidString)(t)){var a=t[0].toUpperCase();e[a]?e[a].data.push(t):e[a]={title:a,data:[t]}}return e}),[]);return Object.values(t)},t.groupAllLocation=function(e){var t=Object.keys(e).reduce((function(t,a,i){if((0,s.isValidString)(a)){var r,o=a.toUpperCase();t[o]?(r=t[o].data).push.apply(r,(0,n.default)(e[a])):t[o]={title:o,data:(0,n.default)(e[a])}}return t}),[]);return Object.values(t)},t.navigationToMenuPage=function(e){e?(0,C.handleReplace)(f.SCREEN_OPTIONS.MENU_SCREEN.route_name,{isFromReOrder:!1,isFromRecentTakeAway:!1}):(0,C.handleNavigation)(f.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,{screen:f.SCREEN_OPTIONS.MENU_SCREEN.route_name,params:{isFromReOrder:!1,isFromRecentTakeAway:!1}})},t.navigationToOrdersPage=function(e){e?(0,C.handleNavigation)(f.SCREEN_OPTIONS.ORDER_HISTORY.route_name):(0,C.handleNavigation)(f.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,{screen:f.SCREEN_OPTIONS.ORDER_HISTORY.route_name})},t.navigateToLoginScreen=function(){setTimeout((function(){(0,C.handleNavigation)(f.SCREEN_OPTIONS.SOCIAL_LOGIN.route_name)}),1e3)},t.searchByAddress=function(e,t,a,i){var r,n,o=null==a||null==(r=a.search)?void 0:r.type,s=null==a||null==(n=a.country)?void 0:n.flag;R.store.dispatch((0,m.getTakeawayListByAddressAction)(e,(0,N.getSearchType)(o,s),"delivery",t,i,!0,!0)),R.store.dispatch((0,g.postcodeInput)(null==e?void 0:e.description))},t.convertStringToArrayForCuisines=function(e,t){var a="";return(0,s.isArrayNonEmpty)(e)&&e.forEach((function(e){e!==t&&(a+=(0,s.seoFriendlyUrl)(e,!1)+"#")})),(0,s.isValidString)(a)?a.substring(0,a.length-1):""},t.decodeCuisinesArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,s.isArrayNonEmpty)(e)?e.map((function(e){return e.replace(/-/g," ")})):[]},t.isUserInNewLocation=function(e){var t=null!=e?e:{},a=t.isUserLoggedIn,i=t.savedAddress,r=t.initialLocationFetch,n=t.isSavedAddress,o=t.isFocused,l=t.showNewLocationTooltip,_=t.isMobileDevice;return(0,s.boolValue)(a)&&(0,s.boolValue)(o)&&(0,s.boolValue)(_)&&!(0,s.boolValue)(r)&&!(0,s.boolValue)(n)&&(0,s.isArrayNonEmpty)(i)&&null===l},t.constructH1TagsForTakeAwayListPage=function(e,t){if((0,s.isValidElement)(e)&&(0,s.isUKTakeaway)(t)){var a=(0,s.isValidString)(null==e?void 0:e.town)?e.town:"";return""+((0,s.isValidString)(a)?(0,s.firstLetterUppercase)(a):"")}return""},t.getSanppyList=function(e){return e.reduce((function(e,t){var a,i;return(null==t||null==(a=t.businessType)?void 0:a.toLowerCase())===v.BUSINESS_TYPE.GROCERY?e.groceries.push(t):(null==t||null==(i=t.businessType)?void 0:i.toLowerCase())===v.BUSINESS_TYPE.GIFTS?e.gifts.push(t):e.restaurants.push(t),e}),{groceries:[],gifts:[],restaurants:[]})},t.getSnappyListData=function(e){var t=e.groceries,i=(e.searchedAddressData,e.gifts),r=(e.viewProps,e.isSnappyEnabled),o=e.offersData;if((0,b.hasGroceries)(r,t)||(0,b.hasGifts)(r,i)){var l=[];return(0,b.hasGroceries)(r,t)&&(l=[{labelTxt:_.SNAPPY_LABELS.GROCERIES,labelVal:d.LOCALIZATION_STRINGS.GROCERY,imageUrl:a(83717),bgUrl:a(26211)}]),(0,s.isArrayNonEmpty)(o)&&(l=[].concat((0,n.default)(l),[{labelTxt:_.SNAPPY_LABELS.OFFERS,labelVal:d.LOCALIZATION_STRINGS.OFFERS_TITLE,imageUrl:a(94427),bgUrl:a(21476)}])),(0,b.hasGifts)(r,i)&&(l=[].concat((0,n.default)(l),[{labelTxt:_.SNAPPY_LABELS.GIFTS,labelVal:d.LOCALIZATION_STRINGS.GIFTS,type:v.BUSINESS_TYPE.GIFTS,imageUrl:a(7979),bgUrl:a(77932)}])),l}return[]},t.logCuisine=function(e,t){S.trackEvent(A.SEGMENT_EVENTS.SELECT_CUISINE,{cuisine_name:e,cuisine_select:(0,s.isValidElement)(t)&&t?P.VIEW_ID.CUISINE_UNSELECTED:P.VIEW_ID.CUISINE_SELECTED})},t.handleCuisineLocationRedirection=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(H)if((0,N.isUKApp)(i)){if(e&&400===(null==e?void 0:e.code)||t&&!(0,s.isArrayNonEmpty)(t))R.store.dispatch({type:w.TAKEAWAY_SEARCH_LIST_TYPE.GET_ALL_CUISINES});else if(a){var o,l;R.store.dispatch({type:w.TAKEAWAY_SEARCH_LIST_TYPE.GET_CUISINES_LIST,cuisine:a}),""!==(null==(o=window)||null==(l=o.location)?void 0:l.hash)&&(window.location.hash="")}else setTimeout((function(){R.store.dispatch({type:w.TAKEAWAY_SEARCH_LIST_TYPE.GET_ALL_LOCATION})}),1);(0,s.isValidString)(a)?(0,C.handleNavigation)(n,{selectedCuisines:a}):(0,C.handleNavigation)(n),(0,c.showErrorMessage)(r)}else(0,N.replaceWindowRoute)(),(0,C.handleNavigation)(f.SCREEN_OPTIONS.HOME_SCREEN.route_name),window.location.href=""},t.getShareOptionContent=function(e,t){var a,i,r,n=d.LOCALIZATION_STRINGS.SHARE_TEMPLATE_GENERIC;(0,s.isArrayNonEmpty)(t)&&(t.sort((function(e,t){return parseFloat(null==t?void 0:t.value)-parseFloat(null==e?void 0:e.value)})),(0,s.isMoreZero)(null==(i=t[0])?void 0:i.value)&&(n=2===(null==(r=t[0])?void 0:r.service_type)?d.LOCALIZATION_STRINGS.SHARE_TEMPLATE_DISCOUNT_PICKUP:d.LOCALIZATION_STRINGS.SHARE_TEMPLATE_DISCOUNT_DELIVERY,a=t[0].value));return d.LOCALIZATION_STRINGS.formatString(n,e,a)+"\n\n"+d.LOCALIZATION_STRINGS.CHECK_IT_OUT},t.cleanSpecialCharForSeo=function(e){if((0,s.isValidString)(e)&&H){var t=e;try{t=decodeURIComponent(e)}catch(e){}var a=t.replace(/\s+/g,"-");return a=(a=(a=(a=a.replace(/,/g,"-")).replace(/&/g,"and")).replace(/[^a-zA-Z0-9\-\/&:.#]+/g,"")).replace(/-+/g,"-")}return e},t.getModifiedTakeawayList=function(e){var t,a,i,r,o=null!=e?e:{},l=o.filteredTakeaways,d=o.animatedCuisineBanner,E=o.showAnimatedCuisinesList,u=o.cuisines,T=o.groceriesPosition,c=o.showNearByGrocery,A=o.context,S=o.showSearch,p=null!=l?l:[],O=null!=(t=(0,U.getAnimatedCuisinesBannerURL)(d,!0))?t:0,I=null!=(a=(0,U.getGroceriesInListPosition)(T))?a:0,y=(0,s.boolValue)(E)&&(null==u?void 0:u.length)>5&&(null==A?void 0:A.isSmallScreenMode)&&(0,s.isMoreZero)(O)&&(null==l?void 0:l.length)>O&&!S;(0,s.isValidArray)(l)&&((null==l?void 0:l.length)>0&&y&&(p=[].concat((0,n.default)(null==l?void 0:l.slice(0,O)),[{key:_.FILTER_TAKEAWAY_CONSTANTS.ANIMATED_CUISINES}],(0,n.default)(null==l?void 0:l.slice(O)))),c&&null!=A&&A.isSmallScreenMode&&(p=[].concat((0,n.default)(null==(i=p)?void 0:i.slice(0,I)),[{key:_.FILTER_TAKEAWAY_CONSTANTS.GROCERIES_LIST}],(0,n.default)(null==(r=p)?void 0:r.slice(I)))));return p};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Utils/Helper.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/TakeawayListModule/Utils/Helper.js")}}()},34060:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WalletNetwork=void 0;var i=a(27061),r=a(26625);t.WalletNetwork={makePostWalletDetailsCall:function(e){return{method:i.NETWORK_METHOD.POST,url:"/consumer/wallet/history?app_name="+(0,r.getAppType)()+"&page="+e.page,config:{headers:{store:null==e?void 0:e.storeId}},isAuthRequired:!0}},makeGetWalletBalanceCall:function(e){return{method:i.NETWORK_METHOD.POST,url:"/consumer/wallet/balance?app_name="+(0,r.getAppType)(),config:{headers:{store:e.storeId}},isAuthRequired:!0}},makePostWalletWitdhrawalCall:function(e){return{method:i.NETWORK_METHOD.POST,url:"/consumer/wallet/withdrawal?app_name="+(0,r.getAppType)(),isAuthRequired:!0,config:{headers:{store:null==e?void 0:e.storeId}},data:{order_id:e.orderId,amount:e.amount}}},makeGetTransactionDetailsCall:function(e){return{method:i.NETWORK_METHOD.POST,url:"/consumer/wallet/"+e.orderId+"/details?app_name="+(0,r.getAppType)(),isAuthRequired:!0,config:{headers:{store:null==e?void 0:e.storeId}},data:{amount:null==e?void 0:e.amount,type:null==e?void 0:e.transactionType}}}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Networrk/WalletNetwork.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Networrk/WalletNetwork.js")}}()},17781:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toggleWalletLoadingAction=t.startWalletRefresh=t.resetTransactionDetailAction=t.postWalletWidthrawal=t.getWalletDetailsAction=t.getWalletBalanceAction=t.getTransactionDetailsAction=void 0;var i=a(91006),r=a(69191);t.getWalletDetailsAction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{type:i.WALLET_TYPE.GET_WALLET_DETAILS,page:e}},t.getWalletBalanceAction=function(){return{type:i.WALLET_TYPE.GET_WALLET_BALANCE}},t.toggleWalletLoadingAction=function(){return{type:i.WALLET_TYPE.TOGGLE_WALLET_LOADING}},t.startWalletRefresh=function(){return{type:i.WALLET_TYPE.START_WALLET_REFRESH}},t.resetTransactionDetailAction=function(){return{type:i.WALLET_TYPE.RESET_TRANSACTION_DETAIL}},t.postWalletWidthrawal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:i.WALLET_TYPE.POST_WALLET_WITHDRAWAL,transactionDetails:e}},t.getTransactionDetailsAction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.WALLET_TYPE.REFUND;return{type:i.WALLET_TYPE.GET_TRANSACTION_DETAILS,orderId:e,amount:t,transactionType:a}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletAction.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletAction.js")}}()},47773:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(a(319)),n=a(91006),o=a(33484),s=a(34226),l={walletTransactionList:[],walletBalance:"0.00",current_page:1,has_more:!1,bannedCustomer:!1,walletLoading:!1,isRefreshing:!1,transactionDetails:{},fetchingDetails:!1};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.WALLET_TYPE.GET_WALLET_DETAILS_SUCCESS:return Object.assign({},e,{walletTransactionList:t.payload.current_page>1?[].concat((0,r.default)(e.walletTransactionList),(0,r.default)((0,s.filterToCardTransactions)(t.payload.data))):(0,s.filterToCardTransactions)(t.payload.data),walletBalance:(0,o.isValidElement)(t.payload.balance)&&t.payload.balance,current_page:(0,o.isValidElement)(t.payload.current_page)&&t.payload.current_page,has_more:(0,o.isValidElement)(t.payload.has_more)&&t.payload.has_more,walletLoading:!1,isRefreshing:!1});case n.WALLET_TYPE.GET_WALLET_BALANCE_SUCCESS:return Object.assign({},e,{walletBalance:t.balance});case n.WALLET_TYPE.GET_TRANSACTION_DETAILS_SUCCESS:return Object.assign({},e,{transactionDetails:t.payload,fetchingDetails:!1});case n.WALLET_TYPE.RESET_TRANSACTION_DETAIL:return Object.assign({},e,{transactionDetails:{}});case n.WALLET_TYPE.GET_TRANSACTION_DETAILS:return Object.assign({},e,{fetchingDetails:!0,transactionDetails:{}});case n.WALLET_TYPE.TOGGLE_DETAILS_FETCHING_LOADER:return Object.assign({},e,{fetchingDetails:!e.fetchingDetails});case n.WALLET_TYPE.UPDATE_WALLET_ON_WITHDRAWAL:return Object.assign({},e,{walletTransactionList:t.transactionList,walletBalance:t.walletBalance});case n.WALLET_TYPE.GET_WALLET_BANNED_CUSTOMER:return Object.assign({},e,{bannedCustomer:t.payload});case n.WALLET_TYPE.TOGGLE_WALLET_LOADING:return Object.assign({},e,{walletLoading:!e.walletLoading});case n.WALLET_TYPE.START_WALLET_REFRESH:return Object.assign({},e,{isRefreshing:!0});default:return e}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletReducer.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletReducer.js")}}()},32149:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(34857),r=a(34060),n=a(33484),o=a(91006),s=a(64588),l=a(39759),_=a(33202),d=a(69191),E=a(66347),u=a(42568),T=a(76782),c=a(17781);function*A(e){try{var t=yield(0,u.getFoodhubStoreId)();e.storeId=t;var a=yield(0,_.apiCall)(r.WalletNetwork.makePostWalletDetailsCall,e);(0,n.isValidElement)(a)&&a.outcome===s.Constants.SUCCESS?yield(0,i.put)({type:o.WALLET_TYPE.GET_WALLET_DETAILS_SUCCESS,payload:a}):(yield(0,i.put)((0,c.toggleWalletLoadingAction)()),(0,l.showErrorMessage)(E.LOCALIZATION_STRINGS.WENT_WRONG))}catch(e){yield(0,i.put)((0,c.toggleWalletLoadingAction)()),(0,l.showErrorMessage)(e)}}function*S(e){try{var t,a=yield(0,i.select)(T.selectWalletBalance),r=yield(0,i.select)(T.selectWalletTransactionList);r=null==(t=r)?void 0:t.map((function(t){return(null==t?void 0:t.order_id)===(null==e?void 0:e.orderId)&&Number(null==e?void 0:e.amount)===Number(null==t?void 0:t.amount)?Object.assign({},t,{withdrawal_status:d.TRANSACTION_STATUS_CODE.COMPLETED}):t})),a=(a-(null==e?void 0:e.amount)).toFixed(2),yield(0,i.put)({type:o.WALLET_TYPE.UPDATE_WALLET_ON_WITHDRAWAL,transactionList:r,walletBalance:a}),(0,l.showInfoMessage)(E.LOCALIZATION_STRINGS.TRANSFER_SUCCESS_MSG)}catch(e){}}function*p(e){try{yield(0,i.fork)(S,null==e?void 0:e.transactionDetails);var t=yield(0,u.getFoodhubStoreId)(),a=yield(0,_.apiCall)(r.WalletNetwork.makePostWalletWitdhrawalCall,Object.assign({},null==e?void 0:e.transactionDetails,{storeId:t}));(0,n.isValidElement)(a)&&a.outcome===s.Constants.SUCCESS?yield(0,i.put)({type:o.WALLET_TYPE.WALLET_TRANSACTION_SUCCESS}):(yield(0,i.fork)(A,{page:1}),(0,l.showErrorMessage)(a.message))}catch(e){yield(0,i.fork)(A,{page:1}),(0,l.showErrorMessage)(e)}}function*O(){try{var e=yield(0,u.getFoodhubStoreId)(),t=yield(0,_.apiCall)(r.WalletNetwork.makeGetWalletBalanceCall,{storeId:e});(0,n.isValidElement)(t)&&t.outcome===s.Constants.SUCCESS&&(0,n.isValidElement)(t.balance)&&(yield(0,i.put)({type:o.WALLET_TYPE.GET_WALLET_BALANCE_SUCCESS,balance:t.balance}),yield(0,i.put)({type:o.WALLET_TYPE.GET_WALLET_BANNED_CUSTOMER,payload:!1}))}catch(e){e.message.includes(d.WALLET_CONSTANTS.BAN_CUSTOMER)?(yield(0,i.put)({type:o.WALLET_TYPE.GET_WALLET_BANNED_CUSTOMER,payload:!0}),(0,l.showErrorMessage)(E.LOCALIZATION_STRINGS.BAN_CUSTOMER_DESCRIPTION)):(0,l.showErrorMessage)(e)}}function*I(e){try{var t=yield(0,u.getFoodhubStoreId)();e.storeId=t;var a=yield(0,_.apiCall)(r.WalletNetwork.makeGetTransactionDetailsCall,e);a?yield(0,i.put)({type:o.WALLET_TYPE.GET_TRANSACTION_DETAILS_SUCCESS,payload:a}):yield(0,i.put)({type:o.WALLET_TYPE.TOGGLE_DETAILS_FETCHING_LOADER})}catch(e){yield(0,i.put)({type:o.WALLET_TYPE.TOGGLE_DETAILS_FETCHING_LOADER})}}t.default=function*(){yield(0,i.all)([(0,i.takeLatest)(o.WALLET_TYPE.GET_WALLET_DETAILS,A),(0,i.takeLatest)(o.WALLET_TYPE.GET_WALLET_BALANCE,O),(0,i.takeLatest)(o.WALLET_TYPE.POST_WALLET_WITHDRAWAL,p),(0,i.takeLatest)(o.WALLET_TYPE.GET_TRANSACTION_DETAILS,I)])};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletSaga.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletSaga.js")}}()},91006:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WALLET_TYPE=void 0;t.WALLET_TYPE={GET_WALLET_DETAILS:"get_wallet_details",GET_WALLET_DETAILS_SUCCESS:"get_wallet_details_success",GET_WALLET_BALANCE:"get_wallet_balance",POST_WALLET_WITHDRAWAL:"post_wallet_widthrawal",GET_WALLET_BALANCE_SUCCESS:"get_wallet_balance_success",GET_WALLET_BANNED_CUSTOMER:"false",START_WALLET_LOADING:"start_wallet_loading",START_WALLET_REFRESH:"satrt_wallet_refresh",WALLET_TRANSACTION_SUCCESS:"wallet_transaction_success",UPDATE_WALLET_ON_WITHDRAWAL:"update_wallet_on_withdrawal",GET_TRANSACTION_DETAILS:"get_transaction_details",TOGGLE_DETAILS_FETCHING_LOADER:"toggle_details_fetching_loader",GET_TRANSACTION_DETAILS_SUCCESS:"get_transaction_details_success",TOGGLE_WALLET_LOADING:"toggle_wallet_loading",RESET_TRANSACTION_DETAIL:"reset_transaction_detail"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletType.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Redux/WalletType.js")}}()},69191:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WALLET_TYPE=t.WALLET_CONSTANTS=t.VIEW_ID=t.TRANSACTION_STATUS_CODE=t.TRANSACTION_MODES=t.SCREEN_NAME=void 0;t.SCREEN_NAME={WALLET_SCREEN:"Wallet"},t.VIEW_ID={WALLET_BALANCE_TEXT:"wallet_balance_text",WALLET_BALANCE_VALUE_TEXT:"wallet_balance_value_text",USER_NAME_TEXT:"user_name_text",RESENT_TRANSACTION_TEXT:"resent_transaction_text",NO_TRANSACTION_TEXT:"no_transaction_text",HOW_IT_WORKS_TEXT:"how_it_works_text",HOW_IT_WORKS_CONTENT_TEXT:"how_it_works_content_text",WALLET_TYPE_TEXT:"wallet_type_text",WALLET_DATE_TEXT:"wallet_date_text",WALLET_AMOUNT_TEXT:"wallet_amount_text",WALLET_TRANSACTION_LIST:"wallet_transaction_list",WALLET_LIST_ITEM:"wallet_list_item",WALLET_IMAGE:"wallet_image"},t.WALLET_TYPE={DEPOSIT:"wallet_deposit",REFUND:"wallet_refund",PAYMENT:"wallet_payment",WALLET_TOPUP_REFERRER:"wallet_topup_referrer",WALLET_REVERSE_REFERRER:"wallet_reverse_referrer",WALLET_TOPUP_REFERREE:"wallet_topup_referree",WALLET_REVERSE_REFERREE:"wallet_reverse_referree",WALLET_TO_CARD:"wallet_to_card"},t.WALLET_CONSTANTS={BAN_CUSTOMER:"You have been suspended from placing any orders",REFUND_CREDITED:"Refund amount is credited to your foodhub wallet."},t.TRANSACTION_STATUS_CODE={NOT_ELIGIBLE:"0",ELIGIBLE:"1",COMPLETED:"2"},t.TRANSACTION_MODES={WALLET:"WALLET",CARD:"CARD",CARD_AND_WALLET:"CARD_&_WALLET"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Utils/WalletConstants.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Utils/WalletConstants.js")}}()},34226:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.getWalletFormattedDate=t.getTransactionName=t.filterToCardTransactions=void 0,t.is30DaysBeyond=function(e){if((0,r.isValidDate)(e)){var t=(0,l.default)(e,r.DATE_FORMAT.YYYY_MM_DD_HH_MM_SS),a=(0,l.default)().diff(t,"days");return a>=0&&a>=30}return!1};var r=a(87035),n=a(69191),o=a(33484),s=a(66347),l=i(a(72918));t.getWalletFormattedDate=function(e,t){return(0,l.default)(e).isValid()?(0,r.formatDateString)(e,r.DATE_FORMAT.YYYY_MM_DD_HH_MM_SS,t?r.DATE_FORMAT.DD_MMM_YYY_H_MM_A:r.DATE_FORMAT.DD_MMM_H_MM_A):""},t.getTransactionName=function(e){if((0,o.isValidElement)(e)){var t=e.type,a=e.order_id,i=(0,o.safeIntValue)(a)>0?" "+s.LOCALIZATION_STRINGS.FOR_ORDER_ID+" "+a:"";switch(t){case n.WALLET_TYPE.DEPOSIT:return s.LOCALIZATION_STRINGS.DEPOSITED_BY+" "+s.LOCALIZATION_STRINGS.FH+i;case n.WALLET_TYPE.REFUND:return""+s.LOCALIZATION_STRINGS.REFUNDED+i;case n.WALLET_TYPE.PAYMENT:return""+s.LOCALIZATION_STRINGS.PAID+i;case n.WALLET_TYPE.WALLET_TOPUP_REFERREE:case n.WALLET_TYPE.WALLET_REVERSE_REFERRER:case n.WALLET_TYPE.WALLET_TOPUP_REFERRER:case n.WALLET_TYPE.WALLET_REVERSE_REFERREE:return""+s.LOCALIZATION_STRINGS.REFERRAL_SCHEME}return t}return""},t.filterToCardTransactions=function(e){var t=[n.WALLET_TYPE.WALLET_TO_CARD];return(null==e?void 0:e.filter((function(e){return!t.includes(null==e?void 0:e.type)})))||[]};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Utils/WalletHelper.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/WalletModule/Utils/WalletHelper.js")}}()},64152:(e,t,a)=>{var i=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.socialLogin=t.signOutUser=t.default=t.analytics=void 0;var r=i(a(48926)),n=i(a(44866)),o=a(6118);a(66267),a(43347);var s=a(33484),l=a(39759),_=a(38295),d=a(66589),E=a(12834),u=new o.GoogleAuthProvider,T=new o.FacebookAuthProvider;T.setCustomParameters({display:"popup"});var c={};c="debug"===_.AppConfig.buildConfig.buildType?{apiKey:_.CO_FIREBASE_CONFIG_DEBUG.API_KEY,authDomain:_.CO_FIREBASE_CONFIG_DEBUG.AUTH_DOMAIN,databaseURL:_.CO_FIREBASE_CONFIG_DEBUG.DATABASE_URL,projectId:_.CO_FIREBASE_CONFIG_DEBUG.PROJECT_ID,storageBucket:_.CO_FIREBASE_CONFIG_DEBUG.STORAGE_BUCKET,messagingSenderId:_.CO_FIREBASE_CONFIG_DEBUG.MESSAGE_SENDER_ID,appId:_.CO_FIREBASE_CONFIG_DEBUG.APP_ID,measurementId:_.CO_FIREBASE_CONFIG_DEBUG.MEASUREMENT_ID}:{apiKey:_.CO_FIREBASE_CONFIG_LIVE.API_KEY,authDomain:_.CO_FIREBASE_CONFIG_LIVE.AUTH_DOMAIN,databaseURL:_.CO_FIREBASE_CONFIG_LIVE.DATABASE_URL,projectId:_.CO_FIREBASE_CONFIG_LIVE.PROJECT_ID,storageBucket:_.CO_FIREBASE_CONFIG_LIVE.STORAGE_BUCKET,messagingSenderId:_.CO_FIREBASE_CONFIG_LIVE.MESSAGE_SENDER_ID,appId:_.CO_FIREBASE_CONFIG_LIVE.APP_ID,measurementId:_.CO_FIREBASE_CONFIG_LIVE.MEASUREMENT_ID};var A,S;t.socialLogin=(A=(0,r.default)((function*(e){var t,a,i=(0,o.getAuth)();try{switch(e){case d.LOGIN_TYPE.GOOGLE:t=yield(0,o.signInWithPopup)(i,u),a=o.GoogleAuthProvider.credentialFromResult(t);break;case d.LOGIN_TYPE.FACEBOOK:t=yield(0,o.signInWithPopup)(i,T),a=o.FacebookAuthProvider.credentialFromResult(t);break;default:return}return(0,s.isValidElement)(a)?a:null}catch(e){var r=e.code,n=e.message;return(0,l.showErrorMessage)((0,s.getErrorMessage)(r)),{code:r,errorMessage:n,email:null==e?void 0:e.email}}})),function(e){return A.apply(this,arguments)}),t.signOutUser=(S=(0,r.default)((function*(){var e=(0,o.getAuth)();(0,o.signOut)(e).then((function(){console.log("Account Signed-out")})).catch((function(e){console.log(e)}))})),function(){return S.apply(this,arguments)});n.default.initializeApp(c);t.analytics=(0,E.isFoodhubDomain)()?n.default.analytics():null,t.default=n.default;!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var a="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(a)if("function"!=typeof a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=void 0;try{r=a[i]}catch(e){continue}e.register(r,i,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/Firebase.web.js")}}else e.register(a,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/Firebase.web.js")}}()},58204:(e,t,a)=>{"use strict";e.exports=a.p+"assets/default_banner_image-9c9a2f32..png"},70594:(e,t,a)=>{"use strict";e.exports=a.p+"assets/no_image-ed74ce97..png"},90151:(e,t,a)=>{"use strict";e.exports=a.p+"assets/FH_default_banner-a52414e9..png"},87512:(e,t,a)=>{"use strict";e.exports=a.p+"assets/facebook_icon-beb11c0f..png"},75546:(e,t,a)=>{"use strict";e.exports=a.p+"assets/foodhub_logo-8ebfe0c2..png"},52733:(e,t,a)=>{"use strict";e.exports=a.p+"assets/instagram_icon-aa51ff16..png"},34022:(e,t,a)=>{"use strict";e.exports=a.p+"assets/linkedin_icon-94d9824a..png"},62401:(e,t,a)=>{"use strict";e.exports=a.p+"assets/location_bg_flower-c8a09f7d..jpg"},15913:(e,t,a)=>{"use strict";e.exports=a.p+"assets/location_bg_food-794c20ef..jpg"},95410:(e,t,a)=>{"use strict";e.exports=a.p+"assets/no_store_flower-c3bcfdcd..png"},20541:(e,t,a)=>{"use strict";e.exports=a.p+"assets/no_store_food-553ba3f0..png"},57477:(e,t,a)=>{"use strict";e.exports=a.p+"assets/tiktok_icon-6f82b716..png"},39015:(e,t,a)=>{"use strict";e.exports=a.p+"assets/twitter_icon-720b9de8..png"},78541:(e,t,a)=>{"use strict";e.exports=a.p+"assets/youtube_icon-00486879..png"},77932:(e,t,a)=>{"use strict";e.exports=a.p+"assets/Gifts-edb10cb9..png"},81092:(e,t,a)=>{"use strict";e.exports=a.p+"assets/Gifts_web_banner-6c35fea8..png"},26211:(e,t,a)=>{"use strict";e.exports=a.p+"assets/Groceries-15d65ebf..png"},52495:(e,t,a)=>{"use strict";e.exports=a.p+"assets/Groceries_web_banner-c620b65a..png"},83717:(e,t,a)=>{"use strict";e.exports=a.p+"assets/fruits-and-vegetables-c069d514..png"},21476:(e,t,a)=>{"use strict";e.exports=a.p+"assets/offer-996afb6f..png"},94427:(e,t,a)=>{"use strict";e.exports=a.p+"assets/offers-156ad5d7..png"},7979:(e,t,a)=>{"use strict";e.exports=a.p+"assets/presents-3a05b64c..png"},40372:(e,t,a)=>{"use strict";e.exports=a.p+"assets/app_logo-bebbe6db..png"},39922:(e,t,a)=>{"use strict";e.exports=a.p+"assets/no_image-f384f619..png"}}]);