From 7d070a1ca1df016046080da7a716d9570bf1209b Mon Sep 17 00:00:00 2001 From: vignesh Date: Thu, 12 Mar 2026 16:36:49 +0530 Subject: [PATCH] after resolved conflicts --- .../Template/BSLayout1/BSLayout1.jsx | 362 +++++++++--------- .../Template/BSLayout4/BSLayout4.jsx | 267 ++++++------- .../Template/BSLayout5/BSLayout5.jsx | 312 +++++++-------- 3 files changed, 459 insertions(+), 482 deletions(-) diff --git a/src/Pages/BookingScreen/Template/BSLayout1/BSLayout1.jsx b/src/Pages/BookingScreen/Template/BSLayout1/BSLayout1.jsx index c03c917..ef79dd1 100644 --- a/src/Pages/BookingScreen/Template/BSLayout1/BSLayout1.jsx +++ b/src/Pages/BookingScreen/Template/BSLayout1/BSLayout1.jsx @@ -16,7 +16,7 @@ import BSBillingTable6 from '../../Components/BSBillingTables/BSBillingTable6/BS import BSBillingTable7 from '../../Components/BSBillingTables/BSBillingTable7/BSBillingTable7Overall.jsx'; import BSItemCard from '../../Components/BSItemCards/BSItemCard'; import CategoryHorizontal from '../../Components/BSCategories/BSCategoryHorizontal'; -import SubCategory from '../../Components/BSSubCategories/BSSubCategoryHorizontal'; +import SubCategoryVertical from '../../Components/BSSubCategories/BSSubCategoryVertical'; import { dynamicComponentProps } from '../DynamicComponentProps.js'; import { SelectedGlobalLayoutColorDetail, @@ -147,6 +147,7 @@ const BSLayout1 = () => { const BookingBilling = BSLayout1Data?.BookingBilling?.[0]; const [messageType, setMessageType] = useState(null); const [messageData, setMessageData] = useState(null); + const [connectingState, setConnectingState] = useState({}); // const [AppExpDate, setAppExpDate] = useState(0); const [screenHeight, setScreenHeight] = useState(window.innerHeight); const [Kioskopen, setKioskopen] = useState(false); @@ -338,190 +339,183 @@ const BSLayout1 = () => { style={{ height: containerHeight, overflow: 'hidden' }} >
- {BookingNavbar == 'Navbar1' && } - {BookingNavbar == 'Navbar2' && } - {BookingNavbar == 'Navbar3' && } +
- {BookingNavbar != 'Navbar3' ? ( +
-
- {UserType !== 'Employee' && ( -
- {PricingAppPricingName?.[0]?.PricingName + - ' / ' + - PricingAppPricingName?.[0]?.Type} -
- )} - {AvailableDate && ( + {UserType !== 'Employee' && ( +
+ {PricingAppPricingName?.[0]?.PricingName + + ' / ' + + PricingAppPricingName?.[0]?.Type} +
+ )} + {AvailableDate && ( +
+ setSelectedDate(date)} + /> +
+ )} + {!OtherServicesglobal && ( + + )} + {SessionData?.FeatureAddonData?.FeatureDtls?.find( + (item) => + item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' + ) && + !sportsAppPreference && (
0 ? 'none' : 'auto', + opacity: OrderStatus > 0 ? 0.5 : 1, }} > - setSelectedDate(date)} + {!OtherServicesglobal && ( + + + openModalKiosk()} + style={{ + cursor: 'pointer', + fontSize: '1.5rem', + }} + className="iconsize" + /> + + + )} +
+ )} + {!OtherServicesglobal && ( + + {' '} + + + )} + {Kioskopen && ( + + )} + {SAdminuserPin?.length > 0 && + UserType != 'Super Admin User' && ( +
+
)} - {!OtherServicesglobal && ( - - )} - {SessionData?.FeatureAddonData?.FeatureDtls?.find( - (item) => - item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' - ) && - !sportsAppPreference && ( -
0 ? 'none' : 'auto', - opacity: OrderStatus > 0 ? 0.5 : 1, - }} - > - {!OtherServicesglobal && ( - - - openModalKiosk()} - style={{ - cursor: 'pointer', - fontSize: '1.5rem', - }} - className="iconsize" - /> - - - )} -
- )} - {!OtherServicesglobal && ( - - {' '} - - - )} - {Kioskopen && ( - - )} - {SAdminuserPin?.length > 0 && - UserType != 'Super Admin User' && ( -
- -
- )} - {!OtherServicesglobal && ( - <> -
- {CheckBookingStatus == 'Open' ? ( -
- - {' '} - - -
- ) : ( -
- +
+ {CheckBookingStatus == 'Open' ? ( +
+ + {' '} + + +
+ ) : ( +
+ + BookingOpenFun('Open')} > - BookingOpenFun('Open')} - > - - - - - -
- )} -
-
- - {''} - - -
- - )} -
+ + + + + +
+ )} +
+
+ + {''} + + +
+ + )}
- ) : ( - - )} -
-
+
+ +
+
{
- { -
- {Comboglobal === false && !OtherServicesglobal && ( - - )} -
- } +
+ {Comboglobal === false && !OtherServicesglobal && ( + + )} +
{ /> ) : ( import('../../Components/BSNavbar/BSNavbar1')); const BSNavbar2 = lazy(() => import('../../Components/BSNavbar/BSNavbar2')); -const CategoryHorizontal = lazy( - () => import('../../Components/BSCategories/BSCategoryHorizontal') +const CategoryVertical = lazy( + () => import('../../Components/BSCategories/BSCategoryVertical') ); const BSItemCard = lazy( () => import('../../Components/BSItemCards/BSItemCard') @@ -170,6 +170,7 @@ const BSLayout4 = () => { ); // const [AppExpDate, setAppExpDate] = useState(0); const [Kioskopen, setKioskopen] = useState(false); + const [connectingState, setConnectingState] = useState({}); const BookingStatus = useSelector(GlobalBookingStatus); const CheckBookingStatus = BookingStatus?.find((item) => item.ScreenType === 'Booking') @@ -179,7 +180,7 @@ const BSLayout4 = () => { const BookingCategory = BSLayout4Data?.BookingCategory; const BookingCard = BSLayout4Data?.BookingCard; const BookingBilling = BSLayout4Data?.BookingBilling?.[0]; - console.log('BSLayout4Data', BookingCategory); + console.log('BSLayout4Data', BookingBilling); const DineInAccess = SettingDataSelector?.[0]?.SettingDtlDetails.filter( (i) => i.SettingIdName === 'DineIn' )?.[0]; @@ -337,93 +338,111 @@ const BSLayout4 = () => { style={{ height: containerHeight, overflow: 'hidden' }} >
- {BookingNavbar == 'Navbar1' && } - {BookingNavbar == 'Navbar2' && } - {BookingNavbar == 'Navbar3' && } +
- {BookingNavbar != 'Navbar3' ? ( -
-
- {UserType !== 'Employee' && ( -
- {PricingAppPricingName?.[0]?.PricingName + - ' / ' + - PricingAppPricingName?.[0]?.Type} + +
+
+ {UserType !== 'Employee' && ( +
+ {PricingAppPricingName?.[0]?.PricingName + + ' / ' + + PricingAppPricingName?.[0]?.Type} +
+ )} + {!OtherServicesglobal && ( + + )} + {!OtherServicesglobal && + SessionData?.FeatureAddonData?.FeatureDtls?.find( + (item) => + item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' + ) && + !sportsAppPreference && ( +
0 ? 'none' : 'auto', + opacity: OrderStatus > 0 ? 0.5 : 1, + }} + > + + + openModalKiosk()} + style={{ cursor: 'pointer', fontSize: '1.5rem' }} + className="iconsize" + /> + +
)} - {!OtherServicesglobal && ( - + {' '} + + + )} + {!OtherServicesglobal && Kioskopen && ( + + )} + {SAdminuserPin?.length > 0 && UserType != 'Super Admin User' && ( +
+ - )} - {!OtherServicesglobal && - SessionData?.FeatureAddonData?.FeatureDtls?.find( - (item) => - item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' - ) && - !sportsAppPreference && ( -
0 ? 'none' : 'auto', - opacity: OrderStatus > 0 ? 0.5 : 1, - }} - > - - - openModalKiosk()} - style={{ cursor: 'pointer', fontSize: '1.5rem' }} - className="iconsize" - /> - - -
- )} - {!OtherServicesglobal && ( - - {' '} - - - )} - {!OtherServicesglobal && Kioskopen && ( - - )} - {SAdminuserPin?.length > 0 && - UserType != 'Super Admin User' && ( -
- + )} + {CheckBookingStatus == 'Open' ? ( + !OtherServicesglobal && ( +
+ + {' '} + -
- )} - {CheckBookingStatus == 'Open' ? ( - !OtherServicesglobal && ( -
- - {' '} + {/* */} + +
+ ) + ) : ( +
+ + BookingOpenFun('Open')} + > + { cursor: 'pointer', }} /> - -
- ) - ) : ( -
- - BookingOpenFun('Open')} - > - - - - - -
- )} - {!OtherServicesglobal && ( -
- - {''} - - -
- )} -
+ + + +
+ )} + {!OtherServicesglobal && ( +
+ + {''} + + +
+ )}
- ) : ( - - )} +
+
- {/*
*/} -
+
{ }} > {!OtherServicesglobal && ( - )} {OtherServicesglobal && ( @@ -532,6 +513,8 @@ const BSLayout4 = () => { > {!OtherServicesglobal && Comboglobal === false && ( import('../../Components/BSCategories/BSCategoryHorizontal') -); +import CategoryVertical from '../../Components/BSCategories/BSCategoryVertical'; import { dynamicComponentProps } from '../DynamicComponentProps.js'; import { GlobalPricingAppPricingName, @@ -138,6 +136,7 @@ const BSLayout5 = () => { // const [AppExpDate, setAppExpDate] = useState(0); const [screenHeight, setScreenHeight] = useState(window.innerHeight); const [Kioskopen, setKioskopen] = useState(false); + const [connectingState, setConnectingState] = useState({}); const PricingAppPricingName = useSelector(GlobalPricingAppPricingName); const SAdminuserPin = useSelector(GLobalSadminUserPin); const BookingNavbar = BSLayout5Data?.BookingNavbar?.[0]; @@ -327,9 +326,11 @@ const BSLayout5 = () => { style={{ height: containerHeight, overflow: 'hidden' }} >
- {BSLayout5Data?.BookingNavbar?.[0] == 'Navbar1' && } - {BSLayout5Data?.BookingNavbar?.[0] == 'Navbar2' && } - {BSLayout5Data?.BookingNavbar?.[0] == 'Navbar3' && } +
{ backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor, }} > - {BookingNavbar != 'Navbar3' ? ( -
-
- {UserType !== 'Employee' && ( -
- {PricingAppPricingName?.[0]?.PricingName + - ' / ' + - PricingAppPricingName?.[0]?.Type} -
- )} - {!OtherServicesglobal && ( - - )} +
+
+ {UserType !== 'Employee' && ( +
+ {PricingAppPricingName?.[0]?.PricingName + + ' / ' + + PricingAppPricingName?.[0]?.Type} +
+ )} + {!OtherServicesglobal && ( + + )} - {!OtherServicesglobal && - SessionData?.FeatureAddonData?.FeatureDtls?.find( - (item) => - item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' - ) && - !sportsAppPreference && ( -
0 ? 'none' : 'auto', - opacity: OrderStatus > 0 ? 0.5 : 1, - }} - > - - {''} - - openModalKiosk()} - style={{ cursor: 'pointer', fontSize: '1.5rem' }} - className="iconsize" - /> - - -
- )} - {!OtherServicesglobal && ( - + item?.FeatureAddonName?.toLowerCase() === 'kiosk sales' + ) && + !sportsAppPreference && ( +
0 ? 'none' : 'auto', + opacity: OrderStatus > 0 ? 0.5 : 1, + }} > - {' '} - - - )} - {!OtherServicesglobal && Kioskopen && ( - - )} - {SAdminuserPin?.length > 0 && - UserType != 'Super Admin User' && ( -
- -
- )} - {!OtherServicesglobal && ( - <> - {' '} - {CheckBookingStatus == 'Open' ? ( -
- - {' '} - - -
- ) : ( -
- - BookingOpenFun('Open')} - > - - - - - -
- )} - - )} - {!OtherServicesglobal && ( -
- + {''} - - + + openModalKiosk()} + style={{ cursor: 'pointer', fontSize: '1.5rem' }} + className="iconsize" + /> + +
)} -
+ {!OtherServicesglobal && ( + + {' '} + + + )} + {!OtherServicesglobal && Kioskopen && ( + + )} + {SAdminuserPin?.length > 0 && + UserType != 'Super Admin User' && ( +
+ +
+ )} + {!OtherServicesglobal && ( + <> + {' '} + {CheckBookingStatus == 'Open' ? ( +
+ + {' '} + + {/* */} + +
+ ) : ( +
+ + BookingOpenFun('Open')} + > + + + + + +
+ )} + + )} + {!OtherServicesglobal && ( +
+ + {''} + + +
+ )}
- ) : ( - - )} +
@@ -507,15 +503,20 @@ const BSLayout5 = () => { )} )} + {/*
+ +
*/}
- {/*
*/}
{ }} > {!OtherServicesglobal && ( - )} {OtherServicesglobal && ( @@ -555,6 +555,8 @@ const BSLayout5 = () => { > {!OtherServicesglobal && Comboglobal === false && (