(self.webpackChunkCustomerApp=self.webpackChunkCustomerApp||[]).push([[4728,4008],{83066:(e,t,o)=>{var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(34575)),i=n(o(93913)),a=n(o(78585)),l=n(o(29754)),s=n(o(2205)),u=x(o(32330)),d=n(o(2286)),c=n(o(73457)),f=n(o(67177)),p=n(o(27329)),_=n(o(98217)),g=o(83209),y=o(625),S=o(66347),I=o(83448),m=o(91050),C=x(o(81941)),b=o(12770),h=n(o(27464)),E=o(33484),T=n(o(38383)),w=o(77387),N=o(16610),A=o(76782),v=o(12834),O=o(85893);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(R=function(e){return e?o:t})(e)}function x(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=R(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n}function L(e,t,o){return t=(0,l.default)(t),(0,a.default)(e,F()?Reflect.construct(t,o||[],(0,l.default)(e).constructor):t.apply(e,o))}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}var D,M=(0,v.isWeb)(),V=function(e){function t(){var e;(0,r.default)(this,t);for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return(e=L(this,t,[].concat(n))).ratingViews=function(e){return(0,y.RATING_VALUES)().map((function(t){return t.id===e?(0,O.jsxs)(f.default,{children:[(0,O.jsxs)(f.default,{style:_.default.ratingFillRoot,children:[(0,O.jsx)(b.T2SIcon,{name:m.FONT_ICON.Fill_Arrow_Down,size:20,style:_.default.ratingArrowIconStyle}),(0,O.jsx)(f.default,{style:_.default.ratingCircleContainer,children:(0,O.jsx)(f.default,{style:_.default.ratedRatingPlaceholderStyle,children:(0,O.jsx)(p.default,{id:y.VIEW_ID.RATED_PLACEHOLDER_VIEW,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:_.default.ratedRatingTextDisplayStyle,children:t.id})})})]}),t.id!==y.MAX_RATING_VALUE&&(0,O.jsx)(f.default,{style:_.default.ratingDummyView})]}):(0,O.jsxs)(f.default,{children:[(0,O.jsx)(f.default,{style:_.default.ratingCircleContainer,children:(0,O.jsx)(f.default,{style:_.default.ratingPlaceholderStyle,children:(0,O.jsx)(p.default,{id:y.VIEW_ID.RATING_PLACEHOLDER_VIEW,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:_.default.ratingTextDisplayStyle,children:t.id})})}),t.id!==y.MAX_RATING_VALUE&&(0,O.jsx)(f.default,{style:_.default.ratingDummyView})]})}))},e}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){C.logScreen(w.ANALYTICS_SCREENS.TAKEAWAY_DETAILS)}},{key:"renderLastInspection",value:function(){var e,t=this.props,o=t.rating,n=t.isFromFooter,r=(0,I.getDateOfInspection)(o),i=M&&(null==(e=this.context)?void 0:e.isTabletLandscapeMode);if((0,E.isValidElement)(r))return(0,O.jsxs)(f.default,{style:c.default.flatten([n?_.default.flexDirectionRow:_.default.flexDirectionColumn,i&&!n?_.default.alignSelfEnd:null]),children:[(0,O.jsx)(p.default,{id:y.VIEW_ID.LAST_INSPECTION_HEADING_VIEW,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:_.default.dateHeaderTextDisplayStyle,children:S.LOCALIZATION_STRINGS.LAST_INSPECTION}),(0,O.jsx)(p.default,{id:y.VIEW_ID.RATING_HEADING_VIEW+r,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:_.default.dateOfInspectionTextDisplayStyle,children:r})]})}},{key:"render",value:function(){var e,t=this.props,o=t.rating,n=t.color,r=t.isSpanish,i=t.isFromFooter,a=this.props.rating,l=a.scheme_type,s=a.status,u=a.rating_value,d=M&&(null==(e=this.context)?void 0:e.isTabletLandscapeMode),g=c.default.flatten([_.default.headerContainerWeb,D&&d||i?_.default.headerContainerLandscape:_.default.headerContainer,{backgroundColor:n}]);if((0,E.isValidElement)(l)&&(0,E.isValidElement)(s)&&(0,E.isValidElement)(u))return(0,O.jsxs)(f.default,{style:c.default.flatten([_.default.rootContainerWeb,i&&[_.default.noMarginTop,_.default.footerHygienic]]),children:[(0,O.jsxs)(f.default,{style:g,children:[(0,O.jsx)(f.default,{style:_.default.headerPlaceholderStyle,children:(0,O.jsx)(p.default,{id:y.VIEW_ID.FOOD_HYGENIC_HEADING_VIEW,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:c.default.flatten([_.default.headerTextDisplayStyle,r&&_.default.spanishHeaderFontStyle]),accessibilityRole:"heading",accessibilityLevel:2,children:S.LOCALIZATION_STRINGS.FOOD_HYGIENE_RATING})}),this.renderLastInspection()]}),(0,O.jsx)(f.default,{style:Object.assign({backgroundColor:n},_.default.borderBottomRadius),children:this.renderRatingView(o)})]})}},{key:"renderRatingView",value:function(){var e=this.props.rating,t=e.scheme_type,o=e.status,n=e.rating_value,r=e.image_url,i=e.url;if((0,E.isValidElement)(t)&&(0,E.isValidElement)(o)&&(0,E.isValidElement)(n)){var a=o===y.HYGIENE_RATING_STATUS_COMPLETED;if(t===y.SCHEME.SCHEME_TYPE_FHIS&&(0,E.isValidURL)(r)&&(0,E.isValidElement)(n))return this.renderRatingImageView();if(t===y.SCHEME.SCHEME_TYPE_FHRS){if((0,E.isValidURL)(r)&&(0,E.isValidElement)(n)&&n>0)return this.renderRatingImageView();if((0,E.isValidElement)(o)&&(0,E.isValidElement)(n)&&n>0)return this.renderRatingStarView((0,E.safeIntValue)(n));if((0,E.isValidElement)(o)&&!a&&n>0)return this.renderRatingStatusMessageView(o)}return(0,E.isValidURL)(i)&&this.renderRatingLinkView(i)}}},{key:"renderRatingImageView",value:function(){var e=this.props.rating,t=e.scheme_type,o=e.rating_value,n=e.image_url;return D=(0,v.isLandscapeScreen)(this.context),(0,O.jsx)(f.default,{style:t===y.SCHEME.SCHEME_TYPE_FHIS?_.default.imageContainerWithPadding:null,children:(0,O.jsx)(h.default,{accessibilityLabel:t,source:{uri:n},style:_.default.ratingImageStyle,resizeMode:T.default.resizeMode.contain,id:y.VIEW_ID.HYGENIC_RATING_IMAGE_+(0,I.getHygienicRatingValueAndId)((0,E.safeIntValue)(o)),screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET})})}},{key:"renderRatingLinkView",value:function(e){return(0,O.jsxs)(f.default,{style:_.default.ratingContentContainer,children:[(0,O.jsx)(p.default,{screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:_.default.ratingContentTextStyle,id:y.VIEW_ID.HYGENIC_RATING_HOST_TEXT,children:S.LOCALIZATION_STRINGS.FOODHUB_HYGIENE_RATING_PLEASE_VISIT}),(0,O.jsx)(p.default,{screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,onPress:function(){return d.default.openURL(e)},style:_.default.ratingContentLinkTextStyle,id:y.VIEW_ID.HYGENIC_RATING_HOST_LINK_TEXT,children:e})]})}},{key:"renderRatingStatusMessageView",value:function(e){return(0,O.jsx)(f.default,{style:_.default.ratingMessageContentView,children:(0,O.jsx)(p.default,{style:_.default.ratingContentStatusTextStyle,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,id:y.VIEW_ID.HYGENIC_RATING_STATUS_TEXT,children:e})})}},{key:"renderRatingStarView",value:function(e){return(0,O.jsxs)(f.default,{children:[(0,O.jsx)(f.default,{style:_.default.ratingParentViewStyle,children:this.ratingViews(e)}),(0,O.jsxs)(f.default,{style:_.default.ratingTextViewContainer,children:[this.getDummyViews(e<y.AVG_RATING_VALUE?e-1:e),(0,O.jsx)(f.default,{style:e<y.AVG_RATING_VALUE?_.default.ratingReviewContainerLarge:_.default.ratingReviewContainerSmall,children:(0,O.jsx)(p.default,{id:y.VIEW_ID.RATING_REVIEW_VIEW,screenName:y.SCREEN_NAME.HYGENIC_RATING_WIDGET,style:_.default.ratingReviewTextDisplayStyle,children:(0,I.getRatingText)(e)})}),this.getDummyViews(y.MAX_RATING_VALUE-(e<y.AVG_RATING_VALUE?e+1:e))]})]})}},{key:"getDummyViews",value:function(e){for(var t=[],o=0,n=e;o<n;o++)t.push((0,O.jsx)(f.default,{style:_.default.ratingTextDummyView}));return t}}])}(u.Component);V.contextType=E.MyResponsiveContext,V.defaultProps={color:g.Colors.hygenicRatingGreen};t.default=(0,N.connect)((function(e){return{rating:e.takeawayDetailsState.rating,isSpanish:(0,A.selectIsSpanishLanguage)(e)}}),{})(V);!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/TakeawayDetailsModule/View/components/HygienicRatingWidget.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/TakeawayDetailsModule/View/components/HygienicRatingWidget.js")}}()},98217:(e,t,o)=>{var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(73457)),i=n(o(22805)),a=o(64588),l=o(83209),s=o(97778);t.default=r.default.create({rootContainer:{borderColor:l.Colors.white,width:"100%"},rootContainerWeb:{backgroundColor:l.Colors.white,borderRadius:10,marginTop:12},noMarginTop:{marginTop:0},borderBottomRadius:{borderBottomRightRadius:10,borderBottomLeftRadius:10},headerContainer:{flexDirection:"row",padding:10},headerContainerLandscape:{flexDirection:"column",padding:10},alignSelfEnd:{alignSelf:"self-end"},headerContainerWeb:{borderTopLeftRadius:10,borderTopRightRadius:10,marginBottom:-7,paddingBottom:10,zIndex:5},headerPlaceholderStyle:{flexGrow:1},headerTextDisplayStyle:{fontFamily:a.FONT_FAMILY.MEDIUM,color:l.Colors.black,fontSize:(0,s.setFont)(14)},spanishHeaderFontStyle:{fontSize:11},dateHeaderTextDisplayStyle:{fontSize:(0,s.setFont)(10),fontFamily:a.FONT_FAMILY.REGULAR,alignSelf:"center",color:l.Colors.textGrey},ratingBarRoot:{paddingHorizontal:10},ratingParentViewStyle:{flexDirection:"row",justifyContent:"space-between",borderTopWidth:1,paddingHorizontal:40},ratingFillRoot:{paddingBottom:5},ratedRatingPlaceholderStyle:{justifyContent:"center",alignItems:"center",height:40,width:40,borderRadius:20,borderWidth:1,backgroundColor:l.Colors.black},ratingPlaceholderStyle:{justifyContent:"center",alignItems:"center",height:30,width:30,borderRadius:15,borderWidth:1,backgroundColor:l.Colors.white,marginTop:"ios"===i.default.OS?15:16},ratingCircleContainer:{padding:5},ratedRatingTextDisplayStyle:{fontFamily:a.FONT_FAMILY.MEDIUM,color:l.Colors.white,fontSize:(0,s.setFont)(28)},ratingTextDisplayStyle:{fontFamily:a.FONT_FAMILY.MEDIUM,color:l.Colors.black,fontSize:(0,s.setFont)(18)},ratingReviewContainerSmall:{justifyContent:"center",alignItems:"center",backgroundColor:l.Colors.hygenicRatingGreen,borderBottomLeftRadius:4,borderBottomRightRadius:4,width:94},ratingReviewContainerLarge:{justifyContent:"center",alignItems:"center",backgroundColor:l.Colors.hygenicRatingGreen,borderBottomLeftRadius:4,borderBottomRightRadius:4,width:176},ratingReviewTextDisplayStyle:{fontFamily:a.FONT_FAMILY.MEDIUM,fontSize:(0,s.setFont)(10),paddingHorizontal:2,paddingVertical:5,color:l.Colors.black,textAlign:"center"},ratingArrowIconStyle:{alignSelf:"center",margin:"ios"===i.default.OS?-5:-3},dateOfInspectionTextDisplayStyle:{fontFamily:a.FONT_FAMILY.SEMI_BOLD,fontSize:(0,s.setFont)(12),marginLeft:5,alignSelf:"center",color:l.Colors.black},imageContainer:{backgroundColor:l.Colors.white,paddingBottom:10},imageContainerWithPadding:{backgroundColor:l.Colors.white,paddingVertical:10},ratingImageStyle:{resizeMode:"contain",backgroundColor:l.Colors.white,top:0,aspectRatio:4,borderBottomLeftRadius:10,borderBottomRightRadius:10},ratingContentContainer:{height:70,justifyContent:"center",borderTopWidth:1,marginBottom:10,flexWrap:"wrap",paddingHorizontal:10},ratingContentTextStyle:{fontSize:(0,s.setFont)(15),color:l.Colors.black,fontFamily:a.FONT_FAMILY.MEDIUM},ratingContentLinkTextStyle:{textDecorationLine:"underline",color:l.Colors.blue,fontSize:(0,s.setFont)(15),fontFamily:a.FONT_FAMILY.MEDIUM},ratingContentStatusTextStyle:{fontSize:(0,s.setFont)(20)},ratingMessageContentView:{height:70,justifyContent:"center",alignItems:"center",borderTopWidth:1,marginBottom:10},ratingDummyView:{flex:1},ratingTextViewContainer:{flexDirection:"row",paddingHorizontal:20,backgroundColor:l.Colors.white,justifyContent:"space-between"},ratingTextDummyView:{width:42,paddingVertical:5},flexDirectionColumn:{flexDirection:"column"},flexDirectionRow:{flexDirection:"row"},footerHygienic:{backgroundColor:l.Colors.hygenicRatingGreen,marginVertical:20,padding:1}});!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/TakeawayDetailsModule/View/components/styles/HygenicRatingWidgetStyle.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/TakeawayDetailsModule/View/components/styles/HygenicRatingWidgetStyle.js")}}()},38383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={resizeMode:{contain:"contain"}};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/CustomerApp/NativeDependencies/FastImage/FastImage.web.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/CustomerApp/NativeDependencies/FastImage/FastImage.web.js")}}()},18401:(e,t,o)=>{var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.webViewStyle=t.mobileViewStyle=void 0;var r=o(64588),i=o(97778),a=n(o(80689)),l=n(o(73457)),s=o(33484),u={topFooterWrapper:{width:"100%",flexDirection:"column",flex:1,paddingVertical:20,paddingBottom:60},footerSection:{paddingEnd:10,paddingVertical:10,borderColor:a.default.grey},listBorderBottom:{borderBottomWidth:1,borderColor:a.default.borderColor,color:a.default.textMain,paddingBottom:20,marginBottom:20},footerTitle:{fontFamily:r.FONT_FAMILY.BOLD,fontSize:(0,i.setFont)(16),letterSpacing:1.75,marginBottom:15},footerItem:{fontFamily:r.FONT_FAMILY.REGULAR,fontSize:(0,i.setFont)(13),lineHeight:30,color:a.default.textGrey},footerViewAll:{fontFamily:r.FONT_FAMILY.REGULAR,fontSize:(0,i.setFont)(13),lineHeight:30,color:a.default.blue},footerMainWrapper:{flex:1,flexDirection:"column",height:"100%"},followUs:{marginTop:30,flexDirection:"column",justifyContent:"space-between",height:60},followUsText:{marginBottom:5,color:a.default.textMain},iconBox:{flexDirection:"row",alignItems:"center",marginBottom:10},socialIcon:{width:15,height:15,marginRight:20,cursor:"pointer",filter:"invert(1) brightness(0.5)"},fbSocialIcon:{width:10,height:15,marginRight:20,cursor:"pointer"},tiktokSocialIcon:{width:14,height:15,marginRight:20,cursor:"pointer"},titleWrapper:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},unsubscribeSubContainerView:{flex:1,justifyContent:"center",alignItems:"center",paddingHorizontal:20},unSubscriptionTextStyle:{marginTop:15,color:a.default.primaryColor,fontSize:(0,i.setFont)(14),fontFamily:r.FONT_FAMILY.REGULAR},unSubscribeDescriptionStyle:{marginTop:15,textAlign:"center",fontSize:(0,i.setFont)(13),fontFamily:r.FONT_FAMILY.REGULAR,color:a.default.textMain},unSubscribeMailTextInputStyle:{borderBottomWidth:1,width:"100%",marginTop:30,paddingBottom:5,fontSize:(0,i.setFont)(14),fontFamily:r.FONT_FAMILY.REGULAR,color:a.default.textMain},unSubscribeButtonText:{width:"100%",backgroundColor:a.default.successGreen},closeIconStyle:{alignSelf:"flex-end"},unsubscribeModalContainer:{marginHorizontal:"5%",flex:1},textInputErrorMessage:{fontSize:(0,i.setFont)(12),fontFamily:r.FONT_FAMILY.REGULAR,color:a.default.primaryColor,marginTop:3},errorTextInputMainView:{marginBottom:30,alignSelf:"flex-start"},footerWrapper:{paddingHorizontal:15},bannersViewFooter:{flexDirection:"row"},downloadAppBannerView:{justifyContent:"center",marginTop:20,marginBottom:10},foodHygienicRating:{justifyContent:"center",marginBottom:20},footerAdditionalColumn:{flex:.2},languageContainer:{},arrowIcon:{alignSelf:"center",padding:5,fill:a.default.textMain},languageIcon:{alignSelf:"center",marginRight:5,fill:a.default.textMain},flexDirectionRow:{flexDirection:"row"},footerVerifyImage:{width:310,height:25,marginTop:10},poweredbyImage:{width:100,height:50},footerImageCust:{width:120,height:42},footerImage:{width:120,height:40},footerView:{paddingVertical:10,flexDirection:"column",justifyContent:"center",alignItems:"center",paddingBottom:70}},d={footerView:{paddingVertical:10,flexDirection:"row",justifyContent:"space-between"},topFooterWrapper:{flexDirection:"row",flex:1,paddingVertical:10},footerSection:{flex:1/4,paddingEnd:10},footerSectionCustomer:{flex:.2,paddingEnd:10},listBorderBottom:{borderBottomWidth:0,color:a.default.textMain},footerImage:{width:160,height:40,maxHeight:"100%",maxWidth:"100%"},poweredbyImage:{width:200,height:80,maxHeight:"100%",maxWidth:"100%"},footerImageCust:{width:160,height:52,maxHeight:"100%",maxWidth:"100%"},footerVerifyImage:{width:310,height:25,marginTop:10},footerVerifyImageCust:{width:310,height:28,maxHeight:"100%",maxWidth:"100%"},footerDivider:{width:"100%",marginVertical:0,marginHorizontal:"auto",backgroundColor:a.default.borderColor},footerWrapper:{paddingHorizontal:5},footerMainWrapper:{flex:1,flexDirection:"column",height:"100%"},followUs:{marginTop:30,flexDirection:"column",justifyContent:"space-between",height:60},unsubscribeModalContainer:{marginHorizontal:"35%",flex:1},unsubscribeSubContainerView:{flex:1,justifyContent:"center",alignItems:"center",paddingHorizontal:30},footerAdditionalColumn:{flex:.2,marginLeft:"auto"},languageContainer:{},foodHygienicRating:{justifyContent:"center",marginHorizontal:20},downloadAppBannerView:{justifyContent:"center"}};t.mobileViewStyle=l.default.create(u),t.webViewStyle=l.default.create((0,s.mergeWebTabletMobileStyle)(u,d));!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Styles/FooterStyles.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/Styles/FooterStyles.js")}}()},24728:function(e,t,o){var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(63038)),i=n(o(6479)),a=ne(o(32330)),l=n(o(2286)),s=n(o(67177)),u=n(o(92747)),d=n(o(73457)),c=o(93578),f=o(66347),p=n(o(27329)),_=o(11143),g=o(16610),y=o(21511),S=o(18401),I=o(80315),m=o(12770),C=o(91050),b=o(55064),h=n(o(60892)),E=o(33484),T=n(o(9080)),w=o(74008),N=o(83209),A=n(o(4135)),v=o(78628),O=n(o(91176)),R=n(o(85631)),x=o(91420),L=o(89917),F=o(56652),D=n(o(83066)),M=n(o(15597)),V=o(34061),j=o(69104),k=o(46900),G=o(76782),B=o(58217),U=o(92231),P=o(62494),W=n(o(96930)),H=ne(o(31077)),Y=o(77939),z=o(15147),K=o(80539),Z=o(75599),X=o(12834),q=o(90177),J=o(71066),Q=o(33414),$=o(33638),ee=o(85893),te=["screenName","countryId","setBtnClicked"];function oe(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(oe=function(e){return e?o:t})(e)}function ne(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=oe(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n}var re=(0,X.isWeb)(),ie=(0,E.isCustomerApp)();t.default=(0,g.connect)((function(e){var t,o,n,r;return{countryId:null==(t=e.appState.s3ConfigResponse)||null==(o=t.country)?void 0:o.id,countryBaseFeatureGateResponse:(0,V.selectCountryBaseFeatureGateResponse)(e),show_powered_by_foodhub_logo:null==(n=e.appConfiguratorState)?void 0:n.show_powered_by_foodhub_logo,websiteHygieneRatingsToggle:null==(r=e.appState.storeConfigResponse)?void 0:r.website_hygiene_ratings_toggle,isUserLoggedIn:(0,G.selectHasUserLoggedIn)(e),selectedLanguage:(0,G.selectLanguage)(e)}}),null)((function(e){var t=e.screenName,o=void 0===t?"":t,n=e.countryId,V=e.setBtnClicked,X=(0,i.default)(e,te),oe=X.selectedLanguage,ne=(0,U.useNavigation)(),ae=(0,g.useSelector)((function(e){var t;return null==(t=e.appState)?void 0:t.appName})),le=(0,g.useSelector)((function(e){var t;return null==(t=e.foodHubHomeState)?void 0:t.footerUsefulLinks})),se=(0,g.useDispatch)(),ue=(0,g.useSelector)((function(e){return e.foodHubHomeState.footerExpansion})),de=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.loyalty_status})),ce=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.booking_page})),fe=(0,g.useSelector)((function(e){return e.appState.initialConfigWeb})),pe=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.name})),_e=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.town})),ge=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.slug_name})),ye=(0,g.useSelector)(z.selectProfileResponseState),Se=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.loyalty_status_message})),Ie=(0,a.useMemo)((function(){return(0,j.isLoyalPointsVisible)(ye,de,Se)}),[de,Se,ye]),me=(0,U.useRoute)(),Ce=me.name!==_.SCREEN_OPTIONS.TAKEAWAY_DETAILS.route_name,be=(0,g.useSelector)(G.selectPolicyLookupResponse),he=(0,a.useMemo)((function(){return(0,q.isPolicyUpdated)(null==be?void 0:be.data,J.COOKIE_POLICY_ID)}),[be]),Ee=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.client_type})),Te=(0,g.useSelector)((function(e){var t;return null==(t=e.appState.storeConfigResponse)?void 0:t.show_customer_website_powered_by})),we=null==Te?void 0:Te.reseller_logo,Ne=null==Te?void 0:Te.reseller_host,Ae=(0,g.useSelector)(G.cookiesConsentEnabled)&&re&&he,ve=(0,a.useMemo)((function(){var e=null==Te?void 0:Te.show;return(0,E.isCustomerApp)()&&(Te===Z.CONSTANTS.NO||e===Z.CONSTANTS.NO||Ee==$.CLIENT_TYPE.RESELLER&&!(0,E.isValidString)(e))}),[Te,Ee]),Oe=(0,a.useMemo)((function(){return ie?(0,I.CUSTOMER_WEB_FOOTER)(Ie,(0,k.isTableReservationEnabled)(ce),ve,Ae,null!=Ee?Ee:""):(t=(0,I.FOOTER_SECTIONS)(fe,n,Ae),null!=fe&&null!=(e=fe.features)&&e.isSpecialFooterLinks&&((0,E.isArrayNonEmpty)(le)&&(0,E.isArrayNonEmpty)(t)?t[1]={key:I.USEFUL_LINKS,view_id:c.VIEW_ID.USEFUL_LINKS,title:I.FOOTER_RESTAURANTS_LIST,data:le}:se((0,L.getFooterUsefulLinks)())),t);var e,t}),[Ie,ce,pe,le,n,_e,ge,fe,Ae]),Re=(0,a.useState)(ue),xe=(0,r.default)(Re,2),Le=xe[0],Fe=xe[1],De=(0,a.useState)(!1),Me=(0,r.default)(De,2),Ve=Me[0],je=Me[1],ke=(0,a.useState)(""),Ge=(0,r.default)(ke,2),Be=Ge[0],Ue=Ge[1],Pe=(0,a.useState)(""),We=(0,r.default)(Pe,2),He=We[0],Ye=We[1];(0,a.useEffect)((function(){var e;null!=me&&null!=(e=me.name)&&e.includes(_.SCREEN_OPTIONS.UNSUBSCRIBE.route_name)&&!Ve&&je(!0)}),[null==me?void 0:me.name]);var ze,Ke,Ze,Xe=(0,a.useCallback)((function(e){Fe((function(t){var o=t===e?null:e;return se((0,L.handleFooterExpandAction)(o)),o}))}),[se]),qe=(0,a.useContext)(E.MyResponsiveContext),Je=!(qe.isSmallScreenMode||qe.isTabletPortraitMode),Qe=(null==fe?void 0:fe.socialMedia)||{},$e=(0,E.isSocialLinksNotAvailable)(Qe),et=(0,a.useMemo)((function(){return Je?S.webViewStyle:S.mobileViewStyle}),[Je]),tt=(0,a.useCallback)((function(e){var t=(0,E.seoFriendlyUrl)(e);se((0,y.resetSelectedPostCodeAction)()),se((0,y.resetUserSearchedAddress)()),(0,R.default)(ne,_.SCREEN_OPTIONS.TAKEAWAY_LIST_SCREEN.route_name,{town:t},V),se((0,y.getTakeawayListByPostcodeAction)({town:t}))}),[se,ne,V]),ot=(0,a.useCallback)((function(e){(0,R.default)(ne,_.SCREEN_OPTIONS.CUISINES_LOCATION_LIST.route_name,{type:I.TOP_CUISINES,selectedCuisines:e},V),ne.setOptions({isFromFooter:!0}),se((0,y.getCuisinesList)(e))}),[se,ne,V]),nt=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/");t.length>2&&e.includes(Y.redirectURL.ORDERNOW)?(ne.navigate(_.SCREEN_OPTIONS.MENU_SCREEN.route_name,{town:t[0],slug_name:t[1]}),se((0,v.redirectRouteAction)(e))):(0,R.default)(ne,e,{isFromFooter:!0},V)}),[se,ne,V]),rt=(0,a.useCallback)((function(e){e===I.LOCATIONS?(0,R.default)(ne,_.SCREEN_OPTIONS.SERVICABLE_LOCATION_LIST.route_name,{type:e},V):(0,R.default)(ne,_.SCREEN_OPTIONS.CUISINES_LOCATION_LIST.route_name,{type:e},V),e===I.TOP_CUISINES?(se((0,y.getAllCuisinesList)()),H.trackEvent(Q.SEGMENT_EVENTS.VIEW_CUISINES,{viewAll:e})):(se((0,y.getAllLocationList)()),H.trackEvent(Q.SEGMENT_EVENTS.VIEW_LOCATION,{viewAll:e}))}),[se,ne,V]),it=(0,a.useCallback)((function(e){l.default.openURL(e)}),[]),at=(0,a.useCallback)((function(e,t,o,n,r){var i=X.isUserLoggedIn;if(null==e||null==e.preventDefault||e.preventDefault(),r===I.NAVIGATION){if((0,B.loginRequiredScreens)(n,i))return ne.navigate(_.SCREEN_OPTIONS.SOCIAL_LOGIN.route_name),void se((0,v.redirectRouteAction)(n));window.scrollTo({top:0,behavior:"auto"}),se((0,K.setFooterClick)(!0)),n!==(null==me?void 0:me.name)&&(0,R.default)(ne,n,{isFromFooter:!0},V)}else r===I.WEB_LINK?it(n):r===I.MODAL?je(!0):t===I.LOCATIONS?(tt(o),H.trackEvent(Q.SEGMENT_EVENTS.SELECTED_LOCATION,{location:o})):t===I.TOP_CUISINES?(ot(o),H.trackEvent(Q.SEGMENT_EVENTS.SELECTED_CUISINE,{cuisine:o})):t===I.USEFUL_LINKS&&nt(n)}),[ot,tt,ne,it,V,se,X,nt,me]),lt=function(e,t,n){var r;return(0,ee.jsxs)(m.T2STouchableOpacity,{style:et.titleWrapper,onPress:function(){Xe(n)},disabled:Je,children:[(0,ee.jsx)(p.default,{screenName:I.SCREEN_NAME.FOOTER,id:e,style:d.default.flatten([et.footerTitle,{color:N.Colors.primaryColor}]),children:null!=(r=f.LOCALIZATION_STRINGS[t])?r:t}),!Je&&(0,ee.jsx)(m.T2SIcon,{id:c.VIEW_ID.EXPAND_ICON,screenName:o,icon:Le===n?C.FONT_ICON.ARROW_UP:C.FONT_ICON.ARROW_DOWN,style:b.NewMenuStyle.accordionIcon,size:25})]})},st=(0,a.useCallback)((function(){je(!Ve)}),[Ve]),ut=function(){var e;return(0,ee.jsxs)(T.default,{screenName:o,id:c.VIEW_ID.UNSUBSCRIBE_MAIN_VIEW,children:[(0,ee.jsx)(m.T2STouchableOpacity,{onPress:st,screenName:o,id:c.VIEW_ID.UNSUBSCRIBE_CLOSE_BUTTON,children:(0,ee.jsx)(m.T2SIcon,{icon:w.AppIcon.Close,size:16,color:N.Colors.black,style:et.closeIconStyle,screenName:o,id:c.VIEW_ID.CLOSE_ICON})}),(0,ee.jsxs)(T.default,{screenName:o,id:c.VIEW_ID.UNSUBSCRIBE_SUB_CONTAINER_VIEW,style:et.unsubscribeSubContainerView,children:[(0,ee.jsx)(p.default,{screenName:o,id:c.VIEW_ID.UNSUBSCRIBE_TITLE,style:et.unSubscriptionTextStyle,children:f.LOCALIZATION_STRINGS.UNSUBSCRIBE_HEADER}),(0,ee.jsx)(p.default,{screenName:o,id:c.VIEW_ID.UNSUBSCRIBE_DESCRIPTION,style:et.unSubscribeDescriptionStyle,children:f.LOCALIZATION_STRINGS.formatString(f.LOCALIZATION_STRINGS.UNSUBSCRIBE_DESCRIPTION_TEXT,(0,E.getAppNameForWeb)(ae))}),(0,ee.jsx)(u.default,{onChangeText:function(e){Ye(""),Ue(e)},value:Be,placeholderTextColor:N.Colors.textGrey,placeholder:f.LOCALIZATION_STRINGS.UNSUBSCRIBE_EMAIL_PHONE,style:et.unSubscribeMailTextInputStyle}),(0,ee.jsx)(s.default,{style:et.errorTextInputMainView,children:(0,E.isValidString)(He)&&(0,ee.jsx)(p.default,{screenName:o,id:c.VIEW_ID.UNSUBSCRIBE_TEXT_INPUT_ERROR,style:et.textInputErrorMessage,children:He})}),(0,ee.jsx)(A.default,{onPress:function(e){e.preventDefault(),(0,E.isValidString)(Be)?isNaN(Be)&&!(0,E.checkIsValidEmail)(Be)?Ye(f.LOCALIZATION_STRINGS.INVALID_EMAIL):(Ye(""),Ue(""),je(!1),se((0,v.unsubscribeAction)(Be))):Ye(f.LOCALIZATION_STRINGS.UNSUBSCRIBE_ERROR_MESSAGE)},title:null==(e=f.LOCALIZATION_STRINGS.UNSUBSCRIBE)?void 0:e.toUpperCase(),style:et.unSubscribeButtonText,color:N.Colors.successGreen})]})]})},dt=function(e,t,n,r){var i,a;return(0,ee.jsx)(s.default,{style:ie?et.footerSectionCustomer:et.footerSection,children:(0,x.showOrHideTheFooterSection)(e,null==fe||null==(i=fe.features)?void 0:i.footerCusines,null==fe||null==(a=fe.features)?void 0:a.footerlocation)&&lt(t,n,e)&&(0,ee.jsxs)(s.default,{style:(0,E.isValidElement)(r)&&et.listBorderBottom,children:[lt(t,n,e),(Je||!Je&&Le===e)&&(0,ee.jsxs)(ee.Fragment,{children:[null==r?void 0:r.map((function(t){var n=t.key,r=t.text,i=t.view_id,a=t.link,l=t.redirect;return function(e,t,n,r,i,a){var l;if(a===I.NAVIGATION)return(0,ee.jsx)(W.default,{screenName:o,id:r,to:{screen:i},action:function(){at(null,e,t,i,a)},children:(0,ee.jsx)(p.default,{screenName:I.SCREEN_NAME.FOOTER,id:r,style:et.footerItem,children:null!=(l=f.LOCALIZATION_STRINGS[n])?l:n},t)});var s,u=i;return e===I.LOCATIONS?u="/"+((0,E.isFoodHubApp)()?I.LOCATIONS:I.LOCATION)+"/"+(0,E.seoFriendlyUrl)(t):e===I.TOP_CUISINES?u="/"+I.TOP_CUISINES+"/"+(0,E.seoFriendlyUrl)(t):e===I.USEFUL_LINKS&&(u="/"+u),(0,ee.jsx)(p.default,{href:u,screenName:I.SCREEN_NAME.FOOTER,id:r,style:et.footerItem,onPress:function(o){if(e!==I.LOCATIONS)at(o,e,t,i,a);else if(o.preventDefault(),(0,E.isFoodHubApp)()){var n=(0,E.seoFriendlyUrl)(t);se((0,y.resetSelectedPostCodeAction)()),se((0,y.resetUserSearchedAddress)()),se((0,y.getTakeawayListByPostcodeAction)({town:n,redirectTAList:!1})),ne.navigate(_.SCREEN_OPTIONS.REGION_BASED_TA.route_name,{town:(0,E.seoFriendlyUrl)(t)})}else at(o,e,t,i,a)},children:null!=(s=f.LOCALIZATION_STRINGS[n])?s:n},t)}(e,n,r,i,a,l)})),!ie&&(e==I.TOP_CUISINES||e==I.LOCATIONS)&&(0,ee.jsx)(p.default,{screenName:I.SCREEN_NAME.FOOTER,id:t+"_"+c.VIEW_ID.VIEW_ALL,href:"/"+e,style:et.footerViewAll,onPress:function(t){t.preventDefault(),rt(e)},children:f.LOCALIZATION_STRINGS.VIEW_ALL})]})]})},e)};return(0,ee.jsxs)(s.default,{style:et.footerWrapper,children:[(0,ee.jsx)(s.default,{style:et.footerMainWrapper,children:(0,ee.jsxs)(s.default,{style:et.topFooterWrapper,children:[null==Oe?void 0:Oe.map((function(e){var t=e.key,o=e.view_id,n=e.title,r=e.data;return dt(t,o,n,r)})),(0,ee.jsxs)(s.default,{style:et.footerAdditionalColumn,children:[(0,ee.jsx)(s.default,{style:et.languageContainer,children:(0,ee.jsxs)(m.T2STouchableOpacity,{style:et.flexDirectionRow,onPress:function(e){at(e,"language","language",_.SCREEN_OPTIONS.LANGUAGE.route_name,"navigation")},children:[(0,ee.jsx)(m.T2SIcon,{name:C.FONT_ICON.LANGUAGE,size:20,style:et.languageIcon}),(0,ee.jsx)(p.default,{screenName:I.SCREEN_NAME.FOOTER,style:et.footerItem,children:(Ke=(0,g.useSelector)((function(e){var t,o;return null==(t=e.appState.s3ConfigResponse)||null==(o=t.language)?void 0:o.default})),Ze=(0,g.useSelector)((function(e){var t;return null==(t=e.appState)?void 0:t.language})),(0,E.getSelectedLanguage)(Ze,Ke).code.toUpperCase())}),(0,ee.jsx)(m.T2SIcon,{name:C.FONT_ICON.DOWN_ARROW,size:20,style:et.arrowIcon})]})}),ie&&Ce&&((0,E.isUKTakeaway)(n)&&(0,F.getHygieneRatingStatus)(X.countryBaseFeatureGateResponse)&&(0,F.checkWebsiteHygieneRatingsEnabled)(X.websiteHygieneRatingsToggle)?(0,ee.jsx)(D.default,{isFromFooter:!0,selectedLanguage:oe}):null),(0,P.getCurrentPageFromNavigation)()!==_.SCREEN_OPTIONS.ORDER_HISTORY.route_name&&(0,ee.jsx)(s.default,{style:et.downloadAppBannerView,children:(0,ee.jsx)(M.default,{isFromFooter:!0,selectedLanguage:oe})}),!ie&&$e&&(0,ee.jsxs)(s.default,{style:et.followUs,children:[(0,ee.jsx)(p.default,{style:et.followUsText,screenName:I.SCREEN_NAME.FOOTER,children:f.LOCALIZATION_STRINGS.FOLLOW_US})," ",(0,ee.jsx)(O.default,{socialMedia:Qe,styles:et})]})]})]})}),(0,ee.jsx)(h.default,{websiteLogo:null==fe||null==(ze=fe.images)?void 0:ze.websiteLogoUrl,show_powered_by_foodhub_logo:we,countryId:n,townName:_e,slugName:ge,isOFFPowerByFoodhubDisplay:ve,powered_by_reseller_host:Ne,clientType:Ee}),(0,ee.jsx)(m.T2SModal,{isVisible:Ve,modalContainerStyle:et.unsubscribeModalContainer,customView:ut,onBackdropPress:function(){je(!1)}})]})}));!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/Footer.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/Footer.js")}}()},85631:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(33484),r=o(36671);t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;"/"===window.location.pathname&&(0,n.isValidElement)(i)?(i(!0),setTimeout((function(){(0,r.handleNavigation)(t,o)}),1e3)):e.navigate(t,o)};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/FooterHelper.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/FooterHelper.js")}}()},60892:function(e,t,o){var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=S(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n}(o(32330)),i=n(o(2286)),a=n(o(67177)),l=o(12770),s=n(o(42948)),u=o(18401),d=o(33484),c=o(80315),f=n(o(96930)),p=o(91420),_=o(12834),g=o(6601),y=o(85893);function S(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(S=function(e){return e?o:t})(e)}var I=(0,d.isCustomerApp)();t.default=function(e){var t,n=(0,r.useContext)(d.MyResponsiveContext),S=!(n.isSmallScreenMode||n.isTabletPortraitMode),m=(0,r.useMemo)((function(){return S?u.webViewStyle:u.mobileViewStyle}),[S]),C=o(68462),b=e.show_powered_by_foodhub_logo,h=e.websiteLogo,E=e.countryId,T=e.townName,w=e.slugName,N=e.powered_by_reseller_host,A=e.clientType,v=I?A==g.CLIENT_TYPE_CONSTANTS.RESELLER?b||"":C:h,O=I?m.poweredbyImage:m.footerImage,R=I?(0,p.poweredByUrl)(E,T,w,N):"",x=(0,r.useMemo)((function(){return(0,_.isUKApp)(E)?o(60113):(0,_.isUSApp)(E)?o(59150):o(132)}),[E]);return(0,y.jsxs)(a.default,{children:[(0,y.jsx)(l.T2SDivider,{style:m.footerDivider}),(0,y.jsxs)(a.default,{style:m.footerView,children:[e.isOFFPowerByFoodhubDisplay?(0,y.jsx)(a.default,{style:O}):(0,y.jsx)(f.default,{action:(t=R,function(e){I&&(e.preventDefault(),i.default.openURL(t))}),to:R,children:(0,y.jsx)(s.default,{screenName:c.SCREEN_NAME.FOOTER,id:c.ACCESSIBILITY_LABEL.WEB_LOGO,style:O,accessibilityLabel:c.ACCESSIBILITY_LABEL.FOODHUB_LOGO,source:v,resizeMode:"contain",nativeID:"footer_logo_img"})}),(0,y.jsx)(s.default,{id:c.ACCESSIBILITY_LABEL.CARDS_IMAGE,screenName:c.SCREEN_NAME.FOOTER,style:m.footerVerifyImage,accessibilityLabel:c.ACCESSIBILITY_LABEL.VERIFY_PAYMENT,source:x,resizeMode:"contain"})]})]})};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/FooterLogo.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/FooterLogo.js")}}()},91176:function(e,t,o){var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(o(32330));var r=n(o(63250)),i=n(o(67177)),a=n(o(2286)),l=o(33484),s=o(12770),u=o(80315),d=o(91420),c=o(85893);t.default=function(e){var t=e.socialMedia,o=e.styles,n=function(e){return function(t){t.preventDefault(),a.default.openURL(e)}},f=[];for(var p in t)if((0,l.isValidString)(t[p])&&(0,l.isValidElement)(d.SOCIAL_LINKS[p])){var _=d.SOCIAL_LINKS[p];f.push({key:""+_.key,url:""+t[p],image:_.image,style:o[_.style]})}return(0,c.jsx)(i.default,{style:o.iconBox,children:f.map((function(e){var t=e.key,o=e.url,i=e.image,a=e.style;return o?function(e,t,o,i){return(0,c.jsx)(s.T2STouchableOpacity,{onPress:n(t),screenName:u.SCREEN_NAME.FOOTER,id:e,href:t,children:t&&e&&(0,c.jsx)(r.default,{source:o,style:i,accessibilityLabel:e})})}(t,o,i,a):null}))})};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/SocialLinks.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/SocialLinks.js")}}()},38199:function(e,t,o){var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_ID=t.CallButtonComponent=void 0;var r=n(o(67177)),i=(n(o(32330)),o(29094)),a=n(o(2912)),l=n(o(27329)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=p(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n}(o(33484)),u=o(33484),d=o(66347),c=o(85893),f=this;function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(p=function(e){return e?o:t})(e)}t.CallButtonComponent=function(e){var t=e.screenName,o=e.storePhoneNumber,n=e.addBottomMargin,s=void 0!==n&&n;return(0,c.jsx)(a.default,{id:g.CALL_BUTTON_CLICKED,screenName:t,style:[i.CallButtonStyle.buttonMainContainer,(0,u.isValidElement)(s)&&s&&i.CallButtonStyle.customBottomMargin],onPress:_.bind(f,o),children:(0,c.jsx)(r.default,{style:i.CallButtonStyle.buttonViewStyle,children:(0,c.jsx)(l.default,{id:g.CALL_TAKEAWAY_TEXT,style:i.CallButtonStyle.buttonTextStyle,screenName:t,children:d.LOCALIZATION_STRINGS.CALL_TAKEAWAY})})})};function _(e){s.callDialPad(e)}var g=t.VIEW_ID={CALL_BUTTON_CLICKED:"call_button_clicked",CALL_TAKEAWAY_TEXT:"call_takeaway_clicked"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/CallButtonComponent.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/CallButtonComponent.js")}}()},29094:(e,t,o)=>{var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.CallButtonStyle=void 0;var r=n(o(73457)),i=n(o(22805)),a=n(o(95998)),l=o(83209),s=o(97778),u=o(33484),d=a.default.get("window").width-50,c={buttonMainContainer:{alignSelf:"flex-start"},buttonViewStyle:{paddingVertical:5,flexDirection:"row",borderColor:l.Colors.primaryColor,borderWidth:1,borderRadius:8,justifyContent:"center",alignItems:"center",width:d/2.1},buttonTextStyle:{color:l.Colors.primaryColor,paddingVertical:10},btnBottomText:{textAlign:"center",fontSize:(0,s.setFont)(10),padding:5,color:l.Colors.textGrey},customBottomMargin:{marginBottom:"ios"===i.default.OS?15:30}},f={buttonMainContainer:{alignSelf:"flex-start"},buttonViewStyle:{paddingVertical:5,flexDirection:"row",borderColor:l.Colors.primaryColor,borderWidth:1,borderRadius:8,justifyContent:"center",alignItems:"center",padding:5}},p={buttonMainContainer:{alignSelf:"flex-start"},buttonViewStyle:{paddingVertical:5,flexDirection:"row",borderColor:l.Colors.primaryColor,borderWidth:1,borderRadius:8,justifyContent:"center",alignItems:"center",flex:1,padding:5},btnBottomText:{textAlign:"center",fontSize:(0,s.setFontWeb)(10),padding:5,color:l.Colors.textGrey}};t.CallButtonStyle=r.default.create((0,u.mergeWebTabletMobileStyle)(c,f,p));!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/Style/CallButtonStyle.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/Style/CallButtonStyle.js")}}()},67158:(e,t,o)=>{var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.appDownloadStyle=void 0;var r=o(83209),i=o(64588),a=o(97778),l=n(o(15886));t.appDownloadStyle=new l.default({defaultStyle:{downloadAppText:{fontFamily:i.FONT_FAMILY.MEDIUM,fontSize:(0,a.setFont)(15),textAlign:"center"},downloadBoldText:{fontFamily:i.FONT_FAMILY.BOLD,fontSize:(0,a.setFont)(15)},downloadAppContainer:{borderRadius:12,backgroundColor:r.Colors.white,alignItems:"center",paddingVertical:25,borderTopWidth:10,borderColor:r.Colors.borderColor},storeDownloadView:{flexDirection:"row",marginTop:20,marginBottom:20,marginHorizontal:-5},downloadButtonView:{flexGrow:1,alignItems:"center"},downloadContainerInnerView:{width:"65%"},downloadAppImage:{width:130,borderRadius:5,aspectRatio:3/.9,height:38},flexStart:{alignItems:"flex-start"},downloadAppTextFooter:{fontFamily:i.FONT_FAMILY.MEDIUM,fontSize:(0,a.setFont)(15),textAlign:"left"},downloadButtonContainer:{flexBasis:140,paddingHorizontal:5}},tabletLandscapeStyle:{downloadAppContainer:{borderRadius:12,marginTop:15,backgroundColor:r.Colors.white,alignItems:"center",paddingVertical:25},downloadContainerInnerView:{width:"85%"},downloadAppImage:{borderRadius:5,aspectRatio:3/.9},downloadButtonView:{flexGrow:1},zeroTopRadius:{borderTopRightRadius:0,borderTopLeftRadius:0},zeroBottomRadius:{borderBottomLeftRadius:0,borderBottomRightRadius:0}},webStyle:{downloadAppText:{fontFamily:i.FONT_FAMILY.MEDIUM,fontSize:(0,a.setFont)(15),textAlign:"left"},downloadContainerInnerView:{width:"50%"}}});!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/Style/T2SAppDownloadStyle.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/Style/T2SAppDownloadStyle.js")}}()},15597:function(e,t,o){var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(o(32330));var r=o(57173),i=n(o(63250)),a=n(o(67177)),l=n(o(2912)),s=o(38199),u=n(o(27329)),d=o(66347),c=o(16610),f=o(67158),p=n(o(68637)),_=o(33484),g=o(64588),y=o(85893);t.default=(0,c.connect)((function(e){var t,o,n;return{storeResponse:e.appState.storeConfigResponse,appUrl:null==(t=e.appState)||null==(o=t.initialConfigWeb)?void 0:o.appUrl,storeConfigResponse:null==(n=e.appState)?void 0:n.storeConfigResponse}}),null)((function(e){var t,o,n=(0,c.useSelector)((function(e){var t,o,n;return null!=(t=null==e||null==(o=e.appState)||null==(n=o.initialConfigWeb)?void 0:n.appUrl)?t:{}})),S=n.androidStoreUrl,I=n.iosStoreUrl,m=(0,p.default)(f.appDownloadStyle),C=e.storeResponse,b=e.isFromFooter,h=(0,_.isCustomerApp)()?(0,_.isValidString)(null==C?void 0:C.android_link):(0,_.isValidString)(S),E=(0,_.isCustomerApp)()?(0,_.isValidString)(null==C?void 0:C.ios_link):(0,_.isValidString)(I);if(h||E)return(0,y.jsxs)(a.default,{style:b?m.downloadAppBannerView:m.downloadContainerInnerView,children:[(0,y.jsx)(u.default,{id:s.VIEW_ID.DOWNLOAD_APP_TEXT,style:b?m.downloadAppTextFooter:m.downloadAppText,children:d.LOCALIZATION_STRINGS.DOWNLOAD}),(0,y.jsx)(u.default,{id:s.VIEW_ID.DOWNLOAD_APP_TEXT,style:m.downloadBoldText,children:d.LOCALIZATION_STRINGS.GET_EXCLUSIVE_DISCOUNTS}),(t=e.storeConfigResponse,o=e.appUrl,(0,y.jsxs)(a.default,{style:m.storeDownloadView,children:[E?(0,y.jsx)(a.default,{style:m.downloadButtonContainer,children:(0,y.jsx)(l.default,{id:s.VIEW_ID.DOWNLOAD_ON_APPSTORE_BUTTON,style:m.downloadButtonView,onPress:function(){return(0,r.handleDownloadAppClick)(g.OS_PLATFORM.iOS,(0,r.getStoreURL)(t,o))},children:(0,y.jsx)(i.default,{source:{uri:"https://nativesites.touch2success.com/compressed_images/Appstore.svg"},style:m.downloadAppImage})})}):null,h?(0,y.jsx)(a.default,{style:m.downloadButtonContainer,children:(0,y.jsx)(l.default,{id:s.VIEW_ID.DOWNLOAD_ON_PLAYSTORE_BUTTON,style:m.downloadButtonView,onPress:function(){return(0,r.handleDownloadAppClick)(g.OS_PLATFORM.ANDROID,(0,r.getStoreURL)(t,o))},children:(0,y.jsx)(i.default,{source:{uri:"https://nativesites.touch2success.com/compressed_images/Playstore.svg"},style:m.downloadAppImage})})}):null]}))]})}));!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/T2SAppDownload.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/T2SAppDownload.js")}}()},74008:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AppIcon=void 0;t.AppIcon={TermsAndCondition:"Terms--Conditions",PrivacyPolicy:"Privacy-Policy",GDPRGuideLine:"GDPR",arrowRight:"Arrow-Right",savingsCalculator:"Saving-Calculator",smsScheduler:"Sms-Scheduler",couponsIcon:"Coupons",billingIcon:"Billing",tickIcon:"Tick",plus:"Plus",Arrow_Down:"Arrow-Down",Arrow_Up:"Arrow-Up",Calendar:"Calendar",Trash:"Delete",onlineBanking:"www",Discounts:"Discounts",pushNotification:"Push-Notification",Clock:"Clock",Close:"Close",Resync:"Resync",GIFT:"Gift_Fill",addIcon:"Add",infoFill:"Info_Fill",warningFill:"Warning_Fill",update:"Update",dispute:"Dispute_Fill"};!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;if(e){var o="undefined"!=typeof __webpack_exports__?__webpack_exports__:t;if(o)if("function"!=typeof o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var r=void 0;try{r=o[n]}catch(e){continue}e.register(r,n,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/Utils/AppIcon.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/Utils/AppIcon.js")}}()},132:(e,t,o)=>{"use strict";e.exports=o.p+"assets/verified-by-other-2562ec6b..svg"},60113:(e,t,o)=>{"use strict";e.exports=o.p+"assets/verified-by-uk-2b716474..svg"},59150:(e,t,o)=>{"use strict";e.exports=o.p+"assets/verified-by-usa-49b07c40..svg"},68462:(e,t,o)=>{"use strict";e.exports=o.p+"assets/powered_by-ca872fd7..png"}}]);