@customafk/lunas-ui 0.0.112 → 0.0.113

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 (171) hide show
  1. package/dist/{button-CsFG_79-.d.ts → button-BbK2pA5K.d.ts} +6 -6
  2. package/dist/{button-DgaB7fPB.d.cts → button-DMZzvs2X.d.cts} +4 -4
  3. package/dist/{command-DYTC2cax.d.ts → command-808_UQqG.d.ts} +12 -12
  4. package/dist/{command-C3P4Gz9F.d.cts → command-DYFzStYw.d.cts} +12 -12
  5. package/dist/data-display/statistic.d.cts +2 -2
  6. package/dist/data-display/statistic.d.ts +2 -2
  7. package/dist/{dialog-C-mUXuY2.d.ts → dialog-Dbz_S8BO.d.ts} +12 -12
  8. package/dist/{dialog-BAy07ui2.d.cts → dialog-DcdE8uG0.d.cts} +12 -12
  9. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
  10. package/dist/dialogs/detail-dialog/component/sidebar.d.ts +3 -3
  11. package/dist/dialogs/form-dialog.d.ts +2 -2
  12. package/dist/features/search-modal/index.d.cts +2 -2
  13. package/dist/features/search-modal/index.d.ts +2 -2
  14. package/dist/forms/combobox-field.d.cts +2 -2
  15. package/dist/forms/combobox-field.d.ts +2 -2
  16. package/dist/forms/date-field.d.cts +2 -2
  17. package/dist/forms/date-field.d.ts +2 -2
  18. package/dist/forms/form-wrapper.d.cts +2 -2
  19. package/dist/forms/form-wrapper.d.ts +2 -2
  20. package/dist/forms/multi-select-field.d.cts +2 -2
  21. package/dist/forms/number-field.d.cts +2 -2
  22. package/dist/forms/number-field.d.ts +2 -2
  23. package/dist/forms/password-field.d.cts +2 -2
  24. package/dist/forms/password-field.d.ts +2 -2
  25. package/dist/forms/select-field.d.cts +2 -2
  26. package/dist/forms/select-field.d.ts +2 -2
  27. package/dist/forms/switch-field.d.cts +2 -2
  28. package/dist/forms/switch-field.d.ts +2 -2
  29. package/dist/forms/text-field.d.cts +2 -2
  30. package/dist/forms/text-field.d.ts +2 -2
  31. package/dist/forms/textarea-field.d.cts +2 -2
  32. package/dist/forms/textarea-field.d.ts +2 -2
  33. package/dist/{input-CZDcQBGU.d.ts → input-DKyl2GV3.d.cts} +3 -3
  34. package/dist/{input-B9KPHaTo.d.cts → input-DbSgAI0q.d.ts} +3 -3
  35. package/dist/{label-C8yEQWaz.d.ts → label-BOqXenw_.d.cts} +3 -3
  36. package/dist/label-BZK1KfRE.d.ts +11 -0
  37. package/dist/layouts/app-layout/index.d.cts +28 -28
  38. package/dist/layouts/app-layout/index.d.ts +4 -4
  39. package/dist/layouts/flex.d.cts +4 -4
  40. package/dist/layouts/flex.d.ts +2 -2
  41. package/dist/layouts/service-layout/index.cjs +1 -1
  42. package/dist/layouts/service-layout/index.d.cts +15 -15
  43. package/dist/layouts/service-layout/index.d.ts +4 -4
  44. package/dist/layouts/service-layout/index.js +1 -1
  45. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  46. package/dist/pages/FeatureDeveloping.d.ts +2 -2
  47. package/dist/pages/FeatureFixing.d.cts +2 -2
  48. package/dist/pages/FeatureFixing.d.ts +2 -2
  49. package/dist/pages/NotAuthorized.d.cts +2 -2
  50. package/dist/pages/NotAuthorized.d.ts +2 -2
  51. package/dist/pages/NotFound.d.ts +2 -2
  52. package/dist/products/product-quantity-control.d.cts +2 -2
  53. package/dist/products/product-quantity-control.d.ts +2 -2
  54. package/dist/{separator-BMWE1YbF.d.cts → separator-BDI2j_tt.d.cts} +3 -3
  55. package/dist/table/index.d.cts +2 -2
  56. package/dist/table/index.d.ts +2 -2
  57. package/dist/tanstack-form/index.cjs +1 -1
  58. package/dist/tanstack-form/index.cjs.map +1 -1
  59. package/dist/tanstack-form/index.d.cts +18 -18
  60. package/dist/tanstack-form/index.js +1 -1
  61. package/dist/tanstack-form/index.js.map +1 -1
  62. package/dist/{toggle-CAwuiF7Z.d.ts → toggle-BdonCb5D.d.ts} +5 -5
  63. package/dist/{toggle-MKiZqOqs.d.cts → toggle-C9u9nHBh.d.cts} +5 -5
  64. package/dist/{tooltip-BO_2mGzF.d.ts → tooltip-C_dFaGou.d.ts} +6 -6
  65. package/dist/{tooltip-B8fqBNc4.d.cts → tooltip-W7H3DIJC.d.cts} +6 -6
  66. package/dist/typography/paragraph.d.cts +2 -2
  67. package/dist/typography/paragraph.d.ts +2 -2
  68. package/dist/typography/title.d.cts +2 -2
  69. package/dist/typography/title.d.ts +2 -2
  70. package/dist/ui/alert-dialog.d.cts +12 -12
  71. package/dist/ui/alert-dialog.d.ts +12 -12
  72. package/dist/ui/alert.d.cts +4 -4
  73. package/dist/ui/alert.d.ts +6 -6
  74. package/dist/ui/aspect-ratio.d.cts +2 -2
  75. package/dist/ui/aspect-ratio.d.ts +2 -2
  76. package/dist/ui/avatar.d.cts +4 -4
  77. package/dist/ui/avatar.d.ts +4 -4
  78. package/dist/ui/badge.d.cts +4 -4
  79. package/dist/ui/badge.d.ts +4 -4
  80. package/dist/ui/breadcrumb.d.cts +8 -8
  81. package/dist/ui/breadcrumb.d.ts +8 -8
  82. package/dist/ui/button-group.d.cts +5 -5
  83. package/dist/ui/button-group.d.ts +6 -6
  84. package/dist/ui/button.d.cts +1 -1
  85. package/dist/ui/button.d.ts +1 -1
  86. package/dist/ui/calendar.d.cts +4 -4
  87. package/dist/ui/calendar.d.ts +4 -4
  88. package/dist/ui/card.d.cts +8 -8
  89. package/dist/ui/card.d.ts +8 -8
  90. package/dist/ui/carousel.d.cts +7 -7
  91. package/dist/ui/carousel.d.ts +7 -7
  92. package/dist/ui/collapsible.d.cts +4 -4
  93. package/dist/ui/collapsible.d.ts +4 -4
  94. package/dist/ui/command.d.cts +2 -2
  95. package/dist/ui/command.d.ts +2 -2
  96. package/dist/ui/context-menu.d.cts +16 -16
  97. package/dist/ui/context-menu.d.ts +16 -16
  98. package/dist/ui/dialog.d.cts +1 -1
  99. package/dist/ui/dialog.d.ts +1 -1
  100. package/dist/ui/drawer.d.cts +11 -11
  101. package/dist/ui/drawer.d.ts +11 -11
  102. package/dist/ui/dropdown-menu.d.cts +16 -16
  103. package/dist/ui/dropdown-menu.d.ts +16 -16
  104. package/dist/ui/empty.d.cts +9 -9
  105. package/dist/ui/empty.d.ts +9 -9
  106. package/dist/ui/field.d.cts +25 -25
  107. package/dist/ui/field.d.ts +14 -14
  108. package/dist/ui/file-uploader.d.cts +2 -2
  109. package/dist/ui/file-uploader.d.ts +2 -2
  110. package/dist/ui/form.d.cts +11 -11
  111. package/dist/ui/form.d.ts +7 -7
  112. package/dist/ui/hover-card.d.cts +4 -4
  113. package/dist/ui/hover-card.d.ts +4 -4
  114. package/dist/ui/input-otp.d.cts +5 -5
  115. package/dist/ui/input-otp.d.ts +5 -5
  116. package/dist/ui/input.d.cts +1 -1
  117. package/dist/ui/input.d.ts +1 -1
  118. package/dist/ui/inputs/search-input.d.cts +3 -3
  119. package/dist/ui/inputs/search-input.d.ts +1 -1
  120. package/dist/ui/item.d.cts +13 -13
  121. package/dist/ui/item.d.ts +15 -15
  122. package/dist/ui/label.d.cts +1 -1
  123. package/dist/ui/label.d.ts +1 -1
  124. package/dist/ui/menubar.d.cts +17 -17
  125. package/dist/ui/menubar.d.ts +17 -17
  126. package/dist/ui/multi-select.d.cts +4 -4
  127. package/dist/ui/multi-select.d.ts +4 -4
  128. package/dist/ui/navigation-menu.d.cts +11 -11
  129. package/dist/ui/navigation-menu.d.ts +11 -11
  130. package/dist/ui/pagination.d.cts +9 -9
  131. package/dist/ui/pagination.d.ts +9 -9
  132. package/dist/ui/popover.d.cts +5 -5
  133. package/dist/ui/popover.d.ts +5 -5
  134. package/dist/ui/progress.d.cts +2 -2
  135. package/dist/ui/progress.d.ts +2 -2
  136. package/dist/ui/radio-group.d.cts +3 -3
  137. package/dist/ui/radio-group.d.ts +3 -3
  138. package/dist/ui/resizable.d.cts +4 -4
  139. package/dist/ui/resizable.d.ts +4 -4
  140. package/dist/ui/scroll-area.d.cts +6 -6
  141. package/dist/ui/scroll-area.d.ts +6 -6
  142. package/dist/ui/select.d.cts +11 -11
  143. package/dist/ui/select.d.ts +11 -11
  144. package/dist/ui/separator.d.cts +1 -1
  145. package/dist/ui/sheet.d.cts +9 -9
  146. package/dist/ui/sheet.d.ts +9 -9
  147. package/dist/ui/sidebar.d.cts +30 -30
  148. package/dist/ui/sidebar.d.ts +29 -29
  149. package/dist/ui/skeleton.d.cts +2 -2
  150. package/dist/ui/slider.d.cts +2 -2
  151. package/dist/ui/slider.d.ts +2 -2
  152. package/dist/ui/sonner.d.cts +2 -2
  153. package/dist/ui/sonner.d.ts +2 -2
  154. package/dist/ui/spinner.d.cts +2 -2
  155. package/dist/ui/spinner.d.ts +2 -2
  156. package/dist/ui/switch.d.cts +2 -2
  157. package/dist/ui/switch.d.ts +2 -2
  158. package/dist/ui/table.d.cts +18 -18
  159. package/dist/ui/table.d.ts +9 -9
  160. package/dist/ui/tabs.d.cts +5 -5
  161. package/dist/ui/tabs.d.ts +5 -5
  162. package/dist/ui/textarea.d.cts +2 -2
  163. package/dist/ui/textarea.d.ts +2 -2
  164. package/dist/ui/toggle-group.d.cts +4 -4
  165. package/dist/ui/toggle-group.d.ts +4 -4
  166. package/dist/ui/toggle.d.cts +1 -1
  167. package/dist/ui/toggle.d.ts +1 -1
  168. package/dist/ui/tooltip.d.cts +1 -1
  169. package/dist/ui/tooltip.d.ts +1 -1
  170. package/package.json +1 -1
  171. package/dist/label-BoPdZ_p1.d.cts +0 -11
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime88 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/multi-select-field.d.ts
@@ -26,7 +26,7 @@ declare const MultiSelectField: <TFieldValues extends FieldValues = FieldValues>
26
26
  className,
27
27
  options,
28
28
  onAdd
29
- }: Props<TFieldValues>) => react_jsx_runtime11.JSX.Element;
29
+ }: Props<TFieldValues>) => react_jsx_runtime88.JSX.Element;
30
30
  //#endregion
31
31
  export { MultiSelectField };
32
32
  //# sourceMappingURL=multi-select-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/number-field.d.ts
@@ -24,7 +24,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
24
24
  unitText,
25
25
  description,
26
26
  onValueChange
27
- }: Props<TFieldValues>) => react_jsx_runtime3.JSX.Element;
27
+ }: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
28
28
  //#endregion
29
29
  export { NumberField };
30
30
  //# sourceMappingURL=number-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime95 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/number-field.d.ts
@@ -24,7 +24,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
24
24
  unitText,
25
25
  description,
26
26
  onValueChange
27
- }: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
27
+ }: Props<TFieldValues>) => react_jsx_runtime95.JSX.Element;
28
28
  //#endregion
29
29
  export { NumberField };
30
30
  //# sourceMappingURL=number-field.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/password-field.d.ts
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
17
17
  isShowErrorMsg,
18
18
  description,
19
19
  onValueChange
20
- }: Props<TFieldValues>) => react_jsx_runtime10.JSX.Element;
20
+ }: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
21
21
  //#endregion
22
22
  export { PasswordField };
23
23
  //# sourceMappingURL=password-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/password-field.d.ts
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
17
17
  isShowErrorMsg,
18
18
  description,
19
19
  onValueChange
20
- }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
20
+ }: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
21
21
  //#endregion
22
22
  export { PasswordField };
23
23
  //# sourceMappingURL=password-field.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/select-field.d.ts
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  isShowErrorMsg,
28
28
  description,
29
29
  className
30
- }: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
31
31
  //#endregion
32
32
  export { SelectField };
33
33
  //# sourceMappingURL=select-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime7 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/select-field.d.ts
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  isShowErrorMsg,
28
28
  description,
29
29
  className
30
- }: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime29.JSX.Element;
31
31
  //#endregion
32
32
  export { SelectField };
33
33
  //# sourceMappingURL=select-field.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/switch-field.d.ts
@@ -15,7 +15,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
15
15
  className,
16
16
  description,
17
17
  isShowErrorMsg
18
- }: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
18
+ }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
19
19
  //#endregion
20
20
  export { SwitchField };
21
21
  //# sourceMappingURL=switch-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/switch-field.d.ts
@@ -15,7 +15,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
15
15
  className,
16
16
  description,
17
17
  isShowErrorMsg
18
- }: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
18
+ }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
19
19
  //#endregion
20
20
  export { SwitchField };
21
21
  //# sourceMappingURL=switch-field.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime67 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/text-field.d.ts
@@ -27,7 +27,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  description,
28
28
  className,
29
29
  onValueChange
30
- }: Props<TFieldValues>) => react_jsx_runtime67.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
31
31
  //#endregion
32
32
  export { TextField };
33
33
  //# sourceMappingURL=text-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime13 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/text-field.d.ts
@@ -27,7 +27,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  description,
28
28
  className,
29
29
  onValueChange
30
- }: Props<TFieldValues>) => react_jsx_runtime13.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
31
31
  //#endregion
32
32
  export { TextField };
33
33
  //# sourceMappingURL=text-field.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime13 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/textarea-field.d.ts
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
21
21
  description,
22
22
  rows,
23
23
  onValueChange
24
- }: Props<TFieldValues>) => react_jsx_runtime13.JSX.Element;
24
+ }: Props<TFieldValues>) => react_jsx_runtime18.JSX.Element;
25
25
  //#endregion
26
26
  export { TextareaField };
27
27
  //# sourceMappingURL=textarea-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime115 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/textarea-field.d.ts
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
21
21
  description,
22
22
  rows,
23
23
  onValueChange
24
- }: Props<TFieldValues>) => react_jsx_runtime10.JSX.Element;
24
+ }: Props<TFieldValues>) => react_jsx_runtime115.JSX.Element;
25
25
  //#endregion
26
26
  export { TextareaField };
27
27
  //# sourceMappingURL=textarea-field.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime175 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime276 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/input.d.ts
4
4
  declare function Input({
@@ -8,7 +8,7 @@ declare function Input({
8
8
  ...props
9
9
  }: React.ComponentProps<'input'> & {
10
10
  onValueChange?: (value: string) => void;
11
- }): react_jsx_runtime175.JSX.Element;
11
+ }): react_jsx_runtime276.JSX.Element;
12
12
  //#endregion
13
13
  export { Input as t };
14
- //# sourceMappingURL=input-CZDcQBGU.d.ts.map
14
+ //# sourceMappingURL=input-DKyl2GV3.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime96 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime122 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/input.d.ts
4
4
  declare function Input({
@@ -8,7 +8,7 @@ declare function Input({
8
8
  ...props
9
9
  }: React.ComponentProps<'input'> & {
10
10
  onValueChange?: (value: string) => void;
11
- }): react_jsx_runtime96.JSX.Element;
11
+ }): react_jsx_runtime122.JSX.Element;
12
12
  //#endregion
13
13
  export { Input as t };
14
- //# sourceMappingURL=input-B9KPHaTo.d.cts.map
14
+ //# sourceMappingURL=input-DbSgAI0q.d.ts.map
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime141 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime149 from "react/jsx-runtime";
2
2
  import { Label } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/label.d.ts
5
5
  declare function Label$1({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof Label.Root>): react_jsx_runtime141.JSX.Element;
8
+ }: React.ComponentProps<typeof Label.Root>): react_jsx_runtime149.JSX.Element;
9
9
  //#endregion
10
10
  export { Label$1 as t };
11
- //# sourceMappingURL=label-C8yEQWaz.d.ts.map
11
+ //# sourceMappingURL=label-BOqXenw_.d.cts.map
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime121 from "react/jsx-runtime";
2
+ import { Label } from "radix-ui";
3
+
4
+ //#region packages/components/ui/label.d.ts
5
+ declare function Label$1({
6
+ className,
7
+ ...props
8
+ }: React.ComponentProps<typeof Label.Root>): react_jsx_runtime121.JSX.Element;
9
+ //#endregion
10
+ export { Label$1 as t };
11
+ //# sourceMappingURL=label-BZK1KfRE.d.ts.map
@@ -1,8 +1,8 @@
1
- import { t as Button } from "../../button-DgaB7fPB.cjs";
2
- import { t as Separator } from "../../separator-BMWE1YbF.cjs";
3
- import { n as TooltipContent } from "../../tooltip-B8fqBNc4.cjs";
4
- import * as react_jsx_runtime327 from "react/jsx-runtime";
5
- import * as class_variance_authority_types12 from "class-variance-authority/types";
1
+ import { t as Button } from "../../button-DMZzvs2X.cjs";
2
+ import { t as Separator } from "../../separator-BDI2j_tt.cjs";
3
+ import { n as TooltipContent } from "../../tooltip-W7H3DIJC.cjs";
4
+ import * as react_jsx_runtime305 from "react/jsx-runtime";
5
+ import * as class_variance_authority_types11 from "class-variance-authority/types";
6
6
  import { VariantProps } from "class-variance-authority";
7
7
 
8
8
  //#region packages/components/layouts/app-layout/sidebar.d.ts
@@ -28,7 +28,7 @@ declare function SidebarProvider({
28
28
  defaultOpen?: boolean;
29
29
  open?: boolean;
30
30
  onOpenChange?: (open: boolean) => void;
31
- }): react_jsx_runtime327.JSX.Element;
31
+ }): react_jsx_runtime305.JSX.Element;
32
32
  declare function Sidebar({
33
33
  side,
34
34
  variant,
@@ -40,71 +40,71 @@ declare function Sidebar({
40
40
  side?: 'left' | 'right';
41
41
  variant?: 'sidebar' | 'floating' | 'inset';
42
42
  collapsible?: 'offcanvas' | 'icon' | 'none';
43
- }): react_jsx_runtime327.JSX.Element;
43
+ }): react_jsx_runtime305.JSX.Element;
44
44
  declare function AppLayoutSidebarTrigger({
45
45
  className,
46
46
  onClick,
47
47
  ...props
48
- }: React.ComponentProps<typeof Button>): react_jsx_runtime327.JSX.Element;
48
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime305.JSX.Element;
49
49
  declare function AppLayoutSidebarRail({
50
50
  className,
51
51
  ...props
52
- }: React.ComponentProps<'button'>): react_jsx_runtime327.JSX.Element;
52
+ }: React.ComponentProps<'button'>): react_jsx_runtime305.JSX.Element;
53
53
  declare function AppLayoutSidebarInset({
54
54
  className,
55
55
  children,
56
56
  ...props
57
- }: React.ComponentProps<'main'>): react_jsx_runtime327.JSX.Element;
57
+ }: React.ComponentProps<'main'>): react_jsx_runtime305.JSX.Element;
58
58
  declare function AppLayoutSidebarHeader({
59
59
  className,
60
60
  ...props
61
- }: React.ComponentProps<'div'>): react_jsx_runtime327.JSX.Element;
61
+ }: React.ComponentProps<'div'>): react_jsx_runtime305.JSX.Element;
62
62
  declare function AppLayoutSidebarFooter({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react_jsx_runtime327.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react_jsx_runtime305.JSX.Element;
66
66
  declare function AppLayoutSidebarSeparator({
67
67
  className,
68
68
  ...props
69
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime327.JSX.Element;
69
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime305.JSX.Element;
70
70
  declare function AppLayoutSidebarContent({
71
71
  className,
72
72
  ...props
73
- }: React.ComponentProps<'div'>): react_jsx_runtime327.JSX.Element;
73
+ }: React.ComponentProps<'div'>): react_jsx_runtime305.JSX.Element;
74
74
  declare function AppLayoutSidebarGroup({
75
75
  className,
76
76
  ...props
77
- }: React.ComponentProps<'div'>): react_jsx_runtime327.JSX.Element;
77
+ }: React.ComponentProps<'div'>): react_jsx_runtime305.JSX.Element;
78
78
  declare function AppLayoutSidebarGroupLabel({
79
79
  className,
80
80
  asChild,
81
81
  ...props
82
82
  }: React.ComponentProps<'div'> & {
83
83
  asChild?: boolean;
84
- }): react_jsx_runtime327.JSX.Element;
84
+ }): react_jsx_runtime305.JSX.Element;
85
85
  declare function AppLayoutSidebarGroupAction({
86
86
  className,
87
87
  asChild,
88
88
  ...props
89
89
  }: React.ComponentProps<'button'> & {
90
90
  asChild?: boolean;
91
- }): react_jsx_runtime327.JSX.Element;
91
+ }): react_jsx_runtime305.JSX.Element;
92
92
  declare function AppLayoutSidebarGroupContent({
93
93
  className,
94
94
  ...props
95
- }: React.ComponentProps<'div'>): react_jsx_runtime327.JSX.Element;
95
+ }: React.ComponentProps<'div'>): react_jsx_runtime305.JSX.Element;
96
96
  declare function AppLayoutSidebarMenu({
97
97
  className,
98
98
  ...props
99
- }: React.ComponentProps<'ul'>): react_jsx_runtime327.JSX.Element;
99
+ }: React.ComponentProps<'ul'>): react_jsx_runtime305.JSX.Element;
100
100
  declare function AppLayoutSidebarMenuItem({
101
101
  className,
102
102
  ...props
103
- }: React.ComponentProps<'li'>): react_jsx_runtime327.JSX.Element;
103
+ }: React.ComponentProps<'li'>): react_jsx_runtime305.JSX.Element;
104
104
  declare const sidebarMenuButtonVariants: (props?: ({
105
105
  variant?: "default" | "outline" | null | undefined;
106
106
  size?: "sm" | "lg" | "default" | null | undefined;
107
- } & class_variance_authority_types12.ClassProp) | undefined) => string;
107
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
108
108
  declare function AppLayoutSidebarMenuButton({
109
109
  asChild,
110
110
  isActive,
@@ -117,7 +117,7 @@ declare function AppLayoutSidebarMenuButton({
117
117
  asChild?: boolean;
118
118
  isActive?: boolean;
119
119
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
120
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime327.JSX.Element;
120
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime305.JSX.Element;
121
121
  declare function AppLayoutSidebarMenuAction({
122
122
  className,
123
123
  asChild,
@@ -126,26 +126,26 @@ declare function AppLayoutSidebarMenuAction({
126
126
  }: React.ComponentProps<'button'> & {
127
127
  asChild?: boolean;
128
128
  showOnHover?: boolean;
129
- }): react_jsx_runtime327.JSX.Element;
129
+ }): react_jsx_runtime305.JSX.Element;
130
130
  declare function AppLayoutSidebarMenuBadge({
131
131
  className,
132
132
  ...props
133
- }: React.ComponentProps<'div'>): react_jsx_runtime327.JSX.Element;
133
+ }: React.ComponentProps<'div'>): react_jsx_runtime305.JSX.Element;
134
134
  declare function AppLayoutSidebarMenuSkeleton({
135
135
  className,
136
136
  showIcon,
137
137
  ...props
138
138
  }: React.ComponentProps<'div'> & {
139
139
  showIcon?: boolean;
140
- }): react_jsx_runtime327.JSX.Element;
140
+ }): react_jsx_runtime305.JSX.Element;
141
141
  declare function AppLayoutSidebarMenuSub({
142
142
  className,
143
143
  ...props
144
- }: React.ComponentProps<'ul'>): react_jsx_runtime327.JSX.Element;
144
+ }: React.ComponentProps<'ul'>): react_jsx_runtime305.JSX.Element;
145
145
  declare function AppLayoutSidebarMenuSubItem({
146
146
  className,
147
147
  ...props
148
- }: React.ComponentProps<'li'>): react_jsx_runtime327.JSX.Element;
148
+ }: React.ComponentProps<'li'>): react_jsx_runtime305.JSX.Element;
149
149
  declare function AppLayoutSidebarMenuSubButton({
150
150
  asChild,
151
151
  size,
@@ -156,7 +156,7 @@ declare function AppLayoutSidebarMenuSubButton({
156
156
  asChild?: boolean;
157
157
  size?: 'sm' | 'md';
158
158
  isActive?: boolean;
159
- }): react_jsx_runtime327.JSX.Element;
159
+ }): react_jsx_runtime305.JSX.Element;
160
160
  //#endregion
161
161
  //#region packages/components/layouts/app-layout/index.d.ts
162
162
  declare const AppLayoutWrapper: React.FC<React.PropsWithChildren>;
@@ -1,9 +1,9 @@
1
- import { t as Button } from "../../button-CsFG_79-.js";
1
+ import { t as Button } from "../../button-BbK2pA5K.js";
2
2
  import { t as Separator } from "../../separator-Q3X8kx0F.js";
3
- import { n as TooltipContent } from "../../tooltip-BO_2mGzF.js";
3
+ import { n as TooltipContent } from "../../tooltip-C_dFaGou.js";
4
4
  import * as react_jsx_runtime305 from "react/jsx-runtime";
5
5
  import { VariantProps } from "class-variance-authority";
6
- import * as class_variance_authority_types12 from "class-variance-authority/types";
6
+ import * as class_variance_authority_types10 from "class-variance-authority/types";
7
7
 
8
8
  //#region packages/components/layouts/app-layout/sidebar.d.ts
9
9
  type SidebarContextProps = {
@@ -104,7 +104,7 @@ declare function AppLayoutSidebarMenuItem({
104
104
  declare const sidebarMenuButtonVariants: (props?: ({
105
105
  variant?: "default" | "outline" | null | undefined;
106
106
  size?: "sm" | "lg" | "default" | null | undefined;
107
- } & class_variance_authority_types12.ClassProp) | undefined) => string;
107
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
108
108
  declare function AppLayoutSidebarMenuButton({
109
109
  asChild,
110
110
  isActive,
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
2
- import * as react0 from "react";
1
+ import * as react_jsx_runtime47 from "react/jsx-runtime";
2
+ import * as react25 from "react";
3
3
  import * as class_variance_authority_types0 from "class-variance-authority/types";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
 
@@ -17,7 +17,7 @@ declare const flexVariants: (props?: ({
17
17
  type Props = {
18
18
  className?: string;
19
19
  } & VariantProps<typeof flexVariants>;
20
- declare const Flex: react0.MemoExoticComponent<({
20
+ declare const Flex: react25.MemoExoticComponent<({
21
21
  vertical,
22
22
  wrap,
23
23
  width,
@@ -28,7 +28,7 @@ declare const Flex: react0.MemoExoticComponent<({
28
28
  align,
29
29
  className,
30
30
  children
31
- }: React.PropsWithChildren<Props>) => react_jsx_runtime6.JSX.Element>;
31
+ }: React.PropsWithChildren<Props>) => react_jsx_runtime47.JSX.Element>;
32
32
  //#endregion
33
33
  export { Flex };
34
34
  //# sourceMappingURL=flex.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import * as react0 from "react";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime28 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
@@ -28,7 +28,7 @@ declare const Flex: react0.MemoExoticComponent<({
28
28
  align,
29
29
  className,
30
30
  children
31
- }: React.PropsWithChildren<Props>) => react_jsx_runtime12.JSX.Element>;
31
+ }: React.PropsWithChildren<Props>) => react_jsx_runtime28.JSX.Element>;
32
32
  //#endregion
33
33
  export { Flex };
34
34
  //# sourceMappingURL=flex.d.ts.map
@@ -1,2 +1,2 @@
1
- const e=require(`../../chunk-DjWAcSYV.cjs`);require(`../../dist-BdSAGFCS.cjs`),require(`../../button-variants-BebiEdiS.cjs`);const t=require(`../../button-BKgDCyHZ.cjs`),n=require(`../../card-yhGgMiTX.cjs`);require(`../../skeleton-DYa_q0Y4.cjs`);const r=require(`../../image-lnojols3.cjs`),i=require(`../../tooltip-GiGkjS_8.cjs`),a=require(`../../avatar-CssLCe-L.cjs`),o=require(`../../separator-DSfwqts2.cjs`),s=require(`../../dialog-BZrI1ggR.cjs`),c=require(`../../drawer-_nQPABFp.cjs`),l=require(`../../input-DFwfYrJY.cjs`),u=require(`../../tabs-rwqYbtaq.cjs`),d=require(`../../scroll-area-D5UB0gnG.cjs`),f=require(`../../dropdown-menu-CgEElTMR.cjs`),p=require(`../../sheet-CLSacdwr.cjs`);let m=require(`lucide-react`);m=e.t(m);let h=require(`@customafk/react-toolkit/utils`);h=e.t(h);let g=require(`react`);g=e.t(g);let _=require(`react/jsx-runtime`);_=e.t(_);let v=require(`class-variance-authority`);v=e.t(v);let y=require(`radix-ui`);y=e.t(y);let b=require(`@customafk/react-toolkit/hooks/useMediaQuery`);b=e.t(b);let x=require(`@customafk/react-toolkit/hooks/useDebounceCallback`);x=e.t(x);let S=require(`@react-oauth/google`);S=e.t(S);let C=require(`@customafk/react-toolkit/hooks/useMobile`);C=e.t(C);const w=(0,g.createContext)(null),T=()=>{let e=(0,g.use)(w);if(!e)throw Error(`useServiceLayoutContext must be used within a ServiceLayoutProvider`);return e},E=({id:e,type:i,productName:a,imageUrl:o,quantity:s,price:c,options:u})=>{let{onDeletingCart:d,onUpdatingCart:f}=T(),[p,h]=(0,g.useState)(s),[v,y]=(0,g.useState)(!1),b=(0,x.useDebounceCallback)((0,g.useCallback)(()=>{f?.(e,p,i)},[f,e,p,i]),500),S=(0,g.useCallback)(e=>{e<1&&(e=1),e>99&&(e=99),h(e)},[]),C=(0,g.useCallback)(async()=>{y(!0),await d?.(e),y(!1)},[e,d]);return(0,g.useEffect)(()=>(p!==s&&b(),()=>{b.cancel()}),[p,s,b]),(0,_.jsxs)(n.t,{className:`border-border-weak relative mb-3 overflow-x-auto border p-4 shadow-none`,children:[v&&(0,_.jsx)(`div`,{className:`bg-muted-muted/80 absolute inset-0 z-10 flex items-center justify-center`,children:(0,_.jsx)(`div`,{className:`loader-dots`})}),(0,_.jsxs)(n.r,{className:`p-0`,children:[(0,_.jsxs)(t.t,{variant:`ghost`,size:`icon`,color:`muted`,disabled:v,className:`text-text-positive-weak absolute top-2 right-2 z-10`,onClick:C,children:[(0,_.jsx)(m.Trash2,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Remove item`})]}),(0,_.jsxs)(`div`,{className:`flex gap-3`,children:[(0,_.jsx)(`div`,{className:`relative size-20 flex-shrink-0`,children:o?(0,_.jsx)(r.t,{src:o,alt:a,className:`rounded-md border-none shadow-xs`,width:80,height:80}):(0,_.jsx)(`div`,{className:`bg-muted text-muted-foreground flex size-full items-center justify-center text-xs`,children:`No image`})}),(0,_.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,_.jsx)(`div`,{className:`flex justify-between`,children:(0,_.jsx)(`h3`,{className:`text-text-positive line-clamp-1 text-sm font-medium`,children:a})}),(0,_.jsx)(`p`,{className:`text-text-positive-weak mb-1 text-xs`,children:u.map((e,t)=>(0,_.jsxs)(`span`,{children:[e.label,`: `,e.value,t<u.length-1&&`, `]},e.label))}),(0,_.jsxs)(`div`,{className:`mt-auto flex items-center justify-between`,children:[(0,_.jsxs)(`div`,{className:`flex items-center space-x-1`,children:[(0,_.jsx)(`button`,{disabled:p<=1,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>S(p-1),children:(0,_.jsx)(m.Minus,{size:12})}),(0,_.jsx)(l.t,{value:p,onChange:e=>S(parseInt(e.target.value||`1`)),className:`border-border h-6.5 w-14 rounded-md border p-1 text-center text-sm`,min:1}),(0,_.jsx)(`button`,{disabled:p>=99,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>S(p+1),children:(0,_.jsx)(m.Plus,{size:12})})]}),(0,_.jsxs)(`div`,{className:`text-sm font-semibold`,children:[(c*p).toLocaleString(),` ₫`]})]})]})]})]})]})},D=({items:e=[],cartType:n,className:r})=>{let i=e.reduce((e,t)=>e+t.price*t.quantity,0);return e.length===0?(0,_.jsxs)(`div`,{className:(0,h.cn)(`bg-muted-muted flex size-full max-h-80 flex-col items-center justify-center rounded-lg p-8`,r),children:[(0,_.jsx)(`div`,{className:`text-text-positive-weak bg-card shadow-card mb-4 flex size-20 items-center justify-center rounded-full text-5xl`,children:(0,_.jsx)(m.ShoppingBasketIcon,{size:42,strokeWidth:1})}),(0,_.jsxs)(`div`,{className:`flex flex-col space-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive text-center text-base font-semibold`,children:`Giỏ hàng trống`}),(0,_.jsx)(`p`,{className:`text-text-positive-weak mb-4 text-center text-sm`,children:n===`in_stock`?`Thêm sản phẩm có sẵn vào giỏ hàng của bạn!`:`Thêm sản phẩm đặt trước vào giỏ hàng của bạn!`})]})]}):(0,_.jsxs)(`div`,{className:(0,h.cn)(`flex h-full flex-col space-y-4 overflow-y-auto`,r),children:[(0,_.jsx)(d.t,{className:`h-full flex-1`,children:e.map(e=>(0,_.jsx)(E,{...e,type:n},e.id))}),(0,_.jsxs)(`div`,{className:`flex-0 space-y-3`,children:[(0,_.jsxs)(`div`,{className:`flex justify-between`,children:[(0,_.jsx)(`span`,{className:`text-text-positive-weak text-sm`,children:`Tạm tính:`}),(0,_.jsxs)(`span`,{className:`text-sm`,children:[i.toLocaleString(),` ₫`]})]}),(0,_.jsx)(o.t,{}),(0,_.jsxs)(`div`,{className:`flex justify-between`,children:[(0,_.jsx)(`span`,{className:`text-text-positive font-medium`,children:`Tổng cộng:`}),(0,_.jsxs)(`span`,{className:`text-lg font-semibold`,children:[i.toLocaleString(),` ₫`]})]}),(0,_.jsx)(t.t,{className:`mt-2 w-full`,children:`Thanh toán ngay`}),n===`pre_order`&&(0,_.jsx)(`p`,{className:`text-text-positive-weak text-center text-xs italic`,children:`* Sản phẩm đặt trước sẽ được giao sau khi có hàng`})]})]})},O=(0,g.createContext)(null),k=()=>{let e=(0,g.use)(O);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e},ee=`sidebar_state`,te=3600*24*7,ne=`16rem`,re=`16rem`,ie=`3rem`,ae=`b`;function A({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=(0,C.useIsMobile)(),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(e),p=t??d,m=(0,g.useCallback)(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]),v=(0,g.useCallback)(()=>c?u(e=>!e):m(e=>!e),[c,m]);(0,g.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v]);let y=p?`expanded`:`collapsed`,b=(0,g.useMemo)(()=>({state:y,isMobile:c,toggleSidebar:v,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[y,p,m,c,l,v]);return(0,_.jsx)(O.Provider,{value:b,children:(0,_.jsx)(i.r,{delayDuration:0,children:(0,_.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,h.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:o})})})}function j({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=k();return n===`none`?(0,_.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,h.cn)(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),...a,children:i}):o?(0,_.jsx)(p.t,{open:c,onOpenChange:l,children:(0,_.jsxs)(p.r,{side:`left`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 sm:max-w-3xs [&>button]:hidden`,style:{"--sidebar-width":`16rem`},children:[(0,_.jsxs)(p.o,{className:`sr-only`,children:[(0,_.jsx)(p.s,{children:`Sidebar`}),(0,_.jsx)(p.i,{children:`Displays the mobile sidebar.`})]}),(0,_.jsxs)(`div`,{className:`flex size-full flex-col`,children:[(0,_.jsxs)(`div`,{className:`border-border-weak flex flex-0 items-center gap-x-2 border-b p-2 pr-4`,children:[(0,_.jsx)(M,{}),(0,_.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,_.jsx)(m.ShoppingCartIcon,{size:20})}),(0,_.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,_.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,_.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col p-2`,children:i})]})]})}):(0,_.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,_.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,h.cn)(`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`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,_.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,h.cn)(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`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)]`,t===`floating`||t===`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`,r),...a,children:(0,_.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,h.cn)(`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:i})})]})}function M({className:e,onClick:n,...r}){let{toggleSidebar:i}=k();return(0,_.jsxs)(t.t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:(0,h.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,_.jsx)(m.MenuIcon,{className:`!size-6`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function N({className:e,children:t,...n}){return(0,_.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,h.cn)(`relative flex w-full flex-1 flex-col`,e),...n,children:[(0,_.jsx)(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),(0,_.jsx)(`div`,{className:(0,h.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function P({className:e,children:t,...n}){let{open:r}=k(),{onLogout:i}=T();return(0,_.jsxs)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,h.cn)(`flex flex-col gap-2`,e),...n,children:[t,(0,_.jsxs)(z,{children:[(0,_.jsx)(B,{children:(0,_.jsxs)(H,{className:`border-border border`,onClick:i,children:[(0,_.jsx)(m.LogOutIcon,{className:`text-text-positive-weak`}),`Đăng xuất`]})}),r&&(0,_.jsx)(B,{className:`border-t-border mt-2 border-t`,children:(0,_.jsx)(`p`,{className:`text-muted-foreground pt-2 text-center text-xs`,children:`Copyright © 2025, Lunas.`})})]})]})}function F({className:e,...t}){return(0,_.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,h.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function I({className:e,...t}){return(0,_.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,h.cn)(`relative flex w-full min-w-0 flex-col`,e),...t})}function L({className:e,asChild:t=!1,...n}){return(0,_.jsx)(t?y.Slot.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,h.cn)(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function R({className:e,...t}){return(0,_.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,h.cn)(`w-full text-sm`,e),...t})}function z({className:e,...t}){return(0,_.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,h.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function B({className:e,...t}){return(0,_.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,h.cn)(`group/menu-item relative`,e),...t})}const V=(0,v.cva)(`peer/menu-button.cursor-pointer.flex w-full items-center gap-2.overflow-hidden rounded-md p-2 outline-hidden.text-left truncate.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]:font-medium.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`.split(`.`),{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 H({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:a,className:o,...s}){let c=e?y.Slot.Slot:`button`,{isMobile:l,state:u}=k(),d=(0,_.jsx)(c,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:(0,h.cn)(V({variant:n,size:r}),o),...s});return a?(typeof a==`string`&&(a={children:a}),(0,_.jsxs)(i.t,{children:[(0,_.jsx)(i.i,{asChild:!0,children:d}),(0,_.jsx)(i.n,{side:`right`,align:`center`,hidden:u!==`collapsed`||l,...a})]})):d}const U=({isLoggedIn:e=!1,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c,children:l})=>(0,_.jsx)(w.Provider,{value:{isLoggedIn:e,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c},children:l}),W=({children:e})=>(0,_.jsx)(A,{children:e}),G=({userName:e=`Keith Kennedy`,userEmail:n=`k.kennedy@originui.com`,onLogout:r})=>(0,_.jsxs)(f.t,{children:[(0,_.jsx)(f.h,{asChild:!0,children:(0,_.jsx)(t.t,{size:`icon`,variant:`ghost`,color:`secondary`,className:`size-10 rounded-full`,children:(0,_.jsxs)(a.t,{className:`size-10`,children:[(0,_.jsx)(a.r,{}),(0,_.jsx)(a.n,{className:`bg-muted-muted size-full`,children:(0,_.jsx)(m.UserIcon,{})})]})})}),(0,_.jsxs)(f.r,{align:`end`,className:`max-w-64`,children:[(0,_.jsxs)(f.o,{className:`flex min-w-0 flex-col`,children:[(0,_.jsx)(`span`,{className:`text-text-positive truncate text-sm font-medium`,children:e}),(0,_.jsx)(`span`,{className:`text-text-positive-weak truncate text-xs font-normal`,children:n})]}),(0,_.jsx)(f.u,{}),(0,_.jsxs)(f.a,{onClick:r,children:[(0,_.jsx)(m.LogOutIcon,{size:16,"aria-hidden":`true`}),(0,_.jsx)(`span`,{className:`text-text-positive`,children:`Logout`})]})]})]}),K=()=>{let{inStockCarts:e=[],orderedCarts:n=[]}=T(),r=e.length,i=n.length,a=r+i;return(0,_.jsxs)(p.t,{children:[(0,_.jsx)(p.c,{asChild:!0,children:(0,_.jsx)(t.t,{size:`icon`,variant:`ghost`,color:`secondary`,className:`relative size-10 rounded-full`,children:(0,_.jsx)(m.ShoppingCartIcon,{})})}),(0,_.jsxs)(p.r,{className:`w-[95vw] sm:max-w-md`,children:[(0,_.jsx)(p.o,{className:`border-border-weak flex-0 border-b pb-3`,children:(0,_.jsxs)(p.s,{className:`flex items-center gap-2`,children:[(0,_.jsx)(m.ShoppingBag,{size:20}),(0,_.jsx)(`span`,{children:`Giỏ hàng của bạn`}),a>0&&(0,_.jsxs)(`span`,{className:`text-text-positive-weak text-sm font-normal`,children:[`(`,a,` sản phẩm)`]})]})}),(0,_.jsxs)(u.t,{defaultValue:i>0?`pre_order`:`in_stock`,className:`h-full flex-1 overflow-y-auto p-4 pt-0`,children:[(0,_.jsxs)(u.r,{className:`w-full flex-0`,children:[(0,_.jsxs)(u.i,{value:`in_stock`,className:`relative`,children:[`Có sẵn`,r>0&&(0,_.jsxs)(`span`,{children:[`(`,r,`)`]})]}),(0,_.jsxs)(u.i,{value:`pre_order`,className:`relative`,children:[`Đặt trước`,i>0&&(0,_.jsxs)(`span`,{children:[`(`,i,`)`]})]})]}),(0,_.jsx)(u.n,{value:`pre_order`,className:`flex-1 overflow-y-auto`,children:(0,_.jsx)(D,{items:n,cartType:`pre_order`})}),(0,_.jsx)(u.n,{value:`in_stock`,className:`flex-1 overflow-y-auto`,children:(0,_.jsx)(D,{items:e,cartType:`in_stock`})})]})]})]})},q=()=>{let{isLoggedIn:e,username:n,email:r,onGoogleLoginSuccess:i,onLogout:a}=T(),l=(0,b.useMediaQuery)(`(min-width: 640px)`),[u,d]=(0,g.useState)(!1);return(0,_.jsxs)(`header`,{className:(0,h.cn)(`bg-card`,`h-(--header-height)`,`sm: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-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`),children:[e&&(0,_.jsx)(M,{}),(0,_.jsxs)(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[(0,_.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,_.jsx)(m.ShoppingCartIcon,{size:20})}),(0,_.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,_.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,_.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,_.jsxs)(`div`,{className:`flex flex-1 items-center justify-end gap-x-2`,children:[!e&&(0,_.jsxs)(t.t,{className:`w-8 sm:w-fit`,onClick:()=>d(!0),children:[(0,_.jsx)(m.LogInIcon,{}),(0,_.jsx)(`span`,{className:`sr-only sm:not-sr-only`,children:`Đăng nhập`})]}),e&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(G,{userName:n,userEmail:r,onLogout:a}),(0,_.jsx)(o.t,{orientation:`vertical`,className:`min-h-6 w-px`}),(0,_.jsx)(K,{})]})]}),l&&(0,_.jsx)(s.t,{open:u,onOpenChange:d,children:(0,_.jsxs)(s.r,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[(0,_.jsx)(s.o,{className:`flex-0 gap-2 p-6`,children:(0,_.jsx)(s.l,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(S.GoogleLogin,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),(0,_.jsx)(s.a,{className:`p-2`})]})}),!l&&(0,_.jsx)(c.t,{open:u,onOpenChange:d,children:(0,_.jsxs)(c.r,{children:[(0,_.jsx)(c.o,{className:`text-left`,children:(0,_.jsx)(c.l,{children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(S.GoogleLogin,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),(0,_.jsx)(c.a,{})]})})]})},J=({children:e,...t})=>{let{isLoggedIn:n}=T();return n?(0,_.jsx)(j,{variant:`inset`,collapsible:`icon`,...t,children:e}):null},Y=({children:e})=>{let{isLoggedIn:n,onGoogleLoginSuccess:r}=T(),i=(0,b.useMediaQuery)(`(min-width: 640px)`),[a,o]=(0,g.useState)(!1);return n?(0,_.jsx)(N,{children:(0,_.jsx)(`section`,{className:`relative size-full`,children:(0,_.jsx)(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}):(0,_.jsx)(`div`,{className:`size-full p-4 pt-[calc(var(--header-height)+1.5rem)]`,children:(0,_.jsxs)(`div`,{className:`bg-card shadow-card flex size-full flex-col items-center justify-center gap-6 rounded-lg p-8 text-center`,children:[(0,_.jsx)(`div`,{className:`bg-muted-foreground/10 flex size-20 items-center justify-center rounded-full`,children:(0,_.jsx)(m.LockIcon,{className:`text-primary size-10`})}),(0,_.jsxs)(`div`,{className:`flex max-w-md flex-col gap-2`,children:[(0,_.jsx)(`h2`,{className:`text-2xl font-semibold`,children:`Bạn chưa đăng nhập`}),(0,_.jsx)(`p`,{className:`text-text-positive-weak`,children:`Đăng nhập để khám phá đầy đủ các tính năng của Lunas Store và truy cập vào tài khoản của bạn.`})]}),(0,_.jsxs)(t.t,{size:`lg`,className:`gap-2`,onClick:()=>o(!0),children:[(0,_.jsx)(m.LogInIcon,{size:18}),(0,_.jsx)(`span`,{children:`Đăng nhập ngay`})]}),i&&(0,_.jsx)(s.t,{open:a,onOpenChange:o,children:(0,_.jsxs)(s.r,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[(0,_.jsx)(s.o,{className:`flex-0 gap-2 p-6`,children:(0,_.jsx)(s.l,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(S.GoogleLogin,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),(0,_.jsx)(s.a,{className:`p-2`})]})}),!i&&(0,_.jsx)(c.t,{open:a,onOpenChange:o,children:(0,_.jsxs)(c.r,{children:[(0,_.jsx)(c.o,{className:`text-left`,children:(0,_.jsx)(c.l,{children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(S.GoogleLogin,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),(0,_.jsx)(c.a,{})]})})]})})},X=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-header`,className:(0,h.cn)(`flex-0 snap-start`,e),children:t}),Z=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-content`,className:(0,h.cn)(`flex w-full flex-1 flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),Q=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-footer`,className:(0,h.cn)(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),$=({children:e,className:t})=>(0,_.jsx)(`div`,{"data-slot":`main-group`,className:(0,h.cn)(`flex size-full flex-col gap-4`,t),children:e}),oe=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-group-content`,className:(0,h.cn)(`bg-card shadow-card max-w-8xl size-full flex-1 rounded-md p-4`,e),children:t});exports.ServiceLayoutCartInfo=K,exports.ServiceLayoutHeader=q,exports.ServiceLayoutMain=Y,exports.ServiceLayoutMainContent=Z,exports.ServiceLayoutMainFooter=Q,exports.ServiceLayoutMainGroup=$,exports.ServiceLayoutMainGroupContent=oe,exports.ServiceLayoutMainHeader=X,exports.ServiceLayoutProvider=U,exports.ServiceLayoutSidebar=J,exports.ServiceLayoutSidebarContent=F,exports.ServiceLayoutSidebarFooter=P,exports.ServiceLayoutSidebarGroup=I,exports.ServiceLayoutSidebarGroupContent=R,exports.ServiceLayoutSidebarGroupLabel=L,exports.ServiceLayoutSidebarMenu=z,exports.ServiceLayoutSidebarMenuButton=H,exports.ServiceLayoutSidebarMenuItem=B,exports.ServiceLayoutUserInfo=G,exports.ServiceLayoutWrapper=W;
1
+ const e=require(`../../chunk-DjWAcSYV.cjs`);require(`../../dist-BdSAGFCS.cjs`),require(`../../button-variants-BebiEdiS.cjs`);const t=require(`../../button-BKgDCyHZ.cjs`),n=require(`../../card-yhGgMiTX.cjs`);require(`../../skeleton-DYa_q0Y4.cjs`);const r=require(`../../image-lnojols3.cjs`),i=require(`../../tooltip-GiGkjS_8.cjs`),a=require(`../../avatar-CssLCe-L.cjs`),o=require(`../../separator-DSfwqts2.cjs`),s=require(`../../dialog-BZrI1ggR.cjs`),c=require(`../../drawer-_nQPABFp.cjs`),l=require(`../../input-DFwfYrJY.cjs`),u=require(`../../tabs-rwqYbtaq.cjs`),d=require(`../../scroll-area-D5UB0gnG.cjs`),f=require(`../../dropdown-menu-CgEElTMR.cjs`),p=require(`../../sheet-CLSacdwr.cjs`);let m=require(`lucide-react`);m=e.t(m);let h=require(`@customafk/react-toolkit/utils`);h=e.t(h);let g=require(`react`);g=e.t(g);let _=require(`react/jsx-runtime`);_=e.t(_);let v=require(`class-variance-authority`);v=e.t(v);let y=require(`radix-ui`);y=e.t(y);let b=require(`@customafk/react-toolkit/hooks/useMediaQuery`);b=e.t(b);let x=require(`@react-oauth/google`);x=e.t(x);let S=require(`@customafk/react-toolkit/hooks/useDebounceCallback`);S=e.t(S);let C=require(`@customafk/react-toolkit/hooks/useMobile`);C=e.t(C);const w=(0,g.createContext)(null),T=()=>{let e=(0,g.use)(w);if(!e)throw Error(`useServiceLayoutContext must be used within a ServiceLayoutProvider`);return e},E=({id:e,type:i,productName:a,imageUrl:o,quantity:s,price:c,options:u})=>{let{onDeletingCart:d,onUpdatingCart:f}=T(),[p,h]=(0,g.useState)(s),[v,y]=(0,g.useState)(!1),b=(0,S.useDebounceCallback)((0,g.useCallback)(()=>{f?.(e,p,i)},[f,e,p,i]),500),x=(0,g.useCallback)(e=>{e<1&&(e=1),e>99&&(e=99),h(e)},[]),C=(0,g.useCallback)(async()=>{y(!0),await d?.(e),y(!1)},[e,d]);return(0,g.useEffect)(()=>(p!==s&&b(),()=>{b.cancel()}),[p,s,b]),(0,_.jsxs)(n.t,{className:`border-border-weak relative mb-3 overflow-x-auto border p-4 shadow-none`,children:[v&&(0,_.jsx)(`div`,{className:`bg-muted-muted/80 absolute inset-0 z-10 flex items-center justify-center`,children:(0,_.jsx)(`div`,{className:`loader-dots`})}),(0,_.jsxs)(n.r,{className:`p-0`,children:[(0,_.jsxs)(t.t,{variant:`ghost`,size:`icon`,color:`muted`,disabled:v,className:`text-text-positive-weak absolute top-2 right-2 z-10`,onClick:C,children:[(0,_.jsx)(m.Trash2,{className:`h-4 w-4`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Remove item`})]}),(0,_.jsxs)(`div`,{className:`flex gap-3`,children:[(0,_.jsx)(`div`,{className:`relative size-20 flex-shrink-0`,children:o?(0,_.jsx)(r.t,{src:o,alt:a,className:`rounded-md border-none shadow-xs`,width:80,height:80}):(0,_.jsx)(`div`,{className:`bg-muted text-muted-foreground flex size-full items-center justify-center text-xs`,children:`No image`})}),(0,_.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,_.jsx)(`div`,{className:`flex justify-between`,children:(0,_.jsx)(`h3`,{className:`text-text-positive line-clamp-1 text-sm font-medium`,children:a})}),(0,_.jsx)(`p`,{className:`text-text-positive-weak mb-1 text-xs`,children:u.map((e,t)=>(0,_.jsxs)(`span`,{children:[e.label,`: `,e.value,t<u.length-1&&`, `]},e.label))}),(0,_.jsxs)(`div`,{className:`mt-auto flex items-center justify-between`,children:[(0,_.jsxs)(`div`,{className:`flex items-center space-x-1`,children:[(0,_.jsx)(`button`,{disabled:p<=1,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>x(p-1),children:(0,_.jsx)(m.Minus,{size:12})}),(0,_.jsx)(l.t,{value:p,onChange:e=>x(parseInt(e.target.value||`1`)),className:`border-border h-6.5 w-14 rounded-md border p-1 text-center text-sm`,min:1}),(0,_.jsx)(`button`,{disabled:p>=99,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>x(p+1),children:(0,_.jsx)(m.Plus,{size:12})})]}),(0,_.jsxs)(`div`,{className:`text-sm font-semibold`,children:[(c*p).toLocaleString(),` ₫`]})]})]})]})]})]})},D=({items:e=[],cartType:n,className:r})=>{let i=e.reduce((e,t)=>e+t.price*t.quantity,0);return e.length===0?(0,_.jsxs)(`div`,{className:(0,h.cn)(`bg-muted-muted flex size-full max-h-80 flex-col items-center justify-center rounded-lg p-8`,r),children:[(0,_.jsx)(`div`,{className:`text-text-positive-weak bg-card shadow-card mb-4 flex size-20 items-center justify-center rounded-full text-5xl`,children:(0,_.jsx)(m.ShoppingBasketIcon,{size:42,strokeWidth:1})}),(0,_.jsxs)(`div`,{className:`flex flex-col space-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive text-center text-base font-semibold`,children:`Giỏ hàng trống`}),(0,_.jsx)(`p`,{className:`text-text-positive-weak mb-4 text-center text-sm`,children:n===`in_stock`?`Thêm sản phẩm có sẵn vào giỏ hàng của bạn!`:`Thêm sản phẩm đặt trước vào giỏ hàng của bạn!`})]})]}):(0,_.jsxs)(`div`,{className:(0,h.cn)(`flex h-full flex-col space-y-4 overflow-y-auto`,r),children:[(0,_.jsx)(d.t,{className:`h-full flex-1`,children:e.map(e=>(0,_.jsx)(E,{...e,type:n},e.id))}),(0,_.jsxs)(`div`,{className:`flex-0 space-y-3`,children:[(0,_.jsxs)(`div`,{className:`flex justify-between`,children:[(0,_.jsx)(`span`,{className:`text-text-positive-weak text-sm`,children:`Tạm tính:`}),(0,_.jsxs)(`span`,{className:`text-sm`,children:[i.toLocaleString(),` ₫`]})]}),(0,_.jsx)(o.t,{}),(0,_.jsxs)(`div`,{className:`flex justify-between`,children:[(0,_.jsx)(`span`,{className:`text-text-positive font-medium`,children:`Tổng cộng:`}),(0,_.jsxs)(`span`,{className:`text-lg font-semibold`,children:[i.toLocaleString(),` ₫`]})]}),(0,_.jsx)(t.t,{className:`mt-2 w-full`,children:`Thanh toán ngay`}),n===`pre_order`&&(0,_.jsx)(`p`,{className:`text-text-positive-weak text-center text-xs italic`,children:`* Sản phẩm đặt trước sẽ được giao sau khi có hàng`})]})]})},O=(0,g.createContext)(null),k=()=>{let e=(0,g.use)(O);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e},ee=`sidebar_state`,te=3600*24*7,ne=`16rem`,re=`16rem`,ie=`3rem`,ae=`b`;function A({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=(0,C.useIsMobile)(),[l,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(e),p=t??d,m=(0,g.useCallback)(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]),v=(0,g.useCallback)(()=>c?u(e=>!e):m(e=>!e),[c,m]);(0,g.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v]);let y=p?`expanded`:`collapsed`,b=(0,g.useMemo)(()=>({state:y,isMobile:c,toggleSidebar:v,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[y,p,m,c,l,v]);return(0,_.jsx)(O.Provider,{value:b,children:(0,_.jsx)(i.r,{delayDuration:0,children:(0,_.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,h.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:o})})})}function j({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=k();return n===`none`?(0,_.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,h.cn)(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),...a,children:i}):o?(0,_.jsx)(p.t,{open:c,onOpenChange:l,children:(0,_.jsxs)(p.r,{side:`left`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 sm:max-w-3xs [&>button]:hidden`,style:{"--sidebar-width":`16rem`},children:[(0,_.jsxs)(p.o,{className:`sr-only`,children:[(0,_.jsx)(p.s,{children:`Sidebar`}),(0,_.jsx)(p.i,{children:`Displays the mobile sidebar.`})]}),(0,_.jsxs)(`div`,{className:`flex size-full flex-col`,children:[(0,_.jsxs)(`div`,{className:`border-border-weak flex flex-0 items-center gap-x-2 border-b p-2 pr-4`,children:[(0,_.jsx)(M,{}),(0,_.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,_.jsx)(m.ShoppingCartIcon,{size:20})}),(0,_.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,_.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,_.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col p-2`,children:i})]})]})}):(0,_.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,_.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,h.cn)(`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`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,_.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,h.cn)(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`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)]`,t===`floating`||t===`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`,r),...a,children:(0,_.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,h.cn)(`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:i})})]})}function M({className:e,onClick:n,...r}){let{toggleSidebar:i}=k();return(0,_.jsxs)(t.t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:(0,h.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,_.jsx)(m.MenuIcon,{className:`!size-6`}),(0,_.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function N({className:e,children:t,...n}){return(0,_.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,h.cn)(`relative flex w-full flex-1 flex-col`,e),...n,children:[(0,_.jsx)(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),(0,_.jsx)(`div`,{className:(0,h.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function P({className:e,children:t,...n}){let{open:r}=k(),{onLogout:i}=T();return(0,_.jsxs)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,h.cn)(`flex flex-col gap-2`,e),...n,children:[t,(0,_.jsxs)(z,{children:[(0,_.jsx)(B,{children:(0,_.jsxs)(H,{className:`border-border border`,onClick:i,children:[(0,_.jsx)(m.LogOutIcon,{className:`text-text-positive-weak`}),`Đăng xuất`]})}),r&&(0,_.jsx)(B,{className:`border-t-border mt-2 border-t`,children:(0,_.jsx)(`p`,{className:`text-muted-foreground pt-2 text-center text-xs`,children:`Copyright © 2025, Lunas.`})})]})]})}function F({className:e,...t}){return(0,_.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,h.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function I({className:e,...t}){return(0,_.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,h.cn)(`relative flex w-full min-w-0 flex-col`,e),...t})}function L({className:e,asChild:t=!1,...n}){return(0,_.jsx)(t?y.Slot.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,h.cn)(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function R({className:e,...t}){return(0,_.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,h.cn)(`w-full text-sm`,e),...t})}function z({className:e,...t}){return(0,_.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,h.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function B({className:e,...t}){return(0,_.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,h.cn)(`group/menu-item relative`,e),...t})}const V=(0,v.cva)(`peer/menu-button.cursor-pointer.flex w-full items-center gap-2.overflow-hidden rounded-md p-2 outline-hidden.text-left truncate.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]:font-medium.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`.split(`.`),{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 H({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:a,className:o,...s}){let c=e?y.Slot.Slot:`button`,{isMobile:l,state:u}=k(),d=(0,_.jsx)(c,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:(0,h.cn)(V({variant:n,size:r}),o),...s});return a?(typeof a==`string`&&(a={children:a}),(0,_.jsxs)(i.t,{children:[(0,_.jsx)(i.i,{asChild:!0,children:d}),(0,_.jsx)(i.n,{side:`right`,align:`center`,hidden:u!==`collapsed`||l,...a})]})):d}const U=({isLoggedIn:e=!1,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c,children:l})=>(0,_.jsx)(w.Provider,{value:{isLoggedIn:e,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c},children:l}),W=({children:e})=>(0,_.jsx)(A,{children:e}),G=({userName:e=`Keith Kennedy`,userEmail:n=`k.kennedy@originui.com`,onLogout:r})=>(0,_.jsxs)(f.t,{children:[(0,_.jsx)(f.h,{asChild:!0,children:(0,_.jsx)(t.t,{size:`icon`,variant:`ghost`,color:`secondary`,className:`size-10 rounded-full`,children:(0,_.jsxs)(a.t,{className:`size-10`,children:[(0,_.jsx)(a.r,{}),(0,_.jsx)(a.n,{className:`bg-muted-muted size-full`,children:(0,_.jsx)(m.UserIcon,{})})]})})}),(0,_.jsxs)(f.r,{align:`end`,className:`max-w-64`,children:[(0,_.jsxs)(f.o,{className:`flex min-w-0 flex-col`,children:[(0,_.jsx)(`span`,{className:`text-text-positive truncate text-sm font-medium`,children:e}),(0,_.jsx)(`span`,{className:`text-text-positive-weak truncate text-xs font-normal`,children:n})]}),(0,_.jsx)(f.u,{}),(0,_.jsxs)(f.a,{onClick:r,children:[(0,_.jsx)(m.LogOutIcon,{size:16,"aria-hidden":`true`}),(0,_.jsx)(`span`,{className:`text-text-positive`,children:`Logout`})]})]})]}),K=()=>{let{inStockCarts:e=[],orderedCarts:n=[]}=T(),r=e.length,i=n.length,a=r+i;return(0,_.jsxs)(p.t,{children:[(0,_.jsx)(p.c,{asChild:!0,children:(0,_.jsx)(t.t,{size:`icon`,variant:`ghost`,color:`secondary`,className:`relative size-10 rounded-full`,children:(0,_.jsx)(m.ShoppingCartIcon,{})})}),(0,_.jsxs)(p.r,{className:`w-[95vw] sm:max-w-md`,children:[(0,_.jsx)(p.o,{className:`border-border-weak flex-0 border-b pb-3`,children:(0,_.jsxs)(p.s,{className:`flex items-center gap-2`,children:[(0,_.jsx)(m.ShoppingBag,{size:20}),(0,_.jsx)(`span`,{children:`Giỏ hàng của bạn`}),a>0&&(0,_.jsxs)(`span`,{className:`text-text-positive-weak text-sm font-normal`,children:[`(`,a,` sản phẩm)`]})]})}),(0,_.jsxs)(u.t,{defaultValue:i>0?`pre_order`:`in_stock`,className:`h-full flex-1 overflow-y-auto p-4 pt-0`,children:[(0,_.jsxs)(u.r,{className:`w-full flex-0`,children:[(0,_.jsxs)(u.i,{value:`in_stock`,className:`relative`,children:[`Có sẵn`,r>0&&(0,_.jsxs)(`span`,{children:[`(`,r,`)`]})]}),(0,_.jsxs)(u.i,{value:`pre_order`,className:`relative`,children:[`Đặt trước`,i>0&&(0,_.jsxs)(`span`,{children:[`(`,i,`)`]})]})]}),(0,_.jsx)(u.n,{value:`pre_order`,className:`flex-1 overflow-y-auto`,children:(0,_.jsx)(D,{items:n,cartType:`pre_order`})}),(0,_.jsx)(u.n,{value:`in_stock`,className:`flex-1 overflow-y-auto`,children:(0,_.jsx)(D,{items:e,cartType:`in_stock`})})]})]})]})},q=()=>{let{isLoggedIn:e,username:n,email:r,onGoogleLoginSuccess:i,onLogout:a}=T(),l=(0,b.useMediaQuery)(`(min-width: 640px)`),[u,d]=(0,g.useState)(!1);return(0,_.jsxs)(`header`,{className:(0,h.cn)(`bg-card`,`h-(--header-height)`,`sm: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-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`),children:[e&&(0,_.jsx)(M,{}),(0,_.jsxs)(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[(0,_.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,_.jsx)(m.ShoppingCartIcon,{size:20})}),(0,_.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,_.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,_.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,_.jsxs)(`div`,{className:`flex flex-1 items-center justify-end gap-x-2`,children:[!e&&(0,_.jsxs)(t.t,{className:`w-8 sm:w-fit`,onClick:()=>d(!0),children:[(0,_.jsx)(m.LogInIcon,{}),(0,_.jsx)(`span`,{className:`sr-only sm:not-sr-only`,children:`Đăng nhập`})]}),e&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(G,{userName:n,userEmail:r,onLogout:a}),(0,_.jsx)(o.t,{orientation:`vertical`,className:`min-h-6 w-px`}),(0,_.jsx)(K,{})]})]}),l&&(0,_.jsx)(s.t,{open:u,onOpenChange:d,children:(0,_.jsxs)(s.r,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[(0,_.jsx)(s.o,{className:`flex-0 gap-2 p-6`,children:(0,_.jsx)(s.l,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(x.GoogleLogin,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),(0,_.jsx)(s.a,{className:`p-2`})]})}),!l&&(0,_.jsx)(c.t,{open:u,onOpenChange:d,children:(0,_.jsxs)(c.r,{children:[(0,_.jsx)(c.o,{className:`text-left`,children:(0,_.jsx)(c.l,{children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(x.GoogleLogin,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),(0,_.jsx)(c.a,{})]})})]})},J=({children:e,...t})=>{let{isLoggedIn:n}=T();return n?(0,_.jsx)(j,{variant:`inset`,collapsible:`icon`,...t,children:e}):null},Y=({children:e})=>{let{isLoggedIn:n,onGoogleLoginSuccess:r}=T(),i=(0,b.useMediaQuery)(`(min-width: 640px)`),[a,o]=(0,g.useState)(!1);return n?(0,_.jsx)(N,{children:(0,_.jsx)(`section`,{className:`relative size-full`,children:(0,_.jsx)(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}):(0,_.jsx)(`div`,{className:`size-full p-4 pt-[calc(var(--header-height)+1.5rem)]`,children:(0,_.jsxs)(`div`,{className:`bg-card shadow-card flex size-full flex-col items-center justify-center gap-6 rounded-lg p-8 text-center`,children:[(0,_.jsx)(`div`,{className:`bg-muted-foreground/10 flex size-20 items-center justify-center rounded-full`,children:(0,_.jsx)(m.LockIcon,{className:`text-primary size-10`})}),(0,_.jsxs)(`div`,{className:`flex max-w-md flex-col gap-2`,children:[(0,_.jsx)(`h2`,{className:`text-2xl font-semibold`,children:`Bạn chưa đăng nhập`}),(0,_.jsx)(`p`,{className:`text-text-positive-weak`,children:`Đăng nhập để khám phá đầy đủ các tính năng của Lunas Store và truy cập vào tài khoản của bạn.`})]}),(0,_.jsxs)(t.t,{size:`lg`,className:`gap-2`,onClick:()=>o(!0),children:[(0,_.jsx)(m.LogInIcon,{size:18}),(0,_.jsx)(`span`,{children:`Đăng nhập ngay`})]}),i&&(0,_.jsx)(s.t,{open:a,onOpenChange:o,children:(0,_.jsxs)(s.r,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[(0,_.jsx)(s.o,{className:`flex-0 gap-2 p-6`,children:(0,_.jsx)(s.l,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(x.GoogleLogin,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),(0,_.jsx)(s.a,{className:`p-2`})]})}),!i&&(0,_.jsx)(c.t,{open:a,onOpenChange:o,children:(0,_.jsxs)(c.r,{children:[(0,_.jsx)(c.o,{className:`text-left`,children:(0,_.jsx)(c.l,{children:`Chào mừng bạn đến với Lunas Store!`})}),(0,_.jsx)(`div`,{className:`flex flex-1 flex-col`,children:(0,_.jsx)(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center gap-y-1`,children:[(0,_.jsx)(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),(0,_.jsx)(x.GoogleLogin,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),(0,_.jsx)(c.a,{})]})})]})})},X=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-header`,className:(0,h.cn)(`flex-0 snap-start`,e),children:t}),Z=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-content`,className:(0,h.cn)(`flex w-full flex-1 flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),Q=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-footer`,className:(0,h.cn)(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),$=({children:e,className:t})=>(0,_.jsx)(`div`,{"data-slot":`main-group`,className:(0,h.cn)(`flex size-full flex-col gap-4`,t),children:e}),oe=({className:e,children:t})=>(0,_.jsx)(`div`,{"data-slot":`main-group-content`,className:(0,h.cn)(`bg-card shadow-card max-w-8xl size-full flex-1 rounded-md p-4`,e),children:t});exports.ServiceLayoutCartInfo=K,exports.ServiceLayoutHeader=q,exports.ServiceLayoutMain=Y,exports.ServiceLayoutMainContent=Z,exports.ServiceLayoutMainFooter=Q,exports.ServiceLayoutMainGroup=$,exports.ServiceLayoutMainGroupContent=oe,exports.ServiceLayoutMainHeader=X,exports.ServiceLayoutProvider=U,exports.ServiceLayoutSidebar=J,exports.ServiceLayoutSidebarContent=F,exports.ServiceLayoutSidebarFooter=P,exports.ServiceLayoutSidebarGroup=I,exports.ServiceLayoutSidebarGroupContent=R,exports.ServiceLayoutSidebarGroupLabel=L,exports.ServiceLayoutSidebarMenu=z,exports.ServiceLayoutSidebarMenuButton=H,exports.ServiceLayoutSidebarMenuItem=B,exports.ServiceLayoutUserInfo=G,exports.ServiceLayoutWrapper=W;
2
2
  //# sourceMappingURL=index.cjs.map