@lmnto/h-mall-shared 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.css +457 -0
- package/bitbucket-pipelines.yml +223 -0
- package/package.json +43 -0
- package/public/gif/balloon.gif +0 -0
- package/public/gif/gift.gif +0 -0
- package/public/img/ai-dialog.png +0 -0
- package/public/img/ai-x1-banner.png +0 -0
- package/public/img/ai-x1.png +0 -0
- package/public/img/alert-Icon.png +0 -0
- package/public/img/aleta-payment-kyc-require.png +0 -0
- package/public/img/aleta-payment-pending.png +0 -0
- package/public/img/aleta-payment-rejected.png +0 -0
- package/public/img/aleta-payment-subscription-required.png +0 -0
- package/public/img/boost-banner-bg.png +0 -0
- package/public/img/boost-banner-right.png +0 -0
- package/public/img/boost-banner.png +0 -0
- package/public/img/boost-dialog-bg.png +0 -0
- package/public/img/boostPower.png +0 -0
- package/public/img/boostTooltip.png +0 -0
- package/public/img/brand-icon.svg +23 -0
- package/public/img/brand-text.svg +11 -0
- package/public/img/card-icon.png +0 -0
- package/public/img/cashback-Icon.png +0 -0
- package/public/img/crown.svg +9 -0
- package/public/img/empty-box.png +0 -0
- package/public/img/gen3-dialog.png +0 -0
- package/public/img/gen3-home-banner-bg.png +0 -0
- package/public/img/gen3-image.png +0 -0
- package/public/img/gift.png +0 -0
- package/public/img/img-placeholder-illustration.svg +6 -0
- package/public/img/logo.svg +31 -0
- package/public/img/offerBanner.png +0 -0
- package/public/img/pagenotfound.png +0 -0
- package/public/img/partial-pay-payment-successful.png +0 -0
- package/public/img/phoneShippingBG.png +0 -0
- package/public/img/placeholder-image.jpg +0 -0
- package/public/img/powerIcon.png +0 -0
- package/public/img/product-01.png +0 -0
- package/public/img/product-02.jpg +0 -0
- package/public/img/product-03.jpg +0 -0
- package/public/img/product-04.jpg +0 -0
- package/public/img/product-05.png +0 -0
- package/public/img/product-06.png +0 -0
- package/public/img/profile-avatar.svg +12 -0
- package/public/img/promotion-icon.png +0 -0
- package/public/img/session-expired.png +0 -0
- package/public/img/shipping-alert-icon.png +0 -0
- package/public/img/shippingIcon.png +0 -0
- package/public/img/smart-pay-banner-how.png +0 -0
- package/public/img/smart-pay-banner-own.png +0 -0
- package/public/img/smart-pay-chose.png +0 -0
- package/public/img/smart-pay-easy.png +0 -0
- package/public/img/smart-pay-payment.png +0 -0
- package/public/img/smart-plan-fire.gif +0 -0
- package/public/img/smart-plan-sparkle.gif +0 -0
- package/public/img/special.png +0 -0
- package/public/img/specialOfferBg.png +0 -0
- package/public/img/stop-shipping-banner.png +0 -0
- package/public/img/subscriptionBanner.png +0 -0
- package/public/img/subscriptionIcon.png +0 -0
- package/public/img/successIcon.png +0 -0
- package/public/img/wallet-icon.png +0 -0
- package/public/img/world-wide-shipping.png +0 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/shared/components/AddressFormComponent.tsx +215 -0
- package/shared/components/AddressShippingFormComponent.tsx +223 -0
- package/shared/components/AiPaymentDialog.tsx +95 -0
- package/shared/components/AppLoadingComponent.tsx +15 -0
- package/shared/components/AppLoadingComponentV2.tsx +18 -0
- package/shared/components/Button.tsx +48 -0
- package/shared/components/BuySubscriptionDialog.tsx +75 -0
- package/shared/components/CartDrawerComponent.tsx +324 -0
- package/shared/components/CashbackComponent.tsx +48 -0
- package/shared/components/CashbackMigrationComponent.tsx +41 -0
- package/shared/components/CommissionNonEligibleComponent.tsx +27 -0
- package/shared/components/CustomNextImage.tsx +50 -0
- package/shared/components/CustomNextLink.tsx +46 -0
- package/shared/components/EditAddressFormComponent.tsx +254 -0
- package/shared/components/EmptyCartMessageComponent.tsx +25 -0
- package/shared/components/EmptyCartMessageForCartPage.tsx +61 -0
- package/shared/components/EmptyLegacyOrderMessageForOrdersPage.tsx +52 -0
- package/shared/components/EmptyOrderMessageForOrdersPage.tsx +62 -0
- package/shared/components/EmptyOrderMessageForShippingOrdersPage.tsx +62 -0
- package/shared/components/Footer.tsx +71 -0
- package/shared/components/GreetingDialog.tsx +96 -0
- package/shared/components/Header.tsx +106 -0
- package/shared/components/HoldShippingDialog.tsx +165 -0
- package/shared/components/HomeBanners.tsx +298 -0
- package/shared/components/InactiveCartDialog.tsx +69 -0
- package/shared/components/InputCartQuantity.tsx +342 -0
- package/shared/components/Inputfield.tsx +110 -0
- package/shared/components/ListItemComponent.tsx +82 -0
- package/shared/components/LoadingIconComponent.tsx +284 -0
- package/shared/components/OrderNotFoundComponent.tsx +56 -0
- package/shared/components/PageHeader.tsx +42 -0
- package/shared/components/PhoneNumberCountries.tsx +133 -0
- package/shared/components/PhoneShippingDialog.tsx +77 -0
- package/shared/components/PickupDialog.tsx +92 -0
- package/shared/components/ProductNotFoundComponent.tsx +56 -0
- package/shared/components/ProductPriceComponent.tsx +32 -0
- package/shared/components/ProfileMenu.tsx +120 -0
- package/shared/components/RequestCreditNoteInvoiceDialog.tsx +214 -0
- package/shared/components/RequestInvoiceDialog.tsx +194 -0
- package/shared/components/SelectCities.tsx +133 -0
- package/shared/components/SelectComponent.tsx +334 -0
- package/shared/components/SelectCountries.tsx +179 -0
- package/shared/components/SelectPickUpStore.tsx +131 -0
- package/shared/components/SelectStates.tsx +144 -0
- package/shared/components/ServerTime.tsx +68 -0
- package/shared/components/SessionDialogComponent.tsx +60 -0
- package/shared/components/ShippingAddressFormDialogComponent.tsx +51 -0
- package/shared/components/Sidebar.tsx +281 -0
- package/shared/components/SpecialOfferDialog.tsx +193 -0
- package/shared/components/StatusComponents.tsx +25 -0
- package/shared/components/StepperComponent.tsx +79 -0
- package/shared/components/StepperSmartPayComponent.tsx +97 -0
- package/shared/components/SubscriptionPurchaseDialogComponent.tsx +81 -0
- package/shared/components/TableComponent.tsx +144 -0
- package/shared/components/TablePaginationComponent.tsx +151 -0
- package/shared/components/aleta/AletaManagerComponent.tsx +52 -0
- package/shared/components/aleta/KycPendingStatus.tsx +33 -0
- package/shared/components/aleta/KycRejectedStatus.tsx +53 -0
- package/shared/components/aleta/KycRequiredStatus.tsx +53 -0
- package/shared/components/aleta/SubscriptionRequiredStatus.tsx +45 -0
- package/shared/components/icons/AletaWalletIcon.tsx +21 -0
- package/shared/components/icons/BrandIcon.tsx +97 -0
- package/shared/components/icons/BrandText.tsx +47 -0
- package/shared/components/icons/CartIcon.tsx +21 -0
- package/shared/components/icons/DoneIcon.tsx +27 -0
- package/shared/components/icons/HomnifiIcon.tsx +23 -0
- package/shared/components/icons/InfoIcon.tsx +16 -0
- package/shared/components/icons/SmartPayProductIcon.tsx +31 -0
- package/shared/components/payments/DisclaimerAlertDialog.tsx +205 -0
- package/shared/components/payments/EmptyAssets.tsx +23 -0
- package/shared/components/payments/PaybyWalletItemComponent.tsx +116 -0
- package/shared/components/payments/PaymentAssetItemComponent.tsx +101 -0
- package/shared/components/payments/RequestProcessingDialog.tsx +123 -0
- package/shared/components/payments/WalletSectionManager.tsx +82 -0
- package/shared/components/payments/WalletSliderComponent.tsx +326 -0
- package/shared/components/payments/WalletTermsAndConditionComponent.tsx +88 -0
- package/shared/constants/address-shipping.schema.ts +56 -0
- package/shared/constants/address.schema.ts +56 -0
- package/shared/constants/app.ts +323 -0
- package/shared/constants/environment.ts +23 -0
- package/shared/constants/feature-flags.ts +15 -0
- package/shared/constants/query-keys.ts +106 -0
- package/shared/constants/routes.ts +41 -0
- package/shared/constants/socket.ts +15 -0
- package/shared/contexts/HomeProductsContext.tsx +51 -0
- package/shared/contexts/MainWrapperContext.tsx +289 -0
- package/shared/contexts/WebSocketContext.tsx +155 -0
- package/shared/hooks/useAddressForm.ts +169 -0
- package/shared/hooks/useAddresses.ts +28 -0
- package/shared/hooks/useAppForm.ts +39 -0
- package/shared/hooks/useCart.ts +207 -0
- package/shared/hooks/useCopy.ts +45 -0
- package/shared/hooks/useCountries.ts +27 -0
- package/shared/hooks/useCustomRouter.ts +51 -0
- package/shared/hooks/useDebounce.ts +21 -0
- package/shared/hooks/useInvoice.ts +41 -0
- package/shared/hooks/useOnlineUser.ts +38 -0
- package/shared/hooks/usePayments.ts +101 -0
- package/shared/hooks/useShippingAddressForm.ts +70 -0
- package/shared/hooks/useShippingAddresses.ts +33 -0
- package/shared/hooks/useStores.ts +29 -0
- package/shared/hooks/useUserActivity.ts +43 -0
- package/shared/i18n/client.ts +27 -0
- package/shared/i18n/locales/en.ts +383 -0
- package/shared/i18n/locales/it.ts +373 -0
- package/shared/i18n/server.ts +7 -0
- package/shared/services/addresses.service.ts +27 -0
- package/shared/services/api/core/ApiError.ts +29 -0
- package/shared/services/api/core/ApiRequestOptions.ts +25 -0
- package/shared/services/api/core/ApiResult.ts +11 -0
- package/shared/services/api/core/CancelablePromise.ts +130 -0
- package/shared/services/api/core/OpenAPI.ts +37 -0
- package/shared/services/api/core/request.ts +376 -0
- package/shared/services/api/index.ts +64 -0
- package/shared/services/api/models/AddAllProductToShippingCartDto.ts +7 -0
- package/shared/services/api/models/AddProductToCartDto.ts +8 -0
- package/shared/services/api/models/AddProductToShippingCartDto.ts +8 -0
- package/shared/services/api/models/AdminPlaceOrderDto.ts +16 -0
- package/shared/services/api/models/AssignPickupSerialNumberDto.ts +10 -0
- package/shared/services/api/models/CreateUserAddressDto.ts +19 -0
- package/shared/services/api/models/DeletCartProductsArrayDto.ts +7 -0
- package/shared/services/api/models/GenerateInvoiceDto.ts +7 -0
- package/shared/services/api/models/OrderConfirmationEmailDto.ts +8 -0
- package/shared/services/api/models/PlaceOrderDto.ts +9 -0
- package/shared/services/api/models/PlaceShipmentOrderDto.ts +8 -0
- package/shared/services/api/models/ProductBoostDto.ts +18 -0
- package/shared/services/api/models/RemoveAssignedSerialNumberDto.ts +9 -0
- package/shared/services/api/models/RemoveProductToCartDto.ts +8 -0
- package/shared/services/api/models/ShipmentItem.ts +8 -0
- package/shared/services/api/models/ShippingCartUpdateBillingAddressesDto.ts +7 -0
- package/shared/services/api/models/ShippingCartUpdateShippingMethodDto.ts +7 -0
- package/shared/services/api/models/UnfreezeWalletDto.ts +8 -0
- package/shared/services/api/models/UpdateCartBillingAddressesDto.ts +7 -0
- package/shared/services/api/models/UpdateCartPaymentMethodDto.ts +9 -0
- package/shared/services/api/models/UpdateCartShippingMethodDto.ts +7 -0
- package/shared/services/api/models/UpdateCartStoreDto.ts +7 -0
- package/shared/services/api/models/UpdateProductDto.ts +11 -0
- package/shared/services/api/models/UpdateShipmentItemStatusDto.ts +24 -0
- package/shared/services/api/models/UpdateShippingCartPaymentMethodDto.ts +9 -0
- package/shared/services/api/models/UpdateUserAddressDto.ts +19 -0
- package/shared/services/api/models/ValidateAuthCodeDto.ts +8 -0
- package/shared/services/api/models/WithdrawOrderWalletDto.ts +8 -0
- package/shared/services/api/services/AddressesService.ts +160 -0
- package/shared/services/api/services/AdminsDevicesService.ts +28 -0
- package/shared/services/api/services/AdminsOrdersService.ts +117 -0
- package/shared/services/api/services/AdminsPickupsService.ts +57 -0
- package/shared/services/api/services/AdminsProductsService.ts +86 -0
- package/shared/services/api/services/CartsService.ts +190 -0
- package/shared/services/api/services/CashBackQueueService.ts +39 -0
- package/shared/services/api/services/CategoriesService.ts +65 -0
- package/shared/services/api/services/DefaultService.ts +19 -0
- package/shared/services/api/services/FeaturesFlagsService.ts +20 -0
- package/shared/services/api/services/IossQueueService.ts +39 -0
- package/shared/services/api/services/OrderCallbackService.ts +67 -0
- package/shared/services/api/services/OrderEmailsService.ts +40 -0
- package/shared/services/api/services/OrderImportService.ts +228 -0
- package/shared/services/api/services/OrdersService.ts +183 -0
- package/shared/services/api/services/PaymentGatewayService.ts +19 -0
- package/shared/services/api/services/PaymentsService.ts +88 -0
- package/shared/services/api/services/ProductsService.ts +67 -0
- package/shared/services/api/services/ShipmentOrderCallbackService.ts +67 -0
- package/shared/services/api/services/ShipmentOrdersService.ts +88 -0
- package/shared/services/api/services/ShipmentsService.ts +30 -0
- package/shared/services/api/services/ShippingCartService.ts +247 -0
- package/shared/services/api/services/ShippingMethodsService.ts +20 -0
- package/shared/services/api/services/StoresService.ts +25 -0
- package/shared/services/api/services/SyncServiceQueueService.ts +39 -0
- package/shared/services/api/services/UpgradeOrdersService.ts +26 -0
- package/shared/services/api/services/UsersAuthService.ts +45 -0
- package/shared/services/api/services/UsersService.ts +53 -0
- package/shared/services/api/services/XeraQueueService.ts +39 -0
- package/shared/services/index.ts +0 -0
- package/shared/services/payment-method.service.ts +29 -0
- package/shared/stores/cartStore.ts +108 -0
- package/shared/stores/countriesStore.ts +62 -0
- package/shared/stores/formStore.ts +19 -0
- package/shared/stores/loadingStore.ts +12 -0
- package/shared/stores/userStore.ts +32 -0
- package/shared/types/SelectComponent.types.ts +31 -0
- package/shared/types/addressForm.ts +27 -0
- package/shared/types/cart.ts +208 -0
- package/shared/types/category.ts +6 -0
- package/shared/types/creditNote.ts +0 -0
- package/shared/types/feature-flags.ts +5 -0
- package/shared/types/icon.ts +5 -0
- package/shared/types/index.d.ts +84 -0
- package/shared/types/order.ts +332 -0
- package/shared/types/pagination.ts +5 -0
- package/shared/types/payments.ts +68 -0
- package/shared/types/product.ts +54 -0
- package/shared/types/shoppingCart.ts +219 -0
- package/shared/types/upgradeCart.ts +226 -0
- package/shared/types/user.ts +36 -0
- package/shared/utils/app.util.ts +261 -0
- package/shared/utils/notifications.util.ts +39 -0
- package/shared/utils/user-session.util.ts +171 -0
- package/tailwind.config.ts +234 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { QueryKeys } from "@hms/packages/shared/constants/query-keys";
|
|
2
|
+
import { UsersService } from "@hms/packages/shared/services/api";
|
|
3
|
+
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
4
|
+
import { useMemo, useState } from "react";
|
|
5
|
+
|
|
6
|
+
import { PAYMENTS_TYPE } from "../constants/app";
|
|
7
|
+
import {
|
|
8
|
+
proceedGetPaymentMethodAssetsAsync,
|
|
9
|
+
proceedGetPaymentMethodsAsync,
|
|
10
|
+
} from "../services/payment-method.service";
|
|
11
|
+
import { PaymentType } from "../types/payments";
|
|
12
|
+
import { withTimeout } from "../utils/app.util";
|
|
13
|
+
|
|
14
|
+
export function usePayments({ type }: { type?: PaymentType }) {
|
|
15
|
+
const [assets, setAssets] = useState<any[]>();
|
|
16
|
+
const [isMigrationPaymentsAPILoading, setIsMigrationPaymentsAPILoading] =
|
|
17
|
+
useState<boolean>(true);
|
|
18
|
+
|
|
19
|
+
const [migrationPayments, setMigrationPayments] = useState<any[]>();
|
|
20
|
+
|
|
21
|
+
const paymentData = useMemo(
|
|
22
|
+
() => ({
|
|
23
|
+
shipping: type === PAYMENTS_TYPE.SHIPPING ? true : undefined,
|
|
24
|
+
}),
|
|
25
|
+
[type],
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const {
|
|
29
|
+
data: payments,
|
|
30
|
+
// refetch: getPayments,
|
|
31
|
+
isLoading: paymentsMethodLoading,
|
|
32
|
+
} = useQuery({
|
|
33
|
+
queryKey: [QueryKeys.payments.GET_PAYMENTS, type],
|
|
34
|
+
queryFn: () => proceedGetPaymentMethodsAsync(paymentData),
|
|
35
|
+
enabled: !!type,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const {
|
|
39
|
+
mutate: getMigrationPaymentsAPI,
|
|
40
|
+
// isPending: isMigrationPaymentsAPILoading,
|
|
41
|
+
} = useMutation({
|
|
42
|
+
mutationKey: [QueryKeys.payments.GET_MIGRATION_PAYMENTS],
|
|
43
|
+
retry: 5,
|
|
44
|
+
retryDelay: 1000,
|
|
45
|
+
mutationFn: async () => {
|
|
46
|
+
console.log("calling proceedGetPaymentMethodsAsync...");
|
|
47
|
+
setIsMigrationPaymentsAPILoading(true);
|
|
48
|
+
|
|
49
|
+
return await withTimeout(
|
|
50
|
+
proceedGetPaymentMethodsAsync({ shipping: false }),
|
|
51
|
+
|
|
52
|
+
3000, // 3 seconds timeout
|
|
53
|
+
);
|
|
54
|
+
},
|
|
55
|
+
onSuccess: (data) => {
|
|
56
|
+
setIsMigrationPaymentsAPILoading(false);
|
|
57
|
+
console.log("🚀 ~ usePayments ~ data:", data);
|
|
58
|
+
if (data) setMigrationPayments(data);
|
|
59
|
+
},
|
|
60
|
+
onError: (error) => {
|
|
61
|
+
setIsMigrationPaymentsAPILoading(false);
|
|
62
|
+
console.log("🚀 ~ usePayments ~ error:", error);
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const { mutate: getAssetsAPI, isPending: isLoadingAsset } = useMutation({
|
|
67
|
+
mutationKey: [QueryKeys.payments.GET_ASSETS],
|
|
68
|
+
mutationFn: ({ methodId }: { methodId: number }) => {
|
|
69
|
+
return proceedGetPaymentMethodAssetsAsync({
|
|
70
|
+
methodId,
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
onSuccess: (data) => {
|
|
74
|
+
if (data) setAssets(data);
|
|
75
|
+
},
|
|
76
|
+
onError: (error) => {
|
|
77
|
+
console.log("🚀 ~ usePayments ~ error:", error);
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const acceptWalletConsent = useMutation({
|
|
82
|
+
mutationKey: [QueryKeys.payments.ACCEPT_WALLET_CONSENT],
|
|
83
|
+
mutationFn: UsersService.usersControllerSaveConsent,
|
|
84
|
+
onError: (error) => {
|
|
85
|
+
console.log("🚀 ~ usePayments ~ error:", error);
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
acceptWalletConsent,
|
|
91
|
+
payments: payments ?? undefined,
|
|
92
|
+
paymentsMethodLoading,
|
|
93
|
+
getAssetsAPI,
|
|
94
|
+
assets,
|
|
95
|
+
isLoadingAsset,
|
|
96
|
+
|
|
97
|
+
migrationPayments,
|
|
98
|
+
getMigrationPaymentsAPI,
|
|
99
|
+
isMigrationPaymentsAPILoading,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
|
|
4
|
+
import { ADDRESS_TYPES } from "../constants/app";
|
|
5
|
+
import { QueryKeys } from "../constants/query-keys";
|
|
6
|
+
import { AddressesService, ShippingCartService } from "../services/api";
|
|
7
|
+
import { useCartStore } from "../stores/cartStore";
|
|
8
|
+
import { countriesStore } from "../stores/countriesStore";
|
|
9
|
+
|
|
10
|
+
export function useShippingAddressForm() {
|
|
11
|
+
//
|
|
12
|
+
const { userShippingAddress, setUserShippingAddress } = useCartStore();
|
|
13
|
+
//
|
|
14
|
+
const { setStates, setCities, setShippingCountries } = countriesStore();
|
|
15
|
+
|
|
16
|
+
const {
|
|
17
|
+
data: userShippingAddressData,
|
|
18
|
+
isLoading: isLoadingShippingAddresses,
|
|
19
|
+
refetch: getShippingAddress,
|
|
20
|
+
} = useQuery({
|
|
21
|
+
queryKey: [QueryKeys.users.GET_SHIPPING_ADDRESSES],
|
|
22
|
+
queryFn: () =>
|
|
23
|
+
AddressesService.userAddressesControllerGetAllActiveUserAddresses(
|
|
24
|
+
ADDRESS_TYPES.shipping.value,
|
|
25
|
+
),
|
|
26
|
+
enabled: !userShippingAddress,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setUserShippingAddress(userShippingAddressData);
|
|
31
|
+
}, [userShippingAddressData, setUserShippingAddress]);
|
|
32
|
+
|
|
33
|
+
const getCountriesByShippingMethodId = useMutation({
|
|
34
|
+
mutationKey: [QueryKeys.users.GET_COUNTRIES_BY_SHIPPING_METHOD],
|
|
35
|
+
mutationFn: ({
|
|
36
|
+
shippingCartId,
|
|
37
|
+
shippingMethodId,
|
|
38
|
+
}: {
|
|
39
|
+
shippingCartId: number;
|
|
40
|
+
shippingMethodId: number;
|
|
41
|
+
}) =>
|
|
42
|
+
ShippingCartService.shippingCartControllerGetALlowedShippingOrPickupCountries(
|
|
43
|
+
shippingCartId,
|
|
44
|
+
shippingMethodId,
|
|
45
|
+
),
|
|
46
|
+
onSuccess: (data) => {
|
|
47
|
+
setShippingCountries(data);
|
|
48
|
+
},
|
|
49
|
+
onError: () => {},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const addNewShippingAddress = useMutation({
|
|
53
|
+
mutationKey: [QueryKeys.users.ADD_NEW_ADDRESS],
|
|
54
|
+
mutationFn: AddressesService.userAddressesControllerAddNewAddress,
|
|
55
|
+
onSuccess: () => {
|
|
56
|
+
setStates([]);
|
|
57
|
+
setCities([]);
|
|
58
|
+
getShippingAddress();
|
|
59
|
+
},
|
|
60
|
+
onError: () => {},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
shippingAddress: userShippingAddress,
|
|
65
|
+
getCountriesByShippingMethodId,
|
|
66
|
+
isLoadingShippingAddresses,
|
|
67
|
+
getShippingAddress,
|
|
68
|
+
addNewShippingAddress,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useRef } from "react";
|
|
2
|
+
|
|
3
|
+
import { AddressShippingSchema } from "../constants/address-shipping.schema";
|
|
4
|
+
import useAppForm from "../hooks/useAppForm";
|
|
5
|
+
|
|
6
|
+
export default function useShippingAddresses() {
|
|
7
|
+
const formId = useRef("shippingAddress");
|
|
8
|
+
|
|
9
|
+
const { handleSubmit, reset, setValue } = useAppForm({
|
|
10
|
+
schema: AddressShippingSchema(),
|
|
11
|
+
defaultValues: {
|
|
12
|
+
firstName: "",
|
|
13
|
+
lastName: "",
|
|
14
|
+
address: "",
|
|
15
|
+
type: "",
|
|
16
|
+
countryId: null,
|
|
17
|
+
state: "",
|
|
18
|
+
city: "",
|
|
19
|
+
postalCode: "",
|
|
20
|
+
phone: "",
|
|
21
|
+
zipCodeRegex: "",
|
|
22
|
+
zipCodeExample: [],
|
|
23
|
+
minPhoneLength: "5",
|
|
24
|
+
},
|
|
25
|
+
id: formId.current,
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
shippingFormId: formId,
|
|
29
|
+
shippingHandleSubmit: handleSubmit,
|
|
30
|
+
shippingResetForm: reset,
|
|
31
|
+
setFormValue: setValue,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
|
|
3
|
+
import useAppForm from "../hooks/useAppForm";
|
|
4
|
+
|
|
5
|
+
const storeSchema = () => {
|
|
6
|
+
return yup.object({
|
|
7
|
+
countryId: yup.number(),
|
|
8
|
+
state: yup.string(),
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const STORE_FORM_ID = "stores";
|
|
13
|
+
|
|
14
|
+
export default function useStores() {
|
|
15
|
+
const { handleSubmit, reset, setValue } = useAppForm({
|
|
16
|
+
schema: storeSchema(),
|
|
17
|
+
defaultValues: {
|
|
18
|
+
countryId: null,
|
|
19
|
+
store: "",
|
|
20
|
+
},
|
|
21
|
+
id: STORE_FORM_ID,
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
storeFormId: STORE_FORM_ID,
|
|
25
|
+
handleSubmit,
|
|
26
|
+
resetStoreForm: reset,
|
|
27
|
+
setFormValue: setValue,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from "react";
|
|
2
|
+
|
|
3
|
+
const useUserActivity = () => {
|
|
4
|
+
//
|
|
5
|
+
const events = useRef([
|
|
6
|
+
"click",
|
|
7
|
+
"mouseup",
|
|
8
|
+
"keydown",
|
|
9
|
+
"scroll",
|
|
10
|
+
"mousemove",
|
|
11
|
+
"touchstart",
|
|
12
|
+
"touchmove",
|
|
13
|
+
"touchend",
|
|
14
|
+
"orientationchange",
|
|
15
|
+
"online",
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
const [isActiveUser, setIsActiveUser] = useState<boolean>(true);
|
|
19
|
+
|
|
20
|
+
const activityResetTime = useRef<NodeJS.Timeout | undefined>(undefined);
|
|
21
|
+
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
events.current.forEach(function (e) {
|
|
24
|
+
document.addEventListener(e, function () {
|
|
25
|
+
setIsActiveUser(true);
|
|
26
|
+
|
|
27
|
+
if (activityResetTime.current) clearTimeout(activityResetTime.current);
|
|
28
|
+
activityResetTime.current = setTimeout(
|
|
29
|
+
() => {
|
|
30
|
+
setIsActiveUser(false);
|
|
31
|
+
},
|
|
32
|
+
3 * 60 * 1000, //3 minutes
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}, [events, setIsActiveUser]);
|
|
37
|
+
|
|
38
|
+
return {
|
|
39
|
+
isUserActiveOnBrowser: isActiveUser,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default useUserActivity;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// locales/client.ts
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
import { createI18nClient } from "next-international/client";
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
useI18n,
|
|
8
|
+
useScopedI18n,
|
|
9
|
+
I18nProviderClient,
|
|
10
|
+
useChangeLocale,
|
|
11
|
+
useCurrentLocale,
|
|
12
|
+
} = createI18nClient({
|
|
13
|
+
en: () => import("./locales/en"),
|
|
14
|
+
it: () => import("./locales/it"),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const _useScopedI18n = useScopedI18n as <Scope extends any>(
|
|
18
|
+
scope: Scope,
|
|
19
|
+
) => ReturnType<typeof useScopedI18n> | any;
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
_useScopedI18n,
|
|
23
|
+
I18nProviderClient,
|
|
24
|
+
useChangeLocale,
|
|
25
|
+
useCurrentLocale,
|
|
26
|
+
useI18n,
|
|
27
|
+
};
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
signIn: {
|
|
3
|
+
title: "Sign in with SSO/SAML",
|
|
4
|
+
subTitle:
|
|
5
|
+
"This workspace allows you to sign in with your Nodelink account.Sign in with Nodelink",
|
|
6
|
+
signInBtn: "Sign in with Nodelink",
|
|
7
|
+
errorMsg: "An error occurred. Please retry later",
|
|
8
|
+
loadingMsg: "Please Wait...",
|
|
9
|
+
},
|
|
10
|
+
paymentConfimation: {
|
|
11
|
+
title: "An Error Occurred during order placement",
|
|
12
|
+
subTitle: "PLease close this tab and go back to the payment",
|
|
13
|
+
redirectBtn: "Go to orders page",
|
|
14
|
+
},
|
|
15
|
+
profile: {
|
|
16
|
+
title: "My Profile",
|
|
17
|
+
email: "Email Address",
|
|
18
|
+
userName: "Username",
|
|
19
|
+
phone: "Phone Number",
|
|
20
|
+
memberShipStatus: "Membership Status",
|
|
21
|
+
expirationDate: "Expiration Date",
|
|
22
|
+
userType: "User Type",
|
|
23
|
+
subscriptionType: "Subscription Type",
|
|
24
|
+
active: "Active",
|
|
25
|
+
inactive: "Inactive",
|
|
26
|
+
profileInformationHeader: "Profile Information",
|
|
27
|
+
memberShipInformationHeader: "Membership Information",
|
|
28
|
+
allAddressesHeader: "All Addresses",
|
|
29
|
+
billingAddresses: "Billing Addresses",
|
|
30
|
+
shippingAddresses: "Shipping Addresses",
|
|
31
|
+
authentication: "Authentication",
|
|
32
|
+
profileRedirectBtn: "Go back to Nodelink",
|
|
33
|
+
},
|
|
34
|
+
sideBarMenu: {
|
|
35
|
+
products: "Products",
|
|
36
|
+
myCart: "My Cart",
|
|
37
|
+
orderHistory: "Order History",
|
|
38
|
+
shippingOrderHistory: "Shipping History",
|
|
39
|
+
legacyOrderHistory: "Legacy Orders History",
|
|
40
|
+
profile: "Profile",
|
|
41
|
+
wiki: "Wiki",
|
|
42
|
+
support: "Support",
|
|
43
|
+
navigation: "Navigation",
|
|
44
|
+
logout: "Logout",
|
|
45
|
+
AletaPay: "Aleta Pay",
|
|
46
|
+
},
|
|
47
|
+
products: {
|
|
48
|
+
purchaseLimitComponent: {
|
|
49
|
+
maxPurchaseLimit: "Maximum Purchase Limit",
|
|
50
|
+
alreadyPurchased: "Quantity Previously Purchased",
|
|
51
|
+
qtyInCart: "Quantity Already In Cart",
|
|
52
|
+
},
|
|
53
|
+
subscriptionBanner: {
|
|
54
|
+
welcome: "Welcome!",
|
|
55
|
+
welcomeBack: "Welcome Back!",
|
|
56
|
+
activeSubscription: `Your subscription is active, and you're all set to continue enjoying exclusive content. Dive in and explore new features and updates now!`,
|
|
57
|
+
inactiveSubscription:
|
|
58
|
+
"Unlock Exclusive Benefits by Renewing Your Subscription Today",
|
|
59
|
+
buySubscriptionBtn: "Buy Subscription",
|
|
60
|
+
subscriptionActivationPending:
|
|
61
|
+
"Subscription activation still in progress. Please check back later or contact support.",
|
|
62
|
+
},
|
|
63
|
+
quantityComponent: {
|
|
64
|
+
quantity: "Quantity",
|
|
65
|
+
},
|
|
66
|
+
productSummaryComponent: {
|
|
67
|
+
addToCartError: "Failed to add product to cart",
|
|
68
|
+
category: "Category",
|
|
69
|
+
addToCartBtn: "Add To Cart",
|
|
70
|
+
addedToCartBtn: "Added To Cart",
|
|
71
|
+
buyNowBtn: "Buy Now",
|
|
72
|
+
|
|
73
|
+
originalPrice: "Original price",
|
|
74
|
+
remaining80: "Remaining 80% payment of computer device",
|
|
75
|
+
deductedFuture: "Deducted from future daily rewards",
|
|
76
|
+
smartPlanBreakdown: "SmartPay plan breakdown",
|
|
77
|
+
cost20: "Computer device cost (20%):",
|
|
78
|
+
cost20Tooltip:
|
|
79
|
+
"Pay this upfront cost to get instant LYK airdrop equivalent to Utility token value once the order is completed..",
|
|
80
|
+
utilityToken: "Utility token:",
|
|
81
|
+
estimatedDeliveryFee: "Estimated Delivery fee:",
|
|
82
|
+
estimatedDeliveryFeeTooltip:
|
|
83
|
+
"This is subject to change based on the selection of Delivery mode during the checkout",
|
|
84
|
+
totalDueToday: "Total due today:",
|
|
85
|
+
},
|
|
86
|
+
productCategoriesComponent: {
|
|
87
|
+
title: "Product Category",
|
|
88
|
+
allProducts: "All Products",
|
|
89
|
+
notFound: "No categories found",
|
|
90
|
+
},
|
|
91
|
+
productBenefitsComponent: {
|
|
92
|
+
benefitsTitle: "Benefits",
|
|
93
|
+
descriptionTitle: "Description",
|
|
94
|
+
keyFeaturesTitle: "Key Features",
|
|
95
|
+
specificationsTitle: "Specifications",
|
|
96
|
+
function: "Function",
|
|
97
|
+
name: "Name",
|
|
98
|
+
specificationDescription: "Specification Description",
|
|
99
|
+
mark: "Mark",
|
|
100
|
+
},
|
|
101
|
+
breadcrumbsComponent: {
|
|
102
|
+
shop: "Shop",
|
|
103
|
+
allProducts: "All Products",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
orders: {
|
|
107
|
+
title: "My Orders",
|
|
108
|
+
choseProductToProceed: "Choose the products to proceed",
|
|
109
|
+
followingProductMigrated: "Following Gen2 devices will be migrated to Gen3",
|
|
110
|
+
buyGen3Extensions: "Buy Gen3 Extensions",
|
|
111
|
+
followingProductMigratedNote:
|
|
112
|
+
"Note: All Eligible Gen2 devices in this order need to be migrated together.",
|
|
113
|
+
alreadyHaveShippingOrder:
|
|
114
|
+
"Oops! Your first shipping order is still in pending status! Kindly wait until it is moved to completed to place another shipping order.",
|
|
115
|
+
upgradeYourMachine: "UPGRADE YOUR SOFTWARE!",
|
|
116
|
+
selectEligibleItem: "Select the Eligible items",
|
|
117
|
+
},
|
|
118
|
+
order: {
|
|
119
|
+
orders: "Orders",
|
|
120
|
+
orderConfirmMsg: "Your Order Confirmed",
|
|
121
|
+
orderUpgradeConfirmMsg: "Upgrade product Order placed successfully",
|
|
122
|
+
phoneShippingOrderConfirmMsg: "Phone Shipping Order placed successfully",
|
|
123
|
+
orderDetails: "Order Details",
|
|
124
|
+
shippingOrder: "Shipping Orders",
|
|
125
|
+
shippingOrderDetails: "Shipping Order Details",
|
|
126
|
+
shippingOrderConfirmMsg: "Shipping Order placed successfully",
|
|
127
|
+
orderId: "Order Id",
|
|
128
|
+
placedOn: "Placed On",
|
|
129
|
+
itemsTitle: "Items Ordered",
|
|
130
|
+
boostedMintingSuccess: "You got the Boosted minting power of",
|
|
131
|
+
subTotal: "Subtotal",
|
|
132
|
+
shippingTotal: "Shipping Fee",
|
|
133
|
+
oneCare: "One Care",
|
|
134
|
+
items: "items",
|
|
135
|
+
grandTotal: "Grand Total",
|
|
136
|
+
goToLegacyOrder: "Go to legacy order",
|
|
137
|
+
goToMainOrder: "Go to Main order",
|
|
138
|
+
billingAddressComponent: {
|
|
139
|
+
contactInfo: "Contact Info",
|
|
140
|
+
mobileNumber: "Mobile Number",
|
|
141
|
+
emailInfo: "Email Info",
|
|
142
|
+
email: "Email",
|
|
143
|
+
paymentInfo: "Payment Info",
|
|
144
|
+
paymentType: "Payment Type",
|
|
145
|
+
billingAddressTitle: "Billing Address",
|
|
146
|
+
shippingAddressTitle: "Shipping Address",
|
|
147
|
+
pickupAddress: "Pickup Address",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
cart: {
|
|
151
|
+
backBtn: "Back",
|
|
152
|
+
loading: "Loading cart..",
|
|
153
|
+
title: "Cart",
|
|
154
|
+
checkoutNowBtn: "Checkout Now",
|
|
155
|
+
removeBtn: "Remove",
|
|
156
|
+
clearCart: "Clear cart",
|
|
157
|
+
discountApplied: "Discount Applied",
|
|
158
|
+
proceed: "Proceed",
|
|
159
|
+
|
|
160
|
+
cartInactive: "Cart Inactive",
|
|
161
|
+
cartInactiveSummery:
|
|
162
|
+
"Your cart has been updated to reflect the latest product availability and pricing. Please review your cart before proceeding to checkout.",
|
|
163
|
+
cartInactiveAction: "Refresh Cart",
|
|
164
|
+
|
|
165
|
+
cartShippingInactive: "Shipping Cart Inactive",
|
|
166
|
+
cartShippingInactiveSummery:
|
|
167
|
+
"Your shipping cart has been updated to reflect the latest product availability and pricing. Please review your shipping cart before proceeding to checkout.",
|
|
168
|
+
cartShippingInactiveAction: "Refresh Shipping Cart",
|
|
169
|
+
|
|
170
|
+
tableItemsComponent: {
|
|
171
|
+
category: "Category",
|
|
172
|
+
maxPurchaseLimit: "Maximum Purchase Limit",
|
|
173
|
+
alreadyPurchased: "Quantity Previously Purchased",
|
|
174
|
+
},
|
|
175
|
+
orderSummaryComponent: {
|
|
176
|
+
title: "Order Summary",
|
|
177
|
+
editBtn: "Edit",
|
|
178
|
+
category: "Category",
|
|
179
|
+
subTotal: "Subtotal",
|
|
180
|
+
shippingTotal: "Shipping Fee",
|
|
181
|
+
loading: "Loading...",
|
|
182
|
+
grandTotal: "Grand Total",
|
|
183
|
+
continueShoppingBtn: "Continue Shopping",
|
|
184
|
+
},
|
|
185
|
+
shippingOrderSummaryComponent: {
|
|
186
|
+
title: "Shipping Summary",
|
|
187
|
+
},
|
|
188
|
+
phoneShippingOrderSummaryComponent: {
|
|
189
|
+
title: "Summary",
|
|
190
|
+
},
|
|
191
|
+
upgradeOrderSummaryComponent: {
|
|
192
|
+
title: "Upgrade Summary",
|
|
193
|
+
},
|
|
194
|
+
migrationOrderSummaryComponent: {
|
|
195
|
+
title: "Migration Summary",
|
|
196
|
+
titleExtensions: "Extensions Summary",
|
|
197
|
+
},
|
|
198
|
+
initiateDelivery: {
|
|
199
|
+
shippingMethod: {
|
|
200
|
+
billingAddress: "Billing address",
|
|
201
|
+
addNewBillingAddress: "Add New Billing Address",
|
|
202
|
+
shippingAddress: "Shipping address",
|
|
203
|
+
sameAsBillingAddress: "Same as billing address",
|
|
204
|
+
addNewShippingAddress: "Add New Shipping Address",
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
sharedComponents: {
|
|
209
|
+
addressFormComponent: {
|
|
210
|
+
firstName: "First Name",
|
|
211
|
+
lastName: "Last Name",
|
|
212
|
+
address: "Address",
|
|
213
|
+
flatHouseBuilding: "Flat, House no, Building (Optional)",
|
|
214
|
+
selectCountry: "Select Country",
|
|
215
|
+
state: "State / Region",
|
|
216
|
+
city: "City",
|
|
217
|
+
zipCode: "Zip Code",
|
|
218
|
+
submitBtn: "Add Address",
|
|
219
|
+
updateBtn: "Update",
|
|
220
|
+
},
|
|
221
|
+
buySubscriptionComponent: {
|
|
222
|
+
header: "First Purchase Subscription",
|
|
223
|
+
description: `Please note that subscription is mandatory to purchase any computer device product. This item cannot be deleted from the cart.`,
|
|
224
|
+
descriptionSummery: `Please note that subscription is mandatory to continue.`,
|
|
225
|
+
redirectBtn: "Buy Subscription",
|
|
226
|
+
},
|
|
227
|
+
cartDrawerComponent: {
|
|
228
|
+
category: "Category",
|
|
229
|
+
maxPurchaseLimit: "Maximum Purchase Limit",
|
|
230
|
+
alreadyPurchased: "Quantity Previously Purchased",
|
|
231
|
+
title: "My Cart",
|
|
232
|
+
grandTotal: "Grand Total",
|
|
233
|
+
subTotal: "Subtotal",
|
|
234
|
+
checkoutNowBtn: "Checkout Now",
|
|
235
|
+
},
|
|
236
|
+
emptyCartMessageComponent: {
|
|
237
|
+
title: "You Have Not Added Anything Yet!",
|
|
238
|
+
},
|
|
239
|
+
emptyCartMessageForCartPage: {
|
|
240
|
+
title: "Your Cart is Currently Empty",
|
|
241
|
+
subTitle: "You Have Not Added Anything Yet!",
|
|
242
|
+
message: "Add items to your cart to start shopping!",
|
|
243
|
+
redirectBtn: "Start Shopping",
|
|
244
|
+
},
|
|
245
|
+
emptyAssets: {
|
|
246
|
+
title: "No Assets",
|
|
247
|
+
message: "There are no assets for this method",
|
|
248
|
+
},
|
|
249
|
+
emptyOrderMessageForOrdersPage: {
|
|
250
|
+
title: "Your Order history is Currently Empty",
|
|
251
|
+
subTitle: `Kindly visit this link to get more details.`,
|
|
252
|
+
message: "Add items to your cart to start shopping!",
|
|
253
|
+
redirectBtn: "Start Shopping",
|
|
254
|
+
},
|
|
255
|
+
emptyLegacyOrderMessageForOrdersPage: {
|
|
256
|
+
title: "Your Legacy Order History is currently empty",
|
|
257
|
+
subTitle: `Kindly visit`,
|
|
258
|
+
linkText: ` this link `,
|
|
259
|
+
message: "to get more details.",
|
|
260
|
+
redirectBtn: "Start Shopping",
|
|
261
|
+
},
|
|
262
|
+
emptyOrderMessageForShippingOrdersPage: {
|
|
263
|
+
title: "Your Shipping Orders history is Currently Empty",
|
|
264
|
+
subTitle: `You haven't start any order shipping.`,
|
|
265
|
+
message: "start an order shipment!",
|
|
266
|
+
redirectBtn: "Orders history",
|
|
267
|
+
},
|
|
268
|
+
footerComponent: {
|
|
269
|
+
termsAndC: "Terms & Condition",
|
|
270
|
+
privacy: "Privacy & Cookies Policy",
|
|
271
|
+
risk: "Risk Disclosure",
|
|
272
|
+
},
|
|
273
|
+
headerComponent: {
|
|
274
|
+
title: "Welcome back",
|
|
275
|
+
},
|
|
276
|
+
orderNotFoundComponent: {
|
|
277
|
+
title: "The Requested Order Is Not Found",
|
|
278
|
+
message: "Go back to the order history!",
|
|
279
|
+
redirectBtn: "View All Orders",
|
|
280
|
+
},
|
|
281
|
+
phoneNumberComponent: {
|
|
282
|
+
title: "Mobile Number",
|
|
283
|
+
},
|
|
284
|
+
productNotFoundComponent: {
|
|
285
|
+
title: "The Requested Product Is Not Found",
|
|
286
|
+
message: "Go back to the products history!",
|
|
287
|
+
redirectBtn: "View All Products",
|
|
288
|
+
},
|
|
289
|
+
profileMenuComponent: {
|
|
290
|
+
nodeLinkRedirectionLink: "Go to Node Link",
|
|
291
|
+
logout: "Logout",
|
|
292
|
+
},
|
|
293
|
+
serverTime: {
|
|
294
|
+
title: "Server Time",
|
|
295
|
+
},
|
|
296
|
+
sessionDialogComponent: {
|
|
297
|
+
header: "Oops, Your Session Has Expired!",
|
|
298
|
+
message: `It looks like you've been away for a while. To keep your account secure, we've logged you out. Click below to sign back in.`,
|
|
299
|
+
redirectBtn: "Login again",
|
|
300
|
+
},
|
|
301
|
+
cartStepperComponent: {
|
|
302
|
+
first: "Shopping cart",
|
|
303
|
+
second: "Checkout",
|
|
304
|
+
third: "Payment",
|
|
305
|
+
productPayment: "Product Payment",
|
|
306
|
+
four: "Order confirmation",
|
|
307
|
+
|
|
308
|
+
review: "Review",
|
|
309
|
+
deliveryPayment: "Delivery Payment",
|
|
310
|
+
},
|
|
311
|
+
commissionNonEligibleComponent: {
|
|
312
|
+
message: "Product is not applicable for CV and VP points",
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
payment: {
|
|
316
|
+
loading: "Loading cart",
|
|
317
|
+
paymentMethod: "Payment Method",
|
|
318
|
+
payByCard: "Pay by card",
|
|
319
|
+
payByHomnifi: "Pay by Nodelink wallet",
|
|
320
|
+
proceedBtn: "Proceed to payment",
|
|
321
|
+
walletTermsAndConditionComponent: {
|
|
322
|
+
consentAcceptedMsg: "Consent successfully accepted!",
|
|
323
|
+
consentErrorMsg: "An error occurred. Please try again later.",
|
|
324
|
+
consentClickMsg: "By Clicking this, I accept the",
|
|
325
|
+
termsAndC: "Terms and Conditions",
|
|
326
|
+
and: "and",
|
|
327
|
+
privacyP: "Privacy policy",
|
|
328
|
+
importBtn: "Import Nodelink Wallet",
|
|
329
|
+
},
|
|
330
|
+
walletSliderComponent: {
|
|
331
|
+
backBtn: "Back",
|
|
332
|
+
amount: "Amount",
|
|
333
|
+
avlBalance: "Avl Balance",
|
|
334
|
+
grandTotal: "Grand Total",
|
|
335
|
+
insufficientBalance: "Insufficient Balance for",
|
|
336
|
+
depositBtn: "Deposit Now",
|
|
337
|
+
},
|
|
338
|
+
requestProcessingDialog: {
|
|
339
|
+
title: "Processing Your Request",
|
|
340
|
+
subTitle: "Hang tight! while we process your order.",
|
|
341
|
+
message:
|
|
342
|
+
"Just a moment! Please do not refresh while we complete your order.",
|
|
343
|
+
orderId: "Order ID",
|
|
344
|
+
errorMsg: "An error occurred during the process",
|
|
345
|
+
retryBtn: "Click here to retry",
|
|
346
|
+
},
|
|
347
|
+
paybyWalletItemComponent: {
|
|
348
|
+
insufficientBalanceMsg: "Insufficient wallet balance. Please recharge.",
|
|
349
|
+
avlBalance: "Avl Balance",
|
|
350
|
+
},
|
|
351
|
+
disclaimerAlertDialog: {
|
|
352
|
+
header: "Disclaimer Alert",
|
|
353
|
+
acceptCheckboxPrivacy: "I have read and accept membership",
|
|
354
|
+
privacyP: "Privacy Policy",
|
|
355
|
+
acceptCheckboxTerms: "I have read and accepted HMall",
|
|
356
|
+
termsAndC: "Terms & Conditions",
|
|
357
|
+
acceptCheckboxRickDisclosure:
|
|
358
|
+
"I confirm that I have read and agree to the HMall",
|
|
359
|
+
|
|
360
|
+
shippingAcknowledgment:
|
|
361
|
+
"I acknowledge that payment for this purchase is processed by our Third-Party Partner, HORYS TECHNOLOGIES. Any additional costs not contemplated by the standard shipping procedure that may arise during delivery are not included. Shipping costs cover delivery to the destination and handling but do not include additional customs fees. I confirm that I have read and agree to the",
|
|
362
|
+
riskDisclosureLink: "risk disclosure policy",
|
|
363
|
+
riskDisclosure: "Risk Disclosure Policy",
|
|
364
|
+
confirmBtn: "Confirm all",
|
|
365
|
+
legalTermsAccept: "I have read and agree to the Horystech",
|
|
366
|
+
legalOtherTermsAccept: "and other Legal Documents",
|
|
367
|
+
here: "here",
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
invoice: {
|
|
371
|
+
requestProcessingDialog: {
|
|
372
|
+
title: "Processing Your Request",
|
|
373
|
+
subTitle: "Hang tight! While we process your invoice.",
|
|
374
|
+
message:
|
|
375
|
+
"Just a moment! Please do not refresh while we complete downloading your invoice.",
|
|
376
|
+
orderId: "Order ID",
|
|
377
|
+
errorMsg: "An error occurred during the process",
|
|
378
|
+
retryBtn: "Click here to retry",
|
|
379
|
+
failedTitle: "Unable to Generate Invoice.",
|
|
380
|
+
failedMessage: `We couldn't generate your invoice at this time. Please try again later.`,
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
} as const;
|