(self.webpackChunkCustomerApp=self.webpackChunkCustomerApp||[]).push([[6313,5688],{42934:(e,t,o)=>{var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(73457)),l=o(83209),i=o(33484),a=o(64588),u=o(97778),s={sectionContainer:{margin:3,backgroundColor:l.Colors.white,elevation:2,borderRadius:5},offersHeadingStyle:{padding:2,fontFamily:a.FONT_FAMILY.BOLD,fontSize:(0,u.setFont)(17),paddingBottom:10}},c={offersHeadingStyle:{padding:2,fontFamily:a.FONT_FAMILY.BOLD,fontSize:(0,u.setFont)(22),paddingBottom:10}};t.default=n.default.create((0,i.mergeWebTabletMobileStyle)(s,{},c));!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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/HomeModule/View/Styles/SectionFlatlistStyles.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/HomeModule/View/Styles/SectionFlatlistStyles.js")}}()},64316:function(e,t,o){var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6479)),l=(r(o(32330)),r(o(48744))),i=r(o(67177)),a=r(o(42934)),u=o(33484),s=o(12834),c=o(85893),d=["renderItem","rowCount","isHorizontal","sections","containerStyle","sectionContainerStyle","contentContainerStyle","renderFooter","showtitle","renderHeader","renderContainerHeader"],f=(0,s.isWeb)(),p=function(e,t){return t};t.default=function(e){var t=e.renderItem,o=e.rowCount,r=void 0===o?1:o,s=e.isHorizontal,b=void 0===s||s,_=e.sections,y=void 0===_?[]:_,v=e.containerStyle,m=e.sectionContainerStyle,S=(e.contentContainerStyle,e.renderFooter,e.showtitle,e.renderHeader),C=void 0===S?function(){return null}:S,x=e.renderContainerHeader,g=void 0===x?function(){return null}:x,h=(0,n.default)(e,d),T=v||a.default.container,O=m||a.default.sectionContainer;if((0,u.isArrayNonEmpty)(y))return(0,c.jsxs)(i.default,{style:T,children:[f&&(0,u.isFoodHubApp)()?g():null,y.map((function(e,o){return(0,c.jsxs)(i.default,{style:O,children:[C(e,o),(0,c.jsx)(l.default,Object.assign({horizontal:b,data:e.data,showsHorizontalScrollIndicator:f,keyExtractor:p,renderItem:t},h,b?{}:{numColumns:r}))]},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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/HomeModule/View/components/SectionFlatList.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/AppModules/HomeModule/View/components/SectionFlatList.js")}}()},5688:(e,t,o)=>{var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(92231),l=r(o(32330)),i=function(e){return(0,n.useFocusEffect)(l.default.useCallback((function(){return null==e||e.onFocus(),function(){null==e||e.onBlur()}}),[])),null};i.defaultProps={onFocus:function(){},onBlur:function(){}};t.default=i;!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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/CustomerApp/Navigation/NavigationUseFocus.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/CustomerApp/Navigation/NavigationUseFocus.js")}}()},93075:function(e,t,o){var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(63038)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=v(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var i=n?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(r,l,i):r[l]=e[l]}return r.default=e,o&&o.set(e,r),r}(o(32330)),i=r(o(20222)),a=o(88369),u=r(o(85887)),s=r(o(56706)),c=r(o(87545)),d=r(o(67177)),f=r(o(64316)),p=o(80315),b=o(16610),_=o(33484),y=o(85893);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(v=function(e){return e?o:t})(e)}t.default=l.default.memo((function(e){var t=e.type,o=e.listRef,r=(0,l.useContext)(_.MyResponsiveContext),v=(0,_.isLandscapeMode)(r),m=(0,b.useSelector)((function(e){return e.basketState.localCartItemQuantityAndPrice})),S=(0,_.isValidElement)(m)&&!v,C=(0,l.useMemo)((function(){var e;return[a.BackToTopStyle.arrowIconContainer,S?{bottom:(null==(e=a.BackToTopStyle.arrowIconContainer)?void 0:e.bottom)+30}:{}]}),[S]),x=(0,l.useState)(!1),g=(0,n.default)(x,2),h=g[0],T=g[1],O=function(t){"function"==typeof(null==e?void 0:e.onScroll)&&(null==e||e.onScroll(t)),function(e){e.nativeEvent.contentOffset.y>100?h||T(!0):e.nativeEvent.contentOffset.y<=100&&h&&T(!1)}(t)},j=(0,l.useCallback)((function(){var e;if(t===p.ELEMENT_TYPE.SECTION_LIST)null==o||null==(e=o.current)||e.scrollToLocation({animated:!1,itemIndex:0,sectionIndex:0,viewPosition:0,viewOffset:0});else if(t===p.ELEMENT_TYPE.SCROLL_VIEW){var r;null==o||null==(r=o.current)||r.scrollTo({x:0,y:0,animated:!1})}else{var n;null==o||null==(n=o.current)||n.scrollToOffset({offset:0,animated:!1})}}),[o,t]);return(0,y.jsxs)(y.Fragment,{children:[t===p.ELEMENT_TYPE.ANIMATED_FLATLIST?(0,y.jsx)(u.default.FlatList,Object.assign({},e,{ref:o,onScroll:O})):t===p.ELEMENT_TYPE.SECTION_LIST?(0,y.jsx)(c.default,Object.assign({},e,{ref:o,onScroll:O})):t===p.ELEMENT_TYPE.SECTION_FLATLIST?(0,y.jsx)(f.default,Object.assign({},e,{ref:o,onScroll:O})):t===p.ELEMENT_TYPE.SCROLL_VIEW?(0,y.jsx)(s.default,Object.assign({},e,{ref:o,onScroll:O})):(0,y.jsx)(y.Fragment,{}),(0,y.jsx)(d.default,{style:C,children:h&&(0,y.jsx)(i.default,Object.assign({show:h,handleElementScroll:j},e))})]})}));!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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/T2SUniversalView.web.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/FoodHubApp/FooterComponent/View/T2SUniversalView.web.js")}}()},598:(e,t,o)=>{var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.TextColorStyle=void 0;var n=r(o(73457)),l=o(83209);t.TextColorStyle=n.default.create({black:{color:l.Colors.black},blue:{color:l.Colors.blue}});!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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/Style/TextColorStyle.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/Style/TextColorStyle.js")}}()},99389:function(e,t,o){var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=x(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var i=n?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(r,l,i):r[l]=e[l]}return r.default=e,o&&o.set(e,r),r}(o(32330)),l=r(o(95998)),i=r(o(73457)),a=r(o(67177)),u=r(o(17625)),s=o(83209),c=o(64588),d=o(3541),f=o(33484),p=o(97778),b=o(4740),_=o(66984),y=r(o(27329)),v=r(o(82206)),m=o(74008),S=o(12834),C=o(85893);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(x=function(e){return e?o:t})(e)}var g=(0,_.isAndroid)(),h=(0,_.isIOS)(),T=(0,S.isWeb)(),O=function(e){var t=e.screenName,o=e.id,r=e.label,l=e.autoFocus,u=void 0!==l&&l,p=e.value,_=e.changeUnderlineColor,S=void 0!==_&&_,x=e.error,g=void 0===x?"":x,h=e.errorNumberOfLines,O=e.isEditable,j=e.onEndEditing,w=e.onFocus,k=e.errorColor,I=void 0===k?s.Colors.red:k,E=e.baseColor,F=void 0===E?s.Colors.borderColor:E,M=e.tintColor,A=void 0===M?s.Colors.brownLight:M,P=e.isOutlined,H=void 0!==P&&P,B=e.prefixTxt,N=void 0===B?null:B,U=e.lineWidth,G=void 0===U?2:U,R=e.contentInset,W=e.onBlur,V=e.color,z=e.errorLabelStyle,D=e.renderRightAccessory,Y=void 0===D?null:D,Q=e.isPasswordField,q=void 0!==Q&&Q,X=H?b.OutlinedTextField:b.TextField,K=(0,n.useRef)(null),J=(0,n.useCallback)((function(){return!g&&!h||q?Y?Y():null:(0,C.jsx)(v.default,{name:m.AppIcon.dispute,size:25,color:s.Colors.primaryColor})}),[g,h,Y,q]);return(0,n.useEffect)((function(){var e;u&&(null==(e=K.current)||e.focus())}),[u,t]),(0,C.jsx)(X,Object.assign({ref:K,onBlur:W,labelTextStyle:L.labelTextStyle,lineWidth:G,onEndEditing:function(){return"function"==typeof j?j(o):j},selectionColor:s.Colors.textMain,onFocus:function(){return"function"==typeof w?w(o):w},autofocus:u,activeLineWidth:1.5,textColor:s.Colors.black,baseColor:S?s.Colors.red:F,disabledLineType:"solid",editable:O,value:p,autoCorrect:!1,spellCheck:!1,prefix:(0,f.isValidString)(N)?(0,C.jsx)(a.default,{style:L.prefixContainer,children:(0,C.jsx)(y.default,{style:L.prefixTextStyle,screenName:t,id:o+" "+c.VIEW_ID.PREFIX,children:N})}):null},(0,d.setTestId)(t,o),e,{label:(0,C.jsx)(a.default,{style:L.labelContainer,children:(0,C.jsx)(y.default,{style:g?i.default.flatten([L.errorLabelTextStyle,null!=z?z:e.labelStyle]):i.default.flatten([L.labelTextStyle,e.labelStyle,V?{color:V}:{}]),screenName:t,id:o+" "+c.VIEW_ID.LABEL,children:r})}),error:g?(0,C.jsx)(y.default,{style:[L.errorFontStyle,{color:(0,f.isValidString)(g)?I:s.Colors.textMain}],screenName:t,id:o+" "+c.VIEW_ID.ERROR_MESSAGE,children:e.errorText}):null,errorNumberOfLines:h,errorColor:(0,f.isValidString)(g)?I:s.Colors.textMain,tintColor:null!=V?V:A,renderRightAccessory:J,style:i.default.flatten([T&&L.outlineWebStyle,L.textStyle,e.style]),underlineColor:e.dontShowUnderLine?s.Colors.transparent:s.Colors.borderColor,contentInset:R}))};O.propTypes={required:u.default.bool,selection:u.default.object,disabled:u.default.bool,fontSize:u.default.number,labelFontSize:u.default.number,label:u.default.string,value:u.default.string,onChangeText:u.default.func,isEditable:u.default.bool,keyboardType:u.default.string,returnKeyType:u.default.string,maxLength:u.default.number,error:u.default.any,errorColor:u.default.string,autoCapitalize:u.default.string},O.defaultProps={fontSize:(0,p.setFont)(14),labelFontSize:(0,p.setFont)(12),mandatoryColor:s.Colors.red,required:!1};var j=l.default.get("window").scale<=2,L=i.default.create({outlineWebStyle:{outlineStyle:"none",borderBottomColor:"transparent",width:"100%"},labelTextStyle:{fontFamily:c.FONT_FAMILY.REGULAR,color:s.Colors.black,fontSize:(0,p.setFont)(14)},errorLabelTextStyle:{fontFamily:c.FONT_FAMILY.REGULAR,color:s.Colors.red},textStyle:{fontFamily:c.FONT_FAMILY.REGULAR,fontSize:(0,p.setFont)(14),borderBottom:"none",color:s.Colors.black},labelContainer:{alignSelf:"baseline",flexDirection:"row"},errorFontStyle:{fontFamily:c.FONT_FAMILY.REGULAR},prefixContainer:{justifyContent:"center",alignItems:"center",alignSelf:"baseline",paddingBottom:g?24:0},prefixTextStyle:{alignSelf:"baseline",fontFamily:c.FONT_FAMILY.REGULAR,fontSize:(0,p.setFont)(14),color:s.Colors.black,textAlign:"center",paddingTop:h?j?6:5:0}});t.default=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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/T2SMUITextInput.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/T2SMUITextInput.js")}}()},61924:function(e,t,o){var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(o(32330));var n=r(o(73457)),l=o(64588),i=o(3541),a=r(o(17625)),u=r(o(76409)),s=o(598),c=o(85893),d=function(e){return(0,c.jsx)(u.default,Object.assign({textStyles:s.TextColorStyle,numberOfLines:e.numberOfLines,style:[f.style,e.style]},e,(0,i.setTestId)(e.screenName,e.id),{children:e.children}))},f=n.default.create({style:{fontFamily:l.FONT_FAMILY.REGULAR}});d.propTypes={screenName:a.default.string.isRequired,id:a.default.string.isRequired};t.default=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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/T2SStyledText.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CommonUI/T2SStyledText.js")}}()},8623:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_ID=t.BOGOFGradient=void 0;t.VIEW_ID={DISABLED:"QuickCheckoutSwipeButton_disabled",VISIBLE_TEXT:"QuickCheckoutSwipeButton_visibleText",SUCCESS_TEXT:"QuickCheckoutSwipeButton_successText"},t.BOGOFGradient={start:{x:1.2,y:0},end:{x:.75,y:0}};!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 r in o)if(Object.prototype.hasOwnProperty.call(o,r)){var n=void 0;try{n=o[r]}catch(e){continue}e.register(n,r,"/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CustomUI/QuickCheckoutSwipeButton/constants.js")}}else e.register(o,"module.exports","/codebuild/output/src2338/src/github.com/uktech/customer_app_2.0/T2SBaseModule/UI/CustomUI/QuickCheckoutSwipeButton/constants.js")}}()},90615:(e,t,o)=>{"use strict";function r(){}o.r(t),o.d(t,{default:()=>n});const n={exitApp:r,addEventListener:()=>({remove:r}),removeEventListener:r}}}]);