hey-pharmacist-ecommerce 1.1.32 → 1.1.33
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/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +345 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +345 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -12921,6 +12921,13 @@ declare function OrderReviewsScreen(): react_jsx_runtime.JSX.Element;
|
|
|
12921
12921
|
|
|
12922
12922
|
declare function NotificationSettingsScreen(): react_jsx_runtime.JSX.Element;
|
|
12923
12923
|
|
|
12924
|
+
interface OrderDetailScreenProps {
|
|
12925
|
+
id: string;
|
|
12926
|
+
}
|
|
12927
|
+
declare function OrderDetailScreen({ id }: OrderDetailScreenProps): react_jsx_runtime.JSX.Element;
|
|
12928
|
+
|
|
12929
|
+
declare function ChangePasswordScreen(): react_jsx_runtime.JSX.Element | null;
|
|
12930
|
+
|
|
12924
12931
|
declare function Header(): react_jsx_runtime.JSX.Element;
|
|
12925
12932
|
|
|
12926
12933
|
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
@@ -13234,4 +13241,4 @@ declare function generateColorShades(baseColor: string): {
|
|
|
13234
13241
|
950: string;
|
|
13235
13242
|
};
|
|
13236
13243
|
|
|
13237
|
-
export { AccountReviewsTab, type AddContactToListDTO, type Address, AddressAddressTypeEnum, type AddressCreatedRequest, AddressCreatedRequestAddressTypeEnum, AddressesScreen, type AllowUserCreditDto, type ApiKeyInfoDto, ApiKeyInfoDtoKeyTypeEnum, type Appointment, AuthProvider, type AvailableDatesDto, type AvailableSuggestedDatesDto, Badge, type Blog, type BrowserStatsResponseDTO, type BulkChannelToggleDto, BulkChannelToggleDtoCategoryEnum, type BulkMoveSubcategoriesDto, type BulkUnassignSubcategoriesDto, Button, type CampaignContentResponseDTO, type CampaignDraftDto, CampaignDraftDtoStatusEnum, type CampaignDraftResponseDTO, type CampaignDraftScheduleDto, CampaignDraftScheduleDtoStatusEnum, type CampaignDraftScheduleResponseDTO, type CampaignDraftSendingDto, CampaignDraftSendingDtoStatusEnum, type CampaignDraftSendingResponseDTO, type CartBodyDTO, type CartBodyPopulated, CartItem, type CartItemPopulated, CartProvider, type CartResponseDto, CartScreen, type CategoriesPaginatedResponseDTO, type Category, type CategoryFilters, type CategoryPopulated, type CategorySubCategoryPopulated, type CategorysHeadlinesResponseDTO, type ChangePasswordDto, type ChangeUserEmailDto, type ChannelSettingsDto, CheckoutScreen, type CompletedOrderDto, type ContactAggregatedStatsResponseDTO, type ContactFullDTO, type ContactFullResponseDTO, type ContactListStatsResponseDTO, type ContactListsResponseDTO, type ContactUs, type CountryStatsResponseDTO, type CreateAddressDto, CreateAddressDtoAddressTypeEnum, type CreateBlogDto, type CreateCategoryDto, type CreateContactDTO, type CreateContactListDTO, type CreateDiscountDto, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, type CreateEmailTemplateDTO, type CreateEventDto, type CreateMarketingCampaignDTO, type CreateMessageDto, type CreateProductDto, type CreateReviewDto, type CreateShippoAccountDto, type CreateStoreAddressDto, CreateStoreAddressDtoAddressTypeEnum, type CreateStoreDto, type CreateStoreDtoSettings, type CreateSubCategoryDto, type CreateUserDto, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, type CreateUserGroupDto, type CreateVariantDto, CurrentOrdersScreen, type CustomProductDto, type DeleteFileDto, type DeleteManyFilesDto, type Discount, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, type DiscountsInsightsDto, type EcommerceConfig, EcommerceProvider, EditProfileScreen, type EmailInvoiceDto, type EmailTemplateResponseDTO, EmptyState, type Event, type FileproccesorUploadBody, Footer, type ForgetPassword, ForgotPasswordScreen, type GeneralStatsResponseDTO, type GenerateDaySlotsDto, type GenerateMonthSlotsDto, type GenerateWeekSlotsDto, type GroupWithNoUsersDto, type GroupWithUsersDto, Header, type ImagesUploadBody, Input, type LinkStatsResponseDTO, type LoginDto, LoginScreen, type ManualDiscountDto, ManualDiscountDtoValueTypeEnum, type ManualOrderDTO, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, type ManualShippingDto, type MarketingCampaignContentDTO, type MarketingListContactDTO, Modal, type MoveSubcategoryDto, NewAddressPage as NewAddressScreen, type NewClientEmailDto, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, type ObjectId, type Order, OrderCard, OrderCardSkeleton, OrderOrderTypeEnum, type OrderPaginatedResponse, OrderReviewsScreen, OrderStatus, type OrderTimeLineDTO, OrderTimeLineDTOTypeEnum, OrderTypeEnum, type OrdersInsightsDto, OrdersScreen, type PaginatedProductsDto, type Payment, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, type PaymentTimeLineDTO, PaymentTimeLineDTOTitleEnum, type PaymentsInsightsDto, type PaymentsPaginatedResponse, type PopulatedDiscount, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, type PopulatedOrder, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, type PreferedPickOrDeliveryTimeDto, type PreferenceUpdateItem, PreferenceUpdateItemTypeEnum, type PriceRange, type Product, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, type ProductLightDto, ProductReviewsSection, type ProductSummary, type ProductVariant, ProductVariantInventoryStatusEnum, type ProductsInsightsDto, AccountPage as ProfileScreen, type RateDto, RatingDistribution, type RefillRequest, type RefillRequestDto, type RegisterOrLoginWithGmail, RegisterScreen, type ReorderCategoriesDto, type ReorderProductsDto, ReorderProductsDtoContainerTypeEnum, type ReorderProductsSuccessResponseDto, type ReorderSubcategoriesDto, type ReorderSuccessResponseDto, type ReserveAppointment, ResetPasswordScreen, type Review, ReviewCard, ReviewForm, ReviewPromptBanner, type ReviewStatusDto, type ReviewableOrderDto, type ReviewableProductDto, ReviewsList, type ScheduleCampaignDraftDTO, type ScheduleTourEmailDto, SearchPage as SearchResultsScreen, type SendTestEmailDTO, type Shipment, type ShipmentDetailsDto, ShipmentDetailsDtoStatusEnum, type ShipmentStatusDto, type ShipmentWithOrder, type ShippingInfo, ShippingInfoStatusEnum, type ShippoAccountResponseDto, ShopScreen, type SingleBrowserStatsDto, type SingleContactAggregatedStatsDto, type SingleContactListStatsDto, type SingleCountryStatsDto, type SingleGeneralStats, type SingleLinkStatsDto, type SingleProductMedia, SingleProductMediaTypeEnum, type SingleRecipientDTO, Skeleton, StarRating, type Store, type StoreApiKeysResponseDto, type StoreCapabilitiesDto, type StoreEntity, type SubCategory, type SubCategoryHeadlinesOnlyResponseDTO, type SuggestedSlot, type TAdminSessionData, type TUserSessionData, ThemeProvider, type TrackDto, type TrackingStatus, type TrackingStatusLocationBase, type TrackingStatusSubstatus, type TransferePatientRequest, type TransferePatientsRequestDto, type UpdateAddressDto, UpdateAddressDtoAddressTypeEnum, type UpdateApiKeysDto, type UpdateBlogDto, type UpdateCampaignDraftContentDto, type UpdateCategoryDto, type UpdateDiscountDto, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, type UpdateEventDto, type UpdateItemsOrderDto, type UpdateManualShipmentStatusDto, UpdateManualShipmentStatusDtoStatusEnum, type UpdateMarketingCampDraftDto, type UpdateMessageDto, type UpdateNotificationSettingsDto, type UpdateProductDto, type UpdateRefillRequestDto, type UpdateReviewDto, type UpdateStoreDto, type UpdateSubCategoryDto, type UpdateTransferePatientsRequestDto, type UpdateUserDto, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, type UpdateUserGroupDto, type UpdateVariantDto, type UploadPdfBody, type UsedBy, type UserEntity, UserEntityCustomerTypeEnum, UserEntityRoleEnum, type UserGroup, type UserInsightsDto, type UserWithNoId, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, type UsersPaginatedResponse, type VariantIdInventoryBody, type VariantLightDto, type VerifyEmailDTO, type Wishlist, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|
|
13244
|
+
export { AccountReviewsTab, type AddContactToListDTO, type Address, AddressAddressTypeEnum, type AddressCreatedRequest, AddressCreatedRequestAddressTypeEnum, AddressesScreen, type AllowUserCreditDto, type ApiKeyInfoDto, ApiKeyInfoDtoKeyTypeEnum, type Appointment, AuthProvider, type AvailableDatesDto, type AvailableSuggestedDatesDto, Badge, type Blog, type BrowserStatsResponseDTO, type BulkChannelToggleDto, BulkChannelToggleDtoCategoryEnum, type BulkMoveSubcategoriesDto, type BulkUnassignSubcategoriesDto, Button, type CampaignContentResponseDTO, type CampaignDraftDto, CampaignDraftDtoStatusEnum, type CampaignDraftResponseDTO, type CampaignDraftScheduleDto, CampaignDraftScheduleDtoStatusEnum, type CampaignDraftScheduleResponseDTO, type CampaignDraftSendingDto, CampaignDraftSendingDtoStatusEnum, type CampaignDraftSendingResponseDTO, type CartBodyDTO, type CartBodyPopulated, CartItem, type CartItemPopulated, CartProvider, type CartResponseDto, CartScreen, type CategoriesPaginatedResponseDTO, type Category, type CategoryFilters, type CategoryPopulated, type CategorySubCategoryPopulated, type CategorysHeadlinesResponseDTO, type ChangePasswordDto, ChangePasswordScreen, type ChangeUserEmailDto, type ChannelSettingsDto, CheckoutScreen, type CompletedOrderDto, type ContactAggregatedStatsResponseDTO, type ContactFullDTO, type ContactFullResponseDTO, type ContactListStatsResponseDTO, type ContactListsResponseDTO, type ContactUs, type CountryStatsResponseDTO, type CreateAddressDto, CreateAddressDtoAddressTypeEnum, type CreateBlogDto, type CreateCategoryDto, type CreateContactDTO, type CreateContactListDTO, type CreateDiscountDto, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, type CreateEmailTemplateDTO, type CreateEventDto, type CreateMarketingCampaignDTO, type CreateMessageDto, type CreateProductDto, type CreateReviewDto, type CreateShippoAccountDto, type CreateStoreAddressDto, CreateStoreAddressDtoAddressTypeEnum, type CreateStoreDto, type CreateStoreDtoSettings, type CreateSubCategoryDto, type CreateUserDto, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, type CreateUserGroupDto, type CreateVariantDto, CurrentOrdersScreen, type CustomProductDto, type DeleteFileDto, type DeleteManyFilesDto, type Discount, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, type DiscountsInsightsDto, type EcommerceConfig, EcommerceProvider, EditProfileScreen, type EmailInvoiceDto, type EmailTemplateResponseDTO, EmptyState, type Event, type FileproccesorUploadBody, Footer, type ForgetPassword, ForgotPasswordScreen, type GeneralStatsResponseDTO, type GenerateDaySlotsDto, type GenerateMonthSlotsDto, type GenerateWeekSlotsDto, type GroupWithNoUsersDto, type GroupWithUsersDto, Header, type ImagesUploadBody, Input, type LinkStatsResponseDTO, type LoginDto, LoginScreen, type ManualDiscountDto, ManualDiscountDtoValueTypeEnum, type ManualOrderDTO, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, type ManualShippingDto, type MarketingCampaignContentDTO, type MarketingListContactDTO, Modal, type MoveSubcategoryDto, NewAddressPage as NewAddressScreen, type NewClientEmailDto, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, type ObjectId, type Order, OrderCard, OrderCardSkeleton, OrderDetailScreen, OrderOrderTypeEnum, type OrderPaginatedResponse, OrderReviewsScreen, OrderStatus, type OrderTimeLineDTO, OrderTimeLineDTOTypeEnum, OrderTypeEnum, type OrdersInsightsDto, OrdersScreen, type PaginatedProductsDto, type Payment, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, type PaymentTimeLineDTO, PaymentTimeLineDTOTitleEnum, type PaymentsInsightsDto, type PaymentsPaginatedResponse, type PopulatedDiscount, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, type PopulatedOrder, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, type PreferedPickOrDeliveryTimeDto, type PreferenceUpdateItem, PreferenceUpdateItemTypeEnum, type PriceRange, type Product, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, type ProductLightDto, ProductReviewsSection, type ProductSummary, type ProductVariant, ProductVariantInventoryStatusEnum, type ProductsInsightsDto, AccountPage as ProfileScreen, type RateDto, RatingDistribution, type RefillRequest, type RefillRequestDto, type RegisterOrLoginWithGmail, RegisterScreen, type ReorderCategoriesDto, type ReorderProductsDto, ReorderProductsDtoContainerTypeEnum, type ReorderProductsSuccessResponseDto, type ReorderSubcategoriesDto, type ReorderSuccessResponseDto, type ReserveAppointment, ResetPasswordScreen, type Review, ReviewCard, ReviewForm, ReviewPromptBanner, type ReviewStatusDto, type ReviewableOrderDto, type ReviewableProductDto, ReviewsList, type ScheduleCampaignDraftDTO, type ScheduleTourEmailDto, SearchPage as SearchResultsScreen, type SendTestEmailDTO, type Shipment, type ShipmentDetailsDto, ShipmentDetailsDtoStatusEnum, type ShipmentStatusDto, type ShipmentWithOrder, type ShippingInfo, ShippingInfoStatusEnum, type ShippoAccountResponseDto, ShopScreen, type SingleBrowserStatsDto, type SingleContactAggregatedStatsDto, type SingleContactListStatsDto, type SingleCountryStatsDto, type SingleGeneralStats, type SingleLinkStatsDto, type SingleProductMedia, SingleProductMediaTypeEnum, type SingleRecipientDTO, Skeleton, StarRating, type Store, type StoreApiKeysResponseDto, type StoreCapabilitiesDto, type StoreEntity, type SubCategory, type SubCategoryHeadlinesOnlyResponseDTO, type SuggestedSlot, type TAdminSessionData, type TUserSessionData, ThemeProvider, type TrackDto, type TrackingStatus, type TrackingStatusLocationBase, type TrackingStatusSubstatus, type TransferePatientRequest, type TransferePatientsRequestDto, type UpdateAddressDto, UpdateAddressDtoAddressTypeEnum, type UpdateApiKeysDto, type UpdateBlogDto, type UpdateCampaignDraftContentDto, type UpdateCategoryDto, type UpdateDiscountDto, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, type UpdateEventDto, type UpdateItemsOrderDto, type UpdateManualShipmentStatusDto, UpdateManualShipmentStatusDtoStatusEnum, type UpdateMarketingCampDraftDto, type UpdateMessageDto, type UpdateNotificationSettingsDto, type UpdateProductDto, type UpdateRefillRequestDto, type UpdateReviewDto, type UpdateStoreDto, type UpdateSubCategoryDto, type UpdateTransferePatientsRequestDto, type UpdateUserDto, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, type UpdateUserGroupDto, type UpdateVariantDto, type UploadPdfBody, type UsedBy, type UserEntity, UserEntityCustomerTypeEnum, UserEntityRoleEnum, type UserGroup, type UserInsightsDto, type UserWithNoId, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, type UsersPaginatedResponse, type VariantIdInventoryBody, type VariantLightDto, type VerifyEmailDTO, type Wishlist, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|
package/dist/index.d.ts
CHANGED
|
@@ -12921,6 +12921,13 @@ declare function OrderReviewsScreen(): react_jsx_runtime.JSX.Element;
|
|
|
12921
12921
|
|
|
12922
12922
|
declare function NotificationSettingsScreen(): react_jsx_runtime.JSX.Element;
|
|
12923
12923
|
|
|
12924
|
+
interface OrderDetailScreenProps {
|
|
12925
|
+
id: string;
|
|
12926
|
+
}
|
|
12927
|
+
declare function OrderDetailScreen({ id }: OrderDetailScreenProps): react_jsx_runtime.JSX.Element;
|
|
12928
|
+
|
|
12929
|
+
declare function ChangePasswordScreen(): react_jsx_runtime.JSX.Element | null;
|
|
12930
|
+
|
|
12924
12931
|
declare function Header(): react_jsx_runtime.JSX.Element;
|
|
12925
12932
|
|
|
12926
12933
|
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
@@ -13234,4 +13241,4 @@ declare function generateColorShades(baseColor: string): {
|
|
|
13234
13241
|
950: string;
|
|
13235
13242
|
};
|
|
13236
13243
|
|
|
13237
|
-
export { AccountReviewsTab, type AddContactToListDTO, type Address, AddressAddressTypeEnum, type AddressCreatedRequest, AddressCreatedRequestAddressTypeEnum, AddressesScreen, type AllowUserCreditDto, type ApiKeyInfoDto, ApiKeyInfoDtoKeyTypeEnum, type Appointment, AuthProvider, type AvailableDatesDto, type AvailableSuggestedDatesDto, Badge, type Blog, type BrowserStatsResponseDTO, type BulkChannelToggleDto, BulkChannelToggleDtoCategoryEnum, type BulkMoveSubcategoriesDto, type BulkUnassignSubcategoriesDto, Button, type CampaignContentResponseDTO, type CampaignDraftDto, CampaignDraftDtoStatusEnum, type CampaignDraftResponseDTO, type CampaignDraftScheduleDto, CampaignDraftScheduleDtoStatusEnum, type CampaignDraftScheduleResponseDTO, type CampaignDraftSendingDto, CampaignDraftSendingDtoStatusEnum, type CampaignDraftSendingResponseDTO, type CartBodyDTO, type CartBodyPopulated, CartItem, type CartItemPopulated, CartProvider, type CartResponseDto, CartScreen, type CategoriesPaginatedResponseDTO, type Category, type CategoryFilters, type CategoryPopulated, type CategorySubCategoryPopulated, type CategorysHeadlinesResponseDTO, type ChangePasswordDto, type ChangeUserEmailDto, type ChannelSettingsDto, CheckoutScreen, type CompletedOrderDto, type ContactAggregatedStatsResponseDTO, type ContactFullDTO, type ContactFullResponseDTO, type ContactListStatsResponseDTO, type ContactListsResponseDTO, type ContactUs, type CountryStatsResponseDTO, type CreateAddressDto, CreateAddressDtoAddressTypeEnum, type CreateBlogDto, type CreateCategoryDto, type CreateContactDTO, type CreateContactListDTO, type CreateDiscountDto, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, type CreateEmailTemplateDTO, type CreateEventDto, type CreateMarketingCampaignDTO, type CreateMessageDto, type CreateProductDto, type CreateReviewDto, type CreateShippoAccountDto, type CreateStoreAddressDto, CreateStoreAddressDtoAddressTypeEnum, type CreateStoreDto, type CreateStoreDtoSettings, type CreateSubCategoryDto, type CreateUserDto, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, type CreateUserGroupDto, type CreateVariantDto, CurrentOrdersScreen, type CustomProductDto, type DeleteFileDto, type DeleteManyFilesDto, type Discount, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, type DiscountsInsightsDto, type EcommerceConfig, EcommerceProvider, EditProfileScreen, type EmailInvoiceDto, type EmailTemplateResponseDTO, EmptyState, type Event, type FileproccesorUploadBody, Footer, type ForgetPassword, ForgotPasswordScreen, type GeneralStatsResponseDTO, type GenerateDaySlotsDto, type GenerateMonthSlotsDto, type GenerateWeekSlotsDto, type GroupWithNoUsersDto, type GroupWithUsersDto, Header, type ImagesUploadBody, Input, type LinkStatsResponseDTO, type LoginDto, LoginScreen, type ManualDiscountDto, ManualDiscountDtoValueTypeEnum, type ManualOrderDTO, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, type ManualShippingDto, type MarketingCampaignContentDTO, type MarketingListContactDTO, Modal, type MoveSubcategoryDto, NewAddressPage as NewAddressScreen, type NewClientEmailDto, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, type ObjectId, type Order, OrderCard, OrderCardSkeleton, OrderOrderTypeEnum, type OrderPaginatedResponse, OrderReviewsScreen, OrderStatus, type OrderTimeLineDTO, OrderTimeLineDTOTypeEnum, OrderTypeEnum, type OrdersInsightsDto, OrdersScreen, type PaginatedProductsDto, type Payment, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, type PaymentTimeLineDTO, PaymentTimeLineDTOTitleEnum, type PaymentsInsightsDto, type PaymentsPaginatedResponse, type PopulatedDiscount, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, type PopulatedOrder, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, type PreferedPickOrDeliveryTimeDto, type PreferenceUpdateItem, PreferenceUpdateItemTypeEnum, type PriceRange, type Product, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, type ProductLightDto, ProductReviewsSection, type ProductSummary, type ProductVariant, ProductVariantInventoryStatusEnum, type ProductsInsightsDto, AccountPage as ProfileScreen, type RateDto, RatingDistribution, type RefillRequest, type RefillRequestDto, type RegisterOrLoginWithGmail, RegisterScreen, type ReorderCategoriesDto, type ReorderProductsDto, ReorderProductsDtoContainerTypeEnum, type ReorderProductsSuccessResponseDto, type ReorderSubcategoriesDto, type ReorderSuccessResponseDto, type ReserveAppointment, ResetPasswordScreen, type Review, ReviewCard, ReviewForm, ReviewPromptBanner, type ReviewStatusDto, type ReviewableOrderDto, type ReviewableProductDto, ReviewsList, type ScheduleCampaignDraftDTO, type ScheduleTourEmailDto, SearchPage as SearchResultsScreen, type SendTestEmailDTO, type Shipment, type ShipmentDetailsDto, ShipmentDetailsDtoStatusEnum, type ShipmentStatusDto, type ShipmentWithOrder, type ShippingInfo, ShippingInfoStatusEnum, type ShippoAccountResponseDto, ShopScreen, type SingleBrowserStatsDto, type SingleContactAggregatedStatsDto, type SingleContactListStatsDto, type SingleCountryStatsDto, type SingleGeneralStats, type SingleLinkStatsDto, type SingleProductMedia, SingleProductMediaTypeEnum, type SingleRecipientDTO, Skeleton, StarRating, type Store, type StoreApiKeysResponseDto, type StoreCapabilitiesDto, type StoreEntity, type SubCategory, type SubCategoryHeadlinesOnlyResponseDTO, type SuggestedSlot, type TAdminSessionData, type TUserSessionData, ThemeProvider, type TrackDto, type TrackingStatus, type TrackingStatusLocationBase, type TrackingStatusSubstatus, type TransferePatientRequest, type TransferePatientsRequestDto, type UpdateAddressDto, UpdateAddressDtoAddressTypeEnum, type UpdateApiKeysDto, type UpdateBlogDto, type UpdateCampaignDraftContentDto, type UpdateCategoryDto, type UpdateDiscountDto, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, type UpdateEventDto, type UpdateItemsOrderDto, type UpdateManualShipmentStatusDto, UpdateManualShipmentStatusDtoStatusEnum, type UpdateMarketingCampDraftDto, type UpdateMessageDto, type UpdateNotificationSettingsDto, type UpdateProductDto, type UpdateRefillRequestDto, type UpdateReviewDto, type UpdateStoreDto, type UpdateSubCategoryDto, type UpdateTransferePatientsRequestDto, type UpdateUserDto, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, type UpdateUserGroupDto, type UpdateVariantDto, type UploadPdfBody, type UsedBy, type UserEntity, UserEntityCustomerTypeEnum, UserEntityRoleEnum, type UserGroup, type UserInsightsDto, type UserWithNoId, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, type UsersPaginatedResponse, type VariantIdInventoryBody, type VariantLightDto, type VerifyEmailDTO, type Wishlist, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|
|
13244
|
+
export { AccountReviewsTab, type AddContactToListDTO, type Address, AddressAddressTypeEnum, type AddressCreatedRequest, AddressCreatedRequestAddressTypeEnum, AddressesScreen, type AllowUserCreditDto, type ApiKeyInfoDto, ApiKeyInfoDtoKeyTypeEnum, type Appointment, AuthProvider, type AvailableDatesDto, type AvailableSuggestedDatesDto, Badge, type Blog, type BrowserStatsResponseDTO, type BulkChannelToggleDto, BulkChannelToggleDtoCategoryEnum, type BulkMoveSubcategoriesDto, type BulkUnassignSubcategoriesDto, Button, type CampaignContentResponseDTO, type CampaignDraftDto, CampaignDraftDtoStatusEnum, type CampaignDraftResponseDTO, type CampaignDraftScheduleDto, CampaignDraftScheduleDtoStatusEnum, type CampaignDraftScheduleResponseDTO, type CampaignDraftSendingDto, CampaignDraftSendingDtoStatusEnum, type CampaignDraftSendingResponseDTO, type CartBodyDTO, type CartBodyPopulated, CartItem, type CartItemPopulated, CartProvider, type CartResponseDto, CartScreen, type CategoriesPaginatedResponseDTO, type Category, type CategoryFilters, type CategoryPopulated, type CategorySubCategoryPopulated, type CategorysHeadlinesResponseDTO, type ChangePasswordDto, ChangePasswordScreen, type ChangeUserEmailDto, type ChannelSettingsDto, CheckoutScreen, type CompletedOrderDto, type ContactAggregatedStatsResponseDTO, type ContactFullDTO, type ContactFullResponseDTO, type ContactListStatsResponseDTO, type ContactListsResponseDTO, type ContactUs, type CountryStatsResponseDTO, type CreateAddressDto, CreateAddressDtoAddressTypeEnum, type CreateBlogDto, type CreateCategoryDto, type CreateContactDTO, type CreateContactListDTO, type CreateDiscountDto, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, type CreateEmailTemplateDTO, type CreateEventDto, type CreateMarketingCampaignDTO, type CreateMessageDto, type CreateProductDto, type CreateReviewDto, type CreateShippoAccountDto, type CreateStoreAddressDto, CreateStoreAddressDtoAddressTypeEnum, type CreateStoreDto, type CreateStoreDtoSettings, type CreateSubCategoryDto, type CreateUserDto, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, type CreateUserGroupDto, type CreateVariantDto, CurrentOrdersScreen, type CustomProductDto, type DeleteFileDto, type DeleteManyFilesDto, type Discount, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, type DiscountsInsightsDto, type EcommerceConfig, EcommerceProvider, EditProfileScreen, type EmailInvoiceDto, type EmailTemplateResponseDTO, EmptyState, type Event, type FileproccesorUploadBody, Footer, type ForgetPassword, ForgotPasswordScreen, type GeneralStatsResponseDTO, type GenerateDaySlotsDto, type GenerateMonthSlotsDto, type GenerateWeekSlotsDto, type GroupWithNoUsersDto, type GroupWithUsersDto, Header, type ImagesUploadBody, Input, type LinkStatsResponseDTO, type LoginDto, LoginScreen, type ManualDiscountDto, ManualDiscountDtoValueTypeEnum, type ManualOrderDTO, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, type ManualShippingDto, type MarketingCampaignContentDTO, type MarketingListContactDTO, Modal, type MoveSubcategoryDto, NewAddressPage as NewAddressScreen, type NewClientEmailDto, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, type ObjectId, type Order, OrderCard, OrderCardSkeleton, OrderDetailScreen, OrderOrderTypeEnum, type OrderPaginatedResponse, OrderReviewsScreen, OrderStatus, type OrderTimeLineDTO, OrderTimeLineDTOTypeEnum, OrderTypeEnum, type OrdersInsightsDto, OrdersScreen, type PaginatedProductsDto, type Payment, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, type PaymentTimeLineDTO, PaymentTimeLineDTOTitleEnum, type PaymentsInsightsDto, type PaymentsPaginatedResponse, type PopulatedDiscount, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, type PopulatedOrder, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, type PreferedPickOrDeliveryTimeDto, type PreferenceUpdateItem, PreferenceUpdateItemTypeEnum, type PriceRange, type Product, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, type ProductLightDto, ProductReviewsSection, type ProductSummary, type ProductVariant, ProductVariantInventoryStatusEnum, type ProductsInsightsDto, AccountPage as ProfileScreen, type RateDto, RatingDistribution, type RefillRequest, type RefillRequestDto, type RegisterOrLoginWithGmail, RegisterScreen, type ReorderCategoriesDto, type ReorderProductsDto, ReorderProductsDtoContainerTypeEnum, type ReorderProductsSuccessResponseDto, type ReorderSubcategoriesDto, type ReorderSuccessResponseDto, type ReserveAppointment, ResetPasswordScreen, type Review, ReviewCard, ReviewForm, ReviewPromptBanner, type ReviewStatusDto, type ReviewableOrderDto, type ReviewableProductDto, ReviewsList, type ScheduleCampaignDraftDTO, type ScheduleTourEmailDto, SearchPage as SearchResultsScreen, type SendTestEmailDTO, type Shipment, type ShipmentDetailsDto, ShipmentDetailsDtoStatusEnum, type ShipmentStatusDto, type ShipmentWithOrder, type ShippingInfo, ShippingInfoStatusEnum, type ShippoAccountResponseDto, ShopScreen, type SingleBrowserStatsDto, type SingleContactAggregatedStatsDto, type SingleContactListStatsDto, type SingleCountryStatsDto, type SingleGeneralStats, type SingleLinkStatsDto, type SingleProductMedia, SingleProductMediaTypeEnum, type SingleRecipientDTO, Skeleton, StarRating, type Store, type StoreApiKeysResponseDto, type StoreCapabilitiesDto, type StoreEntity, type SubCategory, type SubCategoryHeadlinesOnlyResponseDTO, type SuggestedSlot, type TAdminSessionData, type TUserSessionData, ThemeProvider, type TrackDto, type TrackingStatus, type TrackingStatusLocationBase, type TrackingStatusSubstatus, type TransferePatientRequest, type TransferePatientsRequestDto, type UpdateAddressDto, UpdateAddressDtoAddressTypeEnum, type UpdateApiKeysDto, type UpdateBlogDto, type UpdateCampaignDraftContentDto, type UpdateCategoryDto, type UpdateDiscountDto, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, type UpdateEventDto, type UpdateItemsOrderDto, type UpdateManualShipmentStatusDto, UpdateManualShipmentStatusDtoStatusEnum, type UpdateMarketingCampDraftDto, type UpdateMessageDto, type UpdateNotificationSettingsDto, type UpdateProductDto, type UpdateRefillRequestDto, type UpdateReviewDto, type UpdateStoreDto, type UpdateSubCategoryDto, type UpdateTransferePatientsRequestDto, type UpdateUserDto, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, type UpdateUserGroupDto, type UpdateVariantDto, type UploadPdfBody, type UsedBy, type UserEntity, UserEntityCustomerTypeEnum, UserEntityRoleEnum, type UserGroup, type UserInsightsDto, type UserWithNoId, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, type UsersPaginatedResponse, type VariantIdInventoryBody, type VariantLightDto, type VerifyEmailDTO, type Wishlist, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|
package/dist/index.js
CHANGED
|
@@ -21621,6 +21621,349 @@ function NotificationSettingsScreen() {
|
|
|
21621
21621
|
] })
|
|
21622
21622
|
] });
|
|
21623
21623
|
}
|
|
21624
|
+
function OrderDetailScreen({ id }) {
|
|
21625
|
+
const router = navigation.useRouter();
|
|
21626
|
+
const { buildPath } = useBasePath();
|
|
21627
|
+
const { order, isLoading, error } = useOrder(id);
|
|
21628
|
+
if (isLoading) {
|
|
21629
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21630
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 border-4 border-primary/20 border-t-primary rounded-full animate-spin mb-4" }),
|
|
21631
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted font-medium animate-pulse", children: "Retrieving order details..." })
|
|
21632
|
+
] });
|
|
21633
|
+
}
|
|
21634
|
+
if (error || !order) {
|
|
21635
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21636
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-red-50 rounded-full mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "w-10 h-10 text-red-500" }) }),
|
|
21637
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-bold text-secondary mb-2", children: "Order Not Found" }),
|
|
21638
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted mb-6", children: "We couldn't find the order you're looking for." }),
|
|
21639
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: () => router.push(buildPath("/account")), children: "Back to Account" })
|
|
21640
|
+
] });
|
|
21641
|
+
}
|
|
21642
|
+
const items = order.items || [];
|
|
21643
|
+
const status = order.orderStatus || "Pending";
|
|
21644
|
+
const isDelivery = order.orderType === "Delivery";
|
|
21645
|
+
const getStatusVariant = (status2) => {
|
|
21646
|
+
switch (status2.toLowerCase()) {
|
|
21647
|
+
case "pending":
|
|
21648
|
+
return "warning";
|
|
21649
|
+
case "delivered":
|
|
21650
|
+
case "fulfilled":
|
|
21651
|
+
case "picked up":
|
|
21652
|
+
return "success";
|
|
21653
|
+
case "shipped":
|
|
21654
|
+
return "primary";
|
|
21655
|
+
case "cancelled":
|
|
21656
|
+
return "danger";
|
|
21657
|
+
default:
|
|
21658
|
+
return "gray";
|
|
21659
|
+
}
|
|
21660
|
+
};
|
|
21661
|
+
const shippingAddress = order.shippingInfo?.addressTo;
|
|
21662
|
+
const pickupAddress = order.pickUpAddress;
|
|
21663
|
+
const activeAddress = isDelivery ? shippingAddress : pickupAddress;
|
|
21664
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-linear-to-b from-[#F8FAFC] to-[#EBF4FB] pb-20", children: [
|
|
21665
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container mx-auto px-4 pt-8 max-w-6xl", children: [
|
|
21666
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21667
|
+
"button",
|
|
21668
|
+
{
|
|
21669
|
+
onClick: () => router.back(),
|
|
21670
|
+
className: "group flex items-center gap-2 text-muted hover:text-secondary transition-colors mb-6",
|
|
21671
|
+
children: [
|
|
21672
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-1.5 rounded-full bg-white shadow-xs group-hover:shadow-md transition-all", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "w-4 h-4" }) }),
|
|
21673
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold", children: "Back to History" })
|
|
21674
|
+
]
|
|
21675
|
+
}
|
|
21676
|
+
),
|
|
21677
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row md:items-end justify-between gap-6 mb-8", children: [
|
|
21678
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21679
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
21680
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-secondary", children: "Order Details" }),
|
|
21681
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant(status), children: status }),
|
|
21682
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", className: "bg-primary-100 text-primary-700 border-primary-200", children: order.orderType || "Pickup" })
|
|
21683
|
+
] }),
|
|
21684
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-muted", children: [
|
|
21685
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5 font-medium", children: [
|
|
21686
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "opacity-60 text-xs uppercase tracking-widest font-bold", children: "ID:" }),
|
|
21687
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-secondary font-mono tracking-tight", children: [
|
|
21688
|
+
"#",
|
|
21689
|
+
id.toUpperCase()
|
|
21690
|
+
] })
|
|
21691
|
+
] }),
|
|
21692
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5 font-medium", children: [
|
|
21693
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "w-4 h-4 opacity-60" }),
|
|
21694
|
+
formatDate(order.createdAt || /* @__PURE__ */ new Date(), "long")
|
|
21695
|
+
] })
|
|
21696
|
+
] })
|
|
21697
|
+
] }),
|
|
21698
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3", children: order.payment?.hostedInvoiceUrl && /* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "sm", onClick: () => window.open(order.payment?.hostedInvoiceUrl, "_blank"), className: "bg-accent hover:bg-accent-dark border-none", children: [
|
|
21699
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { className: "w-4 h-4" }),
|
|
21700
|
+
"Payment Details"
|
|
21701
|
+
] }) })
|
|
21702
|
+
] })
|
|
21703
|
+
] }),
|
|
21704
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container mx-auto px-4 max-w-6xl grid grid-cols-1 lg:grid-cols-3 gap-8", children: [
|
|
21705
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lg:col-span-2 space-y-6", children: [
|
|
21706
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21707
|
+
framerMotion.motion.div,
|
|
21708
|
+
{
|
|
21709
|
+
initial: { opacity: 0, y: 20 },
|
|
21710
|
+
animate: { opacity: 1, y: 0 },
|
|
21711
|
+
className: "bg-white rounded-3xl border border-slate-200 shadow-xs overflow-hidden",
|
|
21712
|
+
children: [
|
|
21713
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 border-b border-slate-100 bg-slate-50/50 flex items-center justify-between", children: [
|
|
21714
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21715
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "w-5 h-5 text-secondary" }),
|
|
21716
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-bold text-secondary", children: "Order Items" })
|
|
21717
|
+
] }),
|
|
21718
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-bold bg-slate-200 text-muted px-2.5 py-1 rounded-full", children: [
|
|
21719
|
+
items.length,
|
|
21720
|
+
" ",
|
|
21721
|
+
items.length === 1 ? "Product" : "Products"
|
|
21722
|
+
] })
|
|
21723
|
+
] }),
|
|
21724
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y divide-slate-100", children: items.map((item, idx) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 flex gap-6 group hover:bg-slate-50/50 transition-colors", children: [
|
|
21725
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-20 h-20 bg-slate-100 rounded-2xl overflow-hidden shrink-0 border border-slate-100 group-hover:scale-105 transition-transform duration-300", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21726
|
+
Image4__default.default,
|
|
21727
|
+
{
|
|
21728
|
+
src: item.productVariantData?.media?.[0]?.file || "/placeholder-product.jpg",
|
|
21729
|
+
alt: item.productVariantData?.name || "Item",
|
|
21730
|
+
fill: true,
|
|
21731
|
+
className: "object-cover",
|
|
21732
|
+
sizes: "80px"
|
|
21733
|
+
}
|
|
21734
|
+
) }),
|
|
21735
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex flex-col justify-between py-1", children: [
|
|
21736
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21737
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-secondary text-lg group-hover:text-primary transition-colors leading-snug mb-1", children: item.productVariantData?.name }),
|
|
21738
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-muted", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
21739
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-slate-300" }),
|
|
21740
|
+
"Quantity: ",
|
|
21741
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary font-bold", children: item.quantity })
|
|
21742
|
+
] }) })
|
|
21743
|
+
] }),
|
|
21744
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
21745
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted text-sm", children: [
|
|
21746
|
+
formatPrice(item.productVariantData?.finalPrice || 0),
|
|
21747
|
+
" per unit"
|
|
21748
|
+
] }),
|
|
21749
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-black text-secondary", children: formatPrice((item.productVariantData?.finalPrice || 0) * item.quantity) })
|
|
21750
|
+
] })
|
|
21751
|
+
] })
|
|
21752
|
+
] }, item._id || idx)) })
|
|
21753
|
+
]
|
|
21754
|
+
}
|
|
21755
|
+
),
|
|
21756
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
21757
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21758
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
21759
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-accent" }),
|
|
21760
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-secondary", children: isDelivery ? "Shipping Address" : "Pickup Location" })
|
|
21761
|
+
] }),
|
|
21762
|
+
activeAddress ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-muted leading-relaxed", children: [
|
|
21763
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-secondary text-base mb-1", children: activeAddress.name }),
|
|
21764
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: activeAddress.street1 }),
|
|
21765
|
+
activeAddress.street2 && /* @__PURE__ */ jsxRuntime.jsx("p", { children: activeAddress.street2 }),
|
|
21766
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
21767
|
+
activeAddress.city,
|
|
21768
|
+
", ",
|
|
21769
|
+
activeAddress.state,
|
|
21770
|
+
" ",
|
|
21771
|
+
activeAddress.zip
|
|
21772
|
+
] }),
|
|
21773
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: activeAddress.country })
|
|
21774
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted italic", children: "No address recorded" })
|
|
21775
|
+
] }),
|
|
21776
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21777
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
21778
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-5 h-5 text-accent" }),
|
|
21779
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-secondary", children: "Payment Method" })
|
|
21780
|
+
] }),
|
|
21781
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-muted leading-relaxed", children: [
|
|
21782
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-secondary text-base mb-1", children: order.payment?.paymentMethod ? order.payment.paymentMethod.replace("_", " ").toUpperCase() : "N/A" }),
|
|
21783
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2 mt-2", children: [
|
|
21784
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "opacity-60", children: "Status:" }),
|
|
21785
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: order.payment?.paymentStatus === "Paid" ? "success" : "warning", children: order.payment?.paymentStatus || "Processing" })
|
|
21786
|
+
] }),
|
|
21787
|
+
order.payment?.transactionId && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mt-3 text-[10px] font-bold text-slate-400 uppercase tracking-tighter", children: [
|
|
21788
|
+
"Ref: ",
|
|
21789
|
+
order.payment.transactionId
|
|
21790
|
+
] })
|
|
21791
|
+
] })
|
|
21792
|
+
] })
|
|
21793
|
+
] })
|
|
21794
|
+
] }),
|
|
21795
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21796
|
+
framerMotion.motion.div,
|
|
21797
|
+
{
|
|
21798
|
+
initial: { opacity: 0, x: 20 },
|
|
21799
|
+
animate: { opacity: 1, x: 0 },
|
|
21800
|
+
className: "bg-secondary p-8 rounded-[2rem] text-white shadow-xl shadow-secondary/20 sticky top-8",
|
|
21801
|
+
children: [
|
|
21802
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-bold mb-6 flex items-center gap-2", children: "Summary View" }),
|
|
21803
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4 mb-8", children: [
|
|
21804
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-white/70", children: [
|
|
21805
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Subtotal" }),
|
|
21806
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-white", children: formatPrice(order.subTotal || 0) })
|
|
21807
|
+
] }),
|
|
21808
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-white/70", children: [
|
|
21809
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Shipping" }),
|
|
21810
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-white", children: formatPrice(order.shippingCost || 0) })
|
|
21811
|
+
] }),
|
|
21812
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-white/70", children: [
|
|
21813
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Tax" }),
|
|
21814
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-white", children: formatPrice(order.tax || 0) })
|
|
21815
|
+
] }),
|
|
21816
|
+
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-primary", children: [
|
|
21817
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Discount" }),
|
|
21818
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold", children: [
|
|
21819
|
+
"-",
|
|
21820
|
+
formatPrice(order.discountedAmount)
|
|
21821
|
+
] })
|
|
21822
|
+
] }),
|
|
21823
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-4 border-t border-white/10 mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-end", children: [
|
|
21824
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21825
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-black uppercase tracking-[0.2em] text-white/40 mb-1", children: "Grand Total" }),
|
|
21826
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-3xl font-black", children: formatPrice(order.grandTotal || 0) })
|
|
21827
|
+
] }),
|
|
21828
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1 bg-white/10 rounded-lg text-[10px] font-black uppercase tracking-wider text-white/60", children: "USD" })
|
|
21829
|
+
] }) })
|
|
21830
|
+
] }),
|
|
21831
|
+
order.orderStatus === "Pending" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-white/5 rounded-2xl border border-white/10 mb-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
21832
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Info, { className: "w-5 h-5 text-primary shrink-0 mt-0.5" }),
|
|
21833
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21834
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-bold mb-1", children: "Order is processing" }),
|
|
21835
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-white/60 leading-relaxed", children: "We've received your request and our pharmacists are reviewing it for safety and accuracy." })
|
|
21836
|
+
] })
|
|
21837
|
+
] }) })
|
|
21838
|
+
]
|
|
21839
|
+
}
|
|
21840
|
+
) })
|
|
21841
|
+
] })
|
|
21842
|
+
] });
|
|
21843
|
+
}
|
|
21844
|
+
init_config();
|
|
21845
|
+
var changePasswordSchema = zod.z.object({
|
|
21846
|
+
currentPassword: zod.z.string().min(6, "Current password is required"),
|
|
21847
|
+
newPassword: zod.z.string().min(8, "Password must be at least 8 characters"),
|
|
21848
|
+
confirmPassword: zod.z.string().min(8, "Confirm your new password")
|
|
21849
|
+
}).refine((data) => data.newPassword === data.confirmPassword, {
|
|
21850
|
+
path: ["confirmPassword"],
|
|
21851
|
+
message: "Passwords do not match"
|
|
21852
|
+
});
|
|
21853
|
+
function ChangePasswordScreen() {
|
|
21854
|
+
const router = navigation.useRouter();
|
|
21855
|
+
const { user } = useAuth();
|
|
21856
|
+
const { buildPath } = useBasePath();
|
|
21857
|
+
const [isSubmitting, setIsSubmitting] = React12.useState(false);
|
|
21858
|
+
const [status, setStatus] = React12.useState(
|
|
21859
|
+
null
|
|
21860
|
+
);
|
|
21861
|
+
const {
|
|
21862
|
+
register,
|
|
21863
|
+
handleSubmit,
|
|
21864
|
+
formState: { errors }
|
|
21865
|
+
} = reactHookForm.useForm({
|
|
21866
|
+
resolver: zod$1.zodResolver(changePasswordSchema)
|
|
21867
|
+
});
|
|
21868
|
+
if (!user) {
|
|
21869
|
+
router.push(buildPath("/login"));
|
|
21870
|
+
return null;
|
|
21871
|
+
}
|
|
21872
|
+
const onSubmit = async (data) => {
|
|
21873
|
+
setIsSubmitting(true);
|
|
21874
|
+
setStatus(null);
|
|
21875
|
+
try {
|
|
21876
|
+
await changePassword(data.currentPassword, data.newPassword);
|
|
21877
|
+
setStatus({ type: "success", message: "Password updated successfully" });
|
|
21878
|
+
setTimeout(() => router.push(buildPath("/account")), 600);
|
|
21879
|
+
} catch (error) {
|
|
21880
|
+
setStatus({
|
|
21881
|
+
type: "error",
|
|
21882
|
+
message: error?.response?.data?.message || "Unable to update password"
|
|
21883
|
+
});
|
|
21884
|
+
} finally {
|
|
21885
|
+
setIsSubmitting(false);
|
|
21886
|
+
}
|
|
21887
|
+
};
|
|
21888
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-screen bg-slate-50 text-slate-900", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 pb-16 pt-10", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21889
|
+
framerMotion.motion.div,
|
|
21890
|
+
{
|
|
21891
|
+
initial: { opacity: 0, y: 18 },
|
|
21892
|
+
animate: { opacity: 1, y: 0 },
|
|
21893
|
+
className: "mx-auto max-w-2xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
21894
|
+
children: [
|
|
21895
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
21896
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-primary-50 text-primary-600", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "h-5 w-5" }) }),
|
|
21897
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21898
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Security" }),
|
|
21899
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Change password" })
|
|
21900
|
+
] })
|
|
21901
|
+
] }),
|
|
21902
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 text-sm text-slate-600", children: "Use a strong password that you have not used elsewhere. Updating your password will sign you out of other active sessions." }),
|
|
21903
|
+
status && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21904
|
+
"div",
|
|
21905
|
+
{
|
|
21906
|
+
className: `mt-4 flex items-start gap-2 rounded-2xl border px-4 py-3 text-sm ${status.type === "success" ? "border-green-200 bg-green-50 text-green-800" : "border-red-200 bg-red-50 text-red-700"}`,
|
|
21907
|
+
children: [
|
|
21908
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-[2px] text-base", children: status.type === "success" ? "\u2714" : "!" }),
|
|
21909
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: status.message })
|
|
21910
|
+
]
|
|
21911
|
+
}
|
|
21912
|
+
),
|
|
21913
|
+
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit(onSubmit), className: "mt-8 space-y-5", children: [
|
|
21914
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21915
|
+
Input,
|
|
21916
|
+
{
|
|
21917
|
+
type: "password",
|
|
21918
|
+
label: "Current password",
|
|
21919
|
+
placeholder: "Enter current password",
|
|
21920
|
+
...register("currentPassword"),
|
|
21921
|
+
error: errors.currentPassword?.message
|
|
21922
|
+
}
|
|
21923
|
+
),
|
|
21924
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21925
|
+
Input,
|
|
21926
|
+
{
|
|
21927
|
+
type: "password",
|
|
21928
|
+
label: "New password",
|
|
21929
|
+
placeholder: "Enter new password",
|
|
21930
|
+
...register("newPassword"),
|
|
21931
|
+
error: errors.newPassword?.message
|
|
21932
|
+
}
|
|
21933
|
+
),
|
|
21934
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21935
|
+
Input,
|
|
21936
|
+
{
|
|
21937
|
+
type: "password",
|
|
21938
|
+
label: "Confirm new password",
|
|
21939
|
+
placeholder: "Re-type new password",
|
|
21940
|
+
...register("confirmPassword"),
|
|
21941
|
+
error: errors.confirmPassword?.message
|
|
21942
|
+
}
|
|
21943
|
+
),
|
|
21944
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
21945
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { type: "submit", size: "lg", isLoading: isSubmitting, children: "Save password" }),
|
|
21946
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21947
|
+
Button,
|
|
21948
|
+
{
|
|
21949
|
+
type: "button",
|
|
21950
|
+
variant: "outline-solid",
|
|
21951
|
+
size: "lg",
|
|
21952
|
+
className: "border-slate-300 text-slate-800 hover:bg-slate-50",
|
|
21953
|
+
onClick: () => router.push(buildPath("/account")),
|
|
21954
|
+
children: "Cancel"
|
|
21955
|
+
}
|
|
21956
|
+
)
|
|
21957
|
+
] })
|
|
21958
|
+
] }),
|
|
21959
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 flex items-center gap-2 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-600", children: [
|
|
21960
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "h-4 w-4 text-primary-600" }),
|
|
21961
|
+
"Strong passwords and up-to-date contact details help pharmacists verify changes quickly."
|
|
21962
|
+
] })
|
|
21963
|
+
]
|
|
21964
|
+
}
|
|
21965
|
+
) }) });
|
|
21966
|
+
}
|
|
21624
21967
|
function NotificationBell() {
|
|
21625
21968
|
const { unreadCount, openDrawer } = useNotificationCenter();
|
|
21626
21969
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -22004,6 +22347,7 @@ exports.CampaignDraftSendingDtoStatusEnum = CampaignDraftSendingDtoStatusEnum;
|
|
|
22004
22347
|
exports.CartItem = CartItem;
|
|
22005
22348
|
exports.CartProvider = CartProvider;
|
|
22006
22349
|
exports.CartScreen = CartScreen;
|
|
22350
|
+
exports.ChangePasswordScreen = ChangePasswordScreen;
|
|
22007
22351
|
exports.CheckoutScreen = CheckoutScreen;
|
|
22008
22352
|
exports.CreateAddressDtoAddressTypeEnum = CreateAddressDtoAddressTypeEnum;
|
|
22009
22353
|
exports.CreateDiscountDtoStateEnum = CreateDiscountDtoStateEnum;
|
|
@@ -22037,6 +22381,7 @@ exports.NotificationDrawer = NotificationDrawer;
|
|
|
22037
22381
|
exports.NotificationSettingsScreen = NotificationSettingsScreen;
|
|
22038
22382
|
exports.OrderCard = OrderCard;
|
|
22039
22383
|
exports.OrderCardSkeleton = OrderCardSkeleton;
|
|
22384
|
+
exports.OrderDetailScreen = OrderDetailScreen;
|
|
22040
22385
|
exports.OrderOrderTypeEnum = OrderOrderTypeEnum;
|
|
22041
22386
|
exports.OrderReviewsScreen = OrderReviewsScreen;
|
|
22042
22387
|
exports.OrderTimeLineDTOTypeEnum = OrderTimeLineDTOTypeEnum;
|