@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,97 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { IconProps } from "../../types/icon";
|
|
4
|
+
|
|
5
|
+
export function BrandIcon({ width = 592, height = 138 }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={width}
|
|
9
|
+
height={height}
|
|
10
|
+
viewBox={`0 0 592 138`}
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
style={{
|
|
14
|
+
width: width,
|
|
15
|
+
height: height,
|
|
16
|
+
minWidth: width,
|
|
17
|
+
minHeight: height,
|
|
18
|
+
maxWidth: width,
|
|
19
|
+
maxHeight: height,
|
|
20
|
+
flexShrink: 0,
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<g clipPath="url(#clip0_4002_513)">
|
|
24
|
+
<path
|
|
25
|
+
d="M64.3601 107.91L73.4701 114.98V66.5V57.76V29.98L64.3601 22.91V107.91Z"
|
|
26
|
+
fill="white"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="M106.67 22.91V22.93L106.66 22.91L85.3 59.41L89.95 69.96L106.67 39.63V107.91L115.78 114.98V66.5V57.76V29.98L106.67 22.91Z"
|
|
30
|
+
fill="white"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
d="M30.36 57.76V29.98L21.25 22.91V107.91L30.36 114.98V69.96H39.74H43.6H51.94L59.01 60.86H30.36V57.76Z"
|
|
34
|
+
fill="white"
|
|
35
|
+
/>
|
|
36
|
+
<g clipPath="url(#clip1_4002_513)">
|
|
37
|
+
<path
|
|
38
|
+
d="M102.27 0H35.62C15.9476 0 0 15.9476 0 35.62V102.27C0 121.942 15.9476 137.89 35.62 137.89H102.27C121.942 137.89 137.89 121.942 137.89 102.27V35.62C137.89 15.9476 121.942 0 102.27 0Z"
|
|
39
|
+
fill="url(#paint0_linear_4002_513)"
|
|
40
|
+
/>
|
|
41
|
+
<path
|
|
42
|
+
d="M64.3601 107.91L73.4701 114.98V66.5V57.76V29.98L64.3601 22.91V107.91Z"
|
|
43
|
+
fill="white"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
d="M106.67 22.91V22.93L106.66 22.91L85.3 59.41L89.95 69.96L106.67 39.63V107.91L115.78 114.98V66.5V57.76V29.98L106.67 22.91Z"
|
|
47
|
+
fill="white"
|
|
48
|
+
/>
|
|
49
|
+
<path
|
|
50
|
+
d="M30.36 57.76V29.98L21.25 22.91V107.91L30.36 114.98V69.96H39.74H43.6H51.94L59.01 60.86H30.36V57.76Z"
|
|
51
|
+
fill="white"
|
|
52
|
+
/>
|
|
53
|
+
</g>
|
|
54
|
+
</g>
|
|
55
|
+
<path
|
|
56
|
+
d="M461.472 110.817H452.832V32.8167H461.472V110.817Z"
|
|
57
|
+
fill="#1E1E1E"
|
|
58
|
+
/>
|
|
59
|
+
<path
|
|
60
|
+
d="M437.682 110.817H429.042V32.8167H437.682V110.817Z"
|
|
61
|
+
fill="#1E1E1E"
|
|
62
|
+
/>
|
|
63
|
+
<path
|
|
64
|
+
d="M405.27 55.6166H414.03V110.817H405.27V100.857C401.07 107.457 394.11 111.777 384.75 111.777C369.03 111.777 357.87 99.6566 357.87 83.2166C357.87 66.6566 369.03 54.7766 384.75 54.7766C394.11 54.7766 401.07 58.9766 405.27 65.5766V55.6166ZM385.83 103.497C397.71 103.497 405.27 94.9766 405.27 83.2166C405.27 71.4566 397.71 63.0566 385.83 63.0566C374.07 63.0566 366.27 71.4566 366.27 83.2166C366.27 94.9766 374.07 103.497 385.83 103.497Z"
|
|
65
|
+
fill="#1E1E1E"
|
|
66
|
+
/>
|
|
67
|
+
<path
|
|
68
|
+
d="M344.413 32.8167V110.817H335.413V50.2167L310.453 101.217H304.213L279.253 50.2167V110.817H270.253V32.8167H279.853L307.333 87.5367L334.813 32.8167H344.413Z"
|
|
69
|
+
fill="#1E1E1E"
|
|
70
|
+
/>
|
|
71
|
+
<path
|
|
72
|
+
d="M246.142 32.8167H255.262V110.817H246.142V76.2566H203.902V110.817H194.902V32.8167H203.902V67.4966H246.142V32.8167Z"
|
|
73
|
+
fill="#1E1E1E"
|
|
74
|
+
/>
|
|
75
|
+
<defs>
|
|
76
|
+
<linearGradient
|
|
77
|
+
id="paint0_linear_4002_513"
|
|
78
|
+
x1="0"
|
|
79
|
+
y1="137.89"
|
|
80
|
+
x2="137.89"
|
|
81
|
+
y2="0"
|
|
82
|
+
gradientUnits="userSpaceOnUse"
|
|
83
|
+
>
|
|
84
|
+
<stop offset="0.0762988" stopColor="#00F1C9" />
|
|
85
|
+
<stop offset="0.616036" stopColor="#0094E3" />
|
|
86
|
+
<stop offset="0.921648" stopColor="#0039FD" />
|
|
87
|
+
</linearGradient>
|
|
88
|
+
<clipPath id="clip0_4002_513">
|
|
89
|
+
<rect width="137.89" height="137.89" fill="white" />
|
|
90
|
+
</clipPath>
|
|
91
|
+
<clipPath id="clip1_4002_513">
|
|
92
|
+
<rect width="137.89" height="137.89" fill="white" />
|
|
93
|
+
</clipPath>
|
|
94
|
+
</defs>
|
|
95
|
+
</svg>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { IconProps } from "../../types/icon";
|
|
4
|
+
|
|
5
|
+
export function BrandText({ className }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width="129"
|
|
10
|
+
height="33"
|
|
11
|
+
viewBox="0 0 129 33"
|
|
12
|
+
fill="none"
|
|
13
|
+
className={className}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M13.3099 0H15.9892V25.3545H13.3099V13.0033H3.09457V25.3545H0.377716V0H3.09457V10.3951H13.3099V0Z"
|
|
17
|
+
fill="#222222"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M30.8023 23.7829C29.7155 25.0744 28.0604 25.7223 25.8409 25.7223C24.3195 25.7223 23.053 25.3963 22.0373 24.7442C21.0216 24.0922 20.2693 23.2353 19.7719 22.1737C19.2786 21.112 19.0279 19.9417 19.0279 18.6585V13.9144C19.0279 12.3679 19.287 11.0722 19.8053 10.0189C20.3236 8.96557 21.0927 8.17141 22.1042 7.62804C23.1199 7.08467 24.3487 6.81299 25.7991 6.81299C27.9224 6.81299 29.5609 7.43995 30.7061 8.69807C31.8514 9.952 32.4282 11.6908 32.4282 13.9144V18.6585C32.4282 20.7818 31.8848 22.4913 30.7981 23.7829H30.8023ZM29.3017 11.394C29.0259 10.7294 28.5995 10.2237 28.0353 9.87258C27.4668 9.52148 26.7354 9.34593 25.8451 9.34593C24.9548 9.34593 24.1982 9.5173 23.5796 9.85168C22.9652 10.1902 22.4971 10.6918 22.1836 11.3564C21.8701 12.021 21.7113 12.8486 21.7113 13.8392V18.9845C21.7113 19.8037 21.8743 20.531 22.2003 21.158C22.5263 21.7849 23.0028 22.2823 23.6298 22.6418C24.2568 23.0054 24.9924 23.1852 25.8409 23.1852C26.6894 23.1852 27.4334 23.018 28.0144 22.6794C28.5954 22.3408 29.0217 21.8518 29.3017 21.2123C29.5776 20.5728 29.7197 19.8288 29.7197 18.9845V13.8392C29.7197 12.8737 29.5818 12.0586 29.3017 11.394Z"
|
|
21
|
+
fill="#222222"
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
d="M45.4023 9.2749C44.8004 9.17877 44.2445 9.14115 43.7345 9.16623C43.2748 9.19131 42.7857 9.24564 42.2674 9.32924C41.7492 9.41283 41.235 9.52987 40.7293 9.67198C40.2235 9.81827 39.747 9.98546 39.2998 10.1777C38.8526 10.37 38.4471 10.5748 38.0877 10.7922V25.3545H35.3708V7.20592H38.0877V8.25504C38.886 7.84542 39.7303 7.50686 40.6248 7.23935C41.5193 6.97603 42.5182 6.8172 43.63 6.76704C44.1149 6.74196 44.5412 6.76704 44.9174 6.83809C45.2894 6.90915 45.5527 6.97185 45.6949 7.01783L45.4064 9.26236L45.4023 9.2749Z"
|
|
25
|
+
fill="#222222"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
d="M62.2634 9.50894C62.0336 9.86004 61.9207 10.3951 61.9207 11.1223V27.5656C61.9207 28.6021 61.7619 29.4924 61.4484 30.2281C61.1349 30.9637 60.6584 31.5572 60.0189 32.0045C59.3794 32.4517 58.5518 32.7819 57.5361 32.9993L56.813 30.8634C57.1976 30.7673 57.5487 30.6084 57.8621 30.3911C58.1756 30.1737 58.4348 29.9146 58.6396 29.6136C58.8444 29.3127 58.9949 28.9741 59.091 28.598C59.1871 28.2218 59.2373 27.8289 59.2373 27.4193V23.7954C58.9238 24.1841 58.5184 24.5143 58.0252 24.7902C57.5319 25.0661 56.9886 25.2792 56.395 25.4255C55.8015 25.5718 55.2289 25.6429 54.673 25.6429C53.7534 25.6429 52.9175 25.53 52.1568 25.3001C51.396 25.0702 50.744 24.7191 50.2006 24.251C49.6572 23.7787 49.2351 23.1601 48.9341 22.3868C48.6332 21.6136 48.4827 20.6982 48.4827 19.6324V7.17245H51.2372V19.4861C51.2372 20.1632 51.3459 20.7358 51.5632 21.2081C51.7806 21.6804 52.0815 22.0524 52.4702 22.3325C52.8548 22.6084 53.2853 22.8173 53.7576 22.9469C54.2299 23.0807 54.7064 23.1475 55.1871 23.1475C55.7681 23.1475 56.2989 23.0389 56.7796 22.8215C57.2603 22.6042 57.6866 22.3032 58.046 21.9145C58.4097 21.53 58.6981 21.0869 58.9154 20.5937C59.1328 20.1005 59.2415 19.5738 59.2415 19.0179V10.7211C59.2415 10.1401 59.3501 9.57582 59.5675 9.01991C59.7848 8.464 60.1234 7.9875 60.5832 7.59042C61.0429 7.19335 61.6448 6.9342 62.393 6.81299L63.3 8.76912C62.8403 8.91541 62.4975 9.16202 62.2676 9.51312L62.2634 9.50894Z"
|
|
29
|
+
fill="#222222"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
d="M74.6481 9.6177C74.2719 9.48394 73.8832 9.38781 73.4694 9.32929C73.0598 9.27077 72.646 9.23734 72.2364 9.23734C71.8477 9.23734 71.438 9.27495 71.0033 9.34601C70.5686 9.41707 70.1632 9.54664 69.7912 9.72637C69.415 9.9061 69.1141 10.1485 68.8842 10.4495C68.6543 10.7504 68.5414 11.1057 68.5414 11.5195C68.5414 12.0503 68.717 12.4976 69.0681 12.8612C69.4192 13.2248 69.8832 13.5509 70.4641 13.8393C71.0451 14.1277 71.6721 14.4077 72.3492 14.671C73.0264 14.9385 73.7077 15.227 74.3973 15.5404C75.087 15.8539 75.7181 16.2301 76.2991 16.6648C76.8801 17.0995 77.3441 17.6303 77.6952 18.2573C78.0463 18.8843 78.2218 19.645 78.2218 20.5394C78.2218 21.4339 78.0421 22.2197 77.6784 22.8927C77.3148 23.5698 76.8258 24.1382 76.2113 24.5938C75.5969 25.0536 74.9114 25.3963 74.1632 25.6262C73.4151 25.8561 72.6418 25.969 71.8435 25.969C70.5394 25.969 69.2855 25.6931 68.0775 25.1372C66.8695 24.5813 65.8455 23.8206 64.997 22.855L66.5561 21.2625C67.0409 21.7223 67.5509 22.1194 68.0942 22.458C68.6376 22.7965 69.2102 23.0515 69.8163 23.2187C70.4182 23.3859 71.0493 23.4736 71.7014 23.4736C72.111 23.4736 72.5415 23.4193 72.9887 23.3106C73.436 23.202 73.8498 23.0264 74.2385 22.784C74.623 22.5416 74.9407 22.2406 75.1789 21.877C75.4172 21.5133 75.5426 21.0786 75.5426 20.5729C75.5426 19.9919 75.367 19.4945 75.0159 19.0682C74.6648 18.646 74.205 18.2782 73.6408 17.9647C73.0723 17.6512 72.4454 17.3545 71.7557 17.0786C71.066 16.8027 70.3805 16.5101 69.6909 16.2092C69.0012 15.9083 68.3743 15.553 67.8058 15.1392C67.2374 14.7296 66.7776 14.2405 66.4307 13.6721C66.0796 13.1036 65.904 12.4098 65.904 11.5905C65.904 10.7713 66.0712 10.0942 66.4098 9.48812C66.7483 8.88623 67.2081 8.38466 67.7849 7.9834C68.3659 7.58633 69.0054 7.28538 69.7034 7.07639C70.4056 6.87158 71.1287 6.76709 71.8769 6.76709C72.3576 6.76709 72.8675 6.80471 73.3984 6.87576C73.9292 6.94682 74.4684 7.08057 75.0117 7.27284C75.5551 7.46511 76.0901 7.73262 76.6251 8.07118L75.6471 10.0984C75.3587 9.9061 75.0243 9.74309 74.6523 9.60934L74.6481 9.6177Z"
|
|
33
|
+
fill="#222222"
|
|
34
|
+
/>
|
|
35
|
+
<path
|
|
36
|
+
d="M90.8239 20.7568L97.9253 0H100.605V25.3545H97.9253V7.96665L92.0945 25.3545H89.6326L83.8729 7.96665V25.3545H81.1561V0H83.8729L90.828 20.7568H90.8239Z"
|
|
37
|
+
fill="#222222"
|
|
38
|
+
/>
|
|
39
|
+
<path
|
|
40
|
+
d="M114.477 10.834C114.235 10.3032 113.884 9.89775 113.428 9.62189C112.968 9.34602 112.437 9.14957 111.836 9.0409C111.234 8.93222 110.569 8.87789 109.842 8.87789L109.988 6.92175C111.438 6.92175 112.642 7.05551 113.612 7.31883C114.577 7.58634 115.342 8.01267 115.911 8.6062C116.479 9.19973 116.889 9.99389 117.144 10.997C117.399 12.0002 117.524 13.2374 117.524 14.7087V25.3587C117.428 25.3838 117.215 25.4047 116.889 25.4298C116.563 25.4549 116.182 25.4841 115.748 25.5217C115.313 25.5594 114.849 25.5928 114.352 25.6304C113.859 25.668 113.37 25.6889 112.885 25.7015C112.4 25.714 111.953 25.7182 111.543 25.7182C110.431 25.7433 109.395 25.6639 108.429 25.4841C107.463 25.3044 106.619 24.9784 105.892 24.5061C105.169 24.0337 104.6 23.3817 104.191 22.5499C103.781 21.7182 103.576 20.6607 103.576 19.3817V16.2301C103.576 15.2395 103.723 14.3994 104.011 13.7139C104.299 13.0284 104.701 12.4641 105.206 12.0294C105.712 11.5947 106.285 11.2813 106.928 11.089C107.568 10.8967 108.237 10.8006 108.939 10.8006C109.641 10.8006 110.389 10.8925 111.112 11.0723C111.836 11.252 112.517 11.4944 113.161 11.7954C113.8 12.0963 114.36 12.4516 114.845 12.8654C114.845 12.0462 114.724 11.369 114.481 10.8382L114.477 10.834ZM113.227 14.2196C112.613 13.9647 111.961 13.7473 111.271 13.5676C110.582 13.3879 109.888 13.2959 109.19 13.2959C108.901 13.2959 108.588 13.3377 108.249 13.4213C107.911 13.5049 107.593 13.6554 107.288 13.8727C106.987 14.0901 106.736 14.4035 106.544 14.8132C106.352 15.2228 106.256 15.7662 106.256 16.4433V19.0138C106.256 19.7369 106.327 20.3764 106.473 20.9324C106.619 21.4883 106.882 21.9522 107.271 22.3284C107.656 22.7046 108.199 22.9763 108.901 23.1435C109.599 23.3106 110.481 23.3733 111.547 23.3232C111.911 23.3232 112.254 23.3106 112.58 23.2856C112.906 23.2605 113.206 23.2354 113.487 23.2145C113.762 23.1894 114.005 23.1727 114.21 23.1602C114.414 23.1476 114.628 23.1309 114.845 23.1058V14.9929C114.385 14.7254 113.85 14.4662 113.232 14.2155L113.227 14.2196Z"
|
|
41
|
+
fill="#222222"
|
|
42
|
+
/>
|
|
43
|
+
<path d="M120.596 0H123.276V25.3545H120.596V0Z" fill="#222222" />
|
|
44
|
+
<path d="M126.318 0H128.998V25.3545H126.318V0Z" fill="#222222" />
|
|
45
|
+
</svg>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type CartIconProb = {
|
|
2
|
+
color?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export function CartIcon({ color = "#494E58", className }: CartIconProb) {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width="25"
|
|
10
|
+
height="24"
|
|
11
|
+
viewBox="0 0 25 24"
|
|
12
|
+
fill="none"
|
|
13
|
+
className={className}
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M9.3125 19C9.01583 19 8.72582 19.088 8.47914 19.2528C8.23247 19.4176 8.04021 19.6519 7.92668 19.926C7.81315 20.2001 7.78344 20.5017 7.84132 20.7926C7.8992 21.0836 8.04206 21.3509 8.25184 21.5607C8.46162 21.7704 8.72889 21.9133 9.01986 21.9712C9.31084 22.0291 9.61244 21.9993 9.88653 21.8858C10.1606 21.7723 10.3949 21.58 10.5597 21.3334C10.7245 21.0867 10.8125 20.7967 10.8125 20.5C10.8125 20.1022 10.6545 19.7206 10.3732 19.4393C10.0919 19.158 9.71032 19 9.3125 19ZM19.8125 16H7.8125C7.54728 16 7.29293 15.8946 7.10539 15.7071C6.91786 15.5196 6.8125 15.2652 6.8125 15C6.8125 14.7348 6.91786 14.4804 7.10539 14.2929C7.29293 14.1054 7.54728 14 7.8125 14H16.3037C16.9551 13.9979 17.5883 13.7847 18.1084 13.3925C18.6285 13.0002 19.0075 12.45 19.1885 11.8242L20.7739 6.2749C20.8165 6.12607 20.8239 5.9694 20.7956 5.81722C20.7673 5.66505 20.704 5.52152 20.6108 5.39793C20.5176 5.27435 20.397 5.17408 20.2585 5.10503C20.12 5.03598 19.9673 5.00003 19.8125 5H7.55157C7.34456 4.41736 6.96294 3.91271 6.45872 3.55481C5.95451 3.19692 5.35221 3.00318 4.73389 3H3.8125C3.54728 3 3.29293 3.10536 3.10539 3.29289C2.91786 3.48043 2.8125 3.73478 2.8125 4C2.8125 4.26522 2.91786 4.51957 3.10539 4.70711C3.29293 4.89464 3.54728 5 3.8125 5H4.73389C4.95097 5.00076 5.16197 5.07182 5.33529 5.20253C5.5086 5.33325 5.63492 5.51659 5.69531 5.7251L5.85083 6.26984L5.85107 6.2749L7.4917 12.0171C6.72826 12.0992 6.02537 12.4709 5.52777 13.0557C5.03016 13.6405 4.77571 14.3938 4.81683 15.1606C4.85794 15.9273 5.19148 16.6491 5.74876 17.1773C6.30605 17.7055 7.04466 18 7.8125 18H19.8125C20.0777 18 20.3321 17.8946 20.5196 17.7071C20.7071 17.5196 20.8125 17.2652 20.8125 17C20.8125 16.7348 20.7071 16.4804 20.5196 16.2929C20.3321 16.1054 20.0777 16 19.8125 16ZM18.4868 7L17.2656 11.2744C17.2053 11.4831 17.0789 11.6666 16.9055 11.7974C16.7321 11.9282 16.5209 11.9993 16.3037 12H9.56689L9.31195 11.1078L8.13892 7H18.4868ZM17.3125 19C17.0158 19 16.7258 19.088 16.4791 19.2528C16.2325 19.4176 16.0402 19.6519 15.9267 19.926C15.8131 20.2001 15.7834 20.5017 15.8413 20.7926C15.8992 21.0836 16.0421 21.3509 16.2518 21.5607C16.4616 21.7704 16.7289 21.9133 17.0199 21.9712C17.3108 22.0291 17.6124 21.9993 17.8865 21.8858C18.1606 21.7723 18.3949 21.58 18.5597 21.3334C18.7245 21.0867 18.8125 20.7967 18.8125 20.5C18.8125 20.1022 18.6545 19.7206 18.3732 19.4393C18.0919 19.158 17.7103 19 17.3125 19Z"
|
|
17
|
+
fill={color}
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function DoneIcon() {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="29"
|
|
6
|
+
height="29"
|
|
7
|
+
viewBox="0 0 29 29"
|
|
8
|
+
fill="none"
|
|
9
|
+
>
|
|
10
|
+
<g clipPath="url(#clip0_8462_10460)">
|
|
11
|
+
<path
|
|
12
|
+
d="M14.5 0.90625C11.8114 0.90625 9.1832 1.70351 6.94772 3.19721C4.71224 4.69091 2.9699 6.81396 1.94102 9.2979C0.91214 11.7818 0.642938 14.5151 1.16746 17.152C1.69197 19.7889 2.98665 22.2111 4.88777 24.1122C6.78889 26.0134 9.21107 27.308 11.848 27.8326C14.4849 28.3571 17.2182 28.0879 19.7021 27.059C22.186 26.0301 24.3091 24.2878 25.8028 22.0523C27.2965 19.8168 28.0938 17.1886 28.0938 14.5C28.0938 10.8947 26.6616 7.43709 24.1122 4.88777C21.5629 2.33844 18.1053 0.90625 14.5 0.90625ZM14.5 24.4688C12.5284 24.4688 10.601 23.8841 8.96167 22.7887C7.32231 21.6933 6.04459 20.1364 5.29008 18.3149C4.53557 16.4933 4.33816 14.4889 4.7228 12.5552C5.10745 10.6214 6.05688 8.84518 7.45104 7.45103C8.84519 6.05688 10.6215 5.10744 12.5552 4.7228C14.4889 4.33815 16.4933 4.53557 18.3149 5.29008C20.1364 6.04459 21.6933 7.32231 22.7887 8.96166C23.8841 10.601 24.4688 12.5284 24.4688 14.5C24.4688 17.1439 23.4185 19.6795 21.549 21.549C19.6795 23.4185 17.1439 24.4688 14.5 24.4688Z"
|
|
13
|
+
fill="#9451A0"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
d="M17.7551 10.5031L13.5954 14.6537L12.1544 13.2128C11.8143 12.8727 11.3531 12.6816 10.8721 12.6816C10.3911 12.6816 9.92986 12.8727 9.58976 13.2128C9.24966 13.5529 9.05859 14.0142 9.05859 14.4951C9.05859 14.9761 9.24966 15.4374 9.58976 15.7775L12.3085 18.4962C12.4768 18.6648 12.6767 18.7985 12.8968 18.8897C13.1168 18.9809 13.3527 19.0278 13.5909 19.0278C13.829 19.0278 14.0649 18.9809 14.2849 18.8897C14.505 18.7985 14.7049 18.6648 14.8732 18.4962L20.3107 13.0587C20.6508 12.7186 20.8419 12.2574 20.8419 11.7764C20.8419 11.2954 20.6508 10.8342 20.3107 10.4941C19.9706 10.154 19.5093 9.96289 19.0284 9.96289C18.5474 9.96289 18.0861 10.154 17.746 10.4941L17.7551 10.5031Z"
|
|
17
|
+
fill="#9451A0"
|
|
18
|
+
/>
|
|
19
|
+
</g>
|
|
20
|
+
<defs>
|
|
21
|
+
<clipPath id="clip0_8462_10460">
|
|
22
|
+
<rect width="29" height="29" fill="white" />
|
|
23
|
+
</clipPath>
|
|
24
|
+
</defs>
|
|
25
|
+
</svg>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconProps } from "../../types/icon";
|
|
2
|
+
|
|
3
|
+
export function HomnifiIcon({ className }: IconProps) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="18"
|
|
8
|
+
height="31"
|
|
9
|
+
viewBox="0 0 18 31"
|
|
10
|
+
fill="none"
|
|
11
|
+
className={className}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
d="M15.5855 14.2335V3.04336H10.2099V14.2335H7.79541V3.04336H6.57517C5.18451 3.04336 4.24454 3.16918 3.78187 3.41687C2.87385 3.89512 2.41385 4.8885 2.41385 6.37068V14.2341H0V6.37068C0 5.25081 0.129147 4.27653 0.38278 3.47484C0.635083 2.68039 1.17098 2.02362 1.97515 1.52298C2.76401 1.02101 3.84045 0.767395 5.17652 0.767395H18V14.2335H15.5855Z"
|
|
15
|
+
fill="white"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
d="M2.41439 16.6391V27.8292H7.78996V16.6391H10.2045V27.8292H11.4247C12.8154 27.8292 13.7553 27.7034 14.218 27.4557C15.126 26.9774 15.586 25.984 15.586 24.5019V16.6384H17.9999V24.5019C17.9999 25.6217 17.8707 26.596 17.6171 27.3977C17.3648 28.1922 16.8289 28.8489 16.0247 29.3496C15.2359 29.8509 14.1601 30.1045 12.824 30.1045H-0.00012207V16.6384H2.41439V16.6391Z"
|
|
19
|
+
fill="white"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function InfoIcon() {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="16"
|
|
6
|
+
height="15"
|
|
7
|
+
viewBox="0 0 16 15"
|
|
8
|
+
fill="none"
|
|
9
|
+
>
|
|
10
|
+
<path
|
|
11
|
+
d="M8 11.5C8.19833 11.5 8.3647 11.4328 8.4991 11.2984C8.63303 11.1645 8.7 10.9983 8.7 10.8V7.9825C8.7 7.78417 8.63303 7.62083 8.4991 7.4925C8.3647 7.36417 8.19833 7.3 8 7.3C7.80167 7.3 7.63553 7.36697 7.5016 7.5009C7.3672 7.6353 7.3 7.80167 7.3 8V10.8175C7.3 11.0158 7.3672 11.1792 7.5016 11.3075C7.63553 11.4358 7.80167 11.5 8 11.5ZM8 5.9C8.19833 5.9 8.3647 5.8328 8.4991 5.6984C8.63303 5.56447 8.7 5.39833 8.7 5.2C8.7 5.00167 8.63303 4.8353 8.4991 4.7009C8.3647 4.56697 8.19833 4.5 8 4.5C7.80167 4.5 7.63553 4.56697 7.5016 4.7009C7.3672 4.8353 7.3 5.00167 7.3 5.2C7.3 5.39833 7.3672 5.56447 7.5016 5.6984C7.63553 5.8328 7.80167 5.9 8 5.9ZM8 15C7.03167 15 6.12167 14.8161 5.27 14.4484C4.41833 14.0811 3.6775 13.5825 3.0475 12.9525C2.4175 12.3225 1.91887 11.5817 1.5516 10.73C1.18387 9.87833 1 8.96833 1 8C1 7.03167 1.18387 6.12167 1.5516 5.27C1.91887 4.41833 2.4175 3.6775 3.0475 3.0475C3.6775 2.4175 4.41833 1.91863 5.27 1.5509C6.12167 1.18363 7.03167 1 8 1C8.96833 1 9.87833 1.18363 10.73 1.5509C11.5817 1.91863 12.3225 2.4175 12.9525 3.0475C13.5825 3.6775 14.0811 4.41833 14.4484 5.27C14.8161 6.12167 15 7.03167 15 8C15 8.96833 14.8161 9.87833 14.4484 10.73C14.0811 11.5817 13.5825 12.3225 12.9525 12.9525C12.3225 13.5825 11.5817 14.0811 10.73 14.4484C9.87833 14.8161 8.96833 15 8 15ZM8 13.6C9.55167 13.6 10.873 13.0547 11.9641 11.9641C13.0547 10.873 13.6 9.55167 13.6 8C13.6 6.44833 13.0547 5.12697 11.9641 4.0359C10.873 2.9453 9.55167 2.4 8 2.4C6.44833 2.4 5.1272 2.9453 4.0366 4.0359C2.94553 5.12697 2.4 6.44833 2.4 8C2.4 9.55167 2.94553 10.873 4.0366 11.9641C5.1272 13.0547 6.44833 13.6 8 13.6Z"
|
|
12
|
+
fill="#8390A2"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function SmartPayProductIcon() {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="20"
|
|
6
|
+
height="20"
|
|
7
|
+
viewBox="0 0 20 20"
|
|
8
|
+
fill="none"
|
|
9
|
+
>
|
|
10
|
+
<g clipPath="url(#clip0_7126_15387)">
|
|
11
|
+
<path
|
|
12
|
+
d="M3.125 15.3125V11.0372C3.125 10.582 3.32926 10.2035 3.63348 9.95386L3.02711 9.49944C2.78934 9.32249 2.52594 9.23437 2.26562 9.22065C1.51031 9.18089 0.78125 9.76749 0.78125 10.6275V15.3125C0.78125 17.4698 2.53012 19.2187 4.6875 19.2187H7.03125C4.87387 19.2187 3.125 17.4698 3.125 15.3125Z"
|
|
13
|
+
fill="#CEE1F2"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
d="M15.3125 20H4.6875C2.10281 20 0 17.8972 0 15.3125V10.6275C0 10.0202 0.239922 9.45809 0.675586 9.04477C1.11363 8.62918 1.70887 8.40891 2.30672 8.44047C2.73344 8.46293 3.14383 8.61242 3.49359 8.8727L8.09961 12.3245C8.10137 12.3258 8.10312 12.3271 8.10488 12.3285C9.22066 13.1795 10.7794 13.1795 11.8952 12.3285C11.8969 12.3271 11.8987 12.3258 11.9004 12.3245L16.5044 8.87426C16.8562 8.61242 17.2666 8.46293 17.6933 8.44047C18.2911 8.40856 18.8864 8.62918 19.3245 9.04477C19.7601 9.45809 20 10.0202 20 10.6275V15.3125C20 17.8972 17.8972 20 15.3125 20ZM2.19387 10C2.03355 10 1.86996 10.0654 1.75098 10.1783C1.665 10.2598 1.5625 10.404 1.5625 10.6275V15.3125C1.5625 17.0356 2.96438 18.4375 4.6875 18.4375H15.3125C17.0356 18.4375 18.4375 17.0356 18.4375 15.3125V10.6275C18.4375 10.404 18.335 10.2599 18.249 10.1783C18.1225 10.0582 17.9463 9.99219 17.7755 10.0008C17.6557 10.0071 17.5426 10.0493 17.4394 10.1262L12.8401 13.5729C11.1675 14.8466 8.83262 14.8466 7.15996 13.5729L2.55859 10.1246C2.45738 10.0493 2.3443 10.0071 2.22453 10.0008C2.21438 10.0003 2.2041 10 2.19387 10ZM18.125 6.13281V4.6875C18.125 2.10281 16.0222 0 13.4375 0H6.64062C4.05594 0 1.95312 2.10281 1.95312 4.6875V6.13281C1.95312 6.5643 2.30289 6.91406 2.73438 6.91406C3.16586 6.91406 3.51562 6.5643 3.51562 6.13281V4.6875C3.51562 2.96438 4.9175 1.5625 6.64062 1.5625H13.4375C15.1606 1.5625 16.5625 2.96438 16.5625 4.6875V6.13281C16.5625 6.5643 16.9123 6.91406 17.3438 6.91406C17.7752 6.91406 18.125 6.5643 18.125 6.13281Z"
|
|
17
|
+
fill="#1428BF"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M12.1096 8.32031C12.1096 7.22508 11.1916 6.36719 10.0198 6.36719C9.6412 6.36719 9.35569 6.19926 9.35569 5.97656C9.35569 5.76117 9.53092 5.58594 9.74632 5.58594C10.0238 5.58594 10.3614 5.61734 10.9475 5.84531C11.3495 6.00168 11.8024 5.8025 11.9588 5.40035C12.1152 4.9982 11.916 4.54543 11.5139 4.38906C11.2635 4.29172 11.0408 4.22012 10.8401 4.16719V4.02344C10.8401 3.59195 10.4903 3.24219 10.0588 3.24219C9.62733 3.24219 9.27757 3.59195 9.27757 4.02344V4.0807C8.42632 4.29125 7.79319 5.06121 7.79319 5.97656C7.79319 7.09004 8.75042 7.92969 10.0198 7.92969C10.3155 7.92969 10.5471 8.10129 10.5471 8.32031C10.5471 8.5357 10.3719 8.71094 10.1565 8.71094C9.99319 8.71094 9.4355 8.65769 8.82397 8.41465C8.42311 8.25531 7.96878 8.45113 7.80936 8.85207C7.64999 9.25305 7.84585 9.70727 8.24678 9.86664C8.60432 10.0087 8.95913 10.107 9.27757 10.1716V10.2734C9.27757 10.7049 9.62733 11.0547 10.0588 11.0547C10.4903 11.0547 10.8401 10.7049 10.8401 10.2734V10.1497C11.5808 9.87199 12.1096 9.15684 12.1096 8.32031Z"
|
|
21
|
+
fill="#FF5CF0"
|
|
22
|
+
/>
|
|
23
|
+
</g>
|
|
24
|
+
<defs>
|
|
25
|
+
<clipPath id="clip0_7126_15387">
|
|
26
|
+
<rect width="20" height="20" fill="white" />
|
|
27
|
+
</clipPath>
|
|
28
|
+
</defs>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import alertIcon from "@hms/packages/public/img/alert-Icon.png";
|
|
2
|
+
import ButtonCustom from "@hms/packages/shared/components/Button";
|
|
3
|
+
import CustomNextImage from "@hms/packages/shared/components/CustomNextImage";
|
|
4
|
+
import { _useScopedI18n } from "@hms/packages/shared/i18n/client";
|
|
5
|
+
import {
|
|
6
|
+
Checkbox,
|
|
7
|
+
Dialog,
|
|
8
|
+
DialogBody,
|
|
9
|
+
DialogFooter,
|
|
10
|
+
DialogHeader,
|
|
11
|
+
IconButton,
|
|
12
|
+
Typography,
|
|
13
|
+
} from "@material-tailwind/react";
|
|
14
|
+
import React, { useEffect, useState } from "react";
|
|
15
|
+
|
|
16
|
+
import { ROUTES } from "../../constants/routes";
|
|
17
|
+
|
|
18
|
+
type DisclaimerAlertDialogProps = {
|
|
19
|
+
open: boolean;
|
|
20
|
+
actionLoading: boolean;
|
|
21
|
+
onConfirm: () => void;
|
|
22
|
+
setOpen: (value: boolean) => void;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export function DisclaimerAlertDialog({
|
|
26
|
+
open,
|
|
27
|
+
setOpen,
|
|
28
|
+
actionLoading,
|
|
29
|
+
onConfirm,
|
|
30
|
+
}: DisclaimerAlertDialogProps) {
|
|
31
|
+
//
|
|
32
|
+
const scopeT = _useScopedI18n("payment.disclaimerAlertDialog");
|
|
33
|
+
|
|
34
|
+
const [allChecked, setAllChecked] = useState(false);
|
|
35
|
+
const [isPrivacyChecked, setIsPrivacyChecked] = useState(false);
|
|
36
|
+
const [isTermsChecked, setIsTermsChecked] = useState(false);
|
|
37
|
+
const [isRiskChecked, setIsRiskChecked] = useState(false);
|
|
38
|
+
const [legalDocs, setLegalDocs] = useState(false);
|
|
39
|
+
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
// Check if all checkboxes are checked
|
|
42
|
+
if (isPrivacyChecked && isTermsChecked && isRiskChecked && legalDocs) {
|
|
43
|
+
(async () => await setAllChecked(true))();
|
|
44
|
+
} else {
|
|
45
|
+
(async () => await setAllChecked(false))();
|
|
46
|
+
}
|
|
47
|
+
}, [isPrivacyChecked, isTermsChecked, isRiskChecked, legalDocs]);
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<>
|
|
51
|
+
<Dialog
|
|
52
|
+
open={open}
|
|
53
|
+
size="xs"
|
|
54
|
+
handler={() => {
|
|
55
|
+
setOpen(false);
|
|
56
|
+
}}
|
|
57
|
+
className="p-2 md:p-5 overflow-y-auto h-fit disclaimer-alert-dialog"
|
|
58
|
+
>
|
|
59
|
+
<DialogHeader className="flex flex-col gap-2 p-0 pb-0">
|
|
60
|
+
<div className="text-right size-full">
|
|
61
|
+
<IconButton
|
|
62
|
+
color="blue-gray"
|
|
63
|
+
size="sm"
|
|
64
|
+
variant="text"
|
|
65
|
+
onClick={() => {
|
|
66
|
+
setOpen(false);
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
fill="none"
|
|
72
|
+
viewBox="0 0 24 24"
|
|
73
|
+
stroke="currentColor"
|
|
74
|
+
strokeWidth={2}
|
|
75
|
+
className="h-5 w-5"
|
|
76
|
+
>
|
|
77
|
+
<path
|
|
78
|
+
strokeLinecap="round"
|
|
79
|
+
strokeLinejoin="round"
|
|
80
|
+
d="M6 18L18 6M6 6l12 12"
|
|
81
|
+
/>
|
|
82
|
+
</svg>
|
|
83
|
+
</IconButton>
|
|
84
|
+
</div>
|
|
85
|
+
<CustomNextImage
|
|
86
|
+
src={alertIcon.src}
|
|
87
|
+
alt={"alertIcon"}
|
|
88
|
+
width={45}
|
|
89
|
+
height={45}
|
|
90
|
+
></CustomNextImage>
|
|
91
|
+
<Typography
|
|
92
|
+
variant="h4"
|
|
93
|
+
className="text-base md:text-xl font-semibold text-black-500"
|
|
94
|
+
>
|
|
95
|
+
{scopeT("header")}
|
|
96
|
+
</Typography>
|
|
97
|
+
</DialogHeader>
|
|
98
|
+
<DialogBody className="disclaimer-body pl-1 pr-3">
|
|
99
|
+
<div className="flex items-center">
|
|
100
|
+
<Checkbox
|
|
101
|
+
color="green"
|
|
102
|
+
checked={isTermsChecked}
|
|
103
|
+
onChange={() => setIsTermsChecked(!isTermsChecked)}
|
|
104
|
+
crossOrigin={undefined}
|
|
105
|
+
/>
|
|
106
|
+
<Typography className="text-xs md:text-sm text-black-500 font-medium">
|
|
107
|
+
{scopeT("acceptCheckboxTerms")}
|
|
108
|
+
<Typography
|
|
109
|
+
as="a"
|
|
110
|
+
href={ROUTES.dashboard.termsAndConditions}
|
|
111
|
+
target="_blank"
|
|
112
|
+
className="inline underline text-xs md:text-sm font-medium transition-colors text-purple-500 hover:text-purple-400 hover:underline"
|
|
113
|
+
>
|
|
114
|
+
{scopeT("termsAndC")}
|
|
115
|
+
</Typography>
|
|
116
|
+
.
|
|
117
|
+
</Typography>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<div className="flex items-center">
|
|
121
|
+
<Checkbox
|
|
122
|
+
color="green"
|
|
123
|
+
checked={isRiskChecked}
|
|
124
|
+
onChange={() => setIsRiskChecked(!isRiskChecked)}
|
|
125
|
+
crossOrigin={undefined}
|
|
126
|
+
/>
|
|
127
|
+
<Typography className="text-xs md:text-sm text-black-500 font-medium">
|
|
128
|
+
{scopeT("acceptCheckboxRickDisclosure")}
|
|
129
|
+
<Typography
|
|
130
|
+
as="a"
|
|
131
|
+
href={ROUTES.dashboard.riskDisclosure}
|
|
132
|
+
target="_blank"
|
|
133
|
+
className="inline underline text-xs md:text-sm font-medium transition-colors text-purple-500 hover:text-purple-400 hover:underline"
|
|
134
|
+
>
|
|
135
|
+
{scopeT("riskDisclosure")}
|
|
136
|
+
</Typography>
|
|
137
|
+
.
|
|
138
|
+
</Typography>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<div className="flex items-center">
|
|
142
|
+
<Checkbox
|
|
143
|
+
color="green"
|
|
144
|
+
checked={isPrivacyChecked}
|
|
145
|
+
onChange={() => setIsPrivacyChecked(!isPrivacyChecked)}
|
|
146
|
+
crossOrigin={undefined}
|
|
147
|
+
/>
|
|
148
|
+
<Typography className="text-xs md:text-sm text-black-500 font-medium">
|
|
149
|
+
{scopeT("acceptCheckboxTerms")}
|
|
150
|
+
<Typography
|
|
151
|
+
as="a"
|
|
152
|
+
href={ROUTES.dashboard.privacyPolicy}
|
|
153
|
+
target="_blank"
|
|
154
|
+
className="inline underline text-xs md:text-sm font-medium transition-colors text-purple-500 hover:text-purple-400 hover:underline"
|
|
155
|
+
>
|
|
156
|
+
{scopeT("privacyP")}
|
|
157
|
+
</Typography>
|
|
158
|
+
.
|
|
159
|
+
</Typography>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div className="flex items-center">
|
|
163
|
+
<Checkbox
|
|
164
|
+
color="green"
|
|
165
|
+
checked={legalDocs}
|
|
166
|
+
onChange={() => setLegalDocs(!legalDocs)}
|
|
167
|
+
crossOrigin={undefined}
|
|
168
|
+
/>
|
|
169
|
+
<Typography className="text-xs md:text-sm text-black-500 font-medium">
|
|
170
|
+
{scopeT("legalTermsAccept")}
|
|
171
|
+
<Typography
|
|
172
|
+
as="a"
|
|
173
|
+
href="https://docs.horystech.com/legal-documents/terms-and-conditions"
|
|
174
|
+
target="_blank"
|
|
175
|
+
className="inline underline text-xs md:text-sm font-medium transition-colors text-purple-500 hover:text-purple-400 hover:underline"
|
|
176
|
+
>
|
|
177
|
+
{scopeT("termsAndC")}
|
|
178
|
+
</Typography>
|
|
179
|
+
{scopeT("legalOtherTermsAccept")}
|
|
180
|
+
<Typography
|
|
181
|
+
as="a"
|
|
182
|
+
href="https://docs.horystech.com/"
|
|
183
|
+
target="_blank"
|
|
184
|
+
className="inline underline text-xs md:text-sm font-medium transition-colors text-purple-500 hover:text-purple-400 hover:underline"
|
|
185
|
+
>
|
|
186
|
+
{scopeT("here")}
|
|
187
|
+
</Typography>
|
|
188
|
+
.
|
|
189
|
+
</Typography>
|
|
190
|
+
</div>
|
|
191
|
+
</DialogBody>
|
|
192
|
+
<DialogFooter className="flex justify-center items-center">
|
|
193
|
+
<ButtonCustom
|
|
194
|
+
icon={undefined}
|
|
195
|
+
disabled={actionLoading || !allChecked}
|
|
196
|
+
onClick={onConfirm}
|
|
197
|
+
loading={actionLoading}
|
|
198
|
+
>
|
|
199
|
+
{scopeT("confirmBtn")}
|
|
200
|
+
</ButtonCustom>
|
|
201
|
+
</DialogFooter>
|
|
202
|
+
</Dialog>
|
|
203
|
+
</>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _useScopedI18n } from "@hms/packages/shared/i18n/client";
|
|
2
|
+
import { Typography } from "@material-tailwind/react";
|
|
3
|
+
|
|
4
|
+
export default function EmptyAssets() {
|
|
5
|
+
const scopeT = _useScopedI18n("sharedComponents.emptyAssets");
|
|
6
|
+
|
|
7
|
+
return (
|
|
8
|
+
<div className="flex items-center justify-center flex-col w-full h-full">
|
|
9
|
+
<Typography
|
|
10
|
+
variant="h6"
|
|
11
|
+
className="text-center md:text-lg font-semibold text-black-500 mb-2"
|
|
12
|
+
>
|
|
13
|
+
{scopeT("title")}
|
|
14
|
+
</Typography>
|
|
15
|
+
<Typography
|
|
16
|
+
variant="h6"
|
|
17
|
+
className="text-center font-medium text-slate-400"
|
|
18
|
+
>
|
|
19
|
+
{scopeT("message")}
|
|
20
|
+
</Typography>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import CustomNextImage from "@hms/packages/shared/components/CustomNextImage";
|
|
2
|
+
import { _useScopedI18n } from "@hms/packages/shared/i18n/client";
|
|
3
|
+
import {
|
|
4
|
+
Asset,
|
|
5
|
+
Option,
|
|
6
|
+
PaymentsMethod,
|
|
7
|
+
} from "@hms/packages/shared/types/payments";
|
|
8
|
+
import { displayExactWalletBalance } from "@hms/packages/shared/utils/app.util";
|
|
9
|
+
import { Tooltip, Typography } from "@material-tailwind/react";
|
|
10
|
+
|
|
11
|
+
import walletIcon from "../../../public/img/wallet-icon.png";
|
|
12
|
+
|
|
13
|
+
export type PaybyWalletItemComponentProps = {
|
|
14
|
+
paymentMethodData: PaymentsMethod;
|
|
15
|
+
item: Option;
|
|
16
|
+
asset: Asset;
|
|
17
|
+
selectedOption: Option;
|
|
18
|
+
grandTotal: number;
|
|
19
|
+
handleItemClick: () => void;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default function PaybyWalletItemComponent({
|
|
23
|
+
paymentMethodData,
|
|
24
|
+
item,
|
|
25
|
+
asset,
|
|
26
|
+
selectedOption,
|
|
27
|
+
grandTotal,
|
|
28
|
+
handleItemClick,
|
|
29
|
+
}: PaybyWalletItemComponentProps) {
|
|
30
|
+
//
|
|
31
|
+
const scopeT = _useScopedI18n("payment.paybyWalletItemComponent");
|
|
32
|
+
|
|
33
|
+
let isEligible = false;
|
|
34
|
+
let msg = item.restricted.msg;
|
|
35
|
+
const minBalance = asset.isVariable ? 0 : grandTotal;
|
|
36
|
+
|
|
37
|
+
if (item.balance > minBalance && item.restricted.status === false) {
|
|
38
|
+
isEligible = true;
|
|
39
|
+
} else {
|
|
40
|
+
if (!item.restricted.status) {
|
|
41
|
+
msg = scopeT("insufficientBalanceMsg");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<>
|
|
47
|
+
<Tooltip
|
|
48
|
+
placement="top"
|
|
49
|
+
content={`${msg}`}
|
|
50
|
+
animate={{
|
|
51
|
+
mount: { scale: 1, y: 0 },
|
|
52
|
+
unmount: { scale: 0, y: 25 },
|
|
53
|
+
}}
|
|
54
|
+
className={`bg-red-600 ${isEligible ? "hidden" : ""}`}
|
|
55
|
+
interactive={!isEligible}
|
|
56
|
+
>
|
|
57
|
+
<li
|
|
58
|
+
className={`border grow ${
|
|
59
|
+
selectedOption?.id === item.id && isEligible
|
|
60
|
+
? "border-purple-500 bg-purple-50" // Selected border color
|
|
61
|
+
: "border-slate-100 bg-gray-50/30" // Default border color
|
|
62
|
+
} ${!isEligible ? "cursor-not-allowed opacity-80" : "cursor-pointer"} rounded-xl p-4 text-center `}
|
|
63
|
+
onClick={() => {
|
|
64
|
+
if (isEligible) handleItemClick();
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
67
|
+
<div className="text-right mb-2">
|
|
68
|
+
<Typography
|
|
69
|
+
variant="lead"
|
|
70
|
+
className="text-xs font-medium text-yellow-700"
|
|
71
|
+
>
|
|
72
|
+
{asset.isVariable
|
|
73
|
+
? "Variable pay"
|
|
74
|
+
: `Uses ${item.minPercentage}%`}
|
|
75
|
+
</Typography>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<CustomNextImage
|
|
79
|
+
src={walletIcon.src}
|
|
80
|
+
alt="walletIcon"
|
|
81
|
+
className={`mx-auto my-2 ${isEligible ? "" : "grayscale"}`}
|
|
82
|
+
height={80}
|
|
83
|
+
width={80}
|
|
84
|
+
/>
|
|
85
|
+
|
|
86
|
+
<Typography
|
|
87
|
+
variant="lead"
|
|
88
|
+
className="text-sm font-semibold text-black-500 mb-1"
|
|
89
|
+
>
|
|
90
|
+
{asset.isVariable
|
|
91
|
+
? `${`${asset.name} + ${item.name}`}`
|
|
92
|
+
: `${item.name}`}
|
|
93
|
+
</Typography>
|
|
94
|
+
|
|
95
|
+
{paymentMethodData.paymentFees.map((fee, feeIndex) => (
|
|
96
|
+
<Typography
|
|
97
|
+
key={feeIndex}
|
|
98
|
+
variant="lead"
|
|
99
|
+
className="text-xs font-normal text-slate-500 mb-2"
|
|
100
|
+
>
|
|
101
|
+
{fee.name}
|
|
102
|
+
</Typography>
|
|
103
|
+
))}
|
|
104
|
+
|
|
105
|
+
<Typography
|
|
106
|
+
variant="lead"
|
|
107
|
+
className="text-xs font-semibold text-gray-300"
|
|
108
|
+
>
|
|
109
|
+
{scopeT("avlBalance")}:{" "}
|
|
110
|
+
{displayExactWalletBalance(`${item.balance}`)} {item.name}
|
|
111
|
+
</Typography>
|
|
112
|
+
</li>
|
|
113
|
+
</Tooltip>
|
|
114
|
+
</>
|
|
115
|
+
);
|
|
116
|
+
}
|