@burdenoff/microfe-coolandlovely 2026.614.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/README.md +12 -0
- package/dist/coolandlovely/CoolAndLovelyRoot.d.ts +5 -0
- package/dist/coolandlovely/CoolAndLovelyRoot.d.ts.map +1 -0
- package/dist/coolandlovely/CoolAndLovelyRoot.js +177 -0
- package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -0
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +4 -0
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts.map +1 -0
- package/dist/coolandlovely/CoolAndLovelyRoutes.js +215 -0
- package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -0
- package/dist/coolandlovely/components/CartCard.d.ts +18 -0
- package/dist/coolandlovely/components/CartCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/EmptyState.d.ts +12 -0
- package/dist/coolandlovely/components/EmptyState.d.ts.map +1 -0
- package/dist/coolandlovely/components/EmptyState.js +28 -0
- package/dist/coolandlovely/components/EmptyState.js.map +1 -0
- package/dist/coolandlovely/components/InvestmentCard.d.ts +18 -0
- package/dist/coolandlovely/components/InvestmentCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/InvestmentCard.js +96 -0
- package/dist/coolandlovely/components/InvestmentCard.js.map +1 -0
- package/dist/coolandlovely/components/MetricsCard.d.ts +14 -0
- package/dist/coolandlovely/components/MetricsCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/MetricsCard.js +46 -0
- package/dist/coolandlovely/components/MetricsCard.js.map +1 -0
- package/dist/coolandlovely/components/OrderCard.d.ts +18 -0
- package/dist/coolandlovely/components/OrderCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/PageLayout.d.ts +12 -0
- package/dist/coolandlovely/components/PageLayout.d.ts.map +1 -0
- package/dist/coolandlovely/components/PageLayout.js +26 -0
- package/dist/coolandlovely/components/PageLayout.js.map +1 -0
- package/dist/coolandlovely/components/RatingDisplay.d.ts +12 -0
- package/dist/coolandlovely/components/RatingDisplay.d.ts.map +1 -0
- package/dist/coolandlovely/components/RatingDisplay.js +35 -0
- package/dist/coolandlovely/components/RatingDisplay.js.map +1 -0
- package/dist/coolandlovely/components/StatusBadge.d.ts +9 -0
- package/dist/coolandlovely/components/StatusBadge.d.ts.map +1 -0
- package/dist/coolandlovely/components/StatusBadge.js +45 -0
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -0
- package/dist/coolandlovely/components/index.d.ts +13 -0
- package/dist/coolandlovely/components/index.d.ts.map +1 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +16 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts.map +1 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.js +93 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -0
- package/dist/coolandlovely/context/index.d.ts +6 -0
- package/dist/coolandlovely/context/index.d.ts.map +1 -0
- package/dist/coolandlovely/context/index.js +1 -0
- package/dist/coolandlovely/hooks/index.d.ts +2 -0
- package/dist/coolandlovely/hooks/index.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +44 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +223 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -0
- package/dist/coolandlovely/index.d.ts +11 -0
- package/dist/coolandlovely/index.d.ts.map +1 -0
- package/dist/coolandlovely/index.js +7 -0
- package/dist/coolandlovely/mocks/data.d.ts +61 -0
- package/dist/coolandlovely/mocks/data.d.ts.map +1 -0
- package/dist/coolandlovely/mocks/data.js +1517 -0
- package/dist/coolandlovely/mocks/data.js.map +1 -0
- package/dist/coolandlovely/mocks/index.d.ts +7 -0
- package/dist/coolandlovely/mocks/index.d.ts.map +1 -0
- package/dist/coolandlovely/mocks/users.d.ts +18 -0
- package/dist/coolandlovely/mocks/users.d.ts.map +1 -0
- package/dist/coolandlovely/mocks/users.js +34 -0
- package/dist/coolandlovely/mocks/users.js.map +1 -0
- package/dist/coolandlovely/pages/HomePage.d.ts +10 -0
- package/dist/coolandlovely/pages/HomePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/HomePage.js +921 -0
- package/dist/coolandlovely/pages/HomePage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +645 -0
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminDashboard.d.ts +10 -0
- package/dist/coolandlovely/pages/admin/AdminDashboard.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +639 -0
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.d.ts +11 -0
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +421 -0
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.d.ts +10 -0
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +660 -0
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminProfilePage.d.ts +10 -0
- package/dist/coolandlovely/pages/admin/AdminProfilePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +259 -0
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.d.ts +10 -0
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +649 -0
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/CartManagementPage.d.ts +10 -0
- package/dist/coolandlovely/pages/admin/CartManagementPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +869 -0
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -0
- package/dist/coolandlovely/pages/admin/UserManagementPage.d.ts +10 -0
- package/dist/coolandlovely/pages/admin/UserManagementPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +893 -0
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.d.ts +12 -0
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +834 -0
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +700 -0
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.d.ts +11 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +760 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.d.ts +12 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +886 -0
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.d.ts +11 -0
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +631 -0
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.d.ts +11 -0
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +913 -0
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.d.ts +10 -0
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +881 -0
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.d.ts +11 -0
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +833 -0
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -0
- package/dist/coolandlovely/pages/common/HelpSupportPage.d.ts +11 -0
- package/dist/coolandlovely/pages/common/HelpSupportPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +1325 -0
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -0
- package/dist/coolandlovely/pages/common/NotificationCenterPage.d.ts +11 -0
- package/dist/coolandlovely/pages/common/NotificationCenterPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +665 -0
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -0
- package/dist/coolandlovely/pages/common/SettingsPage.d.ts +9 -0
- package/dist/coolandlovely/pages/common/SettingsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/common/SettingsPage.js +964 -0
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.d.ts +12 -0
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +593 -0
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/CartDetailPage.d.ts +13 -0
- package/dist/coolandlovely/pages/customer/CartDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +620 -0
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.d.ts +11 -0
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +547 -0
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/CheckoutPage.d.ts +9 -0
- package/dist/coolandlovely/pages/customer/CheckoutPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +532 -0
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/CustomerDashboard.d.ts +10 -0
- package/dist/coolandlovely/pages/customer/CustomerDashboard.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +496 -0
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -0
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.d.ts +10 -0
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +621 -0
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.d.ts +12 -0
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +623 -0
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/FavoritesPage.d.ts +11 -0
- package/dist/coolandlovely/pages/customer/FavoritesPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +477 -0
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.d.ts +9 -0
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +438 -0
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.d.ts +9 -0
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +388 -0
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +488 -0
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/ReviewsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/customer/ReviewsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +606 -0
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -0
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.d.ts +10 -0
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +443 -0
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.d.ts +10 -0
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +849 -0
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.d.ts +10 -0
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +939 -0
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +681 -0
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorDashboard.d.ts +9 -0
- package/dist/coolandlovely/pages/investor/InvestorDashboard.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +419 -0
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.d.ts +10 -0
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +399 -0
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.d.ts +10 -0
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +569 -0
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.d.ts +12 -0
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +1065 -0
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.d.ts +22 -0
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +496 -0
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerDashboard.d.ts +18 -0
- package/dist/coolandlovely/pages/worker/WorkerDashboard.d.ts.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +634 -0
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.d.ts +18 -0
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +675 -0
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.d.ts +18 -0
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +687 -0
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.d.ts +17 -0
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +578 -0
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -0
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts +60 -0
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts.map +1 -0
- package/dist/coolandlovely/store/coolandlovelyStore.js +38 -0
- package/dist/coolandlovely/store/coolandlovelyStore.js.map +1 -0
- package/dist/coolandlovely/store/index.d.ts +6 -0
- package/dist/coolandlovely/store/index.d.ts.map +1 -0
- package/dist/coolandlovely/store/index.js +1 -0
- package/dist/coolandlovely/types/index.d.ts +458 -0
- package/dist/coolandlovely/types/index.d.ts.map +1 -0
- package/dist/coolandlovely/utils/cn.d.ts +4 -0
- package/dist/coolandlovely/utils/cn.d.ts.map +1 -0
- package/dist/coolandlovely/utils/cn.js +10 -0
- package/dist/coolandlovely/utils/cn.js.map +1 -0
- package/dist/coolandlovely/utils/formatters.d.ts +78 -0
- package/dist/coolandlovely/utils/formatters.d.ts.map +1 -0
- package/dist/coolandlovely/utils/formatters.js +51 -0
- package/dist/coolandlovely/utils/formatters.js.map +1 -0
- package/dist/coolandlovely/utils/index.d.ts +8 -0
- package/dist/coolandlovely/utils/index.d.ts.map +1 -0
- package/dist/coolandlovely/utils/navigation.d.ts +20 -0
- package/dist/coolandlovely/utils/navigation.d.ts.map +1 -0
- package/dist/coolandlovely/utils/navigation.js +9 -0
- package/dist/coolandlovely/utils/navigation.js.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +23527 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
|
|
2
|
+
import { cn as t } from "../../utils/cn.js";
|
|
3
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
+
import { useOrders as r } from "../../hooks/useCoolAndLovelyApi.js";
|
|
5
|
+
import { formatCurrency as i, formatDate as a } from "../../utils/formatters.js";
|
|
6
|
+
import { useState as o } from "react";
|
|
7
|
+
import { AlertTriangle as s, Award as c, BarChart3 as l, Bell as u, Camera as d, CheckCircle2 as f, ChevronRight as p, Edit3 as m, Heart as h, IndianRupee as g, MapPin as _, Save as v, Settings as y, Shield as b, ShoppingBag as x, User as S, UserCircle as C, X as w } from "lucide-react";
|
|
8
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
9
|
+
//#region src/coolandlovely/pages/customer/CustomerProfilePage.tsx
|
|
10
|
+
var D = [
|
|
11
|
+
"vegetarian",
|
|
12
|
+
"vegan",
|
|
13
|
+
"jain",
|
|
14
|
+
"keto",
|
|
15
|
+
"gluten-free",
|
|
16
|
+
"low-carb"
|
|
17
|
+
], O = [
|
|
18
|
+
"nuts",
|
|
19
|
+
"dairy",
|
|
20
|
+
"eggs",
|
|
21
|
+
"soy",
|
|
22
|
+
"shellfish",
|
|
23
|
+
"gluten"
|
|
24
|
+
], k = [{
|
|
25
|
+
id: "addr-1",
|
|
26
|
+
label: "Home",
|
|
27
|
+
street: "123, MG Road",
|
|
28
|
+
area: "Near Central Mall",
|
|
29
|
+
city: "Bangalore",
|
|
30
|
+
state: "Karnataka",
|
|
31
|
+
pincode: "560001",
|
|
32
|
+
isDefault: !0
|
|
33
|
+
}, {
|
|
34
|
+
id: "addr-2",
|
|
35
|
+
label: "Office",
|
|
36
|
+
street: "456 Tech Park Road",
|
|
37
|
+
area: "Whitefield",
|
|
38
|
+
city: "Bangalore",
|
|
39
|
+
state: "Karnataka",
|
|
40
|
+
pincode: "560066",
|
|
41
|
+
isDefault: !1
|
|
42
|
+
}];
|
|
43
|
+
function A() {
|
|
44
|
+
let { navigateTo: A, currentUser: j } = e(), { data: M = [], isLoading: N } = r({ customerId: j?.id }), [P, F] = o("profile"), [I, L] = o(!1), R = {
|
|
45
|
+
firstName: j?.firstName || j?.name?.split(" ")[0] || "Customer",
|
|
46
|
+
lastName: j?.lastName || j?.name?.split(" ").slice(1).join(" ") || "",
|
|
47
|
+
email: j?.email || "",
|
|
48
|
+
phone: "+91 98765 43210",
|
|
49
|
+
profilePicture: j?.avatar,
|
|
50
|
+
isEmailVerified: !0,
|
|
51
|
+
isPhoneVerified: !0,
|
|
52
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
53
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
54
|
+
}, [z, B] = o({
|
|
55
|
+
firstName: R.firstName,
|
|
56
|
+
lastName: R.lastName,
|
|
57
|
+
email: R.email,
|
|
58
|
+
phone: R.phone,
|
|
59
|
+
emergencyContact: {
|
|
60
|
+
name: "Priya Sharma",
|
|
61
|
+
phone: "+91 98765 43211",
|
|
62
|
+
relationship: "Spouse"
|
|
63
|
+
},
|
|
64
|
+
dietary: ["vegetarian"],
|
|
65
|
+
allergies: ["nuts", "dairy"],
|
|
66
|
+
notifications: {
|
|
67
|
+
orderUpdates: !0,
|
|
68
|
+
promotions: !0,
|
|
69
|
+
newsletter: !1,
|
|
70
|
+
sms: !0
|
|
71
|
+
}
|
|
72
|
+
}), [V, H] = o({ ...z }), U = {
|
|
73
|
+
totalOrders: M.length,
|
|
74
|
+
totalSpent: M.reduce((e, t) => e + t.total, 0),
|
|
75
|
+
loyaltyPoints: Math.floor(M.reduce((e, t) => e + t.total, 0) / 10),
|
|
76
|
+
avgOrderValue: M.length > 0 ? Math.floor(M.reduce((e, t) => e + t.total, 0) / M.length) : 0,
|
|
77
|
+
favoriteCategory: "South Indian",
|
|
78
|
+
memberSince: R.createdAt
|
|
79
|
+
}, W = N, G = () => {
|
|
80
|
+
H({ ...z }), L(!0);
|
|
81
|
+
}, K = () => {
|
|
82
|
+
H({ ...z }), L(!1);
|
|
83
|
+
}, q = () => {
|
|
84
|
+
B({ ...V }), L(!1), alert("Profile updated successfully");
|
|
85
|
+
}, J = () => {
|
|
86
|
+
B({ ...V }), alert("Preferences saved successfully");
|
|
87
|
+
}, Y = (e, t) => {
|
|
88
|
+
H((n) => ({
|
|
89
|
+
...n,
|
|
90
|
+
[e]: t
|
|
91
|
+
}));
|
|
92
|
+
}, X = (e, t) => {
|
|
93
|
+
H((n) => ({
|
|
94
|
+
...n,
|
|
95
|
+
emergencyContact: {
|
|
96
|
+
...n.emergencyContact,
|
|
97
|
+
[e]: t
|
|
98
|
+
}
|
|
99
|
+
}));
|
|
100
|
+
}, Z = (e, t) => {
|
|
101
|
+
H((n) => ({
|
|
102
|
+
...n,
|
|
103
|
+
notifications: {
|
|
104
|
+
...n.notifications,
|
|
105
|
+
[e]: t
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
}, Q = (e, t, n) => {
|
|
109
|
+
H((r) => {
|
|
110
|
+
let i = r[e], a = n ? [...i, t] : i.filter((e) => e !== t);
|
|
111
|
+
return {
|
|
112
|
+
...r,
|
|
113
|
+
[e]: a
|
|
114
|
+
};
|
|
115
|
+
});
|
|
116
|
+
}, $ = [
|
|
117
|
+
{
|
|
118
|
+
key: "profile",
|
|
119
|
+
label: "Profile Info",
|
|
120
|
+
icon: C
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
key: "preferences",
|
|
124
|
+
label: "Preferences",
|
|
125
|
+
icon: y
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "stats",
|
|
129
|
+
label: "My Stats",
|
|
130
|
+
icon: l
|
|
131
|
+
}
|
|
132
|
+
];
|
|
133
|
+
return W ? /* @__PURE__ */ T(n, {
|
|
134
|
+
title: "My Profile",
|
|
135
|
+
children: /* @__PURE__ */ E("div", {
|
|
136
|
+
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
137
|
+
children: [/* @__PURE__ */ T("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-foreground mx-auto mb-4" }), /* @__PURE__ */ T("p", {
|
|
138
|
+
className: "text-sm text-muted-foreground",
|
|
139
|
+
children: "Loading profile..."
|
|
140
|
+
})]
|
|
141
|
+
})
|
|
142
|
+
}) : /* @__PURE__ */ E(n, {
|
|
143
|
+
title: "My Profile",
|
|
144
|
+
description: "Manage your personal information and preferences",
|
|
145
|
+
children: [/* @__PURE__ */ E("div", {
|
|
146
|
+
className: "flex flex-col items-center sm:flex-row sm:items-start gap-6 rounded-lg border border-border bg-card p-6",
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ E("div", {
|
|
149
|
+
className: "relative",
|
|
150
|
+
children: [/* @__PURE__ */ T("div", {
|
|
151
|
+
className: "h-24 w-24 rounded-full bg-muted overflow-hidden",
|
|
152
|
+
children: R.profilePicture ? /* @__PURE__ */ T("img", {
|
|
153
|
+
src: R.profilePicture,
|
|
154
|
+
alt: `${R.firstName} ${R.lastName}`,
|
|
155
|
+
className: "h-full w-full object-cover"
|
|
156
|
+
}) : /* @__PURE__ */ T("div", {
|
|
157
|
+
className: "flex h-full w-full items-center justify-center text-muted-foreground",
|
|
158
|
+
children: /* @__PURE__ */ T(S, { className: "h-10 w-10" })
|
|
159
|
+
})
|
|
160
|
+
}), /* @__PURE__ */ T("button", {
|
|
161
|
+
type: "button",
|
|
162
|
+
className: "absolute bottom-0 right-0 flex h-8 w-8 items-center justify-center rounded-full bg-foreground text-background shadow-sm hover:opacity-90 transition-opacity",
|
|
163
|
+
children: /* @__PURE__ */ T(d, { className: "h-4 w-4" })
|
|
164
|
+
})]
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ E("div", {
|
|
167
|
+
className: "flex-1 text-center sm:text-left",
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ E("h2", {
|
|
170
|
+
className: "text-xl font-semibold text-foreground",
|
|
171
|
+
children: [
|
|
172
|
+
z.firstName,
|
|
173
|
+
" ",
|
|
174
|
+
z.lastName
|
|
175
|
+
]
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ T("p", {
|
|
178
|
+
className: "mt-1 text-sm text-muted-foreground",
|
|
179
|
+
children: z.email
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ T("p", {
|
|
182
|
+
className: "mt-0.5 text-sm text-muted-foreground",
|
|
183
|
+
children: z.phone
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ E("div", {
|
|
186
|
+
className: "flex flex-wrap items-center justify-center sm:justify-start gap-2 mt-2",
|
|
187
|
+
children: [/* @__PURE__ */ E("span", {
|
|
188
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-green-500/20 text-green-600 dark:text-green-400" : "bg-destructive/20 text-destructive"),
|
|
189
|
+
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), R.isEmailVerified ? "Email Verified" : "Email Not Verified"]
|
|
190
|
+
}), /* @__PURE__ */ E("span", {
|
|
191
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-green-500/20 text-green-600 dark:text-green-400" : "bg-destructive/20 text-destructive"),
|
|
192
|
+
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), R.isPhoneVerified ? "Phone Verified" : "Phone Not Verified"]
|
|
193
|
+
})]
|
|
194
|
+
})
|
|
195
|
+
]
|
|
196
|
+
}),
|
|
197
|
+
/* @__PURE__ */ E("div", {
|
|
198
|
+
className: "text-center sm:text-right",
|
|
199
|
+
children: [/* @__PURE__ */ T("p", {
|
|
200
|
+
className: "text-2xl font-bold text-foreground",
|
|
201
|
+
children: U.loyaltyPoints
|
|
202
|
+
}), /* @__PURE__ */ T("p", {
|
|
203
|
+
className: "text-xs text-muted-foreground",
|
|
204
|
+
children: "Loyalty Points"
|
|
205
|
+
})]
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
}), /* @__PURE__ */ E("div", {
|
|
209
|
+
className: "mt-6 rounded-lg border border-border bg-card",
|
|
210
|
+
children: [/* @__PURE__ */ T("div", {
|
|
211
|
+
className: "border-b border-border",
|
|
212
|
+
children: /* @__PURE__ */ T("nav", {
|
|
213
|
+
className: "flex -mb-px overflow-x-auto",
|
|
214
|
+
children: $.map((e) => {
|
|
215
|
+
let n = e.icon;
|
|
216
|
+
return /* @__PURE__ */ E("button", {
|
|
217
|
+
type: "button",
|
|
218
|
+
className: t("flex items-center gap-2 py-3.5 px-5 text-sm font-medium whitespace-nowrap transition-colors", P === e.key ? "border-b-2 border-foreground text-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
219
|
+
onClick: () => F(e.key),
|
|
220
|
+
children: [/* @__PURE__ */ T(n, { className: "h-4 w-4" }), e.label]
|
|
221
|
+
}, e.key);
|
|
222
|
+
})
|
|
223
|
+
})
|
|
224
|
+
}), /* @__PURE__ */ E("div", {
|
|
225
|
+
className: "p-5 md:p-6",
|
|
226
|
+
children: [
|
|
227
|
+
P === "profile" && /* @__PURE__ */ E("div", {
|
|
228
|
+
className: "space-y-6",
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ E("div", {
|
|
231
|
+
className: "flex justify-between items-center",
|
|
232
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
233
|
+
className: "text-lg font-semibold text-foreground",
|
|
234
|
+
children: "Personal Information"
|
|
235
|
+
}), I ? /* @__PURE__ */ E("div", {
|
|
236
|
+
className: "flex gap-2",
|
|
237
|
+
children: [/* @__PURE__ */ E("button", {
|
|
238
|
+
type: "button",
|
|
239
|
+
onClick: q,
|
|
240
|
+
className: "flex items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 transition-opacity",
|
|
241
|
+
children: [/* @__PURE__ */ T(v, { className: "h-3 w-3" }), "Save"]
|
|
242
|
+
}), /* @__PURE__ */ E("button", {
|
|
243
|
+
type: "button",
|
|
244
|
+
onClick: K,
|
|
245
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-foreground hover:bg-accent transition-colors",
|
|
246
|
+
children: [/* @__PURE__ */ T(w, { className: "h-3 w-3" }), "Cancel"]
|
|
247
|
+
})]
|
|
248
|
+
}) : /* @__PURE__ */ E("button", {
|
|
249
|
+
type: "button",
|
|
250
|
+
onClick: G,
|
|
251
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-foreground hover:bg-accent transition-colors",
|
|
252
|
+
children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), "Edit Profile"]
|
|
253
|
+
})]
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ E("div", {
|
|
256
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
259
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
260
|
+
children: "First Name"
|
|
261
|
+
}), /* @__PURE__ */ T("input", {
|
|
262
|
+
type: "text",
|
|
263
|
+
value: I ? V.firstName : z.firstName,
|
|
264
|
+
onChange: (e) => Y("firstName", e.target.value),
|
|
265
|
+
disabled: !I,
|
|
266
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
267
|
+
})] }),
|
|
268
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
269
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
270
|
+
children: "Last Name"
|
|
271
|
+
}), /* @__PURE__ */ T("input", {
|
|
272
|
+
type: "text",
|
|
273
|
+
value: I ? V.lastName : z.lastName,
|
|
274
|
+
onChange: (e) => Y("lastName", e.target.value),
|
|
275
|
+
disabled: !I,
|
|
276
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
277
|
+
})] }),
|
|
278
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
279
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
280
|
+
children: "Email"
|
|
281
|
+
}), /* @__PURE__ */ T("input", {
|
|
282
|
+
type: "email",
|
|
283
|
+
value: I ? V.email : z.email,
|
|
284
|
+
onChange: (e) => Y("email", e.target.value),
|
|
285
|
+
disabled: !I,
|
|
286
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
287
|
+
})] }),
|
|
288
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
289
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
290
|
+
children: "Phone"
|
|
291
|
+
}), /* @__PURE__ */ T("input", {
|
|
292
|
+
type: "tel",
|
|
293
|
+
value: I ? V.phone : z.phone,
|
|
294
|
+
onChange: (e) => Y("phone", e.target.value),
|
|
295
|
+
disabled: !I,
|
|
296
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
297
|
+
})] })
|
|
298
|
+
]
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h4", {
|
|
301
|
+
className: "text-base font-semibold text-foreground mb-3",
|
|
302
|
+
children: "Primary Address"
|
|
303
|
+
}), /* @__PURE__ */ E("div", {
|
|
304
|
+
className: "rounded-lg bg-muted/50 p-4",
|
|
305
|
+
children: [
|
|
306
|
+
/* @__PURE__ */ T("p", {
|
|
307
|
+
className: "text-sm font-medium text-foreground",
|
|
308
|
+
children: k[0].street
|
|
309
|
+
}),
|
|
310
|
+
/* @__PURE__ */ T("p", {
|
|
311
|
+
className: "text-sm text-muted-foreground",
|
|
312
|
+
children: k[0].area
|
|
313
|
+
}),
|
|
314
|
+
/* @__PURE__ */ E("p", {
|
|
315
|
+
className: "text-sm text-muted-foreground",
|
|
316
|
+
children: [
|
|
317
|
+
k[0].city,
|
|
318
|
+
", ",
|
|
319
|
+
k[0].state,
|
|
320
|
+
" - ",
|
|
321
|
+
k[0].pincode
|
|
322
|
+
]
|
|
323
|
+
}),
|
|
324
|
+
/* @__PURE__ */ E("button", {
|
|
325
|
+
type: "button",
|
|
326
|
+
onClick: () => A("/customer/addresses"),
|
|
327
|
+
className: "mt-2 flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",
|
|
328
|
+
children: [
|
|
329
|
+
/* @__PURE__ */ T(_, { className: "h-3 w-3" }),
|
|
330
|
+
"Manage Addresses",
|
|
331
|
+
/* @__PURE__ */ T(p, { className: "h-3 w-3" })
|
|
332
|
+
]
|
|
333
|
+
})
|
|
334
|
+
]
|
|
335
|
+
})] }),
|
|
336
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h4", {
|
|
337
|
+
className: "text-base font-semibold text-foreground mb-3 flex items-center gap-2",
|
|
338
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-muted-foreground" }), "Emergency Contact"]
|
|
339
|
+
}), /* @__PURE__ */ E("div", {
|
|
340
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
341
|
+
children: [
|
|
342
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
343
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
344
|
+
children: "Name"
|
|
345
|
+
}), /* @__PURE__ */ T("input", {
|
|
346
|
+
type: "text",
|
|
347
|
+
value: I ? V.emergencyContact.name : z.emergencyContact.name,
|
|
348
|
+
onChange: (e) => X("name", e.target.value),
|
|
349
|
+
disabled: !I,
|
|
350
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
351
|
+
})] }),
|
|
352
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
353
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
354
|
+
children: "Phone"
|
|
355
|
+
}), /* @__PURE__ */ T("input", {
|
|
356
|
+
type: "tel",
|
|
357
|
+
value: I ? V.emergencyContact.phone : z.emergencyContact.phone,
|
|
358
|
+
onChange: (e) => X("phone", e.target.value),
|
|
359
|
+
disabled: !I,
|
|
360
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
361
|
+
})] }),
|
|
362
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
363
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
364
|
+
children: "Relationship"
|
|
365
|
+
}), /* @__PURE__ */ T("input", {
|
|
366
|
+
type: "text",
|
|
367
|
+
value: I ? V.emergencyContact.relationship : z.emergencyContact.relationship,
|
|
368
|
+
onChange: (e) => X("relationship", e.target.value),
|
|
369
|
+
disabled: !I,
|
|
370
|
+
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring", !I && "bg-muted cursor-not-allowed", I && "bg-background")
|
|
371
|
+
})] })
|
|
372
|
+
]
|
|
373
|
+
})] }),
|
|
374
|
+
I && /* @__PURE__ */ E("div", {
|
|
375
|
+
className: "flex gap-3 pt-4 border-t border-border",
|
|
376
|
+
children: [/* @__PURE__ */ E("button", {
|
|
377
|
+
type: "button",
|
|
378
|
+
onClick: q,
|
|
379
|
+
className: "flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
380
|
+
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Save Changes"]
|
|
381
|
+
}), /* @__PURE__ */ T("button", {
|
|
382
|
+
type: "button",
|
|
383
|
+
onClick: K,
|
|
384
|
+
className: "flex items-center gap-2 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
385
|
+
children: "Cancel"
|
|
386
|
+
})]
|
|
387
|
+
})
|
|
388
|
+
]
|
|
389
|
+
}),
|
|
390
|
+
P === "preferences" && /* @__PURE__ */ E("div", {
|
|
391
|
+
className: "space-y-8",
|
|
392
|
+
children: [
|
|
393
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
394
|
+
className: "text-lg font-semibold text-foreground mb-4 flex items-center gap-2",
|
|
395
|
+
children: [/* @__PURE__ */ T(u, { className: "h-4 w-4 text-muted-foreground" }), "Notification Preferences"]
|
|
396
|
+
}), /* @__PURE__ */ T("div", {
|
|
397
|
+
className: "space-y-3",
|
|
398
|
+
children: [
|
|
399
|
+
{
|
|
400
|
+
key: "orderUpdates",
|
|
401
|
+
label: "Order status updates"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
key: "promotions",
|
|
405
|
+
label: "Promotional offers and discounts"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
key: "newsletter",
|
|
409
|
+
label: "Newsletter and food recommendations"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
key: "sms",
|
|
413
|
+
label: "SMS notifications"
|
|
414
|
+
}
|
|
415
|
+
].map((e) => /* @__PURE__ */ E("label", {
|
|
416
|
+
className: "flex items-center gap-3 cursor-pointer",
|
|
417
|
+
children: [/* @__PURE__ */ T("input", {
|
|
418
|
+
type: "checkbox",
|
|
419
|
+
checked: V.notifications[e.key],
|
|
420
|
+
onChange: (t) => Z(e.key, t.target.checked),
|
|
421
|
+
className: "h-4 w-4 rounded border-border text-foreground focus:ring-ring"
|
|
422
|
+
}), /* @__PURE__ */ T("span", {
|
|
423
|
+
className: "text-sm text-foreground",
|
|
424
|
+
children: e.label
|
|
425
|
+
})]
|
|
426
|
+
}, e.key))
|
|
427
|
+
})] }),
|
|
428
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
429
|
+
className: "text-lg font-semibold text-foreground mb-4 flex items-center gap-2",
|
|
430
|
+
children: [/* @__PURE__ */ T(h, { className: "h-4 w-4 text-muted-foreground" }), "Dietary Preferences"]
|
|
431
|
+
}), /* @__PURE__ */ T("div", {
|
|
432
|
+
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
433
|
+
children: D.map((e) => /* @__PURE__ */ E("label", {
|
|
434
|
+
className: "flex items-center gap-2 cursor-pointer",
|
|
435
|
+
children: [/* @__PURE__ */ T("input", {
|
|
436
|
+
type: "checkbox",
|
|
437
|
+
checked: V.dietary.includes(e),
|
|
438
|
+
onChange: (t) => Q("dietary", e, t.target.checked),
|
|
439
|
+
className: "h-4 w-4 rounded border-border text-foreground focus:ring-ring"
|
|
440
|
+
}), /* @__PURE__ */ T("span", {
|
|
441
|
+
className: "text-sm text-foreground capitalize",
|
|
442
|
+
children: e
|
|
443
|
+
})]
|
|
444
|
+
}, e))
|
|
445
|
+
})] }),
|
|
446
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
447
|
+
className: "text-lg font-semibold text-foreground mb-4 flex items-center gap-2",
|
|
448
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-destructive" }), "Food Allergies"]
|
|
449
|
+
}), /* @__PURE__ */ T("div", {
|
|
450
|
+
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
451
|
+
children: O.map((e) => /* @__PURE__ */ E("label", {
|
|
452
|
+
className: "flex items-center gap-2 cursor-pointer",
|
|
453
|
+
children: [/* @__PURE__ */ T("input", {
|
|
454
|
+
type: "checkbox",
|
|
455
|
+
checked: V.allergies.includes(e),
|
|
456
|
+
onChange: (t) => Q("allergies", e, t.target.checked),
|
|
457
|
+
className: "h-4 w-4 rounded border-border text-destructive focus:ring-destructive"
|
|
458
|
+
}), /* @__PURE__ */ T("span", {
|
|
459
|
+
className: "text-sm text-foreground capitalize",
|
|
460
|
+
children: e
|
|
461
|
+
})]
|
|
462
|
+
}, e))
|
|
463
|
+
})] }),
|
|
464
|
+
/* @__PURE__ */ T("div", {
|
|
465
|
+
className: "pt-4 border-t border-border",
|
|
466
|
+
children: /* @__PURE__ */ E("button", {
|
|
467
|
+
type: "button",
|
|
468
|
+
onClick: J,
|
|
469
|
+
className: "flex items-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
470
|
+
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4" }), "Save Preferences"]
|
|
471
|
+
})
|
|
472
|
+
})
|
|
473
|
+
]
|
|
474
|
+
}),
|
|
475
|
+
P === "stats" && /* @__PURE__ */ E("div", {
|
|
476
|
+
className: "space-y-8",
|
|
477
|
+
children: [/* @__PURE__ */ E("div", {
|
|
478
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
479
|
+
children: [
|
|
480
|
+
/* @__PURE__ */ E("div", {
|
|
481
|
+
className: "rounded-lg bg-blue-500/10 p-5 border border-blue-500/20",
|
|
482
|
+
children: [/* @__PURE__ */ E("div", {
|
|
483
|
+
className: "flex items-center gap-2 mb-2",
|
|
484
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4 text-blue-600 dark:text-blue-400" }), /* @__PURE__ */ T("h4", {
|
|
485
|
+
className: "text-sm font-medium text-blue-600 dark:text-blue-400",
|
|
486
|
+
children: "Total Orders"
|
|
487
|
+
})]
|
|
488
|
+
}), /* @__PURE__ */ T("p", {
|
|
489
|
+
className: "text-3xl font-bold text-blue-600 dark:text-blue-400",
|
|
490
|
+
children: U.totalOrders
|
|
491
|
+
})]
|
|
492
|
+
}),
|
|
493
|
+
/* @__PURE__ */ E("div", {
|
|
494
|
+
className: "rounded-lg bg-green-500/10 p-5 border border-green-500/20",
|
|
495
|
+
children: [/* @__PURE__ */ E("div", {
|
|
496
|
+
className: "flex items-center gap-2 mb-2",
|
|
497
|
+
children: [/* @__PURE__ */ T(g, { className: "h-4 w-4 text-green-600 dark:text-green-400" }), /* @__PURE__ */ T("h4", {
|
|
498
|
+
className: "text-sm font-medium text-green-600 dark:text-green-400",
|
|
499
|
+
children: "Total Spent"
|
|
500
|
+
})]
|
|
501
|
+
}), /* @__PURE__ */ T("p", {
|
|
502
|
+
className: "text-3xl font-bold text-green-600 dark:text-green-400",
|
|
503
|
+
children: i(U.totalSpent, { minimumFractionDigits: 0 })
|
|
504
|
+
})]
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ E("div", {
|
|
507
|
+
className: "rounded-lg bg-purple-500/10 p-5 border border-purple-500/20",
|
|
508
|
+
children: [/* @__PURE__ */ E("div", {
|
|
509
|
+
className: "flex items-center gap-2 mb-2",
|
|
510
|
+
children: [/* @__PURE__ */ T(c, { className: "h-4 w-4 text-purple-600 dark:text-purple-400" }), /* @__PURE__ */ T("h4", {
|
|
511
|
+
className: "text-sm font-medium text-purple-600 dark:text-purple-400",
|
|
512
|
+
children: "Loyalty Points"
|
|
513
|
+
})]
|
|
514
|
+
}), /* @__PURE__ */ T("p", {
|
|
515
|
+
className: "text-3xl font-bold text-purple-600 dark:text-purple-400",
|
|
516
|
+
children: U.loyaltyPoints
|
|
517
|
+
})]
|
|
518
|
+
})
|
|
519
|
+
]
|
|
520
|
+
}), /* @__PURE__ */ E("div", {
|
|
521
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
522
|
+
children: [/* @__PURE__ */ E("div", {
|
|
523
|
+
className: "rounded-lg border border-border bg-card p-5",
|
|
524
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
525
|
+
className: "text-base font-semibold text-foreground mb-4 flex items-center gap-2",
|
|
526
|
+
children: [/* @__PURE__ */ T(l, { className: "h-4 w-4 text-muted-foreground" }), "Order Statistics"]
|
|
527
|
+
}), /* @__PURE__ */ E("div", {
|
|
528
|
+
className: "space-y-3",
|
|
529
|
+
children: [
|
|
530
|
+
/* @__PURE__ */ E("div", {
|
|
531
|
+
className: "flex justify-between",
|
|
532
|
+
children: [/* @__PURE__ */ T("span", {
|
|
533
|
+
className: "text-sm text-muted-foreground",
|
|
534
|
+
children: "Average Order Value"
|
|
535
|
+
}), /* @__PURE__ */ T("span", {
|
|
536
|
+
className: "text-sm font-medium text-foreground",
|
|
537
|
+
children: i(U.avgOrderValue, { minimumFractionDigits: 0 })
|
|
538
|
+
})]
|
|
539
|
+
}),
|
|
540
|
+
/* @__PURE__ */ E("div", {
|
|
541
|
+
className: "flex justify-between",
|
|
542
|
+
children: [/* @__PURE__ */ T("span", {
|
|
543
|
+
className: "text-sm text-muted-foreground",
|
|
544
|
+
children: "Favorite Category"
|
|
545
|
+
}), /* @__PURE__ */ T("span", {
|
|
546
|
+
className: "text-sm font-medium text-foreground",
|
|
547
|
+
children: U.favoriteCategory
|
|
548
|
+
})]
|
|
549
|
+
}),
|
|
550
|
+
/* @__PURE__ */ E("div", {
|
|
551
|
+
className: "flex justify-between",
|
|
552
|
+
children: [/* @__PURE__ */ T("span", {
|
|
553
|
+
className: "text-sm text-muted-foreground",
|
|
554
|
+
children: "Member Since"
|
|
555
|
+
}), /* @__PURE__ */ T("span", {
|
|
556
|
+
className: "text-sm font-medium text-foreground",
|
|
557
|
+
children: a(U.memberSince, {
|
|
558
|
+
hour: void 0,
|
|
559
|
+
minute: void 0,
|
|
560
|
+
hour12: void 0
|
|
561
|
+
})
|
|
562
|
+
})]
|
|
563
|
+
})
|
|
564
|
+
]
|
|
565
|
+
})]
|
|
566
|
+
}), /* @__PURE__ */ E("div", {
|
|
567
|
+
className: "rounded-lg border border-border bg-card p-5",
|
|
568
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
569
|
+
className: "text-base font-semibold text-foreground mb-4 flex items-center gap-2",
|
|
570
|
+
children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 text-muted-foreground" }), "Account Status"]
|
|
571
|
+
}), /* @__PURE__ */ E("div", {
|
|
572
|
+
className: "space-y-3",
|
|
573
|
+
children: [
|
|
574
|
+
/* @__PURE__ */ E("div", {
|
|
575
|
+
className: "flex justify-between items-center",
|
|
576
|
+
children: [/* @__PURE__ */ T("span", {
|
|
577
|
+
className: "text-sm text-muted-foreground",
|
|
578
|
+
children: "Email Verification"
|
|
579
|
+
}), /* @__PURE__ */ T("span", {
|
|
580
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-green-500/20 text-green-600 dark:text-green-400" : "bg-destructive/20 text-destructive"),
|
|
581
|
+
children: R.isEmailVerified ? "Verified" : "Not Verified"
|
|
582
|
+
})]
|
|
583
|
+
}),
|
|
584
|
+
/* @__PURE__ */ E("div", {
|
|
585
|
+
className: "flex justify-between items-center",
|
|
586
|
+
children: [/* @__PURE__ */ T("span", {
|
|
587
|
+
className: "text-sm text-muted-foreground",
|
|
588
|
+
children: "Phone Verification"
|
|
589
|
+
}), /* @__PURE__ */ T("span", {
|
|
590
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-green-500/20 text-green-600 dark:text-green-400" : "bg-destructive/20 text-destructive"),
|
|
591
|
+
children: R.isPhoneVerified ? "Verified" : "Not Verified"
|
|
592
|
+
})]
|
|
593
|
+
}),
|
|
594
|
+
/* @__PURE__ */ E("div", {
|
|
595
|
+
className: "flex justify-between",
|
|
596
|
+
children: [/* @__PURE__ */ T("span", {
|
|
597
|
+
className: "text-sm text-muted-foreground",
|
|
598
|
+
children: "Last Updated"
|
|
599
|
+
}), /* @__PURE__ */ T("span", {
|
|
600
|
+
className: "text-sm font-medium text-foreground",
|
|
601
|
+
children: a(R.updatedAt, {
|
|
602
|
+
hour: void 0,
|
|
603
|
+
minute: void 0,
|
|
604
|
+
hour12: void 0
|
|
605
|
+
})
|
|
606
|
+
})]
|
|
607
|
+
})
|
|
608
|
+
]
|
|
609
|
+
})]
|
|
610
|
+
})]
|
|
611
|
+
})]
|
|
612
|
+
})
|
|
613
|
+
]
|
|
614
|
+
})]
|
|
615
|
+
})]
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
//#endregion
|
|
619
|
+
export { A as CustomerProfilePage };
|
|
620
|
+
|
|
621
|
+
//# sourceMappingURL=CustomerProfilePage.js.map
|