@customafk/lunas-ui 0.2.34 → 0.2.35

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 (372) hide show
  1. package/dist/{alert-BbInRLt4.mjs → alert-BbvPwf2x.mjs} +1 -1
  2. package/dist/{alert-BbInRLt4.mjs.map → alert-BbvPwf2x.mjs.map} +1 -1
  3. package/dist/{alert-DmaYqfy7.d.mts → alert-DGoFdiDI.d.cts} +6 -6
  4. package/dist/{alert-BFLT5Jqg.d.cts → alert-DZlPX4MK.d.mts} +7 -7
  5. package/dist/{alert-4rfsFtN6.cjs → alert-DubR6Szk.cjs} +1 -1
  6. package/dist/{alert-4rfsFtN6.cjs.map → alert-DubR6Szk.cjs.map} +1 -1
  7. package/dist/{avatar-aVxo69zP.cjs → avatar-CqRl9dge.cjs} +1 -1
  8. package/dist/{avatar-aVxo69zP.cjs.map → avatar-CqRl9dge.cjs.map} +1 -1
  9. package/dist/{avatar-1SuFoI5h.mjs → avatar-m1LjDIil.mjs} +1 -1
  10. package/dist/{avatar-1SuFoI5h.mjs.map → avatar-m1LjDIil.mjs.map} +1 -1
  11. package/dist/{badge-CSMgaMwT.d.cts → badge-D1Un985K.d.cts} +6 -6
  12. package/dist/{badge-Dxewfuj8.d.mts → badge-LtLg87DN.d.mts} +6 -6
  13. package/dist/{button-DeBpvNFE.d.mts → button-8OKxyueU.d.cts} +5 -5
  14. package/dist/{button-soF3CKai.d.cts → button-CdjZ5QJ8.d.mts} +6 -6
  15. package/dist/{calendar-CqeVe3HO.mjs → calendar-BDhIfwPP.mjs} +1 -1
  16. package/dist/{calendar-CqeVe3HO.mjs.map → calendar-BDhIfwPP.mjs.map} +1 -1
  17. package/dist/{calendar-Bt0rlJ89.cjs → calendar-CMd11yg9.cjs} +1 -1
  18. package/dist/{calendar-Bt0rlJ89.cjs.map → calendar-CMd11yg9.cjs.map} +1 -1
  19. package/dist/cards/simple-card.d.cts +2 -2
  20. package/dist/{checkbox-BQ_TclX9.cjs → checkbox-BwDvS4De.cjs} +1 -1
  21. package/dist/{checkbox-BQ_TclX9.cjs.map → checkbox-BwDvS4De.cjs.map} +1 -1
  22. package/dist/{checkbox-CrZ80dV_.mjs → checkbox-CgHaRkuU.mjs} +1 -1
  23. package/dist/{checkbox-CrZ80dV_.mjs.map → checkbox-CgHaRkuU.mjs.map} +1 -1
  24. package/dist/{close-DTBepcqW.mjs → close-B7OOMSZl.mjs} +1 -1
  25. package/dist/{close-DTBepcqW.mjs.map → close-B7OOMSZl.mjs.map} +1 -1
  26. package/dist/{close-DUBEKxhw.cjs → close-DrCUWZt0.cjs} +1 -1
  27. package/dist/{close-DUBEKxhw.cjs.map → close-DrCUWZt0.cjs.map} +1 -1
  28. package/dist/{cms-layout-DDs0pHWh.cjs → cms-layout-BrubV8D8.cjs} +2 -2
  29. package/dist/{cms-layout-DDs0pHWh.cjs.map → cms-layout-BrubV8D8.cjs.map} +1 -1
  30. package/dist/{cms-layout-BvaYr6rb.mjs → cms-layout-C2-yysO2.mjs} +2 -2
  31. package/dist/{cms-layout-BvaYr6rb.mjs.map → cms-layout-C2-yysO2.mjs.map} +1 -1
  32. package/dist/{command-B7DO73K0.cjs → command-DiXzSGc8.cjs} +2 -2
  33. package/dist/{command-B7DO73K0.cjs.map → command-DiXzSGc8.cjs.map} +1 -1
  34. package/dist/{command-YngzaaGP.mjs → command-FnbrPZ7_.mjs} +2 -2
  35. package/dist/{command-YngzaaGP.mjs.map → command-FnbrPZ7_.mjs.map} +1 -1
  36. package/dist/data-display/country.d.mts +1 -1
  37. package/dist/data-display/role-badge.d.mts +1 -1
  38. package/dist/data-display/statistic.cjs +1 -2
  39. package/dist/data-display/statistic.d.cts +1 -1
  40. package/dist/data-display/statistic.d.mts +6 -6
  41. package/dist/data-display/statistic.mjs +1 -2
  42. package/dist/data-display/user.cjs +1 -1
  43. package/dist/data-display/user.mjs +1 -1
  44. package/dist/{dialog-DhO0dkO3.cjs → dialog-D1sWnn6n.cjs} +2 -2
  45. package/dist/{dialog-DhO0dkO3.cjs.map → dialog-D1sWnn6n.cjs.map} +1 -1
  46. package/dist/{dialog-BQTnKhUH.d.cts → dialog-DolY0CYG.d.mts} +12 -12
  47. package/dist/{dialog-Bly2YImt.mjs → dialog-EGFZeITu.mjs} +2 -2
  48. package/dist/{dialog-Bly2YImt.mjs.map → dialog-EGFZeITu.mjs.map} +1 -1
  49. package/dist/{dialog-DDiSHKlc.d.mts → dialog-aguemTG1.d.cts} +12 -12
  50. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  51. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +2 -2
  52. package/dist/dialogs/detail-dialog/components/sidebar.d.mts +27 -27
  53. package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
  54. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  55. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  56. package/dist/dialogs/loading-dialog.cjs +1 -1
  57. package/dist/dialogs/loading-dialog.mjs +1 -1
  58. package/dist/{drawer-C3o6IEeq.cjs → drawer-B6C8-Ndu.cjs} +1 -1
  59. package/dist/{drawer-C3o6IEeq.cjs.map → drawer-B6C8-Ndu.cjs.map} +1 -1
  60. package/dist/{drawer-B3GpKBZs.mjs → drawer-CMD7JWH8.mjs} +1 -1
  61. package/dist/{drawer-B3GpKBZs.mjs.map → drawer-CMD7JWH8.mjs.map} +1 -1
  62. package/dist/{dropdown-menu-DMwvWoxe.cjs → dropdown-menu-Bz7oMQ36.cjs} +1 -1
  63. package/dist/{dropdown-menu-DMwvWoxe.cjs.map → dropdown-menu-Bz7oMQ36.cjs.map} +1 -1
  64. package/dist/{dropdown-menu-BjckWIZH.mjs → dropdown-menu-C6tRSumY.mjs} +1 -1
  65. package/dist/{dropdown-menu-BjckWIZH.mjs.map → dropdown-menu-C6tRSumY.mjs.map} +1 -1
  66. package/dist/features/descriptions/index.cjs +1 -1
  67. package/dist/features/descriptions/index.d.cts +7 -7
  68. package/dist/features/descriptions/index.d.mts +5 -5
  69. package/dist/features/descriptions/index.mjs +1 -1
  70. package/dist/features/search-modal/index.cjs +1 -1
  71. package/dist/features/search-modal/index.d.cts +2 -2
  72. package/dist/features/search-modal/index.d.mts +2 -2
  73. package/dist/features/search-modal/index.mjs +1 -1
  74. package/dist/features/tables/index.cjs +1 -1
  75. package/dist/features/tables/index.d.cts +2 -2
  76. package/dist/features/tables/index.d.mts +3 -3
  77. package/dist/features/tables/index.mjs +1 -1
  78. package/dist/features/tanstack-form/index.cjs +1 -1
  79. package/dist/features/tanstack-form/index.d.cts +1 -1
  80. package/dist/features/tanstack-form/index.d.mts +1 -1
  81. package/dist/features/tanstack-form/index.mjs +1 -1
  82. package/dist/features/text-editor/index.cjs +1 -1
  83. package/dist/features/text-editor/index.d.cts +1 -1
  84. package/dist/features/text-editor/index.d.mts +1 -1
  85. package/dist/features/text-editor/index.mjs +1 -1
  86. package/dist/{field-0SZIwI1Q.mjs → field-DhgAIueI.mjs} +2 -2
  87. package/dist/{field-0SZIwI1Q.mjs.map → field-DhgAIueI.mjs.map} +1 -1
  88. package/dist/{field-ThrHQOAI.cjs → field-pfL7RWcN.cjs} +2 -2
  89. package/dist/{field-ThrHQOAI.cjs.map → field-pfL7RWcN.cjs.map} +1 -1
  90. package/dist/{index-Btd0a1HO.d.cts → index-BhnqroF7.d.cts} +90 -41
  91. package/dist/{index-BUi04v_-.d.mts → index-BqGaIQNn.d.mts} +4 -4
  92. package/dist/{index-DWJlXfCi.d.mts → index-C45OSg1W.d.mts} +91 -42
  93. package/dist/{index-BFFBdGdv.d.mts → index-CgEghb4N.d.cts} +63 -63
  94. package/dist/{index-Cvjgsouk.d.cts → index-DfvBLw2O.d.mts} +368 -368
  95. package/dist/{index-B4tGZDYR.d.cts → index-DwS7a4RL.d.cts} +4 -4
  96. package/dist/index.cjs +1 -1
  97. package/dist/index.d.cts +9 -9
  98. package/dist/index.d.mts +9 -9
  99. package/dist/index.mjs +1 -1
  100. package/dist/{input-ESg91VId.mjs → input-5gk-Jv1y.mjs} +1 -1
  101. package/dist/{input-ESg91VId.mjs.map → input-5gk-Jv1y.mjs.map} +1 -1
  102. package/dist/{input-1ceJxxFI.cjs → input-BvzsfAUc.cjs} +1 -1
  103. package/dist/{input-1ceJxxFI.cjs.map → input-BvzsfAUc.cjs.map} +1 -1
  104. package/dist/{input-wQP8YLOp.d.mts → input-CZrWdm_Y.d.cts} +7 -7
  105. package/dist/{input-DHBWjFPA.d.cts → input-DcbOSbQr.d.mts} +7 -7
  106. package/dist/{label-Cig7a9ON.mjs → label-D9uNQ9b_.mjs} +1 -1
  107. package/dist/{label-Cig7a9ON.mjs.map → label-D9uNQ9b_.mjs.map} +1 -1
  108. package/dist/{label-BzfsTrVt.cjs → label-eIyGIRyw.cjs} +1 -1
  109. package/dist/{label-BzfsTrVt.cjs.map → label-eIyGIRyw.cjs.map} +1 -1
  110. package/dist/layouts/cms-layout/index.cjs +1 -1
  111. package/dist/layouts/cms-layout/index.mjs +1 -1
  112. package/dist/layouts/flex.d.cts +8 -8
  113. package/dist/layouts/flex.d.mts +10 -10
  114. package/dist/layouts/payment-layout/index.cjs +1 -1
  115. package/dist/layouts/payment-layout/index.mjs +1 -1
  116. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  117. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  118. package/dist/pages/FeatureFixing.d.cts +2 -2
  119. package/dist/pages/FeatureFixing.d.mts +2 -2
  120. package/dist/pages/LoginPage.cjs +1 -1
  121. package/dist/pages/LoginPage.d.cts +2 -2
  122. package/dist/pages/LoginPage.d.mts +2 -2
  123. package/dist/pages/LoginPage.mjs +1 -1
  124. package/dist/pages/NotAuthorized.d.mts +2 -2
  125. package/dist/pages/NotFound.d.cts +2 -2
  126. package/dist/pages/NotFound.d.mts +2 -2
  127. package/dist/pages/RegisterPage.cjs +1 -1
  128. package/dist/pages/RegisterPage.d.cts +2 -2
  129. package/dist/pages/RegisterPage.d.mts +2 -2
  130. package/dist/pages/RegisterPage.mjs +1 -1
  131. package/dist/pages/VerifyEmailPage.cjs +1 -1
  132. package/dist/pages/VerifyEmailPage.d.cts +2 -2
  133. package/dist/pages/VerifyEmailPage.d.mts +2 -2
  134. package/dist/pages/VerifyEmailPage.mjs +1 -1
  135. package/dist/{payment-layout-Bd4B4jhp.mjs → payment-layout-_ZM4uBy_.mjs} +2 -2
  136. package/dist/{payment-layout-Bd4B4jhp.mjs.map → payment-layout-_ZM4uBy_.mjs.map} +1 -1
  137. package/dist/{payment-layout-kh0lLq71.cjs → payment-layout-fsYTkw3r.cjs} +2 -2
  138. package/dist/{payment-layout-kh0lLq71.cjs.map → payment-layout-fsYTkw3r.cjs.map} +1 -1
  139. package/dist/{popover-BXktOcLz.mjs → popover-DwgdOX8a.mjs} +2 -2
  140. package/dist/{popover-BXktOcLz.mjs.map → popover-DwgdOX8a.mjs.map} +1 -1
  141. package/dist/{popover-DACS7x0e.cjs → popover-fsTCOb6a.cjs} +2 -2
  142. package/dist/{popover-DACS7x0e.cjs.map → popover-fsTCOb6a.cjs.map} +1 -1
  143. package/dist/{progress-BXWPPNt5.cjs → progress-CDYA2V-W.cjs} +1 -1
  144. package/dist/{progress-BXWPPNt5.cjs.map → progress-CDYA2V-W.cjs.map} +1 -1
  145. package/dist/{progress-bJYAFoHE.mjs → progress-DCBKnTx0.mjs} +1 -1
  146. package/dist/{progress-bJYAFoHE.mjs.map → progress-DCBKnTx0.mjs.map} +1 -1
  147. package/dist/{radio-group-Bv6w2woK.cjs → radio-group-B-M599Ys.cjs} +1 -1
  148. package/dist/{radio-group-Bv6w2woK.cjs.map → radio-group-B-M599Ys.cjs.map} +1 -1
  149. package/dist/{radio-group-CTILro-C.mjs → radio-group-Y9bhdr55.mjs} +1 -1
  150. package/dist/{radio-group-CTILro-C.mjs.map → radio-group-Y9bhdr55.mjs.map} +1 -1
  151. package/dist/{resizable-C7uLlTGB.cjs → resizable-DATSh0Du.cjs} +1 -1
  152. package/dist/{resizable-C7uLlTGB.cjs.map → resizable-DATSh0Du.cjs.map} +1 -1
  153. package/dist/{resizable-BNYc7hFd.mjs → resizable-DP1BQAF_.mjs} +1 -1
  154. package/dist/{resizable-BNYc7hFd.mjs.map → resizable-DP1BQAF_.mjs.map} +1 -1
  155. package/dist/{search-modal-CsYUvnWi.cjs → search-modal-CYRJEDE-.cjs} +2 -2
  156. package/dist/{search-modal-CsYUvnWi.cjs.map → search-modal-CYRJEDE-.cjs.map} +1 -1
  157. package/dist/{search-modal-D4ESSOU-.mjs → search-modal-DWu08xkE.mjs} +2 -2
  158. package/dist/{search-modal-D4ESSOU-.mjs.map → search-modal-DWu08xkE.mjs.map} +1 -1
  159. package/dist/{select-DMGFb8TB.mjs → select-BAlA65tZ.mjs} +1 -1
  160. package/dist/{select-DMGFb8TB.mjs.map → select-BAlA65tZ.mjs.map} +1 -1
  161. package/dist/{select-D0m78xbd.cjs → select-Cib2aiw5.cjs} +1 -1
  162. package/dist/{select-D0m78xbd.cjs.map → select-Cib2aiw5.cjs.map} +1 -1
  163. package/dist/{separator-DVaVWuNc.mjs → separator-C6s-YvlT.mjs} +1 -1
  164. package/dist/{separator-DVaVWuNc.mjs.map → separator-C6s-YvlT.mjs.map} +1 -1
  165. package/dist/{separator-jytY1CPq.cjs → separator-CBup_ah1.cjs} +1 -1
  166. package/dist/{separator-jytY1CPq.cjs.map → separator-CBup_ah1.cjs.map} +1 -1
  167. package/dist/{sheet-BoulTUHV.mjs → sheet-Cj8hoftE.mjs} +1 -1
  168. package/dist/{sheet-BoulTUHV.mjs.map → sheet-Cj8hoftE.mjs.map} +1 -1
  169. package/dist/{sheet-DuMrjidC.cjs → sheet-DAjZ-Q6Q.cjs} +1 -1
  170. package/dist/{sheet-DuMrjidC.cjs.map → sheet-DAjZ-Q6Q.cjs.map} +1 -1
  171. package/dist/{sidebar-BXrGXVxx.cjs → sidebar-Drasn0Bx.cjs} +2 -2
  172. package/dist/{sidebar-BXrGXVxx.cjs.map → sidebar-Drasn0Bx.cjs.map} +1 -1
  173. package/dist/{sidebar-xWo_Rfi-.mjs → sidebar-RcmDh50_.mjs} +2 -2
  174. package/dist/{sidebar-xWo_Rfi-.mjs.map → sidebar-RcmDh50_.mjs.map} +1 -1
  175. package/dist/{spinner-C2tF8jQt.mjs → spinner-BCnPYF1H.mjs} +1 -1
  176. package/dist/{spinner-C2tF8jQt.mjs.map → spinner-BCnPYF1H.mjs.map} +1 -1
  177. package/dist/{spinner-DgusnQMw.cjs → spinner-Bdta7BMp.cjs} +1 -1
  178. package/dist/{spinner-DgusnQMw.cjs.map → spinner-Bdta7BMp.cjs.map} +1 -1
  179. package/dist/statistic-Cm4nbkjQ.mjs +2 -0
  180. package/dist/statistic-Cm4nbkjQ.mjs.map +1 -0
  181. package/dist/statistic-DDDm5Om1.cjs +2 -0
  182. package/dist/statistic-DDDm5Om1.cjs.map +1 -0
  183. package/dist/{switch-CY25L6l0.mjs → switch-BP7EPatj.mjs} +1 -1
  184. package/dist/{switch-CY25L6l0.mjs.map → switch-BP7EPatj.mjs.map} +1 -1
  185. package/dist/{switch-0-9Zt33o.cjs → switch-Dbc77c_D.cjs} +1 -1
  186. package/dist/{switch-0-9Zt33o.cjs.map → switch-Dbc77c_D.cjs.map} +1 -1
  187. package/dist/tables-B3Ald6An.cjs +4 -0
  188. package/dist/tables-B3Ald6An.cjs.map +1 -0
  189. package/dist/tables-C3asiSD4.mjs +4 -0
  190. package/dist/tables-C3asiSD4.mjs.map +1 -0
  191. package/dist/{tanstack-form-Bof1jeRB.mjs → tanstack-form-BFX2-Tlo.mjs} +2 -2
  192. package/dist/{tanstack-form-Bof1jeRB.mjs.map → tanstack-form-BFX2-Tlo.mjs.map} +1 -1
  193. package/dist/{tanstack-form-BulYI2bY.cjs → tanstack-form-dHOZ76Jw.cjs} +2 -2
  194. package/dist/{tanstack-form-BulYI2bY.cjs.map → tanstack-form-dHOZ76Jw.cjs.map} +1 -1
  195. package/dist/{text-editor-CE_GkI7o.cjs → text-editor-BJBM0T1y.cjs} +1 -1
  196. package/dist/{text-editor-CE_GkI7o.cjs.map → text-editor-BJBM0T1y.cjs.map} +1 -1
  197. package/dist/{text-editor-D61C1dng.mjs → text-editor-CbBJNn-4.mjs} +1 -1
  198. package/dist/{text-editor-D61C1dng.mjs.map → text-editor-CbBJNn-4.mjs.map} +1 -1
  199. package/dist/{textarea-B8eQoQaZ.mjs → textarea-7HDXcaK9.mjs} +1 -1
  200. package/dist/{textarea-B8eQoQaZ.mjs.map → textarea-7HDXcaK9.mjs.map} +1 -1
  201. package/dist/{textarea-BB2WynyM.cjs → textarea-Byo8E8oi.cjs} +1 -1
  202. package/dist/{textarea-BB2WynyM.cjs.map → textarea-Byo8E8oi.cjs.map} +1 -1
  203. package/dist/{types-DmTyKdm7.d.mts → types-YLu40dXY.d.mts} +1 -1
  204. package/dist/typography/paragraph.d.cts +3 -3
  205. package/dist/typography/paragraph.d.mts +5 -5
  206. package/dist/ui/alert-dialog.d.cts +12 -12
  207. package/dist/ui/alert-dialog.d.mts +12 -12
  208. package/dist/ui/alert.cjs +1 -1
  209. package/dist/ui/alert.d.cts +1 -1
  210. package/dist/ui/alert.d.mts +1 -1
  211. package/dist/ui/alert.mjs +1 -1
  212. package/dist/ui/aspect-ratio.d.cts +2 -2
  213. package/dist/ui/aspect-ratio.d.mts +2 -2
  214. package/dist/ui/avatar.cjs +1 -1
  215. package/dist/ui/avatar.d.cts +4 -4
  216. package/dist/ui/avatar.d.mts +4 -4
  217. package/dist/ui/avatar.mjs +1 -1
  218. package/dist/ui/badge.d.cts +1 -1
  219. package/dist/ui/badge.d.mts +1 -1
  220. package/dist/ui/breadcrumb.d.cts +8 -8
  221. package/dist/ui/breadcrumb.d.mts +8 -8
  222. package/dist/ui/button-group.cjs +1 -1
  223. package/dist/ui/button-group.d.cts +6 -6
  224. package/dist/ui/button-group.d.mts +6 -6
  225. package/dist/ui/button-group.mjs +1 -1
  226. package/dist/ui/button.d.cts +1 -1
  227. package/dist/ui/button.d.mts +1 -1
  228. package/dist/ui/calendar.cjs +1 -1
  229. package/dist/ui/calendar.d.cts +4 -4
  230. package/dist/ui/calendar.d.mts +4 -4
  231. package/dist/ui/calendar.mjs +1 -1
  232. package/dist/ui/card.d.cts +8 -8
  233. package/dist/ui/card.d.mts +8 -8
  234. package/dist/ui/carousel.d.cts +7 -7
  235. package/dist/ui/carousel.d.mts +7 -7
  236. package/dist/ui/checkbox.cjs +1 -1
  237. package/dist/ui/checkbox.d.cts +2 -2
  238. package/dist/ui/checkbox.d.mts +2 -2
  239. package/dist/ui/checkbox.mjs +1 -1
  240. package/dist/ui/collapsible.d.cts +4 -4
  241. package/dist/ui/collapsible.d.mts +4 -4
  242. package/dist/ui/command.cjs +1 -1
  243. package/dist/ui/command.d.cts +11 -11
  244. package/dist/ui/command.d.mts +11 -11
  245. package/dist/ui/command.mjs +1 -1
  246. package/dist/ui/context-menu.d.cts +16 -16
  247. package/dist/ui/context-menu.d.mts +16 -16
  248. package/dist/ui/dialog.cjs +1 -1
  249. package/dist/ui/dialog.d.cts +1 -1
  250. package/dist/ui/dialog.d.mts +1 -1
  251. package/dist/ui/dialog.mjs +1 -1
  252. package/dist/ui/drawer.cjs +1 -1
  253. package/dist/ui/drawer.d.cts +11 -11
  254. package/dist/ui/drawer.d.mts +11 -11
  255. package/dist/ui/drawer.mjs +1 -1
  256. package/dist/ui/dropdown-menu.cjs +1 -1
  257. package/dist/ui/dropdown-menu.d.cts +16 -16
  258. package/dist/ui/dropdown-menu.d.mts +16 -16
  259. package/dist/ui/dropdown-menu.mjs +1 -1
  260. package/dist/ui/empty.d.cts +9 -9
  261. package/dist/ui/empty.d.mts +9 -9
  262. package/dist/ui/field.cjs +1 -1
  263. package/dist/ui/field.d.cts +23 -23
  264. package/dist/ui/field.d.mts +23 -23
  265. package/dist/ui/field.mjs +1 -1
  266. package/dist/ui/file-uploader.cjs +1 -1
  267. package/dist/ui/file-uploader.d.cts +2 -2
  268. package/dist/ui/file-uploader.d.mts +2 -2
  269. package/dist/ui/file-uploader.mjs +1 -1
  270. package/dist/ui/form.cjs +1 -1
  271. package/dist/ui/form.d.cts +10 -10
  272. package/dist/ui/form.d.mts +10 -10
  273. package/dist/ui/form.mjs +1 -1
  274. package/dist/ui/hover-card.d.cts +4 -4
  275. package/dist/ui/hover-card.d.mts +4 -4
  276. package/dist/ui/input-otp.d.cts +5 -5
  277. package/dist/ui/input-otp.d.mts +5 -5
  278. package/dist/ui/input.cjs +1 -1
  279. package/dist/ui/input.d.cts +1 -1
  280. package/dist/ui/input.d.mts +1 -1
  281. package/dist/ui/input.mjs +1 -1
  282. package/dist/ui/inputs/search-input.cjs +1 -1
  283. package/dist/ui/inputs/search-input.d.cts +3 -3
  284. package/dist/ui/inputs/search-input.d.mts +3 -3
  285. package/dist/ui/inputs/search-input.mjs +1 -1
  286. package/dist/ui/item.cjs +1 -1
  287. package/dist/ui/item.d.cts +15 -15
  288. package/dist/ui/item.d.mts +15 -15
  289. package/dist/ui/item.mjs +1 -1
  290. package/dist/ui/label.cjs +1 -1
  291. package/dist/ui/label.d.cts +2 -2
  292. package/dist/ui/label.d.mts +2 -2
  293. package/dist/ui/label.mjs +1 -1
  294. package/dist/ui/menubar.d.cts +17 -17
  295. package/dist/ui/menubar.d.mts +17 -17
  296. package/dist/ui/multi-select.cjs +1 -1
  297. package/dist/ui/multi-select.d.cts +2 -2
  298. package/dist/ui/multi-select.d.mts +3 -3
  299. package/dist/ui/multi-select.mjs +1 -1
  300. package/dist/ui/navigation-menu.d.cts +11 -11
  301. package/dist/ui/navigation-menu.d.mts +11 -11
  302. package/dist/ui/pagination.d.cts +9 -9
  303. package/dist/ui/pagination.d.mts +9 -9
  304. package/dist/ui/popover.cjs +1 -1
  305. package/dist/ui/popover.d.cts +6 -6
  306. package/dist/ui/popover.d.mts +6 -6
  307. package/dist/ui/popover.mjs +1 -1
  308. package/dist/ui/progress.cjs +1 -1
  309. package/dist/ui/progress.d.cts +2 -2
  310. package/dist/ui/progress.d.mts +2 -2
  311. package/dist/ui/progress.mjs +1 -1
  312. package/dist/ui/radio-group.cjs +1 -1
  313. package/dist/ui/radio-group.d.cts +3 -3
  314. package/dist/ui/radio-group.d.mts +3 -3
  315. package/dist/ui/radio-group.mjs +1 -1
  316. package/dist/ui/resizable.cjs +1 -1
  317. package/dist/ui/resizable.d.cts +9 -9
  318. package/dist/ui/resizable.d.mts +9 -9
  319. package/dist/ui/resizable.mjs +1 -1
  320. package/dist/ui/scroll-area.d.cts +5 -5
  321. package/dist/ui/scroll-area.d.mts +5 -5
  322. package/dist/ui/select.cjs +1 -1
  323. package/dist/ui/select.d.cts +9 -9
  324. package/dist/ui/select.d.mts +9 -9
  325. package/dist/ui/select.mjs +1 -1
  326. package/dist/ui/separator.cjs +1 -1
  327. package/dist/ui/separator.d.cts +2 -2
  328. package/dist/ui/separator.d.mts +2 -2
  329. package/dist/ui/separator.mjs +1 -1
  330. package/dist/ui/sheet.cjs +1 -1
  331. package/dist/ui/sheet.d.cts +9 -9
  332. package/dist/ui/sheet.d.mts +9 -9
  333. package/dist/ui/sheet.mjs +1 -1
  334. package/dist/ui/skeleton.d.cts +2 -2
  335. package/dist/ui/skeleton.d.mts +2 -2
  336. package/dist/ui/slider.d.cts +2 -2
  337. package/dist/ui/slider.d.mts +2 -2
  338. package/dist/ui/sonner.d.cts +2 -2
  339. package/dist/ui/sonner.d.mts +2 -2
  340. package/dist/ui/spinner.cjs +1 -1
  341. package/dist/ui/spinner.d.cts +2 -2
  342. package/dist/ui/spinner.d.mts +2 -2
  343. package/dist/ui/spinner.mjs +1 -1
  344. package/dist/ui/switch.cjs +1 -1
  345. package/dist/ui/switch.d.cts +2 -2
  346. package/dist/ui/switch.d.mts +2 -2
  347. package/dist/ui/switch.mjs +1 -1
  348. package/dist/ui/table.d.cts +17 -17
  349. package/dist/ui/table.d.mts +17 -17
  350. package/dist/ui/tabs.d.cts +5 -5
  351. package/dist/ui/tabs.d.mts +5 -5
  352. package/dist/ui/textarea.cjs +1 -1
  353. package/dist/ui/textarea.d.cts +2 -2
  354. package/dist/ui/textarea.d.mts +2 -2
  355. package/dist/ui/textarea.mjs +1 -1
  356. package/dist/ui/toggle-group.d.cts +3 -3
  357. package/dist/ui/toggle-group.d.mts +3 -3
  358. package/dist/ui/toggle.d.cts +5 -5
  359. package/dist/ui/toggle.d.mts +5 -5
  360. package/dist/ui/tooltip.d.cts +5 -5
  361. package/dist/ui/tooltip.d.mts +5 -5
  362. package/dist/{user-Cif7yb1w.mjs → user-D8Skw8dI.mjs} +2 -2
  363. package/dist/{user-Cif7yb1w.mjs.map → user-D8Skw8dI.mjs.map} +1 -1
  364. package/dist/{user-CQY0YnAc.cjs → user-Dns1BKaT.cjs} +2 -2
  365. package/dist/{user-CQY0YnAc.cjs.map → user-Dns1BKaT.cjs.map} +1 -1
  366. package/package.json +1 -1
  367. package/dist/data-display/statistic.cjs.map +0 -1
  368. package/dist/data-display/statistic.mjs.map +0 -1
  369. package/dist/tables-BvdD0_el.mjs +0 -4
  370. package/dist/tables-BvdD0_el.mjs.map +0 -1
  371. package/dist/tables-D1SMzDFu.cjs +0 -4
  372. package/dist/tables-D1SMzDFu.cjs.map +0 -1
@@ -1,18 +1,18 @@
1
- import * as react53 from "react";
1
+ import * as react2 from "react";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types3 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/layouts/flex.d.ts
6
6
  declare const flexVariants: (props?: ({
7
7
  vertical?: boolean | null | undefined;
8
8
  width?: "full" | "auto" | "fit" | "screen" | "min" | "max" | "null" | null | undefined;
9
9
  wrap?: boolean | null | undefined;
10
- margin?: "sm" | "lg" | "md" | "xl" | "none" | null | undefined;
11
- padding?: "sm" | "lg" | "md" | "xl" | "none" | null | undefined;
12
- gap?: "sm" | "lg" | "xs" | "md" | "xl" | "none" | null | undefined;
13
- justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | "stretch" | null | undefined;
14
- align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
15
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
10
+ margin?: "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
11
+ padding?: "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
12
+ gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
13
+ justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | "stretch" | null | undefined;
14
+ align?: "start" | "center" | "end" | "stretch" | "baseline" | null | undefined;
15
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
16
16
  type Props = {
17
17
  /** Additional Tailwind classes merged on top of the variant-generated classes. */
18
18
  className?: string;
@@ -100,7 +100,7 @@ type Props = {
100
100
  * </Flex>
101
101
  * ```
102
102
  */
103
- declare const Flex: react53.MemoExoticComponent<({
103
+ declare const Flex: react2.MemoExoticComponent<({
104
104
  vertical,
105
105
  wrap,
106
106
  width,
@@ -111,7 +111,7 @@ declare const Flex: react53.MemoExoticComponent<({
111
111
  align,
112
112
  className,
113
113
  children
114
- }: React.PropsWithChildren<Props>) => react53.JSX.Element>;
114
+ }: React.PropsWithChildren<Props>) => react2.JSX.Element>;
115
115
  //#endregion
116
116
  export { Flex };
117
117
  //# sourceMappingURL=flex.d.mts.map
@@ -1 +1 @@
1
- require(`../../button.variants-tnhb123u.cjs`),require(`../../button-Bu4ejNOW.cjs`),require(`../../paragraph-D-JHj7EP.cjs`),require(`../../skeleton-CHympz8k.cjs`),require(`../../flex-DYh2t8ft.cjs`),require(`../../tooltip-DC6i1A25.cjs`),require(`../../avatar-aVxo69zP.cjs`),require(`../../separator-jytY1CPq.cjs`),require(`../../sheet-DuMrjidC.cjs`),require(`../../dropdown-menu-DMwvWoxe.cjs`),require(`../../input-1ceJxxFI.cjs`);const e=require(`../../payment-layout-kh0lLq71.cjs`);exports.PaymentLayout=e.t;
1
+ require(`../../button.variants-tnhb123u.cjs`),require(`../../button-Bu4ejNOW.cjs`),require(`../../paragraph-D-JHj7EP.cjs`),require(`../../skeleton-CHympz8k.cjs`),require(`../../flex-DYh2t8ft.cjs`),require(`../../tooltip-DC6i1A25.cjs`),require(`../../avatar-CqRl9dge.cjs`),require(`../../separator-CBup_ah1.cjs`),require(`../../sheet-DAjZ-Q6Q.cjs`),require(`../../dropdown-menu-Bz7oMQ36.cjs`),require(`../../input-BvzsfAUc.cjs`);const e=require(`../../payment-layout-fsYTkw3r.cjs`);exports.PaymentLayout=e.t;
@@ -1 +1 @@
1
- import"../../button.variants-B8aRZ52K.mjs";import"../../button-CfPTDyoq.mjs";import"../../paragraph-CjstaJFj.mjs";import"../../skeleton-DupQ91XW.mjs";import"../../flex-BAcvp4lB.mjs";import"../../tooltip-BfBJRYpc.mjs";import"../../avatar-1SuFoI5h.mjs";import"../../separator-DVaVWuNc.mjs";import"../../sheet-BoulTUHV.mjs";import"../../dropdown-menu-BjckWIZH.mjs";import"../../input-ESg91VId.mjs";import{t as e}from"../../payment-layout-Bd4B4jhp.mjs";export{e as PaymentLayout};
1
+ import"../../button.variants-B8aRZ52K.mjs";import"../../button-CfPTDyoq.mjs";import"../../paragraph-CjstaJFj.mjs";import"../../skeleton-DupQ91XW.mjs";import"../../flex-BAcvp4lB.mjs";import"../../tooltip-BfBJRYpc.mjs";import"../../avatar-m1LjDIil.mjs";import"../../separator-C6s-YvlT.mjs";import"../../sheet-Cj8hoftE.mjs";import"../../dropdown-menu-C6tRSumY.mjs";import"../../input-5gk-Jv1y.mjs";import{t as e}from"../../payment-layout-_ZM4uBy_.mjs";export{e as PaymentLayout};
@@ -1,4 +1,4 @@
1
- import * as react26 from "react";
1
+ import * as react28 from "react";
2
2
 
3
3
  //#region packages/components/pages/FeatureDeveloping.d.ts
4
4
  interface FeatureDevelopingProps {
@@ -37,7 +37,7 @@ declare const FeatureDeveloping: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: FeatureDevelopingProps) => react26.JSX.Element;
40
+ }: FeatureDevelopingProps) => react28.JSX.Element;
41
41
  //#endregion
42
42
  export { FeatureDeveloping, FeatureDeveloping as default, FeatureDevelopingProps };
43
43
  //# sourceMappingURL=FeatureDeveloping.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react0 from "react";
1
+ import * as react5 from "react";
2
2
 
3
3
  //#region packages/components/pages/FeatureDeveloping.d.ts
4
4
  interface FeatureDevelopingProps {
@@ -37,7 +37,7 @@ declare const FeatureDeveloping: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: FeatureDevelopingProps) => react0.JSX.Element;
40
+ }: FeatureDevelopingProps) => react5.JSX.Element;
41
41
  //#endregion
42
42
  export { FeatureDeveloping, FeatureDeveloping as default, FeatureDevelopingProps };
43
43
  //# sourceMappingURL=FeatureDeveloping.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react2 from "react";
1
+ import * as react30 from "react";
2
2
 
3
3
  //#region packages/components/pages/FeatureFixing.d.ts
4
4
  interface FeatureFixingProps {
@@ -37,7 +37,7 @@ declare const FeatureFixing: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: FeatureFixingProps) => react2.JSX.Element;
40
+ }: FeatureFixingProps) => react30.JSX.Element;
41
41
  //#endregion
42
42
  export { FeatureFixing, FeatureFixing as default, FeatureFixingProps };
43
43
  //# sourceMappingURL=FeatureFixing.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react131 from "react";
1
+ import * as react30 from "react";
2
2
 
3
3
  //#region packages/components/pages/FeatureFixing.d.ts
4
4
  interface FeatureFixingProps {
@@ -37,7 +37,7 @@ declare const FeatureFixing: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: FeatureFixingProps) => react131.JSX.Element;
40
+ }: FeatureFixingProps) => react30.JSX.Element;
41
41
  //#endregion
42
42
  export { FeatureFixing, FeatureFixing as default, FeatureFixingProps };
43
43
  //# sourceMappingURL=FeatureFixing.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`);require(`../heading-wUXEbicM.cjs`),require(`../paragraph-D-JHj7EP.cjs`),require(`../close-DUBEKxhw.cjs`);const n=require(`../dialog-DhO0dkO3.cjs`),r=require(`../input-1ceJxxFI.cjs`),i=require(`../label-BzfsTrVt.cjs`),a=require(`../alert-4rfsFtN6.cjs`);let o=require(`lucide-react`),s=require(`react`),c=require(`react/jsx-runtime`),l=require(`zod`);const u=l.z.object({email:l.z.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:l.z.string().min(1,`Vui lòng nhập mật khẩu`)}),d=({open:e,onOpenChange:l,onLogin:d,onForgotPassword:f,onRegister:p,isLoading:m=!1,errorMessage:h,title:g=`Đăng nhập`,subtitle:_=`Nhập thông tin để tiếp tục`})=>{let v=(0,s.useId)(),y=(0,s.useId)(),[b,x]=(0,s.useState)(``),[S,C]=(0,s.useState)(``),[w,T]=(0,s.useState)(!1),[E,D]=(0,s.useState)({});return(0,c.jsx)(n.t,{open:e,onOpenChange:l,children:(0,c.jsxs)(n.r,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[(0,c.jsxs)(n.o,{children:[(0,c.jsx)(n.l,{children:g}),(0,c.jsx)(n.i,{children:_})]}),(0,c.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=u.safeParse({email:b,password:S});if(!t.success){let e=t.error.flatten().fieldErrors;D({email:e.email?.[0],password:e.password?.[0]});return}D({}),await d(b,S)},noValidate:!0,className:`flex flex-col gap-4`,children:[h&&(0,c.jsx)(a.t,{variant:`destructive`,children:(0,c.jsx)(a.n,{children:h})}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:v,children:`Email`}),(0,c.jsx)(r.t,{id:v,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:b,onChange:e=>x(e.target.value),"aria-invalid":!!E.email,disabled:m}),E.email&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:E.email})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,c.jsx)(i.t,{htmlFor:y,children:`Mật khẩu`}),f&&(0,c.jsx)(t.t,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs`,onClick:f,children:`Quên mật khẩu?`})]}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r.t,{id:y,type:w?`text`:`password`,autoComplete:`current-password`,placeholder:`••••••••`,value:S,onChange:e=>C(e.target.value),"aria-invalid":!!E.password,disabled:m,className:`pr-10`}),(0,c.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),T(e=>!e)},"aria-label":w?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:w?(0,c.jsx)(o.EyeOff,{size:16}):(0,c.jsx)(o.Eye,{size:16})})]}),E.password&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:E.password})]}),(0,c.jsx)(t.t,{type:`submit`,isLoading:m,className:`w-full`,children:`Đăng nhập`})]}),p&&(0,c.jsxs)(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[(0,c.jsx)(`span`,{children:`Chưa có tài khoản?`}),(0,c.jsx)(t.t,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:p,children:`Đăng ký`})]})]})})};exports.LoginPage=d;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`);require(`../heading-wUXEbicM.cjs`),require(`../paragraph-D-JHj7EP.cjs`),require(`../close-DrCUWZt0.cjs`);const n=require(`../dialog-D1sWnn6n.cjs`),r=require(`../input-BvzsfAUc.cjs`),i=require(`../label-eIyGIRyw.cjs`),a=require(`../alert-DubR6Szk.cjs`);let o=require(`lucide-react`),s=require(`react`),c=require(`react/jsx-runtime`),l=require(`zod`);const u=l.z.object({email:l.z.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:l.z.string().min(1,`Vui lòng nhập mật khẩu`)}),d=({open:e,onOpenChange:l,onLogin:d,onForgotPassword:f,onRegister:p,isLoading:m=!1,errorMessage:h,title:g=`Đăng nhập`,subtitle:_=`Nhập thông tin để tiếp tục`})=>{let v=(0,s.useId)(),y=(0,s.useId)(),[b,x]=(0,s.useState)(``),[S,C]=(0,s.useState)(``),[w,T]=(0,s.useState)(!1),[E,D]=(0,s.useState)({});return(0,c.jsx)(n.t,{open:e,onOpenChange:l,children:(0,c.jsxs)(n.r,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[(0,c.jsxs)(n.o,{children:[(0,c.jsx)(n.l,{children:g}),(0,c.jsx)(n.i,{children:_})]}),(0,c.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=u.safeParse({email:b,password:S});if(!t.success){let e=t.error.flatten().fieldErrors;D({email:e.email?.[0],password:e.password?.[0]});return}D({}),await d(b,S)},noValidate:!0,className:`flex flex-col gap-4`,children:[h&&(0,c.jsx)(a.t,{variant:`destructive`,children:(0,c.jsx)(a.n,{children:h})}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:v,children:`Email`}),(0,c.jsx)(r.t,{id:v,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:b,onChange:e=>x(e.target.value),"aria-invalid":!!E.email,disabled:m}),E.email&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:E.email})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,c.jsx)(i.t,{htmlFor:y,children:`Mật khẩu`}),f&&(0,c.jsx)(t.t,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs`,onClick:f,children:`Quên mật khẩu?`})]}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r.t,{id:y,type:w?`text`:`password`,autoComplete:`current-password`,placeholder:`••••••••`,value:S,onChange:e=>C(e.target.value),"aria-invalid":!!E.password,disabled:m,className:`pr-10`}),(0,c.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),T(e=>!e)},"aria-label":w?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:w?(0,c.jsx)(o.EyeOff,{size:16}):(0,c.jsx)(o.Eye,{size:16})})]}),E.password&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:E.password})]}),(0,c.jsx)(t.t,{type:`submit`,isLoading:m,className:`w-full`,children:`Đăng nhập`})]}),p&&(0,c.jsxs)(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[(0,c.jsx)(`span`,{children:`Chưa có tài khoản?`}),(0,c.jsx)(t.t,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:p,children:`Đăng ký`})]})]})})};exports.LoginPage=d;
2
2
  //# sourceMappingURL=LoginPage.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react28 from "react";
1
+ import * as react46 from "react";
2
2
 
3
3
  //#region packages/components/pages/LoginPage.d.ts
4
4
  interface LoginPageProps {
@@ -49,7 +49,7 @@ declare const LoginPage: ({
49
49
  errorMessage,
50
50
  title,
51
51
  subtitle
52
- }: LoginPageProps) => react28.JSX.Element;
52
+ }: LoginPageProps) => react46.JSX.Element;
53
53
  //#endregion
54
54
  export { LoginPage, LoginPageProps };
55
55
  //# sourceMappingURL=LoginPage.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react2 from "react";
1
+ import * as react31 from "react";
2
2
 
3
3
  //#region packages/components/pages/LoginPage.d.ts
4
4
  interface LoginPageProps {
@@ -49,7 +49,7 @@ declare const LoginPage: ({
49
49
  errorMessage,
50
50
  title,
51
51
  subtitle
52
- }: LoginPageProps) => react2.JSX.Element;
52
+ }: LoginPageProps) => react31.JSX.Element;
53
53
  //#endregion
54
54
  export { LoginPage, LoginPageProps };
55
55
  //# sourceMappingURL=LoginPage.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../button.variants-B8aRZ52K.mjs";import{t as e}from"../button-CfPTDyoq.mjs";import"../heading-woRh-IC7.mjs";import"../paragraph-CjstaJFj.mjs";import"../close-DTBepcqW.mjs";import{i as t,l as n,o as r,r as i,t as a}from"../dialog-Bly2YImt.mjs";import{t as o}from"../input-ESg91VId.mjs";import{t as s}from"../label-Cig7a9ON.mjs";import{n as c,t as l}from"../alert-BbInRLt4.mjs";import{Eye as u,EyeOff as d}from"lucide-react";import{useId as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{z as g}from"zod";const _=g.object({email:g.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:g.string().min(1,`Vui lòng nhập mật khẩu`)}),v=({open:g,onOpenChange:v,onLogin:y,onForgotPassword:b,onRegister:x,isLoading:S=!1,errorMessage:C,title:w=`Đăng nhập`,subtitle:T=`Nhập thông tin để tiếp tục`})=>{let E=f(),D=f(),[O,k]=p(``),[A,j]=p(``),[M,N]=p(!1),[P,F]=p({});return m(a,{open:g,onOpenChange:v,children:h(i,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[h(r,{children:[m(n,{children:w}),m(t,{children:T})]}),h(`form`,{onSubmit:async e=>{e.preventDefault();let t=_.safeParse({email:O,password:A});if(!t.success){let e=t.error.flatten().fieldErrors;F({email:e.email?.[0],password:e.password?.[0]});return}F({}),await y(O,A)},noValidate:!0,className:`flex flex-col gap-4`,children:[C&&m(l,{variant:`destructive`,children:m(c,{children:C})}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:E,children:`Email`}),m(o,{id:E,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:O,onChange:e=>k(e.target.value),"aria-invalid":!!P.email,disabled:S}),P.email&&m(`p`,{className:`text-destructive text-xs`,children:P.email})]}),h(`div`,{className:`flex flex-col gap-1.5`,children:[h(`div`,{className:`flex items-center justify-between`,children:[m(s,{htmlFor:D,children:`Mật khẩu`}),b&&m(e,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs`,onClick:b,children:`Quên mật khẩu?`})]}),h(`div`,{className:`relative`,children:[m(o,{id:D,type:M?`text`:`password`,autoComplete:`current-password`,placeholder:`••••••••`,value:A,onChange:e=>j(e.target.value),"aria-invalid":!!P.password,disabled:S,className:`pr-10`}),m(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),N(e=>!e)},"aria-label":M?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:m(M?d:u,{size:16})})]}),P.password&&m(`p`,{className:`text-destructive text-xs`,children:P.password})]}),m(e,{type:`submit`,isLoading:S,className:`w-full`,children:`Đăng nhập`})]}),x&&h(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[m(`span`,{children:`Chưa có tài khoản?`}),m(e,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:x,children:`Đăng ký`})]})]})})};export{v as LoginPage};
1
+ "use client";import"../button.variants-B8aRZ52K.mjs";import{t as e}from"../button-CfPTDyoq.mjs";import"../heading-woRh-IC7.mjs";import"../paragraph-CjstaJFj.mjs";import"../close-B7OOMSZl.mjs";import{i as t,l as n,o as r,r as i,t as a}from"../dialog-EGFZeITu.mjs";import{t as o}from"../input-5gk-Jv1y.mjs";import{t as s}from"../label-D9uNQ9b_.mjs";import{n as c,t as l}from"../alert-BbvPwf2x.mjs";import{Eye as u,EyeOff as d}from"lucide-react";import{useId as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{z as g}from"zod";const _=g.object({email:g.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:g.string().min(1,`Vui lòng nhập mật khẩu`)}),v=({open:g,onOpenChange:v,onLogin:y,onForgotPassword:b,onRegister:x,isLoading:S=!1,errorMessage:C,title:w=`Đăng nhập`,subtitle:T=`Nhập thông tin để tiếp tục`})=>{let E=f(),D=f(),[O,k]=p(``),[A,j]=p(``),[M,N]=p(!1),[P,F]=p({});return m(a,{open:g,onOpenChange:v,children:h(i,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[h(r,{children:[m(n,{children:w}),m(t,{children:T})]}),h(`form`,{onSubmit:async e=>{e.preventDefault();let t=_.safeParse({email:O,password:A});if(!t.success){let e=t.error.flatten().fieldErrors;F({email:e.email?.[0],password:e.password?.[0]});return}F({}),await y(O,A)},noValidate:!0,className:`flex flex-col gap-4`,children:[C&&m(l,{variant:`destructive`,children:m(c,{children:C})}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:E,children:`Email`}),m(o,{id:E,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:O,onChange:e=>k(e.target.value),"aria-invalid":!!P.email,disabled:S}),P.email&&m(`p`,{className:`text-destructive text-xs`,children:P.email})]}),h(`div`,{className:`flex flex-col gap-1.5`,children:[h(`div`,{className:`flex items-center justify-between`,children:[m(s,{htmlFor:D,children:`Mật khẩu`}),b&&m(e,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs`,onClick:b,children:`Quên mật khẩu?`})]}),h(`div`,{className:`relative`,children:[m(o,{id:D,type:M?`text`:`password`,autoComplete:`current-password`,placeholder:`••••••••`,value:A,onChange:e=>j(e.target.value),"aria-invalid":!!P.password,disabled:S,className:`pr-10`}),m(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),N(e=>!e)},"aria-label":M?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:m(M?d:u,{size:16})})]}),P.password&&m(`p`,{className:`text-destructive text-xs`,children:P.password})]}),m(e,{type:`submit`,isLoading:S,className:`w-full`,children:`Đăng nhập`})]}),x&&h(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[m(`span`,{children:`Chưa có tài khoản?`}),m(e,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:x,children:`Đăng ký`})]})]})})};export{v as LoginPage};
2
2
  //# sourceMappingURL=LoginPage.mjs.map
@@ -1,4 +1,4 @@
1
- import * as react55 from "react";
1
+ import * as react6 from "react";
2
2
 
3
3
  //#region packages/components/pages/NotAuthorized.d.ts
4
4
  interface NotAuthorizedProps {
@@ -37,7 +37,7 @@ declare const NotAuthorized: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: NotAuthorizedProps) => react55.JSX.Element;
40
+ }: NotAuthorizedProps) => react6.JSX.Element;
41
41
  //#endregion
42
42
  export { NotAuthorized, NotAuthorized as default, NotAuthorizedProps };
43
43
  //# sourceMappingURL=NotAuthorized.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react29 from "react";
1
+ import * as react31 from "react";
2
2
 
3
3
  //#region packages/components/pages/NotFound.d.ts
4
4
  interface NotFoundProps {
@@ -37,7 +37,7 @@ declare const NotFound: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: NotFoundProps) => react29.JSX.Element;
40
+ }: NotFoundProps) => react31.JSX.Element;
41
41
  //#endregion
42
42
  export { NotFound, NotFound as default, NotFoundProps };
43
43
  //# sourceMappingURL=NotFound.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react56 from "react";
1
+ import * as react33 from "react";
2
2
 
3
3
  //#region packages/components/pages/NotFound.d.ts
4
4
  interface NotFoundProps {
@@ -37,7 +37,7 @@ declare const NotFound: ({
37
37
  onButtonClick,
38
38
  className,
39
39
  iconClassName
40
- }: NotFoundProps) => react56.JSX.Element;
40
+ }: NotFoundProps) => react33.JSX.Element;
41
41
  //#endregion
42
42
  export { NotFound, NotFound as default, NotFoundProps };
43
43
  //# sourceMappingURL=NotFound.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`);require(`../heading-wUXEbicM.cjs`),require(`../paragraph-D-JHj7EP.cjs`),require(`../close-DUBEKxhw.cjs`);const n=require(`../dialog-DhO0dkO3.cjs`),r=require(`../input-1ceJxxFI.cjs`),i=require(`../label-BzfsTrVt.cjs`),a=require(`../alert-4rfsFtN6.cjs`);let o=require(`lucide-react`),s=require(`react`),c=require(`react/jsx-runtime`),l=require(`zod`);const u=l.z.object({email:l.z.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:l.z.string().min(8,`Mật khẩu phải có ít nhất 8 ký tự`).max(50,`Mật khẩu không được vượt quá 50 ký tự`).regex(/[A-Z]/,`Phải có ít nhất một chữ hoa`).regex(/[a-z]/,`Phải có ít nhất một chữ thường`).regex(/[0-9]/,`Phải có ít nhất một chữ số`).regex(/[^A-Za-z0-9]/,`Phải có ít nhất một ký tự đặc biệt`),confirmPassword:l.z.string().min(1,`Vui lòng xác nhận mật khẩu`)}).refine(e=>e.password===e.confirmPassword,{message:`Mật khẩu xác nhận không khớp`,path:[`confirmPassword`]}),d=({open:e,onOpenChange:l,onRegister:d,onLogin:f,isLoading:p=!1,errorMessage:m,title:h=`Đăng ký`,subtitle:g=`Tạo tài khoản mới để bắt đầu`})=>{let _=(0,s.useId)(),v=(0,s.useId)(),y=(0,s.useId)(),[b,x]=(0,s.useState)(``),[S,C]=(0,s.useState)(``),[w,T]=(0,s.useState)(``),[E,D]=(0,s.useState)(!1),[O,k]=(0,s.useState)(!1),[A,j]=(0,s.useState)({});return(0,c.jsx)(n.t,{open:e,onOpenChange:l,children:(0,c.jsxs)(n.r,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[(0,c.jsxs)(n.o,{children:[(0,c.jsx)(n.l,{children:h}),(0,c.jsx)(n.i,{children:g})]}),(0,c.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=u.safeParse({email:b,password:S,confirmPassword:w});if(!t.success){let e=t.error.flatten().fieldErrors;j({email:e.email?.[0],password:e.password?.[0],confirmPassword:e.confirmPassword?.[0]});return}j({}),await d(b,S)},noValidate:!0,className:`flex flex-col gap-4`,children:[m&&(0,c.jsx)(a.t,{variant:`destructive`,children:(0,c.jsx)(a.n,{children:m})}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:_,children:`Email`}),(0,c.jsx)(r.t,{id:_,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:b,onChange:e=>x(e.target.value),"aria-invalid":!!A.email,disabled:p}),A.email&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:A.email})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:v,children:`Mật khẩu`}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r.t,{id:v,type:E?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:S,onChange:e=>C(e.target.value),"aria-invalid":!!A.password,disabled:p,className:`pr-10`}),(0,c.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),D(e=>!e)},"aria-label":E?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:E?(0,c.jsx)(o.EyeOff,{size:16}):(0,c.jsx)(o.Eye,{size:16})})]}),A.password?(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:A.password}):(0,c.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`Tối thiểu 8 ký tự, bao gồm chữ hoa, chữ thường, số và ký tự đặc biệt.`})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:y,children:`Xác nhận mật khẩu`}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r.t,{id:y,type:O?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:w,onChange:e=>T(e.target.value),"aria-invalid":!!A.confirmPassword,disabled:p,className:`pr-10`}),(0,c.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),k(e=>!e)},"aria-label":O?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:O?(0,c.jsx)(o.EyeOff,{size:16}):(0,c.jsx)(o.Eye,{size:16})})]}),A.confirmPassword&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:A.confirmPassword})]}),(0,c.jsx)(t.t,{type:`submit`,isLoading:p,className:`w-full`,children:`Đăng ký`})]}),f&&(0,c.jsxs)(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[(0,c.jsx)(`span`,{children:`Đã có tài khoản?`}),(0,c.jsx)(t.t,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:f,children:`Đăng nhập`})]})]})})};exports.RegisterPage=d;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`);require(`../heading-wUXEbicM.cjs`),require(`../paragraph-D-JHj7EP.cjs`),require(`../close-DrCUWZt0.cjs`);const n=require(`../dialog-D1sWnn6n.cjs`),r=require(`../input-BvzsfAUc.cjs`),i=require(`../label-eIyGIRyw.cjs`),a=require(`../alert-DubR6Szk.cjs`);let o=require(`lucide-react`),s=require(`react`),c=require(`react/jsx-runtime`),l=require(`zod`);const u=l.z.object({email:l.z.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:l.z.string().min(8,`Mật khẩu phải có ít nhất 8 ký tự`).max(50,`Mật khẩu không được vượt quá 50 ký tự`).regex(/[A-Z]/,`Phải có ít nhất một chữ hoa`).regex(/[a-z]/,`Phải có ít nhất một chữ thường`).regex(/[0-9]/,`Phải có ít nhất một chữ số`).regex(/[^A-Za-z0-9]/,`Phải có ít nhất một ký tự đặc biệt`),confirmPassword:l.z.string().min(1,`Vui lòng xác nhận mật khẩu`)}).refine(e=>e.password===e.confirmPassword,{message:`Mật khẩu xác nhận không khớp`,path:[`confirmPassword`]}),d=({open:e,onOpenChange:l,onRegister:d,onLogin:f,isLoading:p=!1,errorMessage:m,title:h=`Đăng ký`,subtitle:g=`Tạo tài khoản mới để bắt đầu`})=>{let _=(0,s.useId)(),v=(0,s.useId)(),y=(0,s.useId)(),[b,x]=(0,s.useState)(``),[S,C]=(0,s.useState)(``),[w,T]=(0,s.useState)(``),[E,D]=(0,s.useState)(!1),[O,k]=(0,s.useState)(!1),[A,j]=(0,s.useState)({});return(0,c.jsx)(n.t,{open:e,onOpenChange:l,children:(0,c.jsxs)(n.r,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[(0,c.jsxs)(n.o,{children:[(0,c.jsx)(n.l,{children:h}),(0,c.jsx)(n.i,{children:g})]}),(0,c.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=u.safeParse({email:b,password:S,confirmPassword:w});if(!t.success){let e=t.error.flatten().fieldErrors;j({email:e.email?.[0],password:e.password?.[0],confirmPassword:e.confirmPassword?.[0]});return}j({}),await d(b,S)},noValidate:!0,className:`flex flex-col gap-4`,children:[m&&(0,c.jsx)(a.t,{variant:`destructive`,children:(0,c.jsx)(a.n,{children:m})}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:_,children:`Email`}),(0,c.jsx)(r.t,{id:_,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:b,onChange:e=>x(e.target.value),"aria-invalid":!!A.email,disabled:p}),A.email&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:A.email})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:v,children:`Mật khẩu`}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r.t,{id:v,type:E?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:S,onChange:e=>C(e.target.value),"aria-invalid":!!A.password,disabled:p,className:`pr-10`}),(0,c.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),D(e=>!e)},"aria-label":E?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:E?(0,c.jsx)(o.EyeOff,{size:16}):(0,c.jsx)(o.Eye,{size:16})})]}),A.password?(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:A.password}):(0,c.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`Tối thiểu 8 ký tự, bao gồm chữ hoa, chữ thường, số và ký tự đặc biệt.`})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,c.jsx)(i.t,{htmlFor:y,children:`Xác nhận mật khẩu`}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r.t,{id:y,type:O?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:w,onChange:e=>T(e.target.value),"aria-invalid":!!A.confirmPassword,disabled:p,className:`pr-10`}),(0,c.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),k(e=>!e)},"aria-label":O?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:O?(0,c.jsx)(o.EyeOff,{size:16}):(0,c.jsx)(o.Eye,{size:16})})]}),A.confirmPassword&&(0,c.jsx)(`p`,{className:`text-destructive text-xs`,children:A.confirmPassword})]}),(0,c.jsx)(t.t,{type:`submit`,isLoading:p,className:`w-full`,children:`Đăng ký`})]}),f&&(0,c.jsxs)(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[(0,c.jsx)(`span`,{children:`Đã có tài khoản?`}),(0,c.jsx)(t.t,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:f,children:`Đăng nhập`})]})]})})};exports.RegisterPage=d;
2
2
  //# sourceMappingURL=RegisterPage.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react34 from "react";
1
+ import * as react188 from "react";
2
2
 
3
3
  //#region packages/components/pages/RegisterPage.d.ts
4
4
  interface RegisterPageProps {
@@ -46,7 +46,7 @@ declare const RegisterPage: ({
46
46
  errorMessage,
47
47
  title,
48
48
  subtitle
49
- }: RegisterPageProps) => react34.JSX.Element;
49
+ }: RegisterPageProps) => react188.JSX.Element;
50
50
  //#endregion
51
51
  export { RegisterPage, RegisterPageProps };
52
52
  //# sourceMappingURL=RegisterPage.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react201 from "react";
1
+ import * as react32 from "react";
2
2
 
3
3
  //#region packages/components/pages/RegisterPage.d.ts
4
4
  interface RegisterPageProps {
@@ -46,7 +46,7 @@ declare const RegisterPage: ({
46
46
  errorMessage,
47
47
  title,
48
48
  subtitle
49
- }: RegisterPageProps) => react201.JSX.Element;
49
+ }: RegisterPageProps) => react32.JSX.Element;
50
50
  //#endregion
51
51
  export { RegisterPage, RegisterPageProps };
52
52
  //# sourceMappingURL=RegisterPage.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../button.variants-B8aRZ52K.mjs";import{t as e}from"../button-CfPTDyoq.mjs";import"../heading-woRh-IC7.mjs";import"../paragraph-CjstaJFj.mjs";import"../close-DTBepcqW.mjs";import{i as t,l as n,o as r,r as i,t as a}from"../dialog-Bly2YImt.mjs";import{t as o}from"../input-ESg91VId.mjs";import{t as s}from"../label-Cig7a9ON.mjs";import{n as c,t as l}from"../alert-BbInRLt4.mjs";import{Eye as u,EyeOff as d}from"lucide-react";import{useId as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{z as g}from"zod";const _=g.object({email:g.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:g.string().min(8,`Mật khẩu phải có ít nhất 8 ký tự`).max(50,`Mật khẩu không được vượt quá 50 ký tự`).regex(/[A-Z]/,`Phải có ít nhất một chữ hoa`).regex(/[a-z]/,`Phải có ít nhất một chữ thường`).regex(/[0-9]/,`Phải có ít nhất một chữ số`).regex(/[^A-Za-z0-9]/,`Phải có ít nhất một ký tự đặc biệt`),confirmPassword:g.string().min(1,`Vui lòng xác nhận mật khẩu`)}).refine(e=>e.password===e.confirmPassword,{message:`Mật khẩu xác nhận không khớp`,path:[`confirmPassword`]}),v=({open:g,onOpenChange:v,onRegister:y,onLogin:b,isLoading:x=!1,errorMessage:S,title:C=`Đăng ký`,subtitle:w=`Tạo tài khoản mới để bắt đầu`})=>{let T=f(),E=f(),D=f(),[O,k]=p(``),[A,j]=p(``),[M,N]=p(``),[P,F]=p(!1),[I,L]=p(!1),[R,z]=p({});return m(a,{open:g,onOpenChange:v,children:h(i,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[h(r,{children:[m(n,{children:C}),m(t,{children:w})]}),h(`form`,{onSubmit:async e=>{e.preventDefault();let t=_.safeParse({email:O,password:A,confirmPassword:M});if(!t.success){let e=t.error.flatten().fieldErrors;z({email:e.email?.[0],password:e.password?.[0],confirmPassword:e.confirmPassword?.[0]});return}z({}),await y(O,A)},noValidate:!0,className:`flex flex-col gap-4`,children:[S&&m(l,{variant:`destructive`,children:m(c,{children:S})}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:T,children:`Email`}),m(o,{id:T,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:O,onChange:e=>k(e.target.value),"aria-invalid":!!R.email,disabled:x}),R.email&&m(`p`,{className:`text-destructive text-xs`,children:R.email})]}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:E,children:`Mật khẩu`}),h(`div`,{className:`relative`,children:[m(o,{id:E,type:P?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:A,onChange:e=>j(e.target.value),"aria-invalid":!!R.password,disabled:x,className:`pr-10`}),m(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),F(e=>!e)},"aria-label":P?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:m(P?d:u,{size:16})})]}),R.password?m(`p`,{className:`text-destructive text-xs`,children:R.password}):m(`p`,{className:`text-muted-foreground text-xs`,children:`Tối thiểu 8 ký tự, bao gồm chữ hoa, chữ thường, số và ký tự đặc biệt.`})]}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:D,children:`Xác nhận mật khẩu`}),h(`div`,{className:`relative`,children:[m(o,{id:D,type:I?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:M,onChange:e=>N(e.target.value),"aria-invalid":!!R.confirmPassword,disabled:x,className:`pr-10`}),m(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),L(e=>!e)},"aria-label":I?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:m(I?d:u,{size:16})})]}),R.confirmPassword&&m(`p`,{className:`text-destructive text-xs`,children:R.confirmPassword})]}),m(e,{type:`submit`,isLoading:x,className:`w-full`,children:`Đăng ký`})]}),b&&h(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[m(`span`,{children:`Đã có tài khoản?`}),m(e,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:b,children:`Đăng nhập`})]})]})})};export{v as RegisterPage};
1
+ "use client";import"../button.variants-B8aRZ52K.mjs";import{t as e}from"../button-CfPTDyoq.mjs";import"../heading-woRh-IC7.mjs";import"../paragraph-CjstaJFj.mjs";import"../close-B7OOMSZl.mjs";import{i as t,l as n,o as r,r as i,t as a}from"../dialog-EGFZeITu.mjs";import{t as o}from"../input-5gk-Jv1y.mjs";import{t as s}from"../label-D9uNQ9b_.mjs";import{n as c,t as l}from"../alert-BbvPwf2x.mjs";import{Eye as u,EyeOff as d}from"lucide-react";import{useId as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{z as g}from"zod";const _=g.object({email:g.string().min(1,`Vui lòng nhập email`).email(`Email không hợp lệ`),password:g.string().min(8,`Mật khẩu phải có ít nhất 8 ký tự`).max(50,`Mật khẩu không được vượt quá 50 ký tự`).regex(/[A-Z]/,`Phải có ít nhất một chữ hoa`).regex(/[a-z]/,`Phải có ít nhất một chữ thường`).regex(/[0-9]/,`Phải có ít nhất một chữ số`).regex(/[^A-Za-z0-9]/,`Phải có ít nhất một ký tự đặc biệt`),confirmPassword:g.string().min(1,`Vui lòng xác nhận mật khẩu`)}).refine(e=>e.password===e.confirmPassword,{message:`Mật khẩu xác nhận không khớp`,path:[`confirmPassword`]}),v=({open:g,onOpenChange:v,onRegister:y,onLogin:b,isLoading:x=!1,errorMessage:S,title:C=`Đăng ký`,subtitle:w=`Tạo tài khoản mới để bắt đầu`})=>{let T=f(),E=f(),D=f(),[O,k]=p(``),[A,j]=p(``),[M,N]=p(``),[P,F]=p(!1),[I,L]=p(!1),[R,z]=p({});return m(a,{open:g,onOpenChange:v,children:h(i,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[h(r,{children:[m(n,{children:C}),m(t,{children:w})]}),h(`form`,{onSubmit:async e=>{e.preventDefault();let t=_.safeParse({email:O,password:A,confirmPassword:M});if(!t.success){let e=t.error.flatten().fieldErrors;z({email:e.email?.[0],password:e.password?.[0],confirmPassword:e.confirmPassword?.[0]});return}z({}),await y(O,A)},noValidate:!0,className:`flex flex-col gap-4`,children:[S&&m(l,{variant:`destructive`,children:m(c,{children:S})}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:T,children:`Email`}),m(o,{id:T,type:`email`,autoComplete:`email`,placeholder:`you@example.com`,value:O,onChange:e=>k(e.target.value),"aria-invalid":!!R.email,disabled:x}),R.email&&m(`p`,{className:`text-destructive text-xs`,children:R.email})]}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:E,children:`Mật khẩu`}),h(`div`,{className:`relative`,children:[m(o,{id:E,type:P?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:A,onChange:e=>j(e.target.value),"aria-invalid":!!R.password,disabled:x,className:`pr-10`}),m(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),F(e=>!e)},"aria-label":P?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:m(P?d:u,{size:16})})]}),R.password?m(`p`,{className:`text-destructive text-xs`,children:R.password}):m(`p`,{className:`text-muted-foreground text-xs`,children:`Tối thiểu 8 ký tự, bao gồm chữ hoa, chữ thường, số và ký tự đặc biệt.`})]}),h(`div`,{className:`flex flex-col gap-1.5`,children:[m(s,{htmlFor:D,children:`Xác nhận mật khẩu`}),h(`div`,{className:`relative`,children:[m(o,{id:D,type:I?`text`:`password`,autoComplete:`new-password`,placeholder:`••••••••`,value:M,onChange:e=>N(e.target.value),"aria-invalid":!!R.confirmPassword,disabled:x,className:`pr-10`}),m(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground`,onMouseDown:e=>{e.preventDefault(),L(e=>!e)},"aria-label":I?`Ẩn mật khẩu`:`Hiện mật khẩu`,children:m(I?d:u,{size:16})})]}),R.confirmPassword&&m(`p`,{className:`text-destructive text-xs`,children:R.confirmPassword})]}),m(e,{type:`submit`,isLoading:x,className:`w-full`,children:`Đăng ký`})]}),b&&h(`div`,{className:`flex justify-center gap-1 text-muted-foreground text-sm`,children:[m(`span`,{children:`Đã có tài khoản?`}),m(e,{variant:`link`,size:`sm`,className:`h-auto p-0`,onClick:b,children:`Đăng nhập`})]})]})})};export{v as RegisterPage};
2
2
  //# sourceMappingURL=RegisterPage.mjs.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`);require(`../heading-wUXEbicM.cjs`),require(`../paragraph-D-JHj7EP.cjs`),require(`../close-DUBEKxhw.cjs`);const n=require(`../dialog-DhO0dkO3.cjs`),r=require(`../alert-4rfsFtN6.cjs`),i=require(`../ui/input-otp.cjs`);let a=require(`react`),o=require(`react/jsx-runtime`);const s=({open:e,onOpenChange:s,email:c,onVerify:l,onResend:u,onBack:d,isLoading:f=!1,errorMessage:p,title:m=`Xác thực email`,subtitle:h,resendCooldownSeconds:g=60})=>{let[_,v]=(0,a.useState)(``),[y,b]=(0,a.useState)(g),x=(0,a.useRef)(null),S=(0,a.useCallback)(e=>{x.current&&clearInterval(x.current),b(e),x.current=setInterval(()=>{b(e=>e<=1?(x.current&&clearInterval(x.current),0):e-1)},1e3)},[]);(0,a.useEffect)(()=>(e&&g>0&&S(g),()=>{x.current&&clearInterval(x.current)}),[e,g,S]);let C=(0,a.useCallback)(async()=>{S(g),await u(c)},[c,u,g,S]),w=(0,a.useCallback)(async()=>{_.length<6||await l(c,_)},[c,_,l]);return(0,o.jsx)(n.t,{open:e,onOpenChange:s,children:(0,o.jsxs)(n.r,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[(0,o.jsxs)(n.o,{children:[(0,o.jsx)(n.l,{children:m}),(0,o.jsx)(n.i,{children:h??(0,o.jsxs)(o.Fragment,{children:[`Nhập mã OTP đã được gửi tới `,(0,o.jsx)(`span`,{className:`font-medium text-foreground`,children:c}),`. Mã có hiệu lực trong 10 phút.`]})})]}),(0,o.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[p&&(0,o.jsx)(r.t,{variant:`destructive`,className:`w-full`,children:(0,o.jsx)(r.n,{children:p})}),(0,o.jsxs)(i.InputOTP,{maxLength:6,value:_,onChange:v,onComplete:w,disabled:f,children:[(0,o.jsxs)(i.InputOTPGroup,{children:[(0,o.jsx)(i.InputOTPSlot,{index:0}),(0,o.jsx)(i.InputOTPSlot,{index:1}),(0,o.jsx)(i.InputOTPSlot,{index:2})]}),(0,o.jsx)(i.InputOTPSeparator,{}),(0,o.jsxs)(i.InputOTPGroup,{children:[(0,o.jsx)(i.InputOTPSlot,{index:3}),(0,o.jsx)(i.InputOTPSlot,{index:4}),(0,o.jsx)(i.InputOTPSlot,{index:5})]})]}),(0,o.jsx)(t.t,{type:`button`,isLoading:f,disabled:_.length<6,className:`w-full`,onClick:w,children:`Xác thực`}),(0,o.jsxs)(`div`,{className:`flex items-center gap-1 text-muted-foreground text-sm`,children:[(0,o.jsx)(`span`,{children:`Chưa nhận được mã?`}),(0,o.jsx)(t.t,{variant:`link`,size:`sm`,className:`h-auto p-0`,disabled:y>0||f,onClick:C,children:y>0?`Gửi lại (${y}s)`:`Gửi lại`})]}),d&&(0,o.jsx)(t.t,{variant:`ghost`,size:`sm`,className:`w-full`,onClick:d,children:`Quay lại`})]})]})})};exports.VerifyEmailPage=s;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`);require(`../heading-wUXEbicM.cjs`),require(`../paragraph-D-JHj7EP.cjs`),require(`../close-DrCUWZt0.cjs`);const n=require(`../dialog-D1sWnn6n.cjs`),r=require(`../alert-DubR6Szk.cjs`),i=require(`../ui/input-otp.cjs`);let a=require(`react`),o=require(`react/jsx-runtime`);const s=({open:e,onOpenChange:s,email:c,onVerify:l,onResend:u,onBack:d,isLoading:f=!1,errorMessage:p,title:m=`Xác thực email`,subtitle:h,resendCooldownSeconds:g=60})=>{let[_,v]=(0,a.useState)(``),[y,b]=(0,a.useState)(g),x=(0,a.useRef)(null),S=(0,a.useCallback)(e=>{x.current&&clearInterval(x.current),b(e),x.current=setInterval(()=>{b(e=>e<=1?(x.current&&clearInterval(x.current),0):e-1)},1e3)},[]);(0,a.useEffect)(()=>(e&&g>0&&S(g),()=>{x.current&&clearInterval(x.current)}),[e,g,S]);let C=(0,a.useCallback)(async()=>{S(g),await u(c)},[c,u,g,S]),w=(0,a.useCallback)(async()=>{_.length<6||await l(c,_)},[c,_,l]);return(0,o.jsx)(n.t,{open:e,onOpenChange:s,children:(0,o.jsxs)(n.r,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[(0,o.jsxs)(n.o,{children:[(0,o.jsx)(n.l,{children:m}),(0,o.jsx)(n.i,{children:h??(0,o.jsxs)(o.Fragment,{children:[`Nhập mã OTP đã được gửi tới `,(0,o.jsx)(`span`,{className:`font-medium text-foreground`,children:c}),`. Mã có hiệu lực trong 10 phút.`]})})]}),(0,o.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[p&&(0,o.jsx)(r.t,{variant:`destructive`,className:`w-full`,children:(0,o.jsx)(r.n,{children:p})}),(0,o.jsxs)(i.InputOTP,{maxLength:6,value:_,onChange:v,onComplete:w,disabled:f,children:[(0,o.jsxs)(i.InputOTPGroup,{children:[(0,o.jsx)(i.InputOTPSlot,{index:0}),(0,o.jsx)(i.InputOTPSlot,{index:1}),(0,o.jsx)(i.InputOTPSlot,{index:2})]}),(0,o.jsx)(i.InputOTPSeparator,{}),(0,o.jsxs)(i.InputOTPGroup,{children:[(0,o.jsx)(i.InputOTPSlot,{index:3}),(0,o.jsx)(i.InputOTPSlot,{index:4}),(0,o.jsx)(i.InputOTPSlot,{index:5})]})]}),(0,o.jsx)(t.t,{type:`button`,isLoading:f,disabled:_.length<6,className:`w-full`,onClick:w,children:`Xác thực`}),(0,o.jsxs)(`div`,{className:`flex items-center gap-1 text-muted-foreground text-sm`,children:[(0,o.jsx)(`span`,{children:`Chưa nhận được mã?`}),(0,o.jsx)(t.t,{variant:`link`,size:`sm`,className:`h-auto p-0`,disabled:y>0||f,onClick:C,children:y>0?`Gửi lại (${y}s)`:`Gửi lại`})]}),d&&(0,o.jsx)(t.t,{variant:`ghost`,size:`sm`,className:`w-full`,onClick:d,children:`Quay lại`})]})]})})};exports.VerifyEmailPage=s;
2
2
  //# sourceMappingURL=VerifyEmailPage.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react33 from "react";
1
+ import * as react32 from "react";
2
2
 
3
3
  //#region packages/components/pages/VerifyEmailPage.d.ts
4
4
  interface VerifyEmailPageProps {
@@ -58,7 +58,7 @@ declare const VerifyEmailPage: ({
58
58
  title,
59
59
  subtitle,
60
60
  resendCooldownSeconds
61
- }: VerifyEmailPageProps) => react33.JSX.Element;
61
+ }: VerifyEmailPageProps) => react32.JSX.Element;
62
62
  //#endregion
63
63
  export { VerifyEmailPage, VerifyEmailPageProps };
64
64
  //# sourceMappingURL=VerifyEmailPage.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react3 from "react";
1
+ import * as react7 from "react";
2
2
 
3
3
  //#region packages/components/pages/VerifyEmailPage.d.ts
4
4
  interface VerifyEmailPageProps {
@@ -58,7 +58,7 @@ declare const VerifyEmailPage: ({
58
58
  title,
59
59
  subtitle,
60
60
  resendCooldownSeconds
61
- }: VerifyEmailPageProps) => react3.JSX.Element;
61
+ }: VerifyEmailPageProps) => react7.JSX.Element;
62
62
  //#endregion
63
63
  export { VerifyEmailPage, VerifyEmailPageProps };
64
64
  //# sourceMappingURL=VerifyEmailPage.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../button.variants-B8aRZ52K.mjs";import{t as e}from"../button-CfPTDyoq.mjs";import"../heading-woRh-IC7.mjs";import"../paragraph-CjstaJFj.mjs";import"../close-DTBepcqW.mjs";import{i as t,l as n,o as r,r as i,t as a}from"../dialog-Bly2YImt.mjs";import{n as o,t as s}from"../alert-BbInRLt4.mjs";import{InputOTP as c,InputOTPGroup as l,InputOTPSeparator as u,InputOTPSlot as d}from"../ui/input-otp.mjs";import{useCallback as f,useEffect as p,useRef as m,useState as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";const y=({open:y,onOpenChange:b,email:x,onVerify:S,onResend:C,onBack:w,isLoading:T=!1,errorMessage:E,title:D=`Xác thực email`,subtitle:O,resendCooldownSeconds:k=60})=>{let[A,j]=h(``),[M,N]=h(k),P=m(null),F=f(e=>{P.current&&clearInterval(P.current),N(e),P.current=setInterval(()=>{N(e=>e<=1?(P.current&&clearInterval(P.current),0):e-1)},1e3)},[]);p(()=>(y&&k>0&&F(k),()=>{P.current&&clearInterval(P.current)}),[y,k,F]);let I=f(async()=>{F(k),await C(x)},[x,C,k,F]),L=f(async()=>{A.length<6||await S(x,A)},[x,A,S]);return _(a,{open:y,onOpenChange:b,children:v(i,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[v(r,{children:[_(n,{children:D}),_(t,{children:O??v(g,{children:[`Nhập mã OTP đã được gửi tới `,_(`span`,{className:`font-medium text-foreground`,children:x}),`. Mã có hiệu lực trong 10 phút.`]})})]}),v(`div`,{className:`flex flex-col items-center gap-4`,children:[E&&_(s,{variant:`destructive`,className:`w-full`,children:_(o,{children:E})}),v(c,{maxLength:6,value:A,onChange:j,onComplete:L,disabled:T,children:[v(l,{children:[_(d,{index:0}),_(d,{index:1}),_(d,{index:2})]}),_(u,{}),v(l,{children:[_(d,{index:3}),_(d,{index:4}),_(d,{index:5})]})]}),_(e,{type:`button`,isLoading:T,disabled:A.length<6,className:`w-full`,onClick:L,children:`Xác thực`}),v(`div`,{className:`flex items-center gap-1 text-muted-foreground text-sm`,children:[_(`span`,{children:`Chưa nhận được mã?`}),_(e,{variant:`link`,size:`sm`,className:`h-auto p-0`,disabled:M>0||T,onClick:I,children:M>0?`Gửi lại (${M}s)`:`Gửi lại`})]}),w&&_(e,{variant:`ghost`,size:`sm`,className:`w-full`,onClick:w,children:`Quay lại`})]})]})})};export{y as VerifyEmailPage};
1
+ "use client";import"../button.variants-B8aRZ52K.mjs";import{t as e}from"../button-CfPTDyoq.mjs";import"../heading-woRh-IC7.mjs";import"../paragraph-CjstaJFj.mjs";import"../close-B7OOMSZl.mjs";import{i as t,l as n,o as r,r as i,t as a}from"../dialog-EGFZeITu.mjs";import{n as o,t as s}from"../alert-BbvPwf2x.mjs";import{InputOTP as c,InputOTPGroup as l,InputOTPSeparator as u,InputOTPSlot as d}from"../ui/input-otp.mjs";import{useCallback as f,useEffect as p,useRef as m,useState as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";const y=({open:y,onOpenChange:b,email:x,onVerify:S,onResend:C,onBack:w,isLoading:T=!1,errorMessage:E,title:D=`Xác thực email`,subtitle:O,resendCooldownSeconds:k=60})=>{let[A,j]=h(``),[M,N]=h(k),P=m(null),F=f(e=>{P.current&&clearInterval(P.current),N(e),P.current=setInterval(()=>{N(e=>e<=1?(P.current&&clearInterval(P.current),0):e-1)},1e3)},[]);p(()=>(y&&k>0&&F(k),()=>{P.current&&clearInterval(P.current)}),[y,k,F]);let I=f(async()=>{F(k),await C(x)},[x,C,k,F]),L=f(async()=>{A.length<6||await S(x,A)},[x,A,S]);return _(a,{open:y,onOpenChange:b,children:v(i,{className:`max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=open]:zoom-in-100 max-sm:data-[state=closed]:slide-out-to-bottom max-sm:data-[state=closed]:zoom-out-100 max-sm:top-auto max-sm:right-0 max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none sm:max-w-sm`,children:[v(r,{children:[_(n,{children:D}),_(t,{children:O??v(g,{children:[`Nhập mã OTP đã được gửi tới `,_(`span`,{className:`font-medium text-foreground`,children:x}),`. Mã có hiệu lực trong 10 phút.`]})})]}),v(`div`,{className:`flex flex-col items-center gap-4`,children:[E&&_(s,{variant:`destructive`,className:`w-full`,children:_(o,{children:E})}),v(c,{maxLength:6,value:A,onChange:j,onComplete:L,disabled:T,children:[v(l,{children:[_(d,{index:0}),_(d,{index:1}),_(d,{index:2})]}),_(u,{}),v(l,{children:[_(d,{index:3}),_(d,{index:4}),_(d,{index:5})]})]}),_(e,{type:`button`,isLoading:T,disabled:A.length<6,className:`w-full`,onClick:L,children:`Xác thực`}),v(`div`,{className:`flex items-center gap-1 text-muted-foreground text-sm`,children:[_(`span`,{children:`Chưa nhận được mã?`}),_(e,{variant:`link`,size:`sm`,className:`h-auto p-0`,disabled:M>0||T,onClick:I,children:M>0?`Gửi lại (${M}s)`:`Gửi lại`})]}),w&&_(e,{variant:`ghost`,size:`sm`,className:`w-full`,onClick:w,children:`Quay lại`})]})]})})};export{y as VerifyEmailPage};
2
2
  //# sourceMappingURL=VerifyEmailPage.mjs.map
@@ -1,2 +1,2 @@
1
- import{t as e}from"./dist-BQGL-YKY.mjs";import{t}from"./button-CfPTDyoq.mjs";import{t as n}from"./paragraph-CjstaJFj.mjs";import{t as r}from"./flex-BAcvp4lB.mjs";import{i,n as a,r as o,t as s}from"./tooltip-BfBJRYpc.mjs";import{n as c,t as l}from"./avatar-1SuFoI5h.mjs";import{i as u,o as d,r as f,s as p,t as m}from"./sheet-BoulTUHV.mjs";import{a as h,h as g,i as _,o as v,r as y,t as b,u as x}from"./dropdown-menu-BjckWIZH.mjs";import{LogOutIcon as S,MenuIcon as C,ShoppingCartIcon as w,UserRoundIcon as T}from"lucide-react";import{createContext as E,useCallback as D,useContext as O,useEffect as k,useMemo as A,useState as j}from"react";import{cn as M}from"@customafk/react-toolkit/utils";import{cva as N}from"class-variance-authority";import{jsx as P,jsxs as F}from"react/jsx-runtime";import{colorHashLight as I}from"@customafk/react-toolkit/color-hash";import{useIsMobile as L}from"@customafk/react-toolkit/hooks/useMobile";const R=E(null);function z(){let e=O(R);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function B({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...s}){let c=L(),[l,u]=j(!1),[d,f]=j(e),p=t??d,m=D(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),h=D(()=>c?u(e=>!e):m(e=>!e),[c,m]);k(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=A(()=>({state:g,open:p,setOpen:m,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:h}),[g,p,m,c,l,h]);return P(R.Provider,{value:_,children:P(o,{delayDuration:0,children:P(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...i},className:M(`group/sidebar-wrapper flex h-dvh w-full`,r),...s,children:a})})})}function V({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,...o}){let{isMobile:s,state:c,openMobile:l,setOpenMobile:h,toggleSidebar:g}=z();return r===`none`?P(`aside`,{"data-slot":`sidebar`,className:M(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,i),...o,children:a}):s?P(m,{open:l,onOpenChange:h,...o,children:F(f,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground sm:max-w-3xs [&>button]:hidden`,style:{"--sidebar-width":`18rem`},side:e,children:[F(d,{className:`sr-only`,children:[P(p,{children:`Sidebar`}),P(u,{children:`Displays the mobile sidebar.`})]}),F(`div`,{className:`flex size-full flex-col`,children:[F(`div`,{className:`flex flex-0 items-center gap-x-2 border-border-weak border-b p-2 pr-4`,children:[F(t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:M(`size-10 rounded-full`,i),onClick:e=>{g(),e.preventDefault(),e.stopPropagation()},children:[P(C,{className:`size-6!`}),P(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]}),P(`div`,{className:`ml-2 flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:P(w,{size:20})}),F(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[P(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),P(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),P(`div`,{className:`flex flex-1 flex-col p-2`,children:a})]})]})}):F(`aside`,{className:`group peer hidden bg-card text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":c===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[P(`div`,{"data-slot":`sidebar-gap`,className:M(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height)+0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),P(`div`,{"data-slot":`sidebar-container`,className:M(`hidden md:flex`,`fixed inset-y-0 top-14 z-10 shadow-nav`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...o,children:P(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:M(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:a})})]})}function H({className:e,children:t,...n}){return F(`main`,{"data-slot":`sidebar-inset`,className:M(`relative flex w-full flex-1 flex-col`,e),...n,children:[P(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)+0.5rem)]`}),P(`div`,{className:`inset-shadow-sm flex-1`,children:t})]})}function U({className:e,...t}){return P(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:M(`flex flex-col gap-2 p-2`,e),...t})}function W({className:e,...t}){return P(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:M(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function G({className:e,...t}){return P(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:M(`relative flex w-full min-w-0 flex-col`,e),...t})}function K({className:t,asChild:n=!1,...r}){return P(n?e:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:M(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,t),...r})}function q({className:e,...t}){return P(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:M(`w-full text-sm`,e),...t})}function J({className:e,...t}){return P(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:M(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Y({className:e,...t}){return P(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:M(`group/menu-item relative`,e),...t})}const X=N([`peer/menu-button`,`cursor-pointer`,`flex w-full items-center gap-2`,`overflow-hidden rounded-md p-2 outline-hidden`,`truncate text-left font-normal`,`transition-[color,width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-primary-muted`,`data-[active=true]:text-sidebar-primary`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-12!`,`group-data-[collapsible=icon]:p-3!`,`group-data-[collapsible=icon]:gap-3!`,`[&>svg]:size-6`,`[&>svg]:shrink-0`,`[&>span:last-child]:truncate`],{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-10 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Z({asChild:t=!1,isActive:n=!1,variant:r=`default`,size:o=`default`,tooltip:c,className:l,...u}){let d=t?e:`button`,{isMobile:f,state:p}=z(),m=P(d,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":n,className:M(X({variant:r,size:o}),l),...u});return c?(typeof c==`string`&&(c={children:c}),F(s,{children:[P(i,{asChild:!0,children:m}),P(a,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...c})]})):m}const Q=({uuid:e,username:t,email:i})=>F(r,{"data-slot":`user-display`,wrap:!1,gap:`sm`,padding:`none`,children:[P(l,{className:`size-9 shadow-card`,children:P(c,{style:{backgroundColor:I.hex(e)},children:P(T,{size:28,className:`text-white`})})}),F(r,{vertical:!0,padding:`none`,gap:`none`,align:`start`,className:`hidden sm:flex`,children:[P(n,{className:`text-sm font-medium text-text-positive`,children:t}),P(n,{variant:`sm`,className:`mt-0! text-xs text-text-positive-weak`,children:i})]})]}),$=({user:e,isLogin:n=!0,onLogin:r,onLogout:i})=>{let{toggleSidebar:a}=z(),o=D(e=>{e.preventDefault(),e.stopPropagation(),a()},[a]),s=D(e=>{e.preventDefault(),e.stopPropagation(),i?.()},[i]),c=D(e=>{e.preventDefault(),e.stopPropagation(),r?.()},[r]);return F(`header`,{"data-slot":`payment-layout-header`,className:M(`bg-card`,`h-[calc(var(--header-height)+0.5rem)] sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-2.5`,`flex items-center shadow-nav`,`transition-[width,height] ease-linear`),children:[n&&F(t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:`hidden size-10 rounded-full transition-all hover:text-text-positive md:flex`,onClick:o,children:[P(C,{className:`size-6!`}),P(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]}),F(`div`,{className:`flex flex-1 gap-x-2 sm:ml-2.5`,children:[P(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:P(w,{size:20})}),F(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[P(`span`,{className:`truncate font-medium`,children:`Lunas Payment`}),P(`span`,{className:`truncate text-xs`,children:`Quản lý đơn hàng`})]})]}),e?F(b,{children:[P(g,{asChild:!0,children:P(t,{variant:`ghost`,color:`muted`,className:`gap-x-2 rounded-full px-2 transition-all hover:text-text-positive`,children:P(Q,{uuid:e?.uuid??``,username:e.fullname,email:e.email})})}),F(y,{align:`end`,className:`w-56`,children:[F(v,{className:`font-normal`,children:[P(`p`,{className:`font-medium`,children:e.fullname}),P(`p`,{className:`text-muted-foreground text-xs`,children:e.email})]}),P(x,{}),P(_,{children:F(h,{onClick:s,children:[P(S,{size:14}),`Đăng xuất`]})})]})]}):P(t,{size:`sm`,onClick:c,children:`Đăng nhập`})]})},ee=({items:e,activeNavItemId:t})=>{let{isMobile:n}=z();if(!n||e.length===0)return null;let r=e.slice(0,5);return P(`nav`,{"data-slot":`mobile-bottom-nav`,className:`fixed inset-x-0 bottom-0 z-20 flex h-16 items-stretch border-border border-t bg-card md:hidden`,children:r.map(e=>F(`button`,{type:`button`,onClick:e.onClick,"data-active":e.id===t,className:M(`flex flex-1 flex-col items-center justify-center gap-0.5`,`text-muted-foreground transition-colors`,`data-[active=true]:text-sidebar-primary`,`[&>svg]:size-5 [&>svg]:shrink-0`),children:[e.icon,P(`span`,{className:`max-w-16 truncate text-[10px] leading-3`,children:e.label})]},e.id))})},te=({activeNavItemId:e,sidebar:t,user:n,isLogin:r=!0,onLogin:i,onLogout:a,children:o})=>{let s=A(()=>t?.groupcontent||[],[t]),c=A(()=>s.flatMap(e=>e.items),[s]);return F(B,{children:[P($,{user:n,isLogin:r,onLogin:i,onLogout:a}),r&&F(V,{variant:`inset`,collapsible:`icon`,children:[P(W,{children:s.map(t=>F(G,{children:[P(K,{children:t.label}),P(q,{children:P(J,{children:t.items.map(t=>P(Y,{children:F(Z,{isActive:t.id===e,onClick:e=>{t.onClick?.(),e.preventDefault(),e.stopPropagation()},children:[t.icon,t.label]})},t.id))})})]},t.id))}),P(U,{children:P(J,{children:P(Y,{className:`mt-2 border-t border-t-border`,children:P(`p`,{className:`pt-2 text-center text-muted-foreground text-xs`,children:`Copyright © 2025, Lunas.`})})})})]}),P(H,{children:P(`section`,{className:`relative size-full`,children:P(`div`,{className:M(`absolute inset-0 overflow-y-auto`,r&&`pb-16 md:pb-0`),children:o})})}),r&&P(ee,{items:c,activeNavItemId:e})]})};export{te as t};
2
- //# sourceMappingURL=payment-layout-Bd4B4jhp.mjs.map
1
+ import{t as e}from"./dist-BQGL-YKY.mjs";import{t}from"./button-CfPTDyoq.mjs";import{t as n}from"./paragraph-CjstaJFj.mjs";import{t as r}from"./flex-BAcvp4lB.mjs";import{i,n as a,r as o,t as s}from"./tooltip-BfBJRYpc.mjs";import{n as c,t as l}from"./avatar-m1LjDIil.mjs";import{i as u,o as d,r as f,s as p,t as m}from"./sheet-Cj8hoftE.mjs";import{a as h,h as g,i as _,o as v,r as y,t as b,u as x}from"./dropdown-menu-C6tRSumY.mjs";import{LogOutIcon as S,MenuIcon as C,ShoppingCartIcon as w,UserRoundIcon as T}from"lucide-react";import{createContext as E,useCallback as D,useContext as O,useEffect as k,useMemo as A,useState as j}from"react";import{cn as M}from"@customafk/react-toolkit/utils";import{cva as N}from"class-variance-authority";import{jsx as P,jsxs as F}from"react/jsx-runtime";import{colorHashLight as I}from"@customafk/react-toolkit/color-hash";import{useIsMobile as L}from"@customafk/react-toolkit/hooks/useMobile";const R=E(null);function z(){let e=O(R);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function B({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...s}){let c=L(),[l,u]=j(!1),[d,f]=j(e),p=t??d,m=D(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),h=D(()=>c?u(e=>!e):m(e=>!e),[c,m]);k(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=A(()=>({state:g,open:p,setOpen:m,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:h}),[g,p,m,c,l,h]);return P(R.Provider,{value:_,children:P(o,{delayDuration:0,children:P(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...i},className:M(`group/sidebar-wrapper flex h-dvh w-full`,r),...s,children:a})})})}function V({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,...o}){let{isMobile:s,state:c,openMobile:l,setOpenMobile:h,toggleSidebar:g}=z();return r===`none`?P(`aside`,{"data-slot":`sidebar`,className:M(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,i),...o,children:a}):s?P(m,{open:l,onOpenChange:h,...o,children:F(f,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground sm:max-w-3xs [&>button]:hidden`,style:{"--sidebar-width":`18rem`},side:e,children:[F(d,{className:`sr-only`,children:[P(p,{children:`Sidebar`}),P(u,{children:`Displays the mobile sidebar.`})]}),F(`div`,{className:`flex size-full flex-col`,children:[F(`div`,{className:`flex flex-0 items-center gap-x-2 border-border-weak border-b p-2 pr-4`,children:[F(t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:M(`size-10 rounded-full`,i),onClick:e=>{g(),e.preventDefault(),e.stopPropagation()},children:[P(C,{className:`size-6!`}),P(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]}),P(`div`,{className:`ml-2 flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:P(w,{size:20})}),F(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[P(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),P(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),P(`div`,{className:`flex flex-1 flex-col p-2`,children:a})]})]})}):F(`aside`,{className:`group peer hidden bg-card text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":c===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[P(`div`,{"data-slot":`sidebar-gap`,className:M(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height)+0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),P(`div`,{"data-slot":`sidebar-container`,className:M(`hidden md:flex`,`fixed inset-y-0 top-14 z-10 shadow-nav`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...o,children:P(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:M(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:a})})]})}function H({className:e,children:t,...n}){return F(`main`,{"data-slot":`sidebar-inset`,className:M(`relative flex w-full flex-1 flex-col`,e),...n,children:[P(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)+0.5rem)]`}),P(`div`,{className:`inset-shadow-sm flex-1`,children:t})]})}function U({className:e,...t}){return P(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:M(`flex flex-col gap-2 p-2`,e),...t})}function W({className:e,...t}){return P(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:M(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function G({className:e,...t}){return P(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:M(`relative flex w-full min-w-0 flex-col`,e),...t})}function K({className:t,asChild:n=!1,...r}){return P(n?e:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:M(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,t),...r})}function q({className:e,...t}){return P(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:M(`w-full text-sm`,e),...t})}function J({className:e,...t}){return P(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:M(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Y({className:e,...t}){return P(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:M(`group/menu-item relative`,e),...t})}const X=N([`peer/menu-button`,`cursor-pointer`,`flex w-full items-center gap-2`,`overflow-hidden rounded-md p-2 outline-hidden`,`truncate text-left font-normal`,`transition-[color,width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-primary-muted`,`data-[active=true]:text-sidebar-primary`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-12!`,`group-data-[collapsible=icon]:p-3!`,`group-data-[collapsible=icon]:gap-3!`,`[&>svg]:size-6`,`[&>svg]:shrink-0`,`[&>span:last-child]:truncate`],{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-10 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Z({asChild:t=!1,isActive:n=!1,variant:r=`default`,size:o=`default`,tooltip:c,className:l,...u}){let d=t?e:`button`,{isMobile:f,state:p}=z(),m=P(d,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":n,className:M(X({variant:r,size:o}),l),...u});return c?(typeof c==`string`&&(c={children:c}),F(s,{children:[P(i,{asChild:!0,children:m}),P(a,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...c})]})):m}const Q=({uuid:e,username:t,email:i})=>F(r,{"data-slot":`user-display`,wrap:!1,gap:`sm`,padding:`none`,children:[P(l,{className:`size-9 shadow-card`,children:P(c,{style:{backgroundColor:I.hex(e)},children:P(T,{size:28,className:`text-white`})})}),F(r,{vertical:!0,padding:`none`,gap:`none`,align:`start`,className:`hidden sm:flex`,children:[P(n,{className:`text-sm font-medium text-text-positive`,children:t}),P(n,{variant:`sm`,className:`mt-0! text-xs text-text-positive-weak`,children:i})]})]}),$=({user:e,isLogin:n=!0,onLogin:r,onLogout:i})=>{let{toggleSidebar:a}=z(),o=D(e=>{e.preventDefault(),e.stopPropagation(),a()},[a]),s=D(e=>{e.preventDefault(),e.stopPropagation(),i?.()},[i]),c=D(e=>{e.preventDefault(),e.stopPropagation(),r?.()},[r]);return F(`header`,{"data-slot":`payment-layout-header`,className:M(`bg-card`,`h-[calc(var(--header-height)+0.5rem)] sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-2.5`,`flex items-center shadow-nav`,`transition-[width,height] ease-linear`),children:[n&&F(t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:`hidden size-10 rounded-full transition-all hover:text-text-positive md:flex`,onClick:o,children:[P(C,{className:`size-6!`}),P(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]}),F(`div`,{className:`flex flex-1 gap-x-2 sm:ml-2.5`,children:[P(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:P(w,{size:20})}),F(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[P(`span`,{className:`truncate font-medium`,children:`Lunas Payment`}),P(`span`,{className:`truncate text-xs`,children:`Quản lý đơn hàng`})]})]}),e?F(b,{children:[P(g,{asChild:!0,children:P(t,{variant:`ghost`,color:`muted`,className:`gap-x-2 rounded-full px-2 transition-all hover:text-text-positive`,children:P(Q,{uuid:e?.uuid??``,username:e.fullname,email:e.email})})}),F(y,{align:`end`,className:`w-56`,children:[F(v,{className:`font-normal`,children:[P(`p`,{className:`font-medium`,children:e.fullname}),P(`p`,{className:`text-muted-foreground text-xs`,children:e.email})]}),P(x,{}),P(_,{children:F(h,{onClick:s,children:[P(S,{size:14}),`Đăng xuất`]})})]})]}):P(t,{size:`sm`,onClick:c,children:`Đăng nhập`})]})},ee=({items:e,activeNavItemId:t})=>{let{isMobile:n}=z();if(!n||e.length===0)return null;let r=e.slice(0,5);return P(`nav`,{"data-slot":`mobile-bottom-nav`,className:`fixed inset-x-0 bottom-0 z-20 flex h-16 items-stretch border-border border-t bg-card md:hidden`,children:r.map(e=>F(`button`,{type:`button`,onClick:e.onClick,"data-active":e.id===t,className:M(`flex flex-1 flex-col items-center justify-center gap-0.5`,`text-muted-foreground transition-colors`,`data-[active=true]:text-sidebar-primary`,`[&>svg]:size-5 [&>svg]:shrink-0`),children:[e.icon,P(`span`,{className:`max-w-16 truncate text-[10px] leading-3`,children:e.label})]},e.id))})},te=({activeNavItemId:e,sidebar:t,user:n,isLogin:r=!0,onLogin:i,onLogout:a,children:o})=>{let s=A(()=>t?.groupcontent||[],[t]),c=A(()=>s.flatMap(e=>e.items),[s]);return F(B,{children:[P($,{user:n,isLogin:r,onLogin:i,onLogout:a}),r&&F(V,{variant:`inset`,collapsible:`icon`,children:[P(W,{children:s.map(t=>F(G,{children:[P(K,{children:t.label}),P(q,{children:P(J,{children:t.items.map(t=>P(Y,{children:F(Z,{isActive:t.id===e,onClick:e=>{t.onClick?.(),e.preventDefault(),e.stopPropagation()},children:[t.icon,t.label]})},t.id))})})]},t.id))}),P(U,{children:P(J,{children:P(Y,{className:`mt-2 border-t border-t-border`,children:P(`p`,{className:`pt-2 text-center text-muted-foreground text-xs`,children:`Copyright © 2025, Lunas.`})})})})]}),P(H,{children:P(`section`,{className:`relative size-full`,children:P(`div`,{className:M(`absolute inset-0 overflow-y-auto`,r&&`pb-16 md:pb-0`),children:o})})}),r&&P(ee,{items:c,activeNavItemId:e})]})};export{te as t};
2
+ //# sourceMappingURL=payment-layout-_ZM4uBy_.mjs.map