@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.
Files changed (284) hide show
  1. package/README.md +12 -0
  2. package/dist/coolandlovely/CoolAndLovelyRoot.d.ts +5 -0
  3. package/dist/coolandlovely/CoolAndLovelyRoot.d.ts.map +1 -0
  4. package/dist/coolandlovely/CoolAndLovelyRoot.js +177 -0
  5. package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -0
  6. package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +4 -0
  7. package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts.map +1 -0
  8. package/dist/coolandlovely/CoolAndLovelyRoutes.js +215 -0
  9. package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -0
  10. package/dist/coolandlovely/components/CartCard.d.ts +18 -0
  11. package/dist/coolandlovely/components/CartCard.d.ts.map +1 -0
  12. package/dist/coolandlovely/components/EmptyState.d.ts +12 -0
  13. package/dist/coolandlovely/components/EmptyState.d.ts.map +1 -0
  14. package/dist/coolandlovely/components/EmptyState.js +28 -0
  15. package/dist/coolandlovely/components/EmptyState.js.map +1 -0
  16. package/dist/coolandlovely/components/InvestmentCard.d.ts +18 -0
  17. package/dist/coolandlovely/components/InvestmentCard.d.ts.map +1 -0
  18. package/dist/coolandlovely/components/InvestmentCard.js +96 -0
  19. package/dist/coolandlovely/components/InvestmentCard.js.map +1 -0
  20. package/dist/coolandlovely/components/MetricsCard.d.ts +14 -0
  21. package/dist/coolandlovely/components/MetricsCard.d.ts.map +1 -0
  22. package/dist/coolandlovely/components/MetricsCard.js +46 -0
  23. package/dist/coolandlovely/components/MetricsCard.js.map +1 -0
  24. package/dist/coolandlovely/components/OrderCard.d.ts +18 -0
  25. package/dist/coolandlovely/components/OrderCard.d.ts.map +1 -0
  26. package/dist/coolandlovely/components/PageLayout.d.ts +12 -0
  27. package/dist/coolandlovely/components/PageLayout.d.ts.map +1 -0
  28. package/dist/coolandlovely/components/PageLayout.js +26 -0
  29. package/dist/coolandlovely/components/PageLayout.js.map +1 -0
  30. package/dist/coolandlovely/components/RatingDisplay.d.ts +12 -0
  31. package/dist/coolandlovely/components/RatingDisplay.d.ts.map +1 -0
  32. package/dist/coolandlovely/components/RatingDisplay.js +35 -0
  33. package/dist/coolandlovely/components/RatingDisplay.js.map +1 -0
  34. package/dist/coolandlovely/components/StatusBadge.d.ts +9 -0
  35. package/dist/coolandlovely/components/StatusBadge.d.ts.map +1 -0
  36. package/dist/coolandlovely/components/StatusBadge.js +45 -0
  37. package/dist/coolandlovely/components/StatusBadge.js.map +1 -0
  38. package/dist/coolandlovely/components/index.d.ts +13 -0
  39. package/dist/coolandlovely/components/index.d.ts.map +1 -0
  40. package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +16 -0
  41. package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts.map +1 -0
  42. package/dist/coolandlovely/context/CoolAndLovelyContext.js +93 -0
  43. package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -0
  44. package/dist/coolandlovely/context/index.d.ts +6 -0
  45. package/dist/coolandlovely/context/index.d.ts.map +1 -0
  46. package/dist/coolandlovely/context/index.js +1 -0
  47. package/dist/coolandlovely/hooks/index.d.ts +2 -0
  48. package/dist/coolandlovely/hooks/index.d.ts.map +1 -0
  49. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +44 -0
  50. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts.map +1 -0
  51. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +223 -0
  52. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -0
  53. package/dist/coolandlovely/index.d.ts +11 -0
  54. package/dist/coolandlovely/index.d.ts.map +1 -0
  55. package/dist/coolandlovely/index.js +7 -0
  56. package/dist/coolandlovely/mocks/data.d.ts +61 -0
  57. package/dist/coolandlovely/mocks/data.d.ts.map +1 -0
  58. package/dist/coolandlovely/mocks/data.js +1517 -0
  59. package/dist/coolandlovely/mocks/data.js.map +1 -0
  60. package/dist/coolandlovely/mocks/index.d.ts +7 -0
  61. package/dist/coolandlovely/mocks/index.d.ts.map +1 -0
  62. package/dist/coolandlovely/mocks/users.d.ts +18 -0
  63. package/dist/coolandlovely/mocks/users.d.ts.map +1 -0
  64. package/dist/coolandlovely/mocks/users.js +34 -0
  65. package/dist/coolandlovely/mocks/users.js.map +1 -0
  66. package/dist/coolandlovely/pages/HomePage.d.ts +10 -0
  67. package/dist/coolandlovely/pages/HomePage.d.ts.map +1 -0
  68. package/dist/coolandlovely/pages/HomePage.js +921 -0
  69. package/dist/coolandlovely/pages/HomePage.js.map +1 -0
  70. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.d.ts +11 -0
  71. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.d.ts.map +1 -0
  72. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +645 -0
  73. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -0
  74. package/dist/coolandlovely/pages/admin/AdminDashboard.d.ts +10 -0
  75. package/dist/coolandlovely/pages/admin/AdminDashboard.d.ts.map +1 -0
  76. package/dist/coolandlovely/pages/admin/AdminDashboard.js +639 -0
  77. package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -0
  78. package/dist/coolandlovely/pages/admin/AdminFinancialPage.d.ts +11 -0
  79. package/dist/coolandlovely/pages/admin/AdminFinancialPage.d.ts.map +1 -0
  80. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +421 -0
  81. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -0
  82. package/dist/coolandlovely/pages/admin/AdminOrdersPage.d.ts +10 -0
  83. package/dist/coolandlovely/pages/admin/AdminOrdersPage.d.ts.map +1 -0
  84. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +660 -0
  85. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -0
  86. package/dist/coolandlovely/pages/admin/AdminProfilePage.d.ts +10 -0
  87. package/dist/coolandlovely/pages/admin/AdminProfilePage.d.ts.map +1 -0
  88. package/dist/coolandlovely/pages/admin/AdminProfilePage.js +259 -0
  89. package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -0
  90. package/dist/coolandlovely/pages/admin/AdminSettingsPage.d.ts +10 -0
  91. package/dist/coolandlovely/pages/admin/AdminSettingsPage.d.ts.map +1 -0
  92. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +649 -0
  93. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -0
  94. package/dist/coolandlovely/pages/admin/CartManagementPage.d.ts +10 -0
  95. package/dist/coolandlovely/pages/admin/CartManagementPage.d.ts.map +1 -0
  96. package/dist/coolandlovely/pages/admin/CartManagementPage.js +869 -0
  97. package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -0
  98. package/dist/coolandlovely/pages/admin/UserManagementPage.d.ts +10 -0
  99. package/dist/coolandlovely/pages/admin/UserManagementPage.d.ts.map +1 -0
  100. package/dist/coolandlovely/pages/admin/UserManagementPage.js +893 -0
  101. package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -0
  102. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.d.ts +12 -0
  103. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.d.ts.map +1 -0
  104. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +834 -0
  105. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -0
  106. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.d.ts +11 -0
  107. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.d.ts.map +1 -0
  108. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +700 -0
  109. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -0
  110. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.d.ts +11 -0
  111. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.d.ts.map +1 -0
  112. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +760 -0
  113. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -0
  114. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.d.ts +12 -0
  115. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.d.ts.map +1 -0
  116. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +886 -0
  117. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -0
  118. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.d.ts +11 -0
  119. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.d.ts.map +1 -0
  120. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +631 -0
  121. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -0
  122. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.d.ts +11 -0
  123. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.d.ts.map +1 -0
  124. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +913 -0
  125. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -0
  126. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.d.ts +10 -0
  127. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.d.ts.map +1 -0
  128. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +881 -0
  129. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -0
  130. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.d.ts +11 -0
  131. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.d.ts.map +1 -0
  132. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +833 -0
  133. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -0
  134. package/dist/coolandlovely/pages/common/HelpSupportPage.d.ts +11 -0
  135. package/dist/coolandlovely/pages/common/HelpSupportPage.d.ts.map +1 -0
  136. package/dist/coolandlovely/pages/common/HelpSupportPage.js +1325 -0
  137. package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -0
  138. package/dist/coolandlovely/pages/common/NotificationCenterPage.d.ts +11 -0
  139. package/dist/coolandlovely/pages/common/NotificationCenterPage.d.ts.map +1 -0
  140. package/dist/coolandlovely/pages/common/NotificationCenterPage.js +665 -0
  141. package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -0
  142. package/dist/coolandlovely/pages/common/SettingsPage.d.ts +9 -0
  143. package/dist/coolandlovely/pages/common/SettingsPage.d.ts.map +1 -0
  144. package/dist/coolandlovely/pages/common/SettingsPage.js +964 -0
  145. package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -0
  146. package/dist/coolandlovely/pages/customer/BookingDetailsPage.d.ts +12 -0
  147. package/dist/coolandlovely/pages/customer/BookingDetailsPage.d.ts.map +1 -0
  148. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +593 -0
  149. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -0
  150. package/dist/coolandlovely/pages/customer/CartDetailPage.d.ts +13 -0
  151. package/dist/coolandlovely/pages/customer/CartDetailPage.d.ts.map +1 -0
  152. package/dist/coolandlovely/pages/customer/CartDetailPage.js +620 -0
  153. package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -0
  154. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.d.ts +11 -0
  155. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.d.ts.map +1 -0
  156. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +547 -0
  157. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -0
  158. package/dist/coolandlovely/pages/customer/CheckoutPage.d.ts +9 -0
  159. package/dist/coolandlovely/pages/customer/CheckoutPage.d.ts.map +1 -0
  160. package/dist/coolandlovely/pages/customer/CheckoutPage.js +532 -0
  161. package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -0
  162. package/dist/coolandlovely/pages/customer/CustomerDashboard.d.ts +10 -0
  163. package/dist/coolandlovely/pages/customer/CustomerDashboard.d.ts.map +1 -0
  164. package/dist/coolandlovely/pages/customer/CustomerDashboard.js +496 -0
  165. package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -0
  166. package/dist/coolandlovely/pages/customer/CustomerProfilePage.d.ts +10 -0
  167. package/dist/coolandlovely/pages/customer/CustomerProfilePage.d.ts.map +1 -0
  168. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +621 -0
  169. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -0
  170. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.d.ts +12 -0
  171. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.d.ts.map +1 -0
  172. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +623 -0
  173. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -0
  174. package/dist/coolandlovely/pages/customer/FavoritesPage.d.ts +11 -0
  175. package/dist/coolandlovely/pages/customer/FavoritesPage.d.ts.map +1 -0
  176. package/dist/coolandlovely/pages/customer/FavoritesPage.js +477 -0
  177. package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -0
  178. package/dist/coolandlovely/pages/customer/OrderHistoryPage.d.ts +9 -0
  179. package/dist/coolandlovely/pages/customer/OrderHistoryPage.d.ts.map +1 -0
  180. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +438 -0
  181. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -0
  182. package/dist/coolandlovely/pages/customer/OrderTrackingPage.d.ts +9 -0
  183. package/dist/coolandlovely/pages/customer/OrderTrackingPage.d.ts.map +1 -0
  184. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +388 -0
  185. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -0
  186. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.d.ts +11 -0
  187. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.d.ts.map +1 -0
  188. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +488 -0
  189. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -0
  190. package/dist/coolandlovely/pages/customer/ReviewsPage.d.ts +11 -0
  191. package/dist/coolandlovely/pages/customer/ReviewsPage.d.ts.map +1 -0
  192. package/dist/coolandlovely/pages/customer/ReviewsPage.js +606 -0
  193. package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -0
  194. package/dist/coolandlovely/pages/customer/SavedAddressesPage.d.ts +10 -0
  195. package/dist/coolandlovely/pages/customer/SavedAddressesPage.d.ts.map +1 -0
  196. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +443 -0
  197. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -0
  198. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.d.ts +10 -0
  199. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.d.ts.map +1 -0
  200. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +849 -0
  201. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -0
  202. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.d.ts +10 -0
  203. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.d.ts.map +1 -0
  204. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +939 -0
  205. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -0
  206. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.d.ts +11 -0
  207. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.d.ts.map +1 -0
  208. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +681 -0
  209. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -0
  210. package/dist/coolandlovely/pages/investor/InvestorDashboard.d.ts +9 -0
  211. package/dist/coolandlovely/pages/investor/InvestorDashboard.d.ts.map +1 -0
  212. package/dist/coolandlovely/pages/investor/InvestorDashboard.js +419 -0
  213. package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -0
  214. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.d.ts +10 -0
  215. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.d.ts.map +1 -0
  216. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +399 -0
  217. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -0
  218. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.d.ts +10 -0
  219. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.d.ts.map +1 -0
  220. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +569 -0
  221. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -0
  222. package/dist/coolandlovely/pages/investor/InvestorProfilePage.d.ts +12 -0
  223. package/dist/coolandlovely/pages/investor/InvestorProfilePage.d.ts.map +1 -0
  224. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +1065 -0
  225. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -0
  226. package/dist/coolandlovely/pages/worker/TaskDetailsPage.d.ts +22 -0
  227. package/dist/coolandlovely/pages/worker/TaskDetailsPage.d.ts.map +1 -0
  228. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +496 -0
  229. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -0
  230. package/dist/coolandlovely/pages/worker/WorkerDashboard.d.ts +18 -0
  231. package/dist/coolandlovely/pages/worker/WorkerDashboard.d.ts.map +1 -0
  232. package/dist/coolandlovely/pages/worker/WorkerDashboard.js +634 -0
  233. package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -0
  234. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.d.ts +18 -0
  235. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.d.ts.map +1 -0
  236. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +675 -0
  237. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -0
  238. package/dist/coolandlovely/pages/worker/WorkerProfilePage.d.ts +18 -0
  239. package/dist/coolandlovely/pages/worker/WorkerProfilePage.d.ts.map +1 -0
  240. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +687 -0
  241. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -0
  242. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.d.ts +17 -0
  243. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.d.ts.map +1 -0
  244. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +578 -0
  245. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -0
  246. package/dist/coolandlovely/store/coolandlovelyStore.d.ts +60 -0
  247. package/dist/coolandlovely/store/coolandlovelyStore.d.ts.map +1 -0
  248. package/dist/coolandlovely/store/coolandlovelyStore.js +38 -0
  249. package/dist/coolandlovely/store/coolandlovelyStore.js.map +1 -0
  250. package/dist/coolandlovely/store/index.d.ts +6 -0
  251. package/dist/coolandlovely/store/index.d.ts.map +1 -0
  252. package/dist/coolandlovely/store/index.js +1 -0
  253. package/dist/coolandlovely/types/index.d.ts +458 -0
  254. package/dist/coolandlovely/types/index.d.ts.map +1 -0
  255. package/dist/coolandlovely/utils/cn.d.ts +4 -0
  256. package/dist/coolandlovely/utils/cn.d.ts.map +1 -0
  257. package/dist/coolandlovely/utils/cn.js +10 -0
  258. package/dist/coolandlovely/utils/cn.js.map +1 -0
  259. package/dist/coolandlovely/utils/formatters.d.ts +78 -0
  260. package/dist/coolandlovely/utils/formatters.d.ts.map +1 -0
  261. package/dist/coolandlovely/utils/formatters.js +51 -0
  262. package/dist/coolandlovely/utils/formatters.js.map +1 -0
  263. package/dist/coolandlovely/utils/index.d.ts +8 -0
  264. package/dist/coolandlovely/utils/index.d.ts.map +1 -0
  265. package/dist/coolandlovely/utils/navigation.d.ts +20 -0
  266. package/dist/coolandlovely/utils/navigation.d.ts.map +1 -0
  267. package/dist/coolandlovely/utils/navigation.js +9 -0
  268. package/dist/coolandlovely/utils/navigation.js.map +1 -0
  269. package/dist/generated/global-operations.d.ts +2 -0
  270. package/dist/generated/global-operations.d.ts.map +1 -0
  271. package/dist/generated/global-types.d.ts +23527 -0
  272. package/dist/generated/global-types.d.ts.map +1 -0
  273. package/dist/generated/wspace-operations.d.ts +2 -0
  274. package/dist/generated/wspace-operations.d.ts.map +1 -0
  275. package/dist/generated/wspace-types.d.ts +57851 -0
  276. package/dist/generated/wspace-types.d.ts.map +1 -0
  277. package/dist/index.d.ts +6 -0
  278. package/dist/index.d.ts.map +1 -0
  279. package/dist/index.js +7 -0
  280. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -0
  281. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
  282. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  283. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  284. package/package.json +106 -0
@@ -0,0 +1,700 @@
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 { useState as r } from "react";
5
+ import { AlertCircle as i, Bell as a, CheckCircle2 as o, Clock as s, Link2 as c, MapPin as l, Phone as u, Save as d, Shield as f, Store as p } from "lucide-react";
6
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
7
+ //#region src/coolandlovely/pages/cart-owner/BusinessSettingsPage.tsx
8
+ var _ = [
9
+ {
10
+ id: "general",
11
+ label: "General",
12
+ icon: p
13
+ },
14
+ {
15
+ id: "contact",
16
+ label: "Contact",
17
+ icon: u
18
+ },
19
+ {
20
+ id: "location",
21
+ label: "Location",
22
+ icon: l
23
+ },
24
+ {
25
+ id: "operating",
26
+ label: "Operating",
27
+ icon: s
28
+ },
29
+ {
30
+ id: "policies",
31
+ label: "Policies",
32
+ icon: f
33
+ },
34
+ {
35
+ id: "notifications",
36
+ label: "Notifications",
37
+ icon: a
38
+ },
39
+ {
40
+ id: "integration",
41
+ label: "Integrations",
42
+ icon: c
43
+ }
44
+ ], v = [
45
+ "Food & Beverage",
46
+ "Personal Care & Beauty",
47
+ "Repair & Maintenance",
48
+ "Home Services",
49
+ "Clothing & Fashion",
50
+ "Health & Wellness",
51
+ "Education & Skills",
52
+ "Retail & Merchandise",
53
+ "Grocery & Essentials"
54
+ ], y = ({ label: e, value: t, onChange: n, type: r = "text", options: i, placeholder: a, hint: o, rows: s = 3 }) => {
55
+ let c = e.toLowerCase().replace(/\s+/g, "-");
56
+ return /* @__PURE__ */ g("div", { children: [
57
+ /* @__PURE__ */ h("label", {
58
+ htmlFor: c,
59
+ className: "block text-sm font-medium text-foreground mb-1.5",
60
+ children: e
61
+ }),
62
+ r === "textarea" ? /* @__PURE__ */ h("textarea", {
63
+ id: c,
64
+ value: t,
65
+ onChange: (e) => n(e.target.value),
66
+ rows: s,
67
+ placeholder: a,
68
+ className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring resize-none"
69
+ }) : r === "select" ? /* @__PURE__ */ h("select", {
70
+ id: c,
71
+ value: t,
72
+ onChange: (e) => n(e.target.value),
73
+ className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring",
74
+ children: i?.map((e) => /* @__PURE__ */ h("option", {
75
+ value: e,
76
+ children: e
77
+ }, e))
78
+ }) : /* @__PURE__ */ h("input", {
79
+ id: c,
80
+ type: r,
81
+ value: t,
82
+ onChange: (e) => n(e.target.value),
83
+ placeholder: a,
84
+ className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
85
+ }),
86
+ o && /* @__PURE__ */ h("p", {
87
+ className: "mt-1 text-xs text-muted-foreground",
88
+ children: o
89
+ })
90
+ ] });
91
+ }, b = ({ label: e, description: n, checked: r, onChange: i }) => /* @__PURE__ */ g("div", {
92
+ className: "flex items-center justify-between py-3",
93
+ children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
94
+ className: "text-sm font-medium text-foreground",
95
+ children: e
96
+ }), n && /* @__PURE__ */ h("p", {
97
+ className: "text-xs text-muted-foreground mt-0.5",
98
+ children: n
99
+ })] }), /* @__PURE__ */ h("button", {
100
+ type: "button",
101
+ onClick: () => i(!r),
102
+ className: t("h-6 w-11 rounded-full transition-colors relative", r ? "bg-blue-500" : "bg-muted-foreground/30"),
103
+ children: /* @__PURE__ */ h("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", r ? "translate-x-5" : "translate-x-0.5") })
104
+ })]
105
+ }), x = () => {
106
+ let { navigateTo: a } = e(), [s, c] = r("general"), [l, u] = r(!1), [f, p] = r(!1), [x, S] = r({
107
+ businessName: "Dosa Express",
108
+ description: "Authentic South Indian street food with a modern twist. Serving crispy dosas, filter coffee, and more since 2020.",
109
+ category: "Food & Beverage",
110
+ gstNumber: "29ABCDE1234F1Z5",
111
+ panNumber: "ABCDE1234F",
112
+ fssaiLicense: "12345678",
113
+ establishedYear: "2020"
114
+ }), [C, w] = r({
115
+ phone: "+91-9876543210",
116
+ email: "ravi@dosaexpress.in",
117
+ website: "https://dosaexpress.in",
118
+ whatsapp: "+91-9876543210",
119
+ instagram: "@dosaexpress",
120
+ twitter: "@dosaexpress",
121
+ facebook: "dosaexpress"
122
+ }), [T, E] = r({
123
+ address: "Koramangala 5th Block",
124
+ city: "Bangalore",
125
+ state: "Karnataka",
126
+ pincode: "560034",
127
+ latitude: "12.9352",
128
+ longitude: "77.6245",
129
+ deliveryRadius: 5,
130
+ deliveryCharge: 30,
131
+ freeDeliveryAbove: 300
132
+ }), [D, O] = r({
133
+ autoAcceptOrders: !0,
134
+ preparationTime: 15,
135
+ maxConcurrentOrders: 10,
136
+ advanceBookingDays: 3
137
+ }), [k, A] = r({
138
+ returnPolicy: "Items can be returned within 30 minutes of delivery if there are quality issues. Refund will be processed within 2-3 business days.",
139
+ cancellationPolicy: "Orders can be cancelled within 2 minutes of placing. After preparation starts, cancellation is not allowed.",
140
+ privacyPolicy: "We collect and process your data in accordance with applicable privacy laws. Your data is never shared with third parties without consent.",
141
+ termsOfService: "By using our services, you agree to our terms. All prices are inclusive of taxes unless stated otherwise."
142
+ }), [j, M] = r({
143
+ newOrderEmail: !0,
144
+ newOrderSms: !0,
145
+ newOrderPush: !0,
146
+ orderUpdateEmail: !0,
147
+ orderUpdatePush: !0,
148
+ dailySummaryEmail: !0,
149
+ weeklySummaryEmail: !1,
150
+ lowStockAlert: !0,
151
+ reviewNotification: !0,
152
+ marketingEmails: !1
153
+ }), [N, P] = r({
154
+ paymentGateway: "razorpay",
155
+ paymentGatewayKey: "rzp_live_xxxxxxxx",
156
+ smsProvider: "twilio",
157
+ smsApiKey: "",
158
+ analyticsId: ""
159
+ }), F = () => {
160
+ u(!0), setTimeout(() => {
161
+ u(!1), p(!0), setTimeout(() => p(!1), 3e3);
162
+ }, 1e3);
163
+ }, I = (e) => (t) => S((n) => ({
164
+ ...n,
165
+ [e]: t
166
+ })), L = (e) => (t) => w((n) => ({
167
+ ...n,
168
+ [e]: t
169
+ })), R = (e) => (t) => E((n) => ({
170
+ ...n,
171
+ [e]: e === "deliveryRadius" || e === "deliveryCharge" || e === "freeDeliveryAbove" ? parseInt(t) || 0 : t
172
+ })), z = (e) => (t) => A((n) => ({
173
+ ...n,
174
+ [e]: t
175
+ })), B = (e) => (t) => M((n) => ({
176
+ ...n,
177
+ [e]: t
178
+ })), V = (e) => (t) => P((n) => ({
179
+ ...n,
180
+ [e]: t
181
+ }));
182
+ return _.find((e) => e.id === s)?.icon, /* @__PURE__ */ h(n, {
183
+ title: "Business Settings",
184
+ description: "Manage your business profile and configuration",
185
+ actions: /* @__PURE__ */ h("button", {
186
+ type: "button",
187
+ onClick: F,
188
+ disabled: l,
189
+ className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", f ? "bg-green-500/10 text-green-600 dark:text-green-400" : l ? "bg-muted text-muted-foreground cursor-not-allowed" : "bg-accent text-foreground hover:bg-accent/80"),
190
+ children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
191
+ }),
192
+ children: /* @__PURE__ */ g("div", {
193
+ className: "flex flex-col lg:flex-row gap-6",
194
+ children: [
195
+ /* @__PURE__ */ h("div", {
196
+ className: "lg:hidden",
197
+ children: /* @__PURE__ */ h("div", {
198
+ className: "rounded-lg border border-border bg-card p-3 shadow-sm",
199
+ children: /* @__PURE__ */ h("div", {
200
+ className: "grid grid-cols-4 gap-2",
201
+ children: _.map((e) => {
202
+ let n = e.icon;
203
+ return /* @__PURE__ */ g("button", {
204
+ type: "button",
205
+ onClick: () => c(e.id),
206
+ className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", s === e.id ? "bg-accent text-foreground" : "text-muted-foreground hover:bg-muted"),
207
+ children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
208
+ className: "hidden sm:inline",
209
+ children: e.label
210
+ })]
211
+ }, e.id);
212
+ })
213
+ })
214
+ })
215
+ }),
216
+ /* @__PURE__ */ h("div", {
217
+ className: "hidden lg:block lg:w-56 shrink-0",
218
+ children: /* @__PURE__ */ g("div", {
219
+ className: "rounded-lg border border-border bg-card shadow-sm sticky top-24",
220
+ children: [/* @__PURE__ */ h("div", {
221
+ className: "p-4 border-b border-border",
222
+ children: /* @__PURE__ */ h("h2", {
223
+ className: "font-semibold text-foreground text-sm",
224
+ children: "Settings"
225
+ })
226
+ }), /* @__PURE__ */ h("nav", {
227
+ className: "p-2",
228
+ children: _.map((e) => {
229
+ let n = e.icon;
230
+ return /* @__PURE__ */ g("button", {
231
+ type: "button",
232
+ onClick: () => c(e.id),
233
+ className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", s === e.id ? "bg-accent text-foreground font-medium" : "text-muted-foreground hover:bg-muted hover:text-foreground"),
234
+ children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), e.label]
235
+ }, e.id);
236
+ })
237
+ })]
238
+ })
239
+ }),
240
+ /* @__PURE__ */ h("div", {
241
+ className: "flex-1 min-w-0",
242
+ children: /* @__PURE__ */ g("div", {
243
+ className: "rounded-lg border border-border bg-card p-5 sm:p-6 shadow-sm",
244
+ children: [
245
+ s === "general" && /* @__PURE__ */ g("div", {
246
+ className: "space-y-5",
247
+ children: [
248
+ /* @__PURE__ */ h(y, {
249
+ label: "Business Name",
250
+ value: x.businessName,
251
+ onChange: I("businessName")
252
+ }),
253
+ /* @__PURE__ */ h(y, {
254
+ label: "Description",
255
+ value: x.description,
256
+ onChange: I("description"),
257
+ type: "textarea"
258
+ }),
259
+ /* @__PURE__ */ g("div", {
260
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
261
+ children: [/* @__PURE__ */ h(y, {
262
+ label: "Category",
263
+ value: x.category,
264
+ onChange: I("category"),
265
+ type: "select",
266
+ options: v
267
+ }), /* @__PURE__ */ h(y, {
268
+ label: "Established Year",
269
+ value: x.establishedYear,
270
+ onChange: I("establishedYear")
271
+ })]
272
+ }),
273
+ /* @__PURE__ */ g("div", {
274
+ className: "flex items-start gap-3 rounded-md bg-blue-500/5 border border-blue-500/20 p-3",
275
+ children: [/* @__PURE__ */ h(i, { className: "h-4 w-4 text-blue-600 dark:text-blue-400 shrink-0 mt-0.5" }), /* @__PURE__ */ h("p", {
276
+ className: "text-xs text-blue-600 dark:text-blue-400",
277
+ children: "GST, PAN, and FSSAI details are used for invoicing and compliance. Changes require verification."
278
+ })]
279
+ }),
280
+ /* @__PURE__ */ g("div", {
281
+ className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
282
+ children: [
283
+ /* @__PURE__ */ h(y, {
284
+ label: "GST Number",
285
+ value: x.gstNumber,
286
+ onChange: I("gstNumber"),
287
+ hint: "15-digit GST ID"
288
+ }),
289
+ /* @__PURE__ */ h(y, {
290
+ label: "PAN Number",
291
+ value: x.panNumber,
292
+ onChange: I("panNumber"),
293
+ hint: "10-digit PAN"
294
+ }),
295
+ /* @__PURE__ */ h(y, {
296
+ label: "FSSAI License",
297
+ value: x.fssaiLicense,
298
+ onChange: I("fssaiLicense"),
299
+ hint: "FSSAI license number"
300
+ })
301
+ ]
302
+ })
303
+ ]
304
+ }),
305
+ s === "contact" && /* @__PURE__ */ g("div", {
306
+ className: "space-y-5",
307
+ children: [
308
+ /* @__PURE__ */ g("div", {
309
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
310
+ children: [/* @__PURE__ */ h(y, {
311
+ label: "Phone",
312
+ value: C.phone,
313
+ onChange: L("phone"),
314
+ type: "tel"
315
+ }), /* @__PURE__ */ h(y, {
316
+ label: "Email",
317
+ value: C.email,
318
+ onChange: L("email"),
319
+ type: "email"
320
+ })]
321
+ }),
322
+ /* @__PURE__ */ g("div", {
323
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
324
+ children: [/* @__PURE__ */ h(y, {
325
+ label: "Website",
326
+ value: C.website,
327
+ onChange: L("website"),
328
+ type: "url",
329
+ placeholder: "https://"
330
+ }), /* @__PURE__ */ h(y, {
331
+ label: "WhatsApp",
332
+ value: C.whatsapp,
333
+ onChange: L("whatsapp"),
334
+ type: "tel"
335
+ })]
336
+ }),
337
+ /* @__PURE__ */ h("h3", {
338
+ className: "text-sm font-semibold text-foreground pt-2",
339
+ children: "Social Media"
340
+ }),
341
+ /* @__PURE__ */ g("div", {
342
+ className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
343
+ children: [
344
+ /* @__PURE__ */ h(y, {
345
+ label: "Instagram",
346
+ value: C.instagram,
347
+ onChange: L("instagram"),
348
+ placeholder: "@handle"
349
+ }),
350
+ /* @__PURE__ */ h(y, {
351
+ label: "Twitter / X",
352
+ value: C.twitter,
353
+ onChange: L("twitter"),
354
+ placeholder: "@handle"
355
+ }),
356
+ /* @__PURE__ */ h(y, {
357
+ label: "Facebook",
358
+ value: C.facebook,
359
+ onChange: L("facebook"),
360
+ placeholder: "Page name"
361
+ })
362
+ ]
363
+ })
364
+ ]
365
+ }),
366
+ s === "location" && /* @__PURE__ */ g("div", {
367
+ className: "space-y-5",
368
+ children: [
369
+ /* @__PURE__ */ h(y, {
370
+ label: "Address",
371
+ value: T.address,
372
+ onChange: R("address"),
373
+ type: "textarea",
374
+ rows: 2
375
+ }),
376
+ /* @__PURE__ */ g("div", {
377
+ className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
378
+ children: [
379
+ /* @__PURE__ */ h(y, {
380
+ label: "City",
381
+ value: T.city,
382
+ onChange: R("city")
383
+ }),
384
+ /* @__PURE__ */ h(y, {
385
+ label: "State",
386
+ value: T.state,
387
+ onChange: R("state")
388
+ }),
389
+ /* @__PURE__ */ h(y, {
390
+ label: "Pincode",
391
+ value: T.pincode,
392
+ onChange: R("pincode")
393
+ })
394
+ ]
395
+ }),
396
+ /* @__PURE__ */ g("div", {
397
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
398
+ children: [/* @__PURE__ */ h(y, {
399
+ label: "Latitude",
400
+ value: T.latitude,
401
+ onChange: R("latitude"),
402
+ hint: "e.g., 12.9352"
403
+ }), /* @__PURE__ */ h(y, {
404
+ label: "Longitude",
405
+ value: T.longitude,
406
+ onChange: R("longitude"),
407
+ hint: "e.g., 77.6245"
408
+ })]
409
+ }),
410
+ /* @__PURE__ */ h("h3", {
411
+ className: "text-sm font-semibold text-foreground pt-2",
412
+ children: "Delivery Settings"
413
+ }),
414
+ /* @__PURE__ */ g("div", {
415
+ className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
416
+ children: [
417
+ /* @__PURE__ */ h(y, {
418
+ label: "Delivery Radius (km)",
419
+ value: T.deliveryRadius,
420
+ onChange: R("deliveryRadius"),
421
+ type: "number"
422
+ }),
423
+ /* @__PURE__ */ h(y, {
424
+ label: "Delivery Charge (₹)",
425
+ value: T.deliveryCharge,
426
+ onChange: R("deliveryCharge"),
427
+ type: "number"
428
+ }),
429
+ /* @__PURE__ */ h(y, {
430
+ label: "Free Delivery Above (₹)",
431
+ value: T.freeDeliveryAbove,
432
+ onChange: R("freeDeliveryAbove"),
433
+ type: "number"
434
+ })
435
+ ]
436
+ })
437
+ ]
438
+ }),
439
+ s === "operating" && /* @__PURE__ */ g("div", {
440
+ className: "space-y-5",
441
+ children: [/* @__PURE__ */ h(b, {
442
+ label: "Auto-Accept Orders",
443
+ description: "Automatically accept incoming orders without manual confirmation",
444
+ checked: D.autoAcceptOrders,
445
+ onChange: (e) => O((t) => ({
446
+ ...t,
447
+ autoAcceptOrders: e
448
+ }))
449
+ }), /* @__PURE__ */ g("div", {
450
+ className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
451
+ children: [
452
+ /* @__PURE__ */ h(y, {
453
+ label: "Default Preparation Time (min)",
454
+ value: D.preparationTime,
455
+ onChange: (e) => O((t) => ({
456
+ ...t,
457
+ preparationTime: parseInt(e) || 0
458
+ })),
459
+ type: "number"
460
+ }),
461
+ /* @__PURE__ */ h(y, {
462
+ label: "Max Concurrent Orders",
463
+ value: D.maxConcurrentOrders,
464
+ onChange: (e) => O((t) => ({
465
+ ...t,
466
+ maxConcurrentOrders: parseInt(e) || 0
467
+ })),
468
+ type: "number"
469
+ }),
470
+ /* @__PURE__ */ h(y, {
471
+ label: "Advance Booking (days)",
472
+ value: D.advanceBookingDays,
473
+ onChange: (e) => O((t) => ({
474
+ ...t,
475
+ advanceBookingDays: parseInt(e) || 0
476
+ })),
477
+ type: "number"
478
+ })
479
+ ]
480
+ })]
481
+ }),
482
+ s === "policies" && /* @__PURE__ */ g("div", {
483
+ className: "space-y-5",
484
+ children: [
485
+ /* @__PURE__ */ h(y, {
486
+ label: "Return Policy",
487
+ value: k.returnPolicy,
488
+ onChange: z("returnPolicy"),
489
+ type: "textarea",
490
+ rows: 4
491
+ }),
492
+ /* @__PURE__ */ h(y, {
493
+ label: "Cancellation Policy",
494
+ value: k.cancellationPolicy,
495
+ onChange: z("cancellationPolicy"),
496
+ type: "textarea",
497
+ rows: 4
498
+ }),
499
+ /* @__PURE__ */ h(y, {
500
+ label: "Privacy Policy",
501
+ value: k.privacyPolicy,
502
+ onChange: z("privacyPolicy"),
503
+ type: "textarea",
504
+ rows: 4
505
+ }),
506
+ /* @__PURE__ */ h(y, {
507
+ label: "Terms of Service",
508
+ value: k.termsOfService,
509
+ onChange: z("termsOfService"),
510
+ type: "textarea",
511
+ rows: 4
512
+ })
513
+ ]
514
+ }),
515
+ s === "notifications" && /* @__PURE__ */ g("div", {
516
+ className: "space-y-1 divide-y divide-border",
517
+ children: [
518
+ /* @__PURE__ */ h("h3", {
519
+ className: "text-sm font-semibold text-foreground pb-2",
520
+ children: "New Orders"
521
+ }),
522
+ /* @__PURE__ */ h(b, {
523
+ label: "Email Notification",
524
+ description: "Receive email for new orders",
525
+ checked: j.newOrderEmail,
526
+ onChange: B("newOrderEmail")
527
+ }),
528
+ /* @__PURE__ */ h(b, {
529
+ label: "SMS Notification",
530
+ description: "Receive SMS for new orders",
531
+ checked: j.newOrderSms,
532
+ onChange: B("newOrderSms")
533
+ }),
534
+ /* @__PURE__ */ h(b, {
535
+ label: "Push Notification",
536
+ description: "Receive push notifications for new orders",
537
+ checked: j.newOrderPush,
538
+ onChange: B("newOrderPush")
539
+ }),
540
+ /* @__PURE__ */ h("h3", {
541
+ className: "text-sm font-semibold text-foreground pt-4 pb-2",
542
+ children: "Order Updates"
543
+ }),
544
+ /* @__PURE__ */ h(b, {
545
+ label: "Email Updates",
546
+ description: "Get email when order status changes",
547
+ checked: j.orderUpdateEmail,
548
+ onChange: B("orderUpdateEmail")
549
+ }),
550
+ /* @__PURE__ */ h(b, {
551
+ label: "Push Updates",
552
+ description: "Get push notifications for order updates",
553
+ checked: j.orderUpdatePush,
554
+ onChange: B("orderUpdatePush")
555
+ }),
556
+ /* @__PURE__ */ h("h3", {
557
+ className: "text-sm font-semibold text-foreground pt-4 pb-2",
558
+ children: "Reports & Alerts"
559
+ }),
560
+ /* @__PURE__ */ h(b, {
561
+ label: "Daily Summary",
562
+ description: "Receive daily business summary email",
563
+ checked: j.dailySummaryEmail,
564
+ onChange: B("dailySummaryEmail")
565
+ }),
566
+ /* @__PURE__ */ h(b, {
567
+ label: "Weekly Summary",
568
+ description: "Receive weekly performance report",
569
+ checked: j.weeklySummaryEmail,
570
+ onChange: B("weeklySummaryEmail")
571
+ }),
572
+ /* @__PURE__ */ h(b, {
573
+ label: "Low Stock Alert",
574
+ description: "Get alerted when items are low on stock",
575
+ checked: j.lowStockAlert,
576
+ onChange: B("lowStockAlert")
577
+ }),
578
+ /* @__PURE__ */ h(b, {
579
+ label: "Review Notifications",
580
+ description: "Get notified for new customer reviews",
581
+ checked: j.reviewNotification,
582
+ onChange: B("reviewNotification")
583
+ }),
584
+ /* @__PURE__ */ h(b, {
585
+ label: "Marketing Emails",
586
+ description: "Receive tips and promotional content",
587
+ checked: j.marketingEmails,
588
+ onChange: B("marketingEmails")
589
+ })
590
+ ]
591
+ }),
592
+ s === "integration" && /* @__PURE__ */ g("div", {
593
+ className: "space-y-5",
594
+ children: [
595
+ /* @__PURE__ */ h("h3", {
596
+ className: "text-sm font-semibold text-foreground",
597
+ children: "Payment Gateway"
598
+ }),
599
+ /* @__PURE__ */ g("div", {
600
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
601
+ children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
602
+ className: "block text-sm font-medium text-foreground mb-1.5",
603
+ children: "Provider"
604
+ }), /* @__PURE__ */ g("select", {
605
+ value: N.paymentGateway,
606
+ onChange: (e) => V("paymentGateway")(e.target.value),
607
+ className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground",
608
+ children: [
609
+ /* @__PURE__ */ h("option", {
610
+ value: "razorpay",
611
+ children: "Razorpay"
612
+ }),
613
+ /* @__PURE__ */ h("option", {
614
+ value: "paytm",
615
+ children: "Paytm"
616
+ }),
617
+ /* @__PURE__ */ h("option", {
618
+ value: "stripe",
619
+ children: "Stripe"
620
+ }),
621
+ /* @__PURE__ */ h("option", {
622
+ value: "phonepe",
623
+ children: "PhonePe"
624
+ })
625
+ ]
626
+ })] }), /* @__PURE__ */ h(y, {
627
+ label: "API Key",
628
+ value: N.paymentGatewayKey,
629
+ onChange: V("paymentGatewayKey"),
630
+ placeholder: "Enter API key",
631
+ hint: "Keep this secret"
632
+ })]
633
+ }),
634
+ /* @__PURE__ */ h("h3", {
635
+ className: "text-sm font-semibold text-foreground pt-2",
636
+ children: "SMS Provider"
637
+ }),
638
+ /* @__PURE__ */ g("div", {
639
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
640
+ children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
641
+ className: "block text-sm font-medium text-foreground mb-1.5",
642
+ children: "Provider"
643
+ }), /* @__PURE__ */ g("select", {
644
+ value: N.smsProvider,
645
+ onChange: (e) => V("smsProvider")(e.target.value),
646
+ className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground",
647
+ children: [
648
+ /* @__PURE__ */ h("option", {
649
+ value: "twilio",
650
+ children: "Twilio"
651
+ }),
652
+ /* @__PURE__ */ h("option", {
653
+ value: "msg91",
654
+ children: "MSG91"
655
+ }),
656
+ /* @__PURE__ */ h("option", {
657
+ value: "textlocal",
658
+ children: "Textlocal"
659
+ })
660
+ ]
661
+ })] }), /* @__PURE__ */ h(y, {
662
+ label: "SMS API Key",
663
+ value: N.smsApiKey,
664
+ onChange: V("smsApiKey"),
665
+ placeholder: "Enter SMS API key"
666
+ })]
667
+ }),
668
+ /* @__PURE__ */ h("h3", {
669
+ className: "text-sm font-semibold text-foreground pt-2",
670
+ children: "Analytics"
671
+ }),
672
+ /* @__PURE__ */ h(y, {
673
+ label: "Google Analytics ID",
674
+ value: N.analyticsId,
675
+ onChange: V("analyticsId"),
676
+ placeholder: "GA-XXXXXXXXX"
677
+ })
678
+ ]
679
+ }),
680
+ /* @__PURE__ */ h("div", {
681
+ className: "flex justify-end mt-8 pt-6 border-t border-border",
682
+ children: /* @__PURE__ */ h("button", {
683
+ type: "button",
684
+ onClick: F,
685
+ disabled: l,
686
+ className: t("inline-flex items-center gap-2 rounded-md px-6 py-2 text-sm font-medium transition-colors", f ? "bg-green-500/10 text-green-600 dark:text-green-400" : l ? "bg-muted text-muted-foreground cursor-not-allowed" : "bg-accent text-foreground hover:bg-accent/80"),
687
+ children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
688
+ })
689
+ })
690
+ ]
691
+ })
692
+ })
693
+ ]
694
+ })
695
+ });
696
+ };
697
+ //#endregion
698
+ export { x as BusinessSettingsPage };
699
+
700
+ //# sourceMappingURL=BusinessSettingsPage.js.map