{"version":3,"sources":["components/PageHeading.js","config/Constants.js","config/Routes.js","config/Actions.js","redux/language/language.slice.js","redux/settings/settingReducer.js","redux/shipping-methods/shipping-reducer.js","redux/auth/logout/logout.js","redux/loader/loader.js","redux/user/userReducer.js","redux/app/appUpdate.js","redux/settings/ErrorReducer.js","redux/Non-persist/Non-persist.js","redux/packages/packages.js","redux/Logistic/Logistic.js","redux/error/reducer.js","redux/menu/menu-reducer.js","utils/Utils.js","utils/SubscriptionUtils.js","utils/TrackingEvents.js","utils/TrackingUtils.js","utils/storeConstants.js","utils/StoreUtils.js","utils/Order.js","api/api/axiosSetup.js","redux/Api.Slice.js","api/api/apiUrls.js","i18n.js","redux/settings/settingsSlice.js","api/api/errorHandler.js","redux/shipping-methods/shipping-service.js","redux/slices.js","redux/store.js","api/api/index.js","components/RadioButton.js","components/Card.js","components/Modal.js","svg/SVGs.js","features/dashboard/components/AddStoreModel.js","hooks/useUserType.js","store/reducers/CatelogueReducer.js","store/contexts/Catelouge.js","hooks/useCatalogue.js","features/dashboard/components/DashboardBranchesTable.js","features/dashboard/components/DashboardCard.js","features/dashboard/container/dashboard.js","components/SectionHeading.js","components/TextInput.js","components/TextArea.js","components/PhoneNumberInput.js","components/SelectInput.js","features/store/timezone.js","components/SelectMultiLingualInput.js","features/store/components/StoreInfoSection.js","features/shipping_methods/helpers.js","components/GoogleMap.js","features/store/components/StoreMapSection.js","features/store/components/StorePaymentMethodSection.js","components/RadioButtonStoreTime.js","features/store/components/DayRow.js","features/store/components/StoreHoursSection.js","features/store/components/constants.js","features/store/components/PreOrder.js","features/store/components/PreOrderingWidgetForDelivery.js","features/store/components/OrderManagement.js","features/store/hooks/useDeliveryFeeWaiveoff.js","features/store/components/DeliveryChargesWaveOff.js","features/store/components/Delivery.js","features/store/components/PickupHoursSection.js","components/SimpleRadioButton.js","features/store/components/PreOrderingWidgetForPickup.js","features/store/components/Pickup.js","features/store/components/DineInHoursSection.js","features/store/components/DineIn.js","features/store/components/UpdateStoreComponent.js","hooks/usePushBack.js","features/store/containers/updateStore.js","features/store/components/AddStoreComponent.js","features/store/containers/addStore.js","features/shipping_methods/common/Search.js","components/useForm/PriceInput.js","features/shipping_methods/areas/components/AreasList.js","features/shipping_methods/common/ShowCityListButton.js","features/shipping_methods/areas/components/CitiesList.js","features/shipping_methods/common/ChooseTime.js","features/shipping_methods/modals/AddNewAreas.js","features/shipping_methods/common/DeleteAreasModal.js","features/shipping_methods/modals/DeleteArea.js","features/shipping_methods/common/UpdateAreaModal.js","features/shipping_methods/modals/UpdateAreas.js","hooks/useCurrentUserStores.js","components/BackButton.js","features/icons/PlusIcon.js","features/shipping_methods/common/RenderTime.js","features/shipping_methods/areas/components/AeasTable.js","features/shipping_methods/areas/containers/ManageAreas.js","features/store/containers/storeList.js","features/orders/components/OrderTabs.js","redux/Logistic/LogisticService.js","components/RefundOrderForm.js","features/orders/components/DeliveyFeeInfo.js","features/orders/components/TableItemsDetail.js","features/orderdetail/talabat/DeliveryPartner.js","features/orderdetail/talabat/CheckDeliveryFee.js","features/orderdetail/talabat/Table.js","features/orderdetail/talabat/CancelOrder.js","features/orderdetail/talabat/DeliveryService.js","features/orderdetail/talabat/Talabat.js","features/orderdetail/Modals/CheckDeliveryModal.js","logistic-integrations/components/Button.js","logistic-integrations/yandex/components/ConfirmClaim.js","logistic-integrations/yandex/components/CreateClaim.js","logistic-integrations/yandex/components/ClaimInfo.js","logistic-integrations/yandex/components/CancelClaim.js","logistic-integrations/components/Tabs.js","logistic-integrations/yandex/components/YangoSupport.js","logistic-integrations/yandex/components/Tabs.js","logistic-integrations/yandex/Yandex.js","redux/Logistic/CareemService.js","logistic-integrations/careem-now/components/CreateClaim.js","logistic-integrations/careem-now/components/ClaimInfoTable.js","logistic-integrations/careem-now/components/ClaimInfo.js","logistic-integrations/careem-now/components/CancelClaim.js","logistic-integrations/components/Support.js","logistic-integrations/careem-now/components/CareemSupport.js","logistic-integrations/careem-now/components/Tabs.js","logistic-integrations/components/HomeTab.js","logistic-integrations/careem-now/CareemNow.js","logistic-integrations/delivery-zone/components/CreateClaim.js","logistic-integrations/delivery-zone/components/ClaimInfoTable.js","logistic-integrations/delivery-zone/components/ClaimInfo.js","logistic-integrations/delivery-zone/components/DZSupport.js","logistic-integrations/delivery-zone/useGetORderInfo.js","logistic-integrations/delivery-zone/components/Tabs.js","logistic-integrations/delivery-zone/DeliveryZone.js","logistic-integrations/context.js","logistic-integrations/lyve-global/service.js","logistic-integrations/lyve-global/containers/CreateOrder.js","logistic-integrations/lyve-global/components/ClaimInfoTable.js","logistic-integrations/lyve-global/containers/TrackOrder.js","logistic-integrations/lyve-global/containers/CancelORder.js","logistic-integrations/lyve-global/useLyveGlobalGetORderInfo.js","logistic-integrations/lyve-global/index.js","logistic-integrations/constants.js","logistic-integrations/LogisticModalSelector.js","logistic-integrations/SelectedLogistics.js","features/order-payment-info/Stripe.js","features/order-payment-info/Index.js","features/orders/modals/stripeRefund/RefundButton.js","features/orders/modals/stripeRefund/RefundOrderInfo.js","hooks/useOrder.js","features/orders/components/CareemStatus.js","features/orderdetail/containers/OrderDetail.js","features/orders/modals/LocalModal.js","features/orders/components/Order.js","features/orders/components/RefundNotRequiredConfirmation.js","features/orders/components/OrdersPanel.js","features/orders/components/OrderRejectForm.js","hooks/useRefundableOrders.js","hooks/useGetOrderMetaData.js","store/contexts/OrderMetaDataContext.js","features/orders/hooks/useGetORderByStatus.js","features/orders/containers/liveOrders.js","components/TextPassword.js","features/admin/component/AddAdminUser.js","features/admin/component/StoreAccessRightsList.js","features/admin/component/ManageAdminUsers.js","features/admin/containers/CreateAdmin.js","components/DeleteConfirm.js","features/bulk-menu/BulkMenu.js","features/menu/containers/ItemContainer.js","components/PriceInput.js","features/menu/components/CreateItem.js","features/menu/components/AccordionN.js","features/Modifier/components/SingleGroup.js","features/Modifier/components/ModifierRow.js","components/TextInputReadOnly.js","features/Modifier/ViewGroup.js","components/SearchInput.js","features/Modifier/components/AttachModifierGroupWithItem.js","redux/modifiers/service.js","features/Modifier/components/GroupWithModifer.js","features/menu/components/UpdateItem.js","features/packages/components/PackageTabs.js","features/packages/components/PackageInfoTwo.js","features/packages/containers/Packages.js","features/orders/modals/logistic-partner-order-info-modals/CareemClaimInfo.js","features/orders/modals/logistic-partner-order-info-modals/CareemORderInfo.js","features/orders/modals/logistic-partner-order-info-modals/TalabatOrderInfo.js","features/orders/modals/logistic-partner-order-info-modals/YangoClaimInfo.js","features/orders/modals/logistic-partner-order-info-modals/YangoOrderInfo.js","features/orders/modals/logistic-partner-order-info-modals/LyveGlobalOrderInfo.js","features/orders/modals/logistic-partner-order-info-modals/DZOrderInfo.js","features/orders/modals/logistic-partner-order-info-modals/index.js","features/orders/modals/OrderDetail/components/Header.js","redux/orders/orderService.js","features/orders/modals/ShowOrderDetail.js","features/orders/containers/OrderHistory.js","features/inventory/Components/PlayPause.js","features/inventory/utils.js","features/inventory/Components/ItemList.js","redux/menu/service.js","features/inventory/useGetItemsByStoreId.js","features/inventory/usePauseItem.js","features/inventory/Components/PauseModal.js","features/inventory/containers/inventory.js","features/integrations/components/facebook.js","features/integrations/components/instagram.js","features/integrations/components/jeebly.js","features/integrations/components/quiqup.js","features/integrations/components/telr.js","features/integrations/components/whatsapp.js","features/integrations/components/messenger.js","features/integrations/components/talabat.js","features/integrations/components/yandex.js","features/integrations/components/checkout.js","features/integrations/containers/integrations.js","redux/loyalty/loyalty-service.js","features/customers/containers/customers.js","hooks/useWindowDimensions.js","features/marketing/components/LoadPreviewWithDevice.js","features/marketing/components/LoadPreview.js","features/marketing/containers/marketing.js","features/onboarding/components/BubbleTopMessage.js","features/onboarding/components/Step.js","features/onboarding/components/ModalSelectStore.js","features/onboarding/containers/GetStarted.js","features/reporting/components/Form.js","features/reporting/components/Stats.js","features/reporting/components/OnlineOrderTable.js","features/reporting/containers/Orders.js","features/reporting/components/Heading.js","features/reporting/components/PaymentLinkStats.js","features/reporting/components/PaymentLinkTable.js","features/reporting/containers/PaymentLinks.js","features/reporting/components/CustomerTable.js","features/reporting/containers/CustomersReport.js","components/RadioButtonWithRow.js","features/discount/containers/Discount.js","hooks/useCurrentUserItems.js","features/discount/components/DiscountForm.js","features/discount/containers/AddDiscount.js","features/discount/containers/UpdateDiscount.js","features/settings/components/BrandingPreviewMenuWidget.js","components/ColorPicker.js","features/settings/components/FaviconUpload.js","features/settings/components/BrandingPlatformCustomizeAndWidget.js","features/settings/containers/Branding.js","features/settings/components/ProfileNumberUpdate.js","features/settings/components/ProfilePasswordUpdate.js","features/settings/containers/Profile.js","features/settings/components/GeneralSettings.js","features/settings/components/BusinessTabSettings.js","features/settings/containers/BusinessSettings.js","components/WhatsAppButton.js","features/help/containers/help.js","routes/Constants.js","routes/ROUTES.js","store/index.js","store/LiveOrderContext/index.js","store/LiveOrderContext/LiveOrderProvider.js","components/BgPasswordInput.js","features/auth/components/TextSlider.js","components/LanguageToggle.js","hooks/useToggleLanguage.js","features/auth/containers/Signin.js","features/register/components/ServiceTypeItem.js","features/multilingual/containers/languageSelector.js","features/register/components/RegisterStep1.js","components/BgTextInput.js","components/Footer.js","features/register/components/RegisterStep2.js","features/register/container/Register.js","features/dashboard/components/SideBar.js","features/dashboard/components/NavBar.js","features/dashboard/components/TopNotificationBar.js","Layouts/VerificationMenu.js","Layouts/sidebars/DeafaultSidebar.js","Layouts/sidebars/Index.js","Layouts/dashboardLayout/Layout.js","features/dashboard/container/index.js","features/auth/components/ResetPasswordStep2.js","features/auth/components/ResetPasswordStep1.js","features/auth/containers/ForgotPassword.js","features/auth/containers/newPassword.js","Layouts/AuthLayout/PublicRoutes.js","Layouts/AuthLayout/AuthLayout.js","features/menu/containers/UpdateItem.js","features/settings/components/ScrollToTop.js","routes/middlewares/Protected.js","features/loyalty/components/LoyaltyForm.js","features/loyalty/containers/AddUpdateLoyaltyProgram.js","features/loyalty/components/CustomersTable.js","features/loyalty/containers/LoyaltyCustomers.js","features/icons/BackArrow.js","features/loyalty/components/CreditLoyaltyPointsModal.js","features/loyalty/components/CustomerWalletHistoryTable.js","components/useForm/FormInput.js","features/loyalty/models/CreditLoyaltyPoints.js","features/loyalty/containers/CustomerWalletInfo.js","features/shipping_methods/common/AreaBox.js","features/shipping_methods/containers/ManageDelivery.js","features/shipping_methods/cities/components/CitiesList.js","features/shipping_methods/modals/AddNewCity.js","features/shipping_methods/modals/DeleteCity.js","features/shipping_methods/modals/UpdateCity.js","hooks/useCurrentLang.js","features/shipping_methods/cities/components/CitiesTable.js","features/shipping_methods/cities/containers/ManageCities.js","features/shipping_methods/hooks/useSearch.js","features/shipping_methods/countries/components/CountryList.js","features/shipping_methods/modals/AddNewCountry.js","features/shipping_methods/modals/DeleteCountry.js","features/shipping_methods/modals/UpdateCountry.js","features/shipping_methods/countries/components/CountriesTable.js","features/shipping_methods/countries/containers/ManageCountries.js","components/AlertBox.js","features/shipping_methods/common/ShippingMethodsList.js","features/shipping_methods/common/AreaBusinessIcon.js","features/shipping_methods/containers/ShippingDelivery.js","features/paymentlinks/components/ManagePaymentLinkHeader.js","features/paymentlinks/components/AllPaymentLinksTable.js","features/paymentlinks/containers/ViewAllPaymentLinks.js","features/paymentlinks/components/SelectInput.js","features/paymentlinks/components/BackButton.js","components/useForm/TextArea.js","features/paymentlinks/components/AddPaymentLink.js","features/paymentlinks/hooks/useAllStores.js","features/paymentlinks/containers/CreatePaymentLinks.js","features/paymentlinks/components/ViewPaymentTable.js","features/paymentlinks/components/ViewPaymentLink.js","features/paymentlinks/containers/ViewPaymentLinkInfo.js","features/Modifier/components/ModifierList.js","features/Modifier/Modifier.js","features/Modifier/components/ModifierGroupList.js","features/Modifier/ModifierGroup.js","features/Modifier/CreateGroup.js","features/Modifier/ViewModifier.js","features/Modifier/components/AttacModifierWithGroup.js","features/Modifier/components/ModifierRowWithDrag.js","features/Modifier/UpdateModiferGroup.js","features/Modifier/CreateModifier.js","features/Modifier/UpdateModifier.js","features/inventory/Components/StoreModifierList.js","features/inventory/useGetModifiersByStoreId.js","features/inventory/usePlayPasuseModifier.js","features/inventory/containers/PauseModifiers.js","components/StarRating.js","features/reporting/components/AverageFeedbackRating.js","features/reporting/components/UserFeedbacksTable.js","features/reporting/components/SelectBox.js","features/reporting/containers/UserFeedbacks.js","features/reporting/containers/routes.js","features/shipping_methods/mapped-areas/PolygonBased/hooks/useGetStoreAddedMapAreas.js","features/shipping_methods/mapped-areas/components/GoogleMap.js","features/shipping_methods/common/CustomMapAreaHeader.js","features/shipping_methods/mapped-areas/PolygonBased/hooks/useGetCustomBuisnessAres.js","features/shipping_methods/mapped-areas/PolygonBased/areas-drawing/DrawAreaContainer.js","features/shipping_methods/mapped-areas/PolygonBased/areas-drawing/EditDrawnArea.js","features/shipping_methods/mapped-areas/PolygonBased/areas-drawing/DrawAreaOnMap.js","features/shipping_methods/mapped-areas/PolygonBased/StoreMapAreasListing.js","features/shipping_methods/mapped-areas/PolygonBased/hooks/useChangeAreaStatus.js","components/CurrencyFormatter.js","features/shipping_methods/constants.js","features/shipping_methods/mapped-areas/PolygonBased/MapAreasListing.js","store/contexts/ShippingMethodContext.js","features/shipping_methods/mapped-areas/distanced-based-method/hooks/useGetAllZones.js","features/shipping_methods/mapped-areas/distanced-based-method/hooks/useToggleStatus.js","features/shipping_methods/mapped-areas/distanced-based-method/containers/ZoneListing.js","features/shipping_methods/common/ActionButtonsDropDown.js","features/shipping_methods/mapped-areas/components/AreasList.js","features/shipping_methods/mapped-areas/components/CitiesList.js","features/shipping_methods/mapped-areas/PolygonBased/AddNewAreas.js","features/shipping_methods/mapped-areas/PolygonBased/DeleteArea.js","features/shipping_methods/mapped-areas/PolygonBased/UpdateAreas.js","features/shipping_methods/mapped-areas/distanced-based-method/components/ChooseTime.js","features/shipping_methods/mapped-areas/distanced-based-method/components/ZoneForm.js","features/shipping_methods/mapped-areas/distanced-based-method/containers/AddZone.js","features/shipping_methods/mapped-areas/distanced-based-method/hooks/useUpdateZone.js","features/shipping_methods/mapped-areas/distanced-based-method/containers/EditZone.js","features/shipping_methods/mapped-areas/AreasListingContainer.js","features/shipping_methods/mapped-areas/PolygonBased/hooks/useGetAllBusinessAreas.js","features/shipping_methods/mapped-areas/routes.js","features/shipping_methods/mapped-areas/ManageMappedAreas.js","store/contexts/Menus.js","features/menus/hooks/useGetMenus.js","features/menus/hooks/useUpdateMenu.js","features/menus/hooks/useDeleteMenu.js","features/menus/components/MenuListing.js","features/menus/components/LinkUnLinkMenuWithStoresModal.js","features/menus/components/AddNewMenu.js","features/menus/components/modals/CreateNewMenuModal.js","features/menus/hooks/useLinkUnlinkStoreWithMenu.js","features/menus/components/modals/LinkStoresWithMenu.js","features/menus/hooks/useGetMenuInfo.js","features/menus/hooks/useMakeDuplicateMenu.js","features/menus/components/modals/CloneMenu.js","features/menus/components/modals/EditMenu.js","features/menus/containers/Menus.js","features/menus/components/modals/DeleteCategory.js","features/menus/components/SingleCategory.js","features/menus/components/AddCategory.js","features/menus/components/UpdateCategory.js","components/EmptyFooter.js","features/menus/hooks/useGetBRandItems.js","features/menus/components/LinkItemWithCategoryModal.js","features/menus/components/LinkUnlinkItemWithStoresModal.js","features/menus/components/ItemRow.js","features/menus/components/CategoryItem.js","features/menu/components/LoadPreview.js","features/menu/components/LoadPreviewWithDevice.js","features/menus/components/OrderingPagePreview.js","features/menus/hooks/useMakeDefault.js","features/menus/components/modals/MakeDefaultMenuModal.js","features/menus/containers/MenuEditor.js","features/qr-codes/components/QRCodeGenerator.js","features/qr-codes/components/CopyLink.js","features/qr-codes/components/DownloadButton.js","features/qr-codes/components/DineIn.js","features/qr-codes/components/PickupDelivery.js","features/qr-codes/index.js","Layouts/dashboardLayout/SideBarRoutesWithComponent.js","components/VerificationInput.js","features/register/components/VerifyOtp.js","routes/index.js","routes/middlewares/ProtectectRoute.js","components/VersionUpdate.js","hooks/useOffLine.js","hooks/useSyncTabs.js","components/Seo.js","components/ErrorFallback.js","components/Hoc/WithContextProviders.js","app/Home.js","app/Index.js","serviceWorker.js","index.js","features/settings/components/branding.module.css"],"names":["PageHeading","props","propTypes","heading","PropTypes","string","CURRENT_USER","SIXHOURS","STORES_INFO","CASH_ON_DELIVERY_OBJECT","nameEN","nameAR","CREDIT_CARD_OBJECT","BASE_URL","process","START_TIME_24_HOURS","END_TIME_24_HOURS","PAYMENT_TYPE_ONLINE","KEY_CAT_INFO_EN","KEY_CAT_INFO_AR","KEY_CAT_TITLE","KEY_STORE_NAME_EN","KEY_STORE_DES_EN","KEY_STORE_NAME_AR","KEY_STORE_DES_AR","KEY_EMAIL","KEY_PHONE","KEY_WHATSAPP_PHONE","KEY_PHONE_FOR_USER","KEY_PASSWORD","KEY_CONFIRM_PASSWORD","KEY_USER_TYPE","KEY_ADDRESS","KEY_IS_CASH_ON_DELIVERY","KEY_IS_ONLINE_PAYMENT","STORE_INFO_AR","STORE_INFO_EN","BASE_LANGUAGE","STORE_NAME","AVERAGE_PREP","PICKUP_AVERAGE_PREP","DINEIN_AVERAGE_PREP","STORE_DESCRIPTION","STORE_NAME_AR","STORE_DESCRIPTION_AR","KEY_LAT_LNG_ADDRESS","KEY_MANUAL_ADDRESS","ZOOM","KEY_MAP_ADDRESS","KEY_IMAGE_URL","KEY_DELETE_IMG_URL","KEY_IS_TAX_INCLUSIVE","KEY_TAX_RATE","KEY_CITY","KEY_TIMEZONE","KEY_PAYMENT_TYPES","KEY_PICKUP_PAYMENT_TYPES","KEY_DINEIN_PAYMENT_TYPES","KEY_SERVICE_TYPES","KEY_WORKING_HOURS","KEY_FRI","KEY_FRI_END_TIME","KEY_FRI_START_TIME","KEY_FRI_SLOT2_START_TIME","KEY_FRI_SLOT2_END_TIME","KEY_MON","KEY_MON_END_TIME","KEY_MON_START_TIME","KEY_MON_SLOT2_START_TIME","KEY_MON_SLOT2_END_TIME","KEY_SAT","KEY_SAT_END_TIME","KEY_SAT_START_TIME","KEY_SAT_SLOT2_START_TIME","KEY_SAT_SLOT2_END_TIME","KEY_SUN","KEY_SUN_END_TIME","KEY_SUN_START_TIME","KEY_SUN_SLOT2_START_TIME","KEY_SUN_SLOT2_END_TIME","KEY_THU","KEY_THU_END_TIME","KEY_THU_START_TIME","KEY_THU_SLOT2_START_TIME","KEY_THU_SLOT2_END_TIME","KEY_TUE","KEY_TUE_END_TIME","KEY_TUE_START_TIME","KEY_TUE_SLOT2_START_TIME","KEY_TUE_SLOT2_END_TIME","KEY_WED","KEY_WED_END_TIME","KEY_WED_START_TIME","KEY_WED_SLOT2_START_TIME","KEY_WED_SLOT2_END_TIME","DIRECTION","USER_ADDED","USER_TYPE_ADMIN","USER_TYPE_MANAGER","ISDELIVERYENABLED","ISPICKUPENABLED","ISDINEINENABLED","DATE_FORMAT","STORE","TALABAT","OTHER","AED","VERIFICATION_LAYOUT","DASHBOARD_LAYOUT","BRAND_BASED","OUTLET_BASED","MAX_IMAGE_SIZE","SETTINGS_DEFAULT_COLOUR","DEFAULT_TEXT_COLOUR","NEW_PASSWORD","OLD_PASSWORD","CONFIRM_PASSWORD","PLACEHOLDER_IMAGE","DOMAIN_NAME","PREVIEW","MERCHANT_WEB_ADMIN","MOBILE_ARABIC_REGEX","PRICE_ARABIC_REGEX","DELIVERY_SERICETYPE","packageHeader","header","key","subscriptionDiscount","discount","billedBy","getPackText","id","PackageText","Plugins","refreshAppProps","message","btnText","noInternetProps","API_ERRORS","TIMEOUT_ERROR","NETWORK_ERROR","SHIPPING_METHODS","AREA_BASED","CITY_BASED","COUNTRY_BASED","MAPPED_AREA_BASED","AREA_BASED_DELIVERY_METHOD","CITY_BASED_DELIVERY_METHOD","COUNTRY_BASED_DELIVERY_METHOD","MAPPED_AREA_BASED_DELIVERY_METHOD","HIDDEN","COUPUN_APPLICATION_TYPE","MANUAL","AUTOMATIC","PERCENTAGE","ALL","SELECTED","CURRENT_LANGUAGE","EN","AR","SERVICE_TYPES","DELIVERY","PICKUP","DINEIN","LOYALTY_CONSTANTS","ADD_OP","EDIT_OP","USER_TYPE","ADMIN","MANAGER","YANDEX","courier","express","EXPRESS_DELIVERY_TYPE","APP_NAME","COMPANY_NAMES","RESTHERO","CUSINETTE","orderStatus","CANCELLED","PENDING","ACCEPTED","REJECTED","PREPARING","COMPLETED","PAYMENT_GATWAYS","STRIPE","ITEM_MODIFIER_UNAVAILABLE_DURATIONS","value","unit","title","duration","logisticPartnerNames","CareemDeliveryStatusKeys","UPCOMING","CANCELED","DELIVERY_ENDED","CAPTAIN_ASSIGNED","DELIVERY_STARTED","CareemDeliveryStatus","label","color","LOG_IN_ROUTE","HOME_ROUTE","LOGOUT_ROUTE","ADD_STORE","BRAND_SETTING","DASHBOARD","PENDING_ORDERS","CREATE_ADMIN","PACKAGES","LANDING_PAGE","MENU","REGISTER","ORDER_DETAIL","FORGOT_PASSWORD","ONBOARDING","UPDATE_COUNTER","UPDATE_CURRENT_USER","STORES_CHANGED","LanguageSlice","createSlice","name","initialState","currentLanguage","reducers","updateLanguage","state","action","payload","actions","settings","CatalogueType","C","SettingsReducer","setSettings","updateCatalogueType","AreasReducer","areaData","addedAreas","customAllAreas","addedMappedAreas","newSelectedMappedAreas","mapCustomBusinessAreas","cititesList","countriesList","customizedCountryList","customizedCityList","selectedStore","addedCountries","addedCities","selectedCountries","selectedCities","selectedAreas","syncData","setFetchedAreas","setSync","setCountryList","setcititesList","setcustomeAddedAreas","setAddedAreas","setMapAddedAreas","setNewMappedAreas","setMapCustomBuisnessAreas","setStore","setAddedCountries","setcustomizedCountryList","setcustomizedCityList","updateSelectedCountries","setAddedCities","updateSelectedCities","updateSelectedArea","setSelectedCountries","logoutSlice","logout","undefined","LoaderReducer","isLoading","setLoading","LoginReducer","isLoggedIn","toogleLogin","AppUpdate","refreshApp","SettingsErrorReducer","isError","error","domainError","brandError","passwordError","setError","setDomainError","setBrandError","setPasswordError","notPersited","isInternetConnected","updateOnlineStatus","isNotificationBarVisible","selectedKey","expDays","packageText","setSelectedKey","setNotifyVisible","setDays","setPackText","Integrations","changeDeliveryModal","careemModal","yandexModal","deliverzoneModal","orderInfo","selectedTimeSlot","changeLogisticService","change","newServiceName","vehicleTypes","selectedvehicleType","isThermalBagNeeded","claimInfo","showBtn","toggleDeliveryModal","setBtn","setClaimInfo","setSyncData","setVehicleTypes","setSelectedVehicleType","setThermalBag","toggleYandexModal","toggleCareemModal","toggleDeliverZoneModal","setOrderInfo","setOrderInfoFailure","setTimeSlot","clearData","resetOnModalClose","ErrorSlice","MenuReducer","localStorage","getItem","saveCurrentUser","user","val","JSON","stringify","setItem","saveLanguageInformation","obj","getLanguageInformation","dir","parse","getLayoutDirection","lang","removeLanguageInformation","emailValidation","RegExp","getCurrentUser","removeCurrentUser","isArrayWithLength","arr","Array","isArray","length","getAllowedRoutes","routes","roles","filter","_ref","permission","_","intersection","saveStores","s","getStores","store","getSideBarItemList","link","getKey","getValueAgainstKeyToUpdateStore","prevState","storeDescription","storeName","Date","getTime","getValueAgainstKeyToAddStore","values","successNotification","UTILS","HANDLE_SUCCESS_NOTIFICATION","errorNotification","HANDLE_ERROR_NOTIFICATION","placement","success","addNotification","type","insert","container","dismiss","getDumbStoreObject","baseLanguage","description","email","mobileNumber","phoneNumber","whatsAppContact","brandId","instagramId","storeImageUrl","storeLogoUrl","manualAddress","mapAddress","zoom","vehicleInfoForPickup","isActive","isRequired","workingHours","mondayStartTime","mondayStartTimeSlot2","mondayEndTime","mondayEndTimeSlot2","monday","tuesdayStartTime","tuesdayStartTimeSlot2","tuesdayEndTime","tuesdayEndTimeSlot2","tuesday","wednesdayStartTime","wednesdayStartTimeSlot2","wednesdayEndTime","wednesdayEndTimeSlot2","wednesday","thursdayStartTime","thursdayStartTimeSlot2","thursdayEndTime","thursdayEndTimeSlot2","thursday","fridayStartTime","fridayStartTimeSlot2","fridayEndTime","fridayEndTimeSlot2","friday","saturdayStartTime","saturdayStartTimeSlot2","saturdayEndTime","saturdayEndTimeSlot2","saturday","sundayStartTime","sundayStartTimeSlot2","sundayEndTime","sundayEndTimeSlot2","sunday","workingHoursForPickup","workingHoursForDinein","isPreOrderEnabledForDelivery","isPreOrderEnabledForPickup","isAcceptQuickOrderForDelivery","isAcceptQuickOrderForPickup","acceptAsapForDelivery","acceptAsapForPickup","preOrderSettingsForDelivery","timeInterval","timeIntervalUnit","minTimeInAdvance","minTimeInAdvanceUnit","maxDaysInAdvance","minDaysInAdvance","acceptTodayPreOrders","preOrderSettingsForPickup","deliveryChargesWaiverInfo","onOrderAmount","isEnabled","amount","onDateRange","startDateTime","moment","tz","format","endDateTime","isDeliveryEnabled","isDineInEnabled","isPickupEnabled","averagePrepTime","isStoreOpen24Hours","paymentOptions","averagePrepTimeForPickup","isStoreOpen24HoursForPickup","pickupPaymentOptions","dineInPaymentOptions","averagePrepTimeForDinein","isStoreOpen24HoursForDinein","serviceType","isOpened","language","currency","storeLocation","coordinates","country","city","taxRate","timeZone","errors","address","getDumbAreaObject","deliveryFee","deliveryTime","minOrder","areaID","_id","areaNameEN","areaNameAR","countryID","countryNameEN","countryNameAR","cityID","cityNameEN","cityNameAR","storeId","getDumbAreaObjectForEditing","isValidObject","attributesArray","object","reduce","xs","x","isValidObjectHelper","hasWhiteSpace","test","isValidMobileNumber","charAt","getCurrentCurrency","getSideMenuListForAddUpdateStore","getCategoryModel","getItemModel","ingredients","sku","itemImageURLs","itemAvailabilityStatus","isItemPriceGiven","price","getModifierModal","itemId","itemSection","sectionName","isSingleSelection","maximumAllowedSelection","options","getModifierOptionModal","optionName","getPendingOrders","data","status","pendingOrdersCount","index","element","count","formatPhoneNumber","slice","validatePhoneNumber","getAreasByCityID","filtredareas","areas","forEach","area","push","UpdatedAreas","async","token","updatedAreas","API","GET_STORE_DELIVERY_AREAS","_updatedAreas$data","Areas","console","getSelectedAreas","selected","err","getSelectedCountries","countries","allCountries","filteredAreasList","areasData","alreadyAddedAreas","filteredArray","_areasData$","_areasData$$cities","cities","map","_city$areas","find","item","_item$areaID","isAdded","getFormattedTime","time","setDefault","getTimeDiference","time1","time2","diff","asMinutes","isStartTimeNull","t1","t2","isEndTimeNull","formatSlot2StartTime","slot2StartTime","formatSlot2EndTime","slot2EndTime","formatted","isValidSlots","errorMessage","i18next","t","isFormValid","fridayS1Start","fridayS1End","fridayS2Start","fridayS2End","satursdayS1Start","satursdayS1End","saturdayS2Start","saturdayS2End","sundayS1Start","sundayS1End","sundayS2Start","sundayS2End","mondayS1Start","mondayS1End","mondayS2Start","mondayS2End","tuesdayS1Start","tuesdayS1End","tuesdayS2Start","tuesdayS2End","wednesdayS1Start","wednesdayS1End","wednesdayS2Start","wednesdayS2End","thursdayS1Start","thursdayS1End","thursdayS2Start","thursdayS2End","diff1Day1","diff2Day1","diff3Day1","diff4Day1","diff5Day1","diff6Day1","diff1Day2","diff2Day2","diff3Day2","diff4Day2","diff5Day2","diff6Day2","diff1Day3","diff2Day3","diff3Day3","diff4Day3","diff5Day3","diff6Day3","diff1Day4","diff2Day4","diff3Day4","diff4Day4","diff5Day4","diff6Day4","diff1Day5","diff2Day5","diff3Day5","diff4Day5","diff5Day5","diff6Day5","diff1Day6","diff2Day6","diff3Day6","diff4Day6","diff5Day6","diff6Day6","diff1Day7","diff2Day7","diff3Day7","diff4Day7","diff5Day7","diff6Day7","codEarning","orders","earning","acc","order","paymentType","totalOrderPrice","toFixed","onlineEarning","_order$orderCheckoutO","_order$orderCheckoutO2","orderCheckoutOnlinePaymentMetadata","onlineOrders","_orders$orders","_orders$orders2","log","codOrders","_orders$orders3","_orders$orders4","getEachCustomercodEarning","getEachCustomeronlineEarning","_order$orderCheckoutO3","_order$orderCheckoutO4","getCustomerName","_order$userInfo2","_order$userInfo","userInfo","getEachCustomeData","customers","_order$_id","_order$orderDetails$","_order$orderDetails$$","cod","orderDetails","online","customerId","userId","customerPhone","getTotalEarning","paymentLinks","linkStatus","totalLinksEarning","handleSuccesNotification","handleErrorNotification","validateSelectedDates","startDate","endDate","checkPackageValidity","text","notify","userDetail","result","CHECK_PACKAGE_VALIDITY","_result$data","_result$data$subscrip","_result$data2","_result$data2$subscri","_result$data3","_result$data3$subscri","subscription","amountPaid","isValid","getStoreObj","_store$deliveryCharge","_store$deliveryCharge2","_store$deliveryCharge3","_store$deliveryCharge4","_store$deliveryCharge5","_store$deliveryCharge6","_store$deliveryCharge7","_store$deliveryCharge8","_store$deliveryCharge9","_store$deliveryCharge10","_store$deliveryCharge11","_store$deliveryCharge12","_store$deliveryCharge13","_store$deliveryCharge14","_store$deliveryCharge15","_store$deliveryCharge16","_store$vehicleInfoFor","_store$vehicleInfoFor2","delivery","preOrder","pickup","dineIn","validateCouponsInputs","_state$values","_state$values2","_state$values3","_state$values4","_state$values5","_state$values6","_state$values7","_state$values8","_state$values9","_state$values10","_state$values11","_state$values11$selec","_state$values12","_state$values13","_state$values13$selec","_state$values14","_state$values15","_state$values16","_state$values16$servi","isoDate","locale","isoEndDate","errorMessages","discountName","couponCode","couponCodeInvalid","discountAmount","maxAmountAllowd","discountAmountInvalid","storeSelection","itemSelection","perCustomerUse","minOrderValue","maxUsage","maximumDiscountValue","discountCode","match","discountType","maxAmountAld","outletSelectionType","selectedOutlets","itemSelectionType","selectedItems","isNaN","getDiscountObj","_state$values17","_state$values17$selec","_state$values18","_state$values18$selec","_UTILS$getCurrentUser","_state$values19","storeIds","itemIds","discountApplication","applicationType","customerSegment","customerSegmentationType","toLocaleLowerCase","Math","round","isApplicableOnAllItems","isApplicableOnAllStores","discountAppliedOnSpecificStores","discountAppliedOnSpecificItems","_state$values20","getSelectedDelivery","logisticPartner","OdrAlrdySndToTalabat","_order$logisticPartne","_order$logisticPartne2","_order$logisticPartne3","_order$logisticPartne4","_order$logisticPartne5","_order$logisticPartne6","logisticPartnerMetadata","orderPlaceResponse","order_id","ifnullOrUndefined","ifNotNullAndUndfine","Undfined","validateTalabat","asyncLocalStorage","getLanguage","Promise","resolve","then","_lang$lang","toUpperCase","isDomainNameValid","getFilteredAreasList","_areasData$2","_areasData$2$cities","_city$areas2","_item$areaID2","getCustomizedCountryList","shippingData","countryObj","countryDeliveryData","added","_added$countryID","getCustomizedCitiesList","_country$cities","cityObj","cityDeliveryData","_added$cityID","validateAdminSetting","popup","_popup$title","_popup$title2","_popup$message","_popup$message2","_popup$buttonText","_popup$buttonText2","buttonText","simplifiedAreaData","getCitesList","handleCitiesList","citites","selectedCountry","el","_selectedCountry$","_selectedCountry$$cit","current","handleCountryList","getSentryUser","pasedObj","concat","username","brandName","setLocalStorage","getLocalStorage","checkISAppUpdated","Sentry","level","removeItem","getPackagePrice","packageInfo","planType","_parseFloat","PackageFinalPrice","parseFloat","NumberConversion","input","trim","arabicNums","output","i","indexOf","ARtoENPrice","decimalCount","includes","decimalIndex","substring","logToSentry","scope","setExtras","localstorage","Error","app_version","app_name","logErrorOnSentry","extraDat","setLevel","setExtra","extra","url","window","location","href","userAgent","navigator","validateItemInfo","_item$values","_item$values$baseLang","_item$values2","_item$values2$baseLan","_item$values2$baseLan2","_item$values3","isValidForm","objError","withTryCatch","callback","arguments","ValidateParams","params","hasOwnProperty","isValidValue","getCatalogueType","catalogueType","openWhatsApp","number","open","getStoreInfo","stores","getStarRatingClasses","rating","getORderPaymentGateway","_order$orderCheckoutO5","_order$orderCheckoutO6","paymentGateway","downloadReports","getPackageExpiry","differnce","unix","valueOf","nonVerifiedRegistrations","TRACKING_UTILS","triggerFacebookEvent","isCustomEvent","triggerGoogleAdsEvent","send_to","triggerGoogleAnalyticsEvent","transaction_id","verifiedRegistrations","user_id","subscribedUsers","plan_price","plan_name","event","customData","eventMeta","eventID","generateEventId","dt","replace","c","r","random","floor","toString","fbq","dataObj","gtag","event_name","event_data","KEY_PREORDER_MIN_TIME_IN_ADVANCE_UNIT","KEY_PREORDER_MAX_DAYS_IN_ADVANCE","KEY_PREORDER_SLOT_INTERVAL","KEY_PREORDER_SLOT_INTERVAL_UNIT","VALIDATE_INPUTS","_store$values$C$BASE_","_store$values$C$BASE_2","_store$values$C$BASE_3","_store$values$C$KEY_C","_store$values7","_store$values$C$KEY_M","_store$values$C$KEY_M2","_store$values$C$KEY_M3","_store$values$C$KEY_M4","_store$values8","_store$values$C$KEY_P5","_store$values$C$KEY_P6","_store$values$C$KEY_D","_store$values$C$AVERA","_store$values$C$AVERA2","_store$values$C$AVERA3","_store$values","_store$values$deliver","_store$values$deliver2","_store$values3","_store$values3$delive","_store$values3$delive2","_store$values2","_store$values2$delive","_store$values2$delive2","_store$values4","_store$values4$delive","_store$values4$delive2","_store$values5","_store$values5$delive","_store$values5$delive2","_store$values$C$PICKU","_store$values$C$PICKU2","_store$values$C$PICKU3","_store$values$C$DINEI","_store$values$C$DINEI2","_store$values$C$DINEI3","_store$values6","_store$values6$email","_store$values$C$KEY_P","_store$values$C$KEY_P2","_store$values$C$KEY_P3","_store$values$C$KEY_P4","_store$values$C$KEY_W","_store$values$C$KEY_W2","_store$values$C$KEY_W3","_store$values$C$KEY_W4","isFormValidForDelivery","errorsForDelivery","validatePreOrderingForDelivery","isFormValidForPickup","errorsForPickup","validatePreOrderingForPickup","VALIDATE_INPUTS_STEP1","_store$mobileNumber","_store$mobileNumber2","_store$mobileNumber3","_store$mobileNumber4","_store$C$KEY_CITY","_store$whatsAppContac","_store$whatsAppContac2","_store$whatsAppContac3","_store$whatsAppContac4","VALIDATE_INPUTS_STEP2","_store$C$KEY_MANUAL_A","_store$C$KEY_MANUAL_A2","_store$C$KEY_MANUAL_A3","_store$C$KEY_MAP_ADDR","_store$C$KEY_MAP_ADDR2","_store$C$KEY_MAP_ADDR3","VALIDATE_INPUTS_STEP3","_store$values$C$KEY_P8","_store$values$C$KEY_D2","_store$values$C$KEY_P7","_store$values9","_store$values9$delive","_store$values9$delive2","_store$values10","_store$values10$deliv","_store$values10$deliv2","_store$values11","_store$values11$deliv","_store$values11$deliv2","_store$values12","_store$values12$deliv","_store$values12$deliv2","_store$values13","_store$values13$deliv","_store$values13$deliv2","VALIDATE_INPUTS_STEP4","_store$values14","errorMsgs","slotInterval","_store$values15","_store$values15$preOr","_store$values16","_store$values16$preOr","_store$values17","_store$values17$preOr","_store$values18","_store$values18$preOr","_store$values19","_store$values19$preOr","SC","_store$values20","_store$values21","_store$values21$preOr","_store$values22","_store$values22$preOr","_store$values23","_store$values23$preOr","_store$values24","_store$values24$preOr","_store$values25","_store$values25$preOr","getOrderIsRefundable","_order$refund","_order$refund2","_order$refund3","Boolean","refund","APIKit","axios","create","baseURL","timeout","interceptors","request","use","config","REACT_APP_REFRRER","referrer","headers","Authorization","post","_await$UTILS$asyncLoc2","postUpdated","_await$UTILS$asyncLoc3","response","_response$data","_response$data2","error_category","RefreshActions","file","_file$actions","check","refresh","reduxStore","dispatch","APPUpdate","_error$response3","_error$response2","_error$toJSON","_error$response","code","NotPersistAction","toJSON","reject","apiSlice","createApi","reducerPath","baseQuery","_await$UTILS$asyncLoc","method","body","axiosError","_err$response","_err$response2","endpoints","builder","postConfig","query","transformResponse","getConfig","courierBase","SEND_ORDER_TO_TALABAT","CHECK_TALABAT_DELIVERY_TIME","CHECK_TALABAT_DELIVERY_FEE","CANCEL_TALABAT_ORDER","SEND_ORDER_TO_MARSOOL","cityBase","ADD_CITY_BASE_DELIVERY","EDIT_CITY_BASE_DELIVERY","DELETE_CITY_BASE_DELIVERY","GET_CITY_BASE_DELIVERY","countryBase","ADD_COUNTRY_BASE_DELIVERY","EDIT_COUNTRY_BASE_DELIVERY","DELETE_COUNTRY_BASE_DELIVERY","GET_COUNTRY_BASE_DELIVERY","GET_BUSINESS_AREAS","GET_BRAND_INFO_WITH_ID","GET_ORDER_INFO_BY_ID","CAREEM_NOW_GET_DELIVERY_STATUS","LYVE_GLOBAL","i18n","Backend","LanguageDetector","initReactI18next","init","lng","backend","loadPath","fallbackLng","debug","ns","defaultNS","keySeparator","interpolation","escapeValue","formatSeparator","react","wait","tryAgain","settingsAPi","injectEndpoints","updatePassword","mutation","onQueryStarted","queryFulfilled","getState","LoaderAction","_data$message","SettingErrorAction","_data$message2","messageError","_err$data$message","_err$data","updatePhoneNumber","_ref2","_data$message3","_data$data","_data$message4","msg","_err$data$message2","_err$data2","updateBrandName","_ref3","_data$message5","_data$message6","Errormessage","_err$data$message3","_err$data3","updateDomainName","_ref4","_data$message7","_data$message8","_err$data$message4","_err$data4","updateBrandSettings","responseHandler","json","validateStatus","_ref5","_data$message9","_data$message10","_err$error$data$messa","_err$error","_err$error$data","getSettings","_ref6","_data$data2","_data$data3","_data$data3$setting","setting","SettingsAction","temporaryDomainName","_data$message11","_err$error$data$messa2","_err$error2","_err$error2$data","useUpdatePasswordMutation","useUpdatePhoneNumberMutation","useUpdateBrandNameMutation","useUpdateDomainNameMutation","useUpdateBrandSettingsMutation","useGetSettingsMutation","errorHandler","_error$error","_error$error4","_error$error4$data","_error$error2","_error$error3","_error$error5","_error$error5$data","_error$error6","_error$error6$data","areasAPi","getBrandInfoWithID","URL","updateShippingMethodStatus","getBuisnessAreas","AreasAction","getAddedCountries","addNewCountry","editCountry","deleteCountry","_ref7","addCities","_ref8","editCities","_ref9","deleteCities","_ref10","getAddedCities","_ref11","useGetBrandInfoWithIDMutation","useGetBuisnessAreasQuery","useGetAddedCountriesMutation","useAddNewCountryMutation","useEditCountryMutation","useDeleteCountryMutation","useAddCitiesMutation","useEditCitiesMutation","useDeleteCitiesMutation","useGetAddedCitiesMutation","useUpdateShippingMethodStatusMutation","appReducer","combineReducers","SettingsSlice","reducer","AreasSlice","Logout","SettingErrorReducer","NotPersistReducer","PackagesReducer","LogisticReducer","ErrorReducer","rootReducer","storage","sentryReduxEnhancer","configureScopeWithState","persistConfig","whitelist","persistedReducer","persistReducer","assert","warn","configureStore","middleware","getDefaultMiddleware","serializableCheck","createSentryMiddleware","devTools","setupListeners","persistor","persistStore","SIGN_IN","password","userType","deviceType","catch","verificationCode","newPassword","superCategoryId","supportedLanguages","published","utmSource","utmMedium","utmCampaign","RESEND_VERIFICATION_CODE","VERIFY_MOBILE_NUMBER","CHECK_BRAND_NAME","GET_GUIDANCE_FLOW_SETUP_WITH_STATUS","ADD_TASK_TO_DONE","taskId","CREATE_BRAND_STORE","_params$values","_params$values2","_params$values3","_params$values4","_params$values5","_params$values6","_params$values7","_params$values7$latit","_params$values7$latit2","_params$values8","_params$values8$latit","_params$values8$latit2","_params$values9","_params$values10","_params$values11","_params$values12","_params$values13","_params$values14","_params$values15","_params$values16","_params$values16$lati","_params$values17","_params$values17$lati","_params$values17$lati2","_params$values18","_params$values18$lati","_params$values18$lati2","PaymentOptionCOD","PaymentOptionCreditCard","brandTitleEN","subdomain","storeCuisines","latitude","latitudeLongitude","mapCenter","lat","longitude","admins","minOrderPrice","minDeliveryTime","storeNameAR","storeDescriptionAR","descriptionAr","storeAddress","GET_CURRENCY_TYPES","get","getSuperCategories","SUBSRIBE_TRAIL_PACKAGES","packageId","noOfExpiryDays","owner","step4","GET_PACKAGES","addUserAreas","deliveryAreas","GET_CRRENT_USER_STORES","GET_STORE_INFO_WITH_STORE_ID","updateStore","GET_PAYMENT_TYPES","GET_SERVICE_TYPES","UPLOAD_FILE","formData","FormData","append","image","ADD_AREA","objArea","UPDATE_AREA","DELETE_AREA","ADD_USER","GET_USERS_BY_BRAND","GET_BRAND_STORES","GET_USER_STORES_BY_USER_ID","ADD_NEW_STORE_ADMIN","adminId","DELETE_STORE_ADMIN","GET_DATA_FOR_USERS_WITH_STORE_LIST","firstResponse","secondResponse","all","DELETE_CATEGORY","categoryId","GET_CATEGORIES_BY_BRAND","GET_ITEMS_BY_BRAND","category","DELETE_ITEM","GET_ITEM_INFO","ADD_ITEM_TO_STORE","REMOVE_ITEM_FROM_STORE","GET_ITEMS_OF_CATEGORY_BY_BRAND","REMOVE_ITEM_FROM_CATEGORY","GET_STORES_ATTACHED_TO_ITEM","GET_ALL_STORES_AND_STORES_ATTACHED_TO_ITEM","UPDATE_MODIFIER_TO_ITEM","modifier","DELETE_MODIFIER_FROM_ITEM","sectionId","GET_ORDER_COUNT","GET_CAREEM_STATUS","orderId","apiUrl","GET_REFUNDABLE_COUNT","GET_ORDER_BY_STATUS","SET_ORDER_STATUS","REFUND_ORDER","SET_ORDER_NOT_REFUNDABLE","GET_ORDERS_HISTORY","GET_ITEMS_BY_STORE","PAUSE_ITEM_IN_STORE","PLAY_ITEM_IN_STORE","billingCycle","PkgActions","GET_STATS","SEND_ORDER_TO_QUIQUP","needs_return","SAVE_SETTINGS","GET_SETTINGS","CHECK_ONLINE_PAYMENT","RE_ORDER_CATEGORIES","RE_ORDER_CATEGORY_ITEMS","_error$response$data","GET_ORDER_HISTORY","UPDATE_STORE_AREA","DELETE_STORE_AREA","GET_CUSTOMER_REPORT","ADD_STORE_AREA","GET_PAYMENTLINK_HISTORY","CREATE_PAYMENT_LINK","_params$data","_params$data2","_params$data3","_params$data4","_params$data5","purposeOfPayment","_error$response$data2","GET_ALL_PAYMENT_LINKS","_error$response$data3","GET_PAYOUT_HISTORY","_error$response$data4","_error$response4","CREATE_DISCOUNT_COUPON","_error$response5","GET_ALL_COUPONS","_error$response6","UPDATE_COUPONS","_params$data6","discountId","_error$response7","PUBLISH_UNPUBLISH_STORE","_params$store","_params$store2","_params$store3","_error$response$data5","_error$response8","GET_BUSINESS_AREAS8","GET_ALL_ACTIVE_PACKAGES","GET_HOSTED_PAYMENT_PAGE","VERIFY_PACKAGE_PAYMENT","getBrandInfoWithBrandId","uploadBulkItems","_await$UTILS$asyncLoc4","upload","getOrdersBacks","getMappedCountriesCitiesAreas","addStoreMappedArea","deleteStoreMappedArea","getStoreMappedAreas","updateStoreMappedAreas","addCustomStoreMapArea","getCustomStoreMapAreaById","getAllCustomBuisnessAreas","updateCustomStoreMapArea","togglePolyonAreaStatus","getOrderMetaData","addDistanceBaseDeliveryZone","getDistanceBaseDeliveryZoneInfo","updateDistanceBaseDeliveryZone","deleteDistanceBaseDeliveryZone","getDistanceBaseDeliveryZones","toggleDistanceBaseDeliveryZoneStatus","createDZDelivery","trackDZDelivery","downloadOrderHistoryExcelReport","downloadCustomerExcelReport","downloadPaymentLinksExcelReport","updateMenu","cloneMenu","deleteMenu","markAsDefaultMenu","blockUnblockItemInStore","toggleModifierInventory","UPDATE_ITEM","ADD_ITEM","linkModifierGroupWithItem","LinkModifierWithGroup","ADD_CATEGORY","unLinkItemWithCategory","unLinkCategoryWithMenu","linkItemWithCategory","sortItemInCategory","unLinkModifierGroupWithItem","UPDATE_CATEGORY","sortModifierGroup","sortModifierOption","RadioButton","_jsx","_Fragment","children","className","_jsxs","htmlFor","customKey","keyVal","onChange","handleValues","target","checked","Card","styleClasses","Modal","cancelButtonRef","useRef","Transition","Root","show","as","Fragment","Dialog","static","showScroll","initialFocus","onClose","scroll","Child","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","Overlay","ref","modalWidth","responsiveClass","style","display","onClick","SVG_Business","xmlns","width","height","viewBox","fill","d","opacity","transform","SVG_TICK","SVG_PLUS","focusable","FLAG","CITY","AREA","fillRule","AngleUpIcon","strokeWidth","AngleDownIcon","stroke","SVG_DELETE_DIALOG","clipRule","SVG_THREE_DOT_VERTICAL","SVG_VIEW_EYE","SVG_DELETE_SMALL","baseProfile","version","xmlSpace","SVG_EDIT_SMALL","SVG_LIVE_ORDER","role","cx","cy","SVG_INSTAGRAM","strokeLinecap","strokeLinejoin","strokeMiterlimit","SVG_FACEBOOK","x1","x2","y1","y2","gradientUnits","offset","stopColor","SVG_WHATSAPP","SVG_MESSENGER","gradientTransform","SVG_DRAGDROP","SVG_FOOD_AND_BEVARAGES","xmlnsXlink","y","xlinkHref","SVG_RETAIL","enableBackground","Line","WhatsAppButtonSvg","AddStoreModel","useTranslation","Button","size","shape","useUserType","setUserType","useState","useEffect","CURRENT_USER_TYPE","CatelogueReducer","ACTIONS","toggle","CatelougeContext","createContext","Catelouge","useReducer","Provider","useCatalogue","showStore","setShow","useContext","getCurrentUserStores","DashboardBranchesTable","setStores","setOpen","loading","catelougeType","router","useHistory","useSelector","re","publishStore","columns","dataIndex","render","rowData","_rowData$storeId$C$BA","_rowData$storeId$C$BA2","renderUpdateStore","_rowData$storeId","sId","pathname","renderAreas","_rowData$storeId2","renderActions","_rowData$storeId3","_rowData$storeId4","Spin","spinning","Table","emptyText","dataSource","pagination","rowKey","record","DashboardCard","pClass","Dashboard","stats","setStats","getStats","getCountFromOrders","customersCount","SectionHeading","TextInput","mandatoryField","man","getMandatoryField","mandatory","fieldError","getFieldError","placeholder","placeHolder","disabled","TextArea","rows","cols","PhoneNumberInput","PhoneInput","international","countryCallingCodeEditable","defaultCountry","SelectInput","mandatoryLabel","getLabel","styleClass","e","handleChange","option","defaultSelection","TimeZones","SelectMultiLingualInput","getI18n","StoreInfoSection","timeZones","getValue","React","en","ar","updatePrice","handleSubmit","objValid","STOTE_UTILS","setStep","step","isValidInputFields","_state$deliveryTime","_state$deliveryTime2","_state$deliveryTime3","Days","Hours","Minutes","calculateDeliveryTimeInMins","convertPolygonArrayToObject","_store$mappedAreaInfo","_store$mappedAreaInfo2","_store$mappedAreaInfo3","_store$mappedAreaInfo4","mappedAreaInfo","mappedAreaId","polygon","_area$mappedAreaInfo","_area$mappedAreaInfo$","_area$mappedAreaInfo$2","_area$mappedAreaInfo$3","areaInfo","convertSinglePolygonToObjectArray","libraries","MyMap","_props$state","_props$state$values","_props$state2","_props$state2$values","_props$state3","_props$state3$values","_props$state4","_props$state4$values","_props$state4$values$","_props$state4$values$2","_props$state5","_props$state5$values","_props$state5$values$","_props$state5$values$2","_props$state6","_props$state6$values","_props$state6$values$","_props$state6$values$2","_props$state7","_props$state7$values","_props$state7$values$","_props$state7$values$2","_props$state8","_props$state8$values","_props$state8$values$","_props$state8$values$2","_props$state9","_props$state9$values","_props$state9$values$","_props$state10","_props$state10$values","_props$state10$values2","_props$state10$values3","_props$state11","_props$state11$values","_props$state11$values2","mapref","locateMe","geolocation","getCurrentPosition","showPosition","errorFn","position","latLng","coords","updateStreetAddress","updateZoom","PERMISSION_DENIED","POSITION_UNAVAILABLE","TIMEOUT","UNKNOWN_ERROR","google","maps","Geocoder","geocode","results","GeocoderStatus","OK","formatted_address","z","setState","onUnmount","useCallback","isLoaded","useJsApiLoader","googleMapsApiKey","region","flexDirection","PlacesAutocomplete","onSelect","geocodeByAddress","getLatLng","searchOptions","componentRestrictions","getInputProps","suggestions","getSuggestionItemProps","zIndex","suggestion","active","backgroundColor","cursor","MapGoogle","onDragEnd","onIdle","center","onZoomChanged","changezoom","_mapref$current","_mapref$current2","_mapref$current3","l","getCenter","mapContainerClassName","mapContainerStyle","gestureHandling","disableDefaultUI","keyboardShortcuts","onLoad","Marker","StoreMapSection","GoogleMap","StorePaymentMethodSection","paymentTypes","setPaymentTypes","getPaymentTypes","isON","getKeyAgainstLanguage","PaymentType","isPaymentTypeOnline","isAvailable","checkOnlinePaymentEnabled","alt","src","RadioButtonStoreTime","DayRow","keyDay","TimePicker","s1Error","date","keyStartTime","allowClear","showNow","minuteStep","inputReadOnly","autoFocus","keyEndTime","use12Hours","addSlotInput","showSlot2","s2Error","overLapError","keyStartTime2","keyEndTime2","removeSlotInput","StoreHoursSection","setShowSlot2","slo2Array","previous","showSlot2IfContainsValue","isSlotError","Slotstart","slotEnd","handleStoreHoursSection","handleTwentyFourHours","addStore","getThirdsDaysArrayWithDayLebel","from","getNumOfDaysWithZero","getHMinutSlotsTill8Hors","hours","minutes","hourLabel","hoursLabel","minuteLabel","minutesLabel","PreOrderingWidget","isPreOrderEnabled","sameDayPreOrder","preOrderTimig","hndlepreOrderingState","handlePreOrderingTiming","handleInputValue","Number","Select","showSearch","optionFilterProp","filterOption","_option$label","toLowerCase","onMouseDown","preventDefault","stopPropagation","minWidth","_option$label2","_option$label3","_option$label4","_store$values3$preOrd","_store$values4$preOrd","_store$values5$preOrd","_store$values6$preOrd","_store$values7$preOrd","_store$values8$preOrd","_store$errors","PreOrder","asap","minTimeErrorInAdvance","preOrderMinTimeInAdvanceDelivery","OrderManagement","handleStoreInfo","useDeliveryWaiveoff","handleDateRange","_store$values2$delive3","_store$values2$delive4","handleOnOrderAmount","handleSetDate","dataConversion","unixTimestamp","_unixTimestamp$toStri","formattedDate","RangePicker","DatePicker","DeliveryChargesWaveOff","_store$values6$delive","_store$values6$delive2","_store$values7$delive","_store$values7$delive2","_store$values8$delive","_store$values8$delive2","useDeliveryFeeWaiveoff","dateString","showTime","getInitialValues","Delivery","_serviceTypes$4","serviceTypes","setServiceTypes","getServiceTypes","ServiceType","_serviceTypes$","_serviceTypes$2","_serviceTypes$3","PaymentTypes","handlePaymentTypes","v","paymentArr","splice","handleQuickOrder","PreOrderingWidgetForDelivery","WorkingHours","_props$store","_props$store$errors","pickupHoursSection","SimpleRadioButton","me","labelHeading","getLabelHeading","PreOrderingWidgetForPickup","preOrderMinTimeInAdvancePickup","_store$values3$vehicl","_store$values5$vehicl","_store$values6$vehicl","_store$values8$vehicl","handlePickupVehicleInfo","handleQuickOrders","dineInHoursSection","UpdateStoreComponent","_location$state3","useLocation","updateStage","setUpdateStage","sideMenu","didMount","checkIsValidTimeSlots","slotCheck","getStoreInformation","_s$store","_location$state","_location$state2","_result$data$store","validateInputs","isValidTiming","storeobj","goBack","updateStoreFunction","getBuisnessType","getSideItem","handleStoreMapSection","Pickup","DineIn","usePushBack","history","UpdateStore","_router$location","_router$location$stat","AddStoreComponent","addStage","setAddStage","currencies","setCurrenies","getCurrencyTypes","checkDeliveryTimeSlots","addStoreFunction","PickUp","AddStore","SearchCity","PriceInput","register","rules","maxLength","handleChangePrice","AreasList","isChecked","Items","saveAreaIntoState","ShowCityListButton","setOpenState","CitiesList","cityAreas","searchTerm","openAreas","useDispatch","useMemo","_item$areaNameEN","_item$areaNameEN$toLo","_item$areaNameAR","update","ChooseTime","setTime","getSelectedTime","dd","hh","button","resetState","AddNewAreas","setOpenAreas","setSearch","getUpdatedAreas","updateAreas","storeID","addAreas","delTime","objectArray","SearchArea","handleSearch","DeleteAreasModal","deleteAreas","AddCategory","setSelectedRowsKeys","UpdateAreaModal","_selectedAreas$length","editAreas","UpdateAreas","deliveryTimeInMins","useAllStores","convertStoresToSelectInputArray","_item$storeId","_item$storeId$baseLan","BackButton","PlusIcon","RenderTime","row","days","asDays","SelectedTime","AreasTable","dialogContentId","setDialogContentId","selectedRowKeys","selectedDataRows","setSelectedDataRows","setData","sorter","a","b","_a$areaID","_a$areaID$areaNameEN","_b$areaID","localeCompare","_row$areaID","_a$cityID","_a$cityID$cityNameEN","_b$cityID","_row$cityID","compare","multiple","Intl","NumberFormat","DG_CONTENT_ID","onSelectChange","COMPONENTS_MAP","DeleteArea","lowerCasedSearchTerm","rowSelection","selectedRows","onSelectAll","changeRows","areaCount","areaText","labelInValue","editArea","danger","deleteArea","pageSize","ManageAreas","trigger","useLazyQuery","getBussinessAreas","getDeliveryAreas","StoreList","OrderTabs","activeTab","setActiveTab","menus","ORDER_STATUS","getStyleForSelectedTab","orderCountData","getOrderCountComponent","menu","refundableCount","getRefundableOrders","_props$refundableOrde","_props$refundableOrde2","_props$refundableOrde3","_props$refundableOrde4","_props$refundableOrde5","_props$refundableOrde6","_props$refundableOrde7","_props$refundableOrde8","_props$refundableOrde9","refundableOrdersCountData","refundableOrdersCount","statusCount","TabButtons","handleTabStatus","handleTabClick","LogisticService","getOrderInfoById","fetchedOrder","LogisticAction","getYandexPickupSlots","getYandexDeliveryMethods","ErrorAction","_data$data2$express_d","_data$data3$express_d","availableTariffs","express_delivery","available_tariffs","allowed","isCourierAvailable","_getState$LogisticRed","createYandexClaim","confirmYandexClaim","getYandexClaimInfo","_data$data4","_data$data4$logisticP","_data$data4$logisticP2","claimInformation","_data$data5","_data$data5$logisticP","_data$data5$logisticP2","setTimeout","cancelYandexClaim","getYandexExpressRiderInfo","useGetOrderInfoByIdMutation","useGetYandexPickupSlotsMutation","useCreateYandexClaimMutation","useConfirmYandexClaimMutation","useCancelYandexClaimMutation","useGetYandexClaimInfoMutation","useGetYandexDeliveryMethodsMutation","useGetYandexExpressRiderInfoMutation","RefundForm","closeModal","onSubmit","form","Form","useForm","class","orderNumber","storeInfo","layout","scrollToFirstError","onFinish","reason","Item","required","Input","max","min","pattern","InputNumber","htmlType","DeliveyFeeInfo","_order$orderType","_order$deliveryCharge","_order$deliveryCharge2","_order$deliveryCharge3","_order$deliveryCharge4","orderType","Tooltip","colSpan","Info","fontSize","TableItemsDetail","_props$order8","_props$order8$ordered","_props$order9","_props$order9$discoun","_props$order10","_props$order10$discou","_props$order10$discou2","_props$order11","_props$order11$loyalt","_props$order12","_props$order12$loyalt","_props$order12$loyalt2","_props$order13","_props$order14","_props$order14$totalO","getItemInfo","_item$baseLanguage","sections","m","getModifiersInfo","_modifier$baseLanguag","op","getOptions","_op$baseLanguage","_op$price","quantity","orderedMenu","getItemRow","_item$price","getSubTotal","_props$order","_props$order$discount","_props$order4","_props$order4$loyalty","_props$order7","_props$order7$itemsTo","_props$order2","_props$order3","_props$order3$discoun","_props$order5","_props$order6","_props$order6$loyalty","discountApplied","discountAmountAvailedByCustomer","itemsTotalPrice","loyaltyApplied","redeemAmount","DeliveryFeeInfo","DeliveryPartner","setDisabled","coldbagNeeded","serviceName","_result$message","_error$message","CheckDeliveryFee","opertation","renderButton","fee","client_order_id","estimated_delivery_fee","estimated_pickup_time","estimated_delivery_time","_result","_result2","_result3","restheroOrderId","_order$logisticPartne7","_order$logisticPartne8","_order$logisticPartne9","_order$logisticPartne10","_order$logisticPartne11","_order$logisticPartne12","_order$logisticPartne13","_order$logisticPartne14","_order$logisticPartne15","_order$logisticPartne16","_order$logisticPartne17","_order$logisticPartne18","_order$logisticPartne19","_order$logisticPartne20","_order$logisticPartne21","_order$logisticPartne22","_order$logisticPartne23","_order$logisticPartne24","_order$logisticPartne25","_order$logisticPartne26","_order$logisticPartne27","_order$logisticPartne28","_order$logisticPartne29","_order$logisticPartne30","_order$logisticPartne31","_order$logisticPartne32","_order$logisticPartne33","_order$logisticPartne34","_order$logisticPartne35","_order$logisticPartne36","_order$logisticPartne37","_order$logisticPartne38","_order$logisticPartne39","orderCallbackResponse","rowSpan","driver","phone_number","timeline","CancelOrder","setReason","cancelOrderResponse","defaultChecked","cancelReason","_result$message2","TabPane","Tabs","DeliveryService","defaultActiveKey","tab","TalabatComponent","orderShared","checkIfDeliverySelected","isSelected","CheckDeliveryModal","changed","deliveryType","pressYes","fun","pressNo","Chceck","OrderButton","handleDelivery","deliveyType","ConfirmClaim","showButtons","setShowButtons","confirm_claim","sync","ConfirmClaimButton","confirmClaim","CreateClaim","reduxDispatch","setOptions","createClaim","vehicleClass","_method$name","VehicleTypePicker","Radio","Group","onChangeisThermalBagNeeded","getAllDeliveryMethods","ClaimInfo","_Object$keys","riderInfo","setRiderInfo","performer_info","Object","keys","phone","cancelOrder","cancelClaim","cancelClaimInfo","ModalTabs","handleTabChange","YangoSupport","_orderInfo$logisticPa","_orderInfo$logisticPa2","_orderInfo$logisticPa3","_orderInfo$logisticPa4","_orderInfo$logisticPa5","_orderInfo$logisticPa6","_orderInfo$logisticPa10","_orderInfo$logisticPa11","_orderInfo$logisticPa12","createClaimResponse","rel","_orderInfo$logisticPa7","_orderInfo$logisticPa8","_orderInfo$logisticPa9","clipboard","writeText","fetchOrderDetails","getyandexOrderInfo","p","CancelClaim","_data$data$logisticPa","_data$data2$logisticP","_data$data2$logisticP2","_data$data2$logisticP3","isCancelled","Yandex","fetchOrderDetailsByID","validateYandex","_data$data$fetchedOrd","_data$data$fetchedOrd2","yandexMetadata","_yandexMetadata$creat","_yandexMetadata$creat2","confirmClaimResponse","CareemService","sendORderToCareem","trackCareemOrder","cancelCareemOrder","useSendORderToCareemMutation","useTrackCareemOrderMutation","useCancelCareemOrderMutation","sendOrderToCareem","allowSendOrderToCareem","CAREEM_NOW","createDeliveryResponse","deliveryStatus","_result$error","_careemOrder$captain","_careemOrder$captain2","careemOrder","tracking_url","captain","getCareemORderStatus","ClaimInfoTable","cancelCareemORder","Support","orderNo","heading2","CareemSupport","reference","setCareemOrder","HomeTab","isOpen","allowSendOrderToDZ","DELIVERY_ZONE","_DZOrder$status","DZOrder","renderRow","rider_name","rider_phone_number","fetchLatestClaimInfo","useGetORderInfo","setDZOrder","getDZOrderStatus","abc","DZSupport","DeliveryZone","LogisticIntegrationsContext","SET_STATE","islyveGlobalModalOpen","LogisticContextProvider","logisticState","updateState","useLogisticContext","context","LyveGlobalService","sendORderToLyveGlobal","trackLyveGlobalOrder","cancelLyveGlobalOrder","useSendORderToLyveGlobalMutation","useTrackLyveGlobalOrderMutation","useCancelLyveGlobalOrderMutation","CreateOrder","isAllowedToSend","isEmpty","lyveGlobalOrderInfo","order_status","driver_phone","driver_id","ORDER_STATUSES","CancelORder","isCancellable","canOrderBeCancelled","useLyveGlobalGetORderInfo","setLyveGlobalOrderInfo","getlyveGlobalOrderInfo","closeModel","INTEGRATION_NAMES","LogisticModalSelector","openType","selectedIntegration","SelectedLogistics","setopenType","selectedDelivery","setSelectedDelivery","setSelectedIntegration","isInterated","isIntegrationDialogOpen","activeIntegrations","odr","sendToMursool","MarsoolComponent","updatedOrder","shouldRenderYandexButton","shouldRenderMarsoolComponent","shouldRenderCareemButton","CareemNOW","shouldRenderDeliveryZone","shouldRenderLyveGlobal","LyveGlobal","modalType","Stripe","_orderInfo$orderCheck","_orderInfo$orderCheck2","_orderInfo$orderCheck3","paymentGatewayInfoModal","setPaymentGatewayInfoModal","cartId","_orderInfo$orderCheck4","_orderInfo$orderCheck5","Index","RefundButton","RefundOrderInfo","_rowData$refund","_rowData$refund2","_rowData$refund3","_rowData$refund4","_rowData$refund5","_rowData$refund6","_rowData$refund7","_rowData$refund8","_rowData$refund8$stri","_rowData$refund9","stripeResponse","created","RefundButtonStatus","useOrder","useSWR","fetcher","refreshInterval","revalidateOnFocus","refreshWhenHidden","refreshWhenOffline","revalidateOnMount","revalidateOnReconnect","revalidateOnWindowFocus","CareemStatus","_careemData$data","_Status$careemData$da","_Status$careemData$da2","_careemData$data3","_Status$careemData$da3","_Status$careemData$da4","_careemData$data4","isCareemPending","careemData","useGetCareemStatus","_UTILS$getCurrentUser2","_includes","_careemData$data2","Status","OrderDetail","_order$deliveryAddres16","_order$deliveryAddres17","_order$userInfo3","_order$orderType2","_order$dineIn","_order$dineIn2","_order$orderType3","_order$pickup","_order$pickup2","_order$pickup3","_order$orderType4","_order$userInfo4","_order$userInfo5","_order$orderType5","_order$preOrder","_order$preOrder2","_order$preOrder3","_order$discountApplie","_order$discountApplie2","_order$orderLevelSpec","_order$orderLevelSpec2","_order$orderType6","_order$orderType7","tabStatus","talabatModal","setTalabat","setChanged","componentRef","handlePrint","useReactToPrint","content","zone","guess","Header","orderPlacedTime","fromNow","RedoOutlined","PrinterOutlined","isPreOrder","getGoogleMapLink","_order$deliveryAddres14","_order$deliveryAddres15","gLink","deliveryAddress","street","focus","tableNumber","vehicleInfo","PaymentInfo","selectedPaymentMethod","orderingPlatform","getDeliveryAddress","_order$deliveryAddres","_order$deliveryAddres2","_order$deliveryAddres3","_order$deliveryAddres4","_order$deliveryAddres5","_order$deliveryAddres6","_order$deliveryAddres7","_order$deliveryAddres8","_order$deliveryAddres9","_order$deliveryAddres10","_order$deliveryAddres11","_order$deliveryAddres12","_order$deliveryAddres13","add","building","appartmentNo","lifetimeSpending","preOrderSlotStartTime","preOrderSlotEndTime","orderLevelSpecialRequest","shouldRenderTalabatComponent","Talabat","cb","SelectedIntegrations","LocalModal","Order","handoleOrderId","currentOrderId","RefundNotRequiredConfirmation","OrdersPanel","getOrdersByStatus","setCurrentOrderId","setRejectReason","setOrder","refundableMutate","refundNotRequiredInfo","setRefundNotRequiredInfo","visible","refundForm","setRefundForm","GetNoOrderComponent","icon","PreparingFooter","OnTheWayFooter","CompleteOrderFooter","RefundsFooter","ScheduleFooter","getOrderInfoByID","_item$orderNumber","_item$orderNumber$toS","Search","_e$target","or","sendToQuiqup","ord","o","revalidate","OrderRejectForm","_rejectReason$values","_rejectReason$values2","_rejectReason$errors","_rejectReason$values3","_rejectReason$errors2","_rejectReason$errors3","_rejectReason$values4","_rejectReason$values5","rejectReason","handleErrors","fetchOrderInfo","Checkbox","isRefundRequired","useRefundableOrder","mutate","useGetOrderMetaData","OrderMetaDataContext","OrderMetaDataProvider","audio","Audio","useInterval","preOrderBeep","playAudio","playPromise","mp3","play","useGetORderByStatus","setOrders","useOrderMetaDataContext","_result$data2$orders","LiveOrders","setTabStatus","checkRefundableOrdersCount","checkPendingOrdersCount","_rejectReason$values6","_rejectReason$values7","_rejectReason$values8","validateRejectReason","cancelOrderReason","rejectedOrderReason","pause","handleSound","TextPassword","Password","AddAdminUser","setUser","confirmPassword","addUser","_user$values8","_user$values8$email","_user$values","_user$values2","_user$values3","_user$values4","_user$values5","_user$values5$passwor","_user$values6","_user$values7","objUser","clearFields","sharedProps","StoreAccessRightsList","_props$user","getUserStoresByUserId","tempArr","pulledStores","modifiedArr","getStoreList","addUserToStore","deleteUserFromStore","getUserDataWithStores","Row","ManageAdminUsers","UserRow","editUser","users","CreateAdmin","setUsers","getAdminUsersByBrand","DeleteComponent","getTitle","Heading","onCancel","onDelete","BulkMenu","fileInputRef","setFile","footer","dangerouslySetInnerHTML","__html","res","MenuAction","CloudUploadOutlined","accept","files","ItemContainer","_deleteModal$item","_deleteModal$item$bas","items","setItems","deleteModal","setDeleteModal","deleteItemIndex","bulkMenuModal","setBulkMenuModal","align","renderTitleWithImage","renderDate","createdAt","toDateString","toLocaleTimeString","math","updateItem","onClickDeleteButton","getItemsByBrand","findIndex","handleCancel","_item$baseLanguage$ti","_response$message","handSearch","defaultPageSize","CreateItem","fileList","setFileList","previewOpen","setPreviewOpen","previewImage","setPreviewImage","handleImage","handleBasicInfo","uploadButton","PlusOutlined","marginTop","Upload","padding","listType","info","list","onPreview","preview","reader","FileReader","readAsDataURL","onload","onerror","getBase64","originFileObj","beforeUpload","isJpgOrPng","isLt1M","onRemove","_item$values$itemImag","List","_file$response","_file$response$data","List1","_file$response2","_file$response2$data","addItem","Context","Accordion","setSelected","toggleItem","useAccordion","SingleGroup","_modiferGroup$modifie2","_modiferGroup$modifie3","_modiferGroup$modifie4","_modiferGroup$modifie5","_modiferGroup$modifie6","modiferGroup","deleteModifierGrp","myRef","outside","_myRef$current","contains","document","addEventListener","removeEventListener","modifierGroupId","_modiferGroup$modifie","updateGroup","SingleModifer","_ref$current","inlineStyle","scrollHeight","modifiers","modifer","_modifer$modifierId","_modifer$modifierId$b","_modifer$modifierId2","modifierId","TextInputReadOnly","ViewGroup","_row$baseLanguage","setViewGroup","SearchInput","setSearchTerm","autoComplete","AttachModifierGroupWithItem","MemizedModifiers","getItemDetail","checkedRows","setCheckedRows","some","handleRowClick","prevCheckedRows","updatedArray","existingIndex","RemoveRedEyeOutlined","viewGroup","Data","FilteredData","_searchTerm$toLowerCa","searchTermLower","group","_group$baseLanguage","_group$baseLanguage$n","_group$baseLanguage$n2","modifierGroups","Empty","ModifierService","getModifierGroups","createModifierGroup","updateModifierGroup","deleteModifierGroup","getModifierList","createNewModifier","deleteModifier","upDateModifier","unLinkModifierFromGroup","getModifierGroup","getModifierOptionInfo","getStoreModifiers","useGetModifierGroupsMutation","useCreateModifierGroupMutation","useUpdateModifierGroupMutation","useDeleteModifierGroupMutation","useGetModifierListMutation","useCreateNewModifierMutation","useDeleteModifierMutation","useUpDateModifierMutation","useUnLinkModifierFromGroupMutation","useGetModifierGroupMutation","useGetModifierOptionInfoMutation","useGetStoreModifiersMutation","require","GroupWithModifer","attachedModifierGroups","brandModifiers","setbrandModifiers","setList","openGroupModal","setopenGroupModal","getAllModiferGroups","getCategoryView","ModifierRow","attachedModifiersLookup","keyBy","_item$modifierGroupId","unattachedModifiers","AttachedModiers","BrandModifers","isMobile","cat","ReactSortable","animation","onUpdate","_selected$modifierGro","oldIndex","newIndex","sortModiferGrp","UpdateItem","_router$location2","_router$location2$sta","_result$data$itemImag","urls","img","handleDeleteCancel","AntdModal","PackageTabs","subscribedPlan","activeKey","centered","PackageInfoTwo","getBgClass","isPackageSubscribed","billingCycle2","subscribed","packageIdentifier","originalPrice","subscribeNewPackage","cycle","isSubscribed","subscribePackage","Packages","_C$packageHeader","setSubscribedPlan","packages","setPackages","URLSearchParams","search","check_PackageValidity","PackageUtil","getAllActivePackages","subscribedPackage","_result$data4","_result$data4$subscri","_result$data$subscrib","handleSubscription","sessionStorage","successRedirectURL","split","failureRedirectURL","axiosRes","gatewayData","msgs","msg2","getTabDiscount","planTYpe","selectedPackage","discountPercent","discountText","toLocaleString","paymentVerified","subscribedPackge","totalPrice","TRACKING_EVENTS","verifyPackagePayment","verifyPackage","pckg","YangoOrderInfo","YandexClaimInfo","LyveGlobalOrderInfo","DZOrderInfo","courierModal","setCourierModal","CareeemOrderInfo","CareemClaimInfo","ShowCourierData","showRefundModal","orderService","getOrderInfoByOrderId","useGetOrderInfoByOrderIdMutation","ShowOrderDetail","_rowData$userInfo","_rowData$userInfo2","_rowData$storeInfo","_rowData$storeInfo$ba","_rowData$orderType","_rowData$deliveryAddr8","_rowData$deliveryAddr9","_rowData$userInfo3","_rowData$orderType2","_rowData$dineIn","_rowData$dineIn2","_rowData$orderType3","_rowData$pickup","_rowData$pickup2","_rowData$pickup3","_rowData$selectedPaym","_rowData$selectedPaym2","_rowData$selectedPaym3","_rowData$selectedPaym4","_rowData$orderType4","_rowData$orderLevelSp","_rowData$orderLevelSp2","_rowData$discountAppl","_rowData$discountAppl2","_rowData$discountAppl3","_rowData$userInfo4","_rowData$userInfo5","_rowData$orderType5","_rowData$preOrder","_rowData$preOrder2","_rowData$preOrder3","replaceAll","modalTYpe","LogisticPartnerModalsContainer","_rowData$deliveryAddr","_rowData$deliveryAddr2","_rowData$deliveryAddr3","_rowData$deliveryAddr4","_rowData$deliveryAddr5","_rowData$deliveryAddr6","_rowData$deliveryAddr7","discountValue","declineOrderReason","orderCancelReason","Option","OrderHistory","totalPages","currentPage","setRowData","refundOrder","setRefundOrder","Link","to","getOrderHistory","pageNo","searchOn","selectedSearchCondition","page","getParams","handleStateChange","searchByKeys","setSelectedSearchCondition","suffix","Clear","SearchOutlined","total","showQuickJumper","showSizeChanger","filters","PlayPause","_IsPublished$data","_IsPublished$data2","handlePlayPause","IsPublished","isItemPublished","_item$unavailableStor","isNotAvailableInCurrentStore","unavailableStores","currentStoreId","nextAvailableTime","isAfter","PauseCircleOutline","PlayArrow","Inventory","ItemsListArr","_item$baseLanguage$ti2","MenuService","tagTypes","getBrandMenus","addNewMenu","getMenuInfo","getBrandItems","getMenuCatInfo","linkStoreWithMenu","linkCategoryWithMenu","sortCategoryInMenu","toggLeStoreInMenuCategoryITem","getStoreItems","useGetBrandMenusMutation","useAddNewMenuMutation","useLinkStoreWithMenuMutation","useLinkCategoryWithMenuMutation","useSortCategoryInMenuMutation","useToggLeStoreInMenuCategoryITemMutation","useGetMenuInfoMutation","useGetMenuCatInfoMutation","useGetBrandItemsMutation","useGetStoreItemsMutation","useGetItemsByStoreId","usePauseItem","setPauseModalState","getItemsByStoreId","playPauseItem","newArr","PauseModalContainer","PauseModel","title1","title2","_PauseModel$deafaultO","_PauseModel$deafaultO2","deafaultOption","_PauseModel$deafaultO3","_PauseModel$modifier","_PauseModel$modifier$","setPauseModel","ItemList","Facebook","shopUrl","getUrl","platform","storeFrontURL","readOnly","Instagram","Jeebly","Quiqup","Telr","Whatsapp","company","Messenger","Checkout","setShopUrl","unwrap","_data$data2$setting","fetchSettings","loyaltyService","createLoyalty","updateLoyalty","getLoyaltyDetailsByBrandName","getUserWalletBalance","getUserWalletTransactionHistory","createUserWalletTransaction","getAllBrandCustomers","overrideExisting","useCreateLoyaltyMutation","useUpdateLoyaltyMutation","useGetLoyaltyDetailsByBrandNameMutation","useGetUserWalletBalanceMutation","useGetUserWalletTransactionHistoryMutation","useCreateUserWalletTransactionMutation","useGetAllBrandCustomersMutation","Customers","setCustomers","_data$data$users","getBrandCustomers","getWindowDimensions","innerWidth","innerHeight","useWindowDimensions","windowDimensions","setWindowDimensions","handleResize","LoadPreviewWithDevice","imgSrc","imgDes","ReactDevicePreview","device","scale","LoadPreview","Marketing","setImageSrc","setDes","_result$data$","_result$data$$baseLan","_result$data$2","_result$data$2$baseLa","_result$data$3","_arr$key","_arr$key$baseLanguage","_arr$key2","_arr$key2$baseLanguag","_arr$key3","renderSelection","BubbleTopMessage","Step","_props$step14","_props$step14$transla","Panel","Collapse","playVideo","getVideoId","getActionButtonAgainstStep","_props$step","_props$catelougeType","taskType","_props$step2","_props$step3","_props$step3$translat","_props$step4","_props$step4$translat","addTaskToDone","translations","video_url","openModal","_props$step5","pushFrom","_props$step6","previewStore","video_id","pop","getYoutubeThumbNail","quality","quality_key","getVideoContent","_props$step7","_props$step7$translat","_props$step8","_props$step9","_props$step10","_props$step10$transla","DetailView","_props$step11","_props$step11$transla","_props$step12","_props$step12$transla","_props$step13","_props$step13$transla","caption","getDefaultActiveKey","scrollTo","behavior","top","offsetTop","opened","collapsible","enabled","isCompleted","Tag","marginBottom","ModalSelectStore","GetStarted","steps","setSteps","videoId","setVideoId","modalVideoOpen","setModalVideoOpen","getGuidanceFlowSetupStatus","getEnabled","_steps","getOpened","_steps2","sandbox","getOrdersHistory","Space","direction","startData","endData","Stats","cardEarning","OnlineOrderTable","handlePageChange","setPage","_row$orderCheckoutOnl","_row$orderCheckoutOnl2","_val$baseLanguage","Orders","_state$orderHistory","_state$orderHistory$d","_state$orderHistory2","_state$orderHistory2$","orderHistory","setLocalStateData","resetstate","pageNumber","_result$data$count","totalOrders","cardMachineOrdersEarning","codeEarning","cashOrdersEarning","totalCodEarning","onlineOrdersEarning","_result$error2","OnlineOderTable","PaymentLinkStats","PaymentLinkTable","PAID_STATUS","PaymentLinks","_paymentLinkData$data","setEarning","paymentLinkData","setPaymentData","getPaymentLinksHistory","_result$data2$fetchLi","fetchLinks","CustomerTable","CustomersReport","_customers$data","getCustomerReport","customerReport","Discount","discounts","setDiscounts","fetchAllDiscounts","formatTime","renderPlayPauseComponent","reanderTtile","renderType","reanderAvailablity","editCoupon","editCouponPage","_item$discountName","_item$discountCode","addDiscount","useAllItems","Itemloader","DiscountForm","_props$state8$errors","_props$state9$errors","_props$state13","_props$state13$values","_props$state14","_props$state14$values","_props$state15","_props$state15$values","_props$state17","_props$state17$values","_props$state18","_props$state18$values","_props$state19","_props$state19$errors","_props$state20","_props$state20$errors","_props$state21","_props$state21$values","_props$state22","_props$state22$errors","_props$state23","_props$state23$values","_props$state24","_props$state24$values","_props$state25","_props$state25$values","_props$state27","_props$state27$values","_props$state28","_props$state28$values","_props$state29","_props$state29$values","_props$state30","_props$state30$errors","_props$state31","_props$state31$values","_props$state32","_props$state32$values","_props$state33","_props$state33$values","_props$state34","_props$state34$errors","handleDiscountCode","_props$state12","handleServiceTypes","newSelectedItems","service","_props$state16","_props$state16$values","_props$state16$values2","_props$state$values$s","_props$state2$values$","newSelectedOutlets","decimal","classN","_item$baseLanguage2","_props$state26","_props$state26$values","_props$state26$values2","sitem","_props$state3$values$","momentTimezone","date1","date2","AddDiscount","numExecutions","AddForm","discountObj","UpdateDiscount","setDiscountId","setInputFields","_values$discountAppli","_values$discountAppli2","_values$serviceType","UpdateForm","UpdateDiscountContainer","BrandingPreviewMenuWidget","_UTILS$getLanguageInf","orderNowPopupConfig","closeBtn","designright","sotre_preview","taglineEN","bcstyle","textColor","cat_btn","basketstyle","preview_widget","clrr","ColorPicker","wrapperRef","notShow","handleClickOutside","useOutsideAlerter","styles","reactCSS","default","borderRadius","background","colorValue","swatch","boxShadow","popover","cover","right","bottom","left","handleClick","handleClose","SketchPicker","pkey","hex","FaviconUpload","ImgCrop","showGrid","rotationSlider","aspectSlider","showReset","modalTitle","modalOk","modalCancel","rotate","showUploadList","BrandingPlatformCustomizeAndWidget","setOrderNowPopupConfig","prev","handleConfig","designleft","para","aspect","Dragger","brandImageHomeBG","compact","inputValue","minLength","Branding","imgLoading","setImgLoading","brandLogoFirst","titleEN","sloganEN","iconUrl","_data$data$setting","_data$data4$setting","LoadingOutlined","branding","design","obj2","_info$file","_info$file$response","_info$file$response$d","_info$file2","_info$file2$response","_info$file2$response$","Image","write","outerHTML","F_Size","ProfileNumberUpdate","_state$errors","_state$errors2","_state$errors3","_state$errors4","_state$errors5","_state$errors6","oldPassword","ErrorMessages","addonBefore","getNumber","_userDetail$phoneNumb","_userDetail$phoneNumb2","validateInput","newPhoneNumber","ProfilePasswordUpdate","_state$errors7","_state$errors8","_state$errors9","Profile","GeneralSettings","orderPageLink","setOrderPageLink","reset","domainName","DomainUpdateModal","browserTabTitle","BusinessTabSettings","tabBarStyle","BusinessSettings","WhatsAppButton","buttonPos","tooltipPos","Help","ADD_CITY","ADD_COUNTRY","Routes","path","component","R_CONST","Menu","Modifiers","CreateModifier","UpdateModifier","Store","StateProvider","icrementCounter","counter","LiveOrderContext","LiveOrderProvider","reurnPendingOrdersCount","updateTitle","playAlarm","BgPasswordInput","isVisible","setIsVisible","TextSlider","Slider","dots","arrows","infinite","slidesToShow","slidesToScroll","autoplay","autoplaySpeed","LanguageToggle","authenticated","useToggleLanguage","setlang","getDir","_document","_obj$lang","changeLanguage","getElementsByTagName","setAttribute","clang","Language","switchLanguage","evt","SignIn","_stateLogin$errors","_stateLogin$values5","invalidLogin","setInvalidLogin","stateLogin","loginValidation","_stateLogin$values","_stateLogin$values$ph","_stateLogin$values2","_stateLogin$values2$p","_stateLogin$values3","_stateLogin$values3$p","_stateLogin$values4","_stateLogin$values4$p","formIsValid","itemFilter","_success$data5","_success$data5$user","_success$data6","_success$data6$user","_success$data$user2","_success$data7","_success$data8","_success$data9","_success$data9$user","_success$data9$user$b","_success$data10","_success$data10$user","_success$data11","_success$data11$user","_success$data12","_success$data12$user$","_success$data13","_success$data13$user$","_success$data14","_success$data14$user","_success$data14$user$","_success$data15","_success$data15$user","_success$data15$user$","_success$data16","_success$data16$brand","_success$data17","_success$data17$user","_success$data17$user$","_success$data18","_success$data18$user","_success$data18$user$","_success$data19","_success$data19$user","_success$data19$user$","_success$data20","_success$data20$user","_success$data21","_success$data21$user","storePreviewURL","brandSettings","isVerified","_success$data4","_success$data4$user","LoginAction","now","_success$data","_success$data$user","_success$data$user$br","_success$data2","_success$data2$user","_success$data2$user$b","_success$data3","_success$data3$user","_success$data3$user$b","_success$data3$user$b2","USER","loginUser","userName","stateRegister","verifyAccount","year","getFullYear","ServiceTypeItem","_window","onSubmitnextStep","LanguageSelector","objLang","setObjLang","defaultValue","RegisterStep4","superCategories","setSuperCategories","Skeleton","avatar","onSubmitRegisterStep","BgTextInput","Footer","RegisterStep1","_props$stateRegister","_props$stateRegister$","_props$stateRegister2","_props$stateRegister3","_props$stateRegister4","_props$stateRegister5","_props$stateRegister6","_props$stateRegister7","_props$stateRegister8","_props$stateRegister9","_props$stateRegister10","_props$stateRegister11","_props$stateRegister12","_props$stateRegister13","_props$stateRegister14","_props$stateRegister15","Popover","Register","setS","setHours","storeNameAr","storeEmail","storePhone","switchStep","renderRegisterStep","submitRegisterStep","nextStep","registerStoreValidation","_window2","goToDashboard","createBrandStore","registerValidation","_stateRegister$values","_stateRegister$values2","_stateRegister$values3","_stateRegister$values4","_stateRegister$values5","_stateRegister$values6","_stateRegister$values7","_stateRegister$values8","_stateRegister$values9","_stateRegister$values10","_stateRegister$values11","registerStepOne","utmTags","checkUTMTags","urlParams","utmTagsFromQuery","has","utm_source","utm_medium","utm_campaign","_document$cookie","cookies","cookie","_cookie$trim","_result$data$user","_result$data$subscrib2","_result$data2$user","_result$data2$user$br","_result$data3$brandSe","_result$data4$user","_result$data4$user$br","RegisterStep2","SideBar","collapsed","setCollapsed","Layout","Sider","breakpoint","theme","collapsedWidth","overflow","NavBar","setVisible","drawerAction","setDrawer","MenuOutlined","Drawer","TopNotificationBar","DashboardMenu","selectedKeys","defaultSelectedKeys","mode","onMenuClick","RocketOutlined","SubMenu","isEnableMenu","setIsEnableMenu","clear","LogoutAction","setCurrent","openShop","DatabaseOutlined","InfoCircleOutlined","PicRightOutlined","HistoryOutlined","SoundOutlined","MoneyCollectOutlined","TrophyOutlined","UserOutlined","InstagramOutlined","BorderOuterOutlined","ScanOutlined","MenuUnfoldOutlined","MenuBook","FileDoneOutlined","FileTextOutlined","EditOutlined","Feedback","DashboardOutlined","AimOutlined","DollarCircleOutlined","SubnodeOutlined","SettingOutlined","EyeOutlined","ShopOutlined","FormatPainterOutlined","AliwangwangOutlined","LogoutOutlined","DefaultSidebar","DashboardLayout","setDir","checkvalidity","getData","topics","contentIndex","setContentIndex","changeSelectedKey","VerifyMenu","VerificationMenu","ConfigProvider","layoutType","minHeight","Content","ResetPasswordStep2","setCode","codeError","setPassword","submitNewPassword","ResetPasswordStep1","setPhone","_phone","_phone2","_phone3","_phone4","submitForgotPassword","ForgotPassword","NewPassword","PublicRoutes","islogin","setIsLogin","authRoutes","Switch","route","Route","exact","Auth","Redirect","memo","UpdateItemContainer","withRouter","unlisten","listen","ProtectedRoute","Component","roleRequired","rest","loggedInUserToken","LoyaltyForm","_errors$specificToDel","_errors$specificToDel2","_errors$redeemablePer","_errors$maxRedeemable","_errors$welcomeBonus","_errors$welcomeBonus$","onsubmit","watch","actionType","setValue","welcomeBonus","setWelcomeBonus","isLoyaltyActive","isWelcomeBonusActive","specificToDelivery","cashbackPercentage","redeemablePercentagePerOrder","maxRedeemableValuePerOrder","handleWelcomeBonus","AddUpdateLoyaltyProgram","createLoyality","setActionType","formState","defaultValues","fetchLoyaltyDetails","commonData","minOrderValueForCashback","specificToPickup","specificToDineIn","loyaltyId","CustomersTable","renderMobileNumber","countryCode","actionButton","viewDetail","totalrecords","LoyaltyCustomers","fetchData","term","_data$data$users$user","_data$data2$users","_data$data3$users","handleCustomerState","UserLoyaltyPoints","userWalletBalance","balance","UserLoyaltyTableData","userWalletHistory","fetchUserWalletTransactionHistory","renderName","AddPoints","_errors$MANUAL_CREDIT","_errors$MANUAL_CREDIT2","MANUAL_CREDITED","CustomerDetail","_history$location3","_history$location3$st","_history$location4","_history$location4$st","_history$location5","_history$location5$st","setUserWalletHistory","setUserWalletBalance","transactionsLoader","balanceLoader","_history$location","_transactionHistory$d","_transactionHistory$d2","_transactionHistory$d3","_walletBalance$data","_walletBalance$data2","transationPayload","limit","balancePayload","transactionHistory","walletBalance","_transactionHistory$d4","_walletBalance$data3","BackArrow","CreditLoyaltyPointsModal","CreditLoyaltyPoints","_history$location2","_history$location2$st","CustomerWalletHistoryTable","CustomerWalletInfo","AreaBox","methodName","footerText","ManageDelivery","boxes","box","isAllowedToShowShippingMethod","CountryCityList","CITIES","saveArea","AddNewCity","addNewCities","getObj","_searchTerm$toLowerCa2","lowerCaseSearchTerm","_item$cityNameEN","_item$cityNameEN$toLo","_item$cityNameAR","_item$cityNameAR$toLo","CityList","DeleteCity","_selectedRow$0$areaID","selectedRow","delete_Cities","UpdateCity","_selectedCities$lengt","edit_cities","useCurrentLang","CitiesTable","_addedCities$cityDeli","_row$cityID2","_item$cityID","_item$cityID$cityName","_item$cityID$cityName2","_item$cityID2","_item$cityID2$cityNam","_item$cityID2$cityNam2","cityCount","cityText","renderModalContent","ManageCities","getCities","listCities","_item$label","_item$label$toLowerCa","_item$label2","_item$label2$toLowerC","COUNTRIES","AddNewCountry","countryList","addCountries","useSearch","CountryList","delete_countries","_selectedCountries$le","edit_country","CountriesTable","_addedCountries$count2","_a$countryID","_a$countryID$countryN","_b$countryID","_row$countryID","_row$countryID2","w","_addedCountries$count","_item$areaID$countryN","_item$areaID$countryN2","_item$countryID","_item$countryID$count","_item$countryID$count2","_item$countryID2","_item$countryID2$coun","_item$countryID2$coun2","_item$countryID3","_item$countryID3$coun","_item$countryID3$coun2","countryCount","countryText","DeleteCountry","UpdateCountry","ManageCountries","getCountries","listOfCountries","AlertBox","_props$modal","_props$modal2","_props$modal3","_props$modal4","modal","PressYes","successBtnText","cancelBtnText","ModalBox","setModal","ShippingMethodsList","toggleShippingMethod","isAllowed","shippingMethodName","routeUrl","goToAreas","AreaBusinessIcon","rx","_shippingInfo$brandIn","_shippingInfo$brandIn2","_shippingInfo$brandIn3","_shippingInfo$brandIn4","switchModal","disableModal","switch","shippingInfo","setshippingInfo","activeMethod","brandInfo","getBrandInfowithId","_data$data2$brand","brand","handleMethodState","_shippingInfo$activeM","returnButtonStatus","deliveryMethod","deliveryMethodStatus","_shippingInfo$activeM2","des","_data$brand$deliveryM","_data$brand","_data$brand$deliveryM2","deliveryMethods","toggleSwitchValue","ManagePaymentLinkHeader","getAllPaymentLinks","goToAddPaymentLinkPage","AllPaymentLinksTable","LINKS","linkCreationDate","paymentLink","getPaymentLinkUrl","ViewAllPaymentLinks","setPaymentLinks","back","AddPaymentLink","_errors$amount","_errors$storeSelectio2","_errors$storeSelectio3","_errors$purposeOfPaym","_errors$message","Controller","control","_errors$storeSelectio","field","convertStoresToArray","CreatePaymentLinks","getValues","isSubmitting","_Number","redirectToPaymentLink","ViewPaymentTable","ViewPaymentLink","setPaymentLink","PaymentLinkUrl","createdBy","linkurl","copyLink","webWhastsappLinkUrl","shareonWhatsapp","ViewPaymentLinkInfo","ModifiersList","updateM","setmodifiers","getAllModifers","_data$data$message","_data$error","ModifierGroupList","groups","ModifierGroup","setGroups","CreateModifierGroup","_modifierGroup$values9","_modifierGroup$values10","_modifierGroup$errors","_modifierGroup$errors2","_modifierGroup$values11","_modifierGroup$errors3","_modifierGroup$values12","_modifierGroup$values13","_modifierGroup$errors4","modifierGroup","setModifierGroup","minimumAllowedSelection","seterrors","_modifierGroup$values","_modifierGroup$values2","_modifierGroup$values3","_modifierGroup$values4","_modifierGroup$values5","_modifierGroup$values6","_modifierGroup$values7","_modifierGroup$values8","handleText","handleSelection","addNewModifierGroup","ViewModifier","maximumOrderQuantity","imageURL","AttacModifierWithGroup","getAttachedModifers","mod","_mod$baseLanguage","_mod$baseLanguage$nam","_mod$baseLanguage$nam2","ModifierView","_mod$modifierId","_mod$modifierId$baseL","_mod$modifierId2","_mod$modifierId3","unlinkModFromGroup","_mod$modifierId4","ModifierDragger","reOrderCategory","UpdateModiferGroup","_history$location3$st2","_history$location5$st2","_m$values$baseLanguag2","_m$errors$baseLanguag","_m$values6","_m$values7","_m$errors","setM","_m$values","_m$values$baseLanguag","_m$values2","_m$values3","_m$values4","_m$values5","_history$location$sta","_history$location$sta2","_history$location2$st2","_history$location$sta3","_history$location$sta4","attachedModifiersPromise","allBrandModifiersPromise","getAllBrandModifers","_item$modifierId","_history$location4$st2","_data$data$message2","_data$error2","ModifierRowWithDrag","_history$location6","_history$location6$st","_history$location6$st2","_selected$modifierId","UpdateModifiersGroupContainer","_router$location$stat2","AddModifierOption","_modifier$values7","_modifier$values7$bas","_modifier$errors","_modifier$errors$base","_modifier$values8","_modifier$errors2","_modifier$values9","_modifier$errors3","_modifier$values10","_modifier$errors4","setModifier","minimumOrderQuantity","Num","_modifier$values","_modifier$values$base","_modifier$values2","_modifier$values2$bas","_modifier$values3","_modifier$values4","_modifier$values5","_modifier$values6","_modifier$values6$bas","_data$data4$data","getSingleModifierInfo","UpdateModifiersContainer","PauseModifiers","_a$baseLanguage$name","_b$baseLanguage","ModifierListArr","_item$baseLanguage$na","_item$baseLanguage$na2","useGetModifiersByStoreId","getModifiersByStore","usePlayPauseModifier","handleplayPauseModifier","StoreModifierList","HorizontalStarRating","totalStars","handleStarClick","starElements","AverageRatingDisplay","averageRating","feedbackRatingCount","totalCount","StarRating","orderRating","starContainerClassName","Progress","percent","strokeColor","UserFeedbacksTable","feedbacks","avgOrderRating","feedback","_feedback$customerInf","_feedback$orderInfo","customerInfo","comments","AverageFeedbackRating","SelectBox","margin","OrderTypes","RatingTypes","UserFeedbacks","_state$userFeedbacks","_state$userFeedbacks2","_state$userFeedbacks3","userFeedbacks","allUserFeedbacks","selectedOrderType","selectedRatingType","isCommentsOnly","showLoadMore","fetchAllOrdersFeedbacks","buildApiRequestParams","newData","allfeedacks","handleChangeOptions","CustomSelctBox","useGetStoreAddedMappedAreas","isPolygonRequired","handleAddIsAddedPropToBuisnessAreas","countryCities","addedArea","_addedArea$mappedArea","MyMapComponent","setPolygons","plottedPolygons","operationType","drawingEnabled","setDrawingEnabled","mapRef","setZoom","setShape","setCenter","setAddress","handlePolygonEdit","updatedPaths","paths","point","_listenersRef$current","listenersRef","lis","remove","polygonRef","drawingManagerRef","onEdit","_polygonRef$current","_polygonRef$current$g","_polygonRef$current$g2","nextPath","getPath","getArray","_listenersRef$current2","addListener","infoWindows","setInfoWindows","_mapRef$current","LatLng","border","removeDrawing","setMap","DrawingManager","onPolygonComplete","_polygon$getPath","_polygon$getPath$getA","_polygon$getPath3","_mapRef$current2","_mapRef$current3","draggable","editable","_polygon$getPath2","bounds","LatLngBounds","extend","fitBounds","getZoom","onOverlayComplete","overlay","drawingMode","drawingControl","drawingControlOptions","ControlPosition","LEFT_CENTER","drawingModes","markerOptions","polylineOptions","rectangleOptions","circleOptions","polygonOptions","fillOpacity","strokeWeight","_polygon$areaInfo","_polygon$areaInfo$map","_polygon$coordinates$","_polygon$coordinates$2","_polygon$areaInfo2","_polygon$areaInfo2$tr","_polygon$areaInfo2$tr2","Polygon","onMouseUp","fillColor","strokeOpacity","onMouseOver","onMouseOut","InfoWindow","onCloseClick","CustomMapAreaHeader","handledeliveryFee","areaName","useGetCustomBuisnessAres","customBuisnessAreas","setCustomBuisnessAreas","DrawAreaContainer","_countriesData$countr","onStoreChange","areaState","selectedCity","handleCountryChange","handleCityChange","addAreafromMap","polygons","countriesData","countryOptions","cityOptions","_countriesData$countr2","_countriesData$countr3","_country$name","_selectedCountry$name","EditDrawnArea","useParams","setSelectedCountry","setSelectedCity","getStoreMappedAddedAreas","getAreaInfo","mappedAreaBaseDeliveryMethodId","_result$data4$mappedA","_result$data4$mappedA2","_result$data4$mappedA3","_result$data5","_result$data6","_result$data7","_data$mappedAreaInfo","_data$mappedAreaInfo2","_data$mappedAreaInfo3","_data$mappedAreaInfo4","_result$data8","_result$data8$mappedA","_result$data8$mappedA2","_result$data8$mappedA3","_result$data8$mappedA4","_result$data9","_result$data9$mappedA","_result$data9$mappedA2","_result$data9$mappedA3","isPolygonDrawn","_result$data10","_result$data10$mapped","_result$data10$mapped2","_result$data10$mapped3","_result$data11","convertedPolygon","Id","_isValidUpdateInputFi","_state$deliveryTime4","_state$deliveryTime5","_state$deliveryTime6","isValidUpdateInputFields","updateAreaParams","_selectedCity$name","_selectedCity$name2","_selectedCountry$name2","DrawAreaOnMap","setPlottedPolygons","setAreaState","ID","_areaState$deliveryTi","_areaState$deliveryTi2","_areaState$deliveryTi3","isValidDrawAreInputFields","addAreaParams","_polygons$coordinates","useToggleStatus","getAddedPolygonBasedAreas","CurrencyFormatter","_Intl$NumberFormat","MAPPED_AREA_MODAL_ID","changeAreaStatus","toggleAreaStatus","_val$currentLanguage$","_item$mappedAreaInfo","_item$mappedAreaInfo$","_item$mappedAreaInfo$2","_item$mappedAreaInfo$3","_item$mappedAreaInfo2","_item$mappedAreaInfo3","_item$mappedAreaInfo4","cityName","onRow","rowIndex","isCustom","ShippingMethodContext","ShippingMethodContextProvider","shippingState","distanceBasedAreas","updateShippingState","useShippingContext","useGetAllZones","getAddedDeliveryZones","ZoneListing","_deleteModal$item2","_deleteModal$item2$ba","changeZoneStatus","RenderStatus","distanceBaseDeliveryMethodId","toggleZoneStatus","RenderActions","FilteredZones","_shippingState$distan","_item$name","_item$name$toLowerCas","zoneCount","zoneText","zoneID","deleteZone","ButtonsDropDown","addArea","openDistanceModal","viewOptions","_area$translations$cu","_area$translations$cu2","cityCountry","_item$translations","_item$translations$en","_item$translations$en2","_item$translations2","_item$translations2$a","_item$translations2$a2","_item$city","_item$city$name","_item$city$name$en","_item$city2","_item$city2$name","_item$city2$name$ar","_c$area3","areaCity","_c$area","_c$area2","AddNewMapAreas","selectedAreaState","selectedAreasArray","_area$area","_area$area2","_area$area2$translati","_area$area2$translati2","_area$area3","_area$area3$translati","_area$area3$translati2","_area$city","_area$city2","_area$country","_area$country2","mappedAreasInfo","fetchAddedAreas","DeleteMapAreas","mappedAreaBaseDeliveryMethodIds","_isValidInputFields","ZoneForm","distance","AddZone","validateForm","_selectedAreaState$de","_selectedAreaState$de2","_selectedAreaState$de3","useUpdateZone","EditZone","updateZoneInfo","selectedZoneState","EditDistanceBAsedZone","ActionButtonsDropDown","MapAreasListing","useGetAllBusinessAreas","getAllBuisnessAreas","AreasListingContainer","EditMapArea","AddcustomMapArea","StoreMapAreasListing","MenuContext","categories","itemLinkedStores","categoryToUpdateDelete","indexToUpdateDelete","newMenuName","menuId","isLinkMenuWithStoresModalOpen","linkedStores","isCreateNewMenuModalOpen","newSelectedStores","MenuContextProvider","menuState","addedMenus","menuInfo","cloneMenuModal","editMenumodal","useMenuContext","useGetMenus","useUpdateMenu","getAllMenus","_rowData$baseLanguage","useDeleteMenu","MenuListing","CreateNewMenu","getMenuById","getMenu","Actions","CopyOutlined","isDefault","DeleteOutlined","LinkUnLinkMenuWithStoresModal","selectedStores","setselectedStores","_item$storeId2","getStore","_item$storeId3","toggleOption","_storeObj$serviceType","storeExists","storeObj","_storeObj$serviceType2","filteredStores","_item$storeId4","_storeObj$serviceType3","filtered","updatedStore","_item$storeId5","updatedServiceType","_item$storeId6","_storeObj$serviceType4","_storeObj$serviceType5","_storeObj$serviceType6","indeterminate","prefixCls","handleCheckboxChange","CreateNewMenuModal","handleMenuNameChange","newMenuState","setNewMenuState","resetMenuState","StoreIds","isValidate","_newMenuState$descrip","_newMenuState$descrip2","_menuState$newSelecte","_store$serviceType","_store$storeId","getStoresObject","_newMenuState$descrip3","_res$data","_res$data2","_res$error","bodyStyle","overflowY","maxHeight","AddNewMenu","UesLinkStoreWithMenu","linkMenu","LinkStoresWithMenu","_menuState$linkedStor","AntModal","useGetMenuInfo","_data$data3$error","useMakeDuplicateMenu","_menu$description","cloneMenuId","CloneMenu","_editMenu$values","_editMenu$errors","_editMenu$values2","_editMenu$errors2","makeDuplicate","editMenu","setEditMenu","handleSetErrors","EditMenu","_menuState$menuInfo4","_editMenu$values7","_editMenu$values8","menuUpdate","_menuState$menuInfo","_menuState$menuInfo$b","_menuState$menuInfo2","_menuState$menuInfo3","_editMenu$values3","_editMenu$values3$des","_editMenu$values4","_EditMenu$values","_EditMenu$values$desc","_editMenu$values5","_editMenu$values6","Menus","setCloneMenuId","useLinkUnlinkStoreWithMenu","DeleteCategory","_cat$categoryId3","_cat$categoryId3$base","_cat$categoryId","_cat$categoryId2","reload","SingleCategory","_cat$baseLanguage","editCat","unLinkMenuCat","getCategoryInfo","hidden","setHidden","_category$values2","_category$values2$bas","setCategory","trimmedName","_category$values","_category$values$base","baseLanguageName","_result$data$category","UpdateCategory","_category$errors","_category$errors$base","userDetaill","EmptyFooter","useGetBRandItems","LinkItemWithCategoryModal","brandItems","unlinkedITes","unlinkedItems","linkedItems","attachedItemsLookup","_item$itemId","getUnattachedItems","LinkUnlinkItemWithStoresModal","connectedStores","removeItemFromStore","_item$unConnectedStor","unConnectedStoreIds","unConttedID","_store$storeId$baseLa","_store$storeId2","_store$storeId2$baseL","ItemID","catID","ItemRow","deleteItem","handleStores","CategoryItem","_deleteModal$item3","_deleteModal$item3$ba","_itemToPassStoresDial","_itemToPassStoresDial2","itemToPassStoresDialog","setItemToPassStoreDialog","DIALOG_VIEW","indexToDelete","isStoreItemModalOpen","setisStoreItemModalOpen","unLinkMenuItemFromCategory","renderDialogContent","_createElement","selectedCatory","_item$itemId2","classes","getStorePreviewURL","OrderingPagePreview","ReloadOutlined","useMakeDefault","MakeDefault","setIsMakeDefault","isMakeDefaultOpen","makeMenuDeafault","closemodal","markMenuDefault","MenuEditor","_menuState$categories","_menuState$categories2","getGetMenuInfoByMenuId","handleAddCategory","handleDeleteCategory","handleUpdateCategory","updated","_data$data2$data","MakeDefaultMenuModal","newState","sortable","dataset","QRCodeGenerator","qrCodeSetting","QRCode","enableCORS","eyeColor","outer","inner","innerColor","logoWidth","logoHeight","removeQrCodeBehindLogo","logoPadding","logoPaddingStyle","qrStyle","CopyLink","DownloadButton","handleDownload","CloudDownloadOutlined","PickupDelivery","handleLogoSettings","handleColorSettings","setQrCodeSetting","logo","getElementById","html2canvas","canvas","createElement","download","toDataURL","click","_settings$setting2","SideBarRoutesWithComponent","restheroSpecificRoutes","publicRoutes","QRCodes","ShippingDelivery","adminRoutes","ReportingRoutes","MappedAreasRoutes","UpdateNewModifier","ModifiersGroup","PauseModifier","CreateModifiersGroup","UpdateModifiersGroup","CreateNewModifier","MenusLsting","MenuEdit","shippingRoutes","ScrollToTop","TabRoutePermision","VerificationInput","onKeyUp","VerifyOtp","isMounted","setIsMounted","setVerificationCode","code1","code2","code3","code4","CODE","ROUTES","seconds","setSeconds","myInterval","setInterval","clearInterval","_Object$values2","join","validateOtp","_Object$values","elmnt","blur","inputfocus","_state$values4$phoneN","resend_verification","DashBoardLayout","AuthLayout","VersionUpdate","useOffLine","handleOnline","handleOffline","useSyncTabs","handleStorageEvent","Seo","Helmet","property","ErrorBoundaryFallbackComponent","WithContextProviders","providersArray","createBrowserHistory","Home","handleRefreshClick","updatenew","RefreshModal","BrowserRouter","ErrorBoundary","FallbackComponent","FallbackUi","resetKeys","ReactNotification","dsn","release","integrations","BrowserTracing","ReportingObserverIntegration","ExtraErrorDataIntegration","DebugIntegration","routingInstrumentation","matchPath","tracesSampleRate","attachStacktrace","normalizeDepth","maxBreadcrumbs","environment","ignoreErrors","beforeSend","hint","originalException","hostname","ReactDOM","Suspense","fallback","PersistGate","App","serviceWorker","ready","registration","unregister","module","exports"],"mappings":"y1uBAGA,MAAMA,EAAeC,GAEjB,GASJD,EAAYE,UAAY,CACtBC,Q,OAASC,EAAUC,QAGNL,QClBR,MAAMM,EAAe,mBACfC,EAAW,MACXC,EAAc,kBACdC,EAA0B,CACrCC,OAAQ,mBACRC,OAAQ,gGAEGC,EAAqB,CAChCF,OAAQ,oBACRC,OAAQ,oHAIGE,EAAWC,kCAEXC,EAAsB,WACtBC,EAAoB,aAEpBC,EAAsB,cAEtBC,EAAkB,iBAClBC,EAAkB,iBAClBC,EAAgB,gBAChBC,EAAoB,2BACpBC,EAAmB,0BACnBC,EAAoB,wBACpBC,EAAmB,uBACnBC,GAAY,QACZC,GAAY,eACZC,GAAqB,kBACrBC,GAAqB,cACrBC,GAAe,WACfC,GAAuB,kBACvBC,GAAgB,WAChBC,GAAc,UACdC,GAA0B,kCAC1BC,GAAwB,iCACxBC,GAAgB,cAChBC,GAAgB,cAChBC,GAAgB,eAChBC,GAAa,OACbC,GAAe,kBACfC,GAAsB,2BACtBC,GAAsB,2BACtBC,GAAoB,cACpBC,GAAgB,cAChBC,GAAuB,qBAEvBC,GAAsB,oBACtBC,GAAqB,gBACrBC,GAAO,OAEPC,GAAkB,aAClBC,GAAgB,gBAChBC,GA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gB,GAChBC,YAAa/yJ,aACbgzJ,aAAc,CAAC,oBAAqB,eACpCC,WAAWp2H,EAAOq2H,GAChB,MAAMliJ,EAAQkiJ,EAAKC,kBACnB,OAAIniJ,GAASA,EAAMvJ,SAAWuJ,EAAMvJ,QAAQ8pB,MAAM,sBACzC,KAEFsL,CACT,IAEFtF,IAAengB,EAAM2f,iBACdgrB,eAACyvG,GAAI,GACd,ICtCoB9rH,QACW,cAA7BjM,OAAOC,SAAS05H,UAEe,UAA7B35H,OAAOC,SAAS05H,UAEhB35H,OAAOC,SAAS05H,SAAS7hI,MACvB,2D,cCPN8hI,IAAShpG,OACPtI,eAAAC,YAAA,CAAAC,SACEF,eAACuxG,WAAQ,CAACC,SAAUxxG,eAAA,QAAAE,SAAM,eAAkBA,SAC1CF,eAACoH,KAAQ,CAAC5yC,MAAOA,GAAM0rC,SACrBF,eAACyxG,KAAW,CAAC5/G,UAAWA,GAAUqO,SAChCF,eAAC0xG,GAAG,YAKZ39D,SAASs3D,eAAe,SD8GpB,kBAAmBvzH,WACrBA,UAAU65H,cAAcC,MACrBn/H,MAAMo/H,IACLA,EAAaC,YAAY,IAE1B3/G,OAAOljC,IACN6R,QAAQ7R,MAAMA,EAAMvJ,QAAQ,G,qBExIpCqsJ,EAAOC,QAAU,CAAC,SAAW,2BAA2B,OAAS,yBAAyB,WAAa,6BAA6B,YAAc,8BAA8B,QAAU,0BAA0B,KAAO,uBAAuB,QAAU,0BAA0B,cAAgB,gCAAgC,MAAQ,wBAAwB,QAAU,0BAA0B,YAAc,8BAA8B,eAAiB,iCAAiC,KAAO,uB","file":"static/js/main.b4e3f26f.chunk.js","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst PageHeading = (props) => {\n return (\n \"\"\n //
\n //

\n // {props.heading}\n //

\n //
\n );\n};\n\nPageHeading.propTypes = {\n heading: PropTypes.string,\n};\n\nexport default PageHeading;\n","export const CURRENT_USER = \"__CURRENT_USER__\";\nexport const SIXHOURS = 21600000;\nexport const STORES_INFO = \"__STORE_INFO___\";\nexport const CASH_ON_DELIVERY_OBJECT = {\n nameEN: \"cash on delivery\",\n nameAR: \"الدفع عن الاستلام\",\n};\nexport const CREDIT_CARD_OBJECT = {\n nameEN: \"credit/debit card\",\n nameAR: \"بطاقة الائتمان / الخصم\",\n};\n\n// export const BASE_URL = \"https://dev-api.resthero.io/api/v1/\";\nexport const BASE_URL = process.env.REACT_APP_BASE_API_URL;\n// export const BASE_URL = \"https://api.resthero.io/api/v1/\";\nexport const START_TIME_24_HOURS = 1652817600000;\nexport const END_TIME_24_HOURS = 1652903999000;\n\nexport const PAYMENT_TYPE_ONLINE = \"CREDIT_CARD\";\n\nexport const KEY_CAT_INFO_EN = \"categoryInfoEN\";\nexport const KEY_CAT_INFO_AR = \"categoryInfoAR\";\nexport const KEY_CAT_TITLE = \"categoryTitle\";\nexport const KEY_STORE_NAME_EN = \"___KEY_STORE_NAME_EN____\";\nexport const KEY_STORE_DES_EN = \"___KEY_STORE_DES_EN____\";\nexport const KEY_STORE_NAME_AR = \"___KEY_STORE_NAME_AR_\";\nexport const KEY_STORE_DES_AR = \"___KEY_STORE_DES_AR_\";\nexport const KEY_EMAIL = \"email\";\nexport const KEY_PHONE = \"mobileNumber\";\nexport const KEY_WHATSAPP_PHONE = \"whatsAppContact\";\nexport const KEY_PHONE_FOR_USER = \"phoneNumber\";\nexport const KEY_PASSWORD = \"password\";\nexport const KEY_CONFIRM_PASSWORD = \"confirmPassword\";\nexport const KEY_USER_TYPE = \"userType\";\nexport const KEY_ADDRESS = \"address\";\nexport const KEY_IS_CASH_ON_DELIVERY = \"isCashOnDeliveryOptionAvailable\";\nexport const KEY_IS_ONLINE_PAYMENT = \"isOnlinePaymentOptionAvailable\";\nexport const STORE_INFO_AR = \"storeInfoAR\";\nexport const STORE_INFO_EN = \"storeInfoEN\";\nexport const BASE_LANGUAGE = \"baseLanguage\";\nexport const STORE_NAME = \"name\";\nexport const AVERAGE_PREP = \"averagePrepTime\";\nexport const PICKUP_AVERAGE_PREP = \"averagePrepTimeForPickup\";\nexport const DINEIN_AVERAGE_PREP = \"averagePrepTimeForDinein\";\nexport const STORE_DESCRIPTION = \"description\";\nexport const STORE_NAME_AR = \"storeNameAR\";\nexport const STORE_DESCRIPTION_AR = \"storeDescriptionAR\";\n\nexport const KEY_LAT_LNG_ADDRESS = \"latitudeLongitude\";\nexport const KEY_MANUAL_ADDRESS = \"manualAddress\";\nexport const ZOOM = \"zoom\";\n\nexport const KEY_MAP_ADDRESS = \"mapAddress\";\nexport const KEY_IMAGE_URL = \"storeImageUrl\";\nexport const KEY_DELETE_IMG_URL = \"__DELETE_IMG_URL___\";\nexport const KEY_IS_TAX_INCLUSIVE = \"isInclusive\";\nexport const KEY_TAX_RATE = \"taxRate\";\nexport const KEY_CITY = \"city\";\nexport const KEY_TIMEZONE = \"timeZone\";\n\nexport const KEY_PAYMENT_TYPES = \"paymentOptions\";\nexport const KEY_PICKUP_PAYMENT_TYPES = \"pickupPaymentOptions\";\nexport const KEY_DINEIN_PAYMENT_TYPES = \"dineInPaymentOptions\";\nexport const KEY_SERVICE_TYPES = \"serviceType\";\n\nexport const KEY_WORKING_HOURS = \"workingHours\";\nexport const KEY_FRI = \"friday\";\nexport const KEY_FRI_END_TIME = \"fridayEndTime\";\nexport const KEY_FRI_START_TIME = \"fridayStartTime\";\nexport const KEY_FRI_SLOT2_START_TIME = \"fridayStartTimeSlot2\";\nexport const KEY_FRI_SLOT2_END_TIME = \"fridayEndTimeSlot2\";\nexport const KEY_MON = \"monday\";\nexport const KEY_MON_END_TIME = \"mondayEndTime\";\nexport const KEY_MON_START_TIME = \"mondayStartTime\";\nexport const KEY_MON_SLOT2_START_TIME = \"mondayStartTimeSlot2\";\nexport const KEY_MON_SLOT2_END_TIME = \"mondayEndTimeSlot2\";\nexport const KEY_SAT = \"saturday\";\nexport const KEY_SAT_END_TIME = \"saturdayEndTime\";\nexport const KEY_SAT_START_TIME = \"saturdayStartTime\";\nexport const KEY_SAT_SLOT2_START_TIME = \"saturdayStartTimeSlot2\";\nexport const KEY_SAT_SLOT2_END_TIME = \"saturdayEndTimeSlot2\";\nexport const KEY_SUN = \"sunday\";\nexport const KEY_SUN_END_TIME = \"sundayEndTime\";\nexport const KEY_SUN_START_TIME = \"sundayStartTime\";\nexport const KEY_SUN_SLOT2_START_TIME = \"sundayStartTimeSlot2\";\nexport const KEY_SUN_SLOT2_END_TIME = \"sundayEndTimeSlot2\";\nexport const KEY_THU = \"thursday\";\nexport const KEY_THU_END_TIME = \"thursdayEndTime\";\nexport const KEY_THU_START_TIME = \"thursdayStartTime\";\nexport const KEY_THU_SLOT2_START_TIME = \"thursdayStartTimeSlot2\";\nexport const KEY_THU_SLOT2_END_TIME = \"thursdayEndTimeSlot2\";\nexport const KEY_TUE = \"tuesday\";\nexport const KEY_TUE_END_TIME = \"tuesdayEndTime\";\nexport const KEY_TUE_START_TIME = \"tuesdayStartTime\";\nexport const KEY_TUE_SLOT2_START_TIME = \"tuesdayStartTimeSlot2\";\nexport const KEY_TUE_SLOT2_END_TIME = \"tuesdayEndTimeSlot2\";\nexport const KEY_WED = \"wednesday\";\nexport const KEY_WED_END_TIME = \"wednesdayEndTime\";\nexport const KEY_WED_START_TIME = \"wednesdayStartTime\";\nexport const KEY_WED_SLOT2_START_TIME = \"wednesdayStartTimeSlot2\";\nexport const KEY_WED_SLOT2_END_TIME = \"wednesdayEndTimeSlot2\";\n\nexport const DIRECTION = \"__DIRECTION___\";\n\nexport const USER_ADDED = \"___USER_ADDED___\";\nexport const USER_TYPE_ADMIN = \"BRAND-ADMIN\";\nexport const USER_TYPE_MANAGER = \"MANAGER\";\nexport const ISDELIVERYENABLED = \"isDeliveryEnabled\";\nexport const ISPICKUPENABLED = \"isPickupEnabled\";\nexport const ISDINEINENABLED = \"isDineInEnabled\";\nexport const DATE_FORMAT = \"DD-MM-YYYY HH:mm\";\nexport const STORE = \"STORE\";\nexport const TALABAT = \"TALABAT\";\nexport const OTHER = \"OTHER\";\nexport const AED = \"AED\";\nexport const VERIFICATION_LAYOUT = \"verification\";\nexport const DASHBOARD_LAYOUT = \"dashboard\";\nexport const BRAND_BASED = \"BRAND_BASED_CATALOGUE\";\nexport const OUTLET_BASED = \"OUTLET_BASED_CATALOGUE\";\nexport const MAX_IMAGE_SIZE = 2048;\nexport const SETTINGS_DEFAULT_COLOUR = \"#C32933\";\nexport const DEFAULT_TEXT_COLOUR = \"#ffffff\";\nexport const NEW_PASSWORD = \"newPassword\";\nexport const OLD_PASSWORD = \"oldPassword\";\n\nexport const CONFIRM_PASSWORD = \"confirmPassword\";\nexport const PLACEHOLDER_IMAGE =\n \"https://uapp-live-com.s3.amazonaws.com/UAPP-MEDIA/placeholder.jpeg\";\nexport const DOMAIN_NAME = \"temporaryDomainName\";\nexport const PREVIEW = \"/preview/\";\nexport const MERCHANT_WEB_ADMIN = \"MERCHANT_WEB_ADMIN\";\nexport const MOBILE_ARABIC_REGEX = /[^0-9]/gi;\nexport const PRICE_ARABIC_REGEX = /[^0-9.]/gi;\nexport const DELIVERY_SERICETYPE = \"DELIVERY\";\nexport const packageHeader = [\n {\n header: \"12 MONTHS\",\n key: \"YEARLY\",\n subscriptionDiscount: \"annualSubscriptionDiscount\",\n discount: true,\n billedBy: \"Billed every 12 months\",\n },\n {\n header: \"6 MONTHS\",\n key: \"SEMI_ANNUALLY\",\n subscriptionDiscount: \"semiAnnualSubscriptionDiscount\",\n discount: true,\n billedBy: \"Billed every 6 months\",\n },\n {\n header: \"1 MONTH\",\n key: \"MONTHLY\",\n subscriptionDiscount: \"monthlySubscriptionDiscount\",\n discount: false,\n billedBy: false,\n },\n];\n\nexport const getPackText = (id) => {\n if (id === \"entrepreneur\") return PackageText[0];\n if (id === \"growth\") return PackageText[1];\n if (id === \"enterprise\") return PackageText[2];\n};\nexport const PackageText = [\n {\n id: \"entrepreneur\",\n \"1 online store\": \"1 online store\",\n \"Up to 100 products\": \"Up to 100 products\",\n \"Up to 250 orders\": \"Up to 250 orders\",\n \"Unlimited customers\": \"Unlimited customers\",\n \"Payment gateway integration\": \"Payment gateway integration\",\n \"Multiple local delivery Integrations\":\n \"Multiple local delivery Integrations\",\n \"Discount coupons\": \"Discount coupons\",\n \"Staff accounts\": \"Staff accounts\",\n \"Custom branding of store\": \"Custom branding of store\",\n Plugins: \"Plugins\",\n \"Free SSL certificate\": \"Free SSL certificate\",\n \"Free Hosting\": \"Free Hosting\",\n },\n {\n id: \"growth\",\n \"Everything in Entrepreneur, plus\": \"Everything in Entrepreneur, plus\",\n \"Up to 3 stores\": \"Up to 3 stores\",\n \"Up to 300 products\": \"Up to 300 products\",\n \"Up to 450 orders\": \"Up to 450 orders\",\n },\n {\n id: \"enterprise\",\n \"Everything in Growth, plus\": \"Everything in Growth, plus\",\n \"Tailor-made themes\": \"Tailor-made themes\",\n \"Custom CRM integrations\": \"Custom CRM integrations\",\n \"All other needs large enterprise might have\":\n \"All other needs large enterprise might have\",\n },\n];\n\nexport const refreshAppProps = {\n heading: \"new update available\",\n message:\n \"We made bug fixes and improvements to keep your operations smooth. Please click below button to get latest application version.\",\n\n btnText: \"get latest version\",\n};\n\nexport const noInternetProps = {\n heading: \"Oops\",\n message:\n \"Looks like you're offline. Try reconnecting to a working internet connection.\",\n btnText: \"Refresh\",\n};\n\nexport const API_ERRORS = {\n TIMEOUT_ERROR: \"ECONNABORTED\",\n NETWORK_ERROR: \"Network Error\",\n};\n\nexport const SHIPPING_METHODS = {\n AREA_BASED: \"AREA_BASED_DELIVERY_METHOD\",\n CITY_BASED: \"CITY_BASED_DELIVERY_METHOD\",\n COUNTRY_BASED: \"COUNTRY_BASED_DELIVERY_METHOD\",\n MAPPED_AREA_BASED: \"MAPPED_AREA_BASED_DELIVERY_METHOD\",\n\n AREA_BASED_DELIVERY_METHOD: \"AREA BASED DELIVERY METHOD\",\n CITY_BASED_DELIVERY_METHOD: \"CITY BASED DELIVERY METHOD\",\n COUNTRY_BASED_DELIVERY_METHOD: \"COUNTRY BASED DELIVERY METHOD\",\n MAPPED_AREA_BASED_DELIVERY_METHOD: \"MAPPED AREA BASED DELIVERY METHOD\",\n};\n\nexport const HIDDEN = \"hidden\";\nexport const COUPUN_APPLICATION_TYPE = {\n MANUAL: \"manual\",\n AUTOMATIC: \"automatic\",\n HIDDEN: \"hidden\",\n};\n\nexport const PERCENTAGE = \"percentage\";\nexport const ALL = \"ALL\";\nexport const SELECTED = \"SELECTED\";\nexport const CURRENT_LANGUAGE = {\n EN: \"EN\",\n AR: \"AR\",\n};\nexport const SERVICE_TYPES = {\n DELIVERY: \"DELIVERY\",\n PICKUP: \"PICKUP\",\n DINEIN: \"DINE IN\",\n};\nexport const LOYALTY_CONSTANTS = {\n ADD_OP: \"add\",\n EDIT_OP: \"edit\",\n};\nexport const USER_TYPE = {\n ADMIN: \"ADMIN\",\n MANAGER: \"MANAGER\",\n};\nexport const YANDEX = {\n courier: \"Motor Bike\",\n express: \"Car\",\n EXPRESS_DELIVERY_TYPE: \"EXPRESS\",\n};\nexport const APP_NAME = \"MERCHANT_WEB_ADMIN\";\n\nexport const COMPANY_NAMES = {\n RESTHERO: \"Resthero\",\n CUSINETTE: \"cuisinette\",\n};\n\nexport const orderStatus = {\n CANCELLED: \"CANCELLED\",\n PENDING: \"PENDING\",\n ACCEPTED: \"ACCEPTED\",\n REJECTED: \"REJECTED\",\n PREPARING: \"PREPARING\",\n COMPLETED: \"COMPLETED\",\n};\n\nexport const PAYMENT_GATWAYS = {\n STRIPE: \"STRIPE\",\n};\n\nexport const ITEM_MODIFIER_UNAVAILABLE_DURATIONS = [\n {\n value: 6,\n unit: \"hours\",\n title: \"6 Hours\",\n duration: \"6_HOURS\",\n },\n {\n value: 1,\n unit: \"days\",\n title: \"1 Day\",\n duration: \"1_DAY\",\n },\n {\n value: 3,\n unit: \"days\",\n title: \"3 Days\",\n duration: \"3_DAYS\",\n },\n {\n value: 1,\n unit: \"weeks\",\n title: \"1 week\",\n duration: \"1_WEEK\",\n },\n {\n value: null,\n unit: null,\n title: \"Indefinitely\",\n duration: \"INDEFINITELY\",\n },\n];\n\nexport const logisticPartnerNames = [\n \"TALABAT\",\n \"YANDEX\",\n \"CAREEM_NOW\",\n \"DELIVERY_ZONE\",\n \"LYVE_GLOBAL\",\n];\n\nexport const CareemDeliveryStatusKeys = {\n UPCOMING:\"UPCOMING\",\n CANCELED:\"CANCELED\",\n DELIVERY_ENDED:\"DELIVERY_ENDED\",\n CAPTAIN_ASSIGNED:\"CAPTAIN_ASSIGNED\",\n DELIVERY_STARTED:\"DELIVERY_STARTED\"\n}\n\nexport const CareemDeliveryStatus = {\n [CareemDeliveryStatusKeys.UPCOMING]: { label: \"Scheduled\", color: \"#3498db\" },\n [CareemDeliveryStatusKeys.CANCELED]: { label: \"Canceled\", color: \"#e74c3c\" },\n [CareemDeliveryStatusKeys.DELIVERY_ENDED]: { label: \"Completed\", color: \"#2ecc71\" },\n [CareemDeliveryStatusKeys.CAPTAIN_ASSIGNED]: { label: \"Assigned\", color: \"#f39c12\" },\n [CareemDeliveryStatusKeys.DELIVERY_STARTED]: { label: \"In-Transit\", color: \"#9b59b6\" }\n}","// export const BOOT_ROUTE = 'nav.Boot';\nexport const LOG_IN_ROUTE = \"/login\";\nexport const HOME_ROUTE = \"/home\";\nexport const LOGOUT_ROUTE = \"/logout\";\nexport const ADD_STORE = \"/addstore\";\nexport const BRAND_SETTING = \"/brandsetting\";\nexport const DASHBOARD = \"/dashboard\";\nexport const PENDING_ORDERS = \"/pendingorders\";\nexport const CREATE_ADMIN = \"/createadmin\";\nexport const PACKAGES = \"/packages\";\nexport const LANDING_PAGE = \"/landingpage\";\nexport const MENU = \"/menu\";\nexport const REGISTER = \"/register\";\nexport const ORDER_DETAIL = \"/order\";\nexport const FORGOT_PASSWORD = \"/forgot-password\";\nexport const ONBOARDING = \"/app/dashboard/onboarding\";\n","export const UPDATE_COUNTER = \"__UPDATE_COUNTER__\";\nexport const UPDATE_CURRENT_USER = \"__UPDATE_CURRENT_USER__\";\nexport const STORES_CHANGED = \"STORES_CHANGES\";\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n currentLanguage: \"EN\",\n};\n\nconst LanguageSlice = createSlice({\n name: \"LanguageSlice\",\n initialState,\n reducers: {\n updateLanguage: (state, action) => {\n state.currentLanguage = action.payload;\n },\n },\n});\n\nexport const { updateLanguage } = LanguageSlice.actions;\nexport default LanguageSlice.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\nimport { CONSTANTS as C } from \"config\";\n\nconst initialState = {\n settings: {},\n CatalogueType: C.BRAND_BASED,\n};\n\nconst SettingsReducer = createSlice({\n name: \"settingReducer\",\n initialState,\n reducers: {\n setSettings: (state, action) => {\n state.settings = action.payload;\n },\n updateCatalogueType: (state, action) => {\n state.CatalogueType = action.payload;\n },\n },\n});\n\nexport const { setSettings, updateCatalogueType } = SettingsReducer.actions;\nexport default SettingsReducer.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n areaData: [],\n addedAreas: [], //Already added areas\n customAllAreas: [], //added areas+added custom propty \"isAdded\" from client side\n //Mapped areas\n addedMappedAreas: [],\n newSelectedMappedAreas: [],\n mapCustomBusinessAreas: [],\n\n cititesList: [],\n countriesList: [],\n customizedCountryList: [],\n customizedCityList: [],\n selectedStore: null,\n addedCountries: [],\n addedCities: [],\n selectedCountries: [],\n selectedCities: [],\n selectedAreas: [],\n syncData: false,\n};\n\nconst AreasReducer = createSlice({\n name: \"areasReducer\",\n initialState,\n reducers: {\n setFetchedAreas: (state, action) => {\n state.areaData = action.payload;\n },\n setSync: (state, action) => {\n state.syncData = !state.syncData;\n },\n setCountryList: (state, action) => {\n state.countriesList = action.payload;\n },\n setcititesList: (state, action) => {\n state.cititesList = action.payload;\n },\n setcustomeAddedAreas: (state, action) => {\n state.customAllAreas = action.payload;\n },\n setAddedAreas: (state, action) => {\n state.addedAreas = action.payload;\n },\n\n //\n setMapAddedAreas: (state, action) => {\n state.addedMappedAreas = action.payload;\n },\n setNewMappedAreas: (state, action) => {\n state.newSelectedMappedAreas = action.payload;\n },\n setMapCustomBuisnessAreas: (state, action) => {\n state.mapCustomBusinessAreas = action.payload;\n },\n\n //\n setStore: (state, action) => {\n state.selectedStore = action.payload;\n },\n setAddedCountries: (state, action) => {\n state.addedCountries = action.payload;\n },\n setcustomizedCountryList: (state, action) => {\n state.customizedCountryList = action.payload;\n },\n setcustomizedCityList: (state, action) => {\n state.customizedCityList = action.payload;\n },\n\n updateSelectedCountries: (state, action) => {\n state.selectedCountries = action.payload;\n },\n\n setAddedCities: (state, action) => {\n state.addedCities = action.payload;\n },\n\n updateSelectedCities: (state, action) => {\n state.selectedCities = action.payload;\n },\n\n updateSelectedArea: (state, action) => {\n state.selectedAreas = action.payload;\n },\n },\n});\n\nexport const {\n setMapCustomBuisnessAreas,\n setMapAddedAreas,\n setNewMappedAreas,\n updateSelectedArea,\n updateSelectedCities,\n setAddedCities,\n setFetchedAreas,\n setCountryList,\n setcititesList,\n setcustomeAddedAreas,\n setAddedAreas,\n updateSelectedCountries,\n setStore,\n setAddedCountries,\n setcustomizedCountryList,\n setSelectedCountries,\n setSync,\n setcustomizedCityList,\n} = AreasReducer.actions;\nexport default AreasReducer.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\nconst logoutSlice = createSlice({\n name: \"Logout\",\n initialState: {},\n reducers: {\n logout: (state) => {\n state = undefined;\n },\n },\n});\n\nexport const { logout } = logoutSlice.actions;\nexport default logoutSlice.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n isLoading: false,\n};\n\nconst LoaderReducer = createSlice({\n name: \"LoaderReducer\",\n initialState,\n reducers: {\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n },\n});\n\nexport const { setLoading } = LoaderReducer.actions;\nexport default LoaderReducer.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\nconst initialState = {\n isLoggedIn: false,\n};\n\nconst LoginReducer = createSlice({\n name: \"LoginReducer\",\n initialState,\n reducers: {\n toogleLogin: (state, action) => {\n state.isLoggedIn = action.payload;\n },\n },\n});\n\nexport const { toogleLogin } = LoginReducer.actions;\nexport default LoginReducer.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n refreshApp: false,\n};\n\nconst AppUpdate = createSlice({\n name: \"AppUpdate\",\n initialState,\n reducers: {\n refreshApp: (state, action) => {\n state.refreshApp = true;\n },\n },\n});\n\nexport const { refreshApp } = AppUpdate.actions;\nexport default AppUpdate.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n isError: false,\n error: null,\n domainError: null,\n brandError: null,\n passwordError: null,\n};\n\nconst SettingsErrorReducer = createSlice({\n name: \"settingReducer\",\n initialState,\n reducers: {\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = action.payload ? true : false;\n },\n setDomainError: (state, action) => {\n state.domainError = action.payload;\n state.isError = action.payload ? true : false;\n },\n setBrandError: (state, action) => {\n state.brandError = action.payload;\n state.isError = action.payload ? true : false;\n },\n setPasswordError: (state, action) => {\n state.passwordError = action.payload;\n state.isError = action.payload ? true : false;\n },\n },\n});\n\nexport const { setError, setBrandError, setDomainError, setPasswordError } =\n SettingsErrorReducer.actions;\nexport default SettingsErrorReducer.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n isInternetConnected: true,\n};\n\nconst notPersited = createSlice({\n name: \"notPersited\",\n initialState,\n reducers: {\n updateOnlineStatus: (state, action) => {\n state.isInternetConnected = action.payload;\n },\n },\n});\n\nexport const { updateOnlineStatus } = notPersited.actions;\n\nexport default notPersited.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n isNotificationBarVisible: false,\n selectedKey: \"SEMI_ANNUALLY\",\n expDays: 0,\n packageText: \"\",\n};\n\nconst LanguageSlice = createSlice({\n name: \"LanguageSlice\",\n initialState,\n reducers: {\n setSelectedKey: (state, action) => {\n state.selectedKey = action.payload;\n },\n setNotifyVisible: (state, action) => {\n state.isNotificationBarVisible = action.payload;\n },\n setDays: (state, action) => {\n state.expDays = action.payload;\n },\n setPackText: (state, action) => {\n state.packageText = action.payload;\n },\n },\n});\n\nexport const { setNotifyVisible, setSelectedKey, setDays, setPackText } =\n LanguageSlice.actions;\nexport default LanguageSlice.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\nconst initialState = {\n changeDeliveryModal: false,\n careemModal: false,\n yandexModal: false,\n deliverzoneModal: false,\n orderInfo: {},\n error: null,\n selectedTimeSlot: null,\n changeLogisticService: {\n change: false,\n newServiceName: null,\n },\n vehicleTypes: [],\n selectedvehicleType: null,\n isThermalBagNeeded: true,\n claimInfo: null,\n syncData: false,\n showBtn: false,\n};\n\nconst Integrations = createSlice({\n name: \"Integrations\",\n initialState,\n reducers: {\n toggleDeliveryModal: (state, action) => {\n state.changeDeliveryModal = action.payload;\n },\n setBtn: (state, action) => {\n state.showBtn = action.payload;\n },\n setClaimInfo: (state, action) => {\n state.claimInfo = action.payload;\n },\n setSyncData: (state, action) => {\n state.syncData = !state.syncData;\n },\n setVehicleTypes: (state, action) => {\n state.vehicleTypes = action.payload;\n },\n setSelectedVehicleType: (state, action) => {\n state.selectedvehicleType = action.payload;\n },\n setThermalBag: (state, action) => {\n state.isThermalBagNeeded = action.payload;\n },\n toggleYandexModal: (state, action) => {\n state.yandexModal = action.payload;\n },\n toggleCareemModal: (state, action) => {\n state.careemModal = action.payload;\n },\n toggleDeliverZoneModal: (state, action) => {\n state.deliverzoneModal = action.payload;\n },\n setOrderInfo: (state, action) => {\n state.orderInfo = action.payload;\n },\n setOrderInfoFailure: (state, action) => {\n state.error = action.payload;\n state.orderInfo = null;\n },\n setTimeSlot: (state, action) => {\n state.selectedTimeSlot = action.payload;\n },\n changeLogisticService: (state, action) => {\n state.changeLogisticService = action.payload;\n },\n clearData: (state, action) => {\n state.vehicleTypes = [];\n // state.isThermalBagNeeded = true;\n // state.selectedvehicleType = \"COURIER\";\n state.claimInfo = null;\n state.showBtn = false;\n },\n resetOnModalClose: (state, action) => {\n state.vehicleTypes = [];\n state.isThermalBagNeeded = true;\n state.selectedvehicleType = \"COURIER\";\n state.claimInfo = null;\n state.showBtn = false;\n },\n },\n});\n\nexport const {\n toggleDeliverZoneModal,\n toggleCareemModal,\n resetOnModalClose,\n setBtn,\n clearData,\n setSyncData,\n setVehicleTypes,\n setSelectedVehicleType,\n setThermalBag,\n setTimeSlot,\n toggleDeliveryModal,\n toggleYandexModal,\n setOrderInfo,\n setOrderInfoFailure,\n setClaimInfo,\n} = Integrations.actions;\nexport default Integrations.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\nconst initialState = {\n error: null,\n};\n\nconst ErrorSlice = createSlice({\n name: \"Integrations\",\n initialState,\n reducers: {\n setError: (state, action) => {\n state.error = action.payload;\n },\n },\n});\n\nexport const { setError } = ErrorSlice.actions;\nexport default ErrorSlice.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\n\nconst initialState = {\n syncData: false,\n};\n\nconst MenuReducer = createSlice({\n name: \"MenuReducer\",\n initialState,\n reducers: {\n syncData: (state, action) => {\n state.syncData = !state.syncData;\n },\n },\n});\n\nexport const { syncData } = MenuReducer.actions;\nexport default MenuReducer.reducer;\n","import _ from \"lodash\";\nimport { CONSTANTS as C } from \"config\";\nimport { store } from \"react-notifications-component\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport moment from \"moment\";\nimport \"moment-timezone\";\nimport i18next from \"i18next\";\nimport * as Sentry from \"@sentry/react\";\nimport * as XLSX from \"xlsx\";\n\nexport function isLoggedIn() {\n /*\n * Note:\n * This app assume if local storage have roles it means\n * user is authenticated you can update this logic as per your app.\n */\n\n return localStorage.getItem(\"roles\");\n}\n\nexport function saveCurrentUser(user) {\n if (user) {\n let val = JSON.stringify(user);\n localStorage.setItem(C.CURRENT_USER, val);\n }\n}\n\nexport function saveLanguageInformation(obj) {\n if (obj) {\n let val = JSON.stringify(obj);\n localStorage.setItem(C.DIRECTION, val);\n }\n}\n\nexport function getLanguageInformation() {\n try {\n let dir = localStorage.getItem(C.DIRECTION);\n if (dir) return JSON.parse(dir);\n else return dir;\n } catch (error) {}\n}\n\nexport function getLayoutDirection(lang) {\n if (lang == \"en\") return \"ltr\";\n else if (lang === \"ar\") return \"rtl\";\n else return \"ltr\";\n}\n\nexport function removeLanguageInformation() {\n localStorage.setItem(C.DIRECTION, \"\");\n}\n\nexport function emailValidation() {\n let pattern = new RegExp(\n /^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i\n );\n return pattern;\n}\n\nexport function getCurrentUser() {\n let user = localStorage.getItem(C.CURRENT_USER);\n\n if (user) {\n return JSON.parse(user);\n }\n\n return user;\n}\n\nexport function removeCurrentUser() {\n localStorage.setItem(C.CURRENT_USER, \"\");\n}\n\nexport function isArrayWithLength(arr) {\n return Array.isArray(arr) && arr.length;\n}\n\nexport function getAllowedRoutes(routes) {\n const roles = JSON.parse(localStorage.getItem(\"roles\"));\n const filteredRoutes = routes.filter(({ permission }) => {\n if (!permission) return true;\n else if (!isArrayWithLength(permission)) return true;\n else return _.intersection(permission, roles).length;\n });\n\n return filteredRoutes;\n}\n\nexport function saveStores(s) {\n if (s) {\n let val = JSON.stringify(s);\n localStorage.setItem(C.STORES_INFO, val);\n }\n}\n\nexport function getStores() {\n let store = localStorage.getItem(C.STORES_INFO);\n if (store) {\n return JSON.parse(store);\n }\n return store;\n}\n\nexport function getSideBarItemList() {\n return [\n { name: \"Live Orders\", link: \"/app/liveorders\" },\n { name: \"Order History\", link: \"/app/orderhistory\" },\n { name: \"Pause Orders\", link: \"/app/pauseorders\" },\n { name: \"Delivery Areas\", link: \"/app/manageareas\" },\n { name: \"Menu\", link: \"/app/menu\" },\n { name: \"Ordering Panel\", link: \"/app/orderingpanel\" },\n ];\n}\n\nexport const getKey = (key) => {\n if (key === C.KEY_STORE_NAME_AR || key === C.KEY_STORE_DES_AR)\n return C.STORE_INFO_AR;\n else if (key === C.KEY_STORE_NAME_EN || key === C.KEY_STORE_DES_EN)\n return C.STORE_INFO_EN;\n else return key;\n};\n\n/* export const getKeyForAddStore = (key) => {\n if (key === C.KEY_STORE_NAME_AR) return C.STORE_NAME_AR;\n else if(key === C.KEY_STORE_DES_AR) return C.STORE_DESCRIPTION_AR;\n else if(key === C.KEY_STORE_NAME_EN) return C.STORE_NAME;\n else if (key === C.KEY_STORE_DES_EN) return C.STORE_DESCRIPTION;\n else return key;\n} */\n\nexport const getValueAgainstKeyToUpdateStore = (key, val, prevState) => {\n let obj = {};\n if (key === C.KEY_STORE_NAME_AR) {\n obj[C.STORE_NAME] = val;\n obj[C.STORE_DESCRIPTION] = prevState[C.STORE_INFO_AR].storeDescription;\n return obj;\n } else if (key === C.KEY_STORE_DES_AR) {\n obj[C.STORE_DESCRIPTION] = val;\n obj[C.STORE_NAME] = prevState[C.STORE_INFO_AR].storeName;\n return obj;\n } else if (key === C.KEY_STORE_NAME_EN) {\n obj[C.STORE_NAME] = val;\n obj[C.STORE_DESCRIPTION] = prevState[C.STORE_INFO_EN].storeDescription;\n return obj;\n } else if (key === C.KEY_STORE_DES_EN) {\n obj[C.STORE_DESCRIPTION] = val;\n obj[C.STORE_NAME] = prevState[C.STORE_INFO_EN].storeName;\n return obj;\n } else if (key === C.KEY_FRI) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_FRI] = val;\n return obj;\n } else if (key === C.KEY_SAT) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_SAT] = val;\n return obj;\n } else if (key === C.KEY_SUN) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_SUN] = val;\n return obj;\n } else if (key === C.KEY_MON) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_MON] = val;\n return obj;\n } else if (key === C.KEY_TUE) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_TUE] = val;\n return obj;\n } else if (key === C.KEY_WED) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_WED] = val;\n return obj;\n } else if (key === C.KEY_THU) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_THU] = val;\n return obj;\n } else if (key === C.KEY_FRI_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_FRI_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_FRI_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_FRI_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SAT_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_SAT_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SAT_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_SAT_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SUN_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_SUN_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SUN_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_SUN_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_MON_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_MON_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_MON_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_MON_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_TUE_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_TUE_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_TUE_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_TUE_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_WED_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_WED_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_WED_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_WED_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_THU_START_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_THU_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_THU_END_TIME) {\n obj = prevState[C.KEY_WORKING_HOURS];\n obj[C.KEY_THU_END_TIME] = new Date(val).getTime();\n return obj;\n } else {\n return val;\n }\n};\n\nexport const getValueAgainstKeyToAddStore = (key, val, prevState) => {\n let obj = {};\n if (key === C.KEY_STORE_NAME_AR) {\n obj[C.STORE_NAME] = val;\n obj[C.STORE_DESCRIPTION] =\n prevState.values[C.STORE_INFO_AR].storeDescription;\n return obj;\n } else if (key === C.KEY_STORE_DES_AR) {\n obj[C.STORE_DESCRIPTION] = val;\n obj[C.STORE_NAME] = prevState.values[C.STORE_INFO_AR].storeName;\n return obj;\n } else if (key === C.KEY_STORE_NAME_EN) {\n obj[C.STORE_NAME] = val;\n obj[C.STORE_DESCRIPTION] =\n prevState.values[C.STORE_INFO_EN].storeDescription;\n return obj;\n } else if (key === C.KEY_STORE_DES_EN) {\n obj[C.STORE_DESCRIPTION] = val;\n obj[C.STORE_NAME] = prevState.values[C.STORE_INFO_EN].storeName;\n return obj;\n }\n if (key === C.KEY_FRI) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_FRI] = val;\n return obj;\n } else if (key === C.KEY_SAT) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_SAT] = val;\n return obj;\n } else if (key === C.KEY_SUN) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_SUN] = val;\n return obj;\n } else if (key === C.KEY_MON) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_MON] = val;\n return obj;\n } else if (key === C.KEY_TUE) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_TUE] = val;\n return obj;\n } else if (key === C.KEY_WED) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_WED] = val;\n return obj;\n } else if (key === C.KEY_THU) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_THU] = val;\n return obj;\n } else if (key === C.KEY_FRI_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_FRI_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_FRI_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_FRI_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SAT_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_SAT_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SAT_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_SAT_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SUN_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_SUN_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_SUN_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_SUN_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_MON_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_MON_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_MON_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_MON_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_TUE_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_TUE_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_TUE_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_TUE_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_WED_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_WED_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_WED_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_WED_END_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_THU_START_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_THU_START_TIME] = new Date(val).getTime();\n return obj;\n } else if (key === C.KEY_THU_END_TIME) {\n obj = prevState.values[C.KEY_WORKING_HOURS];\n obj[C.KEY_THU_END_TIME] = new Date(val).getTime();\n return obj;\n } else {\n return val;\n }\n};\nexport const successNotification = (message) => {\n UTILS.HANDLE_SUCCESS_NOTIFICATION(\"topRight\", \"success\", message);\n};\nexport const errorNotification = (message) => {\n UTILS.HANDLE_ERROR_NOTIFICATION(\"topRight\", \"error\", message);\n};\nexport const HANDLE_SUCCESS_NOTIFICATION = (placement, success, message) => {\n /* notification[success]({\n message: \"Success\",\n description: message,\n placement,\n icon: ,\n className: 'custom-class',\n style: {\n width: 400,\n height:100,\n color:\"white\",\n background:\"#059669\"\n },\n }); */\n store.addNotification({\n message: message,\n type: \"success\",\n insert: \"top\",\n container: \"top-center\",\n // animationIn: [\"animate__animated\", \"animate__fadeIn\"],\n // animationOut: [\"animate__animated\", \"animate__fadeOut\"],\n dismiss: {\n duration: 4000,\n // onScreen: true\n },\n });\n};\n\nexport const HANDLE_ERROR_NOTIFICATION = (placement, error, message) => {\n /* notification[error]({\n message: \"Error\",\n description: message,\n placement,\n icon: ,\n className: 'custom-class',\n style: {\n width: 400,\n height:100,\n color:\"white\",\n background:\"#DC2626\"\n },\n }); */\n store.addNotification({\n message: message,\n type: \"danger\",\n insert: \"top\",\n container: \"top-center\",\n // animationIn: [\"animate__animated\", \"animate__fadeIn\"],\n // animationOut: [\"animate__animated\", \"animate__fadeOut\"],\n dismiss: {\n duration: 4000,\n // onScreen: true\n },\n });\n};\n\nexport const getDumbStoreObject = () => {\n return {\n values: {\n baseLanguage: {\n name: \"\",\n description: \"\",\n },\n email: getCurrentUser().email,\n mobileNumber: getCurrentUser().phoneNumber,\n whatsAppContact: null,\n brandId: \"\",\n instagramId: \"N/A\",\n storeImageUrl: \"\",\n storeLogoUrl: \"\",\n manualAddress: \"\",\n mapAddress: \"\",\n zoom: 8,\n vehicleInfoForPickup: {\n isActive: false,\n isRequired: false,\n },\n workingHours: {\n mondayStartTime: C.START_TIME_24_HOURS,\n mondayStartTimeSlot2: null,\n mondayEndTime: C.END_TIME_24_HOURS,\n mondayEndTimeSlot2: null,\n monday: true,\n tuesdayStartTime: C.START_TIME_24_HOURS,\n tuesdayStartTimeSlot2: null,\n tuesdayEndTime: C.END_TIME_24_HOURS,\n tuesdayEndTimeSlot2: null,\n tuesday: true,\n wednesdayStartTime: C.START_TIME_24_HOURS,\n wednesdayStartTimeSlot2: null,\n wednesdayEndTime: C.END_TIME_24_HOURS,\n wednesdayEndTimeSlot2: null,\n wednesday: true,\n thursdayStartTime: C.START_TIME_24_HOURS,\n thursdayStartTimeSlot2: 0,\n thursdayEndTime: C.END_TIME_24_HOURS,\n thursdayEndTimeSlot2: null,\n thursday: true,\n fridayStartTime: C.START_TIME_24_HOURS,\n fridayStartTimeSlot2: null,\n fridayEndTime: C.END_TIME_24_HOURS,\n fridayEndTimeSlot2: null,\n friday: true,\n saturdayStartTime: C.START_TIME_24_HOURS,\n saturdayStartTimeSlot2: null,\n saturdayEndTime: C.END_TIME_24_HOURS,\n saturdayEndTimeSlot2: null,\n saturday: true,\n sundayStartTime: C.START_TIME_24_HOURS,\n sundayStartTimeSlot2: null,\n sundayEndTime: C.END_TIME_24_HOURS,\n sundayEndTimeSlot2: null,\n sunday: true,\n },\n workingHoursForPickup: {\n mondayStartTime: C.START_TIME_24_HOURS,\n mondayStartTimeSlot2: null,\n mondayEndTime: C.END_TIME_24_HOURS,\n mondayEndTimeSlot2: null,\n monday: true,\n tuesdayStartTime: C.START_TIME_24_HOURS,\n tuesdayStartTimeSlot2: null,\n tuesdayEndTime: C.END_TIME_24_HOURS,\n tuesdayEndTimeSlot2: null,\n tuesday: true,\n wednesdayStartTime: C.START_TIME_24_HOURS,\n wednesdayStartTimeSlot2: null,\n wednesdayEndTime: C.END_TIME_24_HOURS,\n wednesdayEndTimeSlot2: null,\n wednesday: true,\n thursdayStartTime: C.START_TIME_24_HOURS,\n thursdayStartTimeSlot2: 0,\n thursdayEndTime: C.END_TIME_24_HOURS,\n thursdayEndTimeSlot2: null,\n thursday: true,\n fridayStartTime: C.START_TIME_24_HOURS,\n fridayStartTimeSlot2: null,\n fridayEndTime: C.END_TIME_24_HOURS,\n fridayEndTimeSlot2: null,\n friday: true,\n saturdayStartTime: C.START_TIME_24_HOURS,\n saturdayStartTimeSlot2: null,\n saturdayEndTime: C.END_TIME_24_HOURS,\n saturdayEndTimeSlot2: null,\n saturday: true,\n sundayStartTime: C.START_TIME_24_HOURS,\n sundayStartTimeSlot2: null,\n sundayEndTime: C.END_TIME_24_HOURS,\n sundayEndTimeSlot2: null,\n sunday: true,\n },\n workingHoursForDinein: {\n mondayStartTime: C.START_TIME_24_HOURS,\n mondayStartTimeSlot2: null,\n mondayEndTime: C.END_TIME_24_HOURS,\n mondayEndTimeSlot2: null,\n monday: true,\n tuesdayStartTime: C.START_TIME_24_HOURS,\n tuesdayStartTimeSlot2: null,\n tuesdayEndTime: C.END_TIME_24_HOURS,\n tuesdayEndTimeSlot2: null,\n tuesday: true,\n wednesdayStartTime: C.START_TIME_24_HOURS,\n wednesdayStartTimeSlot2: null,\n wednesdayEndTime: C.END_TIME_24_HOURS,\n wednesdayEndTimeSlot2: null,\n wednesday: true,\n thursdayStartTime: C.START_TIME_24_HOURS,\n thursdayStartTimeSlot2: 0,\n thursdayEndTime: C.END_TIME_24_HOURS,\n thursdayEndTimeSlot2: null,\n thursday: true,\n fridayStartTime: C.START_TIME_24_HOURS,\n fridayStartTimeSlot2: null,\n fridayEndTime: C.END_TIME_24_HOURS,\n fridayEndTimeSlot2: null,\n friday: true,\n saturdayStartTime: C.START_TIME_24_HOURS,\n saturdayStartTimeSlot2: null,\n saturdayEndTime: C.END_TIME_24_HOURS,\n saturdayEndTimeSlot2: null,\n saturday: true,\n sundayStartTime: C.START_TIME_24_HOURS,\n sundayStartTimeSlot2: null,\n sundayEndTime: C.END_TIME_24_HOURS,\n sundayEndTimeSlot2: null,\n sunday: true,\n },\n isPreOrderEnabledForDelivery: false,\n isPreOrderEnabledForPickup: false,\n isAcceptQuickOrderForDelivery: true,\n isAcceptQuickOrderForPickup: true,\n acceptAsapForDelivery: true,\n acceptAsapForPickup: true,\n\n preOrderSettingsForDelivery: {\n timeInterval: 15, //slot\n timeIntervalUnit: \"minutes\",\n\n minTimeInAdvance: 10,\n minTimeInAdvanceUnit: \"minutes\", //lead time\n\n maxDaysInAdvance: 1,\n minDaysInAdvance: 0,\n acceptTodayPreOrders: true,\n },\n preOrderSettingsForPickup: {\n timeInterval: 15, //slot\n timeIntervalUnit: \"minutes\",\n\n minTimeInAdvance: 10,\n minTimeInAdvanceUnit: \"minutes\", //lead time\n\n maxDaysInAdvance: 1,\n minDaysInAdvance: 0,\n\n acceptTodayPreOrders: true,\n },\n\n deliveryChargesWaiverInfo: {\n onOrderAmount: {\n isEnabled: false,\n amount: 0,\n },\n onDateRange: {\n isEnabled: false,\n // current time\n startDateTime: moment()\n .tz(\"Asia/Dubai\")\n .format(\"YYYY-MM-DDTHH:mm:ssZ\"),\n endDateTime: moment().tz(\"Asia/Dubai\").format(\"YYYY-MM-DDTHH:mm:ssZ\"),\n },\n },\n isDeliveryEnabled: false,\n isDineInEnabled: false,\n isPickupEnabled: false,\n averagePrepTime: \"\",\n isStoreOpen24Hours: true,\n paymentOptions: [],\n averagePrepTimeForPickup: \"24 hours\",\n isStoreOpen24HoursForPickup: true,\n pickupPaymentOptions: [],\n dineInPaymentOptions: [],\n averagePrepTimeForDinein: \"24 hours\",\n isStoreOpen24HoursForDinein: true,\n serviceType: [],\n isActive: true,\n isOpened: false,\n language: \"EN\",\n currency: \"\",\n storeLocation: {\n type: \"Point\",\n coordinates: [24.3498856, 52.8346913],\n },\n country: \"UAE\",\n city: \"dubai\",\n taxRate: \"5\",\n timeZone: \"Asia/Dubai\",\n },\n errors: {\n baseLanguage: {\n name: \"\",\n description: \"\",\n },\n address: \"\",\n email: \"\",\n mobileNumber: \"\",\n whatsAppContact: \"\",\n manualAddress: \"\",\n mapAddress: \"\",\n storeLocation: \"\",\n zoom: \"\",\n paymentOptions: \"\",\n serviceType: \"\",\n taxRate: \"\",\n timeZone: \"\",\n averagePrepTime: \"\",\n averagePrepTimeForPickup: \"\",\n averagePrepTimeForDinein: \"\",\n workingHours: {\n saturdayStartTime: \"\",\n saturdayEndTime: \"\",\n saturdayStartTimeSlot2: \"\",\n saturdayEndTimeSlot2: \"\",\n sundayStartTime: \"\",\n sundayEndTime: \"\",\n sundayStartTimeSlot2: \"\",\n sundayEndTimeSlot2: \"\",\n mondayStartTime: \"\",\n mondayEndTime: \"\",\n mondayStartTimeSlot2: \"\",\n mondayEndTimeSlot2: \"\",\n tuesdayStartTime: \"\",\n tuesdayEndTime: \"\",\n tuesdayStartTimeSlot2: \"\",\n tuesdayEndTimeSlot2: \"\",\n wednesdayStartTime: \"\",\n wednesdayEndTime: \"\",\n wednesdayStartTimeSlot2: \"\",\n wednesdayEndTimeSlot2: \"\",\n thursdayStartTime: \"\",\n thursdayEndTime: \"\",\n thursdayStartTimeSlot2: \"\",\n thursdayEndTimeSlot2: \"\",\n fridayStartTime: \"\",\n fridayEndTime: \"\",\n fridayStartTimeSlot2: \"\",\n fridayEndTimeSlot2: \"\",\n sunday: \"\",\n saturday: \"\",\n friday: \"\",\n thursday: \"\",\n wednesday: \"\",\n tuesday: \"\",\n monday: \"\",\n },\n workingHoursForPickup: {\n saturdayStartTime: \"\",\n saturdayEndTime: \"\",\n saturdayStartTimeSlot2: \"\",\n saturdayEndTimeSlot2: \"\",\n sundayStartTime: \"\",\n sundayEndTime: \"\",\n sundayStartTimeSlot2: \"\",\n sundayEndTimeSlot2: \"\",\n mondayStartTime: \"\",\n mondayEndTime: \"\",\n mondayStartTimeSlot2: \"\",\n mondayEndTimeSlot2: \"\",\n tuesdayStartTime: \"\",\n tuesdayEndTime: \"\",\n tuesdayStartTimeSlot2: \"\",\n tuesdayEndTimeSlot2: \"\",\n wednesdayStartTime: \"\",\n wednesdayEndTime: \"\",\n wednesdayStartTimeSlot2: \"\",\n wednesdayEndTimeSlot2: \"\",\n thursdayStartTime: \"\",\n thursdayEndTime: \"\",\n thursdayStartTimeSlot2: \"\",\n thursdayEndTimeSlot2: \"\",\n fridayStartTime: \"\",\n fridayEndTime: \"\",\n fridayStartTimeSlot2: \"\",\n fridayEndTimeSlot2: \"\",\n sunday: \"\",\n saturday: \"\",\n friday: \"\",\n thursday: \"\",\n wednesday: \"\",\n tuesday: \"\",\n monday: \"\",\n },\n workingHoursForDinein: {\n saturdayStartTime: \"\",\n saturdayEndTime: \"\",\n saturdayStartTimeSlot2: \"\",\n saturdayEndTimeSlot2: \"\",\n sundayStartTime: \"\",\n sundayEndTime: \"\",\n sundayStartTimeSlot2: \"\",\n sundayEndTimeSlot2: \"\",\n mondayStartTime: \"\",\n mondayEndTime: \"\",\n mondayStartTimeSlot2: \"\",\n mondayEndTimeSlot2: \"\",\n tuesdayStartTime: \"\",\n tuesdayEndTime: \"\",\n tuesdayStartTimeSlot2: \"\",\n tuesdayEndTimeSlot2: \"\",\n wednesdayStartTime: \"\",\n wednesdayEndTime: \"\",\n wednesdayStartTimeSlot2: \"\",\n wednesdayEndTimeSlot2: \"\",\n thursdayStartTime: \"\",\n thursdayEndTime: \"\",\n thursdayStartTimeSlot2: \"\",\n thursdayEndTimeSlot2: \"\",\n fridayStartTime: \"\",\n fridayEndTime: \"\",\n fridayStartTimeSlot2: \"\",\n fridayEndTimeSlot2: \"\",\n sunday: \"\",\n saturday: \"\",\n friday: \"\",\n thursday: \"\",\n wednesday: \"\",\n tuesday: \"\",\n monday: \"\",\n },\n },\n };\n};\n\nexport const getDumbAreaObject = () => {\n return {\n deliveryFee: 0,\n deliveryTime: 0,\n minOrder: 0,\n areaID: {\n _id: \"\",\n areaNameEN: \"\",\n areaNameAR: \"\",\n },\n countryID: {\n _id: \"\",\n countryNameEN: \"\",\n countryNameAR: \"\",\n },\n cityID: {\n _id: \"\",\n cityNameEN: \"\",\n cityNameAR: \"\",\n },\n storeId: \"\",\n brandId: \"\",\n };\n};\n\nexport const getDumbAreaObjectForEditing = () => {\n return {\n values: {\n countryID: \"\",\n cityID: \"\",\n areaID: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n minOrder: \"\",\n },\n errors: {\n countryID: \"\",\n cityID: \"\",\n areaID: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n minOrder: \"\",\n },\n };\n};\n\nexport const isValidObject = (attributesArray, object) => {\n //usage\n //UTILS.isValidObject(['mdata','jockey'],entry)\n if (attributesArray === null) {\n if (object === null || typeof object === \"undefined\") return false;\n return true;\n } else if (object === null || typeof object === \"undefined\") return false;\n\n // NULL will not be considered as valid object\n const res = attributesArray.reduce((xs, x) => {\n return isValidObjectHelper(xs) && isValidObjectHelper(xs[x]) ? xs[x] : null;\n }, object);\n\n if (res === null) return false;\n return true;\n};\n\nfunction isValidObjectHelper(obj) {\n if (obj !== null && typeof obj !== \"undefined\") return true;\n return false;\n}\n\nexport const hasWhiteSpace = (s) => {\n return !/\\S/.test(s);\n};\n\nexport const isValidMobileNumber = (mobileNumber) => {\n if (\n (mobileNumber?.charAt(4) == 0 && mobileNumber?.length !== 14) ||\n (mobileNumber?.charAt(4) != 0 && mobileNumber?.length !== 13)\n ) {\n return false;\n }\n return true;\n};\n\nexport const getCurrentCurrency = () => {\n return \"AED\";\n};\n\nexport const getSideMenuListForAddUpdateStore = () => {\n return [\n { name: \"Basic Information\", id: 0 },\n { name: \"Store Location\", id: 1 },\n { name: \"Delivery\", id: 2 },\n { name: \"Pickup\", id: 3 },\n { name: \"Contactless Dining\", id: 4 },\n ];\n};\n\nexport const getCategoryModel = () => {\n return {\n values: {\n brandId: \"\",\n baseLanguage: {\n name: \"\",\n },\n language: \"EN\",\n },\n errors: {\n baseLanguage: {\n name: \"\",\n },\n },\n };\n};\n\nexport const getItemModel = () => {\n return {\n values: {\n brandId: \"\",\n baseLanguage: {\n title: \"\",\n description: \"\",\n ingredients: \"\",\n },\n sku: \"\",\n itemImageURLs: [],\n itemAvailabilityStatus: true,\n isItemPriceGiven: true,\n price: 0,\n },\n errors: {\n baseLanguage: {\n title: \"\",\n description: \"\",\n ingredients: \"\",\n },\n sku: \"\",\n itemImageURLs: [\"\"],\n itemAvailabilityStatus: true,\n isItemPriceGiven: true,\n price: \"\",\n },\n };\n};\n\nexport const getModifierModal = () => {\n return {\n values: {\n brandId: \"\",\n itemId: \"\",\n itemSection: {\n baseLanguage: {\n sectionName: \"\",\n },\n isRequired: false,\n isSingleSelection: false,\n maximumAllowedSelection: 1,\n options: [],\n },\n },\n errors: {\n brandId: \"\",\n itemId: \"\",\n itemSection: {\n baseLanguage: {\n sectionName: \"\",\n },\n isRequired: false,\n isSingleSelection: false,\n maximumAllowedSelection: 0,\n },\n },\n };\n};\n\nexport const getModifierOptionModal = () => {\n return {\n values: {\n baseLanguage: {\n optionName: \"\",\n },\n price: 0,\n },\n errors: {\n baseLanguage: {\n optionName: \"\",\n },\n price: 0,\n },\n };\n};\n\nexport const getPendingOrders = (data, status) => {\n if (\n UTILS.isValidObject([\"pendingOrdersCount\"], data?.data) &&\n Array.isArray(data?.data.pendingOrdersCount)\n ) {\n for (let index = 0; index < data?.data.pendingOrdersCount.length; index++) {\n const element = data?.data.pendingOrdersCount[index];\n if (\n UTILS.isValidObject([\"orderStatus\"], element) &&\n element.orderStatus === status\n ) {\n return element.count;\n }\n }\n return 0;\n }\n};\n\nexport const formatPhoneNumber = (phoneNumber) => {\n if (phoneNumber === null || phoneNumber === undefined || phoneNumber === \"\")\n return null;\n if (phoneNumber?.charAt(4) === \"0\") {\n return phoneNumber?.slice(0, 4) + phoneNumber?.slice(5);\n }\n return phoneNumber;\n};\n\nexport const validatePhoneNumber = (phoneNumber) => {\n if (phoneNumber === null || phoneNumber === undefined || phoneNumber === \"\") {\n return false;\n }\n if (\n phoneNumber?.charAt(0) !== \"0\" &&\n (phoneNumber?.length >= 10 || phoneNumber?.length < 9)\n ) {\n return false;\n }\n if (phoneNumber?.charAt(0) === \"0\" && phoneNumber?.length === 10) {\n return true;\n }\n\n if (phoneNumber?.length === 9 && phoneNumber?.charAt(0) !== \"0\") {\n return true;\n }\n};\nexport const getAreasByCityID = (cityID, filtredareas) => {\n try {\n let areas = [];\n if (filtredareas) {\n filtredareas?.forEach((area) => {\n if (area?.cityID === cityID) {\n areas.push(area);\n }\n });\n return areas;\n }\n } catch (error) {}\n};\n\nexport const UpdatedAreas = async (storeId, brandId, token) => {\n try {\n const updatedAreas = await API.GET_STORE_DELIVERY_AREAS({\n storeId: storeId,\n brandId: brandId,\n token: token,\n });\n if (updatedAreas?.success === 1) {\n return updatedAreas?.data?.Areas;\n } else {\n return;\n }\n } catch (error) {\n console.error({ error });\n }\n};\n\nexport const getSelectedAreas = async (areas) => {\n try {\n const selectedAreas = [];\n await areas?.forEach((area) => {\n if (area?.selected && area?.selected === true) {\n selectedAreas.push(area);\n }\n });\n return selectedAreas;\n } catch (err) {}\n};\nexport const getSelectedCountries = async (allCountries) => {\n try {\n const countries = [];\n await allCountries?.forEach((country) => {\n if (country?.selected && country?.selected === true) {\n countries.push(country);\n }\n });\n return countries;\n } catch (err) {}\n};\n\nexport const filteredAreasList = async (areasData, alreadyAddedAreas) => {\n try {\n const filteredArray = [];\n if (areasData && alreadyAddedAreas) {\n areasData[0]?.cities?.map((city) => {\n city?.areas?.map((area) => {\n if (\n !alreadyAddedAreas?.find((item) => item?.areaID?._id === area?._id)\n ) {\n filteredArray.push({\n ...area,\n isAdded: false,\n });\n } else {\n filteredArray.push({\n ...area,\n isAdded: true,\n });\n }\n });\n });\n return filteredArray;\n }\n } catch (error) {\n console.error({ error });\n }\n};\nconst getFormattedTime = (time) => {\n moment.tz.setDefault(\"Asia/Dubai\");\n return moment(time).format(\"hh:mm a\");\n};\nconst getTimeDiference = (time1, time2) => {\n if (\n time1 === undefined ||\n time2 === undefined ||\n time1 == \"\" ||\n time2 == \"\"\n ) {\n return;\n }\n const diff = moment\n .duration(moment(time1, \"hh:mm a\").diff(moment(time2, \"hh:mm a\")))\n .asMinutes();\n return diff;\n};\n\nconst isStartTimeNull = (t1, t2) => {\n if (t1 > 0 && (t2 === 0 || t2 === null)) {\n return true;\n }\n};\n\nconst isEndTimeNull = (t1, t2) => {\n if (t2 > 0 && (t1 === 0 || t1 === null)) {\n return true;\n }\n};\n\nconst formatSlot2StartTime = (slot2StartTime) => {\n const formatted = slot2StartTime > 0 ? getFormattedTime(slot2StartTime) : \"\";\n return formatted;\n};\n\nconst formatSlot2EndTime = (slot2EndTime) => {\n let formatted;\n if (slot2EndTime !== null && slot2EndTime != \"0\") {\n formatted = getFormattedTime(slot2EndTime);\n }\n\n return formatted;\n};\n\nexport const isValidSlots = (workingHours) => {\n const errorMessage = [\n i18next.t(\"Please select start time\"),\n i18next.t(\"Please select end time\"),\n i18next.t(\"Hours are overlapping\"),\n i18next.t(\"The end time must be a date after the start time\"),\n i18next.t(\"First slot shall be earlier than second slot\"),\n ];\n const {\n fridayStartTime,\n fridayEndTime,\n fridayStartTimeSlot2,\n fridayEndTimeSlot2,\n saturdayStartTime,\n saturdayEndTime,\n saturdayStartTimeSlot2,\n saturdayEndTimeSlot2,\n sundayStartTimeSlot2,\n sundayStartTime,\n sundayEndTime,\n sundayEndTimeSlot2,\n mondayStartTime,\n mondayEndTime,\n mondayStartTimeSlot2,\n mondayEndTimeSlot2,\n tuesdayStartTime,\n tuesdayEndTime,\n tuesdayStartTimeSlot2,\n tuesdayEndTimeSlot2,\n wednesdayStartTime,\n wednesdayEndTime,\n wednesdayStartTimeSlot2,\n wednesdayEndTimeSlot2,\n thursdayStartTime,\n thursdayEndTime,\n thursdayStartTimeSlot2,\n thursdayEndTimeSlot2,\n } = workingHours;\n let isFormValid = true;\n let errors = {};\n\n // step1==>format time\n\n // Friday\n var fridayS1Start = getFormattedTime(fridayStartTime);\n var fridayS1End = getFormattedTime(fridayEndTime);\n var fridayS2Start = formatSlot2StartTime(fridayStartTimeSlot2);\n var fridayS2End = formatSlot2EndTime(fridayEndTimeSlot2);\n\n // saturday\n var satursdayS1Start = getFormattedTime(saturdayStartTime);\n var satursdayS1End = getFormattedTime(saturdayEndTime);\n var saturdayS2Start = formatSlot2StartTime(saturdayStartTimeSlot2);\n var saturdayS2End = formatSlot2EndTime(saturdayEndTimeSlot2);\n\n //sunday\n\n var sundayS1Start = getFormattedTime(sundayStartTime);\n var sundayS1End = getFormattedTime(sundayEndTime);\n var sundayS2Start = formatSlot2StartTime(sundayStartTimeSlot2);\n var sundayS2End = formatSlot2EndTime(sundayEndTimeSlot2);\n\n // monday\n var mondayS1Start = getFormattedTime(mondayStartTime);\n var mondayS1End = getFormattedTime(mondayEndTime);\n var mondayS2Start = formatSlot2StartTime(mondayStartTimeSlot2);\n var mondayS2End = formatSlot2EndTime(mondayEndTimeSlot2);\n\n //tuesday\n var tuesdayS1Start = getFormattedTime(tuesdayStartTime);\n var tuesdayS1End = getFormattedTime(tuesdayEndTime);\n var tuesdayS2Start = formatSlot2StartTime(tuesdayStartTimeSlot2);\n var tuesdayS2End = formatSlot2EndTime(tuesdayEndTimeSlot2);\n\n //wednesday\n var wednesdayS1Start = getFormattedTime(wednesdayStartTime);\n var wednesdayS1End = getFormattedTime(wednesdayEndTime);\n var wednesdayS2Start = formatSlot2StartTime(wednesdayStartTimeSlot2);\n var wednesdayS2End = formatSlot2EndTime(wednesdayEndTimeSlot2);\n\n //thursday\n var thursdayS1Start = getFormattedTime(thursdayStartTime);\n var thursdayS1End = getFormattedTime(thursdayEndTime);\n var thursdayS2Start = formatSlot2StartTime(thursdayStartTimeSlot2);\n var thursdayS2End = formatSlot2EndTime(thursdayEndTimeSlot2);\n\n // step2==>get differnce between slots and add error messages\n // friday\n var diff1Day1 = getTimeDiference(fridayS1Start, fridayS1End);\n var diff2Day1 = getTimeDiference(fridayS2Start, fridayS2End);\n var diff3Day1 = getTimeDiference(fridayS1Start, fridayS2End);\n var diff4Day1 = getTimeDiference(fridayS1End, fridayS2End);\n\n if (isStartTimeNull(fridayEndTimeSlot2, fridayStartTimeSlot2)) {\n errors.fridayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(fridayEndTimeSlot2, fridayStartTimeSlot2)) {\n errors.fridayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n if (diff1Day1 >= 0) {\n errors[C.KEY_FRI_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day1 >= 0) {\n errors[C.KEY_FRI_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n\n if (diff3Day1 > 0 && diff4Day1 > 0) {\n if (fridayEndTimeSlot2 !== 0) {\n errors[C.KEY_FRI_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n }\n var diff5Day1 = getTimeDiference(fridayS1Start, fridayS2End);\n var diff6Day1 = getTimeDiference(fridayS1End, fridayS2Start);\n if (diff5Day1 <= 0 && diff6Day1 >= 0) {\n errors[C.KEY_FRI_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n // saturday\n\n if (isStartTimeNull(saturdayEndTimeSlot2, saturdayStartTimeSlot2)) {\n errors.saturdayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(saturdayEndTimeSlot2, saturdayStartTimeSlot2)) {\n errors.saturdayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n var diff1Day2 = getTimeDiference(satursdayS1Start, satursdayS1End);\n var diff2Day2 = getTimeDiference(saturdayS2Start, saturdayS2End);\n var diff3Day2 = getTimeDiference(satursdayS1Start, saturdayS2End);\n var diff4Day2 = getTimeDiference(satursdayS1End, saturdayS2End);\n var diff5Day2 = getTimeDiference(satursdayS1Start, saturdayS2End);\n var diff6Day2 = getTimeDiference(satursdayS1End, saturdayS2Start);\n if (diff1Day2 >= 0) {\n errors[C.KEY_SAT_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day2 >= 0) {\n errors[C.KEY_SAT_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff3Day2 > 0 && diff4Day2 > 0 && saturdayEndTimeSlot2 !== null) {\n errors[C.KEY_SAT_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n\n if (diff5Day2 <= 0 && diff6Day2 >= 0) {\n errors[C.KEY_SAT_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n // sunday\n if (isStartTimeNull(sundayEndTimeSlot2, sundayStartTimeSlot2)) {\n errors.sundayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(sundayEndTimeSlot2, sundayStartTimeSlot2)) {\n errors.sundayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n var diff1Day3 = getTimeDiference(sundayS1Start, sundayS1End);\n var diff2Day3 = getTimeDiference(sundayS2Start, sundayS2End);\n var diff3Day3 = getTimeDiference(sundayS1Start, sundayS2End);\n var diff4Day3 = getTimeDiference(sundayS1End, sundayS2End);\n var diff5Day3 = getTimeDiference(sundayS1Start, sundayS2End);\n var diff6Day3 = getTimeDiference(sundayS1End, sundayS2Start);\n if (diff1Day3 >= 0) {\n errors[C.KEY_SUN_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day3 >= 0) {\n errors[C.KEY_SUN_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff3Day3 > 0 && diff4Day3 > 0 && sundayEndTimeSlot2 !== null) {\n errors[C.KEY_SUN_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n if (diff5Day3 <= 0 && diff6Day3 >= 0) {\n errors[C.KEY_SUN_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n // monday\n var diff1Day4 = getTimeDiference(mondayS1Start, mondayS1End);\n var diff2Day4 = getTimeDiference(mondayS2Start, mondayS2End);\n var diff3Day4 = getTimeDiference(mondayS1Start, mondayS2End);\n var diff4Day4 = getTimeDiference(mondayS1End, mondayS2End);\n var diff5Day4 = getTimeDiference(mondayS1Start, mondayS2End);\n var diff6Day4 = getTimeDiference(mondayS1End, mondayS2Start);\n if (isStartTimeNull(mondayEndTimeSlot2, mondayStartTimeSlot2)) {\n errors.mondayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(mondayEndTimeSlot2, mondayStartTimeSlot2)) {\n errors.mondayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n if (diff1Day4 >= 0) {\n errors[C.KEY_MON_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day4 >= 0) {\n errors[C.KEY_MON_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff3Day4 > 0 && diff4Day4 > 0 && mondayEndTimeSlot2 !== null) {\n errors[C.KEY_MON_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n if (diff5Day4 <= 0 && diff6Day4 >= 0) {\n errors[C.KEY_MON_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n // tuesday\n var diff1Day5 = getTimeDiference(tuesdayS1Start, tuesdayS1End);\n var diff2Day5 = getTimeDiference(tuesdayS2Start, tuesdayS2End);\n var diff3Day5 = getTimeDiference(tuesdayS1Start, tuesdayS2End);\n var diff4Day5 = getTimeDiference(tuesdayS1End, tuesdayS2End);\n var diff5Day5 = getTimeDiference(tuesdayS1Start, tuesdayS2End);\n var diff6Day5 = getTimeDiference(tuesdayS1End, tuesdayS2Start);\n if (isStartTimeNull(tuesdayEndTimeSlot2, tuesdayStartTimeSlot2)) {\n errors.tuesdayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(tuesdayEndTimeSlot2, tuesdayStartTimeSlot2)) {\n errors.tuesdayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n\n if (diff1Day5 >= 0) {\n errors[C.KEY_TUE_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day5 >= 0) {\n errors[C.KEY_TUE_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff3Day5 > 0 && diff4Day5 > 0 && tuesdayEndTimeSlot2 !== null) {\n errors[C.KEY_TUE_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n if (diff5Day5 <= 0 && diff6Day5 >= 0) {\n errors[C.KEY_TUE_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n // wednesday\n\n var diff1Day6 = getTimeDiference(wednesdayS1Start, wednesdayS1End);\n var diff2Day6 = getTimeDiference(wednesdayS2Start, wednesdayS2End);\n var diff3Day6 = getTimeDiference(wednesdayS1Start, wednesdayS2End);\n var diff4Day6 = getTimeDiference(wednesdayS1End, wednesdayS2End);\n var diff5Day6 = getTimeDiference(wednesdayS1Start, wednesdayS2End);\n var diff6Day6 = getTimeDiference(wednesdayS1End, wednesdayS2Start);\n if (isStartTimeNull(wednesdayEndTimeSlot2, wednesdayStartTimeSlot2)) {\n errors.wednesdayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(wednesdayEndTimeSlot2, wednesdayStartTimeSlot2)) {\n errors.wednesdayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n if (diff1Day6 >= 0) {\n errors[C.KEY_WED_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day6 >= 0) {\n errors[C.KEY_WED_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff3Day6 > 0 && diff4Day6 > 0 && wednesdayEndTimeSlot2 !== null) {\n errors[C.KEY_WED_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n if (diff5Day6 <= 0 && diff6Day6 >= 0) {\n errors[C.KEY_WED_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n // thursday\n var diff1Day7 = getTimeDiference(thursdayS1Start, thursdayS1End);\n var diff2Day7 = getTimeDiference(thursdayS2Start, thursdayS2End);\n var diff3Day7 = getTimeDiference(thursdayS1Start, thursdayS2End);\n var diff4Day7 = getTimeDiference(thursdayS1End, thursdayS2End);\n var diff5Day7 = getTimeDiference(thursdayS1Start, thursdayS2End);\n var diff6Day7 = getTimeDiference(thursdayS1End, thursdayS2Start);\n if (isStartTimeNull(thursdayEndTimeSlot2, thursdayStartTimeSlot2)) {\n errors.thursdayStartTimeSlot2 = errorMessage?.[0];\n isFormValid = false;\n }\n if (isEndTimeNull(thursdayEndTimeSlot2, thursdayStartTimeSlot2)) {\n errors.thursdayStartTimeSlot2 = errorMessage?.[1];\n isFormValid = false;\n }\n if (diff1Day7 >= 0) {\n errors[C.KEY_THU_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff2Day7 >= 0) {\n errors[C.KEY_THU_SLOT2_START_TIME] = errorMessage?.[3];\n isFormValid = false;\n }\n if (diff3Day7 > 0 && diff4Day7 > 0 && thursdayEndTimeSlot2 !== null) {\n errors[C.KEY_THU_START_TIME] = errorMessage?.[4];\n isFormValid = false;\n }\n if (diff5Day7 <= 0 && diff6Day7 >= 0) {\n errors[C.KEY_THU_SLOT2_START_TIME] = errorMessage?.[2];\n isFormValid = false;\n }\n\n return { isFormValid, errors };\n};\n\nexport const codEarning = (orders) => {\n const earning = orders?.orders.reduce((acc, order) => {\n if (\n (order?.paymentType === \"CARD_MACHINE\" &&\n order?.orderStatus === \"COMPLETE\") ||\n (order?.paymentType === \"CASH\" && order?.orderStatus === \"COMPLETE\")\n ) {\n return acc + order.totalOrderPrice;\n }\n return acc;\n }, 0);\n return earning?.toFixed(2);\n};\n\nexport const onlineEarning = (orders) => {\n const earning = orders.reduce((acc, order) => {\n if (\n order?.paymentType === \"CREDIT_CARD\" &&\n order?.orderCheckoutOnlinePaymentMetadata?.data?.status === \"VERIFIED\" &&\n order?.orderStatus === \"COMPLETE\"\n ) {\n return acc + order.totalOrderPrice;\n }\n return acc;\n }, 0);\n return earning?.toFixed(2);\n};\n\nexport const onlineOrders = (orders) => {\n console.log(\"Online Orders\", orders.orders);\n if (orders?.orders?.length <= 0 || !orders?.orders) return [];\n const ordersArray = orders?.orders?.filter(\n (order) => order?.paymentType === \"CREDIT_CARD\"\n );\n return ordersArray;\n};\n\nexport const codOrders = (orders) => {\n if (orders?.orders?.length <= 0 || !orders?.orders) return [];\n const ordersArray = orders?.orders?.filter(\n (order) =>\n order?.paymentType === \"CARD_MACHINE\" || order?.paymentType === \"CASH\"\n );\n return ordersArray;\n};\n\nexport const getEachCustomercodEarning = (orders) => {\n const earning = orders.reduce((acc, order) => {\n if (\n order?.paymentType === \"CARD_MACHINE\" ||\n order?.paymentType === \"CASH\"\n ) {\n return acc + order.totalOrderPrice;\n }\n return acc;\n }, 0);\n return earning?.toFixed(2);\n};\nexport const getEachCustomeronlineEarning = (orders) => {\n const earning = orders.reduce((acc, order) => {\n if (\n order?.paymentType === \"CREDIT_CARD\" &&\n order?.orderCheckoutOnlinePaymentMetadata?.data?.status === \"VERIFIED\"\n ) {\n return acc + order.totalOrderPrice;\n }\n return acc;\n }, 0);\n return earning?.toFixed(2);\n};\nexport const getCustomerName = (orders) => {\n const order = orders?.find((order) => order?.userInfo?.name);\n return order?.userInfo?.name;\n};\n\nexport const getEachCustomeData = async (orders) => {\n const customers = [];\n orders.forEach((order) => {\n const cod = getEachCustomercodEarning(order.orderDetails);\n const online = getEachCustomeronlineEarning(order.orderDetails);\n const name = getCustomerName(order.orderDetails);\n customers.push({\n customerId: order?._id?.userId,\n customerPhone: order?.orderDetails[0]?.userInfo?.phoneNumber,\n codEarning: cod,\n onlineEarning: online,\n name,\n });\n });\n return customers;\n};\n\nexport const getTotalEarning = (paymentLinks) => {\n const earning = paymentLinks?.reduce((acc, order) => {\n if (order?.linkStatus === \"PAID\") {\n return acc + order.totalOrderPrice;\n }\n return acc;\n }, 0);\n return earning?.toFixed(2);\n};\n\nexport const totalLinksEarning = (paymentLinks) => {\n console.log(\"totalLinksEarning\", paymentLinks);\n if (paymentLinks?.length <= 0 || !paymentLinks) return [];\n const earning = paymentLinks?.reduce((acc, order) => {\n if (order?.linkStatus === \"PAID\") {\n return acc + order.amount;\n }\n return acc;\n }, 0);\n return earning?.toFixed(2);\n};\n\nexport const handleSuccesNotification = (message) => {\n UTILS.HANDLE_SUCCESS_NOTIFICATION(\"topRight\", \"success\", message);\n};\nexport const handleErrorNotification = (message) => {\n UTILS.HANDLE_ERROR_NOTIFICATION(\"topRight\", \"error\", message);\n};\n\nexport const validateSelectedDates = (startDate, endDate) => {\n let isFormValid = true;\n if (!startDate || !endDate) {\n handleErrorNotification(\n i18next.t(\"start date and end date cannot be empty\")\n );\n isFormValid = false;\n }\n return isFormValid;\n};\n\nexport const checkPackageValidity = async (language) => {\n let text;\n let notify;\n const userDetail = UTILS.getCurrentUser();\n const result = await API.CHECK_PACKAGE_VALIDITY({\n token: userDetail?.token,\n brandId: userDetail?.brandId,\n language: language,\n });\n if (result && result.success === 1) {\n if (\n result?.data?.subscription?.amountPaid < 1 &&\n result?.data?.subscription?.isValid\n ) {\n text = \"trail plan\";\n notify = true;\n } else if (!result?.data?.subscription?.isValid) {\n text = \"expired plan\";\n notify = true;\n }\n } else {\n }\n\n return { text, notify, result };\n};\n\nexport const getStoreObj = (store) => {\n const obj = {\n baseLanguage: {\n name: store.baseLanguage.name,\n description: store.baseLanguage.description,\n },\n storeLocation: {\n type: \"Point\",\n coordinates: [\n store.storeLocation.coordinates[0],\n store.storeLocation.coordinates[1],\n ],\n },\n\n email: store.email,\n mobileNumber: store.mobileNumber,\n whatsAppContact: store.whatsAppContact,\n instagramId: \"N/A\",\n storeImageUrl: \"\",\n storeLogoUrl: \"\",\n manualAddress: store.manualAddress,\n mapAddress: store.mapAddress,\n isDeliveryEnabled: store.isDeliveryEnabled,\n isDineInEnabled: store.isDineInEnabled,\n isPickupEnabled: store.isPickupEnabled,\n delivery: {\n workingHours: {\n mondayStartTime: store.workingHours.mondayStartTime,\n mondayStartTimeSlot2: store.workingHours.mondayStartTimeSlot2,\n mondayEndTime: store.workingHours.mondayEndTime,\n mondayEndTimeSlot2: store.workingHours.mondayEndTimeSlot2,\n monday: store.workingHours.monday,\n tuesdayStartTime: store.workingHours.tuesdayStartTime,\n tuesdayStartTimeSlot2: store.workingHours.tuesdayStartTimeSlot2,\n tuesdayEndTime: store.workingHours.tuesdayEndTime,\n tuesdayEndTimeSlot2: store.workingHours.tuesdayEndTimeSlot2,\n tuesday: store.workingHours.tuesday,\n wednesdayStartTime: store.workingHours.wednesdayStartTime,\n wednesdayStartTimeSlot2: store.workingHours.wednesdayStartTimeSlot2,\n wednesdayEndTime: store.workingHours.wednesdayEndTime,\n wednesdayEndTimeSlot2: store.workingHours.wednesdayEndTimeSlot2,\n wednesday: store.workingHours.wednesday,\n thursdayStartTime: store.workingHours.thursdayStartTime,\n thursdayStartTimeSlot2: store.workingHours.thursdayStartTimeSlot2,\n thursdayEndTime: store.workingHours.thursdayEndTime,\n thursdayEndTimeSlot2: store.workingHours.thursdayEndTimeSlot2,\n thursday: store.workingHours.thursday,\n fridayStartTime: store.workingHours.fridayStartTime,\n fridayStartTimeSlot2: store.workingHours.fridayStartTimeSlot2,\n fridayEndTime: store.workingHours.fridayEndTime,\n fridayEndTimeSlot2: store.workingHours.fridayEndTimeSlot2,\n friday: store.workingHours.friday,\n saturdayStartTime: store.workingHours.saturdayStartTime,\n saturdayStartTimeSlot2: store.workingHours.saturdayStartTimeSlot2,\n saturdayEndTime: store.workingHours.saturdayEndTime,\n saturdayEndTimeSlot2: store.workingHours.saturdayEndTimeSlot2,\n saturday: store.workingHours.saturday,\n sundayStartTime: store.workingHours.sundayStartTime,\n sundayStartTimeSlot2: store.workingHours.sundayStartTimeSlot2,\n sundayEndTime: store.workingHours.sundayEndTime,\n sundayEndTimeSlot2: store.workingHours.sundayEndTimeSlot2,\n sunday: store.workingHours.sunday,\n },\n averagePrepTime: store.averagePrepTime,\n isStoreOpen24Hours: store.isStoreOpen24Hours,\n paymentOptions: store.paymentOptions,\n\n //preOrdering\n isAcceptQuickOrderForDelivery: store.isAcceptQuickOrderForDelivery,\n isPreOrderEnabledForDelivery: store.isPreOrderEnabledForDelivery,\n preOrder: {\n ...store.preOrderSettingsForDelivery,\n },\n deliveryChargesWaiverInfo: {\n ...(+store?.deliveryChargesWaiverInfo?.onOrderAmount?.amount > 0 && {\n onOrderAmount: {\n isEnabled:\n store?.deliveryChargesWaiverInfo?.onOrderAmount?.isEnabled,\n amount: +store?.deliveryChargesWaiverInfo?.onOrderAmount?.amount,\n },\n }),\n\n ...(store?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime &&\n store?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime && {\n onDateRange: {\n isEnabled:\n store?.deliveryChargesWaiverInfo?.onDateRange?.isEnabled,\n startDateTime:\n store?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime,\n endDateTime:\n store?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime,\n },\n }),\n },\n },\n pickup: {\n workingHoursForPickup: {\n mondayStartTime: store.workingHoursForPickup.mondayStartTime,\n mondayStartTimeSlot2: store.workingHoursForPickup.mondayStartTimeSlot2,\n mondayEndTime: store.workingHoursForPickup.mondayEndTime,\n mondayEndTimeSlot2: store.workingHoursForPickup.mondayEndTimeSlot2,\n monday: store.workingHoursForPickup.monday,\n tuesdayStartTime: store.workingHoursForPickup.tuesdayStartTime,\n tuesdayStartTimeSlot2:\n store.workingHoursForPickup.tuesdayStartTimeSlot2,\n tuesdayEndTime: store.workingHoursForPickup.tuesdayEndTime,\n tuesdayEndTimeSlot2: store.workingHoursForPickup.tuesdayEndTimeSlot2,\n tuesday: store.workingHoursForPickup.tuesday,\n wednesdayStartTime: store.workingHoursForPickup.wednesdayStartTime,\n wednesdayStartTimeSlot2:\n store.workingHoursForPickup.wednesdayStartTimeSlot2,\n wednesdayEndTime: store.workingHoursForPickup.wednesdayEndTime,\n wednesdayEndTimeSlot2:\n store.workingHoursForPickup.wednesdayEndTimeSlot2,\n wednesday: store.workingHoursForPickup.wednesday,\n thursdayStartTime: store.workingHoursForPickup.thursdayStartTime,\n thursdayStartTimeSlot2:\n store.workingHoursForPickup.thursdayStartTimeSlot2,\n thursdayEndTime: store.workingHoursForPickup.thursdayEndTime,\n thursdayEndTimeSlot2: store.workingHoursForPickup.thursdayEndTimeSlot2,\n thursday: store.workingHoursForPickup.thursday,\n fridayStartTime: store.workingHoursForPickup.fridayStartTime,\n fridayStartTimeSlot2: store.workingHoursForPickup.fridayStartTimeSlot2,\n fridayEndTime: store.workingHoursForPickup.fridayEndTime,\n fridayEndTimeSlot2: store.workingHoursForPickup.fridayEndTimeSlot2,\n friday: store.workingHoursForPickup.friday,\n saturdayStartTime: store.workingHoursForPickup.saturdayStartTime,\n saturdayStartTimeSlot2:\n store.workingHoursForPickup.saturdayStartTimeSlot2,\n saturdayEndTime: store.workingHoursForPickup.saturdayEndTime,\n saturdayEndTimeSlot2: store.workingHoursForPickup.saturdayEndTimeSlot2,\n saturday: store.workingHoursForPickup.saturday,\n sundayStartTime: store.workingHoursForPickup.sundayStartTime,\n sundayStartTimeSlot2: store.workingHoursForPickup.sundayStartTimeSlot2,\n sundayEndTime: store.workingHoursForPickup.sundayEndTime,\n sundayEndTimeSlot2: store.workingHoursForPickup.sundayEndTimeSlot2,\n sunday: store.workingHoursForPickup.sunday,\n },\n averagePrepTimeForPickup: store.averagePrepTimeForPickup,\n isAcceptQuickOrderForPickup: store.isAcceptQuickOrderForPickup,\n isStoreOpen24HoursForPickup: store.isStoreOpen24HoursForPickup,\n pickupPaymentOptions: store.pickupPaymentOptions,\n vehicleInfoForPickup: store.vehicleInfoForPickup ? {\n isActive: store.vehicleInfoForPickup?.isActive,\n isRequired: store.vehicleInfoForPickup?.isRequired,\n } : null,\n isPreOrderEnabledForPickup: store.isPreOrderEnabledForPickup,\n preOrder: {\n ...store.preOrderSettingsForPickup,\n },\n },\n dineIn: {\n workingHoursForDinein: {\n mondayStartTime: store.workingHoursForDinein.mondayStartTime,\n mondayStartTimeSlot2: store.workingHoursForDinein.mondayStartTimeSlot2,\n mondayEndTime: store.workingHoursForDinein.mondayEndTime,\n mondayEndTimeSlot2: store.workingHoursForDinein.mondayEndTimeSlot2,\n monday: store.workingHoursForDinein.monday,\n tuesdayStartTime: store.workingHoursForDinein.tuesdayStartTime,\n tuesdayStartTimeSlot2:\n store.workingHoursForDinein.tuesdayStartTimeSlot2,\n tuesdayEndTime: store.workingHoursForDinein.tuesdayEndTime,\n tuesdayEndTimeSlot2: store.workingHoursForDinein.tuesdayEndTimeSlot2,\n tuesday: store.workingHoursForDinein.tuesday,\n wednesdayStartTime: store.workingHoursForDinein.wednesdayStartTime,\n wednesdayStartTimeSlot2:\n store.workingHoursForDinein.wednesdayStartTimeSlot2,\n wednesdayEndTime: store.workingHoursForDinein.wednesdayEndTime,\n wednesdayEndTimeSlot2:\n store.workingHoursForDinein.wednesdayEndTimeSlot2,\n wednesday: store.workingHoursForDinein.wednesday,\n thursdayStartTime: store.workingHoursForDinein.thursdayStartTime,\n thursdayStartTimeSlot2:\n store.workingHoursForDinein.thursdayStartTimeSlot2,\n thursdayEndTime: store.workingHoursForDinein.thursdayEndTime,\n thursdayEndTimeSlot2: store.workingHoursForDinein.thursdayEndTimeSlot2,\n thursday: store.workingHoursForDinein.thursday,\n fridayStartTime: store.workingHoursForDinein.fridayStartTime,\n fridayStartTimeSlot2: store.workingHoursForDinein.fridayStartTimeSlot2,\n fridayEndTime: store.workingHoursForDinein.fridayEndTime,\n fridayEndTimeSlot2: store.workingHoursForDinein.fridayEndTimeSlot2,\n friday: store.workingHoursForDinein.friday,\n saturdayStartTime: store.workingHoursForDinein.saturdayStartTime,\n saturdayStartTimeSlot2:\n store.workingHoursForDinein.saturdayStartTimeSlot2,\n saturdayEndTime: store.workingHoursForDinein.saturdayEndTime,\n saturdayEndTimeSlot2: store.workingHoursForDinein.saturdayEndTimeSlot2,\n saturday: store.workingHoursForDinein.saturday,\n sundayStartTime: store.workingHoursForDinein.sundayStartTime,\n sundayStartTimeSlot2: store.workingHoursForDinein.sundayStartTimeSlot2,\n sundayEndTime: store.workingHoursForDinein.sundayEndTime,\n sundayEndTimeSlot2: store.workingHoursForDinein.sundayEndTimeSlot2,\n sunday: store.workingHoursForDinein.sunday,\n },\n averagePrepTimeForDinein: store.averagePrepTimeForDinein,\n isStoreOpen24HoursForDinein: store.isStoreOpen24HoursForDinein,\n dineInPaymentOptions: store.dineInPaymentOptions,\n },\n\n serviceType: store.serviceType,\n isOpened: store.isOpened,\n language: \"EN\",\n country: store.country,\n city: store.city,\n taxRate: store.taxRate,\n timeZone: \"Asia/Dubai\",\n };\n return obj;\n};\n\n// discount validation\nexport const validateCouponsInputs = (state) => {\n let startDate = moment(state.values.isoDate).locale(\"en\").format();\n let endDate = moment(state.values.isoEndDate).locale(\"en\").format();\n const errorMessages = {\n discountName: i18next?.t(\"Discount name is required\"),\n couponCode: i18next?.t(\"Coupon code is required\"),\n couponCodeInvalid: i18next?.t(\n \"Coupon code should not contain any special characters or spaces\"\n ),\n discountAmount: i18next?.t(\"Discount amount is required\"),\n maxAmountAllowd: i18next?.t(\n \"Coupons with percentage types should not have an amount field greater than 100\"\n ),\n discountAmountInvalid: i18next?.t(\"Discount amount must be greater than 0\"),\n startDate: i18next?.t(\"Discount start date is required\"),\n endDate: i18next?.t(\"Discount end date is required\"),\n storeSelection: i18next?.t(\"Please select at least one store\"),\n itemSelection: i18next?.t(\"Please choose at least one item\"),\n perCustomerUse: i18next?.t(\"Per customer use must be greater than zero\"),\n minOrderValue: i18next?.t(\"Minimum order value can't be empty\"),\n maxUsage: i18next?.t(\"Total number of uses must be greater than zero\"),\n maximumDiscountValue: i18next?.t(\n \"Maximum discount must be greater than zero\"\n ),\n serviceType: i18next?.t(\"An order type selection is required\"),\n };\n let isFormValid = true;\n let errors = {};\n\n if (state?.values?.discountName === \"\") {\n errors.discountName = errorMessages.discountName;\n errorNotification(errorMessages.discountName);\n return { isFormValid: false, errors };\n }\n if (state?.values?.discountCode === \"\") {\n errors.couponCode = errorMessages.couponCode;\n errorNotification(errorMessages.couponCode);\n return { isFormValid: false, errors };\n }\n if (\n state?.values?.discountCode.match(/[^a-zA-Z0-9]/g) &&\n state?.values?.discountCode !== \"\"\n ) {\n errors.couponCode = errorMessages.couponCodeInvalid;\n errorNotification(errorMessages.couponCodeInvalid);\n return { isFormValid: false, errors };\n }\n\n if (state?.values?.discountAmount === \"\") {\n errors.discountAmount = errorMessages.discountAmount;\n errorNotification(errorMessages.discountAmount);\n return { isFormValid: false, errors };\n }\n\n if (state?.values?.discountAmount <= 0) {\n errors.discountAmount = errorMessages.discountAmountInvalid;\n errorNotification(errorMessages.discountAmountInvalid);\n return { isFormValid: false, errors };\n }\n if (\n state?.values?.discountAmount !== \"\" &&\n state?.values?.discountAmount > 100 &&\n state?.values?.discountType === C.PERCENTAGE\n ) {\n errors.maxAmountAld = errorMessages.maxAmountAllowd;\n errorNotification(errorMessages.maxAmountAllowd);\n return { isFormValid: false, errors };\n }\n if (startDate === \"\" || startDate === \"Invalid date\") {\n errors.startDate = errorMessages.startDate;\n errorNotification(errorMessages.startDate);\n return { isFormValid: false, errors };\n }\n if (endDate === \"\" || endDate === \"Invalid date\") {\n errors.endDate = errorMessages.endDate;\n errorNotification(errorMessages.endDate);\n return { isFormValid: false, errors };\n }\n\n if (\n state?.values?.outletSelectionType === C.SELECTED &&\n state?.values?.selectedOutlets?.length <= 0\n ) {\n errors.storeSelection = errorMessages.storeSelection;\n errorNotification(errorMessages.storeSelection);\n return { isFormValid: false, errors };\n }\n if (\n state?.values?.itemSelectionType === C.SELECTED &&\n state?.values?.selectedItems?.length <= 0\n ) {\n errors.itemSelection = errorMessages.itemSelection;\n errorNotification(errorMessages.itemSelection);\n return { isFormValid: false, errors };\n }\n if (\n state.values.perCustomerUse === \"\" ||\n isNaN(state.values.perCustomerUse) ||\n state?.values?.perCustomerUse <= 0\n ) {\n errors.perCustomerUse = errorMessages.perCustomerUse;\n errorNotification(errorMessages.perCustomerUse);\n return { isFormValid: false, errors };\n }\n if (state.values.minOrderValue === \"\" || isNaN(state.values.minOrderValue)) {\n errors.minOrderValue = errorMessages.minOrderValue;\n errorNotification(errorMessages.minOrderValue);\n return { isFormValid: false, errors };\n }\n if (\n state?.values?.maxUsage === \"\" ||\n isNaN(state.values.maxUsage) ||\n state.values.maxUsage <= 0\n ) {\n errors.maxUsage = errorMessages.maxUsage;\n errorNotification(errorMessages.maxUsage);\n return { isFormValid: false, errors };\n }\n if (\n state.values.maximumDiscountValue === \"\" ||\n isNaN(state.values.maximumDiscountValue) ||\n (state.values.maximumDiscountValue <= 0 &&\n state.values.discountType === C.PERCENTAGE)\n ) {\n errors.maximumDiscountValue = errorMessages.maximumDiscountValue;\n errorNotification(errorMessages.maximumDiscountValue);\n return { isFormValid: false, errors };\n }\n if (state?.values?.serviceType?.length <= 0) {\n errors.serviceType = errorMessages.serviceType;\n errorNotification(errorMessages.serviceType);\n return { isFormValid: false, errors };\n }\n\n return { isFormValid, errors };\n};\n\n// creating an object for create and update discount\nexport const getDiscountObj = (state) => {\n const storeIds = state?.values?.selectedOutlets?.map((store) => {\n return { storeId: store };\n });\n const itemIds = state?.values?.selectedItems?.map((item) => {\n return { itemId: item };\n });\n const obj = {\n startDate: moment(state.values.isoDate).locale(\"en\").format(),\n endDate: moment(state.values.isoEndDate).locale(\"en\").format(),\n discountApplication: state.values.applicationType,\n serviceType: state.values.serviceType,\n discountType: state.values.discountType,\n customerSegment: state.values.customerSegmentationType,\n discountName: state.values.discountName,\n discountCode: state.values.discountCode.toLocaleLowerCase(),\n brandId: UTILS.getCurrentUser()?.brandId,\n discountAmount: Math.round(state.values.discountAmount * 100) / 100,\n maxUsage: +state.values.maxUsage,\n isApplicableOnAllItems:\n state.values.itemSelectionType === C.ALL ? true : false,\n isApplicableOnAllStores:\n state.values.outletSelectionType === C.ALL ? true : false,\n discountAppliedOnSpecificStores:\n state.values.outletSelectionType === C.SELECTED ? storeIds : [],\n discountAppliedOnSpecificItems:\n state.values.itemSelectionType === C.SELECTED ? itemIds : [],\n minOrderValue: Math.round(state.values.minOrderValue),\n maximumDiscountValue:\n state.values.discountType === C.PERCENTAGE\n ? Math.round(state.values.maximumDiscountValue)\n : 0,\n isActive: true,\n };\n if (state?.values?.customerSegmentationType === \"new\") {\n obj.perCustomerUse = 1;\n } else {\n obj.perCustomerUse = +state?.values?.perCustomerUse;\n }\n\n return obj;\n};\n\nexport const getSelectedDelivery = (order) => {\n return order?.logisticPartner;\n};\n\nexport const OdrAlrdySndToTalabat = (order) => {\n if (\n order?.logisticPartnerMetadata?.TALABAT?.orderPlaceResponse?.order_id ===\n undefined ||\n order?.logisticPartnerMetadata?.TALABAT?.orderPlaceResponse?.order_id ===\n null\n ) {\n return false;\n } else {\n return true;\n }\n};\n\nexport const ifnullOrUndefined = (value) => {\n if (value === undefined || value === null) {\n return true;\n } else {\n return false;\n }\n};\nexport const ifNotNullAndUndfine = (value) => {\n if (value !== undefined && value !== null) {\n return true;\n } else {\n return false;\n }\n};\nexport const Undfined = (value) => {\n if (value === undefined) {\n return true;\n } else {\n return false;\n }\n};\nexport const validateTalabat = (value) => {\n let message = \"Something went wrong,please try later\";\n if (ifnullOrUndefined(value?.storeId)) {\n errorNotification(message);\n return false;\n }\n if (ifnullOrUndefined(value?.brandId)) {\n errorNotification(message);\n return false;\n }\n if (ifnullOrUndefined(value?._id)) {\n errorNotification(message);\n return false;\n }\n return true;\n};\n\nexport const asyncLocalStorage = {\n getLanguage: function (key) {\n return Promise.resolve().then(function () {\n try {\n let dir = localStorage.getItem(C.DIRECTION);\n if (dir) {\n let lang = JSON.parse(dir);\n return lang?.lang?.toUpperCase();\n } else {\n let dir = localStorage.getItem(\"i18nextLng\");\n return dir?.toUpperCase();\n }\n } catch (error) {}\n });\n },\n};\nexport const isDomainNameValid = (name) => {\n const REGEX = new RegExp(\"^[a-z0-9-]+$\");\n let isValidDomainName = REGEX.test(name);\n if (!isValidDomainName) return false;\n return true;\n};\n\n//All areas on server with one isAdded property\n\n//getFilteredAreasList : returns all added+not added areas and add a custom property \"isAdded\" to each area\n//@ params: areaData, addedAreas\n//areasData: all business areas\n//addedAreas: all added areas\nexport const getFilteredAreasList = (areasData, alreadyAddedAreas) => {\n const filteredArray = [];\n if (areasData) {\n areasData[0]?.cities?.map((city) => {\n return city?.areas?.map((area) => {\n if (\n !alreadyAddedAreas.find((item) => item?.areaID?._id === area?._id)\n ) {\n filteredArray.push({\n ...area,\n isAdded: false,\n });\n } else {\n filteredArray.push({\n ...area,\n isAdded: true,\n });\n }\n });\n });\n return filteredArray;\n }\n};\n\n//All countries on server with one isAdded property\nexport const getCustomizedCountryList = (shippingData, addedCountries) => {\n try {\n const filteredArray = [];\n if (shippingData) {\n shippingData?.forEach((countryObj) => {\n const found = addedCountries?.countryDeliveryData.find(\n (added) => added?.countryID?._id === countryObj._id\n );\n if (found) {\n filteredArray.push({\n ...countryObj,\n isAdded: true,\n });\n } else {\n filteredArray.push({\n ...countryObj,\n isAdded: false,\n });\n }\n });\n return filteredArray;\n }\n } catch (error) {\n console.error({ error });\n }\n};\n\n//returning list of All cities added+not added ,from client side we are adding on custom proprty\nexport const getCustomizedCitiesList = (shippingData, addedCities) => {\n try {\n let filteredArray = [];\n if (shippingData) {\n shippingData?.map((country) => {\n return country.cities?.forEach((cityObj) => {\n const found = addedCities?.cityDeliveryData.find(\n (added) => added?.cityID?._id === cityObj?._id\n );\n if (found) {\n filteredArray.push({\n ...cityObj,\n isAdded: true,\n });\n } else {\n filteredArray.push({\n ...cityObj,\n isAdded: false,\n });\n }\n });\n });\n\n return filteredArray;\n }\n } catch (error) {\n console.error({ error });\n }\n};\nexport const validateAdminSetting = (popup) => {\n let isValid = true;\n\n if (popup?.title?.length < 2 || popup?.title?.length >= 11) {\n handleErrorNotification(\n i18next.t(\n \"Title must be at least 2 characters long and no more than 10 characters long\"\n )\n );\n isValid = false;\n }\n if (popup?.message?.length < 2 || popup?.message?.length >= 39) {\n handleErrorNotification(\n i18next.t(\n \"Message must be at least 2 characters long and no more than 38 characters long\"\n )\n );\n isValid = false;\n }\n if (popup?.buttonText?.length < 2 || popup?.buttonText?.length >= 11) {\n handleErrorNotification(\n i18next.t(\n \"Button text must be at least 2 characters long and no more than 10 characters long\"\n )\n );\n }\n return isValid;\n};\nexport const simplifiedAreaData = (areaData, language) => {\n let countries = [];\n const handleCountryList = (areaData) => {\n if (areaData) {\n areaData?.forEach((item) => {\n countries.push({\n value: item._id,\n label:\n language?.current === \"en\"\n ? item.countryNameEN\n : item.countryNameAR,\n });\n });\n }\n getCitesList(countries);\n };\n\n const getCitesList = (countries) => {\n countries?.length > 0 &&\n countries?.forEach((item) => {\n handleCitiesList(areaData, item.value);\n });\n };\n\n let citites = [];\n const handleCitiesList = (areaData, countryID) => {\n if (areaData) {\n const selectedCountry = areaData?.filter((el) => el._id === countryID);\n if (selectedCountry) {\n selectedCountry[0]?.cities?.forEach((element) => {\n citites?.push({\n value: element._id,\n label:\n language.current === \"en\"\n ? element.cityNameEN\n : element.cityNameAR,\n areas: element.areas,\n });\n });\n }\n }\n };\n handleCountryList(areaData, language);\n return { countries, citites };\n};\n\nexport function getSentryUser() {\n try {\n let user = localStorage.getItem(C.CURRENT_USER);\n if (user) {\n const pasedObj = JSON.parse(user);\n let obj = {\n email: pasedObj.email,\n id: `{{\"brandId:\"}${pasedObj.brandId}{\"userId:\"}${pasedObj.userId}}`,\n username: pasedObj.brandName,\n };\n return obj;\n }\n } catch (error) {}\n}\n\nexport const setLocalStorage = (key, value) => {\n localStorage.setItem(key, value);\n};\nexport const getLocalStorage = (key) => {\n let value = localStorage.getItem(key);\n return value;\n};\n\nexport const checkISAppUpdated = () => {\n let savedVersion = localStorage.getItem(\"APP-version\");\n let envVersion = process.env.REACT_APP_VERSION;\n if (envVersion < savedVersion) {\n Sentry.captureMessage(\"App version Not updated from CDN\", {\n level: \"error\",\n });\n } else {\n localStorage.removeItem(\"APP-version\");\n }\n};\n\n// get package prices after applying discount if Discount Applicable\nexport const getPackagePrice = (packageInfo, planType) => {\n let PackageFinalPrice;\n if (packageInfo?.price) {\n let price = packageInfo.price;\n let discountPercent = packageInfo[planType];\n let discountAmount = (discountPercent / 100) * price;\n PackageFinalPrice = price - discountAmount;\n }\n return parseFloat(PackageFinalPrice)?.toFixed(2);\n};\n\n// CONVERT ARABIC NUMBERS to ENGLISH\nexport function NumberConversion(input) {\n if (typeof input === \"string\") {\n input = input.trim();\n const arabicNums = [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"];\n let output = \"\";\n for (let i = 0; i < input.length; i++) {\n if (arabicNums.indexOf(input[i]) !== -1) {\n output += arabicNums.indexOf(input[i]);\n } else if (!isNaN(input[i])) {\n output += input[i];\n }\n }\n return output;\n } else {\n return input;\n }\n}\n\n/**\n * It takes a string of Arabic numerals and returns a string of English numerals.\n * @param input - The input string to be converted.\n */\nexport function ARtoENPrice(input) {\n if (typeof input === \"string\") {\n input = input.trim();\n const arabicNums = [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"];\n let output = \"\";\n let decimalCount = 0;\n for (let i = 0; i < input.length; i++) {\n if (arabicNums.indexOf(input[i]) !== -1) {\n output += arabicNums.indexOf(input[i]);\n } else if (input[i] === \".\" || !isNaN(input[i])) {\n if (input[i] === \".\") {\n decimalCount++;\n if (decimalCount > 1) continue;\n }\n output += input[i];\n }\n }\n if (output.includes(\".\")) {\n const decimalIndex = output.indexOf(\".\");\n output = output.substring(0, decimalIndex + 3);\n }\n return output;\n } else {\n return input;\n }\n}\n\n// export function logToSentry(message, options) {\n// Sentry.captureMessage(message, options);\n// Sentry.captureException(new Error(message));\n// }\n\nexport const logToSentry = (message, options) => {\n try {\n const userDetail = UTILS.getCurrentUser();\n Sentry.withScope((scope) => {\n scope.setExtras({\n localstorage: userDetail,\n });\n Sentry.captureMessage(message, options);\n Sentry.captureException(new Error(message));\n\n Sentry.setTags({\n app_version: process.env.REACT_APP_VERSION,\n app_name: C.APP_NAME,\n });\n });\n } catch (error) {}\n};\n\nexport const logErrorOnSentry = (message, level, extraDat) => {\n try {\n let user = UTILS.getCurrentUser();\n Sentry.withScope((scope) => {\n scope.setLevel(level);\n scope.setExtra(\"extra-data\", extraDat || \"\");\n scope.setExtras({\n localstorage: user,\n });\n Sentry.captureMessage(message, {\n level: level ?? \"error\",\n extra: {\n url: window.location.href,\n userAgent: navigator.userAgent,\n },\n });\n\n Sentry.setTags({\n app_version: process.env.REACT_APP_VERSION,\n app_name: C.APP_NAME,\n });\n });\n } catch (error) {}\n};\n\n/**\n *\n * @param item - The item object that is being validated.\n */\nexport const validateItemInfo = (item) => {\n let isValidForm = true;\n let objError = {\n baseLanguage: {\n title: \"\",\n description: \"\",\n },\n price: \"\",\n };\n if (\n !item?.values?.baseLanguage?.title.trim() ||\n hasWhiteSpace(item.values.baseLanguage.title)\n ) {\n objError.baseLanguage.title = i18next.t(\"Please enter Item name\");\n isValidForm = false;\n }\n if (\n !item?.values?.baseLanguage?.description?.trim() ||\n UTILS.hasWhiteSpace(item.values.baseLanguage.description)\n ) {\n objError.baseLanguage.description = i18next.t(\"Please enter description\");\n isValidForm = false;\n }\n\n if (item?.values?.price === \"\") {\n objError.price = i18next.t(\"Please enter price\");\n isValidForm = false;\n }\n return { isValidForm, objError };\n};\n\nexport function withTryCatch(callback) {\n return async (...args) => {\n try {\n await callback(...args);\n } catch (error) {\n console.error(\"Error:\", error);\n }\n };\n}\n\nexport const ValidateParams = (params) => {\n for (const key in params) {\n if (!params.hasOwnProperty(key)) {\n continue;\n }\n\n const value = params[key];\n\n if (value === null || value === undefined || value === \"\") {\n console.error(`Invalid value for key \"${key}\": ${value}`);\n return false;\n }\n\n // You can add any other conditions to check for invalid values here.\n // For example:\n // if (typeof value !== 'string') {\n // return false;\n // }\n }\n\n return true;\n};\n\nexport const isValidValue = (value) => {\n return value !== null && value !== undefined && value !== \"\";\n};\nexport const getCatalogueType = () => {\n const userDetail = getCurrentUser();\n if (userDetail?.catalogueType) {\n return userDetail?.catalogueType;\n }\n return null;\n};\n\n// open whtsapp\nexport const openWhatsApp = (number) => {\n const url = `https://wa.me/${number}`;\n window.open(url, \"_blank\");\n};\n\nexport const getStoreInfo = (selectedStore, stores) => {\n console.log({ selectedStore, stores });\n const store = stores.find((store) => store?.value === selectedStore?.value);\n return store;\n};\nexport const getStarRatingClasses = (rating) => {\n const classLookup = {\n 5: \"green__star\",\n 1: \"red__star\",\n 2: \"red__star\",\n 3: \"selected\",\n 4: \"selected\",\n };\n\n return classLookup[rating] || \"\";\n};\n\nexport const getORderPaymentGateway = (order) => {\n return order?.orderCheckoutOnlinePaymentMetadata?.data?.paymentGateway;\n};\n\nexport const downloadReports = (url) => {\n window.open(url, \"_blank\");\n};\n","import \"moment-timezone\";\nimport moment from \"moment\";\nexport const getPackageExpiry = (subscription) => {\n let differnce = 0;\n if (subscription?.amountPaid < 1 && subscription?.isValid) {\n } else if (!subscription?.isValid) {\n const endDate = moment.unix(subscription?.endDate).tz(\"UTC\");\n const diff = moment(moment().valueOf()).diff(endDate, \"days\");\n\n differnce = diff;\n }\n return differnce;\n};\n","import { TRACKING_UTILS } from \"utils\";\n\n// call on next-button on registration page on Api success\nexport const nonVerifiedRegistrations = (data) => {\n const { userId, brandName, phoneNumber } = data;\n // check if plugin is active, for example facebook pixel\n TRACKING_UTILS.triggerFacebookEvent(\n \"NonVerifiedRegistrations\",\n {\n userId: userId,\n brandName: brandName,\n phoneNumber: phoneNumber,\n },\n {\n isCustomEvent: true,\n }\n );\n TRACKING_UTILS.triggerFacebookEvent(\"RegisterUser\", data, {\n isCustomEvent: true,\n });\n\n TRACKING_UTILS.triggerGoogleAdsEvent(\"NonVerifiedRegistrations\", {\n send_to: \"AW-11071182048/dJp2CNztvI4YEOCpk58p\",\n });\n\n TRACKING_UTILS.triggerGoogleAdsEvent(\"conversion\", {\n send_to: \"AW-11071182048/uG_vCL6ghokYEOCpk58p\",\n });\n\n TRACKING_UTILS.triggerGoogleAnalyticsEvent(\"non_verified_registration_ga\", {\n transaction_id: userId,\n value: 0,\n });\n};\n\n// call on otp Api success\nexport const verifiedRegistrations = (data) => {\n const { user_id } = data;\n TRACKING_UTILS.triggerFacebookEvent(\"VerifiedRegistrations\", data, {\n isCustomEvent: true,\n });\n TRACKING_UTILS.triggerGoogleAdsEvent(\"VerifiedRegistrations\", {\n send_to: \"AW-11071182048/KLugCKrxvI4YEOCpk58p\",\n });\n\n TRACKING_UTILS.triggerGoogleAnalyticsEvent(\"verified_registration_ga\", {\n transaction_id: user_id,\n value: 0,\n });\n};\n\nexport const subscribedUsers = (data) => {\n const { transaction_id, plan_price, plan_name, currency } = data;\n\n TRACKING_UTILS.triggerFacebookEvent(\n \"SubscribedUsers\",\n { value: \"\" + plan_price, currency: currency },\n {\n isCustomEvent: true,\n }\n );\n\n TRACKING_UTILS.triggerGoogleAdsEvent(\"SubscribedUsers\", {\n send_to: \"AW-11071182048/-IFWCJGCvY4YEOCpk58p\",\n });\n //transaction_id:transaction_id\n TRACKING_UTILS.triggerGoogleAnalyticsEvent(\"subscribed_plan_ga\", {\n transaction_id: transaction_id,\n plan_name: plan_name,\n plan_price: plan_price,\n });\n};\n","import { logToSentry } from \"./Utils\";\nconst generateEventId = () => {\n let dt = new Date().getTime();\n let uuid = \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(\n /[xy]/g,\n function (c) {\n let r = (dt + Math.random() * 16) % 16 | 0;\n dt = Math.floor(dt / 16);\n return (c == \"x\" ? r : (r & 0x3) | 0x8).toString(16);\n }\n );\n return uuid;\n};\n\nconst getFacebookBrowserData = () => {\n let fbp = document.cookie\n .split(\";\")\n .filter((c) => c.includes(\"_fbp=\"))\n .map((c) => c.split(\"_fbp=\")[1]);\n let fbc = document.cookie\n .split(\";\")\n .filter((c) => c.includes(\"_fbc=\"))\n .map((c) => c.split(\"_fbc=\")[1]);\n fbp = (fbp.length && fbp[0]) || null;\n fbc = (fbc.length && fbc[0]) || null;\n\n if (!fbc && window.location.search.includes(\"fbclid=\")) {\n fbc =\n \"fb.1.\" + +new Date() + \".\" + window.location.search.split(\"fbclid=\")[1];\n }\n\n return {\n fbp: fbp,\n fbclid: fbc,\n user_agent: navigator.userAgent,\n url: window.location.origin + window.location.pathname,\n };\n};\n\nconst CAPI = (event, eventData, eventID) => {\n const { fbp, fbc, user_agent, url } = getFacebookBrowserData();\n\n const body = {\n event: event,\n event_id: eventID,\n event_data: eventData,\n fbp: fbp,\n fbclid: fbc,\n user_agent: user_agent,\n url: url,\n };\n};\n\nexport const triggerFacebookEvent = (event, customData = {}, eventMeta) => {\n const eventID = generateEventId();\n const serverSideTracking = false;\n\n if (typeof window.fbq !== \"undefined\") {\n if (eventMeta.isCustomEvent) {\n window.fbq(\"trackCustom\", event, customData, {\n eventID: eventID,\n });\n } else {\n window.fbq(\"track\", event, customData, {\n eventID: eventID,\n });\n }\n }\n\n if (serverSideTracking) {\n CAPI(event, customData, eventID);\n }\n};\n\nexport const triggerGoogleAdsEvent = (event, dataObj) => {\n //Event snippet for Sign-up conversion page\n\n if (typeof window.gtag !== \"undefined\") {\n window.gtag(\"event\", \"conversion\", dataObj);\n } else {\n logToSentry(\n \"GoogleAdSignUpEvent didn't work, window.gtag is coming as UNDEFINED\",\n {\n level: \"error\",\n // logger: \"myLogger\",\n // tags: { environment: \"production\", customer_id: \"1234\" },\n // extra: { user_id: \"5678\", browser: \"Chrome\" },\n // user: { id: \"1234\", email: \"user@example.com\" },\n }\n );\n }\n};\n\nexport const triggerGoogleAnalyticsEvent = (event_name, event_data) => {\n //Event snippet for Sign-up conversion page\n if (typeof window.gtag !== \"undefined\") {\n window.gtag(\"event\", event_name, event_data);\n } else {\n logToSentry(\n \"triggerGoogleAnaltyicsEvent didn't work, window.gtag is coming as UNDEFINED\",\n {\n level: \"error\",\n // logger: \"myLogger\",\n // tags: { environment: \"production\", customer_id: \"1234\" },\n // extra: { user_id: \"5678\", browser: \"Chrome\" },\n // user: { id: \"1234\", email: \"user@example.com\" },\n }\n );\n }\n};\n","export const KEY_PREORDER_MIN_TIME_IN_ADVANCE_DELIVERY =\n \"preOrderMinTimeInAdvanceDelivery\";\nexport const KEY_PREORDER_MIN_TIME_IN_ADVANCE_PICKUP =\n \"preOrderMinTimeInAdvancePickup\";\n\nexport const KEY_PREORDER_MIN_TIME_IN_ADVANCE_UNIT =\n \"preOrderMinTimeInAdvanceUnit\";\nexport const KEY_PREORDER_MAX_DAYS_IN_ADVANCE = \"preOrderMaxDaysInAdvance\";\nexport const KEY_PREORDER_MAX_DAYS_IN_ADVANCE_UNIT =\n \"preOrderMaxDaysInAdvanceUnit\";\nexport const KEY_PREORDER_MIN_DAYS_IN_ADVANCE_UNIT =\n \"preOrderMinDaysInAdvanceUnit\";\nexport const KEY_PREORDER_SLOT_INTERVAL = \"preOrderSlotInterval\";\nexport const KEY_PREORDER_SLOT_INTERVAL_UNIT = \"preOrderSlotIntervalUnit\";\n","import {\n emailValidation,\n errorNotification,\n ifnullOrUndefined,\n isValidValue,\n} from \"./Utils\";\nimport { CONSTANTS as C } from \"config\";\nimport \"moment-timezone\";\nimport i18next from \"i18next\";\nimport * as SC from \"./storeConstants\";\n\nexport const VALIDATE_INPUTS = (store) => {\n console.log(\"VALIDATE_INPUTS\", store);\n let isFormValid = true;\n let errors = {\n email: \"\",\n mobileNumber: \"\",\n whatsAppContact: \"\",\n baseLanguage: {\n name: \"\",\n description: \"\",\n },\n city: \"\",\n taxRate: \"\",\n timeZone: \"\",\n averagePrepTime: \"\",\n averagePrepTimeForPickup: \"\",\n averagePrepTimeForDinein: \"\",\n };\n if (store?.values[C.BASE_LANGUAGE]?.name?.trim() === \"\") {\n errors[C.BASE_LANGUAGE].name = i18next.t(\"Name Field is required\");\n isFormValid = false;\n errorNotification(i18next.t(\"Name Field is required\"));\n return { isFormValid, errors };\n }\n\n if (store?.values[C.BASE_LANGUAGE]?.description.trim() === \"\") {\n errors[C.BASE_LANGUAGE].description = i18next.t(\n \"Description Field is required\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Description Field is required\"));\n return { isFormValid, errors };\n }\n if (!isValidValue(store?.values[C.KEY_TAX_RATE])) {\n errors[C.KEY_TAX_RATE] = i18next.t(\"Tax Rate Field is required\");\n isFormValid = false;\n errorNotification(i18next.t(\"Tax Rate Field is required\"));\n return { isFormValid, errors };\n }\n\n //avergage prep for delivery\n if (store?.values[C.ISDELIVERYENABLED]) {\n if (!store?.values[C.AVERAGE_PREP]?.trim()) {\n errors[C.AVERAGE_PREP] = i18next.t(\n \"Average Preparation Field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Average Preparation Field is required in section\", {\n serviceType: i18next.t(\"Delivery\"),\n })\n );\n return { isFormValid, errors };\n } else if (store?.values[C.AVERAGE_PREP]?.trim()?.length <= 2) {\n errors[C.AVERAGE_PREP] = i18next.t(\n \"Average Preparation Time should be more than 2 characters\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\n \"Average Preparation Time should be more than 2 characters in section\",\n {\n serviceType: i18next.t(\"Delivery\"),\n }\n )\n );\n return { isFormValid, errors };\n }\n\n if (store?.values?.deliveryChargesWaiverInfo?.onOrderAmount?.isEnabled) {\n if (!store?.values?.deliveryChargesWaiverInfo?.onOrderAmount?.amount) {\n errors[\"DELIVERY_CHARGES_WAIVE_OFF_ON_ORDER_AMOUNT\"] = i18next.t(\n \"Delivery charges waive off on order amount field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\n \"Delivery charges waive off on order amount field is required\"\n )\n );\n return { isFormValid, errors };\n }\n }\n if (store?.values?.deliveryChargesWaiverInfo?.onDateRange?.isEnabled) {\n if (\n !store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime ||\n !store?.values?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime\n ) {\n errors[\"DELIVERY_CHARGES_WAIVE_OFF_ON_DATE_RANGE\"] = i18next.t(\n \"Delivery charges waive off date range field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Delivery charges waive off date range field is required\")\n );\n return { isFormValid, errors };\n }\n }\n }\n //avergage prep for pickup\n if (store?.values[C.ISPICKUPENABLED]) {\n if (!store?.values[C.PICKUP_AVERAGE_PREP]?.trim()) {\n errors[C.PICKUP_AVERAGE_PREP] = i18next.t(\n \"Average Preparation Field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Average Preparation Field is required in section\", {\n serviceType: i18next.t(\"Pickup\"),\n })\n );\n return { isFormValid, errors };\n } else if (store?.values[C.PICKUP_AVERAGE_PREP]?.trim()?.length <= 2) {\n errors[C.PICKUP_AVERAGE_PREP] = i18next.t(\n \"Average Preparation Time should be more than 2 characters\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\n \"Average Preparation Time should be more than 2 characters in section\",\n {\n serviceType: i18next.t(\"Pickup\"),\n }\n )\n );\n return { isFormValid, errors };\n }\n }\n // avergage prep dine\n if (store?.values[C.ISDINEINENABLED]) {\n if (!store?.values[C.DINEIN_AVERAGE_PREP]?.trim()) {\n errors[C.DINEIN_AVERAGE_PREP] = i18next.t(\n \"Average Preparation Field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Average Preparation Field is required in section\", {\n serviceType: i18next.t(\"Contactless Dining\"),\n })\n );\n return { isFormValid, errors };\n } else if (store?.values[C.DINEIN_AVERAGE_PREP]?.trim()?.length <= 2) {\n errors[C.DINEIN_AVERAGE_PREP] = i18next.t(\n \"Average Preparation Time should be more than 2 characters\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\n \"Average Preparation Time should be more than 2 characters in section\",\n {\n serviceType: i18next.t(\"Contactless Dining\"),\n }\n )\n );\n return { isFormValid, errors };\n }\n }\n\n if (!store?.values[C.KEY_CITY] || store.values[C.KEY_CITY]?.trim() === \"\") {\n errors[C.KEY_CITY] = i18next.t(\"Please select city\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please select city\"));\n return { isFormValid, errors };\n }\n\n if (store.values[C.KEY_TIMEZONE] === \"\") {\n errors[C.KEY_TIMEZONE] = i18next.t(\"Please select time zone\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please select time zone\"));\n return { isFormValid, errors };\n }\n\n if (store.values.email !== \"\") {\n store.values.email = store?.values?.email?.trim();\n if (!emailValidation().test(store.values[C.KEY_EMAIL])) {\n isFormValid = false;\n errors[C.KEY_EMAIL] = i18next.t(\"Please enter valid email-ID.\");\n errorNotification(i18next.t(\"Please enter valid email-ID.\"));\n return { isFormValid, errors };\n }\n } else if (store.values?.email === \"\") {\n isFormValid = false;\n errors[C.KEY_EMAIL] = i18next.t(\"Email Field is required\");\n errorNotification(i18next.t(\"Email Field is required\"));\n return { isFormValid, errors };\n }\n\n console.log({ phoneNumber: store.values });\n if (!store?.values[C.KEY_PHONE]) {\n errors[C.KEY_PHONE] = i18next.t(\"Please enter a valid Phone Number\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please enter a valid Phone Number\"));\n return { isFormValid, errors };\n }\n if (store.values[C.KEY_PHONE]) {\n if (\n (store.values[C.KEY_PHONE]?.charAt(4) === \"0\" &&\n store.values[C.KEY_PHONE]?.length < 11) ||\n (store.values[C.KEY_PHONE]?.charAt(4) !== \"0\" &&\n store.values[C.KEY_PHONE]?.length < 10)\n ) {\n errors[C.KEY_PHONE] = i18next.t(\"Please enter a valid Phone Number\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please enter a valid Phone Number\"));\n return { isFormValid, errors };\n }\n }\n if (store?.values[C.KEY_WHATSAPP_PHONE]) {\n if (\n (store?.values[C.KEY_WHATSAPP_PHONE]?.charAt(4) === \"0\" &&\n store?.values[C.KEY_WHATSAPP_PHONE]?.length !== 14) ||\n (store?.values[C.KEY_WHATSAPP_PHONE]?.charAt(4) !== \"0\" &&\n store?.values[C.KEY_WHATSAPP_PHONE]?.length !== 13)\n ) {\n errors[C.KEY_WHATSAPP_PHONE] = i18next.t(\n \"Please Enter a valid whatsapp number\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Please Enter a valid whatsapp number\"));\n return { isFormValid, errors };\n }\n }\n\n // else {\n // if (\n // (store?.values[C.KEY_WHATSAPP_PHONE]?.charAt(4) === \"0\" &&\n // store?.values[C.KEY_WHATSAPP_PHONE]?.length !== 14) ||\n // (store?.values[C.KEY_WHATSAPP_PHONE]?.charAt(4) !== \"0\" &&\n // store?.values[C.KEY_WHATSAPP_PHONE]?.length !== 13)\n // ) {\n // errors[C.KEY_WHATSAPP_PHONE] = i18next.t(\n // \"Please Enter a valid whatsapp number\"\n // );\n // isFormValid = false;\n // errorNotification(i18next.t(\"Please Enter a valid whatsapp number\"));\n // return { isFormValid, errors };\n // }\n // }\n\n if (store?.values[C.KEY_MANUAL_ADDRESS]?.trim()?.length <= 5) {\n errors[C.KEY_MANUAL_ADDRESS] = i18next.t(\n \"Address should be more than 5 characters\"\n );\n\n isFormValid = false;\n errorNotification(i18next.t(\"Address should be more than 5 characters\"));\n return { isFormValid, errors };\n }\n\n if (store?.values[C.KEY_MAP_ADDRESS].replace(\" \", \"\") === \"\") {\n errors[C.KEY_MAP_ADDRESS] = i18next.t(\"Please Locate your store on map\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please Locate your store on map\"));\n return { isFormValid, errors };\n }\n if (\n store?.values[C.KEY_MAP_ADDRESS] !== \"\" &&\n store?.values[C.KEY_MAP_ADDRESS]?.trim()?.length <= 5\n ) {\n errors[C.KEY_MAP_ADDRESS] = i18next.t(\n \"Address should be more than 5 characters\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Address should be more than 5 characters\"));\n return { isFormValid, errors };\n }\n if (store.values[C.KEY_MAP_ADDRESS] && store?.values?.zoom <= 20) {\n errors[C.KEY_MAP_ADDRESS] = i18next.t(\"zoom level error\");\n isFormValid = false;\n errorNotification(i18next.t(\"zoom level error\"));\n return { isFormValid, errors };\n }\n\n //delivey payment types\n if (\n store.values[C.ISDELIVERYENABLED] &&\n store.values[C.KEY_PAYMENT_TYPES]?.length === 0\n ) {\n errors[C.KEY_PAYMENT_TYPES] = i18next.t(\n \"Please select atleast one PAYMENT TYPE in section\",\n {\n serviceType: i18next.t(\"Delivery\"),\n }\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Please select atleast one PAYMENT TYPE in section\", {\n serviceType: i18next.t(\"Delivery\"),\n })\n );\n return { isFormValid, errors };\n }\n\n // pickup payment types\n if (\n store.values[C.ISPICKUPENABLED] &&\n store.values[C.KEY_PICKUP_PAYMENT_TYPES]?.length === 0\n ) {\n errors[C.KEY_PICKUP_PAYMENT_TYPES] = i18next.t(\n \"Please select atleast one PAYMENT TYPE in section\",\n {\n serviceType: i18next.t(\"Pickup\"),\n }\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Please select atleast one PAYMENT TYPE in section\", {\n serviceType: i18next.t(\"Pickup\"),\n })\n );\n return { isFormValid, errors };\n }\n\n if (\n store.values[C.ISDINEINENABLED] &&\n store.values[C.KEY_DINEIN_PAYMENT_TYPES]?.length === 0\n ) {\n errors[C.KEY_DINEIN_PAYMENT_TYPES] = i18next.t(\n \"Please select atleast one PAYMENT TYPE in section\",\n {\n serviceType: i18next.t(\"Contactless Dining\"),\n }\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Please select atleast one PAYMENT TYPE in section\", {\n serviceType: i18next.t(\"Contactless Dining\"),\n })\n );\n return { isFormValid, errors };\n }\n\n ///preORdering Vlidtion for delivery\n if (store.values[C.ISDELIVERYENABLED]) {\n const { isFormValidForDelivery, errorsForDelivery } =\n validatePreOrderingForDelivery(store, errors, isFormValid);\n isFormValid = isFormValidForDelivery;\n errors = { ...errors, ...errorsForDelivery };\n\n if (!isFormValidForDelivery) {\n return { isFormValid, errors };\n }\n }\n if (store.values[C.ISPICKUPENABLED]) {\n const { isFormValidForPickup, errorsForPickup } =\n validatePreOrderingForPickup(store, errors, isFormValid);\n isFormValid = isFormValidForPickup;\n errors = { ...errors, ...errorsForPickup };\n if (!isFormValidForPickup) {\n return { isFormValid, errors };\n }\n }\n\n return { isFormValid, errors };\n};\n\nexport const VALIDATE_INPUTS_STEP1 = (store) => {\n let isFormValid = true;\n let errors = {\n email: \"\",\n mobileNumber: \"\",\n baseLanguage: {\n name: \"\",\n description: \"\",\n },\n city: \"\",\n taxRate: \"\",\n };\n if (store[C.BASE_LANGUAGE].name.trim() === \"\") {\n errors[C.BASE_LANGUAGE].name = i18next.t(\"Name Field is required\");\n isFormValid = false;\n errorNotification(i18next.t(\"Name Field is required\"));\n return { isFormValid, errors };\n }\n if (store[C.BASE_LANGUAGE].description.trim() === \"\") {\n errors[C.BASE_LANGUAGE].description = i18next.t(\n \"Description Field is required\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Description Field is required\"));\n return { isFormValid, errors };\n }\n if (store.email !== \"\") {\n store.email = store.email.trim();\n if (!emailValidation().test(store[C.KEY_EMAIL])) {\n isFormValid = false;\n errors[C.KEY_EMAIL] = i18next.t(\"Please enter valid email-ID.\");\n errorNotification(i18next.t(\"Please enter valid email-ID.\"));\n return { isFormValid, errors };\n }\n } else if (store.email === \"\") {\n isFormValid = false;\n errors[C.KEY_EMAIL] = i18next.t(\"Email Field is required\");\n errorNotification(i18next.t(\"Email Field is required\"));\n return { isFormValid, errors };\n }\n\n if (\n !store?.mobileNumber ||\n (store?.mobileNumber?.charAt(4) === \"0\" &&\n store?.mobileNumber?.length < 11) ||\n (store.mobileNumber?.charAt(4) !== \"0\" && store?.mobileNumber?.length < 10)\n ) {\n errors[C.KEY_PHONE] = i18next.t(\"Please enter a valid Phone Number\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please enter a valid Phone Number\"));\n return { isFormValid, errors };\n }\n if (\n store?.whatsAppContact === null ||\n store?.whatsAppContact === \"\" ||\n store?.whatsAppContact === undefined\n ) {\n } else {\n if (\n (store?.whatsAppContact?.charAt(4) === \"0\" &&\n store?.whatsAppContact?.length !== 14) ||\n (store?.whatsAppContact?.charAt(4) !== \"0\" &&\n store?.whatsAppContact?.length !== 13)\n ) {\n errors[C.KEY_WHATSAPP_PHONE] = i18next.t(\n \"Please Enter a valid whatsapp number\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Please Enter a valid whatsapp number\"));\n return { isFormValid, errors };\n }\n }\n\n if (store[C.KEY_TAX_RATE].trim() == \"\") {\n errors[C.KEY_TAX_RATE] = i18next.t(\"Tax Rate Field is required\");\n isFormValid = false;\n errorNotification(i18next.t(\"Tax Rate Field is required\"));\n return { isFormValid, errors };\n }\n\n if (!store[C.KEY_CITY] || store[C.KEY_CITY]?.trim() === \"\") {\n errors[C.KEY_CITY] = i18next.t(\"Please select city\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please select city\"));\n return { isFormValid, errors };\n }\n\n if (store[C.KEY_TIMEZONE] == \"\") {\n errors[C.KEY_TIMEZONE] = i18next.t(\"Please select time zone\");\n isFormValid = false;\n errorNotification(i18next.t(\"Please select time zone\"));\n return { isFormValid, errors };\n }\n return { isFormValid, errors };\n};\n\nexport const VALIDATE_INPUTS_STEP2 = (store) => {\n let isFormValid = true;\n let errors = {};\n\n if (\n store[C.KEY_MANUAL_ADDRESS]?.trim() === \"\" ||\n store[C.KEY_MANUAL_ADDRESS]?.trim()?.length <= 5\n ) {\n errors[C.KEY_MANUAL_ADDRESS] = i18next.t(\n \"Address should be more than 5 characters\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Address should be more than 5 characters\"));\n return { isFormValid, errors };\n }\n\n if (store[C.KEY_MAP_ADDRESS]?.trim() === \"\") {\n errors[C.KEY_MAP_ADDRESS] = i18next?.t(\"Please Locate your store on map\");\n isFormValid = false;\n errorNotification(i18next?.t(\"Please Locate your store on map\"));\n return { isFormValid, errors };\n }\n if (\n store[C.KEY_MAP_ADDRESS] !== \"\" &&\n store[C.KEY_MAP_ADDRESS]?.trim()?.length <= 5\n ) {\n errors[C.KEY_MAP_ADDRESS] = i18next.t(\n \"Address should be more than 5 characters\"\n );\n isFormValid = false;\n errorNotification(i18next.t(\"Address should be more than 5 characters\"));\n return { isFormValid, errors };\n }\n if (store[C.KEY_MAP_ADDRESS] && store?.zoom <= 20) {\n errors[C.KEY_MAP_ADDRESS] = i18next.t(\"zoom level error\");\n isFormValid = false;\n errorNotification(i18next.t(\"zoom level error\"));\n return { isFormValid, errors };\n }\n\n return { isFormValid, errors };\n};\n\nexport const VALIDATE_INPUTS_STEP3 = (store) => {\n console.log(\"VALIDATE_INPUTS_STEP3\", store);\n let isFormValid = true;\n let errors = {};\n if (store.values[C.ISDELIVERYENABLED]) {\n if (store.values[C.KEY_PAYMENT_TYPES]?.length === 0) {\n errors[C.KEY_PAYMENT_TYPES] = i18next.t(\n \"Please select atleast one PAYMENT TYPE in section\",\n {\n serviceType: i18next.t(\"Delivery\"),\n }\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Please select atleast one PAYMENT TYPE in section\", {\n serviceType: i18next.t(\"Delivery\"),\n })\n );\n return { isFormValid, errors };\n }\n\n if (\n store?.values?.deliveryChargesWaiverInfo?.onOrderAmount?.isEnabled ||\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.isEnabled\n ) {\n if (!store?.values?.deliveryChargesWaiverInfo?.onOrderAmount?.amount) {\n errors[\"DELIVERY_CHARGES_WAIVE_OFF_ON_ORDER_AMOUNT\"] = i18next.t(\n \"Delivery Charges Waive Off Field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Delivery Charges Waive Off Field is required\")\n );\n return { isFormValid, errors };\n }\n\n if (\n !store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime ||\n !store?.values?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime\n ) {\n errors[\"DELIVERY_CHARGES_WAIVE_OFF_ON_DATE_RANGE\"] = i18next.t(\n \"Delivery charges waive off date range field is required\"\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Delivery charges waive off date range field is required\")\n );\n return { isFormValid, errors };\n }\n }\n\n return { isFormValid, errors };\n }\n\n // pickup payment types\n if (\n store.values[C.ISPICKUPENABLED] &&\n store.values[C.KEY_PICKUP_PAYMENT_TYPES]?.length === 0\n ) {\n errors[C.KEY_PICKUP_PAYMENT_TYPES] = i18next.t(\n \"Please select atleast one PAYMENT TYPE in section\",\n {\n serviceType: i18next.t(\"Pickup\"),\n }\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Please select atleast one PAYMENT TYPE in section\", {\n serviceType: i18next.t(\"Pickup\"),\n })\n );\n return { isFormValid, errors };\n }\n\n if (\n store.values[C.ISDINEINENABLED] &&\n store.values[C.KEY_DINEIN_PAYMENT_TYPES]?.length === 0\n ) {\n errors[C.KEY_DINEIN_PAYMENT_TYPES] = i18next.t(\n \"Please select atleast one PAYMENT TYPE in section\",\n {\n serviceType: i18next.t(\"Contactless Dining\"),\n }\n );\n isFormValid = false;\n errorNotification(\n i18next.t(\"Please select atleast one PAYMENT TYPE in section\", {\n serviceType: i18next.t(\"Contactless Dining\"),\n })\n );\n }\n return { isFormValid, errors };\n};\n\nexport const VALIDATE_INPUTS_STEP4 = (store, errorMessages) => {\n let isFormValid = true;\n let errors = {};\n if (store[C.KEY_SERVICE_TYPES].length === 0) {\n errors[C.KEY_SERVICE_TYPES] = errorMessages[0];\n isFormValid = false;\n errorNotification(errorMessages[0]);\n }\n return { isFormValid, errors };\n};\n\nconst validatePreOrderingForDelivery = (store) => {\n let isFormValidForDelivery = true;\n let errorsForDelivery = {};\n const sectionName = i18next.t(\"in delivery section\");\n\n const errorMsgs = {\n minTimeInAdvance: i18next.t(\"Please enter minimum lead time\", {\n sectionName: sectionName,\n }),\n minTimeInAdvanceUnit: i18next.t(\"Please select minimum lead time unit\", {\n sectionName: sectionName,\n }),\n maxDaysInAdvance: i18next.t(\n \"Please select maximum number of days in advance\",\n {\n sectionName: sectionName,\n }\n ),\n slotInterval: i18next.t(\"Please select a slot interval\", {\n sectionName: sectionName,\n }),\n };\n if (store?.values?.isPreOrderEnabledForDelivery) {\n //Lead time\n if (\n ifnullOrUndefined(\n store?.values?.preOrderSettingsForDelivery?.minTimeInAdvance\n )\n ) {\n errorsForDelivery[SC.KEY_PREORDER_MIN_TIME_IN_ADVANCE_DELIVERY] =\n errorMsgs.minTimeInAdvance;\n isFormValidForDelivery = false;\n errorNotification(errorMsgs.minTimeInAdvance);\n return { isFormValidForDelivery, errorsForDelivery };\n }\n\n //lead time unit\n if (!store?.values?.preOrderSettingsForDelivery?.minTimeInAdvanceUnit) {\n errorsForDelivery[SC.KEY_PREORDER_MIN_TIME_IN_ADVANCE_UNIT] =\n errorMsgs.minTimeInAdvanceUnit;\n isFormValidForDelivery = false;\n errorNotification(errorMsgs.minTimeInAdvanceUnit);\n return { isFormValidForDelivery, errorsForDelivery };\n }\n\n //max days in advance\n if (!store?.values?.preOrderSettingsForDelivery?.maxDaysInAdvance) {\n errorsForDelivery[SC.KEY_PREORDER_MAX_DAYS_IN_ADVANCE] =\n errorMsgs.maxDaysInAdvance;\n isFormValidForDelivery = false;\n errorNotification(errorMsgs.maxDaysInAdvance);\n return { isFormValidForDelivery, errorsForDelivery };\n }\n\n //slot interval\n if (!store?.values?.preOrderSettingsForDelivery?.timeInterval) {\n errorsForDelivery[SC.KEY_PREORDER_SLOT_INTERVAL] = errorMsgs.slotInterval;\n isFormValidForDelivery = false;\n errorNotification(errorMsgs.slotInterval);\n return { isFormValidForDelivery, errorsForDelivery };\n }\n\n //slot interval unit\n\n if (!store?.values?.preOrderSettingsForDelivery?.timeIntervalUnit) {\n errorsForDelivery[SC.KEY_PREORDER_SLOT_INTERVAL_UNIT] =\n errorMsgs.slotInterval;\n isFormValidForDelivery = false;\n errorNotification(errorMsgs.slotInterval);\n return { isFormValidForDelivery, errorsForDelivery };\n }\n }\n return { isFormValidForDelivery, errorsForDelivery };\n};\n\nconst validatePreOrderingForPickup = (store) => {\n let isFormValidForPickup = true;\n let errorsForPickup = {};\n const sectionName = i18next.t(\"in pickup section\");\n const errorMsgs = {\n minTimeInAdvance: i18next.t(\"Please enter minimum lead time\", {\n sectionName: sectionName,\n }),\n minTimeInAdvanceUnit: i18next.t(\"Please select minimum lead time unit\", {\n sectionName: sectionName,\n }),\n maxDaysInAdvance: i18next.t(\n \"Please select maximum number of days in advance\",\n {\n sectionName: sectionName,\n }\n ),\n slotInterval: i18next.t(\"Please select a slot interval\", {\n sectionName: sectionName,\n }),\n };\n if (store?.values?.isPreOrderEnabledForPickup) {\n //Lead time\n if (\n ifnullOrUndefined(\n store?.values?.preOrderSettingsForPickup?.minTimeInAdvance\n )\n ) {\n errorsForPickup[SC.KEY_PREORDER_MIN_TIME_IN_ADVANCE_PICKUP] =\n errorMsgs.minTimeInAdvance;\n isFormValidForPickup = false;\n errorNotification(errorMsgs.minTimeInAdvance);\n return { isFormValidForPickup, errorsForPickup };\n }\n\n //lead time unit\n if (!store?.values?.preOrderSettingsForPickup?.minTimeInAdvanceUnit) {\n errorsForPickup[SC.KEY_PREORDER_MIN_TIME_IN_ADVANCE_UNIT] =\n errorMsgs.minTimeInAdvanceUnit;\n isFormValidForPickup = false;\n errorNotification(errorMsgs.minTimeInAdvanceUnit);\n return { isFormValidForPickup, errorsForPickup };\n }\n\n //max days in advance\n if (!store?.values?.preOrderSettingsForPickup?.maxDaysInAdvance) {\n errorsForPickup[SC.KEY_PREORDER_MAX_DAYS_IN_ADVANCE] =\n errorMsgs.maxDaysInAdvance;\n isFormValidForPickup = false;\n errorNotification(errorMsgs.maxDaysInAdvance);\n return { isFormValidForPickup, errorsForPickup };\n }\n\n //slot interval\n if (!store?.values?.preOrderSettingsForPickup?.timeInterval) {\n errorsForPickup[SC.KEY_PREORDER_SLOT_INTERVAL] = errorMsgs.slotInterval;\n isFormValidForPickup = false;\n errorNotification(errorMsgs.slotInterval);\n return { isFormValidForPickup, errorsForPickup };\n }\n\n //slot interval unit\n\n if (!store?.values?.preOrderSettingsForPickup?.timeIntervalUnit) {\n errorsForPickup[SC.KEY_PREORDER_SLOT_INTERVAL_UNIT] =\n errorMsgs.slotInterval;\n isFormValidForPickup = false;\n errorNotification(errorMsgs.slotInterval);\n return { isFormValidForPickup, errorsForPickup };\n }\n }\n return { isFormValidForPickup, errorsForPickup };\n};\n","import { PAYMENT_GATWAYS, PAYMENT_TYPE_ONLINE } from \"config/Constants\";\n\nexport const getOrderIsRefundable = (order) => {\n return Boolean(\n (!order.refund ||\n order?.refund?.isRequired === null ||\n order?.refund?.isRequired ||\n order?.refund?.isRequired === false) &&\n order?.paymentType === PAYMENT_TYPE_ONLINE &&\n order?.orderCheckoutOnlinePaymentMetadata?.data?.paymentGateway ===\n PAYMENT_GATWAYS.STRIPE\n );\n};\n","import axios from \"axios\";\nimport { UTILS } from \"utils\";\nimport reduxStore from \"redux/store\";\nimport { APPUpdate } from \"redux/actions\";\nimport { NotPersistAction } from \"redux/actions\";\nimport { CONSTANTS as C } from \"config\";\n\n// Create axios client, pre-configured with baseURL\nlet APIKit = axios.create({\n baseURL: process.env.REACT_APP_BASE_API_URL,\n timeout: 15000,\n});\n\n// Before sending request to server\nAPIKit.interceptors.request.use(function (config) {\n const userDetail = UTILS.getCurrentUser();\n config.params = {\n app_version: process.env.REACT_APP_VERSION,\n app_name: C.APP_NAME,\n };\n if (process.env.REACT_APP_REFRRER) {\n config.params.referrer = process.env.REACT_APP_REFRRER;\n }\n if (userDetail) {\n config.headers.Authorization = userDetail.token;\n }\n\n return config;\n});\n// Before sending Response to the Client\n\n// check if any update has refresh action\nconst AppActions = (data) => {\n const ActionArray = data?.reduce((acc, file) => {\n let check = file?.actions?.find((action) => action?.refresh === true);\n if (check) {\n acc.push(check);\n }\n return acc;\n }, []);\n return ActionArray;\n};\n\nAPIKit.interceptors.response.use(\n function (response) {\n if (\n response?.data?.error_category === \"new_version_enforced\" &&\n response?.data?.success === 0 &&\n response.data.data\n ) {\n let RefreshActions = AppActions(response.data.data);\n if (RefreshActions?.length >= 1) {\n reduxStore.dispatch(APPUpdate.refreshApp());\n }\n }\n\n return response;\n },\n function (error) {\n if (error?.code === C.API_ERRORS.TIMEOUT_ERROR) {\n reduxStore.dispatch(NotPersistAction.updateOnlineStatus(false));\n }\n\n if (\n typeof error === \"object\" &&\n error !== null &&\n typeof error.toJSON === \"function\"\n ) {\n if (error?.toJSON()?.message === C.API_ERRORS.NETWORK_ERROR) {\n reduxStore.dispatch(NotPersistAction.updateOnlineStatus(false));\n } else {\n return Promise.reject(error?.response?.data);\n }\n } else {\n return Promise.reject(error?.response?.data);\n }\n return Promise.reject(error?.response?.data);\n }\n);\n\nexport async function get(url, config = {}) {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n return await APIKit.get(url, language, { ...config }).then(\n (response) => response.data\n );\n}\n\nexport async function post(url, data, config = {}) {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n let res = await APIKit.post(url, { ...data, language }, { ...config });\n return res.data;\n}\nexport async function postUpdated(url, data, config = {}) {\n try {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n let res = await APIKit.post(url, { ...data, language }, { ...config });\n return res.data;\n } catch (error) {\n return error;\n }\n}\nexport async function patch(url, data, config = {}) {\n let res = await APIKit.patch(url, { ...data }, { ...config });\n return res;\n}\n\n// file upload\nexport const upload = async (url, data, config = {}) => {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n data.append(\"language\", language);\n return APIKit.post(url, data, {\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n })\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n return error;\n });\n};\nexport default APIKit;\n","import { createApi } from \"@reduxjs/toolkit/query/react\";\nimport axios from \"api/api/axiosSetup\";\nimport { UTILS } from \"utils\";\nconst axiosBaseQuery =\n () =>\n async ({ url, method, body, params = {} }) => {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n let data = { ...body, language };\n try {\n const result = await axios({\n url: url,\n method,\n data,\n params,\n });\n return { data: result.data };\n } catch (axiosError) {\n let err = axiosError;\n return {\n error: {\n status: err.response?.status,\n data: err.response?.data || err.message,\n },\n };\n }\n };\n\nexport const apiSlice = createApi({\n reducerPath: \"api\", // optional\n baseQuery: axiosBaseQuery(),\n\n endpoints: (builder) => ({}),\n});\n\nexport const postConfig = {\n query: (body) => ({\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n\nexport const getConfig = {\n query: () => ({\n method: \"GET\",\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n","//Talabat\nlet courierBase = \"order/delivery-service/\";\nexport const SEND_ORDER_TO_TALABAT = `${courierBase}send-order-to-talabat`;\nexport const CHECK_TALABAT_DELIVERY_TIME = `${courierBase}check-delivery-time-est-with-talabat`;\nexport const CHECK_TALABAT_DELIVERY_FEE = `${courierBase}check-delivery-fee-with-talabat`;\nexport const CANCEL_TALABAT_ORDER = `${courierBase}cancel-order-from-talabat`;\n\n//marsool\nexport const SEND_ORDER_TO_MARSOOL = `${courierBase}send-order-to-marsool`;\n\n// Yandex\nexport const GET_TIME_SLOTS =\n \"order/yandex/get-next-day-delivery-interval-slots\";\nexport const CREATE_CLAIM = \"order/yandex/create-claim\";\nexport const CONFIRM_CLAIM = \"order/yandex/confirm-claim\";\nexport const CLAIM_INFO = \"order/yandex/information-claim\";\nexport const CANCEL_CLAIM = \"order/yandex/cancel-claim\";\n\n//yandex express\nexport const GET_YANDEX_DELIVERY_METHODS = \"order/yandex/get-delivery-methods\";\nexport const GET_YANDEX_EXPRESS_RIDER_INFO =\n \"order/yandex/get-rider-phone-info\";\n\n//Settings\nexport const UPDATE_PASSWORD = \"admin/update-password\";\nexport const UPDATE_PHONE_NUMBER = \"admin/update-phone-number\";\nexport const UPDATE_BRAND_NAME = \"brands/updateBrand\";\nexport const UPDATE_DOMAIN_NAME = \"branding/update-temporary-domain-name\";\nexport const UPDATE_BRAND_SETTINGS = \"branding/updateSetting\";\nexport const GET_BRAND_SETTINGS = \"branding/getBrandSettingWithBrandId\";\n\n// city base Delivery\nlet cityBase = \"city-base-delivery-method/\";\nexport const ADD_CITY_BASE_DELIVERY = `${cityBase}add`;\nexport const EDIT_CITY_BASE_DELIVERY = `${cityBase}update`;\nexport const DELETE_CITY_BASE_DELIVERY = `${cityBase}delete`;\nexport const GET_CITY_BASE_DELIVERY = `${cityBase}get`;\n\n// country base Delivery\nlet countryBase = \"country-base-delivery-method/\";\nexport const ADD_COUNTRY_BASE_DELIVERY = `${countryBase}add`;\nexport const EDIT_COUNTRY_BASE_DELIVERY = `${countryBase}update`;\nexport const DELETE_COUNTRY_BASE_DELIVERY = `${countryBase}delete`;\nexport const GET_COUNTRY_BASE_DELIVERY = `${countryBase}get`;\n\n//Buisness Areas\nexport const GET_BUSINESS_AREAS = \"country/getAllCountriesWithCompleteDetail\";\n\n//shipping\nexport const GET_BRAND_INFO_WITH_ID = \"brands/getBrandInfoWithBrandId\";\nexport const UPDATE_SHIPPING_METHOD_STATUS =\n \"delivery-method/update-delivery-method-activation-status\";\n// packages\nexport const GET_ALL_PACKAGES = \"onboardingSubscriptions/getAllActivePackages\";\nexport const GET_PAYMENT_PAGE = \"onboardingSubscriptions/getHostedPaymentPage\";\nexport const VERIFY_PKG_PAYMENT =\n \"onboardingSubscriptions/verifyPackagePayment\";\n\n//loyalty\nexport const CREATE_LOYALTY = \"loyalty/create\";\nexport const UPDATE_LOYALTY = \"loyalty/update\";\nexport const GET_LOYALTY_DETAILS_BY_BRAND_NAME = \"loyalty/get-by-brand\";\nexport const GET_USER_WALLET_BALANCE = \"wallet/get-user-wallet\";\nexport const GET_USER_WALLET_TRANSACTION_HISTORY =\n \"wallet-transaction/get-by-user\";\nexport const CREATE_USER_WALLET_TRANSACTION = \"wallet-transaction/create\";\n\n//customer section\nexport const GET_ALL_BRAND_CUSTOMERS = \"user/get-brand-customers-v2\";\n// Order\nexport const GET_ORDER_INFO_BY_ID = \"order/getOrderInfoById\";\n\n// careem now\nexport const CAREEM_NOW_CREATE_DELIVERY = \"order/careem-now/create-delivery\";\nexport const CAREEM_NOW_CANCEL_DELIVERY = \"order/careem-now/cancel-delivery\";\nexport const CAREEM_NOW_GET_DELIVERY_STATUS = \"order/careem-now/track-delivery\";\n\n// bulk menu\nexport const UPLOAD_BULK_ITEMS = \"importData/upload-excel-file\";\n\n//Modifier\n\n//Section\nexport const GET_MODIFIER_GROUPS = \"items/get-modifier-groups\";\nexport const CREATE_MODIFIER_GROUP = \"items/add-modifier-group\";\nexport const UPDATE_MODIFIER_GROUP = \"items/update-modifier-group\";\nexport const DELETE_MODIFIER_GROUP = \"items/delete-modifier-group\";\nexport const LINK_MODIFIER_GROUP_WITH_ITEM =\n \"items/add-modifier-groups-in-item\";\nexport const UNLINK_MODIFIER_GROUP_WITH_ITEM =\n \"items/remove-modifier-group-in-item\";\nexport const GET_MODIFIER_GROUP_INFO = \"items/get-modifier-group-info\";\nexport const SORT_MODIFIER_GROUPS = \"items/sort-modifier-group-in-item\";\n\n//options\nexport const GET_BRAND_MODIFIERS = \"items/get-modifiers\";\nexport const CREATE_NEW_MODIFIER = \"items/add-modifier\";\nexport const DELETE_MODIFIER = \"items/delete-modifier\";\nexport const UPDATE_MODIFIER = \"items/update-modifier\";\nexport const GET_MODIFIER_GROUP = \"items/get-modifier-info\";\nexport const UNLINK_MODIFIER_WITH_GROUP =\n \"items/remove-modifier-in-modifier-group\";\nexport const LINK_MODIFIER_WITH_GROUP = \"items/add-modifiers-in-modifier-group\";\nexport const SORT_MODIFIER_OPTION = \"items/sort-modifier-in-modifier-group\";\n\n//modifier -inventory\nexport const GET_STORE_MODIFIERS = \"items/get-store-modifiers\";\nexport const MODIFER_STORE_BLOCK = \"items/block-unblock-modifier-for-store\";\n\n//reporting\nexport const GET_ORDERS_FEEDABACKS = \"feedbacks/get-all-v2\";\n\n//Mapped Areas\nexport const GET_COUNTRIES_CITIES_MAPPED_AREAS =\n \"mapped-areas/get-countries-cities-mapped-areas\";\n\nexport const ADD_STORE_MAPPED_AREAS = \"mapped-area-base-delivery-method/add\";\nexport const UPDATE_STORE_MAPPED_AREAS =\n \"mapped-area-base-delivery-method/update\";\nexport const DELETE_STORE_MAPPED_AREAS =\n \"mapped-area-base-delivery-method/delete\";\nexport const GET_STORE_MAPPED_AREAS = \"mapped-area-base-delivery-method/get\";\n\n//custom mapped areas\nexport const ADD_CUSTOM_STORE_MAP_AREA =\n \"mapped-area-base-delivery-method/add-custom\";\nexport const GET_CUSTOM_STORE_MAP_AREA_BY_ID =\n \"mapped-area-base-delivery-method/get-info\";\nexport const UPDATE_CUSTOM_STORE_MAP_AREA =\n \"mapped-area-base-delivery-method/update-custom\";\nexport const GET_ALL_CUSTOM_BUSINESS_AREAS =\n \"mapped-areas/get-countries-cities\";\n\nexport const TOGGLE_PLOYGON_AREA_STATUS =\n \"mapped-area-base-delivery-method/mapped-area/toggle-status\";\n//multi-menu\nexport const GET_BRAND_MENUS = \"menus/get-menus\";\nexport const CREATE_NEW_MENU = \"menus/add-menu\";\nexport const GET_MENU_INFO = \"menus/get-menu-info\";\nexport const GET_MENU_CAT_INFO = \"menus/get-menu-category-info\";\nexport const GET_BRAND_ITEMS = \"items/get-items\";\n\nexport const LINK_STORES_WITH_MENU = \"menus/add-stores-in-menu\";\nexport const LINK_CATEGORY_WITH_MENU = \"menus/add-category-in-menu\";\nexport const UNLINK_CATEGORY_IN_MENU = \"menus/remove-category-in-menu\";\nexport const SORT_CATEGORY_IN_MENU = \"menus/sort-category-in-menu\";\nexport const LINK_ITEMS_IN_CATEGORY = \"menus/add-items-in-menu-category\";\nexport const UNLINK_ITEMS_IN_CATEGORY = \"menus/remove-item-in-menu-category\";\nexport const SORT_ITEMS_IN_CATEGORY = \"menus/sort-item-in-menu-category\";\nexport const TOGGLE_STORE_IN_MENU =\n \"menus/connect-un-connect-store-in-menu-category-item\";\nexport const GET_STORE_ITEMS = \"items/get-store-items\";\nexport const BLOCK_UNBLOCK_ITEM_FOR_STORE =\n \"items/block-unblock-item-for-store\";\n\n//polling\nexport const GET_ORDER_META_DATA = \"order/get-order-meta-data-info\";\n\n//distance based delivery\nexport const ADD_DISTANCE_BASE_DELIVERY_ZONE =\n \"distance-base-delivery-zone/add\";\nexport const GET_DISTANCE_BASE_DELIVERY_ZONE_INFO =\n \"distance-base-delivery-zone/get-info\";\nexport const UPDATE_DISTANCE_BASE_DELIVERY_ZONE =\n \"distance-base-delivery-zone/update\";\nexport const DELETE_DISTANCE_BASE_DELIVERY_ZONE =\n \"distance-base-delivery-zone/delete\";\nexport const GET_DISTANCE_BASE_DELIVERY_ZONES =\n \"distance-base-delivery-zone/get-all\";\nexport const TOGGLE_DISTANCE_BASE_DELIVERY_ZONE_STATUS =\n \"distance-base-delivery-zone/toggle-status\";\n\n// delivery zone url\nexport const CREATE_DZ_DELIVERY = \"order/delivery-zone/create-delivery\";\nexport const TRACK_DZ_DELIVERY = \"order/delivery-zone/track-delivery\";\n\n//excel report\nexport const DOWNNLOAD_ORDERHISTORY_EXCEL_REPORT = \"reports/order-history-xlsx\";\nexport const CUSTOMER_REPORT_EXCEL = \"reports/customer-report-xlsx\";\nexport const PAYMENT_LINKS_EXCEL = \"reports/payments-link-history-xlsx\";\nexport const UPDATE_MENU = \"menus/update-menu\";\nexport const CLONE_MENU = \"menus/clone-menu\";\nexport const DELETE_MENU = \"menus/delete-menu\";\nexport const MARK_AS_DEFAULT_MENU = \"menus/mark-menu-default\";\n\n//lyve-global variables\n\nexport const LYVE_GLOBAL = {\n CREATE_ORDER: \"order/lyve-global/create-order\",\n CANCEL_ORDER: \"order/lyve-global/cancel-order\",\n TRACK_ORDER: \"order/lyve-global/track-order\",\n};\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport Backend from \"i18next-http-backend\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\n\ni18n\n // load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)\n // learn more: https://github.com/i18next/i18next-http-backend\n .use(Backend)\n // detect user language\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n // pass the i18n instance to react-i18next.\n .use(initReactI18next)\n // init i18next\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n lng: \"en\",\n backend: {\n /* translation file path */\n loadPath: \"/assets/i18n/{{ns}}/{{lng}}.json\",\n },\n fallbackLng: \"en\",\n debug: false,\n /* can have multiple namespace, in case you want to divide a huge translation into smaller pieces and load them on demand */\n ns: [\"translations\"],\n defaultNS: \"translations\",\n keySeparator: false,\n interpolation: {\n escapeValue: false,\n formatSeparator: \",\",\n },\n react: {\n wait: true,\n },\n });\n\nexport default i18n;\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nimport { SettingsAction, LoaderAction } from \"redux/actions\";\nimport i18n from \"../../i18n\";\nimport { UTILS } from \"utils\";\nimport { SettingErrorAction } from \"redux/actions\";\nlet tryAgain = i18n.t(\"Please try again later\");\nconst settingsAPi = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n updatePassword: builder.mutation({\n query: (body) => ({\n url: URL.UPDATE_PASSWORD,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n dispatch(SettingErrorAction.setPasswordError(null));\n UTILS.handleSuccesNotification(\n data?.message ?? \"Password updated sucessfully\"\n );\n }\n if (data?.success === 0) {\n let messageError = data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setPasswordError(messageError));\n }\n } catch (err) {\n let messageError = err?.data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setPasswordError(messageError));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n updatePhoneNumber: builder.mutation({\n query: (body) => ({\n url: URL.UPDATE_PHONE_NUMBER,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n const userDetail = UTILS.getCurrentUser();\n if (data?.success === 1) {\n UTILS.handleSuccesNotification(\n data?.message ?? \"Phone updated sucessfully\"\n );\n if (data?.data?.phoneNumber) {\n UTILS.saveCurrentUser({\n ...userDetail,\n phoneNumber: data.data.phoneNumber,\n });\n }\n }\n if (data?.success === 0) {\n let msg = data?.message ?? tryAgain;\n UTILS.handleErrorNotification(msg);\n }\n } catch (err) {\n let msg = err?.data?.message ?? tryAgain;\n UTILS.handleErrorNotification(msg);\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n updateBrandName: builder.mutation({\n query: (body) => ({\n url: URL.UPDATE_BRAND_NAME,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n body.language = language;\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n dispatch(SettingErrorAction.setBrandError(null));\n UTILS.handleSuccesNotification(\n data?.message ?? \"Brand name updated sucessfully\"\n );\n } else {\n let Errormessage = data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setBrandError(Errormessage));\n }\n } catch (err) {\n let Errormessage = err?.data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setBrandError(Errormessage));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n updateDomainName: builder.mutation({\n query: (body) => ({\n url: URL.UPDATE_DOMAIN_NAME,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n dispatch(SettingErrorAction.setDomainError(null));\n UTILS.handleSuccesNotification(\n data?.message ?? \"Domain name updated sucessfully\"\n );\n } else {\n let Errormessage = data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setDomainError(Errormessage));\n }\n } catch (err) {\n let Errormessage = err?.data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setDomainError(Errormessage));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n updateBrandSettings: builder.mutation({\n query: (body) => ({\n url: URL.UPDATE_BRAND_SETTINGS,\n method: \"POST\",\n body: body,\n responseHandler: (response) => response.json(),\n validateStatus: (response, result) =>\n response.status === 200 && result.success === 1,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n body.language = language;\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.handleSuccesNotification(\n data?.message ?? \"Settings updated sucessfully\"\n );\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(data?.message ?? tryAgain);\n }\n } catch (err) {\n UTILS.handleErrorNotification(err?.error?.data?.message ?? tryAgain);\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n\n getSettings: builder.mutation({\n query: (body) => ({\n url: URL.GET_BRAND_SETTINGS,\n method: \"POST\",\n body: body,\n }),\n\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n const userDetail = UTILS.getCurrentUser();\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n\n if (data?.success === 1 && data?.data?.setting) {\n dispatch(SettingsAction.setSettings(data.data.setting));\n dispatch(SettingErrorAction.setError(null));\n UTILS.saveCurrentUser({\n ...userDetail,\n temporaryDomainName: data?.data?.setting?.temporaryDomainName,\n });\n }\n if (data?.success === 0) {\n let Errormessage = data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setError(Errormessage));\n dispatch(SettingsAction.setSettings({}));\n UTILS.handleErrorNotification(Errormessage);\n }\n } catch (err) {\n let Errormessage = err?.error?.data?.message ?? tryAgain;\n dispatch(SettingErrorAction.setError(Errormessage));\n UTILS.handleErrorNotification(Errormessage);\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n }),\n});\nexport const {\n useUpdatePasswordMutation,\n useUpdatePhoneNumberMutation,\n useUpdateBrandNameMutation,\n useUpdateDomainNameMutation,\n useUpdateBrandSettingsMutation,\n useGetSettingsMutation,\n} = settingsAPi;\nexport default settingsAPi;\n","import { logToSentry } from \"utils/Utils\";\nimport i18n from \"../../i18n\";\n\nexport const errorHandler = (error) => {\n if (!error) return i18n.t(\"Please try again later\");\n if (typeof error === \"string\") {\n logToSentry(error);\n return error;\n }\n if (typeof error?.data === \"string\") {\n logToSentry(error.data);\n return error.data;\n }\n if (typeof error?.message === \"string\") {\n logToSentry(error.message);\n return error?.message;\n }\n if (typeof error?.response?.data === \"string\") {\n logToSentry(error?.response?.data);\n return error?.response?.data;\n }\n if (typeof error?.error?.message === \"string\") {\n logToSentry(error?.error?.message);\n return error?.error?.message;\n }\n if (typeof error?.error?.data?.message === \"string\") {\n logToSentry(error?.error?.data?.message);\n return error?.error?.data?.message;\n } else return i18n.t(\"Please try again later\");\n};\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nimport { UTILS } from \"utils\";\nimport { AreasAction } from \"redux/actions\";\nimport { postConfig, getConfig } from \"redux/Api.Slice\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nconst areasAPi = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n getBrandInfoWithID: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_BRAND_INFO_WITH_ID,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data) {\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n updateShippingMethodStatus: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.UPDATE_SHIPPING_METHOD_STATUS,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data) {\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n\n getBuisnessAreas: builder.query({\n ...getConfig,\n query: () => ({\n url: URL.GET_BUSINESS_AREAS,\n ...getConfig.query(),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data) {\n dispatch(AreasAction.setFetchedAreas(data.data));\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n getAddedCountries: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_COUNTRY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data?.areas) {\n dispatch(AreasAction.setAddedCountries(data.data.areas));\n } else {\n errorHandler(data);\n }\n } catch (err) {\n errorHandler(err);\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n addNewCountry: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.ADD_COUNTRY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n editCountry: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.EDIT_COUNTRY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n deleteCountry: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.DELETE_COUNTRY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n addCities: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.ADD_CITY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n editCities: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.EDIT_CITY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n deleteCities: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.DELETE_CITY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n getAddedCities: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_CITY_BASE_DELIVERY,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data.data.areas) {\n dispatch(AreasAction.setAddedCities(data.data.areas));\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n }),\n});\nexport const {\n useGetBrandInfoWithIDMutation,\n useGetBuisnessAreasQuery,\n useGetAddedCountriesMutation,\n useAddNewCountryMutation,\n useEditCountryMutation,\n useDeleteCountryMutation,\n useAddCitiesMutation,\n useEditCitiesMutation,\n useDeleteCitiesMutation,\n useGetAddedCitiesMutation,\n useUpdateShippingMethodStatusMutation,\n} = areasAPi;\nexport default areasAPi;\n","import { combineReducers } from \"@reduxjs/toolkit\";\nimport LanguageSlice from \"./language/language.slice\";\nimport SettingsSlice from \"./settings/settingsSlice\";\nimport SettingsReducer from \"./settings/settingReducer\";\nimport AreasSlice from \"./shipping-methods/shipping-service\";\nimport AreasReducer from \"./shipping-methods/shipping-reducer\";\nimport LoaderReducer from \"./loader/loader\";\nimport LoginReducer from \"./user/userReducer\";\nimport storage from \"redux-persist/lib/storage\";\nimport Logout from \"./auth/logout/logout\";\nimport APPUpdate from \"./app/appUpdate\";\nimport SettingErrorReducer from \"./settings/ErrorReducer\";\nimport NotPersistReducer from \"./Non-persist/Non-persist\";\nimport PackagesReducer from \"./packages/packages\";\nimport ErrorReducer from \"./error/reducer\";\nimport LogisticReducer from \"./Logistic/Logistic\";\nimport MenuReducer from \"./menu/menu-reducer\";\n\nconst appReducer = combineReducers({\n [SettingsSlice.reducerPath]: SettingsSlice.reducer,\n [AreasSlice.reducerPath]: AreasSlice.reducer,\n\n LanguageSlice,\n SettingsReducer,\n AreasReducer,\n LoaderReducer,\n LoginReducer,\n Logout,\n APPUpdate,\n SettingErrorReducer,\n NotPersistReducer,\n PackagesReducer,\n LogisticReducer,\n ErrorReducer,\n MenuReducer,\n});\n\nconst rootReducer = (state, action) => {\n if (action.type === \"Logout/logout\") {\n storage.removeItem(\"persist:root\");\n state = undefined;\n }\n\n return appReducer(state, action);\n};\nexport default rootReducer;\n","import { configureStore } from \"@reduxjs/toolkit\";\nimport { persistStore, persistReducer } from \"redux-persist\";\nimport storage from \"redux-persist/lib/storage\";\nimport rootReducer from \"./slices\";\nimport { setupListeners } from \"@reduxjs/toolkit/dist/query\";\nimport { apiSlice } from \"redux/Api.Slice\";\nimport * as Sentry from \"@sentry/react\";\nimport createSentryMiddleware from \"redux-sentry-middleware\";\n\nconst sentryReduxEnhancer = Sentry.createReduxEnhancer({\n // Optionally pass options listed below\n configureScopeWithState: true,\n});\nconst persistConfig = {\n key: \"root\",\n storage: storage,\n whitelist: [\"LanguageSlice\", \"SettingsReducer\"],\n};\n\nconst persistedReducer = persistReducer(persistConfig, rootReducer);\nif (\n process.env.REACT_APP_ENV === \"production\" ||\n process.env.NODE_ENV === \"production\"\n) {\n console.log = console.error = console.assert = console.warn = () => {};\n}\nconst store = configureStore({\n reducer: persistedReducer,\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n sentryReduxEnhancer,\n serializableCheck: false,\n }).concat([apiSlice.middleware, createSentryMiddleware(Sentry, {})]),\n devTools:\n !process.env.NODE_ENV || process.env.NODE_ENV === \"development\"\n ? true\n : false,\n});\n\nsetupListeners(store.dispatch);\nexport const persistor = persistStore(store);\nexport default store;\n","import { CONSTANTS as C } from \"config\";\nimport { PkgActions } from \"redux/actions\";\nimport reduxStore from \"redux/store\";\nimport { UTILS } from \"utils\";\nimport * as apiUrl from \"./apiUrls\";\nimport axios, { post, postUpdated, upload } from \"./axiosSetup\";\nexport const SIGN_IN = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(C.BASE_URL + \"admin/SignIn\", {\n phoneNumber: params.phoneNumber,\n password: params.password,\n userType: params.userType,\n deviceType: params.deviceType,\n language: language ?? params.language,\n })\n .then((response) => {\n if (response) {\n if (response?.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const FORGOT_PASSWORD = async (params) => {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n return axios\n .post(C.BASE_URL + \"admin/forgotPassword\", {\n phoneNumber: params.phoneNumber,\n language,\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const NEW_PASSWORD = async (params) => {\n const language = (await UTILS?.asyncLocalStorage.getLanguage()) ?? \"EN\";\n\n return axios\n .post(C.BASE_URL + \"admin/updatePasswordByCode\", {\n phoneNumber: params.phoneNumber,\n verificationCode: params.verificationCode,\n newPassword: params.password,\n language,\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const REGISTER = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(C.BASE_URL + \"admin/signupBrand\", {\n name: params.name,\n brandName: params.brandName,\n phoneNumber: params.phoneNumber,\n email: params.email,\n password: params.password,\n language: language || params.language,\n superCategoryId: params.superCategoryId,\n baseLanguage: params.baseLanguage,\n supportedLanguages: [{ language: params.baseLanguage, published: true }],\n utmSource: params.utmSource || \"\",\n utmMedium: params.utmMedium || \"\",\n utmCampaign: params.utmCampaign || \"\",\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const RESEND_VERIFICATION_CODE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(C.BASE_URL + `admin/resendSmsOnMobile`, {\n language: language ?? \"EN\",\n phoneNumber: params.phoneNumber,\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const VERIFY_MOBILE_NUMBER = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(C.BASE_URL + \"admin/verifyMobileNumber\", {\n verificationCode: params.verificationCode,\n phoneNumber: params.phoneNumber,\n language: language ?? params.language,\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const CHECK_BRAND_NAME = async (params) => {\n return axios\n .post(C.BASE_URL + `brands/validateBrandName`, {\n brandName: params.brandName,\n language: params.language,\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_GUIDANCE_FLOW_SETUP_WITH_STATUS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + `brands/getGuidanceFlowSetupStatus`,\n {\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const ADD_TASK_TO_DONE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + `brands/addNewGuidingTaskInBrand`,\n {\n taskId: params.taskId,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const CREATE_BRAND_STORE = async (params) => {\n let paymentOptions = [];\n if (params?.values?.PaymentOptionCOD == true) {\n paymentOptions = [...paymentOptions, C.CASH_ON_DELIVERY_OBJECT];\n }\n if (params?.values?.PaymentOptionCreditCard == true) {\n paymentOptions = [...paymentOptions, C.CREDIT_CARD_OBJECT];\n }\n\n return axios\n .post(\n `https://dev-api.theresthero.com/api/v1/user/createBrandAndStoreWithForms`,\n {\n brandTitleEN: params?.values?.brandTitleEN || \"\",\n email: params?.values?.email || \"\",\n phoneNumber: params?.values?.phoneNumber || \"\",\n language: \"EN\",\n subdomain: params?.values?.brandTitleEN || \"\",\n store: {\n language: \"EN\",\n country: \"Pakistan\",\n city: \"City\",\n serviceType: [\n {\n nameEN: \"delivery\",\n nameAR: \"توصيل\",\n },\n ],\n storeCuisines: [\n {\n nameEN: \"italian\",\n nameAR: \"thai\",\n },\n ],\n latitude: params?.values?.latitudeLongitude?.mapCenter?.lat || \"\",\n longitude: params?.values?.latitudeLongitude?.mapCenter?.lng || \"\",\n admins: [],\n minOrderPrice: 1,\n deliveryFee: 1,\n minDeliveryTime: 1,\n storeNameAR: params?.values?.brandTitleEN || \"\",\n storeName: params?.values?.brandTitleEN || \"\",\n storeDescriptionAR: params?.values?.descriptionAr || \"\",\n storeDescription: params?.values?.description || \"\",\n email: params?.values?.email || \"\",\n mobileNumber: params?.values?.phoneNumber || \"\",\n workingHours: params?.values?.workingHours || {},\n paymentOptions: paymentOptions,\n storeAddress: params?.values?.latitudeLongitude?.address,\n storeLocation: `${params?.values?.latitudeLongitude?.mapCenter?.lat}, ${params?.values?.latitudeLongitude?.mapCenter?.lng}`,\n },\n brandId: params.brandId,\n userId: params.userId,\n serviceType: \"car-rental\",\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_CURRENCY_TYPES = (params) => {\n return axios\n .get(C.BASE_URL + `currencies/getCurrencyTypes`, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const getSuperCategories = () => {\n return axios\n .get(C.BASE_URL + `superCategories/getSuperCategories`)\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const SUBSRIBE_TRAIL_PACKAGES = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + `order/subscribeTrailPackage`,\n {\n amount: params.data.price,\n packageId: params.data.packageId,\n brandId: params.brandId,\n noOfExpiryDays: params.data.noOfExpiryDays,\n language: language,\n userId: params.userId,\n owner: true,\n step4: false,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n console.log(\"\");\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_PACKAGES = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(C.BASE_URL + `packages/getAllPackages`, {\n brandId: params.brandId,\n language,\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n console.log(\"\");\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const addUserAreas = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/addRegisterStoreDeliveryAreas\",\n {\n storeId: params.storeId,\n userId: params.userId,\n language: language,\n deliveryAreas: params.deliveryAreas,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_CRRENT_USER_STORES = async (params) => {\n return axios\n .get(C.BASE_URL + \"store/getCurrentUserStores\", {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_STORE_INFO_WITH_STORE_ID = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/getStoreInfoWithStoreId\",\n {\n storeId: params.storeId,\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const updateStore = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let store = { ...params.store };\n store[\"language\"] = language;\n return axios\n .post(C.BASE_URL + `store/updateStoreInfo`, store, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const ADD_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let store = { ...params.store };\n store[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"store/addNewStore\", store, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response?.status === 200) {\n return response.data;\n }\n return response;\n }\n })\n .catch((error) => {\n console.log(error);\n return error;\n });\n};\n\nexport const GET_PAYMENT_TYPES = async (params) => {\n return axios\n .get(C.BASE_URL + \"paymentTypes/getPaymentTypes\", {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_SERVICE_TYPES = async (params) => {\n return axios\n .get(C.BASE_URL + \"services/getServiceTypes\", {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const UPLOAD_FILE = async (params) => {\n var formData = new FormData();\n formData.append(\"image\", params.image);\n return axios\n .post(C.BASE_URL + \"user/uploadFile\", formData, {\n headers: {\n Authorization: params.token,\n \"Content-Type\": \"multipart/form-data\",\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const ADD_AREA = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let area = { ...params.objArea };\n area[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"store/addStoreArea\", area, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const UPDATE_AREA = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let area = { ...params.objArea };\n area[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"store/updateStoreArea\", area, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const DELETE_AREA = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let area = { ...params.objArea };\n area[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"store/deleteStoreArea\", area, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_STORE_DELIVERY_AREAS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/getStoreDeliveryAreas\",\n {\n storeId: params.storeId,\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const ADD_USER = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let user = { ...params.user };\n user[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"admin/createAdmin\", user, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_USERS_BY_BRAND = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"admin/getAdminUsersByBrand\",\n {\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_BRAND_STORES = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/getBrandStores\",\n {\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_USER_STORES_BY_USER_ID = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/getUserStoresByUserId\",\n {\n userId: params.userId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const ADD_NEW_STORE_ADMIN = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/addNewAdmin\",\n {\n userType: params.userType,\n brandId: params.brandId,\n adminId: params.adminId,\n storeId: params.storeId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const DELETE_STORE_ADMIN = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/deleteAdmin\",\n {\n userType: params.userType,\n brandId: params.brandId,\n adminId: params.adminId,\n storeId: params.storeId,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_DATA_FOR_USERS_WITH_STORE_LIST = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n const [firstResponse, secondResponse] = await Promise.all([\n axios.post(\n C.BASE_URL + \"store/getBrandStores\",\n {\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n ),\n axios.post(\n C.BASE_URL + \"store/getUserStoresByUserId\",\n {\n userId: params.userId,\n language: params.language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n ),\n ]);\n return [firstResponse.data, secondResponse.data];\n};\n\nexport const DELETE_CATEGORY = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"category/deleteItemCategory\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_CATEGORIES_BY_BRAND = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"category/getCategoriesbyBrand\",\n {\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_ITEMS_BY_BRAND = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let category = { ...params.category };\n category[\"language\"] = language;\n return axios\n .post(\n C.BASE_URL + \"items/get-items\",\n {\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const DELETE_ITEM = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/delete-item\",\n {\n itemId: params.itemId,\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n return error;\n });\n};\n\nexport const GET_ITEM_INFO = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/get-item-info\",\n {\n itemId: params.itemId,\n brandId: params.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const ADD_ITEM_TO_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/addItemInStore\",\n {\n brandId: params.brandId,\n storeId: params.storeId,\n itemId: params.itemId,\n categoryId: params.categoryId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const REMOVE_ITEM_FROM_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"items/removeItemFromSpecificCategoryAndStore\",\n {\n brandId: params.brandId,\n storeId: params.storeId,\n itemId: params.itemId,\n categoryId: params.categoryId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_ITEMS_OF_CATEGORY_BY_BRAND = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/getCategoryWithItemsByBrand\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const REMOVE_ITEM_FROM_CATEGORY = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/removeItemFromSpecificCategory\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n itemId: params.itemId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_STORES_ATTACHED_TO_ITEM = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/getStoresAttachedToSpecificItemOfCategory\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n itemId: params.itemId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_ALL_STORES_AND_STORES_ATTACHED_TO_ITEM = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n const [firstResponse, secondResponse] = await Promise.all([\n axios.post(\n C.BASE_URL + \"store/getBrandStores\",\n {\n brandId: params.brandId,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n ),\n axios.post(\n C.BASE_URL + \"items/getStoresAttachedToSpecificItemOfCategory\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n itemId: params.itemId,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n ),\n ]);\n return [firstResponse.data, secondResponse.data];\n};\n\nexport const UPDATE_MODIFIER_TO_ITEM = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let modifier = { ...params.modifier };\n modifier[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"items/updateItemSection\", modifier, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const DELETE_MODIFIER_FROM_ITEM = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/remove-modifier-group-in-itemn\",\n {\n brandId: params.brandId,\n itemId: params.itemId,\n sectionId: params.sectionId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_ORDER_COUNT = async (params) => {\n return axios\n .post(\n C.BASE_URL + \"order/getAllPendingOrdersCount\",\n {},\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_CAREEM_STATUS = async ({orderId, token}) => {\n return axios\n .post(\n C.BASE_URL + apiUrl.CAREEM_NOW_GET_DELIVERY_STATUS,\n {orderId:orderId},\n {\n headers: {\n Authorization: token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_REFUNDABLE_COUNT = async (params) => {\n return axios\n .post(\n C.BASE_URL + \"order/get-refundable-orders-count\",\n {},\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_ORDER_BY_STATUS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"order/getOrdersByStatus\",\n {\n orderStatus: params.orderStatus,\n filter: params.filter,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\nexport const GET_ORDER_INFO_BY_ID = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"order/getOrderInfoById\",\n {\n brandId: params.brandId,\n orderId: params.orderId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const SET_ORDER_STATUS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let order = { ...params };\n order[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"order/setOrderStatus\", order, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const REFUND_ORDER = (data) => postUpdated(\"order/refund\", data);\nexport const SET_ORDER_NOT_REFUNDABLE = (data) =>\n postUpdated(\"order/set-nonrefundable\", data);\n\n//\nexport const GET_ORDERS_HISTORY = (data) =>\n post(\"order/get-orders-history-v2\", data);\n\nexport const GET_ITEMS_BY_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/getItemsByStore\",\n {\n brandId: params.brandId,\n storeId: params.storeId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const PAUSE_ITEM_IN_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/pauseItemInStore\",\n {\n brandId: params.brandId,\n storeId: params.storeId,\n itemId: params.itemId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const PLAY_ITEM_IN_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"items/playItemInStore\",\n {\n brandId: params.brandId,\n storeId: params.storeId,\n itemId: params.itemId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const CHECK_PACKAGE_VALIDITY = async (params) => {\n if (!params?.token) return;\n return axios\n .post(\n C.BASE_URL + \"onboardingSubscriptions/getCurrentUserSubscription\",\n {\n brandId: params.brandId,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n if (response.data.data.subscription.billingCycle) {\n reduxStore.dispatch(\n PkgActions.setSelectedKey(\n response.data.data.subscription.billingCycle\n )\n );\n }\n\n localStorage.setItem(\n \"packageInfo\",\n JSON.stringify(response.data.data.subscription)\n );\n\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_STATS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"order/stats\",\n {\n language,\n },\n {}\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const SEND_ORDER_TO_QUIQUP = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"order/sendOrderToQUIQUP\",\n {\n storeId: params.storeId,\n brandId: params.brandId,\n needs_return: false,\n orderId: params.orderId,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const SAVE_SETTINGS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n let settings = { ...params.settings };\n settings[\"language\"] = language;\n return axios\n .post(C.BASE_URL + \"branding/updateSetting\", settings, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_SETTINGS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"branding/getBrandSettingWithBrandId\",\n {\n brandId: params.brandId,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const CHECK_ONLINE_PAYMENT = async (params) => {\n return axios\n .get(C.BASE_URL + \"store/isOnlinePaymentOptionAvailableForStore\", {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const RE_ORDER_CATEGORIES = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"category/reOrderItemCategory\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n index: params.index,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\nexport const RE_ORDER_CATEGORY_ITEMS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"category/reorder-item-in-category\",\n {\n brandId: params.brandId,\n categoryId: params.categoryId,\n index: params.index,\n itemId: params.itemId,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n error: error?.response?.data ?? {\n success: 0,\n },\n };\n });\n};\n\nexport const GET_ORDER_HISTORY = (data) =>\n post(\"reports/order-history-v2\", data);\nexport const UPDATE_STORE_AREA = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/updateStoreArea\",\n {\n areas: params.areas,\n deliveryFee: params.deliveryFee,\n deliveryTime: params.deliveryTime,\n minOrder: params.minOrder,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response.status === 200) {\n return response.data;\n }\n })\n .catch((error) => {\n return error;\n });\n};\n\nexport const DELETE_STORE_AREA = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"store/deleteStoreArea\",\n {\n areas: params.areas,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response?.status === 200) {\n return response.data;\n }\n })\n .catch((error) => {\n return error;\n });\n};\nexport const GET_CUSTOMER_REPORT = (data) =>\n post(\"reports/customer-report-v2\", data);\n\nexport const ADD_STORE_AREA = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"store/addStoreArea\",\n {\n areas: params.areas,\n deliveryFee: params.deliveryFee,\n deliveryTime: params.deliveryTime,\n minOrder: params.minOrder,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response?.status === 200) {\n return response.data;\n }\n })\n .catch((error) => {\n return error;\n });\n};\n\nexport const GET_PAYMENTLINK_HISTORY = (data) =>\n post(\"reports/payments-link-history-v2\", data);\n\nexport const CREATE_PAYMENT_LINK = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"payment-links\",\n {\n storeName: params?.data?.storeName,\n brandId: params?.brandId,\n storeId: params?.data?.storeId,\n amount: params?.data?.amount,\n currency: \"AED\",\n purposeOfPayment: params?.data?.purposeOfPayment,\n message: params?.data?.message,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n return {\n error: error?.response?.data ?? {\n success: 0,\n },\n };\n });\n};\nexport const GET_ALL_PAYMENT_LINKS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"payment-links/get-all-payment-links\",\n {\n brandId: params?.brandId,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n error: error?.response?.data ?? {\n success: 0,\n },\n };\n });\n};\n\nexport const GET_PAYOUT_HISTORY = async (params) => {\n return axios\n .get(C.BASE_URL + `reports/${params.brandId}/get-brand-payout-history`, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n error: error?.response?.data ?? \"something went wrong\",\n };\n });\n};\n\nexport const CREATE_DISCOUNT_COUPON = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"discounts/create-discount\",\n {\n ...params.data,\n isActive: true,\n language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n return {\n error:\n error?.response?.data || error?.message || \"something went wrong\",\n };\n });\n};\n\nexport const GET_ALL_COUPONS = async (params) => {\n return axios\n .get(C.BASE_URL + `discounts/${params.brandId}/get-all-discounts`, {\n headers: {\n Authorization: params.token,\n },\n })\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n error:\n error?.response?.data || error?.message || \"something went wrong\",\n };\n });\n};\nexport const UPDATE_COUPONS = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n return axios\n .post(\n C.BASE_URL + \"discounts/update-discount\",\n {\n ...params.data,\n discountId: params.data?._id,\n language,\n },\n\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n error:\n error?.response?.data || error?.message || \"something went wrong\",\n };\n });\n};\n\nexport const PUBLISH_UNPUBLISH_STORE = async (params) => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n\n return axios\n .post(\n C.BASE_URL + \"store/update-store-publish-status\",\n {\n storeId: params.store?.storeId,\n brandId: params.store?.brandId,\n isOpened: params.store?.isOpened,\n language: language,\n },\n {\n headers: {\n Authorization: params.token,\n },\n }\n )\n .then((response) => {\n if (response) {\n if (response.status === 200) {\n return response.data;\n }\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n error: error?.response?.data ?? \"something went wrong\",\n };\n });\n};\n\nexport const GET_BUSINESS_AREAS = async (params) => {\n return axios\n .get(C.BASE_URL + `country/getAllCountriesWithCompleteDetail`)\n .then((response) => {\n if (response) {\n if (response.status == 200) {\n return response.data;\n }\n return false;\n }\n })\n .catch((error) => {\n console.log(error);\n return {\n success: 0,\n };\n });\n};\n\nexport const GET_BUSINESS_AREAS8 = (data) =>\n post(apiUrl.GET_BUSINESS_AREAS, data);\nexport const SEND_ORDER_TO_TALABAT = (data) =>\n post(apiUrl.SEND_ORDER_TO_TALABAT, data);\nexport const CHECK_TALABAT_DELIVERY_FEE = (data) =>\n post(apiUrl.CHECK_TALABAT_DELIVERY_FEE, data);\n\nexport const CHECK_TALABAT_DELIVERY_TIME = (data) =>\n post(apiUrl.CHECK_TALABAT_DELIVERY_TIME, data);\n\nexport const CANCEL_TALABAT_ORDER = (data) =>\n post(apiUrl.CANCEL_TALABAT_ORDER, data);\nexport const SEND_ORDER_TO_MARSOOL = (data) =>\n post(apiUrl.SEND_ORDER_TO_MARSOOL, data);\n\n// packages api\n\nexport const GET_ALL_ACTIVE_PACKAGES = () => post(apiUrl.GET_ALL_PACKAGES);\nexport const GET_HOSTED_PAYMENT_PAGE = (data) =>\n post(apiUrl.GET_PAYMENT_PAGE, data);\nexport const VERIFY_PACKAGE_PAYMENT = () => post(apiUrl.VERIFY_PKG_PAYMENT);\nexport const getBrandInfoWithBrandId = (data) =>\n post(apiUrl.GET_BRAND_INFO_WITH_ID, data);\nexport const uploadBulkItems = (data) => upload(apiUrl.UPLOAD_BULK_ITEMS, data);\n\n//feedback api\nexport const getOrdersBacks = (data) =>\n post(apiUrl.GET_ORDERS_FEEDABACKS, data);\n\n//MAPPED AREA\nexport const getMappedCountriesCitiesAreas = (data) =>\n post(apiUrl.GET_COUNTRIES_CITIES_MAPPED_AREAS, data);\n\nexport const addStoreMappedArea = (data) =>\n post(apiUrl.ADD_STORE_MAPPED_AREAS, data);\n\nexport const deleteStoreMappedArea = (data) =>\n post(apiUrl.DELETE_STORE_MAPPED_AREAS, data);\n\nexport const getStoreMappedAreas = (data) =>\n post(apiUrl.GET_STORE_MAPPED_AREAS, data);\n\nexport const updateStoreMappedAreas = (data) =>\n post(apiUrl.UPDATE_STORE_MAPPED_AREAS, data);\n\nexport const addCustomStoreMapArea = (data) =>\n post(apiUrl.ADD_CUSTOM_STORE_MAP_AREA, data);\n\nexport const getCustomStoreMapAreaById = (data) =>\n post(apiUrl.GET_CUSTOM_STORE_MAP_AREA_BY_ID, data);\n\nexport const getAllCustomBuisnessAreas = (data) =>\n post(apiUrl.GET_ALL_CUSTOM_BUSINESS_AREAS, data);\n\nexport const updateCustomStoreMapArea = (data) =>\n post(apiUrl.UPDATE_CUSTOM_STORE_MAP_AREA, data);\n\nexport const togglePolyonAreaStatus = (data) =>\n post(apiUrl.TOGGLE_PLOYGON_AREA_STATUS, data);\n//POLLING\nexport const getOrderMetaData = (data) =>\n post(apiUrl.GET_ORDER_META_DATA, data);\n\n//disntance based delivery\nexport const addDistanceBaseDeliveryZone = (data) =>\n post(apiUrl.ADD_DISTANCE_BASE_DELIVERY_ZONE, data);\n\nexport const getDistanceBaseDeliveryZoneInfo = (data) =>\n post(apiUrl.GET_DISTANCE_BASE_DELIVERY_ZONE_INFO, data);\n\nexport const updateDistanceBaseDeliveryZone = (data) =>\n post(apiUrl.UPDATE_DISTANCE_BASE_DELIVERY_ZONE, data);\n\nexport const deleteDistanceBaseDeliveryZone = (data) =>\n post(apiUrl.DELETE_DISTANCE_BASE_DELIVERY_ZONE, data);\n\nexport const getDistanceBaseDeliveryZones = (data) =>\n post(apiUrl.GET_DISTANCE_BASE_DELIVERY_ZONES, data);\n\nexport const toggleDistanceBaseDeliveryZoneStatus = (data) =>\n post(apiUrl.TOGGLE_DISTANCE_BASE_DELIVERY_ZONE_STATUS, data);\n\nexport const createDZDelivery = (data) => post(apiUrl.CREATE_DZ_DELIVERY, data);\nexport const trackDZDelivery = (data) => post(apiUrl.TRACK_DZ_DELIVERY, data);\nexport const downloadOrderHistoryExcelReport = (data) =>\n post(apiUrl.DOWNNLOAD_ORDERHISTORY_EXCEL_REPORT, data);\nexport const downloadCustomerExcelReport = (data) =>\n post(apiUrl.CUSTOMER_REPORT_EXCEL, data);\nexport const downloadPaymentLinksExcelReport = (data) =>\n post(apiUrl.PAYMENT_LINKS_EXCEL, data);\nexport const updateMenu = (data) => post(apiUrl.UPDATE_MENU, data);\nexport const cloneMenu = (data) => post(apiUrl.CLONE_MENU, data);\nexport const deleteMenu = (data) => post(apiUrl.DELETE_MENU, data);\nexport const markAsDefaultMenu = (data) =>\n post(apiUrl.MARK_AS_DEFAULT_MENU, data);\nexport const blockUnblockItemInStore = (data) =>\n post(apiUrl.BLOCK_UNBLOCK_ITEM_FOR_STORE, data);\nexport const toggleModifierInventory = (data) =>\n post(apiUrl.MODIFER_STORE_BLOCK, data);\n\nexport const UPDATE_ITEM = (data) => post(\"items/update-item\", data);\nexport const ADD_ITEM = (data) => post(\"items/add-new-item\", data);\n\nexport const linkModifierGroupWithItem = (data) =>\n post(apiUrl.LINK_MODIFIER_GROUP_WITH_ITEM, data);\n\nexport const LinkModifierWithGroup = (data) =>\n post(apiUrl.LINK_MODIFIER_WITH_GROUP, data);\nexport const ADD_CATEGORY = (data) => post(\"category/addNewItemCategory\", data);\nexport const unLinkItemWithCategory = (data) =>\n post(apiUrl.UNLINK_ITEMS_IN_CATEGORY, data);\n\nexport const unLinkCategoryWithMenu = (data) =>\n post(apiUrl.UNLINK_CATEGORY_IN_MENU, data);\nexport const linkItemWithCategory = (data) =>\n post(apiUrl.LINK_ITEMS_IN_CATEGORY, data);\n\nexport const sortItemInCategory = (data) =>\n post(apiUrl.SORT_ITEMS_IN_CATEGORY, data);\n\nexport const unLinkModifierGroupWithItem = (data) =>\n post(apiUrl.UNLINK_MODIFIER_GROUP_WITH_ITEM, data);\n\nexport const UPDATE_CATEGORY = (data) =>\n post(\"category/updateItemCategory\", data);\n\nexport const sortModifierGroup = (data) =>\n post(apiUrl.SORT_MODIFIER_GROUPS, data);\n\nexport const sortModifierOption = (data) =>\n post(apiUrl.SORT_MODIFIER_OPTION, data);\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst RadioButton = (props) => {\n return (\n <>\n
\n \n
\n \n props.handleValues(props.keyVal, event.target.checked)\n }\n checked={props.value}\n type=\"checkbox\"\n id={props?.customKey ? props?.customKey : props.keyVal}\n className=\"sr-only\"\n />\n
\n
\n \n
{props.label}
\n \n \n \n );\n};\n\nRadioButton.propTypes = {\n label: PropTypes.string,\n value: PropTypes.bool,\n keyVal: PropTypes.string,\n handleValues: PropTypes.func,\n};\n\nexport default RadioButton;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst Card = (props) => {\n return (\n
\n
\n {/*
*/}\n
{props.children}
\n {/*
*/}\n
\n
\n );\n};\n\nCard.propTypes = {\n children: PropTypes.object,\n styleClasses: PropTypes.string,\n};\nexport default Card;\n","import React from \"react\";\nimport { Fragment, useRef } from \"react\";\nimport { Dialog, Transition } from \"@headlessui/react\";\nimport PropTypes from \"prop-types\";\n\nconst Modal = (props) => {\n const cancelButtonRef = useRef(null);\n return (\n \n \n \n \n \n \n\n {/* This element is to trick the browser into centering the modal contents. */}\n \n ​\n \n \n {/* w-full lg:w-full xl:w-4/5 2xl:2/3 */}\n\n \n {props.children}\n\n \n CANCEL\n \n \n \n \n \n \n );\n};\n\nModal.propTypes = {\n children: PropTypes.object,\n modalWidth: PropTypes.string,\n open: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport default Modal;\n","import React from \"react\";\nexport const SVG_Business = () => {\n return (\n \n \n \n \n );\n};\n\nexport const SVG_TICK = () => {\n return (\n \n \n \n );\n};\nexport const SVG_PLUS = ({ color }) => {\n return (\n \n \n \n );\n};\n\nexport const SVG_Back = () => {\n return (\n \n \n \n \n Back\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Menu_Register = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Location_Register = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const SVG_Working_Hours_Register = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\n// export const SVG_Location_Register = () => {\n// return (\n// \n// \n// \n// \n// \n// \n// );\n// };\n\n// export const SVG_Working_Hours_Register = () => {\n// return (\n// \n// \n// \n// \n// \n// \n// \n// \n// \n// );\n// };\n\nexport const SVG_Payment_Register = () => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Location_White_Register = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const SVG_Working_Hours_White_Register = () => {\n return (\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Payment_White_Register = () => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Edit = () => {\n return (\n \n \n \n \n );\n};\n\nexport const SVG_Delete = () => {\n return (\n \n \n \n \n );\n};\n\nexport const SVG_Cancel = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const SVG_Save = () => {\n return (\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Dashboard = () => {\n return (\n \n \n \n \n );\n};\n\nexport const SVG_Landing_Pages = () => {\n return (\n \n \n \n \n );\n};\nexport const SVG_Packages = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const SVG_Ordering_Panel = () => {\n return (\n \n \n \n \n );\n};\n\nexport const SVG_Menu = () => {\n return (\n \n \n \n \n \n );\n};\n\nexport const SVG_User_Roles = () => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_Manage_Orders = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const FLAG = () => {\n return (\n \n \n \n );\n};\n\nexport const CITY = () => {\n return (\n \n \n \n \n );\n};\nexport const MAP = () => {\n return (\n \n \n \n );\n};\n\nexport const AREA = () => {\n return (\n \n \n \n \n );\n};\nexport const SVG_Sign_off = () => {\n return (\n \n \n \n \n );\n};\n\nexport const SVG_Pause_Orders = () => {\n return (\n \n \n \n \n );\n};\n\nexport const AngleUpIcon = () => (\n \n \n \n);\n\nexport const AngleDownIcon = () => (\n \n \n \n);\n\nexport const SVG_DELETE_DIALOG = () => {\n return (\n \n \n \n );\n};\n\nexport const SVG_RIGHT_ARROW = () => {\n return (\n \n \n \n );\n};\n\nexport const SVG_THREE_DOT_VERTICAL = () => {\n return (\n \n \n \n );\n};\n\nexport const SVG_VIEW_EYE = () => {\n return (\n \n \n \n );\n};\n\nexport const SVG_DELETE_SMALL = () => {\n return (\n \n \n \n );\n};\n\nexport const SVG_EDIT_SMALL = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_OPTIONS = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const SVG_OPTIONS_SMALL = () => {\n return (\n \n \n \n \n \n \n );\n};\n\nexport const SVG_LIVE_ORDER = () => {\n return (\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_INSTAGRAM = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_FACEBOOK = () => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_WHATSAPP = () => {\n return (\n \n \n \n \n \n \n \n );\n};\nexport const SVG_MESSENGER = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_DRAGDROP = () => {\n return (\n \n \n \n );\n};\n\nexport const SVG_FOOD_AND_BEVARAGES = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const SVG_RETAIL = () => {\n return (\n \n \n \n \n \n \n \n );\n};\n\nexport function Line() {\n const style = {\n fill: \"none\",\n stroke: \"#fff\",\n strokeWidth: \"3px\",\n };\n return (\n \n \n \n \n );\n}\n\nexport const WhatsAppButtonSvg = () => {\n return (\n \n \n \n \n \n );\n};\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { SVG_Business } from \"svg/SVGs\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\n\nconst AddStoreModel = (props) => {\n const { t } = useTranslation();\n\n return (\n
\n
\n
\n \n

{t(\"Add Store\")}

\n

\n {t(\"Please Add Store to get the full user experiences\")}\n

\n
\n
\n \n {t(\"Ok\")}\n \n
\n
\n
\n );\n};\n\nAddStoreModel.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddStoreModel;\n","import { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\n\nconst useUserType = () => {\n const [userType, setUserType] = useState(\"\");\n useEffect(() => {\n const CURRENT_USER_TYPE = UTILS.getCurrentUser()?.userType;\n setUserType(CURRENT_USER_TYPE);\n }, []);\n return userType;\n};\n\nexport default useUserType;\n","import { ACTIONS } from \"config\";\nexport const INITIAL_STATE = {\n toggle: false,\n};\n\nconst CatelogueReducer = (state, action) => {\n switch (action.type) {\n case ACTIONS.STORES_CHANGED:\n return {\n toggle: !state.toggle,\n };\n\n default:\n return state;\n }\n};\n\nexport default CatelogueReducer;\n","import React, { createContext, useReducer } from \"react\";\nimport CatelogueReducer from \"store/reducers/CatelogueReducer\";\n\nexport const CatelougeContext = createContext({\n state: null,\n dispatch: null,\n});\nconst Catelouge = (props) => {\n const [state, dispatch] = useReducer(CatelogueReducer, [], () => {\n return [];\n });\n\n return (\n \n {props.children}\n \n );\n};\n\nexport default Catelouge;\n","import { useEffect, useState, useContext } from \"react\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { CatelougeContext } from \"store/contexts/Catelouge\";\nimport { CONSTANTS as C } from \"config\";\nconst useCatalogue = () => {\n const [showStore, setShow] = useState(true);\n const [isLoading, setLoading] = useState(false);\n const { state } = useContext(CatelougeContext);\n const getCurrentUserStores = async (userDetail) => {\n setLoading(true);\n const result = await API.GET_CRRENT_USER_STORES({\n token: userDetail.token,\n language: \"EN\",\n });\n if (result?.data && result?.success === 1) {\n if (\n userDetail?.catalogueType === C.BRAND_BASED &&\n result?.data?.length >= 1\n ) {\n setShow(false);\n }\n }\n setLoading(false);\n };\n\n useEffect(() => {\n const userDetail = UTILS.getCurrentUser();\n if (userDetail) {\n getCurrentUserStores(userDetail);\n }\n }, [state]);\n\n return {\n showStore,\n isLoading,\n setLoading,\n };\n};\nexport default useCatalogue;\n","import React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useHistory } from \"react-router\";\nimport { UTILS } from \"utils\";\nimport PropsTypes from \"prop-types\";\nimport RadioButton from \"components/RadioButton\";\nimport { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport Card from \"components/Card\";\nimport { Spin, Table } from \"antd\";\nimport Modal from \"components/Modal\";\nimport AddStoreModel from \"./AddStoreModel\";\nimport { useTranslation } from \"react-i18next\";\nimport { BASE_LANGUAGE } from \"config/Constants\";\nimport useUserType from \"hooks/useUserType\";\nimport useCatalogue from \"hooks/useCatalogue\";\nconst DashboardBranchesTable = (props) => {\n const userType = useUserType() || UTILS.getCurrentUser()?.userType;\n const [stores, setStores] = useState();\n const [open, setOpen] = useState(false);\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const catelougeType = useCatalogue();\n const router = useHistory();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const getCurrentUserStores = async () => {\n setLoading(true);\n catelougeType.setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_CRRENT_USER_STORES({\n token: userDetail.token,\n language: currentLanguage ?? \"EN\",\n });\n if (\n result &&\n result.success == 1 &&\n Array.isArray(result.data) &&\n result.data.length >= 1\n )\n setStores(result.data);\n else {\n if (userType === \"MANAGER\") {\n } else {\n setOpen(true);\n }\n }\n\n catelougeType.setLoading(false);\n setLoading(false);\n };\n\n useEffect(() => {\n getCurrentUserStores();\n }, []);\n\n const getServiceTypes = (types) => {\n let text = \"\";\n types &&\n types.map((item, index) => {\n text += item.nameEN + \" \";\n });\n return text;\n };\n\n const publishStore = async (storeId, val) => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n let s = {\n brandId: userDetail.brandId,\n storeId: storeId,\n isOpened: val,\n language: \"EN\",\n };\n const result = await API.PUBLISH_UNPUBLISH_STORE({\n token: userDetail.token,\n store: s,\n });\n if (result && result.success === 1) {\n let arr = [...stores];\n let re = arr.map((el) =>\n el._id == storeId ? { ...el, isOpened: val } : el\n );\n setStores(re);\n } else {\n }\n getCurrentUserStores(() => {\n setLoading(false);\n });\n };\n\n const handleValues = (key, val) => {\n publishStore(key, val);\n };\n\n const updateStore = (sId) => {\n router.push({\n pathname: \"/app/dashboard/updatestore\",\n state: {\n storeId: sId,\n },\n });\n };\n\n const renderUpdateStore = (value, rowData, index) => {\n return (\n updateStore(rowData._id)}\n onClick={() =>\n updateStore(\n rowData[BASE_LANGUAGE] ? rowData._id : rowData?.storeId?._id\n )\n }\n className=\"py-1 px-2 text-13px border border-red-200 shadow-sm rounded-sm text-theme-red bg-gray-50 focus:outline-none hover:bg-theme-red hover:text-white\"\n >\n {t(\"Update Store Information\")}\n \n );\n };\n\n const renderAreas = (value, rowData, index) => {\n return (\n {\n localStorage.setItem(\"storeId\", rowData._id);\n router.push({\n pathname: \"/app/dashboard/shipping\",\n state: {\n sId: rowData[BASE_LANGUAGE] ? rowData._id : rowData?.storeId?._id,\n },\n });\n }}\n className=\"py-1 px-2 text-13px border border-blue-600 shadow-sm rounded-sm text-blue-600 bg-gray-50 focus:outline-none hover:bg-blue-600 hover:text-white\"\n >\n {t(\"Manage Areas\")}\n \n );\n };\n\n const renderActions = (value, rowData, index) => {\n return (\n \n );\n };\n const columns = [\n {\n title: t(\"Store\"),\n dataIndex: \"baseLanguage\",\n render: (value, rowData, index) => {\n return rowData[C.BASE_LANGUAGE]\n ? rowData[C.BASE_LANGUAGE].name\n : rowData?.storeId[C.BASE_LANGUAGE]?.name;\n },\n },\n {\n title: t(\"Description\"),\n dataIndex: \"description\",\n render: (value, rowData, index) => {\n return rowData[C.BASE_LANGUAGE]\n ? rowData[C.BASE_LANGUAGE].description\n : rowData?.storeId[C.BASE_LANGUAGE]?.description;\n },\n },\n {\n title: t(\"Actions\"),\n dataIndex: \"_id\",\n width: \"30%\",\n render: renderUpdateStore,\n },\n {\n title: t(\"Areas\"),\n dataIndex: \"_id\",\n width: \"15%\",\n render: renderAreas,\n },\n {\n title: t(\"Publish\"),\n dataIndex: \"isOpened\",\n render: renderActions,\n width: \"12%\",\n },\n ];\n\n return (\n
\n setOpen(false)}\n >\n {\n setOpen(false);\n router.push(\"/app/dashboard/addstore\");\n }}\n />\n \n
\n
\n
\n \n \n record._id}\n />\n \n \n
\n
\n
\n
\n );\n};\n\nDashboardBranchesTable.propTypes = {\n data: PropsTypes.array,\n};\n\nexport default DashboardBranchesTable;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst DashboardCard = (props) => {\n return (\n
\n
\n
\n
\n

\n {props.heading}\n

\n

{props.count}

\n
\n
\n
\n
\n );\n};\nDashboardCard.propTypes = {\n pClass: PropTypes.string,\n count: PropTypes.number,\n heading: PropTypes.string,\n};\nexport default DashboardCard;\n","import React, { useEffect, useState } from \"react\";\nimport PageHeading from \"components/PageHeading\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { Button } from \"antd\";\nimport DashboardBranchesTable from \"features/dashboard/components/DashboardBranchesTable\";\nimport DashboardCard from \"features/dashboard/components/DashboardCard\";\nimport { useSelector } from \"react-redux\";\nimport { useHistory } from \"react-router\";\nimport { useTranslation } from \"react-i18next\";\nimport useUserType from \"hooks/useUserType\";\nimport useCatalogue from \"hooks/useCatalogue\";\nconst Dashboard = () => {\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const router = useHistory();\n const [stats, setStats] = useState({});\n const catelougeType = useCatalogue();\n const { t } = useTranslation();\n const userType = useUserType();\n const getStats = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_STATS({\n token: userDetail.token,\n language: currentLanguage,\n });\n if (result && result.success === 1 && UTILS.isValidObject([\"data\"], result))\n setStats(result.data);\n else {\n }\n };\n\n const addStore = () => {\n router.push(\"/app/dashboard/addstore\");\n };\n\n useEffect(() => {\n getStats();\n }, []);\n\n const getCountFromOrders = (status) => {\n if (stats?.orders && Array.isArray(stats.orders)) {\n for (let index = 0; index < stats.orders.length; index++) {\n const element = stats.orders[index];\n if (element.orderStatus === status) {\n return element.count;\n }\n }\n return \"0\";\n } else {\n return \"0\";\n }\n };\n return (\n <>\n \n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

{t(\"Stores\")}

\n
\n
\n {catelougeType?.showStore &&\n !catelougeType?.isLoading &&\n userType === \"BRAND-ADMIN\" ? (\n addStore()}\n >\n {t(\"Add Store\")}\n \n ) : null}\n
\n
\n \n
\n
\n \n );\n};\nexport default Dashboard;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst SectionHeading = (props) => {\n return (\n
\n

\n {props.title}\n

\n
\n );\n};\nSectionHeading.propTypes = {\n title: PropTypes.string,\n};\nexport default SectionHeading;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst TextInput = (props) => {\n const mandatoryField = getMandatoryField(props.mandatory);\n const fieldError = getFieldError(props.error);\n\n return (\n <>\n \n \n props.handleValues(props.keyVal, event.target.value)\n }\n placeholder={props.placeHolder ? props.placeHolder : \"\"}\n value={props.value}\n type={props?.type ? props.type : \"text\"}\n disabled={props.disabled ? true : false}\n className=\"font-montserrat text-16px text-input-color text-sm border border-grey-600 focus:ring-indigo-500 outline-none focus:border-indigo-500 block w-full border-gray-300 p-2\"\n />\n \n );\n};\n\nTextInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default TextInput;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getRows = (rows) => {\n if (rows) {\n return rows;\n } else {\n return 4;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst TextArea = (props) => {\n const mandatoryField = getMandatoryField(props.mandatory);\n const fieldError = getFieldError(props.error);\n const rows = getRows(props.rows);\n return (\n <>\n \n \n props.handleValues(props.keyVal, event.target.value)\n }\n rows=\"4\"\n cols=\"50\"\n value={props.value}\n className=\"font-montserrat text-input-color text-16px border border-grey-600 focus:ring-indigo-500 outline-none focus:border-indigo-500 block w-full border-gray-300 p-2\"\n />\n \n );\n};\n\nTextArea.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default TextArea;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport PhoneInput from \"react-phone-number-input\";\nimport \"./phoneinput.css\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst PhoneNumberInput = (props) => {\n const mandatoryField = getMandatoryField(props.mandatory);\n const fieldError = getFieldError(props.error);\n return (\n <>\n \n
\n props.handleValues(props.keyVal, val)}\n placeholder={props.placeHolder}\n value={props.value}\n />\n
\n \n );\n};\n\nPhoneNumberInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default PhoneNumberInput;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nconst getLabel = (label) => {\n if (label !== \"\") {\n return (\n \n );\n }\n};\nconst SelectInput = (props) => {\n const { t } = useTranslation();\n const mandatoryLabel = getLabel(props.label);\n return (\n <>\n {mandatoryLabel}\n props.handleChange(props.keyVal, e.target.value)}\n value={props.value ? props.value : null}\n >\n \n {props.options.map((option) => (\n \n {option.label}\n \n ))}\n \n \n );\n};\n\nSelectInput.propTypes = {\n keyVal: PropTypes.string,\n label: PropTypes.string,\n styleClass: PropTypes.string,\n options: PropTypes.array,\n handleChange: PropTypes.func,\n value: PropTypes.string,\n defaultSelection: PropTypes.string,\n};\nexport default SelectInput;\n","const TimeZones = () => {\n const arr = [\n {value: \"Africa/Abidjan\", label: \"Africa/Abidjan\"},\n {value: \"Africa/Accra\", label: \"Africa/Accra\"},\n {value: \"Africa/Addis_Ababa\", label: \"Africa/Addis_Ababa\"},\n {value: \"Africa/Algiers\", label: \"Africa/Algiers\"},\n {value: \"Africa/Asmara\", label: \"Africa/Asmara\"},\n {value: \"Africa/Asmera\", label:\"Africa/Asmera\"},\n {value: \"Africa/Bamako\", label:\"Africa/Bamako\"},\n {value: \"Africa/Bangui\", label: \"Africa/Bangui\"},\n {value: \"Africa/Banjul\", label: \"Africa/Banjul\"},\n {value: \"Africa/Bissau\", label: \"Africa/Bissau\"},\n {value: \"Africa/Blantyre\", label: \"Africa/Blantyre\"},\n {value: \"Africa/Brazzaville\", label: \"Africa/Brazzaville\"},\n {value: \"Africa/Bujumbura\", label: \"Africa/Bujumbura\"},\n {value: \"Africa/Cairo\", label: \"Africa/Cairo\"},\n {value: \"Africa/Casablanca\", label: \"Africa/Casablanca\"},\n {value: \"Africa/Ceuta\", label: \"Africa/Ceuta\"},\n {value: \"Africa/Conakry\", label: \"Africa/Conakry\"},\n {value: \"Africa/Dakar\", label: \"Africa/Dakar\"},\n {value: \"Africa/Dar_es_Salaam\", label: \"Africa/Dar_es_Salaam\"},\n {value: \"Africa/Djibouti\", label: \"Africa/Djibouti\"},\n {value: \"Africa/Douala\", label: \"Africa/Douala\"},\n {value: \"Africa/El_Aaiun\", label: \"Africa/El_Aaiun\"},\n {value: \"Africa/Freetown\", label: \"Africa/Freetown\"},\n {value: \"Africa/Gaborone\", label: \"Africa/Gaborone\"},\n {value: \"Africa/Harare\", label: \"Africa/Harare\"},\n {value: \"Africa/Johannesburg\", label: \"Africa/Johannesburg\"},\n {value: \"Africa/Juba\", label: \"Africa/Juba\"},\n {value: \"Africa/Kampala\", label: \"Africa/Kampala\"},\n {value: \"Africa/Khartoum\", label: \"Africa/Khartoum\"},\n {value: \"Africa/Kigali\", label: \"Africa/Kigali\"},\n {value: \"Africa/Kinshasa\", label: \"Africa/Kinshasa\"},\n {value: \"Africa/Lagos\", label: \"Africa/Lagos\"},\n {value: \"Africa/Libreville\", label: \"Africa/Libreville\"},\n {value: \"Africa/Lome\", label: \"Africa/Lome\"},\n {value: \"Africa/Luanda\", label: \"Africa/Luanda\"},\n {value: \"Africa/Lubumbashi\", label: \"Africa/Lubumbashi\"},\n {value: \"Africa/Lusaka\", label: \"Africa/Lusaka\"},\n {value: \"Africa/Malabo\", label: \"Africa/Malabo\"},\n {value: \"Africa/Maputo\", label: \"Africa/Maputo\"},\n {value: \"Africa/Maseru\", label: \"Africa/Maseru\"},\n {value: \"Africa/Mbabane\", label: \"Africa/Mbabane\"},\n {value: \"Africa/Mogadishu\", label: \"Africa/Mogadishu\"},\n {value: \"Africa/Monrovia\", label: \"Africa/Monrovia\"},\n {value: \"Africa/Nairobi\", label: \"Africa/Nairobi\"},\n {value: \"Africa/Ndjamena\", label: \"Africa/Ndjamena\"},\n {value: \"Africa/Niamey\", label: \"Africa/Niamey\"},\n {value: \"Africa/Nouakchott\", label: \"Africa/Nouakchott\"},\n {value: \"Africa/Ouagadougou\", label: \"Africa/Ouagadougou\"},\n {value: \"Africa/Porto-Novo\", label: \"Africa/Porto-Novo\"},\n {value: \"Africa/Sao_Tome\", label: \"Africa/Sao_Tome\"},\n {value: \"Africa/Timbuktu\", label: \"Africa/Timbuktu\"},\n {value: \"Africa/Tripoli\", label: \"Africa/Tripoli\"},\n {value: \"Africa/Tunis\", label: \"Africa/Tunis\"},\n {value: \"Africa/Windhoek\", label: \"Africa/Windhoek\"},\n {value: \"America/Adak\", label: \"America/Adak\"},\n {value: \"America/Anchorage\", label: \"America/Anchorage\"},\n {value: \"America/Anguilla\", label: \"America/Anguilla\"},\n {value: \"America/Antigua\", label: \"America/Antigua\"},\n {value: \"America/Araguaina\", label: \"America/Araguaina\"},\n {value: \"America/Argentina/Buenos_Aires\", label: \"America/Argentina/Buenos_Aires\"},\n {value: \"America/Argentina/Catamarca\", label: \"America/Argentina/Catamarca\"},\n {value: \"America/Argentina/ComodRivadavia\", label: \"America/Argentina/ComodRivadavia\"},\n {value: \"America/Argentina/Cordoba\", label: \"America/Argentina/Cordoba\"},\n {value: \"America/Argentina/Jujuy\", label: \"America/Argentina/Jujuy\"},\n {value: \"America/Argentina/La_Rioja\", label: \"America/Argentina/La_Rioja\"},\n {value: \"America/Argentina/Mendoza\", label: \"America/Argentina/Mendoza\"},\n {value: \"America/Argentina/Rio_Gallegos\", label: \"America/Argentina/Rio_Gallegos\"},\n {value: \"America/Argentina/Salta\", label: \"America/Argentina/Salta\"},\n {value: \"America/Argentina/San_Juan\", label: \"America/Argentina/San_Juan\"},\n {value: \"America/Argentina/San_Luis\", label: \"America/Argentina/San_Luis\"},\n {value: \"America/Argentina/Tucuman\", label: \"America/Argentina/Tucuman\"},\n {value: \"America/Argentina/Ushuaia\", label: \"America/Argentina/Ushuaia\"},\n {value: \"America/Aruba\", label: \"America/Aruba\"},\n {value: \"America/Asuncion\", label: \"America/Asuncion\"},\n {value: \"America/Atikokan\", label: \"America/Atikokan\"},\n {value: \"America/Atka\", label: \"America/Atka\"},\n {value: \"America/Bahia\", label: \"America/Bahia\"},\n {value: \"America/Bahia_Banderas\", label: \"America/Bahia_Banderas\"},\n {value: \"America/Barbados\", label: \"America/Barbados\"},\n {value: \"America/Belem\", label: \"America/Belem\"},\n {value: \"America/Belize\", label: \"America/Belize\"},\n {value: \"America/Blanc-Sablon\", label: \"America/Blanc-Sablon\"},\n {value: \"America/Boa_Vista\", label: \"America/Boa_Vista\"},\n {value: \"America/Bogota\", label: \"America/Bogota\"},\n {value: \"America/Boise\", label: \"America/Boise\"},\n {value: \"America/Buenos_Aires\", label: \"America/Buenos_Aires\"},\n {value: \"America/Cambridge_Bay\", label: \"America/Cambridge_Bay\"},\n {value: \"America/Campo_Grande\", label: \"America/Campo_Grande\"},\n {value: \"America/Cancun\", label: \"America/Cancun\"},\n {value: \"America/Caracas\", label: \"America/Caracas\"},\n {value: \"America/Catamarca\", label: \"America/Catamarca\"},\n {value: \"America/Cayenne\", label: \"America/Cayenne\"},\n {value: \"America/Cayman\", label: \"America/Cayman\"},\n {value: \"America/Chicago\", label: \"America/Chicago\"},\n {value: \"America/Chihuahua\", label: \"America/Chihuahua\"},\n {value: \"America/Coral_Harbour\", label: \"America/Coral_Harbour\"},\n {value: \"America/Cordoba\", label: \"America/Cordoba\"},\n {value: \"America/Costa_Rica\", label: \"America/Costa_Rica\"},\n {value: \"America/Creston\", label: \"America/Creston\"},\n {value: \"America/Cuiaba\", label: \"America/Cuiaba\"},\n {value: \"America/Curacao\", label: \"America/Curacao\"},\n {value: \"America/Danmarkshavn\", label: \"America/Danmarkshavn\"},\n {value: \"America/Dawson\", label: \"America/Dawson\"},\n {value: \"America/Dawson_Creek\", label: \"America/Dawson_Creek\"},\n {value: \"America/Denver\", label: \"America/Denver\"},\n {value: \"America/Detroit\", label: \"America/Detroit\"},\n {value: \"America/Dominica\", label: \"America/Dominica\"},\n {value: \"America/Edmonton\", label: \"America/Edmonton\"},\n {value: \"America/Eirunepe\", label: \"America/Eirunepe\"},\n {value: \"America/El_Salvador\", label: \"America/El_Salvador\"},\n {value: \"America/Ensenada\", label: \"America/Ensenada\"},\n {value: \"America/Fort_Nelson\", label: \"America/Fort_Nelson\"},\n {value: \"America/Fort_Wayne\", label: \"America/Fort_Wayne\"},\n {value: \"America/Fortaleza\", label: \"America/Fortaleza\"},\n {value: \"America/Glace_Bay\", label: \"America/Glace_Bay\"},\n {value: \"America/Godthab\", label: \"America/Godthab\"},\n {value: \"America/Goose_Bay\", label: \"America/Goose_Bay\"},\n {value: \"America/Grand_Turk\", label: \"America/Grand_Turk\"},\n {value: \"America/Grenada\", label: \"America/Grenada\"},\n {value: \"America/Guadeloupe\", label: \"America/Guadeloupe\"},\n {value: \"America/Guatemala\", label: \"America/Guatemala\"},\n {value: \"America/Guayaquil\", label: \"America/Guayaquil\"},\n {value: \"America/Guyana\", label: \"America/Guyana\"},\n {value: \"America/Halifax\", label: \"America/Halifax\"},\n {value: \"America/Havana\", label: \"America/Havana\"},\n {value: \"America/Hermosillo\", label: \"America/Hermosillo\"},\n {value: \"America/Indiana/Indianapolis\", label: \"America/Indiana/Indianapolis\"},\n {value: \"America/Indiana/Knox\", label: \"America/Indiana/Knox\"},\n {value: \"America/Indiana/Marengo\", label: \"America/Indiana/Marengo\"},\n {value: \"America/Indiana/Petersburg\", label: \"America/Indiana/Petersburg\"},\n {value: \"America/Indiana/Tell_City\", label: \"America/Indiana/Tell_City\"},\n {value: \"America/Indiana/Vevay\", label: \"America/Indiana/Vevay\"},\n {value: \"America/Indiana/Vincennes\", label: \"America/Indiana/Vincennes\"},\n {value: \"America/Indiana/Winamac\", label: \"America/Indiana/Winamac\"},\n {value: \"America/Indianapolis\", label: \"America/Indianapolis\"},\n {value: \"America/Inuvik\", label: \"America/Inuvik\"},\n {value: \"America/Iqaluit\", label: \"America/Iqaluit\"},\n {value: \"America/Jamaica\", label: \"America/Jamaica\"},\n {value: \"America/Jujuy\", label: \"America/Jujuy\"},\n {value: \"America/Juneau\", label: \"America/Juneau\"},\n {value: \"America/Kentucky/Louisville\", label: \"America/Kentucky/Louisville\"},\n {value: \"America/Kentucky/Monticello\", label: \"America/Kentucky/Monticello\"},\n {value: \"America/Knox_IN\", label: \"America/Knox_IN\"},\n {value: \"America/Kralendijk\", label: \"America/Kralendijk\"},\n {value: \"America/La_Paz\", label: \"America/La_Paz\"},\n {value: \"America/Lima\", label: \"America/Lima\"},\n {value: \"America/Los_Angeles\", label: \"America/Los_Angeles\"},\n {value: \"America/Louisville\", label: \"America/Louisville\"},\n {value: \"America/Lower_Princes\", label: \"America/Lower_Princes\"},\n {value: \"America/Maceio\", label: \"America/Maceio\"},\n {value: \"America/Managua\", label: \"America/Managua\"},\n {value: \"America/Manaus\", label: \"America/Manaus\"},\n {value: \"America/Marigot\", label: \"America/Marigot\"},\n {value: \"America/Martinique\", label: \"America/Martinique\"},\n {value: \"America/Matamoros\", label: \"America/Matamoros\"},\n {value: \"America/Mazatlan\", label: \"America/Mazatlan\"},\n {value: \"America/Mendoza\", label: \"America/Mendoza\"},\n {value: \"America/Menominee\", label: \"America/Menominee\"},\n {value: \"America/Merida\", label: \"America/Merida\"},\n {value: \"America/Metlakatla\", label: \"America/Metlakatla\"},\n {value: \"America/Mexico_City\", label: \"America/Mexico_City\"},\n {value: \"America/Miquelon\", label: \"America/Miquelon\"},\n {value: \"America/Moncton\", label: \"America/Moncton\"},\n {value: \"America/Monterrey\", label: \"America/Monterrey\"},\n {value: \"America/Montevideo\", label: \"America/Montevideo\"},\n {value: \"America/Montreal\", label: \"America/Montreal\"},\n {value: \"America/Montserrat\", label: \"America/Montserrat\"},\n {value: \"America/Nassau\", label: \"America/Nassau\"},\n {value: \"America/New_York\", label: \"America/New_York\"},\n {value: \"America/Nipigon\", label: \"America/Nipigon\"},\n {value: \"America/Nome\", label: \"America/Nome\"},\n {value: \"America/Noronha\", label: \"America/Noronha\"},\n {value: \"America/North_Dakota/Beulah\", label: \"America/North_Dakota/Beulah\"},\n {value: \"America/North_Dakota/Center\", label: \"America/North_Dakota/Center\"},\n {value: \"America/North_Dakota/New_Salem\", label: \"America/North_Dakota/New_Salem\"},\n {value: \"America/Ojinaga\", label: \"America/Ojinaga\"},\n {value: \"America/Panama\", label: \"America/Panama\"},\n {value: \"America/Pangnirtung\", label: \"America/Pangnirtung\"},\n {value: \"America/Paramaribo\", label: \"America/Paramaribo\"},\n {value: \"America/Phoenix\", label: \"America/Phoenix\"},\n {value: \"America/Port-au-Prince\", label: \"America/Port-au-Prince\"},\n {value: \"America/Port_of_Spain\", label: \"America/Port_of_Spain\"},\n {value: \"America/Porto_Acre\", label: \"America/Porto_Acre\"},\n {value: \"America/Porto_Velho\", label: \"America/Porto_Velho\"},\n {value: \"America/Puerto_Rico\", label: \"America/Puerto_Rico\"},\n {value: \"America/Punta_Arenas\", label: \"America/Punta_Arenas\"},\n {value: \"America/Rainy_River\", label: \"America/Rainy_River\"},\n {value: \"America/Rankin_Inlet\", label: \"America/Rankin_Inlet\"},\n {value: \"America/Recife\", label: \"America/Recife\"},\n {value: \"America/Regina\", label: \"America/Regina\"},\n {value: \"America/Resolute\", label: \"America/Resolute\"},\n {value: \"America/Rio_Branco\", label: \"America/Rio_Branco\"},\n {value: \"America/Rosario\", label: \"America/Rosario\"},\n {value: \"America/Santa_Isabel\", label: \"America/Santa_Isabel\"},\n {value: \"America/Santarem\", label: \"America/Santarem\"},\n {value: \"America/Santiago\", label: \"America/Santiago\"},\n {value: \"America/Santo_Domingo\", label: \"America/Santo_Domingo\"},\n {value: \"America/Sao_Paulo\", label: \"America/Sao_Paulo\"},\n {value: \"America/Scoresbysund\", label: \"America/Scoresbysund\"},\n {value: \"America/Shiprock\", label: \"America/Shiprock\"},\n {value: \"America/Sitka\", label: \"America/Sitka\"},\n {value: \"America/St_Barthelemy\", label: \"America/St_Barthelemy\"},\n {value: \"America/St_Johns\", label: \"America/St_Johns\"},\n {value: \"America/St_Kitts\", label: \"America/St_Kitts\"},\n {value: \"America/St_Lucia\", label: \"America/St_Lucia\"},\n {value: \"America/St_Thomas\", label: \"America/St_Thomas\"},\n {value: \"America/St_Vincent\", label: \"America/St_Vincent\"},\n {value: \"America/Swift_Current\", label: \"America/Swift_Current\"},\n {value: \"America/Tegucigalpa\", label: \"America/Tegucigalpa\"},\n {value: \"America/Thule\", label: \"America/Thule\"},\n {value: \"America/Thunder_Bay\", label: \"America/Thunder_Bay\"},\n {value: \"America/Tijuana\", label: \"America/Tijuana\"},\n {value: \"America/Toronto\", label: \"America/Toronto\"},\n {value: \"America/Tortola\", label: \"America/Tortola\"},\n {value: \"America/Vancouver\", label: \"America/Vancouver\"},\n {value: \"America/Virgin\", label: \"America/Virgin\"},\n {value: \"America/Whitehorse\", label: \"America/Whitehorse\"},\n {value: \"America/Winnipeg\", label: \"America/Winnipeg\"},\n {value: \"America/Yakutat\", label: \"America/Yakutat\"},\n {value: \"America/Yellowknife\", label: \"America/Yellowknife\"},\n {value: \"Antarctica/Casey\", label: \"Antarctica/Casey\"},\n {value: \"Antarctica/Davis\", label: \"Antarctica/Davis\"},\n {value: \"Antarctica/DumontDUrville\", label: \"Antarctica/DumontDUrville\"},\n {value: \"Antarctica/Macquarie\", label: \"Antarctica/Macquarie\"},\n {value: \"Antarctica/Mawson\", label: \"Antarctica/Mawson\"},\n {value: \"Antarctica/McMurdo\", label: \"Antarctica/McMurdo\"},\n {value: \"Antarctica/Palmer\", label: \"Antarctica/Palmer\"},\n {value: \"Antarctica/Rothera\", label: \"Antarctica/Rothera\"},\n {value: \"Antarctica/South_Pole\", label: \"Antarctica/South_Pole\"},\n {value: \"Antarctica/Syowa\", label: \"Antarctica/Syowa\"},\n {value: \"Antarctica/Troll\", label: \"Antarctica/Troll\"},\n {value: \"Antarctica/Vostok\", label: \"Antarctica/Vostok\"},\n {value: \"Arctic/Longyearbyen\", label: \"Arctic/Longyearbyen\"},\n {value: \"Asia/Aden\", label: \"Asia/Aden\"},\n {value: \"Asia/Almaty\", label: \"Asia/Almaty\"},\n {value: \"Asia/Amman\", label: \"Asia/Amman\"},\n {value: \"Asia/Anadyr\", label: \"Asia/Anadyr\"},\n {value: \"Asia/Aqtau\", label: \"Asia/Aqtau\"},\n {value: \"Asia/Aqtobe\", label: \"Asia/Aqtobe\"},\n {value: \"Asia/Ashgabat\", label: \"Asia/Ashgabat\"},\n {value: \"Asia/Ashkhabad\", label: \"Asia/Ashkhabad\"},\n {value: \"Asia/Atyrau\", label: \"Asia/Atyrau\"},\n {value: \"Asia/Baghdad\", label: \"Asia/Baghdad\"},\n {value: \"Asia/Bahrain\", label: \"Asia/Bahrain\"},\n {value: \"Asia/Baku\", label: \"Asia/Baku\"},\n {value: \"Asia/Bangkok\", label: \"Asia/Bangkok\"},\n {value: \"Asia/Barnaul\", label: \"Asia/Barnaul\"},\n {value: \"Asia/Beirut\", label: \"Asia/Beirut\"},\n {value: \"Asia/Bishkek\", label: \"Asia/Bishkek\"},\n {value: \"Asia/Brunei\", label: \"Asia/Brunei\"},\n {value: \"Asia/Calcutta\", label: \"Asia/Calcutta\"},\n {value: \"Asia/Chita\", label: \"Asia/Chita\"},\n {value: \"Asia/Choibalsan\", label: \"Asia/Choibalsan\"},\n {value: \"Asia/Chongqing\", label: \"Asia/Chongqing\"},\n {value: \"Asia/Chungking\", label: \"Asia/Chungking\"},\n {value: \"Asia/Colombo\", label: \"Asia/Colombo\"},\n {value: \"Asia/Dacca\", label: \"Asia/Dacca\"},\n {value: \"Asia/Damascus\", label: \"Asia/Damascus\"},\n {value: \"Asia/Dhaka\", label: \"Asia/Dhaka\"},\n {value: \"Asia/Dili\", label: \"Asia/Dili\"},\n {value: \"Asia/Dubai\", label: \"Asia/Dubai\"},\n {value: \"Asia/Dushanbe\", label: \"Asia/Dushanbe\"},\n {value: \"Asia/Famagusta\", label: \"Asia/Famagusta\"},\n {value: \"Asia/Gaza\", label: \"Asia/Gaza\"},\n {value: \"Asia/Harbin\", label: \"Asia/Harbin\"},\n {value: \"Asia/Hebron\", label: \"Asia/Hebron\"},\n {value: \"Asia/Ho_Chi_Minh\", label: \"Asia/Ho_Chi_Minh\"},\n {value: \"Asia/Hong_Kong\", label: \"Asia/Hong_Kong\"},\n {value: \"Asia/Hovd\", label: \"Asia/Hovd\"},\n {value: \"Asia/Irkutsk\", label: \"Asia/Irkutsk\"},\n {value: \"Asia/Istanbul\", label: \"Asia/Istanbul\"},\n {value: \"Asia/Jakarta\", label: \"Asia/Jakarta\"},\n {value: \"Asia/Jayapura\", label: \"Asia/Jayapura\"},\n {value: \"Asia/Jerusalem\", label: \"Asia/Jerusalem\"},\n {value: \"Asia/Kabul\", label: \"Asia/Kabul\"},\n {value: \"Asia/Kamchatka\", label: \"Asia/Kamchatka\"},\n {value: \"Asia/Karachi\", label: \"Asia/Karachi\"},\n {value: \"Asia/Kashgar\", label: \"Asia/Kashgar\"},\n {value: \"Asia/Kathmandu\", label: \"Asia/Kathmandu\"},\n {value: \"Asia/Katmandu\", label: \"Asia/Katmandu\"},\n {value: \"Asia/Khandyga\", label: \"Asia/Khandyga\"},\n {value: \"Asia/Kolkata\", label: \"Asia/Kolkata\"},\n {value: \"Asia/Krasnoyarsk\", label: \"Asia/Krasnoyarsk\"},\n {value: \"Asia/Kuala_Lumpur\", label: \"Asia/Kuala_Lumpur\"},\n {value: \"Asia/Kuching\", label: \"Asia/Kuching\"},\n {value: \"Asia/Kuwait\", label: \"Asia/Kuwait\"},\n {value: \"Asia/Macao\", label: \"Asia/Macao\"},\n {value: \"Asia/Macau\", label: \"Asia/Macau\"},\n {value: \"Asia/Magadan\", label: \"Asia/Magadan\"},\n {value: \"Asia/Makassar\", label: \"Asia/Makassar\"},\n {value: \"Asia/Manila\", label: \"Asia/Manila\"},\n {value: \"Asia/Muscat\", label: \"Asia/Muscat\"},\n {value: \"Asia/Nicosia\", label: \"Asia/Nicosia\"},\n {value: \"Asia/Novokuznetsk\", label: \"Asia/Novokuznetsk\"},\n {value: \"Asia/Novosibirsk\", label: \"Asia/Novosibirsk\"},\n {value: \"Asia/Omsk\", label: \"Asia/Omsk\"},\n {value: \"Asia/Oral\", label: \"Asia/Oral\"},\n {value: \"Asia/Phnom_Penh\", label: \"Asia/Phnom_Penh\"},\n {value: \"Asia/Pontianak\", label: \"Asia/Pontianak\"},\n {value: \"Asia/Pyongyang\", label: \"Asia/Pyongyang\"},\n {value: \"Asia/Qatar\", label: \"Asia/Qatar\"},\n {value: \"Asia/Qyzylorda\", label: \"Asia/Qyzylorda\"},\n {value: \"Asia/Rangoon\", label: \"Asia/Rangoon\"},\n {value: \"Asia/Riyadh\", label: \"Asia/Riyadh\"},\n {value: \"Asia/Saigon\", label: \"Asia/Saigon\"},\n {value: \"Asia/Sakhalin\", label: \"Asia/Sakhalin\"},\n {value: \"Asia/Samarkand\", label: \"Asia/Samarkand\"},\n {value: \"Asia/Seoul\", label: \"Asia/Seoul\"},\n {value: \"Asia/Shanghai\", label: \"Asia/Shanghai\"},\n {value: \"Asia/Singapore\", label: \"Asia/Singapore\"},\n {value: \"Asia/Srednekolymsk\", label: \"Asia/Srednekolymsk\"},\n {value: \"Asia/Taipei\", label: \"Asia/Taipei\"},\n {value: \"Asia/Tashkent\", label: \"Asia/Tashkent\"},\n {value: \"Asia/Tbilisi\", label: \"Asia/Tbilisi\"},\n {value: \"Asia/Tehran\", label: \"Asia/Tehran\"},\n {value: \"Asia/Tel_Aviv\", label: \"Asia/Tel_Aviv\"},\n {value: \"Asia/Thimbu\", label: \"Asia/Thimbu\"},\n {value: \"Asia/Thimphu\", label: \"Asia/Thimphu\"},\n {value: \"Asia/Tokyo\", label: \"Asia/Tokyo\"},\n {value: \"Asia/Tomsk\", label: \"Asia/Tomsk\"},\n {value: \"Asia/Ujung_Pandang\", label: \"Asia/Ujung_Pandang\"},\n {value: \"Asia/Ulaanbaatar\", label: \"Asia/Ulaanbaatar\"},\n {value: \"Asia/Ulan_Bator\", label: \"Asia/Ulan_Bator\"},\n {value: \"Asia/Urumqi\", label: \"Asia/Urumqi\"},\n {value: \"Asia/Ust-Nera\", label: \"Asia/Ust-Nera\"},\n {value: \"Asia/Vientiane\", label: \"Asia/Vientiane\"},\n {value: \"Asia/Vladivostok\", label: \"Asia/Vladivostok\"},\n {value: \"Asia/Yakutsk\", label: \"Asia/Yakutsk\"},\n {value: \"Asia/Yangon\", label: \"Asia/Yangon\"},\n {value: \"Asia/Yekaterinburg\", label: \"Asia/Yekaterinburg\"},\n {value: \"Asia/Yerevan\", label: \"Asia/Yerevan\"},\n {value: \"Atlantic/Azores\", label: \"Atlantic/Azores\"},\n {value: \"Atlantic/Bermuda\", label: \"Atlantic/Bermuda\"},\n {value: \"Atlantic/Canary\", label: \"Atlantic/Canary\"},\n {value: \"Atlantic/Cape_Verde\", label: \"Atlantic/Cape_Verde\"},\n {value: \"Atlantic/Faeroe\", label: \"Atlantic/Faeroe\"},\n {value: \"Atlantic/Faroe\", label: \"Atlantic/Faroe\"},\n {value: \"Atlantic/Jan_Mayen\", label: \"Atlantic/Jan_Mayen\"},\n {value: \"Atlantic/Madeira\", label: \"Atlantic/Madeira\"},\n {value: \"Atlantic/Reykjavik\", label: \"Atlantic/Reykjavik\"},\n {value: \"Atlantic/South_Georgia\", label: \"Atlantic/South_Georgia\"},\n {value: \"Atlantic/St_Helena\", label: \"Atlantic/St_Helena\"},\n {value: \"Atlantic/Stanley\", label: \"Atlantic/Stanley\"},\n {value: \"Australia/ACT\", label: \"Australia/ACT\"},\n {value: \"Australia/Adelaide\", label: \"Australia/Adelaide\"},\n {value: \"Australia/Brisbane\", label: \"Australia/Brisbane\"},\n {value: \"Australia/Broken_Hill\", label: \"Australia/Broken_Hill\"},\n {value: \"Australia/Canberra\", label: \"Australia/Canberra\"},\n {value: \"Australia/Currie\", label: \"Australia/Currie\"},\n {value: \"Australia/Darwin\", label: \"Australia/Darwin\"},\n {value: \"Australia/Eucla\", label: \"Australia/Eucla\"},\n {value: \"Australia/Hobart\", label: \"Australia/Hobart\"},\n {value: \"Australia/LHI\", label: \"Australia/LHI\"},\n {value: \"Australia/Lindeman\", label: \"Australia/Lindeman\"},\n {value: \"Australia/Lord_Howe\", label: \"Australia/Lord_Howe\"},\n {value: \"Australia/Melbourne\", label: \"Australia/Melbourne\"},\n {value: \"Australia/NSW\", label: \"Australia/NSW\"},\n {value: \"Australia/North\", label: \"Australia/North\"},\n {value: \"Australia/Perth\", label: \"Australia/Perth\"},\n {value: \"Australia/Queensland\", label: \"Australia/Queensland\"},\n {value: \"Australia/South\", label: \"Australia/South\"},\n {value: \"Australia/Sydney\", label: \"Australia/Sydney\"},\n {value: \"Australia/Tasmania\", label: \"Australia/Tasmania\"},\n {value: \"Australia/Victoria\", label: \"Australia/Victoria\"},\n {value: \"Australia/West\", label: \"Australia/West\"},\n {value: \"Australia/Yancowinna\", label: \"Australia/Yancowinna\"},\n {value: \"Brazil/Acre\", label: \"Brazil/Acre\"},\n {value: \"Brazil/DeNoronha\", label: \"Brazil/DeNoronha\"},\n {value: \"Brazil/East\", label: \"Brazil/East\"},\n {value: \"Brazil/West\", label: \"Brazil/West\"},\n {value: \"CET\", label: \"CET\"},\n {value: \"CST6CDT\", label: \"CST6CDT\"},\n {value: \"Canada/Atlantic\", label: \"Canada/Atlantic\"},\n {value: \"Canada/Central\", label: \"Canada/Central\"},\n {value: \"Canada/Eastern\", label: \"Canada/Eastern\"},\n {value: \"Canada/Mountain\", label: \"Canada/Mountain\"},\n {value: \"Canada/Newfoundland\", label: \"Canada/Newfoundland\"},\n {value: \"Canada/Pacific\", label: \"Canada/Pacific\"},\n {value: \"Canada/Saskatchewan\", label: \"Canada/Saskatchewan\"},\n {value: \"Canada/Yukon\", label: \"Canada/Yukon\"},\n {value: \"Chile/Continental\", label: \"Chile/Continental\"},\n {value: \"Chile/EasterIsland\", label: \"Chile/EasterIsland\"},\n {value: \"Cuba\", label: \"Cuba\"},\n {value: \"EET\", label: \"EET\"},\n {value: \"EST\", label: \"EST\"},\n {value: \"EST5EDT\", label: \"EST5EDT\"},\n {value: \"Egypt\", label: \"Egypt\"},\n {value: \"Eire\", label: \"Eire\"},\n {value: \"Etc/GMT\", label: \"Etc/GMT\"},\n {value: \"Etc/GMT+0\", label: \"Etc/GMT+0\"},\n {value: \"Etc/GMT+1\", label: \"Etc/GMT+1\"},\n {value: \"Etc/GMT+10\", label: \"Etc/GMT+10\"},\n {value: \"Etc/GMT+11\", label: \"Etc/GMT+11\"},\n {value: \"Etc/GMT+12\", label: \"Etc/GMT+12\"},\n {value: \"Etc/GMT+2\", label: \"Etc/GMT+2\"},\n {value: \"Etc/GMT+3\", label: \"Etc/GMT+3\"},\n {value: \"Etc/GMT+4\", label: \"Etc/GMT+4\"},\n {value: \"Etc/GMT+5\", label: \"Etc/GMT+5\"},\n {value: \"Etc/GMT+6\", label: \"Etc/GMT+6\"},\n {value: \"Etc/GMT+7\", label: \"Etc/GMT+7\"},\n {value: \"Etc/GMT+8\", label: \"Etc/GMT+8\"},\n {value: \"Etc/GMT+9\", label: \"Etc/GMT+9\"},\n {value: \"Etc/GMT-0\", label: \"Etc/GMT-0\"},\n {value: \"Etc/GMT-1\", label: \"Etc/GMT-1\"},\n {value: \"Etc/GMT-10\", label: \"Etc/GMT-10\"},\n {value: \"Etc/GMT-11\", label: \"Etc/GMT-11\"},\n {value: \"Etc/GMT-12\", label: \"Etc/GMT-12\"},\n {value: \"Etc/GMT-13\", label: \"Etc/GMT-13\"},\n {value: \"Etc/GMT-14\", label: \"Etc/GMT-14\"},\n {value: \"Etc/GMT-2\", label: \"Etc/GMT-2\"},\n {value: \"Etc/GMT-3\", label: \"Etc/GMT-3\"},\n {value: \"Etc/GMT-4\", label: \"Etc/GMT-4\"},\n {value: \"Etc/GMT-5\", label: \"Etc/GMT-5\"},\n {value: \"Etc/GMT-6\", label: \"Etc/GMT-6\"},\n {value: \"Etc/GMT-7\", label: \"Etc/GMT-7\"},\n {value: \"Etc/GMT-8\", label: \"Etc/GMT-8\"},\n {value: \"Etc/GMT-9\", label: \"Etc/GMT-9\"},\n {value: \"Etc/GMT0\", label: \"Etc/GMT0\"},\n {value: \"Etc/Greenwich\", label: \"Etc/Greenwich\"},\n {value: \"Etc/UCT\", label: \"Etc/UCT\"},\n {value: \"Etc/UTC\", label: \"Etc/UTC\"},\n {value: \"Etc/Universal\", label: \"Etc/Universal\"},\n {value: \"Etc/Zulu\", label: \"Etc/Zulu\"},\n {value: \"Europe/Amsterdam\", label: \"Europe/Amsterdam\"},\n {value: \"Europe/Andorra\", label: \"Europe/Andorra\"},\n {value: \"Europe/Astrakhan\", label: \"Europe/Astrakhan\"},\n {value: \"Europe/Athens\", label: \"Europe/Athens\"},\n {value: \"Europe/Belfast\", label: \"Europe/Belfast\"},\n {value: \"Europe/Belgrade\", label: \"Europe/Belgrade\"},\n {value: \"Europe/Berlin\", label: \"Europe/Berlin\"},\n {value: \"Europe/Bratislava\", label: \"Europe/Bratislava\"},\n {value: \"Europe/Brussels\", label: \"Europe/Brussels\"},\n {value: \"Europe/Bucharest\", label: \"Europe/Bucharest\"},\n {value: \"Europe/Budapest\", label: \"Europe/Budapest\"},\n {value: \"Europe/Busingen\", label: \"Europe/Busingen\"},\n {value: \"Europe/Chisinau\", label: \"Europe/Chisinau\"},\n {value: \"Europe/Copenhagen\", label: \"Europe/Copenhagen\"},\n {value: \"Europe/Dublin\", label: \"Europe/Dublin\"},\n {value: \"Europe/Gibraltar\", label: \"Europe/Gibraltar\"},\n {value: \"Europe/Guernsey\", label: \"Europe/Guernsey\"},\n {value: \"Europe/Helsinki\", label: \"Europe/Helsinki\"},\n {value: \"Europe/Isle_of_Man\", label: \"Europe/Isle_of_Man\"},\n {value: \"Europe/Istanbul\", label: \"Europe/Istanbul\"},\n {value: \"Europe/Jersey\", label: \"Europe/Jersey\"},\n {value: \"Europe/Kaliningrad\", label: \"Europe/Kaliningrad\"},\n {value: \"Europe/Kiev\", label: \"Europe/Kiev\"},\n {value: \"Europe/Kirov\", label: \"Europe/Kirov\"},\n {value: \"Europe/Lisbon\", label: \"Europe/Lisbon\"},\n {value: \"Europe/Ljubljana\", label: \"Europe/Ljubljana\"},\n {value: \"Europe/London\", label: \"Europe/London\"},\n {value: \"Europe/Luxembourg\", label: \"Europe/Luxembourg\"},\n {value: \"Europe/Madrid\", label: \"Europe/Madrid\"},\n {value: \"Europe/Malta\", label: \"Europe/Malta\"},\n {value: \"Europe/Mariehamn\", label: \"Europe/Mariehamn\"},\n {value: \"Europe/Minsk\", label: \"Europe/Minsk\"},\n {value: \"Europe/Monaco\", label: \"Europe/Monaco\"},\n {value: \"Europe/Moscow\", label: \"Europe/Moscow\"},\n {value: \"Europe/Nicosia\", label: \"Europe/Nicosia\"},\n {value: \"Europe/Oslo\", label: \"Europe/Oslo\"},\n {value: \"Europe/Paris\", label: \"Europe/Paris\"},\n {value: \"Europe/Podgorica\", label: \"Europe/Podgorica\"},\n {value: \"Europe/Prague\", label: \"Europe/Prague\"},\n {value: \"Europe/Riga\", label: \"Europe/Riga\"},\n {value: \"Europe/Rome\", label: \"Europe/Rome\"},\n {value: \"Europe/Samara\", label: \"Europe/Samara\"},\n {value: \"Europe/San_Marino\", label: \"Europe/San_Marino\"},\n {value: \"Europe/Sarajevo\", label: \"Europe/Sarajevo\"},\n {value: \"Europe/Saratov\", label: \"Europe/Saratov\"},\n {value: \"Europe/Simferopol\", label: \"Europe/Simferopol\"},\n {value: \"Europe/Skopje\", label: \"Europe/Skopje\"},\n {value: \"Europe/Sofia\", label: \"Europe/Sofia\"},\n {value: \"Europe/Stockholm\", label: \"Europe/Stockholm\"},\n {value: \"Europe/Tallinn\", label: \"Europe/Tallinn\"},\n {value: \"Europe/Tirane\", label: \"Europe/Tirane\"},\n {value: \"Europe/Tiraspol\", label: \"Europe/Tiraspol\"},\n {value: \"Europe/Ulyanovsk\", label: \"Europe/Ulyanovsk\"},\n {value: \"Europe/Uzhgorod\", label: \"Europe/Uzhgorod\"},\n {value: \"Europe/Vaduz\", label: \"Europe/Vaduz\"},\n {value: \"Europe/Vatican\", label: \"Europe/Vatican\"},\n {value: \"Europe/Vienna\", label: \"Europe/Vienna\"},\n {value: \"Europe/Vilnius\", label: \"Europe/Vilnius\"},\n {value: \"Europe/Volgograd\", label: \"Europe/Volgograd\"},\n {value: \"Europe/Warsaw\", label: \"Europe/Warsaw\"},\n {value: \"Europe/Zagreb\", label: \"Europe/Zagreb\"},\n {value: \"Europe/Zaporozhye\", label: \"Europe/Zaporozhye\"},\n {value: \"Europe/Zurich\", label: \"Europe/Zurich\"},\n {value: \"GB\", label: \"GB\"},\n {value: \"GB-Eire\", label: \"GB-Eire\"},\n {value: \"GMT\", label: \"GMT\"},\n {value: \"GMT+0\", label: \"GMT+0\"},\n {value: \"GMT-0\", label: \"GMT-0\"},\n {value: \"GMT0\", label: \"GMT0\"},\n {value: \"Greenwich\", label: \"Greenwich\"},\n {value: \"HST\", label: \"HST\"},\n {value: \"Hongkong\", label: \"Hongkong\"},\n {value: \"Iceland\", label: \"Iceland\"},\n {value: \"Indian/Antananarivo\", label: \"Indian/Antananarivo\"},\n {value: \"Indian/Chagos\", label: \"Indian/Chagos\"},\n {value: \"Indian/Christmas\", label: \"Indian/Christmas\"},\n {value: \"Indian/Cocos\", label: \"Indian/Cocos\"},\n {value: \"Indian/Comoro\", label: \"Indian/Comoro\"},\n {value: \"Indian/Kerguelen\", label: \"Indian/Kerguelen\"},\n {value: \"Indian/Mahe\", label: \"Indian/Mahe\"},\n {value: \"Indian/Maldives\", label: \"Indian/Maldives\"},\n {value: \"Indian/Mauritius\", label: \"Indian/Mauritius\"},\n {value: \"Indian/Mayotte\", label: \"Indian/Mayotte\"},\n {value: \"Indian/Reunion\", label: \"Indian/Reunion\"},\n {value: \"Iran\", label: \"Iran\"},\n {value: \"Israel\", label: \"Israel\"},\n {value: \"Jamaica\", label: \"Jamaica\"},\n {value: \"Japan\", label: \"Japan\"},\n {value: \"Kwajalein\", label: \"Kwajalein\"},\n {value: \"Libya\", label: \"Libya\"},\n {value: \"MET\", label: \"MET\"},\n {value: \"MST\", label: \"MST\"},\n {value: \"MST7MDT\", label: \"MST7MDT\"},\n {value: \"Mexico/BajaNorte\", label: \"Mexico/BajaNorte\"},\n {value: \"Mexico/BajaSur\", label: \"Mexico/BajaSur\"},\n {value: \"Mexico/General\", label: \"Mexico/General\"},\n {value: \"NZ\", label: \"NZ\"},\n {value: \"NZ-CHAT\", label: \"NZ-CHAT\"},\n {value: \"Navajo\", label: \"Navajo\"},\n {value: \"PRC\", label: \"PRC\"},\n {value: \"PST8PDT\", label: \"PST8PDT\"},\n {value: \"Pacific/Apia\", label: \"Pacific/Apia\"},\n {value: \"Pacific/Auckland\", label: \"Pacific/Auckland\"},\n {value: \"Pacific/Bougainville\", label: \"Pacific/Bougainville\"},\n {value: \"Pacific/Chatham\", label: \"Pacific/Chatham\"},\n {value: \"Pacific/Chuuk\", label: \"Pacific/Chuuk\"},\n {value: \"Pacific/Easter\", label: \"Pacific/Easter\"},\n {value: \"Pacific/Efate\", label: \"Pacific/Efate\"},\n {value: \"Pacific/Enderbury\", label: \"Pacific/Enderbury\"},\n {value: \"Pacific/Fakaofo\", label: \"Pacific/Fakaofo\"},\n {value: \"Pacific/Fiji\", label: \"Pacific/Fiji\"},\n {value: \"Pacific/Funafuti\", label: \"Pacific/Funafuti\"},\n {value: \"Pacific/Galapagos\", label: \"Pacific/Galapagos\"},\n {value: \"Pacific/Gambier\", label: \"Pacific/Gambier\"},\n {value: \"Pacific/Guadalcanal\", label: \"Pacific/Guadalcanal\"},\n {value: \"Pacific/Guam\", label: \"Pacific/Guam\"},\n {value: \"Pacific/Honolulu\", label: \"Pacific/Honolulu\"},\n {value: \"Pacific/Johnston\", label: \"Pacific/Johnston\"},\n {value: \"Pacific/Kiritimati\", label: \"Pacific/Kiritimati\"},\n {value: \"Pacific/Kosrae\", label: \"Pacific/Kosrae\"},\n {value: \"Pacific/Kwajalein\", label: \"Pacific/Kwajalein\"},\n {value: \"Pacific/Majuro\", label: \"Pacific/Majuro\"},\n {value: \"Pacific/Marquesas\", label: \"Pacific/Marquesas\"},\n {value: \"Pacific/Midway\", label: \"Pacific/Midway\"},\n {value: \"Pacific/Nauru\", label: \"Pacific/Nauru\"},\n {value: \"Pacific/Niue\", label: \"Pacific/Niue\"},\n {value: \"Pacific/Norfolk\", label: \"Pacific/Norfolk\"},\n {value: \"Pacific/Noumea\", label: \"Pacific/Noumea\"},\n {value: \"Pacific/Pago_Pago\", label: \"Pacific/Pago_Pago\"},\n {value: \"Pacific/Palau\", label: \"Pacific/Palau\"},\n {value: \"Pacific/Pitcairn\", label: \"Pacific/Pitcairn\"},\n {value: \"Pacific/Pohnpei\", label: \"Pacific/Pohnpei\"},\n {value: \"Pacific/Ponape\", label: \"Pacific/Ponape\"},\n {value: \"Pacific/Port_Moresby\", label: \"Pacific/Port_Moresby\"},\n {value: \"Pacific/Rarotonga\", label: \"Pacific/Rarotonga\"},\n {value: \"Pacific/Saipan\", label: \"Pacific/Saipan\"},\n {value: \"Pacific/Samoa\", label: \"Pacific/Samoa\"},\n {value: \"Pacific/Tahiti\", label: \"Pacific/Tahiti\"},\n {value: \"Pacific/Tarawa\", label: \"Pacific/Tarawa\"},\n {value: \"Pacific/Tongatapu\", label: \"Pacific/Tongatapu\"},\n {value: \"Pacific/Truk\", label: \"Pacific/Truk\"},\n {value: \"Pacific/Wake\", label: \"Pacific/Wake\"},\n {value: \"Pacific/Wallis\", label: \"Pacific/Wallis\"},\n {value: \"Pacific/Yap\", label: \"Pacific/Yap\"},\n {value: \"Poland\", label: \"Poland\"},\n {value: \"Portugal\", label: \"Portugal\"},\n {value: \"ROC\", label: \"ROC\"},\n {value: \"ROK\", label: \"ROK\"},\n {value: \"Singapore\", label: \"Singapore\"},\n {value: \"Turkey\", label: \"Turkey\"},\n {value: \"UCT\", label: \"UCT\"},\n {value: \"US/Alaska\", label: \"US/Alaska\"},\n {value: \"US/Aleutian\", label: \"US/Aleutian\"},\n {value: \"US/Arizona\", label: \"US/Arizona\"},\n {value: \"US/Central\", label: \"US/Central\"},\n {value: \"US/East-Indiana\", label: \"US/East-Indiana\"},\n {value: \"US/Eastern\", label: \"US/Eastern\"},\n {value: \"US/Hawaii\", label: \"US/Hawaii\"},\n {value: \"US/Indiana-Starke\", label: \"US/Indiana-Starke\"},\n {value: \"US/Michigan\", label: \"US/Michigan\"},\n {value: \"US/Mountain\", label: \"US/Mountain\"},\n {value: \"US/Pacific\", label: \"US/Pacific\"},\n {value: \"US/Pacific-New\", label: \"US/Pacific-New\"},\n {value: \"US/Samoa\", label: \"US/Samoa\"},\n {value: \"UTC\", label: \"UTC\"},\n {value: \"Universal\", label: \"Universal\"},\n {value: \"W-SU\", label: \"W-SU\"},\n {value: \"WET\", label: \"WET\"},\n {value: \"Zulu\", label: \"Zulu\"}\n ];\n return arr;\n}\nexport default TimeZones;","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { getI18n } from \"react-i18next\";\n\nconst getLabel = (label) => {\n if (label !== \"\") {\n return (\n \n );\n }\n};\n\nconst getKeyAgainstLanguage = () => {\n const lang = getI18n();\n return lang.language == \"en\" ? \"en\" : \"ar\";\n}\n\n\nconst SelectMultiLingualInput = (props) => {\n const mandatoryLabel = getLabel(props.label);\n return (\n <>\n {mandatoryLabel}\n props.handleChange(props.keyVal, e.target.value)}\n value= {props.value ? props.value : null}\n >\n \n {props.options.map((option) => (\n \n ))}\n \n \n );\n};\n\nSelectMultiLingualInput.propTypes = {\n keyVal: PropTypes.string,\n label: PropTypes.string,\n styleClass: PropTypes.string,\n options: PropTypes.array,\n handleChange: PropTypes.func,\n value:PropTypes.string,\n defaultSelection: PropTypes.string,\n};\nexport default SelectMultiLingualInput;\n","import React from \"react\";\nimport SectionHeading from \"../../../components/SectionHeading\";\nimport TextInput from \"../../../components/TextInput\";\nimport PropTypes from \"prop-types\";\nimport { CONSTANTS as C } from \"config\";\nimport { Button, notification } from \"antd\";\nimport TextArea from \"components/TextArea\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport PhoneNumberInput from \"components/PhoneNumberInput\";\nimport SelectInput from \"components/SelectInput\";\nimport TimeZones from \"../timezone\";\nimport { useTranslation } from \"react-i18next\";\nimport SelectMultiLingualInput from \"components/SelectMultiLingualInput\";\nimport { isValidValue } from \"utils/Utils\";\nimport { STOTE_UTILS } from \"utils\";\n\nconst StoreInfoSection = (props) => {\n const { t } = useTranslation();\n\n const cititesList = [\n { value: \"dubai\", label: { en: \"dubai\", ar: \"دبي\" } },\n { value: \"abu dhabi\", label: { en: \"abu dhabi\", ar: \"أبو ظبي\" } },\n { value: \"sharjah\", label: { en: \"sharjah\", ar: \"الشارقة\" } },\n { value: \"al ain\", label: { en: \"al ain\", ar: \"العين\" } },\n { value: \"ajman\", label: { en: \"ajman\", ar: \"عجمان\" } },\n {\n value: \"ras al khaimah\",\n label: { en: \"ras al Khaimah\", ar: \"رأس الخيمة\" },\n },\n { value: \"fujairah\", label: { en: \"fujairah\", ar: \"الفجيرة\" } },\n {\n value: \"umm al-quwain\",\n label: { en: \"umm al-quwain\", ar: \"ام القيوين\" },\n },\n ];\n\n const timeZones = TimeZones();\n\n const getValue = (key) => {\n // if (props.store && props.store.values[key]) return props.store.values[key];\n // else return \"\";\n if (isValidValue(props.store.values[key])) return props.store.values[key];\n else return \"\";\n };\n\n const handleValues = (key, val) => {\n props.handleValues(key, val);\n };\n\n const updatePrice = (key, val) => {\n const value = UTILS.NumberConversion(val, C.MOBILE_ARABIC_REGEX);\n handleValues(key, value);\n };\n\n const handleSubmit = () => {\n let objValid = STOTE_UTILS.VALIDATE_INPUTS_STEP1(props.store.values);\n if (objValid?.isFormValid) {\n props.setStep((step) => step + 1);\n }\n };\n const handleSuccessNotification = (placement, success, message) => {\n notification[success]({\n message: \"Success\",\n description: message,\n placement,\n });\n };\n\n const handleErrorNotification = (placement, error, message) => {\n notification[error]({\n message: \"Error\",\n description: message,\n placement,\n });\n };\n\n const uploadFile = async (files) => {\n props.handleValues(C.KEY_IMAGE_URL, \"\");\n if (files.length >= 1) {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.UPLOAD_FILE({\n image: files[0],\n token: userDetail.token,\n });\n\n if (result.success === 1) {\n handleSuccessNotification(\n \"topRight\",\n \"success\",\n t(\"File Uploaded Succesfully\")\n );\n props.handleValues(C.KEY_IMAGE_URL, result.data.url);\n } else {\n handleErrorNotification(\"topRight\", \"success\", result.message);\n }\n }\n };\n\n return (\n \n
\n \n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n \n \n {\" \"}\n {t(props.store.errors.city)}{\" \"}\n \n
\n\n
\n \n \n \n {\" \"}\n {t(props.store.errors.timeZone)}{\" \"}\n \n
\n\n
\n

\n {t(\"Tax Settings for Ordering\")}\n

\n
\n \n
\n
\n
\n
\n
\n
\n
\n {props.type === \"create\" ? (\n \n {t(\"Next\")}\n \n ) : null}\n
\n
\n
\n );\n};\n\nStoreInfoSection.propTypes = {\n store: PropTypes.object,\n handleValues: PropTypes.func,\n};\n\nexport default StoreInfoSection;\n","import { CONSTANTS as C } from \"config\";\nimport { UTILS } from \"utils\";\nimport { isValidValue } from \"utils/Utils\";\nimport i18next from \"i18next\";\n\nexport const isAllowedToShowShippingMethod = (method, CatalogueType) => {\n if (CatalogueType === C.OUTLET_BASED) {\n if (\n method === C.SHIPPING_METHODS.CITY_BASED ||\n method === C.SHIPPING_METHODS.COUNTRY_BASED\n )\n return true;\n else return false;\n } else return false;\n};\n\nexport const isValidInputFields = ({ state, selectedAreas }) => {\n if (!isValidValue(state?.minOrder)) {\n return {\n isValid: false,\n error: i18next.t(\"Please enter minimum order amount\"),\n };\n }\n if (!isValidValue(state?.deliveryFee)) {\n return {\n isValid: false,\n error: i18next.t(\"Please enter delivery fee\"),\n };\n }\n if (selectedAreas <= 0) {\n return {\n isValid: false,\n error: i18next.t(\"Please select at least one area\"),\n };\n }\n if (\n state.deliveryTime?.Days === 0 &&\n state.deliveryTime?.Hours === 0 &&\n state.deliveryTime?.Minutes === 0\n ) {\n return {\n isValid: false,\n error: i18next.t(\"Please choose delivery time\"),\n };\n }\n return {\n isValid: true,\n };\n};\n\n//getFilteredAreasList : returns all added+not added areas and add a custom property \"isAdded\" to each area\n//@ params: areaData, addedAreas\n//areasData: all business areas\n//addedAreas: all added areas\n\nexport const handleAddIsAddedPropToBuisnessAreas = (\n areasData,\n alreadyAddedAreas\n) => {\n console.log({ alreadyAddedAreas, areasData });\n const filteredArray = [];\n\n if (areasData) {\n areasData?.forEach((country) => {\n const countryCities = country?.cities?.map((city) => {\n const cityAreas = city?.areas?.map((area) => {\n const isAdded = alreadyAddedAreas?.some(\n (addedArea) => addedArea?.mappedAreaInfo?.mappedAreaId === area._id\n );\n\n return {\n ...area,\n isAdded,\n };\n });\n\n return {\n ...city,\n\n areas: cityAreas,\n };\n });\n\n filteredArray.push({\n ...country,\n cities: countryCities,\n });\n });\n return filteredArray;\n }\n};\n\nexport const calculateDeliveryTimeInMins = ({ deliveryTime }) => {\n let delTime =\n deliveryTime.Days * 1440 + deliveryTime.Hours * 60 + deliveryTime.Minutes;\n return delTime;\n};\n\nexport const isValidDrawAreInputFields = ({\n areaState,\n selectedCity,\n selectedCountry,\n selectedStore,\n}) => {\n if (!isValidValue(areaState?.minOrder)) {\n UTILS.errorNotification(\"Please enter minimum order amount\");\n return {\n isValid: false,\n error: \"Please enter minimum order amount\",\n };\n }\n if (!isValidValue(areaState?.deliveryFee)) {\n UTILS.errorNotification(\"Please enter delivery fee\");\n return {\n isValid: false,\n error: \"Please enter delivery fee\",\n };\n }\n if (\n areaState.deliveryTime?.Days === 0 &&\n areaState.deliveryTime?.Hours === 0 &&\n areaState.deliveryTime?.Minutes === 0\n ) {\n UTILS.errorNotification(\"Please choose delivery time\");\n return {\n isValid: false,\n error: \"Please choose delivery time\",\n };\n }\n if (!isValidValue(selectedStore?.value)) {\n UTILS.errorNotification(\"Please select store\");\n return {\n isValid: false,\n error: \"Please select store\",\n };\n }\n if (!selectedCountry) {\n UTILS.errorNotification(\"Please select country\");\n return {\n isValid: false,\n error: \"Please select country\",\n };\n }\n if (!selectedCity) {\n UTILS.errorNotification(\"Please select city\");\n return {\n isValid: false,\n error: \"Please select city\",\n };\n }\n\n return {\n isValid: true,\n };\n};\n\nexport function convertPolygonArrayToObject(areas) {\n const polygonsObject = areas\n .filter(\n (store) =>\n store?.mappedAreaInfo?.mappedAreaId?.polygon?.coordinates?.length > 0\n )\n .map((area) => {\n const coordinates =\n area?.mappedAreaInfo?.mappedAreaId?.polygon?.coordinates?.[0];\n return coordinates\n ? convertSinglePolygonToObjectArray(coordinates, area)\n : null;\n })\n .filter(Boolean);\n\n return polygonsObject;\n}\n\nfunction convertSinglePolygonToObjectArray(coordinates, area) {\n return {\n areaInfo: area.mappedAreaInfo,\n coordinates: coordinates.map(([lng, lat]) => ({ lat, lng })),\n };\n}\n\nexport const isValidUpdateInputFields = ({ state, storeID }) => {\n if (!UTILS?.isValidValue(state?.minOrder)) {\n UTILS.errorNotification(\"Please enter minimum order amount\");\n return {\n isValid: false,\n error: \"Please enter minimum order amount\",\n };\n }\n if (!UTILS?.isValidValue(state?.deliveryFee)) {\n UTILS.errorNotification(\"Please enter delivery fee\");\n return {\n isValid: false,\n error: \"Please enter delivery fee\",\n };\n }\n\n if (\n state.deliveryTime?.Days === 0 &&\n state.deliveryTime?.Hours === 0 &&\n state.deliveryTime?.Minutes === 0\n ) {\n UTILS.errorNotification(\"Please choose delivery time\");\n return {\n isValid: false,\n error: \"Please choose delivery time\",\n };\n }\n if (!UTILS?.isValidValue(storeID)) {\n UTILS.errorNotification(\"Please select store\");\n return {\n isValid: false,\n error: \"Please select store\",\n };\n }\n return {\n isValid: true,\n };\n};\n\nexport const libraries = [\"geometry\", \"places\", \"drawing\"];\n","import React, { useCallback, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport PlacesAutocomplete, {\n geocodeByAddress,\n getLatLng,\n} from \"react-places-autocomplete\";\nimport { useTranslation } from \"react-i18next\";\nimport { CONSTANTS as C } from \"config\";\nimport { errorNotification } from \"utils/Utils\";\n\nimport {\n GoogleMap as MapGoogle,\n useJsApiLoader,\n Marker,\n} from \"@react-google-maps/api\";\nimport { libraries } from \"features/shipping_methods/helpers\";\nconst MyMap = (props) => {\n const mapref = useRef(null);\n const { t } = useTranslation();\n\n const handleChange = (address) => props.handleValues(\"mapAddress\", address);\n\n const handleSelect = (address) => {\n props.handleValues(\"mapAddress\", address);\n geocodeByAddress(address)\n .then((results) => getLatLng(results[0]))\n .then((latLng) => {\n props.handleValues(\"latlng\", latLng);\n updateZoom(21);\n })\n .catch((error) => console.error(\"Error\", error));\n };\n\n const onIdle = () => {\n if (mapref?.current) {\n const lat = mapref.current.center.lat();\n const lng = mapref.current.center.lng();\n const mapCenter = {\n lat: lat,\n lng: lng,\n };\n\n updateStreetAddress(mapCenter);\n props.handleValues(\"latlng\", mapCenter);\n }\n };\n function locateMe() {\n props.setLoading(true);\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(showPosition, errorFn);\n } else {\n props.setLoading(false);\n errorNotification(\"Geolocation is not supported by this browser.\");\n }\n }\n\n function showPosition(position) {\n props.setLoading(false);\n var lat = position.coords.latitude;\n var lng = position.coords.longitude;\n const latLng = {\n lat,\n lng,\n };\n props.handleValues(\"latlng\", latLng);\n updateStreetAddress(latLng);\n updateZoom(21);\n }\n\n function errorFn(error) {\n props.setLoading(false);\n switch (error.code) {\n case error.PERMISSION_DENIED:\n errorNotification(\n \"User denied the request for Geolocation.Please Enable location from settings\"\n );\n break;\n case error.POSITION_UNAVAILABLE:\n errorNotification(\"Location information is unavailable.\");\n break;\n case error.TIMEOUT:\n errorNotification(\"The request to get user location timed out.\");\n break;\n case error.UNKNOWN_ERROR:\n errorNotification(\n \"An unknown error occurred while accessing current location.\"\n );\n break;\n default:\n errorNotification(\n \"An unknown error occurred while accessing current location.\"\n );\n break;\n }\n }\n\n const updateStreetAddress = (mapCenter) => {\n var geocoder = new window.google.maps.Geocoder();\n geocoder.geocode({ latLng: mapCenter }, function (results, status) {\n if (status === window.google.maps.GeocoderStatus.OK) {\n if (results[0]) {\n props.handleValues(\"mapAddress\", results[0].formatted_address);\n }\n }\n });\n };\n\n const updateZoom = (z) => {\n props.setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.ZOOM]: z,\n },\n errors: {\n ...prevState.errors,\n [C.ZOOM]: \"\",\n },\n }));\n };\n const changezoom = () => {\n if (mapref?.current?.map && props.state) {\n const latlng = {\n lat: mapref?.current?.map.center.lat(),\n lng: mapref?.current?.map.center.lng(),\n };\n let l = mapref.current.map.getCenter();\n let no = {\n lat: l.lat(),\n lng: l.lng(),\n };\n\n let z = mapref.current.map.zoom;\n updateZoom(z);\n }\n };\n const handleOnLoad = (map) => (mapref.current = map);\n\n const onUnmount = useCallback(() => {\n console.log(\"unmount\");\n mapref.current = null;\n }, []);\n\n const { isLoaded } = useJsApiLoader({\n id: \"script-loader\",\n googleMapsApiKey: process.env.REACT_APP_GOOGLE_MAPS_API_KEY,\n language: \"en\",\n region: \"us\",\n libraries: libraries,\n });\n\n return (\n <>\n {isLoaded ? (\n
\n
\n \n
\n \n {({\n getInputProps,\n suggestions,\n getSuggestionItemProps,\n loading,\n }) => (\n
\n <>\n
\n \n
\n \n \n \n \n
\n
\n \n\n \n {loading &&
Loading...
}\n {suggestions.map((suggestion, key) => {\n const className = suggestion.active\n ? \"suggestion-item--active\"\n : \"suggestion-item\";\n // inline style for demonstration purpose\n const style = suggestion.active\n ? { backgroundColor: \"#fafafa\", cursor: \"pointer\" }\n : { backgroundColor: \"#ffffff\", cursor: \"pointer\" };\n return (\n \n {suggestion?.description}\n
\n );\n })}\n
\n
\n )}\n \n
\n \n \n \n
\n
\n \n \n \n ) : (\n
loading...
\n )}\n \n );\n};\n\nMyMap.propTypes = {\n google: PropTypes.number,\n key: PropTypes.string,\n handleValues: PropTypes.func,\n width: PropTypes.string,\n height: PropTypes.string,\n state: PropTypes.object,\n store: PropTypes.object,\n};\n\nexport default MyMap;\n","import React, { useState } from \"react\";\nimport TextInput from \"../../../components/TextInput\";\nimport SectionHeading from \"../../../components/SectionHeading\";\nimport PropTypes from \"prop-types\";\nimport { Button, Spin } from \"antd\";\nimport { CONSTANTS as C } from \"config\";\nimport GoogleMap from \"components/GoogleMap\";\nimport { useTranslation } from \"react-i18next\";\nimport { STOTE_UTILS } from \"utils\";\n\nconst StoreMapSection = (props) => {\n const { t } = useTranslation();\n const [loading, setLoading] = useState(false);\n const handleSubmit = () => {\n let objValid = STOTE_UTILS.VALIDATE_INPUTS_STEP2(props.store.values);\n\n if (objValid.isFormValid) {\n props.setStep((step) => step + 1);\n }\n };\n\n return (\n \n \n \n \n
\n \n
\n
\n \n
\n \n
\n {props.type === \"create\" ? (\n \n {t(\"Next\")}\n \n ) : null}\n
\n
\n
\n );\n};\nStoreMapSection.propTypes = {\n store: PropTypes.object,\n handleValues: PropTypes.func,\n};\nexport default StoreMapSection;\n","import React, { useEffect, useState } from \"react\";\nimport SectionHeading from \"../../../components/SectionHeading\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport PropTypes from \"prop-types\";\nimport { CONSTANTS as C } from \"config\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { getI18n, useTranslation } from \"react-i18next\";\nimport Modal from \"components/Modal\";\nimport { Spin } from \"antd\";\n\nconst StorePaymentMethodSection = (props) => {\n const [paymentTypes, setPaymentTypes] = useState([]);\n const [loading, setLoading] = useState(false);\n const [open, setOpen] = useState(false);\n const { t } = useTranslation();\n const getPaymentTypes = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_PAYMENT_TYPES({\n token: userDetail.token,\n });\n if (result && result.success === 1) setPaymentTypes(result.data);\n else {\n }\n setLoading(false);\n };\n\n useEffect(() => {\n getPaymentTypes();\n }, []);\n\n const isON = (item) => {\n const arr = props?.values[props.paymentType];\n const found = arr?.find((obj) => obj === item._id);\n return found ? true : false;\n };\n const getKeyAgainstLanguage = () => {\n const lang = getI18n();\n return lang.language == \"en\" ? \"EN\" : \"AR\";\n };\n\n const checkOnlinePaymentEnabled = async (key, val) => {\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n const result = await API.CHECK_ONLINE_PAYMENT({\n token: userDetail.token,\n });\n\n if (\n result?.success == 1 &&\n UTILS.isValidObject([\"isAvailable\"], result) &&\n result.isAvailable\n ) {\n props.handleValues(key, val);\n } else {\n setOpen(true);\n }\n setLoading(false);\n };\n\n const isPaymentTypeOnline = (key) => {\n const p = paymentTypes.find((obj) => obj._id == key);\n if (p.paymentType === C.PAYMENT_TYPE_ONLINE) return true;\n else return false;\n };\n\n const PaymentType = (item, index) => {\n return (\n \n
\n {\n if (val && isPaymentTypeOnline(key))\n checkOnlinePaymentEnabled(key, val);\n else props.handleValues(key, val);\n }}\n />\n
\n
\n );\n };\n\n return (\n <>\n
\n
\n \n \n setOpen(false)}\n >\n
\n

\n {t(\"Online Payment\")}\n

\n \n

\n {t(\"Online Payment Text\")}\n \n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n setOpen(false)}\n className=\"bg-white px-5 py-2 text-sm shadow-sm font-medium border text-gray-600 rounded-sm hover:shadow-lg hover:bg-gray-100 justify-center\"\n >\n {t(\"Ok\")}\n \n
\n
\n \n
\n {t(\n \"For receiving payments directly into your account please contact\",\n {\n email: process.env.REACT_APP_SUPPORT_EMAIL,\n }\n )}\n\n \n {t(\"Click Here\")}\n \n {t(\" to send an email\")}\n
\n
\n
\n
\n {paymentTypes &&\n paymentTypes.map((item, index) => {\n if (item.serviceType === props.serviceType)\n return PaymentType(item, index);\n })}\n
\n
\n
\n
\n
\n
\n \n );\n};\n\nStorePaymentMethodSection.propTypes = {\n store: PropTypes.object,\n handleValues: PropTypes.func,\n};\nexport default StorePaymentMethodSection;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst RadioButtonStoreTime = ({ id, handleValues, keyVal, label, value }) => {\n return (\n <>\n
\n \n
{label}
\n
\n {\n handleValues(keyVal, event.target.checked);\n }}\n checked={value}\n type=\"checkbox\"\n id={id}\n className=\"sr-only\"\n />\n
\n
\n \n \n \n \n );\n};\n\nRadioButtonStoreTime.propTypes = {\n label: PropTypes.string,\n value: PropTypes.bool,\n keyVal: PropTypes.string,\n handleValues: PropTypes.func,\n};\n\nexport default RadioButtonStoreTime;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport RadioButtonStoreTime from \"components/RadioButtonStoreTime\";\nimport moment from \"moment\";\nimport { TimePicker } from \"antd\";\n\nconst DayRow = (props) => {\n const { t } = useTranslation();\n\n const getValue = (key) => {\n if (props?.workingHours) {\n return props.workingHours[key];\n } else return \"\";\n };\n\n return (\n \n
\n \n \n
\n
\n
\n
\n \n props.handleValues(props.keyStartTime, date)\n }\n status={props.s1Error ? \"error\" : \"success\"}\n value={\n props?.workingHours\n ? moment(props.workingHours[props.keyStartTime])\n : null\n }\n style={{\n width: 120,\n }}\n allowClear={false}\n format=\"hh:mm A\"\n showNow={false}\n minuteStep={5}\n inputReadOnly={true}\n autoFocus={true}\n placeholder={t(\"Select time\")}\n />\n
\n
\n props.handleValues(props.keyEndTime, date)}\n value={\n props?.workingHours\n ? moment(props.workingHours[props.keyEndTime])\n : null\n }\n style={{\n width: 120,\n }}\n status={props.s1Error ? \"error\" : \"success\"}\n allowClear={false}\n format=\"hh:mm A\"\n use12Hours\n minuteStep={5}\n showNow={false}\n placeholder={t(\"Select time\")}\n />\n
\n\n \n \n \n \n {t(\"Add Hours\")}\n \n
\n
\n {props.s1Error}\n
\n
\n \n\n {props.showSlot2 && (\n <>\n \n \n
\n
\n
\n \n props.handleValues(props.keyStartTime2, date)\n }\n value={\n props?.workingHours[props.keyStartTime2]\n ? moment(props.workingHours[props.keyStartTime2])\n : null\n }\n style={{\n width: 120,\n }}\n allowClear={false}\n format=\"hh:mm A\"\n use12Hours\n minuteStep={5}\n showNow={false}\n placeholder={t(\"Select time\")}\n />\n
\n
\n \n props.handleValues(props.keyEndTime2, date)\n }\n value={\n props?.workingHours[props.keyEndTime2]\n ? moment(props.workingHours[props.keyEndTime2])\n : null\n }\n style={{\n width: 120,\n }}\n allowClear={false}\n format=\"hh:mm A\"\n use12Hours\n minuteStep={5}\n showNow={false}\n placeholder={t(\"Select time\")}\n />\n
\n \n \n \n \n {t(\"Remove\")}\n \n
\n\n
\n {props.s2Error}\n
\n
\n {props.overLapError}\n
\n
\n \n \n )}\n
\n );\n};\n\nexport default DayRow;\n\nDayRow.propTypes = {\n handleValues: PropTypes.func,\n keyDay: PropTypes.string,\n keyStartTime: PropTypes.string,\n keyEndTime: PropTypes.string,\n store: PropTypes.object,\n values: PropTypes.object,\n label: PropTypes.string,\n};\n","import React, { useEffect } from \"react\";\nimport SectionHeading from \"../../../components/SectionHeading\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport \"react-datepicker/dist/react-datepicker.css\";\nimport { CONSTANTS as C } from \"config\";\nimport PropTypes from \"prop-types\";\nimport DayRow from \"./DayRow\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport useCatalogue from \"hooks/useCatalogue\";\nimport { STOTE_UTILS } from \"utils\";\n\nconst StoreHoursSection = (props) => {\n const catelougeType = useCatalogue();\n\n const { t } = useTranslation();\n const [showSlot2, setShowSlot2] = React.useState({\n mondayStartTimeSlot2: false,\n tuesdayStartTimeSlot2: false,\n wednesdayStartTimeSlot2: false,\n thursdayStartTimeSlot2: false,\n fridayStartTimeSlot2: false,\n saturdayStartTimeSlot2: false,\n sundayStartTimeSlot2: false,\n });\n\n const showSlot2IfContainsValue = (key) => {\n if (props.store.values && props.store.values.workingHours) {\n if (props.store.values.workingHours[key]) {\n setShowSlot2((previous) => ({ ...previous, [key]: true }));\n }\n }\n };\n const slo2Array = [\n \"mondayStartTimeSlot2\",\n \"tuesdayStartTimeSlot2\",\n \"wednesdayStartTimeSlot2\",\n \"thursdayStartTimeSlot2\",\n \"fridayStartTimeSlot2\",\n \"saturdayStartTimeSlot2\",\n \"sundayStartTimeSlot2\",\n ];\n useEffect(() => {\n slo2Array.forEach((key) => showSlot2IfContainsValue(key));\n }, [props]);\n\n const handleSubmit = () => {\n const store = {\n values: props.store.values,\n };\n let objValid = STOTE_UTILS.VALIDATE_INPUTS(store);\n\n if (objValid.isFormValid) {\n props.addStore();\n }\n };\n\n const isSlotError = (key) => {\n if (props.store.errors.workingHours) {\n return props.store.errors.workingHours[key];\n }\n return false;\n };\n\n const addSlotInput = (key) => {\n setShowSlot2({ ...showSlot2, [key]: true });\n };\n const removeSlotInput = (Slotstart, slotEnd) => {\n props.setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n workingHours: {\n ...prevState.values.workingHours,\n [Slotstart]: null,\n [slotEnd]: null,\n },\n },\n errors: {\n ...prevState.errors,\n workingHours: {\n ...prevState.errors.workingHours,\n [Slotstart]: null,\n [slotEnd]: null,\n },\n },\n }));\n\n setShowSlot2({ ...showSlot2, [Slotstart]: false });\n };\n const handleStoreHoursSection = (key, val) => {\n props.setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n workingHours: {\n ...prevState.values.workingHours,\n [key]: typeof val == \"boolean\" ? val : new Date(val).getTime(),\n },\n },\n errors: {\n ...prevState.errors,\n workingHours: {\n [key]: \"\",\n },\n },\n }));\n };\n return (\n \n
\n \n\n
\n

{t(\"Opening/Closing Hours\")}

\n

\n {t(\"Set the hours your store is open for\", {\n serviceType: t(\"delivery\"),\n })}\n

\n
\n
\n
\n \n
\n \n
\n
\n

{t(\"Day\")}

\n
\n
\n

{t(\"From\")}

\n
\n
\n

{t(\"To\")}

\n
\n
\n addSlotInput(C.KEY_FRI_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_FRI_SLOT2_START_TIME,\n C.KEY_FRI_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"fridayStartTime\")}\n s2Error={isSlotError(\"fridayStartTimeSlot2\")}\n overLapError={isSlotError(\"fridayEndTime\")}\n />\n addSlotInput(C.KEY_SAT_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_SAT_SLOT2_START_TIME,\n C.KEY_SAT_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"saturdayStartTime\")}\n s2Error={isSlotError(\"saturdayStartTimeSlot2\")}\n overLapError={isSlotError(\"saturdayEndTime\")}\n />\n\n addSlotInput(C.KEY_SUN_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_SUN_SLOT2_START_TIME,\n C.KEY_SUN_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"sundayStartTime\")}\n s2Error={isSlotError(\"sundayStartTimeSlot2\")}\n overLapError={isSlotError(\"sundayEndTime\")}\n />\n\n addSlotInput(C.KEY_MON_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_MON_SLOT2_START_TIME,\n C.KEY_MON_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"mondayStartTime\")}\n s2Error={isSlotError(\"mondayStartTimeSlot2\")}\n overLapError={isSlotError(\"mondayEndTime\")}\n />\n\n addSlotInput(C.KEY_TUE_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_TUE_SLOT2_START_TIME,\n C.KEY_TUE_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"tuesdayStartTime\")}\n s2Error={isSlotError(\"tuesdayStartTimeSlot2\")}\n overLapError={isSlotError(\"tuesdayEndTime\")}\n />\n\n addSlotInput(C.KEY_WED_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_WED_SLOT2_START_TIME,\n C.KEY_WED_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"wednesdayStartTime\")}\n s2Error={isSlotError(\"wednesdayStartTimeSlot2\")}\n overLapError={isSlotError(\"wednesdayEndTime\")}\n />\n\n addSlotInput(C.KEY_THU_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_THU_SLOT2_START_TIME,\n C.KEY_THU_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"thursdayStartTime\")}\n s2Error={isSlotError(\"thursdayStartTimeSlot2\")}\n overLapError={isSlotError(\"thursdayEndTime\")}\n />\n
\n
\n \n
\n {props.type === \"create\" && catelougeType?.showStore ? (\n \n {t(\"Create Store\")}\n \n ) : null}\n
\n
\n );\n};\nStoreHoursSection.propTypes = {\n store: PropTypes.object,\n handleValues: PropTypes.func,\n handleTwentyFourHours: PropTypes.func,\n};\nexport default StoreHoursSection;\n","import i18next from \"i18next\";\nexport const getThirdsDaysArrayWithDayLebel = () => {\n const Days = [\n {\n value: 1,\n label: 1 + i18next.t(\"day\"),\n },\n ];\n\n Array.from({ length: 30 }, (_, x) =>\n Days.push({\n value: x + 2,\n label: x + 2 + i18next.t(\"days\"),\n })\n );\n return Days;\n};\nexport const getNumOfDaysWithZero = () => {\n const Days = [\n {\n value: 0,\n label: 0 + i18next.t(\"day\"),\n },\n {\n value: 1,\n label: 1 + i18next.t(\"day\"),\n },\n ];\n\n Array.from({ length: 30 }, (_, x) =>\n Days.push({\n value: x + 2,\n label: x + 2 + i18next.t(\"days\"),\n })\n );\n return Days;\n};\n\nexport const getHMinutSlotsTill8Hors = () => {\n const options = [];\n const maxMinutes = 8 * 60; // 8 hours in minutes\n for (let i = 15; i <= maxMinutes; i += 15) {\n const hours = Math.floor(i / 60);\n const minutes = i % 60;\n\n const hourLabel = `${hours} ${\n hours > 1 ? i18next.t(\"Hours\") : i18next.t(\"Hour\")\n }`;\n const hoursLabel = hours > 0 ? hourLabel : \"\";\n const minuteLabel = `${minutes} ${\n minutes > 1 ? i18next.t(\"Minutes\") : i18next.t(\"Minute\")\n }`;\n const minutesLabel = minutes > 0 ? minuteLabel : \"\";\n const label = `${hours > 0 ? hoursLabel : \"\"} ${\n minutes > 0 ? minutesLabel : \"\"\n }`;\n\n options.push({\n value: i,\n label: label.trim(),\n });\n }\n\n return options;\n};\n\nexport const TimingUnitsWithLabel = [\n { _id: \"1\", value: \"minutes\", label: i18next.t(\"Minutes\") },\n { _id: \"2\", value: \"hours\", label: i18next.t(\"Hours\") },\n];\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Select } from \"antd\";\n\nimport SectionHeading from \"components/SectionHeading\";\nimport RadioButton from \"components/RadioButton\";\nimport TextInput from \"components/TextInput\";\nimport {\n getHMinutSlotsTill8Hors,\n getThirdsDaysArrayWithDayLebel,\n getNumOfDaysWithZero,\n} from \"./constants\";\nimport { UTILS } from \"utils\";\nfunction PreOrderingWidget({\n isPreOrderEnabled,\n sameDayPreOrder,\n preOrderTimig,\n hndlepreOrderingState,\n handlePreOrderingTiming,\n type,\n}) {\n const { t } = useTranslation();\n const [error, setError] = React.useState(\"\");\n\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n let time = Number(value);\n if (time >= 17 && preOrderTimig?.minTimeInAdvanceUnit === \"hours\") {\n setError(t(\"Minimum Lead Time should be less than 17 hours\"));\n return;\n }\n if (time >= 960 && preOrderTimig?.minTimeInAdvanceUnit === \"minutes\") {\n setError(t(\"Minimum Lead Time should be less than 960 minutes\"));\n return;\n }\n setError(\"\");\n handlePreOrderingTiming(key, time);\n };\n\n return (\n
\n \n
\n \n
\n {isPreOrderEnabled?.value ? (\n <>\n \n\n
\n
\n
\n \n {\n handlePreOrderingTiming(\"minTimeInAdvanceUnit\", e);\n handleInputValue(\"minTimeInAdvance\", \"\");\n }}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={[\n {\n _id: \"1\",\n label: t(\"Hours\"),\n value: \"hours\",\n },\n {\n _id: \"2\",\n label: t(\"Minutes\"),\n value: \"minutes\",\n },\n ]}\n />\n
\n
\n \n
\n
\n
\n\n
\n
\n
\n
\n {t(\"Max Days In Advance\")}\n
\n\n \n handlePreOrderingTiming(\"maxDaysInAdvance\", e)\n }\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={getThirdsDaysArrayWithDayLebel()}\n />\n
\n
\n
\n
\n {t(\"Slot Length\")}\n
\n handlePreOrderingTiming(\"timeInterval\", e)}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={getHMinutSlotsTill8Hors()}\n />\n
\n
\n
\n
\n
\n
\n
\n
\n {t(\"Minimum Days In Advance\")}\n
\n\n \n handlePreOrderingTiming(\"minDaysInAdvance\", e)\n }\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={getNumOfDaysWithZero()}\n />\n
\n
\n
\n \n ) : null}\n
\n );\n}\n\nexport default PreOrderingWidget;\n","import React from \"react\";\nimport PreOrder from \"./PreOrder\";\nfunction PreOrderingWidget({ store, setStore }) {\n const hndlepreOrderingState = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handlePreOrderingTiming = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n preOrderSettingsForDelivery: {\n ...prevState.values.preOrderSettingsForDelivery,\n [key]: val,\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n return (\n \n );\n}\n\nexport default PreOrderingWidget;\n","import RadioButton from \"components/RadioButton\";\nimport SectionHeading from \"components/SectionHeading\";\nimport React from \"react\";\nimport TextInput from \"components/TextInput\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction OrderManagement({\n store,\n asap,\n hndlepreOrderingState,\n handleStoreInfo,\n getValue,\n averagePrepTime,\n}) {\n const { t } = useTranslation();\n return (\n
\n \n
\n \n
\n \n
\n );\n}\n\nexport default OrderManagement;\n","import React, { useEffect } from \"react\";\nimport moment from \"moment\";\nfunction useDeliveryWaiveoff({ setStore, store }) {\n const handleOnOrderAmount = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n deliveryChargesWaiverInfo: {\n ...prevState.values.deliveryChargesWaiverInfo,\n onOrderAmount: {\n ...prevState.values.deliveryChargesWaiverInfo.onOrderAmount,\n [key]: val,\n },\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handleDateRange = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n deliveryChargesWaiverInfo: {\n ...prevState.values.deliveryChargesWaiverInfo,\n onDateRange: {\n ...prevState.values.deliveryChargesWaiverInfo.onDateRange,\n [key]: val,\n },\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handleSetDate = (date) => {\n const [startDateTime, endDateTime] = date?.map((date) => {\n return moment(date).locale(\"en\").format();\n });\n handleDateRange(\"startDateTime\", startDateTime);\n handleDateRange(\"endDateTime\", endDateTime);\n };\n\n const dataConversion = (unixTimestamp) => {\n if (unixTimestamp?.toString()?.length === 10) {\n const formattedDate = moment\n .unix(unixTimestamp)\n .format(\"YYYY-MM-DDTHH:mm:ssZ\");\n return moment(formattedDate);\n } else return moment(unixTimestamp);\n };\n useEffect(() => {\n console.log(\n \"asasa\",\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime\n );\n if (\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime?.toString()\n ?.length === 10\n ) {\n const startDate = moment\n .unix(\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime\n )\n .format(\"YYYY-MM-DDTHH:mm:ssZ\");\n const endDate = moment\n .unix(\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime\n )\n .format(\"YYYY-MM-DDTHH:mm:ssZ\");\n\n handleDateRange(\"startDateTime\", startDate);\n handleDateRange(\"endDateTime\", endDate);\n }\n }, []);\n return {\n handleOnOrderAmount,\n handleDateRange,\n handleSetDate,\n dataConversion,\n };\n}\n\nexport default useDeliveryWaiveoff;\n","import RadioButton from \"components/RadioButton\";\nimport SectionHeading from \"components/SectionHeading\";\nimport React from \"react\";\nimport TextInput from \"components/TextInput\";\nimport { useTranslation } from \"react-i18next\";\nimport { DatePicker } from \"antd\";\nimport moment from \"moment\";\nimport { CONSTANTS as C } from \"config\";\nimport \"moment-timezone\";\nimport useDeliveryFeeWaiveoff from \"../hooks/useDeliveryFeeWaiveoff\";\nimport { UTILS } from \"utils\";\nconst { RangePicker } = DatePicker;\n\nfunction DeliveryChargesWaveOff({ store, setStore }) {\n const { t } = useTranslation();\n moment.tz.setDefault(\"Asia/Dubai\");\n const {\n handleOnOrderAmount,\n handleDateRange,\n handleSetDate,\n dataConversion,\n } = useDeliveryFeeWaiveoff({ setStore, store });\n\n const getInitialValues = () => {\n const value = [\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime\n ? dataConversion(\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.startDateTime\n )\n : null,\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime\n ? dataConversion(\n store?.values?.deliveryChargesWaiverInfo?.onDateRange?.endDateTime,\n C.DATE_FORMAT\n )\n : null,\n ];\n return value;\n };\n const [error, setError] = React.useState(\"\");\n\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n if (\n value <= 0 &&\n store?.values?.deliveryChargesWaiverInfo?.onOrderAmount?.isEnabled\n ) {\n handleOnOrderAmount(key, null);\n setError(t(\"Minimum Order Amount should be greater than 0\"));\n return;\n } else {\n setError(\"\");\n handleOnOrderAmount(key, value);\n }\n };\n\n return (\n
\n \n
\n \n
\n
\n {store?.values?.deliveryChargesWaiverInfo?.onOrderAmount?.isEnabled && (\n
\n \n
\n )}\n
\n
\n \n
\n
\n {store?.values?.deliveryChargesWaiverInfo?.onDateRange?.isEnabled && (\n
\n handleSetDate(date, dateString)}\n inputReadOnly={true}\n showTime={{ format: \"hh:mm A\", use12Hours: true }}\n format=\"YYYY-MM-DD HH:mm A\"\n value={getInitialValues()}\n className=\"h-11 w-full\"\n />\n
\n )}\n
\n
\n );\n}\n\nexport default DeliveryChargesWaveOff;\n","import React, { useState, useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport PaymentTypes from \"./StorePaymentMethodSection\";\nimport WorkingHours from \"./StoreHoursSection\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport PreOrderingWidgetForDelivery from \"./PreOrderingWidgetForDelivery\";\nimport OrderManagement from \"./OrderManagement\";\nimport DeliveryChargesWaveOff from \"./DeliveryChargesWaveOff\";\nfunction Delivery({ store, addStore, type, setStore, handleStoreInfo }) {\n const [serviceTypes, setServiceTypes] = useState([]);\n const { t } = useTranslation();\n const getServiceTypes = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_SERVICE_TYPES({\n token: userDetail.token,\n });\n if (result && result.success === 1) {\n setServiceTypes(result.data);\n } else {\n }\n };\n useEffect(() => {\n getServiceTypes();\n }, []);\n const toggleDelivery = (isDeliveryEnabled, key) => {\n if (isDeliveryEnabled) {\n setStore((store) => ({\n ...store,\n values: {\n ...store.values,\n [C.ISDELIVERYENABLED]: !isDeliveryEnabled,\n [C.KEY_SERVICE_TYPES]: store.values[C.KEY_SERVICE_TYPES].filter(\n (item) => item !== key\n ),\n },\n }));\n } else {\n setStore((store) => ({\n ...store,\n values: {\n ...store.values,\n [C.ISDELIVERYENABLED]: !isDeliveryEnabled,\n serviceType: [...store.values.serviceType, key],\n },\n }));\n }\n };\n const isON = (item) => {\n const arr = store.values[C.KEY_SERVICE_TYPES];\n const found = arr?.find((obj) => obj === item);\n return found ? true : false;\n };\n const ServiceType = () => {\n return (\n
\n {\n toggleDelivery(\n store.values[C.ISDELIVERYENABLED],\n serviceTypes[0]?._id\n );\n }}\n />\n
\n );\n };\n const getValue = (key) => {\n if (store && store.values[key]) return store.values[key];\n else return \"\";\n };\n\n const handlePaymentTypes = (key, val) => {\n const v = key;\n let paymentArr = store.values[C.KEY_PAYMENT_TYPES];\n if (val) {\n paymentArr.push(v);\n } else {\n const index = paymentArr.indexOf(v);\n if (index > -1) paymentArr.splice(index, 1);\n }\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_PAYMENT_TYPES]: paymentArr,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handleTwentyFourHours = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n\n if (val) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n workingHours: {\n saturdayStartTime: C.START_TIME_24_HOURS,\n saturdayEndTime: C.END_TIME_24_HOURS,\n saturdayStartTimeSlot2: null,\n saturdayEndTimeSlot2: null,\n\n sundayStartTime: C.START_TIME_24_HOURS,\n sundayEndTime: C.END_TIME_24_HOURS,\n sundayStartTimeSlot2: null,\n sundayEndTimeSlot2: null,\n\n mondayStartTime: C.START_TIME_24_HOURS,\n mondayEndTime: C.END_TIME_24_HOURS,\n mondayStartTimeSlot2: null,\n mondayEndTimeSlot2: null,\n\n tuesdayStartTime: C.START_TIME_24_HOURS,\n tuesdayEndTime: C.END_TIME_24_HOURS,\n tuesdayStartTimeSlot2: null,\n tuesdayEndTimeSlot2: null,\n\n wednesdayStartTime: C.START_TIME_24_HOURS,\n wednesdayEndTime: C.END_TIME_24_HOURS,\n wednesdayStartTimeSlot2: null,\n wednesdayEndTimeSlot2: null,\n\n thursdayStartTime: C.START_TIME_24_HOURS,\n thursdayEndTime: C.END_TIME_24_HOURS,\n thursdayStartTimeSlot2: null,\n thursdayEndTimeSlot2: null,\n\n fridayStartTime: C.START_TIME_24_HOURS,\n fridayEndTime: C.END_TIME_24_HOURS,\n fridayStartTimeSlot2: null,\n fridayEndTimeSlot2: null,\n\n sunday: true,\n saturday: true,\n friday: true,\n thursday: true,\n wednesday: true,\n tuesday: true,\n monday: true,\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n }\n };\n\n const handleQuickOrder = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n return (\n <>\n \n\n {isON(serviceTypes[0]?._id) && (\n <>\n \n \n \n \n \n \n )}\n \n );\n}\n\nexport default Delivery;\n","import React, { useEffect } from \"react\";\nimport SectionHeading from \"../../../components/SectionHeading\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport \"react-datepicker/dist/react-datepicker.css\";\nimport { CONSTANTS as C } from \"config\";\nimport PropTypes from \"prop-types\";\nimport DayRow from \"./DayRow\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { STOTE_UTILS } from \"utils\";\n\nconst StoreHoursSection = (props) => {\n const { t } = useTranslation();\n const [showSlot2, setShowSlot2] = React.useState({\n mondayStartTimeSlot2: false,\n tuesdayStartTimeSlot2: false,\n wednesdayStartTimeSlot2: false,\n thursdayStartTimeSlot2: false,\n fridayStartTimeSlot2: false,\n saturdayStartTimeSlot2: false,\n sundayStartTimeSlot2: false,\n });\n\n const showSlot2IfContainsValue = (key) => {\n if (props.store.values && props.store.values.workingHoursForPickup) {\n if (props.store.values.workingHoursForPickup[key]) {\n setShowSlot2((previous) => ({ ...previous, [key]: true }));\n }\n }\n };\n const slo2Array = [\n \"mondayStartTimeSlot2\",\n \"tuesdayStartTimeSlot2\",\n \"wednesdayStartTimeSlot2\",\n \"thursdayStartTimeSlot2\",\n \"fridayStartTimeSlot2\",\n \"saturdayStartTimeSlot2\",\n \"sundayStartTimeSlot2\",\n ];\n useEffect(() => {\n slo2Array.forEach((key) => showSlot2IfContainsValue(key));\n }, [props]);\n\n const handleSubmit = () => {\n const store = {\n values: props.store.values,\n };\n let objValid = STOTE_UTILS.VALIDATE_INPUTS(store);\n\n if (objValid.isFormValid) {\n props.addStore();\n }\n };\n\n const isSlotError = (key) => {\n if (props?.store?.errors?.workingHoursForPickup) {\n return props.store.errors.workingHoursForPickup[key];\n }\n return false;\n };\n\n const addSlotInput = (key) => {\n setShowSlot2({ ...showSlot2, [key]: true });\n };\n const removeSlotInput = (Slotstart, slotEnd) => {\n props.setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n workingHoursForPickup: {\n ...prevState.values.workingHoursForPickup,\n [Slotstart]: null,\n [slotEnd]: null,\n },\n },\n errors: {\n ...prevState.errors,\n workingHoursForPickup: {\n ...prevState.errors.workingHoursForPickup,\n [Slotstart]: null,\n [slotEnd]: null,\n },\n },\n }));\n\n setShowSlot2({ ...showSlot2, [Slotstart]: false });\n };\n const pickupHoursSection = (key, val) => {\n props.setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n workingHoursForPickup: {\n ...prevState.values.workingHoursForPickup,\n [key]: typeof val == \"boolean\" ? val : new Date(val).getTime(),\n },\n },\n errors: {\n ...prevState.errors,\n workingHoursForPickup: {\n [key]: \"\",\n },\n },\n }));\n };\n return (\n \n
\n \n\n
\n

{t(\"Opening/Closing Hours\")}

\n

\n {t(\"Set the hours your store is open for\", {\n serviceType: t(\"Pickup\"),\n })}\n

\n
\n
\n
\n \n
\n \n
\n
\n

{t(\"Day\")}

\n
\n
\n

{t(\"From\")}

\n
\n
\n

{t(\"To\")}

\n
\n
\n addSlotInput(C.KEY_FRI_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_FRI_SLOT2_START_TIME,\n C.KEY_FRI_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"fridayStartTime\")}\n s2Error={isSlotError(\"fridayStartTimeSlot2\")}\n overLapError={isSlotError(\"fridayEndTime\")}\n />\n addSlotInput(C.KEY_SAT_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_SAT_SLOT2_START_TIME,\n C.KEY_SAT_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"saturdayStartTime\")}\n s2Error={isSlotError(\"saturdayStartTimeSlot2\")}\n overLapError={isSlotError(\"saturdayEndTime\")}\n />\n\n addSlotInput(C.KEY_SUN_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_SUN_SLOT2_START_TIME,\n C.KEY_SUN_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"sundayStartTime\")}\n s2Error={isSlotError(\"sundayStartTimeSlot2\")}\n overLapError={isSlotError(\"sundayEndTime\")}\n />\n\n addSlotInput(C.KEY_MON_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_MON_SLOT2_START_TIME,\n C.KEY_MON_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"mondayStartTime\")}\n s2Error={isSlotError(\"mondayStartTimeSlot2\")}\n overLapError={isSlotError(\"mondayEndTime\")}\n />\n\n addSlotInput(C.KEY_TUE_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_TUE_SLOT2_START_TIME,\n C.KEY_TUE_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"tuesdayStartTime\")}\n s2Error={isSlotError(\"tuesdayStartTimeSlot2\")}\n overLapError={isSlotError(\"tuesdayEndTime\")}\n />\n\n addSlotInput(C.KEY_WED_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_WED_SLOT2_START_TIME,\n C.KEY_WED_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"wednesdayStartTime\")}\n s2Error={isSlotError(\"wednesdayStartTimeSlot2\")}\n overLapError={isSlotError(\"wednesdayEndTime\")}\n />\n\n addSlotInput(C.KEY_THU_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_THU_SLOT2_START_TIME,\n C.KEY_THU_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"thursdayStartTime\")}\n s2Error={isSlotError(\"thursdayStartTimeSlot2\")}\n overLapError={isSlotError(\"thursdayEndTime\")}\n />\n
\n
\n \n
\n {props.type === \"create\" ? (\n \n {t(\"Create Store\")}\n \n ) : null}\n
\n
\n );\n};\nStoreHoursSection.propTypes = {\n store: PropTypes.object,\n handleValues: PropTypes.func,\n handleTwentyFourHours: PropTypes.func,\n};\nexport default StoreHoursSection;\n","import React from \"react\";\n\nconst getLabelHeading = (heading) => {\n if (heading) {\n return

{heading}

;\n }\n};\n\nconst SimpleRadioButton = ({\n label,\n heading,\n handleValues,\n value,\n keyVal,\n checked,\n disabled,\n me,\n}) => {\n const labelHeading = getLabelHeading(heading);\n return (\n \n {\n handleValues(keyVal, value);\n }}\n />\n \n {/* */}\n
\n

{label}

\n {labelHeading}\n
\n \n );\n};\n\nexport default SimpleRadioButton;\n","import React from \"react\";\nimport PreOrder from \"./PreOrder\";\nfunction PreOrderingWidgetForPickup({ store, setStore }) {\n const hndlepreOrderingState = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handlePreOrderingTiming = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n preOrderSettingsForPickup: {\n ...prevState.values.preOrderSettingsForPickup,\n [key]: val,\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n return (\n \n );\n}\n\nexport default PreOrderingWidgetForPickup;\n","import React, { useState, useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport PaymentTypes from \"./StorePaymentMethodSection\";\nimport WorkingHours from \"./PickupHoursSection\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport SectionHeading from \"components/SectionHeading\";\nimport SimpleRadioButton from \"components/SimpleRadioButton\";\nimport PreOrderingWidgetForPickup from \"./PreOrderingWidgetForPickup\";\nimport OrderManagement from \"./OrderManagement\";\nfunction Delivery({ store, addStore, type, setStore, handleStoreInfo }) {\n const [serviceTypes, setServiceTypes] = useState([]);\n const { t } = useTranslation();\n const getServiceTypes = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_SERVICE_TYPES({\n token: userDetail.token,\n });\n if (result && result.success === 1) {\n setServiceTypes(result.data);\n } else {\n }\n };\n useEffect(() => {\n getServiceTypes();\n }, []);\n const toggleDelivery = (isDeliveryEnabled, key) => {\n if (isDeliveryEnabled) {\n setStore((store) => ({\n ...store,\n values: {\n ...store.values,\n [C.ISPICKUPENABLED]: !isDeliveryEnabled,\n [C.KEY_SERVICE_TYPES]: store.values[C.KEY_SERVICE_TYPES].filter(\n (item) => item !== key\n ),\n },\n }));\n } else {\n setStore((store) => ({\n ...store,\n values: {\n ...store.values,\n [C.ISPICKUPENABLED]: !isDeliveryEnabled,\n serviceType: [...store.values.serviceType, key],\n },\n }));\n }\n };\n const isON = (item) => {\n const arr = store.values[C.KEY_SERVICE_TYPES];\n const found = arr?.find((obj) => obj === item);\n return found ? true : false;\n };\n const ServiceType = () => {\n return (\n
\n {\n toggleDelivery(\n store.values[C.ISPICKUPENABLED],\n serviceTypes[1]?._id\n );\n }}\n />\n
\n );\n };\n const getValue = (key) => {\n if (store && store.values[key]) return store.values[key];\n else return \"\";\n };\n\n const handlePaymentTypes = (key, val) => {\n const v = key;\n let paymentArr = store?.values[C.KEY_PICKUP_PAYMENT_TYPES];\n if (val) {\n paymentArr?.push(v);\n } else {\n const index = paymentArr.indexOf(v);\n if (index > -1) paymentArr.splice(index, 1);\n }\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_PICKUP_PAYMENT_TYPES]: paymentArr,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handleTwentyFourHours = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n\n if (val) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n workingHoursForPickup: {\n saturdayStartTime: C.START_TIME_24_HOURS,\n saturdayEndTime: C.END_TIME_24_HOURS,\n saturdayStartTimeSlot2: null,\n saturdayEndTimeSlot2: null,\n\n sundayStartTime: C.START_TIME_24_HOURS,\n sundayEndTime: C.END_TIME_24_HOURS,\n sundayStartTimeSlot2: null,\n sundayEndTimeSlot2: null,\n\n mondayStartTime: C.START_TIME_24_HOURS,\n mondayEndTime: C.END_TIME_24_HOURS,\n mondayStartTimeSlot2: null,\n mondayEndTimeSlot2: null,\n\n tuesdayStartTime: C.START_TIME_24_HOURS,\n tuesdayEndTime: C.END_TIME_24_HOURS,\n tuesdayStartTimeSlot2: null,\n tuesdayEndTimeSlot2: null,\n\n wednesdayStartTime: C.START_TIME_24_HOURS,\n wednesdayEndTime: C.END_TIME_24_HOURS,\n wednesdayStartTimeSlot2: null,\n wednesdayEndTimeSlot2: null,\n\n thursdayStartTime: C.START_TIME_24_HOURS,\n thursdayEndTime: C.END_TIME_24_HOURS,\n thursdayStartTimeSlot2: null,\n thursdayEndTimeSlot2: null,\n\n fridayStartTime: C.START_TIME_24_HOURS,\n fridayEndTime: C.END_TIME_24_HOURS,\n fridayStartTimeSlot2: null,\n fridayEndTimeSlot2: null,\n\n sunday: true,\n saturday: true,\n friday: true,\n thursday: true,\n wednesday: true,\n tuesday: true,\n monday: true,\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n }\n };\n\n const handlePickupVehicleInfo = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n const handleQuickOrders = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n return (\n <>\n \n {isON(serviceTypes[1]?._id) && (\n <>\n \n \n\n
\n
\n
\n \n
\n
\n \n handlePickupVehicleInfo(key, {\n ...store.values?.vehicleInfoForPickup,\n isActive: val,\n })\n }\n />\n
\n {store.values?.vehicleInfoForPickup?.isActive && (\n
\n \n handlePickupVehicleInfo(key, {\n ...store.values?.vehicleInfoForPickup,\n isRequired: val,\n })\n }\n />\n \n handlePickupVehicleInfo(key, {\n ...store.values?.vehicleInfoForPickup,\n isRequired: val,\n })\n }\n />\n
\n )}\n
\n
\n \n \n \n )}\n \n );\n}\n\nexport default Delivery;\n","import React, { useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport SectionHeading from \"../../../components/SectionHeading\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport \"react-datepicker/dist/react-datepicker.css\";\nimport { CONSTANTS as C } from \"config\";\nimport DayRow from \"./DayRow\";\nimport { STOTE_UTILS } from \"utils\";\nconst StoreHoursSection = (props) => {\n const { t } = useTranslation();\n const [showSlot2, setShowSlot2] = React.useState({\n mondayStartTimeSlot2: false,\n tuesdayStartTimeSlot2: false,\n wednesdayStartTimeSlot2: false,\n thursdayStartTimeSlot2: false,\n fridayStartTimeSlot2: false,\n saturdayStartTimeSlot2: false,\n sundayStartTimeSlot2: false,\n });\n\n const showSlot2IfContainsValue = (key) => {\n if (props.store.values && props.store.values.workingHoursForDinein) {\n if (props.store.values.workingHoursForDinein[key]) {\n setShowSlot2((previous) => ({ ...previous, [key]: true }));\n }\n }\n };\n const slo2Array = [\n \"mondayStartTimeSlot2\",\n \"tuesdayStartTimeSlot2\",\n \"wednesdayStartTimeSlot2\",\n \"thursdayStartTimeSlot2\",\n \"fridayStartTimeSlot2\",\n \"saturdayStartTimeSlot2\",\n \"sundayStartTimeSlot2\",\n ];\n useEffect(() => {\n slo2Array.forEach((key) => showSlot2IfContainsValue(key));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props]);\n\n const handleSubmit = () => {\n const store = {\n values: props.store.values,\n };\n let objValid = STOTE_UTILS.VALIDATE_INPUTS(store);\n\n if (objValid.isFormValid) {\n props.addStore();\n }\n };\n\n const isSlotError = (key) => {\n if (props?.store?.errors?.workingHoursForDinein) {\n return props.store.errors.workingHoursForDinein[key];\n }\n return false;\n };\n\n const addSlotInput = (key) => {\n setShowSlot2({ ...showSlot2, [key]: true });\n };\n const removeSlotInput = (Slotstart, slotEnd) => {\n props.setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n workingHoursForDinein: {\n ...prevState.values.workingHoursForDinein,\n [Slotstart]: null,\n [slotEnd]: null,\n },\n },\n errors: {\n ...prevState.errors,\n workingHoursForDinein: {\n ...prevState.errors.workingHoursForDinein,\n [Slotstart]: null,\n [slotEnd]: null,\n },\n },\n }));\n\n setShowSlot2({ ...showSlot2, [Slotstart]: false });\n };\n const dineInHoursSection = (key, val) => {\n props.setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n workingHoursForDinein: {\n ...prevState.values.workingHoursForDinein,\n [key]: typeof val == \"boolean\" ? val : new Date(val).getTime(),\n },\n },\n errors: {\n ...prevState.errors,\n workingHoursForDinein: {\n [key]: \"\",\n },\n },\n }));\n };\n\n return (\n \n
\n \n\n
\n

{t(\"Opening/Closing Hours\")}

\n

\n {t(\"Set the hours your store is open for\", {\n serviceType: t(\"Contactless dining\"),\n })}\n

\n
\n
\n
\n \n
\n \n
\n
\n

{t(\"Day\")}

\n
\n
\n

{t(\"From\")}

\n
\n
\n

{t(\"To\")}

\n
\n
\n addSlotInput(C.KEY_FRI_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_FRI_SLOT2_START_TIME,\n C.KEY_FRI_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"fridayStartTime\")}\n s2Error={isSlotError(\"fridayStartTimeSlot2\")}\n overLapError={isSlotError(\"fridayEndTime\")}\n />\n addSlotInput(C.KEY_SAT_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_SAT_SLOT2_START_TIME,\n C.KEY_SAT_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"saturdayStartTime\")}\n s2Error={isSlotError(\"saturdayStartTimeSlot2\")}\n overLapError={isSlotError(\"saturdayEndTime\")}\n />\n\n addSlotInput(C.KEY_SUN_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_SUN_SLOT2_START_TIME,\n C.KEY_SUN_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"sundayStartTime\")}\n s2Error={isSlotError(\"sundayStartTimeSlot2\")}\n overLapError={isSlotError(\"sundayEndTime\")}\n />\n\n addSlotInput(C.KEY_MON_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_MON_SLOT2_START_TIME,\n C.KEY_MON_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"mondayStartTime\")}\n s2Error={isSlotError(\"mondayStartTimeSlot2\")}\n overLapError={isSlotError(\"mondayEndTime\")}\n />\n\n addSlotInput(C.KEY_TUE_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_TUE_SLOT2_START_TIME,\n C.KEY_TUE_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"tuesdayStartTime\")}\n s2Error={isSlotError(\"tuesdayStartTimeSlot2\")}\n overLapError={isSlotError(\"tuesdayEndTime\")}\n />\n\n addSlotInput(C.KEY_WED_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_WED_SLOT2_START_TIME,\n C.KEY_WED_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"wednesdayStartTime\")}\n s2Error={isSlotError(\"wednesdayStartTimeSlot2\")}\n overLapError={isSlotError(\"wednesdayEndTime\")}\n />\n\n addSlotInput(C.KEY_THU_SLOT2_START_TIME)}\n removeSlotInput={() =>\n removeSlotInput(\n C.KEY_THU_SLOT2_START_TIME,\n C.KEY_THU_SLOT2_END_TIME\n )\n }\n s1Error={isSlotError(\"thursdayStartTime\")}\n s2Error={isSlotError(\"thursdayStartTimeSlot2\")}\n overLapError={isSlotError(\"thursdayEndTime\")}\n />\n
\n
\n \n
\n {props.type === \"create\" ? (\n \n {t(\"Create Store\")}\n \n ) : null}\n
\n
\n );\n};\nStoreHoursSection.propTypes = {\n store: PropTypes.object,\n handleValues: PropTypes.func,\n handleTwentyFourHours: PropTypes.func,\n};\nexport default StoreHoursSection;\n","import React, { useState, useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport PaymentTypes from \"./StorePaymentMethodSection\";\nimport WorkingHours from \"./DineInHoursSection\";\nimport RadioButton from \"../../../components/RadioButton\";\nimport TextInput from \"../../../components/TextInput\";\nfunction Delivery({ store, addStore, type, setStore, handleStoreInfo }) {\n const [serviceTypes, setServiceTypes] = useState([]);\n const { t } = useTranslation();\n const getServiceTypes = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_SERVICE_TYPES({\n token: userDetail.token,\n });\n if (result && result.success === 1) {\n setServiceTypes(result.data);\n } else {\n }\n };\n useEffect(() => {\n getServiceTypes();\n }, []);\n const toggleDelivery = (isDeliveryEnabled, key) => {\n if (isDeliveryEnabled) {\n setStore((store) => ({\n ...store,\n values: {\n ...store.values,\n [C.ISDINEINENABLED]: !isDeliveryEnabled,\n [C.KEY_SERVICE_TYPES]: store.values[C.KEY_SERVICE_TYPES].filter(\n (item) => item !== key\n ),\n },\n }));\n } else {\n setStore((store) => ({\n ...store,\n values: {\n ...store.values,\n [C.ISDINEINENABLED]: !isDeliveryEnabled,\n serviceType: [...store.values.serviceType, key],\n },\n }));\n }\n };\n const isON = (item) => {\n const arr = store.values[C.KEY_SERVICE_TYPES];\n const found = arr?.find((obj) => obj === item);\n return found ? true : false;\n };\n const ServiceType = () => {\n return (\n
\n {\n toggleDelivery(\n store.values[C.ISDINEINENABLED],\n serviceTypes[2]?._id\n );\n }}\n />\n
\n );\n };\n const getValue = (key) => {\n if (store && store.values[key]) return store.values[key];\n else return \"\";\n };\n\n const handlePaymentTypes = (key, val) => {\n const v = key;\n let paymentArr = store?.values[C.KEY_DINEIN_PAYMENT_TYPES];\n if (val) {\n paymentArr?.push(v);\n } else {\n const index = paymentArr.indexOf(v);\n if (index > -1) paymentArr.splice(index, 1);\n }\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_DINEIN_PAYMENT_TYPES]: paymentArr,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n };\n\n const handleTwentyFourHours = (key, val) => {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n\n if (val) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n workingHoursForDinein: {\n saturdayStartTime: C.START_TIME_24_HOURS,\n saturdayEndTime: C.END_TIME_24_HOURS,\n saturdayStartTimeSlot2: null,\n saturdayEndTimeSlot2: null,\n\n sundayStartTime: C.START_TIME_24_HOURS,\n sundayEndTime: C.END_TIME_24_HOURS,\n sundayStartTimeSlot2: null,\n sundayEndTimeSlot2: null,\n\n mondayStartTime: C.START_TIME_24_HOURS,\n mondayEndTime: C.END_TIME_24_HOURS,\n mondayStartTimeSlot2: null,\n mondayEndTimeSlot2: null,\n\n tuesdayStartTime: C.START_TIME_24_HOURS,\n tuesdayEndTime: C.END_TIME_24_HOURS,\n tuesdayStartTimeSlot2: null,\n tuesdayEndTimeSlot2: null,\n\n wednesdayStartTime: C.START_TIME_24_HOURS,\n wednesdayEndTime: C.END_TIME_24_HOURS,\n wednesdayStartTimeSlot2: null,\n wednesdayEndTimeSlot2: null,\n\n thursdayStartTime: C.START_TIME_24_HOURS,\n thursdayEndTime: C.END_TIME_24_HOURS,\n thursdayStartTimeSlot2: null,\n thursdayEndTimeSlot2: null,\n\n fridayStartTime: C.START_TIME_24_HOURS,\n fridayEndTime: C.END_TIME_24_HOURS,\n fridayStartTimeSlot2: null,\n fridayEndTimeSlot2: null,\n\n sunday: true,\n saturday: true,\n friday: true,\n thursday: true,\n wednesday: true,\n tuesday: true,\n monday: true,\n },\n },\n errors: {\n ...prevState.errors,\n },\n }));\n }\n };\n return (\n <>\n \n\n {isON(serviceTypes[2]?._id) && (\n <>\n \n
\n \n
\n \n \n )}\n \n );\n}\n\nexport default Delivery;\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { useHistory, useLocation } from \"react-router\";\nimport { useSelector } from \"react-redux\";\nimport PropTypes from \"prop-types\";\nimport PageHeading from \"components/PageHeading\";\nimport { Button, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { isValidSlots } from \"utils/Utils\";\nimport StoreInfoSection from \"./StoreInfoSection\";\nimport StoreMapSection from \"./StoreMapSection\";\nimport Delivery from \"./Delivery\";\nimport Pickup from \"./Pickup\";\nimport DineIn from \"./DineIn\";\nimport { CatelougeContext } from \"store/contexts/Catelouge\";\nimport { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport { UTILS } from \"utils\";\nimport { ACTIONS } from \"config\";\nimport { logToSentry } from \"utils/Utils\";\nimport { STOTE_UTILS } from \"utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst UpdateStoreComponent = (props) => {\n const router = useHistory();\n const { t } = useTranslation();\n const location = useLocation();\n\n const { dispatch } = React.useContext(CatelougeContext);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [store, setStore] = useState(UTILS.getDumbStoreObject());\n const [loading, setLoading] = useState(false);\n const [updateStage, setUpdateStage] = useState(0);\n const sideMenu = UTILS.getSideMenuListForAddUpdateStore();\n\n const getStoreInfo = async (sId) => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_STORE_INFO_WITH_STORE_ID({\n storeId: sId,\n brandId: userDetail.brandId,\n token: userDetail.token,\n language: currentLanguage,\n });\n if (result?.success === 1 && result?.data?.store?.length >= 1)\n setStore(getStoreInformation(result.data));\n else {\n }\n setLoading(false);\n };\n\n const handleStoreMapSection = (key, val) => {\n if (key === C.KEY_MAP_ADDRESS) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_MAP_ADDRESS]: val,\n },\n errors: {\n ...prevState.errors,\n [C.KEY_MAP_ADDRESS]: \"\",\n },\n }));\n } else if (key === \"latlng\") {\n const lat = val.lat;\n const lng = val.lng;\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n storeLocation: {\n coordinates: [lat, lng],\n },\n },\n errors: {\n ...prevState.errors,\n storeLocation: {\n coordinates: [\"\", \"\"],\n },\n },\n }));\n } else if (key === C.KEY_MANUAL_ADDRESS) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_MANUAL_ADDRESS]: val,\n },\n errors: {\n ...prevState.errors,\n [C.KEY_MANUAL_ADDRESS]: \"\",\n },\n }));\n }\n };\n\n const handleStoreInfo = (key, val) => {\n if (\n key === C.KEY_EMAIL ||\n key === C.KEY_PHONE ||\n key === C.KEY_IMAGE_URL ||\n key === C.KEY_TAX_RATE ||\n key === C.AVERAGE_PREP ||\n key === C.PICKUP_AVERAGE_PREP ||\n key === C.DINEIN_AVERAGE_PREP ||\n key === C.KEY_IS_TAX_INCLUSIVE ||\n key === C.KEY_CITY ||\n key === C.KEY_WHATSAPP_PHONE\n ) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n } else if (key === C.KEY_DELETE_IMG_URL) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: \"\",\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n } else {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.BASE_LANGUAGE]: {\n ...prevState.values[C.BASE_LANGUAGE],\n [key]: val,\n },\n },\n errors: {\n ...prevState.errors,\n [C.BASE_LANGUAGE]: {\n ...prevState.errors[C.BASE_LANGUAGE],\n [key]: \"\",\n },\n },\n }));\n }\n };\n const didMount = useRef(false);\n\n useEffect(() => {\n if (didMount.current) {\n if (store.values.workingHours) {\n checkIsValidTimeSlots(store.values.workingHours, \"workingHours\");\n }\n } else {\n didMount.current = true;\n }\n }, [store.values.workingHours]);\n\n useEffect(() => {\n if (didMount.current) {\n if (store?.values?.workingHoursForPickup) {\n checkIsValidTimeSlots(\n store.values.workingHoursForPickup,\n \"workingHoursForPickup\"\n );\n }\n } else {\n didMount.current = true;\n }\n }, [store.values.workingHoursForPickup]);\n\n useEffect(() => {\n if (didMount.current) {\n if (store?.values?.workingHoursForDinein) {\n checkIsValidTimeSlots(\n store.values.workingHoursForDinein,\n \"workingHoursForDinein\"\n );\n }\n } else {\n didMount.current = true;\n }\n }, [store.values.workingHoursForDinein]);\n\n const checkIsValidTimeSlots = (workingHours, type) => {\n let slotCheck = isValidSlots(workingHours);\n if (!slotCheck.isFormValid) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n [type]: {\n ...prevState.errors[type],\n ...slotCheck.errors,\n },\n },\n }));\n } else {\n setStore((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n [type]: {},\n },\n }));\n }\n return slotCheck.isFormValid;\n };\n\n const validateInputs = () => {\n let objValid = STOTE_UTILS.VALIDATE_INPUTS(store);\n if (!objValid.isFormValid) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n ...objValid.errors,\n },\n }));\n }\n return objValid.isFormValid;\n };\n\n const getStoreInformation = (s) => {\n if (!s || !s?.store || !Array.isArray(s?.store) || s?.store?.length < 1) {\n logToSentry(`Invalid store data ${store}${s}`, \"error\");\n return null;\n }\n const obj = { ...store, values: s.store[0] };\n return obj;\n };\n\n useEffect(() => {\n if (location?.state?.storeId) getStoreInfo(location?.state?.storeId);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [location?.state?.storeId]);\n\n const updateStoreFunction = async () => {\n try {\n store.values.mobileNumber = await UTILS.formatPhoneNumber(\n store.values.mobileNumber\n );\n store.values.whatsAppContact = await UTILS.formatPhoneNumber(\n store.values.whatsAppContact\n );\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n let s = { ...store.values };\n const storeobj = UTILS.getStoreObj(store.values);\n storeobj.storeId = s._id;\n storeobj.brandId = userDetail.brandId;\n storeobj.currency = s.currency;\n storeobj.language = currentLanguage || \"EN\";\n const result = await API.updateStore({\n token: userDetail.token,\n store: storeobj,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(\"Store Updated Successfully\"));\n router.goBack();\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n dispatch({ type: ACTIONS.STORES_CHANGED });\n setLoading(false);\n } catch (error) {\n UTILS.errorNotification(errorHandler(error));\n setLoading(false);\n }\n };\n\n const isValidTiming = () => {\n if (\n !checkIsValidTimeSlots(store?.values?.workingHours, \"workingHours\") &&\n store.values[C.ISDELIVERYENABLED]\n ) {\n UTILS.errorNotification(\n t(\"Please check timing in section\", {\n serviceType: t(\"Delivery\"),\n })\n );\n return false;\n }\n\n if (\n !checkIsValidTimeSlots(\n store.values?.workingHoursForDinein,\n \"workingHoursForDinein\"\n ) &&\n store.values[C.ISDINEINENABLED]\n ) {\n UTILS.errorNotification(\n t(\"Please check timing in section\", {\n serviceType: t(\"Contactless dining\"),\n })\n );\n return false;\n }\n\n if (\n !checkIsValidTimeSlots(\n store?.values?.workingHoursForPickup,\n \"workingHoursForPickup\"\n ) &&\n store.values[C.ISPICKUPENABLED]\n ) {\n UTILS.errorNotification(\n t(\"Please check timing in section\", {\n serviceType: t(\"Pickup\"),\n })\n );\n return false;\n }\n return true;\n };\n\n const updateStore = async () => {\n if (!validateInputs()) {\n } else if (!isValidTiming()) {\n return;\n } else {\n updateStoreFunction();\n }\n };\n\n const getBuisnessType = () => {\n const userDetail = UTILS.getCurrentUser();\n\n return userDetail?.catalogueType;\n };\n\n const getSideItem = (name, id) => {\n return (\n setUpdateStage(id)}\n className={\n \"py-2 mx-4 text-indigo-700 text-15px cursor-pointer hover:text-black list-decimal \" +\n (id === 5 ? \"my-10\" : \"\")\n }\n >\n {name}\n \n );\n };\n\n return (\n
\n \n \n
\n
\n

\n {t(\"Please fill the complete information to Update Store.\")}\n

\n
\n
\n updateStore()}\n >\n {t(\"Update Store\")}\n \n
\n
\n
\n
\n

\n {store.values ? store.values[C.BASE_LANGUAGE].name : \"\"}\n

\n
    \n {sideMenu &&\n sideMenu.map((item) => {\n if (\n getBuisnessType() === \"BRAND_BASED_CATALOGUE\" &&\n item.id === 4\n ) {\n return null;\n }\n\n return getSideItem(t(item.name), item.id);\n })}\n
\n
\n
\n \n \n
\n \n \n
\n\n \n \n
\n \n \n \n \n \n \n \n \n \n \n );\n};\nexport default UpdateStoreComponent;\n\nUpdateStoreComponent.propTypes = {\n values: PropTypes.object,\n};\n","import { useEffect } from \"react\";\nimport { useHistory } from \"react-router-dom\";\n\nfunction usePushBack(url, id) {\n const history = useHistory();\n useEffect(() => {\n if (!id) {\n history.push(url || \"/app/dashboard/\");\n }\n }, []);\n}\n\nexport default usePushBack;\n","import React from \"react\";\nimport UpdateStoreComponent from \"../components/UpdateStoreComponent\";\nimport { useHistory } from \"react-router-dom\";\nimport usePushBack from \"hooks/usePushBack\";\n\nconst UpdateStore = () => {\n const router = useHistory();\n usePushBack(\"/app/dashboard/stores\", router?.location?.state?.storeId);\n return ;\n};\nexport default UpdateStore;\n","import React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport StoreInfoSection from \"./StoreInfoSection\";\nimport StoreMapSection from \"./StoreMapSection\";\nimport Delivery from \"./Delivery\";\nimport DineIn from \"./DineIn\";\nimport PickUp from \"./Pickup\";\nimport { CatelougeContext } from \"store/contexts/Catelouge\";\nimport { ACTIONS } from \"config\";\nimport { useHistory } from \"react-router-dom\";\nimport { Spin, Button } from \"antd\";\nimport { API } from \"api\";\nimport { UTILS, STOTE_UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport PageHeading from \"components/PageHeading\";\nimport { useTranslation } from \"react-i18next\";\nimport { isValidSlots } from \"utils/Utils\";\nimport useCatalogue from \"hooks/useCatalogue\";\nimport { errorNotification } from \"utils/Utils\";\n\nconst AddStoreComponent = () => {\n const router = useHistory();\n const { t } = useTranslation();\n const catelougeType = useCatalogue();\n const { dispatch } = React.useContext(CatelougeContext);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [store, setStore] = useState(UTILS.getDumbStoreObject());\n const [loading, setLoading] = useState(false);\n const [addStage, setAddStage] = useState(0);\n const [currencies, setCurrenies] = useState();\n\n const getCurrencyTypes = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_CURRENCY_TYPES({\n token: userDetail.token,\n });\n if (result && result.success === 1 && UTILS.isValidObject([\"data\"], result))\n setCurrenies(result.data);\n else {\n }\n };\n\n useEffect(() => {\n getCurrencyTypes();\n }, []);\n\n const handleStoreMapSection = (key, val) => {\n if (key === C.KEY_MAP_ADDRESS) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_MAP_ADDRESS]: val,\n },\n errors: {\n ...prevState.errors,\n [C.KEY_MAP_ADDRESS]: \"\",\n },\n }));\n } else if (key === \"latlng\") {\n const lat = val.lat;\n const lng = val.lng;\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n storeLocation: {\n coordinates: [lat, lng],\n },\n },\n errors: {\n ...prevState.errors,\n storeLocation: {\n coordinates: [\"\", \"\"],\n },\n },\n }));\n } else if (key === C.KEY_MANUAL_ADDRESS) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.KEY_MANUAL_ADDRESS]: val,\n },\n errors: {\n ...prevState.errors,\n [C.KEY_MANUAL_ADDRESS]: \"\",\n },\n }));\n }\n };\n\n const handleStoreInfo = (key, val) => {\n if (\n key === C.KEY_EMAIL ||\n key === C.KEY_PHONE ||\n key === C.KEY_IMAGE_URL ||\n key === C.KEY_TAX_RATE ||\n key === C.AVERAGE_PREP ||\n key === C.PICKUP_AVERAGE_PREP ||\n key === C.DINEIN_AVERAGE_PREP ||\n key === C.KEY_IS_TAX_INCLUSIVE ||\n key === C.KEY_CITY ||\n key === C.KEY_TIMEZONE ||\n key === C.KEY_WHATSAPP_PHONE\n ) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n } else if (key === C.KEY_DELETE_IMG_URL) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: \"\",\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n } else {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [C.BASE_LANGUAGE]: {\n ...prevState.values[C.BASE_LANGUAGE],\n [key]: val,\n },\n },\n errors: {\n ...prevState.errors,\n [C.BASE_LANGUAGE]: {\n ...prevState.errors[C.BASE_LANGUAGE],\n [key]: \"\",\n },\n },\n }));\n }\n };\n\n const validateInputs = () => {\n let objValid = STOTE_UTILS.VALIDATE_INPUTS(store);\n if (!objValid.isFormValid) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n ...objValid.errors,\n },\n }));\n }\n return objValid.isFormValid;\n };\n\n const getCurrencyId = () => {\n if (Array.isArray(currencies) && currencies.length > 0)\n return currencies[0]._id;\n else return null;\n };\n\n const didMount = React.useRef(false);\n\n useEffect(() => {\n if (didMount.current) {\n if (store?.values?.workingHours) {\n checkDeliveryTimeSlots(store.values.workingHours, \"workingHours\");\n }\n } else {\n didMount.current = true;\n }\n }, [store.values.workingHours]);\n\n useEffect(() => {\n if (didMount.current) {\n if (store?.values?.workingHoursForPickup) {\n checkDeliveryTimeSlots(\n store.values.workingHoursForPickup,\n \"workingHoursForPickup\"\n );\n }\n } else {\n didMount.current = true;\n }\n }, [store.values.workingHoursForPickup]);\n\n useEffect(() => {\n if (didMount.current) {\n if (store?.values?.workingHoursForDinein) {\n checkDeliveryTimeSlots(\n store.values.workingHoursForDinein,\n \"workingHoursForDinein\"\n );\n }\n } else {\n didMount.current = true;\n }\n }, [store.values.workingHoursForDinein]);\n\n const checkDeliveryTimeSlots = (workingHours, type) => {\n let slotCheck = isValidSlots(workingHours);\n if (!slotCheck.isFormValid) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n [type]: {\n ...prevState.errors[type],\n ...slotCheck.errors,\n },\n },\n }));\n } else {\n setStore((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n [type]: {},\n },\n }));\n }\n return slotCheck.isFormValid;\n };\n\n const checkSlotValidation = () => {\n let slotCheck = isValidSlots(store.values.workingHours);\n if (!slotCheck.isFormValid) {\n setStore((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n workingHours: {\n ...prevState.errors.workingHours,\n ...slotCheck.errors,\n },\n },\n }));\n }\n return slotCheck.isFormValid;\n };\n const addStoreFunction = async () => {\n store.values.mobileNumber = await UTILS.formatPhoneNumber(\n store.values.mobileNumber\n );\n store.values.whatsAppContact = await UTILS.formatPhoneNumber(\n store.values.whatsAppContact\n );\n const storeobj = UTILS.getStoreObj(store.values);\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n let s = { ...storeobj };\n s[\"brandId\"] = userDetail.brandId;\n s[\"currency\"] = getCurrencyId();\n s[\"language\"] = currentLanguage;\n const result = await API.ADD_STORE({\n token: userDetail.token,\n store: s,\n });\n\n if (result?.success === 1) {\n UTILS.successNotification(\n t(\"Store Created Successfully, Please Add Delivery Areas!\")\n );\n router.goBack();\n } else {\n console.log({ result });\n errorNotification(\n result?.message ||\n t(\"We're sorry, but something went wrong. Please try again\")\n );\n }\n\n dispatch({ type: ACTIONS.STORES_CHANGED });\n setLoading(false);\n };\n\n const isValidTiming = () => {\n if (\n !checkDeliveryTimeSlots(store?.values?.workingHours, \"workingHours\") &&\n store.values[C.ISDELIVERYENABLED]\n ) {\n UTILS.errorNotification(\n t(\"Please check timing in section\", {\n serviceType: t(\"Delivery\"),\n })\n );\n return false;\n }\n\n if (\n !checkDeliveryTimeSlots(\n store.values?.workingHoursForDinein,\n \"workingHoursForDinein\"\n ) &&\n store.values[C.ISDINEINENABLED]\n ) {\n UTILS.errorNotification(\n t(\"Please check timing in section\", {\n serviceType: t(\"Contactless Dining\"),\n })\n );\n return false;\n }\n\n if (\n !checkDeliveryTimeSlots(\n store?.values?.workingHoursForPickup,\n \"workingHoursForPickup\"\n ) &&\n store.values[C.ISPICKUPENABLED]\n ) {\n UTILS.errorNotification(\n t(\"Please check timing in section\", {\n serviceType: t(\"Pickup\"),\n })\n );\n return false;\n }\n return true;\n };\n\n const addStore = async () => {\n if (!validateInputs()) {\n } else if (!isValidTiming()) {\n return;\n } else {\n addStoreFunction();\n }\n };\n\n const getBuisnessType = () => {\n const userDetail = UTILS.getCurrentUser();\n return userDetail?.catalogueType;\n };\n return (\n
\n \n \n
\n
\n

\n {t(\n \"Please fill the complete information to Create Store. Once you finish setting up your store, Activate it to get orders.\"\n )}\n

\n
\n
\n {addStage >= 2 && catelougeType?.showStore && (\n addStore()}\n >\n {t(\"Create Store\")}\n \n )}\n
\n
\n
\n
\n

{t(\"Create Store\")}

\n
    \n setAddStage(0)}\n className={\n \"py-2 mx-4 text-indigo-700 text-15px cursor-pointer hover:text-black list-decimal \" +\n (addStage == 5 ? \"my-10\" : \"\")\n }\n >\n {t(\"Basic Information\")}\n \n setAddStage(1)}\n className={\n \"py-2 mx-4 text-indigo-700 text-15px cursor-pointer hover:text-black list-decimal \" +\n (addStage == 5 ? \"my-10\" : \"\")\n }\n >\n {t(\"Store Location\")}\n \n setAddStage(2)}\n className={\n \"py-2 mx-4 text-indigo-700 text-15px cursor-pointer hover:text-black list-decimal \" +\n (addStage == 5 ? \"my-10\" : \"\")\n }\n >\n {t(\"Delivery\")}\n \n setAddStage(3)}\n className={\n \"py-2 mx-4 text-indigo-700 text-15px cursor-pointer hover:text-black list-decimal \" +\n (addStage == 5 ? \"my-10\" : \"\")\n }\n >\n {t(\"Pickup\")}\n \n {getBuisnessType() !== C.BRAND_BASED && (\n setAddStage(4)}\n className={\n \"py-2 mx-4 text-indigo-700 text-15px cursor-pointer hover:text-black list-decimal \" +\n (addStage == 5 ? \"my-10\" : \"\")\n }\n >\n {t(\"Contactless Dining\")}\n \n )}\n
\n
\n\n
\n \n \n
\n \n \n
\n\n \n \n
\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default AddStoreComponent;\n","import React from \"react\";\nimport AddStoreComponent from \"../components/AddStoreComponent\";\n\nconst AddStore = () => {\n return ;\n};\nexport default AddStore;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nfunction SearchCity(props) {\n const { t } = useTranslation();\n return (\n
\n \n \n \n \n \n \n props.handleValues(props.keyVal, event.target.value)\n }\n value={props.value}\n type=\"text\"\n className=\"focus:outline-none flex-1 input px-2 text-16px block w-full rounded-none border border-gray-200\"\n placeholder={t(props.placeholder)}\n />\n
\n );\n}\n\nexport default SearchCity;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst PriceInput = (props) => {\n const {\n placeHolder,\n register,\n rules,\n disabled,\n name,\n value,\n label,\n mandatory,\n error,\n maxLength,\n handleValues,\n } = props;\n\n const mandatoryField = getMandatoryField(mandatory);\n const fieldError = getFieldError(error);\n\n const handleChangePrice = (event) => {\n let v = UTILS.ARtoENPrice(event.target.value);\n handleValues(props.keyVal, v);\n };\n\n return (\n <>\n \n handleChangePrice(event)}\n type=\"text\"\n />\n
{fieldError}
\n \n );\n};\n\nPriceInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default PriceInput;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst AreasList = ({ isChecked, Items, saveAreaIntoState }) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n return (\n \n
\n {Items?.length > 0 &&\n Items?.map((area, index) => (\n
\n
\n
\n {area?.isAdded ? (\n \n
\n {area?.[`areaName${currentLanguage}`]}\n
\n
{t(\"Already added\")}
\n
\n ) : (\n saveAreaIntoState(area)}\n >\n
{area?.[`areaName${currentLanguage}`]}
\n
\n {isChecked(area) ? (\n \n ) : (\n \n )}\n
\n
\n )}\n
\n
\n ))}\n \n
\n );\n};\n\nexport default AreasList;\n","import React from \"react\";\n\nconst ShowCityListButton = (props) => {\n const open = props.open;\n return open ? (\n \n \n \n \n \n ) : (\n \n \n \n \n \n );\n};\n\nexport default ShowCityListButton;\n","import React, { useState, useMemo } from \"react\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport AreasList from \"./AreasList\";\nimport ShowCityListButton from \"../../common/ShowCityListButton\";\nimport { AreasAction } from \"redux/actions\";\nimport { CONSTANTS as C } from \"config\";\n\nconst CitiesList = ({ cityAreas, city, searchTerm, openAreas }) => {\n const dispatch = useDispatch();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { selectedAreas } = useSelector((state) => state.AreasReducer);\n const [open, setOpen] = useState(false);\n const setOpenState = () => {\n open ? setOpen(false) : setOpen(true);\n };\n\n const saveAreaIntoState = (area) => {\n let update = [];\n const isAreaAlreadySelected = !!selectedAreas?.find(\n (c) => c?._id === area?._id\n );\n if (isAreaAlreadySelected) {\n update = selectedAreas.filter((c) => c._id !== area._id);\n } else {\n update = [...selectedAreas, area];\n }\n dispatch(AreasAction.updateSelectedArea(update));\n };\n\n const isChecked = (city) => {\n return !!selectedAreas.find((c) => c?._id === city?._id);\n };\n\n const Items = useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return cityAreas;\n }\n return cityAreas.filter((item) =>\n currentLanguage === C.CURRENT_LANGUAGE.EN\n ? item?.areaNameEN?.toLowerCase()?.includes(searchTerm?.trim())\n : item?.areaNameAR?.includes(searchTerm?.trim())\n );\n }, [cityAreas, searchTerm, currentLanguage]);\n return (\n
\n
\n \n
\n
{city?.[`cityName${currentLanguage}`]}
\n
\n {/* */}\n
\n
\n
\n {open || openAreas ? (\n \n ) : null}\n
\n );\n};\n\nexport default CitiesList;\n","import React from \"react\";\nimport { Button, Select } from \"antd\";\nimport i18n from \"../../../i18n\";\nimport { useTranslation } from \"react-i18next\";\n\nconst ChooseTime = ({ time, setTime }) => {\n const { t } = useTranslation();\n\n const resetState = () => {\n setTime({ Days: 0, Hours: 0, Minutes: 0 });\n };\n const Days = [\n {\n value: 1,\n label: 1 + i18n.t(\"day\"),\n },\n ];\n\n Array.from({ length: 39 }, (_, x) =>\n Days.push({\n value: x + 2,\n label: x + 2 + i18n.t(\"days\"),\n })\n );\n\n const Hours = [\n {\n value: 1,\n label: 1 + i18n.t(\"hour\"),\n },\n ];\n Array.from({ length: 23 }, (_, x) =>\n Hours.push({\n value: x + 2,\n label: x + 2 + i18n.t(\"hours\"),\n })\n );\n const Minutes = [\n {\n value: 1,\n label: 1 + i18n.t(\"minute\"),\n },\n ];\n Array.from({ length: 59 }, (_, x) =>\n Minutes.push({\n value: x + 2,\n label: x + 2 + i18n.t(\"minutes\"),\n })\n );\n const selectDay = (value) => {\n setTime({ ...time, Days: value });\n };\n const selectHours = (value) => {\n setTime({ ...time, Hours: value });\n };\n const selectMinutes = (value) => {\n setTime({ ...time, Minutes: value });\n };\n\n const getSelectedTime = () => {\n let dd = 0,\n hh = 0;\n let button = \"\";\n\n if (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0) {\n button = i18n.t(\"Select time\");\n }\n\n if (time?.Days > 0) {\n if (time?.Days === 1) {\n dd = time.Days;\n button += time.Days + i18n.t(\"day\");\n }\n if (time?.Days >= 2) {\n dd = time.Days;\n button += time.Days + i18n.t(\"days\");\n }\n }\n if (time?.Hours > 0) {\n button += dd >= 1 ? \", \" : \"\";\n if (time?.Hours === 1) {\n hh = time.Hours;\n button += time.Hours + i18n.t(\"hour\");\n }\n if (time?.Hours >= 2) {\n hh = time.Hours;\n button += time.Hours + i18n.t(\"hours\");\n }\n }\n if (time?.Minutes > 0) {\n button += hh >= 1 ? \", \" : \"\" || dd >= 1 ? \",\" : \"\";\n if (time?.Minutes === 1) {\n button += time.Minutes + i18n.t(\"minute\");\n }\n if (time?.Minutes >= 2) {\n button += time.Minutes + i18n.t(\"minutes\");\n }\n }\n\n return button;\n };\n return (\n <>\n
\n
\n
\n \n
\n
\n
\n
\n 0 ? time?.Days : i18n.t(\"select days\")}\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n showSearch\n size=\"large\"\n placeholder={i18n.t(\"select days\")}\n optionFilterProp=\"children\"\n onChange={selectDay}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n options={Days}\n />\n
\n
\n
\n
\n 0 ? time?.Hours : i18n.t(\"select hours\")}\n style={{ width: \"150px\" }}\n showSearch\n size=\"large\"\n placeholder={i18n.t(\"select hours\")}\n optionFilterProp=\"children\"\n onChange={selectHours}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={Hours}\n />\n
\n
\n
\n
\n 0 ? time?.Minutes : i18n.t(\"select minutes\")\n }\n style={{ width: \"150px\" }}\n size=\"large\"\n showSearch\n placeholder={i18n.t(\"select minutes\")}\n optionFilterProp=\"children\"\n onChange={selectMinutes}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={Minutes}\n />\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n {getSelectedTime()}\n \n\n \n {t(\"Reset Time\")}\n \n
\n
\n
\n \n );\n};\n\nexport default ChooseTime;\n","import React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport SearchArea from \"../common/Search\";\nimport PriceInput from \"components/useForm/PriceInput\";\nimport CitiesList from \"../areas/components/CitiesList\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport ChooseTime from \"../common/ChooseTime\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport TextInput from \"components/TextInput\";\nconst AddNewAreas = ({ onClose }) => {\n const dispatch = useDispatch();\n const [openAreas, setOpenAreas] = useState(false);\n const { selectedAreas, areaData, customAllAreas, selectedStore } =\n useSelector((state) => state.AreasReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const { t } = useTranslation();\n const [searchTerm, setSearch] = useState(\"\");\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n });\n const [time, setTime] = useState({\n Hours: 0,\n Minutes: 0,\n Days: 0,\n });\n const handleValues = async (key, value) => {\n setState({ ...state, [key]: value });\n };\n\n const getUpdatedAreas = UTILS.withTryCatch(async (storeID) => {\n const userDetail = UTILS.getCurrentUser();\n const updateAreas = await UTILS.UpdatedAreas(\n storeID,\n userDetail.brandId,\n userDetail.token\n );\n const filteredAreasList = await UTILS.filteredAreasList(\n areaData,\n updateAreas\n );\n dispatch(AreasAction.setAddedAreas(updateAreas));\n dispatch(AreasAction.setcustomeAddedAreas(filteredAreasList));\n onClose();\n dispatch(LoaderAction.setLoading(false));\n });\n\n let isValid = () => {\n if (\n isLoading ||\n state.minOrder === \"\" ||\n state.deliveryFee === \"\" ||\n selectedAreas?.length <= 0 ||\n (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0)\n )\n return false;\n return true;\n };\n\n const addAreas = UTILS.withTryCatch(async () => {\n dispatch(LoaderAction.setLoading(true));\n let delTime = time.Days * 1440 + time.Hours * 60 + time.Minutes;\n const storeID = selectedStore.value;\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedAreas?.forEach((area) => {\n objectArray.push({\n cityID: area.cityID,\n areaID: area._id,\n countryID: area.countryID,\n storeId: storeID,\n brandId: userDetail.brandId,\n });\n });\n\n const result = await API.ADD_STORE_AREA({\n areas: objectArray,\n minOrder: Number(state.minOrder),\n deliveryFee: Number(state.deliveryFee),\n deliveryTime: Number(delTime),\n token: userDetail.token,\n language: currentLanguage,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(result.message));\n dispatch(AreasAction.updateSelectedArea([]));\n } else {\n dispatch(LoaderAction.setLoading(false));\n UTILS.errorNotification(t(errorHandler(result)));\n }\n getUpdatedAreas(storeID);\n });\n\n const handleSearch = (key, val) => {\n setSearch(val.toLowerCase());\n if (val !== \"\") {\n setOpenAreas(true);\n } else {\n setOpenAreas(false);\n }\n };\n\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleValues(key, value);\n };\n\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Add delivery areas\")}\n

\n
\n
\n \n \n \n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n \n
\n
\n {areaData?.map((country) => {\n return country?.cities?.map((city, index) => {\n console.log(\"city\", city);\n return (\n \n );\n });\n })}\n
\n
\n
\n
\n
\n {t(\"I can't find an area (please contact support)\")}\n
\n
\n \n {t(\"Add Areas\")}\n \n
\n
\n
\n
\n
\n );\n};\n\nAddNewAreas.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddNewAreas;\n","import React from \"react\";\nimport { Button, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction DeleteAreasModal({ isLoading, selectedAreas, onClose, deleteAreas }) {\n const { t } = useTranslation();\n return (\n
\n \n
\n
\n {selectedAreas && selectedAreas?.length === 1 ? (\n

\n {t(`Are you sure want to delete selected area`)}\n

\n ) : (\n

\n {t(\"Are you sure want to delete selected areas\")}\n

\n )}\n
\n
\n {t(\"They will be removed from this outlet’s delivery reach.\")}\n
\n
\n \n \n
\n
\n
\n
\n );\n}\n\nexport default DeleteAreasModal;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { AreasAction, LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport DeleteAreasModal from \"../common/DeleteAreasModal\";\nconst AddCategory = ({ onClose, selectedAreas, setSelectedRowsKeys }) => {\n const dispatch = useDispatch();\n const { areaData } = useSelector((state) => state.AreasReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const getUpdatedAreas = async () => {\n setSelectedRowsKeys([]);\n const userDetail = UTILS.getCurrentUser();\n const updateAreas = await UTILS.UpdatedAreas(\n selectedAreas[0].storeId,\n userDetail.brandId,\n userDetail.token\n );\n\n const filteredAreasList = await UTILS.filteredAreasList(\n areaData,\n updateAreas\n );\n dispatch(AreasAction.setcustomeAddedAreas(filteredAreasList));\n dispatch(AreasAction.setAddedAreas(updateAreas));\n dispatch(LoaderAction.setLoading(false));\n onClose();\n };\n const deleteAreas = async () => {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedAreas.forEach((area) => {\n objectArray.push({\n cityID: area.cityID._id,\n areaID: area.areaID._id,\n countryID: area.countryID._id,\n storeId: area.storeId,\n brandId: area.brandId,\n });\n });\n\n const result = await API.DELETE_STORE_AREA({\n areas: objectArray,\n token: userDetail.token,\n language: currentLanguage,\n });\n if (result?.success === 1) {\n UTILS.successNotification(result.message);\n dispatch(AreasAction.updateSelectedArea([]));\n } else {\n dispatch(LoaderAction.setLoading(true));\n UTILS.errorNotification(errorHandler(result));\n }\n getUpdatedAreas();\n };\n\n return (\n \n );\n};\n\nAddCategory.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddCategory;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport TextInput from \"components/TextInput\";\nimport ChooseTime from \"./ChooseTime\";\nimport PriceInput from \"components/useForm/PriceInput\";\n\nfunction UpdateAreaModal({\n isLoading,\n selectedAreas,\n onClose,\n editAreas,\n state,\n handleInputValue,\n handleValues,\n isValid,\n time,\n setTime,\n}) {\n const { t } = useTranslation();\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Edit\")} {`${selectedAreas?.length ?? \"\"} `}\n {t(\"Areas\")}\n

\n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n \n
\n
\n
\n
\n );\n}\n\nexport default UpdateAreaModal;\n","import { API } from \"api\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport UpdateAreaModal from \"../common/UpdateAreaModal\";\nimport { calculateDeliveryTimeInMins, isValidInputFields } from \"../helpers\";\nimport { errorNotification } from \"utils/Utils\";\n\nconst UpdateAreas = ({ onClose, selectedAreas, setSelectedRowsKeys }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n\n const handleValues = (key, val) => setState({ ...state, [key]: val });\n\n const getUpdatedAreas = UTILS.withTryCatch(async () => {\n setSelectedRowsKeys([]);\n const userDetail = UTILS.getCurrentUser();\n const updateAreas = await UTILS.UpdatedAreas(\n selectedAreas[0].storeId,\n userDetail.brandId,\n userDetail.token\n );\n dispatch(AreasAction.setAddedAreas(updateAreas));\n onClose();\n dispatch(LoaderAction.setLoading(false));\n });\n\n const editAreas = UTILS.withTryCatch(async () => {\n const { error, isValid } = isValidInputFields({\n isLoading,\n state,\n selectedAreas,\n });\n if (!isValid) {\n errorNotification(error);\n return;\n }\n\n dispatch(LoaderAction.setLoading(true));\n const deliveryTimeInMins = calculateDeliveryTimeInMins({\n deliveryTime: state.deliveryTime,\n });\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedAreas.forEach((area) => {\n objectArray.push({\n cityID: area.cityID._id,\n areaID: area.areaID._id,\n countryID: area.countryID._id,\n storeId: area.storeId,\n brandId: area.brandId,\n });\n });\n\n const result = await API.UPDATE_STORE_AREA({\n areas: objectArray,\n minOrder: Number(state.minOrder),\n deliveryFee: Number(state.deliveryFee),\n deliveryTime: Number(deliveryTimeInMins),\n token: userDetail.token,\n language: currentLanguage,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(result.message));\n dispatch(AreasAction.updateSelectedArea([]));\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n getUpdatedAreas();\n });\n\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleValues(key, value);\n };\n\n return (\n handleValues(\"deliveryTime\", val),\n }}\n />\n );\n};\n\nexport default UpdateAreas;\n","import { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { useEffect } from \"react\";\nconst useAllStores = () => {\n const { t } = useTranslation();\n const [stores, setStores] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const getCurrentUserStores = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_CRRENT_USER_STORES({\n token: userDetail.token,\n });\n if (result?.success === 1 && UTILS.isValidObject([\"data\"], result)) {\n if (result?.data?.length > 0) {\n convertStoresToSelectInputArray(result.data);\n } else {\n setLoading(false);\n setStores([]);\n }\n } else {\n setLoading(false);\n UTILS.errorNotification(t(\"Please try again later\"));\n }\n };\n\n const convertStoresToSelectInputArray = (data) => {\n console.log(\"convertStoresToSelectInputArray\", data);\n setStores(\n data.map((item, index) => ({\n value: item.baseLanguage ? item._id : item?.storeId._id,\n label: item.baseLanguage\n ? item.baseLanguage.name\n : item?.storeId?.baseLanguage?.name,\n key: index,\n isDineInEnabled: item.isDineInEnabled,\n storeLocation: item.storeLocation,\n }))\n );\n setLoading(false);\n };\n\n useEffect(() => {\n getCurrentUserStores();\n return () => {\n setStores([]);\n };\n }, []);\n\n return { stores, loading, setLoading };\n};\n\nexport default useAllStores;\n","import React from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst BackButton = () => {\n const router = useHistory();\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n return (\n
\n router.goBack()}\n >\n \n \n \n \n \n {t(\"BACK\")}\n \n
\n );\n};\n\nexport default BackButton;\n","import React from \"react\";\n\nfunction PlusIcon() {\n return (\n \n \n \n \n \n );\n}\n\nexport default PlusIcon;\n","import moment from \"moment\";\nimport React from \"react\";\nimport i18n from \"../../../i18n\";\nconst RenderTime = ({ val, row, index }) => {\n var duration = moment.duration(val, \"minutes\");\n let days = Math.floor(duration.asDays());\n let hours = duration.hours();\n let minutes = duration.minutes();\n\n const SelectedTime = () => {\n let button = \"\";\n let dd = 0,\n hh = 0;\n if (days === 0 && hours === 0 && minutes === 0) {\n button = \"\";\n }\n\n if (days > 0) {\n if (days === 1) {\n dd = days;\n button += days + i18n.t(\"day\");\n }\n if (days >= 2) {\n dd = days;\n button += days + i18n.t(\"days\");\n }\n }\n if (hours > 0) {\n button += dd >= 1 ? \", \" : \"\";\n if (hours === 1) {\n hh = hours;\n button += hours + i18n.t(\"hour\");\n }\n if (hours >= 2) {\n hh = hours;\n button += hours + i18n.t(\"hours\");\n }\n }\n if (minutes > 0) {\n button += hh >= 1 ? \", \" : \"\" || dd >= 1 ? \", \" : \"\";\n if (minutes === 1) {\n button += minutes + i18n.t(\"minute\");\n }\n if (minutes >= 2) {\n button += minutes + i18n.t(\"minutes\");\n }\n }\n\n return button;\n };\n\n return (\n <>\n \n \n );\n};\n\nexport default RenderTime;\n","import React, { useEffect, useState, useMemo } from \"react\";\nimport { Table, Button, Spin, Select } from \"antd\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Modal from \"components/Modal\";\nimport AddNewAreas from \"../../modals/AddNewAreas\";\nimport DeleteArea from \"../../modals/DeleteArea\";\nimport UpdateAreas from \"../../modals/UpdateAreas\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport useUserType from \"hooks/useUserType\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport { AreasAction } from \"redux/actions\";\nimport BackButton from \"components/BackButton\";\nimport PlusIcon from \"features/icons/PlusIcon\";\nimport RenderTime from \"features/shipping_methods/common/RenderTime\";\nfunction AreasTable() {\n const dispatch = useDispatch();\n const userType = useUserType() || UTILS.getCurrentUser()?.userType;\n const { addedAreas, selectedStore } = useSelector(\n (state) => state.AreasReducer\n );\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [searchTerm, setSearch] = useState(\"\");\n const [open, setOpen] = useState(false);\n const [dialogContentId, setDialogContentId] = useState(-1);\n const [selectedRowKeys, setSelectedRowsKeys] = useState([]);\n const [selectedDataRows, setSelectedDataRows] = useState({});\n const { stores } = useAllStores();\n const { t } = useTranslation();\n const [data, setData] = useState([]);\n\n const columns = [\n {\n key: \"areaID\",\n title: t(\"Area Name\"),\n dataIndex: \"areaName\",\n sorter: (a, b) =>\n a?.areaID?.areaNameEN?.localeCompare(b?.areaID?.areaNameEN),\n render: (val, row, index) => {\n return row?.areaID?.[`areaName${currentLanguage}`];\n },\n },\n\n {\n key: \"cityID\",\n title: t(\"City Name\"),\n sorter: (a, b) =>\n a?.cityID?.cityNameEN?.localeCompare(b?.cityID?.cityNameEN),\n dataIndex: \"cityName\",\n render: (val, row, index) => {\n return row?.cityID?.[`cityName${currentLanguage}`];\n },\n },\n\n {\n key: \"minOrder\",\n title: t(\"Min. Basket Value\"),\n dataIndex: \"minOrder\",\n sorter: {\n compare: (a, b) => a.minOrder - b.minOrder,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n\n {\n key: \"deliveryFee\",\n title: t(\"Delivery Fee\"),\n dataIndex: \"deliveryFee\",\n sorter: {\n compare: (a, b) => a.deliveryFee - b.deliveryFee,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n\n {\n key: \"deliveryTime\",\n title: t(\"Delivery Time\"),\n dataIndex: \"deliveryTime\",\n sorter: {\n compare: (a, b) => a.deliveryTime - b.deliveryTime,\n multiple: 3,\n },\n render: (val, row, index) => {\n return ;\n },\n },\n ];\n\n const DG_CONTENT_ID = {\n ADD_AREA: 0,\n DELETE_AREA: 1,\n UPDATE_AREA: 2,\n ADD_ITEM_TO_AREA: 3,\n };\n\n const onSelectChange = () => {\n setSelectedRowsKeys(selectedRowKeys);\n };\n const onClose = () => {\n setOpen(false);\n setSelectedRowsKeys([]);\n };\n const COMPONENTS_MAP = {\n 0: ,\n 1: (\n \n ),\n 2: (\n \n ),\n };\n\n const renderModalContent = () => COMPONENTS_MAP[dialogContentId] || null;\n const Items = useMemo(() => {\n const lowerCasedSearchTerm = searchTerm?.toLowerCase();\n if (!lowerCasedSearchTerm) {\n return data;\n }\n\n return data?.filter((item) => {\n const { areaID, cityID } = item;\n const matchesSearchTerm =\n (areaID?.areaNameEN || cityID?.cityNameEN || \"\")\n .toLowerCase()\n .includes(lowerCasedSearchTerm) ||\n (areaID?.areaNameAR || cityID?.cityNameAR || \"\")\n .toLowerCase()\n .includes(lowerCasedSearchTerm);\n\n return matchesSearchTerm;\n });\n }, [data, searchTerm]);\n\n useEffect(() => {\n const data = [];\n addedAreas?.forEach((item, index) => {\n data.push({\n ...item,\n key: index,\n });\n });\n setData(data);\n }, [addedAreas]);\n\n const rowSelection = {\n selectedRowKeys: selectedRowKeys,\n onChange: (selectedRowKeys, selectedRows) => {\n setSelectedDataRows(selectedRows);\n setSelectedRowsKeys(selectedRowKeys);\n },\n onSelectAll: (selected, selectedRows, changeRows) => {\n if (selectedRowKeys.length !== 0) {\n setSelectedRowsKeys([]);\n }\n },\n };\n\n const handSearch = (e) => {\n setSearch(e.target.value);\n };\n\n const deleteArea = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.DELETE_AREA);\n };\n const editArea = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.UPDATE_AREA);\n };\n const addArea = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.ADD_AREA);\n };\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n dispatch(AreasAction.setStore(value));\n };\n\n const areaCount = data?.length || 0;\n const areaText = `${areaCount} ${t(areaCount <= 1 ? \"Area\" : \"Areas\")}`;\n return (\n <>\n
\n \n
\n
\n \n
\n

{t(\"Select store\")}

\n
\n
\n \n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n options={stores}\n />\n
\n {selectedStore && (\n
\n {/*
\n \n history.push(\"/app/dashboard/add-map-area\")\n }\n className=\"font-montserrat px-5 border border-transparent shadow-sm font-medium rounded-sm text-white h-10 focus:outline-none\"\n >\n \n \n \n \n {t(\"Add map areas\")}\n \n \n
*/}\n\n
\n addArea()}\n className=\"font-montserrat px-5 border border-transparent shadow-sm font-medium rounded-sm text-white h-10 focus:outline-none\"\n >\n \n \n \n \n {t(\"Add delivery areas\")}\n \n \n
\n
\n )}\n
\n
\n\n {selectedStore && (\n <>\n setOpen(false)}\n responsiveClass=\"w-full lg:w-full xl:w-4/5 2xl:2/3\"\n >\n {renderModalContent()}\n \n
\n
\n

\n {areaText}\n

\n
\n\n
\n
\n {selectedRowKeys?.length > 0 && (\n <>\n \n {t(\"Edit\")} ({selectedRowKeys.length})\n \n\n \n {t(\"Delete\")} ({selectedRowKeys.length})\n \n \n )}\n
\n\n
\n \n \n \n \n
\n
\n
{\" \"}\n
\n \n
\n \n )}\n
\n
\n \n );\n}\n\nexport default AreasTable;\n","import React, { useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { apiSlice } from \"redux/Api.Slice\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport PageHeading from \"components/PageHeading\";\nimport AreasTable from \"../components/AeasTable\";\nimport { AreasAction } from \"redux/actions\";\nimport { LoaderAction } from \"redux/actions\";\n\nconst ManageAreas = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [trigger] = apiSlice.endpoints.getBuisnessAreas.useLazyQuery();\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const getBussinessAreas = UTILS.withTryCatch(async () => {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await trigger();\n if (data?.success === 1 && data?.data) {\n getDeliveryAreas(data.data);\n dispatch(AreasAction.setFetchedAreas(data.data));\n } else {\n console.error(\"areas error\", data);\n }\n dispatch(LoaderAction.setLoading(false));\n });\n\n const getDeliveryAreas = UTILS.withTryCatch(async (areaData) => {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n if (userDetail?.brandId && selectedStore?.value) {\n const addedAreas = await UTILS.UpdatedAreas(\n selectedStore.value,\n userDetail.brandId\n );\n if (addedAreas) {\n dispatch(AreasAction.setAddedAreas(addedAreas));\n const filteredAreasList = UTILS.getFilteredAreasList(\n areaData,\n addedAreas\n );\n\n if (filteredAreasList) {\n dispatch(AreasAction.setcustomeAddedAreas(filteredAreasList));\n }\n }\n }\n dispatch(LoaderAction.setLoading(false));\n });\n\n useEffect(() => {\n getBussinessAreas();\n }, [selectedStore?.value]);\n\n return (\n
\n \n
\n \n
\n
\n );\n};\nManageAreas.propTypes = {\n store: PropTypes.object,\n};\nexport default ManageAreas;\n","import PageHeading from \"components/PageHeading\";\nimport DashboardBranchesTable from \"features/dashboard/components/DashboardBranchesTable\";\nimport React from \"react\";\nimport { useHistory } from \"react-router\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\nimport useUserType from \"hooks/useUserType\";\nimport useCatalogue from \"hooks/useCatalogue\";\nconst StoreList = () => {\n const router = useHistory();\n const userType = useUserType();\n const { t } = useTranslation();\n const catelougeType = useCatalogue();\n\n const addStore = () => {\n router.push(\"/app/dashboard/addstore\");\n };\n return (\n
\n \n
\n
\n
\n

{t(\"Manage Stores\")}

\n

\n {t(\n \"Add, Update Stores, You can also OFF store to not accept any online order\"\n )}\n

\n
\n
\n {catelougeType?.showStore &&\n !catelougeType?.isLoading &&\n userType === \"BRAND-ADMIN\" ? (\n addStore()}\n >\n {t(\"Add Store\")}\n \n ) : null}\n
\n
\n \n
\n
\n );\n};\nexport default StoreList;\n","import React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst OrderTabs = (props) => {\n const [activeTab, setActiveTab] = useState(\"Pending\");\n const menus = [\n {\n id: \"Pending\",\n label: \"Pending\",\n },\n {\n id: \"Preparing\",\n label: \"Preparing\",\n },\n {\n id: \"On The Way\",\n label: \"On The Way / Ready\",\n },\n {\n id: \"Scheduled\",\n label: \"Scheduled\",\n },\n {\n id: \"Refunds\",\n label: \"Order Refunds\",\n },\n ];\n const { t } = useTranslation();\n const ORDER_STATUS = {\n PENDING: \"PENDING\",\n PREPARING: \"PREPARING\",\n ON_THE_WAY: \"ON_THE_WAY\",\n COMPLETE: \"COMPLETE\",\n CANCELED: \"CANCELLED\",\n REJECTED: \"REJECTED\",\n SCHEDULED: \"SCHEDULED\",\n REFUND: \"REFUND\",\n };\n\n const handleTabClick = (menu) => {\n setActiveTab(menu);\n if (menu === \"Pending\") props.handleTabStatus(ORDER_STATUS.PENDING);\n else if (menu === \"Preparing\")\n props.handleTabStatus(ORDER_STATUS.PREPARING);\n else if (menu === \"On The Way\")\n props.handleTabStatus(ORDER_STATUS.ON_THE_WAY);\n else if (menu === \"Scheduled\")\n props.handleTabStatus(ORDER_STATUS.SCHEDULED);\n else if (menu === \"Refunds\") props.handleTabStatus(ORDER_STATUS.REFUND);\n };\n\n const getStyleForSelectedTab = (activeTab) => {\n switch (activeTab) {\n case \"Pending\":\n return \"bg-white border-t-4 border-theme-red font-semibold \";\n case \"Preparing\":\n return \"bg-white border-t-4 border-green-600 font-semibold \";\n case \"On The Way\":\n return \"bg-white border-t-4 border-yellow-500 font-semibold \";\n case \"Scheduled\":\n return \"bg-white border-t-4 border-theme-red font-semibold \";\n case \"Refunds\":\n return \"bg-white border-t-4 border-theme-red font-semibold \";\n default:\n break;\n }\n };\n\n const getPendingOrders = (status) => {\n if (\n UTILS.isValidObject([\"pendingOrdersCount\"], props.orderCountData) &&\n Array.isArray(props.orderCountData.pendingOrdersCount)\n ) {\n for (\n let index = 0;\n index < props.orderCountData.pendingOrdersCount.length;\n index++\n ) {\n const element = props.orderCountData.pendingOrdersCount[index];\n if (\n UTILS.isValidObject([\"orderStatus\"], element) &&\n element.orderStatus === status\n ) {\n return element.count;\n }\n }\n return \"0\";\n }\n };\n\n const getRefundableOrders = () => {\n console.log(\n \"props.refundableOrdersCountData\",\n props.refundableOrdersCountData?.orders?.refundableOrdersCount\n );\n if (\n props.refundableOrdersCountData?.orders?.refundableOrdersCount &&\n Array.isArray(\n props.refundableOrdersCountData?.orders?.refundableOrdersCount\n )\n ) {\n return props.refundableOrdersCountData?.orders?.refundableOrdersCount?.reduce(\n (acc, statusCount) => {\n return statusCount.count + acc;\n },\n 0\n );\n }\n return \"0\";\n };\n\n const getOrderCountComponent = (menu) => {\n switch (menu) {\n case \"Pending\":\n return (\n \n {getPendingOrders(ORDER_STATUS.PENDING)}\n \n );\n case \"Preparing\":\n return (\n \n {getPendingOrders(ORDER_STATUS.PREPARING)}\n \n );\n case \"On The Way\":\n return (\n \n {getPendingOrders(ORDER_STATUS.ON_THE_WAY)}\n \n );\n case \"Scheduled\":\n return (\n \n {getPendingOrders(ORDER_STATUS.SCHEDULED)}\n \n );\n\n case \"Refunds\":\n const refundableCount = getRefundableOrders();\n return (\n \n {refundableCount}\n \n );\n default:\n break;\n }\n };\n const TabButtons = ({ activeTab }) => {\n return (\n \n );\n };\n\n TabButtons.propTypes = {\n activeTab: PropTypes.string,\n };\n return (\n
\n \n
\n );\n};\n\nOrderTabs.propTypes = {\n orderCountData: PropTypes.object,\n handleTabStatus: PropTypes.func,\n};\n\nexport default OrderTabs;\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nimport { LoaderAction } from \"redux/actions\";\nimport { ErrorAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { LogisticAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport i18n from \"../../i18n\";\nimport { logToSentry } from \"utils/Utils\";\n\nconst postConfig = {\n query: (body) => ({\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n\nconst LogisticService = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n getOrderInfoById: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_ORDER_INFO_BY_ID,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data?.fetchedOrder) {\n dispatch(LogisticAction.setOrderInfo(data.data.fetchedOrder));\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n getYandexPickupSlots: builder.mutation({\n query: (body) => ({\n url: URL.GET_TIME_SLOTS,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n }),\n getYandexDeliveryMethods: builder.mutation({\n query: (body) => ({\n url: URL.GET_YANDEX_DELIVERY_METHODS,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n dispatch(ErrorAction.setError(null));\n dispatch(LogisticAction.clearData());\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n let availableTariffs =\n data?.data?.express_delivery?.available_tariffs;\n let isArrayAndNotEmpty =\n Array.isArray(availableTariffs) && availableTariffs?.length >= 1;\n if (isArrayAndNotEmpty && data?.data?.express_delivery?.allowed) {\n dispatch(LogisticAction.setVehicleTypes(availableTariffs));\n const isCourierAvailable = availableTariffs?.find(\n (item) => item.name === \"courier\"\n );\n if (isCourierAvailable) {\n const selectedvehicleType =\n getState().LogisticReducer?.selectedvehicleType;\n if (!selectedvehicleType) {\n dispatch(LogisticAction.setSelectedVehicleType(\"COURIER\"));\n }\n }\n if (!isCourierAvailable) {\n logToSentry(\n \"yanex courier(Motor Bike) is not available in availableTariffs\"\n );\n }\n } else {\n dispatch(LogisticAction.setBtn(true));\n UTILS.handleErrorNotification(\n i18n.t(\n \"Sorry, YANGO isn’t serving at the moment, please try again after few minutes\"\n )\n );\n }\n } else {\n dispatch(LogisticAction.setBtn(true));\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n dispatch(LogisticAction.setBtn(true));\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n createYandexClaim: builder.mutation({\n query: (body) => ({\n url: URL.CREATE_CLAIM,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(ErrorAction.setError(null));\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data?.message);\n dispatch(LogisticAction.setSelectedVehicleType(null));\n } else {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n confirmYandexClaim: builder.mutation({\n query: (body) => ({\n url: URL.CONFIRM_CLAIM,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data?.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n getYandexClaimInfo: builder.mutation({\n query: (body) => ({\n url: URL.CLAIM_INFO,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(ErrorAction.setError(null));\n\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (\n data?.success === 1 &&\n data?.data?.logisticPartnerMetadata?.YANDEX?.claimInformation\n ) {\n let claimInfo =\n data?.data?.logisticPartnerMetadata?.YANDEX?.claimInformation;\n dispatch(LogisticAction.setClaimInfo(claimInfo));\n } else {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n setTimeout(() => {\n dispatch(LoaderAction.setLoading(false));\n }, 5000);\n },\n }),\n cancelYandexClaim: builder.mutation({\n query: (body) => ({\n url: URL.CANCEL_CLAIM,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(ErrorAction.setError(null));\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data?.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n getYandexExpressRiderInfo: builder.mutation({\n query: (body) => ({\n url: URL.GET_YANDEX_EXPRESS_RIDER_INFO,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n } else {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n }),\n});\nexport const {\n useGetOrderInfoByIdMutation,\n useGetYandexPickupSlotsMutation,\n useCreateYandexClaimMutation,\n useConfirmYandexClaimMutation,\n useCancelYandexClaimMutation,\n useGetYandexClaimInfoMutation,\n useGetYandexDeliveryMethodsMutation,\n useGetYandexExpressRiderInfoMutation,\n} = LogisticService;\nexport default LogisticService;\n","import { Button, Form, Input, InputNumber, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nconst RefundForm = ({ closeModal, onSubmit, loading, order }) => {\n const { t } = useTranslation();\n const [form] = Form.useForm();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const handleSubmit = (values) => {\n const { reason, amount } = values;\n onSubmit({\n order,\n reason,\n amount,\n });\n };\n return (\n \n
\n
\n
\n
\n

{t(\"Refund Order\")}

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{t(\"Order\")} #\n {order?.orderNumber}\n
{t(\"Status\")}\n {order?.orderStatus}\n
\n {t(\"Max Allowed (Order Total Price)\")}\n \n {new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(order?.totalOrderPrice || 0)}\n
{t(\"Store\")}\n {order?.storeInfo.baseLanguage.name}\n
\n {t(\"Whatsapp Number\")}\n \n {order?.userInfo?.phoneNumber}\n
\n\n
\n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n \n {t(\"Cancel\")}\n \n \n {t(\"Submit\")}\n \n
\n \n
\n
\n
\n
\n
\n );\n};\nexport default RefundForm;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Tooltip } from \"antd\";\nimport { Info } from \"@material-ui/icons\";\nimport { useTranslation } from \"react-i18next\";\nfunction DeliveyFeeInfo({ order }) {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n console.log(currentLanguage);\n\n return (\n <>\n <>\n {order?.orderType?.type === \"DELIVERY\" ? (\n <>\n {order?.deliveryChargesWaiverInfo?.onOrderAmount?.isEnabled ===\n true && order?.deliveryFee === 0 ? (\n \n \n \n \n {t(\"Delivery Charges AED\")}\n \n \n {order?.deliveryFee}\n \n \n \n ) : order?.deliveryChargesWaiverInfo?.onDateRange?.isEnabled ===\n true && order?.deliveryFee === 0 ? (\n \n \n \n \n {t(\"Delivery Charges AED\")}\n \n \n {order?.deliveryFee}\n \n \n \n ) : (\n <>\n \n {t(\"Delivery Charges AED\")}\n \n \n {order?.deliveryFee}\n \n \n )}\n \n ) : null}\n \n \n );\n}\n\nexport default DeliveyFeeInfo;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport DeliveryFeeInfo from \"./DeliveyFeeInfo\";\nimport { useSelector } from \"react-redux\";\n\nconst TableItemsDetail = (props) => {\n const { t } = useTranslation();\n\n const getSubTotal = () => {\n if (props?.order?.discountApplied?.discountAmountAvailedByCustomer) {\n return (\n props?.order?.itemsTotalPrice +\n props?.order?.discountApplied?.discountAmountAvailedByCustomer\n )?.toFixed(2);\n }\n if (props?.order?.loyaltyApplied?.redeemAmount) {\n return (\n props?.order?.itemsTotalPrice +\n props?.order?.loyaltyApplied?.redeemAmount\n )?.toFixed(2);\n }\n return props?.order?.itemsTotalPrice?.toFixed(2);\n };\n\n const getItemRow = (index, item) => {\n return (\n \n \n {item.quantity + \"x\"}\n \n \n {getItemInfo(item)}\n \n {item.price?.toFixed(2)}\n \n );\n };\n const getItemInfo = (item) => {\n return (\n
\n

{item?.baseLanguage?.title}

\n

\n {item?.sections &&\n Array.isArray(item.sections) &&\n item?.sections.map((m, index) => {\n return getModifiersInfo(m, index);\n })}\n

\n
\n );\n };\n\n const getModifiersInfo = (modifier, index) => {\n return (\n
\n

\n {modifier?.baseLanguage?.sectionName}\n

\n

\n {modifier &&\n modifier?.options.map((op, index) => {\n return getOptions(op, index);\n })}\n

\n
\n );\n };\n\n const getOptions = (op, index) => {\n return (\n
\n

\n {`${op?.baseLanguage?.optionName} ${\"( \"}${op?.price?.toFixed(2)} \n ${t(\"AED\")} ${\")\"}`}\n \n {t(\"Quantity\")}: {op?.quantity ? op?.quantity : 1}\n \n

\n
\n );\n };\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n return (\n
\n \n \n {props?.order &&\n props?.order?.orderedMenu?.map((item, index) => {\n return getItemRow(index, item);\n })}\n \n \n {t(\"Sub Total AED\")}\n \n\n \n {getSubTotal()}\n \n \n {props?.order?.discountApplied?.discountAmountAvailedByCustomer ? (\n \n \n {t(\"Discount Amount AED\")}\n \n \n {\" - \"}\n {props?.order?.discountApplied?.discountAmountAvailedByCustomer?.toFixed(\n 2\n )}\n \n \n ) : null}\n {props?.order?.loyaltyApplied?.redeemAmount ? (\n \n \n {t(\"Loyalty Discount AED\")}\n \n \n {\" - \"}\n {props?.order?.loyaltyApplied?.redeemAmount?.toFixed(2)}\n \n \n ) : null}\n\n \n \n \n {t(\"Value Added Tax\")}\n \n \n {props?.order?.taxRate + \"%\"}\n \n \n \n \n {t(\"Final Total AED\")}\n \n \n {props?.order?.totalOrderPrice?.toFixed(2)}\n \n \n \n
\n
\n );\n};\n\nTableItemsDetail.propTypes = {\n order: PropTypes.object,\n};\nexport default TableItemsDetail;\n","import React, { useEffect, useState } from \"react\";\nimport { Button } from \"antd\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst DeliveryPartner = ({ order, setLoading, getOrderInfoById }) => {\n const { t } = useTranslation();\n const [disabled, setDisabled] = useState();\n const sendOrder = async () => {\n if (!UTILS.validateTalabat(order)) {\n } else {\n setLoading(true);\n try {\n const result = await API.SEND_ORDER_TO_TALABAT({\n storeId: order.storeId,\n brandId: order.brandId,\n orderId: order._id,\n coldbagNeeded: false,\n serviceName: \"TALABAT\",\n });\n\n if (result?.success === 1) {\n UTILS.successNotification(result.message);\n } else {\n UTILS.errorNotification(result.message ?? \"something went wrong\");\n }\n } catch (error) {\n UTILS.errorNotification(error.message ?? \"something went wrong\");\n } finally {\n getOrderInfoById(order._id);\n setLoading(false);\n }\n }\n };\n useEffect(() => {\n if (UTILS.OdrAlrdySndToTalabat(order)) {\n setDisabled(true);\n } else setDisabled(false);\n }, [order]);\n\n return (\n <>\n
\n \n {t(\"Send Order To TALABAT\")}\n \n
\n \n );\n};\n\nexport default DeliveryPartner;\n","import React, { useState } from \"react\";\nimport { Button } from \"antd\";\nimport moment from \"moment\";\nimport { useTranslation } from \"react-i18next\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nconst CheckDeliveryFee = ({ order, opertation, setLoading }) => {\n const { t } = useTranslation();\n const [data, setData] = useState(null);\n const fetchData = async () => {\n if (!UTILS.validateTalabat(order)) {\n } else {\n setLoading(true);\n let result = \"\";\n try {\n if (opertation === \"fee\") {\n result = await API.CHECK_TALABAT_DELIVERY_FEE({\n storeId: order.storeId,\n brandId: order.brandId,\n restheroOrderId: order._id,\n });\n } else if (opertation === \"time\") {\n result = await API.CHECK_TALABAT_DELIVERY_TIME({\n storeId: order.storeId,\n brandId: order.brandId,\n restheroOrderId: order._id,\n });\n }\n\n if (result?.success === 1 && result?.data) {\n setData(result.data);\n UTILS.successNotification(\"Information fetched Sucessfully\");\n } else if (result?.success === 0) {\n UTILS.errorNotification(result.message ?? \"something went wrong\");\n }\n } catch (error) {\n UTILS.errorNotification(error.message ?? \"something went wrong\");\n }\n setLoading(false);\n }\n };\n\n let renderButton = {\n fee: {t(\"Check Estimated Delivery Fee From TALABAT\")},\n time: (\n {t(\"Check Estimated Pickup and Delivery Time From TALABAT\")}\n ),\n };\n return (\n
\n {data && (\n \n \n \n \n \n {data?.estimated_delivery_fee && (\n \n \n \n \n )}\n {data?.estimated_pickup_time && (\n \n \n \n \n )}\n {data?.estimated_delivery_time && (\n \n \n \n \n )}\n
{t(\"Order\")} #\n {data?.client_order_id}\n
\n {t(\"Estimated Delivery Fee\")}\n \n {`${data?.estimated_delivery_fee} ${t(\"AED\")}`}\n
\n {t(\"Pickup Time\")}\n \n {`${moment(data?.estimated_pickup_time).format(\n \"MMMM Do YYYY, h:mm:ss a\"\n )}`}\n
\n {t(\"Delivery Time\")}\n \n {`${moment(data?.estimated_delivery_time).format(\n \"MMMM Do YYYY, h:mm:ss a\"\n )}`}\n
\n )}\n\n
\n \n
\n
\n );\n};\n\nexport default CheckDeliveryFee;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport moment from \"moment\";\nconst CheckDeliveryFee = ({ order, getOrderInfoById }) => {\n const { t } = useTranslation();\n return (\n
\n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse && (\n \n \n \n \n \n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse && (\n \n \n \n \n )}\n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse && (\n \n \n \n \n )}\n\n <>\n \n \n \n \n \n \n \n \n \n <>\n \n \n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.timeline?.estimated_delivery_time && (\n \n \n )}\n \n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.timeline?.estimated_pickup_time && (\n \n \n \n )}\n \n
{t(\"Order\")} #\n {\n order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.order_id\n }\n
\n {t(\"Client Order Id\")}\n \n {`${order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse?.client_order_id}`}\n
{t(\"Status\")}\n {\n order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.status\n }\n
\n {t(\"Driver\")}\n \n \n {t(\"Name\")}:{\" \"}\n {\n order?.logisticPartnerMetadata?.TALABAT\n ?.orderCallbackResponse?.driver?.name\n }\n
\n {t(\"Phone\")}:{\" \"}\n {\n order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.driver?.phone_number\n }\n
\n {t(\"TimeLine\")}\n \n \n {t(\"Delivery Time\")}:{\" \"}\n {moment(\n order?.logisticPartnerMetadata?.TALABAT\n ?.orderCallbackResponse?.timeline\n ?.estimated_delivery_time\n ).format(\"MMMM Do YYYY, h:mm:ss a\")}\n
\n {t(\"Pickup Time\")}:{\" \"}\n {moment(\n order?.logisticPartnerMetadata?.TALABAT\n ?.orderCallbackResponse?.timeline?.estimated_pickup_time\n ).format(\"MMMM Do YYYY, h:mm:ss a\")}\n
\n )}\n
\n );\n};\n\nexport default CheckDeliveryFee;\n","import React, { useState, useEffect } from \"react\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nconst CancelOrder = ({ order, setLoading, getOrderInfoById }) => {\n const [reason, setReason] = useState();\n const [disabled, setDisabled] = useState();\n const { t } = useTranslation();\n const cancelOrder = async () => {\n if (!UTILS.validateTalabat(order)) {\n } else {\n setLoading(true);\n let result = \"\";\n try {\n result = await API.CANCEL_TALABAT_ORDER({\n storeId: order.storeId,\n brandId: order.brandId,\n orderId: order._id,\n cancelReason: reason,\n });\n if (result?.success === 1) {\n UTILS.successNotification(\n result?.message ?? t(\"Order was successfully cancelled\")\n );\n } else if (result?.success === 0) {\n UTILS.errorNotification(result.message ?? \"something went wrong\");\n }\n } catch (error) {\n UTILS.errorNotification(error.message ?? \"something went wrong\");\n }\n getOrderInfoById(order._id);\n setLoading(false);\n }\n };\n const check = () => {\n if (\n UTILS.ifNotNullAndUndfine(\n order?.logisticPartnerMetadata?.TALABAT?.orderPlaceResponse?.order_id\n ) &&\n UTILS.Undfined(\n order?.logisticPartnerMetadata?.TALABAT?.cancelOrderResponse\n )\n ) {\n return false;\n } else {\n return true;\n }\n };\n useEffect(() => {\n if (!reason || check()) {\n setDisabled(true);\n } else setDisabled(false);\n }, [reason, order]);\n return (\n
\n \n
\n \n {t(\"Cancel Order To TALABAT\")}\n \n
\n
\n );\n};\n\nexport default CancelOrder;\n","import React, { useState } from \"react\";\nimport { Tabs, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport DeliveryPartner from \"./DeliveryPartner\";\nimport CheckDeliveryFee from \"./CheckDeliveryFee\";\nimport Table from \"./Table\";\nimport CancelOrder from \"./CancelOrder\";\nconst { TabPane } = Tabs;\nconst DeliveryService = ({ order, getOrderInfoById, setOpen }) => {\n const { t } = useTranslation();\n const [loading, setLoading] = useState(false);\n const callback = (key) => {};\n return (\n
\n \n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DeliveryService;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport Modal from \"components/Modal\";\nimport DeliveryService from \"./DeliveryService\";\nconst TalabatComponent = ({\n order,\n getOrderInfoById,\n orderShared,\n checkIfDeliverySelected,\n open,\n setOpen,\n}) => {\n const { t } = useTranslation();\n const isSelected = UTILS.getSelectedDelivery(order);\n return (\n <>\n {}}\n >\n \n \n\n checkIfDeliverySelected(\"TALABAT\", setOpen)}\n >\n \n {t(\"Deliver Using Talabat\")}\n \n \n \n );\n};\n\nexport default TalabatComponent;\n","import React from \"react\";\nimport { CONSTANTS as C } from \"config\";\nimport { useTranslation } from \"react-i18next\";\nimport Modal from \"components/Modal\";\nconst CheckDeliveryModal = ({ open, setOpen, changed, deliveryType }) => {\n const { t } = useTranslation();\n const pressYes = () => {\n if (changed.type === C.OTHER) {\n changed.fun();\n } else {\n changed.fun(true);\n }\n setOpen(false);\n };\n const pressNo = () => {\n setOpen(false);\n };\n const Chceck = () => {\n return (\n
\n

\n {` ${t(\"You are delivering using\")}\n ${deliveryType}\n ${t(\"service, are you sure to change the service?\")}`}\n

\n
\n \n {t(\"YES\")}\n \n \n {t(\"NO\")}\n \n
\n
\n );\n };\n\n return (\n <>\n setOpen(false)}\n >\n \n \n \n );\n};\n\nexport default CheckDeliveryModal;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\nconst OrderButton = (props) => {\n const { btnText, handleDelivery, deliveyType, order } = props;\n const isSelected = UTILS.getSelectedDelivery(order);\n return (\n handleDelivery(deliveyType)}\n >\n \n {btnText}\n \n \n );\n};\n\nexport default OrderButton;\n","import React, { Fragment } from \"react\";\nimport { Button } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useConfirmYandexClaimMutation } from \"redux/Logistic/LogisticService\";\nimport { CONSTANTS as C } from \"config\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useDispatch } from \"react-redux\";\nimport { LogisticAction } from \"redux/actions\";\n\nconst ConfirmClaim = (props) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { order, showButtons, setShowButtons } = props;\n const [confirmYandexClaim] = useConfirmYandexClaimMutation();\n\n /* A function that is used to confirm a claim. */\n const confirm_claim = async () => {\n dispatch(LoaderAction.setLoading(true));\n await new Promise((resolve) => setTimeout(resolve, 2000));\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n orderId: order._id,\n deliveryType: C.YANDEX.EXPRESS_DELIVERY_TYPE,\n };\n const isValid = UTILS.ValidateParams(obj);\n if (isValid) {\n const { data } = await confirmYandexClaim(obj);\n if (data) {\n dispatch(LogisticAction.setSyncData());\n setShowButtons((prevState) => ({\n ...prevState,\n sync: !showButtons.sync,\n }));\n if (data?.success === 1 && data?.data?.code === 777) {\n props.setOpen(true);\n }\n } else {\n UTILS.handleErrorNotification(t(\"Please try again later\"));\n }\n }\n props.setOpen(false);\n dispatch(LoaderAction.setLoading(false));\n };\n\n const ConfirmClaimButton = () => {\n return (\n \n {t(\"Confirm order request\")}\n \n );\n };\n\n return (\n \n \n \n );\n};\n\nexport default ConfirmClaim;\n","import React, { Fragment, useEffect, useState } from \"react\";\nimport { Button, Radio, Spin } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useCreateYandexClaimMutation } from \"redux/Logistic/LogisticService\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LogisticAction } from \"redux/actions\";\nimport { CONSTANTS as C } from \"config\";\nimport ConfirmClaim from \"./ConfirmClaim\";\nimport Modal from \"components/Modal\";\nconst CreateClaim = (props) => {\n const { t } = useTranslation();\n const reduxDispatch = useDispatch();\n const { order, showButtons, setShowButtons } = props;\n const [options, setOptions] = useState([]);\n const [open, setOpen] = React.useState(false);\n\n // Redux tookit\n const [createYandexClaim] = useCreateYandexClaimMutation();\n const { showBtn, vehicleTypes, selectedvehicleType, isThermalBagNeeded } =\n useSelector((state) => state?.LogisticReducer);\n\n /* A function that is used to create a claim. */\n const createClaim = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n orderId: order._id,\n isThermalBagNeeded: isThermalBagNeeded,\n vehicleClass: selectedvehicleType,\n deliveryType: C.YANDEX.EXPRESS_DELIVERY_TYPE,\n };\n const isValid = UTILS.ValidateParams(obj);\n if (isValid) {\n const { data } = await createYandexClaim(obj);\n if (data) {\n reduxDispatch(LogisticAction.setSyncData());\n setShowButtons((prevState) => ({\n ...prevState,\n sync: !showButtons.sync,\n }));\n }\n reduxDispatch(LogisticAction.setSelectedVehicleType(null));\n // reduxDispatch(LogisticAction.setVehicleTypes([]));\n }\n };\n\n /* Select Box showing All Delivery Methods */\n useEffect(() => {\n props.setLoading(true);\n const options = [];\n vehicleTypes?.forEach((method) => {\n options.push({\n label: C.YANDEX[`${method.name}`],\n value: method.name?.toUpperCase(),\n });\n });\n setOptions(options);\n setTimeout(() => {\n props.setLoading(false);\n }, 1000);\n }, [vehicleTypes]);\n\n const VehicleTypePicker = () => {\n const onChangeVehicelType = (value) => {\n if (value) {\n reduxDispatch(LogisticAction.setSelectedVehicleType(value));\n }\n };\n return (\n
\n

\n {t(\"select vehicle type\")}\n

\n onChangeVehicelType(e.target.value)}\n value={selectedvehicleType}\n >\n {options?.map((option) => (\n \n {t(option.label)}\n \n ))}\n \n
\n );\n };\n\n /* onchange for changing thermal bag Needed */\n const onChangeisThermalBagNeeded = (e) => {\n reduxDispatch(LogisticAction.setThermalBag(e.target.value));\n };\n\n const CreateClaim = () => {\n return (\n
\n {/* Show vehicle type picker and thermal bag option if there are vehicle types available */}\n <>\n {showButtons?.createClaim && options?.length >= 1 ? (\n <>\n \n
\n

\n {t(\"Is a thermal bag needed\")}\n

\n \n \n {t(\"Yes\")}\n \n \n {t(\"No\")}\n \n \n
\n \n ) : null}\n {!props.loading && showBtn && (\n \n {t(\"Fetch YANGO drivers\")}\n \n )}\n\n {/* Show create claim button if a vehicle type has been selected */}\n
\n <>\n {showButtons?.createClaim ? (\n \n {t(\"Send order request\")}\n \n ) : (\n {}}\n className=\"w-56 my-2 rounded-md font-semibold\"\n >\n {t(\"Send order request\")}\n \n )}\n \n \n
\n \n
\n );\n };\n return (\n \n \n {\n setOpen(false);\n }}\n >\n
\n

\n {t(\n \"Order is NOT confirmed by YANGO, please retry order confirmation\"\n )}\n

\n
\n
\n \n {\n setOpen(false);\n }}\n className=\"px-6 rounded-md font-semibold\"\n >\n {t(\"Cancel\")}\n \n
\n
\n
\n \n
\n );\n};\n\nexport default CreateClaim;\n","import { Button } from \"antd\";\nimport React, { Fragment, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport { useGetYandexExpressRiderInfoMutation } from \"redux/Logistic/LogisticService\";\nimport { UTILS } from \"utils\";\nconst ClaimInfo = ({ order, type }) => {\n const [riderInfo, setRiderInfo] = useState({});\n const { t } = useTranslation();\n const { claimInfo } = useSelector((state) => state?.LogisticReducer);\n const [getYandexExpressRiderInfo] = useGetYandexExpressRiderInfoMutation();\n\n const getRiderInfo = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n orderId: order._id,\n };\n const isValid = UTILS.ValidateParams(obj);\n if (isValid) {\n const { data } = await getYandexExpressRiderInfo(obj);\n if (data?.success === 1 && data?.data) {\n setRiderInfo(data.data);\n }\n }\n };\n\n return (\n \n
\n {claimInfo ? (\n
\n \n \n \n \n\n <>\n {claimInfo?.performer_info &&\n Object.keys(claimInfo.performer_info)?.map((key, i) => {\n const length = Object.keys(claimInfo.performer_info).length;\n return (\n \n {i === 0 && (\n \n )}\n \n \n \n );\n })}\n \n {claimInfo?.performer_info && (\n \n \n \n \n )}\n
{t(\"status\")}\n
{claimInfo?.status}
\n
\n {t(\"Rider Info\")}\n {key}\n
{claimInfo?.performer_info[key]}
\n
\n {t(\"Driver Phone Number\")}\n \n {type === true ? null : (\n \n )}\n {riderInfo?.phone}\n
\n ) : null}\n
\n \n );\n};\n\nexport default ClaimInfo;\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nconst CancelOrder = ({ showButtons, cancelOrder, order }) => {\n const { t } = useTranslation();\n if (showButtons?.cancelClaim) {\n return (\n
\n
\n \n
\n
\n );\n } else if (order?.logisticPartnerMetadata?.YANDEX?.cancelClaimInfo) {\n return (\n
\n
{t(\"Order Has been Cancelled Already\")}
\n
\n );\n }\n\n return null;\n};\n\nexport default CancelOrder;\n","import React from \"react\";\nimport { Tabs, Spin } from \"antd\";\nimport { useSelector } from \"react-redux\";\nconst ModalTabs = ({ children, setOpen, handleTabChange, loading = false }) => {\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n return (\n
\n \n
\n setOpen()} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n \n {children}\n \n
\n
\n
\n );\n};\n\nexport default ModalTabs;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction YangoSupport() {\n const { t } = useTranslation();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n\n if (!orderInfo?.logisticPartnerMetadata?.YANDEX?.createClaimResponse?.id)\n return (\n

\n {t(\"Order is not yet assigned to Yango\")}\n

\n );\n return (\n
\n \n <>\n \n \n \n \n\n \n \n {\n navigator.clipboard.writeText(\n orderInfo?.logisticPartnerMetadata?.YANDEX\n ?.createClaimResponse?.id\n );\n UTILS.successNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {\n orderInfo?.logisticPartnerMetadata?.YANDEX?.createClaimResponse\n ?.id\n }\n \n \n \n
\n {t(\"Whatsapp Number\")}\n \n \n +971528321710\n \n
\n {t(\"Yango Order Number\")}\n
\n
\n );\n}\n\nexport default YangoSupport;\n","import React from \"react\";\nimport { Tabs } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport CreateClaim from \"./CreateClaim\";\nimport ClaimInfo from \"./ClaimInfo\";\nimport CancelClaim from \"./CancelClaim\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport {\n useGetYandexClaimInfoMutation,\n useCancelYandexClaimMutation,\n useGetOrderInfoByIdMutation,\n useGetYandexDeliveryMethodsMutation,\n} from \"redux/Logistic/LogisticService\";\nimport { UTILS } from \"utils\";\nimport { isValidValue } from \"utils/Utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { LogisticAction } from \"redux/actions\";\nimport { ErrorAction } from \"redux/actions\";\nimport ModalTabs from \"logistic-integrations/components/Tabs\";\nimport YangoSupport from \"./YangoSupport\";\nconst { TabPane } = Tabs;\nconst DeliveryService = (props) => {\n const { setOpen, order, showButtons, fetchOrderDetails, setShowButtons } =\n props;\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const [loading, setLoading] = React.useState(false);\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n const [cancelYandexClaim] = useCancelYandexClaimMutation();\n const [getYandexClaimInfo] = useGetYandexClaimInfoMutation();\n const [getOrderInfoById] = useGetOrderInfoByIdMutation();\n const [getYandexDeliveryMethods] = useGetYandexDeliveryMethodsMutation();\n\n /*handle tab chnge */\n const handleTabChange = (key) => {\n fetchOrderDetails();\n if (\n key === \"3\" &&\n isValidValue(\n orderInfo?.logisticPartnerMetadata?.YANDEX?.createClaimResponse?.id\n )\n ) {\n getyandexOrderInfo();\n }\n if (key === \"1\") {\n getAllDeliveryMethods();\n }\n };\n\n /*It fetches the yandex claim info.*/\n const getyandexOrderInfo = async () => {\n const userDetail = UTILS.getCurrentUser();\n let obj = {\n brandId: userDetail.brandId,\n orderId: order._id,\n };\n const isValid = UTILS.ValidateParams(obj);\n if (isValid) {\n await getYandexClaimInfo(obj);\n } else {\n dispatch(LogisticAction.setClaimInfo(null));\n dispatch(\n ErrorAction.setError(\"Something went wrong while fetching claim info\")\n );\n }\n };\n\n /*It cancels the order.*/\n const cancelOrder = async () => {\n const userDetail = UTILS.getCurrentUser();\n let obj = {\n brandId: userDetail.brandId,\n orderId: order._id,\n deliveryType: C.YANDEX.EXPRESS_DELIVERY_TYPE,\n };\n const isValid = UTILS.ValidateParams(obj);\n if (isValid) {\n const { data } = await cancelYandexClaim(obj);\n if (data?.data?.logisticPartnerMetadata?.YANDEX) {\n let isCancelled = isValidValue(\n data?.data?.logisticPartnerMetadata?.YANDEX?.createClaimResponse?.id\n );\n dispatch(LogisticAction.setSyncData());\n setShowButtons((prevState) => ({\n ...prevState,\n cancelClaim: !isCancelled,\n sync: !showButtons.sync,\n }));\n }\n } else {\n UTILS.handleErrorNotification(t(\"Something went wrong\"));\n }\n fetchOrderDetails();\n };\n\n const getAllDeliveryMethods = async () => {\n const userDetail = UTILS.getCurrentUser();\n let obj = {\n brandId: userDetail.brandId,\n orderId: order?._id,\n };\n if (obj?.brandId && obj?.orderId) {\n await getYandexDeliveryMethods(obj);\n await getOrderInfoById(obj);\n }\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DeliveryService;\n","import React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Spin } from \"antd\";\nimport Modal from \"components/Modal\";\nimport Tabs from \"./components/Tabs\";\nimport { isValidValue } from \"utils/Utils\";\nimport { ErrorAction, LogisticAction } from \"redux/actions\";\nconst Yandex = ({ order, fetchOrderDetailsByID }) => {\n const dispatch = useDispatch();\n const { error } = useSelector((state) => state.ErrorReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { yandexModal, syncData } = useSelector(\n (state) => state.LogisticReducer\n );\n\n const [showButtons, setShowButtons] = useState({\n createClaim: false, //-->yes means you can create a claim\n confirmClaim: false,\n cancelClaim: false,\n sync: false,\n });\n\n /* It fetches the order details. */\n const validateYandex = async () => {\n dispatch(ErrorAction.setError(null));\n const data = await fetchOrderDetailsByID();\n const yandexMetadata =\n data?.data?.fetchedOrder?.logisticPartnerMetadata?.YANDEX;\n if (yandexMetadata) {\n let showButtons = {};\n if (isValidValue(yandexMetadata?.cancelClaimInfo)) {\n showButtons.createClaim = true;\n }\n // confirmed claim\n if (\n isValidValue(yandexMetadata?.createClaimResponse?.id) &&\n !isValidValue(yandexMetadata?.cancelClaimInfo) &&\n !isValidValue(yandexMetadata.confirmClaimResponse)\n ) {\n showButtons.confirmClaim = true;\n }\n\n // cancel claim\n if (\n !isValidValue(yandexMetadata?.cancelClaimInfo) &&\n isValidValue(yandexMetadata.createClaimResponse?.id)\n ) {\n showButtons.cancelClaim = true;\n }\n setShowButtons(showButtons);\n } else {\n showButtons.createClaim = true;\n showButtons.confirmClaim = false;\n showButtons.cancelClaim = false;\n setShowButtons(showButtons);\n }\n };\n\n useEffect(() => {\n validateYandex();\n }, [syncData]);\n\n return (\n \n {}}\n >\n {error && (\n
\n {error}\n
\n )}\n {\n dispatch(LogisticAction.toggleYandexModal(false));\n dispatch(LogisticAction.resetOnModalClose());\n }}\n />\n \n
\n );\n};\n\nexport default Yandex;\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nconst postConfig = {\n query: (body) => ({\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n\nconst CareemService = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n sendORderToCareem: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CAREEM_NOW_CREATE_DELIVERY,\n ...postConfig.query(body),\n }),\n }),\n trackCareemOrder: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CAREEM_NOW_GET_DELIVERY_STATUS,\n ...postConfig.query(body),\n }),\n }),\n cancelCareemOrder: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CAREEM_NOW_CANCEL_DELIVERY,\n ...postConfig.query(body),\n }),\n }),\n }),\n});\nexport const {\n useSendORderToCareemMutation,\n useTrackCareemOrderMutation,\n useCancelCareemOrderMutation,\n} = CareemService;\nexport default CareemService;\n","import React, { Fragment } from \"react\";\nimport { Button } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useSendORderToCareemMutation } from \"redux/Logistic/CareemService\";\nimport { LoaderAction } from \"redux/actions\";\nimport { ifnullOrUndefined } from \"utils/Utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst CreateClaim = (props) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n const [sendOrderToCareem] = useSendORderToCareemMutation();\n\n const sendOrderToCareemFunc = async () => {\n try {\n if (!orderInfo?._id) return;\n dispatch(LoaderAction.setLoading(true));\n const result = await sendOrderToCareem({\n orderId: orderInfo._id,\n });\n if (result?.data?.success === 1) {\n UTILS.successNotification(t(result?.data?.message));\n } else {\n UTILS.errorNotification(t(result?.error?.data));\n }\n await props.fetchOrderDetailsByID();\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error));\n }\n new Promise((resolve) => setTimeout(resolve, 3000));\n dispatch(LoaderAction.setLoading(false));\n };\n\n const allowSendOrderToCareem = () => {\n if (\n ifnullOrUndefined(\n orderInfo?.logisticPartnerMetadata?.CAREEM_NOW?.createDeliveryResponse\n ?.id\n ) ||\n orderInfo?.logisticPartnerMetadata?.CAREEM_NOW?.deliveryStatus ===\n \"CANCELED\"\n ) {\n return true;\n }\n return false;\n };\n\n return (\n \n
\n <>\n
\n {allowSendOrderToCareem() ? (\n \n {t(\"Send order to Careem\")}\n \n ) : (\n
\n \n {t(\n \"Your order has been sent to Careem for delivery. Please check the ORDER DETAIL tab for Rider details\"\n )}\n \n
\n )}\n
\n \n
\n
\n );\n};\n\nexport default CreateClaim;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst ClaimInfo = (props) => {\n let { careemOrder } = props;\n const { t } = useTranslation();\n\n return (\n
\n \n {careemOrder ? (\n <>\n \n \n \n \n\n {careemOrder?.tracking_url && (\n \n \n \n \n )}\n {careemOrder?.captain && (\n <>\n \n \n \n \n \n \n \n \n \n )}\n \n ) : null}\n
{t(\"status\")}\n
{careemOrder?.status}
\n
\n {t(\"Tracking Url\")}\n \n
\n \n {careemOrder?.tracking_url}\n \n
\n
\n Captain\n \n
\n Name:\n
\n
{careemOrder?.captain?.name}
\n
\n
\n Phone:\n
\n
{careemOrder?.captain?.phone_number}
\n
\n
\n );\n};\n\nexport default ClaimInfo;\n","import { Button } from \"antd\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport ClaimInfoTable from \"./ClaimInfoTable\";\nconst ClaimInfo = (props) => {\n let { careemOrder } = props;\n const { t } = useTranslation();\n\n return (\n
\n
\n \n {t(\"Refresh for latest info\")}\n \n
\n \n
\n );\n};\n\nexport default ClaimInfo;\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { isValidValue } from \"utils/Utils\";\nconst CancelOrder = ({ cancelCareemORder, careemOrder }) => {\n const { t } = useTranslation();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n\n if (\n isValidValue(\n orderInfo?.logisticPartnerMetadata?.CAREEM_NOW?.createDeliveryResponse?.id\n )\n ) {\n return (\n
\n
\n \n
\n
\n );\n } else if (careemOrder?.status === \"CANCELLED\") {\n return (\n
\n
{t(\"Order Has been Cancelled Already\")}
\n
\n );\n }\n\n return (\n
\n
\n {t(\n \"You haven’t sent your order to Careem delivery yet, you can send it by clicking SEND ORDER tab\"\n )}\n
\n
\n );\n};\n\nexport default CancelOrder;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\n\nimport { useTranslation } from \"react-i18next\";\n\nfunction Support({ orderNo, phone, heading, heading2 }) {\n const { t } = useTranslation();\n return (\n
\n \n <>\n {phone && (\n \n \n {\n navigator.clipboard.writeText(phone);\n UTILS.successNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {phone}\n \n \n )}\n \n \n {\n navigator.clipboard.writeText(orderNo);\n UTILS.successNotification(\"Copied to Clipboard\");\n }}\n >\n {orderNo}\n \n \n \n
{heading2}
{heading}
\n
\n );\n}\n\nexport default Support;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport Support from \"logistic-integrations/components/Support\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction CareemSupport() {\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n const { t } = useTranslation();\n return (\n \n );\n}\n\nexport default CareemSupport;\n","import React, { useState } from \"react\";\nimport { Tabs } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport CreateClaim from \"./CreateClaim\";\nimport ClaimInfo from \"./ClaimInfo\";\nimport CancelClaim from \"./CancelClaim\";\nimport { useDispatch } from \"react-redux\";\nimport {\n useTrackCareemOrderMutation,\n useCancelCareemOrderMutation,\n} from \"redux/Logistic/CareemService\";\nimport { UTILS } from \"utils\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport ModalTabs from \"logistic-integrations/components/Tabs\";\nimport CareemSupport from \"./CareemSupport\";\nconst { TabPane } = Tabs;\nconst DeliveryService = (props) => {\n const { t } = useTranslation();\n const { setOpen, order } = props;\n const dispatch = useDispatch();\n const [careemOrder, setCareemOrder] = useState(null);\n const [trackCareemOrder] = useTrackCareemOrderMutation();\n const [cancelCareemOrder] = useCancelCareemOrderMutation();\n\n /*handle tab chnge */\n const handleTabChange = async (key) => {\n if (key === \"3\") {\n await getCareemORderStatus();\n }\n await props.fetchOrderDetailsByID();\n };\n\n const getCareemORderStatus = async () => {\n try {\n if (!order?._id) return;\n dispatch(LoaderAction.setLoading(true));\n const data = await trackCareemOrder({\n orderId: order._id,\n });\n if (data?.data?.success === 1 && data?.data?.data) {\n setCareemOrder(data?.data.data);\n } else {\n UTILS.errorNotification(errorHandler(data?.error));\n setCareemOrder(null);\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const cancelCareemORder = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n if (!order?._id) return;\n const data = await cancelCareemOrder({\n orderId: order._id,\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message || t(\"Order has been cancelled successfully\")\n );\n } else {\n UTILS.errorNotification(errorHandler(data?.error));\n }\n await props.fetchOrderDetailsByID();\n } catch (error) {\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DeliveryService;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Spin } from \"antd\";\nimport Modal from \"components/Modal\";\nconst HomeTab = ({ order, isOpen, onClose, children }) => {\n const { error } = useSelector((state) => state.ErrorReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n return (\n \n \n {error && (\n
\n {error}\n
\n )}\n {children}\n \n
\n );\n};\n\nexport default HomeTab;\n","import React from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Tabs from \"./components/Tabs\";\nimport { LogisticAction } from \"redux/actions\";\nimport HomeTab from \"logistic-integrations/components/HomeTab\";\nconst Yandex = ({ order, fetchOrderDetailsByID }) => {\n const dispatch = useDispatch();\n const { careemModal } = useSelector((state) => state.LogisticReducer);\n\n return (\n {\n dispatch(LogisticAction.toggleCareemModal(false));\n },\n }}\n >\n {\n dispatch(LogisticAction.toggleCareemModal(false));\n }}\n />\n \n );\n};\n\nexport default Yandex;\n","import React, { Fragment } from \"react\";\nimport { Button } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { ifnullOrUndefined } from \"utils/Utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { API } from \"api\";\nimport { logErrorOnSentry } from \"utils/Utils\";\nconst CreateClaim = ({ fetchOrderDetailsByID }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n\n const sendOrderToDeliveryZone = async () => {\n try {\n if (!orderInfo?._id) {\n UTILS.errorNotification(t(\"Invalid Order ID. Please try again.\"));\n logErrorOnSentry(\n \"Invalid Order ID. Please try again--DZ create Order\",\n \"error\",\n JSON.stringify(orderInfo)\n );\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const result = await API.createDZDelivery({\n orderId: orderInfo._id,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(result?.message));\n } else {\n UTILS.errorNotification(t(result?.error));\n }\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n await new Promise((resolve) => setTimeout(resolve, 3000));\n dispatch(LoaderAction.setLoading(false));\n await fetchOrderDetailsByID();\n }\n };\n\n const allowSendOrderToDZ = () => {\n return ifnullOrUndefined(\n orderInfo?.logisticPartnerMetadata?.DELIVERY_ZONE?.createDeliveryResponse\n ?.order\n );\n };\n\n return (\n \n
\n
\n {allowSendOrderToDZ() ? (\n \n {t(\"Send order to delivery zone\")}\n \n ) : (\n
\n \n {t(\n \"Your order has been sent to delivery zone for delivery. Please check the ORDER DETAIL tab for Rider details\"\n )}\n \n
\n )}\n
\n
\n
\n );\n};\n\nexport default CreateClaim;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nconst ClaimInfo = ({ DZOrder }) => {\n const { t } = useTranslation();\n\n const renderRow = (label, value) => {\n return (\n \n {t(label)}\n {value}\n \n );\n };\n\n return (\n
\n \n {DZOrder && (\n <>\n {renderRow(\"Order Status\", DZOrder.status?.toUpperCase())}\n {DZOrder?.rider_name && (\n \n \n \n \n )}\n {DZOrder?.rider_name && renderRow(\"Rider Name\", DZOrder.rider_name)}\n {DZOrder?.order_id &&\n renderRow(\"Delivery Zone Order Number\", DZOrder?.order_id)}\n \n )}\n
\n {t(\"Rider Phone Number\")}\n \n {DZOrder.rider_phone_number}\n
\n
\n );\n};\n\nexport default ClaimInfo;\n","import { Button } from \"antd\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport ClaimInfoTable from \"./ClaimInfoTable\";\nconst ClaimInfo = ({ fetchLatestClaimInfo, DZOrder }) => {\n const { t } = useTranslation();\n\n return (\n
\n
\n \n
\n \n
\n );\n};\n\nexport default ClaimInfo;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport Support from \"logistic-integrations/components/Support\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction CareemSupport() {\n const { t } = useTranslation();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n return (\n \n );\n}\n\nexport default CareemSupport;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport { logErrorOnSentry } from \"utils/Utils\";\n\nfunction useGetORderInfo() {\n const dispatch = useDispatch();\n const [DZOrder, setDZOrder] = useState(null);\n const getDZOrderStatus = async (order) => {\n try {\n if (!order?._id) {\n logErrorOnSentry(\n \"Invalid order number -- dz order status\",\n \"error\",\n JSON.stringify(order)\n );\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const data = await API.trackDZDelivery({ orderId: order._id });\n if (data?.success === 1 && data?.data) {\n setDZOrder(data?.data);\n } else {\n UTILS.errorNotification(errorHandler(data?.error));\n setDZOrder(null);\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return { DZOrder, getDZOrderStatus, setDZOrder };\n}\n\nexport default useGetORderInfo;\n","import React from \"react\";\nimport { Tabs } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport ModalTabs from \"logistic-integrations/components/Tabs\";\n\nimport CreateClaim from \"./CreateClaim\";\nimport ClaimInfo from \"./ClaimInfo\";\nimport DZSupport from \"./DZSupport\";\nimport useGetORderInfo from \"../useGetORderInfo\";\n\nconst { TabPane } = Tabs;\n\nconst DeliveryService = ({ setOpen, order, fetchOrderDetailsByID }) => {\n const { t } = useTranslation();\n const { DZOrder, getDZOrderStatus } = useGetORderInfo();\n console.log({ abc: DZOrder });\n\n const handleTabChange = async (key) => {\n if (key === \"3\") {\n fetchLatestClaimInfo();\n }\n await fetchOrderDetailsByID();\n };\n\n const fetchLatestClaimInfo = async () => {\n await getDZOrderStatus(order);\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DeliveryService;\n","import React from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Tabs from \"./components/Tabs\";\nimport { LogisticAction } from \"redux/actions\";\nimport HomeTab from \"logistic-integrations/components/HomeTab\";\nconst DeliveryZone = ({ order, fetchOrderDetailsByID }) => {\n const dispatch = useDispatch();\n const { deliverzoneModal } = useSelector((state) => state.LogisticReducer);\n\n return (\n {\n dispatch(LogisticAction.toggleDeliverZoneModal(false));\n },\n }}\n >\n {\n dispatch(LogisticAction.toggleDeliverZoneModal(false));\n }}\n />\n \n );\n};\n\nexport default DeliveryZone;\n","import React, { createContext, useContext, useReducer } from \"react\";\n\n// Create a context\nconst LogisticIntegrationsContext = createContext();\n\n// Define action types\nconst SET_STATE = \"SET_STATE\";\n\n// Reducer function\nconst appReducer = (state, action) => {\n switch (action.type) {\n case SET_STATE:\n return { ...state, [action.payload.key]: action.payload.value };\n case \"RESET_STATE\":\n return {\n ...state,\n islyveGlobalModalOpen: false,\n };\n default:\n return state;\n }\n};\n\n// Create a provider component\nexport const LogisticContextProvider = ({ children }) => {\n const [logisticState, dispatch] = useReducer(appReducer, {\n islyveGlobalModalOpen: false,\n });\n\n const updateState = (key, value) => {\n dispatch({\n type: SET_STATE,\n payload: { key, value },\n });\n };\n const resetState = () => {\n dispatch({\n type: \"RESET_STATE\",\n });\n };\n\n return (\n \n {children}\n \n );\n};\n\n// Create a custom hook for using the context\nexport const useLogisticContext = () => {\n const context = useContext(LogisticIntegrationsContext);\n if (!context) {\n throw new Error(\"useAppState must be used within an AppStateProvider\");\n }\n return context;\n};\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nimport { UTILS } from \"utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { logErrorOnSentry } from \"utils/Utils\";\nimport { LoaderAction } from \"redux/actions\";\nconst postConfig = {\n query: (body) => ({\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n\nconst LyveGlobalService = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n sendORderToLyveGlobal: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.LYVE_GLOBAL.CREATE_ORDER,\n ...postConfig.query(body),\n }),\n }),\n trackLyveGlobalOrder: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.LYVE_GLOBAL.TRACK_ORDER,\n ...postConfig.query(body),\n }),\n }),\n cancelLyveGlobalOrder: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.LYVE_GLOBAL.CANCEL_ORDER,\n ...postConfig.query(body),\n }),\n }),\n }),\n});\nexport const {\n useSendORderToLyveGlobalMutation,\n useTrackLyveGlobalOrderMutation,\n useCancelLyveGlobalOrderMutation,\n} = LyveGlobalService;\nexport default LyveGlobalService;\n","import React, { Fragment } from \"react\";\nimport { Button } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { ifnullOrUndefined } from \"utils/Utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { API } from \"api\";\nimport { logErrorOnSentry } from \"utils/Utils\";\nimport { useSendORderToLyveGlobalMutation } from \"../service\";\nimport { isEmpty } from \"lodash\";\nconst CreateOrder = ({ fetchOrderDetailsByID }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [sendORderToLyveGlobal] = useSendORderToLyveGlobalMutation();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n\n const sendOrder = async () => {\n try {\n if (!orderInfo?._id) {\n UTILS.errorNotification(t(\"Invalid Order ID. Please try again.\"));\n logErrorOnSentry(\n \"Invalid Order ID. Please try again--Lyve global create Order\",\n \"error\",\n JSON.stringify(orderInfo)\n );\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const result = await sendORderToLyveGlobal({ orderId: orderInfo._id });\n console.log({ sendORderToLyveGlobal: result });\n if (result?.data?.success === 1) {\n UTILS.successNotification(result?.data?.message);\n } else {\n UTILS.errorNotification(errorHandler(result?.error));\n }\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n await new Promise((resolve) => setTimeout(resolve, 100));\n dispatch(LoaderAction.setLoading(false));\n await fetchOrderDetailsByID();\n }\n };\n\n const isAllowedToSend = () => {\n const createDeliveryResponse =\n orderInfo?.logisticPartnerMetadata?.LYVE_GLOBAL?.createDeliveryResponse;\n return !(\n !isEmpty(createDeliveryResponse) && createDeliveryResponse?.status === 1\n );\n };\n\n return (\n \n
\n
\n {isAllowedToSend() ? (\n \n {t(\"Send order to LYVE GLOBAL\")}\n \n ) : (\n
\n \n {t(\n \"Your order has been sent to LYVE GLOBAL for delivery. Please check the ORDER DETAIL tab for Rider details\"\n )}\n \n
\n )}\n
\n
\n
\n );\n};\n\nexport default CreateOrder;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nconst ClaimInfo = ({ lyveGlobalOrderInfo }) => {\n const { t } = useTranslation();\n\n const renderRow = (label, value) => {\n return (\n \n {t(label)}\n {value}\n \n );\n };\n\n return (\n
\n \n {lyveGlobalOrderInfo && (\n <>\n {lyveGlobalOrderInfo?.order_status &&\n renderRow(\"Order Status\", lyveGlobalOrderInfo?.order_status)}\n {lyveGlobalOrderInfo?.driver &&\n renderRow(\"Rider Name\", lyveGlobalOrderInfo?.driver)}\n {lyveGlobalOrderInfo?.driver_phone &&\n renderRow(\n \"Rider Phone Number\",\n lyveGlobalOrderInfo?.driver_phone\n )}\n {lyveGlobalOrderInfo?.driver_id &&\n renderRow(\"Rider Id\", lyveGlobalOrderInfo?.driver_id)}\n \n )}\n
\n
\n );\n};\n\nexport default ClaimInfo;\n","import { Button } from \"antd\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport ClaimInfoTable from \"../components/ClaimInfoTable\";\nconst ClaimInfo = ({ fetchLatestClaimInfo, lyveGlobalOrderInfo }) => {\n const { t } = useTranslation();\n\n return (\n
\n
\n \n
\n \n
\n );\n};\n\nexport default ClaimInfo;\n","import React, { Fragment } from \"react\";\nimport { Button } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { logErrorOnSentry } from \"utils/Utils\";\nimport { useCancelLyveGlobalOrderMutation } from \"../service\";\n\nconst ORDER_STATUSES = [\n \"ASSIGN\",\n \"ASSIGNED\",\n \"UNASSIGNED\",\n \"PICK UP\",\n \"IN_PROGRESS\",\n]; //order cancelled in these cases\n\nconst canOrderBeCancelled = (order) => {\n const deliveryStatus =\n order?.logisticPartnerMetadata?.LYVE_GLOBAL?.deliveryStatus;\n if (!deliveryStatus) return false;\n // Order can be cancelled if the delivery status is in ORDER_STATUSES\n return ORDER_STATUSES.includes(deliveryStatus);\n};\n\nconst CancelORder = ({ fetchOrderDetailsByID }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [cancelLyveGlobalOrder] = useCancelLyveGlobalOrderMutation();\n const { orderInfo } = useSelector((state) => state?.LogisticReducer);\n\n const cancelOrder = async () => {\n try {\n if (!orderInfo?._id) {\n UTILS.errorNotification(t(\"Invalid Order ID. Please try again.\"));\n logErrorOnSentry(\n \"Invalid Order ID. Please try again--Lyve global create Order\",\n \"error\",\n JSON.stringify(orderInfo)\n );\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const result = await cancelLyveGlobalOrder({\n orderId: orderInfo._id,\n cancelReason: \"testing\",\n });\n console.log({ cancelLyveGlobalOrder: result });\n\n if (result?.data?.success === 1) {\n UTILS.successNotification(result?.data?.message);\n } else {\n UTILS.errorNotification(errorHandler(result?.data?.message));\n }\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n await new Promise((resolve) => setTimeout(resolve, 100));\n dispatch(LoaderAction.setLoading(false));\n await fetchOrderDetailsByID();\n }\n };\n\n const isCancellable = canOrderBeCancelled(orderInfo);\n\n return (\n \n
\n
\n {isCancellable ? (\n \n {t(\"Cancel Order from LYVE GLOBAL\")}\n \n ) : (\n
\n \n {t(\n \"Your order is not cancellable at the moment. Please check the ORDER DETAIL tab for more details.\"\n )}\n \n
\n )}\n
\n
\n
\n );\n};\n\nexport default CancelORder;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport { logErrorOnSentry } from \"utils/Utils\";\nimport { useTrackLyveGlobalOrderMutation } from \"./service\";\n\nfunction useLyveGlobalGetORderInfo() {\n const dispatch = useDispatch();\n const [lyveGlobalOrderInfo, setLyveGlobalOrderInfo] = useState(null);\n const [trackLyveGlobalOrder] = useTrackLyveGlobalOrderMutation();\n const getlyveGlobalOrderInfo = async (order) => {\n try {\n if (!order?._id) {\n logErrorOnSentry(\n \"Invalid order number -- dz order status\",\n \"error\",\n JSON.stringify(order)\n );\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const data = await trackLyveGlobalOrder({ orderId: order._id });\n if (data?.data?.success === 1 && data?.data?.data) {\n setLyveGlobalOrderInfo(data?.data?.data);\n } else {\n UTILS.errorNotification(errorHandler(data?.error));\n setLyveGlobalOrderInfo(null);\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return {\n lyveGlobalOrderInfo,\n getlyveGlobalOrderInfo,\n setLyveGlobalOrderInfo,\n };\n}\n\nexport default useLyveGlobalGetORderInfo;\n","import React from \"react\";\nimport HomeTab from \"logistic-integrations/components/HomeTab\";\nimport { useLogisticContext } from \"logistic-integrations/context\";\nimport { Tabs } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport ModalTabs from \"logistic-integrations/components/Tabs\";\n\nimport CreateClaim from \"./containers/CreateOrder\";\nimport ClaimInfo from \"./containers/TrackOrder\";\nimport CancelORder from \"./containers/CancelORder\";\nimport useLyveGlobalGetORderInfo from \"./useLyveGlobalGetORderInfo\";\n\nconst { TabPane } = Tabs;\nconst DeliveryZone = ({ order, fetchOrderDetailsByID }) => {\n const { logisticState, updateState } = useLogisticContext();\n\n const closeModel = () => {\n updateState(\"islyveGlobalModalOpen\", false);\n };\n const { t } = useTranslation();\n const { lyveGlobalOrderInfo, getlyveGlobalOrderInfo } =\n useLyveGlobalGetORderInfo();\n\n const handleTabChange = async (key) => {\n if (key === \"3\") {\n fetchLatestClaimInfo();\n }\n await fetchOrderDetailsByID();\n };\n\n const fetchLatestClaimInfo = async () => {\n await getlyveGlobalOrderInfo(order);\n };\n\n return (\n \n {\n updateState(\"islyveGlobalModalOpen\", false);\n }}\n handleTabChange={handleTabChange}\n >\n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DeliveryZone;\n","export const INTEGRATION_NAMES = {\n TALABAT: \"TALABAT\",\n MARSOOL: \"MARSOOL\",\n YANDEX: \"YANDEX\",\n STORE: \"STORE\",\n CAREEM_NOW: \"CAREEM_NOW\",\n DELIVERY_ZONE: \"DELIVERY_ZONE\",\n LYVE_GLOBAL: \"LYVE_GLOBAL\",\n};\n","import React, { useCallback } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { LogisticAction } from \"redux/actions\";\nimport { INTEGRATION_NAMES } from \"./constants\";\nimport { logToSentry } from \"utils/Utils\";\nimport { useTranslation } from \"react-i18next\";\n\nconst LogisticModalSelector = ({\n order,\n openType,\n selectedIntegration,\n isSelected,\n}) => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n\n isSelected(order);\n\n const pressYes = useCallback(() => {\n switch (openType) {\n case INTEGRATION_NAMES.YANDEX:\n dispatch(LogisticAction.toggleYandexModal(true));\n break;\n case INTEGRATION_NAMES.TALABAT:\n // setTalabat(true);\n break;\n case INTEGRATION_NAMES.MARSOOL:\n // sendToMursool();\n break;\n case INTEGRATION_NAMES.CAREEM_NOW:\n dispatch(LogisticAction.toggleCareemModal(true));\n break;\n case INTEGRATION_NAMES.DELIVERY_ZONE:\n dispatch(LogisticAction.toggleDeliverZoneModal(true));\n break;\n default:\n logToSentry(\"User wants to change to an unknown logistic type. 166\");\n break;\n }\n dispatch(LogisticAction.toggleDeliveryModal(false));\n }, [dispatch, openType]);\n\n const pressNo = useCallback(() => {\n dispatch(LogisticAction.toggleDeliveryModal(false));\n }, [dispatch]);\n\n return (\n
\n

\n {`${t(\"You are delivering using\")} ${selectedIntegration} ${t(\n \"service, are you sure to change the service?\"\n )}`}\n

\n
\n \n {t(\"YES\")}\n \n \n {t(\"NO\")}\n \n
\n
\n );\n};\n\nexport default LogisticModalSelector;\n","import React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { LogisticAction } from \"redux/actions\";\nimport OrderButton from \"./components/Button\";\nimport Modal from \"components/Modal\";\nimport Yandex from \"./yandex/Yandex\";\nimport CareemNOW from \"./careem-now/CareemNow\";\nimport DeliveryZone from \"./delivery-zone/DeliveryZone\";\nimport LyveGlobal from \"./lyve-global/index\";\nimport { LoaderAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport {\n useGetOrderInfoByIdMutation,\n useGetYandexDeliveryMethodsMutation,\n} from \"redux/Logistic/LogisticService\";\nimport { API } from \"api\";\nimport { logToSentry } from \"utils/Utils\";\nimport { ErrorAction } from \"redux/actions\";\nimport { INTEGRATION_NAMES } from \"./constants\";\nimport LogisticModalSelector from \"./LogisticModalSelector\";\nimport { useLogisticContext } from \"./context\";\nfunction SelectedLogistics() {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { logisticState, updateState } = useLogisticContext();\n\n const [openType, setopenType] = useState(null);\n const [selectedDelivery, setSelectedDelivery] = useState(null);\n const [selectedIntegration, setSelectedIntegration] = useState(null);\n const { changeDeliveryModal, orderInfo: order } = useSelector(\n (state) => state.LogisticReducer\n );\n const [getOrderInfoById] = useGetOrderInfoByIdMutation();\n const [getYandexDeliveryMethods] = useGetYandexDeliveryMethodsMutation();\n\n /**\n * It checks if the order has an active integration with the name passed in the parameter.\n * @param name - The name of the integration.\n * @returns isIntegrationDialogOpen\n */\n\n const isInterated = (name) => {\n let isIntegrationDialogOpen = false;\n if (order && UTILS.isValidObject([\"activeIntegrations\"], order)) {\n if (Array.isArray(order.activeIntegrations)) {\n for (let index = 0; index < order?.activeIntegrations.length; index++) {\n const element = order?.activeIntegrations[index];\n if (\n element?.name === name &&\n element?.category === \"LOGISTIC\" &&\n element?.isActive === true\n ) {\n isIntegrationDialogOpen = true;\n }\n }\n }\n }\n return isIntegrationDialogOpen;\n };\n\n const isSelected = (odr) => {\n const selectedDelivery = UTILS.getSelectedDelivery(odr);\n setSelectedIntegration(selectedDelivery);\n return selectedDelivery;\n };\n useEffect(() => {\n setSelectedIntegration(isSelected(order));\n }, [order]);\n\n function shouldRenderYandexButton(order) {\n return order && isInterated(INTEGRATION_NAMES.YANDEX);\n }\n const getAllDeliveryMethods = async () => {\n const userDetail = UTILS.getCurrentUser();\n let obj = {\n brandId: userDetail.brandId,\n orderId: order?._id,\n };\n if (obj?.brandId && obj?.orderId) {\n await getYandexDeliveryMethods(obj);\n }\n };\n\n const checkIfDeliverySelected = (deliveryType) => {\n // Get the currently selected delivery type\n // If no delivery type has been selected\n if (selectedIntegration === INTEGRATION_NAMES.STORE) {\n // Check which delivery type the user wants to use\n if (deliveryType === INTEGRATION_NAMES.TALABAT) {\n // setTalabat(true);\n } else if (deliveryType === INTEGRATION_NAMES.MARSOOL) {\n sendToMursool();\n } else if (deliveryType === INTEGRATION_NAMES.YANDEX) {\n dispatch(LogisticAction.setSyncData());\n dispatch(LogisticAction.toggleYandexModal(true));\n getAllDeliveryMethods();\n } else if (deliveryType === INTEGRATION_NAMES.CAREEM_NOW) {\n dispatch(LogisticAction.toggleCareemModal(true));\n } else if (deliveryType === INTEGRATION_NAMES.DELIVERY_ZONE) {\n dispatch(LogisticAction.toggleDeliverZoneModal(true));\n } else if (deliveryType === INTEGRATION_NAMES.LYVE_GLOBAL) {\n updateState(\"islyveGlobalModalOpen\", true);\n } else {\n logToSentry(\"User wants to use an unknown logistic type.\");\n }\n }\n\n // If the user wants to check information about the selected delivery type\n if (\n selectedIntegration !== INTEGRATION_NAMES.STORE &&\n selectedIntegration === deliveryType\n ) {\n // Check which delivery type the user wants to view information about\n if (deliveryType === INTEGRATION_NAMES.TALABAT) {\n // setTalabat(true);\n } else if (deliveryType === INTEGRATION_NAMES.MARSOOL) {\n } else if (deliveryType === INTEGRATION_NAMES.YANDEX) {\n dispatch(LogisticAction.setSyncData());\n dispatch(LogisticAction.toggleYandexModal(true));\n getAllDeliveryMethods();\n } else if (deliveryType === INTEGRATION_NAMES.CAREEM_NOW) {\n dispatch(LogisticAction.toggleCareemModal(true));\n } else if (deliveryType === INTEGRATION_NAMES.DELIVERY_ZONE) {\n dispatch(LogisticAction.toggleDeliverZoneModal(true));\n } else if (deliveryType === INTEGRATION_NAMES.LYVE_GLOBAL) {\n updateState(\"islyveGlobalModalOpen\", true);\n } else {\n logToSentry(\n \"User wants to view information about an unknown logistic type.\"\n );\n }\n }\n\n // If the user wants to change the delivery type\n if (\n selectedIntegration !== INTEGRATION_NAMES.STORE &&\n selectedIntegration !== deliveryType\n ) {\n setSelectedDelivery(selectedDelivery);\n dispatch(LogisticAction.toggleDeliveryModal(true));\n if (deliveryType === INTEGRATION_NAMES.TALABAT) {\n setopenType(INTEGRATION_NAMES.TALABAT);\n } else if (deliveryType === INTEGRATION_NAMES.MARSOOL) {\n setopenType(INTEGRATION_NAMES.MARSOOL);\n } else if (deliveryType === INTEGRATION_NAMES.YANDEX) {\n dispatch(LogisticAction.setSyncData());\n setopenType(INTEGRATION_NAMES.YANDEX);\n getAllDeliveryMethods();\n } else if (deliveryType === INTEGRATION_NAMES.CAREEM_NOW) {\n setopenType(INTEGRATION_NAMES.CAREEM_NOW);\n } else if (deliveryType === INTEGRATION_NAMES.DELIVERY_ZONE) {\n setopenType(INTEGRATION_NAMES.DELIVERY_ZONE);\n } else if (deliveryType === INTEGRATION_NAMES.LYVE_GLOBAL) {\n setopenType(INTEGRATION_NAMES.LYVE_GLOBAL);\n } else {\n logToSentry(\"User wants to change to an unknown logistic type.\");\n }\n }\n };\n\n /**\n * A function that is called when the user presses the \"Yes\" or \"No\" button.\n */\n // const OrderDeliveryCheckModal = () => {\n // isSelected(order);\n\n // const pressYes = () => {\n // if (openType === INTEGRATION_NAMES.YANDEX) {\n // dispatch(LogisticAction.toggleYandexModal(true));\n // } else if (openType === INTEGRATION_NAMES.TALABAT) {\n // // setTalabat(true);\n // } else if (openType === INTEGRATION_NAMES.MARSOOL) {\n // sendToMursool();\n // } else if (openType === INTEGRATION_NAMES.CAREEM_NOW) {\n // dispatch(LogisticAction.toggleCareemModal(true));\n // } else if (openType === INTEGRATION_NAMES.DELIVERY_ZONE) {\n // dispatch(LogisticAction.toggleDeliverZoneModal(true));\n // } else {\n // logToSentry(\"User wants to change to an unknown logistic type. 166\");\n // }\n // dispatch(LogisticAction.toggleDeliveryModal(false));\n // };\n // const pressNo = () => {\n // dispatch(LogisticAction.toggleDeliveryModal(false));\n // };\n // return (\n //
\n //

\n // {` ${t(\"You are delivering using\")}\n // ${selectedIntegration}\n // ${t(\"service, are you sure to change the service?\")}`}\n //

\n //
\n // \n // {t(\"YES\")}\n // \n // \n // {t(\"NO\")}\n // \n //
\n //
\n // );\n // };\n\n const MarsoolComponent = () => {\n return (\n checkIfDeliverySelected(\"MARSOOL\", sendToMursool)}\n >\n \n {t(\"Deliver Using Marsool\")}\n \n \n );\n };\n\n const sendToMursool = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const result = await API.SEND_ORDER_TO_MARSOOL({\n brandId: userDetail.brandId,\n orderId: order._id,\n storeId: order.storeId,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(result?.message));\n const { data: updatedOrder } = await getOrderInfoById({\n brandId: order.brandId,\n orderId: order._id,\n });\n if (updatedOrder?.success === 1)\n isSelected(updatedOrder.data.fetchedOrder);\n } else {\n UTILS.errorNotification(\"Please try again later\");\n }\n } catch (error) {\n UTILS.errorNotification(\"Please try again later\");\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n function shouldRenderMarsoolComponent(order) {\n return order && isInterated(\"MARSOOL\");\n }\n\n function shouldRenderCareemButton(order) {\n return order && isInterated(INTEGRATION_NAMES.CAREEM_NOW);\n }\n\n function shouldRenderDeliveryZone(order) {\n return order && isInterated(INTEGRATION_NAMES.DELIVERY_ZONE);\n }\n function shouldRenderLyveGlobal(order) {\n return order && isInterated(INTEGRATION_NAMES.LYVE_GLOBAL);\n }\n\n const fetchOrderDetailsByID = async () => {\n try {\n const userDetail = UTILS.getCurrentUser();\n if (order?._id && userDetail.brandId) {\n const { data } = await getOrderInfoById({\n orderId: order._id,\n brandId: userDetail.brandId,\n });\n return data;\n }\n } catch (error) {\n dispatch(\n ErrorAction.setError(\"Something went wrong while fetching order info\")\n );\n }\n };\n\n return (\n <>\n {/* YANDEX */}\n {shouldRenderYandexButton(order) && (\n \n )}\n {/* MARSOOL */}\n {shouldRenderMarsoolComponent(order) && }\n \n\n {/* CAREEM BUTTON */}\n {shouldRenderCareemButton(order) && (\n \n )}\n \n\n {/* { DELIVERY ZONE} */}\n {shouldRenderDeliveryZone(order) && (\n \n )}\n \n {shouldRenderLyveGlobal(order) && (\n \n )}\n \n\n {/* MODAL TO CHECK IF ANY DELIVERY METHOD IS ALREADY ATTACHED TO THIS ORDER */}\n \n {/* */}\n \n \n \n );\n}\n\nexport default SelectedLogistics;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport Modal from \"components/Modal\";\n\nfunction Stripe({\n children,\n orderInfo,\n paymentGatewayInfoModal,\n setPaymentGatewayInfoModal,\n}) {\n const { t } = useTranslation();\n return (\n
\n {\n setPaymentGatewayInfoModal(false);\n }}\n modalWidth=\"rounded-md border border-gray-300 top-0 w-full md:w-2/3\"\n >\n
\n {\n setPaymentGatewayInfoModal(false);\n }}\n >\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n
\n {t(\"Payment Gateway Id\")}\n \n {orderInfo?.orderCheckoutOnlinePaymentMetadata?.data\n ?.cartId ?? \"N/A\"}\n\n {\n navigator.clipboard.writeText(\n orderInfo?.orderCheckoutOnlinePaymentMetadata?.data\n ?.cartId\n );\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n setPaymentGatewayInfoModal(false);\n }}\n className=\" ant-btn ant-btn-primary rounded ms-2\"\n >\n {t(\"Copy\")}\n \n
\n
\n \n {\n setPaymentGatewayInfoModal(true);\n }}\n >\n {children}\n
\n \n );\n}\n\nexport default Stripe;\n","import React from \"react\";\nimport Stripe from \"./Stripe\";\nimport { CONSTANTS as C } from \"config\";\nimport { getORderPaymentGateway } from \"utils/Utils\";\n\nfunction Index({\n orderInfo,\n children,\n paymentGatewayInfoModal,\n setPaymentGatewayInfoModal,\n}) {\n return (\n <>\n {getORderPaymentGateway(orderInfo) === C.PAYMENT_GATWAYS.STRIPE ? (\n \n {children}\n \n ) : (\n <>{children}\n )}\n \n );\n}\n\nexport default Index;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\n\nfunction RefundButton({ status, setOpen }) {\n const { t } = useTranslation();\n const REFUND_STATUS = {\n COMPLETE: \"COMPLETE\",\n REQUESTED: \"REQUESTED\",\n FAILED: \"FAILED\",\n };\n const RefundButton = ({ title }) => (\n <>\n
\n
{t(\"Refund Details\")}
\n {\n setOpen(true);\n }}\n >\n {title}\n \n
\n \n );\n\n switch (status) {\n case REFUND_STATUS.COMPLETE:\n return ;\n case REFUND_STATUS.REQUESTED:\n return ;\n case REFUND_STATUS.FAILED:\n return ;\n default:\n return null;\n }\n}\n\nexport default RefundButton;\n","import React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport moment from \"moment\";\nimport Modal from \"components/Modal\";\nimport RefundButtonStatus from \"./RefundButton\";\n\nfunction RefundOrderInfo({ rowData }) {\n const [open, setOpen] = useState(false);\n const { t } = useTranslation();\n\n return (\n <>\n setOpen(false)}\n >\n
\n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n \n {rowData?.refund?.amount >= 0 ? (\n \n \n \n \n ) : null}\n {rowData?.refund?.amount >= 0 ? (\n \n \n \n \n ) : null}\n {rowData?.refund?.amount >= 0 ? (\n \n \n \n \n ) : null}\n {rowData?.refund?.amount >= 0 ? (\n \n \n \n \n ) : null}\n
\n {t(\"Refunded Amount\")}\n \n {rowData.refund?.amount} {t(\"AED\")}\n
\n {t(\"Refund Reason\")}\n \n {rowData.refund?.reason}\n
\n {t(\"Refund Status\")}\n \n {rowData?.refund?.status}\n
\n {t(\"Refund Request Date\")}\n \n {moment\n .unix(rowData?.refund?.stripeResponse?.created)\n .format(\"DD/MM/yyyy hh:mm A\")}\n
\n
\n \n\n \n \n );\n}\n\nexport default RefundOrderInfo;\n","import { API } from \"api\";\nimport useSWR from \"swr\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { GET_CAREEM_STATUS } from \"api/api\";\n\nconst useOrder = () => {\n const token = UTILS.getCurrentUser()?.token;\n const fetcher = () =>\n API.GET_ORDER_COUNT({ token: UTILS.getCurrentUser().token });\n\n const { data, error } = useSWR(\n token ? C.BASE_URL + \"order/getAllPendingOrdersCount\" : null,\n fetcher,\n {\n refreshInterval: 5000,\n revalidateOnFocus: true,\n refreshWhenHidden: true, // Allow polling even if tab is hidden\n refreshWhenOffline: true, // Allow polling even if the user is offline\n revalidateOnMount: true, // Always revalidate when the hook is mounted\n revalidateOnReconnect: true, // Revalidate when the user is back online\n revalidateOnWindowFocus: true,\n }\n );\n\n return {\n data: data,\n error: error,\n };\n};\n\nexport default useOrder;\n\nexport const useGetCareemStatus = (orderId, status) => {\n const token = UTILS.getCurrentUser()?.token;\n const fetcher = () => GET_CAREEM_STATUS({ orderId, token })\n return useSWR((orderId && token && status) ? orderId : null, fetcher, {\n refreshInterval: status ? 30000 : (24 * 60 * 60 * 1000),\n revalidateOnFocus: true,\n refreshWhenHidden: false, // Allow polling even if tab is hidden\n refreshWhenOffline: true, // Allow polling even if the user is offline\n revalidateOnMount: true, // Always revalidate when the hook is mounted\n revalidateOnReconnect: true, // Revalidate when the user is back online\n revalidateOnWindowFocus: true,\n })\n}","import {\n CareemDeliveryStatusKeys,\n CareemDeliveryStatus as Status,\n} from \"config/Constants\";\nimport { useGetCareemStatus } from \"hooks/useOrder\";\nimport React from \"react\";\n\nconst CareemStatus = ({ orderId, logisticPartner }) => {\n \n let isCareemPending = true;\n\n const { data: careemData } = useGetCareemStatus(\n logisticPartner === \"CAREEM_NOW\" ? orderId : null,\n isCareemPending\n );\n\n if (careemData?.data?.status) {\n isCareemPending =\n [\n CareemDeliveryStatusKeys.UPCOMING,\n CareemDeliveryStatusKeys.DELIVERY_STARTED,\n CareemDeliveryStatusKeys.CAPTAIN_ASSIGNED,\n ].includes(careemData?.data?.status) ?? false;\n }\n\n if(logisticPartner !== \"CAREEM_NOW\" || !orderId){\n return null\n }\n\n return (\n \n {Status[careemData?.data?.status]?.label ?? \"Pending\"}\n \n );\n};\n\nexport default CareemStatus;\n","import Card from \"components/Card\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport { PrinterOutlined } from \"@ant-design/icons\";\nimport PropTypes from \"prop-types\";\nimport moment from \"moment\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { RedoOutlined } from \"@ant-design/icons\";\nimport { Spin } from \"antd\";\nimport { useReactToPrint } from \"react-to-print\";\nimport { useTranslation } from \"react-i18next\";\nimport TableItemsDetail from \"../../orders/components/TableItemsDetail\";\nimport Talabat from \"../talabat/Talabat\";\nimport CheckDeliveryModal from \"../Modals/CheckDeliveryModal\";\nimport SelectedIntegrations from \"../../../logistic-integrations/SelectedLogistics\";\nimport { useSelector } from \"react-redux\";\nimport PaymentInfo from \"features/order-payment-info/Index\";\nimport { getORderPaymentGateway } from \"utils/Utils\";\nimport RefundOrderInfo from \"features/orders/modals/stripeRefund/RefundOrderInfo\";\nimport CareemStatus from \"features/orders/components/CareemStatus\";\nconst OrderDetail = ({ order, orderId, tabStatus, getOrderInfoById }) => {\n const [open, setOpen] = useState(false);\n const [talabatModal, setTalabat] = useState(false);\n const [changed, setChanged] = useState(false);\n const componentRef = useRef();\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const handlePrint = useReactToPrint({\n content: () => componentRef.current,\n });\n const zone = moment.tz.guess();\n moment.tz.setDefault(zone);\n\n useEffect(() => {\n if (orderId) {\n getOrderInfoById(orderId);\n }\n }, [orderId, tabStatus, order?._id]);\n const [paymentGatewayInfoModal, setPaymentGatewayInfoModal] = useState(false);\n\n const Header = () => {\n return (\n \n

\n {order.orderNumber ? t(\"Order #\") + order?.orderNumber : \"...\"}\n

\n

\n {order.orderPlacedTime\n ? moment.unix(order?.orderPlacedTime).fromNow()\n : \"...\"}\n

\n
\n {\n getOrderInfoById(orderId);\n }}\n >\n \n {t(\"Refresh\")}\n \n

\n {t(order.orderStatus ? order?.orderStatus : \"...\")}\n

\n handlePrint()}\n >\n \n {t(\"Print\")}\n \n
\n \n );\n };\n\n const isInterated = (name) => {\n let isIntegrationDialogOpen = false;\n if (order && UTILS.isValidObject([\"activeIntegrations\"], order)) {\n if (Array.isArray(order.activeIntegrations)) {\n for (let index = 0; index < order?.activeIntegrations.length; index++) {\n const element = order?.activeIntegrations[index];\n if (\n element?.name === name &&\n element?.category === \"LOGISTIC\" &&\n element?.isActive === true\n ) {\n isIntegrationDialogOpen = true;\n }\n }\n }\n }\n return isIntegrationDialogOpen;\n };\n\n const getDeliveryAddress = () => {\n let add = \"\";\n add += order?.deliveryAddress ? order?.deliveryAddress?.address : \"....\";\n add +=\n order?.deliveryAddress?.building ||\n order?.deliveryAddress?.floor ||\n order?.deliveryAddress?.appartmentNo\n ? \"(\"\n : \"\";\n\n add += order?.deliveryAddress?.building\n ? t(\"Building\") + order?.deliveryAddress?.building + \",\"\n : \"\";\n\n add += order?.deliveryAddress?.floor\n ? t(\"Floor\") + order?.deliveryAddress?.floor + \",\"\n : \"\";\n add += order?.deliveryAddress?.appartmentNo\n ? t(\"Apartment No\") + order?.deliveryAddress?.appartmentNo\n : \"\";\n add +=\n order?.deliveryAddress?.building ||\n order?.deliveryAddress?.floor ||\n order?.deliveryAddress?.appartmentNo\n ? \")\"\n : \"\";\n return add;\n };\n\n const getGoogleMapLink = () => {\n let gLink = \"https://maps.google.com/?q=\";\n gLink += order?.deliveryAddress?.street\n ? order?.deliveryAddress?.street\n : \"\";\n return gLink;\n };\n\n //delivery type can be TAblat,mursool,\n // if logistic partner is Store it means no logistic partner has not yet been selected\n //\n const checkIfDeliverySelected = (deliveryType, cb) => {\n const isSelected = UTILS.getSelectedDelivery(order); //get delivery type\n\n // Earlier logistic partner selected\n // selected is !== clicked\n // cliked is not talabat\n if (\n isSelected !== C.STORE &&\n isSelected !== deliveryType &&\n deliveryType !== C.TALABAT\n ) {\n setOpen(true); //open chnge delivery model\n setChanged({\n //call the cb function\n fun: cb,\n type: C.OTHER,\n });\n }\n\n // Earlier logistic partner selected\n // selected is !== clicked\n // cliked not talabat\n else if (\n isSelected !== C.STORE &&\n isSelected !== deliveryType &&\n deliveryType === C.TALABAT\n ) {\n setOpen(true); //open model and open talabat model\n setChanged({\n //open talabat model\n fun: cb,\n type: C.TALABAT,\n });\n }\n\n // logistic partner selected\n // open talabat for showing detail\n else if (isSelected !== C.STORE && deliveryType === C.TALABAT) {\n setTalabat(true); //open talabat\n }\n // No Logistic Partner is selected\n else {\n // clicked is Talabat open talabat model\n if (isSelected === C.STORE && deliveryType === C.TALABAT) {\n cb(true); //\n }\n // cicked is other than talabat ,call that function\n if (isSelected === C.STORE && deliveryType !== C.TALABAT) {\n cb();\n }\n }\n getOrderInfoById(order._id);\n };\n\n function shouldRenderTalabatComponent(order) {\n return order && isInterated(\"TALABAT\");\n }\n\n return (\n
\n \n
\n \n \n \n
\n {order?.userInfo?.name && (\n
\n
{t(\"Customer Name\")}
\n\n
{order?.userInfo?.name}
\n
\n )}\n
\n
{t(\"Preparation Type\")}
\n\n
\n {order.isPreOrder ? t(\"PRE ORDER\") : t(\"ASAP\")}\n
\n
\n
\n
{t(\"Order Type\")}
\n\n
\n {order.orderType\n ? currentLanguage === \"EN\"\n ? order.orderType.EN.name\n : order.orderType.AR.name\n : \"...\"}\n
\n
\n
\n
{t(\"Store\")}
\n\n
\n {order.storeInfo ? order.storeInfo.baseLanguage.name : \"...\"}\n
\n
\n\n {/*
*/}\n
\n
{t(\"Order Placed Time\")}
\n\n
\n {order.orderPlacedTime\n ? moment\n .unix(order.orderPlacedTime)\n .format(\"DD-MM-Y hh:mm A\")\n : \"...\"}\n
\n
\n
\n
{t(\"Order Id\")}
\n\n
\n {order?.orderNumber ? order?.orderNumber : \"...\"}\n
\n
\n {/*
\n\n
*/}\n {order?.orderType?.type === \"DELIVERY\" ? (\n
\n
{t(\"Street Address\")}
\n \n window.open(getGoogleMapLink(), \"_blank\").focus()\n }\n >\n {order?.deliveryAddress?.street\n ? order?.deliveryAddress?.street\n : \"\"}\n
\n
\n ) : null}\n\n {Boolean(\n order?.refund?.status === \"FAILED\" && tabStatus === \"REFUND\"\n ) && }\n\n {order?.userInfo?.phoneNumber && (\n UTILS.openWhatsApp(order.userInfo.phoneNumber)}\n >\n
{t(\"Whatsapp Number\")}
\n
\n \n {order.userInfo ? order.userInfo.phoneNumber : \"....\"}\n \n
\n
\n )}\n\n {order?.orderType?.type === C.SERVICE_TYPES.DINEIN ? (\n
\n
{t(\"Selected Table\")}
\n
\n \n {order?.dineIn?.tableNumber\n ? order?.dineIn?.tableNumber\n : \"....\"}\n \n
\n
\n ) : null}\n {order?.orderType?.type === C.SERVICE_TYPES.PICKUP &&\n order?.pickup?.vehicleInfo && (\n
\n
{t(\"Vehicle Info\")}
\n
\n \n {order?.pickup?.vehicleInfo\n ? order?.pickup?.vehicleInfo\n : \"....\"}\n \n
\n
\n )}\n {/*
\n\n
*/}\n {console.log(\"order?.selectedPaymentMethod?.EN?.name\", order)}\n
\n \n
{t(\"Payment\")}
\n\n \n {order.selectedPaymentMethod\n ? currentLanguage === \"EN\"\n ? order.selectedPaymentMethod.EN.name\n : order.selectedPaymentMethod.AR.name\n : \"...\"}\n
\n \n
\n
\n
{t(\"Order From\")}
\n
\n {order.orderingPlatform ? order.orderingPlatform : \"....\"}\n
\n
\n {/* \n\n
*/}\n {order?.orderType?.type === \"DELIVERY\" ? (\n
\n
{t(\"Full Address\")}
\n
\n {getDeliveryAddress()}\n
\n
\n ) : null}\n\n {order?.userInfo?.lifetimeSpending ? (\n
\n
{t(\"Lifetime Spending\")}
\n
\n AED \n {parseFloat(order?.userInfo?.lifetimeSpending)?.toFixed(2)}\n
\n
\n ) : null}\n {/* display careem rider status */}\n {\n order.logisticPartner === \"CAREEM_NOW\" &&\n
\n
{t(\"Delivery Status\")}
\n
\n \n
\n
\n }\n\n {/*
\n
{t(\"Selected Area\")}
\n
\n {order.selectedArea\n ? language.current === \"en\"\n ? order.selectedArea.areaNameEN\n : order.selectedArea.areaNameAR\n : \"...\"}\n
\n
*/}\n {/*
\n\n
*/}\n\n {order?.isPreOrder ? (\n
\n
\n {order?.orderType?.type === C.SERVICE_TYPES.DELIVERY\n ? t(\"Pre Order Delivery Slot\")\n : t(\"Pre Order Pickup Slot\")}\n
\n
\n
\n Date :{\" \"}\n {moment\n .unix(order?.preOrder?.preOrderSlotStartTime)\n .format(\"DD-MM-YYYY\")}\n
\n {t(\"Slot\")} :{\" \"}\n {moment\n .unix(order?.preOrder?.preOrderSlotStartTime)\n .format(\"hh:mm A\")}{\" \"}\n -{\" \"}\n {moment\n .unix(order?.preOrder?.preOrderSlotEndTime)\n .format(\"hh:mm A\")}\n
\n
\n ) : null}\n\n {order && order?.discountApplied && (\n
\n
{t(\"Discount Info\")}
\n
\n {t(\"Type\")} (\n {order?.discountApplied\n ? t(order?.discountApplied?.discountType)\n : \"\"}\n ) - {t(\"Code\")} (\n {order?.discountApplied\n ? order?.discountApplied?.discountCode\n : \"\"}\n )\n
\n
\n )}\n
\n\n {/* special request */}\n {order?.orderLevelSpecialRequest?.trim()?.length > 0 ? (\n
\n
\n
{t(\"Special Note\")}
\n
\n {order?.orderLevelSpecialRequest\n ? order?.orderLevelSpecialRequest\n : \"\"}\n
\n
\n
\n ) : null}\n\n
\n {/* {shouldRenderMarsoolComponent(order) && } */}\n {shouldRenderTalabatComponent(order) &&\n order?.orderType?.type === C.DELIVERY_SERICETYPE && (\n \n )}\n\n {order.orderType?.type === C.DELIVERY_SERICETYPE && (\n \n )}\n
\n \n \n \n \n \n );\n};\nOrderDetail.propTypes = {\n orderId: PropTypes.string,\n tabStatus: PropTypes.string,\n sendToQuiqup: PropTypes.func,\n};\nexport default OrderDetail;\n","import React from \"react\";\nimport { Fragment, useRef } from \"react\";\nimport { Dialog, Transition } from \"@headlessui/react\";\nimport PropTypes from \"prop-types\";\n\nconst LocalModal = (props) => {\n const cancelButtonRef = useRef(null);\n return (\n \n \n \n \n \n \n\n {/* This element is to trick the browser into centering the modal contents. */}\n \n ​\n \n \n {/* w-full lg:w-full xl:w-4/5 2xl:2/3 */}\n\n \n {props.children}\n\n \n CANCEL\n \n \n \n \n \n \n );\n};\n\nLocalModal.propTypes = {\n children: PropTypes.object,\n modalWidth: PropTypes.string,\n open: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport default LocalModal;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport moment from \"moment\";\n\nmoment.locale(\"ar\");\nconst Order = (props) => {\n const onClickOrder = (id) => {\n props.handoleOrderId(id);\n };\n\n return (\n onClickOrder(props?.order?._id)}\n style={{\n backgroundColor:\n props?.currentOrderId === props?.order?._id\n ? \"#f5f5f5\"\n : \"transparent\",\n color: props?.currentOrderId === props?.order?._id ? \"#000\" : \"#f5f5f5\",\n }}\n >\n
\n
{\"#: \" + props?.order?.orderNumber}
\n
\n \n {props?.order?.orderingPlatform + \", \"}\n \n {moment.unix(props?.order?.orderPlacedTime).fromNow()}\n
\n
\n \n );\n};\nexport default Order;\nOrder.propTypes = {\n color: PropTypes.string,\n status: PropTypes.string,\n order: PropTypes.object,\n handoleOrderId: PropTypes.func,\n};\n","import React from \"react\";\nimport { Button, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nconst RefundNotRequiredConfirmation = ({\n closeModal,\n onSubmit,\n loading,\n order,\n}) => {\n const { t } = useTranslation();\n return (\n \n
\n
\n
\n
\n

{t(\"Confirmation\")}

\n

\n {t(\"Order\")} #{order?.orderNumber}\n

\n
\n
\n {t(\"Are you sure you want to mark Order as nonrefundable\", {\n orderNumber: order?.orderNumber,\n })}\n
\n
\n
\n \n {t(\"No\")}\n \n \n {t(\"Yes\")}\n \n
\n
\n
\n
\n );\n};\nexport default RefundNotRequiredConfirmation;\n","import { RedoOutlined } from \"@ant-design/icons\";\nimport { Button, Input } from \"antd\";\nimport { API } from \"api\";\nimport PropTypes from \"prop-types\";\nimport React, { useEffect, useMemo, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useGetOrderInfoByIdMutation } from \"redux/Logistic/LogisticService\";\nimport { UTILS } from \"utils\";\nimport RefundForm from \"../../../components/RefundOrderForm\";\nimport OrderDetail from \"../../orderdetail/containers/OrderDetail\";\nimport LocalModal from \"../modals/LocalModal\";\nimport Order from \"./Order\";\nimport RefundNotRequiredConfirmation from \"./RefundNotRequiredConfirmation\";\n\nconst OrdersPanel = (props) => {\n const { t } = useTranslation();\n const {\n tabStatus,\n setLoading,\n orders,\n getOrdersByStatus,\n currentOrderId,\n setCurrentOrderId,\n setRejectReason,\n order,\n setOrder,\n onSubmit,\n refundableMutate,\n } = props;\n const [searchTerm, setSearch] = useState(\"\");\n const [getOrderInfoById] = useGetOrderInfoByIdMutation();\n const [refundNotRequiredInfo, setRefundNotRequiredInfo] = useState({\n loading: false,\n visible: false,\n });\n const [refundForm, setRefundForm] = useState({\n loading: false,\n visible: false,\n });\n\n useEffect(() => {\n if (tabStatus) {\n getOrdersByStatus();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [tabStatus]);\n\n const GetNoOrderComponent = () => {\n return (\n
\n
\n

{t(\"There are no Orders\")}

\n {props.tabStatus === \"PENDING\" ? (\n }\n size={\"large\"}\n onClick={() => {\n props.setLoading(true);\n getOrdersByStatus();\n }}\n >\n {t(\"Refresh\")}\n \n ) : (\n \"\"\n )}\n
\n
\n );\n };\n\n const setOrderNotRefundable = async () => {\n setRefundNotRequiredInfo({\n ...refundNotRequiredInfo,\n loading: true,\n });\n const obj = {\n orderId: currentOrderId,\n brandId: order?.brandId,\n };\n const result = await API.SET_ORDER_NOT_REFUNDABLE(obj);\n if (result?.success === 1) UTILS.successNotification(t(\"Order Updated!\"));\n else UTILS.errorNotification(t(\"Please try again later!\"));\n getOrdersByStatus();\n setRefundNotRequiredInfo({\n ...refundNotRequiredInfo,\n loading: false,\n visible: false,\n });\n refundableMutate(\"order/get-refundable-orders-count\", {\n revalidate: true,\n });\n };\n\n const submitRefundOrder = async ({ amount, reason }) => {\n setRefundForm({\n ...refundForm,\n loading: true,\n });\n const obj = {\n orderId: currentOrderId,\n amount,\n reason,\n brandId: order?.brandId,\n };\n const result = await API.REFUND_ORDER(obj);\n if (result?.success === 1)\n UTILS.successNotification(result?.message || t(\"Refund Requested\"));\n else\n UTILS.errorNotification(result?.message || t(\"Please try again Later\"));\n getOrdersByStatus();\n props.setLoading(false);\n setRefundForm({\n ...refundForm,\n loading: false,\n visible: false,\n });\n refundableMutate(\"order/get-refundable-orders-count\", {\n revalidate: true,\n });\n };\n\n const onSearch = (e) => setSearch(e?.target?.value);\n\n const PreparingFooter = () => {\n return (\n
\n \n order?.isPreOrder\n ? onSubmit(\"SCHEDULED\", null)\n : onSubmit(\"PREPARING\", null)\n }\n >\n {order?.isPreOrder ? t(\"Schedule\") : t(\"Accept\")}\n \n {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n Modal: true,\n type: \"REJECTED\",\n },\n }));\n }}\n >\n {t(\"Reject\")}\n \n
\n );\n };\n\n const OnTheWayFooter = () => {\n return (\n
\n onSubmit(\"ON_THE_WAY\", null)}\n >\n {t(\"On The Way / Ready\")}\n \n {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n Modal: true,\n type: \"CANCELLED\",\n },\n }));\n }}\n >\n {t(\"Cancel\")}\n \n
\n );\n };\n\n const CompleteOrderFooter = () => {\n return (\n
\n onSubmit(\"COMPLETE\", null)}\n >\n {t(\"COMPLETE\")}\n \n {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n Modal: true,\n type: \"CANCELLED\",\n },\n }));\n }}\n >\n {t(\"Cancel\")}\n \n
\n );\n };\n const RefundsFooter = () => {\n return (\n
\n \n setRefundNotRequiredInfo({\n ...refundNotRequiredInfo,\n visible: true,\n })\n }\n >\n {t(\"No need for refund\")}\n \n {\n setRefundForm({\n visible: true,\n loading: false,\n });\n }}\n >\n {t(\"Refund\")}\n \n
\n );\n };\n\n const ScheduleFooter = () => {\n return (\n
\n onSubmit(\"PREPARING\", null)}\n >\n {t(\"Start Preparing\")}\n \n {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n Modal: true,\n type: \"REJECTED\",\n },\n }));\n }}\n >\n {t(\"Reject\")}\n \n
\n );\n };\n\n const getFooterComponent = () => {\n if (tabStatus === \"PENDING\") {\n return ;\n } else if (tabStatus === \"PREPARING\") {\n return ;\n } else if (tabStatus === \"ON_THE_WAY\") {\n return ;\n } else if (tabStatus === \"SCHEDULED\") {\n return ;\n } else if (tabStatus === \"REFUND\") {\n return ;\n }\n };\n const sendToQuiqup = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const ord = orders?.find((o) => o._id === currentOrderId);\n const result = await API.SEND_ORDER_TO_QUIQUP({\n token: userDetail.token,\n brandId: userDetail.brandId,\n orderId: currentOrderId,\n storeId: ord.storeId,\n });\n if (result && result.success === 1) {\n UTILS.successNotification(t(result?.message));\n } else {\n UTILS.errorNotification(\"Please try again later\");\n }\n setLoading(false);\n };\n\n const getOrderInfoByID = async (orderId) => {\n const userDetail = UTILS.getCurrentUser();\n const { data: result } = await getOrderInfoById({\n orderId: orderId,\n brandId: userDetail.brandId,\n });\n if (result?.success === 1) {\n setOrder(result.data.fetchedOrder);\n } else {\n UTILS.errorNotification(t(\"Please try again later!\"));\n }\n setLoading(false);\n };\n\n const sendToMursool = async () => {\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const ord = orders?.find((o) => o._id === currentOrderId);\n const result = await API.SEND_ORDER_TO_MARSOOL({\n brandId: userDetail.brandId,\n orderId: currentOrderId,\n storeId: ord.storeId,\n });\n if (result && result.success === 1) {\n UTILS.successNotification(t(result?.message));\n getOrderInfoByID(currentOrderId);\n } else {\n UTILS.errorNotification(\"Please try again later\");\n }\n } catch (error) {\n UTILS.errorNotification(\"Please try again later\");\n } finally {\n setLoading(false);\n }\n };\n\n const Items = useMemo(() => {\n try {\n if (!searchTerm) {\n return orders;\n }\n return orders?.filter((item) =>\n item?.orderNumber?.toString()?.includes(searchTerm)\n );\n } catch (error) {}\n }, [orders, searchTerm]);\n return (\n
\n \n \n {Items && Items.length > 0 ? (\n Items.map((or, index) => {\n return (\n setCurrentOrderId(orderId)}\n />\n );\n })\n ) : (\n \n )}\n
\n
\n {orders && orders?.length > 0 ? (\n \n ) : (\n \n )}\n
\n {orders && orders.length > 0 ? getFooterComponent() : \"\"}\n
\n
\n setRejectReason}\n >\n {refundNotRequiredInfo.visible && (\n {\n setRefundNotRequiredInfo({\n ...refundNotRequiredInfo,\n loading: false,\n visible: false,\n });\n }}\n />\n )}\n {refundForm.visible && (\n {\n setRefundForm({\n ...refundForm,\n loading: false,\n visible: false,\n });\n }}\n />\n )}\n \n \n );\n};\nOrdersPanel.propTypes = {\n tabStatus: PropTypes.string,\n handleSound: PropTypes.func,\n};\nexport default OrdersPanel;\n","import React, { useEffect } from \"react\";\nimport { Button, Checkbox, Spin } from \"antd\";\nimport { useSelector } from \"react-redux\";\nimport TextInput from \"components/TextInput\";\nimport { useTranslation } from \"react-i18next\";\nimport { CONSTANTS as C } from \"config\";\nimport { useGetOrderInfoByIdMutation } from \"redux/Logistic/LogisticService\";\nimport { UTILS } from \"utils\";\n\nconst OrderRejectForm = ({\n closeModal,\n rejectReason,\n handleValues,\n onSubmit,\n loading,\n order,\n handleErrors,\n}) => {\n const { t } = useTranslation();\n const [getOrderInfoById] = useGetOrderInfoByIdMutation();\n const { orderInfo } = useSelector((state) => state.LogisticReducer);\n\n useEffect(() => {\n async function fetchOrderInfo() {\n try {\n await getOrderInfoById({\n brandId: UTILS.getCurrentUser().brandId,\n orderId: order?._id,\n });\n } catch (error) {\n } finally {\n if (orderInfo?.logisticPartner !== C.STORE) {\n handleErrors(\n \"logisticPartner\",\n t(\n \"You have already sent a rider request to , so cancel it as well. Otherwise, you will be charged\",\n {\n logisticPartner: orderInfo?.logisticPartner,\n }\n )\n );\n }\n }\n }\n fetchOrderInfo();\n return () => {\n handleErrors(\"logisticPartner\", null);\n };\n }, [order?.logisticPartner, order?.orderNumber]);\n return (\n \n
\n
\n
\n
\n

\n {rejectReason.values?.type === \"CANCELLED\"\n ? t(\"Cancel Order\")\n : t(\"Reject Order\")}\n

\n\n

#{order?.orderNumber}

\n
\n
\n \n
\n {order?.orderCheckoutOnlinePaymentMetadata?.data?.paymentGateway ===\n \"STRIPE\" && (\n
\n \n handleValues(\"isRefundRequired\", e.target.checked)\n }\n >\n {t(\"Is Refundable\")}\n \n
\n )}\n
\n {rejectReason?.errors?.logisticPartner ? (\n
\n {rejectReason?.errors?.logisticPartner}\n
\n ) : null}\n
\n \n {t(\"Close\")}\n \n onSubmit(\"CANCELLED\", \"REJECT\")}\n htmlType=\"button\"\n >\n {rejectReason.values?.type === \"REJECTED\" && t(\"Reject\")}\n {rejectReason.values?.type === \"CANCELLED\" && t(\"Cancel\")}\n \n
\n
\n
\n
\n );\n};\n\nexport default OrderRejectForm;\n","import { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport useSWR from \"swr\";\nimport { UTILS } from \"utils\";\n\nconst useRefundableOrder = () => {\n const token = UTILS.getCurrentUser()?.token;\n const fetcher = () =>\n API.GET_REFUNDABLE_COUNT({ token: UTILS.getCurrentUser().token });\n\n const { data, error, mutate } = useSWR(\n token ? C.BASE_URL + \"order/get-refundable-orders-count\" : null,\n fetcher,\n {\n refreshInterval: 300000,\n revalidateOnFocus: false, // Don't revalidate on tab focus\n\n refreshWhenHidden: true, // Allow polling even if tab is hidden\n refreshWhenOffline: true, // Allow polling even if the user is offline\n revalidateOnMount: true, // Always revalidate when the hook is mounted\n revalidateOnReconnect: true, // Revalidate when the user is back online\n revalidateOnWindowFocus: true,\n }\n );\n\n return {\n data: data,\n error: error,\n revalidate: mutate,\n };\n};\n\nexport default useRefundableOrder;\n","import { API } from \"api\";\nimport useSWR from \"swr\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\n\nconst useGetOrderMetaData = () => {\n const token = UTILS.getCurrentUser()?.token;\n\n const url = C.BASE_URL + \"order/get-order-meta-data-info\";\n\n const fetcher = async () => {\n try {\n const response = await API.getOrderMetaData();\n if (response?.success === 1 && response?.data) return response.data;\n } catch (error) {\n return error;\n }\n };\n\n const { data, error, mutate } = useSWR(token ? url : null, fetcher, {\n refreshInterval: 300000,\n revalidateOnFocus: false,\n refreshWhenHidden: true, // Allow polling even if tab is hidden\n refreshWhenOffline: true, // Allow polling even if the user is offline\n revalidateOnMount: true, // Always revalidate when the hook is mounted\n revalidateOnReconnect: true, // Revalidate when the user is back online\n revalidateOnWindowFocus: true,\n });\n\n return {\n data: data,\n error: error,\n revalidate: mutate,\n };\n};\n\nexport default useGetOrderMetaData;\n","import React, { createContext, useContext } from \"react\";\nimport useInterval from \"use-interval\";\nimport useGetOrderMetaData from \"hooks/useGetOrderMetaData\";\n\n// Create a context\nconst OrderMetaDataContext = createContext();\nconst audioUrl =\n \"https://uapp-live-com.s3.amazonaws.com/UAPP-MEDIA/PENDING_ORDER_MUSIC.mpeg\";\nconst OrderMetaDataProvider = (props) => {\n const { data, revalidate } = useGetOrderMetaData();\n const audio = new Audio(audioUrl);\n\n const playPreOrderBeep = () => {\n const preOrderBeep = data?.preOrderBeep;\n if (preOrderBeep) playAudio(audio);\n };\n useInterval(() => {\n playPreOrderBeep();\n }, 10000);\n\n const playAudio = async (mp3) => {\n const playPromise = mp3.play();\n if (playPromise !== undefined) {\n playPromise\n .then(() => {\n mp3.play();\n })\n .catch((error) => {});\n }\n };\n\n return (\n \n {props.children}\n \n );\n};\n\nexport const useOrderMetaDataContext = () => {\n const context = useContext(OrderMetaDataContext);\n if (!context) {\n throw new Error(\"useAppState must be used within an AppStateProvider\");\n }\n return context;\n};\n\nexport default OrderMetaDataProvider;\n","import { API } from \"api\";\nimport { LogisticAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch } from \"react-redux\";\nimport { useOrderMetaDataContext } from \"store/contexts/OrderMetaDataContext\";\nimport useRefundableOrder from \"hooks/useRefundableOrders\";\n\nfunction useGetORderByStatus(\n setLoading,\n tabStatus,\n setOrders,\n setCurrentOrderId\n) {\n const { revalidate } = useOrderMetaDataContext();\n const { revalidate: refundableMutate } = useRefundableOrder();\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const getOrdersByStatus = async (type) => {\n try {\n setLoading(true);\n\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ORDER_BY_STATUS({\n orderStatus: tabStatus,\n token: userDetail.token,\n });\n if (result?.success === 1 && result?.data?.orders) {\n setOrders(result.data.orders);\n if (result?.data?.orders?.length > 0) {\n setCurrentOrderId(result.data.orders[0]._id);\n dispatch(LogisticAction.setOrderInfo(result.data.orders[0]));\n } else {\n dispatch(LogisticAction.setOrderInfo({}));\n }\n } else if (result.status === 1) {\n UTILS.successNotification(t(\"There are no orders\"));\n } else {\n UTILS.errorNotification(t(\"Please try again later!\"));\n }\n } catch (error) {\n } finally {\n setLoading(false);\n if (tabStatus === \"SCHEDULED\") {\n revalidate(\"order/get-order-meta-data-info\", { revalidate: true });\n }\n if (tabStatus === \"REFUND\") {\n refundableMutate(\"order/get-refundable-orders-count\", {\n revalidate: true,\n });\n }\n }\n };\n return getOrdersByStatus;\n}\n\nexport default useGetORderByStatus;\n","import React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { RedoOutlined } from \"@ant-design/icons\";\nimport { useTranslation } from \"react-i18next\";\n// import { useDispatch } from \"react-redux\";\nimport { UTILS } from \"utils\";\nimport { Spin } from \"antd\";\nimport { API } from \"api\";\n\nimport OrderTabs from \"../components/OrderTabs\";\nimport OrdersPanel from \"../components/OrdersPanel\";\nimport useOrder from \"hooks/useOrder\";\n// import { LogisticAction } from \"redux/actions\";\nimport OrderRejectForm from \"../components/OrderRejectForm\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport LocalModal from \"../modals/LocalModal\";\n// import { useOrderMetaDataContext } from \"store/contexts/OrderMetaDataContext\";\nimport useRefundableOrder from \"hooks/useRefundableOrders\";\nimport useGetORderByStatus from \"../hooks/useGetORderByStatus\";\n\nconst LiveOrders = () => {\n // const dispatch = useDispatch();\n const [orders, setOrders] = useState([]);\n const [order, setOrder] = useState({});\n // const { revalidate } = useOrderMetaDataContext();\n const [loading, setLoading] = useState(false);\n const [rejectReason, setRejectReason] = useState({\n values: {\n Modal: false,\n reason: null,\n isRefundRequired: false,\n type: null,\n },\n errors: {\n Modal: null,\n reason: null,\n logisticPartner: null,\n },\n });\n const [tabStatus, setTabStatus] = useState(\"PENDING\");\n const [currentOrderId, setCurrentOrderId] = useState();\n const audio = new Audio(\n \"https://uapp-live-com.s3.amazonaws.com/UAPP-MEDIA/PENDING_ORDER_MUSIC.mpeg\"\n );\n const { t } = useTranslation();\n const { data } = useOrder();\n\n const { data: refundableOrdersCountData, revalidate: refundableMutate } =\n useRefundableOrder();\n\n const getPendingOrders = (status) => {\n if (\n UTILS.isValidObject([\"pendingOrdersCount\"], data?.data) &&\n Array.isArray(data?.data.pendingOrdersCount)\n ) {\n for (\n let index = 0;\n index < data?.data.pendingOrdersCount.length;\n index++\n ) {\n const element = data?.data.pendingOrdersCount[index];\n if (\n UTILS.isValidObject([\"orderStatus\"], element) &&\n element.orderStatus === status\n ) {\n return element.count;\n }\n }\n return 0;\n }\n };\n\n const getRefundableOrders = () => {\n if (\n UTILS.isValidObject([\"refundableOrdersCount\"], data?.data) &&\n Array.isArray(data?.data.refundableOrdersCount)\n ) {\n return data?.data.refundableOrdersCount.reduce((acc, statusCount) => {\n return statusCount.count + acc;\n }, 0);\n }\n };\n\n const checkPendingOrdersCount = (status) => {\n const count = getPendingOrders(status);\n if (count > 0) {\n }\n return count;\n };\n\n const checkRefundableOrdersCount = (status) => {\n const count = getRefundableOrders();\n if (count > 0) {\n }\n return count;\n };\n\n checkRefundableOrdersCount();\n\n checkPendingOrdersCount(\"PENDING\");\n\n const getOrdersByStatus = useGetORderByStatus(\n setLoading,\n tabStatus,\n setOrders,\n setCurrentOrderId\n );\n\n // const getOrdersByStatus = async (type) => {\n // try {\n // setLoading(true);\n\n // const userDetail = UTILS.getCurrentUser();\n // const result = await API.GET_ORDER_BY_STATUS({\n // orderStatus: tabStatus,\n // token: userDetail.token,\n // });\n // if (result?.success === 1 && result?.data?.orders) {\n // setOrders(result.data.orders);\n // if (result?.data?.orders?.length > 0) {\n // setCurrentOrderId(result.data.orders[0]._id);\n // dispatch(LogisticAction.setOrderInfo(result.data.orders[0]));\n // } else {\n // dispatch(LogisticAction.setOrderInfo({}));\n // }\n // } else if (result.status === 1) {\n // UTILS.successNotification(t(\"There are no orders\"));\n // } else {\n // UTILS.errorNotification(t(\"Please try again later!\"));\n // }\n // } catch (error) {\n // } finally {\n // setLoading(false);\n // type === \"SCHEDULED\" &&\n // revalidate(\"order/get-order-meta-data-info\", { revalidate: true });\n // }\n // };\n\n const validateRejectReason = (type) => {\n if (type === \"REJECT\") {\n if (!rejectReason?.values?.reason) {\n handleErrors(\"reason\", t(\"Reason is a required field\"));\n return false;\n }\n if (rejectReason?.values?.reason?.trim()?.length <= 2) {\n handleErrors(\"reason\", t(\"Reason must be atleast 3 characters long\"));\n return false;\n }\n return true;\n }\n return true;\n };\n\n const onSubmit = async (status, type) => {\n try {\n if (!validateRejectReason(type)) return;\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n let obj = {\n brandId: userDetail.brandId,\n token: userDetail.token,\n orderId: currentOrderId,\n isRefundRequired: rejectReason.values?.isRefundRequired,\n orderStatus: type === \"REJECT\" ? rejectReason.values?.type : status,\n\n ...(type === \"REJECT\" &&\n rejectReason.values?.type === \"REJECTED\" && {\n cancelOrderReason: null,\n rejectedOrderReason: rejectReason.values.reason,\n }),\n ...(type === \"REJECT\" &&\n rejectReason.values?.type === \"CANCELLED\" && {\n cancelOrderReason: rejectReason.values.reason,\n rejectedOrderReason: null,\n }),\n language: \"EN\",\n };\n const result = await API.SET_ORDER_STATUS(obj);\n if (result?.success === 1) {\n if (type === \"REJECT\") {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n Modal: false,\n reason: null,\n isRefundRequired: false,\n },\n }));\n refundableMutate(\"order/get-refundable-orders-count\", {\n revalidate: true,\n });\n }\n UTILS.successNotification(t(\"Order Updated!\"));\n } else {\n UTILS.errorNotification(errorHandler(result?.error));\n }\n if (status === \"PREPARING\") audio.pause();\n await getOrdersByStatus(\"SCHEDULED\");\n } catch (error) {\n } finally {\n setLoading(false);\n }\n };\n\n const handleValues = (key, value) => {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: value,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const handleErrors = (key, value) => {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n [key]: value,\n },\n }));\n };\n return (\n
\n
\n \n
\n getOrdersByStatus(\"PENDING\")}\n >\n \n {t(\"Load New Orders\")}\n \n
\n {\n setTabStatus(status);\n }}\n loading={loading}\n />\n audio.pause()}\n {...{\n tabStatus,\n setLoading,\n loading,\n orders,\n getOrdersByStatus,\n currentOrderId,\n setCurrentOrderId,\n setRejectReason,\n order,\n setOrder,\n onSubmit,\n }}\n refundableMutate={refundableMutate}\n />\n\n setRejectReason}\n >\n {\n setRejectReason((prevState) => ({\n ...prevState,\n values: {\n Modal: false,\n reason: null,\n isRefundRequired: false,\n },\n errors: {\n reason: null,\n },\n }));\n }}\n handleValues={handleValues}\n {...{ rejectReason, onSubmit }}\n />\n \n
\n
\n
\n );\n};\nLiveOrders.propTypes = {\n status: PropTypes.string,\n color: PropTypes.string,\n};\nexport default LiveOrders;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Input } from \"antd\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst TextPassword = (props) => {\n const mandatoryField = getMandatoryField(props.mandatory);\n const fieldError = getFieldError(props.error);\n return (\n <>\n \n \n props.handleValues(props.keyVal, event.target.value)\n }\n placeholder={props.placeHolder ? props.placeHolder : \"\"}\n value={props.value}\n size=\"large\"\n className=\"p-2\"\n />\n \n );\n};\n\nTextPassword.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default TextPassword;\n","import React, { useState } from \"react\";\nimport TextInput from \"../../../components/TextInput\";\nimport { CONSTANTS as C } from \"config\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport PhoneNumberInput from \"components/PhoneNumberInput\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport TextPassword from \"components/TextPassword\";\n\nconst AddAdminUser = (props) => {\n const { t } = useTranslation();\n const [loading, setLoading] = useState(false);\n const [user, setUser] = useState({\n values: {\n name: \"\",\n email: \"\",\n brandId: \"\",\n phoneNumber: \"\",\n deviceType: \"web\",\n userType: \"\",\n password: \"\",\n confirmPassword: \"\",\n },\n errors: {\n name: \"\",\n email: \"\",\n brandId: \"\",\n phoneNumber: \"\",\n deviceType: \"\",\n userType: \"\",\n password: \"\",\n confirmPassword: \"\",\n language: \"\",\n },\n });\n\n const handleValues = (key, val) => {\n setUser((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const validateInputs = () => {\n let isValidForm = true;\n let obj = {\n errors: {\n name: \"\",\n email: \"\",\n phoneNumber: \"\",\n password: \"\",\n confirmPassword: \"\",\n userType: \"\",\n },\n };\n\n if (!user?.values?.email) {\n obj.errors.email = t(\"Field is required\");\n isValidForm = false;\n }\n if (!user?.values?.name || UTILS.hasWhiteSpace(user.values.name)) {\n obj.errors.name = t(\"Field is required\");\n isValidForm = false;\n } else if (!UTILS.emailValidation().test(user.values.email)) {\n obj.errors.email = t(\"Please enter correct email!\");\n isValidForm = false;\n }\n\n if (!user?.values?.phoneNumber) {\n obj.errors.phoneNumber = t(\"Field is required\");\n isValidForm = false;\n }\n\n if (!UTILS.isValidMobileNumber(user.values.phoneNumber)) {\n obj.errors.phoneNumber = t(\"Enter a valid mobile number\");\n isValidForm = false;\n }\n\n if (user?.values?.password == \"\") {\n obj.errors.password = t(\"Field is required\");\n isValidForm = false;\n }\n\n if (user?.values?.password?.length <= 6) {\n obj.errors.password = t(\"password should be 7 character long\");\n isValidForm = false;\n }\n\n if (user?.values?.confirmPassword === \"\") {\n obj.errors.confirmPassword = t(\"Field is required\");\n isValidForm = false;\n }\n\n if (user?.values?.password !== user.values.confirmPassword) {\n obj.errors.confirmPassword = t(\"password do not match\");\n isValidForm = false;\n }\n\n setUser((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: obj.errors,\n }));\n return isValidForm;\n };\n const addUser = async () => {\n user.values.email = user?.values?.email?.trim();\n if (validateInputs()) {\n setLoading(true);\n user.values.phoneNumber = await UTILS.formatPhoneNumber(\n user.values.phoneNumber\n );\n const userDetail = UTILS.getCurrentUser();\n let objUser = {\n ...user.values,\n brandId: userDetail.brandId,\n userType: \"MANAGER\",\n };\n const result = await API.ADD_USER({\n token: userDetail.token,\n user: objUser,\n });\n if (result.success === 1) {\n UTILS.successNotification(t(\"User Added Successfully\"));\n props.callback();\n clearFields();\n } else {\n UTILS.errorNotification(result?.message);\n }\n setLoading(false);\n }\n };\n // clear all the fields\n const clearFields = () => {\n setUser((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n name: \"\",\n email: \"\",\n phoneNumber: \"\",\n password: \"\",\n confirmPassword: \"\",\n userType: \"\",\n },\n }));\n };\n const sharedProps = {\n handleValues,\n mandatory: true,\n };\n return (\n
\n
\n

{t(\"User Information\")}

\n \n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n addUser()}\n >\n {t(\"Add User\")}\n \n
\n
\n
\n
\n
\n );\n};\n\nAddAdminUser.propTypes = {\n callback: PropTypes.func,\n};\nexport default AddAdminUser;\n","import { API } from \"api\";\nimport Card from \"components/Card\";\nimport RadioButton from \"components/RadioButton\";\nimport React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { Spin } from \"antd\";\nconst StoreAccessRightsList = (props) => {\n const [stores, setStores] = useState([]);\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const getStoreList = (result) => {\n let arr = [];\n if (\n result.success === 1 &&\n UTILS.isValidObject([\"data\", \"pulledStores\"], result)\n ) {\n arr = [...result.data.pulledStores];\n const modifiedArr = arr.map((obj) => (obj = { ...obj, isON: false }));\n arr = modifiedArr;\n return arr;\n } else {\n UTILS.HANDLE_ERROR_NOTIFICATION(\n \"topRight\",\n \"error\",\n t(\"There are not stores\")\n );\n return arr;\n }\n };\n const getUserStoresByUserId = (result) => {\n let tempArr = getStoreList(result[0]);\n if (result[1].success === 1 && UTILS.isValidObject([\"data\"], result[1])) {\n const arr = [...result[1].data];\n for (let index = 0; index < arr.length; index++) {\n const element = arr[index];\n tempArr = tempArr.map((el) =>\n el._id == element.storeId._id ? { ...el, isON: true } : el\n );\n }\n\n setStores(tempArr);\n } else {\n }\n };\n\n const addUserToStore = async (sId, val) => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.ADD_NEW_STORE_ADMIN({\n token: userDetail.token,\n userType: props.user.userType,\n adminId: props.user._id,\n storeId: sId,\n brandId: userDetail.brandId,\n });\n if (result.success == 1) {\n let arr = [...stores];\n var modifiedArr = arr.map((el) =>\n el._id == sId ? { ...el, isON: val } : el\n );\n setStores(modifiedArr);\n } else {\n }\n };\n\n const deleteUserFromStore = async (sId, val) => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.DELETE_STORE_ADMIN({\n token: userDetail.token,\n userType: props.user.userType,\n adminId: props.user._id,\n storeId: sId,\n brandId: userDetail.brandId,\n });\n if (result.success == 1) {\n let arr = [...stores];\n var modifiedArr = arr.map((el) =>\n el._id == sId ? { ...el, isON: val } : el\n );\n setStores(modifiedArr);\n } else {\n }\n };\n\n const handleValues = (key, val) => {\n if (val) addUserToStore(key, val);\n else deleteUserFromStore(key, val);\n };\n\n const Row = (item) => {\n return (\n \n {item.baseLanguage?.name}\n {item.manualAddress}\n \n \n \n \n );\n };\n\n const getUserDataWithStores = async () => {\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n const result = await API.GET_DATA_FOR_USERS_WITH_STORE_LIST({\n token: userDetail.token,\n brandId: userDetail.brandId,\n userId: props.user._id,\n language: \"EN\",\n });\n\n getUserStoresByUserId(result);\n setLoading(false);\n };\n\n useEffect(() => {\n getUserDataWithStores();\n }, []);\n return (\n
\n

{t(\"Grant Access to\")}

\n

\n {\"[\" + props.user?.email + \"]\"}\n

\n {/*

Allow User to Manage Live Orders, Order History and Items for Selected Stores

*/}\n

\n {t(\n \"Allow User to Manage Live Orders, Order History and Items for Selected Stores\"\n )}\n

\n \n \n \n \n \n \n \n \n \n \n \n {stores &&\n stores.map((item) => {\n return Row(item);\n })}\n \n
\n {t(\"Store\")}\n \n {t(\"Address\")}\n \n {t(\"Access\")}\n
\n
\n
\n
\n \n {t(\"Close\")}\n \n
\n
\n );\n};\n\nStoreAccessRightsList.propTypes = {\n user: PropTypes.object,\n onClose: PropTypes.func,\n};\nexport default StoreAccessRightsList;\n","import Card from \"components/Card\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport PropTypes from \"prop-types\";\nimport { SVG_Delete } from \"svg/SVGs\";\nimport { SVG_Edit } from \"svg/SVGs\";\nimport Modal from \"components/Modal\";\nimport StoreAccessRightsList from \"./StoreAccessRightsList\";\nimport { CONSTANTS as C } from \"config\";\nimport { useTranslation } from \"react-i18next\";\nconst ManageAdminUsers = (props) => {\n const [open, setOpen] = useState(false);\n const [user, setUser] = useState({});\n const { t } = useTranslation();\n const deleteUser = (index, user) => {};\n\n const editUser = (index, user) => {\n setUser(user);\n if (user.userType === C.USER_TYPE_ADMIN)\n UTILS.HANDLE_ERROR_NOTIFICATION(\n \"topRight\",\n \"info\",\n t(\"BRAND-ADMIN rights can not be changed\")\n );\n else setOpen(true);\n };\n\n const UserRow = (user, index) => {\n return (\n \n {user.userType}\n {user.email}\n \n {user.phoneNumber}\n \n \n \n \n \n \n );\n };\n\n return (\n
\n

\n {t(\"Edit Access Levels for Users\")}\n

\n
\n setOpen(false)}\n scroll={true}\n >\n setOpen(false)} />\n \n \n
\n \n \n \n \n \n \n \n \n \n \n {props.users &&\n props.users.map((item, index) => {\n return UserRow(item, index);\n })}\n \n
\n {t(\"User type\")}\n \n {t(\"Email\")}\n \n {t(\"Mobile number\")}\n \n {t(\"Actions\")}\n
\n
\n
\n
\n
\n );\n};\n\nManageAdminUsers.propTypes = {\n users: PropTypes.array,\n};\n\nexport default ManageAdminUsers;\n","import { API } from \"api\";\nimport React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport PageHeading from \"../../../components/PageHeading\";\nimport AddAdminUser from \"../component/AddAdminUser\";\nimport ManageAdminUsers from \"../component/ManageAdminUsers\";\nimport { CONSTANTS as C } from \"config\";\nimport { useTranslation } from \"react-i18next\";\nconst CreateAdmin = () => {\n const [users, setUsers] = useState([]);\n\n const { t } = useTranslation();\n const getAdminUsersByBrand = async () => {\n const userDetail = UTILS.getCurrentUser();\n\n const result = await API.GET_USERS_BY_BRAND({\n brandId: userDetail.brandId,\n token: userDetail.token,\n language: \"EN\",\n });\n\n if (UTILS.isValidObject([\"data\", \"users\"], result) && result.success === 1)\n setUsers(result.data.users);\n else {\n }\n };\n\n useEffect(() => {\n getAdminUsersByBrand();\n }, []);\n\n const handleValues = () => {\n getAdminUsersByBrand();\n };\n\n return (\n
\n \n

\n {t(\n \"You can add new users and set their acccess level, which will decide the stores they can utilize.\"\n )}\n

\n
\n
\n \n
\n
\n \n
\n
\n
\n );\n};\nexport default CreateAdmin;\n","import React from \"react\";\nimport { SVG_DELETE_DIALOG } from \"svg/SVGs\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nconst DeleteComponent = (props) => {\n const { t } = useTranslation();\n const getTitle = () => {\n const arr = [null, undefined, \"\", \"null\", \"undefined\"];\n if (arr?.includes(props?.title)) return \"\";\n else return props.title;\n };\n return (\n \n
\n
\n
\n \n

\n {t(\"Are you sure ?\")}\n

\n

\n {getTitle()}\n {props?.Heading}\n

\n
\n
\n \n \n
\n
\n
\n
\n );\n};\nDeleteComponent.propTypes = {\n onCancel: PropTypes.func,\n onDelete: PropTypes.func,\n};\nexport default DeleteComponent;\n","import { Modal, Spin } from \"antd\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport React, { useRef, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { MenuAction } from \"redux/actions\";\nimport { LoaderAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { CloudUploadOutlined } from \"@material-ui/icons\";\n\nfunction BulkMenu({ open, setOpen }) {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [error, setError] = useState(null);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const fileInputRef = useRef(null);\n const [file, setFile] = useState(null);\n const uploadFile = async (e) => {\n e.preventDefault();\n setError(null);\n if (!file) {\n UTILS.errorNotification(t(\"Please select a file\"));\n return;\n }\n if (\n file.type !==\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n ) {\n setError(t(\"Please select a valid excel file\"));\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n try {\n var formData = new FormData();\n formData.append(\"file\", file);\n formData.append(\"brandId\", userDetail.brandId);\n const res = await API.uploadBulkItems(formData);\n if (res?.success === 1) {\n UTILS.successNotification(res?.message);\n dispatch(MenuAction.syncData());\n setOpen(false);\n } else {\n setError(errorHandler(res?.message));\n }\n } catch (err) {\n setError(errorHandler(err));\n } finally {\n setFile(null);\n if (fileInputRef?.current) {\n fileInputRef.current.value = \"\";\n }\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return (\n {\n setOpen(false);\n }}\n footer={null}\n >\n {error && (\n
\n

\n
\n )}\n \n
\n
\n
\n \n
\n \n {t(\"Submit\")}\n \n \n
\n
\n \n );\n}\n\nexport default BulkMenu;\n","import React, { useEffect, useState, useMemo } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { UTILS } from \"utils\";\nimport PropsTypes from \"prop-types\";\nimport Modal from \"components/Modal\";\nimport { API } from \"api\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport TextInput from \"components/TextInput\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nimport { Button, Spin, Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { CONSTANTS as C } from \"config\";\nimport { useSelector } from \"react-redux\";\nimport BulkMenu from \"features/bulk-menu/BulkMenu\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst ItemContainer = (props) => {\n const router = useHistory();\n const { syncData } = useSelector((state) => state.MenuReducer);\n const [items, setItems] = useState([]);\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n deleteItemIndex: null,\n item: null,\n });\n\n const [bulkMenuModal, setBulkMenuModal] = useState(false);\n const [searchTerm, setSearch] = useState(\"\");\n // const [indexToDelete, setIndexToDelete] = useState(-1);\n // const [open, setOpen] = useState(false);\n const [loading, setLoading] = useState(true);\n const { t } = useTranslation();\n const renderTitleWithImage = (value, rowData, index) => {\n return (\n
\n 0\n ? rowData.itemImageURLs[0]\n : C.PLACEHOLDER_IMAGE\n }\n className=\"w-14 sm:w-20 h-14\"\n />\n
\n

\n {UTILS.isValidObject([\"baseLanguage\", \"title\"], rowData)\n ? rowData.baseLanguage.title\n : \"\"}\n

\n {/*

{t('Ingredients')}: {UTILS.isValidObject([\"baseLanguage\",\"ingredients\"],rowData) ? rowData.baseLanguage.ingredients : \"\"}

*/}\n

\n {UTILS.isValidObject([\"baseLanguage\", \"description\"], rowData)\n ? rowData.baseLanguage.description\n : \"\"}\n

\n
\n
\n );\n };\n\n const renderDate = (value, rowData, index) => {\n return (\n
\n

\n {rowData.createdAt ? new Date(rowData.createdAt).toDateString() : \"\"}\n

\n
\n {rowData.createdAt\n ? new Date(rowData.createdAt).toLocaleTimeString()\n : \"\"}\n
\n
\n );\n };\n const renderActions = (value, rowData, index) => {\n return (\n
\n updateItem(rowData._id)}\n >\n {t(\"View\")}\n \n onClickDeleteButton(rowData._id)}\n >\n {t(\"Delete\")}\n \n
\n );\n };\n\n const columns = [\n {\n key: \"baseLanguage\",\n title: t(\"Item\"),\n dataIndex: \"baseLanguage\",\n align: \"initial\",\n render: renderTitleWithImage,\n },\n {\n key: \"price\",\n title: t(\"Price\"),\n dataIndex: \"price\",\n align: \"initial\",\n sorter: {\n compare: (a, b) => a.price - b.price,\n multiple: 3,\n },\n render: (value, rowData, index) => {\n return
{t(\"AED\") + \" \" + value}
;\n },\n },\n {\n key: \"createdAt\",\n title: t(\"Created At\"),\n dataIndex: \"createdAt\",\n align: \"initial\",\n width: \"10%\",\n render: renderDate,\n sorter: {\n compare: (a, b) => a.math - b.math,\n multiple: 2,\n },\n },\n {\n title: t(\"Actions\"),\n render: renderActions,\n align: \"initial\",\n width: \"10%\",\n },\n ];\n\n const getItemsByBrand = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ITEMS_BY_BRAND({\n token: userDetail.token,\n brandId: userDetail.brandId,\n language: \"EN\",\n });\n if (result?.success === 1) setItems(result.data);\n else {\n }\n setLoading(false);\n };\n\n useEffect(() => {\n getItemsByBrand();\n }, [syncData]);\n\n const updateItem = (id) => {\n \n router.push(\"/app/dashboard/updateitem/\", {\n itemId: id,\n });\n };\n\n const createItem = () => {\n router.push(\"/app/dashboard/createitem\");\n };\n\n const onClickDeleteButton = (id) => {\n const index = items.findIndex((obj) => obj._id === id);\n if (index !== -1) {\n const item = items[index];\n setDeleteModal({ isOpen: true, deleteItemIndex: index, item: item });\n }\n };\n\n const handleCancel = () => {\n setDeleteModal({ isOpen: false, deleteItemIndex: -1, item: null });\n };\n const onDeleteItem = async (item) => {\n try {\n const item = items[deleteModal.deleteItemIndex];\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const response = await API.DELETE_ITEM({\n brandId: userDetail.brandId,\n itemId: item._id,\n token: userDetail.token,\n });\n if (response?.success === 1) {\n UTILS.handleSuccesNotification(response?.message ?? t(\"Item Deleted\"));\n let arr = [...items];\n arr.splice(deleteModal.deleteItemIndex, 1);\n setItems(arr);\n } else {\n UTILS.handleErrorNotification(errorHandler(response?.message));\n }\n setLoading(false);\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error?.message));\n } finally {\n handleCancel();\n }\n };\n\n const Items = useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return items;\n }\n return items.filter((item) =>\n item?.baseLanguage?.title?.toLowerCase().includes(searchTerm.trim())\n );\n }, [items, searchTerm]);\n const handSearch = (key, val) => {\n setSearch(val.toLowerCase());\n };\n return (\n
\n \n \n \n \n \n
\n
\n \n
\n
\n \n
\n
\n {\n setBulkMenuModal(true);\n }}\n >\n {t(\"Import\")}\n \n \n createItem()}\n >\n {t(\"Create\")}\n \n
\n
\n
\n
\n
\n \n
\n obj._id}\n />\n
\n
\n
\n
\n
\n
\n );\n};\n\nItemContainer.propTypes = {\n data: PropsTypes.array,\n};\n\nexport default ItemContainer;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst PriceInput = (props) => {\n const mandatoryField = getMandatoryField(props.mandatory);\n const fieldError = getFieldError(props.error);\n\n const handleChangePrice = (event) => {\n let v = UTILS.ARtoENPrice(event.target.value);\n props.handleValues(props.keyVal, v);\n };\n\n return (\n <>\n \n handleChangePrice(event)}\n placeholder={props.placeHolder ? props.placeHolder : \"\"}\n value={props.value}\n type={props?.type ? props.type : \"text\"}\n disabled={props.disabled ? true : false}\n className=\"font-montserrat text-16px text-input-color text-sm border border-grey-600 focus:ring-indigo-500 outline-none focus:border-indigo-500 block w-full border-gray-300 p-2\"\n />\n \n );\n};\n\nPriceInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default PriceInput;\n","import PageHeading from \"components/PageHeading\";\nimport Card from \"components/Card\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport TextInput from \"components/TextInput\";\nimport TextArea from \"components/TextArea\";\nimport { CONSTANTS as C } from \"config\";\nimport { API } from \"api\";\nimport { useHistory } from \"react-router-dom\";\nimport { Button, Spin, Upload, Modal } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { PlusOutlined } from \"@ant-design/icons\";\nimport \"./item.css\";\nimport PriceInput from \"components/PriceInput\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst CreateItem = () => {\n // Hooks\n const router = useHistory();\n const { t } = useTranslation();\n // States\n const [item, setItem] = useState(UTILS.getItemModel());\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(false);\n const [fileList, setFileList] = useState([]);\n const [previewOpen, setPreviewOpen] = useState(false);\n const [previewImage, setPreviewImage] = useState(\"\");\n\n /* A function that is used to set the image url in the state. */\n const handleImage = (key, val) => {\n if (key === C.KEY_IMAGE_URL) {\n setItem((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n itemImageURLs: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n }\n };\n\n /* A function that is used to set the basic info in the state. */\n const handleBasicInfo = (key, val) => {\n setItem((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n ...prevState.values.baseLanguage,\n [key]: val,\n },\n },\n errors: {\n ...prevState.errors,\n baseLanguage: {\n ...prevState.errors.baseLanguage,\n [key]: \"\",\n },\n },\n }));\n };\n\n /* A function that is used to set the basic info in the state. */\n const handleValues = (key, val) => {\n setItem((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n /* Validating the inputs. */\n const validateInputs = () => {\n let { objError, isValidForm } = UTILS.validateItemInfo(item);\n setItem((prevState) => ({\n values: {\n ...prevState.values,\n },\n errors: objError,\n }));\n return isValidForm;\n };\n\n /**\n * An async function that adds an item to the database.\n */\n const addItem = async () => {\n try {\n if (!validateInputs()) return;\n setLoading(true);\n if (validateInputs()) {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.ADD_ITEM({\n ...item.values,\n price: +parseFloat(item.values.price)?.toFixed(2),\n brandId: userDetail.brandId,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(\"Item Added\"));\n router.push(\"/app/dashboard/items\");\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n /* Checking the file type and size before uploading. */\n function beforeUpload(file) {\n setError(false);\n const isJpgOrPng = file.type === \"image/jpeg\" || file.type === \"image/png\";\n if (!isJpgOrPng) {\n setError(true);\n UTILS.errorNotification(t(\"You can only upload JPG/PNG file\"));\n }\n const F_Size = file.size / 1024;\n const isLt1M = F_Size <= C.MAX_IMAGE_SIZE;\n if (!isLt1M) {\n setError(true);\n UTILS.errorNotification(t(\"The image must be less than 2MB in size.\"));\n }\n\n return isJpgOrPng && isLt1M;\n }\n\n /**\n * This function is called when a user uploads a file. It takes the file and uploads it to the server.\n * @param info - the file object\n * @param type - the type of the file, which is the file extension.\n */\n const handleChange = async (info, type) => {\n const { file, fileList } = info;\n if (error) return;\n if (!error) {\n setFileList(fileList);\n }\n if (file.status === \"uploading\") {\n setLoading(true);\n return;\n }\n if (file.status === \"done\") {\n let list = [...item.values.itemImageURLs, info.file.response.data.url];\n handleImage(C.KEY_IMAGE_URL, list);\n setLoading(false);\n }\n };\n\n /**\n * It takes a file as an argument, and then it returns a function that takes an event as an argument\n * @param file - The file to be removed.\n */\n const onRemove = async (file) => {\n let List = fileList?.filter((d) => d.url !== file?.response?.data?.url);\n let List1 = item?.values?.itemImageURLs?.filter(\n (d) => d !== file?.response?.data?.url\n );\n setFileList(List);\n handleImage(C.KEY_IMAGE_URL, List1);\n };\n\n /* A function that is used to close the preview modal. */\n const handleCancel = () => setPreviewOpen(false);\n\n /* Used to get the base64 of the image. */\n const getBase64 = (file) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result);\n reader.onerror = (error) => reject(error);\n });\n\n /**\n * A function that takes in a file and returns a promise.\n * @param file - The file to be previewed.\n */\n const onPreview = async (file) => {\n if (!file.url && !file.preview) {\n file.preview = await getBase64(file.originFileObj);\n }\n setPreviewImage(file.url || file.preview);\n setPreviewOpen(true);\n };\n\n /* A function that returns a button that is used to upload images. */\n const uploadButton = (\n
\n \n \n {t(\"Upload\")}\n
\n \n );\n\n return (\n
\n \n
\n \n

\n {t(\"Create Item\")}\n

\n

\n {t(\"Please enter complete details for better user experience\")}\n

\n \n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n \n

\n {t(\"Item image size\")}\n

\n
\n handleChange(info, \"\")}\n onPreview={onPreview}\n beforeUpload={beforeUpload}\n onRemove={onRemove}\n >\n {fileList?.length <= 9 ? uploadButton : null}\n \n \n \n \n
\n
\n
\n addItem()}\n >\n {t(\"Save\")}\n \n router.goBack()}\n >\n {t(\"Back\")}\n \n
\n
\n
\n
\n
\n
\n );\n};\n\nexport default CreateItem;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nconst Context = React.createContext({});\n\nexport function Accordion(props) {\n const [selected, setSelected] = React.useState();\n\n const toggleItem = (id) => {\n setSelected((prevState) => (prevState !== id ? id : \"\"));\n };\n return (\n \n {props.children}\n \n );\n}\nAccordion.propTypes = {\n children: PropTypes.array,\n};\n\nexport const useAccordion = () => React.useContext(Context);\n","import { useAccordion } from \"features/menu/components/AccordionN\";\nimport React, { useEffect } from \"react\";\nimport { AngleUpIcon } from \"svg/SVGs\";\nimport { AngleDownIcon } from \"svg/SVGs\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { SVG_DRAGDROP } from \"svg/SVGs\";\nimport { useRef } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nconst SingleGroup = ({ modiferGroup, toggle, item, deleteModifierGrp }) => {\n const myRef = useRef();\n const { t } = useTranslation();\n const history = useHistory();\n const { selected, toggleItem } = useAccordion();\n\n const outside = (e) => {\n if (!myRef?.current?.contains(e.target)) {\n }\n };\n useEffect(() => {\n document.addEventListener(\"mousedown\", outside);\n return () => document.removeEventListener(\"mousedown\", outside);\n }, []);\n\n const updateGroup = (item) => {\n history.push(\"/app/dashboard/update-modifier-group\", {\n modifier: {\n _id: modiferGroup.modifierGroupId?._id,\n },\n });\n };\n\n return (\n {\n toggleItem(toggle);\n }}\n >\n
\n {selected === toggle ? : }\n
\n
\n \n
\n \n \n \n \n \n \n \n
\n

\n {modiferGroup?.modifierGroupId?.baseLanguage?.name}\n

\n
\n

\n {t(\"Max\")}:{\" \"}\n {modiferGroup?.modifierGroupId?.maximumAllowedSelection}{\" \"}\n

{\" \"}\n
\n

\n {t(\"Type\")}:\n {modiferGroup?.modifierGroupId?.isSingleSelection\n ? t(\"Single\")\n : t(\"Multiple\")}\n

\n
\n

\n {modiferGroup?.modifierGroupId?.isRequired\n ? t(\"Required\")\n : t(\"Optional\")}\n

\n
\n
\n updateGroup(item)}\n >\n {t(\"Edit\")}\n \n deleteModifierGrp(modiferGroup)}\n >\n {t(\"Delete\")}\n \n
\n \n );\n};\nexport default SingleGroup;\n\nSingleGroup.propTypes = {\n toggle: PropTypes.string,\n cat: PropTypes.object,\n editCat: PropTypes.func,\n deleteCat: PropTypes.func,\n keyVal: PropTypes.number,\n itemCount: PropTypes.number,\n};\n","import { useAccordion } from \"features/menu/components/AccordionN\";\nimport React, { useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nconst SingleModifer = ({ modiferGroup }) => {\n const ref = useRef();\n const { t } = useTranslation();\n const { selected } = useAccordion();\n\n const style = {\n panel: `overflow-hidden md:overflow-x-hidden transition-height ease text-gray-600 text-16px`,\n };\n const inlineStyle =\n selected === modiferGroup._id\n ? { height: ref.current?.scrollHeight }\n : { height: 0 };\n\n return (\n \n {modiferGroup?.modifierGroupId?.modifiers?.map((modifer) => {\n return (\n \n
\n

{modifer?.modifierId?.baseLanguage?.name}

\n
\n
\n {modifer?.modifierId?.price + \" \" + t(\"AED\")}\n
\n \n );\n })}\n \n );\n};\nexport default SingleModifer;\n\nSingleModifer.propTypes = {\n cat: PropTypes.object,\n handleCount: PropTypes.func,\n pushFrom: PropTypes.string,\n};\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst TextInputReadOnly = ({ label, value }) => {\n return (\n <>\n \n
\n {value}\n
\n \n );\n};\n\nTextInputReadOnly.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default TextInputReadOnly;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport RadioButton from \"components/RadioButton\";\nimport SectionHeading from \"components/SectionHeading\";\nimport TextInputReadOnly from \"components/TextInputReadOnly\";\nconst ViewGroup = ({ row, setViewGroup }) => {\n const { t } = useTranslation();\n\n return (\n
\n
\n \n
\n
\n setViewGroup(false)}\n >\n \n \n \n \n \n
\n \n
\n
\n \n
\n \n
\n
\n \n
\n
\n \n
\n
\n {}}\n mandatory={true}\n error={null}\n />\n
\n
\n
\n
\n
\n
\n
\n );\n};\n\nexport default ViewGroup;\n","import React from \"react\";\n\nfunction SearchInput({ searchTerm, setSearchTerm, placeholder }) {\n return (\n
\n \n \n \n setSearchTerm(e.target?.value)}\n />\n
\n );\n}\n\nexport default SearchInput;\n","import React, { useMemo, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { Card, Checkbox, Table } from \"antd\";\nimport { Button, Empty, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\nimport { RemoveRedEyeOutlined } from \"@material-ui/icons\";\nimport ViewGroup from \"../ViewGroup\";\nimport Modal from \"components/Modal\";\nimport SearchInput from \"components/SearchInput\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nconst AttachModifierGroupWithItem = ({\n onClose,\n item,\n MemizedModifiers,\n getItemDetail,\n}) => {\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const router = useHistory();\n const [checkedRows, setCheckedRows] = useState([]);\n\n const linkModifierGroupsWithItems = async () => {\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.linkModifierGroupWithItem({\n brandId: userDetail.brandId,\n itemId: item?.values?._id,\n modifierGroups: checkedRows,\n });\n if (result?.success === 1) {\n UTILS.successNotification(\n result?.message ?? t(\"Attached Successfully\")\n );\n getItemDetail(item?.values._id);\n onClose();\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const handleRowClick = (modifierGroupId) => {\n setCheckedRows((prevCheckedRows) => {\n const updatedArray = [...prevCheckedRows];\n\n const existingIndex = updatedArray.findIndex(\n (item) => item.modifierGroupId === modifierGroupId\n );\n\n if (existingIndex !== -1) {\n // If already selected, remove\n updatedArray.splice(existingIndex, 1);\n } else {\n // If not selected, add\n updatedArray.push({ modifierGroupId });\n }\n\n return updatedArray;\n });\n };\n\n const Row = (value, modifier, index) => {\n return (\n row.modifierGroupId === modifier._id\n )}\n onChange={() => handleRowClick(modifier._id)}\n />\n );\n };\n\n const columns = [\n {\n title: t(\"Link\"),\n dataIndex: \"price\",\n align: \"center\",\n width: \"10%\",\n render: Row,\n },\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n key: \"title\",\n align: \"center\",\n render: (value, row, i) => {\n return
{value?.name}
;\n },\n },\n {\n title: t(\"Maximum Allowed Selection\"),\n dataIndex: \"maximumAllowedSelection\",\n align: \"center\",\n width: \"10%\",\n },\n {\n title: t(\"Required\"),\n dataIndex: \"isRequired\",\n width: \"10%\",\n align: \"center\",\n render: (value) => {\n return <>{value ? t(\"Yes\") : t(\"No\")};\n },\n },\n {\n title: t(\"Action\"),\n dataIndex: \"price\",\n width: \"10%\",\n align: \"center\",\n render: (index, record) => (\n {\n setViewGroup(true);\n setData(record);\n }}\n />\n ),\n },\n ];\n\n const [viewGroup, setViewGroup] = useState(false);\n const [searchTerm, setSearch] = useState(null);\n const [Data, setData] = useState({});\n\n const FilteredData = useMemo(() => {\n let searchTermLower = searchTerm?.toLowerCase()?.trim();\n if (searchTerm === \"\" || searchTerm === null) {\n return MemizedModifiers;\n }\n return MemizedModifiers?.filter((group) =>\n group.baseLanguage?.name?.toLowerCase()?.includes(searchTermLower)\n );\n }, [MemizedModifiers, searchTerm]);\n\n return (\n
\n {\n setViewGroup(false);\n }}\n >\n \n \n\n \n
\n
\n

\n {t(\"Add modifier groups to\")}{\" \"}\n \n {item?.values?.baseLanguage?.title}\n \n

\n
\n
\n \n
\n
\n\n {MemizedModifiers && MemizedModifiers?.length >= 1 ? (\n \n \n
\n record._id}\n />\n
\n
\n\n
\n
\n \n {t(\"Close\")}\n \n
\n
\n \n {t(\"Attach\")}\n \n
\n
\n
\n ) : (\n {t(\"No Modifier Group\")}}>\n \n router.push(\"/app/dashboard/create-modifier-group\")\n }\n type=\"primary\"\n >\n {t(\"Add New Modifier Group\")}\n \n
\n \n {t(\"Close\")}\n \n
\n
\n )}\n \n \n );\n};\nexport default AttachModifierGroupWithItem;\n\nAttachModifierGroupWithItem.propTypes = {\n onClose: PropTypes.func,\n cat: PropTypes.object,\n handleValues: PropTypes.func,\n itemsToRemove: PropTypes.array,\n};\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nconst postConfig = {\n query: (body) => ({\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n\nconst ModifierService = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n getModifierGroups: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_MODIFIER_GROUPS,\n ...postConfig.query(body),\n }),\n }),\n createModifierGroup: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CREATE_MODIFIER_GROUP,\n ...postConfig.query(body),\n }),\n }),\n updateModifierGroup: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.UPDATE_MODIFIER_GROUP,\n ...postConfig.query(body),\n }),\n }),\n deleteModifierGroup: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.DELETE_MODIFIER_GROUP,\n ...postConfig.query(body),\n }),\n }),\n getModifierList: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_BRAND_MODIFIERS,\n ...postConfig.query(body),\n }),\n }),\n createNewModifier: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CREATE_NEW_MODIFIER,\n ...postConfig.query(body),\n }),\n }),\n deleteModifier: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.DELETE_MODIFIER,\n ...postConfig.query(body),\n }),\n }),\n upDateModifier: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.UPDATE_MODIFIER,\n ...postConfig.query(body),\n }),\n }),\n\n unLinkModifierFromGroup: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.UNLINK_MODIFIER_WITH_GROUP,\n ...postConfig.query(body),\n }),\n }),\n\n getModifierGroup: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_MODIFIER_GROUP_INFO,\n ...postConfig.query(body),\n }),\n }),\n\n getModifierOptionInfo: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_MODIFIER_GROUP,\n ...postConfig.query(body),\n }),\n }),\n getStoreModifiers: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_STORE_MODIFIERS,\n ...postConfig.query(body),\n }),\n }),\n }),\n});\nexport const {\n useGetModifierGroupsMutation,\n useCreateModifierGroupMutation,\n useUpdateModifierGroupMutation,\n useDeleteModifierGroupMutation,\n useGetModifierListMutation,\n useCreateNewModifierMutation,\n useDeleteModifierMutation,\n useUpDateModifierMutation,\n useUnLinkModifierFromGroupMutation,\n useGetModifierGroupMutation,\n useGetModifierOptionInfoMutation,\n useGetStoreModifiersMutation,\n} = ModifierService;\nexport default ModifierService;\n","import Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport React, { useEffect, useMemo, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { Accordion } from \"features/menu/components/AccordionN\";\nimport SingleGroup from \"./SingleGroup\";\nimport ModifierRow from \"./ModifierRow\";\nimport { useTranslation } from \"react-i18next\";\nimport { ReactSortable } from \"react-sortablejs\";\nimport { Button, Spin } from \"antd\";\nimport Modal from \"components/Modal\";\nimport { isMobile } from \"react-device-detect\";\nimport AttachModifierGroupWithItem from \"./AttachModifierGroupWithItem\";\nimport {\n useGetModifierGroupsMutation,\n useSortModifierGroupMutation,\n} from \"redux/modifiers/service\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst _ = require(\"lodash\");\n\nconst GroupWithModifer = ({\n attachedModifierGroups,\n item,\n getItemDetail,\n deleteModifierGrp,\n}) => {\n const { t } = useTranslation();\n const [loading, setLoading] = useState(false);\n const [brandModifiers, setbrandModifiers] = useState([]);\n const [List, setList] = useState(attachedModifierGroups);\n\n const [openGroupModal, setopenGroupModal] = useState(false);\n const [getModifierGroups] = useGetModifierGroupsMutation();\n\n const getAllModiferGroups = async () => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getModifierGroups({\n brandId: userDetail.brandId,\n });\n if (data?.success === 1) {\n setbrandModifiers(data.data);\n }\n } catch (error) {\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getAllModiferGroups();\n }, []);\n\n const getCategoryView = (modiferGroup, index) => {\n return (\n
\n \n \n
\n );\n };\n\n const sortModiferGrp = async (group) => {\n try {\n let selected = List[group.oldIndex];\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n const result = await API.sortModifierGroup({\n brandId: userDetail.brandId,\n itemId: item.values?._id,\n modifierGroupId: selected?.modifierGroupId?._id,\n index: group.newIndex,\n });\n if (result?.success === 1) {\n // UTILS.successNotification(result?.message ?? t(\"sorted Successfully\"));\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n const MemizedModifiers = useMemo(() => {\n const attachedModifiersLookup = _.keyBy(\n attachedModifierGroups,\n (item) => item?.modifierGroupId?._id\n );\n\n const unattachedModifiers = brandModifiers?.filter(\n (item) => !attachedModifiersLookup[item?._id]\n );\n setList(attachedModifierGroups);\n return unattachedModifiers;\n }, [attachedModifierGroups, brandModifiers]);\n\n return (\n
\n \n setopenGroupModal(false)}\n >\n setopenGroupModal(false)}\n getItemDetail={getItemDetail}\n />\n \n
\n \n
\n
\n
\n
\n

\n {t(\"Attached Modifer Groups\")}\n

\n
\n
\n setopenGroupModal(true)}\n >\n {t(\"Attach New Modifer Group\")}\n \n
\n
\n
\n \n \n {List && List?.length >= 1 ? (\n isMobile ? (\n <>\n {List &&\n List?.map((cat, index) => {\n return getCategoryView(cat, index);\n })}\n \n ) : (\n {\n sortModiferGrp(order);\n }}\n >\n {List &&\n List?.map((cat, index) => {\n return getCategoryView(cat, index);\n })}\n \n )\n ) : (\n
\n
\n

{t(\"There is no modifier group attached\")}

\n
\n
\n )}\n
\n
\n
\n
\n
\n
\n
\n
\n );\n};\nexport default GroupWithModifer;\n","import PageHeading from \"components/PageHeading\";\nimport Card from \"components/Card\";\nimport React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport TextInput from \"components/TextInput\";\nimport TextArea from \"components/TextArea\";\nimport Modal from \"components/Modal\";\nimport { CONSTANTS as C } from \"config\";\nimport { API } from \"api\";\nimport { useHistory } from \"react-router-dom\";\nimport { Button, Spin, Upload } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { PlusOutlined } from \"@ant-design/icons\";\nimport PriceInput from \"components/PriceInput\";\nimport GroupWithModifer from \"features/Modifier/components/GroupWithModifer\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nimport { Modal as AntdModal } from \"antd\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst UpdateItem = () => {\n // hooks\n const { t } = useTranslation();\n const router = useHistory();\n\n // states\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n item: null,\n });\n const [item, setItem] = useState(UTILS.getItemModel());\n const [error, setError] = useState(false);\n const [loading, setLoading] = useState(false);\n const [fileList, setFileList] = useState([]);\n const [previewOpen, setPreviewOpen] = useState(false);\n const [previewImage, setPreviewImage] = useState(\"\");\n\n const getItemDetail = async (id) => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ITEM_INFO({\n itemId: id,\n token: userDetail.token,\n brandId: userDetail.brandId,\n });\n if (result?.success === 1) {\n setItem((prevState) => ({\n values: result.data,\n errors: {\n ...prevState.errors,\n },\n }));\n let urls = [];\n result.data.itemImageURLs?.forEach((img, index) => {\n urls.push({\n url: img,\n });\n });\n setFileList(urls);\n } else {\n }\n setLoading(false);\n };\n\n useEffect(() => {\n if (router?.location?.state?.itemId)\n getItemDetail(router.location.state.itemId);\n }, [router?.location?.state?.itemId]);\n\n /* A function that is used to update the image url in the state. */\n const handleImage = (key, val) => {\n if (key === C.KEY_IMAGE_URL) {\n setItem((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n itemImageURLs: val,\n },\n errors: {\n ...prevState.errors,\n },\n }));\n }\n };\n\n /* A function that is used to update the basic info in the state. */\n const handleBasicInfo = (key, val) => {\n setItem((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n ...prevState.values.baseLanguage,\n [key]: val,\n },\n },\n errors: {\n ...prevState.errors,\n baseLanguage: {\n ...prevState.errors.baseLanguage,\n [key]: \"\",\n },\n },\n }));\n };\n\n /* A function that is used to update the basic info in the state. */\n const handleValues = (key, val) => {\n setItem((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n /* Validating the inputs. */\n const validateInputs = () => {\n let { objError, isValidForm } = UTILS.validateItemInfo(item);\n setItem((prevState) => ({\n values: {\n ...prevState.values,\n },\n errors: objError,\n }));\n return isValidForm;\n };\n\n /**\n * An async function that updates an item.\n */\n const updateItem = async () => {\n try {\n if (!validateInputs()) return;\n if (validateInputs()) {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.UPDATE_ITEM({\n itemId: item.values._id,\n ...item.values,\n price: +parseFloat(item.values.price)?.toFixed(2),\n brandId: userDetail.brandId,\n });\n\n if (result?.success === 1) {\n UTILS.successNotification(t(\"Item Updated\"));\n router.goBack();\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n /* Used to validate the image before uploading. */\n function beforeUpload(file) {\n setError(false);\n const isJpgOrPng = file.type === \"image/jpeg\" || file.type === \"image/png\";\n if (!isJpgOrPng) {\n setError(true);\n UTILS.errorNotification(t(\"You can only upload JPG/PNG file\"));\n }\n const F_Size = file.size / 1024;\n const isLt1M = F_Size <= C.MAX_IMAGE_SIZE;\n\n if (!isLt1M) {\n setError(true);\n UTILS.errorNotification(t(\"The image must be less than 2MB in size.\"));\n }\n\n return isJpgOrPng && isLt1M;\n }\n\n /**\n * This function is called when a user uploads a file. It takes the file and uploads it to the server.\n * @param info - the file object\n * @param type - the type of the file, which is the file extension.\n */\n const handleChange = async (info, type) => {\n const { file, fileList } = info;\n if (error) return;\n if (!error) {\n setFileList(fileList);\n }\n if (file.status === \"uploading\") {\n setLoading(true);\n return;\n }\n if (file.status === \"done\") {\n let list = [...item.values.itemImageURLs, info.file.response.data.url];\n handleImage(C.KEY_IMAGE_URL, list);\n setLoading(false);\n }\n };\n\n /**\n * It takes a file as an argument, and then it returns a function that takes an event as an argument\n * @param file - The file to be removed.\n */\n const onRemove = async (file) => {\n let List = fileList.filter((d) => d.url !== file.url);\n let List1 = item?.values.itemImageURLs.filter(\n (d) => d !== file.url && d !== file?.response?.data?.url\n );\n setFileList(List);\n handleImage(C.KEY_IMAGE_URL, List1);\n };\n\n /* Used to get the base64 of the image. */\n\n const getBase64 = (file) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result);\n reader.onerror = (error) => reject(error);\n });\n\n /* A function that is used to close the preview modal. */\n const handleCancel = () => setPreviewOpen(false);\n\n /**\n * A function that takes in a file and returns a promise.\n * @param file - The file to be previewed.\n */\n const onPreview = async (file) => {\n if (!file.url && !file.preview) {\n file.preview = await getBase64(file.originFileObj);\n }\n setPreviewImage(file.url || file.preview);\n setPreviewOpen(true);\n };\n\n /* A function that returns a button that is used to upload images. */\n const uploadButton = (\n
\n \n \n {t(\"Upload\")}\n
\n \n );\n const onClickDeleteButton = (group) => {\n if (group?.modifierGroupId) {\n setDeleteModal({\n isOpen: true,\n item: group.modifierGroupId,\n });\n }\n };\n\n const UnlinkModiferGroupFromItem = async () => {\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const response = await API.unLinkModifierGroupWithItem({\n brandId: userDetail.brandId,\n itemId: item?.values?._id,\n modifierGroupId: deleteModal.item._id,\n });\n if (response?.success === 1) {\n UTILS.successNotification(\n response?.message ?? t(\"Unlinked Successfully\")\n );\n } else {\n UTILS.errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n await getItemDetail(item?.values._id);\n handleDeleteCancel();\n setLoading(false);\n }\n };\n\n const handleDeleteCancel = () => {\n setDeleteModal({ isOpen: false, item: null });\n };\n return (\n
\n
\n \n
\n \n \n \n \n \n

\n {t(\"Update Item\")}\n

\n

\n {t(\"Please enter complete details for better user experience\")}\n

\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n \n\n

\n {t(\"Item image size\")}\n

\n
\n handleChange(info, \"\")}\n onPreview={onPreview}\n beforeUpload={beforeUpload}\n onRemove={onRemove}\n >\n {fileList?.length <= 9 ? uploadButton : null}\n \n \n \n \n
\n
\n
\n updateItem()}\n >\n {t(\"Update\")}\n \n router.goBack()}\n >\n {t(\"Back\")}\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n );\n};\n\nexport default UpdateItem;\n","import React, { useEffect, useState } from \"react\";\nimport { Tabs } from \"antd\";\nconst PackageTabs = ({ subscribedPlan, children, selectedKey, callback }) => {\n // const [selectedKey, setSelectedKey] = useState(\"SEMI_ANNUALLY\");\n // const callback = (key) => {\n // setSelectedKey(key);\n // };\n // const getSelectedTab = () => {\n // if (subscribedPlan?.billingCycle) {\n // setSelectedKey(subscribedPlan.billingCycle);\n // return subscribedPlan.billingCycle;\n // }\n // };\n // useEffect(() => {\n // getSelectedTab();\n // }, [subscribedPlan]);\n\n return (\n
\n \n {children}\n \n
\n );\n};\n\nexport default PackageTabs;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { ifNotNullAndUndfine } from \"utils/Utils\";\n\nconst PackageInfoTwo = (props) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const getBgClass = currentLanguage === \"AR\" ? \"bgliar\" : \"bglien\";\n\n const isPackageSubscribed = () => {\n let billingCycle = props.billingCycle;\n let billingCycle2 = props.subscribedPlan.billingCycle;\n if (\n ifNotNullAndUndfine(billingCycle) &&\n ifNotNullAndUndfine(billingCycle2)\n ) {\n if (billingCycle2 === billingCycle && props?.subscribed) {\n return true;\n }\n return false;\n }\n };\n\n const Billing = {\n MONTHLY: 1,\n SEMI_ANNUALLY: 6,\n YEARLY: 12,\n };\n\n const subscribeNewPackage = () => {\n // let userDetail = UTILS.getCurrentUser();\n // let totalPrice = parseFloat(\n // props.originalPrice * Billing[props.billingCycle]\n // )?.toFixed(2);\n // TRACKING_EVENTS.subscribedUsers({\n // plan_name: props.billingCycle,\n // plan_price: totalPrice,\n // currency: C.AED,\n // transaction_id: userDetail?.userId,\n // });\n let id = props.packageId;\n let cycle = props.billingCycle;\n let isSubscribed = isPackageSubscribed();\n props.subscribePackage(id, cycle, isSubscribed);\n };\n\n return (\n
\n
\n

\n {props?.name}\n {props?.packageIdentifier === \"growth\" && (\n \n {t(\"best to start\")}\n \n )}\n

\n
\n \n {t(\"AED\")}\n {props?.price}\n /{t(\"month\")}\n \n
\n {props?.billedBy && (\n

\n {t(props?.billedBy)}
\n {t(\"or AED month-to-month\", { price: props?.originalPrice })}\n

\n )}\n
\n
\n

\n

    \n {Object?.keys(props?.text)?.map((value) => {\n return (\n value !== \"id\" && (\n
  • \n {t(value)}\n
  • \n )\n );\n })}\n
\n

\n\n
\n \n {isPackageSubscribed() ? (\n {t(\"Selected\")}\n ) : (\n {t(\"Choose Plan\")}\n )}\n \n
\n
\n
\n
\n );\n};\n\nexport default PackageInfoTwo;\n","import React, { useState, useEffect } from \"react\";\nimport PageHeading from \"../../../components/PageHeading\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { Spin } from \"antd\";\nimport { useLocation } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport PackageTabs from \"../components/PackageTabs\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { getPackagePrice } from \"utils/Utils\";\nimport PackageInfoTwo from \"../components/PackageInfoTwo\";\nimport TabPane from \"antd/lib/tabs/TabPane\";\nimport { CONSTANTS as C } from \"config\";\nimport { PkgActions } from \"redux/actions\";\nimport { PackageUtil } from \"utils\";\nimport { TRACKING_EVENTS } from \"utils\";\nconst Packages = (props) => {\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [subscribedPlan, setSubscribedPlan] = useState({});\n const { selectedKey } = useSelector((state) => state.PackagesReducer);\n const [packages, setPackages] = useState([]);\n const [loading, setLoading] = useState(false);\n const location = useLocation();\n const params = new URLSearchParams(location.search);\n const { t } = useTranslation();\n const dispatch = useDispatch();\n\n const verifyPackagePayment = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.VERIFY_PACKAGE_PAYMENT({\n token: userDetail.token,\n });\n if (result?.success === 1 && result?.data?.subscribedPackge) {\n sessionStorage.setItem(\"paymentVerified\", true);\n await getAllActivePackages();\n check_PackageValidity();\n const userDetail = UTILS.getCurrentUser();\n const totalPrice = result.data?.subscribedPackge?.amountPaid;\n TRACKING_EVENTS.subscribedUsers({\n plan_name: result.data?.subscribedPackge?.billingCycle,\n plan_price: totalPrice,\n currency: C.AED,\n transaction_id: userDetail?.userId,\n });\n }\n };\n\n const check_PackageValidity = async () => {\n const { text, notify, result } = await UTILS.checkPackageValidity(\n currentLanguage\n );\n dispatch(PkgActions.setNotifyVisible(notify));\n if (result?.data) {\n const diff = PackageUtil.getPackageExpiry(result.data.subscription);\n dispatch(PkgActions.setDays(diff));\n dispatch(PkgActions.setPackText(text));\n }\n };\n\n const getAllActivePackages = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ALL_ACTIVE_PACKAGES({\n token: userDetail.token,\n });\n if (\n result.success === 1 &&\n UTILS.isValidObject([\"data\", \"packages\"], result)\n ) {\n const arr = result.data.packages;\n if (UTILS.isValidObject([\"data\", \"subscribedPackage\"], result)) {\n if (Array.isArray(arr)) {\n for (let index = 0; index < arr.length; index++) {\n const element = arr[index];\n if (\n element._id === result.data.subscribedPackage.packageId &&\n result.data.subscribedPackage.isValid\n ) {\n if (result?.data?.subscribedPackage?.billingCycle) {\n dispatch(\n PkgActions.setSelectedKey(\n result.data.subscribedPackage?.billingCycle\n )\n );\n }\n setSubscribedPlan(result.data.subscribedPackage);\n element[\"subscribed\"] = true;\n arr[index] = element;\n } else {\n element[\"subscribed\"] = false;\n }\n }\n }\n }\n\n setPackages(arr);\n }\n\n setLoading(false);\n };\n\n const handleSubscription = async (packageId, billingCycle, subscribed) => {\n if (subscribed) {\n return;\n }\n sessionStorage.removeItem(\"paymentVerified\");\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_HOSTED_PAYMENT_PAGE({\n token: userDetail.token,\n billingCycle: billingCycle,\n packageId: packageId,\n successRedirectURL:\n window.location.href.split(\"?\")[0] + \"?status=success\",\n failureRedirectURL:\n window.location.href.split(\"?\")[0] + \"?status=failure\",\n });\n if (\n result.success === 1 &&\n UTILS.isValidObject([\"data\", \"axiosRes\", \"gatewayData\", \"order\"], result)\n ) {\n window.location.href = result.data.axiosRes.gatewayData.order.url;\n } else {\n UTILS.errorNotification(\n t(\"Please contact help at\", {\n email: process.env.REACT_APP_SUPPORT_EMAIL,\n })\n );\n }\n setLoading(false);\n };\n\n const msgs = [\"You have purchased successfully\", \"لقد اشتريت بنجاح\"];\n const msg2 = [\n `\n Payment is delcined please contact ${process.env.REACT_APP_SUPPORT_EMAIL}`,\n `تم رفض الدفع يرجى التواصل مع ${process.env.REACT_APP_SUPPORT_EMAIL}`,\n ];\n\n useEffect(() => {\n async function verifyPackage() {\n const paymentVerified = sessionStorage.getItem(\"paymentVerified\");\n if (params?.get(\"status\") === \"success\" && !paymentVerified) {\n await verifyPackagePayment();\n UTILS.handleSuccesNotification(\n currentLanguage === \"AR\" ? msgs[1] : msgs[0]\n );\n } else if (params.get(\"status\") === \"failure\") {\n UTILS.handleErrorNotification(\n currentLanguage === \"AR\" ? msg2[1] : msg2[0]\n );\n\n await getAllActivePackages();\n } else {\n await getAllActivePackages();\n }\n }\n verifyPackage();\n }, []);\n\n function getTabDiscount(planTYpe) {\n let selectedPackage = packages?.[0];\n let discountPercent = selectedPackage?.[planTYpe];\n let locale = currentLanguage === \"AR\" ? \"ar-EG\" : \"en\";\n let discountText = `${t(\"save\")} ${discountPercent?.toLocaleString(\n locale\n )}%`;\n if (discountPercent > 0 && discountText) {\n return t(discountText);\n } else {\n return false;\n }\n }\n\n const callback = (key) => {\n dispatch(PkgActions.setSelectedKey(key));\n };\n\n return (\n <>\n \n
\n
\n

\n {t(\"Plans that best suit your business requirements\")}\n

\n
\n\n \n {packages && (\n <>\n \n {C.packageHeader?.map((pckg) => {\n return (\n \n {getTabDiscount(pckg.subscriptionDiscount) && (\n
\n {getTabDiscount(pckg.subscriptionDiscount)}\n
\n )}\n
\n {packages?.map((item, index) => {\n return (\n \n );\n })}\n
\n
\n );\n })}\n \n \n )}\n
\n
\n \n );\n};\nPackages.propTypes = {\n packages: PropTypes.object,\n subscribeTrailPackage: PropTypes.func,\n};\nexport default Packages;\n","import { errorHandler } from \"api/api/errorHandler\";\nimport React, { useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { useTrackCareemOrderMutation } from \"redux/Logistic/CareemService\";\nimport { LoaderAction } from \"redux/actions\";\nimport ClaimInfoTable from \"logistic-integrations/careem-now/components/ClaimInfoTable\";\n\nimport { UTILS } from \"utils\";\nconst ClaimInfo = (props) => {\n const dispatch = useDispatch();\n const [careemOrder, setCareemOrder] = useState(null);\n const [trackCareemOrder] = useTrackCareemOrderMutation();\n\n useEffect(() => {\n const getCareemORderStatus = async (order) => {\n try {\n if (!order?._id) return;\n dispatch(LoaderAction.setLoading(true));\n const data = await trackCareemOrder({\n orderId: order._id,\n });\n if (data?.data?.success === 1 && data?.data?.data) {\n setCareemOrder(data?.data.data);\n } else {\n UTILS.errorNotification(errorHandler(data?.error));\n setCareemOrder(null);\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n if (props?.order?._id) getCareemORderStatus(props?.order);\n }, [props?.order?._id]);\n\n return (\n
\n \n
\n );\n};\n\nexport default ClaimInfo;\n","import React from \"react\";\nimport { Spin, Tabs } from \"antd\";\nimport Modal from \"components/Modal\";\nimport { useTranslation } from \"react-i18next\";\n\nimport CareemSupport from \"logistic-integrations/careem-now/components/CareemSupport\";\nimport { useSelector } from \"react-redux\";\nconst { TabPane } = Tabs;\n\nfunction YangoOrderInfo({ open, setOpen, children }) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n return (\n {\n setOpen(false);\n }}\n >\n \n
\n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n {}}>\n \n {children}\n \n \n \n \n \n
\n
\n
\n \n );\n}\n\nexport default YangoOrderInfo;\n","import Modal from \"components/Modal\";\nimport { useTranslation } from \"react-i18next\";\nimport moment from \"moment\";\nimport React from \"react\";\nimport { Tabs } from \"antd\";\nconst { TabPane } = Tabs;\n\nconst Table = ({ order }) => {\n const { t } = useTranslation();\n return (\n
\n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse && (\n \n \n \n \n \n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse && (\n \n \n \n \n )}\n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse && (\n \n \n \n \n )}\n\n <>\n \n \n \n \n \n \n \n \n \n <>\n \n \n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.timeline?.estimated_delivery_time && (\n \n \n )}\n \n {order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.timeline?.estimated_pickup_time && (\n \n \n \n )}\n \n
{t(\"Order\")} #\n {\n order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.order_id\n }\n
\n {t(\"Client Order Id\")}\n \n {`${order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse?.client_order_id}`}\n
{t(\"Status\")}\n {\n order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.status\n }\n
\n {t(\"Driver\")}\n \n \n {t(\"Name\")}:{\" \"}\n {\n order?.logisticPartnerMetadata?.TALABAT\n ?.orderCallbackResponse?.driver?.name\n }\n
\n {t(\"Phone\")}:{\" \"}\n {\n order?.logisticPartnerMetadata?.TALABAT?.orderCallbackResponse\n ?.driver?.phone_number\n }\n
\n {t(\"TimeLine\")}\n \n \n {t(\"Delivery Time\")}:{\" \"}\n {moment(\n order?.logisticPartnerMetadata?.TALABAT\n ?.orderCallbackResponse?.timeline\n ?.estimated_delivery_time\n ).format(\"MMMM Do YYYY, h:mm:ss a\")}\n
\n {t(\"Pickup Time\")}:{\" \"}\n {moment(\n order?.logisticPartnerMetadata?.TALABAT\n ?.orderCallbackResponse?.timeline?.estimated_pickup_time\n ).format(\"MMMM Do YYYY, h:mm:ss a\")}\n
\n )}\n
\n );\n};\n\nconst DeliveryService = ({ order, setOpen }) => {\n const { t } = useTranslation();\n const callback = (key) => {};\n return (\n
\n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n \n \n \n \n \n \n \n );\n};\n\nconst TalabatComponent = ({ order, open, setOpen }) => {\n return (\n <>\n {}}\n >\n \n \n \n );\n};\n\nexport default TalabatComponent;\n","import React, { Fragment, useEffect } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { UTILS } from \"utils\";\nimport { useGetYandexClaimInfoMutation } from \"redux/Logistic/LogisticService\";\nimport { LogisticAction } from \"redux/actions\";\nimport { ErrorAction } from \"redux/actions\";\nimport YandexClaimInfo from \"logistic-integrations/yandex/components/ClaimInfo\";\n\nconst ClaimInfo = (props) => {\n const dispatch = useDispatch();\n const { claimInfo } = useSelector((state) => state?.LogisticReducer);\n const [getYandexClaimInfo] = useGetYandexClaimInfoMutation();\n\n useEffect(() => {\n const getyandexOrderInfo = async (order) => {\n const userDetail = UTILS.getCurrentUser();\n let obj = {\n brandId: userDetail.brandId,\n orderId: order._id,\n };\n const isValid = UTILS.ValidateParams(obj);\n if (isValid) {\n await getYandexClaimInfo(obj);\n } else {\n dispatch(LogisticAction.setClaimInfo(null));\n dispatch(\n ErrorAction.setError(\"Something went wrong while fetching claim info\")\n );\n }\n };\n if (props?.order?._id) getyandexOrderInfo(props?.order);\n }, [props?.order?._id]);\n\n return (\n \n \n \n );\n};\n\nexport default ClaimInfo;\n","import React from \"react\";\nimport { Spin, Tabs } from \"antd\";\nimport Modal from \"components/Modal\";\nimport YangoSupport from \"logistic-integrations/yandex/components/YangoSupport\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst { TabPane } = Tabs;\n\nfunction YangoOrderInfo({ open, setOpen, children }) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n return (\n {\n setOpen(false);\n }}\n >\n \n
\n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n {}}>\n \n {children}\n \n \n \n \n \n
\n
\n
\n \n );\n}\n\nexport default YangoOrderInfo;\n","import React, { useEffect } from \"react\";\nimport { Spin, Tabs } from \"antd\";\nimport Modal from \"components/Modal\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\n\nimport ClaimInfo from \"logistic-integrations/lyve-global/containers/TrackOrder\";\nconst { TabPane } = Tabs;\n\nfunction LyveGlobalOrderInfo({\n open,\n setOpen,\n order,\n getlyveGlobalOrderInfo,\n lyveGlobalOrderInfo,\n}) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const fetchLatestClaimInfo = async () => {\n await getlyveGlobalOrderInfo(order);\n };\n\n return (\n {\n setOpen(false);\n }}\n >\n \n
\n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n {}}>\n \n \n \n \n
\n
\n
\n \n );\n}\n\nexport default LyveGlobalOrderInfo;\n","import React, { useEffect } from \"react\";\nimport { Spin, Tabs } from \"antd\";\nimport Modal from \"components/Modal\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\n\nimport DZSupport from \"logistic-integrations/delivery-zone/components/DZSupport\";\nimport ClaimInfo from \"logistic-integrations/delivery-zone/components/ClaimInfo\";\nconst { TabPane } = Tabs;\n\nfunction DZOrderInfo({ open, setOpen, order, getDZOrderStatus, DZOrder }) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const fetchLatestClaimInfo = async () => {\n await getDZOrderStatus(order);\n };\n\n return (\n {\n setOpen(false);\n }}\n >\n \n
\n
\n setOpen(false)} className=\"cursor-pointer\">\n \n \n \n \n \n
\n
\n {}}>\n \n \n \n \n \n \n \n
\n
\n
\n \n );\n}\n\nexport default DZOrderInfo;\n","import React from \"react\";\nimport CareemClaimInfo from \"./CareemClaimInfo\";\nimport CareeemOrderInfo from \"./CareemORderInfo\";\nimport ShowCourierData from \"./TalabatOrderInfo\";\nimport YandexClaimInfo from \"./YangoClaimInfo\";\nimport YangoOrderInfo from \"./YangoOrderInfo\";\nimport LyveGlobalOrderInfo from \"./LyveGlobalOrderInfo\";\nimport DZOrderInfo from \"./DZOrderInfo\";\n\nfunction Index({\n courierModal,\n setCourierModal,\n rowData,\n getDZOrderStatus,\n DZOrder,\n getlyveGlobalOrderInfo,\n lyveGlobalOrderInfo,\n careemOrder,\n setCareemOrder,\n orderInfo,\n}) {\n return (\n <>\n \n setCourierModal({\n ...courierModal,\n CAREEM_NOW: false,\n })\n }\n >\n \n \n \n setCourierModal({\n ...courierModal,\n DELIVERY_ZONE: false,\n })\n }\n order={rowData}\n {...{ getDZOrderStatus, DZOrder }}\n />\n \n setCourierModal({\n ...courierModal,\n LYVE_GLOBAL: false,\n })\n }\n order={rowData}\n getlyveGlobalOrderInfo={getlyveGlobalOrderInfo}\n lyveGlobalOrderInfo={lyveGlobalOrderInfo}\n />\n \n setCourierModal({\n ...courierModal,\n YANDEX: false,\n })\n }\n >\n \n \n \n \n );\n}\n\nexport default Index;\n","import { useTranslation } from \"react-i18next\";\nimport moment from \"moment\";\nimport { Button } from \"antd\";\nimport { PrinterOutlined } from \"@ant-design/icons\";\n\nconst Header = ({\n rowData,\n handlePrint,\n getOrderIsRefundable,\n showRefundModal,\n}) => {\n const { t } = useTranslation();\n\n const REFUND_STATUS = [\"COMPLETE\", \"REQUESTED\"];\n\n return (\n
\n

\n {rowData?.orderNumber ? t(\"Order #\") + rowData?.orderNumber : \"...\"}\n

\n

\n {rowData?.orderPlacedTime\n ? moment.unix(rowData?.orderPlacedTime).fromNow()\n : \"...\"}\n

\n
\n

\n {t(rowData?.orderStatus ? rowData?.orderStatus : \"...\")}\n

\n {(rowData?.refund?.status === \"FAILED\" && (\n \n )) ||\n (Boolean(\n (!rowData?.refund ||\n !rowData?.refund?.status ||\n !rowData?.refund?.amount ||\n rowData?.refund?.amount === 0) &&\n getOrderIsRefundable(rowData)\n ) && (\n \n ))}\n\n handlePrint()}\n >\n \n {t(\"Print\")}\n \n
\n
\n );\n};\n\nexport default Header;\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nconst orderService = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n getOrderInfoByOrderId: builder.mutation({\n query: (body) => ({\n url: URL.GET_ORDER_INFO_BY_ID,\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n }),\n }),\n});\nexport const { useGetOrderInfoByOrderIdMutation } = orderService;\nexport default orderService;\n","import React, { useRef, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useReactToPrint } from \"react-to-print\";\nimport { Button, Spin } from \"antd\";\nimport moment from \"moment\";\n\nimport Card from \"components/Card\";\nimport TableItemsDetail from \"../components/TableItemsDetail\";\nimport LogisticPartnerModalsContainer from \"./logistic-partner-order-info-modals/index\";\n\nimport PaymentInfo from \"features/order-payment-info/Index\";\nimport Header from \"./OrderDetail/components/Header\";\nimport RefundOrderInfo from \"./stripeRefund/RefundOrderInfo\";\n\nimport { CONSTANTS as C } from \"config\";\nimport { LogisticAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\n\nimport { useGetOrderInfoByOrderIdMutation } from \"redux/orders/orderService\";\nimport useGetORderInfo from \"logistic-integrations/delivery-zone/useGetORderInfo\";\nimport useLyveGlobalGetORderInfo from \"logistic-integrations/lyve-global/useLyveGlobalGetORderInfo\";\nimport { getOrderIsRefundable } from \"utils/Order\";\nimport CareemStatus from \"../components/CareemStatus\";\n\nconst ShowOrderDetail = ({\n rowData,\n setOpen,\n loading,\n setLoading,\n showRefundModal,\n}) => {\n const componentRef = useRef();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [courierModal, setCourierModal] = useState({\n TALABAT: false,\n YANDEX: false,\n CAREEM_NOW: false,\n DELIVERY_ZONE: false,\n LYVE_GLOBAL: false,\n });\n const [orderInfo, setOrderInfo] = useState({});\n const [careemOrder, setCareemOrder] = useState(null);\n const [getOrderInfoByOrderId] = useGetOrderInfoByOrderIdMutation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const handlePrint = useReactToPrint({\n content: () => componentRef.current,\n });\n\n const getDeliveryAddress = () => {\n let add = \"\";\n add += rowData?.deliveryAddress?.appartmentNo\n ? \"Apt# \" + rowData?.deliveryAddress?.appartmentNo\n : \"\";\n add += rowData?.deliveryAddress?.floor\n ? \", floor: \" + rowData?.deliveryAddress?.floor\n : \"\";\n add += rowData?.deliveryAddress?.building\n ? \", building \" + rowData?.deliveryAddress?.building\n : \"\";\n add += rowData.deliveryAddress ? rowData?.deliveryAddress?.address : \"....\";\n return add;\n };\n\n const fetchOrderInfo = async (modalTYpe) => {\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getOrderInfoByOrderId({\n brandId: userDetail.brandId,\n token: userDetail.token,\n orderId: rowData._id,\n });\n if (data?.success === 1) {\n setOrderInfo(data.data.fetchedOrder);\n dispatch(LogisticAction.setOrderInfo(data.data.fetchedOrder));\n setCourierModal({\n ...courierModal,\n [modalTYpe]: true,\n });\n }\n } catch (error) {\n } finally {\n setLoading(false);\n }\n };\n const { getDZOrderStatus, DZOrder } = useGetORderInfo();\n const { lyveGlobalOrderInfo, getlyveGlobalOrderInfo } =\n useLyveGlobalGetORderInfo();\n const [paymentGatewayInfoModal, setPaymentGatewayInfoModal] = useState(false);\n return (\n
\n
\n \n {\n setOpen(false);\n }}\n >\n \n \n \n \n
\n \n \n \n
\n {rowData?.userInfo?.name && (\n
\n
{t(\"Customer name\")}
\n\n
\n {rowData.userInfo?.name}\n
\n
\n )}\n
\n
{t(\"Preparation Type\")}
\n\n
\n {rowData.isPreOrder ? t(\"PRE ORDER\") : t(\"ASAP\")}\n
\n
\n
\n
{t(\"Order Type\")}
\n\n
\n {rowData?.orderType\n ? currentLanguage === \"EN\"\n ? rowData.orderType.EN.name\n : rowData.orderType.AR.name\n : \"...\"}\n
\n
\n
\n
{t(\"Store\")}
\n\n
\n {rowData.storeInfo\n ? rowData?.storeInfo?.baseLanguage?.name\n : \"...\"}\n
\n
\n\n
\n
{t(\"Order Placed Time\")}
\n
\n {rowData.orderPlacedTime\n ? moment\n .unix(rowData.orderPlacedTime)\n .format(\"DD-MM-Y hh:mm A\")\n : \"...\"}\n
\n
\n
\n
{t(\"Order Id\")}
\n\n
\n {rowData?.orderNumber ? rowData?.orderNumber : \"...\"}\n
\n
\n\n {C.logisticPartnerNames.includes(rowData?.logisticPartner) ? (\n
\n
{t(\"Logistic Partner\")}
\n
\n {rowData?.logisticPartner === \"CAREEM_NOW\" &&\n

{t(\"CAREEM_NOW\").replaceAll(\"_\",\" \")} : {\" \"}\n \n

} \n {\n fetchOrderInfo(rowData?.logisticPartner);\n if (rowData?.logisticPartner === \"DELIVERY_ZONE\") {\n getDZOrderStatus(rowData);\n }\n if (rowData?.logisticPartner === \"LYVE_GLOBAL\") {\n getlyveGlobalOrderInfo(rowData);\n }\n }}\n >\n {t(rowData?.logisticPartner)}\n \n
\n
\n ) : null}\n \n\n {rowData?.orderType?.type === \"DELIVERY\" ? (\n
\n
{t(\"Location\")}
\n
\n {rowData?.deliveryAddress?.street\n ? rowData?.deliveryAddress?.street\n : \"\"}\n
\n
\n ) : null}\n\n \n\n
\n
{t(\"Whatsapp Number\")}
\n
\n \n {rowData?.userInfo\n ? rowData?.userInfo?.phoneNumber\n : \"....\"}\n \n
\n
\n {rowData?.orderType?.type === C.SERVICE_TYPES.DINEIN ? (\n
\n
{t(\"Selected Table\")}
\n
\n \n {rowData?.dineIn?.tableNumber\n ? rowData?.dineIn?.tableNumber\n : \"....\"}\n \n
\n
\n ) : null}\n {rowData?.orderType?.type === C.SERVICE_TYPES.PICKUP &&\n rowData?.pickup?.vehicleInfo && (\n
\n
{t(\"Vehicle Info\")}
\n
\n \n {rowData?.pickup?.vehicleInfo\n ? rowData?.pickup?.vehicleInfo\n : \"....\"}\n \n
\n
\n )}\n\n
\n \n
{t(\"Payment\")}
\n\n \n {rowData.selectedPaymentMethod\n ? currentLanguage === \"EN\"\n ? rowData?.selectedPaymentMethod?.EN?.name\n : rowData?.selectedPaymentMethod?.AR?.name\n : \"...\"}\n
\n \n
\n
\n
{t(\"Order From\")}
\n
\n {rowData?.orderingPlatform\n ? rowData?.orderingPlatform\n : \"....\"}\n
\n
\n\n {rowData?.orderType?.type === \"DELIVERY\" ? (\n
\n
{t(\"Deliver To\")}
\n
{getDeliveryAddress()}
\n
\n ) : null}\n\n {rowData?.orderLevelSpecialRequest?.trim()?.length >= 1 ? (\n <>\n
\n
{t(\"Special Note\")}
\n
\n {rowData?.orderLevelSpecialRequest\n ? rowData?.orderLevelSpecialRequest\n : \"\"}\n
\n
\n \n ) : null}\n {rowData && rowData?.discountApplied && (\n <>\n
\n
\n {t(\"Discount Amount\")}\n
\n
\n {rowData?.discountApplied\n ? rowData?.discountApplied?.discountValue\n : \"\"}\n
\n
\n
\n
{t(\"Discount Info\")}
\n
\n Type (\n {rowData?.discountApplied\n ? rowData?.discountApplied?.discountType\n : \"\"}\n ) - Code (\n {rowData?.discountApplied\n ? rowData?.discountApplied?.discountCode\n : \"\"}\n )\n
\n
\n \n )}\n\n {rowData?.userInfo?.lifetimeSpending ? (\n <>\n
\n
\n {t(\"LifetimeSpending\")}\n
\n
\n AED \n {parseFloat(\n rowData?.userInfo?.lifetimeSpending\n )?.toFixed(2)}\n
\n
\n \n ) : null}\n {rowData?.isPreOrder ? (\n
\n
\n {rowData?.orderType?.type === C.SERVICE_TYPES.DELIVERY\n ? t(\"Pre Order Delivery Slot\")\n : t(\"Pre Order Pickup Slot\")}\n
\n
\n
\n Date :{\" \"}\n {moment\n .unix(rowData?.preOrder?.preOrderSlotStartTime)\n .format(\"DD-MM-YYYY\")}\n
\n Slot :{\" \"}\n {moment\n .unix(rowData?.preOrder?.preOrderSlotStartTime)\n .format(\"hh:mm A\")}{\" \"}\n -{\" \"}\n {moment\n .unix(rowData?.preOrder?.preOrderSlotEndTime)\n .format(\"hh:mm A\")}\n
\n
\n ) : null}\n
\n\n
\n {(rowData?.declineOrderReason &&\n rowData?.orderStatus === C.orderStatus.REJECTED) ||\n (rowData?.orderCancelReason &&\n rowData?.orderStatus === C.orderStatus.CANCELLED) ? (\n
\n
\n {rowData?.orderStatus === C.orderStatus.REJECTED\n ? t(\"Reject Reason\")\n : t(\"Cancel Reason\")}\n
\n
\n {rowData?.orderStatus === C.orderStatus.REJECTED\n ? rowData?.declineOrderReason\n : rowData?.orderCancelReason}\n
\n
\n ) : null}\n
\n\n \n \n \n \n \n \n );\n};\n\nexport default ShowOrderDetail;\n","import { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { Link } from \"react-router-dom\";\nimport { Clear, SearchOutlined } from \"@material-ui/icons\";\nimport { Input, Spin, Table, Select, Button } from \"antd\";\nimport { API } from \"api\";\nimport moment from \"moment\";\n\nimport Modal from \"components/Modal\";\nimport RefundForm from \"components/RefundOrderForm\";\nimport React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport Card from \"../../../components/Card\";\nimport PageHeading from \"../../../components/PageHeading\";\nimport ShowOrderDetail from \"../modals/ShowOrderDetail\";\nimport { errorNotification } from \"utils/Utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst { Option } = Select;\n\nconst OrderHistory = () => {\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [orders, setOrders] = useState({\n data: [],\n totalPages: 0,\n currentPage: 1,\n });\n const [rowData, setRowData] = useState({});\n const [loading, setLoading] = useState(false);\n const [refundOrder, setRefundOrder] = useState({\n visible: false,\n loading: false,\n });\n const [open, setOpen] = useState(false);\n const [searchTerm, setSearchTerm] = useState(null);\n const { t } = useTranslation();\n const zone = moment.tz.guess();\n moment.tz.setDefault(zone);\n const renderDate = (value, rowData, index) => {\n return (\n
\n

\n {rowData.orderPlacedTime\n ? moment.unix(rowData.orderPlacedTime).format(\"DD/MM/YYYY\")\n : \"\"}\n

\n
\n {rowData.orderPlacedTime\n ? moment.unix(rowData.orderPlacedTime).format(\"HH:mm:ss\")\n : \"\"}\n
\n
\n );\n };\n\n const OrderDetail = (value, rowData, index) => {\n return (\n <>\n {\n setOpen(true);\n setRowData(rowData);\n }}\n >\n \n \n \n \n \n );\n };\n const columns = [\n {\n title: t(\"Number\"),\n dataIndex: \"orderNumber\",\n sorter: {\n compare: (a, b) => a.orderNumber - b.orderNumber,\n multiple: 3,\n },\n },\n {\n title: t(\"Price\"),\n dataIndex: \"totalOrderPrice\",\n sorter: {\n compare: (a, b) => a.totalOrderPrice - b.totalOrderPrice,\n multiple: 3,\n },\n },\n {\n title: t(\"Date\"),\n dataIndex: \"orderPlacedTime\",\n render: renderDate,\n sorter: {\n compare: (a, b) => a.orderPlacedTime - b.orderPlacedTime,\n multiple: 2,\n },\n },\n {\n title: t(\"Type\"),\n dataIndex: \"orderType\",\n render: (val, row, index) => {\n return currentLanguage === \"EN\" ? val.EN.name : val.AR.name;\n },\n },\n {\n title: t(\"Whatsapp Number\"),\n dataIndex: \"userInfo\",\n render: (val, row, index) => {\n return (\n {\n UTILS.openWhatsApp(val?.phoneNumber);\n }}\n >\n {val?.phoneNumber}\n \n );\n },\n },\n {\n title: t(\"Status\"),\n dataIndex: \"orderStatus\",\n render: (val, row, index) => {\n return t(val);\n },\n },\n {\n title: t(\"Store\"),\n dataIndex: \"storeInfo\",\n width: \"25%\",\n render: (val, row, index) => {\n return val.baseLanguage.name;\n },\n },\n\n {\n title: t(\"Detail\"),\n dataIndex: \"OrderDetail\",\n render: (val, row, index) => {\n return OrderDetail(val, row, index);\n },\n },\n ];\n\n const getParams = (pageNo) => {\n if (searchTerm) {\n return {\n searchOn: selectedSearchCondition,\n search: searchTerm,\n page: pageNo ?? orders.currentPage,\n };\n } else {\n return {\n page: pageNo ?? orders.currentPage,\n };\n }\n };\n\n const getOrderHistory = async (pageNo) => {\n try {\n setLoading(true);\n const result = await API.GET_ORDERS_HISTORY(getParams(pageNo));\n if (\n result?.success === 1 &&\n UTILS.isValidObject([\"data\", \"orders\"], result)\n ) {\n handleStateChange(\"data\", result.data.orders);\n handleStateChange(\"totalPages\", result.data.count);\n } else {\n UTILS.handleErrorNotification(t(\"Please try again Later\"));\n }\n } catch (error) {\n errorNotification(\n errorHandler(error?.error?.message || t(\"Please try again Later\"))\n );\n } finally {\n setLoading(false);\n }\n };\n\n const submitRefundOrder = async ({ amount, reason, order }) => {\n setRefundOrder({\n ...refundOrder,\n loading: true,\n });\n const { _id: orderId, brandId } = order;\n const obj = {\n orderId,\n amount,\n reason,\n brandId,\n };\n const result = await API.REFUND_ORDER(obj);\n if (result?.success === 1) {\n UTILS.successNotification(result?.message || t(\"Refund Requested\"));\n getOrderHistory(orders.currentPage);\n setRefundOrder({\n ...refundOrder,\n loading: false,\n visible: false,\n });\n setOpen(false);\n } else {\n setRefundOrder({\n ...refundOrder,\n loading: false,\n });\n UTILS.errorNotification(result?.message || t(\"Please try again Later\"));\n }\n };\n\n const searchByKeys = [\n {\n key: \"ORDER_NUMBER\",\n label: \"By Order Number\",\n },\n {\n key: \"PHONE_NUMBER\",\n label: \"By WhatsApp Number\",\n },\n ];\n\n const [selectedSearchCondition, setSelectedSearchCondition] = useState(\n searchByKeys[0].key\n );\n\n useEffect(() => {\n getOrderHistory(orders.currentPage);\n }, [selectedSearchCondition]);\n useEffect(() => {\n if (searchTerm?.length === 0) {\n getOrderHistory(orders.currentPage);\n }\n }, [searchTerm]);\n\n const handleStateChange = (key, value) => {\n setOrders((prevState) => ({\n ...prevState,\n [key]: value,\n }));\n };\n\n return (\n <>\n setOpen(false)}\n scroll={true}\n >\n {\n setRefundOrder({ ...refundOrder, visible: true });\n setOpen(false);\n }}\n />\n \n\n \n setRefundOrder({ ...refundOrder, loading: false, visible: false })\n }\n showScroll={true}\n scroll={true}\n >\n {\n setRefundOrder({\n ...refundOrder,\n loading: false,\n visible: false,\n });\n setOpen(true);\n }}\n />\n \n\n \n
\n \n \n

\n {t(\n \"For more detailed report contact Suppport at with your registered email address\",\n {\n email: process.env.REACT_APP_SUPPORT_EMAIL,\n }\n )}\n

\n\n
\n
\n {\n setSelectedSearchCondition(value);\n setSearchTerm(null);\n }}\n >\n {searchByKeys.map((option) => (\n \n ))}\n \n
\n
\n {\n setSearchTerm(\"\");\n }}\n />\n ) : (\n {\n getOrderHistory(orders.currentPage);\n handleStateChange(\"currentPage\", 1);\n }}\n />\n )\n }\n onChange={(e) => setSearchTerm(e.target.value)}\n value={searchTerm}\n />\n
\n
\n {\n getOrderHistory(1);\n handleStateChange(\"currentPage\", 1);\n }}\n >\n {t(\"Search\")}\n \n
\n
\n\n
\n {\n handleStateChange(\"currentPage\", pagination.current);\n\n getOrderHistory(pagination.current);\n }}\n size=\"small\"\n rowKey={(record) => record.orderNumber}\n />\n
\n
\n
\n
\n \n );\n};\n\nexport default OrderHistory;\n","import React from \"react\";\n\nimport moment from \"moment\";\nimport { isItemPublished } from \"../utils\";\nimport { PauseCircleOutline, PlayArrow } from \"@material-ui/icons\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction PlayPause({ rowData, state, handlePlayPause }) {\n const { t } = useTranslation();\n\n const IsPublished = isItemPublished(rowData, state);\n const Icon = IsPublished?.isValid ? (\n handlePlayPause(\"pause\", rowData)}\n />\n ) : (\n <>\n handlePlayPause(\"play\", rowData)}\n >\n {!IsPublished?.data?.nextAvailableTime\n ? t(\"Blocked Permanently\")\n : t(\"Returns on\", {\n time: moment\n .unix(IsPublished?.data?.nextAvailableTime)\n .format(\"MMM Do, YYYY - h:mm a\"),\n })}\n \n handlePlayPause(\"play\", rowData)}\n />\n \n );\n\n return Icon;\n}\n\nexport default PlayPause;\n","import moment from \"moment\";\nexport const isItemPublished = (item, state) => {\n const isNotAvailableInCurrentStore = item?.unavailableStores?.find(\n (store) => store?.storeId === state?.currentStoreId\n );\n\n if (isNotAvailableInCurrentStore) {\n if (!isNotAvailableInCurrentStore?.nextAvailableTime)\n return {\n isValid: false,\n data: isNotAvailableInCurrentStore,\n };\n const nextAvailableTime = moment.unix(\n isNotAvailableInCurrentStore?.nextAvailableTime\n );\n const currentTime = moment();\n\n // If the current time is greater than the next available time, then the item is available\n if (currentTime.isAfter(nextAvailableTime)) {\n return {\n isValid: true,\n data: null,\n };\n } else {\n return {\n isValid: false,\n data: isNotAvailableInCurrentStore,\n };\n }\n } else {\n return {\n isValid: true,\n data: null,\n };\n }\n};\n","import React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Spin, Table } from \"antd\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport SelectInput from \"components/SelectInput\";\nimport PlayPause from \"./PlayPause\";\nconst Inventory = ({\n state,\n handlePlayPause,\n handleChange,\n isLoading,\n stores,\n items,\n}) => {\n const { t } = useTranslation();\n const [searchTerm, setSearchTerm] = useState(null);\n const columns = [\n {\n title: t(\"Item\"),\n dataIndex: \"baseLanguage\",\n align: \"initial\",\n width: \"70%\",\n render: (baseLanguage, row, index) => {\n return baseLanguage?.title;\n },\n },\n {\n title: t(\"Availability\"),\n dataIndex: \"itemInfo\",\n width: \"25%\",\n align: \"initial\",\n render: (val, row, index) => {\n return (\n \n );\n },\n },\n {\n title: t(\"Price\"),\n dataIndex: \"price\",\n width: \"10%\",\n align: \"initial\",\n render: (price, row, index) => {\n return (\n {`${t(\n \"AED\"\n )}${\" \"} ${price}`}\n );\n },\n },\n ];\n\n const ItemsListArr = React.useMemo(() => {\n if (!searchTerm) return items;\n\n let searchTermLower = searchTerm?.toLowerCase()?.trim();\n console.log({ searchTermLower, items });\n\n return items.filter((item) =>\n item?.baseLanguage?.title?.toLowerCase()?.includes(searchTermLower)\n );\n }, [items, searchTerm]);\n\n return (\n <>\n \n
\n \n
\n \n

\n {t(\n \"Select store from the dropdown to play/pause inventory for particular store\"\n )}\n

\n\n

{t(\"Select store\")}

\n
\n
\n \n
\n
\n
\n
\n \n \n \n setSearchTerm(e.target.value)}\n />\n
\n
\n
\n \n \n \n
\n
\n
\n
\n \n );\n};\nexport default Inventory;\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { UTILS } from \"utils\";\nimport { LoaderAction } from \"redux/actions\";\nconst postConfig = {\n query: (body) => ({\n method: \"POST\",\n body: body,\n }),\n transformResponse: (response) => {\n return response;\n },\n};\n\nconst MenuService = apiSlice.injectEndpoints({\n tagTypes: [\"Post\", \"User\"],\n endpoints: (builder) => ({\n getBrandMenus: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_BRAND_MENUS,\n ...postConfig.query(body),\n }),\n }),\n addNewMenu: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CREATE_NEW_MENU,\n ...postConfig.query(body),\n }),\n }),\n getMenuInfo: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_MENU_INFO,\n ...postConfig.query(body),\n }),\n }),\n getBrandItems: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_BRAND_ITEMS,\n ...postConfig.query(body),\n }),\n }),\n getMenuCatInfo: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_MENU_CAT_INFO,\n ...postConfig.query(body),\n }),\n }),\n linkStoreWithMenu: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.LINK_STORES_WITH_MENU,\n ...postConfig.query(body),\n }),\n }),\n linkCategoryWithMenu: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.LINK_CATEGORY_WITH_MENU,\n ...postConfig.query(body),\n }),\n }),\n\n sortCategoryInMenu: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.SORT_CATEGORY_IN_MENU,\n ...postConfig.query(body),\n }),\n }),\n\n toggLeStoreInMenuCategoryITem: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.TOGGLE_STORE_IN_MENU,\n ...postConfig.query(body),\n }),\n }),\n getStoreItems: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_STORE_ITEMS,\n ...postConfig.query(body),\n }),\n }),\n }),\n});\nexport const {\n useGetBrandMenusMutation,\n useAddNewMenuMutation,\n useLinkStoreWithMenuMutation,\n useLinkCategoryWithMenuMutation,\n useSortCategoryInMenuMutation,\n useToggLeStoreInMenuCategoryITemMutation,\n useGetMenuInfoMutation,\n useGetMenuCatInfoMutation,\n useGetBrandItemsMutation,\n useGetStoreItemsMutation,\n} = MenuService;\nexport default MenuService;\n","import { errorHandler } from \"api/api/errorHandler\";\nimport { useGetStoreItemsMutation } from \"redux/menu/service\";\nimport { UTILS } from \"utils\";\n\nfunction useGetItemsByStoreId(updateState) {\n const [getStoreItems] = useGetStoreItemsMutation();\n\n const getItemsByStoreId = async (storeId) => {\n if (!storeId) return;\n try {\n updateState(\"loading\", true);\n const userDetail = UTILS.getCurrentUser();\n const result = await getStoreItems({\n brandId: userDetail.brandId,\n storeId: storeId,\n });\n if (result?.data?.success === 1 && result?.data?.data) {\n // setItems(result?.data?.data);\n updateState(\"items\", result?.data?.data);\n } else UTILS.handleErrorNotification(errorHandler(result?.message));\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n updateState(\"loading\", false);\n }\n };\n return getItemsByStoreId;\n}\n\nexport default useGetItemsByStoreId;\n","import { UTILS } from \"utils\";\nimport { findIndex } from \"lodash\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nfunction usePauseItem({\n setPauseModalState,\n updateState,\n getItemsByStoreId,\n state,\n}) {\n const playPauseItem = async (row, duration) => {\n try {\n updateState(\"loading\", true);\n const userDetail = UTILS.getCurrentUser();\n\n const result = await API.blockUnblockItemInStore({\n brandId: userDetail.brandId,\n storeId: state?.currentStoreId,\n itemId: row?._id,\n ...(duration && { duration }),\n });\n if (result?.success === 1) {\n if (Array.isArray(row?.unavailableStores) && row?.unavailableStores) {\n let arr = [...row?.unavailableStores];\n if (!row) {\n //add\n const store = {\n storeId: state?.currentStoreId,\n };\n arr.push(store);\n const index = findIndex(\n state?.items,\n (item) => item._id === row._id\n );\n let newArr = [...state?.items];\n newArr[index] = { ...newArr[index], unavailableStores: arr };\n updateState(\"items\", newArr);\n } else {\n //remove\n arr.splice(\n arr.findIndex((id) => id === state?.currentStoreId),\n 1\n );\n const index = findIndex(\n state?.items,\n (item) => item._id === row._id\n );\n let newArr = [...state?.items];\n newArr[index] = { ...newArr[index], unavailableStores: arr };\n updateState(\"items\", newArr);\n }\n } else {\n await getItemsByStoreId(state?.currentStoreId);\n }\n } else {\n UTILS.handleErrorNotification(errorHandler(result?.data?.message));\n }\n await getItemsByStoreId(state?.currentStoreId);\n setPauseModalState(\"open\", false);\n setPauseModalState(\"modifier\", null);\n setPauseModalState(\"deafaultOption\", {\n value: 6,\n unit: \"hours\",\n duration: \"6_HOURS\",\n });\n } catch (error) {\n console.log({ 666: error });\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n updateState(\"loading\", false);\n }\n };\n\n const handlePlayPause = async (key, row) => {\n if (key === \"pause\") {\n setPauseModalState(\"open\", true);\n setPauseModalState(\"modifier\", row);\n return;\n } else if (!row._id || !state?.currentStoreId) return;\n playPauseItem(row);\n };\n\n return { playPauseItem, handlePlayPause };\n}\n\nexport default usePauseItem;\n","import { Button, Radio, Spin } from \"antd\";\nimport React from \"react\";\nimport { CONSTANTS as C } from \"config\";\nimport Modal from \"components/Modal\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction PauseModalContainer({\n PauseModel,\n closeModal,\n setPauseModalState,\n playPauseItem,\n isLoading,\n heading,\n title1,\n title2,\n}) {\n const { t } = useTranslation();\n\n return (\n <>\n \n \n
\n
\n
\n
\n
\n

\n {t(heading)}{\" \"}\n {/* {title1} */}\n

\n
\n
\n \n \n \n \n
\n
\n

\n {t(title2, {\n item: title1,\n })}\n

\n
\n <>\n {C.ITEM_MODIFIER_UNAVAILABLE_DURATIONS.map((op) => {\n return (\n
\n \n setPauseModalState(\"deafaultOption\", {\n value: op.value,\n unit: op.unit,\n duration: op.duration,\n })\n }\n style={{ fontSize: \"16px\", color: \"#3f51b5\" }}\n value={op.value}\n checked={\n PauseModel?.deafaultOption?.value === op.value &&\n op.unit === PauseModel?.deafaultOption?.unit\n }\n >\n {t(op.title)}\n \n
\n );\n })}\n \n
\n\n
\n \n {t(\"Cancel\")}\n \n \n playPauseItem(\n PauseModel.modifier,\n PauseModel?.deafaultOption?.duration\n )\n }\n >\n {t(\"Pause\")}\n \n
\n
\n
\n
\n
\n \n \n );\n}\n\nexport default PauseModalContainer;\n","import React, { useState } from \"react\";\nimport ItemList from \"../Components/ItemList\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport { Spin } from \"antd\";\nimport useGetItemsByStoreId from \"../useGetItemsByStoreId\";\nimport usePauseItem from \"../usePauseItem\";\nimport PauseModalContainer from \"../Components/PauseModal\";\nimport { useTranslation } from \"react-i18next\";\nconst Inventory = () => {\n //local state\n const { t } = useTranslation();\n\n const [state, setState] = useState({\n currentStoreId: null,\n items: [],\n loading: false,\n });\n //custom hooks\n const { stores, loading } = useAllStores();\n\n const updateState = (key, val) =>\n setState((state) => ({ ...state, [key]: val }));\n const getItemsByStoreId = useGetItemsByStoreId(updateState);\n\n const handleChange = (key, val) => {\n if (val) {\n getItemsByStoreId(val);\n updateState(\"currentStoreId\", val);\n }\n };\n\n const [PauseModel, setPauseModel] = useState({\n open: false,\n modifier: null,\n deafaultOption: {\n value: 6,\n unit: \"hours\",\n duration: \"6_HOURS\",\n },\n });\n\n const setPauseModalState = (key, val) => {\n setPauseModel((prevState) => ({\n ...prevState,\n [key]: val,\n }));\n };\n\n const { playPauseItem, handlePlayPause } = usePauseItem({\n setPauseModalState,\n updateState,\n getItemsByStoreId,\n state,\n });\n\n const closeModal = () => {\n setPauseModalState(\"modifier\", null);\n setPauseModalState(\"deafaultOption\", {\n value: 6,\n unit: \"hours\",\n duration: \"6_HOURS\",\n });\n setPauseModalState(\"open\", false);\n };\n const isLoading = state.loading || loading;\n return (\n \n \n \n \n );\n};\nexport default Inventory;\n","import React from \"react\";\nimport { SVG_FACEBOOK } from \"svg/SVGs\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst Facebook = ({ shopUrl }) => {\n const getUrl = () => {\n let platform = \"?platform=fb\";\n if (shopUrl) {\n return shopUrl + platform;\n } else {\n const userDetail = UTILS.getCurrentUser();\n const url =\n userDetail.storeFrontURL + userDetail.temporaryDomainName + platform;\n return url;\n }\n };\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Facebook\")}

\n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n

\n {t(\n \"Now you can add a Shop now link on your business Facebook page that goes straight to your ordering menu!\"\n )}\n

\n
\n \n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n );\n};\nexport default Facebook;\n","import React from \"react\";\nimport { SVG_INSTAGRAM } from \"svg/SVGs\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst Instagram = ({ shopUrl }) => {\n const { t } = useTranslation();\n const getUrl = () => {\n let platform = \"?platform=insta\";\n if (shopUrl) {\n return shopUrl + platform;\n } else {\n const userDetail = UTILS.getCurrentUser();\n const url =\n userDetail.storeFrontURL + userDetail.temporaryDomainName + platform;\n return url;\n }\n };\n return (\n
\n
\n
\n \n

{t(\"Instagram\")}

\n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n

\n {t(\n \"Let customers quickly place their orders directly from your business Instagram profile and Stories.\"\n )}\n

\n
\n \n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n );\n};\nexport default Instagram;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Jeebly = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Jeebly\")}

\n
\n
\n \n
\n
\n

\n {t(\n \"Dont have delivery? We covered you by integrating Jeebly. While Accepting an order select Jeebly. Send Email to\"\n )}{\" \"}\n \n {\" \"}\n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n \n
\n
\n );\n};\nexport default Jeebly;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Quiqup = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Quiqup\")}

\n
\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Quiqup%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n

\n {t(\n \"Dont have delivery? We covered you by integrating Quiqup. While Accepting an order select Quiqup. Send Email to\"\n )}{\" \"}\n \n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Quiqup%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n );\n};\nexport default Quiqup;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Telr = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Telr Secure Payment\")}

\n
\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Telr%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n

\n {t(\n \"Now get payments directly into your account by integrating Telr. Send Email to\"\n )}{\" \"}\n \n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Telr%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n );\n};\nexport default Telr;\n","import React from \"react\";\nimport { SVG_WHATSAPP } from \"svg/SVGs\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst Whatsapp = ({ shopUrl }) => {\n const { t } = useTranslation();\n const getUrl = () => {\n let platform = \"?platform=whats-app\";\n if (shopUrl) {\n return shopUrl + platform;\n } else {\n const userDetail = UTILS.getCurrentUser();\n const url =\n userDetail.storeFrontURL + userDetail.temporaryDomainName + platform;\n return url;\n }\n };\n return (\n
\n
\n
\n \n

{t(\"Whatsapp\")}

\n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n

\n {t(\n \"Use WhatsApp Business to invite customers to check your menu on RestHero and place their orders with a few clicks.!\",\n {\n company: process.env.REACT_APP_COMPANY_NAME,\n }\n )}\n

\n
\n \n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n );\n};\nexport default Whatsapp;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { SVG_MESSENGER } from \"svg/SVGs\";\nconst Messenger = ({ shopUrl }) => {\n const getUrl = () => {\n let platform = \"?platform=fb-messenger\";\n if (shopUrl) {\n return shopUrl + platform;\n } else {\n const userDetail = UTILS.getCurrentUser();\n const url =\n userDetail.storeFrontURL + userDetail?.temporaryDomainName + platform;\n return url;\n }\n };\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Messenger\")}

\n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n

\n {t(\n \"Use Messenger to invite customers to check your menu on RestHero and place their orders with a few clicks.!\",\n {\n company: process.env.REACT_APP_COMPANY_NAME,\n }\n )}\n

\n
\n \n
\n
\n {\n navigator.clipboard.writeText(getUrl());\n UTILS.handleSuccesNotification(t(\"Copied to Clipboard\"));\n }}\n >\n {t(\"Copy Link\")}\n \n
\n
\n );\n};\nexport default Messenger;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Talabat = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Talabat\")}

\n
\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Talabat%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n

\n {t(\"integrating Talabat\")}{\" \"}\n \n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=talabat%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n );\n};\nexport default Talabat;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Yandex = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

{t(\"Yandex\")}

\n
\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Yandex%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n

\n {t(\"integrating Yandex\")}{\" \"}\n \n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Yandex%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n );\n};\nexport default Yandex;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Checkout = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n \n

\n {t(\"Checkout Online Payment\")}\n

\n
\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Checkout%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n

\n {t(\"Integrating checkout\")}{\" \"}\n \n {process.env.REACT_APP_SUPPORT_EMAIL}\n \n

\n
\n {\n window.open(\n `mailto:${process.env.REACT_APP_SUPPORT_EMAIL}?subject=Checkout%20Integration%20Required&body=Please%20enter%20your%20brand%20details`\n );\n }}\n >\n {t(\"Contact Support\")}\n \n
\n
\n );\n};\nexport default Checkout;\n","import PageHeading from \"components/PageHeading\";\nimport React, { useState, useEffect } from \"react\";\nimport Facebook from \"../components/facebook\";\nimport Instagram from \"../components/instagram\";\nimport Jeebly from \"../components/jeebly\";\nimport Quiqup from \"../components/quiqup\";\nimport Telr from \"../components/telr\";\nimport Whatsapp from \"../components/whatsapp\";\nimport { useTranslation } from \"react-i18next\";\nimport Messenger from \"../components/messenger\";\nimport { UTILS } from \"utils\";\nimport { useGetSettingsMutation } from \"redux/settings/settingsSlice\";\nimport { Spin } from \"antd\";\nimport Talabat from \"../components/talabat\";\nimport Yandex from \"../components/yandex\";\nimport Checkout from \"../components/checkout\";\nconst Integrations = () => {\n const [getSettings, { isLoading }] = useGetSettingsMutation();\n\n const [shopUrl, setShopUrl] = useState(\"\");\n const { t } = useTranslation();\n const fetchSettings = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n };\n const data = await getSettings(obj).unwrap();\n\n if (data?.success === 1 && data?.data?.setting) {\n const userDetail = await UTILS.getCurrentUser();\n let url = `${userDetail.storeFrontURL}${data?.data?.setting?.temporaryDomainName}`;\n setShopUrl(url);\n }\n };\n useEffect(() => {\n fetchSettings();\n }, []);\n\n return (\n
\n \n \n
\n

\n {t(\n \"Increase sales and get more exposure by connecting RestHero to your social media channels and other partners.\",\n {\n company: process.env.REACT_APP_COMPANY_NAME,\n }\n )}\n

\n

\n {t(\"Social Integrations\")}\n

\n
\n \n \n
\n
\n \n \n
\n

\n {t(\"Delivery Integrations\")}\n

\n
\n \n \n
\n
\n \n \n
\n\n

\n {t(\"Payment Integrations\")}\n

\n
\n \n \n
\n
\n
\n
\n );\n};\nexport default Integrations;\n","import { apiSlice } from \"redux/Api.Slice\";\nimport * as URL from \"api/api/apiUrls\";\nimport { UTILS } from \"utils\";\nimport { AreasAction } from \"redux/actions\";\nimport { postConfig } from \"redux/Api.Slice\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nconst loyaltyService = apiSlice.injectEndpoints({\n endpoints: (builder) => ({\n createLoyalty: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CREATE_LOYALTY,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n updateLoyalty: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.UPDATE_LOYALTY,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n\n getLoyaltyDetailsByBrandName: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_LOYALTY_DETAILS_BY_BRAND_NAME,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n dispatch(LoaderAction.setLoading(true));\n\n try {\n const { data } = await queryFulfilled;\n if (data?.success === 1 && data?.data?.areas) {\n dispatch(AreasAction.setAddedCountries(data.data.areas));\n } else {\n errorHandler(data);\n }\n } catch (err) {\n errorHandler(err);\n }\n dispatch(LoaderAction.setLoading(false));\n },\n }),\n getUserWalletBalance: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_USER_WALLET_BALANCE,\n ...postConfig.query(body),\n }),\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n } catch (err) {\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n getUserWalletTransactionHistory: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_USER_WALLET_TRANSACTION_HISTORY,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n await queryFulfilled;\n } catch (err) {\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n createUserWalletTransaction: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.CREATE_USER_WALLET_TRANSACTION,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n if (data?.success === 1) {\n UTILS.successNotification(data.message);\n }\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n getAllBrandCustomers: builder.mutation({\n ...postConfig,\n query: (body) => ({\n url: URL.GET_ALL_BRAND_CUSTOMERS,\n ...postConfig.query(body),\n }),\n\n async onQueryStarted(body, { dispatch, queryFulfilled, getState }) {\n try {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await queryFulfilled;\n\n if (data?.success === 0) {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n },\n }),\n }),\n overrideExisting: true,\n});\nexport const {\n useCreateLoyaltyMutation,\n useUpdateLoyaltyMutation,\n useGetLoyaltyDetailsByBrandNameMutation,\n useGetUserWalletBalanceMutation,\n useGetUserWalletTransactionHistoryMutation,\n useCreateUserWalletTransactionMutation,\n useGetAllBrandCustomersMutation,\n} = loyaltyService;\nexport default loyaltyService;\n","import { Spin, Table } from \"antd\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { useTranslation } from \"react-i18next\";\nimport { useGetAllBrandCustomersMutation } from \"redux/loyalty/loyalty-service\";\nconst Customers = () => {\n const [loading, setLoading] = useState(false);\n const [customers, setCustomers] = useState([]);\n const { t } = useTranslation();\n const [getAllBrandCustomers] = useGetAllBrandCustomersMutation();\n\n const columns = [\n {\n title: t(\"Mobile\"),\n dataIndex: \"phoneNumber\",\n align: \"initial\",\n key: \"phoneNumber\",\n render: (val, row, index) => {\n return {val};\n },\n },\n ];\n const getBrandCustomers = async () => {\n setLoading(true);\n const { data } = await getAllBrandCustomers();\n if (data?.success === 1 && data?.data?.users?.length > 0) {\n console.log({ getAllBrandCustomers: data.data.users });\n setCustomers(data.data.users);\n } else {\n UTILS.handleSuccesNotification(t(\"No Customer Report Found\"));\n setCustomers([]);\n }\n setLoading(false);\n };\n\n useEffect(() => {\n getBrandCustomers();\n }, []);\n\n return (\n
\n \n
\n \n \n \n \n \n
\n
\n );\n};\nexport default Customers;\n","import { useState, useEffect } from \"react\";\n\nfunction getWindowDimensions() {\n const { innerWidth: width, innerHeight: height } = window;\n return {\n width,\n height,\n };\n}\n\nconst useWindowDimensions = () => {\n const [windowDimensions, setWindowDimensions] = useState(\n getWindowDimensions()\n );\n\n useEffect(() => {\n function handleResize() {\n setWindowDimensions(getWindowDimensions());\n }\n\n window.addEventListener(\"resize\", handleResize);\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n return windowDimensions;\n};\nexport default useWindowDimensions;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport ReactDevicePreview from \"react-device-preview\";\n\nconst LoadPreviewWithDevice = ({ imgSrc, imgDes }) => {\n const { t } = useTranslation();\n return (\n \n
\n
\n \n \n

\n {UTILS.getCurrentUser().brandName}\n

\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n\n
\n

5 {t(\"Likes\")}

\n

{imgDes}

\n
\n
\n
\n );\n};\nexport default LoadPreviewWithDevice;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst LoadPreview = ({ imgSrc, imgDes }) => {\n const { t } = useTranslation();\n return (\n
\n
\n \n \n

\n {UTILS.getCurrentUser().brandName}\n

\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n\n
\n

5 {t(\"Likes\")}

\n

{imgDes}

\n
\n
\n );\n};\nexport default LoadPreview;\n","import { API } from \"api\";\nimport PageHeading from \"components/PageHeading\";\nimport React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { Button, Space, Spin, Table, Tooltip } from \"antd\";\nimport RadioButton from \"components/RadioButton\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\nimport Title from \"antd/lib/typography/Title\";\nimport useWindowDimensions from \"hooks/useWindowDimensions\";\nimport LoadPreviewWithDevice from \"../components/LoadPreviewWithDevice\";\nimport LoadPreview from \"../components/LoadPreview\";\nconst Marketing = () => {\n const [items, setItems] = useState([]);\n const [loading, setLoading] = useState(true);\n const [imgSrc, setImageSrc] = useState(\"\");\n const [imgDes, setDes] = useState(\"\");\n const { t } = useTranslation();\n const { height, width } = useWindowDimensions();\n // const [itemToDisplay, setItemToDisplay] = useState();\n\n const getItemsByBrand = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ITEMS_BY_BRAND({\n token: userDetail.token,\n brandId: userDetail.brandId,\n language: \"EN\",\n });\n if (result && result.success == 1) {\n let arr = result.data;\n if (Array.isArray(arr) && arr.length > 0) {\n const modifiedArr = arr.map((obj) => (obj = { ...obj, isON: false }));\n modifiedArr[0].isON = true;\n setItems(modifiedArr);\n setImageSrc(result.data[0].itemImageURLs[0]);\n const userDetail = UTILS.getCurrentUser();\n const text =\n userDetail.storeFrontURL + userDetail.brandName + \"?platform=insta\";\n setDes(\n result.data[0]?.baseLanguage?.title +\n \", \" +\n result.data[0]?.baseLanguage?.description +\n \", only \" +\n result?.data[0]?.price +\n \" AED, Order Now: \" +\n text\n );\n }\n } else {\n }\n setLoading(false);\n };\n\n useEffect(() => {\n getItemsByBrand();\n }, []);\n\n const renderTitleWithImage = (value, rowData, index) => {\n return (\n
\n 0\n ? rowData.itemImageURLs[0]\n : \"/images/logo_gray.png\"\n }\n className=\"w-20 h-20\"\n />\n
\n

\n {UTILS.isValidObject([\"baseLanguage\", t(\"title\")], rowData)\n ? rowData.baseLanguage.title\n : \"\"}\n

\n {/*

Ingredients: {UTILS.isValidObject([\"baseLanguage\",\"ingredients\"],rowData) ? rowData.baseLanguage.ingredients : \"\"}

*/}\n

\n \n {UTILS.isValidObject([\"baseLanguage\", t(\"description\")], rowData)\n ? rowData.baseLanguage.description\n : \"\"}\n

\n
\n
\n );\n };\n\n const handleValues = (key, val) => {\n let arr = [...items];\n let modifiedArr = arr.map((obj) => (obj = { ...obj, isON: false }));\n modifiedArr[key].isON = val;\n setItems(modifiedArr);\n if (val) {\n setImageSrc(arr[key].itemImageURLs[0]);\n const userDetail = UTILS.getCurrentUser();\n const text =\n userDetail.storeFrontURL + userDetail.brandName + \"?platform=insta\";\n setDes(\n arr[key]?.baseLanguage?.title +\n \", \" +\n arr[key]?.baseLanguage?.description +\n \", only \" +\n arr[key]?.price +\n \" AED, Order Now: \" +\n text\n );\n }\n };\n\n const renderSelection = (value, rowData, index) => {\n return (\n
\n \n
\n );\n };\n\n const columns = [\n {\n title: t(\"Select\"),\n width: \"20%\",\n render: renderSelection,\n },\n {\n title: t(\"Item\"),\n dataIndex: \"baseLanguage\",\n render: renderTitleWithImage,\n },\n {\n title: t(\"Price\"),\n dataIndex: \"price\",\n width: \"20%\",\n render: (val, rowData, index) => {\n return t(\"AED\") + \" \" + val;\n },\n },\n ];\n\n return (\n
\n \n
\n
\n \n \n

\n {t(\"Items\")}\n

\n

\n {t(\"Select Items from Left Pane to post on Social Media.\")}\n

\n
\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n

\n {t(\"Instagram Preview\")}\n

\n \n UTILS.HANDLE_SUCCESS_NOTIFICATION(\n \"topRight\",\n \"success\",\n t(\"Coming Soon!\")\n )\n }\n >\n {t(\"Post\")}\n \n
\n\n
\n {width >= 768 ? (\n \n ) : (\n \n )}\n
\n
\n
\n
\n );\n};\nexport default Marketing;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { UTILS } from \"utils\";\nconst BubbleTopMessage = () => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n return (\n
\n
\n
\n

\n {t(\"Ali from RestHero\", {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n owner:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_OWNER_NAME_EN\n : process.env.REACT_APP_OWNER_NAME_AR,\n })}\n

\n

\n {t(\"Hi\")} {UTILS.getCurrentUser().name}!{\" \"}\n {t(\"Bubble_message\", {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n owner:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_OWNER_NAME_EN\n : process.env.REACT_APP_OWNER_NAME_AR,\n })}\n

\n
\n
\n
\n \n
\n
\n );\n};\nexport default BubbleTopMessage;\n","import { Button, Collapse, Tag } from \"antd\";\nimport React, { useRef } from \"react\";\nimport { getI18n, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport Instagram from \"features/integrations/components/instagram\";\nimport Facebook from \"features/integrations/components/facebook\";\nimport Whatsapp from \"features/integrations/components/whatsapp\";\nimport Messenger from \"features/integrations/components/messenger\";\nimport useUserType from \"hooks/useUserType\";\n\nconst Step = (props) => {\n const userType = useUserType() || UTILS.getCurrentUser()?.userType;\n const { Panel } = Collapse;\n const { t } = useTranslation();\n const router = useHistory();\n let ref = useRef();\n const getExtra = (step) => {\n return (\n
{step?.isCompleted && {t(\"Done\")}}
\n );\n };\n const getDefaultActiveKey = () => {\n try {\n window.scrollTo({ behavior: \"smooth\", top: ref?.current?.offsetTop });\n } catch (error) {}\n return props.opened ? [\"1\"] : [\"0\"];\n };\n\n const getKeyAgainstLanguage = () => {\n const lang = getI18n();\n return lang.language == \"en\" ? \"en\" : \"ar\";\n };\n\n const playVideo = (url) => {\n const id = getVideoId(url);\n props.playVideo(id);\n };\n\n const previewStore = () => {\n const userDetail = UTILS.getCurrentUser();\n const url =\n userDetail?.storeFrontURL +\n userDetail?.temporaryDomainName +\n \"?platform=Web\";\n if (url) {\n window.open(url, \"_blank\").focus();\n }\n };\n\n const getActionButtonAgainstStep = () => {\n switch (props?.step?.taskType) {\n case \"GET_TO_KNOW\":\n return (\n {\n props.addTaskToDone(props?.step?._id);\n if (\n props?.step?.translations[getKeyAgainstLanguage()]?.video_url !=\n \"\"\n )\n playVideo(\n props?.step?.translations[getKeyAgainstLanguage()]?.video_url\n );\n }}\n >\n {t(\"Continue\")}\n \n );\n case \"CREATE_STORE\":\n return props?.catelougeType?.showStore ? (\n router.push(\"/app/dashboard/addstore\")}\n >\n {t(\"Create Store\")}\n \n ) : null;\n case \"ADD_DELIVERY_AREA\":\n return (\n props.openModal()}\n >\n {t(\"Add Area\")}\n \n );\n case \"CUSTOMIZE_BRANDING\":\n return (\n {\n props.addTaskToDone(props?.step?._id);\n router.push(\"/app/dashboard/settings/branding\");\n }}\n >\n {t(\"Customize Branding\")}\n \n );\n case \"CREATE_ITEM\":\n return (\n router.push(\"/app/dashboard/items\")}\n >\n {t(\"Create Item\")}\n \n );\n case \"CREATE_CATEGORY\":\n return (\n \n router.push({\n pathname: \"/app/dashboard/menu-list\",\n state: {\n pushFrom: \"ON_BOARDING\",\n },\n })\n }\n >\n {t(\"Add Category\")}\n \n );\n case \"PUBLISH_STORE\":\n return (\n \n router.push({\n pathname: \"/app/dashboard/stores\",\n state: {\n pushFrom: \"ON_BOARDING\",\n },\n })\n }\n >\n {t(\"Publish Store\")}\n \n );\n case \"PREVIEW_STORE\":\n return (\n {\n props.addTaskToDone(props?.step?._id);\n previewStore();\n }}\n >\n {t(\"Preview Store\")}\n \n );\n default:\n break;\n }\n };\n\n const getVideoId = (url) => {\n var video_id = \"\",\n result;\n if (url) {\n if ((result = url.match(/youtube\\.com.*(\\?v=|\\/embed\\/)(.{11})/)))\n video_id = result.pop();\n else if ((result = url.match(/youtu.be\\/(.{11})/)))\n video_id = result.pop();\n }\n return video_id;\n };\n\n const getYoutubeThumbNail = (url, quality) => {\n if (url) {\n var video_id, thumbnail, result;\n if ((result = url.match(/youtube\\.com.*(\\?v=|\\/embed\\/)(.{11})/)))\n video_id = result.pop();\n else if ((result = url.match(/youtu.be\\/(.{11})/)))\n video_id = result.pop();\n if (video_id) {\n if (typeof quality == \"undefined\") quality = \"high\";\n var quality_key = \"maxresdefault\"; // Max quality\n if (quality === \"low\") quality_key = \"sddefault\";\n else if (quality === \"medium\") quality_key = \"mqdefault\";\n else if (quality === \"high\") quality_key = \"hqdefault\";\n thumbnail =\n \"https:///img.youtube.com/vi/\" +\n video_id +\n \"/\" +\n quality_key +\n \".jpg\";\n return thumbnail;\n }\n }\n return false;\n };\n\n const getVideoContent = () => {\n return (\n
\n \n {\n if (props?.step?.taskType == \"GET_TO_KNOW\")\n props.addTaskToDone(props?.step?._id);\n playVideo(\n props?.step?.translations[getKeyAgainstLanguage()]?.video_url\n );\n }}\n >\n \n \n
\n );\n };\n const DetailView = () => {\n return (\n
\n \n
\n

\n {props?.step?.translations[getKeyAgainstLanguage()]?.caption}\n

\n

\n {props?.step?.translations[getKeyAgainstLanguage()]?.description}\n

\n {getActionButtonAgainstStep()}\n
\n
\n {props?.step?.translations[getKeyAgainstLanguage()]?.video_url != \"\"\n ? getVideoContent()\n : \"\"}\n
\n
\n \n
\n \n \n
\n
\n \n \n
\n \n \n );\n };\n return (\n
\n \n \n \n \n \n
\n
\n );\n};\nStep.propTypes = {\n step: PropTypes.object,\n enabled: PropTypes.string,\n index: PropTypes.number,\n opened: PropTypes.bool,\n openModal: PropTypes.func,\n playVideo: PropTypes.func,\n addTaskToDone: PropTypes.func,\n length: PropTypes.number,\n};\nexport default Step;\n","import { Spin, Table } from \"antd\";\nimport { API } from \"api\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { useHistory } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\n\nconst ModalSelectStore = (props) => {\n const [stores, setStores] = useState([]);\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const router = useHistory();\n const getCurrentUserStores = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_CRRENT_USER_STORES({\n token: userDetail.token,\n language: \"EN\",\n });\n if (\n result &&\n result.success == 1 &&\n Array.isArray(result.data) &&\n result.data.length >= 1\n )\n setStores(result.data);\n else {\n }\n setLoading(false);\n };\n\n const renderActions = (value, rowData, index) => {\n return (\n {\n localStorage.setItem(\"storeId\", rowData._id);\n router.push({\n pathname: \"/app/dashboard/shipping\",\n state: {\n sId: rowData._id,\n pushFrom: \"ON_BOARDING\",\n },\n });\n }}\n className=\"py-1 px-2 text-13px border border-blue-600 shadow-sm rounded-sm text-blue-600 bg-gray-50 focus:outline-none hover:bg-blue-600 hover:text-white\"\n >\n {t(\"Add Area\")}\n \n );\n };\n\n useEffect(() => {\n getCurrentUserStores();\n }, []);\n\n const columns = [\n {\n title: t(\"Store\"),\n dataIndex: \"baseLanguage\",\n render: (value, rowData, index) => {\n return rowData[C.BASE_LANGUAGE] ? rowData[C.BASE_LANGUAGE].name : \"\";\n },\n },\n {\n title: t(\"Description\"),\n dataIndex: \"description\",\n render: (value, rowData, index) => {\n return rowData[C.BASE_LANGUAGE]\n ? rowData[C.BASE_LANGUAGE].description\n : \"\";\n },\n },\n {\n title: t(\"Select\"),\n dataIndex: \"_id\",\n width: \"30%\",\n render: renderActions,\n },\n ];\n\n return (\n
\n

\n {t(\"Add areas where your store can deliver\")}\n

\n \n \n \n
\n \n {t(\"Cancel\")}\n \n
\n
\n );\n};\nModalSelectStore.propTypes = {\n onClose: PropTypes.func,\n};\nexport default ModalSelectStore;\n","import { Spin } from \"antd\";\nimport PageHeading from \"components/PageHeading\";\nimport React, { useEffect, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport BubbleTopMessage from \"../components/BubbleTopMessage\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { PackageUtil } from \"utils\";\nimport Step from \"../components/Step\";\nimport Modal from \"components/Modal\";\nimport useCatalogue from \"hooks/useCatalogue\";\nimport { useSelector } from \"react-redux\";\nimport ModalSelectStore from \"../components/ModalSelectStore\";\nconst GetStarted = () => {\n const history = useHistory();\n const [steps, setSteps] = useState([]);\n const [loading, setLoading] = useState(false);\n const [open, setOpen] = useState(false);\n const [videoId, setVideoId] = useState(\"\");\n const [modalVideoOpen, setModalVideoOpen] = useState(false);\n const { t } = useTranslation();\n const catelougeType = useCatalogue(\"getstarted\");\n const getGuidanceFlowSetupStatus = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_GUIDANCE_FLOW_SETUP_WITH_STATUS({\n token: userDetail.token,\n });\n if (result?.success === 1 && Array.isArray(result.result))\n setSteps(result?.result);\n else {\n }\n setLoading(false);\n };\n\n const playVideo = (id) => {\n setVideoId(id);\n setModalVideoOpen(true);\n };\n\n const addTaskToDone = async (id) => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.ADD_TASK_TO_DONE({\n token: userDetail.token,\n taskId: id,\n });\n getGuidanceFlowSetupStatus();\n };\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const check_PackageValidity = async () => {\n const { result } = await UTILS.checkPackageValidity(currentLanguage);\n if (result?.data) {\n const diff = PackageUtil.getPackageExpiry(result.data.subscription);\n if (diff > 5) {\n history.push(\"/app/dashboard/subscription\");\n }\n }\n };\n useEffect(() => {}, []);\n\n useEffect(() => {\n check_PackageValidity();\n getGuidanceFlowSetupStatus();\n }, []);\n\n const getEnabled = (s, index) => {\n if (s?.isCompleted) return \"enabled\";\n else if (index == 0) return \"enabled\";\n else if (steps[index - 1]?.isCompleted && !s?.isCompleted) return \"enabled\";\n else return \"disabled\";\n };\n\n const getOpened = (s, index) => {\n if (index === 0 && !s.isCompleted) return true;\n else if (steps[index - 1]?.isCompleted && !s?.isCompleted) return true;\n else return false;\n };\n return (\n
\n \n setOpen(false)}\n scroll={true}\n >\n setOpen(false)} />\n \n setModalVideoOpen(false)}\n >\n
\n \n
\n setModalVideoOpen(false)}\n className=\"bg-white px-5 py-2 text-sm shadow-sm font-medium border text-gray-600 rounded-sm hover:shadow-md hover:bg-gray-100 justify-center\"\n >\n {t(\"Ok\")}\n \n
\n
\n \n
\n
\n \n {t(\"Your Quick Start Guide\")}\n \n
\n \n
\n
\n \n
\n
\n {steps &&\n steps.map((s, index) => {\n return (\n setOpen(true)}\n playVideo={playVideo}\n addTaskToDone={addTaskToDone}\n />\n );\n })}\n
\n
\n
\n
\n
\n );\n};\nexport default GetStarted;\n","import React from \"react\";\nimport { DatePicker, Space } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\n\nconst Form = ({ setState, getOrdersHistory }) => {\n const { t } = useTranslation();\n\n const { RangePicker } = DatePicker;\n const handleChange = (date, dateString) => {\n setState({\n startData: dateString[0],\n endData: dateString[1],\n });\n };\n return (\n
\n \n \n \n \n getOrdersHistory(null)}\n >\n {t(\"Submit\")}\n \n
\n );\n};\n\nexport default Form;\n","import React from \"react\";\nimport DashboardCard from \"features/dashboard/components/DashboardCard\";\nimport { useTranslation } from \"react-i18next\";\nconst Stats = ({ cardEarning, onlineEarning }) => {\n const { t } = useTranslation();\n return (\n
\n
\n \n
\n
\n \n
\n
\n );\n};\n\nexport default Stats;\n","import React from \"react\";\nimport { Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\nimport \"moment-timezone\";\nimport moment from \"moment\";\n\nconst OnlineOrderTable = ({ orders, handlePageChange, setPage }) => {\n const { t } = useTranslation();\n const columns = [\n {\n title: t(\"Number\"),\n dataIndex: \"orderNumber\",\n align: \"initial\",\n key: \"orderNumber\",\n },\n {\n title: t(\"Price\"),\n dataIndex: \"totalOrderPrice\",\n align: \"initial\",\n key: \"totalOrderPrice\",\n },\n {\n title: t(\"Status\"),\n dataIndex: \"orderStatus\",\n align: \"initial\",\n key: \"orderStatus\",\n render: (val, row, index) => {\n return t(val);\n },\n },\n {\n title: t(\"Verified\"),\n dataIndex: \"orderCheckoutOnlinePaymentMetadata\",\n align: \"initial\",\n key: \"orderCheckoutOnlinePaymentMetadata\",\n render: (val, row, index) => {\n if (row?.paymentType !== \"CREDIT_CARD\") return t(\"N/a\");\n return row?.orderCheckoutOnlinePaymentMetadata?.data?.status ===\n \"VERIFIED\"\n ? t(\"yes\")\n : t(\"no\");\n },\n },\n {\n title: t(\"Order Placed Time\"),\n dataIndex: \"orderPlacedTime\",\n align: \"initial\",\n key: \"orderPlacedTime\",\n render: (val, row, index) => {\n return moment.unix(val).tz(\"UTC\").format(\"DD/MM/YYYY hh:mm A\");\n },\n },\n\n {\n title: t(\"Store\"),\n dataIndex: \"storeInfo\",\n width: \"25%\",\n render: (val, row, index) => {\n return val?.baseLanguage?.name;\n },\n key: \"storeInfo\",\n },\n {\n title: t(\"Payment Method\"),\n dataIndex: \"paymentType\",\n align: \"initial\",\n key: \"paymentType\",\n render: (val, row, index) => {\n return t(val);\n },\n },\n ];\n return (\n
\n \n {\n setPage(pagination.current);\n handlePageChange(pagination.current);\n }}\n size=\"small\"\n rowKey={(record) => record._id}\n />\n \n
\n );\n};\n\nexport default OnlineOrderTable;\n","import React, { useState } from \"react\";\nimport { Button, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport Form from \"../components/Form\";\nimport Stats from \"../components/Stats\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { downloadReports } from \"utils/Utils\";\nimport OnlineOderTable from \"../components/OnlineOrderTable\";\nimport { errorNotification } from \"utils/Utils\";\nconst Orders = () => {\n const { t } = useTranslation();\n\n const [state, setState] = useState({\n startData: \"\",\n endData: \"\",\n loading: false,\n orderHistory: {\n data: [],\n totalPages: 0,\n },\n codEarning: 0,\n onlineEarning: 0,\n });\n const [page, setPage] = useState(1);\n\n const setLocalStateData = (key, val) =>\n setState((prevState) => ({ ...prevState, [key]: val }));\n\n const resetstate = () => {\n setLocalStateData(\"orderHistory\", {\n data: [],\n totalPages: 0,\n });\n\n setLocalStateData(\"codEarning\", 0);\n setLocalStateData(\"onlineEarning\", 0);\n };\n\n const getOrdersHistory = async (pageNumber) => {\n try {\n if (!UTILS.validateSelectedDates(state.startData, state.endData)) return;\n setLocalStateData(\"loading\", true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ORDER_HISTORY({\n startDate: state.startData,\n endDate: state.endData,\n brandId: userDetail.brandId,\n page: pageNumber ?? page,\n });\n\n if (result?.success === 1 && result?.data?.orders) {\n if (result?.data?.orders.length >= 1 && result?.data?.count) {\n setLocalStateData(\"orderHistory\", {\n data: result.data.orders,\n totalPages: result.data.count?.totalOrders,\n });\n const cardEarning = result.data.count.cardMachineOrdersEarning || 0;\n const codeEarning = result.data.count.cashOrdersEarning || 0;\n const totalCodEarning = Number(codeEarning + cardEarning).toFixed(2);\n setLocalStateData(\"codEarning\", totalCodEarning);\n setLocalStateData(\n \"onlineEarning\",\n result.data.count.onlineOrdersEarning\n );\n } else {\n UTILS.handleSuccesNotification(t(\"No Order History Found\"));\n resetstate();\n }\n } else {\n // reset\n resetstate();\n UTILS.handleErrorNotification(\n t(result?.error?.message || errorHandler(result?.error))\n );\n }\n } catch (error) {\n resetstate();\n UTILS.handleErrorNotification(\n t(error?.error?.message || errorHandler(error?.error))\n );\n } finally {\n setLocalStateData(\"loading\", false);\n }\n };\n\n const setDate = (date) => {\n setLocalStateData(\"startData\", date.startData);\n setLocalStateData(\"endData\", date.endData);\n };\n\n const downloadexcel = async () => {\n try {\n if (!UTILS.validateSelectedDates(state.startData, state.endData)) return;\n setLocalStateData(\"loading\", true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.downloadOrderHistoryExcelReport({\n startDate: state.startData,\n endDate: state.endData,\n brandId: userDetail.brandId,\n });\n console.log({ downloadOrderHistoryExcelReport: result });\n if (result?.success === 1 && result?.data) {\n UTILS.handleSuccesNotification(\n t(\"Order History Exported Successfully\")\n );\n const url = result?.data;\n downloadReports(url);\n } else {\n UTILS.handleErrorNotification(\n t(result?.error?.message || errorHandler(result?.error))\n );\n }\n } catch (error) {\n errorNotification(errorHandler(error?.error?.message || error?.error));\n } finally {\n setLocalStateData(\"loading\", false);\n }\n };\n return (\n
\n \n
{t(\"Order History\")}
\n\n
\n
\n\n {state.orderHistory?.data?.length > 0 && (\n \n {t(\"Export\")}\n \n )}\n
\n \n {state.orderHistory?.data?.length > 0 && (\n
\n
\n {t(\"Note\")}\n \n {t(\n \"The online orders income is shown without PAYMENT gateway fees\"\n )}\n \n
\n
\n )}\n\n \n
\n
\n );\n};\n\nexport default Orders;\n","import React from \"react\";\n\nconst Heading = (props) => {\n return
{props.title}
;\n};\n\nexport default Heading;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport DashboardCard from \"features/dashboard/components/DashboardCard\";\n\nconst PaymentLinkStats = ({ earning }) => {\n const { t } = useTranslation();\n return (\n
\n
\n \n
\n
\n );\n};\n\nexport default PaymentLinkStats;\n","import React from \"react\";\nimport { Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\nimport moment from \"moment\";\nimport { useSelector } from \"react-redux\";\nconst PaymentLinkTable = ({ paymentLinks, handlePageChange, setPage }) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const PAID_STATUS = \"PAID\";\n const renderStatus = (val) => (\n \n {val === PAID_STATUS ? t(\"Paid\") : t(\"Pending\")}\n \n );\n\n const columns = [\n {\n title: t(\"Store name\"),\n dataIndex: \"storeName\",\n align: \"initial\",\n key: \"storeName\",\n },\n {\n title: t(\"Payment link id\"),\n dataIndex: \"cartId\",\n align: \"initial\",\n key: \"cartId\",\n },\n {\n key: \"Amount\",\n title: t(\"Amount\"),\n dataIndex: \"amount\",\n sorter: {\n compare: (a, b) => a.amount - b.amount,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n title: t(\"Created by\"),\n dataIndex: \"createdBy\",\n align: \"initial\",\n key: \"Created By\",\n },\n {\n title: t(\"Created at\"),\n align: \"initial\",\n key: \"createdAt\",\n render: (val, row, index) => {\n return moment(val.createdAt).format(\"DD/MM/YYYY hh:mm A\");\n },\n },\n\n {\n title: t(\"Status\"),\n dataIndex: \"linkStatus\",\n align: \"initial\",\n key: \"linkStatus\",\n render: renderStatus,\n },\n ];\n return (\n
\n \n {\n setPage(pagination.current);\n handlePageChange(pagination.current);\n }}\n size=\"small\"\n locale={{ emptyText: t(\"No Data\") }}\n rowKey={(record) => record._id}\n />\n \n
\n );\n};\n\nexport default PaymentLinkTable;\n","import React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport Form from \"../components/Form\";\nimport Heading from \"../components/Heading\";\nimport PaymentLinkStats from \"../components/PaymentLinkStats\";\nimport PaymentLinkTable from \"../components/PaymentLinkTable\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\n\nimport { Button, Spin } from \"antd\";\n\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { downloadReports } from \"utils/Utils\";\nimport { errorNotification } from \"utils/Utils\";\nconst PaymentLinks = () => {\n const { t } = useTranslation();\n const [page, setPage] = useState(1);\n\n const [state, setState] = useState({\n startData: \"\",\n endData: \"\",\n });\n const [loading, setLoading] = useState(false);\n const [earning, setEarning] = useState(0);\n const [paymentLinkData, setPaymentData] = useState({\n data: [],\n totalPages: 1,\n });\n\n const resetstate = () => {\n setPaymentData((paymentLinkData) => ({\n data: [],\n totalPages: 1,\n }));\n setEarning(0);\n };\n\n const getPaymentLinksHistory = async (pageNumber) => {\n try {\n if (!UTILS.validateSelectedDates(state.startData, state.endData)) return;\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_PAYMENTLINK_HISTORY({\n startDate: state.startData,\n endDate: state.endData,\n brandId: userDetail.brandId,\n page: pageNumber ?? page,\n });\n if (result && result.success === 1 && result?.data?.fetchLinks) {\n if (result?.data?.fetchLinks?.length > 0) {\n setPaymentData((prevState) => {\n return {\n data: result?.data?.fetchLinks,\n totalPages: result.data.count,\n };\n });\n\n setEarning(UTILS.totalLinksEarning(result?.data?.fetchLinks));\n UTILS.handleSuccesNotification(t(result.message));\n } else {\n resetstate();\n UTILS.handleSuccesNotification(t(\"No Payment Links Found\"));\n }\n } else {\n resetstate();\n UTILS.handleErrorNotification(\n t(result?.error?.message || errorHandler(result?.error))\n );\n }\n } catch (error) {\n resetstate();\n UTILS.handleErrorNotification(\n t(error?.error?.message || errorHandler(error?.error))\n );\n } finally {\n setLoading(false);\n }\n };\n\n const downloadexcel = async () => {\n try {\n if (!UTILS.validateSelectedDates(state.startData, state.endData)) return;\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.downloadPaymentLinksExcelReport({\n startDate: state.startData,\n endDate: state.endData,\n brandId: userDetail.brandId,\n });\n if (result?.success === 1 && result?.data) {\n UTILS.handleSuccesNotification(\n t(\"Payment Links Exported Successfully\")\n );\n const url = result?.data;\n downloadReports(url);\n } else {\n UTILS.handleErrorNotification(\n t(result?.error?.message || errorHandler(result?.error))\n );\n }\n } catch (error) {\n errorNotification(errorHandler(error?.error?.message || error?.error));\n } finally {\n setLoading(false);\n }\n };\n return (\n
\n \n \n
\n \n {paymentLinkData?.data?.length > 0 && (\n \n {t(\"Export\")}\n \n )}\n
\n\n \n \n
\n
\n );\n};\n\nexport default PaymentLinks;\n","import React from \"react\";\nimport { Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\n\nconst CustomerTable = ({ customers, handlePageChange = () => {}, setPage }) => {\n const { t } = useTranslation();\n const columns = [\n {\n title: t(\"Customer Name\"),\n dataIndex: \"name\",\n align: \"initial\",\n key: \"customerName\",\n render: (val, row, index) => {\n return (\n
\n {val || t(\"N/A\")}\n
\n );\n },\n },\n {\n title: t(\"Phone Number\"),\n dataIndex: \"customerPhone\",\n align: \"initial\",\n key: \"customerPhone\",\n render: (val, row, index) => {\n return (\n
\n {val}\n
\n );\n },\n },\n {\n title: t(\"CASH Spending\"),\n dataIndex: \"codEarning\",\n align: \"initial\",\n key: \"codEarning\",\n },\n {\n title: t(\"ONLINE Spending\"),\n dataIndex: \"onlineEarning\",\n align: \"initial\",\n key: \"onlineEarning\",\n },\n ];\n\n return (\n
\n \n record?.customerId}\n size=\"small\"\n onChange={(pagination, filters, sorter) => {\n setPage(pagination.current);\n handlePageChange(pagination.current);\n }}\n />\n \n
\n );\n};\n\nexport default CustomerTable;\n","import React, { useState } from \"react\";\nimport { Button, Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport CustomerTable from \"../components/CustomerTable\";\nimport Form from \"../components/Form\";\nimport Heading from \"../components/Heading\";\n\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { downloadReports } from \"utils/Utils\";\nimport { errorNotification } from \"utils/Utils\";\nconst CustomersReport = () => {\n const { t } = useTranslation();\n const [page, setPage] = useState(1);\n\n const [state, setState] = useState({\n startData: \"\",\n endData: \"\",\n });\n const [loading, setLoading] = useState(false);\n const [customers, setCustomers] = useState({\n data: [],\n totalPages: 1,\n });\n const resetstate = () => {\n setCustomers((customers) => ({\n data: [],\n totalPages: 1,\n }));\n };\n\n const getCustomerReport = async (pageNumber) => {\n try {\n if (!UTILS.validateSelectedDates(state.startData, state.endData)) return;\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_CUSTOMER_REPORT({\n startDate: state.startData,\n endDate: state.endData,\n brandId: userDetail.brandId,\n page: pageNumber ?? page,\n });\n if (result?.success === 1) {\n if (result?.data?.customers && result?.data?.customers.length > 0) {\n const customerReport = await UTILS.getEachCustomeData(\n result?.data?.customers\n );\n\n setCustomers((customers) => ({\n data: customerReport,\n totalPages: result?.data?.count,\n }));\n } else {\n UTILS.handleSuccesNotification(t(\"No Customer Report Found\"));\n resetstate();\n }\n }\n } catch (error) {\n resetstate();\n UTILS.handleErrorNotification(\n t(error?.error?.message || errorHandler(error?.error))\n );\n } finally {\n setLoading(false);\n }\n };\n\n const downloadexcel = async () => {\n try {\n if (!UTILS.validateSelectedDates(state.startData, state.endData)) return;\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.downloadCustomerExcelReport({\n startDate: state.startData,\n endDate: state.endData,\n brandId: userDetail.brandId,\n });\n if (result?.success === 1 && result?.data) {\n UTILS.handleSuccesNotification(\n t(\"Customer Report Fetched Successfully\")\n );\n const url = result?.data;\n downloadReports(url);\n } else {\n UTILS.handleErrorNotification(\n t(result?.error?.message || errorHandler(result?.error))\n );\n }\n } catch (error) {\n errorNotification(errorHandler(error?.error?.message || error?.error));\n } finally {\n setLoading(false);\n }\n };\n\n return (\n
\n \n \n
\n \n\n {customers?.data?.length > 0 && (\n \n {t(\"Export\")}\n \n )}\n
\n \n
\n
\n );\n};\n\nexport default CustomersReport;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst RadioButton = (props) => {\n return (\n <>\n
\n \n
\n \n props.handleValues(\n props.keyVal,\n event.target.checked,\n props.row\n )\n }\n checked={props.value}\n type=\"checkbox\"\n id={props.keyVal}\n className=\"sr-only\"\n />\n
\n
\n
\n
{props.label}
\n \n \n \n );\n};\n\nRadioButton.propTypes = {\n label: PropTypes.string,\n value: PropTypes.bool,\n keyVal: PropTypes.string,\n handleValues: PropTypes.func,\n};\n\nexport default RadioButton;\n","import React, { useEffect, useState } from \"react\";\nimport { Spin, Table } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport moment from \"moment\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\nimport RadioButton from \"components/RadioButtonWithRow\";\n\nconst Discount = () => {\n const zone = moment.tz.guess();\n moment.tz.setDefault(zone);\n const [loading, setLoading] = useState(false);\n const [discounts, setDiscounts] = useState([]);\n\n const history = useHistory();\n const { t } = useTranslation();\n const [searchTerm, setSearch] = useState(\"\");\n const addDiscount = () => {\n history.push(\"/app/dashboard/adddiscount\");\n };\n const fetchAllDiscounts = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ALL_COUPONS({\n token: userDetail.token,\n brandId: userDetail.brandId,\n });\n if (result?.success == 1) {\n setDiscounts(result.discount);\n } else UTILS.errorNotification(\"Please try again later\");\n setLoading(false);\n };\n\n useEffect(() => {\n fetchAllDiscounts();\n }, []);\n const formatTime = (time) => {\n return moment.unix(time).locale(\"en\").tz(moment.tz.guess()).format();\n };\n const handlePlayPause = async (key, val, row) => {\n setLoading(true);\n row[\"isActive\"] = val;\n row[\"startDate\"] = formatTime(row[\"startDate\"]);\n row[\"endDate\"] = formatTime(row[\"endDate\"]);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.UPDATE_COUPONS({\n token: userDetail.token,\n data: row,\n });\n if (result?.success == 1) {\n UTILS.successNotification(t(\"Discount Updated successfully\"));\n fetchAllDiscounts();\n }\n };\n const renderPlayPauseComponent = (value, rowData, index) => {\n return (\n
\n \n
\n );\n };\n const editCouponPage = (row) => {\n history.push({\n pathname: \"/app/dashboard/updatediscount\",\n state: {\n discount: row,\n },\n });\n };\n const reanderTtile = (value, row, index) => {\n return (\n
\n \n {row?.discountCode}\n {/* editCouponPage(row)}\n >\n \n \n \n */}\n \n

{value}

\n
\n );\n };\n const editCoupon = (value, row, index) => {\n return (\n
\n \n editCouponPage(row)}\n >\n \n \n \n \n \n
\n );\n };\n const renderType = (value, row) => {\n return (\n
\n {t(value)}\n {row.isApplicableOnAllItems ? (\n

{t(\"Applies to all items\")}

\n ) : (\n

{t(\"Applies to selected items\")}

\n )}\n
\n );\n };\n const reanderAvailablity = (value, row) => {\n return (\n
\n {moment.unix(row.startDate).format(\"DD-MM-YYYY\")} -{\" \"}\n {moment.unix(row.endDate).format(\"DD-MM-YYYY\")}\n
\n );\n };\n const deleteButton = () => {\n return (\n
\n \n \n \n \n \n
\n );\n };\n const columns = [\n {\n title: \"\",\n dataIndex: \"isActive\",\n align: \"center\",\n\n render: renderPlayPauseComponent,\n },\n {\n title: t(\"Discount\"),\n dataIndex: \"discountName\",\n align: \"center\",\n key: \"discountName\",\n render: reanderTtile,\n },\n {\n title: t(\"Application\"),\n dataIndex: \"discountApplication\",\n align: \"center\",\n key: \"discountApplication\",\n render: (value) => {\n return (\n
{t(value)}
\n );\n },\n },\n {\n title: t(\"Type\"),\n dataIndex: \"discountType\",\n key: \"discountType\",\n align: \"center\",\n render: renderType,\n },\n {\n title: t(\"Amount\"),\n dataIndex: \"discountAmount\",\n key: \"discountAmount\",\n align: \"center\",\n render: (value) => {\n return
{value}
;\n },\n },\n {\n title: t(\"Min. Basket\"),\n dataIndex: \"minOrderValue\",\n key: \"minOrderValue\",\n align: \"center\",\n render: (value) => {\n return
{value}
;\n },\n },\n {\n title: t(\"Max. Discount\"),\n dataIndex: \"maximumDiscountValue\",\n key: \"maximumDiscountValue\",\n align: \"center\",\n render: (value) => {\n return
{value}
;\n },\n },\n {\n title: t(\"Availability\"),\n dataIndex: \"startDate\",\n key: \"startDate\",\n align: \"center\",\n render: reanderAvailablity,\n },\n\n {\n title: t(\"Allowed Usage\"),\n dataIndex: \"maxUsage\",\n key: \"maxUsage\",\n align: \"center\",\n render: (value) => {\n return
{value}
;\n },\n },\n {\n title: t(\"Detail\"),\n dataIndex: \"action\",\n key: \"action\",\n align: \"center\",\n render: editCoupon,\n },\n ];\n const Items = React.useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return discounts;\n }\n\n let searchTermLower = searchTerm.toLowerCase().trim();\n let d = discounts.filter((item) => {\n return (\n item.discountName?.toLowerCase().includes(searchTermLower) ||\n item.discountCode?.toLowerCase().includes(searchTermLower)\n );\n });\n return d;\n }, [discounts, searchTerm]);\n\n const handSearch = (e) => {\n setSearch(e.target.value);\n };\n return (\n
\n \n
\n
\n

\n {t(\"Add a discount\")}\n

\n
\n
\n
\n \n \n \n \n
\n
\n \n {t(\"Add discount\")} \n \n
\n
\n
\n\n \n
\n record._id}\n />\n
\n
\n
\n
\n );\n};\n\nexport default Discount;\n","import { useState, useEffect } from \"react\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\n\nconst useAllItems = () => {\n const [items, setItems] = useState([]);\n const [Itemloader, setLoading] = useState(true);\n const getItemsByBrand = async () => {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ITEMS_BY_BRAND({\n token: userDetail.token,\n brandId: userDetail.brandId,\n language: \"EN\",\n });\n\n if (result && result?.success === 1) setItems(result?.data);\n else {\n }\n setLoading(false);\n };\n\n useEffect(() => {\n setLoading(true);\n getItemsByBrand();\n return () => {\n setItems([]);\n };\n }, []);\n\n return { items, Itemloader };\n};\n\nexport default useAllItems;\n","import React, { useState } from \"react\";\nimport { DatePicker, Space, Spin, Checkbox } from \"antd\";\nimport SimpleRadioButton from \"components/SimpleRadioButton\";\nimport TextInput from \"components/TextInput\";\nimport { useTranslation } from \"react-i18next\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport useAllItems from \"hooks/useCurrentUserItems\";\nimport moment from \"moment\";\nimport \"moment-timezone\";\nimport { CONSTANTS as C } from \"config\";\nimport { UTILS } from \"utils\";\nconst DiscountForm = (props) => {\n const { t } = useTranslation();\n const { stores, loading } = useAllStores();\n const [searchTerm, setSearch] = useState(\"\");\n const zone = moment.tz.guess();\n moment.tz.setDefault(zone);\n const { items, Itemloader } = useAllItems();\n const { RangePicker } = DatePicker;\n\n const addStore = (store) => {\n if (props?.state?.values?.selectedOutlets?.includes(store)) {\n const newSelectedOutlets = props?.state?.values?.selectedOutlets?.filter(\n (item) => item !== store\n );\n props?.setState({\n ...props.state,\n values: {\n ...props.state.values,\n selectedOutlets: newSelectedOutlets,\n },\n });\n } else {\n props.setState({\n ...props.state,\n values: {\n ...props.state.values,\n selectedOutlets: [...props.state.values.selectedOutlets, store],\n },\n });\n }\n };\n const addItem = (sitem) => {\n if (props.state.values.selectedItems.includes(sitem)) {\n const newSelectedItems = props.state?.values?.selectedItems?.filter(\n (item) => item !== sitem\n );\n props.setState({\n ...props.state,\n values: {\n ...props.state.values,\n selectedItems: newSelectedItems,\n },\n });\n } else {\n props.setState({\n ...props.state,\n values: {\n ...props.state.values,\n selectedItems: [...props.state.values.selectedItems, sitem],\n },\n });\n }\n };\n const handleSetDate = (date, dateString) => {\n const momentTimezone = moment.tz.guess();\n const date1 = moment(date[0]).locale(\"en\").tz(momentTimezone).format();\n const date2 = moment(date[1]).locale(\"en\").tz(momentTimezone).format();\n\n props.setState({\n ...props.state,\n values: {\n ...props.state.values,\n startDate: dateString[0],\n endDate: dateString[1],\n isoDate: date1,\n isoEndDate: date2,\n },\n });\n };\n\n const handleChange = (key, val) => {\n props.setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n \n const handleDiscountCode = (key, val) => {\n if (val.match(/[a-z]/i)) {\n val = val.toLowerCase();\n }\n props.setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const getValue = (key) => {\n if (props?.state && UTILS.ifNotNullAndUndfine(props.state.values[key])) {\n return props.state.values[key];\n }\n if (key === \"startDate\") {\n return moment().format(\"YYYY-MM-DD, HH:mm\");\n }\n if (key === \"endDate\") {\n return moment().add(1, \"year\").format(\"YYYY-MM-DD, HH:mm\");\n }\n\n return \"\";\n };\n const Items = React.useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return items;\n }\n let searchTermLower = searchTerm.toLowerCase().trim();\n\n return items.filter((item) =>\n item?.baseLanguage?.title?.toLowerCase()?.includes(searchTermLower)\n );\n }, [items, searchTerm]);\n\n const handSearch = (e) => {\n setSearch(e.target.value);\n };\n const updatePrice = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleChange(key, value);\n };\n\n const handleServiceTypes = (key, val) => {\n const isAdded = props?.state?.values?.serviceType?.some(\n (value) => value?.serviceName === val?.serviceName\n );\n const newSelectedItems = isAdded\n ? props?.state?.values?.serviceType?.filter(\n (item) => item?.serviceName !== val.serviceName\n )\n : [...props?.state?.values?.serviceType, val];\n\n props.setState({\n ...props.state,\n values: {\n ...props?.state?.values,\n serviceType: newSelectedItems,\n },\n errors: {\n ...props?.state.errors,\n [key]: \"\",\n },\n });\n };\n\n const getBuisnessType = () => {\n const userDetail = UTILS.getCurrentUser();\n return userDetail?.catalogueType;\n };\n\n return (\n
\n \n

\n {props?.text === \"Add\" ? t(\"Add a discount\") : t(\"Update Discount\")}\n

\n
\n
\n \n
\n\n
\n \n
\n\n
\n

{t(\"Application\")}

\n
\n
\n
\n \n
\n
\n

{t(\"Manual\")}

\n

\n {t(\n \"Will be displayed on the store front, and customers will have to select it if they wish to use it\"\n )}\n

\n
\n
\n
\n
\n \n
\n
\n

{t(\"Hidden Code\")}

\n

\n {t(\n \"Won’t be displayed on the store front, and customers will type the code at the checkout\"\n )}\n

\n
\n
\n
\n
\n\n
\n

{t(\"Order type\")}

\n {\n
\n {[\n {\n label: t(\"DELIVERY\"),\n serviceName: \"DELIVERY\",\n },\n {\n label: t(\"PICKUP\"),\n serviceName: \"PICKUP\",\n },\n ...(getBuisnessType() !== C.BRAND_BASED\n ? [\n {\n label: t(\"DINEIN\"),\n serviceName: \"DINE IN\",\n },\n ]\n : []),\n ].map((item, index) => (\n {\n handleServiceTypes(\"orderType\", {\n serviceName: item?.serviceName,\n });\n }}\n checked={props?.state?.values.serviceType.some(\n (service) => service.serviceName === item?.serviceName\n )}\n >\n {item?.label}\n \n ))}\n
\n }\n
\n\n
\n

{t(\"Applicable outlets\")}

\n
\n \n \n
\n {props?.state?.values?.outletSelectionType === C.SELECTED && (\n
\n {stores?.map((store, index) => (\n {\n addStore(store?.value);\n }}\n >\n {props?.state?.values?.selectedOutlets?.includes(\n store?.value\n ) ? (\n
\n \n
{store?.label}
\n
\n ) : (\n
\n \n
{store?.label}
\n
\n )}\n
\n ))}\n
\n )}\n
\n
\n

{t(\"Discount type\")}

\n
\n \n \n
\n\n
\n
\n \n
\n
\n
\n
\n \n
\n {props?.state?.values?.discountType === C.PERCENTAGE && (\n
\n \n
\n )}\n
\n
\n\n
\n

{t(\"Discount items\")}

\n
\n \n \n
\n {props?.state?.values?.itemSelectionType === C.SELECTED && (\n <>\n
\n
\n {t(\"Discount applies to\")}\n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n\n
\n {Items?.map((item, index) => (\n addItem(item._id)}\n key={index}\n >\n
\n
\n {item?.baseLanguage?.title}\n \n AED {item?.price}\n \n
\n {props?.state?.values?.selectedItems?.includes(\n item._id\n ) ? (\n \n ) : (\n \n )}\n
\n
\n ))}\n
\n \n )}\n
\n\n
\n

\n {t(\"Customer segmentation\")}\n

\n
\n \n \n
\n {props?.state?.values?.customerSegmentationType === \"all\" ? (\n
\n \n
\n ) : null}\n
\n\n
\n

{t(\"Availability\")}

\n
\n \n \n handleSetDate(date, dateString)\n }\n inputReadOnly={true}\n showTime={{ format: \"HH:mm\" }}\n format={C.DATE_FORMAT}\n value={[\n props?.state?.values?.startDate\n ? moment(props?.state?.values?.startDate, C.DATE_FORMAT)\n : null,\n props?.state?.values?.endDate\n ? moment(props.state.values.endDate, C.DATE_FORMAT)\n : null,\n ]}\n className=\"h-11\"\n />\n \n
\n
\n \n
\n
\n
\n {\n props?.addDiscount();\n }}\n >\n {props?.text === \"Add\" ? t(\"Add\") : t(\"Update\")}\n \n
\n \n \n \n );\n};\n\nexport default DiscountForm;\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { API } from \"api\";\nimport AddForm from \"../components/DiscountForm\";\nimport moment from \"moment\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport useAllItems from \"hooks/useCurrentUserItems\";\n\nconst AddDiscount = () => {\n const { t } = useTranslation();\n const { stores, loading } = useAllStores();\n const { items, Itemloader } = useAllItems();\n const history = useHistory();\n const [isLoading, setLoading] = useState(false);\n const zone = moment.tz.guess();\n moment.tz.setDefault(zone);\n const [state, setState] = useState({\n values: {\n discountName: \"\",\n discountCode: \"\",\n discountAmount: 0,\n minOrderValue: 0,\n maximumDiscountValue: 50,\n startDate: \"\",\n endDate: \"\",\n isoDate: \"\",\n isoEndDate: \"\",\n perCustomerUse: 10,\n maxUsage: 100,\n serviceType: [\n {\n label: t(\"DELIVERY\"),\n serviceName: \"DELIVERY\",\n },\n {\n label: t(\"PICKUP\"),\n serviceName: \"PICKUP\",\n },\n {\n label: t(\"DINEIN\"),\n serviceName: \"DINE IN\",\n },\n ],\n applicationType: C.COUPUN_APPLICATION_TYPE.MANUAL,\n discountType: C.PERCENTAGE,\n itemSelectionType: C.ALL,\n customerSegmentationType: \"all\",\n outletSelectionType: C.ALL,\n selectedOutlets: [],\n selectedItems: [],\n },\n errors: {\n discountName: \"\",\n discountCode: \"\",\n discountAmount: \"\",\n minOrderValue: \"\",\n maximumDiscountValue: \"\",\n perCustomerUse: \"\",\n maxUsage: \"\",\n startDate: \"\",\n endDate: \"\",\n items: [],\n },\n });\n\n const addDiscount = async () => {\n const { isFormValid } = UTILS.validateCouponsInputs(state);\n if (!isFormValid) return;\n setLoading(true);\n let discountObj = UTILS.getDiscountObj(state);\n const result = await API.CREATE_DISCOUNT_COUPON({\n data: discountObj,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(\"Discount created successfully\"));\n history.push(\"/app/dashboard/discount\");\n } else {\n UTILS.errorNotification(\n result?.message || result?.error || t(\"Please try again later\")\n );\n }\n setLoading(false);\n };\n\n const numExecutions = useRef(0);\n const NoStoreCreatedToast = () => {\n numExecutions.current += 1;\n if (numExecutions.current <= 1)\n UTILS.errorNotification(\n t(\"It appears you have not created your store yet, so please do so\")\n );\n };\n const NoItemCreatedToast = () => {\n numExecutions.current += 1;\n if (numExecutions.current <= 1)\n UTILS.errorNotification(\n t(\"It appears you have not created any product yet, please do so\")\n );\n };\n\n useEffect(() => {\n if (!Itemloader && !loading) {\n if (stores?.length <= 0) {\n NoStoreCreatedToast();\n return;\n }\n if (items?.length <= 0) {\n NoItemCreatedToast();\n return;\n }\n }\n }, [stores, items, loading, Itemloader]);\n\n return (\n
\n \n
\n \n {/* */}\n
\n
\n
\n );\n};\n\nexport default AddDiscount;\n","import React, { useEffect, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { Spin } from \"antd\";\nimport moment from \"moment\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { CONSTANTS as C } from \"config\";\nimport UpdateForm from \"../components/DiscountForm\";\nimport DiscountPreview from \"../components/DiscountPreview\";\nimport usePushBack from \"hooks/usePushBack\";\nimport BackButton from \"components/BackButton\";\n\nconst UpdateDiscount = () => {\n const zone = moment.tz.guess();\n moment.tz.setDefault(zone);\n const { t } = useTranslation();\n const history = useHistory();\n const [loading, setLoading] = useState(false);\n const [discountId, setDiscountId] = useState(null);\n const [state, setState] = useState({\n values: {\n discountName: \"\",\n discountCode: \"\",\n discountAmount: 0,\n minOrderValue: 0,\n maximumDiscountValue: 0,\n startDate: \"\",\n perCustomerUse: 0,\n maxUsage: 0,\n endDate: \"\",\n isoDate: \"\",\n isoEndDate: \"\",\n applicationType: C.HIDDEN,\n discountType: C.PERCENTAGE,\n itemSelectionType: C.ALL,\n customerSegmentationType: \"all\",\n outletSelectionType: C.ALL,\n selectedOutlets: [],\n selectedItems: [],\n isActive: true,\n serviceType: [],\n },\n errors: {\n discountName: \"\",\n discountCode: \"\",\n discountAmount: \"\",\n minOrderValue: \"\",\n maximumDiscountValue: \"\",\n perCustomerUse: \"\",\n maxUsage: \"\",\n startDate: \"\",\n endDate: \"\",\n items: [],\n },\n });\n useEffect(() => {\n setLoading(true);\n if (history.location.state) {\n setInputFields(history.location.state.discount);\n setDiscountId(history.location.state.discount._id);\n }\n setLoading(false);\n }, []);\n\n const setInputFields = (values) => {\n moment.locale(\"en\");\n setLoading(true);\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n discountName: values?.discountName,\n discountCode: values?.discountCode,\n discountAmount: values?.discountAmount,\n minOrderValue: values?.minOrderValue,\n isActive: values?.isActive,\n maximumDiscountValue: values?.maximumDiscountValue,\n outletSelectionType: values?.isApplicableOnAllStores\n ? C.ALL\n : C.SELECTED,\n itemSelectionType: values?.isApplicableOnAllItems ? C.ALL : C.SELECTED,\n applicationType: values?.discountApplication,\n discountType: values?.discountType,\n customerSegmentationType: values?.customerSegment,\n\n startDate: moment.unix(values?.startDate).format(C.DATE_FORMAT),\n endDate: moment.unix(values?.endDate).format(C.DATE_FORMAT),\n isoDate: moment.unix(values?.startDate).tz(moment.tz.guess()).format(),\n isoEndDate: moment.unix(values?.endDate).tz(moment.tz.guess()).format(),\n perCustomerUse: values?.perCustomerUse,\n maxUsage: values.maxUsage,\n\n selectedOutlets: values?.discountAppliedOnSpecificStores?.map(\n (store) => store.storeId\n ),\n\n selectedItems: values?.discountAppliedOnSpecificItems?.map(\n (item) => item.itemId\n ),\n serviceType: values?.serviceType?.map((service) => {\n return {\n serviceName: service.serviceName,\n label: service.serviceName,\n };\n }),\n },\n }));\n\n setLoading(false);\n };\n\n const updateDiscount = async () => {\n const { isFormValid } = UTILS.validateCouponsInputs(state);\n if (!isFormValid) return;\n setLoading(true);\n let discountObj = UTILS.getDiscountObj(state);\n const result = await API.UPDATE_COUPONS({\n data: {\n ...discountObj,\n _id: discountId,\n },\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(\"Discount Updated successfully\"));\n history.push(\"/app/dashboard/discount\");\n } else {\n UTILS.errorNotification(\n result?.message || result?.error || t(\"Please try again later\")\n );\n }\n setLoading(false);\n };\n return (\n
\n \n \n
\n \n {/* */}\n
\n
\n
\n );\n};\n\nfunction UpdateDiscountContainer() {\n const router = useHistory();\n usePushBack(\"/app/dashboard/discount\", router?.location?.state?.discount);\n\n return ;\n}\n\nexport default UpdateDiscountContainer;\n","import React from \"react\";\nimport s from \"./branding.module.css\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useSelector } from \"react-redux\";\nconst BrandingPreviewMenuWidget = ({ settings, orderNowPopupConfig }) => {\n const { t } = useTranslation();\n const dir = UTILS.getLanguageInformation()?.direction;\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const closeBtn = dir == \"rtl\" ? \"left-4\" : \"right-4\";\n return (\n
\n
\n
\n
\n

\n {t(\"Ordering menu preview\")}\n

\n
\n
\n
\n

{settings?.taglineEN}

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n {t(\"Delivery\")}\n
\n
\n
\n
\n \n {t(\"Category\")}\n
\n
\n {t(\"Category\")}{\" \"}\n
\n
\n {\" \"}\n {t(\"Category\")}{\" \"}\n
\n
\n {\" \"}\n {t(\"Category\")}{\" \"}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n {t(\"Add to basket\")}\n
\n
\n
\n \n \n \n
\n

\n {t(\"Ordering widget preview\")}\n

\n
\n
\n \n \n \n

\n {orderNowPopupConfig?.title\n ? orderNowPopupConfig?.title\n : t(\"Hey there\")}\n

\n \n {orderNowPopupConfig?.message\n ? orderNowPopupConfig?.message\n : t(\"Order online now!\")}\n

\n
\n
\n {}}\n >\n {orderNowPopupConfig?.buttonText\n ? orderNowPopupConfig?.buttonText\n : t(\"Order now!\")}\n \n
\n
\n \n {t(\"Powered by\")}{\" \"}\n \n {t(\"company name\", {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n })}\n \n \n
\n
\n
\n {/*
\n {orderNowPopupConfig?.iconUrl && (\n \n )}\n
*/}\n
\n
\n \n \n \n );\n};\n\nexport default BrandingPreviewMenuWidget;\n","import React, { useEffect, useRef, useState } from \"react\";\nimport reactCSS from \"reactcss\";\nimport { SketchPicker } from \"react-color\";\n\nexport default function ColorPicker(props) {\n const wrapperRef = useRef(null);\n let { show, notShow } = useOutsideAlerter(wrapperRef);\n\n const handleClick = () => {\n notShow(!show);\n };\n\n const handleClose = () => {\n notShow(false);\n };\n\n const handleChange = (e) => {\n props.onChange(props.pkey, e.hex);\n };\n const styles = reactCSS({\n default: {\n color: {\n width: \"36px\",\n height: \"14px\",\n borderRadius: \"2px\",\n background: `${props?.colorValue}`,\n },\n swatch: {\n padding: \"5px\",\n background: \"#fff\",\n borderRadius: \"1px\",\n boxShadow: \"0 0 0 1px rgba(0,0,0,.1)\",\n display: \"inline-block\",\n cursor: \"pointer\",\n },\n popover: {\n position: \"absolute\",\n zIndex: \"2\",\n },\n cover: {\n position: \"fixed\",\n top: \"0px\",\n right: \"0px\",\n bottom: \"0px\",\n left: \"0px\",\n },\n },\n });\n\n return props?.colorValue ? (\n
\n
\n
\n
\n {show ? (\n
\n
\n \n
\n ) : null}\n
\n ) : (\n <>\n );\n}\n\nfunction useOutsideAlerter(ref) {\n const [show, notShow] = useState(false);\n useEffect(() => {\n function handleClickOutside(event) {\n if (ref.current && !ref.current.contains(event.target)) {\n notShow(false);\n }\n }\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [ref]);\n return { show, notShow };\n}\n","import { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { Upload } from \"antd\";\nimport ImgCrop from \"antd-img-crop\";\nimport { CONSTANTS as C } from \"config\";\nimport \"antd/es/slider/style\";\nfunction FaviconUpload({\n onPreview,\n handleChange,\n beforeUpload,\n settings,\n uploadButton,\n name,\n title,\n description,\n}) {\n const { t } = useTranslation();\n\n return (\n
\n \n \n handleChange(info, name)}\n onPreview={onPreview}\n beforeUpload={beforeUpload}\n >\n {settings?.[name] ? (\n \n ) : (\n uploadButton\n )}\n \n \n

{description}

\n
\n );\n}\n\nexport default FaviconUpload;\n","import { Input } from \"antd\";\nimport React from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport ImgCrop from \"antd-img-crop\";\nimport { CONSTANTS as C } from \"config\";\nimport Dragger from \"antd/lib/upload/Dragger\";\nimport s from \"./branding.module.css\";\nimport ColorPicker from \"components/ColorPicker\";\nimport FaviconUpload from \"./FaviconUpload\";\n\nconst BrandingPlatformCustomizeAndWidget = ({\n setSettings,\n settings,\n orderNowPopupConfig,\n setOrderNowPopupConfig,\n handleChange,\n onPreview,\n uploadButton,\n beforeUpload,\n}) => {\n const { t } = useTranslation();\n\n const handleValues = (key, val) => {\n setSettings((prev) => ({\n ...prev,\n [key]: val,\n }));\n };\n const handleConfig = (key, val) => {\n setOrderNowPopupConfig((prev) => ({\n ...prev,\n [key]: val,\n }));\n };\n\n return (\n
\n

{t(\"Platform customization\")}

\n

\n {t(\n \"Change the appearance of your ordering platform and make it look like your business.\"\n )}\n

\n
\n \n

\n {t(\n \"2 MB is the maximum size allowed. In order to get the best results, keep the width (620 px) and height (350 px). Only JPEGs and PNGs are allowed.\"\n )}\n

\n \n handleChange(info, \"brandImageHomeBG\")}\n onPreview={onPreview}\n beforeUpload={beforeUpload}\n >\n {settings?.brandImageHomeBG ? (\n <>\n \n \n ) : (\n \n \n \n \n
\n {\"Drag and drop cover image or\"}
\n {\"browse\"}{\" \"}\n {\"to upload\"}\n
\n
\n )}\n \n \n
\n
\n
\n \n
\n
\n \n
\n
\n {settings?.textColor}\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n {settings?.color}\n
\n
\n
\n
\n
\n
\n \n \n
\n {\n const inputValue = event.target.value;\n if (inputValue.length <= 65) {\n handleValues(\"taglineEN\", inputValue);\n } else {\n handleValues(\"taglineEN\", inputValue.substring(0, 65));\n }\n }}\n />\n
\n\n \n\n \n\n {/* */}\n
\n {t(\"Ordering widget\")}\n
\n
\n
\n \n \n
\n\n {\n const inputValue = event.target.value;\n if (inputValue?.length <= 10) {\n handleConfig(\"title\", inputValue);\n } else {\n handleConfig(\"title\", inputValue.substring(0, 10));\n }\n }}\n />\n
\n
\n
\n \n \n
\n\n {\n const inputValue = event.target.value;\n if (inputValue?.length <= 38) {\n handleConfig(\"message\", inputValue);\n } else {\n handleConfig(\"message\", inputValue.substring(0, 38));\n }\n }}\n />\n
\n\n
\n
\n \n \n
\n\n {\n const inputValue = event.target.value;\n if (inputValue?.length <= 10) {\n handleConfig(\"buttonText\", inputValue);\n } else {\n handleConfig(\"buttonText\", inputValue.substring(0, 10));\n }\n }}\n />\n
\n
\n );\n};\n\nexport default BrandingPlatformCustomizeAndWidget;\n","import React, { useEffect, useState } from \"react\";\nimport { Spin, Button } from \"antd\";\nimport { CONSTANTS as C } from \"config\";\nimport BrandingPreviewMenuWidget from \"../components/BrandingPreviewMenuWidget\";\nimport BrandingPlatformCustomizeAndWidget from \"../components/BrandingPlatformCustomizeAndWidget\";\nimport s from \"../components/branding.module.css\";\nimport { LoadingOutlined, PlusOutlined } from \"@ant-design/icons\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n useGetSettingsMutation,\n useUpdateBrandSettingsMutation,\n} from \"redux/settings/settingsSlice\";\nimport { useSelector } from \"react-redux\";\nconst Branding = () => {\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { t } = useTranslation();\n const [updateBrandSettings] = useUpdateBrandSettingsMutation();\n const [getSettings] = useGetSettingsMutation();\n const [imgLoading, setImgLoading] = useState(false);\n const [settings, setSettings] = useState({\n brandImageHomeBG: \"\",\n brandLogoFirst: \"\",\n taglineEN: \"\",\n titleEN: \"\",\n sloganEN: \"\",\n color: \"\",\n textColor: \"\",\n });\n const [orderNowPopupConfig, setOrderNowPopupConfig] = useState({\n iconUrl: \"\",\n message: \"\",\n buttonText: \"\",\n title: \"\",\n });\n const fetchSettings = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n };\n const data = await getSettings(obj).unwrap();\n if (data?.success === 1) {\n if (data?.data?.setting?.orderNowPopupConfig) {\n setOrderNowPopupConfig(data?.data?.setting?.orderNowPopupConfig);\n }\n if (data?.data?.setting?.color) {\n let obj = { ...data.data.setting };\n obj.color = \"#\" + data.data.setting.color;\n if (data?.data?.setting?.textColor) {\n obj.textColor = \"#\" + data.data.setting.textColor;\n }\n setSettings(obj);\n } else {\n let obj = { ...data?.data?.setting };\n obj.color = C.SETTINGS_DEFAULT_COLOUR;\n obj.textColor = C.DEFAULT_TEXT_COLOUR;\n setSettings(obj);\n }\n }\n };\n useEffect(() => {\n fetchSettings();\n }, []);\n\n function beforeUpload(file) {\n const isJpgOrPng = file.type === \"image/jpeg\" || file.type === \"image/png\";\n if (!isJpgOrPng) {\n UTILS.errorNotification(t(\"You can only upload JPG/PNG file\"));\n }\n const F_Size = file.size / 1024;\n const isLt1M = F_Size <= C.MAX_IMAGE_SIZE;\n console.info(\"Image Size After Crop=\", Math.floor(F_Size), \"Kb\");\n if (!isLt1M) {\n UTILS.errorNotification(t(\"Image must be smaller than 2MB\"));\n }\n return isJpgOrPng && isLt1M;\n }\n const uploadButton = (\n
\n {setImgLoading ? : }\n
{t(\"Upload\")}
\n
\n );\n\n const onPreview = async (file) => {\n let src = file.url;\n if (!src) {\n src = await new Promise((resolve) => {\n const reader = new FileReader();\n reader.readAsDataURL(file.originFileObj);\n reader.onload = () => resolve(reader.result);\n });\n }\n const image = new Image();\n image.src = src;\n const imgWindow = window.open(src);\n imgWindow.document.write(image.outerHTML);\n };\n\n const handleChange = async (info, type) => {\n settings.color = settings.color.replace(\"#\", \"\");\n settings.textColor = settings.textColor.replace(\"#\", \"\");\n if (info.file.status === \"uploading\") {\n setImgLoading(true);\n return;\n }\n if (info.file.status === \"done\") {\n setImgLoading(false);\n let obj = { ...settings };\n let obj2 = { ...orderNowPopupConfig };\n if (type === \"iconUrl\") {\n obj2[type] = info?.file?.response?.data?.url;\n } else {\n obj[type] = info?.file?.response?.data?.url;\n }\n setOrderNowPopupConfig(obj2);\n setSettings(obj);\n const userDetail = UTILS.getCurrentUser();\n obj.brandId = userDetail.brandId;\n obj.orderNowPopupConfig = obj2;\n await updateBrandSettings(obj).unwrap();\n await fetchSettings();\n }\n };\n const saveSettings = async () => {\n const isValid = UTILS.validateAdminSetting(orderNowPopupConfig);\n if (isValid) {\n settings.color = settings.color.replace(\"#\", \"\");\n settings.textColor = settings.textColor.replace(\"#\", \"\");\n const userDetail = UTILS.getCurrentUser();\n let obj = { ...settings };\n obj.orderNowPopupConfig = orderNowPopupConfig;\n obj.brandId = userDetail.brandId;\n await updateBrandSettings(obj).unwrap();\n await fetchSettings();\n } else {\n return;\n }\n };\n return (\n \n
\n
\n \n \n
\n
\n
\n \n {t(\"Save Setting\")}\n \n
\n
\n );\n};\n\nexport default Branding;\n","import React, { useState } from \"react\";\nimport { Button, Input, Spin } from \"antd\";\nimport { useUpdatePhoneNumberMutation } from \"redux/settings/settingsSlice\";\nimport { CONSTANTS as C } from \"config\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nconst ProfileNumberUpdate = () => {\n const { t } = useTranslation();\n const [updatePhoneNumber, { isLoading }] = useUpdatePhoneNumberMutation();\n const [state, setState] = useState({\n values: {\n mobileNumber: \"\",\n password: \"\",\n },\n errors: {\n mobileNumber: \"\",\n oldPassword: \"\",\n },\n });\n const handleChange = (value, name) => {\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [name]: value,\n },\n errors: {\n mobileNumber: \"\",\n oldPassword: \"\",\n },\n }));\n };\n\n const updateState = (key, value) => {\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n [key]: value,\n },\n }));\n };\n\n const ErrorMessages = [\n t(\"Password is a required field\"),\n t(\"Phone is a required field\"),\n t(\"Please enter a valid phone number\"),\n ];\n\n const validateInput = () => {\n let isValid = true;\n if (!state?.values?.password) {\n isValid = false;\n updateState(C.OLD_PASSWORD, ErrorMessages[0]);\n }\n if (!state?.values?.mobileNumber) {\n isValid = false;\n updateState(C.KEY_PHONE, ErrorMessages[1]);\n }\n if (!UTILS.validatePhoneNumber(state?.values?.mobileNumber)) {\n isValid = false;\n updateState(C.KEY_PHONE, ErrorMessages[2]);\n }\n return isValid;\n };\n const resetState = (key, value) => {\n setState((prevState) => ({\n ...prevState,\n values: {},\n errors: {},\n }));\n };\n const updateMyPhone = async () => {\n if (!validateInput()) {\n return;\n } else {\n const Number = UTILS.formatPhoneNumber(\n `+971${state.values.mobileNumber}`\n );\n const obj = {\n newPhoneNumber: Number,\n password: state.values.password,\n };\n const data = await updatePhoneNumber(obj).unwrap();\n if (data?.success === 1) {\n resetState();\n }\n }\n };\n const getNumber = () => {\n const userDetail = UTILS.getCurrentUser();\n return userDetail?.phoneNumber && userDetail?.phoneNumber?.length === 13\n ? userDetail?.phoneNumber?.slice(4, 13)\n : t(\"Enter new phone number\");\n };\n return (\n <>\n \n

\n {t(\"Change phone number\")}\n

\n
\n
\n \n
\n
\n {state?.errors?.mobileNumber && state?.errors?.mobileNumber}\n
\n
\n {\n handleChange(\n UTILS.NumberConversion(event.target.value),\n \"mobileNumber\"\n );\n }}\n />\n
\n
\n\n
\n
\n \n
\n
\n {state?.errors?.oldPassword && state?.errors?.oldPassword}\n
\n
\n {\n handleChange(event.target.value, \"password\");\n }}\n />\n
\n
\n
\n \n {t(\"Update\")}\n \n
\n
\n \n );\n};\n\nexport default ProfileNumberUpdate;\n","import React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { CONSTANTS as C } from \"config\";\nimport { Button, Input, Spin } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { useUpdatePasswordMutation } from \"redux/settings/settingsSlice\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { SettingErrorAction } from \"redux/actions\";\nconst ProfilePasswordUpdate = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n\n const [updatePassword, { isLoading }] = useUpdatePasswordMutation();\n const { isError, passwordError } = useSelector(\n (state) => state?.SettingErrorReducer\n );\n const [state, setState] = useState({\n values: {\n oldPassword: \"\",\n newPassword: \"\",\n confirmPassword: \"\",\n },\n errors: {\n oldPassword: \"\",\n newPassword: \"\",\n confirmPassword: \"\",\n },\n });\n const handleChange = (e) => {\n const { name, value } = e.target;\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [name]: value,\n },\n errors: {\n ...prevState.errors,\n [name]: \"\",\n },\n }));\n };\n\n const updateState = (key, value) => {\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n ...prevState.errors,\n [key]: value,\n },\n }));\n };\n\n const resetState = (key, value) => {\n setState((prevState) => ({\n ...prevState,\n values: {},\n errors: {},\n }));\n };\n\n const ErrorMessages = [\n t(\"Old password is a required field\"),\n t(\"New password is a required field\"),\n t(\"Confirm password is a required field\"),\n t(\"The new password and the confirm password must be the same.\"),\n ];\n\n const validateInput = () => {\n dispatch(SettingErrorAction.setPasswordError(null));\n let isValid = true;\n if (!state?.values?.newPassword) {\n isValid = false;\n updateState(C.NEW_PASSWORD, ErrorMessages[1]);\n }\n if (!state?.values?.oldPassword) {\n isValid = false;\n updateState(C.OLD_PASSWORD, ErrorMessages[0]);\n }\n if (!state?.values?.confirmPassword) {\n isValid = false;\n updateState(C.CONFIRM_PASSWORD, ErrorMessages[2]);\n }\n if (state?.values?.newPassword !== state?.values?.confirmPassword) {\n updateState(C.CONFIRM_PASSWORD, ErrorMessages[3]);\n updateState(C.NEW_PASSWORD, ErrorMessages[3]);\n isValid = false;\n }\n return isValid;\n };\n const updateMyPassword = async () => {\n const language = await UTILS?.asyncLocalStorage.getLanguage();\n if (!validateInput()) {\n return;\n } else {\n const obj = {\n oldPassword: state.values.oldPassword,\n newPassword: state.values.newPassword,\n language,\n };\n await updatePassword(obj).unwrap();\n resetState();\n }\n };\n return (\n <>\n \n {(isError || passwordError) && (\n
{passwordError}
\n )}\n

{t(\"Security\")}

\n
\n
\n \n
\n
\n {state?.errors?.oldPassword && state?.errors?.oldPassword}\n
\n
\n {\n handleChange(event);\n }}\n />\n
\n
\n
\n
\n \n
\n
\n {state?.errors?.newPassword && state?.errors?.newPassword}\n
\n
\n {\n handleChange(event);\n }}\n />\n
\n
\n\n
\n
\n \n
\n
\n {state?.errors?.confirmPassword && state?.errors?.confirmPassword}\n
\n
\n {\n handleChange(event);\n }}\n />\n
\n
\n
\n \n {t(\"Update\")}\n \n
\n
\n \n );\n};\n\nexport default ProfilePasswordUpdate;\n","import React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport ProfileNumberUpdate from \"../components/ProfileNumberUpdate\";\nimport ProfilePasswordUpdate from \"../components/ProfilePasswordUpdate\";\nimport { useSelector } from \"react-redux\";\n\nconst Profile = () => {\n const { t } = useTranslation();\n const [user, setUser] = useState();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n useEffect(() => {\n const userDetail = UTILS.getCurrentUser();\n setUser(userDetail);\n }, []);\n return (\n
\n

{t(\"My profile\")}

\n

\n {t(\"Manage your personal information and security of your account\", {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n })}\n

\n
\n
\n

{t(\"Email\")}

\n

\n \n {t(\"Your current email address is\")}{\" \"}\n {user?.email}\n \n

\n
\n \n \n
\n
\n );\n};\n\nexport default Profile;\n","import React, { useState, useEffect } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { Button, Input, Spin } from \"antd\";\nimport {\n useUpdateBrandNameMutation,\n useUpdateDomainNameMutation,\n useGetSettingsMutation,\n} from \"redux/settings/settingsSlice\";\nimport Modal from \"components/Modal\";\nconst GeneralSettings = () => {\n const { t } = useTranslation();\n const [orderPageLink, setOrderPageLink] = useState();\n const [Error, setError] = useState();\n const [open, setOpen] = useState(false);\n const { settings } = useSelector((state) => state?.SettingsReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [getSettings] = useGetSettingsMutation();\n const [updateBrandName] = useUpdateBrandNameMutation();\n const { isError, domainError, brandError } = useSelector(\n (state) => state?.SettingErrorReducer\n );\n const [updateDomainName, { reset }] = useUpdateDomainNameMutation();\n const [state, setState] = useState({\n brandName: \"\",\n domainName: \"\",\n });\n\n const updateState = (e) => {\n const { name, value } = e.target;\n setState((prevState) => ({\n ...prevState,\n [name]: value,\n }));\n //clear error if input is empty\n if (!value) {\n setError(null);\n }\n };\n const updateMyBrand = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n brandName: state.brandName,\n };\n const { data } = await updateBrandName(obj);\n\n if (data?.success === 1) {\n await getSettings(obj);\n UTILS.saveCurrentUser({\n ...userDetail,\n brandName: state.brandName,\n });\n setState((prevState) => ({\n ...prevState,\n brandName: \"\",\n }));\n }\n };\n const updateMyDomain = async () => {\n setOpen(true);\n };\n useEffect(() => {\n const userDetail = UTILS.getCurrentUser();\n const text = userDetail.storeFrontURL + userDetail?.temporaryDomainName;\n setOrderPageLink(text);\n }, [state.domainName]);\n\n const pressYes = async () => {\n reset();\n setError(null);\n let isValid = UTILS.isDomainNameValid(state.domainName);\n setOpen(true);\n if (!isValid) {\n setError(t(\"Please enter a valid domain name\"));\n setOpen(false);\n return;\n }\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n temporaryDomainName: state.domainName,\n };\n const { data } = await updateDomainName(obj);\n if (data?.success === 1) {\n await getSettings(obj);\n UTILS.saveCurrentUser({\n ...userDetail,\n temporaryDomainName: state.domainName,\n });\n\n setState((prevState) => ({\n ...prevState,\n domainName: \"\",\n }));\n }\n setOpen(false);\n };\n const pressNo = () => {\n setOpen(false);\n };\n const DomainUpdateModal = () => {\n return (\n \n
\n

\n {t(\"If you change your domain name\")}\n

\n

\n {t(\"Do not change the domain name\")}\n

\n
\n \n {t(\"Update domain name\")}\n \n \n {t(\"Cancel\")}\n \n
\n
\n
\n );\n };\n return (\n
\n
\n {(isError || brandError) && (\n
{brandError}
\n )}\n
\n \n
\n
\n {\n updateState(e);\n }}\n />\n \n {t(\"Update\")}\n \n
\n
\n\n
\n {(isError || Error || domainError) && (\n
{domainError || Error}
\n )}\n setOpen(false)}\n >\n \n \n\n
\n \n
\n
\n {\n updateState(e);\n }}\n />\n \n {t(\"Update\")}\n \n
\n
\n {t(\"Note:\")}\n \n {t(\"Lower case alphabets, numeric and '-' are allowed only\")}\n \n
\n
\n
\n
\n \n
\n
\n \n {\n navigator.clipboard.writeText(orderPageLink);\n UTILS.successNotification(t(\"Copied to Clipboard\"));\n }}\n >\n \n \n \n \n \n
\n
\n
\n );\n};\n\nexport default GeneralSettings;\n","import React from \"react\";\nimport { Tabs } from \"antd\";\nimport GeneralSettings from \"./GeneralSettings\";\nimport BankAccountSettings from \"./BankAccountSettings\";\nimport { useTranslation } from \"react-i18next\";\n\nconst { TabPane } = Tabs;\nconst callback = (key) => {};\nconst BusinessTabSettings = () => {\n const { t } = useTranslation();\n return (\n \n \n \n \n {/* \n \n */}\n \n );\n};\n\nexport default BusinessTabSettings;\n","import React, { useEffect } from \"react\";\nimport { Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport BusinessTabSettings from \"../components/BusinessTabSettings\";\nimport { useGetSettingsMutation } from \"redux/settings/settingsSlice\";\nimport { useSelector } from \"react-redux\";\nconst BusinessSettings = () => {\n const { t } = useTranslation();\n const [getSettings] = useGetSettingsMutation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n useEffect(() => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n language: \"EN\",\n };\n getSettings(obj);\n }, []);\n\n return (\n \n
\n

\n {t(\"Business settings\")}\n

\n

\n {t(\"View and manage your business details.\")}\n

\n \n
\n
\n );\n};\n\nexport default BusinessSettings;\n","import React from \"react\";\nimport { UTILS } from \"utils\";\nimport { WhatsAppButtonSvg } from \"svg/SVGs\";\n\nconst WhatsAppButton = () => {\n const dir = UTILS.getLanguageInformation()?.direction;\n const buttonPos =\n dir == \"rtl\"\n ? \"chaty-widget left-position has-single\"\n : \"chaty-widget right-position has-single\";\n const tooltipPos =\n dir == \"rtl\"\n ? \"chaty-tooltip pos-right active has-on-hover\"\n : \"chaty-tooltip pos-left active has-on-hover\";\n return (\n \n
\n
\n
\n
\n \n \n \n \n \n 1\n \n \n Talk to us\n \n
\n
\n
\n
\n \n );\n};\n\nexport default WhatsAppButton;\n","import React from \"react\";\nimport WhatsAppButton from \"components/WhatsAppButton\";\nimport { CONSTANTS as C } from \"config\";\n\nconst Help = () => {\n return (\n <>\n {process.env.REACT_APP_COMPANY_NAME !== C.COMPANY_NAMES.CUSINETTE ? (\n \n ) : null}\n \n /*
\n \n \n \n {t(\"Need\")}\n
\n {t(\"Help?\")}\n
\n \n \n
*/\n );\n};\nexport default Help;\n","export const ADD_AREA = \"/app/dashboard/area-based-method\";\nexport const ADD_CITY = \"/app/dashboard/city-based-method\";\nexport const ADD_COUNTRY = \"/app/dashboard/country-based-method\";\n","import Dashboard from \"features/dashboard/container/dashboard\";\nimport UpdateStore from \"features/store/containers/updateStore\";\nimport AddStore from \"features/store/containers/addStore\";\nimport ManageAreas from \"features/shipping_methods/areas/containers/ManageAreas\";\nimport Menu from \"features/menu/containers/menu\";\nimport StoreList from \"features/store/containers/storeList\";\nimport LiveOrders from \"features/orders/containers/liveOrders\";\nimport CreateAdmin from \"features/admin/containers/CreateAdmin\";\nimport ItemContainer from \"features/menu/containers/ItemContainer\";\nimport CreateItem from \"features/menu/components/CreateItem\";\nimport UpdateItem from \"features/menu/components/UpdateItem\";\nimport CreateModifier from \"features/menu/components/CreateModifier\";\nimport Modifiers from \"features/menu/containers/Modifiers\";\nimport UpdateModifier from \"features/menu/components/UpdateModifier\";\nimport Packages from \"features/packages/containers/Packages\";\nimport OrderHistory from \"features/orders/containers/OrderHistory\";\nimport Inventory from \"features/inventory/containers/inventory\";\nimport Integrations from \"features/integrations/containers/integrations\";\nimport Customers from \"features/customers/containers/customers\";\nimport Marketing from \"features/marketing/containers/marketing\";\nimport GetStarted from \"features/onboarding/containers/GetStarted\";\nimport Orders from \"features/reporting/containers/Orders\";\nimport PaymentLinks from \"features/reporting/containers/PaymentLinks\";\nimport Payouts from \"features/reporting/containers/Payouts\";\nimport CustomersReport from \"features/reporting/containers/CustomersReport\";\nimport Discount from \"features/discount/containers/Discount\";\nimport AddDiscount from \"features/discount/containers/AddDiscount\";\nimport UpdateDiscount from \"features/discount/containers/UpdateDiscount\";\nimport Branding from \"features/settings/containers/Branding\";\nimport Profile from \"features/settings/containers/Profile\";\nimport BusinessSettings from \"features/settings/containers/BusinessSettings\";\nimport Help from \"features/help/containers/help\";\nimport * as R_CONST from \"routes/Constants\";\n\nconst publicRoutes = [\n {\n path: \"/app/dashboard\",\n component: Dashboard,\n },\n\n {\n path: \"/app/dashboard/help\",\n component: Help,\n },\n {\n path: \"/app/dashboard/onboarding\",\n component: GetStarted,\n },\n {\n path: \"/app/dashboard/updatestore\",\n component: UpdateStore,\n },\n {\n path: \"/app/dashboard/stores\",\n component: StoreList,\n },\n {\n path: R_CONST.ADD_AREA,\n component: ManageAreas,\n },\n {\n path: \"/app/dashboard/orderhistory\",\n component: OrderHistory,\n },\n {\n path: \"/app/dashboard/liveorders\",\n component: LiveOrders,\n },\n {\n path: \"/app/dashboard/subscription\",\n component: Packages,\n },\n {\n path: \"/app/dashboard/inventory\",\n component: Inventory,\n },\n {\n path: \"/app/dashboard/integrations\",\n component: Integrations,\n },\n {\n path: \"/app/dashboard/customers\",\n component: Customers,\n },\n\n {\n path: \"/app/dashboard/marketing\",\n component: Marketing,\n },\n\n {\n path: \"/app/dashboard/settings/profile\",\n component: Profile,\n },\n];\nconst adminRoutes = [\n {\n path: \"/app/dashboard/addstore\",\n component: AddStore,\n },\n {\n path: \"/app/dashboard/settings/branding\",\n component: Branding,\n },\n {\n path: \"/app/dashboard/settings/business\",\n component: BusinessSettings,\n },\n // {\n // path: \"/app/dashboard/reporting/payouts\",\n // component: Payouts,\n // },\n {\n path: \"/app/dashboard/userroles\",\n component: CreateAdmin,\n },\n {\n path: \"/app/dashboard/menu\",\n component: Menu,\n },\n {\n path: \"/app/dashboard/items\",\n component: ItemContainer,\n },\n {\n path: \"/app/dashboard/reporting/orders\",\n component: Orders,\n },\n {\n path: \"/app/dashboard/reporting/customers\",\n component: CustomersReport,\n },\n {\n path: \"/app/dashboard/reporting/payments\",\n component: PaymentLinks,\n },\n {\n path: \"/app/dashboard/createitem\",\n component: CreateItem,\n },\n {\n path: \"/app/dashboard/updateitem\",\n component: UpdateItem,\n },\n {\n path: \"/app/dashboard/modifiers\",\n component: Modifiers,\n },\n {\n path: \"/app/dashboard/createmodifier\",\n component: CreateModifier,\n },\n {\n path: \"/app/dashboard/updatemodifier\",\n component: UpdateModifier,\n },\n {\n path: \"/app/dashboard/discount\",\n component: Discount,\n },\n {\n path: \"/app/dashboard/adddiscount\",\n component: AddDiscount,\n },\n {\n path: \"/app/dashboard/updatediscount\",\n component: UpdateDiscount,\n },\n];\n\nconst Routes = [...publicRoutes, ...adminRoutes];\nexport default Routes;\n","import React, { createContext, useReducer, useContext } from \"react\";\nimport { ACTIONS } from \"config\";\nimport { UTILS } from \"utils\";\nimport PropTypes from \"prop-types\";\n\nconst initialState = { user: UTILS.getCurrentUser() };\nconst Store = createContext(initialState);\nconst { Provider } = Store;\n\nexport const useStore = () => useContext(Store);\nconst StateProvider = ({ children }) => {\n const [state, dispatch] = useReducer((state, action) => {\n switch (action.type) {\n case ACTIONS.UPDATE_CURRENT_USER:\n return { ...state, ...getCurrentUser() };\n case ACTIONS.UPDATE_COUNTER:\n return { ...state, ...icrementCounter(state) };\n default:\n throw new Error();\n }\n }, initialState);\n\n return {children};\n};\n\nStateProvider.propTypes = {\n children: PropTypes.object,\n};\n\nexport { StateProvider, Store };\n\nconst icrementCounter = (state) => {\n return { counter: state.counter ? state.counter + 1 : 1 };\n};\n\nconst getCurrentUser = () => {\n return { user: UTILS.getCurrentUser() };\n};\n","import { createContext } from 'react';\n\nconst LiveOrderContext = createContext(); // create context for chat app\n\nexport default LiveOrderContext;","import React from \"react\";\nimport useInterval from \"use-interval\";\nimport Context from \"./index\";\nimport { getPendingOrders } from \"utils/Utils\";\nimport { UTILS } from \"utils\";\nimport { post } from \"api/api/axiosSetup\";\nconst LiveOrderProvider = (props) => {\n const audio = new Audio(\n \"https://uapp-live-com.s3.amazonaws.com/UAPP-MEDIA/PENDING_ORDER_MUSIC.mpeg\"\n );\n\n const reurnPendingOrdersCount = async () => {\n const userDetail = UTILS.getCurrentUser();\n if (!userDetail?.token) return;\n try {\n const res = await post(\"order/getAllPendingOrdersCount\", {\n token: userDetail.token,\n });\n\n const count = getPendingOrders(res, \"PENDING\");\n return count;\n } catch (error) {}\n };\n\n useInterval(() => {\n const playAlarm = async () => {\n const count = await reurnPendingOrdersCount();\n updateTitle(count);\n if (count > 0) {\n playAudio();\n }\n };\n playAlarm();\n }, 5000);\n\n const updateTitle = (count) => {\n if (count && process.env.REACT_APP_TITLE) {\n document.title = `(${count}) ${process.env.REACT_APP_TITLE}`;\n } else if (process.env.REACT_APP_TITLE) {\n document.title = process.env.REACT_APP_TITLE;\n } else {\n document.title = \"Dashboard\";\n }\n };\n\n const playAudio = async () => {\n const playAlarm = () => {\n const playPromise = audio.play();\n if (playPromise !== undefined) {\n playPromise\n .then(() => {\n audio.play();\n })\n .catch((error) => {});\n }\n };\n playAlarm();\n };\n\n return {props.children};\n};\n\nexport default LiveOrderProvider;\n","import React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\n\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\n\nconst BgPasswordInput = (props) => {\n const mandatoryField = getMandatoryField(props?.mandatory || false);\n const fieldError = getFieldError(props?.error || false);\n const [isVisible, setIsVisible] = useState(false);\n\n return (\n
\n {/*
*/}\n \n
\n \n props.handleValues(props.keyVal, event.target.value)\n }\n value={props.value}\n type={isVisible ? \"text\" : \"password\"}\n placeholder={props.placeHolder}\n className=\"w-full px-2 py-2.5 outline-none text-16px\"\n />\n {\n event.preventDefault();\n setIsVisible(!isVisible);\n }}\n type=\"button\"\n >\n
\n \n \n \n \n
\n\n
\n \n \n \n
\n \n
\n
\n );\n};\n\nBgPasswordInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.bool,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n type: PropTypes.string,\n styleClasses: PropTypes.string,\n};\n\nexport default BgPasswordInput;\n","import React from \"react\";\nimport Slider from \"react-slick\";\nimport { useTranslation } from \"react-i18next\";\nimport { Line } from \"svg/SVGs\";\nimport { useSelector } from \"react-redux\";\nconst TextSlider = (props) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n var settings = {\n dots: true,\n arrows: false,\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n autoplaySpeed: 6000,\n };\n return (\n \n
\n

\n {t(\n \"We can keep track of all of our inventory. At all our locations with just a few taps. We have moved to auto generated orders. They have reduced the steps we have in our existing system. Rest hero has indeed organized our business well.\",\n {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n }\n )}\n

\n

\n \n {t(\"AISHA BUCHA\")}\n

\n

{t(\"Manager Debenhams Dubai Mall\")}

\n
\n
\n

\n {t(\n \"I can say before moving to Resthero, we weren’t able to quantify our sales and profit margins. Now they have pushed our business to a newer level where I can focus on growth and they take care of my business.\",\n {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n }\n )}\n

\n

\n \n {t(\"ALRAZIH.CO\")}\n

\n

{t(\"Manager Tammim Allahdadi\")}

\n
\n
\n

\n {t(\n \"Rest Hero team rocks. A small note to the team You guys made my business fully automated. your efforts have increased my daily sales.I am your happy customer and I highly recommend your services.\",\n {\n company:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_COMPANY_NAME_EN\n : process.env.REACT_APP_COMPANY_NAME_AR,\n }\n )}\n

\n

\n \n {t(\"OMAR MAALIK\")}\n

\n

{t(\"Owner Ice Parlor\")}

\n
\n
\n );\n};\n\nexport default TextSlider;\n","import React from \"react\";\nconst LanguageToggle = ({ onClick, selected, authenticated }) => {\n return (\n \n
\n onClick(\"en\")}\n className={`border-0 ${\n selected === \"en\" ? \"bg-blue-900\" : \"\"\n } text-white rounded-full px-4 py-1`}\n >\n English\n \n onClick(\"ar\")}\n className={`border-0 ${\n selected === \"ar\" ? \"bg-blue-900\" : \"\"\n } text-white rounded-full px-4 py-1`}\n >\n العربية\n \n
\n
\n );\n};\n\nexport default LanguageToggle;\n","import { useEffect, useState } from \"react\";\nimport moment from \"moment\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch } from \"react-redux\";\nimport { Language } from \"redux/actions\";\n\nconst useToggleLanguage = () => {\n const dispatch = useDispatch();\n const [lang, setlang] = useState(\"en\");\n const { i18n } = useTranslation();\n const getDir = (lng) => {\n return lng === \"ar\" ? \"rtl\" : \"ltr\";\n };\n const switchLanguage = (evt) => {\n i18n.changeLanguage(evt);\n document.getElementsByTagName(\"html\")[0].setAttribute(\"dir\", getDir(evt));\n setlang(evt);\n UTILS.saveLanguageInformation({\n direction: getDir(evt),\n lang: evt,\n });\n let clang = evt.toUpperCase();\n dispatch(Language.updateLanguage(clang));\n moment.locale(evt);\n };\n useEffect(() => {\n const obj = UTILS?.getLanguageInformation();\n if (obj?.lang && obj?.direction) {\n i18n.changeLanguage(obj?.lang);\n document\n ?.getElementsByTagName(\"html\")[0]\n .setAttribute(\"dir\", obj.direction);\n moment.locale(obj.lang);\n setlang(obj.lang);\n let clang = obj?.lang?.toUpperCase();\n dispatch(Language.updateLanguage(clang));\n }\n }, []);\n return {\n lang,\n switchLanguage,\n };\n};\nexport default useToggleLanguage;\n","import React, { useState } from \"react\";\nimport { Link, useHistory } from \"react-router-dom\";\nimport { API } from \"api/\";\nimport { UTILS } from \"utils\";\nimport BgPasswordInput from \"../../../components/BgPasswordInput\";\nimport TextSlider from \"../components/TextSlider\";\nimport PhoneNumberInput from \"components/PhoneNumberInput\";\nimport { useTranslation } from \"react-i18next\";\nimport Modal from \"components/Modal\";\nimport { Spin } from \"antd\";\nimport { useDispatch } from \"react-redux\";\nimport { LoginAction, SettingsAction, Language } from \"redux/actions\";\nimport LanguageToggle from \"components/LanguageToggle\";\nimport useToggleLanguage from \"hooks/useToggleLanguage\";\nimport { CONSTANTS as C } from \"config\";\n\nconst SignIn = () => {\n const dispatch = useDispatch();\n let history = useHistory();\n const { t } = useTranslation();\n const { lang, switchLanguage } = useToggleLanguage();\n const [invalidLogin, setInvalidLogin] = useState(\"\");\n const [open, setOpen] = useState(false);\n const [loading, setLoading] = useState(false);\n\n const [stateLogin, setState] = useState({\n values: {\n phoneNumber: \"\",\n password: \"\",\n },\n errors: {\n phoneNumber: \"\",\n password: \"\",\n },\n });\n\n const handleValues = (key, value) => {\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: value,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const checkIfValidUser = (USER) => {\n if (USER === \"BRAND-ADMIN\" || USER === \"MANAGER\") {\n return true;\n } else return false;\n };\n const verifyAccount = (success) => {\n stateLogin.values.email = success.data.user.email;\n stateLogin.values.baseLanguage = success.data.user.brandId.baseLanguage;\n stateLogin.values.name = success.data.user.userName;\n history.push(\"/verify/validate-otp\", {\n stateRegister: stateLogin,\n });\n };\n const loginUser = (success) => {\n const userDetail = UTILS.getCurrentUser();\n dispatch(LoginAction.toogleLogin(true));\n localStorage.setItem(\"loginEvent\", Date.now().toString());\n if (\n UTILS.isValidObject([\"data\", \"user\", \"brandId\", \"baseLanguage\"], success)\n ) {\n let obj = {\n direction:\n success?.data?.user?.brandId?.baseLanguage === \"en\" ? \"ltr\" : \"rtl\",\n lang: success?.data?.user?.brandId?.baseLanguage,\n };\n UTILS.saveLanguageInformation(obj);\n document\n .getElementsByTagName(\"html\")[0]\n .setAttribute(\"dir\", obj.direction);\n let clang = success?.data?.user?.brandId?.baseLanguage?.toUpperCase();\n dispatch(Language.updateLanguage(clang));\n }\n if (checkIfValidUser(success?.data?.user?.userType)) {\n UTILS.saveCurrentUser({\n ...userDetail,\n token: success.data.token,\n });\n process.env.REACT_APP_COMPANY_NAME === C.COMPANY_NAMES.RESTHERO\n ? history.push(\"/app/dashboard/onboarding\")\n : history.push(\"/app/dashboard\");\n } else {\n setInvalidLogin(t(\"invalid username or password\"));\n }\n };\n const handleSubmit = async (event) => {\n event.preventDefault();\n if (!loginValidation()) return;\n setLoading(true);\n if (stateLogin.values.phoneNumber.charAt(4) === \"0\") {\n stateLogin.values.phoneNumber = UTILS.formatPhoneNumber(\n stateLogin.values.phoneNumber\n );\n }\n const success = await API.SIGN_IN({\n phoneNumber: stateLogin.values.phoneNumber,\n password: stateLogin.values.password,\n userType: \"BRAND-ADMIN\",\n deviceType: \"web\",\n language: \"EN\",\n });\n if (success?.response === 200 && success?.success === 1 && success?.data) {\n UTILS.saveCurrentUser({\n name: success?.data?.user?.name,\n email: success?.data?.user?.email,\n phoneNumber: success.data.user?.phoneNumber,\n token: null,\n storeFrontURL: success.data?.storeFrontURL,\n storePreviewURL: success?.data?.storePreviewURL,\n brandId: success.data?.user?.brandId?._id,\n userId: success.data?.user?.userId,\n userType: success?.data?.user?.userType,\n brandName: success.data?.user.brandId?.brandName,\n subscribedPackage: success?.data?.user.subscribedPackage?.packageId\n ? success.data?.user?.subscribedPackage?.packageId\n : \"\",\n catalogueType: success?.data?.user?.brandId?.catalogueType,\n temporaryDomainName: success?.data?.brandSettings?.temporaryDomainName,\n });\n dispatch(\n SettingsAction.updateCatalogueType(\n success?.data?.user?.brandId?.catalogueType\n )\n );\n let obj = {\n direction:\n success?.data?.user?.brandId?.baseLanguage === \"en\" ? \"ltr\" : \"rtl\",\n lang: success?.data?.user?.brandId?.baseLanguage,\n };\n UTILS.saveLanguageInformation(obj);\n if (\n success?.response === 200 &&\n success?.success === 1 &&\n success?.data?.user?.isVerified\n ) {\n loginUser(success);\n } else if (\n success?.response === 200 &&\n success?.success === 1 &&\n !success?.data?.user?.isVerified\n ) {\n verifyAccount(success);\n }\n } else {\n setInvalidLogin(success.message);\n }\n setLoading(false);\n };\n\n const loginValidation = () => {\n let errors = {};\n let formIsValid = true;\n if (\n (stateLogin?.values?.phoneNumber?.charAt(4) == 0 &&\n stateLogin?.values?.phoneNumber?.length !== 14) ||\n (stateLogin?.values?.phoneNumber?.charAt(4) != 0 &&\n stateLogin?.values?.phoneNumber?.length !== 13)\n ) {\n errors[\"phoneNumber\"] = t(\"Please enter a valid number\");\n formIsValid = false;\n }\n if (stateLogin.values.password === \"\") {\n errors[\"password\"] = t(\"Field is required\");\n }\n\n if (\n Object.keys(errors).filter((itemFilter) => errors[itemFilter]).length > 0\n ) {\n try {\n formIsValid = false;\n window.scrollTo(0, 200);\n setState((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n ...errors,\n },\n }));\n } catch (error) {}\n }\n return formIsValid;\n };\n\n return (\n <>\n setOpen(false)}\n >\n
\n \n
\n setOpen(false)}\n className=\"bg-white px-5 py-2 text-sm shadow-sm font-medium border text-gray-600 rounded-sm hover:shadow-lg hover:bg-gray-100 justify-center\"\n >\n {t(\"Ok\")}\n \n
\n
\n \n \n
\n
\n
\n
\n \n \n

\n {\" \"}\n {t(\"company name\", {\n company: process.env.REACT_APP_COMPANY_NAME,\n })}\n

\n

\n {t(\"Sign In to Dashboard\")}\n

\n

\n {invalidLogin ? invalidLogin : \"\"}\n

\n \n
\n
\n \n \n \n
\n
\n
\n
\n \n
\n
\n
\n {t(\"Forgot Password\")}\n
\n \n {t(\"Login to dashboard\")}\n \n \n
\n \n
\n \n {t(\"Do not have an account? Register\")}\n \n
\n {process.env.REACT_APP_COMPANY_NAME ===\n C.COMPANY_NAMES.RESTHERO ? (\n
\n {t(\n \"By registering with us, you agreed to terms and conditions\"\n )}\n
\n ) : null}\n
\n
\n
\n {process.env.REACT_APP_COMPANY_NAME ===\n C.COMPANY_NAMES.RESTHERO ? (\n <>\n \n window.open(\"https://www.resthero.io/privacy\", \"_blank\")\n }\n >\n {t(\"Privacy Policy\")}\n \n \n window.open(\"https://www.resthero.io/terms\", \"_blank\")\n }\n >\n {t(\"Terms and Conditions\")}\n \n \n window.open(\"https://www.resthero.io/\", \"_blank\")\n }\n >\n {t(\"About Us\")}\n \n \n window.open(\n \"https://www.resthero.io/contact-us\",\n \"_blank\"\n )\n }\n >\n {t(\"Contact Us\")}\n \n \n ) : null}\n

\n ©{\" \"}\n {t(\"COPYRIGHT\", {\n year: new Date().getFullYear(),\n company: process.env.REACT_APP_COMPANY_NAME,\n })}\n

\n
\n
\n
\n
\n
\n \n \n \n
\n
\n
\n \n
\n \n );\n};\n\nexport default SignIn;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst ServiceTypeItem = (props) => {\n return (\n {\n window?.scrollTo(0, 0);\n props.onSubmitnextStep(1, props.value);\n }}\n className=\"font-semibold bg-gray-100 py-4 rounded-lg text-center w-52 m-2 cursor-pointer hover:bg-theme-blue-color hover:text-white\"\n >\n {props.name}\n \n );\n};\n\nServiceTypeItem.propTypes = {\n onSubmitnextStep: PropTypes.func,\n value: PropTypes.string,\n name: PropTypes.string,\n};\nexport default ServiceTypeItem;\n","import React, { useEffect, useState } from \"react\";\nimport { Select } from \"antd\";\nimport { Option } from \"antd/lib/mentions\";\nimport { useTranslation } from \"react-i18next\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nconst LanguageSelector = (props) => {\n const [objLang, setObjLang] = useState({\n direction: \"ltr\",\n lang: \"en\",\n });\n const { t, i18n } = useTranslation();\n const changeLanguage = (lng) => {\n i18n.changeLanguage(lng);\n };\n\n return (\n
\n

\n {t(\"Select language of your ordering website\")}\n

\n {\n // let obj = { ...objLang };\n // obj.lang = value;\n // obj.direction = value === \"en\" ? \"ltr\" : \"rtl\";\n // document\n // .getElementsByTagName(\"html\")[0]\n // .setAttribute(\"dir\", obj.direction);\n // changeLanguage(value);\n props.handleValues(\"baseLanguage\", value);\n }}\n >\n \n \n \n
\n );\n};\nexport default LanguageSelector;\n\nLanguageSelector.propTypes = {\n handleValues: PropTypes.func,\n};\n","import React, { useEffect, useState } from \"react\";\nimport ServiceTypeItem from \"./ServiceTypeItem\";\nimport PropTypes from \"prop-types\";\nimport { CONSTANTS as C } from \"config\";\nimport { Skeleton } from \"antd\";\nimport { API } from \"api\";\nimport { useTranslation, getI18n } from \"react-i18next\";\nimport LanguageSelector from \"features/multilingual/containers/languageSelector\";\nimport { SVG_FOOD_AND_BEVARAGES } from \"svg/SVGs\";\nimport { SVG_RETAIL } from \"svg/SVGs\";\nimport useToggleLanguage from \"hooks/useToggleLanguage\";\nimport LanguageToggle from \"components/LanguageToggle\";\nimport { useSelector } from \"react-redux\";\nconst RegisterStep4 = (props) => {\n const { lang, switchLanguage } = useToggleLanguage();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [superCategories, setSuperCategories] = useState([]);\n const [loading, setLoading] = useState(true);\n const { t } = useTranslation();\n\n const getSuperCategories = async () => {\n const result = await API.getSuperCategories();\n if (result.success === 1) setSuperCategories(result.data);\n else return [];\n setLoading(false);\n };\n\n useEffect(() => {\n getSuperCategories();\n }, []);\n\n const getKeyAgainstLanguage = () => {\n const lang = getI18n();\n return lang.language == \"en\" ? C.KEY_CAT_INFO_EN : C.KEY_CAT_INFO_AR;\n };\n return (\n
\n
\n
\n \n \n
\n \n

\n {t(\"Hi, I am Abdullah.\", {\n owner:\n currentLanguage === \"EN\"\n ? process.env.REACT_APP_OWNER_NAME_EN\n : process.env.REACT_APP_OWNER_NAME_AR,\n })}\n

\n

\n {t(\n \"I will help you set up your online ordering in 3 - 4 minutes.\"\n )}\n

\n
\n
\n

\n {t(\"What Service Type of website should this be?\")}\n

\n
\n
\n
\n
\n \n
\n

\n {t(\"Food & Bevarages\")}\n

\n
\n
\n \n {superCategories &&\n superCategories.map((cat) => {\n return cat.type == \"F_AND_B\" ? (\n \n ) : (\n \"\"\n );\n })}\n
\n
\n
\n \n
\n

\n {t(\"Retail\")}\n

\n
\n\n
\n \n {superCategories &&\n superCategories.map((cat) => {\n return cat.type == \"RETAIL\" ? (\n \n ) : (\n \"\"\n );\n })}\n
\n
\n
\n
\n
\n );\n};\nRegisterStep4.propTypes = {\n onSubmitRegisterStep: PropTypes.func,\n handleValues: PropTypes.func,\n stateRegister: PropTypes.object,\n switchStep: PropTypes.func,\n};\nexport default RegisterStep4;\n","import React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\n\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\n\nconst BgTextInput = (props) => {\n const mandatoryField = getMandatoryField(props?.mandatory || false);\n\n const fieldError = getFieldError(props?.error || false);\n\n useEffect(() => {}, [props.value]);\n\n return (\n <>\n
\n \n \n props.handleValues(props.keyVal, event.target.value)\n }\n value={props.value}\n type={props.type}\n placeholder={props.placeHolder}\n className={props.styleClasses}\n />\n
\n \n );\n};\n\nBgTextInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.bool,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n type: PropTypes.string,\n styleClasses: PropTypes.string,\n};\n\nexport default BgTextInput;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nconst Footer = () => {\n const { t } = useTranslation();\n return (\n
\n

\n {\" \"}\n ©{\" \"}\n {t(\"COPYRIGHT\", {\n year: new Date().getFullYear(),\n company: process.env.REACT_APP_COMPANY_NAME,\n })}\n

\n
\n );\n};\nexport default Footer;\n","import React from \"react\";\nimport BgTextInput from \"components/BgTextInput\";\nimport Footer from \"components/Footer\";\nimport PropTypes from \"prop-types\";\nimport PhoneNumberInput from \"components/PhoneNumberInput\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Popover } from \"antd\";\nimport BgPasswordInput from \"components/BgPasswordInput\";\nimport useToggleLanguage from \"hooks/useToggleLanguage\";\nimport LanguageToggle from \"components/LanguageToggle\";\n\nconst RegisterStep1 = (props) => {\n const { lang, switchLanguage } = useToggleLanguage();\n\n const { t } = useTranslation();\n const handleSubmit = (e) => {\n e.preventDefault();\n props.onSubmitRegisterStep(2);\n };\n\n return (\n
\n \n\n
\n
\n
\n

\n {t(\"Please fill the form?\")}\n

\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n \n \n \n
\n \n
\n
\n
\n \n
\n
\n
\n \n {t(\"Next\")}\n \n
\n
\n
\n
\n \n
\n
\n
\n \n );\n};\n\nRegisterStep1.propTypes = {\n onSubmitRegisterStep: PropTypes.func,\n handleValues: PropTypes.func,\n stateRegister: PropTypes.object,\n};\n\nexport default RegisterStep1;\n","import React, { useState } from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport { Spin } from \"antd\";\nimport \"antd/dist/antd.css\";\nimport RegisterStep1 from \"../components/RegisterStep1\";\nimport RegisterStep2 from \"../components/RegisterStep2\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api/\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { TRACKING_EVENTS } from \"utils\";\nimport { SettingsAction } from \"redux/actions\";\nimport { useDispatch } from \"react-redux\";\nconst Register = () => {\n const [state, setS] = useState({});\n const dispatch = useDispatch();\n const [step, setStep] = useState(1);\n const [loading, setLoading] = useState(false);\n const [invalidLogin, setInvalidLogin] = useState(\"\");\n const { t } = useTranslation();\n let history = useHistory();\n const location = useLocation();\n\n const startDate = new Date().setHours(7, 0, 0);\n const endDate = new Date().setHours(20, 0, 0);\n const [stateRegister, setState] = useState({\n values: {\n name: \"\",\n email: \"\",\n phoneNumber: \"\",\n password: \"\",\n baseLanguage: \"en\",\n verificationCode: \"\",\n brandName: \"\",\n serviceType: \"\",\n storeName: \"\",\n storeNameAr: \"\",\n description: \"\",\n descriptionAr: \"\",\n storeEmail: \"\",\n storePhone: \"\",\n latitudeLongitude: {},\n PaymentOptionCOD: \"\",\n PaymentOptionCreditCard: \"\",\n workingHours: {\n saturdayStartTime: startDate,\n saturdayEndTime: endDate,\n saturday: false,\n sundayStartTime: startDate,\n sundayEndTime: endDate,\n sunday: true,\n mondayStartTime: startDate,\n mondayEndTime: endDate,\n monday: true,\n tuesdayStartTime: startDate,\n tuesdayEndTime: endDate,\n tuesday: true,\n wednesdayStartTime: startDate,\n wednesdayEndTime: endDate,\n wednesday: true,\n thursdayStartTime: startDate,\n thursdayEndTime: endDate,\n thursday: true,\n fridayStartTime: startDate,\n fridayEndTime: endDate,\n friday: true,\n },\n },\n errors: {\n name: \"\",\n email: \"\",\n phoneNumber: \"\",\n password: \"\",\n baseLanguage: \"\",\n verificationCode: \"\",\n brandName: \"\",\n serviceType: \"\",\n storeName: \"\",\n storeNameAr: \"\",\n description: \"\",\n descriptionAr: \"\",\n storeEmail: \"\",\n storePhone: \"\",\n PaymentOptionCOD: \"\",\n PaymentOptionCreditCard: \"\",\n latitudeLongitude: \"\",\n workingHours: {\n saturdayStartTime: \"\",\n saturdayEndTime: \"\",\n saturday: \"\",\n sundayStartTime: \"\",\n sundayEndTime: \"\",\n sunday: \"\",\n mondayStartTime: \"\",\n mondayEndTime: \"\",\n monday: \"\",\n tuesdayStartTime: \"\",\n tuesdayEndTime: \"\",\n tuesday: \"\",\n wednesdayStartTime: \"\",\n wednesdayEndTime: \"\",\n wednesday: \"\",\n thursdayStartTime: \"\",\n thursdayEndTime: \"\",\n thursday: \"\",\n fridayStartTime: \"\",\n fridayEndTime: \"\",\n friday: \"\",\n },\n },\n });\n\n // handle input change values\n const handleValues = (key, value) => {\n setState((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: value,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n // user register input validation\n const registerValidation = () => {\n let errors = {};\n let formIsValid = true;\n if (stateRegister?.values.email !== \"\") {\n if (!UTILS.emailValidation().test(stateRegister.values[\"email\"].trim())) {\n formIsValid = false;\n errors[\"email\"] = t(\"Please enter valid email-ID.\");\n }\n } else if (stateRegister?.values?.email === \"\") {\n formIsValid = false;\n errors[\"email\"] = t(\"Field is required\");\n }\n if (stateRegister?.values?.password === \"\") {\n errors[\"password\"] = t(\"Field is required\");\n }\n if (stateRegister?.values?.name === \"\") {\n errors[\"name\"] = t(\"Field is required\");\n }\n if (stateRegister.values.phoneNumber === \"\") {\n errors[\"phoneNumber\"] = t(\"Field is required\");\n }\n\n if (\n (stateRegister?.values?.phoneNumber?.charAt(4) == 0 &&\n stateRegister?.values?.phoneNumber?.length !== 14) ||\n (stateRegister?.values?.phoneNumber?.charAt(4) != 0 &&\n stateRegister?.values?.phoneNumber?.length !== 13)\n ) {\n errors[\"phoneNumber\"] = t(\"Please enter a valid Mobile Number\");\n }\n\n if (\n Object.keys(errors).filter((itemFilter) => errors[itemFilter]).length > 0\n ) {\n try {\n formIsValid = false;\n window?.scrollTo(0, 200);\n setState((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n ...errors,\n },\n }));\n } catch (error) {}\n }\n\n return formIsValid;\n };\n\n // register store input validation\n const registerStoreValidation = () => {\n let errors = {};\n\n let formIsValid = true;\n if (stateRegister.values.storeEmail !== \"\") {\n if (!UTILS.emailValidation().test(stateRegister.values[\"storeEmail\"])) {\n formIsValid = false;\n errors[\"storeEmail\"] = t(\"Please enter valid email-ID.\");\n }\n } else if (stateRegister.values.storeEmail == \"\") {\n formIsValid = false;\n errors[\"storeEmail\"] = t(\"Field is required\");\n }\n if (stateRegister.values.phoneNumber == \"\") {\n errors[\"phoneNumber\"] = t(\"Field is required\");\n }\n\n if (stateRegister.values.phoneNumber.length != 12) {\n errors[\"phoneNumber\"] = t(\"Please enter a valid Mobile Number\");\n }\n\n if (\n Object.keys(errors).filter((itemFilter) => errors[itemFilter]).length > 0\n ) {\n try {\n formIsValid = false;\n window?.scrollTo(0, 200);\n setState((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n ...errors,\n },\n }));\n } catch (error) {}\n }\n return formIsValid;\n };\n\n const switchStep = (step) => {\n const backStep = step - 1;\n setStep(backStep);\n renderRegisterStep(step);\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n };\n\n // submit steps for registration\n const submitRegisterStep = async (step, data) => {\n if (step === 1) {\n handleValues(\"serviceType\", data);\n const nextStep = step + 1;\n setStep(nextStep);\n renderRegisterStep(nextStep);\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n }\n\n if (step === 2) {\n if (!registerValidation()) return;\n registerStepOne();\n return;\n }\n\n if (step === 4) {\n if (!registerStoreValidation()) return;\n const nextStep = step + 1;\n setStep(nextStep);\n renderRegisterStep(nextStep);\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n }\n\n if (step === 6) {\n if (!stateRegister.values.latitudeLongitude) return;\n const nextStep = step + 1;\n setStep(nextStep);\n renderRegisterStep(nextStep);\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n }\n\n if (step === 7) {\n const nextStep = step + 1;\n setStep(nextStep);\n renderRegisterStep(nextStep);\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n }\n\n if (step === 8) {\n createBrandStore();\n return;\n }\n\n if (step === 9) {\n goToDashboard();\n }\n };\n\n const createBrandStore = async () => {\n const result = await API.CREATE_BRAND_STORE({\n ...stateRegister,\n userId: state.user.userId,\n brandId: state.user.brandId,\n language: stateRegister.values.baseLanguage == \"en\" ? \"EN\" : \"AR\",\n });\n if (result?.response === 200 && result.success) {\n UTILS.successNotification(result.message);\n const nextStep = step + 1;\n setStep(nextStep);\n renderRegisterStep(nextStep);\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n } else {\n UTILS.errorNotification(result.message);\n }\n };\n\n const goToDashboard = async () => {\n history.push(\"/verify/validate-otp\", {\n stateRegister,\n });\n };\n\n const checkUTMTags = () => {\n const urlParams = new URLSearchParams(window.location.search);\n const utmTagsFromQuery = {};\n\n if (urlParams.has(\"utm_source\")) {\n utmTagsFromQuery.utm_source = urlParams.get(\"utm_source\");\n }\n if (urlParams.has(\"utm_medium\")) {\n utmTagsFromQuery.utm_medium = urlParams.get(\"utm_medium\");\n }\n if (urlParams.has(\"utm_campaign\")) {\n utmTagsFromQuery.utm_campaign = urlParams.get(\"utm_campaign\");\n }\n\n if (Object.keys(utmTagsFromQuery)?.length === 0) {\n const cookies = document.cookie?.split(\";\");\n cookies?.forEach((cookie) => {\n const [name, value] = cookie?.trim()?.split(\"=\");\n if (\n name === \"utm_source\" ||\n name === \"utm_medium\" ||\n name === \"utm_campaign\"\n ) {\n utmTagsFromQuery[name] = value || \"\";\n }\n });\n }\n\n return utmTagsFromQuery;\n };\n\n const registerStepOne = async () => {\n setLoading(true);\n if (stateRegister.values.phoneNumber.charAt(4) === \"0\") {\n stateRegister.values.phoneNumber =\n stateRegister.values.phoneNumber.slice(0, 4) +\n stateRegister.values.phoneNumber.slice(5);\n }\n\n const utmTags = checkUTMTags();\n const utmSource = utmTags.utm_source;\n const utmMedium = utmTags.utm_medium;\n const utmCampaign = utmTags.utmCampaign;\n\n const result = await API.REGISTER({\n brandName: stateRegister.values.brandName,\n name: stateRegister.values.name,\n email: stateRegister.values.email.trim(),\n phoneNumber: stateRegister.values.phoneNumber,\n password: stateRegister.values.password,\n superCategoryId: stateRegister.values.serviceType,\n baseLanguage: stateRegister.values.baseLanguage,\n language: stateRegister.values.baseLanguage === \"en\" ? \"EN\" : \"AR\",\n utmSource,\n utmMedium,\n utmCampaign,\n });\n if (result?.response === 200 && result?.success) {\n UTILS.saveCurrentUser({\n name: result.data.user.userName,\n email: result.data.user.email,\n phoneNumber: result.data.user.phoneNumber,\n token: null,\n storeFrontURL: result.data.storeFrontURL,\n storePreviewURL: result.data.storePreviewURL,\n brandId: result.data.user.brandId._id,\n userId: result.data.user.userId,\n userType: result?.data?.user?.userType,\n brandName: result.data.user.brandId.brandName,\n subscribedPackage: result.data.subscribedPackage?.packageId\n ? result.data.subscribedPackage?.packageId\n : \"\",\n catalogueType: result?.data?.user?.brandId?.catalogueType,\n temporaryDomainName: result?.data?.brandSettings?.temporaryDomainName,\n });\n TRACKING_EVENTS.nonVerifiedRegistrations({\n userId: result.data.user.userId,\n brandName: stateRegister.values.brandName,\n phoneNumber: stateRegister.values.phoneNumber,\n });\n dispatch(\n SettingsAction.updateCatalogueType(\n result?.data?.user?.brandId?.catalogueType\n )\n );\n const obj = {\n direction: UTILS.getLayoutDirection(stateRegister.values.baseLanguage),\n lang: stateRegister.values.baseLanguage,\n };\n UTILS.saveLanguageInformation(obj);\n goToDashboard();\n sessionStorage.setItem(\"registrationStep\", step);\n sessionStorage.setItem(\n \"stateRegister\",\n JSON.stringify(stateRegister.values)\n );\n UTILS.checkPackageValidity();\n } else {\n UTILS.handleErrorNotification(result?.message);\n setInvalidLogin(result.message);\n }\n setLoading(false);\n };\n\n const renderRegisterStep = (step) => {\n switch (step) {\n case 1:\n return (\n \n );\n\n case 2:\n return (\n \n );\n\n default:\n return (\n \n );\n }\n };\n\n return (\n
\n {renderRegisterStep(step)}\n
\n );\n};\nexport default Register;\n","//\nimport React, { useState } from \"react\";\nimport { Layout } from \"antd\";\nimport { Link } from \"react-router-dom\";\n\nconst SideBar = ({ menu }) => {\n const [collapsed, setCollapsed] = useState(false);\n const Header = () => {\n const onCollapse = () => {\n setCollapsed(!collapsed);\n };\n\n return (\n onCollapse()}\n >\n \n \n

\n {/* RESTHERO */}\n {process.env.REACT_APP_COMPANY_NAME}\n

\n \n {/* */}\n \n );\n };\n return (\n \n
\n {menu}\n \n );\n};\nexport default SideBar;\n","import React, { useContext } from \"react\";\nimport { Drawer, Button } from \"antd\";\nimport { MenuOutlined } from \"@ant-design/icons\";\nimport { UTILS } from \"utils\";\nimport { CatelougeContext } from \"store/contexts/Catelouge\";\nimport { ACTIONS } from \"config\";\n\nconst NavBar = ({ menu, visible, setVisible }) => {\n const { dispatch } = useContext(CatelougeContext);\n const drawerAction = () => {\n // dispatch({ type: ACTIONS.STORES_CHANGED });\n setVisible(false);\n };\n const dir = UTILS.getLanguageInformation()?.direction;\n const setDrawer = dir === \"rtl\" ? \"right\" : \"left\";\n return (\n \n );\n};\nexport default NavBar;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router\";\n\nconst TopNotificationBar = ({ text }) => {\n const { t } = useTranslation();\n const router = useHistory();\n const goToPackages = () => {\n router.push(\"/app/dashboard/subscription\");\n };\n\n return (\n
\n
\n

\n {t(text)}\n

\n goToPackages()}\n >\n {t(\"Subscribe now\")}\n \n
\n
\n );\n};\nexport default TopNotificationBar;\n","import React from \"react\";\nimport { Menu } from \"antd\";\nimport { RocketOutlined } from \"@ant-design/icons\";\nimport { Link, useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport \"moment-timezone\";\nconst DashboardMenu = ({ setVisible }) => {\n const router = useHistory();\n const { t } = useTranslation();\n const onMenuClick = () => {\n setVisible(false);\n };\n\n return (\n
\n \n }\n >\n \n {t(\"Verify Account\")}\n \n \n \n
\n );\n};\nexport default DashboardMenu;\n","import React, { useEffect, useState } from \"react\";\nimport { Menu } from \"antd\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport {\n DashboardOutlined,\n HistoryOutlined,\n FormatPainterOutlined,\n MenuUnfoldOutlined,\n FileTextOutlined,\n EditOutlined,\n EyeOutlined,\n InstagramOutlined,\n BorderOuterOutlined,\n AimOutlined,\n DollarCircleOutlined,\n SubnodeOutlined,\n SettingOutlined,\n LogoutOutlined,\n InfoCircleOutlined,\n UserOutlined,\n AliwangwangOutlined,\n DatabaseOutlined,\n RocketOutlined,\n MoneyCollectOutlined,\n FileDoneOutlined,\n TrophyOutlined,\n ShopOutlined,\n SoundOutlined,\n ScanOutlined,\n InteractionOutlined,\n UngroupOutlined,\n CompressOutlined,\n PicRightOutlined,\n} from \"@ant-design/icons\";\nimport { Link, useLocation } from \"react-router-dom\";\nimport { SVG_LIVE_ORDER } from \"svg/SVGs\";\nimport { UTILS } from \"utils\";\nimport { PackageUtil } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport useUserType from \"hooks/useUserType\";\nimport useInterval from \"use-interval\";\nimport \"moment-timezone\";\nimport { CONSTANTS as C } from \"config\";\nimport { useGetSettingsMutation } from \"redux/settings/settingsSlice\";\nimport { LogoutAction } from \"redux/actions\";\nimport { PkgActions } from \"redux/actions\";\nimport { Feedback } from \"@material-ui/icons\";\nimport { MenuBook } from \"@material-ui/icons\";\nconst { SubMenu } = Menu;\nconst DashboardMenu = ({ setVisible }) => {\n const dispatch = useDispatch();\n const [getSettings] = useGetSettingsMutation();\n const { expDays } = useSelector((state) => state.PackagesReducer);\n const [isEnableMenu, setIsEnableMenu] = useState(false);\n const userType = useUserType();\n const { t } = useTranslation();\n const { isLoggedIn } = useSelector((state) => state.LoginReducer);\n\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const logout = () => {\n // Notify other tabs about the logout\n localStorage.setItem(\"logoutEvent\", Date.now().toString());\n localStorage.clear();\n UTILS.removeCurrentUser();\n UTILS.removeLanguageInformation();\n window.location.href = \"/login\";\n dispatch(LogoutAction.logout());\n };\n const check_PackageValidity = async () => {\n const { result } = await UTILS.checkPackageValidity(currentLanguage);\n if (result?.data) {\n const diff = PackageUtil.getPackageExpiry(result.data.subscription);\n dispatch(PkgActions.setDays(diff));\n }\n };\n useEffect(() => {\n check_PackageValidity();\n }, [isLoggedIn]);\n\n useInterval(() => {\n check_PackageValidity();\n }, C.SIXHOURS);\n let location = useLocation();\n const [current, setCurrent] = useState(\n location.pathname === \"/\" || location.pathname === \"\"\n ? \"/\"\n : location.pathname\n );\n useEffect(() => {\n if (location) {\n if (current !== location.pathname) {\n setCurrent(location.pathname);\n }\n }\n }, [location, current]);\n const onMenuClick = (key) => {\n setVisible(false);\n setCurrent(key);\n };\n\n const openShop = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n };\n const data = await getSettings(obj).unwrap();\n\n if (data?.success === 1 && data?.data?.setting) {\n const userDetail = await UTILS.getCurrentUser();\n let url = `${userDetail.storeFrontURL}${data?.data?.setting?.temporaryDomainName}`;\n window.open(url, \"_blank\");\n }\n };\n\n if (expDays <= 5) {\n return (\n
\n
\n \n {process.env.REACT_APP_COMPANY_NAME !==\n C.COMPANY_NAMES.CUSINETTE && (\n }\n >\n \n {t(\"Get Started\")}\n \n \n )}\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Live Orders\")}\n \n \n }\n disabled={isEnableMenu}\n >\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Item Availability\")}\n \n \n }\n >\n \n {t(\"Modifier Availability\")}\n \n \n }\n disabled={isEnableMenu}\n >\n \n {t(\"Order History\")}\n \n \n \n }\n disabled={isEnableMenu}\n >\n {userType === \"BRAND-ADMIN\" && (\n <>\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Discounts\")}\n \n \n\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Loyalty\")}\n \n \n }\n disabled={isEnableMenu}\n >\n \n {t(\"Customers\")}\n \n \n \n )}\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Social Posting\")}\n \n \n\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Integrations\")}\n \n \n\n }\n disabled={isEnableMenu}\n >\n \n {t(\"QR Codes\")}\n \n \n \n {userType === \"BRAND-ADMIN\" && (\n }\n disabled={isEnableMenu}\n >\n }\n >\n \n {t(\"Items\")}\n \n \n }\n >\n \n {t(\"Modifiers\")}\n \n \n }\n >\n \n {t(\"Modifier Groups\")}\n \n \n {/* }\n >\n \n {t(\"Product/Menu Editor\")}\n \n */}\n\n }\n >\n \n {t(\"Menus\")}\n \n \n \n )}\n {userType === \"BRAND-ADMIN\" && (\n }\n disabled={isEnableMenu}\n >\n }\n >\n \n {t(\"Order History\")}\n \n \n }\n >\n \n {t(\"Customer Report\")}\n \n \n }\n >\n \n {t(\"Payment Links History\")}\n \n \n {/* }\n >\n \n {t(\"Payouts History\")}\n \n */}\n }\n >\n \n {t(\"Order Feedbacks\")}\n \n \n \n )}\n\n }\n >\n \n {t(\"Dashboard\")}\n \n \n }\n disabled={isEnableMenu}\n >\n \n {t(\"Shipping & Delivery\")}\n \n \n\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Payment Links\")}\n \n \n \n
\n
\n \n {process.env.REACT_APP_COMPANY_NAME !==\n C.COMPANY_NAMES.CUSINETTE && (\n }\n style={{ marginTop: 90 }}\n disabled={isEnableMenu}\n >\n \n {t(\"Subscription\")}\n \n \n )}\n }\n disabled={isEnableMenu}\n >\n {userType === C.USER_TYPE_ADMIN && (\n }\n >\n \n {t(\"View Ordering Page\")}\n \n \n )}\n {userType === C.USER_TYPE_ADMIN && (\n }\n disabled={isEnableMenu}\n >\n \n {t(\"Stores\")}\n \n \n )}\n {userType === C.USER_TYPE_ADMIN && (\n }\n >\n \n {t(\"Branding\")}\n \n \n )}\n {userType === C.USER_TYPE_ADMIN && (\n }\n >\n \n {t(\"Business settings\")}\n \n \n )}\n\n }\n >\n \n {t(\"My Profile\")}\n \n \n \n\n {/* }\n disabled={isEnableMenu}\n >\n \n {t(\"Customers\")}\n \n */}\n\n {userType === \"BRAND-ADMIN\" ? (\n }\n disabled={isEnableMenu}\n >\n \n {t(\"User Roles\")}\n \n \n ) : null}\n\n {process.env.REACT_APP_COMPANY_NAME !==\n C.COMPANY_NAMES.CUSINETTE && (\n }\n >\n \n {t(\"Need help\")}\n \n \n )}\n }\n onClick={() => logout()}\n >\n {t(\"Logout\")}\n \n \n
\n
\n );\n } else {\n return (\n \n {process.env.REACT_APP_COMPANY_NAME !== C.COMPANY_NAMES.CUSINETTE && (\n }\n style={{ marginTop: 10 }}\n disabled={isEnableMenu}\n >\n \n {t(\"Subscription\")}\n \n \n )}\n }\n onClick={() => logout()}\n >\n {t(\"Logout\")}\n \n \n );\n }\n};\nexport default DashboardMenu;\n","import React from \"react\";\nimport DefaultSidebar from \"./DeafaultSidebar\";\n\nfunction Index({ setVisible }) {\n return ;\n}\n\nexport default Index;\n","import React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Layout, ConfigProvider } from \"antd\";\nimport SideBar from \"features/dashboard/components/SideBar\";\nimport NavBar from \"features/dashboard/components/NavBar\";\nimport { Content } from \"antd/lib/layout/layout\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport TopNotificationBar from \"features/dashboard/components/TopNotificationBar\";\nimport useInterval from \"use-interval\";\nimport { CONSTANTS as C } from \"config\";\nimport VerificationMenu from \"../VerificationMenu\";\nimport { Language } from \"redux/actions\";\nimport \"moment-timezone\";\nimport LanguageToggle from \"components/LanguageToggle\";\nimport moment from \"moment\";\nimport { PkgActions } from \"redux/actions\";\nimport WhatsAppButton from \"components/WhatsAppButton\";\nimport DashboardMenu from \"Layouts/sidebars/Index\";\nconst DashboardLayout = (props) => {\n const { isLoggedIn } = useSelector((state) => state.LoginReducer);\n const { t, i18n } = useTranslation();\n const dispatch = useDispatch();\n const { isNotificationBarVisible, packageText } = useSelector(\n (state) => state.PackagesReducer\n );\n\n const [dir, setDir] = useState(\"\");\n const [lang, setlang] = useState(\"en\");\n\n const checkvalidity = async () => {\n const { text, notify } = await UTILS.checkPackageValidity();\n dispatch(PkgActions.setNotifyVisible(notify));\n dispatch(PkgActions.setPackText(text));\n };\n\n useInterval(() => {\n async function getData() {\n const response = await UTILS.checkPackageValidity();\n if (response.result) {\n checkvalidity();\n }\n }\n getData();\n }, C.SIXHOURS);\n\n useEffect(() => {\n checkvalidity();\n }, [isLoggedIn]);\n\n useEffect(() => {\n const obj = UTILS?.getLanguageInformation();\n if (obj?.lang && obj?.direction) {\n i18n.changeLanguage(obj?.lang);\n document\n ?.getElementsByTagName(\"html\")[0]\n .setAttribute(\"dir\", obj.direction);\n moment.locale(obj.lang);\n setDir(obj.direction);\n setlang(obj.lang);\n let clang = obj?.lang?.toUpperCase();\n dispatch(Language.updateLanguage(clang));\n }\n }, []);\n\n const topics = [\"First topic\", \"Second topic\", \"Third topic\"];\n const [contentIndex, setContentIndex] = useState(0);\n const [selectedKey, setSelectedKey] = useState(\"0\");\n const changeSelectedKey = (event) => {\n const key = event.key;\n setSelectedKey(key);\n setContentIndex(+key);\n };\n const [visible, setVisible] = useState(false);\n const Menu = (\n \n );\n const VerifyMenu = (\n \n );\n\n const getDir = (lng) => {\n return lng === \"ar\" ? \"rtl\" : \"ltr\";\n };\n const switchLanguage = (evt) => {\n i18n.changeLanguage(evt);\n document.getElementsByTagName(\"html\")[0].setAttribute(\"dir\", getDir(evt));\n setlang(evt);\n evt === \"en\" ? setDir(\"ltr\") : setDir(\"rtl\");\n UTILS.saveLanguageInformation({\n direction: getDir(evt),\n lang: evt,\n });\n let clang = evt.toUpperCase();\n dispatch(Language.updateLanguage(clang));\n moment.locale(evt);\n };\n return (\n \n {props?.layoutType === C.VERIFICATION_LAYOUT ? (\n \n ) : (\n \n )}\n \n {props?.layoutType === C.VERIFICATION_LAYOUT ? (\n \n ) : (\n \n )}\n\n \n {props?.layoutType === C.DASHBOARD_LAYOUT &&\n process.env.REACT_APP_COMPANY_NAME === C.COMPANY_NAMES.RESTHERO && (\n \n \n \n )}\n\n \n \n {props.children}\n \n {process.env.REACT_APP_COMPANY_NAME !== C.COMPANY_NAMES.CUSINETTE && (\n \n )}\n \n \n \n );\n};\nexport default DashboardLayout;\n","import DashboardLayout from \"../../../Layouts/dashboardLayout/Layout\";\nimport React from \"react\";\n\nconst Index = () => {\n return (\n
\n \n
\n );\n};\nexport default Index;\n","import { Spin } from \"antd\";\nimport { API } from \"api\";\nimport { useTranslation } from \"react-i18next\";\nimport React, { useState } from \"react\";\nimport { useHistory } from \"react-router\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport TextInput from \"../../../components/TextInput\";\nimport useToggleLanguage from \"hooks/useToggleLanguage\";\nimport LanguageToggle from \"components/LanguageToggle\";\n\nconst ResetPasswordStep2 = (props) => {\n const { lang, switchLanguage } = useToggleLanguage();\n const [code, setCode] = useState(\"\");\n\n const [Error, setError] = useState({\n codeError: \"\",\n passwordError: \"\",\n });\n const [password, setPassword] = useState(\"\");\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const router = useHistory();\n\n const submitNewPassword = async () => {\n setLoading(true);\n const result = await API.NEW_PASSWORD({\n phoneNumber: router.location.state.phoneNumber,\n verificationCode: code,\n password: password,\n });\n if (result && result.success === 1) {\n UTILS.handleSuccesNotification(\n result?.message ?? t(\"Your Passsword has been changed, please login\")\n );\n router.push(\"/login\");\n } else {\n UTILS.HANDLE_ERROR_NOTIFICATION(\"topRight\", \"error\", result?.message);\n }\n setLoading(false);\n };\n return (\n <>\n
\n \n
\n
\n \n
\n \n

\n {t(\"Reset Password\")}\n

\n
\n
\n
\n \n setCode(UTILS.NumberConversion(val))\n }\n />\n
\n
\n setPassword(val)}\n />\n
\n
\n\n
\n submitNewPassword()}\n disabled={!password || !code}\n >\n {t(\"Submit\")}\n \n
\n
\n
\n
\n
\n \n );\n};\n\nexport default ResetPasswordStep2;\n","import React, { useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { Spin } from \"antd\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport PhoneNumberInput from \"components/PhoneNumberInput\";\nimport LanguageToggle from \"components/LanguageToggle\";\nimport useToggleLanguage from \"hooks/useToggleLanguage\";\nconst ResetPasswordStep1 = () => {\n const { t } = useTranslation();\n const router = useHistory();\n const { lang, switchLanguage } = useToggleLanguage();\n let [phone, setPhone] = useState(\"\");\n const [error, setError] = useState(\"\");\n const [loading, setLoading] = useState(false);\n const submitForgotPassword = async () => {\n setLoading(true);\n if (!UTILS.isValidMobileNumber(phone)) {\n setError(t(\"Please enter correct mobile number\"));\n setLoading(false);\n return;\n }\n if (phone?.length >= 0 && phone?.charAt(4) === \"0\") {\n phone = phone?.slice(0, 4) + phone?.slice(5);\n }\n const result = await API.FORGOT_PASSWORD({\n phoneNumber: phone,\n });\n if (result?.success === 1) {\n UTILS.handleSuccesNotification(\n t(result?.message ?? \"Code Sent to your email, Please check your email\")\n );\n\n router.push({\n pathname: \"/newpassword\",\n state: {\n phoneNumber: phone,\n },\n });\n } else {\n setError(t(result.error));\n UTILS.handleErrorNotification(t(result.error));\n }\n setLoading(false);\n };\n\n const handleValues = (key, val) => {\n setPhone(val);\n };\n\n return (\n <>\n
\n \n
\n
\n \n
\n \n

\n {t(\"Forgot Password\")}\n

\n
\n
\n
\n \n
\n
\n\n
\n submitForgotPassword()}\n >\n {t(\"Submit\")}\n \n
\n
\n
\n
\n
\n \n );\n};\n\nexport default ResetPasswordStep1;\n","import React from \"react\";\nimport ResetPasswordStep2 from \"../components/ResetPasswordStep2\";\nimport ResetPasswordStep1 from \"../components/ResetPasswordStep1\";\nconst ForgotPassword = (props) => {\n return ;\n};\n\nexport default ForgotPassword;\n","import React from \"react\";\nimport ResetPasswordStep2 from \"../components/ResetPasswordStep2\";\nconst NewPassword = (props) => {\n return ;\n};\n\nexport default NewPassword;\n","import React, { Fragment, useEffect, useState } from \"react\";\nimport { Route, Switch } from \"react-router-dom\";\nimport { UTILS } from \"utils\";\nimport SignIn from \"../../features/auth/containers/Signin\";\nimport Register from \"../../features/register/container/Register\";\nimport { useHistory } from \"react-router-dom\";\nimport Dashboard from \"features/dashboard/container/index\";\nimport ForgotPassword from \"features/auth/containers/ForgotPassword\";\nimport NewPassword from \"features/auth/containers/newPassword\";\nfunction PublicRoutes() {\n const [islogin, setIsLogin] = useState(false);\n let history = useHistory();\n useEffect(() => {\n const userDetail = UTILS.getCurrentUser();\n if (userDetail?.token) {\n setIsLogin(true);\n history.push(\"/app/dashboard\");\n } else {\n setIsLogin(false);\n }\n }, []);\n\n const authRoutes = [\n {\n path: \"/login\",\n component: SignIn,\n },\n {\n path: \"/forgotpassword\",\n component: ForgotPassword,\n },\n {\n path: \"/newpassword\",\n component: NewPassword,\n },\n {\n path: \"/app/dashboard\",\n component: Dashboard,\n },\n ];\n return (\n \n \n {authRoutes.map((route, index) => {\n return (\n \n );\n })}\n\n {!islogin && (\n \n \n \n )}\n \n \n \n \n \n );\n}\n\nexport default PublicRoutes;\n","import React, { memo } from \"react\";\nimport { Redirect } from \"react-router-dom\";\nimport PublicRoutes from \"./PublicRoutes\";\nimport { UTILS } from \"utils\";\n\nfunction Auth() {\n let loggedInUserToken = UTILS.getCurrentUser()?.token;\n return loggedInUserToken ? (\n \n ) : (\n \n );\n}\n\nexport default memo(Auth);\n","import React from \"react\";\nimport UpdateItem from \"../components/UpdateItem\";\nimport usePushBack from \"hooks/usePushBack\";\nimport { useHistory } from \"react-router-dom\";\nfunction UpdateItemContainer() {\n const router = useHistory();\n\n usePushBack(\"/app/dashboard/items\", router?.location?.state?.itemId);\n return ;\n}\n\nexport default UpdateItemContainer;\n","import React, { useEffect, Fragment } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nfunction ScrollToTop({ history, children }) {\n useEffect(() => {\n try {\n const unlisten = history.listen(() => {\n window?.scrollTo(0, 0);\n });\n return () => {\n unlisten();\n };\n } catch (error) {}\n }, []);\n\n return {children};\n}\n\nexport default withRouter(ScrollToTop);\n","import React from \"react\";\nimport { Route, Redirect } from \"react-router-dom\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport useUserType from \"hooks/useUserType\";\nconst ProtectedRoute = ({\n component: Component,\n CURRENT_USER_TYPE,\n roleRequired,\n ...rest\n}) => {\n const { t } = useTranslation();\n let loggedInUserToken = UTILS.getCurrentUser()?.token;\n const userType = useUserType();\n return (\n {\n if (!loggedInUserToken) {\n return ;\n } else if (loggedInUserToken && roleRequired) {\n return userType === roleRequired ? (\n \n ) : (\n

\n {t(\"You cannot Access this page\")}\n

\n );\n }\n return ;\n }}\n />\n );\n};\n\nexport default ProtectedRoute;\n","import React, { useEffect, useState } from \"react\";\nimport \"moment-timezone\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { CONSTANTS as C } from \"config\";\nimport PriceInput from \"components/useForm/PriceInput\";\n\nconst LoyaltyForm = ({\n onsubmit,\n register,\n errors,\n watch,\n actionType,\n trigger,\n setValue,\n}) => {\n const { t } = useTranslation();\n const [welcomeBonus, setWelcomeBonus] = useState(true);\n const isLoyaltyActive = watch(\"isLoyaltyActive\");\n const isWelcomeBonusActive = watch(\"welcomeBonus.isActive\");\n const handleWelcomeBonus = () => {\n setWelcomeBonus(!welcomeBonus);\n };\n useEffect(() => {\n trigger(\"welcomeBonus.value\");\n }, [isWelcomeBonusActive, trigger, welcomeBonus]);\n const handleValues = (key, value) => {\n setValue(key, value);\n trigger(key);\n };\n\n return (\n
\n
\n
\n

\n {actionType === C.LOYALTY_CONSTANTS.ADD_OP\n ? t(\"Add Loyalty\")\n : t(\"Update Loyalty\")}\n

\n
\n\n

\n {t(\"Enable and manage a loyalty program for your customers.\")}\n

\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n \n
\n \n {isLoyaltyActive\n ? t(\"Loyalty Activated\")\n : t(\"Loyalty Deactivated\")}\n \n
\n \n\n
\n

\n {t(\"Earning\")}\n

\n

\n {t(\"How much credit your customers get with each order.\")}\n

\n
\n \n
\n\n
\n

\n {t(\"Spending\")}\n

\n

\n {t(\n \"Set the maximum limits for redeeming credit. The system will always apply the lowest\"\n )}\n

\n\n
\n
\n \n
\n
\n \n
\n
\n
\n\n

\n {t(\"Loyalty welcome bonus\")}\n

\n

\n {t(\"Give your first time customers a sign in cashback bonus.\")}\n

\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n \n
\n \n {t(\"Welcome bonus credit\")}\n \n
\n \n\n
\n \n
\n \n\n
\n \n {actionType === C.LOYALTY_CONSTANTS.EDIT_OP && t(\"Update\")}\n {actionType === C.LOYALTY_CONSTANTS.ADD_OP &&\n isLoyaltyActive &&\n t(\"Create\")}\n \n
\n \n \n );\n};\n\nexport default LoyaltyForm;\n","import React, { useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { useSelector } from \"react-redux\";\nimport { Spin } from \"antd\";\nimport {\n useGetLoyaltyDetailsByBrandNameMutation,\n useUpdateLoyaltyMutation,\n useCreateLoyaltyMutation,\n} from \"redux/loyalty/loyalty-service\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport LoyaltyForm from \"../components/LoyaltyForm\";\nconst AddUpdateLoyaltyProgram = () => {\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [getLoyaltyDetailsByBrandName] =\n useGetLoyaltyDetailsByBrandNameMutation();\n const [updateLoyalty] = useUpdateLoyaltyMutation();\n const [createLoyality] = useCreateLoyaltyMutation();\n const [actionType, setActionType] = useState(C.LOYALTY_CONSTANTS.ADD_OP);\n const {\n register,\n handleSubmit,\n watch,\n trigger,\n setValue,\n reset,\n formState: { errors, isValid },\n } = useForm(\n {\n mode: \"onChange\",\n defaultValues: async () => {\n const loyaltyDetails = await fetchLoyaltyDetails();\n return loyaltyDetails;\n },\n },\n []\n );\n\n const fetchLoyaltyDetails = async () => {\n reset();\n const userDetail = UTILS.getCurrentUser();\n if (userDetail?.brandId) {\n const { data } = await getLoyaltyDetailsByBrandName({\n brandId: userDetail.brandId,\n });\n if (data?.success === 1 && data?.data && data?.data?._id) {\n setActionType(C.LOYALTY_CONSTANTS.EDIT_OP);\n } else {\n setActionType(C.LOYALTY_CONSTANTS.ADD_OP);\n }\n reset(data?.data);\n return data?.data;\n }\n };\n\n /* \n This function is used to add or update loyalty program\n */\n const addUpdateLoyaltyInfo = async (data) => {\n const commonData = {\n minOrderValueForCashback: 0,\n redeemablePercentagePerOrder: Number(data.redeemablePercentagePerOrder),\n maxRedeemableValuePerOrder: Number(data.maxRedeemableValuePerOrder),\n welcomeBonus: {\n ...data.welcomeBonus,\n value: Number(data.welcomeBonus.value || 0),\n },\n };\n\n let obj = {\n ...data,\n specificToDelivery: {\n isActive: true,\n cashbackPercentage: Number(data.specificToDelivery.cashbackPercentage),\n },\n specificToPickup: {\n isActive: true,\n cashbackPercentage: Number(data.specificToDelivery.cashbackPercentage),\n },\n specificToDineIn: {\n isActive: true,\n cashbackPercentage: Number(data.specificToDelivery.cashbackPercentage),\n },\n };\n if (actionType === C.LOYALTY_CONSTANTS.ADD_OP) {\n obj = {\n ...obj,\n ...commonData,\n };\n await createLoyality(obj);\n } else {\n obj = {\n ...obj,\n loyaltyId: data._id,\n specificToDelivery: {\n ...data.specificToDelivery,\n cashbackPercentage: Number(\n data.specificToDelivery.cashbackPercentage\n ),\n },\n ...commonData,\n };\n\n await updateLoyalty(obj);\n }\n\n await fetchLoyaltyDetails();\n };\n\n return (\n \n
\n
\n \n
\n
\n
\n );\n};\n\nexport default AddUpdateLoyaltyProgram;\n","import React from \"react\";\nimport { Table, Button } from \"antd\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\n\nconst CustomersTable = ({\n customers,\n handlePageChange,\n handSearch,\n searchTerm,\n}) => {\n const { t } = useTranslation();\n const router = useHistory();\n\n const viewDetail = (row) =>\n router.push(\"/app/dashboard/customer-wallet-history\", row);\n\n const renderMobileNumber = (value, row, index) => {\n return (\n
\n

\n {` +${row.countryCode}${value}`}\n

\n
\n );\n };\n const actionButton = (value, row, index) => {\n return (\n
\n viewDetail(row)}\n >\n {t(\"View details\")}\n \n
\n );\n };\n const columns = [\n {\n title: t(\"Customer Name\"),\n dataIndex: \"name\",\n key: \"name\",\n render: (value, row, index) => {\n return (\n
\n

{value || t(\"N/A\")}

\n
\n );\n },\n },\n {\n title: t(\"Whatsapp Number\"),\n dataIndex: \"phoneNumber\",\n key: \"mobileNumber\",\n render: renderMobileNumber,\n },\n\n {\n title: t(\"Lifetime Spending\"),\n dataIndex: \"lifetimeSpending\",\n key: \"lifetimeSpending\",\n render: (value, row, index) => {\n return (\n
\n {value ? (\n

\n {t(\"AED\")} {parseFloat(value)?.toFixed(2) || 0}\n

\n ) : (\n

\n {t(\"AED\")} 0\n

\n )}\n
\n );\n },\n },\n\n {\n title: t(\"Actions\"),\n dataIndex: \"action\",\n key: \"action\",\n render: actionButton,\n },\n ];\n\n return (\n
\n
\n
\n

\n {t(\"My customers\")}\n

\n
\n
\n
\n \n \n \n \n
\n
\n
\n\n \n
\n record._id}\n onChange={(pagination, filters, sorter) => {\n handlePageChange(pagination.current);\n }}\n />\n
\n
\n
\n );\n};\n\nexport default CustomersTable;\n","import React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Spin } from \"antd\";\nimport CustomersTable from \"../components/CustomersTable\";\nimport { useGetAllBrandCustomersMutation } from \"redux/loyalty/loyalty-service\";\n\nconst LoyaltyCustomers = () => {\n const [searchTerm, setSearch] = useState(null);\n const [customers, setCustomers] = useState({\n data: [],\n totalrecords: 0,\n currentPage: 1,\n });\n const [getAllBrandCustomers] = useGetAllBrandCustomersMutation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n async function fetchData(page, term) {\n const { data } = await getAllBrandCustomers({\n page: page,\n ...(term && {\n phoneNumber: term,\n }),\n });\n if (data?.success === 1 && data?.data?.users?.users?.length > 0) {\n handleCustomerState(\"data\", data?.data?.users?.users);\n handleCustomerState(\"totalrecords\", data?.data?.users?.count);\n }\n }\n\n const handSearch = (e) => setSearch(e.target.value);\n\n const handlePageChange = (page) => {\n handleCustomerState(\"currentPage\", page);\n fetchData(page, searchTerm);\n };\n\n useEffect(() => {\n if (\n searchTerm === null ||\n searchTerm?.length === 0 ||\n searchTerm?.length > 2\n ) {\n handleCustomerState(\"currentPage\", 1);\n fetchData(1, searchTerm);\n }\n }, [searchTerm]);\n\n const handleCustomerState = (key, val) => {\n setCustomers((prevState) => ({\n ...prevState,\n [key]: val,\n }));\n };\n\n return (\n \n \n \n );\n};\nexport default LoyaltyCustomers;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\n\nconst BackButton = ({ onClick }) => {\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n return (\n <>\n {currentLanguage === \"EN\" ? (\n \n \n \n ) : (\n \n \n \n )}\n \n );\n};\nexport default BackButton;\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst UserLoyaltyPoints = ({ userWalletBalance, setOpen }) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n return (\n
\n

\n {t(\"Loyalty Points\")}\n

\n

\n \n {t(\"Customer current loyalty points balance\", {\n amount: new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(userWalletBalance?.balance || 0),\n })}\n\n {/* \n {new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(userWalletBalance?.balance || 0)}\n */}\n \n

\n\n
\n {\n setOpen(true);\n }}\n >\n {t(\"Add Loyalty Points\")}\n \n
\n
\n );\n};\n\nexport default UserLoyaltyPoints;\n","import React from \"react\";\nimport { Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport moment from \"moment\";\nimport Card from \"components/Card\";\nimport { useSelector } from \"react-redux\";\nconst UserLoyaltyTableData = ({\n userWalletHistory,\n fetchUserWalletTransactionHistory,\n}) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const renderName = (value, row, index) => {\n return (\n
\n

{t(value)}

\n
\n );\n };\n\n const columns = [\n {\n title: t(\"Type\"),\n dataIndex: \"type\",\n key: \"name\",\n render: renderName,\n },\n {\n title: t(\"Amount\"),\n dataIndex: \"amount\",\n key: \"amount\",\n // render: renderName,\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n title: t(\"Balance before\"),\n dataIndex: \"walletBalanceBefore\",\n key: \"walletBalanceBefore\",\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n title: t(\"Balance after\"),\n dataIndex: \"walletBalanceAfter\",\n key: \"walletBalanceAfter\",\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n title: t(\"Created at\"),\n dataIndex: \"createdAt\",\n key: \"createdAt\",\n render: (val, row, index) => {\n return {moment(val).format(\"DD-MM-YYYY\")};\n },\n },\n ];\n\n return (\n
\n
\n

\n {t(\"Loyalty transaction history\")}\n

\n
\n \n
\n fetchUserWalletTransactionHistory(e.current * 10)}\n dataSource={userWalletHistory}\n pagination={{\n position: [\"bottomCenter\"],\n defaultPageSize: 10,\n }}\n size=\"small\"\n rowKey={(record) => record._id}\n />\n
\n
\n
\n );\n};\n\nexport default UserLoyaltyTableData;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\nconst getFieldError = (error) => {\n if (error) {\n return * {error} ;\n }\n};\nconst TextInput = (props) => {\n const {\n label,\n mandatory,\n error,\n placeholder,\n register,\n rules,\n type,\n disabled,\n name,\n value,\n maxLength,\n } = props;\n\n const mandatoryField = getMandatoryField(mandatory);\n const fieldError = getFieldError(error);\n\n return (\n <>\n \n \n
{fieldError}
\n \n );\n};\n\nTextInput.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n type: PropTypes.string,\n disabled: PropTypes.bool,\n register: PropTypes.func,\n rules: PropTypes.object,\n name: PropTypes.string,\n};\n\nexport default TextInput;\n","import React from \"react\";\nimport { Button, Spin } from \"antd\";\nimport TextInput from \"components/useForm/FormInput\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst AddPoints = ({ onClose, onSubmit, register, errors }) => {\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const { t } = useTranslation();\n return (\n \n
\n
\n
\n
\n

\n {t(\"Add Loyalty Points\")}\n

\n
\n \n
\n
\n
\n onClose()}\n >\n {t(\"Cancel\")}\n \n \n {t(\"Add\")}\n \n
\n
\n
\n \n
\n );\n};\n\nexport default AddPoints;\n","import { Spin } from \"antd\";\nimport Modal from \"components/Modal\";\nimport BackArrow from \"features/icons/BackArrow\";\nimport usePushBack from \"hooks/usePushBack\";\nimport React, { useEffect, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport {\n useCreateUserWalletTransactionMutation,\n useGetUserWalletBalanceMutation,\n useGetUserWalletTransactionHistoryMutation,\n} from \"redux/loyalty/loyalty-service\";\nimport { UTILS } from \"utils\";\nimport CreditLoyaltyPointsModal from \"../components/CreditLoyaltyPointsModal\";\nimport CustomerWalletHistoryTable from \"../components/CustomerWalletHistoryTable\";\nimport CreditLoyaltyPoints from \"../models/CreditLoyaltyPoints\";\nconst CustomerDetail = () => {\n const history = useHistory();\n const [open, setOpen] = useState(false);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [userWalletHistory, setUserWalletHistory] = useState([]);\n const [userWalletBalance, setUserWalletBalance] = useState(0);\n const { t } = useTranslation();\n const [getUserWalletTransactionHistory, { isLoading: transactionsLoader }] =\n useGetUserWalletTransactionHistoryMutation();\n const [createUserWalletTransaction] =\n useCreateUserWalletTransactionMutation();\n const [getUserWalletBalance, { isLoading: balanceLoader }] =\n useGetUserWalletBalanceMutation();\n const {\n register,\n handleSubmit,\n reset,\n formState: { errors },\n } = useForm({}, []);\n\n // Fetching user wallet transaction history and balance\n async function fetchUserWalletTransactionHistory() {\n const userDetail = UTILS.getCurrentUser();\n const state = history?.location?.state;\n if (!state || !state._id || !userDetail?.brandId) return;\n\n const transationPayload = {\n userId: state._id,\n brandId: userDetail.brandId,\n limit: 120,\n };\n const balancePayload = {\n userId: state._id,\n brandId: userDetail.brandId,\n };\n\n const [transactionHistory, walletBalance] = await Promise.all([\n getUserWalletTransactionHistory(transationPayload),\n getUserWalletBalance(balancePayload),\n ]);\n if (\n transactionHistory?.data?.success === 1 &&\n transactionHistory?.data?.data?.length > 0\n ) {\n setUserWalletHistory(transactionHistory?.data?.data);\n }\n if (walletBalance?.data?.success === 1 && walletBalance?.data?.data) {\n setUserWalletBalance(walletBalance?.data?.data);\n }\n }\n\n useEffect(() => {\n fetchUserWalletTransactionHistory();\n }, []);\n\n // credit loyalty points in customer wallet\n const handleAddPoints = async (data) => {\n let payload = {\n ...data,\n userId: history?.location?.state?._id,\n MANUAL_CREDITED: {\n amount: Number(data.MANUAL_CREDITED.amount),\n },\n };\n const { data: res } = await createUserWalletTransaction(payload);\n if (res?.success === 1) {\n setOpen(false);\n await fetchUserWalletTransactionHistory();\n reset();\n }\n };\n return (\n \n
\n
\n history.goBack()}\n >\n \n history.goBack()} />\n \n \n {t(\"Customers\")}\n \n
\n
\n

\n {t(\"User loyalty details\")}\n

\n

{t(\"Manage user loyalty.\")}

\n
\n
\n

\n {t(\"Customer details\")}\n

\n

\n {\" \"}\n {history?.location?.state?.name}\n

\n

\n \n {t(\"Customer current whatsapp number is\")}\n \n {` +${history?.location?.state?.countryCode}${history?.location?.state?.phoneNumber} `}\n \n \n

\n

\n \n {t(\"Customer lifetime spending value is\")}\n \n {\" \"}\n {t(\"AED\")}{\" \"}\n {parseFloat(userWalletBalance?.lifetimeSpending)?.toFixed(\n 2\n ) || 0}\n \n \n

\n
\n \n setOpen(false)}\n >\n setOpen(false)}\n register={register}\n handleSubmit={handleSubmit}\n errors={errors}\n onSubmit={handleSubmit(handleAddPoints)}\n />\n \n
\n\n \n \n
\n );\n};\n\nfunction CustomerWalletInfo() {\n const router = useHistory();\n usePushBack(\"/app/dashboard/brand-customers\", router?.location?.state?._id);\n return ;\n}\n\nexport default CustomerWalletInfo;\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport { useHistory } from \"react-router\";\nimport { SVG_PLUS } from \"svg/SVGs\";\nimport { CONSTANTS as C } from \"config\";\nimport { useTranslation } from \"react-i18next\";\nconst AreaBox = (props) => {\n const router = useHistory();\n const { t } = useTranslation();\n return (\n router.push(props.url)}\n >\n
{props.icon}
\n
\n

\n {t(C.SHIPPING_METHODS[props.methodName])}\n

\n

{props?.description}

\n
\n
\n \n \n {props.footerText} \n \n
\n \n );\n};\n\nexport default AreaBox;\n","import React from \"react\";\nimport AreaBox from \"../common/AreaBox\";\nimport BackButton from \"components/BackButton\";\nimport { useSelector } from \"react-redux\";\nimport { CONSTANTS as C } from \"config\";\nimport { useTranslation } from \"react-i18next\";\nimport * as R_CONST from \"routes/Constants\";\nimport { AREA, CITY, FLAG } from \"svg/SVGs\";\nimport { isAllowedToShowShippingMethod } from \"../helpers\";\n\nconst ManageDelivery = () => {\n const { CatalogueType } = useSelector((state) => state?.SettingsReducer);\n const { t } = useTranslation();\n const boxes = [\n {\n footerText: t(\"Add Areas\"),\n url: R_CONST.ADD_AREA,\n methodName: C.SHIPPING_METHODS.AREA_BASED,\n icon: ,\n description: t(\"Preferable if you deliver to certain local areas\"),\n },\n {\n footerText: t(\"Add Mapped Areas\"),\n url: \"/app/dashboard/mapped-area-method\",\n methodName: C.SHIPPING_METHODS.MAPPED_AREA_BASED,\n icon: ,\n description: t(\n \"Users will only be allowed to order from your defined areas. Choose delivery areas based on your coverage and convenience. The delivery fee can be customized for each area\"\n ),\n },\n {\n footerText: t(\"Add Cities\"),\n url: R_CONST.ADD_CITY,\n methodName: C.SHIPPING_METHODS.CITY_BASED,\n icon: ,\n description: t(\"Preferable if you deliver to certain cities\"),\n },\n {\n footerText: t(\"Add Countries\"),\n url: R_CONST.ADD_COUNTRY,\n methodName: C.SHIPPING_METHODS.COUNTRY_BASED,\n icon: ,\n description: t(\"Preferable if you deliver to certain countries\"),\n },\n ];\n // const showButton = (methodName) => {\n // if (\n // CatalogueType === C.OUTLET_BASED &&\n // methodName !== C.SHIPPING_METHODS.AREA_BASED\n // ) {\n // return false;\n // }\n // return true;\n // };\n return (\n
\n \n

{t(\"Delivery Methods\")}

\n
\n {boxes?.map((box, index) => {\n let show = !isAllowedToShowShippingMethod(\n box.methodName,\n CatalogueType\n );\n return show ? (\n \n ) : null;\n })}\n
\n
\n );\n};\n\nexport default ManageDelivery;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst CountryCityList = ({ CITIES, isChecked, saveArea }) => {\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { t } = useTranslation();\n return (\n \n
\n {CITIES?.length > 0 &&\n CITIES?.map((city) => (\n
\n
\n
\n {city?.isAdded ? (\n \n
\n {city?.[`cityName${currentLanguage}`]}\n
\n
{t(\"Already added\")}
\n
\n ) : (\n saveArea(city)}\n >\n
{city?.[`cityName${currentLanguage}`]}
\n
\n {isChecked(city) ? (\n \n ) : (\n \n )}\n
\n
\n )}\n
\n
\n ))}\n \n
\n );\n};\n\nexport default CountryCityList;\n","import React, { useMemo, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport SearchCity from \"../common/Search\";\nimport PriceInput from \"components/useForm/PriceInput\";\nimport { UTILS } from \"utils\";\nimport {\n useAddCitiesMutation,\n useGetAddedCitiesMutation,\n} from \"redux/shipping-methods/shipping-service\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport ChooseTime from \"../common/ChooseTime\";\nimport CityList from \"../cities/components/CitiesList\";\nimport TextInput from \"components/TextInput\";\nconst AddNewCity = ({ onClose }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [getAddedCities] = useGetAddedCitiesMutation();\n const [addCities] = useAddCitiesMutation();\n const { selectedStore, selectedCities, customizedCityList } = useSelector(\n (state) => state.AreasReducer\n );\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const [searchTerm, setSearch] = useState(\"\");\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n selectedAreas: [],\n });\n const [time, setTime] = useState({\n Hours: 0,\n Minutes: 0,\n Days: 0,\n });\n const handleValues = async (key, value) => {\n setState({ ...state, [key]: value });\n };\n\n const addNewCities = UTILS.withTryCatch(async () => {\n let delTime = time.Days * 1440 + time.Hours * 60 + time.Minutes;\n const userDetail = UTILS.getCurrentUser();\n let areas = [];\n selectedCities.forEach((city) => {\n areas.push({\n cityID: city._id,\n countryID: city.countryID,\n deliveryFee: +Number(state.deliveryFee),\n deliveryTime: +Number(delTime),\n minOrder: +Number(state.minOrder),\n });\n });\n const obj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n areas,\n };\n const getObj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n };\n\n await addCities(obj).unwrap();\n await getAddedCities(getObj).unwrap();\n dispatch(AreasAction.updateSelectedCities([]));\n dispatch(AreasAction.setSync());\n onClose();\n });\n\n const handleSearch = (key, val) => {\n setSearch(val.toLowerCase());\n };\n\n const CITIES = useMemo(() => {\n const lowerCaseSearchTerm = searchTerm?.toLowerCase()?.trim() ?? \"\";\n if (!lowerCaseSearchTerm) {\n return customizedCityList;\n }\n\n return customizedCityList.filter(\n (item) =>\n item?.cityNameEN?.toLowerCase()?.includes(lowerCaseSearchTerm) ||\n item?.cityNameAR?.toLowerCase()?.includes(lowerCaseSearchTerm)\n );\n }, [customizedCityList, searchTerm]);\n\n const saveArea = (city) => {\n let update = [];\n const isCityAlreadySelected = !!selectedCities?.find(\n (c) => c?._id === city?._id\n );\n if (isCityAlreadySelected) {\n update = selectedCities.filter((c) => c._id !== city._id);\n } else {\n update = [...selectedCities, city];\n }\n dispatch(AreasAction.updateSelectedCities(update));\n };\n\n const isChecked = (city) => {\n return !!selectedCities?.find((c) => c?._id === city?._id);\n };\n\n let isValid = () => {\n if (\n isLoading ||\n state?.minOrder === \"\" ||\n state?.deliveryFee === \"\" ||\n selectedCities.length <= 0 ||\n (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0)\n )\n return false;\n return true;\n };\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleValues(key, value);\n };\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Add delivery cities\")}\n

\n
\n
\n \n \n \n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n {t(\"I can't find city\")}\n
\n
\n \n {t(\"Add Cities\")}\n \n
\n
\n
\n
\n
\n );\n};\n\nAddNewCity.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddNewCity;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport { AreasAction } from \"redux/actions\";\nimport {\n useDeleteCitiesMutation,\n useGetAddedCitiesMutation,\n} from \"redux/shipping-methods/shipping-service\";\nconst DeleteCity = ({ selectedRow, onClose, selectedCities }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [deleteCities] = useDeleteCitiesMutation();\n const [getAddedCities] = useGetAddedCitiesMutation();\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const delete_Cities = UTILS.withTryCatch(async () => {\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedCities.forEach((city) => {\n objectArray.push(city._id);\n });\n\n const obj = {\n areas: objectArray,\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n };\n\n await deleteCities(obj).unwrap();\n await getAddedCities(obj);\n onClose();\n dispatch(AreasAction.setSync());\n });\n\n return (\n
\n \n
\n
\n {selectedRow && selectedRow.length === 1 ? (\n

\n {t(\n `Are you sure want to delete ${selectedRow[0].areaID?.areaNameEN}`\n )}\n

\n ) : (\n

\n {t(\"Are you sure you want to delete the selected cities\")}\n

\n )}\n
\n
\n {t(\"They will be removed from this outlet’s delivery reach.\")}\n
\n
\n \n \n
\n
\n
\n
\n );\n};\n\nDeleteCity.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default DeleteCity;\n","import TextInput from \"components/TextInput\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { Button, Spin } from \"antd\";\nimport {\n useEditCitiesMutation,\n useGetAddedCitiesMutation,\n} from \"redux/shipping-methods/shipping-service\";\nimport ChooseTime from \"../common/ChooseTime\";\nimport PriceInput from \"components/useForm/PriceInput\";\n\nconst UpdateCity = ({ onClose, selectedCities }) => {\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const { t } = useTranslation();\n const [editCities] = useEditCitiesMutation();\n const [getAddedCities] = useGetAddedCitiesMutation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n });\n const handleValues = (key, val) => {\n setState({ ...state, [key]: val });\n };\n const [time, setTime] = useState({\n Hours: 0,\n Minutes: 0,\n Days: 0,\n });\n\n const edit_cities = UTILS.withTryCatch(async () => {\n let delTime = time.Days * 1440 + time.Hours * 60 + time.Minutes;\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedCities.forEach((city) => {\n objectArray.push({\n cityID: city.cityID._id,\n countryID: city.countryID._id,\n deliveryFee: +Number(state.deliveryFee),\n deliveryTime: +Number(delTime),\n minOrder: +Number(state.minOrder),\n _id: city._id,\n });\n });\n\n const obj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: currentLanguage,\n areas: objectArray,\n };\n const getObj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: currentLanguage,\n };\n await editCities(obj).unwrap();\n await getAddedCities(getObj).unwrap();\n onClose();\n });\n\n let isValid = () => {\n if (\n isLoading ||\n state.minOrder === \"\" ||\n state.deliveryFee === \"\" ||\n selectedCities?.length <= 0 ||\n (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0)\n )\n return false;\n return true;\n };\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleValues(key, value);\n };\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Edit\")} {`${selectedCities?.length ?? \"\"} `}\n {t(\"Countries\")}\n

\n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n \n {t(\"Update Cities\")}\n \n
\n
\n
\n
\n );\n};\n\nexport default UpdateCity;\n","import { useEffect, useRef } from \"react\";\nimport moment from \"moment\";\n\nconst useCurrentLang = () => {\n let language = useRef(\"\");\n useEffect(() => {\n const locale = JSON.parse(localStorage.getItem(\"__DIRECTION___\"));\n const selected = locale ? locale.lang : moment.locale();\n language.current = selected;\n }, []);\n return language?.current;\n};\nexport default useCurrentLang;\n","import React, { useState, useMemo } from \"react\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { Table, Button, Select } from \"antd\";\nimport Modal from \"components/Modal\";\nimport AddNewCity from \"../../modals/AddNewCity\";\nimport DeleteCity from \"../../modals/DeleteCity\";\nimport UpdateCity from \"../../modals/UpdateCity\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport useCurrentLang from \"hooks/useCurrentLang\";\nimport useUserType from \"hooks/useUserType\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport { AreasAction } from \"redux/actions\";\nimport PlusIcon from \"features/icons/PlusIcon\";\nimport BackButton from \"components/BackButton\";\nimport RenderTime from \"features/shipping_methods/common/RenderTime\";\nfunction CitiesTable() {\n const { stores } = useAllStores();\n const dispatch = useDispatch();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const { selectedStore, addedCities } = useSelector(\n (state) => state.AreasReducer\n );\n\n const userType = useUserType() || UTILS.getCurrentUser()?.userType;\n const [searchTerm, setSearch] = useState(\"\");\n const [open, setOpen] = useState(false);\n const [dialogContentId, setDialogContentId] = useState(-1);\n const [selectedRowKeys, setSelectedRowsKeys] = useState([]);\n const [selectedDataRows, setSelectedDataRows] = useState({});\n const { t } = useTranslation();\n const language = useCurrentLang();\n\n const columns = [\n {\n key: \"cityID\",\n title: t(\"City Name\"),\n sorter: (a, b) =>\n a?.cityID?.cityNameEN?.localeCompare(b?.cityID?.cityNameEN),\n dataIndex: \"cityName\",\n render: (val, row, index) => {\n return language === \"en\"\n ? row?.cityID?.cityNameEN\n : row?.cityID?.cityNameAR;\n },\n },\n {\n key: \"minOrder\",\n title: t(\"Min. Basket Value\"),\n dataIndex: \"minOrder\",\n sorter: {\n compare: (a, b) => a.minOrder - b.minOrder,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n key: \"deliveryFee\",\n title: t(\"Delivery Fee\"),\n dataIndex: \"deliveryFee\",\n sorter: {\n compare: (a, b) => a.deliveryFee - b.deliveryFee,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n\n {\n key: \"deliveryTime\",\n title: t(\"Delivery Time\"),\n dataIndex: \"deliveryTime\",\n sorter: {\n compare: (a, b) => a.deliveryTime - b.deliveryTime,\n multiple: 3,\n },\n render: (val, row, index) => {\n return ;\n },\n },\n ];\n\n const DG_CONTENT_ID = {\n ADD_CITY: 0,\n DELETE_CITY: 1,\n UPDATE_CITY: 2,\n ADD_ITEM_TO_CITY: 3,\n };\n\n const onSelectChange = () => {\n setSelectedRowsKeys(selectedRowKeys);\n };\n const onClose = () => {\n setOpen(false);\n setSelectedRowsKeys([]);\n };\n const renderModalContent = () => {\n switch (dialogContentId) {\n case 0:\n return ;\n case 1:\n return (\n \n );\n case 2:\n return (\n \n );\n default:\n break;\n }\n };\n\n const Items = useMemo(() => {\n const lowerCaseSearchTerm = searchTerm?.toLowerCase() ?? \"\";\n const cityDeliveryData = addedCities?.cityDeliveryData;\n if (!lowerCaseSearchTerm) {\n return cityDeliveryData;\n }\n\n return cityDeliveryData?.filter(\n (item) =>\n item?.cityID?.cityNameEN\n ?.toLowerCase()\n ?.includes(lowerCaseSearchTerm) ||\n item?.cityID?.cityNameAR?.toLowerCase()?.includes(lowerCaseSearchTerm)\n );\n }, [addedCities, searchTerm]);\n\n const rowSelection = {\n selectedRowKeys: selectedRowKeys,\n onChange: (selectedRowKeys, selectedRows) => {\n setSelectedDataRows(selectedRows);\n setSelectedRowsKeys(selectedRowKeys);\n },\n onSelectAll: (selected, selectedRows, changeRows) => {\n if (selectedRowKeys.length !== 0) {\n setSelectedRowsKeys([]);\n }\n },\n };\n\n const handSearch = (e) => {\n setSearch(e.target.value);\n };\n\n const deleteArea = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.DELETE_CITY);\n };\n const editArea = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.UPDATE_CITY);\n };\n const addCities = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.ADD_CITY);\n };\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n dispatch(AreasAction.setStore(value));\n };\n\n const cityCount = addedCities?.cityDeliveryData?.length || 0;\n const cityText = `${cityCount} ${t(cityCount <= 1 ? \"City\" : \"Cities\")}`;\n\n return (\n <>\n
\n \n
\n
\n
\n

{t(\"Select store\")}

\n
\n
\n \n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n options={stores}\n />\n
\n {selectedStore && (\n
\n addCities()}\n className=\"font-montserrat px-5 border border-transparent shadow-sm font-medium rounded-sm text-white h-10 focus:outline-none\"\n >\n \n \n \n \n {t(\"Add delivery cities\")}\n \n \n
\n )}\n
\n
\n {selectedStore && (\n <>\n setOpen(false)}\n responsiveClass=\"w-full lg:w-full xl:w-4/5 2xl:2/3\"\n >\n {renderModalContent()}\n \n
\n
\n

\n {cityText}\n

\n
\n\n
\n
\n {selectedRowKeys?.length > 0 && (\n \n {t(\"Edit\")}\n {`${\n selectedRowKeys?.length > 0\n ? `(${selectedRowKeys.length})`\n : \" \"\n } `}\n \n )}\n\n {selectedRowKeys?.length > 0 && (\n deleteArea()}\n >\n {t(\"Delete\")}\n {`${\n selectedRowKeys?.length > 0\n ? `(${selectedRowKeys.length})`\n : \" \"\n } `}\n \n )}\n
\n
\n \n \n \n \n
\n
\n
{\" \"}\n
\n record.cityID._id}\n pagination={{ position: [\"bottomCenter\"], pageSize: 50 }}\n />\n
\n \n )}\n
\n \n );\n}\n\nexport default CitiesTable;\n","import React, { useEffect } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport PageHeading from \"components/PageHeading\";\nimport CitiesTable from \"../components/CitiesTable\";\nimport { apiSlice } from \"redux/Api.Slice\";\nimport { AreasAction } from \"redux/actions\";\nimport { useGetAddedCitiesMutation } from \"redux/shipping-methods/shipping-service\";\nimport { Spin } from \"antd\";\nimport { LoaderAction } from \"redux/actions\";\nconst ManageCities = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const [getAddedCities] = useGetAddedCitiesMutation();\n const { selectedStore, syncData } = useSelector(\n (state) => state.AreasReducer\n );\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const [trigger] = apiSlice.endpoints.getBuisnessAreas.useLazyQuery();\n\n const getBussinessAreas = UTILS.withTryCatch(async () => {\n dispatch(LoaderAction.setLoading(true));\n const { data } = await trigger();\n if (data?.success === 1 && data?.data) {\n await getCities(data.data);\n dispatch(AreasAction.setFetchedAreas(data.data));\n } else {\n console.error(\"cities error\", data);\n }\n dispatch(LoaderAction.setLoading(false));\n });\n\n const getCities = UTILS.withTryCatch(async (shippingData) => {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n if (selectedStore?.value && userDetail?.brandId) {\n const obj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: \"EN\",\n };\n const data = await getAddedCities(obj).unwrap();\n\n if (data?.success === 1) {\n dispatch(AreasAction.setAddedCities(data.data.areas));\n const listCities = await UTILS.getCustomizedCitiesList(\n shippingData,\n data.data.areas\n );\n\n if (listCities) {\n dispatch(AreasAction.setcustomizedCityList(listCities));\n }\n }\n }\n dispatch(LoaderAction.setLoading(false));\n });\n\n useEffect(() => {\n getBussinessAreas();\n }, [selectedStore?.value, syncData]);\n\n return (\n
\n \n \n
\n \n
\n
\n
\n );\n};\nexport default ManageCities;\n","import { useMemo } from \"react\";\nconst useUserType = (searchTerm, list, language) => {\n const Items = useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return list;\n }\n\n return list?.filter((item) =>\n language === \"en\"\n ? item?.label?.toLowerCase()?.includes(searchTerm?.trim())\n : item?.label?.toLowerCase()?.includes(searchTerm?.trim())\n );\n }, [list, searchTerm, language]);\n return Items;\n};\n\nexport default useUserType;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst CountryCityList = ({ COUNTRIES, isChecked, saveArea }) => {\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { t } = useTranslation();\n return (\n \n
\n {COUNTRIES?.length > 0 &&\n COUNTRIES?.map((country) => (\n
\n
\n
\n {country?.isAdded ? (\n \n
\n {currentLanguage === \"EN\"\n ? country?.countryNameEN\n : country?.countryNameAR}\n
\n
{t(\"Already added\")}
\n
\n ) : (\n saveArea(country)}\n >\n
{country?.[`countryName${currentLanguage}`]}
\n {isChecked(country) ? (\n \n ) : (\n \n )}\n
\n )}\n
\n
\n ))}\n \n
\n );\n};\n\nexport default CountryCityList;\n","import React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport PriceInput from \"components/useForm/PriceInput\";\nimport { UTILS } from \"utils\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport {\n useAddNewCountryMutation,\n useGetAddedCountriesMutation,\n} from \"redux/shipping-methods/shipping-service\";\nimport ChooseTime from \"../common/ChooseTime\";\nimport useSearch from \"../hooks/useSearch\";\nimport CountryList from \"../countries/components/CountryList\";\nimport TextInput from \"components/TextInput\";\n\nconst AddNewCountry = ({ onClose }) => {\n const dispatch = useDispatch();\n const [getAddedCountries] = useGetAddedCountriesMutation();\n const [addNewCountry] = useAddNewCountryMutation();\n const { t } = useTranslation();\n const [searchTerm, setSearch] = useState(\"\");\n const { selectedStore, selectedCountries, customizedCountryList } =\n useSelector((state) => state.AreasReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n countryList: [],\n });\n const [time, setTime] = useState({\n Hours: 0,\n Minutes: 0,\n Days: 0,\n });\n const handleValues = async (key, value) => {\n setState({ ...state, [key]: value });\n };\n\n const addCountries = UTILS.withTryCatch(async () => {\n let delTime = time.Days * 1440 + time.Hours * 60 + time.Minutes;\n const userDetail = UTILS.getCurrentUser();\n let areas = [];\n selectedCountries.forEach((country) => {\n areas.push({\n countryID: country._id,\n deliveryFee: +Number(state.deliveryFee),\n deliveryTime: +Number(delTime),\n minOrder: +Number(state.minOrder),\n });\n });\n const obj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n areas: areas,\n language: currentLanguage,\n };\n const getObj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: currentLanguage,\n };\n\n await addNewCountry(obj).unwrap();\n await getAddedCountries(getObj).unwrap();\n dispatch(AreasAction.updateSelectedCountries([]));\n dispatch(AreasAction.setSync());\n onClose();\n });\n\n const saveArea = (country) => {\n let update = [];\n const isCityAlreadyCountry = !!selectedCountries?.find(\n (c) => c?._id === country?._id\n );\n if (isCityAlreadyCountry) {\n update = selectedCountries.filter((c) => c._id !== country._id);\n } else {\n update = [...selectedCountries, country];\n }\n dispatch(AreasAction.updateSelectedCountries(update));\n };\n\n const isChecked = (country) => {\n return !!selectedCountries?.find((c) => c?._id === country?._id);\n };\n const COUNTRIES = useSearch(searchTerm, customizedCountryList);\n let isValid = () => {\n if (\n isLoading ||\n state.minOrder === \"\" ||\n state.deliveryFee === \"\" ||\n selectedCountries?.length <= 0 ||\n (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0)\n )\n return false;\n return true;\n };\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleValues(key, value);\n };\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Add delivery countries\")}\n

\n
\n
onClose()}>\n \n \n \n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n
\n {t(\"I can't find country\")}\n
\n
\n \n {t(\"Add Countries\")}\n \n
\n
\n
\n
\n
\n );\n};\n\nAddNewCountry.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddNewCountry;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport {\n useDeleteCountryMutation,\n useGetAddedCountriesMutation,\n} from \"redux/shipping-methods/shipping-service\";\nimport { AreasAction } from \"redux/actions\";\nconst DeleteCity = ({ selectedRow, onClose, selectedAreas, language }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [deleteCountry] = useDeleteCountryMutation();\n const [getAddedCountries] = useGetAddedCountriesMutation();\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const delete_countries = UTILS.withTryCatch(async () => {\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedAreas.forEach((country) => {\n objectArray.push(country._id);\n });\n\n const obj = {\n areas: objectArray,\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n };\n\n await deleteCountry(obj).unwrap();\n await getAddedCountries(obj);\n onClose();\n dispatch(AreasAction.setSync());\n });\n\n return (\n
\n \n
\n
\n {selectedRow && selectedRow.length === 1 ? (\n

\n {t(\n `Are you sure want to delete ${selectedRow[0].areaID?.areaNameEN}`\n )}\n

\n ) : (\n

\n {t(\"Are you sure you want to delete the selected countries\")}\n

\n )}\n
\n
\n {t(\"They will be removed from this outlet’s delivery reach.\")}\n
\n
\n {/* */}\n \n
\n
\n
\n
\n );\n};\n\nDeleteCity.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default DeleteCity;\n","import TextInput from \"components/TextInput\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { Button, Spin } from \"antd\";\nimport {\n useEditCountryMutation,\n useGetAddedCountriesMutation,\n} from \"redux/shipping-methods/shipping-service\";\nimport ChooseTime from \"../common/ChooseTime\";\nimport PriceInput from \"components/useForm/PriceInput\";\n\nconst UpdateCity = ({ onClose, selectedCountries }) => {\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const { t } = useTranslation();\n const [editCountry] = useEditCountryMutation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const [getAddedCountries] = useGetAddedCountriesMutation();\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: \"\",\n });\n const handleValues = (key, val) => {\n setState({ ...state, [key]: val });\n };\n const [time, setTime] = useState({\n Hours: 0,\n Minutes: 0,\n Days: 0,\n });\n\n const edit_country = UTILS.withTryCatch(async () => {\n let delTime = time.Days * 1440 + time.Hours * 60 + time.Minutes;\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedCountries.forEach((country) => {\n objectArray.push({\n countryID: country.countryID._id,\n deliveryFee: +Number(state.deliveryFee),\n deliveryTime: +Number(delTime),\n minOrder: +Number(state.minOrder),\n _id: country._id,\n });\n });\n\n const obj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: currentLanguage,\n areas: objectArray,\n };\n const getObj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: currentLanguage,\n };\n await editCountry(obj).unwrap();\n await getAddedCountries(getObj);\n onClose();\n });\n\n let isValid = () => {\n if (\n isLoading ||\n state.minOrder === \"\" ||\n state.deliveryFee === \"\" ||\n selectedCountries.length <= 0 ||\n (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0)\n )\n return false;\n return true;\n };\n const handleInputValue = (key, val) => {\n const value = UTILS.NumberConversion(val);\n handleValues(key, value);\n };\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Edit\")} {`${selectedCountries?.length ?? \"\"} `}\n {t(\"Countries\")}\n

\n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n \n {t(\"Update Countries\")}\n \n
\n
\n
\n
\n );\n};\n\nexport default UpdateCity;\n","import React, { useState, useMemo } from \"react\";\nimport { Table, Button, Spin, Select } from \"antd\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport Modal from \"components/Modal\";\nimport AddNewCountry from \"../../modals/AddNewCountry\";\nimport DeleteCountry from \"../../modals/DeleteCountry\";\nimport UpdateCountry from \"../../modals/UpdateCountry\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport useUserType from \"hooks/useUserType\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport { AreasAction } from \"redux/actions\";\nimport PlusIcon from \"features/icons/PlusIcon\";\nimport BackButton from \"components/BackButton\";\nimport RenderTime from \"features/shipping_methods/common/RenderTime\";\nfunction CountriesTable() {\n const dispatch = useDispatch();\n const userType = useUserType() || UTILS.getCurrentUser()?.userType;\n const { stores } = useAllStores();\n const [searchTerm, setSearch] = useState(\"\");\n const [open, setOpen] = useState(false);\n const [dialogContentId, setDialogContentId] = useState(-1);\n const [selectedRowKeys, setSelectedRowsKeys] = useState([]);\n const [selectedDataRows, setSelectedDataRows] = useState({});\n const { t } = useTranslation();\n const { selectedStore, addedCountries } = useSelector(\n (state) => state.AreasReducer\n );\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const columns = [\n {\n key: \"countryID\",\n title: t(\"country name\"),\n sorter: (a, b) =>\n a?.countryID?.countryNameEN?.localeCompare(b?.countryID?.countryNameEN),\n dataIndex: \"cityName\",\n render: (val, row, index) => {\n return currentLanguage === \"EN\"\n ? row?.countryID?.countryNameEN\n : row?.countryID?.countryNameAR;\n },\n },\n {\n key: \"minOrder\",\n title: t(\"Min. Basket Value\"),\n dataIndex: \"minOrder\",\n sorter: {\n compare: (a, b) => a.minOrder - b.minOrder,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n key: \"deliveryFee\",\n title: t(\"Delivery Fee\"),\n dataIndex: \"deliveryFee\",\n sorter: {\n compare: (a, b) => a.deliveryFee - b.deliveryFee,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n\n {\n key: \"deliveryTime\",\n title: t(\"Delivery Time\"),\n dataIndex: \"deliveryTime\",\n sorter: {\n compare: (a, b) => a.deliveryTime - b.deliveryTime,\n multiple: 3,\n },\n render: (val, row, index) => {\n return ;\n },\n },\n ];\n\n const DG_CONTENT_ID = {\n ADD_COUNTRY: 0,\n DELETE_COUNTRY: 1,\n UPDATE_COUNTRY: 2,\n ADD_ITEM_TO_COUNTRY: 3,\n };\n\n const onSelectChange = () => {\n setSelectedRowsKeys(selectedRowKeys);\n };\n const onClose = (e, w) => {\n setOpen(false);\n setSelectedRowsKeys([]);\n };\n const renderModalContent = () => {\n switch (dialogContentId) {\n case 0:\n return (\n \n );\n case 1:\n return (\n \n );\n case 2:\n return (\n \n );\n default:\n break;\n }\n };\n\n const Items = useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return addedCountries?.countryDeliveryData;\n }\n return addedCountries?.countryDeliveryData?.filter(\n (item) =>\n item.areaID?.countryNameEN\n ?.toLowerCase()\n ?.includes(searchTerm?.toLowerCase()) ||\n item.countryID?.countryNameEN\n ?.toLowerCase()\n ?.includes(searchTerm.toLowerCase()) ||\n item.countryID?.countryNameAR\n ?.toLowerCase()\n ?.includes(searchTerm.toLowerCase()) ||\n item.countryID?.countryNameAR\n ?.toLowerCase()\n ?.includes(searchTerm.toLowerCase())\n );\n }, [addedCountries, searchTerm]);\n\n const rowSelection = {\n selectedRowKeys: selectedRowKeys,\n onChange: (selectedRowKeys, selectedRows) => {\n setSelectedDataRows(selectedRows);\n setSelectedRowsKeys(selectedRowKeys);\n },\n onSelectAll: (selected, selectedRows, changeRows) => {\n if (selectedRowKeys.length !== 0) {\n setSelectedRowsKeys([]);\n }\n },\n };\n\n const handSearch = (e) => {\n setSearch(e.target.value);\n };\n\n const deleteCountry = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.DELETE_COUNTRY);\n };\n const editCountry = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.UPDATE_COUNTRY);\n };\n const AddCountry = () => {\n setOpen(true);\n setDialogContentId(DG_CONTENT_ID.ADD_COUNTRY);\n };\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n dispatch(AreasAction.setStore(value));\n };\n\n const countryCount = addedCountries?.countryDeliveryData?.length || 0;\n const countryText = `${countryCount} ${t(\n countryCount <= 1 ? \"Country\" : \"Countries\"\n )}`;\n\n return (\n <>\n
\n \n
\n
\n \n
\n

{t(\"Select store\")}

\n
\n
\n \n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n options={stores}\n />\n
\n {selectedStore && (\n
\n AddCountry()}\n className=\"font-montserrat px-5 border border-transparent shadow-sm font-medium rounded-sm text-white h-10 focus:outline-none\"\n >\n \n \n \n \n {t(\"Add delivery countries\")}\n \n \n
\n )}\n
\n
\n {selectedStore && (\n <>\n \n {renderModalContent()}\n \n
\n
\n

\n {countryText}\n

\n
\n\n
\n
\n {selectedRowKeys?.length > 0 && (\n \n {t(\"Edit\")}\n {`${\n selectedRowKeys?.length > 0\n ? `(${selectedRowKeys?.length})`\n : \" \"\n } `}\n \n )}\n\n {selectedRowKeys?.length > 0 && (\n deleteCountry()}\n >\n {t(\"Delete\")}\n {`${\n selectedRowKeys?.length > 0\n ? `(${selectedRowKeys.length})`\n : \" \"\n } `}\n \n )}\n
\n
\n \n \n \n \n
\n
\n
{\" \"}\n
\n \n
\n \n )}\n
\n
\n \n );\n}\n\nexport default CountriesTable;\n","import React, { useEffect } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport PageHeading from \"components/PageHeading\";\nimport CountriesTable from \"../components/CountriesTable\";\nimport { apiSlice } from \"redux/Api.Slice\";\nimport { AreasAction } from \"redux/actions\";\nimport { useGetAddedCountriesMutation } from \"redux/shipping-methods/shipping-service\";\nimport { UTILS } from \"utils\";\nimport { LoaderAction } from \"redux/actions\";\nconst ManageCountries = () => {\n const [trigger] = apiSlice.endpoints.getBuisnessAreas.useLazyQuery();\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const [getAddedCountries] = useGetAddedCountriesMutation();\n const { selectedStore, syncData } = useSelector(\n (state) => state.AreasReducer\n );\n\n const getBussinessAreas = UTILS.withTryCatch(async () => {\n dispatch(LoaderAction.setLoading(true));\n\n const { data } = await trigger();\n if (data?.success === 1 && data.data) {\n dispatch(AreasAction.setFetchedAreas(data.data));\n getCountries(data.data);\n } else {\n console.error(\"countries error\");\n }\n dispatch(LoaderAction.setLoading(false));\n });\n\n useEffect(() => {\n getBussinessAreas();\n }, [selectedStore?.value, syncData]);\n\n const getCountries = UTILS.withTryCatch(async (shippingData) => {\n dispatch(LoaderAction.setLoading(true));\n\n const userDetail = UTILS.getCurrentUser();\n if (selectedStore?.value && userDetail) {\n const obj = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n language: \"EN\",\n };\n const data = await getAddedCountries(obj).unwrap();\n\n if (data?.success === 1) {\n const listOfCountries = UTILS.getCustomizedCountryList(\n shippingData,\n data.data.areas\n );\n if (listOfCountries) {\n dispatch(AreasAction.setcustomizedCountryList(listOfCountries));\n }\n }\n }\n dispatch(LoaderAction.setLoading(false));\n });\n\n return (\n
\n \n
\n \n
\n
\n );\n};\nexport default ManageCountries;\n","import { Spin } from \"antd\";\nimport Modal from \"components/Modal\";\nimport React from \"react\";\nconst AlertBox = (props) => {\n return (\n \n
\n

\n {props?.modal?.description}\n

\n\n
\n \n {props?.modal?.successBtnText}\n \n\n {props?.modal?.cancelBtnText && (\n \n {props?.modal?.cancelBtnText}\n \n )}\n
\n
\n
\n );\n};\n\nfunction ModalBox({ open, modal, setModal, PressYes, closeModal, isLoading }) {\n return (\n
\n {}}\n >\n \n \n
\n );\n}\n\nexport default ModalBox;\n","import RadioButton from \"components/RadioButton\";\nimport React from \"react\";\nimport { CITY } from \"svg/SVGs\";\nimport { FLAG } from \"svg/SVGs\";\nimport { AREA } from \"svg/SVGs\";\nimport { Button } from \"antd\";\nimport { CONSTANTS as C } from \"config\";\nimport { MAP } from \"svg/SVGs\";\nimport { useTranslation } from \"react-i18next\";\nimport * as R_CONST from \"routes/Constants\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\n\nfunction ShippingMethodsList({ method, toggleShippingMethod, CatalogueType }) {\n const { t } = useTranslation();\n const router = useHistory();\n const goToAreas = (shippingMethodName) => {\n console.log(\"goToAreas\", shippingMethodName);\n if (shippingMethodName) {\n let routeUrl = {\n AREA_BASED_DELIVERY_METHOD: R_CONST.ADD_AREA,\n CITY_BASED_DELIVERY_METHOD: R_CONST.ADD_CITY,\n COUNTRY_BASED_DELIVERY_METHOD: R_CONST.ADD_COUNTRY,\n MAPPED_AREA_BASED_DELIVERY_METHOD: \"/app/dashboard/mapped-area-method\",\n };\n router.push(routeUrl[shippingMethodName]);\n }\n };\n\n const isAllowed = (method) => {\n console.log(\"isAllowed\", CatalogueType, method);\n //case 1: if outlet based and method is not area based\n //case Not disable if if any type of catalouge and method name is mapped area based\n if (CatalogueType === C.OUTLET_BASED) {\n if (\n method === C.SHIPPING_METHODS.CITY_BASED ||\n method === C.SHIPPING_METHODS.COUNTRY_BASED\n )\n return true;\n else return false;\n } else return false;\n };\n\n return (\n \n
\n
\n {method?.methodName === C.SHIPPING_METHODS.AREA_BASED && }\n {method?.methodName === C.SHIPPING_METHODS.COUNTRY_BASED && }\n {method?.methodName === C.SHIPPING_METHODS.CITY_BASED && }\n {method?.methodName === C.SHIPPING_METHODS.MAPPED_AREA_BASED && (\n \n )}\n
\n\n
\n {t(C.SHIPPING_METHODS[method?.methodName])}\n
\n
\n
\n goToAreas(method?.methodName)}\n >\n {t(\"Edit\")}\n \n
\n \n
\n
\n \n );\n}\n\nexport default ShippingMethodsList;\n","import React from \"react\";\nimport { SVG_TICK, SVG_PLUS } from \"svg/SVGs\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction AreaBusinessIcon() {\n const { t } = useTranslation();\n return (\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
    \n
  • \n \n {t(\"Delivery limited by zones\")}\n
  • \n
  • \n \n {t(\"Delivery limited by order subtotal\")}\n
  • \n
  • \n {t(\"Custom rates\")}\n
  • \n
\n
\n
\n );\n}\n\nexport default AreaBusinessIcon;\n","import React, { useEffect, useState } from \"react\";\nimport { Button, Spin } from \"antd\";\nimport { SVG_PLUS } from \"svg/SVGs\";\nimport { useHistory } from \"react-router\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n useGetBrandInfoWithIDMutation,\n useUpdateShippingMethodStatusMutation,\n} from \"redux/shipping-methods/shipping-service\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { SettingsAction } from \"redux/actions\";\nimport AlertBox from \"components/AlertBox\";\nimport useUserType from \"hooks/useUserType\";\nimport ShippingMethodsList from \"../common/ShippingMethodsList\";\nimport AreaBusinessIcon from \"../common/AreaBusinessIcon\";\n\nconst ManageDelivery = () => {\n const router = useHistory();\n const userType = useUserType();\n const { t } = useTranslation();\n const [modal, setModal] = useState({\n switchModal: false,\n disableModal: false,\n title: \"\",\n description: \"\",\n switch: false,\n data: {},\n successBtnText: \"\",\n cancelBtnText: \"\",\n });\n const dispatch = useDispatch();\n const { CatalogueType } = useSelector((state) => state?.SettingsReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [getBrandInfoWithID] = useGetBrandInfoWithIDMutation();\n const [updateShippingMethodStatus] = useUpdateShippingMethodStatusMutation();\n const [shippingInfo, setshippingInfo] = useState({\n activeMethod: {},\n brandInfo: {},\n });\n\n /**\n * It fetches the brand information from the backend.\n */\n const getBrandInfowithId = async () => {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getBrandInfoWithID({\n brandId: userDetail.brandId,\n });\n if (\n data?.success === 1 &&\n data?.data?.brand &&\n data?.data?.brand?.catalogueType\n ) {\n setshippingInfo((prevState) => ({\n ...prevState,\n brandInfo: data?.data?.brand,\n }));\n dispatch(\n SettingsAction.updateCatalogueType(data.data.brand.catalogueType)\n );\n handleMethodState(data.data);\n }\n };\n useEffect(() => {\n getBrandInfowithId();\n }, []);\n\n /* toggling the shipping method. */\n const toggleShippingMethod = UTILS.withTryCatch(async (key, val) => {\n if (returnButtonStatus(key, val)) return;\n const userDetail = UTILS.getCurrentUser();\n let obj = {\n brandId: userDetail.brandId,\n deliveryMethod: key,\n deliveryMethodStatus: val,\n };\n setModal((prevState) => ({\n ...prevState,\n data: obj,\n }));\n\n // disabing active method\n if (shippingInfo?.activeMethod?.methodName && !val) {\n setModal((prevState) => ({\n ...prevState,\n disableModal: true,\n switchModal: false,\n description: t(\"Do you want to disable the active delivery method\"),\n successBtnText: t(\"yes\"),\n cancelBtnText: t(\"no\"),\n }));\n }\n\n if (val) {\n // switch to other method\n if (shippingInfo?.activeMethod?.methodName) {\n let des = t(\"It is possible to enable only one delivery method\");\n setModal((prevState) => ({\n ...prevState,\n switchModal: true,\n disableModal: false,\n description: des,\n successBtnText: t(\"okay\"),\n cancelBtnText: false,\n }));\n }\n //activating new method\n else {\n await updateShippingMethodStatus(obj);\n }\n }\n getBrandInfowithId();\n });\n\n const disableMethod = async () => {\n await updateShippingMethodStatus(modal.data);\n await getBrandInfowithId();\n closeModal();\n };\n\n const closeModal = () => {\n setModal((prevState) => ({\n ...prevState,\n switchModal: false,\n disableModal: false,\n }));\n };\n\n // setting the active shipping method in state\n const handleMethodState = (data) => {\n setshippingInfo((prevState) => ({\n ...prevState,\n activeMethod:\n data?.brand?.deliveryMethods?.find((method) => method?.status) ?? {},\n }));\n };\n\n const returnButtonStatus = (shippingMethodName, toggleSwitchValue) => {\n if (userType === C.USER_TYPE.MANAGER) return true;\n return !!isAllowed(shippingMethodName) && toggleSwitchValue;\n };\n\n const isAllowed = (method) => {\n if (CatalogueType === C.OUTLET_BASED) {\n if (\n method === C.SHIPPING_METHODS.CITY_BASED ||\n method === C.SHIPPING_METHODS.COUNTRY_BASED\n )\n return true;\n else return false;\n } else return false;\n };\n\n return (\n \n \n \n
\n

{t(\"Delivery Methods\")}

\n
\n
\n

\n {t(\"Add a new delivery method\")}\n

\n

\n {t(\n \"Select how you’ll be getting your products to customers. Add your preferred local delivery method.\"\n )}\n

\n
\n
\n {shippingInfo?.brandInfo?.deliveryMethods?.length >= 1 && (\n
\n
\n
\n {shippingInfo?.brandInfo?.deliveryMethods?.map((obj, i) => (\n \n ))}\n
\n
\n
\n )}\n\n
\n
\n

\n {t(\"Local Delivery\")}\n

\n

\n {t(\n \"Deliver orders yourself in city and suburbs or outsource delivery to the services you trust. Set when, where, and under which conditions you deliver.\"\n )}\n

\n \n router.push(\"/app/dashboard/local-delivery-methods\")\n }\n >\n \n {t(\"Add Delivery\")}\n \n
\n \n
\n
\n
\n
\n
\n );\n};\n\nexport default ManageDelivery;\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport { useHistory } from \"react-router\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { RedoOutlined } from \"@ant-design/icons\";\nconst ManagePaymentLinkHeader = ({ getAllPaymentLinks }) => {\n const router = useHistory();\n const { t } = useTranslation();\n\n const goToAddPaymentLinkPage = () => {\n router.push(\"/app/dashboard/create-payment-links\");\n };\n\n return (\n
\n
\n

\n {t(\"Payment Links\")}\n

\n

\n {t(\"Manage all your payment links here.\")}\n

\n
\n\n
\n \n \n \n \n\n {t(\"Refresh\")}\n \n\n \n \n \n \n \n \n \n \n \n {t(\"Create Payment Link\")}\n \n \n
\n
\n );\n};\n\nexport default ManagePaymentLinkHeader;\n","import React from \"react\";\nimport { Table } from \"antd\";\nimport { useHistory } from \"react-router-dom\";\nimport Card from \"components/Card\";\nimport moment from \"moment\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst AllPaymentLinksTable = ({ LINKS }) => {\n const history = useHistory();\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const PAID_STATUS = \"PAID\";\n const renderStatus = (val) => (\n \n {val === PAID_STATUS ? t(\"Paid\") : t(\"Pending\")}\n \n );\n\n const redirectToPaymentLink = (paymentLink) => {\n history.push(\"/app/dashboard/payment-link-detail\", {\n paymentLink: paymentLink,\n });\n };\n const getPaymentLinkUrl = (val, row) => {\n const userDetail = UTILS.getCurrentUser();\n const storeFrontURL = userDetail?.storeFrontURL;\n if (storeFrontURL && row?.cartId && userDetail?.temporaryDomainName) {\n const paymentLink = `${storeFrontURL}${userDetail.temporaryDomainName}/payment-link/${row?.cartId}`;\n navigator.clipboard.writeText(paymentLink);\n UTILS.successNotification(t(\"Copied to Clipboard\"));\n }\n };\n const renderActions = (val, row, index) => {\n return (\n
\n {\n redirectToPaymentLink(row);\n }}\n data-v-1826c20e=\"\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className=\"w-5 h-5 inline-block cursor-pointer hover:text-blue-600\"\n >\n \n \n \n\n {\n getPaymentLinkUrl(val, row);\n }}\n xmlns=\"http://www.w3.org/2000/svg\"\n className=\"w-5 h-5 inline-block mx-2 cursor-pointer hover:text-blue-500\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n >\n \n \n \n
\n );\n };\n const columns = [\n {\n width: \"25%\",\n title: t(\"Store name\"),\n dataIndex: \"storeName\",\n align: \"initial\",\n key: \"storeName\",\n },\n {\n title: t(\"Payment link id\"),\n dataIndex: \"cartId\",\n key: \"cartId\",\n sorter: {\n compare: (a, b) => a.cartId - b.cartId,\n multiple: 3,\n },\n },\n {\n key: t(\"Amount\"),\n title: t(\"Amount\"),\n dataIndex: \"amount\",\n sorter: {\n compare: (a, b) => a.amount - b.amount,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n title: t(\"Creation date\"),\n dataIndex: \"linkCreationDate\",\n key: \"linkCreationDate\",\n render: (val, row, index) => {\n return moment.unix(row.linkCreationDate).format(\"DD/MM/YYYY\");\n },\n sorter: {\n compare: (a, b) => a.linkCreationDate - b.linkCreationDate,\n multiple: 3,\n },\n },\n\n {\n title: t(\"Created by\"),\n dataIndex: \"createdBy\",\n key: \"createdBy\",\n },\n {\n title: t(\"Status\"),\n dataIndex: \"linkStatus\",\n key: \"status\",\n render: renderStatus,\n },\n\n {\n title: t(\"Action\"),\n dataIndex: \"action\",\n key: \"action\",\n render: renderActions,\n },\n ];\n\n return (\n
\n
\n \n
\n \n
\n
\n
\n
\n );\n};\nexport default AllPaymentLinksTable;\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport ManagePaymentLinkHeader from \"../components/ManagePaymentLinkHeader\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport AllPaymentLinksTable from \"../components/AllPaymentLinksTable\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nconst ViewAllPaymentLinks = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [paymentLinks, setPaymentLinks] = useState([]);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [searchTerm, setSearch] = useState(\"\");\n\n const getAllPaymentLinks = useCallback(async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_ALL_PAYMENT_LINKS({\n brandId: userDetail.brandId,\n });\n if (result?.success === 1 && result?.data) {\n setPaymentLinks(result.data);\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n } catch (e) {\n UTILS.errorNotification(errorHandler(e));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n }, []);\n\n useEffect(() => {\n getAllPaymentLinks();\n\n return () => {\n setPaymentLinks([]);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const LINKS = useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return paymentLinks;\n }\n return paymentLinks.filter((link) => {\n const cartIdString = link.cartId.toString();\n return cartIdString.includes(searchTerm);\n });\n }, [paymentLinks, searchTerm]);\n\n /**\n * sets the value of `e` to the `search` variable.\n */\n const handSearch = (e) => {\n setSearch(e);\n };\n\n return (\n
\n \n
\n
\n
\n \n \n \n handSearch(e.target.value)}\n />\n
\n
\n
\n \n \n \n
\n
\n );\n};\nexport default ViewAllPaymentLinks;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nconst getLabel = (label) => {\n if (label !== \"\") {\n return (\n \n );\n }\n};\n\nconst SelectInput = ({\n name,\n options,\n label,\n register,\n value,\n error,\n defaultSelection,\n ...rest\n}) => {\n const { t } = useTranslation();\n const mandatoryLabel = getLabel(label);\n return (\n <>\n {mandatoryLabel}\n \n \n {options.map((option) => (\n \n {option.label}\n \n ))}\n \n \n );\n};\n\nSelectInput.propTypes = {\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n options: PropTypes.array.isRequired,\n register: PropTypes.func.isRequired,\n value: PropTypes.string.isRequired,\n defaultSelection: PropTypes.string.isRequired,\n rest: PropTypes.object,\n};\n\nexport default SelectInput;\n","import React from \"react\";\nimport { useHistory } from \"react-router\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport BackArrow from \"features/icons/BackArrow\";\nexport const BackButton = () => {\n const router = useHistory();\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const back = () => {\n router.push(\"/app/dashboard/payment-links\");\n };\n return (\n
\n \n \n \n \n \n {t(\"Payment Links\")}\n \n
\n \n );\n};\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst getMandatoryField = (man) => {\n if (man) {\n return *;\n }\n};\n\nconst getFieldError = (error) => {\n if (error) {\n return {error} ;\n }\n};\nconst TextArea = (props) => {\n const mandatoryField = getMandatoryField(props.mandatory);\n const fieldError = getFieldError(props.error);\n return (\n <>\n \n \n
{fieldError}
\n \n );\n};\n\nTextArea.propTypes = {\n mandatory: PropTypes.bool,\n error: PropTypes.string,\n handleValues: PropTypes.func,\n placeHolder: PropTypes.string,\n label: PropTypes.string,\n keyVal: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport default TextArea;\n","import React from \"react\";\nimport SelectInput from \"./SelectInput\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { BackButton } from \"./BackButton\";\nimport TextArea from \"components/useForm/TextArea\";\nimport PriceInput from \"components/useForm/PriceInput\";\n\nexport const AddPaymentLink = ({\n stores,\n handleSubmit,\n register,\n Controller,\n errors,\n control,\n watch,\n setValue,\n trigger,\n}) => {\n const { t } = useTranslation();\n\n let purposeOfPayment = watch(\"purposeOfPayment\");\n let message = watch(\"message\");\n\n const handleValues = (key, value) => {\n setValue(key, value);\n trigger(key);\n };\n return (\n
\n \n
\n

\n {t(\"Create payment link\")}\n

\n

\n {t(\n \"Specify the amount to be paid and the purpose of payment to generate a link for your customers. Be as clear as possible, so they understand what they're paying for.\"\n )}\n

\n
\n
\n
\n
\n
\n \n
\n
\n
\n \n
\n (\n \n )}\n />\n
\n {errors.storeSelection?.message && (\n
\n {errors.storeSelection?.message}{\" \"}\n
\n )}\n
\n\n
\n \n
\n {`${t(\"Characters remaining to type\")}: ${\n purposeOfPayment?.length\n }/300`}\n
\n
\n
\n \n
\n {`${t(\"Characters remaining to type\")}: ${message?.length}/300`}\n
\n
\n
\n
\n \n {t(\"Create payment link\")}\n \n
\n
\n
\n \n
\n );\n};\n","import { useState, useEffect } from \"react\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nconst useAllStores = () => {\n const [loading, setLoading] = useState(false);\n const [stores, setStores] = useState([]);\n\n const getCurrentUserStores = async () => {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.GET_CRRENT_USER_STORES({\n token: userDetail.token,\n language: \"EN\",\n });\n if (result.success === 1) {\n if (result.data.length > 0) convertStoresToArray(result.data);\n } else {\n }\n setLoading(false);\n };\n\n const convertStoresToArray = (data) => {\n let s = [];\n if (data) {\n data.map((item, index) => {\n return s.push({\n value: item.baseLanguage ? item._id : item?.storeId._id,\n label: item.baseLanguage\n ? item.baseLanguage.name\n : item?.storeId?.baseLanguage?.name,\n key: index,\n });\n });\n }\n setStores(s);\n setLoading(false);\n };\n\n useEffect(() => {\n getCurrentUserStores();\n }, []);\n\n return { stores, loading };\n};\n\nexport default useAllStores;\n","import React, { useEffect } from \"react\";\nimport { AddPaymentLink } from \"../components/AddPaymentLink\";\nimport useAllStores from \"../hooks/useAllStores\";\nimport { Spin } from \"antd\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { useForm, Controller } from \"react-hook-form\";\nimport { LoaderAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst CreatePaymentLinks = () => {\n const { stores, loading } = useAllStores();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const history = useHistory();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const {\n register,\n handleSubmit,\n control,\n getValues,\n watch,\n setValue,\n trigger,\n formState: { errors, isSubmitting },\n } = useForm({}, []);\n\n useEffect(() => {\n if (isSubmitting) {\n const fields = [\"amount\", \"purposeOfPayment\", \"message\"];\n fields.forEach((field) => {\n setValue(field, getValues(field).trim());\n });\n }\n }, [isSubmitting]);\n\n const onSubmit = handleSubmit(async (data) => {\n dispatch(LoaderAction.setLoading(true));\n const { label, value } = JSON.parse(data.storeSelection);\n let obj = {\n storeId: value,\n storeName: label,\n amount: Number(Number(data.amount)?.toFixed(2)),\n currency: \"AED\",\n purposeOfPayment: data.purposeOfPayment,\n message: data.message,\n };\n try {\n const userDetail = UTILS.getCurrentUser();\n const result = await API.CREATE_PAYMENT_LINK({\n brandId: userDetail.brandId,\n language: currentLanguage,\n data: obj,\n });\n if (result?.success === 1 && result?.data) {\n UTILS.handleSuccesNotification(t(errorHandler(result?.message)));\n redirectToPaymentLink(result.data);\n } else {\n UTILS.errorNotification(errorHandler(errorHandler(result?.message)));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(errorHandler(error?.error)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n });\n const redirectToPaymentLink = (paymentLink) => {\n history.push(\"/app/dashboard/payment-link-detail\", {\n paymentLink: paymentLink,\n });\n };\n return (\n
\n \n \n \n
\n );\n};\n\nexport default CreatePaymentLinks;\n","import React from \"react\";\nimport { Table } from \"antd\";\nimport Card from \"components/Card\";\nimport moment from \"moment\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst ViewPaymentTable = ({ paymentLink }) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const PAID_STATUS = t(\"PAID\");\n const renderStatus = (val) => (\n \n {val === PAID_STATUS ? t(\"Paid\") : t(\"Pending\")}\n \n );\n const columns = [\n {\n title: t(\"Created by\"),\n dataIndex: \"createdBy\",\n key: \"name\",\n },\n {\n title: t(\"Creation date\"),\n dataIndex: \"paymentDate\",\n align: \"initial\",\n key: \"paymentDate\",\n render: (val, row, index) => {\n return moment.unix(row.linkCreationDate).format(\"DD/MM/YYYY\");\n },\n },\n {\n title: t(\"Amount\"),\n dataIndex: \"amount\",\n key: \"amount\",\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n title: t(\"Payment link id\"),\n dataIndex: \"cartId\",\n key: \"paymentId\",\n },\n {\n title: t(\"Status\"),\n dataIndex: \"linkStatus\",\n key: \"status\",\n render: renderStatus,\n },\n ];\n\n return (\n
\n \n
\n {paymentLink && (\n \n )}\n
\n
\n
\n );\n};\n\nexport default ViewPaymentTable;\n","import React, { useEffect, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport { BackButton } from \"./BackButton\";\nimport moment from \"moment\";\nimport ViewPaymentTable from \"./ViewPaymentTable\";\nimport { UTILS } from \"utils\";\nimport { useSelector } from \"react-redux\";\nconst ViewPaymentLink = () => {\n const history = useHistory();\n const { t } = useTranslation();\n const [paymentLink, setPaymentLink] = useState({});\n const [loading, setLoading] = useState(false);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n useEffect(() => {\n setLoading(true);\n if (history?.location?.state) {\n setPaymentLink(history.location.state.paymentLink);\n }\n setLoading(false);\n }, [history.location.state, paymentLink]);\n\n const getPaymentLinkUrl = (cartId) => {\n const userDetail = UTILS.getCurrentUser();\n const storeFrontURL = userDetail?.storeFrontURL;\n if (storeFrontURL && cartId && userDetail?.temporaryDomainName) {\n const link = `${storeFrontURL}${userDetail.temporaryDomainName}/payment-link/${cartId}`;\n return link;\n }\n };\n\n const shareonWhatsapp = (link) => {\n const url = getPaymentLinkUrl(paymentLink?.cartId);\n const webWhastsappLinkUrl = `https://wa.me/?text=${url}`;\n window.open(webWhastsappLinkUrl, \"_blank\");\n };\n const copyLink = (link) => {\n const linkurl = getPaymentLinkUrl(paymentLink?.cartId);\n navigator.clipboard.writeText(linkurl);\n UTILS.successNotification(t(\"Copied to Clipboard\"));\n };\n\n const PaymentLinkUrl = ({ cartId }) => {\n if (getPaymentLinkUrl(cartId)) {\n const url = getPaymentLinkUrl(cartId);\n return (\n

\n {t(\"Link\")} : \n \n {url}\n \n

\n );\n } else {\n return null;\n }\n };\n\n return (\n
\n
\n \n\n \n
\n
\n

\n {t(\"Payment link id\")} #{paymentLink?.cartId}\n

\n
\n
\n
\n
\n

\n {moment\n .unix(paymentLink?.linkCreationDate)\n .format(\"DD/MM/YYYY\")}\n

\n

\n {new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(paymentLink?.amount || 0)}\n

\n
\n
\n

{t(\"Purpose of payment\")}

\n

{paymentLink?.purposeOfPayment}

\n
\n
\n

{t(\"Message\")}

\n

{paymentLink?.message}

\n
\n
\n
\n

{t(\"Store name\")}

\n

\n {paymentLink?.storeName}\n

\n
\n
\n

\n {t(\"Created by\")}\n

\n

{paymentLink?.createdBy}

\n
\n
\n
\n \n
\n copyLink(paymentLink)}\n >\n {t(\"Copy Link\")}\n \n {/* */}\n shareonWhatsapp(paymentLink)}\n >\n {t(\"Share link via whatsapp\")}\n \n
\n
\n
\n \n
\n
\n
\n );\n};\n\nexport default ViewPaymentLink;\n","import React from \"react\";\nimport ViewPaymentLink from \"../components/ViewPaymentLink\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\nimport usePushBack from \"hooks/usePushBack\";\n\nconst ViewPaymentLinkInfo = () => {\n const router = useHistory();\n usePushBack(\n \"/app/dashboard/payment-links\",\n router?.location?.state?.paymentLink\n );\n return (\n
\n \n
\n );\n};\n\nexport default ViewPaymentLinkInfo;\n","import React, { useMemo, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\nimport { Button, Card, Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport SearchInput from \"components/SearchInput\";\n\nconst ModifiersList = ({ modifiers, deleteModifier }) => {\n const router = useHistory();\n const { t } = useTranslation();\n\n const updateM = (rowData) => {\n router.push({\n pathname: \"/app/dashboard/update-modifier\",\n state: {\n modifier: rowData,\n },\n });\n };\n\n const renderActions = (value, rowData, index) => {\n return (\n
\n updateM(rowData)}\n >\n {t(\"View\")}\n \n deleteModifier(rowData)}\n >\n {t(\"Delete\")}\n \n
\n );\n };\n\n const columns = [\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n align: \"initial\",\n render: (value, rowData, index) => {\n return (\n

\n {value?.name}\n

\n );\n },\n },\n {\n title: t(\"Minimum Order Quantity\"),\n width: \"10%\",\n dataIndex: \"minimumOrderQuantity\",\n align: \"initial\",\n },\n {\n title: t(\"Maximum Order Quantity\"),\n dataIndex: \"maximumOrderQuantity\",\n width: \"10%\",\n align: \"initial\",\n },\n\n {\n title: t(\"Actions\"),\n dataIndex: \"actions\",\n align: \"initial\",\n width: \"10%\",\n render: renderActions,\n },\n ];\n\n const createModifier = () => {\n router.push({\n pathname: \"/app/dashboard/add-new-modifier\",\n });\n };\n\n const [searchTerm, setSearch] = useState(null);\n\n const FilteredData = useMemo(() => {\n let searchTermLower = searchTerm?.toLowerCase()?.trim();\n\n if (searchTerm === \"\" || searchTerm === null) {\n return modifiers;\n }\n return modifiers?.filter((group) =>\n group.baseLanguage?.name?.toLowerCase()?.includes(searchTermLower)\n );\n }, [modifiers, searchTerm]);\n\n return (\n
\n
\n
\n

\n {t(\"Modifiers\")}\n

\n
\n
\n
\n \n
\n
\n createModifier()}\n >\n {t(\"Create Modifier\")}\n \n
\n
\n
\n \n
\n \n
\n
\n
\n );\n};\nexport default ModifiersList;\nModifiersList.propTypes = {\n item: PropTypes.object,\n};\n","import React, { useEffect, useState } from \"react\";\nimport PageHeading from \"components/PageHeading\";\nimport ModifiersList from \"./components/ModifierList\";\nimport { Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDeleteModifierMutation } from \"redux/modifiers/service\";\nimport { useGetModifierListMutation } from \"redux/modifiers/service\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nimport Modal from \"components/Modal\";\nconst Modifiers = () => {\n const { t } = useTranslation();\n const [getModifierList] = useGetModifierListMutation();\n const [deleteModifier] = useDeleteModifierMutation();\n const [modifiers, setmodifiers] = useState([]);\n const [loading, setLoading] = useState(false);\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n deleteItemIndex: null,\n item: null,\n });\n const getAllModifers = async () => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getModifierList({\n brandId: userDetail.brandId,\n });\n if (data?.success === 1 && data?.data) {\n setmodifiers(data.data);\n }\n } catch (error) {\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getAllModifers();\n }, []);\n\n const deleteSingleModifier = async (rowData) => {\n try {\n const item = modifiers[deleteModal.deleteItemIndex];\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const data = await deleteModifier({\n brandId: userDetail.brandId,\n modifierId: item._id,\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message ?? t(\"Modifier Deleted Successfully\")\n );\n let arr = [...modifiers];\n arr.splice(deleteModal.deleteItemIndex, 1);\n setmodifiers(arr);\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n handleCancel();\n setLoading(false);\n }\n };\n\n const onClickDeleteButton = (row) => {\n const index = modifiers?.findIndex((obj) => obj?._id === row?._id);\n if (index !== -1) {\n const item = modifiers[index];\n setDeleteModal({ isOpen: true, deleteItemIndex: index, item: item });\n }\n };\n\n const handleCancel = () => {\n setDeleteModal({ isOpen: false, deleteItemIndex: -1, item: null });\n };\n\n return (\n \n
\n \n \n \n \n
\n \n
\n
\n
\n );\n};\n\nexport default Modifiers;\n","import React, { useMemo, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\nimport { Button, Card, Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport SearchInput from \"components/SearchInput\";\nconst ModifierGroupList = ({ groups, deleteModifierGroup }) => {\n const router = useHistory();\n const { t } = useTranslation();\n\n const updateM = (rowData) => {\n router.push({\n pathname: \"/app/dashboard/update-modifier-group\",\n state: {\n modifier: rowData,\n },\n });\n };\n\n const renderActions = (value, rowData, index) => {\n return (\n
\n updateM(rowData)}\n >\n {t(\"View\")}\n \n deleteModifierGroup(rowData)}\n >\n {t(\"Delete\")}\n \n
\n );\n };\n\n const columns = [\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n align: \"initial\",\n render: (value, rowData, index) => {\n return (\n

\n {value?.name}\n

\n );\n },\n },\n {\n title: t(\"Selection Type\"),\n dataIndex: \"isSingleSelection\",\n align: \"initial\",\n width: \"10%\",\n render: (value, rowData, index) => {\n return value ? t(\"Single\") : t(\"Multiple\");\n },\n },\n {\n title: t(\"Max Allowed Options\"),\n width: \"10%\",\n dataIndex: \"maximumAllowedSelection\",\n align: \"initial\",\n },\n {\n title: t(\"Required\"),\n dataIndex: \"isRequired\",\n width: \"10%\",\n align: \"initial\",\n render: (value, rowData, index) => {\n return value ? t(\"Yes\") : t(\"No\");\n },\n },\n {\n title: t(\"Actions\"),\n dataIndex: \"actions\",\n width: \"10%\",\n align: \"initial\",\n render: renderActions,\n },\n ];\n\n const createModifier = () => {\n router.push({\n pathname: \"/app/dashboard/create-modifier-group\",\n });\n };\n\n const [searchTerm, setSearch] = useState(null);\n\n const FilteredData = useMemo(() => {\n let searchTermLower = searchTerm?.toLowerCase()?.trim();\n if (searchTerm === \"\" || searchTerm === null) {\n return groups;\n }\n return groups?.filter((group) =>\n group?.baseLanguage?.name?.toLowerCase()?.includes(searchTermLower)\n );\n }, [groups, searchTerm]);\n\n return (\n
\n
\n
\n

\n {t(\"Modifier Groups\")}\n

\n
\n
\n
\n \n
\n
\n createModifier()}\n >\n {t(\"Create Modifier Group\")}\n \n
\n
\n
\n \n
\n \n
\n
\n
\n );\n};\nexport default ModifierGroupList;\nModifierGroupList.propTypes = {\n item: PropTypes.object,\n};\n","import React, { useEffect, useState } from \"react\";\nimport PageHeading from \"components/PageHeading\";\nimport { Spin } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useGetModifierGroupsMutation } from \"redux/modifiers/service\";\nimport ModifierGroupList from \"./components/ModifierGroupList\";\nimport { UTILS } from \"utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDeleteModifierGroupMutation } from \"redux/modifiers/service\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nimport Modal from \"components/Modal\";\nconst ModifierGroup = () => {\n const { t } = useTranslation();\n const [groups, setGroups] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const [getModifierGroups] = useGetModifierGroupsMutation();\n const [deleteModifierGroup] = useDeleteModifierGroupMutation();\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n deleteItemIndex: null,\n item: null,\n });\n\n const getAllModiferGroups = async () => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getModifierGroups({\n brandId: userDetail.brandId,\n });\n if (data?.success === 1) {\n setGroups(data.data);\n }\n } catch (error) {\n } finally {\n setLoading(false);\n handleCancel();\n }\n };\n\n useEffect(() => {\n getAllModiferGroups();\n }, []);\n\n const deleteModifierGrp = async () => {\n try {\n setLoading(true);\n const item = groups[deleteModal.deleteItemIndex];\n const userDetail = UTILS.getCurrentUser();\n const data = await deleteModifierGroup({\n brandId: userDetail.brandId,\n modifierGroupId: item._id,\n });\n if (data?.data?.success === 1) {\n let arr = [...groups];\n arr.splice(deleteModal.deleteItemIndex, 1);\n setGroups(arr);\n UTILS.successNotification(\n data?.data?.message ?? t(\"Modifier Group Deleted Successfully\")\n );\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n await getAllModiferGroups();\n setLoading(false);\n }\n };\n\n const onClickDeleteButton = (row) => {\n const index = groups.findIndex((obj) => obj?._id === row?._id);\n if (index !== -1) {\n const item = groups[index];\n setDeleteModal({ isOpen: true, deleteItemIndex: index, item: item });\n }\n };\n\n const handleCancel = () => {\n setDeleteModal({ isOpen: false, deleteItemIndex: -1, item: null });\n };\n\n return (\n \n
\n \n \n \n \n
\n \n
\n
\n
\n );\n};\n\nexport default ModifierGroup;\n","import React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport { useHistory } from \"react-router-dom\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport RadioButton from \"components/RadioButton\";\nimport SectionHeading from \"components/SectionHeading\";\nimport SelectInput from \"components/SelectInput\";\nimport TextInput from \"components/TextInput\";\nimport { UTILS } from \"utils\";\nimport { useCreateModifierGroupMutation } from \"redux/modifiers/service\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst CreateModifierGroup = () => {\n const history = useHistory();\n const { t } = useTranslation();\n const [loading, setLoading] = useState(false);\n const [createModifierGroup] = useCreateModifierGroupMutation();\n const [modifierGroup, setModifierGroup] = useState({\n values: {\n isSingleSelection: false,\n maximumAllowedSelection: 0,\n minimumAllowedSelection: 0,\n baseLanguage: {\n name: \"\",\n },\n translations: {\n en: {\n name: \"\",\n },\n ar: {\n name: \"\",\n },\n },\n },\n errors: {\n minimumAllowedSelection: \"\",\n maximumAllowedSelection: \"\",\n baseLanguage: {\n name: \"\",\n },\n isSingleSelection: \"\",\n },\n });\n\n const handleValues = (key, val) => {\n setModifierGroup((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const handleText = (key, val) => {\n setModifierGroup((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n [key]: val,\n },\n translations: {\n en: {\n name: val,\n },\n ar: {\n name: val,\n },\n },\n },\n errors: {\n ...prevState.errors,\n baseLanguage: {\n [key]: \"\",\n },\n },\n }));\n };\n\n const handleSelection = (key, val) => {\n modifierGroup.values.maximumAllowedSelection = 1;\n\n setModifierGroup((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val === \"single\" ? true : false,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const addNewModifierGroup = async () => {\n const { isValid } = validateInputs();\n if (!isValid) return;\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const data = await createModifierGroup({\n brandId: userDetail.brandId,\n ...modifierGroup.values,\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message ?? t(\"Modifier Group Created Successfully\")\n );\n history.push(\"/app/dashboard/modifier-group\");\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const updatePrice = (key, val) => {\n const value = UTILS.NumberConversion(val);\n let Num = Number(value);\n handleValues(key, Num);\n };\n\n const seterrors = (obj) => {\n setModifierGroup((prevState) => ({\n ...prevState,\n errors: obj,\n }));\n };\n\n const validateInputs = () => {\n let isValid = true;\n let obj = {\n baseLanguage: {\n name: \"\",\n },\n isSingleSelection: \"\",\n };\n\n if (\n !modifierGroup?.values?.baseLanguage.name ||\n UTILS.hasWhiteSpace(modifierGroup?.values?.baseLanguage?.name)\n ) {\n isValid = false;\n obj.baseLanguage.name = t(\"Enter Section Name\");\n seterrors(obj);\n return { isValid, obj };\n }\n\n if (\n !modifierGroup?.values.maximumAllowedSelection ||\n UTILS.hasWhiteSpace(modifierGroup?.values.maximumAllowedSelection)\n ) {\n isValid = false;\n obj.maximumAllowedSelection = t(\"Enter Maximum Allowed Sections\");\n seterrors(obj);\n return { isValid, obj };\n }\n if (modifierGroup?.values?.maximumAllowedSelection <= 0) {\n isValid = false;\n obj.maximumAllowedSelection = t(\"Maximum selection value cannot be zero\");\n seterrors(obj);\n return { isValid, obj };\n }\n if (\n !modifierGroup.values?.maximumAllowedSelection ||\n UTILS.hasWhiteSpace(modifierGroup.values.maximumAllowedSelection)\n ) {\n isValid = false;\n obj.maximumAllowedSelection = t(\"Enter Maximum Allowed Sections\");\n seterrors(obj);\n return { isValid, obj };\n }\n if (modifierGroup?.values?.maximumAllowedSelection <= 0) {\n isValid = false;\n obj.maximumAllowedSelection = t(\"Maximum selection value cannot be zero\");\n seterrors(obj);\n return { isValid, obj };\n }\n if (\n modifierGroup?.values?.minimumAllowedSelection >\n modifierGroup?.values?.maximumAllowedSelection\n ) {\n isValid = false;\n obj.minimumAllowedSelection = t(\n \"Minimum selection value must be than less or equal to maximum selection value\"\n );\n seterrors(obj);\n return { isValid, obj };\n }\n if (modifierGroup.errors.isSingleSelection) {\n if (modifierGroup.values.minimumAllowedSelection > 1) {\n isValid = false;\n obj.minimumAllowedSelection = t(\n \"For single selection, minimum allowed selection cannot be greater than 1\"\n );\n seterrors(obj);\n return { isValid, obj };\n }\n seterrors(obj);\n return { isValid, obj };\n }\n\n return { isValid, obj };\n };\n\n return (\n
\n \n
\n \n
\n \n
\n
\n \n
\n \n
\n
\n \n \n {modifierGroup?.errors?.isSingleSelection}\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n history.goBack()}\n >\n {t(\"Back\")}\n \n addNewModifierGroup()}\n >\n {t(\"Create\")}\n \n
\n
\n
\n );\n};\n\nexport default CreateModifierGroup;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport TextInputReadOnly from \"components/TextInputReadOnly\";\nconst ViewModifier = ({ row, setViewGroup }) => {\n const { t } = useTranslation();\n\n return (\n
\n \n
\n
\n setViewGroup(false)}\n >\n \n \n \n \n \n
\n \n

\n {t(\"Modifier Detail\")}\n

\n

\n {t(\"Please enter complete details for better user experience\")}\n

\n
\n
\n
\n \n
\n
\n \n
\n\n
\n \n
\n
\n
\n {row?.imageURL ? (\n \n ) : null}\n
\n
\n
\n
\n
\n );\n};\n\nexport default ViewModifier;\n","import React, { useMemo, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { Checkbox } from \"antd\";\nimport { Button, Empty, Spin, Table } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\nimport Card from \"components/Card\";\nimport { RemoveRedEyeOutlined } from \"@material-ui/icons\";\nimport SearchInput from \"components/SearchInput\";\nimport Modal from \"components/Modal\";\nimport ViewModifier from \"../ViewModifier\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nconst AttacModifierWithGroup = ({\n MemizedModifiers,\n item,\n onClose,\n getAttachedModifers,\n}) => {\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const router = useHistory();\n const [checkedRows, setCheckedRows] = useState([]);\n\n const linkModifierGroupsWithItems = async () => {\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.LinkModifierWithGroup({\n brandId: userDetail.brandId,\n modifierGroupId: item?.values?._id,\n modifiers: checkedRows,\n });\n if (result?.success === 1) {\n UTILS.successNotification(\n result?.message ?? t(\"Attached Successfully\")\n );\n getAttachedModifers();\n onClose();\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const handleRowClick = (modifier) => {\n setCheckedRows((prevCheckedRows) => {\n const updatedArray = [...prevCheckedRows];\n\n const existingIndex = updatedArray.findIndex(\n (item) => item.modifierId === modifier?._id\n );\n\n if (existingIndex !== -1) {\n // If already selected, remove\n updatedArray.splice(existingIndex, 1);\n } else {\n // If not selected, add\n updatedArray.push({\n modifierId: modifier?._id,\n price: modifier?.price,\n });\n }\n\n return updatedArray;\n });\n };\n const Row = (value, modifier, index) => {\n return (\n row.modifierId === modifier?._id)}\n onChange={() => handleRowClick(modifier)}\n />\n );\n };\n\n const columns = [\n {\n title: t(\"Link\"),\n dataIndex: \"price\",\n align: \"center\",\n width: \"10%\",\n render: Row,\n },\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n key: \"title\",\n align: \"center\",\n render: (value, row, i) => {\n return
{value?.name}
;\n },\n },\n {\n title: t(\"Maximum Order Quantity\"),\n dataIndex: \"maximumOrderQuantity\",\n align: \"center\",\n width: \"10%\",\n },\n {\n title: t(\"Price\"),\n dataIndex: \"price\",\n width: \"10%\",\n align: \"center\",\n render: (value, row, i) => {\n return
AED {value}
;\n },\n },\n {\n title: t(\"Action\"),\n dataIndex: \"price\",\n width: \"10%\",\n align: \"center\",\n render: (index, record) => (\n {\n setViewGroup(true);\n setData(record);\n }}\n />\n ),\n },\n ];\n\n const [viewGroup, setViewGroup] = useState(false);\n const [searchTerm, setSearch] = useState(null);\n const [Data, setData] = useState({});\n\n const FilteredData = useMemo(() => {\n let searchTermLower = searchTerm?.toLowerCase()?.trim();\n if (!searchTerm) {\n return MemizedModifiers;\n }\n return MemizedModifiers?.filter((mod) => {\n return mod.baseLanguage?.name?.toLowerCase()?.includes(searchTermLower);\n });\n }, [MemizedModifiers, searchTerm]);\n\n return (\n
\n \n setViewGroup(false)}\n >\n \n \n
\n
\n

\n {t(\"Add modifiers to\")}{\" \"}\n \n {item?.values?.baseLanguage?.name}\n \n

\n
\n
\n \n
\n
\n\n {MemizedModifiers && MemizedModifiers?.length >= 1 ? (\n \n \n
\n record._id}\n />\n
\n
\n\n
\n
\n \n {t(\"Close\")}\n \n
\n
\n \n {t(\"Attach\")}\n \n
\n
\n
\n ) : (\n {t(\"No Modifier\")}}>\n router.push(\"/app/dashboard/add-new-modifier\")}\n type=\"primary\"\n >\n {t(\"Add New Modifier\")}\n \n
\n \n {t(\"Close\")}\n \n
\n
\n )}\n \n \n );\n};\nexport default AttacModifierWithGroup;\n\nAttacModifierWithGroup.propTypes = {\n onClose: PropTypes.func,\n cat: PropTypes.object,\n handleValues: PropTypes.func,\n itemsToRemove: PropTypes.array,\n};\n","import React from \"react\";\nimport { isMobile } from \"react-device-detect\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\nimport { ReactSortable } from \"react-sortablejs\";\nimport { SVG_DRAGDROP } from \"svg/SVGs\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\n\nconst ModifierView = ({ mod, unlinkModFromGroup }) => {\n const { t } = useTranslation();\n const history = useHistory();\n return (\n
\n
\n \n
\n

\n {mod?.modifierId?.baseLanguage?.name}\n

\n

\n Max Order Quantity:\n {mod?.modifierId?.maximumOrderQuantity}\n

\n\n

\n AED:\n {mod?.modifierId?.price}\n

\n\n
\n \n history.push(\"/app/dashboard/update-modifier\", {\n modifier: {\n _id: mod?.modifierId?._id,\n },\n })\n }\n >\n {t(\"Edit\")}\n \n unlinkModFromGroup(mod?.modifierId)}\n >\n {t(\"Delete\")}\n \n
\n
\n );\n};\n\nfunction ModifierDragger({\n modifiers,\n reOrderCategory,\n unlinkModFromGroup,\n setopenGroupModal,\n}) {\n const { t } = useTranslation();\n\n return (\n <>\n {modifiers && modifiers?.length >= 1 ? (\n isMobile ? (\n <>\n {modifiers &&\n modifiers?.map((cat, index) => {\n return (\n \n );\n })}\n \n ) : (\n {}}\n animation={300}\n onUpdate={(order) => {\n reOrderCategory(order);\n }}\n >\n {modifiers &&\n modifiers?.map((cat, index) => {\n return (\n \n );\n })}\n \n )\n ) : (\n
\n
\n

{t(\"There is no modifier attached\")}

\n
\n
\n )}\n \n );\n}\n\nexport default ModifierDragger;\n","import React, { useEffect, useMemo, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport Card from \"components/Card\";\nimport PageHeading from \"components/PageHeading\";\nimport SectionHeading from \"components/SectionHeading\";\nimport SelectInput from \"components/SelectInput\";\nimport TextInput from \"components/TextInput\";\nimport { UTILS } from \"utils\";\nimport { useUpdateModifierGroupMutation } from \"redux/modifiers/service\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useUnLinkModifierFromGroupMutation } from \"redux/modifiers/service\";\nimport { useGetModifierGroupMutation } from \"redux/modifiers/service\";\nimport Modal from \"components/Modal\";\nimport AttacModifierWithGroup from \"./components/AttacModifierWithGroup\";\nimport { useGetModifierListMutation } from \"redux/modifiers/service\";\nimport ModifierRowWithDrag from \"./components/ModifierRowWithDrag\";\nimport BackButton from \"components/BackButton\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nimport usePushBack from \"hooks/usePushBack\";\nimport { API } from \"api\";\nconst UpdateModiferGroup = () => {\n const _ = require(\"lodash\");\n\n const { t } = useTranslation();\n const history = useHistory();\n const [loading, setLoading] = useState(false);\n const [modifiers, setmodifiers] = useState([]);\n const [brandModifiers, setbrandModifiers] = useState([]);\n\n const [openGroupModal, setopenGroupModal] = useState(false);\n const [getModifierGroup] = useGetModifierGroupMutation();\n const [updateModifierGroup] = useUpdateModifierGroupMutation();\n const [unLinkModifierFromGroup] = useUnLinkModifierFromGroupMutation();\n const [getModifierList] = useGetModifierListMutation();\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n item: null,\n });\n const [m, setM] = useState({\n values: {\n isSingleSelection: false,\n maximumAllowedSelection: 0,\n minimumAllowedSelection: 0,\n baseLanguage: {\n name: \"\",\n },\n },\n errors: {\n minimumAllowedSelection: \"\",\n maximumAllowedSelection: \"\",\n baseLanguage: {\n name: \"\",\n },\n isSingleSelection: \"\",\n },\n });\n\n const handleValues = (key, val) => {\n setM((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const handleText = (key, val) => {\n setM((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n [key]: val,\n },\n translations: {\n en: {\n name: val,\n },\n ar: {\n name: val,\n },\n },\n },\n errors: {\n ...prevState.errors,\n baseLanguage: {\n [key]: \"\",\n },\n },\n }));\n };\n\n const handleSelection = (key, val) => {\n m.values.maximumAllowedSelection = 1;\n\n setM((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val === \"single\" ? true : false,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const seterrors = (obj) => {\n setM((prevState) => ({\n ...prevState,\n errors: obj,\n }));\n };\n\n const validateInputs = () => {\n let isValid = true;\n let obj = {\n baseLanguage: {\n name: \"\",\n },\n isSingleSelection: \"\",\n };\n\n if (\n !m?.values?.baseLanguage?.name ||\n UTILS.hasWhiteSpace(m.values.baseLanguage.name)\n ) {\n isValid = false;\n obj.baseLanguage.name = t(\"Enter Section Name\");\n seterrors(obj);\n return { isValid, obj };\n }\n\n if (\n !m.values?.maximumAllowedSelection ||\n UTILS.hasWhiteSpace(m.values.maximumAllowedSelection)\n ) {\n isValid = false;\n obj.maximumAllowedSelection = t(\"Enter Maximum Allowed Sections\");\n seterrors(obj);\n return { isValid, obj };\n }\n if (m?.values?.maximumAllowedSelection <= 0) {\n isValid = false;\n obj.maximumAllowedSelection = t(\"Maximum selection value cannot be zero\");\n seterrors(obj);\n return { isValid, obj };\n }\n if (\n m?.values?.minimumAllowedSelection > m?.values?.maximumAllowedSelection\n ) {\n isValid = false;\n obj.minimumAllowedSelection = t(\n \"Minimum selection value must be than less or equal to maximum selection value\"\n );\n seterrors(obj);\n return { isValid, obj };\n }\n if (m.errors.isSingleSelection) {\n if (m.values.minimumAllowedSelection > 1) {\n isValid = false;\n obj.minimumAllowedSelection = t(\n \"For single selection, minimum allowed selection cannot be greater than 1\"\n );\n seterrors(obj);\n return { isValid, obj };\n }\n seterrors(obj);\n return { isValid, obj };\n }\n\n return {\n isValid,\n obj,\n };\n };\n\n const addNewModifierGroup = async () => {\n const { isValid } = validateInputs();\n if (!isValid) return;\n try {\n const userDetail = UTILS.getCurrentUser();\n const data = await updateModifierGroup({\n brandId: userDetail.brandId,\n modifierGroupId: history?.location?.state?.modifier?._id,\n ...m.values,\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message ?? t(\"Added Successfully\")\n );\n history.push(\"/app/dashboard/modifier-group\");\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n }\n };\n\n const updatePrice = (key, val) => {\n const value = UTILS.NumberConversion(val);\n let Num = Number(value);\n handleValues(key, Num);\n };\n\n //attached modifiers\n const getAttachedModifers = async () => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getModifierGroup({\n brandId: userDetail.brandId,\n modifierGroupId: history?.location?.state?.modifier?._id,\n });\n if (data?.success === 1) {\n setmodifiers(data?.data?.modifiers);\n setM((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n ...data.data,\n },\n }));\n }\n } catch (error) {\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n async function fetchData() {\n if (history?.location.state?.modifier?._id) {\n const attachedModifiersPromise = getAttachedModifers();\n const allBrandModifiersPromise = getAllBrandModifers();\n await Promise.all([attachedModifiersPromise, allBrandModifiersPromise]);\n }\n }\n\n fetchData();\n }, [history?.location?.state?.modifier?._id]);\n\n const getAllBrandModifers = async () => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getModifierList({\n brandId: userDetail?.brandId,\n });\n if (data?.success === 1) {\n setbrandModifiers(data.data);\n }\n } catch (error) {\n } finally {\n setLoading(false);\n }\n };\n\n const unlinkModFromGroup = async () => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const data = await unLinkModifierFromGroup({\n brandId: userDetail.brandId,\n modifierId: deleteModal.item._id,\n modifierGroupId: history.location?.state?.modifier?._id,\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message ?? t(\"Unlinked Successfully\")\n );\n getAttachedModifers();\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n handleCancel();\n setLoading(false);\n }\n };\n\n const MemizedModifiers = useMemo(() => {\n const attachedModifiersLookup = _.keyBy(\n modifiers,\n (item) => item?.modifierId?._id\n );\n\n const unattachedModifiers = brandModifiers?.filter(\n (item) => !attachedModifiersLookup[item?._id]\n );\n return unattachedModifiers;\n }, [modifiers, brandModifiers, history.location?.state?.modifier?._id]);\n\n const sortModiferGroup = async (group) => {\n try {\n let selected = modifiers[group.oldIndex];\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n const result = await API.sortModifierOption({\n brandId: userDetail.brandId,\n modifierGroupId: history?.location?.state?.modifier?._id,\n modifierId: selected?.modifierId?._id,\n index: group.newIndex,\n });\n if (result?.success === 1) {\n UTILS.successNotification(result?.message);\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n getAttachedModifers();\n setLoading(false);\n }\n };\n\n const onClickDeleteButton = (row) => {\n if (row) {\n setDeleteModal({ isOpen: true, item: row });\n }\n };\n\n const handleCancel = () => setDeleteModal({ isOpen: false, item: null });\n\n return (\n
\n \n
\n \n
\n setopenGroupModal(false)}\n >\n setopenGroupModal(false)}\n getAttachedModifers={getAttachedModifers}\n />\n \n\n \n \n \n\n
\n \n
\n \n
\n
\n \n
\n \n
\n
\n \n \n {m.errors.isSingleSelection}{\" \"}\n \n
\n
\n \n
\n\n
\n \n
\n
\n history.goBack()}\n >\n {t(\"Back\")}\n \n addNewModifierGroup()}\n >\n {t(\"Update\")}\n \n
\n
\n
\n
\n
\n
\n\n
\n \n
\n
\n
\n
\n

\n {t(\"Attached Modifiers\")}\n

\n
\n
\n setopenGroupModal(true)}\n >\n {t(\"Attach New Modifier\")}\n \n
\n
\n\n
\n \n
\n
\n
\n
\n
\n
\n
\n );\n};\n\nfunction UpdateModifiersGroupContainer() {\n const router = useHistory();\n usePushBack(\n \"/app/dashboard/modifier-group\",\n router?.location?.state?.modifier?._id\n );\n return ;\n}\n\nexport default UpdateModifiersGroupContainer;\n","import TextInput from \"components/TextInput\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport PropTypes from \"prop-types\";\n// import { CONSTANTS as C } from \"config\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport PriceInput from \"components/PriceInput\";\nimport PageHeading from \"components/PageHeading\";\nimport Card from \"components/Card\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\nimport { useCreateNewModifierMutation } from \"redux/modifiers/service\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { isValidValue } from \"utils/Utils\";\nconst AddModifierOption = () => {\n const router = useHistory();\n const { t } = useTranslation();\n const history = useHistory();\n const [createNewModifier] = useCreateNewModifierMutation();\n const [loading, setLoading] = useState(false);\n const [modifier, setModifier] = useState({\n values: {\n baseLanguage: {\n name: \"\",\n },\n price: 0,\n imageURL: null,\n minimumOrderQuantity: 1,\n maximumOrderQuantity: 1,\n sku: \"\",\n translations: {\n en: {\n name: \"\",\n },\n ar: {\n name: \"\",\n },\n },\n },\n errors: {\n baseLanguage: {\n name: \"\",\n },\n price: \"\",\n minimumOrderQuantity: \"\",\n maximumOrderQuantity: \"\",\n },\n });\n\n /* A function that is used to set the basic info in the state. */\n const handleBasicInfo = (key, val) => {\n setModifier((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n ...prevState.values.baseLanguage,\n [key]: val,\n },\n translations: {\n en: {\n name: val,\n },\n ar: {\n name: val,\n },\n },\n },\n errors: {\n ...prevState.errors,\n baseLanguage: {\n ...prevState.errors.baseLanguage,\n [key]: \"\",\n },\n },\n }));\n };\n\n /* A function that is used to set the basic info in the state. */\n const handleValues = (key, val) => {\n setModifier((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n /* Validating the inputs. */\n const validateInputs = () => {\n let isValid = true;\n let obj = {\n baseLanguage: {\n name: \"\",\n },\n price: \"\",\n minimumOrderQuantity: \"\",\n maximumOrderQuantity: \"\",\n };\n\n if (\n !modifier?.values?.baseLanguage?.name ||\n UTILS.hasWhiteSpace(modifier?.values?.baseLanguage?.name)\n ) {\n isValid = false;\n obj.baseLanguage.name = t(\"Enter modifier Name\");\n }\n\n if (!isValidValue(modifier.values?.price)) {\n isValid = false;\n obj.price = t(\"Price is a required field\");\n }\n\n if (!isValidValue(modifier?.values?.maximumOrderQuantity)) {\n isValid = false;\n obj.maximumOrderQuantity = t(\"Maximum Order Quantity is a requird field\");\n }\n if (modifier?.values?.maximumOrderQuantity <= 0) {\n isValid = false;\n obj.maximumOrderQuantity = t(\n \"Maximum Order Quantity must be greater zero\"\n );\n }\n\n setModifier((prevState) => ({\n ...prevState,\n errors: obj,\n }));\n return isValid;\n };\n\n const createNewModifer = async () => {\n const isValid = validateInputs();\n if (!isValid) return;\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const data = await createNewModifier({\n brandId: userDetail.brandId,\n ...modifier?.values,\n price: +parseFloat(modifier?.values?.price).toFixed(2),\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message ?? t(\"Modifier Created Successfully\")\n );\n history.push(\"/app/dashboard/modifiers-list\");\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const updatePrice = (key, val) => {\n const value = UTILS.NumberConversion(val);\n let Num = Number(value);\n handleValues(key, Num);\n };\n\n return (\n
\n \n
\n \n

\n {t(\"Create Modifier\")}\n

\n \n
\n
\n
\n \n
\n
\n \n
\n\n
\n \n
\n
\n \n
\n
\n
\n\n
\n \n {t(\"Save\")}\n \n router.goBack()}\n >\n {t(\"Back\")}\n \n
\n
\n
\n
\n
\n
\n );\n};\n\nAddModifierOption.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n addModifierOption: PropTypes.func,\n};\nexport default AddModifierOption;\n","import TextInput from \"components/TextInput\";\nimport React, { useEffect, useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport PriceInput from \"components/PriceInput\";\nimport PageHeading from \"components/PageHeading\";\nimport Card from \"components/Card\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\nimport {\n useUpDateModifierMutation,\n useGetModifierOptionInfoMutation,\n} from \"redux/modifiers/service\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { isValidValue } from \"utils/Utils\";\nimport usePushBack from \"hooks/usePushBack\";\n\nconst UpdateModifier = () => {\n // Hooks\n const router = useHistory();\n const { t } = useTranslation();\n const history = useHistory();\n\n const [upDateModifier] = useUpDateModifierMutation();\n const [getModifierOptionInfo] = useGetModifierOptionInfoMutation();\n // States\n const [loading, setLoading] = useState(false);\n\n const [modifier, setModifier] = useState({\n values: {\n baseLanguage: {\n name: \"\",\n },\n price: 0,\n imageURL: null,\n sku: \"\",\n minimumOrderQuantity: 1,\n maximumOrderQuantity: 1,\n },\n errors: {\n baseLanguage: {\n name: \"\",\n },\n price: \"\",\n minimumOrderQuantity: \"\",\n maximumOrderQuantity: \"\",\n },\n });\n\n /* A function that is used to set the basic info in the state. */\n const handleBasicInfo = (key, val) => {\n setModifier((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n ...prevState.values.baseLanguage,\n [key]: val,\n },\n translations: {\n en: {\n name: val,\n },\n ar: {\n name: val,\n },\n },\n },\n errors: {\n ...prevState.errors,\n baseLanguage: {\n ...prevState.errors.baseLanguage,\n [key]: \"\",\n },\n },\n }));\n };\n\n /* A function that is used to set the basic info in the state. */\n const handleValues = (key, val) => {\n setModifier((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: val,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const validateInputs = () => {\n let isValid = true;\n let obj = {\n baseLanguage: {\n name: \"\",\n },\n price: \"\",\n minimumOrderQuantity: null,\n maximumOrderQuantity: \"\",\n };\n\n if (\n !modifier?.values?.baseLanguage?.name ||\n UTILS.hasWhiteSpace(modifier.values.baseLanguage.name)\n ) {\n isValid = false;\n obj.baseLanguage.name = t(\"Enter modifier Name\");\n }\n\n if (!isValidValue(modifier?.values?.price)) {\n isValid = false;\n obj.price = t(\"Price is a required field\");\n }\n\n if (!isValidValue(modifier?.values?.maximumOrderQuantity)) {\n isValid = false;\n obj.maximumOrderQuantity = t(\"Maximum Order Quantity is a requird field\");\n }\n if (modifier?.values?.maximumOrderQuantity <= 0) {\n isValid = false;\n obj.maximumOrderQuantity = t(\n \"Maximum Order Quantity must be greater zero\"\n );\n }\n\n setModifier((prevState) => ({\n ...prevState,\n errors: obj,\n }));\n return isValid;\n };\n\n const updatedSingleModifier = async () => {\n const isValid = validateInputs();\n if (!isValid) return;\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const data = await upDateModifier({\n brandId: userDetail.brandId,\n modifierId: history.location.state.modifier._id,\n ...modifier?.values,\n price: +parseFloat(modifier?.values?.price).toFixed(2),\n });\n if (data?.data?.success === 1) {\n UTILS.successNotification(\n data?.data?.message ?? t(\"Modifier Updated Successfully\")\n );\n history.push(\"/app/dashboard/modifiers-list\");\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const getSingleModifierInfo = async (modifierId) => {\n setLoading(true);\n try {\n const userDetail = UTILS.getCurrentUser();\n const data = await getModifierOptionInfo({\n brandId: userDetail?.brandId,\n modifierId,\n });\n if (data?.data?.success === 1 && data.data?.data?.length >= 1) {\n setModifier((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n ...data.data?.data[0],\n },\n }));\n } else {\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const updatePrice = (key, val) => {\n const value = UTILS.NumberConversion(val);\n let Num = Number(value);\n handleValues(key, Num);\n };\n\n useEffect(() => {\n if (history.location?.state?.modifier?._id)\n getSingleModifierInfo(history?.location?.state?.modifier?._id);\n }, [history?.location?.state?.modifier?._id]);\n\n return (\n \n
\n \n
\n \n

\n {t(\"Update Modifier\")}\n

\n

\n {t(\"Please enter complete details for better user experience\")}\n

\n
\n
\n
\n \n
\n
\n \n
\n\n
\n \n
\n
\n \n
\n
\n
\n
\n \n {t(\"Update\")}\n \n router.goBack()}\n >\n {t(\"Back\")}\n \n
\n
\n
\n
\n
\n
\n );\n};\n\nfunction UpdateModifiersContainer() {\n const router = useHistory();\n usePushBack(\n \"/app/dashboard/modifiers-list\",\n router?.location?.state?.modifier?._id\n );\n return ;\n}\n\nUpdateModifier.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n addModifierOption: PropTypes.func,\n};\nexport default UpdateModifiersContainer;\n","import { Spin, Table } from \"antd\";\nimport Card from \"components/Card\";\nimport React, { useState } from \"react\";\nimport SelectInput from \"components/SelectInput\";\nimport { useTranslation } from \"react-i18next\";\nimport SearchInput from \"components/SearchInput\";\nimport PlayPause from \"./PlayPause\";\n\nconst PauseModifiers = ({\n state,\n handlePlayPause,\n handleChange,\n isLoading,\n stores,\n}) => {\n console.log({ PauseModifiers: state });\n const { t } = useTranslation();\n\n const [searchTerm, setSearchTerm] = useState(null);\n\n const columns = [\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n align: \"initial\",\n sorter: (a, b) =>\n a.baseLanguage.name?.localeCompare(b.baseLanguage?.name),\n render: (val, row, index) => {\n return (\n

\n {val?.name}\n

\n );\n },\n },\n\n {\n title: t(\"Availability\"),\n width: \"25%\",\n align: \"initial\",\n dataIndex: \"_id\",\n render: (val, row, index) => {\n return (\n \n );\n },\n },\n\n {\n title: t(\"Maximum Order Quantity\"),\n width: \"10%\",\n dataIndex: \"maximumOrderQuantity\",\n align: \"initial\",\n sorter: {\n compare: (a, b) => a.maximumOrderQuantity - b.maximumOrderQuantity,\n multiple: 3,\n },\n },\n {\n title: t(\"Price\"),\n dataIndex: \"price\",\n width: \"10%\",\n align: \"initial\",\n sorter: {\n compare: (a, b) => a.price - b.price,\n multiple: 3,\n },\n render: (val, row, index) => {\n return (\n {`${t(\n \"AED\"\n )}${\" \"} ${val}`}\n );\n },\n },\n ];\n\n const ModifierListArr = React.useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) {\n return state?.modifiers;\n }\n let searchTermLower = searchTerm.toLowerCase().trim();\n return state?.modifiers.filter((item) =>\n item?.baseLanguage?.name?.toLowerCase()?.includes(searchTermLower)\n );\n }, [state?.modifiers, searchTerm]);\n\n return (\n <>\n
\n \n
\n \n

\n {t(\n \"Select store from the dropdown to play/pause inventory for particular store\"\n )}\n

\n

{t(\"Select store\")}

\n
\n
\n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n \n );\n};\nexport default PauseModifiers;\n","import { errorHandler } from \"api/api/errorHandler\";\nimport { useGetStoreModifiersMutation } from \"redux/modifiers/service\";\nimport { UTILS } from \"utils\";\n\nfunction useGetModifiersByStoreId(updateState) {\n const [getStoreModifiers] = useGetStoreModifiersMutation();\n\n const getModifiersByStore = async (storeId) => {\n try {\n updateState(\"loading\", true);\n const userDetail = UTILS.getCurrentUser();\n const result = await getStoreModifiers({\n brandId: userDetail.brandId,\n storeId: storeId,\n });\n console.log({ getModifiersByStore: result?.data?.data });\n if (result?.data?.success === 1 && result?.data?.data) {\n updateState(\"modifiers\", result.data.data);\n } else UTILS.handleErrorNotification(errorHandler(result?.data?.message));\n } catch (error) {\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n updateState(\"loading\", false);\n }\n };\n return getModifiersByStore;\n}\n\nexport default useGetModifiersByStoreId;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useToggleModifierInventoryMutation } from \"redux/modifiers/service\";\nimport { UTILS } from \"utils\";\n\nfunction usePlayPauseModifier({\n setPauseModalState,\n updateState,\n getModifiersByStore,\n state,\n}) {\n const handleplayPauseModifier = async (modifierId, duration) => {\n try {\n updateState(\"loading\", true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.toggleModifierInventory({\n brandId: userDetail.brandId,\n storeId: state?.currentStoreId,\n modifierId: modifierId?._id,\n ...(duration && { duration }),\n });\n\n if (result?.success === 1) {\n getModifiersByStore(state?.currentStoreId);\n } else {\n console.log({ error: result });\n UTILS.handleErrorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n console.log({ error });\n UTILS.handleErrorNotification(errorHandler(error?.error));\n } finally {\n updateState(\"loading\", false);\n setPauseModalState(\"open\", false);\n setPauseModalState(\"modifier\", null);\n setPauseModalState(\"deafaultOption\", {\n value: 6,\n unit: \"hours\",\n duration: \"6_HOURS\",\n });\n }\n };\n\n const handlePlayPause = async (key, row) => {\n if (key === \"pause\") {\n setPauseModalState(\"open\", true);\n setPauseModalState(\"modifier\", row);\n return;\n } else if (!row._id || !state?.currentStoreId) return;\n handleplayPauseModifier(row);\n };\n return {\n handlePlayPause,\n handleplayPauseModifier,\n };\n}\n\nexport default usePlayPauseModifier;\n","import PageHeading from \"components/PageHeading\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport StoreModifierList from \"../Components/StoreModifierList\";\nimport useGetModifiersByStoreId from \"../useGetModifiersByStoreId\";\nimport usePlayPauseModifier from \"../usePlayPasuseModifier\";\nimport PauseModalContainer from \"../Components/PauseModal\";\nconst PauseModifiers = () => {\n const { t } = useTranslation();\n const { stores, loading } = useAllStores();\n\n const [state, setState] = useState({\n currentStoreId: null,\n modifiers: [],\n loading: false,\n });\n\n const updateState = (key, val) =>\n setState((state) => ({ ...state, [key]: val }));\n\n const [PauseModel, setPauseModel] = useState({\n open: false,\n modifier: null,\n deafaultOption: {\n value: 6,\n unit: \"hours\",\n duration: \"6_HOURS\",\n },\n });\n\n const setPauseModalState = (key, val) => {\n setPauseModel((prevState) => ({\n ...prevState,\n [key]: val,\n }));\n };\n\n const getModifiersByStore = useGetModifiersByStoreId(updateState);\n\n const { handlePlayPause, handleplayPauseModifier } = usePlayPauseModifier({\n setPauseModalState,\n updateState,\n getModifiersByStore,\n state,\n });\n\n const handleChange = (key, val) => {\n if (val !== \"null\" && val) {\n getModifiersByStore(val);\n updateState(\"currentStoreId\", val);\n }\n };\n const isLoading = state.loading || loading;\n const closeModal = () => {\n setPauseModalState(\"modifier\", null);\n setPauseModalState(\"deafaultOption\", {\n value: 6,\n unit: \"hours\",\n duration: \"6_HOURS\",\n });\n setPauseModalState(\"open\", false);\n };\n console.log(\"PauseModifiers\", PauseModel);\n return (\n <>\n \n \n\n \n \n );\n};\nexport default PauseModifiers;\n","import React from \"react\";\n\nconst HorizontalStarRating = ({\n totalStars,\n handleStarClick,\n rating,\n className,\n}) => {\n const starElements = [...Array(totalStars)].map((_, index) => (\n handleStarClick(index + 1)}\n >\n ★\n \n ));\n\n return
{starElements}
;\n};\n\nexport default HorizontalStarRating;\n","import React from \"react\";\nimport { Progress } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport StarRating from \"components/StarRating\";\nimport { getStarRatingClasses } from \"utils/Utils\";\n\nconst AverageRatingDisplay = ({\n averageRating,\n feedbackRatingCount,\n totalCount,\n}) => {\n const { t } = useTranslation();\n if (!averageRating) return null;\n\n return (\n
\n
{t(\"Average Rating\")}
\n
\n {totalCount === 1\n ? t(\"Based on last 1 rating\")\n : t(\"Based on last x ratings\", {\n count: totalCount,\n })}\n
\n
\n
\n {feedbackRatingCount?.map((item, index) => (\n \n {}}\n starContainerClassName=\"text-yellow-500\" // Customize star color if needed\n />\n \n {item.count} {item?.count === 1 ? t(\"User\") : t(\"Users\")}\n \n
\n ))}\n
\n
\n (\n
\n {averageRating}\n
\n {t(\"out of 5\")}\n
\n
\n )}\n strokeColor=\"#008000\"\n />\n
\n
\n \n );\n};\n\nexport default AverageRatingDisplay;\n","import React from \"react\";\nimport moment from \"moment\";\nimport { useTranslation } from \"react-i18next\";\n\nimport StarRating from \"components/StarRating\";\nimport AverageFeedbackRating from \"./AverageFeedbackRating\";\nimport { getStarRatingClasses } from \"utils/Utils\";\nconst UserFeedbacksTable = ({\n feedbacks,\n avgOrderRating,\n feedbackRatingCount,\n totalCount,\n}) => {\n console.log(\"==\", feedbacks);\n const { t } = useTranslation();\n return (\n <>\n
\n
\n {feedbacks?.map((feedback, index) => (\n \n
\n
\n
\n

\n {feedback?.customerInfo?.phoneNumber}\n

\n

\n {t(\"Order #\")} {feedback?.orderInfo?.orderNumber}\n

\n
\n
\n \n
\n
\n
\n {}}\n />\n \n {moment(feedback?.createdAt).format(\"DD MMM YYYY\")}\n \n
\n
{feedback?.comments}
\n
\n
\n ))}\n
\n
\n \n
\n \n \n );\n};\n\nexport default UserFeedbacksTable;\n","import React from \"react\";\nimport { Select } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\n\nconst { Option } = Select;\nfunction SelectBox({ placeholder, options, value, onChange, className }) {\n const { t } = useTranslation();\n return (\n onChange(value)}\n >\n {options.map((option) => (\n \n ))}\n \n );\n}\n\nexport default SelectBox;\n","import React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Spin, Select, Button } from \"antd\";\nimport UserFeedbacksTable from \"../components/UserFeedbacksTable\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport RadioButton from \"components/RadioButton\";\nimport CustomSelctBox from \"../components/SelectBox\";\nimport { successNotification } from \"utils/Utils\";\n\nconst OrderTypes = [\"All\", \"DELIVERY\", \"PICKUP\", \"DINE IN\"];\nconst RatingTypes = [\"All\", \"Bad\", \"Excellent\"];\nconst ALL = \"All\";\nconst { Option } = Select;\n\nconst UserFeedbacks = () => {\n const { t } = useTranslation();\n const { stores, loading, setLoading } = useAllStores();\n const [state, setState] = useState({\n error: null,\n userFeedbacks: [],\n allUserFeedbacks: [],\n selectedStore: null,\n selectedOrderType: null,\n selectedRatingType: null,\n isCommentsOnly: false,\n currentPage: 1,\n showLoadMore: true,\n });\n\n const updateState = (key, value) =>\n setState((prevState) => ({ ...prevState, [key]: value }));\n\n const buildApiRequestParams = () => {\n const params = {\n brandId: UTILS.getCurrentUser()?.brandId,\n page: state.currentPage,\n limit: 10,\n };\n\n if (state?.selectedStore && state?.selectedStore !== ALL) {\n params.storeId = state.selectedStore;\n }\n\n if (state?.selectedOrderType && state?.selectedOrderType !== ALL) {\n params.serviceType = state.selectedOrderType;\n }\n\n if (state.isCommentsOnly) {\n params.isCommentsOnly = state.isCommentsOnly;\n }\n\n if (state?.selectedRatingType && state?.selectedRatingType !== ALL) {\n params.rating = state.selectedRatingType;\n }\n\n return params;\n };\n\n const fetchAllOrdersFeedbacks = async () => {\n try {\n setLoading(true);\n const result = await API.getOrdersBacks(buildApiRequestParams());\n\n if (result?.success === 1 && result?.data?.feedbacks) {\n const newData = result.data?.feedbacks;\n const allfeedacks = [...state.allUserFeedbacks, ...newData];\n updateState(\"allUserFeedbacks\", allfeedacks);\n updateState(\"userFeedbacks\", result?.data);\n updateState(\"currentPage\", state.currentPage + 1);\n\n if (newData.length <= 0) {\n updateState(\"showLoadMore\", false);\n successNotification(\n \"You've reached the end of the feedbacks. No more data to load\"\n );\n }\n } else {\n UTILS.handleErrorNotification(\n errorHandler(result?.error?.message || \"Error fetching data\")\n );\n }\n } catch (error) {\n UTILS.handleErrorNotification(\n errorHandler(error?.message || \"An unexpected error occurred\")\n );\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n const userDetail = UTILS.getCurrentUser();\n if (!userDetail?.brandId) return;\n fetchAllOrdersFeedbacks();\n }, [\n state.selectedStore,\n state.selectedOrderType,\n state.isCommentsOnly,\n state.selectedRatingType,\n ]);\n\n const handleChangeOptions = (key, val) => {\n updateState(\"showLoadMore\", true);\n updateState(\"allUserFeedbacks\", []);\n updateState(\"userFeedbacks\", []);\n updateState(\"currentPage\", 1);\n updateState(key, val);\n };\n\n return (\n
\n \n
\n {t(\"Order Feedbacks\")}\n
\n
\n
\n
\n \n handleChangeOptions(\"selectedStore\", value)\n }\n >\n {/* Populate with store options */}\n \n {stores?.map((store) => (\n \n ))}\n \n \n handleChangeOptions(\"selectedOrderType\", value)\n }\n options={OrderTypes}\n />\n \n handleChangeOptions(\"selectedRatingType\", value)\n }\n options={RatingTypes}\n />\n
\n
\n {\n handleChangeOptions(\"isCommentsOnly\", !value);\n }}\n />\n
\n
\n {t(\"Only With Notes\")}\n
\n
\n
\n
\n
\n \n {state?.showLoadMore && (\n
\n \n
\n )}\n
\n
\n );\n};\n\nexport default UserFeedbacks;\n","import Orders from \"features/reporting/containers/Orders\";\nimport PaymentLinks from \"features/reporting/containers/PaymentLinks\";\nimport UserFeedbacks from \"features/reporting/containers/UserFeedbacks\";\nimport CustomersReport from \"features/reporting/containers/CustomersReport\";\nconst routes = [\n {\n path: \"/app/dashboard/reporting/user-feedbacks\",\n component: UserFeedbacks,\n },\n {\n path: \"/app/dashboard/reporting/orders\",\n component: Orders,\n },\n {\n path: \"/app/dashboard/reporting/customers\",\n component: CustomersReport,\n },\n {\n path: \"/app/dashboard/reporting/payments\",\n component: PaymentLinks,\n },\n // {\n // path: \"/app/dashboard/reporting/payouts\",\n // component: Payouts,\n // },\n];\n\nexport default routes;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { handleAddIsAddedPropToBuisnessAreas } from \"features/shipping_methods/helpers\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { AreasAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\n\nfunction useGetStoreAddedMappedAreas() {\n const dispatch = useDispatch();\n const { areaData } = useSelector((state) => state.AreasReducer);\n\n const getStoreMappedAddedAreas = async ({ storeId, isPolygonRequired }) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const response = await API.getStoreMappedAreas({\n storeId,\n brandId: userDetail.brandId,\n isPolygonRequired: isPolygonRequired ? isPolygonRequired : false,\n });\n if (response?.success === 1 && response?.data) {\n const filteredAreasList = await handleAddIsAddedPropToBuisnessAreas(\n areaData,\n response?.data\n );\n dispatch(AreasAction.setMapCustomBuisnessAreas(filteredAreasList));\n dispatch(AreasAction.setMapAddedAreas(response?.data));\n } else {\n console.log(\"error\", response);\n UTILS.errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n console.log(\"error\", error);\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return getStoreMappedAddedAreas;\n}\n\nexport default useGetStoreAddedMappedAreas;\n","import React, { useCallback, useRef, useState } from \"react\";\nimport PlacesAutocomplete, {\n geocodeByAddress,\n getLatLng,\n} from \"react-places-autocomplete\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n GoogleMap,\n useJsApiLoader,\n InfoWindow,\n DrawingManager,\n Polygon,\n} from \"@react-google-maps/api\";\nimport { libraries } from \"features/shipping_methods/helpers\";\nimport { logErrorOnSentry } from \"utils/Utils\";\n\nfunction MyMapComponent({\n setPolygons,\n plottedPolygons,\n operationType,\n drawingEnabled,\n setDrawingEnabled,\n mapRef,\n}) {\n const { t } = useTranslation();\n const [zoom, setZoom] = useState(6);\n const [shape, setShape] = useState(null);\n const [center, setCenter] = useState({\n lat: 25.2048,\n lng: 55.2708,\n });\n const [address, setAddress] = useState(\"\");\n const handleChange = (address) => setAddress(address);\n\n const handleSelect = (address) => {\n setAddress(address);\n geocodeByAddress(address)\n .then((results) => getLatLng(results[0]))\n .then((latLng) => {\n mapRef?.current?.setCenter(\n new window.google.maps.LatLng(latLng.lat, latLng.lng)\n );\n setCenter(latLng);\n setZoom(18);\n })\n .catch((error) => console.error(\"Error\", error));\n };\n\n const { isLoaded } = useJsApiLoader({\n id: \"script-loader\",\n googleMapsApiKey: process.env.REACT_APP_GOOGLE_MAPS_API_KEY,\n language: \"en\",\n region: \"us\",\n libraries: libraries,\n });\n\n const onPolygonComplete = (polygon) => {\n setDrawingEnabled(false);\n const paths = polygon\n ?.getPath()\n ?.getArray()\n ?.map((point) => ({\n lat: point.lat(),\n lng: point.lng(),\n }));\n\n polygon?.setOptions({\n draggable: false,\n editable: true,\n });\n\n // Listen for polygon edits\n window.google.maps.event.addListener(polygon?.getPath(), \"set_at\", () => {\n handlePolygonEdit(polygon.getPath().getArray());\n });\n window.google.maps.event.addListener(\n polygon?.getPath(),\n \"insert_at\",\n () => {\n handlePolygonEdit(polygon.getPath().getArray());\n }\n );\n window.google.maps.event.addListener(\n polygon?.getPath(),\n \"remove_at\",\n () => {\n handlePolygonEdit(polygon?.getPath()?.getArray());\n }\n );\n\n setPolygons((prev) => ({\n ...prev,\n coordinates: paths,\n }));\n //center map on polygon\n const bounds = new window.google.maps.LatLngBounds();\n polygon?.getPath()?.forEach((element) => {\n bounds?.extend(element);\n });\n mapRef?.current?.fitBounds(bounds);\n setZoom(mapRef?.current?.getZoom());\n };\n\n const handlePolygonEdit = (updatedPaths) => {\n const paths = updatedPaths?.map((point) => ({\n lat: point.lat(),\n lng: point.lng(),\n }));\n setPolygons((prev) => ({\n ...prev,\n coordinates: paths,\n }));\n };\n\n const onUnmount = useCallback(() => {\n mapRef.current = null;\n listenersRef?.current?.forEach((lis) => lis.remove());\n polygonRef.current = null;\n }, []);\n\n const handleOnLoad = (map) => (mapRef.current = map);\n\n const drawingManagerRef = useRef(null);\n\n const removeDrawing = () => {\n setDrawingEnabled(true);\n setPolygons({\n coordinates: [],\n areaInfo: {},\n });\n shape?.setMap(null);\n };\n const polygonRef = useRef(null);\n const listenersRef = useRef([]);\n\n const onEdit = useCallback(() => {\n if (polygonRef?.current) {\n const nextPath = polygonRef.current\n ?.getPath()\n ?.getArray()\n ?.map((latLng) => {\n return { lat: latLng?.lat(), lng: latLng?.lng() };\n });\n setPolygons((prev) => ({\n ...prev,\n coordinates: nextPath,\n }));\n }\n }, [setPolygons]);\n\n // Bind refs to current Polygon and listeners\n const onLoad = useCallback(\n (polygon) => {\n try {\n if (polygon) polygonRef.current = polygon;\n\n const path = polygon?.getPath();\n\n if (path) {\n listenersRef?.current?.push(\n path.addListener(\"set_at\", onEdit),\n path.addListener(\"insert_at\", onEdit),\n path.addListener(\"remove_at\", onEdit)\n );\n }\n } catch (error) {\n logErrorOnSentry(\"Error in onLoad\", error);\n }\n },\n [onEdit]\n );\n\n const [infoWindows, setInfoWindows] = useState(null);\n\n const handlePolygonClick = (index) => setInfoWindows(index);\n\n return (\n \n {isLoaded ? (\n
\n
\n \n
\n \n {({\n getInputProps,\n suggestions,\n getSuggestionItemProps,\n loading,\n }) => (\n
\n <>\n
\n \n
\n \n\n \n {loading &&
Loading...
}\n {suggestions.map((suggestion, key) => {\n const className = suggestion.active\n ? \"suggestion-item--active\"\n : \"suggestion-item\";\n const style = suggestion.active\n ? { backgroundColor: \"#fafafa\", cursor: \"pointer\" }\n : { backgroundColor: \"#ffffff\", cursor: \"pointer\" };\n return (\n \n {suggestion?.description}\n
\n );\n })}\n
\n
\n )}\n \n
\n {operationType === \"add\" && (\n \n \n Clear Polygon\n \n
\n )}\n \n {\n setShape(e.overlay);\n }}\n options={{\n drawingMode: drawingEnabled ? \"polygon\" : null,\n drawingControl: drawingEnabled ? true : false,\n drawingControlOptions: {\n position:\n window.google.maps.ControlPosition.LEFT_CENTER,\n drawingModes: [\"polygon\"],\n },\n markerOptions: {\n draggable: false,\n },\n\n polylineOptions: {\n editable: true,\n draggable: false,\n },\n rectangleOptions: {\n editable: true,\n draggable: false,\n },\n circleOptions: {\n editable: true,\n draggable: false,\n },\n\n polygonOptions: {\n editable: true, // Set to true only in edit mode\n draggable: false,\n fillOpacity: 0.5,\n strokeWeight: 2,\n strokeColor: \"#0000FF\",\n zIndex: 999,\n paths:\n plottedPolygons?.length > 0\n ? plottedPolygons[0]\n : [],\n },\n }}\n />\n\n <>\n {plottedPolygons &&\n plottedPolygons?.length >= 1 &&\n plottedPolygons?.map((polygon, key) => (\n \n {\n handlePolygonClick(key);\n }}\n onMouseOut={() => setInfoWindows(null)}\n />\n {infoWindows === key && (\n setInfoWindows(null)}\n >\n
\n

\n {polygon?.areaInfo?.translations?.en?.name}\n

\n
\n \n )}\n \n ))}\n \n \n
\n \n \n \n \n ) : (\n
loading
\n )}\n
\n );\n}\n\nexport default React.memo(MyMapComponent);\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport TextInput from \"components/TextInput\";\nimport PriceInput from \"components/PriceInput\";\nimport ChooseTime from \"./ChooseTime\";\n\nfunction CustomMapAreaHeader({\n heading,\n state,\n handleInputValue,\n handledeliveryFee,\n}) {\n const { t } = useTranslation();\n return (\n <>\n
\n
\n

{t(heading)}

\n
\n {/*
\n \n \n \n \n
*/}\n
\n
\n
\n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n handleInputValue(\"deliveryTime\", val),\n }}\n />\n
\n \n );\n}\n\nexport default CustomMapAreaHeader;\n","import { API } from \"api\";\nimport { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\n\nfunction useGetCustomBuisnessAres() {\n const dispatch = useDispatch();\n const [customBuisnessAreas, setCustomBuisnessAreas] = useState([]); // [\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n\n const getAllCustomBuisnessAreas = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const response = await API.getAllCustomBuisnessAreas();\n if (response?.success === 1 && response?.data) {\n setCustomBuisnessAreas(response?.data);\n }\n } catch (error) {\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n useEffect(() => {\n getAllCustomBuisnessAreas();\n }, [selectedStore?.value]);\n return customBuisnessAreas;\n}\n\nexport default useGetCustomBuisnessAres;\n","import React from \"react\";\nimport { Button, Spin, Select } from \"antd\";\nimport BackButton from \"components/BackButton\";\nimport GoogleMap from \"../../components/GoogleMap\";\nimport CustomMapAreaHeader from \"features/shipping_methods/common/CustomMapAreaHeader\";\nimport { useTranslation } from \"react-i18next\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport useGetCustomBuisnessAres from \"../hooks/useGetCustomBuisnessAres\";\nimport { getStoreInfo } from \"utils/Utils\";\nimport { useSelector } from \"react-redux\";\n\nconst { Option } = Select;\n\nfunction DrawAreaContainer({\n selectedStore,\n onStoreChange,\n areaState,\n handleInputValue,\n handledeliveryFee,\n selectedCountry,\n selectedCity,\n handleCountryChange,\n handleCityChange,\n addAreafromMap,\n polygons,\n setPolygons,\n drawingEnabled,\n setDrawingEnabled,\n plottedPolygons,\n operationType,\n mapRef,\n}) {\n const { t } = useTranslation();\n const { stores } = useAllStores();\n const countriesData = useGetCustomBuisnessAres();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const countryOptions = countriesData?.countries?.map((country) => (\n \n ));\n\n const cityOptions = () => {\n if (selectedCountry) {\n return countriesData?.countries\n ?.find((country) => country?.name?.en === selectedCountry?.name?.en)\n ?.cities.map((city) => (\n \n ));\n }\n return null;\n };\n\n return (\n \n \n\n
\n \n (option?.label ?? \"\").toLowerCase().includes(input.toLowerCase())\n }\n options={stores}\n />\n
\n\n {selectedStore && (\n <>\n
\n
\n
\n {},\n state: areaState,\n handleInputValue,\n handledeliveryFee,\n }}\n />\n\n
\n
\n \n option.children\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n >\n {countryOptions}\n \n \n option.children\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n disabled={!selectedCountry}\n >\n {cityOptions()}\n \n
\n
\n \n {operationType === \"add\" ? t(\"Add\") : t(\"Update\")}\n \n
\n
\n\n
\n \n
\n
\n
\n
\n \n )}\n
\n );\n}\n\nexport default DrawAreaContainer;\n","import React, { useState, useEffect, useRef } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useHistory, useParams } from \"react-router-dom\";\n\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nimport { AreasAction } from \"redux/actions\";\nimport useGetStoreAddedMappedAreas from \"../hooks/useGetStoreAddedMapAreas\";\nimport { isValidUpdateInputFields } from \"../../../helpers\";\nimport DrawAreaContainer from \"./DrawAreaContainer\";\nimport { LoaderAction } from \"redux/actions\";\n\nfunction EditDrawnArea() {\n const params = useParams();\n const mapRef = useRef(null);\n\n const history = useHistory();\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const [polygons, setPolygons] = useState({\n coordinates: [],\n areaInfo: {},\n });\n const [drawingEnabled, setDrawingEnabled] = useState(false);\n const [selectedCountry, setSelectedCountry] = useState(null);\n const [selectedCity, setSelectedCity] = useState(null);\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n description: \"\",\n areaName: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n\n const getStoreMappedAddedAreas = useGetStoreAddedMappedAreas();\n\n const handleInputValue = (key, value) => {\n setState({ ...state, [key]: value });\n };\n\n const handledeliveryFee = async (key, value) =>\n setState({ ...state, [key]: value });\n function convertSinglePolygonToObjectArray(coordinates, area) {\n console.log(\"coordinates\", area);\n return {\n areaInfo: area,\n coordinates: coordinates.map(([lng, lat]) => ({ lat, lng })),\n };\n }\n\n const updateAreaParams = () => {\n let delTime =\n state.deliveryTime.Days * 1440 +\n state.deliveryTime.Hours * 60 +\n state.deliveryTime.Minutes;\n const userDetail = UTILS.getCurrentUser();\n return {\n brandId: userDetail.brandId,\n storeId: selectedStore?.value,\n mappedAreaBaseDeliveryMethodId: params.mappedAreaId,\n translations: {\n en: {\n name: state.areaName,\n },\n ar: {\n name: state.areaName,\n },\n },\n city: {\n en: selectedCity?.name?.en,\n ar: selectedCity?.name?.ar,\n },\n country: {\n en: selectedCountry?.name?.en,\n ar: selectedCountry?.name?.ar,\n },\n description: state.description,\n polygon: polygons.coordinates,\n minOrder: Number(state.minOrder),\n deliveryFee: Number(state.deliveryFee),\n deliveryTime: Number(delTime),\n };\n };\n const updateCustomBusinessAreas = async () => {\n try {\n if (\n !isValidUpdateInputFields({ state, storeID: selectedStore?.value })\n ?.isValid\n )\n return;\n dispatch(LoaderAction.setLoading(true));\n const result = await API.updateCustomStoreMapArea(updateAreaParams());\n if (result?.success === 1) {\n UTILS.successNotification(result.message);\n history.push(`/app/dashboard/mapped-area-method`);\n await getStoreMappedAddedAreas({\n storeId: selectedStore?.value,\n });\n dispatch(AreasAction.setStore(selectedStore));\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n } catch (error) {\n UTILS.errorNotification(t(errorHandler(error)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const getAreaInfo = async (storeId) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const result = await API.getCustomStoreMapAreaById({\n brandId: userDetail.brandId,\n storeId,\n mappedAreaBaseDeliveryMethodId: params.mappedAreaId,\n });\n if (result?.success === 1) {\n const data = result?.data;\n setState({\n minOrder: result?.data?.minOrder,\n deliveryFee: result?.data?.deliveryFee,\n description: result?.data?.description,\n areaName: result?.data?.mappedAreaInfo?.translations?.en?.name,\n deliveryTime: {\n Days: Math.floor(result?.data?.deliveryTime / 1440),\n Hours: Math.floor((result?.data?.deliveryTime % 1440) / 60),\n Minutes: Math.floor((result?.data?.deliveryTime % 1440) % 60),\n },\n });\n const country = {\n name: {\n en: data?.mappedAreaInfo?.country.en,\n ar: data?.mappedAreaInfo?.country.ar,\n },\n };\n const city = {\n name: {\n en: data?.mappedAreaInfo?.city.en,\n ar: data?.mappedAreaInfo?.city.ar,\n },\n };\n\n setSelectedCountry(country);\n setSelectedCity(city);\n\n const isPolygonDrawn =\n result?.data?.mappedAreaInfo?.mappedAreaId?.polygon?.coordinates\n ?.length > 0;\n if (!isPolygonDrawn) {\n setDrawingEnabled(true);\n }\n if (\n isPolygonDrawn &&\n result?.data?.mappedAreaInfo?.mappedAreaId?.polygon?.coordinates[0]\n ) {\n const convertedPolygon = convertSinglePolygonToObjectArray(\n result?.data?.mappedAreaInfo?.mappedAreaId?.polygon?.coordinates[0],\n result?.data?.mappedAreaInfo\n );\n setPolygons(convertedPolygon);\n }\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n } catch (error) {\n UTILS.errorNotification(t(errorHandler(error)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n useEffect(() => {\n if (!params?.mappedAreaId) return;\n if (selectedStore?.value) {\n const Id = selectedStore?.value;\n getAreaInfo(Id);\n }\n }, [params?.mappedAreaId]);\n\n const handleCountryChange = (value, option) => {\n setSelectedCountry(option.data);\n setSelectedCity(null);\n };\n\n const handleCityChange = (value, option) => setSelectedCity(option.data);\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n getAreaInfo(value.value);\n dispatch(AreasAction.setStore(value));\n };\n return (\n \n );\n}\n\nexport default EditDrawnArea;\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport {\n calculateDeliveryTimeInMins,\n convertPolygonArrayToObject,\n isValidDrawAreInputFields,\n} from \"../../../helpers\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { getStoreInfo } from \"utils/Utils\";\nimport DrawAreaContainer from \"./DrawAreaContainer\";\nimport { LoaderAction } from \"redux/actions\";\n\nfunction DrawAreaOnMap() {\n const history = useHistory();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const mapRef = useRef(null);\n const [plottedPolygons, setPlottedPolygons] = useState([]);\n const [polygons, setPolygons] = useState({\n coordinates: [],\n areaInfo: {},\n });\n const [areaState, setAreaState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n description: \"\",\n areaName: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n const [selectedCity, setSelectedCity] = useState(null);\n const [drawingEnabled, setDrawingEnabled] = useState(true);\n const [selectedCountry, setSelectedCountry] = useState(null);\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n\n async function getStoreMappedAddedAreas(ID) {\n try {\n if (!ID) return;\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const response = await API.getStoreMappedAreas({\n brandId: userDetail.brandId,\n storeId: ID,\n isPolygonRequired: true,\n });\n if (response?.success === 1) {\n if (response?.data?.length > 0) {\n setPlottedPolygons(convertPolygonArrayToObject(response?.data));\n } else {\n setPlottedPolygons([]);\n }\n } else UTILS.errorNotification(errorHandler(response));\n } catch (error) {\n UTILS.errorNotification(t(errorHandler(error)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n }\n\n const handleInputValue = (key, value) =>\n setAreaState({ ...areaState, [key]: value });\n\n const handledeliveryFee = async (key, value) =>\n setAreaState({ ...areaState, [key]: value });\n const addAreaParams = () => {\n const deliveryTimeInMins = calculateDeliveryTimeInMins({\n deliveryTime: areaState.deliveryTime,\n });\n const userDetail = UTILS.getCurrentUser();\n return {\n brandId: userDetail.brandId,\n storeId: selectedStore?.value,\n translations: {\n en: {\n name: areaState.areaName,\n },\n ar: {\n name: areaState.areaName,\n },\n },\n city: {\n en: selectedCity?.name.en,\n ar: selectedCity?.name.ar,\n },\n country: {\n en: selectedCountry?.name.en,\n ar: selectedCountry?.name.ar,\n },\n description: areaState.description,\n polygon: polygons.coordinates?.length > 0 ? polygons.coordinates : null,\n minOrder: Number(areaState.minOrder),\n deliveryFee: Number(areaState.deliveryFee),\n deliveryTime: Number(deliveryTimeInMins),\n };\n };\n\n const addAreafromMap = async () => {\n try {\n if (\n !isValidDrawAreInputFields({\n areaState,\n selectedCity,\n selectedCountry,\n selectedStore,\n }).isValid\n ) {\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const result = await API.addCustomStoreMapArea(addAreaParams());\n if (result?.success === 1) {\n history.push(`/app/dashboard/mapped-area-method`);\n UTILS.successNotification(result.message);\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n } catch (error) {\n UTILS.errorNotification(t(errorHandler(error?.message)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const handleCountryChange = (value, option) => {\n setSelectedCountry(option.data);\n setSelectedCity(null);\n };\n\n const handleCityChange = (value, option) => setSelectedCity(option.data);\n\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n getStoreMappedAddedAreas(value.value);\n dispatch(AreasAction.setStore(value));\n };\n useEffect(() => {\n if (selectedStore?.value) getStoreMappedAddedAreas(selectedStore.value);\n }, []);\n\n return (\n \n );\n}\n\nexport default DrawAreaOnMap;\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\nimport { convertPolygonArrayToObject } from \"../../helpers\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport GoogleMap from \"../components/GoogleMap\";\nimport BackButton from \"components/BackButton\";\nimport { useTranslation } from \"react-i18next\";\nimport { Select } from \"antd\";\nimport { AreasAction } from \"redux/actions\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nfunction DrawAreaOnMap() {\n const mapRef = useRef(null);\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { stores } = useAllStores();\n\n const [polygons, setPolygons] = useState(null);\n const [plottedPolygons, setPlottedPolygons] = useState([]);\n\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n\n async function getStoreMappedAddedAreas(ID) {\n try {\n if (!ID) return;\n const userDetail = UTILS.getCurrentUser();\n const response = await API.getStoreMappedAreas({\n brandId: userDetail.brandId,\n storeId: ID,\n isPolygonRequired: true,\n });\n if (response?.success === 1) {\n if (response?.data?.length > 0) {\n setPlottedPolygons(convertPolygonArrayToObject(response?.data));\n } else {\n setPlottedPolygons([]);\n }\n } else UTILS.errorNotification(errorHandler(response));\n } catch (error) {}\n }\n\n useEffect(() => {\n if (selectedStore?.value) {\n const Id = selectedStore?.value;\n getStoreMappedAddedAreas(Id);\n }\n }, []);\n\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n getStoreMappedAddedAreas(value.value);\n dispatch(AreasAction.setStore(value));\n };\n\n return (\n <>\n
\n
\n \n
\n\n
\n \n (option?.label ?? \"\").toLowerCase().includes(input.toLowerCase())\n }\n options={stores}\n />\n
\n
\n {selectedStore && (\n {},\n }}\n selectedStore={null}\n operationType=\"view\"\n plottedPolygons={plottedPolygons}\n />\n )}\n \n );\n}\n\nexport default DrawAreaOnMap;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorNotification } from \"utils/Utils\";\nimport { successNotification } from \"utils/Utils\";\nimport { UTILS } from \"utils\";\nimport useGetStoreAddedMappedAreas from \"./useGetStoreAddedMapAreas\";\n\nfunction useToggleStatus() {\n const dispatch = useDispatch();\n const getAddedPolygonBasedAreas = useGetStoreAddedMappedAreas();\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const toggleZoneStatus = async ({ payload, onClose }) => {\n try {\n const userDetail = UTILS.getCurrentUser();\n\n dispatch(LoaderAction.setLoading(true));\n const response = await API.togglePolyonAreaStatus({\n ...payload,\n storeId: selectedStore.value,\n brandId: userDetail.brandId,\n });\n\n if (response?.success === 1 && response?.data) {\n successNotification(response?.message);\n await getAddedPolygonBasedAreas({\n storeId: selectedStore?.value,\n isPolygonRequired: false,\n });\n onClose();\n } else {\n console.log(\"error\", response);\n errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n console.log(\"error\", error);\n errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return toggleZoneStatus;\n}\n\nexport default useToggleStatus;\n","import React from \"react\";\n\nfunction CurrencyFormatter({ currentLanguage, val }) {\n return (\n <>\n {new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n })?.format(val)}\n \n );\n}\n\nexport default CurrencyFormatter;\n","export const MAPPED_AREA_MODAL_ID = {\n ADD_AREA: 0,\n DELETE_AREA: 1,\n UPDATE_AREA: 2,\n ADD_ITEM_TO_AREA: 3,\n DRAW_MAP_AREA: 4,\n EDIT_MAP_AREA: 5,\n OPEN_DISTANCE_MODAL: 6,\n EDIT_DISTANCE_MODAL: 7,\n};\n","import React, { useState, useMemo } from \"react\";\nimport { Table, Button, Spin } from \"antd\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport RenderTime from \"features/shipping_methods/common/RenderTime\";\nimport RadioButton from \"components/RadioButton\";\nimport useToggleStatus from \"./hooks/useChangeAreaStatus\";\nimport CurrencyFormatter from \"components/CurrencyFormatter\";\nimport { MAPPED_AREA_MODAL_ID } from \"features/shipping_methods/constants\";\nfunction AreasTable({\n setOpen,\n setDialogContentId,\n selectedRowKeys,\n setSelectedDataRows,\n setSelectedRowsKeys,\n}) {\n const history = useHistory();\n const { t } = useTranslation();\n const changeAreaStatus = useToggleStatus();\n\n const { addedMappedAreas, selectedStore } = useSelector(\n (state) => state.AreasReducer\n );\n\n const [searchTerm, setSearch] = useState(\"\");\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n\n const toggleAreaStatus = (row, val) => {\n const payload = {\n mappedAreaBaseDeliveryMethodId: row?._id,\n isActive: !val,\n };\n changeAreaStatus({ payload, onClose: () => {} });\n };\n\n const columns = [\n {\n key: \"Status\",\n title: t(\"Status\"),\n dataIndex: \"isActive\",\n width: \"10%\",\n render: (val, row) => {\n return (\n {\n e.stopPropagation();\n }}\n >\n {\n toggleAreaStatus(row, val);\n }}\n />\n \n );\n },\n },\n {\n key: \"areaID\",\n title: t(\"Area Name\"),\n dataIndex: [\"mappedAreaInfo\", \"translations\"],\n sorter: (a, b) =>\n a?.areaID?.areaNameEN?.localeCompare(b?.areaID?.areaNameEN),\n render: (val) => {\n return val?.[currentLanguage?.toLowerCase()]?.name;\n },\n },\n\n {\n key: \"cityID\",\n title: t(\"City Name\"),\n sorter: (a, b) =>\n a?.cityID?.cityNameEN?.localeCompare(b?.cityID?.cityNameEN),\n dataIndex: [\"mappedAreaInfo\", \"city\"],\n render: (val, row, index) => {\n return val?.[currentLanguage?.toLowerCase()];\n },\n },\n\n {\n key: \"minOrder\",\n title: t(\"Min. Basket Value\"),\n dataIndex: \"minOrder\",\n sorter: {\n compare: (a, b) => a.minOrder - b.minOrder,\n multiple: 3,\n },\n render: (val) => {\n return ;\n },\n },\n\n {\n key: \"deliveryFee\",\n title: t(\"Delivery Fee\"),\n dataIndex: \"deliveryFee\",\n sorter: {\n compare: (a, b) => a?.deliveryFee - b?.deliveryFee,\n multiple: 3,\n },\n render: (val) => {\n return ;\n },\n },\n\n {\n key: \"deliveryTime\",\n title: t(\"Delivery Time\"),\n dataIndex: \"deliveryTime\",\n sorter: {\n compare: (a, b) => a.deliveryTime - b.deliveryTime,\n multiple: 3,\n },\n render: (val, row, index) => {\n return ;\n },\n },\n {\n key: \"Type\",\n title: t(\"Type\"),\n dataIndex: \"isCustom\",\n render: (val) => {\n return val ? t(\"Custom\") : t(\"Default\");\n },\n },\n ];\n\n const Items = useMemo(() => {\n const lowerCasedSearchTerm = searchTerm?.toLowerCase();\n if (!lowerCasedSearchTerm) {\n return addedMappedAreas;\n }\n return addedMappedAreas?.filter((item) => {\n const areaName =\n item?.mappedAreaInfo?.translations?.en?.name?.toLowerCase();\n const cityName = item?.mappedAreaInfo?.city?.en?.toLowerCase();\n return (\n areaName?.includes(lowerCasedSearchTerm) ||\n cityName?.includes(lowerCasedSearchTerm)\n );\n });\n }, [addedMappedAreas, searchTerm]);\n\n const rowSelection = {\n selectedRowKeys: selectedRowKeys,\n onChange: (selectedRowKeys, selectedRows) => {\n setSelectedDataRows(selectedRows);\n setSelectedRowsKeys(selectedRowKeys);\n },\n onSelectAll: (selected, selectedRows, changeRows) => {\n if (selectedRowKeys.length !== 0) {\n setSelectedRowsKeys([]);\n }\n },\n };\n\n const handSearch = (e) => setSearch(e.target.value);\n\n const deleteArea = () => {\n setOpen(true);\n setDialogContentId(MAPPED_AREA_MODAL_ID.DELETE_AREA);\n };\n const editArea = () => {\n setOpen(true);\n setDialogContentId(MAPPED_AREA_MODAL_ID.UPDATE_AREA);\n };\n\n const areaCount = addedMappedAreas?.length || 0;\n const areaText = `${areaCount} ${t(areaCount <= 1 ? \"Area\" : \"Areas\")}`;\n\n return (\n <>\n
\n \n {selectedStore && (\n <>\n
\n
\n

\n {areaText}\n

\n
\n\n
\n
\n {selectedRowKeys?.length > 0 && (\n <>\n \n {t(\"Edit\")} ({selectedRowKeys.length})\n \n\n \n {t(\"Delete\")} ({selectedRowKeys.length})\n \n \n )}\n
\n\n
\n \n \n \n \n
\n
\n
{\" \"}\n
\n {\n // exclude action column\n\n return {\n onClick: (event) => {\n if (\n selectedRowKeys.length === Items.length ||\n selectedRowKeys.length >= 1\n )\n return;\n\n if (record?.isCustom) {\n history.push({\n pathname: `/app/dashboard/edit-map-area/${record._id}`,\n state: {\n record,\n selectedStore,\n },\n });\n } else {\n setSelectedDataRows([record]);\n setSelectedRowsKeys([record._id]);\n setDialogContentId(MAPPED_AREA_MODAL_ID.UPDATE_AREA);\n setOpen(true);\n }\n }, // click row\n };\n }}\n pagination={{ position: [\"bottomCenter\"], pageSize: 50 }}\n locale={{ emptyText: t(\"No Data\") }}\n rowKey={(record) => record._id}\n />\n
\n \n )}\n
\n
\n \n );\n}\n\nexport default AreasTable;\n","import React, { createContext, useContext, useReducer } from \"react\";\n\n// Create a context\nconst ShippingMethodContext = createContext();\n\n// Define action types\nconst SET_STATE = \"SET_STATE\";\n\n// Reducer function\nconst appReducer = (state, action) => {\n switch (action.type) {\n case SET_STATE:\n return {\n ...state,\n [action.payload.key]: action.payload.value,\n };\n default:\n return state;\n }\n};\n\n// Create a provider component\nexport const ShippingMethodContextProvider = ({ children }) => {\n const [shippingState, dispatch] = useReducer(appReducer, {\n distanceBasedAreas: [],\n selectedStore: {},\n });\n\n const updateShippingState = (key, value) => {\n dispatch({\n type: SET_STATE,\n payload: { key, value },\n });\n };\n\n return (\n \n {children}\n \n );\n};\n\n// Create a custom hook for using the context\nexport const useShippingContext = () => {\n const context = useContext(ShippingMethodContext);\n if (!context) {\n throw new Error(\"useAppState must be used within an AppStateProvider\");\n }\n return context;\n};\n","import { errorHandler } from \"api/api/errorHandler\";\nimport { LoaderAction } from \"redux/actions\";\nimport { UTILS } from \"utils\";\nimport { useDispatch } from \"react-redux\";\nimport { API } from \"api\";\nimport { useShippingContext } from \"store/contexts/ShippingMethodContext\";\n\nfunction useGetAllZones() {\n const dispatch = useDispatch();\n const { updateShippingState } = useShippingContext();\n\n const getAddedDeliveryZones = async (storeId) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const response = await API.getDistanceBaseDeliveryZones({\n storeId,\n brandId: userDetail.brandId,\n });\n if (response?.success === 1 && response?.data) {\n updateShippingState(\"distanceBasedAreas\", response.data);\n return response?.data;\n } else {\n UTILS.errorNotification(errorHandler(response?.message));\n return null;\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n return null;\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return {\n getAddedDeliveryZones,\n };\n}\n\nexport default useGetAllZones;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorNotification } from \"utils/Utils\";\nimport { successNotification } from \"utils/Utils\";\nimport useGetAllZones from \"./useGetAllZones\";\nimport { UTILS } from \"utils\";\n\nfunction useToggleStatus() {\n const dispatch = useDispatch();\n const { getAddedDeliveryZones } = useGetAllZones(\"UPDATE\");\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const toggleZoneStatus = async ({ payload, onClose }) => {\n try {\n const userDetail = UTILS.getCurrentUser();\n\n dispatch(LoaderAction.setLoading(true));\n const response = await API.toggleDistanceBaseDeliveryZoneStatus({\n ...payload,\n storeId: selectedStore.value,\n brandId: userDetail.brandId,\n });\n\n if (response?.success === 1 && response?.data) {\n successNotification(response?.message);\n await getAddedDeliveryZones(selectedStore?.value);\n onClose();\n } else {\n errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return toggleZoneStatus;\n}\n\nexport default useToggleStatus;\n","import React, { useState, useMemo, useEffect } from \"react\";\nimport { Table, Button, Spin } from \"antd\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport Modal from \"components/Modal\";\n\nimport RenderTime from \"features/shipping_methods/common/RenderTime\";\nimport { MAPPED_AREA_MODAL_ID } from \"features/shipping_methods/constants\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport RadioButton from \"components/RadioButton\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useShippingContext } from \"store/contexts/ShippingMethodContext\";\nimport useGetAllZones from \"../hooks/useGetAllZones\";\nimport useToggleStatus from \"../hooks/useToggleStatus\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nfunction ZoneListing({\n setOpen,\n setDialogContentId,\n setSelectedDataRows,\n selectedDataRows,\n}) {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const changeZoneStatus = useToggleStatus();\n const [searchTerm, setSearch] = useState(\"\");\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n deleteItemIndex: null,\n item: null,\n });\n\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { shippingState } = useShippingContext();\n const { getAddedDeliveryZones } = useGetAllZones();\n\n const deleteZone = async (zoneID) => {\n try {\n if (!zoneID) return;\n dispatch(LoaderAction.setLoading(false));\n\n const userDetail = UTILS.getCurrentUser();\n\n const response = await API.deleteDistanceBaseDeliveryZone({\n storeId: selectedStore.value,\n distanceBaseDeliveryMethodId: zoneID,\n brandId: userDetail.brandId,\n });\n if (response?.success === 1) {\n UTILS.successNotification(response?.message);\n await getAddedDeliveryZones(selectedStore?.value);\n setDeleteModal({ isOpen: false, deleteItemIndex: -1, item: null });\n } else {\n UTILS.errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const toggleZoneStatus = async (row, val) => {\n const payload = {\n distanceBaseDeliveryMethodId: row?._id,\n isActive: !val,\n };\n changeZoneStatus({ payload, onClose: () => {} });\n };\n\n const RenderStatus = (val, row, index) => {\n return (\n {\n toggleZoneStatus(row, val);\n }}\n />\n );\n };\n\n const RenderActions = (val, row, index) => {\n return (\n
\n {\n setOpen(true);\n setDialogContentId(MAPPED_AREA_MODAL_ID.EDIT_DISTANCE_MODAL);\n setSelectedDataRows(row);\n }}\n >\n {t(\"Edit\")}\n \n\n onClickDeleteButton(row?._id)}\n danger\n className=\"mx-2 h-10\"\n >\n {t(\"Delete\")}\n \n
\n );\n };\n const columns = [\n {\n key: \"Status\",\n title: t(\"Status\"),\n dataIndex: \"isActive\",\n align: \"center\",\n width: \"10%\",\n render: RenderStatus,\n },\n {\n key: \"name\",\n title: t(\"Zone Name\"),\n dataIndex: \"name\",\n },\n\n {\n key: \"Distance\",\n title: t(\"Distance\"),\n dataIndex: \"distance\",\n },\n\n {\n key: \"minOrder\",\n title: t(\"Min. Basket Value\"),\n dataIndex: \"minOrder\",\n sorter: {\n compare: (a, b) => a.minOrder - b.minOrder,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n\n {\n key: \"deliveryFee\",\n title: t(\"Delivery Fee\"),\n dataIndex: \"deliveryFee\",\n sorter: {\n compare: (a, b) => a.deliveryFee - b.deliveryFee,\n multiple: 3,\n },\n render: (val) => {\n return new Intl.NumberFormat(currentLanguage, {\n style: \"currency\",\n currency: \"AED\",\n }).format(val);\n },\n },\n {\n key: \"deliveryTime\",\n title: t(\"Delivery Time\"),\n dataIndex: \"deliveryTime\",\n sorter: {\n compare: (a, b) => a.deliveryTime - b.deliveryTime,\n multiple: 3,\n },\n render: (val, row, index) => {\n return ;\n },\n },\n {\n key: \"Actions\",\n title: t(\"Actions\"),\n dataIndex: \"isActive\",\n align: \"center\",\n width: \"10%\",\n render: RenderActions,\n },\n ];\n\n const FilteredZones = useMemo(() => {\n const lowerCasedSearchTerm = searchTerm?.toLowerCase();\n if (!lowerCasedSearchTerm) {\n return shippingState?.distanceBasedAreas;\n }\n return shippingState?.distanceBasedAreas?.filter((item) => {\n return item?.name?.toLowerCase()?.includes(lowerCasedSearchTerm);\n });\n }, [shippingState?.distanceBasedAreas, searchTerm]);\n\n const handSearch = (e) => setSearch(e.target.value);\n\n const zoneCount = FilteredZones?.length || 0;\n const zoneText = `${zoneCount} ${t(zoneCount <= 1 ? \"Zone\" : \"Zones\")}`;\n\n useEffect(() => {\n if (selectedStore?.value) {\n getAddedDeliveryZones(selectedStore?.value);\n }\n }, [selectedStore?.value]);\n\n const onClickDeleteButton = (id) => {\n const index = FilteredZones.findIndex((obj) => obj._id === id);\n if (index !== -1) {\n const item = FilteredZones[index];\n setDeleteModal({ isOpen: true, deleteItemIndex: index, item: item });\n }\n };\n\n const handleCancel = () => {\n setDeleteModal({ isOpen: false, deleteItemIndex: -1, item: null });\n };\n\n return (\n
\n \n \n deleteZone(deleteModal.item?._id)}\n Heading={t(\"Are you sure you want to delete this zone?\")}\n title={deleteModal.item?.baseLanguage?.title}\n />\n \n {selectedStore && (\n <>\n
\n
\n

\n {zoneText}\n

\n
\n\n
\n
\n \n \n \n \n
\n
\n
{\" \"}\n
\n record._id}\n />\n
\n \n )}\n
\n
\n );\n}\n\nexport default ZoneListing;\n","import React from \"react\";\nimport { Button, Select } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\nimport PlusIcon from \"features/icons/PlusIcon\";\nimport { CONSTANTS as C } from \"config\";\n\nfunction ButtonsDropDown({ addArea, userType, openDistanceModal }) {\n const { t } = useTranslation();\n const history = useHistory();\n const viewOptions = [\n {\n label: addArea()}>{t(\"Add delivery areas\")},\n key: \"add\",\n },\n {\n label: (\n openDistanceModal()}>\n {t(\"Add distance zone\")}\n \n ),\n value: \"zones\",\n },\n ];\n return (\n
\n
\n {}}\n >\n {viewOptions.map((store) => (\n \n {store.label}\n \n ))}\n \n\n history.push(\"/app/dashboard/store-map-areas-listing\")}\n className=\"font-montserrat px-5 border border-transparent shadow-sm font-medium rounded-sm text-white h-10 focus:outline-none\"\n >\n \n \n \n {t(\"View Areas On Map\")}\n \n
\n
\n );\n}\n\nexport default ButtonsDropDown;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nconst AreasList = ({ isChecked, Items, saveAreaIntoState, city }) => {\n const { t } = useTranslation();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n return (\n \n
\n {Items?.length > 0 &&\n Items?.map((area) => (\n
\n
\n
\n {area?.isAdded ? (\n \n
\n {area?.translations[currentLanguage?.toLowerCase()]?.name}\n
\n
{t(\"Already added\")}
\n
\n ) : (\n saveAreaIntoState(area, city)}\n >\n
\n \n {\n area?.translations[currentLanguage?.toLowerCase()]\n ?.name\n }\n \n \n {area?.isCustom ? t(\"Custom\") : null}\n \n
\n
\n {isChecked(area) ? (\n \n ) : (\n \n )}\n
\n
\n )}\n
\n
\n ))}\n \n
\n );\n};\n\nexport default AreasList;\n","import React, { useState, useMemo } from \"react\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport AreasList from \"./AreasList\";\nimport ShowCityListButton from \"../../common/ShowCityListButton\";\nimport { AreasAction } from \"redux/actions\";\n\nconst CitiesList = ({\n cityAreas,\n searchTerm,\n openAreas,\n cityCountry,\n city,\n}) => {\n const dispatch = useDispatch();\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n const { newSelectedMappedAreas } = useSelector((state) => state.AreasReducer);\n const [open, setOpen] = useState(false);\n const setOpenState = () => {\n open ? setOpen(false) : setOpen(true);\n };\n\n const saveAreaIntoState = (area, areaCity) => {\n let update = [];\n const obj = {\n area: area,\n city: areaCity,\n country: cityCountry,\n };\n const isAreaAlreadySelected = !!newSelectedMappedAreas?.find(\n (c) => c?.area?._id === area?._id\n );\n if (isAreaAlreadySelected) {\n update = newSelectedMappedAreas.filter((c) => c?.area?._id !== area?._id);\n } else {\n update = [...newSelectedMappedAreas, obj];\n }\n dispatch(AreasAction.setNewMappedAreas(update));\n };\n\n const isChecked = (area) =>\n !!newSelectedMappedAreas?.find((c) => c?.area?._id === area?._id);\n\n const Items = useMemo(() => {\n if (searchTerm === \"\" || searchTerm === null) return cityAreas;\n\n const lowerCasedSearchTerm = searchTerm.toLowerCase();\n return cityAreas?.filter((item) => {\n const areaName =\n item?.translations?.en?.name?.toLowerCase() ||\n item?.translations?.ar?.name?.toLowerCase();\n\n const cityName =\n item?.city?.name?.en?.toLowerCase() ||\n item?.city?.name?.ar?.toLowerCase();\n\n return (\n areaName?.includes(lowerCasedSearchTerm) ||\n cityName?.includes(lowerCasedSearchTerm)\n );\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cityAreas?.length, searchTerm, currentLanguage]);\n return (\n
\n
\n \n
\n
{city?.[currentLanguage?.toLowerCase()]}
\n
\n
\n {open || openAreas ? (\n \n ) : null}\n
\n );\n};\n\nexport default CitiesList;\n","import { useSelector, useDispatch } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Button, Spin } from \"antd\";\n\nimport SearchArea from \"../../common/Search\";\nimport PriceInput from \"components/useForm/PriceInput\";\nimport CitiesList from \"../components/CitiesList\";\n\nimport { AreasAction, LoaderAction } from \"redux/actions\";\nimport ChooseTime from \"../../common/ChooseTime\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport TextInput from \"components/TextInput\";\n\nimport { isValidInputFields } from \"features/shipping_methods/helpers\";\n\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport useGetStoreAddedMappedAreas from \"./hooks/useGetStoreAddedMapAreas\";\nimport { errorNotification } from \"utils/Utils\";\nimport { calculateDeliveryTimeInMins } from \"../../helpers\";\nconst AddNewMapAreas = ({ onClose }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const getStoreMappedAddedAreas = useGetStoreAddedMappedAreas();\n\n const [searchTerm, setSearch] = useState(\"\");\n const [openAreas, setOpenAreas] = useState(false);\n\n const { newSelectedMappedAreas, mapCustomBusinessAreas, selectedStore } =\n useSelector((state) => state.AreasReducer);\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const [selectedAreaState, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n\n const handleValues = async (key, value) =>\n setState({ ...selectedAreaState, [key]: value });\n\n const fetchAddedAreas = async (storeID) => {\n try {\n await getStoreMappedAddedAreas({ storeId: storeID });\n onClose();\n dispatch(LoaderAction.setLoading(false));\n } catch (error) {\n UTILS.errorNotification(t(errorHandler(error)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const selectedAreasArray = newSelectedMappedAreas?.map((area) => ({\n mappedAreaId: area?.area?._id,\n translations: {\n en: { name: area?.area?.translations?.en?.name },\n ar: { name: area?.area?.translations?.ar?.name },\n },\n city: {\n en: area?.city?.en,\n ar: area?.city?.ar,\n },\n country: {\n en: area?.country?.en,\n ar: area?.country?.ar,\n },\n }));\n\n const addNewMappedAreas = async () => {\n try {\n const { error, isValid } = isValidInputFields({\n isLoading,\n state: selectedAreaState,\n selectedAreas: newSelectedMappedAreas,\n });\n if (!isValid) {\n errorNotification(error);\n return;\n }\n\n dispatch(LoaderAction.setLoading(true));\n const deliveryTimeInMins = calculateDeliveryTimeInMins({\n deliveryTime: selectedAreaState.deliveryTime,\n });\n const storeID = selectedStore.value;\n const userDetail = UTILS.getCurrentUser();\n const result = await API.addStoreMappedArea({\n mappedAreasInfo: selectedAreasArray,\n minOrder: Number(selectedAreaState.minOrder),\n deliveryFee: Number(selectedAreaState.deliveryFee),\n deliveryTime: Number(deliveryTimeInMins),\n storeId: storeID,\n brandId: userDetail.brandId,\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(result.message));\n dispatch(AreasAction.setNewMappedAreas([]));\n } else {\n UTILS.errorNotification(t(errorHandler(result)));\n }\n await fetchAddedAreas(selectedStore.value);\n } catch (error) {\n UTILS.errorNotification(t(errorHandler(error)));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const handleSearch = (key, val) => {\n setSearch(val.toLowerCase());\n if (val !== \"\") setOpenAreas(true);\n else setOpenAreas(false);\n };\n\n const handleInputValue = (key, val) =>\n handleValues(key, UTILS.NumberConversion(val));\n\n useEffect(() => {\n if (selectedStore?.value)\n getStoreMappedAddedAreas({\n storeId: selectedStore.value,\n });\n }, [selectedStore?.value]);\n\n return (\n
\n \n
\n
\n
\n
\n

\n {t(\"Add delivery areas\")}\n

\n
\n
\n \n \n \n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n handleValues(\"deliveryTime\", val),\n }}\n />\n
\n
\n \n
\n
\n {mapCustomBusinessAreas?.map((country) => {\n return country?.cities?.map((city, index) => {\n return (\n \n );\n });\n })}\n
\n
\n
\n
\n
\n {t(\"I can't find an area (please contact support)\")}\n
\n
\n \n
\n
\n
\n
\n
\n );\n};\n\nAddNewMapAreas.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddNewMapAreas;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport useGetStoreAddedMappedAreas from \"./hooks/useGetStoreAddedMapAreas\";\nimport DeleteAreasModal from \"features/shipping_methods/common/DeleteAreasModal\";\nconst DeleteMapAreas = ({ onClose, selectedAreas, setSelectedRowsKeys }) => {\n const dispatch = useDispatch();\n const getStoreMappedAddedAreas = useGetStoreAddedMappedAreas();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const deleteSelectedAreas = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedAreas.forEach((area) => {\n objectArray.push(area._id);\n });\n\n const result = await API.deleteStoreMappedArea({\n brandId: userDetail.brandId,\n storeId: selectedAreas[0].storeId,\n mappedAreaBaseDeliveryMethodIds: objectArray,\n });\n if (result?.success === 1) {\n UTILS.successNotification(result.message);\n dispatch(AreasAction.updateSelectedArea([]));\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n setSelectedRowsKeys([]);\n\n await getStoreMappedAddedAreas({\n storeId: selectedAreas[0].storeId,\n });\n onClose();\n } catch (error) {\n UTILS.errorNotification(errorHandler(error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return (\n \n );\n};\n\nDeleteMapAreas.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default DeleteMapAreas;\n","import { useDispatch, useSelector } from \"react-redux\";\nimport PropTypes from \"prop-types\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { LoaderAction, AreasAction } from \"redux/actions\";\n\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { isValidInputFields } from \"features/shipping_methods/helpers\";\nimport useGetStoreAddedMappedAreas from \"./hooks/useGetStoreAddedMapAreas\";\n\nimport { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport UpdateAreaModal from \"features/shipping_methods/common/UpdateAreaModal\";\nimport { errorNotification } from \"utils/Utils\";\nimport { calculateDeliveryTimeInMins } from \"../../helpers\";\n\nconst UpdateAreas = ({ onClose, selectedAreas, setSelectedRowsKeys }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const getStoreMappedAddedAreas = useGetStoreAddedMappedAreas();\n\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [state, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n const handleValues = (key, val) => setState({ ...state, [key]: val });\n\n const editAreas = async () => {\n try {\n const { error, isValid } = isValidInputFields({\n isLoading,\n state,\n selectedAreas,\n });\n if (!isValid) {\n errorNotification(error);\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const deliveryTimeInMins = calculateDeliveryTimeInMins({\n deliveryTime: state.deliveryTime,\n });\n const userDetail = UTILS.getCurrentUser();\n let objectArray = [];\n selectedAreas.forEach((area) => {\n objectArray.push(area._id);\n });\n\n const result = await API.updateStoreMappedAreas({\n brandId: userDetail.brandId,\n storeId: selectedAreas[0].storeId,\n mappedAreaBaseDeliveryMethodIds: objectArray,\n minOrder: Number(state.minOrder),\n deliveryFee: Number(state.deliveryFee),\n deliveryTime: Number(deliveryTimeInMins),\n });\n if (result?.success === 1) {\n UTILS.successNotification(t(result.message));\n dispatch(AreasAction.setNewMappedAreas([]));\n } else {\n UTILS.errorNotification(errorHandler(result));\n }\n setSelectedRowsKeys([]);\n await getStoreMappedAddedAreas({\n storeId: selectedAreas[0].storeId,\n });\n onClose();\n } catch (error) {\n UTILS.errorNotification(errorHandler(error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const handleInputValue = (key, val) =>\n handleValues(key, UTILS.NumberConversion(val));\n\n return (\n \n isValidInputFields({ isLoading, state, selectedAreas })?.isValid,\n time: state.deliveryTime,\n setTime: (val) => handleValues(\"deliveryTime\", val),\n }}\n />\n );\n};\n\nUpdateAreas.propTypes = {\n onClose: PropTypes.func,\n};\n\nexport default UpdateAreas;\n","import React from \"react\";\nimport { Button, Select } from \"antd\";\nimport i18n from \"i18n\";\n\nconst ChooseTime = ({ time, setTime }) => {\n const Days = [\n {\n value: 1,\n label: 1 + i18n.t(\"day\"),\n },\n ];\n\n Array.from({ length: 39 }, (_, x) =>\n Days.push({\n value: x + 2,\n label: x + 2 + i18n.t(\"days\"),\n })\n );\n\n const Hours = [\n {\n value: 1,\n label: 1 + i18n.t(\"hour\"),\n },\n ];\n Array.from({ length: 23 }, (_, x) =>\n Hours.push({\n value: x + 2,\n label: x + 2 + i18n.t(\"hours\"),\n })\n );\n const Minutes = [\n {\n value: 1,\n label: 1 + i18n.t(\"minute\"),\n },\n ];\n Array.from({ length: 59 }, (_, x) =>\n Minutes.push({\n value: x + 2,\n label: x + 2 + i18n.t(\"minutes\"),\n })\n );\n const selectDay = (value) => {\n setTime({ ...time, Days: value });\n };\n const selectHours = (value) => {\n setTime({ ...time, Hours: value });\n };\n const selectMinutes = (value) => {\n setTime({ ...time, Minutes: value });\n };\n\n const getSelectedTime = () => {\n let dd = 0,\n hh = 0;\n let button = \"\";\n\n if (time?.Days === 0 && time?.Hours === 0 && time?.Minutes === 0) {\n button = i18n.t(\"Select time\");\n }\n\n if (time?.Days > 0) {\n if (time?.Days === 1) {\n dd = time.Days;\n button += time.Days + i18n.t(\"day\");\n }\n if (time?.Days >= 2) {\n dd = time.Days;\n button += time.Days + i18n.t(\"days\");\n }\n }\n if (time?.Hours > 0) {\n button += dd >= 1 ? \", \" : \"\";\n if (time?.Hours === 1) {\n hh = time.Hours;\n button += time.Hours + i18n.t(\"hour\");\n }\n if (time?.Hours >= 2) {\n hh = time.Hours;\n button += time.Hours + i18n.t(\"hours\");\n }\n }\n if (time?.Minutes > 0) {\n button += hh >= 1 ? \", \" : \"\" || dd >= 1 ? \",\" : \"\";\n if (time?.Minutes === 1) {\n button += time.Minutes + i18n.t(\"minute\");\n }\n if (time?.Minutes >= 2) {\n button += time.Minutes + i18n.t(\"minutes\");\n }\n }\n\n return button;\n };\n return (\n <>\n
\n
\n
\n \n
\n
\n
\n
\n 0 ? time?.Days : i18n.t(\"select days\")}\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n showSearch\n size=\"large\"\n placeholder={i18n.t(\"select days\")}\n optionFilterProp=\"children\"\n onChange={selectDay}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n options={Days}\n />\n
\n
\n
\n
\n 0 ? time?.Hours : i18n.t(\"select hours\")}\n style={{ width: \"150px\" }}\n showSearch\n size=\"large\"\n placeholder={i18n.t(\"select hours\")}\n optionFilterProp=\"children\"\n onChange={selectHours}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={Hours}\n />\n
\n
\n
\n
\n 0 ? time?.Minutes : i18n.t(\"select minutes\")\n }\n style={{ width: \"150px\" }}\n size=\"large\"\n showSearch\n placeholder={i18n.t(\"select minutes\")}\n optionFilterProp=\"children\"\n onChange={selectMinutes}\n // onSearch={onSearch}\n filterOption={(input, option) =>\n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n options={Minutes}\n />\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n \n );\n};\n\nexport default ChooseTime;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Spin, Button } from \"antd\";\nimport PriceInput from \"components/useForm/PriceInput\";\nimport ChooseTime from \"./ChooseTime\";\nimport TextInput from \"components/TextInput\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction ZoneForm({\n onClose,\n selectedAreaState,\n handleValues,\n handleInputValue,\n handleSubmit,\n heading,\n resetState,\n}) {\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { t } = useTranslation();\n\n return (\n
\n \n
\n
\n
\n
\n

\n {heading}\n

\n
\n
\n \n \n \n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n\n
\n handleValues(\"deliveryTime\", val),\n }}\n />\n
\n
\n \n {t(\"Reset Time\")}\n \n \n
\n
\n
\n
\n
\n );\n}\n\nexport default ZoneForm;\n","import { useDispatch, useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport React, { useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { errorNotification } from \"utils/Utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { API } from \"api\";\nimport { calculateDeliveryTimeInMins } from \"features/shipping_methods/helpers\";\nimport { LoaderAction } from \"redux/actions\";\nimport useGetAllZones from \"../hooks/useGetAllZones\";\nimport { successNotification } from \"utils/Utils\";\nimport ZoneForm from \"../components/ZoneForm\";\nconst AddZone = ({ onClose }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { getAddedDeliveryZones } = useGetAllZones();\n\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const [selectedAreaState, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n distance: \"\",\n name: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n\n const handleValues = async (key, value) =>\n setState((prevState) => ({ ...prevState, [key]: value }));\n\n const handleInputValue = (key, val) =>\n handleValues(key, UTILS.NumberConversion(val));\n const resetState = () => {\n setState((prevState) => ({\n ...prevState,\n\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n }));\n };\n\n const validateForm = () => {\n let isValid = true;\n if (!selectedAreaState?.name) {\n errorNotification(t(\"Zone Name is required\"));\n isValid = false;\n }\n if (!selectedAreaState?.distance) {\n errorNotification(t(\"Distance is required\"));\n isValid = false;\n }\n if (selectedAreaState?.distance < 0) {\n errorNotification(t(\"Distance should be greater than 0\"));\n isValid = false;\n }\n\n if (!selectedAreaState?.minOrder) {\n errorNotification(t(\"Min. Basket Value is required\"));\n isValid = false;\n }\n if (!selectedAreaState?.deliveryFee) {\n errorNotification(t(\"Delivery Fee is required\"));\n isValid = false;\n }\n if (\n !selectedAreaState?.deliveryTime?.Days &&\n !selectedAreaState?.deliveryTime?.Hours &&\n !selectedAreaState?.deliveryTime?.Minutes\n ) {\n errorNotification(t(\"Delivery Time is required\"));\n isValid = false;\n }\n return isValid;\n };\n\n const addZone = async () => {\n try {\n if (!validateForm()) {\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n\n const userDetail = UTILS.getCurrentUser();\n const deliveryTime = calculateDeliveryTimeInMins({\n deliveryTime: selectedAreaState.deliveryTime,\n });\n const payload = {\n brandId: userDetail.brandId,\n storeId: selectedStore.value,\n name: selectedAreaState?.name,\n distance: +selectedAreaState?.distance,\n deliveryFee: +selectedAreaState?.deliveryFee,\n deliveryTime: +deliveryTime,\n minOrder: +selectedAreaState?.minOrder,\n };\n const response = await API.addDistanceBaseDeliveryZone(payload);\n if (response?.success === 1 && response?.data) {\n successNotification(response?.message);\n await getAddedDeliveryZones(selectedStore?.value);\n onClose();\n } else {\n errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return (\n \n );\n};\n\nAddZone.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddZone;\n","import { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorNotification } from \"utils/Utils\";\nimport { successNotification } from \"utils/Utils\";\nimport useGetAllZones from \"./useGetAllZones\";\n\nfunction useUpdateZone() {\n const dispatch = useDispatch();\n const { getAddedDeliveryZones } = useGetAllZones(\"UPDATE\");\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const updateZone = async ({ payload, onClose }) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const response = await API.updateDistanceBaseDeliveryZone(payload);\n if (response?.success === 1 && response?.data) {\n successNotification(response?.message);\n await getAddedDeliveryZones(selectedStore?.value);\n onClose();\n } else {\n errorNotification(errorHandler(response?.message));\n }\n } catch (error) {\n errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return updateZone;\n}\n\nexport default useUpdateZone;\n","import React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\n\nimport { UTILS } from \"utils\";\nimport { errorNotification } from \"utils/Utils\";\nimport { calculateDeliveryTimeInMins } from \"features/shipping_methods/helpers\";\nimport useUpdateZone from \"../hooks/useUpdateZone\";\nimport ZoneForm from \"../components/ZoneForm\";\n\nfunction EditZone({ onClose, selectedDataRows }) {\n const { t } = useTranslation();\n const updateZoneInfo = useUpdateZone();\n\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n\n const handleValues = (key, value) => {\n setState((prevState) => ({ ...prevState, [key]: value }));\n };\n const resetState = () => {\n setState((prevState) => ({\n ...prevState,\n\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n }));\n };\n\n const handleInputValue = (key, val) =>\n handleValues(key, UTILS.NumberConversion(val));\n\n const [selectedZoneState, setState] = useState({\n minOrder: \"\",\n deliveryFee: \"\",\n distance: \"\",\n name: \"\",\n deliveryTime: {\n Hours: 0,\n Minutes: 0,\n Days: 0,\n },\n });\n\n const validateForm = () => {\n let isValid = true;\n const { name, distance, minOrder, deliveryFee, deliveryTime } =\n selectedZoneState;\n if (!name) {\n errorNotification(t(\"Zone Name is required\"));\n isValid = false;\n }\n if (!distance) {\n errorNotification(t(\"Distance is required\"));\n isValid = false;\n }\n if (distance < 0) {\n errorNotification(t(\"Distance should be greater than 0\"));\n isValid = false;\n }\n\n if (!minOrder) {\n errorNotification(t(\"Min. Basket Value is required\"));\n isValid = false;\n }\n if (!deliveryFee) {\n errorNotification(t(\"Delivery Fee is required\"));\n isValid = false;\n }\n if (!deliveryTime?.Days && !deliveryTime?.Hours && !deliveryTime?.Minutes) {\n errorNotification(t(\"Delivery Time is required\"));\n isValid = false;\n }\n return isValid;\n };\n\n const updateZone = async () => {\n const brandId = UTILS.getCurrentUser()?.brandId;\n if (!validateForm() || !brandId) return;\n\n const deliveryTime = calculateDeliveryTimeInMins({\n deliveryTime: selectedZoneState.deliveryTime,\n });\n const payload = {\n brandId,\n storeId: selectedDataRows?.storeId,\n name: selectedZoneState.name,\n distance: +selectedZoneState.distance,\n deliveryFee: +selectedZoneState.deliveryFee,\n deliveryTime: +deliveryTime,\n minOrder: +selectedZoneState.minOrder,\n distanceBaseDeliveryMethodId: selectedDataRows?._id,\n };\n\n updateZoneInfo({ payload, onClose });\n };\n\n useEffect(() => {\n if (selectedDataRows?._id) {\n setState((prevState) => ({\n ...prevState,\n minOrder: selectedDataRows?.minOrder,\n deliveryFee: selectedDataRows?.deliveryFee,\n distance: selectedDataRows?.distance,\n name: selectedDataRows?.name,\n deliveryTime: {\n Days: Math.floor(selectedDataRows?.deliveryTime / 1440),\n Hours: Math.floor((selectedDataRows?.deliveryTime % 1440) / 60),\n Minutes: Math.floor((selectedDataRows.deliveryTime % 1440) % 60),\n },\n }));\n }\n }, [selectedDataRows]);\n return (\n \n );\n}\n\nexport default EditZone;\n","import { Tabs, Select } from \"antd\";\nimport React, { useState } from \"react\";\nimport MapAreasListing from \"./PolygonBased/MapAreasListing\";\nimport ZoneListing from \"./distanced-based-method/containers/ZoneListing\";\nimport { useTranslation } from \"react-i18next\";\nimport useUserType from \"hooks/useUserType\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { UTILS } from \"utils\";\nimport ActionButtonsDropDown from \"../common/ActionButtonsDropDown\";\nimport { AreasAction } from \"redux/actions\";\nimport { MAPPED_AREA_MODAL_ID } from \"features/shipping_methods/constants\";\nimport AddNewAreas from \"./PolygonBased/AddNewAreas\";\nimport DeleteArea from \"./PolygonBased/DeleteArea\";\nimport UpdateAreas from \"./PolygonBased/UpdateAreas\";\nimport AddZone from \"features/shipping_methods/mapped-areas/distanced-based-method/containers/AddZone\";\nimport Modal from \"components/Modal\";\nimport BackButton from \"components/BackButton\";\nimport EditDistanceBAsedZone from \"./distanced-based-method/containers/EditZone\";\n\nconst { TabPane } = Tabs;\n\nfunction Index() {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { stores } = useAllStores();\n const [dialogContentId, setDialogContentId] = useState(-1);\n const [open, setOpen] = useState(false);\n const [selectedRowKeys, setSelectedRowsKeys] = useState([]);\n const [selectedDataRows, setSelectedDataRows] = useState([]);\n const userType = useUserType() || UTILS.getCurrentUser()?.userType;\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n\n const addArea = () => {\n setOpen(true);\n setDialogContentId(MAPPED_AREA_MODAL_ID.ADD_AREA);\n };\n const onStoreChange = (value) => {\n localStorage.setItem(\"storeId\", value.value);\n dispatch(AreasAction.setStore(value));\n };\n\n const openDistanceModal = () => {\n setOpen(true);\n setDialogContentId(MAPPED_AREA_MODAL_ID.OPEN_DISTANCE_MODAL);\n };\n const onSelectChange = () => setSelectedRowsKeys(selectedRowKeys);\n\n const onClose = () => {\n setOpen(false);\n setSelectedRowsKeys([]);\n };\n\n const COMPONENTS_MAP = {\n 0: ,\n 1: (\n \n ),\n 2: (\n \n ),\n 6: ,\n 7: (\n \n ),\n };\n const renderModalContent = () => COMPONENTS_MAP[dialogContentId] || null;\n\n return (\n
\n
\n \n
\n setOpen(false)}\n responsiveClass=\"w-full lg:w-full xl:w-4/5 2xl:2/3\"\n >\n {renderModalContent()}\n \n
\n

{t(\"Select store\")}

\n
\n
\n \n (option?.label ?? \"\")\n .toLowerCase()\n .includes(input.toLowerCase())\n }\n options={stores}\n />\n
\n\n {selectedStore && (\n \n )}\n
\n
\n\n {selectedStore && (\n {}}>\n \n \n \n \n \n \n \n )}\n
\n );\n}\n\nexport default Index;\n","import { API } from \"api\";\nimport { useEffect } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { AreasAction } from \"redux/actions\";\nimport { LoaderAction } from \"redux/actions\";\n\nfunction useGetAllBusinessAreas(getDeliveryAreas) {\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const dispatch = useDispatch();\n\n const getAllBuisnessAreas = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const response = await API.getMappedCountriesCitiesAreas();\n if (response?.success === 1 && response?.data) {\n getDeliveryAreas(response.data?.countries);\n dispatch(AreasAction.setFetchedAreas(response.data?.countries));\n }\n } catch (error) {\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n useEffect(() => {\n getAllBuisnessAreas();\n }, [selectedStore?.value]);\n}\n\nexport default useGetAllBusinessAreas;\n","import EditMapArea from \"features/shipping_methods/mapped-areas/PolygonBased/areas-drawing/EditDrawnArea\";\nimport AddcustomMapArea from \"features/shipping_methods/mapped-areas/PolygonBased/areas-drawing/DrawAreaOnMap\";\nimport StoreMapAreasListing from \"features/shipping_methods/mapped-areas/PolygonBased/StoreMapAreasListing\";\nimport ManageMappedAreas from \"features/shipping_methods/mapped-areas/ManageMappedAreas\";\n\nconst routes = [\n {\n path: \"/app/dashboard/mapped-area-method\",\n component: ManageMappedAreas,\n },\n\n {\n path: \"/app/dashboard/edit-map-area/:mappedAreaId\",\n component: EditMapArea,\n },\n {\n path: \"/app/dashboard/add-custom-map-area\",\n component: AddcustomMapArea,\n },\n {\n path: \"/app/dashboard/store-map-areas-listing\",\n component: StoreMapAreasListing,\n },\n];\n\nexport default routes;\n","import React from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\nimport { UTILS } from \"utils\";\nimport PageHeading from \"components/PageHeading\";\nimport AreasListingContainer from \"./AreasListingContainer\";\nimport { LoaderAction } from \"redux/actions\";\nimport useGetAllBusinessAreas from \"./PolygonBased/hooks/useGetAllBusinessAreas\";\nimport useGetStoreAddedMappedAreas from \"./PolygonBased/hooks/useGetStoreAddedMapAreas\";\n\nconst ManageAreas = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { selectedStore } = useSelector((state) => state.AreasReducer);\n const getStoreMappedAddedAreas = useGetStoreAddedMappedAreas();\n\n const handleAddedMapAreas = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n if (userDetail?.brandId && selectedStore?.value) {\n await getStoreMappedAddedAreas({\n storeId: selectedStore.value,\n });\n }\n dispatch(LoaderAction.setLoading(false));\n } catch (error) {}\n };\n\n useGetAllBusinessAreas(handleAddedMapAreas);\n\n return (\n
\n \n
\n \n
\n
\n );\n};\n\nexport default ManageAreas;\n","import React, { createContext, useContext, useReducer } from \"react\";\n\n// Create a context\nconst MenuContext = createContext();\n\n// Define action types\nconst SET_STATE = \"SET_STATE\";\n\n// Reducer function\nconst appReducer = (state, action) => {\n switch (action.type) {\n case SET_STATE:\n return { ...state, [action.payload.key]: action.payload.value };\n case \"RESET_STATE\":\n return {\n ...state,\n items: [],\n categories: [],\n itemLinkedStores: [{}],\n open: false,\n dialogContentId: -1,\n categoryToUpdateDelete: \"\",\n indexToUpdateDelete: -1,\n random: 0,\n newMenuName: null,\n menuId: null,\n isLinkMenuWithStoresModalOpen: false,\n linkedStores: [],\n isCreateNewMenuModalOpen: false,\n newSelectedStores: [],\n };\n default:\n return state;\n }\n};\n\n// Create a provider component\nexport const MenuContextProvider = ({ children }) => {\n const [menuState, dispatch] = useReducer(appReducer, {\n items: [],\n categories: [],\n itemLinkedStores: [{}],\n open: false,\n dialogContentId: -1,\n categoryToUpdateDelete: \"\",\n indexToUpdateDelete: -1,\n random: 0,\n newMenuName: null,\n menuId: null,\n isLinkMenuWithStoresModalOpen: false,\n linkedStores: [],\n isCreateNewMenuModalOpen: false,\n addedMenus: [],\n newSelectedStores: [],\n menuInfo: {},\n cloneMenuModal: false,\n editMenumodal: false,\n });\n\n const updateState = (key, value) => {\n dispatch({\n type: SET_STATE,\n payload: { key, value },\n });\n };\n const resetState = () => {\n dispatch({\n type: \"RESET_STATE\",\n });\n };\n\n return (\n \n {children}\n \n );\n};\n\n// Create a custom hook for using the context\nexport const useMenuContext = () => {\n const context = useContext(MenuContext);\n if (!context) {\n throw new Error(\"useAppState must be used within an AppStateProvider\");\n }\n return context;\n};\n","import { errorHandler } from \"api/api/errorHandler\";\nimport { useGetBrandMenusMutation } from \"redux/menu/service\";\nimport { UTILS } from \"utils\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useDispatch } from \"react-redux\";\n\nfunction useGetMenus() {\n const { updateState } = useMenuContext();\n const dispatch = useDispatch();\n const [getBrandMenus] = useGetBrandMenusMutation();\n const getAllMenus = async () => {\n dispatch(LoaderAction.setLoading(true));\n try {\n const userDetail = UTILS.getCurrentUser();\n const { data } = await getBrandMenus({\n brandId: userDetail.brandId,\n });\n\n if (data?.success === 1 && data?.data) {\n updateState(\"addedMenus\", data.data);\n } else UTILS.errorNotification(errorHandler(data?.error?.data));\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return getAllMenus;\n}\n\nexport default useGetMenus;\n","import { UTILS } from \"utils\";\nimport useGetMenus from \"./useGetMenus\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDispatch } from \"react-redux\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport { API } from \"api\";\n\nfunction useUpdateMenu() {\n const getAllMenus = useGetMenus();\n const dispatch = useDispatch();\n const { updateState } = useMenuContext();\n const menuUpdate = async ({ rowData, event }) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const brandId = UTILS.getCurrentUser()?.brandId;\n const data = await API.updateMenu({\n menuId: rowData?._id,\n isActive: event,\n brandId,\n baseLanguage: {\n name: rowData.baseLanguage?.name,\n },\n description: rowData?.description,\n });\n\n if (data?.success === 1 && data?.data) {\n UTILS.successNotification(data?.message);\n await getAllMenus();\n updateState(\"editMenumodal\", false);\n } else {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return menuUpdate;\n}\n\nexport default useUpdateMenu;\n","import useGetMenus from \"./useGetMenus\";\nimport { UTILS } from \"utils\";\nimport { LoaderAction } from \"redux/actions\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useDispatch } from \"react-redux\";\nimport { API } from \"api\";\n\nfunction useDeleteMenu() {\n const dispatch = useDispatch();\n\n const getAllMenus = useGetMenus();\n\n const menuDelete = async ({ menuId }) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const brandId = UTILS.getCurrentUser()?.brandId;\n const data = await API.deleteMenu({\n menuId,\n brandId,\n });\n if (data?.success === 1) {\n UTILS.successNotification(data?.message);\n await getAllMenus();\n } else {\n UTILS.handleErrorNotification(errorHandler(data));\n }\n } catch (err) {\n UTILS.handleErrorNotification(errorHandler(err?.error));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return menuDelete;\n}\n\nexport default useDeleteMenu;\n","import React, { useMemo, useState } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport PropTypes from \"prop-types\";\nimport { Button, Card, Table, Space, Tag } from \"antd\";\nimport moment from \"moment\";\nimport SearchInput from \"components/SearchInput\";\nimport { Switch } from \"@headlessui/react\";\nimport { EditOutlined, CopyOutlined, DeleteOutlined } from \"@ant-design/icons\";\nimport useUpdateMenu from \"../hooks/useUpdateMenu\";\nimport useDeleteMenu from \"../hooks/useDeleteMenu\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport Modal from \"components/Modal\";\nimport DeleteComponent from \"components/DeleteConfirm\";\n\nconst MenuListing = ({ menus, setOpen, CreateNewMenu, getMenuById }) => {\n const router = useHistory();\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const { currentLanguage } = useSelector((state) => state.LanguageSlice);\n console.log({ currentLanguage });\n\n const updateMenu = useUpdateMenu();\n const deleteMenu = useDeleteMenu();\n const { resetState, updateState } = useMenuContext();\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n item: null,\n });\n const [searchTerm, setSearch] = useState(null);\n const getMenu = async (id, cb) => {\n resetState();\n await getMenuById(id);\n updateState(cb, true);\n };\n const Actions = ({ rowData }) => {\n return (\n \n {\n getMenu(rowData?._id, \"editMenumodal\");\n }}\n >\n \n {t(\"Edit\")}\n \n {\n getMenu(rowData?._id, \"cloneMenuModal\");\n }}\n >\n \n {t(\"Duplicate\")}\n \n {\n onClickDeleteButton(rowData);\n }}\n >\n \n {t(\"Delete\")}\n \n \n );\n };\n\n const columns = [\n {\n title: \"\",\n dataIndex: \"isActive\",\n align: \"initial\",\n render: (value, rowData, index) => {\n const isActive = rowData.isActive;\n return (\n {\n updateMenu({ rowData, event });\n }}\n className={`mb-1 \n ${isActive ? \" bg-theme-green\" : \"bg-gray-300\"}\n relative inline-flex items-center h-8 rounded-full w-16`}\n >\n \n \n );\n },\n },\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n align: \"initial\",\n render: (value, rowData, index) => {\n return (\n
\n {\n resetState();\n router.push({\n pathname: `/app/dashboard/menu-editor/${rowData?._id}`,\n state: {\n menu: rowData,\n },\n });\n }}\n >\n {value?.name}\n \n\n {rowData?.isDefault ? (\n {t(\"Default\")}\n ) : (\n \"\"\n )}\n
\n );\n },\n },\n {\n title: t(\"Used By\"),\n dataIndex: \"stores\",\n align: \"initial\",\n render: (value, rowData, index) => {\n return (\n {\n setOpen(true, rowData?._id);\n }}\n className=\"underline cursor-pointer text-blue-500 \"\n >\n {`${value?.length} ${t(\"Outlet(s)\")}`}\n \n );\n },\n },\n {\n title: t(\"Last Updated\"),\n dataIndex: \"updatedAt\",\n align: \"initial\",\n render: (value, rowData, index) => {\n return <>{moment(value).format(\"DD MMM YYYY\")};\n },\n },\n {\n title: t(\"Action\"),\n dataIndex: \"action\",\n align: \"center\",\n render: (value, rowData, index) => {\n return ;\n },\n },\n ];\n\n const FilteredData = useMemo(() => {\n let searchTermLower = searchTerm?.toLowerCase()?.trim();\n\n if (searchTerm === \"\" || searchTerm === null) {\n return menus;\n }\n return menus?.filter((group) =>\n group.baseLanguage?.name?.toLowerCase()?.includes(searchTermLower)\n );\n }, [menus, searchTerm]);\n\n const onClickDeleteButton = (rowData) => {\n if (rowData?._id) {\n setDeleteModal({ isOpen: true, item: rowData });\n }\n };\n\n const handleCancel = () => {\n setDeleteModal({ isOpen: false, item: null });\n };\n\n return (\n
\n
\n
\n

\n {t(\"Manage Menus\")}\n

\n
\n
\n
\n \n
\n
\n \n {t(\"Create Menu\")}\n \n
\n
\n
\n \n
\n record._id}\n />\n
\n
\n\n \n {\n deleteMenu({\n menuId: deleteModal.item?._id,\n }).then(() => handleCancel());\n }}\n title={deleteModal.item?.baseLanguage?.name}\n Heading={t(\"will be permanently deleted\")}\n />\n \n
\n );\n};\nexport default MenuListing;\nMenuListing.propTypes = {\n item: PropTypes.object,\n};\n","import React from \"react\";\nimport { Checkbox, Spin } from \"antd\";\nimport { useSelector } from \"react-redux\";\n\nfunction LinkUnLinkMenuWithStoresModal({\n stores,\n selectedStores,\n setselectedStores,\n loading,\n}) {\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const handleCheckboxChange = (store) => {\n const storeExists = isSelected(store);\n const storeId = store?.value;\n\n if (storeExists && storeId) {\n const filtered = selectedStores.filter(\n (item) => item?.storeId?._id !== storeId\n );\n setselectedStores(filtered);\n } else {\n const obj = {\n label: store?.label,\n storeId: {\n _id: storeId,\n },\n };\n setselectedStores([...selectedStores, obj]);\n }\n };\n\n const isSelected = (store) => {\n const storeId = store?.value;\n if (!storeId) return false;\n return (\n Array.isArray(selectedStores) &&\n selectedStores.some((item) => item?.storeId?._id === storeId)\n );\n };\n\n const getStore = (id) => {\n if (!id) return;\n if (\n !selectedStores ||\n !Array.isArray(selectedStores) ||\n selectedStores?.length <= 0\n )\n return;\n return selectedStores?.find((item) => item?.storeId?._id === id);\n };\n\n const toggleOption = (store, type) => {\n const storeExists = isSelected(store);\n const storeId = store?.value;\n\n if (!storeExists) {\n const obj = {\n label: store?.label,\n storeId: {\n _id: storeId,\n },\n serviceType: [type.toUpperCase()],\n };\n setselectedStores([...selectedStores, obj]);\n return;\n }\n\n const storeObj = getStore(storeId);\n\n if (storeObj?.serviceType?.includes(type)) {\n if (storeObj?.serviceType?.length === 1) {\n const filteredStores = selectedStores?.filter(\n (item) => item?.storeId?._id !== storeId\n );\n setselectedStores(filteredStores);\n } else {\n const filtered = storeObj?.serviceType?.filter(\n (item) => item !== type.toUpperCase()\n );\n const updatedStore = { ...storeObj, serviceType: filtered };\n setselectedStores([\n ...selectedStores.filter((item) => item?.storeId?._id !== storeId),\n updatedStore,\n ]);\n }\n } else {\n const updatedServiceType = storeObj.serviceType\n ? [...storeObj.serviceType, type.toUpperCase()]\n : [type.toUpperCase()];\n const updatedStore = { ...storeObj, serviceType: updatedServiceType };\n setselectedStores([\n ...selectedStores.filter((item) => item?.storeId?._id !== storeId),\n updatedStore,\n ]);\n }\n };\n\n return (\n \n
\n {stores?.map((store, index) => {\n const storeObj = getStore(store?.value);\n return (\n
\n handleCheckboxChange(store)}\n >\n {store.label}\n\n
\n
\n toggleOption(store, \"PICKUP\")}\n >\n Pickup\n \n
\n
\n toggleOption(store, \"DELIVERY\")}\n >\n Delivery\n \n
\n
\n toggleOption(store, \"DINE IN\")}\n >\n Dine In\n \n
\n
\n \n
\n );\n })}\n
\n
\n );\n}\n\nexport default LinkUnLinkMenuWithStoresModal;\n","import { Spin } from \"antd\";\nimport React from \"react\";\nimport LinkUnLinkMenuWithStoresModal from \"./LinkUnLinkMenuWithStoresModal\";\nimport { useTranslation } from \"react-i18next\";\n\nexport default function CreateNewMenuModal({\n handleMenuNameChange,\n loading,\n stores,\n menus,\n selectedStores,\n setselectedStores,\n newMenuState,\n}) {\n const { t } = useTranslation();\n return (\n \n
\n
\n \n {t(\"Menu Name\")}\n \n \n
\n
\n \n {t(\"Menu Description\")}\n \n \n
\n
\n \n
\n );\n}\n","import React from \"react\";\nimport { Button, Modal } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { useAddNewMenuMutation } from \"redux/menu/service\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport AddNewMenu from \"../AddNewMenu\";\nimport { UTILS } from \"utils\";\nimport { errorNotification } from \"utils/Utils\";\nimport { isValidValue } from \"utils/Utils\";\n\nconst CreateNewMenuModal = ({\n loading,\n stores,\n updateState,\n menuState,\n getAllMenus,\n setLoading,\n}) => {\n const { t } = useTranslation();\n const [addNewMenu] = useAddNewMenuMutation();\n const [newMenuState, setNewMenuState] = React.useState({\n name: \"\",\n description: \"\",\n });\n\n const getStoresObject = (selectedStores) => {\n if (!newMenuState?.name) {\n errorNotification(t(\"Please enter menu name\"));\n return { stores: [], isValidate: false };\n }\n if (\n isValidValue(newMenuState?.description) &&\n newMenuState?.description?.trim()?.length < 5\n ) {\n errorNotification(\n t(\"Minimum description length must be at least 5 characters\")\n );\n return { stores: [], isValidate: false };\n }\n\n if (\n !menuState?.newSelectedStores ||\n menuState?.newSelectedStores?.length <= 0\n ) {\n errorNotification(t(\"Please select at least one store to link\"));\n return { stores: [], isValidate: false };\n }\n\n if (!Array.isArray(selectedStores) || selectedStores.length <= 0) {\n errorNotification(t(\"Please select at least one store to link\"));\n return { stores: [], isValidate: false };\n }\n\n const stores = [];\n let isValidate = true;\n\n selectedStores?.forEach((store) => {\n if (!store?.serviceType || store?.serviceType?.length <= 0) {\n errorNotification(\n t(\"Please select service type for x store\", {\n storeName: store?.label,\n })\n );\n isValidate = false;\n return { stores: [], isValidate: false };\n }\n stores.push({\n storeId: store.storeId?._id,\n serviceType: store.serviceType,\n });\n });\n\n return { stores, isValidate };\n };\n\n const handleMenuStateChange = (e) => {\n setNewMenuState({ ...newMenuState, [e.target.name]: e.target.value });\n };\n const CreateNewMenu = async () => {\n const { stores: StoreIds, isValidate } = getStoresObject(\n menuState?.newSelectedStores\n );\n if (!isValidate) return;\n setLoading(true);\n\n try {\n const res = await addNewMenu({\n brandId: UTILS.getCurrentUser()?.brandId,\n baseLanguage: { name: newMenuState?.name },\n ...(newMenuState?.description?.trim() && {\n description: newMenuState?.description,\n }),\n stores: StoreIds,\n });\n\n if (res?.data?.success === 1) {\n UTILS.successNotification(res?.data?.message);\n setNewMenuState({\n name: null,\n description: null,\n });\n resetMenuState();\n } else {\n UTILS.errorNotification(errorHandler(res?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n updateState(\"isCreateNewMenuModalOpen\", false);\n await getAllMenus();\n setLoading(false);\n }\n };\n\n const resetMenuState = () => {\n setNewMenuState((prev) => ({\n ...prev,\n name: \"\",\n description: \"\",\n }));\n updateState(\"newMenuName\", \"\");\n updateState(\"newSelectedStores\", []);\n updateState(\"linkedStores\", []);\n updateState(\"isCreateNewMenuModalOpen\", false);\n };\n\n return (\n {\n updateState(\"isCreateNewMenuModalOpen\", false);\n resetMenuState();\n }}\n footer={[\n
\n \n \n
,\n ]}\n width={500}\n bodyStyle={{ overflowY: \"auto\", maxHeight: \"calc(100vh - 500px)\" }}\n >\n updateState(\"newSelectedStores\", val)}\n />\n \n );\n};\n\nexport default CreateNewMenuModal;\n","import { errorHandler } from \"api/api/errorHandler\";\nimport { useLinkStoreWithMenuMutation } from \"redux/menu/service\";\nimport { UTILS } from \"utils\";\nimport { errorNotification } from \"utils/Utils\";\n\nconst getStoresObject = (selectedStores) => {\n let stores = [];\n let isValidate = true;\n if (!Array.isArray(selectedStores) || selectedStores?.length <= 0) {\n errorNotification(\"Please select at least one store to link\");\n isValidate = false;\n return;\n }\n\n selectedStores?.forEach((store) => {\n if (store?.serviceType?.length <= 0 || !store?.serviceType) {\n errorNotification(`Please select service type for ${store?.label}`);\n isValidate = false;\n return;\n }\n stores.push({\n storeId: store?.storeId?._id,\n serviceType: store?.serviceType,\n });\n });\n\n return {\n stores,\n isValidate,\n };\n};\n\nfunction UesLinkStoreWithMenu({\n setLoading,\n updateState,\n selectedStores,\n getAllMenus,\n menuId,\n}) {\n const [linkStoreWithMenu] = useLinkStoreWithMenuMutation();\n const linkMenu = async () => {\n if (!menuId) return UTILS.errorNotification(\"Please select menu\");\n const { stores, isValidate } = getStoresObject(selectedStores);\n if (!isValidate) return;\n try {\n setLoading(true);\n const res = await linkStoreWithMenu({\n brandId: UTILS.getCurrentUser()?.brandId,\n menuId,\n stores,\n });\n if (res?.data?.success === 1) {\n updateState(\"linkedStores\", []);\n updateState(\"isLinkMenuWithStoresModalOpen\", false);\n UTILS.successNotification(res?.data?.message);\n } else {\n UTILS.errorNotification(errorHandler(res?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n await getAllMenus();\n setLoading(false);\n }\n };\n return {\n linkMenu,\n };\n}\n\nexport default UesLinkStoreWithMenu;\n","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Button, Modal as AntModal } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport LinkUnLinkMenuWithStoresModal from \"features/menus/components/LinkUnLinkMenuWithStoresModal\";\n\nfunction LinkStoresWithMenu({\n menuState,\n updateState,\n stores,\n loading,\n linkMenu,\n}) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n return (\n {\n updateState(\"isLinkMenuWithStoresModalOpen\", false);\n updateState(\"linkedStores\", []);\n }}\n footer={[\n
\n \n {t(\"Save\")}\n \n {\n updateState(\"linkedStores\", []);\n updateState(\"isLinkMenuWithStoresModalOpen\", false);\n }}\n >\n {t(\"Cancel\")}\n \n
,\n ]}\n title={t(\"Connections\")}\n width={500}\n bodyStyle={{ overflowY: \"auto\", maxHeight: \"calc(100vh - 500px)\" }}\n className=\"link-modalpopup\"\n >\n updateState(\"linkedStores\", val)}\n menus={menuState.addedMenus}\n />\n \n );\n}\n\nexport default LinkStoresWithMenu;\n","import { errorHandler } from \"api/api/errorHandler\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useGetMenuInfoMutation } from \"redux/menu/service\";\nimport { UTILS } from \"utils\";\nimport { useDispatch } from \"react-redux\";\nimport { useMenuContext } from \"store/contexts/Menus\";\n\nfunction useGetMenuInfo() {\n const dispatch = useDispatch();\n const [getMenuInfo] = useGetMenuInfoMutation();\n const { updateState, resetState } = useMenuContext();\n\n const getCategoriesByMenuId = async (menuId) => {\n if (!menuId) return;\n try {\n dispatch(LoaderAction.setLoading(true));\n resetState();\n const userDetail = UTILS.getCurrentUser();\n const data = await getMenuInfo({\n brandId: userDetail?.brandId,\n menuId,\n });\n\n if (data?.data?.success === 1 && data?.data) {\n let res = data?.data?.data;\n updateState(\"menuInfo\", res);\n updateState(\"categories\", res?.categories);\n updateState(\"itemLinkedStores\", res?.stores);\n updateState(\"linkedStores\", res?.stores);\n } else {\n updateState(\"isLinkMenuWithStoresModalOpen\", false);\n UTILS.errorNotification(errorHandler(data?.data?.error?.data));\n }\n } catch (error) {\n updateState(\"isLinkMenuWithStoresModalOpen\", false);\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return getCategoriesByMenuId;\n}\n\nexport default useGetMenuInfo;\n","import useGetMenus from \"./useGetMenus\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useDispatch } from \"react-redux\";\nimport { useMenuContext } from \"store/contexts/Menus\";\n\nfunction useMakeDuplicateMenu() {\n const getAllMenus = useGetMenus();\n const dispatch = useDispatch();\n const { updateState } = useMenuContext();\n\n const cloneMenu = async ({ menuId, menu }) => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const brandId = UTILS.getCurrentUser()?.brandId;\n const response = await API.cloneMenu({\n brandId,\n cloneMenuId: menuId,\n baseLanguage: {\n name: menu.name,\n },\n ...(menu?.description?.trim() && {\n description: menu.description,\n }),\n });\n if (response?.success === 1) UTILS.successNotification(response?.message);\n else UTILS.handleErrorNotification(response?.message);\n await getAllMenus();\n updateState(\"cloneMenuModal\", false);\n } catch (error) {\n UTILS.handleErrorNotification(error.message);\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return cloneMenu;\n}\n\nexport default useMakeDuplicateMenu;\n","import React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { Spin, Button, Modal } from \"antd\";\n\nimport TextInput from \"components/TextInput\";\nimport { errorNotification } from \"utils/Utils\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport useMakeDuplicateMenu from \"features/menus/hooks/useMakeDuplicateMenu\";\n\nfunction CloneMenu({ menuState, updateState }) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const makeDuplicate = useMakeDuplicateMenu();\n const initialState = {\n name: \"\",\n description: \"\",\n _id: \"\",\n };\n const [editMenu, setEditMenu] = useState({\n values: { ...initialState },\n errors: { ...initialState },\n });\n\n const handleChange = (key, value) => {\n setEditMenu((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: value,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n\n const handleSetErrors = (key, value) => {\n setEditMenu((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n [key]: value,\n },\n }));\n };\n\n const EditSelectedMenu = async () => {\n const { name, description, _id } = editMenu.values;\n if (!name) {\n handleSetErrors(\"name\", \"Please enter menu name\");\n return;\n }\n\n if (description && description?.length < 5) {\n handleSetErrors(\"description\", \"Please enter minimum 5 characters\");\n return;\n }\n try {\n await makeDuplicate({ menuId: _id, menu: editMenu.values });\n } catch (error) {\n errorNotification(errorHandler(error?.message));\n }\n };\n\n const resetState = () => {\n setEditMenu({\n values: { ...initialState },\n errors: { ...initialState },\n });\n };\n\n useEffect(() => {\n const { menuInfo } = menuState || {};\n if (menuInfo && menuInfo?._id) {\n const { baseLanguage, description, _id } = menuInfo;\n setEditMenu({\n values: {\n name: baseLanguage?.name || \"\",\n description: description || \"\",\n _id: _id || \"\",\n },\n errors: { ...initialState },\n });\n } else {\n setEditMenu({\n values: { ...initialState },\n errors: { ...initialState },\n });\n }\n return resetState;\n }, [menuState?.editMenumodal, menuState?.menuInfo]);\n\n return (\n
\n {\n updateState(\"cloneMenuModal\", false);\n resetState();\n }}\n footer={[\n
\n \n {\n updateState(\"cloneMenuModal\", false);\n }}\n >\n {t(\"Cancel\")}\n \n
,\n ]}\n title={t(\"Clone Menu\")}\n width={500}\n open={menuState.cloneMenuModal}\n >\n \n
\n \n
\n
\n \n
\n
\n \n
\n );\n}\n\nexport default CloneMenu;\n","import React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useSelector } from \"react-redux\";\nimport { Spin, Button, Modal } from \"antd\";\n\nimport TextInput from \"components/TextInput\";\nimport useUpdateMenu from \"features/menus/hooks/useUpdateMenu\";\nimport { errorNotification } from \"utils/Utils\";\n\nfunction EditMenu({ menuState, updateState }) {\n const { t } = useTranslation();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const menuUpdate = useUpdateMenu();\n const [editMenu, setEditMenu] = useState({\n values: {\n name: \"\",\n description: \"\",\n _id: \"\",\n },\n errors: {\n name: \"\",\n description: \"\",\n },\n });\n\n const handleChange = (key, value) => {\n setEditMenu((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n [key]: value,\n },\n errors: {\n ...prevState.errors,\n [key]: \"\",\n },\n }));\n };\n const handleSetErrors = (key, value) => {\n setEditMenu((prevState) => ({\n ...prevState,\n errors: {\n ...prevState.errors,\n [key]: value,\n },\n }));\n };\n\n const EditSelectedMenu = async () => {\n if (!editMenu?.values?.name) {\n handleSetErrors(\"name\", \"Please enter menu name\");\n return;\n }\n\n if (\n editMenu?.values?.description &&\n editMenu?.values?.description?.length < 5\n ) {\n handleSetErrors(\"description\", \"Please enter minimum 5 characters\");\n return;\n }\n try {\n await menuUpdate({\n rowData: {\n baseLanguage: {\n name: editMenu?.values?.name,\n },\n ...(EditMenu?.values?.description?.trim() && {\n description: editMenu?.values?.description,\n }),\n _id: editMenu?.values?._id,\n },\n event: menuState.isActive,\n });\n } catch (error) {\n errorNotification(error.message);\n } finally {\n }\n };\n const resetState = () => {\n setEditMenu({\n values: {\n name: \"\",\n description: \"\",\n },\n errors: {\n name: \"\",\n description: \"\",\n },\n });\n };\n\n useEffect(() => {\n if (menuState?.menuInfo) {\n setEditMenu({\n values: {\n name: menuState?.menuInfo?.baseLanguage?.name,\n description: menuState?.menuInfo?.description,\n _id: menuState?.menuInfo?._id,\n },\n errors: {\n name: \"\",\n description: \"\",\n },\n });\n }\n }, [menuState.editMenumodal, menuState?.menuInfo]);\n\n return (\n
\n {\n updateState(\"editMenumodal\", false);\n resetState();\n }}\n footer={[\n
\n \n {\n updateState(\"editMenumodal\", false);\n }}\n >\n {t(\"Cancel\")}\n \n
,\n ]}\n title={t(\"Edit Menu\")}\n width={500}\n open={menuState.editMenumodal}\n >\n \n
\n \n
\n
\n \n
\n
\n \n
\n );\n}\n\nexport default EditMenu;\n","import React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Spin } from \"antd\";\nimport { useSelector } from \"react-redux\";\n\nimport PageHeading from \"components/PageHeading\";\nimport MenuListing from \"../components/MenuListing\";\n\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport CreateNewMenuModal from \"../components/modals/CreateNewMenuModal\";\nimport useLinkUnlinkStoreWithMenu from \"../hooks/useLinkUnlinkStoreWithMenu\";\nimport useGetMenus from \"../hooks/useGetMenus\";\nimport LinkStoresWithMenu from \"../components/modals/LinkStoresWithMenu\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport useGetMenuInfo from \"../hooks/useGetMenuInfo\";\nimport CloneMenu from \"../components/modals/CloneMenu\";\nimport EditMenu from \"../components/modals/EditMenu\";\n\nconst Menus = () => {\n const { t } = useTranslation();\n const { menuState, updateState } = useMenuContext();\n const { stores, setLoading, loading } = useAllStores();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n const [cloneMenuId, setCloneMenuId] = React.useState(null);\n\n const getAllMenus = useGetMenus({ setLoading, updateState });\n const { linkMenu } = useLinkUnlinkStoreWithMenu({\n setLoading,\n updateState,\n selectedStores: menuState?.linkedStores,\n getAllMenus: getAllMenus,\n menuId: menuState?.menuInfo?._id,\n });\n const getMenuById = useGetMenuInfo();\n React.useEffect(() => {\n getAllMenus();\n }, []);\n\n return (\n \n
\n \n \n \n\n
\n {\n updateState(\"isCreateNewMenuModalOpen\", true);\n }}\n setOpen={(val, menuId) => {\n getMenuById(menuId);\n updateState(\"isLinkMenuWithStoresModalOpen\", true);\n }}\n setCloneMenuId={setCloneMenuId}\n />\n
\n
\n \n \n
\n );\n};\n\nexport default Menus;\n","import React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport { UTILS } from \"utils\";\nimport { SVG_DELETE_DIALOG } from \"svg/SVGs\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useParams } from \"react-router-dom\";\nimport { logToSentry } from \"utils/Utils\";\nimport { API } from \"api\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nconst DeleteCategory = ({ handleValues, onClose, cat, index }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const params = useParams();\n\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const { menuState, updateState } = useMenuContext();\n console.log(\"DeleteCategory -> cat\", menuState);\n const deleteCategory = async () => {\n try {\n if (!cat?.categoryId?._id) {\n logToSentry(\n `deleteCategory issue ${JSON.stringify(menuState)}`,\n \"error\"\n );\n window.location.reload();\n UTILS.errorNotification(\"Please try again later\");\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const result = await API.unLinkCategoryWithMenu({\n brandId: UTILS.getCurrentUser()?.brandId,\n menuId: params?.menuId || menuState.menuId,\n categoryId: cat?.categoryId?._id,\n });\n\n if (result?.success === 1) {\n handleValues(index);\n updateState(\"indexToUpdateDelete\", index);\n UTILS.successNotification(result?.data?.message || \"Category unlinked\");\n onClose();\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n return (\n
\n
\n \n
\n \n

{t(\"Delete Category\")}

\n

\n {cat?.categoryId?.baseLanguage?.name}\n

\n

\n {t(\"Do you really want to delete? This process cannot be undone\")}\n

\n
\n
\n \n \n
\n
\n
\n
\n );\n};\n\nDeleteCategory.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n cat: PropTypes.object,\n index: PropTypes.number,\n};\nexport default DeleteCategory;\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { useAccordion } from \"features/menu/components/AccordionN\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n AngleUpIcon,\n AngleDownIcon,\n SVG_THREE_DOT_VERTICAL,\n SVG_DRAGDROP,\n} from \"svg/SVGs\";\n\nconst SingleCategory = ({\n toggle,\n cat,\n editCat,\n keyVal,\n unLinkMenuCat,\n getCategoryInfo,\n}) => {\n const { t } = useTranslation();\n const { selected, toggleItem } = useAccordion();\n const [hidden, setHidden] = useState(true);\n\n const classToggle = (event) => {\n setHidden(!hidden);\n event.stopPropagation();\n };\n\n const myRef = useRef();\n const outside = (e) => {\n if (!myRef?.current?.contains(e.target)) {\n setHidden(true);\n }\n };\n useEffect(() => {\n document.addEventListener(\"mousedown\", outside);\n return () => document.removeEventListener(\"mousedown\", outside);\n });\n\n return (\n {\n toggleItem(toggle);\n if (selected !== toggle) getCategoryInfo(cat._id);\n }}\n >\n \n {selected === toggle ? : }\n \n
\n \n
\n

{cat?.baseLanguage?.name}

\n
\n \n {t(\"link items\")}\n \n
\n
\n \n
\n \n {\n editCat(keyVal);\n event.stopPropagation();\n }}\n className=\"z-10 w-full flex py-1 px-3 text-14px text-black hover:text-indigo-600 border-b border-gray-200\"\n >\n {t(\"Edit\")}\n \n {\n unLinkMenuCat(keyVal);\n event.stopPropagation();\n }}\n className=\"z-10 flex py-1 px-3 text-14px text-theme-red hover:text-indigo-600 font-semibold\"\n >\n {t(\"Delete\")}\n \n \n
\n
\n \n );\n};\nexport default SingleCategory;\n\nSingleCategory.propTypes = {\n toggle: PropTypes.string,\n cat: PropTypes.object,\n editCat: PropTypes.func,\n deleteCat: PropTypes.func,\n keyVal: PropTypes.number,\n itemCount: PropTypes.number,\n};\n","import { API } from \"api\";\nimport TextInput from \"components/TextInput\";\nimport React, { useState } from \"react\";\nimport { UTILS } from \"utils\";\nimport PropTypes from \"prop-types\";\nimport { SVG_Business } from \"svg/SVGs\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport { errorHandler } from \"api/api/errorHandler\";\n\nconst AddCategory = ({ menuId, handleValues, onClose }) => {\n const { t } = useTranslation();\n const [category, setCategory] = useState(UTILS.getCategoryModel());\n const [loading, setLoading] = useState(false);\n\n const handleChange = (key, val) => {\n setCategory((prevState) => ({\n ...prevState,\n values: {\n baseLanguage: {\n [key]: val,\n },\n },\n errors: {\n baseLanguage: {\n [key]: \"\",\n },\n },\n }));\n };\n const validateInput = () => {\n const baseLanguageName = category?.values?.baseLanguage?.name;\n if (!baseLanguageName || UTILS.hasWhiteSpace(baseLanguageName)) {\n setCategory((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n baseLanguage: {\n name: t(\"Enter category name\"),\n },\n },\n }));\n return false;\n }\n return true;\n };\n\n const saveCategory = async () => {\n try {\n const {\n baseLanguage: { name },\n } = category.values;\n const trimmedName = name.trim();\n\n if (!validateInput()) {\n return;\n }\n\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n\n const result = await API.ADD_CATEGORY({\n ...category.values,\n brandId: userDetail.brandId,\n menuId: menuId,\n baseLanguage: { name: trimmedName },\n });\n\n if (result?.success === 1) {\n const categoryId = result.data?.category?._id;\n const obj = {\n categoryId: {\n _id: categoryId,\n baseLanguage: { name: trimmedName },\n ...category.values,\n },\n items: [],\n };\n handleValues(obj);\n UTILS.successNotification(result?.message || t(\"Category added\"));\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n return (\n
\n \n
\n
\n \n

\n {t(\"Add New Category\")}\n

\n
\n \n
\n
\n
\n \n \n
\n
\n
\n
\n );\n};\n\nAddCategory.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n};\nexport default AddCategory;\n","import React, { useEffect, useState } from \"react\";\nimport { Button, Spin } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport TextInput from \"components/TextInput\";\nimport { SVG_Business } from \"svg/SVGs\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { UTILS } from \"utils\";\nimport { API } from \"api\";\n\nconst UpdateCategory = (props) => {\n const [category, setCategory] = useState(UTILS.getCategoryModel());\n const [loading, setLoading] = useState(false);\n const { t } = useTranslation();\n const handleValues = (key, val) => {\n setCategory((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n baseLanguage: {\n [key]: val,\n },\n },\n errors: {\n baseLanguage: {\n [key]: \"\",\n },\n },\n }));\n };\n\n useEffect(() => {\n setCategory((prevState) => ({\n ...prevState,\n values: props.cat,\n errors: prevState.errors,\n }));\n }, []);\n const validateInput = () => {\n if (\n !category.values.baseLanguage.name ||\n UTILS.hasWhiteSpace(category.values.baseLanguage.name)\n ) {\n setCategory((prevState) => ({\n ...prevState,\n values: {\n ...prevState.values,\n },\n errors: {\n baseLanguage: {\n [\"name\"]: t(\"Enter category name\"),\n },\n },\n }));\n return false;\n } else {\n return true;\n }\n };\n const updateCategory = async () => {\n try {\n if (validateInput()) {\n const userDetaill = UTILS.getCurrentUser();\n setLoading(true);\n\n const {\n baseLanguage: { name },\n } = category.values;\n const trimmedName = name?.trim();\n const result = await API.UPDATE_CATEGORY({\n categoryId: category?.values?._id,\n ...category.values,\n brandId: userDetaill?.brandId,\n baseLanguage: { name: trimmedName },\n });\n if (result?.success === 1) {\n UTILS.handleSuccesNotification(result?.message);\n props.handleValues(category.values);\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n return (\n
\n
\n \n
\n \n

{t(\"Update Category\")}

\n
\n \n
\n
\n
\n \n \n
\n
\n
\n
\n );\n};\n\nUpdateCategory.propTypes = {\n handleValues: PropTypes.func,\n onClose: PropTypes.func,\n cat: PropTypes.object,\n index: PropTypes.number,\n};\nexport default UpdateCategory;\n","import { Button, Empty } from \"antd\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\n\nfunction EmptyFooter({ url, heading, heading2, handleClick }) {\n const router = useHistory();\n const { t } = useTranslation();\n return (\n {heading}}>\n \n
\n \n {t(\"Close\")}\n \n
\n
\n );\n}\n\nexport default EmptyFooter;\n","import { useDispatch } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useGetBrandItemsMutation } from \"redux/menu/service\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport { UTILS } from \"utils\";\n\nfunction useGetBRandItems() {\n const dispatch = useDispatch();\n const { updateState } = useMenuContext();\n const [getBrandItems] = useGetBrandItemsMutation();\n const getItemsByBrand = async () => {\n try {\n dispatch(LoaderAction.setLoading(true));\n const result = await getBrandItems({\n brandId: UTILS.getCurrentUser()?.brandId,\n });\n if (result?.data?.success === 1 && result?.data) {\n updateState(\"items\", result.data.data);\n }\n } catch (error) {\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return getItemsByBrand;\n}\n\nexport default useGetBRandItems;\n","import React, { useEffect, useMemo, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Checkbox, Button, Spin, Table } from \"antd\";\nimport _ from \"lodash\";\nimport { useTranslation } from \"react-i18next\";\n\nimport SearchInput from \"components/SearchInput\";\nimport EmptyFooter from \"components/EmptyFooter\";\nimport Card from \"components/Card\";\nimport { UTILS } from \"utils\";\n\nimport { errorHandler } from \"api/api/errorHandler\";\nimport { useLinkItemWithCategoryMutation } from \"redux/menu/service\";\nimport useGetBRandItems from \"../hooks/useGetBRandItems\";\nimport { API } from \"api\";\n\nconst LinkItemWithCategoryModal = ({\n cat,\n onClose,\n menuId,\n brandItems,\n getCategoryInfo,\n items,\n open,\n}) => {\n const getItemsByBrand = useGetBRandItems();\n const { t } = useTranslation();\n const [loading, setLoading] = useState(false);\n const [checkedRows, setCheckedRows] = useState([]);\n\n const handleRowClick = (item) => {\n const updatedArray = [...checkedRows];\n const existingIndex = updatedArray.findIndex(\n (itemId) => itemId?.itemId === item?._id\n );\n\n if (existingIndex !== -1) {\n // If already selected, remove\n updatedArray.splice(existingIndex, 1);\n } else {\n // If not selected, add\n updatedArray.push({\n itemId: item?._id,\n });\n }\n setCheckedRows(updatedArray);\n };\n\n const Row = (value, item, index) => {\n return (\n row?.itemId === item?._id)}\n onChange={() => handleRowClick(item)}\n />\n );\n };\n\n const columns = [\n {\n title: t(\"Link\"),\n dataIndex: \"price\",\n align: \"center\",\n width: \"10%\",\n render: Row,\n },\n {\n title: t(\"Name\"),\n dataIndex: \"baseLanguage\",\n key: \"title\",\n align: \"center\",\n render: (value, row, i) => {\n return
{value?.title}
;\n },\n },\n {\n title: t(\"Description\"),\n dataIndex: \"baseLanguage\",\n align: \"center\",\n render: (value, row, i) => {\n return
{value?.description}
;\n },\n },\n {\n title: t(\"Price\"),\n dataIndex: \"price\",\n width: \"10%\",\n align: \"center\",\n render: (value, row, i) => {\n return
AED {value}
;\n },\n },\n ];\n\n const [searchTerm, setSearch] = useState(\"\");\n\n const getUnattachedItems = (linkedItems) => {\n const attachedItemsLookup = _.keyBy(\n linkedItems,\n (item) => item?.itemId?._id\n );\n\n const unattachedModifiers = brandItems?.filter(\n (item) => !attachedItemsLookup[item?._id]\n );\n return unattachedModifiers;\n };\n\n const unlinkedITes = useMemo(() => {\n const unlinkedItems = getUnattachedItems(items);\n if (!searchTerm) return unlinkedItems;\n\n return unlinkedItems?.filter((item) =>\n item?.baseLanguage?.title\n ?.toLowerCase()\n ?.includes(searchTerm?.toLowerCase())\n );\n }, [\n items,\n searchTerm,\n cat?._id,\n menuId,\n items?.length,\n open,\n brandItems?.length,\n ]);\n\n const linkItemWithMenuCategory = async () => {\n try {\n setLoading(true);\n const userDetail = UTILS.getCurrentUser();\n const result = await API.linkItemWithCategory({\n brandId: userDetail.brandId,\n categoryId: cat?._id,\n menuId,\n items: checkedRows,\n });\n if (result?.success === 1) {\n await getCategoryInfo(cat?._id);\n UTILS.successNotification(result?.message);\n onClose();\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getItemsByBrand();\n }, []);\n return (\n
\n \n
\n
\n

\n {t(\"Add Items to\")}{\" \"}\n {cat?.baseLanguage?.name}\n

\n
\n
\n \n
\n
\n\n {unlinkedITes?.length >= 1 ? (\n \n \n
\n record._id}\n />\n
\n
\n\n
\n
\n \n {t(\"Close\")}\n \n
\n
\n \n {t(\"Attach\")}\n \n
\n
\n
\n ) : (\n \n )}\n \n \n );\n};\nexport default LinkItemWithCategoryModal;\n\nLinkItemWithCategoryModal.propTypes = {\n onClose: PropTypes.func,\n cat: PropTypes.object,\n handleValues: PropTypes.func,\n itemsToRemove: PropTypes.array,\n};\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Spin } from \"antd\";\nimport { Switch } from \"@headlessui/react\";\nconst LinkUnlinkItemWithStoresModal = ({\n item,\n connectedStores,\n removeItemFromStore,\n loading,\n cat,\n}) => {\n const handleValues = (storeID, ItemID, event, catID) => {\n removeItemFromStore(storeID, ItemID, event, catID);\n };\n const isChecked = (id) => {\n const store = item?.unConnectedStoreIds?.find(\n (unConttedID) => unConttedID === id\n );\n if (store) return false;\n return true;\n };\n\n return (\n \n
\n {connectedStores?.map((store, index) => (\n \n
\n
\n {\n handleValues(\n store?.storeId._id,\n item.itemId._id,\n event,\n cat\n );\n }}\n className={`mb-1 ${\n isChecked(store?.storeId._id)\n ? \"bg-theme-green\"\n : \"bg-gray-300\"\n } relative inline-flex items-center h-8 rounded-full w-16`}\n >\n \n {store?.storeId?.baseLanguage?.name}\n \n \n \n
\n \n {store?.storeId?.baseLanguage?.name}\n \n
\n
\n ))}\n \n
\n );\n};\nexport default LinkUnlinkItemWithStoresModal;\nLinkUnlinkItemWithStoresModal.propTypes = {\n onClose: PropTypes.func,\n cat: PropTypes.object,\n item: PropTypes.object,\n};\n","import React from \"react\";\nimport { Tooltip } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n SVG_VIEW_EYE,\n SVG_DELETE_SMALL,\n SVG_EDIT_SMALL,\n SVG_DRAGDROP,\n} from \"svg/SVGs\";\n\nconst ItemRow = ({ item, deleteItem, handleStores, index }) => {\n const router = useHistory();\n const { t } = useTranslation();\n\n const updateItem = (id) => {\n router.push(\"/app/dashboard/updateitem/\", {\n itemId: id,\n });\n };\n\n return (\n \n
\n \n
\n
\n

{item.itemId.baseLanguage.title}

\n
\n
\n {item.itemId.price + \" \" + t(\"AED\")}\n
\n
\n \n {\n handleStores(item, index);\n }}\n >\n \n \n \n \n updateItem(item.itemId._id)}\n >\n \n \n \n \n deleteItem(item.itemId, index)}\n >\n \n \n \n
\n \n );\n};\nexport default ItemRow;\nItemRow.propTypes = {\n item: PropTypes.object,\n deleteItem: PropTypes.func,\n handleStores: PropTypes.func,\n index: PropTypes.number,\n};\n","import React, { useRef, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { ReactSortable } from \"react-sortablejs\";\nimport { Modal as AntModal } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport { isMobile } from \"react-device-detect\";\n\nimport LinkItemWithCategoryModal from \"features/menus/components/LinkItemWithCategoryModal\";\nimport LinkUnlinkItemWithStoresModal from \"./LinkUnlinkItemWithStoresModal\";\nimport { useAccordion } from \"features/menu/components/AccordionN\";\nimport DeleteComponent from \"components/DeleteConfirm\";\nimport { errorHandler } from \"api/api/errorHandler\";\nimport Modal from \"components/Modal\";\nimport ItemRow from \"./ItemRow\";\nimport { UTILS } from \"utils\";\n\nimport { useToggLeStoreInMenuCategoryITemMutation } from \"redux/menu/service\";\nimport { logErrorOnSentry } from \"utils/Utils\";\nimport { useDispatch } from \"react-redux\";\nimport { LoaderAction } from \"redux/actions\";\nimport { API } from \"api\";\n\nconst CategoryItem = ({\n setLoading,\n cat,\n connectedStores,\n menuId,\n brandItems,\n loading,\n items,\n setItems,\n getCategoryInfo,\n}) => {\n const ref = useRef();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { selected } = useAccordion();\n const [open, setOpen] = useState(false);\n const [dialogContentId, setDialogContentId] = useState(-1);\n const [itemToPassStoresDialog, setItemToPassStoreDialog] = useState();\n\n const DIALOG_VIEW = {\n ADD_ITEM: 0,\n STORES: 1,\n };\n\n const style = {\n panel: `overflow-hidden md:overflow-x-hidden transition-height ease text-gray-600 text-16px`,\n };\n\n const [deleteModal, setDeleteModal] = useState({\n isOpen: false,\n item: null,\n indexToDelete: -1,\n });\n const [isStoreItemModalOpen, setisStoreItemModalOpen] = useState(false);\n const inlineStyle =\n selected === cat?._id\n ? { height: ref.current?.scrollHeight }\n : { height: 0 };\n\n const renderDialogContent = () => {\n switch (dialogContentId) {\n case DIALOG_VIEW.ADD_ITEM:\n return (\n setOpen(false)}\n open={open}\n {...{\n cat,\n menuId,\n brandItems,\n getCategoryInfo,\n items,\n }}\n />\n );\n default:\n break;\n }\n };\n const handleStores = (item, index) => {\n setItemToPassStoreDialog(item);\n setisStoreItemModalOpen(true);\n };\n\n const [toggLeStoreInMenuCategoryITem] =\n useToggLeStoreInMenuCategoryITemMutation();\n\n const removeItemFromStore = async (sId, itemId, val, selectedCatory) => {\n try {\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n dispatch(LoaderAction.setLoading(true));\n\n const result = await toggLeStoreInMenuCategoryITem({\n brandId: userDetail.brandId,\n menuId,\n categoryId: selectedCatory._id,\n itemId,\n storeId: sId,\n });\n\n if (result?.data?.success) {\n let arr = [...itemToPassStoresDialog?.unConnectedStoreIds];\n if (!val) {\n //add\n arr.push(sId);\n setItemToPassStoreDialog((prevState) => ({\n ...prevState,\n unConnectedStoreIds: arr,\n }));\n } else {\n //remove\n arr.splice(\n arr.findIndex((id) => id === sId),\n 1\n );\n setItemToPassStoreDialog((prevState) => ({\n ...prevState,\n unConnectedStoreIds: arr,\n }));\n }\n await getCategoryInfo(selectedCatory?._id);\n } else {\n UTILS.errorNotification(errorHandler(result?.error?.data));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const reOrderCategory = async (order) => {\n setLoading(true);\n dispatch(LoaderAction.setLoading(true));\n try {\n let item = items[order.oldIndex];\n const userDetail = UTILS.getCurrentUser();\n const result = await API.sortItemInCategory({\n brandId: userDetail.brandId,\n menuId,\n categoryId: cat._id,\n itemId: item.itemId._id,\n index: order.newIndex,\n });\n if (result?.success === 1) {\n let arr = [...items];\n arr.splice(order.oldIndex, 1);\n arr.splice(order.newIndex, 0, item);\n setItems(arr);\n } else {\n UTILS.errorNotification(errorHandler(result?.message));\n }\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const unLinkMenuItemFromCategory = async () => {\n try {\n const brandId = UTILS.getCurrentUser()?.brandId;\n if (!deleteModal?.item?._id || !cat?._id || !menuId) {\n setDeleteModal({ isOpen: false, item: null, indexToDelete: -1 });\n logErrorOnSentry(\n `unLinkMenuItemFromCategory ${brandId}`,\n \"error\",\n deleteModal\n );\n UTILS.errorNotification(\n t(\"We're sorry, but something went wrong. Please try again\")\n );\n return;\n }\n setLoading(true);\n const result = await API.unLinkItemWithCategory({\n brandId,\n categoryId: cat?._id,\n itemId: deleteModal?.item?._id,\n menuId,\n });\n\n if (result?.success === 1) {\n let arr = [...items];\n arr.splice(deleteModal.indexToDelete, 1);\n setItems(arr);\n setDeleteModal({ isOpen: false, item: null, indexToDelete: -1 });\n UTILS.successNotification(result?.message || \"Item Unlinked\");\n } else UTILS.errorNotification(errorHandler(result?.message));\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.error?.message));\n } finally {\n setLoading(false);\n }\n };\n\n const handleDeleteCancel = () =>\n setDeleteModal({ isOpen: false, item: null });\n\n const onClickDeleteButton = (item, index) => {\n if (item) {\n setDeleteModal({\n isOpen: true,\n item: item,\n indexToDelete: index,\n });\n }\n };\n\n return (\n
\n setOpen(false)}\n >\n {renderDialogContent()}\n \n \n \n \n {\n setisStoreItemModalOpen(false);\n }}\n footer={null}\n title={\n
\n {itemToPassStoresDialog?.itemId?.baseLanguage?.title || \"\"}\n
\n }\n width={500}\n bodyStyle={{ overflowY: \"auto\", maxHeight: \"calc(100vh - 500px)\" }}\n className=\"link-modalpopup\"\n >\n setOpen(false)}\n item={itemToPassStoresDialog}\n />\n \n {isMobile ? (\n <>\n {items?.map((item, index) => {\n return (\n \n );\n })}\n \n ) : (\n {\n reOrderCategory(order);\n }}\n >\n {items &&\n items.map((item, index) => {\n return (\n \n );\n })}\n \n )}\n\n
\n {\n setDialogContentId(DIALOG_VIEW.ADD_ITEM);\n setOpen(true);\n getCategoryInfo(cat?._id);\n }}\n >\n {t(\"Add Item\")}\n \n
\n
\n );\n};\nexport default CategoryItem;\n\nCategoryItem.propTypes = {\n cat: PropTypes.object,\n handleCount: PropTypes.func,\n pushFrom: PropTypes.string,\n};\n","import React from \"react\";\n\nconst LoadPreview = ({\n classes,\n random,\n width,\n height,\n getStorePreviewURL,\n}) => {\n return (\n \n );\n};\nexport default LoadPreview;\n","import React from \"react\";\nimport ReactDevicePreview from \"react-device-preview\";\n\nconst LoadPreviewWithDevice = ({\n classes,\n random,\n width,\n height,\n getStorePreviewURL,\n}) => {\n return (\n \n \n \n );\n};\nexport default LoadPreviewWithDevice;\n","import LoadPreview from \"features/menu/components/LoadPreview\";\nimport LoadPreviewWithDevice from \"features/menu/components/LoadPreviewWithDevice\";\nimport React from \"react\";\nimport { Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\nimport { ReloadOutlined } from \"@ant-design/icons\";\nimport { UTILS } from \"utils\";\nimport * as C from \"config/Constants\";\nimport useWindowDimensions from \"hooks/useWindowDimensions\";\nimport { useParams } from \"react-router-dom/cjs/react-router-dom.min\";\n\nfunction OrderingPagePreview({ state, updateState }) {\n const params = useParams();\n\n const getStorePreviewURL = () => {\n const userDetail = UTILS.getCurrentUser();\n if (userDetail?.storeFrontURL && userDetail?.temporaryDomainName) {\n let url = userDetail?.storeFrontURL;\n return `${url}${userDetail?.temporaryDomainName}${C.PREVIEW}?menuId=${params?.menuId}`;\n }\n };\n\n const { t } = useTranslation();\n const { width } = useWindowDimensions();\n\n return (\n
\n
\n
\n }\n onClick={() => updateState(\"random\", state.random + 1)}\n >\n {t(\"Refresh\")}\n \n
\n

\n {t(\"Ordering Preview\")}\n

\n
\n
\n {width >= 768 ? (\n \n ) : (\n \n )}\n
\n
\n );\n}\n\nexport default OrderingPagePreview;\n","import { API } from \"api\";\nimport { UTILS } from \"utils\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useDispatch } from \"react-redux\";\nimport { logToSentry } from \"utils/Utils\";\nimport { useMenuContext } from \"store/contexts/Menus\";\n\nfunction useMakeDefault() {\n const { updateState, menuState } = useMenuContext();\n\n const dispatch = useDispatch();\n const makeMenuDeafault = async ({ menuId, callback = () => {} }) => {\n try {\n if (!menuId) {\n logToSentry(\n `Menu Id is required to make default menu menuId${JSON.stringify(\n menuId\n )}`,\n \"error\"\n );\n return;\n }\n dispatch(LoaderAction.setLoading(true));\n const brandId = UTILS.getCurrentUser()?.brandId;\n const res = await API.markAsDefaultMenu({\n brandId,\n menuId: menuId,\n });\n if (res?.success === 1) {\n const menuInfo = {\n ...menuState.menuInfo,\n isDefault: res?.data?.isDefault,\n };\n updateState(\"menuInfo\", menuInfo);\n UTILS.successNotification(res?.message);\n callback();\n } else {\n UTILS.handleErrorNotification(res?.message);\n }\n } catch (error) {\n UTILS.handleErrorNotification(error?.message);\n } finally {\n dispatch(LoaderAction.setLoading(false));\n }\n };\n return makeMenuDeafault;\n}\n\nexport default useMakeDefault;\n","import { Button, Spin } from \"antd\";\nimport useMakeDefault from \"features/menus/hooks/useMakeDefault\";\nimport React from \"react\";\nimport Modal from \"components/Modal\";\nimport { useParams } from \"react-router-dom/cjs/react-router-dom.min\";\nimport { logToSentry } from \"utils/Utils\";\nimport { errorNotification } from \"utils/Utils\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction MakeDefault({\n isLoading,\n setIsMakeDefault,\n isMakeDefaultOpen,\n menuId,\n}) {\n const makeMenuDeafault = useMakeDefault();\n const params = useParams();\n const { t } = useTranslation();\n\n const markMenuDefault = () => {\n if (!params?.menuId) {\n logToSentry(\n `menu id is required to make default menu ${params}`,\n \"error\"\n );\n errorNotification(\"Please try again later\");\n return;\n }\n makeMenuDeafault({ menuId, callback: closemodal });\n\n console.log(\"menuid\", params?.menuId);\n };\n const closemodal = () => {\n setIsMakeDefault(false);\n };\n\n return (\n \n \n
\n

{t(\"Are you sure you want to make this menu default\")}

\n
\n
\n \n {/* \n setIsMakeDefault(false)}\n >\n {t(\"No\")}\n \n
\n
\n \n );\n}\n\nexport default MakeDefault;\n","import React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport { ReactSortable } from \"react-sortablejs\";\nimport { isMobile } from \"react-device-detect\";\nimport { useHistory, useParams } from \"react-router-dom\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\nimport DeleteCategory from \"features/menus/components/modals/DeleteCategory\";\nimport { Accordion } from \"features/menu/components/AccordionN\";\n\nimport PageHeading from \"components/PageHeading\";\nimport Card from \"components/Card\";\nimport Modal from \"components/Modal\";\nimport BackArrow from \"features/icons/BackArrow\";\n\nimport SingleCategory from \"features/menus/components/SingleCategory\";\nimport AddCategory from \"features/menus/components/AddCategory\";\nimport UpdateCategory from \"features/menus/components/UpdateCategory\";\nimport CategoryItem from \"features/menus/components/CategoryItem\";\n\nimport useLinkUnlinkStoreWithMenu from \"../hooks/useLinkUnlinkStoreWithMenu\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\n\nimport { UTILS } from \"utils\";\nimport { useSortCategoryInMenuMutation } from \"redux/menu/service\";\n\nimport { errorHandler } from \"api/api/errorHandler\";\nimport OrderingPagePreview from \"../components/OrderingPagePreview\";\nimport LinkStoresWithMenu from \"../components/modals/LinkStoresWithMenu\";\nimport useGetMenuInfo from \"../hooks/useGetMenuInfo\";\nimport { useMenuContext } from \"store/contexts/Menus\";\nimport MakeDefaultMenuModal from \"features/menus/components/modals/MakeDefaultMenuModal\";\nimport { LoaderAction } from \"redux/actions\";\nimport { useGetMenuCatInfoMutation } from \"redux/menu/service\";\n\nconst MenuEditor = () => {\n const params = useParams();\n const router = useHistory();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { stores, setLoading, loading } = useAllStores();\n const { menuState, updateState } = useMenuContext();\n const { isLoading } = useSelector((state) => state.LoaderReducer);\n\n const getGetMenuInfoByMenuId = useGetMenuInfo({\n setLoading,\n updateState,\n });\n\n //mutations\n const [sortCategoryInMenu] = useSortCategoryInMenuMutation();\n //hooks\n\n const DG_CONTENT_ID = {\n ADD_CATEGORY: 0,\n DELETE_CATEGORY: 1,\n UPDATE_CATEGORY: 2,\n ADD_ITEM_TO_CATEGORY: 3,\n };\n\n //ADD_CATEGORY\n const handleAddCategory = (cat) => {\n let arr = [...menuState.categories];\n arr.push(cat);\n updateState(\"categories\", arr);\n updateState(\"open\", false);\n };\n\n //DELETE_CATEGORY\n const handleDeleteCategory = (index) => {\n let arr = [...menuState.categories];\n arr.splice(index, 1);\n updateState(\"categories\", arr);\n updateState(\"open\", false);\n };\n\n //UPDATE_CATEGORY\n const handleUpdateCategory = (cat) => {\n const arr = [...menuState.categories];\n let updated = {\n categoryId: {\n ...cat,\n },\n };\n arr[menuState.indexToUpdateDelete] = updated;\n updateState(\"categories\", arr);\n updateState(\"open\", false);\n };\n\n const onClose = () => updateState(\"open\", false);\n\n useEffect(() => {\n if (params?.menuId) {\n updateState(\"menuId\", params?.menuId);\n getGetMenuInfoByMenuId(params?.menuId);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [params?.menuId]);\n\n //Fetch all brand items\n\n const unLinkMenuCat = (index) => {\n const cat = menuState.categories[index];\n updateState(\"dialogContentId\", DG_CONTENT_ID.DELETE_CATEGORY);\n updateState(\"categoryToUpdateDelete\", cat);\n updateState(\"indexToUpdateDelete\", index);\n updateState(\"open\", true);\n };\n const [items, setItems] = useState([]);\n const [getMenuCatInfo] = useGetMenuCatInfoMutation();\n\n const getCategoryInfo = async (categoryId) => {\n try {\n if (!categoryId) return;\n setLoading(true);\n dispatch(LoaderAction.setLoading(true));\n const userDetail = UTILS.getCurrentUser();\n const data = await getMenuCatInfo({\n brandId: userDetail.brandId,\n categoryId,\n menuId: params?.menuId,\n });\n if (data?.data?.success === 1 && data?.data?.data?.items) {\n setItems(data.data.data.items);\n } else {\n // setOpen(false);\n UTILS.errorNotification(errorHandler(data?.error?.data));\n }\n } catch (error) {\n // setOpen(false);\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const getCategoryView = (cat, index) => {\n return (\n
\n \n \n
\n );\n };\n\n const renderModalContent = () => {\n switch (menuState.dialogContentId) {\n case 0:\n return (\n \n );\n case 1:\n return (\n \n );\n case 2:\n return (\n \n );\n default:\n break;\n }\n };\n\n const editCat = (index) => {\n const cat = menuState.categories[index];\n updateState(\"dialogContentId\", DG_CONTENT_ID.UPDATE_CATEGORY);\n updateState(\"categoryToUpdateDelete\", cat);\n updateState(\"indexToUpdateDelete\", index);\n updateState(\"open\", true);\n };\n\n const reOrderCategory = async (cat, sortable, evt) => {\n try {\n const userDetail = UTILS.getCurrentUser();\n setLoading(true);\n dispatch(LoaderAction.setLoading(true));\n const result = await sortCategoryInMenu({\n brandId: userDetail.brandId,\n menuId: menuState?.menuId || params?.menuId,\n categoryId: cat.item.dataset.id,\n index: cat.newIndex,\n });\n if (result?.data?.success === 1) {\n } else UTILS.errorNotification(errorHandler(result?.error?.data));\n } catch (error) {\n UTILS.errorNotification(errorHandler(error?.message));\n } finally {\n setLoading(false);\n dispatch(LoaderAction.setLoading(false));\n }\n };\n\n const { linkMenu } = useLinkUnlinkStoreWithMenu({\n setLoading,\n updateState,\n selectedStores: menuState?.linkedStores,\n getAllMenus: () => getGetMenuInfoByMenuId(params?.menuId),\n menuId: params?.menuId,\n });\n\n const [isMakeDefaultOpen, setIsMakeDefault] = useState(false);\n\n return (\n \n \n\n
\n \n \n updateState(\"open\", false)}\n >\n {renderModalContent()}\n \n router.push(\"/app/dashboard/menu-list\")}\n >\n \n \n \n {t(\"Menus\")}\n
\n
\n \n
\n
\n
\n
\n

\n {t(\"Categories\")}\n

\n
\n
\n
\n {\n getGetMenuInfoByMenuId(params?.menuId);\n updateState(\"isLinkMenuWithStoresModalOpen\", true);\n }}\n >\n {t(\"Connections\")}\n \n
\n
\n {\n if (!menuState?.menuInfo?.isDefault)\n // makeMenuDeafault({\n // menuId: params?.menuId,\n // });\n setIsMakeDefault(true);\n }}\n >\n {menuState?.menuInfo?.isDefault\n ? t(\"Default Menu\")\n : t(\"Set Default Menu\")}\n \n
\n\n
\n {\n updateState(\n \"dialogContentId\",\n DG_CONTENT_ID.ADD_CATEGORY\n );\n updateState(\"open\", true);\n }}\n >\n {t(\"New Category\")}\n \n
\n
\n
\n
\n \n {isMobile ? (\n <>\n {menuState?.categories?.map((cat, index) => {\n return getCategoryView(cat.categoryId, index);\n })}\n \n ) : (\n {\n updateState(\"categories\", newState);\n }}\n animation={300}\n onUpdate={(cat, sortable, evt) => {\n reOrderCategory(cat, sortable, evt);\n }}\n >\n {menuState?.categories?.map((cat, index) => {\n return getCategoryView(cat.categoryId, index);\n })}\n \n )}\n \n
\n {\n updateState(\n \"dialogContentId\",\n DG_CONTENT_ID.ADD_CATEGORY\n );\n updateState(\"open\", true);\n }}\n >\n {t(\"New Category\")}\n \n
\n
\n
\n \n
\n
\n
\n \n
\n );\n};\nexport default MenuEditor;\n","import React from \"react\";\nimport { QRCode } from \"react-qrcode-logo\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction QRCodeGenerator({ id, orderPageLink, size = 170, qrCodeSetting }) {\n const { t } = useTranslation();\n return (\n
\n \n

\n {t(\"Scan with your phone to preview\")}\n

\n
\n );\n}\n\nexport default QRCodeGenerator;\n","import { Input } from \"antd\";\nimport React from \"react\";\nimport { UTILS } from \"utils\";\nimport { useTranslation } from \"react-i18next\";\n\nfunction CopyLink({ orderPageLink }) {\n const { t } = useTranslation();\n return (\n
\n
\n \n
\n
\n \n {\n navigator.clipboard.writeText(orderPageLink);\n UTILS.successNotification(t(\"Copied to Clipboard\"));\n }}\n >\n \n \n \n \n \n
\n
\n );\n}\n\nexport default CopyLink;\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport { CloudDownloadOutlined } from \"@material-ui/icons\";\nimport { useTranslation } from \"react-i18next\";\n\nconst DownloadButton = ({ handleDownload }) => {\n const { t } = useTranslation();\n return (\n \n \n {t(\"Download QR code\")}\n \n );\n};\n\nexport default DownloadButton;\n","import React from \"react\";\nimport QRCodeGenerator from \"./QRCodeGenerator\";\nimport CopyLink from \"./CopyLink\";\nimport DownloadButton from \"./DownloadButton\";\n\nfunction PickupDelivery({\n settings,\n orderPageLink,\n stores,\n qrCodeSetting,\n handleLogoSettings,\n handleColorSettings,\n handleDownload,\n}) {\n return (\n
\n {stores?.map((store, index) => {\n return store?.isDineInEnabled ? (\n \n

\n {store?.label}\n

\n \n\n \n\n handleDownload(store?.value)}\n />\n
\n ) : null;\n })}\n \n );\n}\n\nexport default PickupDelivery;\n","import React from \"react\";\nimport QRCodeGenerator from \"./QRCodeGenerator\";\nimport CopyLink from \"./CopyLink\";\nimport { Button } from \"antd\";\nimport { CloudDownloadOutlined } from \"@material-ui/icons\";\nimport DownloadButton from \"./DownloadButton\";\nfunction PickupDelivery({\n settings,\n orderPageLink,\n handleLogoSettings,\n handleColorSettings,\n qrCodeSetting,\n handleDownload,\n}) {\n return (\n
\n \n \n handleDownload(\"pickup\")} />\n
\n );\n}\n\nexport default PickupDelivery;\n","import React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Spin, Tabs } from \"antd\";\nimport DineIn from \"./components/DineIn\";\nimport PickupDelivery from \"./components/PickupDelivery\";\nimport { useGetSettingsMutation } from \"redux/settings/settingsSlice\";\nimport { UTILS } from \"utils\";\nimport useAllStores from \"hooks/useCurrentUserStores\";\nimport RadioButton from \"components/RadioButton\";\nimport { Link } from \"react-router-dom\";\nimport { CONSTANTS as C } from \"config\";\nimport html2canvas from \"html2canvas\";\nconst { TabPane } = Tabs;\n\nconst Index = () => {\n const { t } = useTranslation();\n const { stores, loading } = useAllStores();\n const [settings, setSettings] = useState();\n const [orderPageLink, setOrderPageLink] = useState();\n const [getSettings] = useGetSettingsMutation();\n const fetchSettings = async () => {\n const userDetail = UTILS.getCurrentUser();\n const obj = {\n brandId: userDetail.brandId,\n };\n const { data } = await getSettings(obj);\n if (data?.success === 1 && data?.data) {\n setSettings(data.data);\n }\n };\n useEffect(() => {\n fetchSettings();\n const userDetail = UTILS.getCurrentUser();\n const text = userDetail.storeFrontURL + userDetail?.temporaryDomainName;\n setOrderPageLink(text);\n }, []);\n\n const [qrCodeSetting, setQrCodeSetting] = useState({\n innerColor: null,\n logo: null,\n });\n\n const handleLogoSettings = (key, val) => {\n if (val) {\n setQrCodeSetting({\n ...qrCodeSetting,\n logo: settings?.setting?.brandLogoFirst,\n });\n } else {\n setQrCodeSetting({\n ...qrCodeSetting,\n logo: null,\n });\n }\n };\n\n const handleColorSettings = (key, val) => {\n if (val) {\n setQrCodeSetting({\n ...qrCodeSetting,\n innerColor: settings?.setting?.color,\n });\n } else {\n setQrCodeSetting({\n ...qrCodeSetting,\n innerColor: null,\n });\n }\n };\n\n const handleDownload = (ID) => {\n const el = document.getElementById(ID);\n html2canvas(el, {}).then(function (canvas) {\n const link = document.createElement(\"a\");\n link.download = \"qrcode.png\";\n link.href = canvas.toDataURL();\n link.click();\n });\n };\n\n return (\n \n
\n

\n {t(\"QR codes for your Digital Menu\")}\n

\n

\n {t(\n \"Create a QR code with your ordering page and advertise it on offline places like diner tables and counters, packaging, banners, and more\"\n )}\n

\n
\n {/* add note */}\n
\n {t(\n \"When using branding in QR codes, always verify that they are scanning well before printing\"\n )}\n
\n
\n

\n {t(\"Customization\")}\n

\n \n {t(\"Edit Branding\")}\n \n
\n\n
\n \n
\n
\n
\n {}}>\n \n \n \n {UTILS.getCatalogueType() !== C.BRAND_BASED && (\n \n \n \n )}\n \n
\n
\n
\n );\n};\n\nexport default Index;\n","import { Redirect, Switch } from \"react-router-dom\";\nimport { UTILS } from \"utils\";\nimport { PackageUtil } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport useInterval from \"use-interval\";\nimport React, { useEffect } from \"react\";\nimport Dashboard from \"features/dashboard/container/dashboard\";\nimport UpdateStore from \"features/store/containers/updateStore\";\nimport AddStore from \"features/store/containers/addStore\";\nimport ManageAreas from \"features/shipping_methods/areas/containers/ManageAreas\";\nimport Menu from \"features/menu/containers/menu\";\nimport StoreList from \"features/store/containers/storeList\";\nimport LiveOrders from \"features/orders/containers/liveOrders\";\nimport CreateAdmin from \"features/admin/containers/CreateAdmin\";\nimport ItemContainer from \"features/menu/containers/ItemContainer\";\n\nimport CreateItem from \"features/menu/components/CreateItem\";\nimport UpdateItem from \"features/menu/containers/UpdateItem\";\nimport Packages from \"features/packages/containers/Packages\";\nimport OrderHistory from \"features/orders/containers/OrderHistory\";\nimport Inventory from \"features/inventory/containers/inventory\";\nimport Integrations from \"features/integrations/containers/integrations\";\nimport Customers from \"features/customers/containers/customers\";\nimport Marketing from \"features/marketing/containers/marketing\";\nimport GetStarted from \"features/onboarding/containers/GetStarted\";\nimport ScrollToTop from \"features/settings/components/ScrollToTop\";\nimport TabRoutePermision from \"../../routes/middlewares/Protected\";\nimport useUserType from \"hooks/useUserType\";\nimport AddUpdateLoyaltyProgram from \"features/loyalty/containers/AddUpdateLoyaltyProgram\";\nimport LoyaltyCustomers from \"features/loyalty/containers/LoyaltyCustomers\";\nimport CustomerWalletInfo from \"features/loyalty/containers/CustomerWalletInfo\";\n\nimport Discount from \"features/discount/containers/Discount\";\nimport AddDiscount from \"features/discount/containers/AddDiscount\";\nimport UpdateDiscount from \"features/discount/containers/UpdateDiscount\";\nimport Branding from \"features/settings/containers/Branding\";\nimport Profile from \"features/settings/containers/Profile\";\nimport BusinessSettings from \"features/settings/containers/BusinessSettings\";\nimport Help from \"features/help/containers/help\";\nimport ManageDelivery from \"features/shipping_methods/containers/ManageDelivery\";\nimport ManageCities from \"features/shipping_methods/cities/containers/ManageCities\";\n\nimport ManageCountries from \"features/shipping_methods/countries/containers/ManageCountries\";\nimport ShippingDelivery from \"features/shipping_methods/containers/ShippingDelivery\";\nimport ViewAllPaymentLinks from \"features/paymentlinks/containers/ViewAllPaymentLinks\";\nimport CreatePaymentLinks from \"features/paymentlinks/containers/CreatePaymentLinks\";\nimport ViewPaymentLinkInfo from \"features/paymentlinks/containers/ViewPaymentLinkInfo\";\n//modifer\nimport ModifiersList from \"features/Modifier/Modifier\";\nimport ModifiersGroup from \"features/Modifier/ModifierGroup\";\nimport CreateModifiersGroup from \"features/Modifier/CreateGroup\";\nimport UpdateModifiersGroup from \"features/Modifier/UpdateModiferGroup\";\n//\nimport CreateNewModifier from \"features/Modifier/CreateModifier\";\nimport UpdateNewModifier from \"features/Modifier/UpdateModifier\";\nimport PauseModifier from \"features/inventory/containers/PauseModifiers\";\nimport ReportingRoutes from \"features/reporting/containers/routes\";\nimport MappedAreasRoutes from \"features/shipping_methods/mapped-areas/routes\";\n\n//Menus\nimport MenusLsting from \"features/menus/containers/Menus\";\nimport MenuEdit from \"features/menus/containers/MenuEditor\";\n\nimport QRCodes from \"features/qr-codes/index\";\nimport * as R_CONST from \"routes/Constants\";\n\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { PkgActions } from \"redux/actions\";\nconst SideBarRoutesWithComponent = () => {\n const { expDays } = useSelector((state) => state.PackagesReducer);\n const { CatalogueType } = useSelector((state) => state?.SettingsReducer);\n const userType = useUserType();\n const dispatch = useDispatch();\n const check_PackageValidity = async () => {\n const { result } = await UTILS.checkPackageValidity();\n if (result?.data) {\n const diff = PackageUtil.getPackageExpiry(result.data.subscription);\n dispatch(PkgActions.setDays(diff));\n }\n };\n useEffect(() => {\n check_PackageValidity();\n }, []);\n\n useInterval(() => {\n check_PackageValidity();\n }, C.SIXHOURS);\n\n const restheroSpecificRoutes = [\n {\n path: \"/app/dashboard/onboarding\",\n component: GetStarted,\n },\n\n {\n path: \"/app/dashboard/subscription\",\n component: Packages,\n },\n {\n path: \"/app/dashboard/help\",\n component: Help,\n },\n ];\n\n const publicRoutes = [\n {\n path: \"/app/dashboard\",\n component: Dashboard,\n },\n {\n path: \"/app/dashboard/payment-links\",\n component: ViewAllPaymentLinks,\n },\n {\n path: \"/app/dashboard/integrations\",\n component: Integrations,\n },\n {\n path: \"/app/qr-codes\",\n component: QRCodes,\n },\n {\n path: \"/app/dashboard/shipping\",\n component: ShippingDelivery,\n },\n\n {\n path: \"/app/dashboard/updatestore\",\n component: UpdateStore,\n },\n {\n path: \"/app/dashboard/stores\",\n component: StoreList,\n },\n {\n path: R_CONST.ADD_AREA,\n component: ManageAreas,\n },\n\n {\n path: \"/app/dashboard/orderhistory\",\n component: OrderHistory,\n },\n {\n path: \"/app/dashboard/liveorders\",\n component: LiveOrders,\n },\n\n {\n path: \"/app/dashboard/inventory\",\n component: Inventory,\n },\n\n {\n path: \"/app/dashboard/local-delivery-methods\",\n component: ManageDelivery,\n },\n\n {\n path: \"/app/dashboard/customers\",\n component: Customers,\n },\n\n {\n path: \"/app/dashboard/marketing\",\n component: Marketing,\n },\n\n {\n path: \"/app/dashboard/settings/profile\",\n component: Profile,\n },\n {\n path: \"/app/dashboard/create-payment-links\",\n component: CreatePaymentLinks,\n },\n {\n path: \"/app/dashboard/payment-link-detail\",\n component: ViewPaymentLinkInfo,\n },\n ];\n\n const adminRoutes = [\n ...ReportingRoutes,\n ...MappedAreasRoutes,\n\n {\n path: \"/app/dashboard/addstore\",\n component: AddStore,\n },\n {\n path: \"/app/dashboard/settings/branding\",\n component: Branding,\n },\n {\n path: \"/app/dashboard/settings/business\",\n component: BusinessSettings,\n },\n\n {\n path: \"/app/dashboard/userroles\",\n component: CreateAdmin,\n },\n {\n path: \"/app/dashboard/menu\",\n component: Menu,\n },\n\n {\n path: \"/app/dashboard/items\",\n component: ItemContainer,\n },\n\n {\n path: \"/app/dashboard/createitem\",\n component: CreateItem,\n },\n {\n path: \"/app/dashboard/updateitem\",\n component: UpdateItem,\n },\n\n {\n path: \"/app/dashboard/update-modifier\",\n component: UpdateNewModifier,\n },\n {\n path: \"/app/dashboard/modifiers-list\",\n component: ModifiersList,\n },\n {\n path: \"/app/dashboard/modifier-group\",\n component: ModifiersGroup,\n },\n {\n path: \"/app/dashboard/pause-modifier\",\n component: PauseModifier,\n },\n {\n path: \"/app/dashboard/create-modifier-group\",\n component: CreateModifiersGroup,\n },\n {\n path: \"/app/dashboard/update-modifier-group\",\n component: UpdateModifiersGroup,\n },\n // {\n // path: \"/app/dashboard/updatemodifier\",\n // component: UpdateModifier,\n // },\n {\n path: \"/app/dashboard/add-new-modifier\",\n component: CreateNewModifier,\n },\n {\n path: \"/app/dashboard/discount\",\n component: Discount,\n },\n {\n path: \"/app/dashboard/adddiscount\",\n component: AddDiscount,\n },\n {\n path: \"/app/dashboard/updatediscount\",\n component: UpdateDiscount,\n },\n {\n path: \"/app/dashboard/add-update-brand-loyalty\",\n component: AddUpdateLoyaltyProgram,\n },\n {\n path: \"/app/dashboard/brand-customers\",\n component: LoyaltyCustomers,\n },\n {\n path: \"/app/dashboard/customer-wallet-history\",\n component: CustomerWalletInfo,\n },\n\n {\n path: \"/app/dashboard/menu-list\",\n component: MenusLsting,\n },\n {\n path: \"/app/dashboard/menu-editor/:menuId\",\n component: MenuEdit,\n },\n ];\n\n const shippingRoutes = [\n {\n path: R_CONST.ADD_CITY,\n component: ManageCities,\n },\n {\n path: R_CONST.ADD_COUNTRY,\n component: ManageCountries,\n },\n ];\n return (\n
\n \n {expDays <= 5 ? (\n \n {publicRoutes.map((route, index) => {\n return (\n \n );\n })}\n\n {process.env.REACT_APP_COMPANY_NAME === C.COMPANY_NAMES.RESTHERO\n ? restheroSpecificRoutes.map((route, index) => {\n return (\n \n );\n })\n : null}\n {adminRoutes.map((route, index) => {\n return (\n \n );\n })}\n\n {shippingRoutes.map((route, index) => {\n return CatalogueType === C.BRAND_BASED ? (\n \n ) : (\n \n );\n })}\n \n ) : (\n \n \n \n \n \n )}\n \n
\n );\n};\n\nexport default SideBarRoutesWithComponent;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst VerificationInput = (props) => {\n return (\n <>\n \n \n );\n};\nVerificationInput.propTypes = {\n length: PropTypes.number,\n character: PropTypes.string,\n onchangeValue: PropTypes.func,\n};\nexport default VerificationInput;\n","import React, { useState, useEffect } from \"react\";\nimport VerificationInput from \"components/VerificationInput\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Spin } from \"antd\";\nimport { UTILS } from \"utils\";\nimport { CONSTANTS as C } from \"config\";\nimport { API } from \"api/\";\nimport { useDispatch } from \"react-redux\";\nimport { LoginAction } from \"redux/actions\";\nimport { Language } from \"redux/actions\";\nimport { ROUTES } from \"config\";\nimport { TRACKING_EVENTS } from \"utils\";\nconst VerifyOtp = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const history = useHistory();\n const [isMounted, setIsMounted] = useState(false);\n const [state, setState] = useState({\n loading: false,\n values: {},\n });\n\n const [verificationCode, setVerificationCode] = useState({\n code1: \"\",\n code2: \"\",\n code3: \"\",\n code4: \"\",\n });\n\n const handleChange = (e) => {\n e.preventDefault();\n const { name, value } = e.target;\n let CODE = UTILS.NumberConversion(value);\n setVerificationCode({ ...verificationCode, [name]: CODE });\n };\n\n const inputfocus = (elmnt) => {\n const { name, value } = elmnt.target;\n Object.keys(verificationCode).map((key, index) => {\n if (name === `code${index + 1}` && name !== \"code4\") {\n document.getElementById(`code${index + 2}`).focus();\n }\n if (name === `code${index + 1}` && name === \"code4\") {\n document.getElementById(`code${index + 1}`).blur();\n }\n });\n Object.keys(verificationCode).map((key, index) => {\n if (name === `code${index + 1}` && value === \"\" && index > 0) {\n document.getElementById(`code${index}`).focus();\n }\n if (name === `code${index + 1}` && value === \"\" && index === 0) {\n document.getElementById(`code${index + 1}`).focus();\n }\n });\n };\n\n useEffect(() => {\n if (isMounted) {\n const state = history?.location?.state?.stateRegister;\n if (state) {\n const { stateRegister } = history?.location?.state;\n setState((prevState) => ({\n ...prevState,\n values: stateRegister.values,\n }));\n\n const element = document.getElementById(\"code1\");\n\n element.focus();\n } else {\n history.push(ROUTES.REGISTER);\n }\n } else {\n setIsMounted(true);\n }\n }, [isMounted]);\n\n const validateOtp = () => {\n const code = Object?.values(verificationCode)?.join(\"\");\n if (code === \"\" || code?.length < 4) {\n UTILS.errorNotification(t(\"Please provide a valid OTP code\"));\n return false;\n }\n return true;\n };\n const handleSubmit = async (e) => {\n const code = Object?.values(verificationCode)?.join(\"\");\n const userDetail = UTILS.getCurrentUser();\n e.preventDefault();\n if (!validateOtp()) return;\n setState((prevState) => ({\n ...prevState,\n loading: true,\n }));\n const result = await API.VERIFY_MOBILE_NUMBER({\n verificationCode: code,\n phoneNumber: state?.values?.phoneNumber,\n language: state?.values?.baseLanguage === \"en\" ? \"EN\" : \"AR\",\n });\n if (result?.success === 1 && result?.response === 200 && result?.token) {\n UTILS.handleSuccesNotification(result?.message);\n UTILS.saveCurrentUser({\n ...userDetail,\n token: result.token,\n });\n dispatch(LoginAction.toogleLogin(true));\n\n TRACKING_EVENTS.verifiedRegistrations({\n user_id: userDetail?.userId,\n });\n setTimeout(() => {\n process.env.REACT_APP_COMPANY_NAME === C.COMPANY_NAMES.RESTHERO\n ? (window.location.href = ROUTES.ONBOARDING)\n : (window.location.href = \"/app/dashboard\");\n }, 2000);\n } else {\n UTILS.handleErrorNotification(result?.message);\n }\n\n setTimeout(() => {\n setState((prevState) => ({\n ...prevState,\n loading: false,\n }));\n }, 5000);\n };\n const resend_verification = async () => {\n setSeconds(30);\n setState((prevState) => ({\n ...prevState,\n loading: true,\n }));\n const result = await API.RESEND_VERIFICATION_CODE({\n phoneNumber: state?.values?.phoneNumber,\n });\n\n if (result && result?.success === 1) {\n let number = state?.values?.phoneNumber?.slice(1, 13);\n UTILS.successNotification(t(\"Code re-sent to\") + \":\" + number);\n } else {\n UTILS.errorNotification(t(\"Please try again later\"));\n }\n setState((prevState) => ({\n ...prevState,\n loading: false,\n }));\n };\n const [seconds, setSeconds] = useState(30);\n\n useEffect(() => {\n let myInterval = setInterval(() => {\n if (seconds > 0) {\n setSeconds(seconds - 1);\n }\n }, 1000);\n return () => {\n clearInterval(myInterval);\n };\n }, [seconds]);\n return (\n
\n \n
\n
\n
\n
\n
\n

\n {t(\"Enter Your Verification Code\")}\n

\n

\n {t(\"We have sent a verification code to\") + \": \"}\n {state?.values?.phoneNumber}\n

\n
\n
\n
\n {Object?.keys(verificationCode)?.map((key) => {\n return (\n inputfocus(e)}\n />\n );\n })}\n
\n
\n\n
\n \n {t(\"Next\")}\n \n
\n {seconds > 0 ? (\n
\n \n {t(\"I haven't received the code\")} • {seconds} {t(\"sec\")}\n \n
\n ) : (\n resend_verification()}\n >\n \n {t(\"I haven't received the code\")}\n \n
\n )}\n\n
\n

\n \n {t(\"Have trouble ? Call us at\")}\n \n \n {process.env.REACT_APP_SUPPORT_MOBILE}\n \n

\n
\n
\n
\n
\n \n \n \n );\n};\n\nexport default VerifyOtp;\n","import React, { memo } from \"react\";\nimport { Route, Switch } from \"react-router-dom\";\nimport AuthLayout from \"Layouts/AuthLayout/AuthLayout\";\nimport DashBoardLayout from \"Layouts/dashboardLayout/Layout\";\nimport SideBarRoutesWithComponent from \"Layouts/dashboardLayout/SideBarRoutesWithComponent\";\nimport VerificationInput from \"features/register/components/VerifyOtp\";\nfunction Routes() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default memo(Routes);\n","import React from \"react\";\nimport { Route } from \"react-router-dom\";\nconst ProtectedRoute = ({ component: Component, ...rest }) => {\n return (\n {\n if (localStorage.getItem(\"__CURRENT_USER__\")) {\n return null;\n } else return ;\n }}\n />\n );\n};\n\nexport default ProtectedRoute;\n","import React, { useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Button } from \"antd\";\n\nfunction VersionUpdate({ heading, message, btnText, onClick }) {\n const { t } = useTranslation();\n useEffect(() => {\n localStorage.setItem(\"APP-version\", process.env.REACT_APP_VERSION);\n }, []);\n\n return (\n
\n
\n
\n
\n

\n {/* {t(\"new update available\")} */}\n {t(heading)}\n

\n

\n {/* {t(\n \"We made bug fixes and improvements to keep your operations smooth. Please click below button to get latest application version.\"\n )} */}\n {t(message)}\n

\n
\n
\n \n
\n
\n
\n
\n );\n}\n\nexport default VersionUpdate;\n","import { useEffect } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { NotPersistAction } from \"redux/actions\";\nfunction useOffLine() {\n const dispatch = useDispatch();\n useEffect(() => {\n function handleOnline() {\n dispatch(NotPersistAction.updateOnlineStatus(true));\n window.location.reload();\n }\n\n function handleOffline() {\n dispatch(NotPersistAction.updateOnlineStatus(false));\n }\n\n window.addEventListener(\"online\", handleOnline);\n window.addEventListener(\"offline\", handleOffline);\n\n return () => {\n window.removeEventListener(\"online\", handleOnline);\n window.removeEventListener(\"offline\", handleOffline);\n };\n }, []);\n}\n\nexport default useOffLine;\n","import { useEffect } from \"react\";\n\nfunction useSyncTabs() {\n useEffect(() => {\n const handleStorageEvent = (event) => {\n if (event.key === 'logoutEvent') {\n localStorage.clear();\n window.location.href = \"/login\";\n }\n if(event.key === 'loginEvent'){\n window.location.reload();\n }\n };\n window.addEventListener('storage', handleStorageEvent);\n return () => {\n window.removeEventListener('storage', handleStorageEvent);\n };\n }, []);\n}\n\nexport default useSyncTabs;\n","import React from \"react\";\nimport { Helmet } from \"react-helmet\";\nimport { CONSTANTS as C } from \"config\";\n\nconst Seo = () => {\n return (\n \n {process.env.REACT_APP_TITLE}\n \n \n \n \n \n {process.env.REACT_APP_COMPANY_NAME === C.COMPANY_NAMES.CUSINETTE ? (\n \n ) : (\n \n )}\n \n \n );\n};\n\nexport default Seo;\n","import { useTranslation } from \"react-i18next\";\nimport { useEffect } from \"react\";\nimport { logToSentry } from \"utils/Utils\";\nimport React from \"react\";\nconst ErrorBoundaryFallbackComponent = ({ error }) => {\n const { t } = useTranslation();\n useEffect(() => {\n logToSentry(`${error} -> Error boundary Appears->App crashes`, \"error\");\n }, [error]);\n return (\n
\n
\n
\n \n

\n {t(\n \"We’re sorry for the inconvenience, but there was a problem with your web browser.Click below button to restart the dashboard.\"\n )}\n

\n window.location.reload()}\n >\n {t(\"Back to Dashboard\")}\n \n
\n
\n
\n \n );\n};\nexport default ErrorBoundaryFallbackComponent;\n","import React from \"react\";\nimport { MenuContextProvider } from \"store/contexts/Menus\";\nimport OrderMetaDataProvider from \"store/contexts/OrderMetaDataContext\";\nimport { ShippingMethodContextProvider } from \"store/contexts/ShippingMethodContext\";\nimport { LogisticContextProvider } from \"logistic-integrations/context\";\n\nfunction WithContextProviders({ children }) {\n const providersArray = [\n MenuContextProvider,\n OrderMetaDataProvider,\n ShippingMethodContextProvider,\n LogisticContextProvider,\n ];\n return (\n <>\n {providersArray.reduce((acc, Provider) => {\n return {acc};\n }, children)}\n \n );\n}\n\nexport default WithContextProviders;\n","import React from \"react\";\nimport { StateProvider } from \"../store\";\nimport CatelougeContext from \"store/contexts/Catelouge\";\nimport LiveOrderProvider from \"../store/LiveOrderContext/LiveOrderProvider\";\nimport Routes from \"../routes/index\";\nimport { CONSTANTS as C } from \"config\";\nimport ReactNotification from \"react-notifications-component\";\nimport \"react-notifications-component/dist/theme.css\";\nimport Help from \"features/help/containers/help\";\nimport { useEffect } from \"react\";\nimport ProtectedRoute from \"routes/middlewares/ProtectectRoute\";\nimport moment from \"moment\";\nimport \"moment/locale/ar\";\nimport { useSelector } from \"react-redux\";\nimport { checkISAppUpdated } from \"utils/Utils\";\nimport RefreshModal from \"components/VersionUpdate\";\nimport useOffLine from \"hooks/useOffLine\";\nimport useSyncTabs from \"hooks/useSyncTabs\";\nimport { UTILS } from \"utils\";\nimport Seo from \"components/Seo\";\nimport FallbackUi from \"components/ErrorFallback\";\nimport { ErrorBoundary } from \"react-error-boundary\";\nimport { createBrowserHistory } from \"history\";\nimport { BrowserRouter } from \"react-router-dom/cjs/react-router-dom.min\";\nimport WithContextProviders from \"components/Hoc/WithContextProviders\";\nconst history = createBrowserHistory();\nmoment.locale(\"en\");\nconst Home = () => {\n useOffLine();\n useSyncTabs();\n const { refreshApp } = useSelector((state) => state.APPUpdate);\n const { isInternetConnected } = useSelector(\n (state) => state.NotPersistReducer\n );\n useEffect(() => {\n checkISAppUpdated();\n }, []);\n\n const handleRefreshClick = () => window.location.reload();\n const updatenew = () => {\n UTILS.checkISAppUpdated();\n window.location.reload();\n };\n if (refreshApp) {\n return ;\n }\n if (!isInternetConnected) {\n return ;\n }\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default Home;\n","import React from \"react\";\nimport * as Sentry from \"@sentry/react\";\nimport { Integrations } from \"@sentry/tracing\";\nimport { BrowserTracing } from \"@sentry/tracing\";\nimport { createBrowserHistory } from \"history\";\nimport routes from \"routes/ROUTES\";\nimport {\n ReportingObserver as ReportingObserverIntegration,\n ExtraErrorData as ExtraErrorDataIntegration,\n Debug as DebugIntegration,\n} from \"@sentry/integrations\";\nimport { matchPath } from \"react-router-dom\";\nimport { UTILS } from \"utils\";\nimport Home from \"./Home\";\nfunction Index() {\n const history = createBrowserHistory();\n Sentry.init({\n dsn: \"https://f825fc8011ed436da044b3b79d2bebee@o94327.ingest.sentry.io/4504286261084160\",\n release: process.env.REACT_APP_SENTRY_RELEASE,\n integrations: [\n new Integrations.BrowserTracing(),\n new ReportingObserverIntegration(),\n new ExtraErrorDataIntegration(),\n new DebugIntegration(),\n new BrowserTracing({\n routingInstrumentation: Sentry.reactRouterV5Instrumentation(\n history,\n routes,\n matchPath\n ),\n }),\n ],\n tracesSampleRate: 1.0,\n // maxBreadcrumbs: 50,\n attachStacktrace: true,\n debug: false,\n normalizeDepth: 6,\n maxBreadcrumbs: 50,\n environment: process.env.REACT_APP_ENV || process.env.NODE_ENV,\n ignoreErrors: [\"ReportingObserver\", \"Deprecation\"],\n beforeSend(event, hint) {\n const error = hint.originalException;\n if (error && error.message && error.message.match(/ReportingObserver/i)) {\n return null;\n }\n return event;\n },\n });\n Sentry.setUser(UTILS.getSentryUser());\n return ;\n}\nexport default Sentry.withProfiler(Index);\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === \"localhost\" ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === \"[::1]\" ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === \"production\" && \"serviceWorker\" in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener(\"load\", () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n \"This web app is being served cache-first by a service \" +\n \"worker. To learn more, visit https://bit.ly/CRA-PWA\"\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === \"installed\") {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n \"New content is available and will be used when all \" +\n \"tabs for this page are closed. See https://bit.ly/CRA-PWA.\"\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log(\"Content is cached for offline use.\");\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error(\"Error during service worker registration:\", error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { \"Service-Worker\": \"script\" },\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get(\"content-type\");\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf(\"javascript\") === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n \"No internet connection found. App is running in offline mode.\"\n );\n });\n}\n\nexport function unregister() {\n if (\"serviceWorker\" in navigator) {\n navigator.serviceWorker.ready\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n","import React, { Suspense } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport \"./index.css\";\nimport App from \"./app/Index\";\nimport * as serviceWorker from \"./serviceWorker\";\nimport \"./i18n\";\nimport { Provider } from \"react-redux\";\nimport { PersistGate } from \"redux-persist/integration/react\";\nimport { persistor } from \"redux/store\";\nimport store from \"redux/store\";\n\nReactDOM.render(\n <>\n Loading...}>\n \n \n \n \n \n \n ,\n document.getElementById(\"root\")\n);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"branding\":\"branding_branding__28KMo\",\"design\":\"branding_design__2CNlw\",\"designleft\":\"branding_designleft__2QJp6\",\"designright\":\"branding_designright__23h2L\",\"heading\":\"branding_heading__8bOXe\",\"para\":\"branding_para__1FNzw\",\"bcstyle\":\"branding_bcstyle__10wgG\",\"sotre_preview\":\"branding_sotre_preview__3feud\",\"bgbox\":\"branding_bgbox__14ajy\",\"cat_btn\":\"branding_cat_btn__2mSEY\",\"basketstyle\":\"branding_basketstyle__1755N\",\"preview_widget\":\"branding_preview_widget__7l-Kj\",\"clrr\":\"branding_clrr__Wad4Q\"};"],"sourceRoot":""}