after resolved conflicts

This commit is contained in:
vignesh 2026-03-12 16:36:49 +05:30
parent 4bc0e4e3f0
commit 7d070a1ca1
3 changed files with 459 additions and 482 deletions

View File

@ -16,7 +16,7 @@ import BSBillingTable6 from '../../Components/BSBillingTables/BSBillingTable6/BS
import BSBillingTable7 from '../../Components/BSBillingTables/BSBillingTable7/BSBillingTable7Overall.jsx'; import BSBillingTable7 from '../../Components/BSBillingTables/BSBillingTable7/BSBillingTable7Overall.jsx';
import BSItemCard from '../../Components/BSItemCards/BSItemCard'; import BSItemCard from '../../Components/BSItemCards/BSItemCard';
import CategoryHorizontal from '../../Components/BSCategories/BSCategoryHorizontal'; import CategoryHorizontal from '../../Components/BSCategories/BSCategoryHorizontal';
import SubCategory from '../../Components/BSSubCategories/BSSubCategoryHorizontal'; import SubCategoryVertical from '../../Components/BSSubCategories/BSSubCategoryVertical';
import { dynamicComponentProps } from '../DynamicComponentProps.js'; import { dynamicComponentProps } from '../DynamicComponentProps.js';
import { import {
SelectedGlobalLayoutColorDetail, SelectedGlobalLayoutColorDetail,
@ -147,6 +147,7 @@ const BSLayout1 = () => {
const BookingBilling = BSLayout1Data?.BookingBilling?.[0]; const BookingBilling = BSLayout1Data?.BookingBilling?.[0];
const [messageType, setMessageType] = useState(null); const [messageType, setMessageType] = useState(null);
const [messageData, setMessageData] = useState(null); const [messageData, setMessageData] = useState(null);
const [connectingState, setConnectingState] = useState({});
// const [AppExpDate, setAppExpDate] = useState(0); // const [AppExpDate, setAppExpDate] = useState(0);
const [screenHeight, setScreenHeight] = useState(window.innerHeight); const [screenHeight, setScreenHeight] = useState(window.innerHeight);
const [Kioskopen, setKioskopen] = useState(false); const [Kioskopen, setKioskopen] = useState(false);
@ -338,19 +339,20 @@ const BSLayout1 = () => {
style={{ height: containerHeight, overflow: 'hidden' }} style={{ height: containerHeight, overflow: 'hidden' }}
> >
<div className="BSLayout1-NavBar"> <div className="BSLayout1-NavBar">
{BookingNavbar == 'Navbar1' && <BSNavbar1 />} <BSNavbar1
{BookingNavbar == 'Navbar2' && <BSNavbar2 />} BookingNavbar={BookingNavbar}
{BookingNavbar == 'Navbar3' && <BSNavbar3 />} connectingState={connectingState}
setConnectingState={setConnectingState}
/>
</div> </div>
<div <div
className={ className={
BookingNavbar != 'Navbar3' ? 'BSLayout1Main' : 'BSLayout1Standard' BookingNavbar != 'Navbar3' ? 'BSLayout1' : 'BSLayout1Standard'
} }
style={{ style={{
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor, backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
}} }}
> >
{BookingNavbar != 'Navbar3' ? (
<div <div
className="Layout-bill-container" className="Layout-bill-container"
style={{ marginTop: '12px' }} style={{ marginTop: '12px' }}
@ -386,6 +388,7 @@ const BSLayout1 = () => {
<SalesCountComponent <SalesCountComponent
DineInAccess={DineInAccess} DineInAccess={DineInAccess}
GlobalsalesDetailData={GlobalsalesDetailData} GlobalsalesDetailData={GlobalsalesDetailData}
BookingNavbar={BookingNavbar}
/> />
)} )}
{SessionData?.FeatureAddonData?.FeatureDtls?.find( {SessionData?.FeatureAddonData?.FeatureDtls?.find(
@ -498,10 +501,7 @@ const BSLayout1 = () => {
)} )}
</div> </div>
<div style={{ marginLeft: '10px' }}> <div style={{ marginLeft: '10px' }}>
<TooltipWrapper <TooltipWrapper title={'E-way Bill'} isMobile={isMobile}>
title={'E-way Bill'}
isMobile={isMobile}
>
{''} {''}
<BSEwayBillicon <BSEwayBillicon
style={{ cursor: 'pointer', marginTop: '5px' }} style={{ cursor: 'pointer', marginTop: '5px' }}
@ -513,15 +513,9 @@ const BSLayout1 = () => {
)} )}
</div> </div>
</div> </div>
) : (
<SalesCountForStandard <div className="BSLayout1-ContentDiv">
PricingAppPricingName={PricingAppPricingName} <div className="BSCategory1-Contentcont">
DineInAccess={DineInAccess}
GlobalsalesDetailData={GlobalsalesDetailData}
/>
)}
<div className="BSLayout1Master">
<div className="BSCategoryCardDiv">
<div <div
style={{ style={{
backgroundColor: backgroundColor:
@ -549,17 +543,14 @@ const BSLayout1 = () => {
</div> </div>
<div className="BSCategory1-Cardcont"> <div className="BSCategory1-Cardcont">
{
<div <div
style={{ style={{
backgroundColor: backgroundColor:
SelectedSubCatgColor?.['OverallBackgroundColor'], SelectedSubCatgColor?.['OverallBackgroundColor'],
display: BookingSubCategory ? 'block' : 'none',
}} }}
> >
{Comboglobal === false && !OtherServicesglobal && ( {Comboglobal === false && !OtherServicesglobal && (
<SubCategory <SubCategoryVertical
subCategoryType={'vertical'}
categoryFunction={dynamicComponentProps( categoryFunction={dynamicComponentProps(
'SubCategory', 'SubCategory',
BSLayout1Data?.BookingSubCategory?.[1], BSLayout1Data?.BookingSubCategory?.[1],
@ -568,7 +559,6 @@ const BSLayout1 = () => {
/> />
)} )}
</div> </div>
}
<div <div
className="layout1-card-content" className="layout1-card-content"
@ -592,6 +582,8 @@ const BSLayout1 = () => {
/> />
) : ( ) : (
<BSItemCard <BSItemCard
connectingState={connectingState}
setConnectingState={setConnectingState}
screenHeight={screenHeight} screenHeight={screenHeight}
cardFunctionality={dynamicComponentProps( cardFunctionality={dynamicComponentProps(
'Card', 'Card',

View File

@ -6,8 +6,8 @@ import { isMobile } from 'react-device-detect';
import BookingCloseIcon from '../../Components/UtillComponents/BookingCloseIcon.jsx'; import BookingCloseIcon from '../../Components/UtillComponents/BookingCloseIcon.jsx';
const BSNavbar1 = lazy(() => import('../../Components/BSNavbar/BSNavbar1')); const BSNavbar1 = lazy(() => import('../../Components/BSNavbar/BSNavbar1'));
const BSNavbar2 = lazy(() => import('../../Components/BSNavbar/BSNavbar2')); const BSNavbar2 = lazy(() => import('../../Components/BSNavbar/BSNavbar2'));
const CategoryHorizontal = lazy( const CategoryVertical = lazy(
() => import('../../Components/BSCategories/BSCategoryHorizontal') () => import('../../Components/BSCategories/BSCategoryVertical')
); );
const BSItemCard = lazy( const BSItemCard = lazy(
() => import('../../Components/BSItemCards/BSItemCard') () => import('../../Components/BSItemCards/BSItemCard')
@ -170,6 +170,7 @@ const BSLayout4 = () => {
); );
// const [AppExpDate, setAppExpDate] = useState(0); // const [AppExpDate, setAppExpDate] = useState(0);
const [Kioskopen, setKioskopen] = useState(false); const [Kioskopen, setKioskopen] = useState(false);
const [connectingState, setConnectingState] = useState({});
const BookingStatus = useSelector(GlobalBookingStatus); const BookingStatus = useSelector(GlobalBookingStatus);
const CheckBookingStatus = const CheckBookingStatus =
BookingStatus?.find((item) => item.ScreenType === 'Booking') BookingStatus?.find((item) => item.ScreenType === 'Booking')
@ -179,7 +180,7 @@ const BSLayout4 = () => {
const BookingCategory = BSLayout4Data?.BookingCategory; const BookingCategory = BSLayout4Data?.BookingCategory;
const BookingCard = BSLayout4Data?.BookingCard; const BookingCard = BSLayout4Data?.BookingCard;
const BookingBilling = BSLayout4Data?.BookingBilling?.[0]; const BookingBilling = BSLayout4Data?.BookingBilling?.[0];
console.log('BSLayout4Data', BookingCategory); console.log('BSLayout4Data', BookingBilling);
const DineInAccess = SettingDataSelector?.[0]?.SettingDtlDetails.filter( const DineInAccess = SettingDataSelector?.[0]?.SettingDtlDetails.filter(
(i) => i.SettingIdName === 'DineIn' (i) => i.SettingIdName === 'DineIn'
)?.[0]; )?.[0];
@ -337,11 +338,13 @@ const BSLayout4 = () => {
style={{ height: containerHeight, overflow: 'hidden' }} style={{ height: containerHeight, overflow: 'hidden' }}
> >
<div className="Bslayout4_navbar"> <div className="Bslayout4_navbar">
{BookingNavbar == 'Navbar1' && <BSNavbar1 />} <BSNavbar1
{BookingNavbar == 'Navbar2' && <BSNavbar2 />} connectingState={connectingState}
{BookingNavbar == 'Navbar3' && <BSNavbar3 />} setConnectingState={setConnectingState}
BookingNavbar={BookingNavbar}
/>
</div> </div>
{BookingNavbar != 'Navbar3' ? (
<div className="Layout-bill-container" style={{ margin: '0' }}> <div className="Layout-bill-container" style={{ margin: '0' }}>
<div <div
className="Layout-bill-Subcontainer" className="Layout-bill-Subcontainer"
@ -358,6 +361,7 @@ const BSLayout4 = () => {
<SalesCountComponent <SalesCountComponent
DineInAccess={DineInAccess} DineInAccess={DineInAccess}
GlobalsalesDetailData={GlobalsalesDetailData} GlobalsalesDetailData={GlobalsalesDetailData}
BookingNavbar={BookingNavbar}
/> />
)} )}
{!OtherServicesglobal && {!OtherServicesglobal &&
@ -373,11 +377,7 @@ const BSLayout4 = () => {
}} }}
> >
<Tooltip title={'Kiosk Sales'}> <Tooltip title={'Kiosk Sales'}>
<Badge <Badge count={badgeCount} offset={[-10, 3]} size="small">
count={badgeCount}
offset={[-10, 3]}
size="small"
>
<PozoKioskIcon <PozoKioskIcon
onClick={() => openModalKiosk()} onClick={() => openModalKiosk()}
style={{ cursor: 'pointer', fontSize: '1.5rem' }} style={{ cursor: 'pointer', fontSize: '1.5rem' }}
@ -388,10 +388,7 @@ const BSLayout4 = () => {
</div> </div>
)} )}
{!OtherServicesglobal && ( {!OtherServicesglobal && (
<TooltipWrapper <TooltipWrapper title={'Low Stock Alerts'} isMobile={isMobile}>
title={'Low Stock Alerts'}
isMobile={isMobile}
>
{' '} {' '}
<BSExpireProductsList /> <BSExpireProductsList />
</TooltipWrapper> </TooltipWrapper>
@ -402,8 +399,7 @@ const BSLayout4 = () => {
closeKioskModal={closeModalKiosk} closeKioskModal={closeModalKiosk}
/> />
)} )}
{SAdminuserPin?.length > 0 && {SAdminuserPin?.length > 0 && UserType != 'Super Admin User' && (
UserType != 'Super Admin User' && (
<div> <div>
<SAdminUserNotification <SAdminUserNotification
SAdminuserPin={SAdminuserPin} SAdminuserPin={SAdminuserPin}
@ -416,10 +412,7 @@ const BSLayout4 = () => {
{CheckBookingStatus == 'Open' ? ( {CheckBookingStatus == 'Open' ? (
!OtherServicesglobal && ( !OtherServicesglobal && (
<div style={{ marginLeft: '10px' }}> <div style={{ marginLeft: '10px' }}>
<TooltipWrapper <TooltipWrapper title={'Booking Close'} isMobile={isMobile}>
title={'Booking Close'}
isMobile={isMobile}
>
{' '} {' '}
<BookingCloseIcon <BookingCloseIcon
onClick={OpenBookingModal} onClick={OpenBookingModal}
@ -431,6 +424,8 @@ const BSLayout4 = () => {
cursor: 'pointer', cursor: 'pointer',
}} }}
/> />
{/* <button className="BookingCloseButton"
>Booking Close</button> */}
</TooltipWrapper> </TooltipWrapper>
</div> </div>
) )
@ -473,27 +468,14 @@ const BSLayout4 = () => {
)} )}
</div> </div>
</div> </div>
) : (
<SalesCountForStandard
PricingAppPricingName={PricingAppPricingName}
DineInAccess={DineInAccess}
GlobalsalesDetailData={GlobalsalesDetailData}
/>
)}
<div <div
className="Bslayout4_overall" className="Bslayout4_overall"
style={{ style={{
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor, backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
}} }}
> >
{/* <div className="BSlayout_subdiv"> */} <div className="BSlayout_subdiv">
<div
className={
BookingCategory?.[0] === 'Category5'
? 'bslayout4Cat5Flex'
: 'BSlayout_subdiv'
}
>
<div <div
className="Bslayout4_ctg" className="Bslayout4_ctg"
style={{ style={{
@ -502,13 +484,12 @@ const BSLayout4 = () => {
}} }}
> >
{!OtherServicesglobal && ( {!OtherServicesglobal && (
<CategoryHorizontal <CategoryVertical
categoryFunction={dynamicComponentProps( categoryFunction={dynamicComponentProps(
'Category', 'Category',
BookingCategory?.[1], BookingCategory?.[1],
BookingCategory?.[0] BookingCategory?.[0]
)} )}
categoryType={'vertical'}
/> />
)} )}
{OtherServicesglobal && ( {OtherServicesglobal && (
@ -532,6 +513,8 @@ const BSLayout4 = () => {
> >
{!OtherServicesglobal && Comboglobal === false && ( {!OtherServicesglobal && Comboglobal === false && (
<BSItemCard <BSItemCard
connectingState={connectingState}
setConnectingState={setConnectingState}
cardFunctionality={dynamicComponentProps( cardFunctionality={dynamicComponentProps(
'Card', 'Card',
BookingCard?.[1], BookingCard?.[1],

View File

@ -38,9 +38,7 @@ const BSBillingTable7 = lazy(
import('../../Components/BSBillingTables/BSBillingTable7/BSBillingTable7Overall.jsx') import('../../Components/BSBillingTables/BSBillingTable7/BSBillingTable7Overall.jsx')
); );
import BSItemCard from '../../Components/BSItemCards/BSItemCard'; import BSItemCard from '../../Components/BSItemCards/BSItemCard';
const CategoryHorizontal = lazy( import CategoryVertical from '../../Components/BSCategories/BSCategoryVertical';
() => import('../../Components/BSCategories/BSCategoryHorizontal')
);
import { dynamicComponentProps } from '../DynamicComponentProps.js'; import { dynamicComponentProps } from '../DynamicComponentProps.js';
import { import {
GlobalPricingAppPricingName, GlobalPricingAppPricingName,
@ -138,6 +136,7 @@ const BSLayout5 = () => {
// const [AppExpDate, setAppExpDate] = useState(0); // const [AppExpDate, setAppExpDate] = useState(0);
const [screenHeight, setScreenHeight] = useState(window.innerHeight); const [screenHeight, setScreenHeight] = useState(window.innerHeight);
const [Kioskopen, setKioskopen] = useState(false); const [Kioskopen, setKioskopen] = useState(false);
const [connectingState, setConnectingState] = useState({});
const PricingAppPricingName = useSelector(GlobalPricingAppPricingName); const PricingAppPricingName = useSelector(GlobalPricingAppPricingName);
const SAdminuserPin = useSelector(GLobalSadminUserPin); const SAdminuserPin = useSelector(GLobalSadminUserPin);
const BookingNavbar = BSLayout5Data?.BookingNavbar?.[0]; const BookingNavbar = BSLayout5Data?.BookingNavbar?.[0];
@ -327,9 +326,11 @@ const BSLayout5 = () => {
style={{ height: containerHeight, overflow: 'hidden' }} style={{ height: containerHeight, overflow: 'hidden' }}
> >
<div className="BSLayout5-NavBar"> <div className="BSLayout5-NavBar">
{BSLayout5Data?.BookingNavbar?.[0] == 'Navbar1' && <BSNavbar1 />} <BSNavbar1
{BSLayout5Data?.BookingNavbar?.[0] == 'Navbar2' && <BSNavbar2 />} BookingNavbar={BookingNavbar}
{BSLayout5Data?.BookingNavbar?.[0] == 'Navbar3' && <BSNavbar3 />} connectingState={connectingState}
setConnectingState={setConnectingState}
/>
</div> </div>
<div <div
@ -338,7 +339,6 @@ const BSLayout5 = () => {
backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor, backgroundColor: GlobalLayoutColorDetail?.OverallBackgroundColor,
}} }}
> >
{BookingNavbar != 'Navbar3' ? (
<div className="Layout-bill-container"> <div className="Layout-bill-container">
<div <div
className="Layout-bill-Subcontainer" className="Layout-bill-Subcontainer"
@ -355,6 +355,7 @@ const BSLayout5 = () => {
<SalesCountComponent <SalesCountComponent
DineInAccess={DineInAccess} DineInAccess={DineInAccess}
GlobalsalesDetailData={GlobalsalesDetailData} GlobalsalesDetailData={GlobalsalesDetailData}
BookingNavbar={BookingNavbar}
/> />
)} )}
@ -432,6 +433,8 @@ const BSLayout5 = () => {
cursor: 'pointer', cursor: 'pointer',
}} }}
/> />
{/* <button className="BookingCloseButton"
>Booking Close</button> */}
</TooltipWrapper> </TooltipWrapper>
</div> </div>
) : ( ) : (
@ -478,13 +481,6 @@ const BSLayout5 = () => {
)} )}
</div> </div>
</div> </div>
) : (
<SalesCountForStandard
PricingAppPricingName={PricingAppPricingName}
DineInAccess={DineInAccess}
GlobalsalesDetailData={GlobalsalesDetailData}
/>
)}
<div className="BsLayout5-ContentDiv"> <div className="BsLayout5-ContentDiv">
<div className="BSCategory5-tablecont"> <div className="BSCategory5-tablecont">
@ -507,15 +503,20 @@ const BSLayout5 = () => {
)} )}
</> </>
)} )}
{/* <div
className="salesStoreName"
style={{
color: SelectedBillColor?.['FontColor'],
backgroundColor: SelectedBillColor?.['BackgroundColor'],
}}
>
<BranchName />
</div> */}
</div> </div>
{/* <div className="BSCategory5-Contentcont"> */}
<div <div
className={ className="BSCategory5-Contentcont"
BookingCategory?.[0] === 'Category5' style={{ width: '100vw' }}
? 'BSlayout5Cat5Flex'
: 'BSCategory5-Contentcont'
}
> >
<div <div
style={{ style={{
@ -524,13 +525,12 @@ const BSLayout5 = () => {
}} }}
> >
{!OtherServicesglobal && ( {!OtherServicesglobal && (
<CategoryHorizontal <CategoryVertical
categoryFunction={dynamicComponentProps( categoryFunction={dynamicComponentProps(
'Category', 'Category',
BookingCategory?.[1], BookingCategory?.[1],
BookingCategory?.[0] BookingCategory?.[0]
)} )}
categoryType={'vertical'}
/> />
)} )}
{OtherServicesglobal && ( {OtherServicesglobal && (
@ -555,6 +555,8 @@ const BSLayout5 = () => {
> >
{!OtherServicesglobal && Comboglobal === false && ( {!OtherServicesglobal && Comboglobal === false && (
<BSItemCard <BSItemCard
connectingState={connectingState}
setConnectingState={setConnectingState}
cardFunctionality={dynamicComponentProps( cardFunctionality={dynamicComponentProps(
'Card', 'Card',
BookingCard?.[1], BookingCard?.[1],