@customafk/lunas-ui 0.1.19 → 0.1.20

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 (162) hide show
  1. package/dist/{button-DUf6JdVx.d.cts → button-C2mvaa5I.d.mts} +7 -7
  2. package/dist/{button-Dv8PU7Hv.d.mts → button-CVYH2lum.d.cts} +6 -6
  3. package/dist/card-CWAdGhMr.mjs +2 -0
  4. package/dist/card-CWAdGhMr.mjs.map +1 -0
  5. package/dist/card-wGoU4Xiq.cjs +2 -0
  6. package/dist/card-wGoU4Xiq.cjs.map +1 -0
  7. package/dist/cards/grid-product-card.cjs +1 -1
  8. package/dist/cards/grid-product-card.mjs +1 -1
  9. package/dist/cards/product-card.cjs +1 -1
  10. package/dist/cards/product-card.mjs +1 -1
  11. package/dist/cards/simple-card.cjs +1 -1
  12. package/dist/cards/simple-card.mjs +1 -1
  13. package/dist/data-display/empty.d.mts +2 -2
  14. package/dist/data-display/statistic.d.cts +2 -2
  15. package/dist/{dialog-CstR_oRr.d.mts → dialog-B-W-TsHv.d.cts} +12 -12
  16. package/dist/{dialog-DJ_WrGvX.d.cts → dialog-DTDroSTP.d.mts} +12 -12
  17. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +28 -28
  18. package/dist/dialogs/detail-dialog/component/sidebar.d.mts +4 -4
  19. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  20. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  21. package/dist/features/search-modal/index.d.cts +2 -2
  22. package/dist/features/search-modal/index.d.mts +2 -2
  23. package/dist/features/tables/index.d.cts +4 -4
  24. package/dist/features/tables/index.d.mts +1 -1
  25. package/dist/{input-Bzo2Bgsz.d.cts → input-7SdNeLmh.d.cts} +4 -4
  26. package/dist/{input-DJh6tJbB.d.mts → input-Dh6hVhHG.d.mts} +6 -6
  27. package/dist/layouts/app-layout/index.d.cts +28 -28
  28. package/dist/layouts/app-layout/index.d.mts +28 -28
  29. package/dist/layouts/cms-layout/index.cjs +1 -1
  30. package/dist/layouts/cms-layout/index.cjs.map +1 -1
  31. package/dist/layouts/cms-layout/index.mjs +1 -1
  32. package/dist/layouts/cms-layout/index.mjs.map +1 -1
  33. package/dist/layouts/flex.d.cts +2 -2
  34. package/dist/layouts/flex.d.mts +2 -2
  35. package/dist/layouts/service-layout/index.cjs +1 -1
  36. package/dist/layouts/service-layout/index.d.cts +11 -11
  37. package/dist/layouts/service-layout/index.d.mts +15 -15
  38. package/dist/layouts/service-layout/index.mjs +1 -1
  39. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  40. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  41. package/dist/pages/FeatureFixing.d.cts +2 -2
  42. package/dist/pages/FeatureFixing.d.mts +2 -2
  43. package/dist/pages/NotAuthorized.d.cts +2 -2
  44. package/dist/pages/NotAuthorized.d.mts +2 -2
  45. package/dist/pages/NotFound.d.cts +2 -2
  46. package/dist/pages/NotFound.d.mts +2 -2
  47. package/dist/{separator-CY141ab_.d.cts → separator-BlXmdu-p.d.cts} +3 -3
  48. package/dist/{separator-CbnkvGgQ.d.mts → separator-uqlPXXM6.d.mts} +3 -3
  49. package/dist/{tooltip-DbdlL_22.d.mts → tooltip-DOnCuFV4.d.cts} +6 -6
  50. package/dist/{tooltip-JB8ZVcSM.d.cts → tooltip-DWHcJkRL.d.mts} +6 -6
  51. package/dist/typography/paragraph.d.cts +2 -2
  52. package/dist/typography/paragraph.d.mts +2 -2
  53. package/dist/typography/title.d.cts +2 -2
  54. package/dist/typography/title.d.mts +2 -2
  55. package/dist/ui/alert-dialog.d.cts +12 -12
  56. package/dist/ui/alert-dialog.d.mts +12 -12
  57. package/dist/ui/alert.d.cts +7 -7
  58. package/dist/ui/alert.d.mts +7 -7
  59. package/dist/ui/aspect-ratio.d.cts +2 -2
  60. package/dist/ui/aspect-ratio.d.mts +2 -2
  61. package/dist/ui/avatar.d.cts +4 -4
  62. package/dist/ui/avatar.d.mts +4 -4
  63. package/dist/ui/badge.d.cts +2 -2
  64. package/dist/ui/badge.d.mts +2 -2
  65. package/dist/ui/breadcrumb.d.cts +8 -8
  66. package/dist/ui/breadcrumb.d.mts +8 -8
  67. package/dist/ui/button-group.d.cts +7 -7
  68. package/dist/ui/button-group.d.mts +7 -7
  69. package/dist/ui/button.d.cts +1 -1
  70. package/dist/ui/button.d.mts +1 -1
  71. package/dist/ui/calendar.d.cts +4 -4
  72. package/dist/ui/calendar.d.mts +4 -4
  73. package/dist/ui/card.cjs +1 -1
  74. package/dist/ui/card.d.cts +8 -8
  75. package/dist/ui/card.d.mts +8 -8
  76. package/dist/ui/card.mjs +1 -1
  77. package/dist/ui/carousel.d.cts +7 -7
  78. package/dist/ui/carousel.d.mts +7 -7
  79. package/dist/ui/collapsible.d.cts +4 -4
  80. package/dist/ui/collapsible.d.mts +4 -4
  81. package/dist/ui/command.d.cts +11 -11
  82. package/dist/ui/command.d.mts +11 -11
  83. package/dist/ui/context-menu.d.cts +16 -16
  84. package/dist/ui/context-menu.d.mts +16 -16
  85. package/dist/ui/dialog.d.cts +1 -1
  86. package/dist/ui/dialog.d.mts +1 -1
  87. package/dist/ui/drawer.d.cts +11 -11
  88. package/dist/ui/drawer.d.mts +11 -11
  89. package/dist/ui/dropdown-menu.d.cts +16 -16
  90. package/dist/ui/dropdown-menu.d.mts +16 -16
  91. package/dist/ui/empty.d.cts +9 -9
  92. package/dist/ui/empty.d.mts +9 -9
  93. package/dist/ui/field.d.cts +24 -24
  94. package/dist/ui/field.d.mts +13 -13
  95. package/dist/ui/file-uploader.d.cts +2 -2
  96. package/dist/ui/file-uploader.d.mts +2 -2
  97. package/dist/ui/form.d.cts +7 -7
  98. package/dist/ui/form.d.mts +7 -7
  99. package/dist/ui/hover-card.d.cts +4 -4
  100. package/dist/ui/hover-card.d.mts +4 -4
  101. package/dist/ui/input-otp.d.cts +5 -5
  102. package/dist/ui/input-otp.d.mts +5 -5
  103. package/dist/ui/input.d.cts +1 -1
  104. package/dist/ui/input.d.mts +1 -1
  105. package/dist/ui/inputs/search-input.d.cts +3 -3
  106. package/dist/ui/inputs/search-input.d.mts +3 -3
  107. package/dist/ui/item.d.cts +15 -15
  108. package/dist/ui/item.d.mts +15 -15
  109. package/dist/ui/label.d.cts +2 -2
  110. package/dist/ui/label.d.mts +2 -2
  111. package/dist/ui/menubar.d.cts +17 -17
  112. package/dist/ui/menubar.d.mts +17 -17
  113. package/dist/ui/multi-select.d.cts +2 -2
  114. package/dist/ui/multi-select.d.mts +3 -3
  115. package/dist/ui/navigation-menu.d.cts +11 -11
  116. package/dist/ui/navigation-menu.d.mts +11 -11
  117. package/dist/ui/pagination.d.cts +9 -9
  118. package/dist/ui/pagination.d.mts +9 -9
  119. package/dist/ui/popover.d.cts +5 -5
  120. package/dist/ui/popover.d.mts +5 -5
  121. package/dist/ui/progress.d.cts +2 -2
  122. package/dist/ui/progress.d.mts +2 -2
  123. package/dist/ui/radio-group.d.cts +3 -3
  124. package/dist/ui/radio-group.d.mts +3 -3
  125. package/dist/ui/resizable.d.cts +4 -4
  126. package/dist/ui/resizable.d.mts +4 -4
  127. package/dist/ui/scroll-area.d.cts +6 -6
  128. package/dist/ui/scroll-area.d.mts +6 -6
  129. package/dist/ui/select.d.cts +11 -11
  130. package/dist/ui/select.d.mts +11 -11
  131. package/dist/ui/separator.d.cts +1 -1
  132. package/dist/ui/separator.d.mts +1 -1
  133. package/dist/ui/sheet.d.cts +9 -9
  134. package/dist/ui/sheet.d.mts +9 -9
  135. package/dist/ui/sidebar.d.cts +28 -28
  136. package/dist/ui/sidebar.d.mts +30 -30
  137. package/dist/ui/skeleton.d.cts +2 -2
  138. package/dist/ui/skeleton.d.mts +2 -2
  139. package/dist/ui/slider.d.cts +2 -2
  140. package/dist/ui/slider.d.mts +2 -2
  141. package/dist/ui/sonner.d.cts +2 -2
  142. package/dist/ui/sonner.d.mts +2 -2
  143. package/dist/ui/spinner.d.cts +2 -2
  144. package/dist/ui/spinner.d.mts +2 -2
  145. package/dist/ui/switch.d.cts +2 -2
  146. package/dist/ui/switch.d.mts +2 -2
  147. package/dist/ui/table.d.cts +18 -18
  148. package/dist/ui/table.d.mts +18 -18
  149. package/dist/ui/tabs.d.cts +5 -5
  150. package/dist/ui/tabs.d.mts +5 -5
  151. package/dist/ui/textarea.d.cts +2 -2
  152. package/dist/ui/textarea.d.mts +2 -2
  153. package/dist/ui/toggle-group.d.cts +3 -3
  154. package/dist/ui/toggle-group.d.mts +3 -3
  155. package/dist/ui/toggle.d.mts +4 -4
  156. package/dist/ui/tooltip.d.cts +1 -1
  157. package/dist/ui/tooltip.d.mts +1 -1
  158. package/package.json +1 -1
  159. package/dist/card-CXsIpa9Y.cjs +0 -2
  160. package/dist/card-CXsIpa9Y.cjs.map +0 -1
  161. package/dist/card-jwcpmq7e.mjs +0 -2
  162. package/dist/card-jwcpmq7e.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import{r as e,t}from"../../card-jwcpmq7e.mjs";import"../../button.variants-DmUzMbB8.mjs";import{t as n}from"../../button-DIEXNBpi.mjs";import"../../skeleton-CvZncisJ.mjs";import{t as r}from"../../image-BwbAQRxx.mjs";import{i,n as a,r as o,t as s}from"../../tooltip-D0XDvxqi.mjs";import{n as c,r as l,t as u}from"../../avatar-BaxX-xI9.mjs";import"../../close-CGei_VQ6.mjs";import{a as d,l as f,o as p,r as m,t as h}from"../../dialog-DeZVOOmh.mjs";import{t as g}from"../../input-CC10BdKh.mjs";import{t as _}from"../../separator-C2yOD6r_.mjs";import{c as v,i as y,o as b,r as x,s as S,t as C}from"../../sheet-DXLayspn.mjs";import{a as ee,h as te,o as ne,r as re,t as ie,u as ae}from"../../dropdown-menu-CtU6oBI4.mjs";import{a as w,l as T,o as oe,r as E,t as D}from"../../drawer-272Fecsq.mjs";import{i as O,n as k,r as se,t as ce}from"../../tabs-Cjh2jtUZ.mjs";import{t as le}from"../../scroll-area-CiMS2UY7.mjs";import{cn as A}from"@customafk/react-toolkit/utils";import{Fragment as ue,jsx as j,jsxs as M}from"react/jsx-runtime";import{LockIcon as de,LogInIcon as N,LogOutIcon as P,MenuIcon as fe,Minus as pe,Plus as me,ShoppingBag as he,ShoppingBasketIcon as ge,ShoppingCartIcon as F,Trash2 as _e,UserIcon as ve}from"lucide-react";import{createContext as I,use as L,useCallback as R,useEffect as z,useMemo as ye,useState as B}from"react";import{cva as be}from"class-variance-authority";import{Slot as V}from"radix-ui";import{useIsMobile as xe}from"@customafk/react-toolkit/hooks/useMobile";import{useMediaQuery as H}from"@customafk/react-toolkit/hooks/useMediaQuery";import{GoogleLogin as U}from"@react-oauth/google";import{useDebounceCallback as Se}from"@customafk/react-toolkit/hooks/useDebounceCallback";const W=I(null),G=()=>{let e=L(W);if(!e)throw Error(`useServiceLayoutContext must be used within a ServiceLayoutProvider`);return e},Ce=({id:i,type:a,productName:o,imageUrl:s,quantity:c,price:l,options:u})=>{let{onDeletingCart:d,onUpdatingCart:f}=G(),[p,m]=B(c),[h,_]=B(!1),v=Se(R(()=>{f?.(i,p,a)},[f,i,p,a]),500),y=R(e=>{e<1&&(e=1),e>99&&(e=99),m(e)},[]),b=R(async()=>{_(!0),await d?.(i),_(!1)},[i,d]);return z(()=>(p!==c&&v(),()=>{v.cancel()}),[p,c,v]),M(t,{className:`border-border-weak relative mb-3 overflow-x-auto border p-4 shadow-none`,children:[h&&j(`div`,{className:`bg-muted-muted/80 absolute inset-0 z-10 flex items-center justify-center`,children:j(`div`,{className:`loader-dots`})}),M(e,{className:`p-0`,children:[M(n,{variant:`ghost`,size:`icon`,color:`muted`,disabled:h,className:`text-text-positive-weak absolute top-2 right-2 z-10`,onClick:b,children:[j(_e,{className:`h-4 w-4`}),j(`span`,{className:`sr-only`,children:`Remove item`})]}),M(`div`,{className:`flex gap-3`,children:[j(`div`,{className:`relative size-20 flex-shrink-0`,children:s?j(r,{src:s,alt:o,className:`rounded-md border-none shadow-xs`,width:80,height:80}):j(`div`,{className:`bg-muted text-muted-foreground flex size-full items-center justify-center text-xs`,children:`No image`})}),M(`div`,{className:`flex flex-1 flex-col`,children:[j(`div`,{className:`flex justify-between`,children:j(`h3`,{className:`text-text-positive line-clamp-1 text-sm font-medium`,children:o})}),j(`p`,{className:`text-text-positive-weak mb-1 text-xs`,children:u.map((e,t)=>M(`span`,{children:[e.label,`: `,e.value,t<u.length-1&&`, `]},e.label))}),M(`div`,{className:`mt-auto flex items-center justify-between`,children:[M(`div`,{className:`flex items-center space-x-1`,children:[j(`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:()=>y(p-1),children:j(pe,{size:12})}),j(g,{value:p,onChange:e=>y(parseInt(e.target.value||`1`)),className:`border-border h-6.5 w-14 rounded-md border p-1 text-center text-sm`,min:1}),j(`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:()=>y(p+1),children:j(me,{size:12})})]}),M(`div`,{className:`text-sm font-semibold`,children:[(l*p).toLocaleString(),` ₫`]})]})]})]})]})]})},K=({items:e=[],cartType:t,className:r})=>{let i=e.reduce((e,t)=>e+t.price*t.quantity,0);return e.length===0?M(`div`,{className:A(`bg-muted-muted flex size-full max-h-80 flex-col items-center justify-center rounded-lg p-8`,r),children:[j(`div`,{className:`text-text-positive-weak bg-card shadow-card mb-4 flex size-20 items-center justify-center rounded-full text-5xl`,children:j(ge,{size:42,strokeWidth:1})}),M(`div`,{className:`flex flex-col space-y-1`,children:[j(`p`,{className:`text-text-positive text-center text-base font-semibold`,children:`Giỏ hàng trống`}),j(`p`,{className:`text-text-positive-weak mb-4 text-center text-sm`,children:t===`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!`})]})]}):M(`div`,{className:A(`flex h-full flex-col space-y-4 overflow-y-auto`,r),children:[j(le,{className:`h-full flex-1`,children:e.map(e=>j(Ce,{...e,type:t},e.id))}),M(`div`,{className:`flex-0 space-y-3`,children:[M(`div`,{className:`flex justify-between`,children:[j(`span`,{className:`text-text-positive-weak text-sm`,children:`Tạm tính:`}),M(`span`,{className:`text-sm`,children:[i.toLocaleString(),` ₫`]})]}),j(_,{}),M(`div`,{className:`flex justify-between`,children:[j(`span`,{className:`text-text-positive font-medium`,children:`Tổng cộng:`}),M(`span`,{className:`text-lg font-semibold`,children:[i.toLocaleString(),` ₫`]})]}),j(n,{className:`mt-2 w-full`,children:`Thanh toán ngay`}),t===`pre_order`&&j(`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`})]})]})},q=I(null),J=()=>{let e=L(q);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e};function we({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...s}){let c=xe(),[l,u]=B(!1),[d,f]=B(e),p=t??d,m=R(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=R(()=>c?u(e=>!e):m(e=>!e),[c,m]);z(()=>{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`,_=ye(()=>({state:g,isMobile:c,toggleSidebar:h,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[g,p,m,c,l,h]);return j(q.Provider,{value:_,children:j(o,{delayDuration:0,children:j(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...i},className:A(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:a})})})}function Te({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=J();return n===`none`?j(`aside`,{"data-slot":`sidebar`,className:A(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...a,children:i}):o?j(C,{open:c,onOpenChange:l,children:M(x,{side:`left`,"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":`16rem`},children:[M(b,{className:`sr-only`,children:[j(S,{children:`Sidebar`}),j(y,{children:`Displays the mobile sidebar.`})]}),M(`div`,{className:`flex size-full flex-col`,children:[M(`div`,{className:`flex flex-0 items-center gap-x-2 border-border-weak border-b p-2 pr-4`,children:[j(Y,{}),j(`div`,{className:`ml-2 flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:j(F,{size:20})}),M(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[j(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),j(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),j(`div`,{className:`flex flex-1 flex-col p-2`,children:i})]})]})}):M(`aside`,{className:`group peer hidden bg-card text-sidebar-foreground md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[j(`div`,{"data-slot":`sidebar-gap`,className:A(`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)`)}),j(`div`,{"data-slot":`sidebar-container`,className:A(`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)]`,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:j(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:A(`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 Y({className:e,onClick:t,...r}){let{toggleSidebar:i}=J();return M(n,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:A(`size-10 rounded-full`,e),onClick:e=>{t?.(e),i()},...r,children:[j(fe,{className:`size-6!`}),j(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Ee({className:e,children:t,...n}){return M(`main`,{"data-slot":`sidebar-inset`,className:A(`relative flex w-full flex-1 flex-col`,e),...n,children:[j(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)+0.5rem)]`}),j(`div`,{className:A(`inset-shadow-sm flex-1`),children:t})]})}function De({className:e,children:t,...n}){let{open:r}=J(),{onLogout:i}=G();return M(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:A(`flex flex-col gap-2`,e),...n,children:[t,M(X,{children:[j(Z,{children:M(Q,{className:`border border-border`,onClick:i,children:[j(P,{className:`text-text-positive-weak`}),`Đăng xuất`]})}),r&&j(Z,{className:`mt-2 border-t border-t-border`,children:j(`p`,{className:`pt-2 text-center text-muted-foreground text-xs`,children:`Copyright © 2025, Lunas.`})})]})]})}function Oe({className:e,...t}){return j(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:A(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function ke({className:e,...t}){return j(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:A(`relative flex w-full min-w-0 flex-col`,e),...t})}function Ae({className:e,asChild:t=!1,...n}){return j(t?V.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:A(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-xs 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 je({className:e,...t}){return j(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:A(`w-full text-sm`,e),...t})}function X({className:e,...t}){return j(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:A(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Z({className:e,...t}){return j(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:A(`group/menu-item relative`,e),...t})}const Me=be(`peer/menu-button.cursor-pointer.flex w-full items-center gap-2.overflow-hidden rounded-md p-2 outline-hidden.truncate text-left.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 Q({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:o,className:c,...l}){let u=e?V.Slot:`button`,{isMobile:d,state:f}=J(),p=j(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:A(Me({variant:n,size:r}),c),...l});return o?(typeof o==`string`&&(o={children:o}),M(s,{children:[j(i,{asChild:!0,children:p}),j(a,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...o})]})):p}const Ne=({isLoggedIn:e=!1,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c,children:l})=>j(W.Provider,{value:{isLoggedIn:e,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c},children:l}),Pe=({children:e})=>j(we,{children:e}),$=({userName:e=`Keith Kennedy`,userEmail:t=`k.kennedy@originui.com`,onLogout:r})=>M(ie,{children:[j(te,{asChild:!0,children:j(n,{size:`icon`,variant:`ghost`,color:`secondary`,className:`size-10 rounded-full`,children:M(u,{className:`size-10`,children:[j(l,{}),j(c,{className:`size-full bg-muted-muted`,children:j(ve,{})})]})})}),M(re,{align:`end`,className:`max-w-64`,children:[M(ne,{className:`flex min-w-0 flex-col`,children:[j(`span`,{className:`truncate font-medium text-sm text-text-positive`,children:e}),j(`span`,{className:`truncate font-normal text-text-positive-weak text-xs`,children:t})]}),j(ae,{}),M(ee,{onClick:r,children:[j(P,{size:16,"aria-hidden":`true`}),j(`span`,{className:`text-text-positive`,children:`Logout`})]})]})]}),Fe=()=>{let{inStockCarts:e=[],orderedCarts:t=[]}=G(),r=e.length,i=t.length,a=r+i;return M(C,{children:[j(v,{asChild:!0,children:j(n,{size:`icon`,variant:`ghost`,color:`secondary`,className:`relative size-10 rounded-full`,children:j(F,{})})}),M(x,{className:`w-[95vw] sm:max-w-md`,children:[j(b,{className:`flex-0 border-border-weak border-b pb-3`,children:M(S,{className:`flex items-center gap-2`,children:[j(he,{size:20}),j(`span`,{children:`Giỏ hàng của bạn`}),a>0&&M(`span`,{className:`font-normal text-sm text-text-positive-weak`,children:[`(`,a,` sản phẩm)`]})]})}),M(ce,{defaultValue:i>0?`pre_order`:`in_stock`,className:`h-full flex-1 overflow-y-auto p-4 pt-0`,children:[M(se,{className:`w-full flex-0`,children:[M(O,{value:`in_stock`,className:`relative`,children:[`Có sẵn`,r>0&&M(`span`,{children:[`(`,r,`)`]})]}),M(O,{value:`pre_order`,className:`relative`,children:[`Đặt trước`,i>0&&M(`span`,{children:[`(`,i,`)`]})]})]}),j(k,{value:`pre_order`,className:`flex-1 overflow-y-auto`,children:j(K,{items:t,cartType:`pre_order`})}),j(k,{value:`in_stock`,className:`flex-1 overflow-y-auto`,children:j(K,{items:e,cartType:`in_stock`})})]})]})]})},Ie=()=>{let{isLoggedIn:e,username:t,email:r,onGoogleLoginSuccess:i,onLogout:a}=G(),o=H(`(min-width: 640px)`),[s,c]=B(!1);return M(`header`,{className:A(`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`,`flex items-center shadow-nav`,`transition-[width,height] ease-linear`),children:[e&&j(Y,{}),M(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[j(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:j(F,{size:20})}),M(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[j(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),j(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),M(`div`,{className:`flex flex-1 items-center justify-end gap-x-2`,children:[!e&&M(n,{className:`w-8 sm:w-fit`,onClick:()=>c(!0),children:[j(N,{}),j(`span`,{className:`sr-only sm:not-sr-only`,children:`Đăng nhập`})]}),e&&M(ue,{children:[j($,{userName:t,userEmail:r,onLogout:a}),j(_,{orientation:`vertical`,className:`min-h-6 w-px`}),j(Fe,{})]})]}),o&&j(h,{open:s,onOpenChange:c,children:M(m,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[j(p,{className:`flex-0 gap-2 p-6`,children:j(f,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`size-full flex-1 bg-card p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),j(d,{className:`p-2`})]})}),!o&&j(D,{open:s,onOpenChange:c,children:M(E,{children:[j(oe,{className:`text-left`,children:j(T,{children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),j(w,{})]})})]})},Le=({children:e,...t})=>{let{isLoggedIn:n}=G();return n?j(Te,{variant:`inset`,collapsible:`icon`,...t,children:e}):null},Re=({children:e})=>{let{isLoggedIn:t,onGoogleLoginSuccess:r}=G(),i=H(`(min-width: 640px)`),[a,o]=B(!1);return t?j(Ee,{children:j(`section`,{className:`relative size-full`,children:j(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}):j(`div`,{className:`size-full p-4 pt-[calc(var(--header-height)+1.5rem)]`,children:M(`div`,{className:`flex size-full flex-col items-center justify-center gap-6 rounded-lg bg-card p-8 text-center shadow-card`,children:[j(`div`,{className:`flex size-20 items-center justify-center rounded-full bg-muted-foreground/10`,children:j(de,{className:`size-10 text-primary`})}),M(`div`,{className:`flex max-w-md flex-col gap-2`,children:[j(`h2`,{className:`font-semibold text-2xl`,children:`Bạn chưa đăng nhập`}),j(`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.`})]}),M(n,{size:`lg`,className:`gap-2`,onClick:()=>o(!0),children:[j(N,{size:18}),j(`span`,{children:`Đăng nhập ngay`})]}),i&&j(h,{open:a,onOpenChange:o,children:M(m,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[j(p,{className:`flex-0 gap-2 p-6`,children:j(f,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`size-full flex-1 bg-card p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),j(d,{className:`p-2`})]})}),!i&&j(D,{open:a,onOpenChange:o,children:M(E,{children:[j(oe,{className:`text-left`,children:j(T,{children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),j(w,{})]})})]})})},ze=({className:e,children:t})=>j(`div`,{"data-slot":`main-header`,className:A(`flex-0 snap-start`,e),children:t}),Be=({className:e,children:t})=>j(`div`,{"data-slot":`main-content`,className:A(`flex w-full flex-1 flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),Ve=({className:e,children:t})=>j(`div`,{"data-slot":`main-footer`,className:A(`hidden w-full flex-0 border-border-weak border-t pt-2 sm:flex`,e),children:t}),He=({children:e,className:t})=>j(`div`,{"data-slot":`main-group`,className:A(`flex size-full flex-col gap-4`,t),children:e}),Ue=({className:e,children:t})=>j(`div`,{"data-slot":`main-group-content`,className:A(`size-full max-w-8xl flex-1 rounded-md bg-card p-4 shadow-card`,e),children:t});export{Fe as ServiceLayoutCartInfo,Ie as ServiceLayoutHeader,Re as ServiceLayoutMain,Be as ServiceLayoutMainContent,Ve as ServiceLayoutMainFooter,He as ServiceLayoutMainGroup,Ue as ServiceLayoutMainGroupContent,ze as ServiceLayoutMainHeader,Ne as ServiceLayoutProvider,Le as ServiceLayoutSidebar,Oe as ServiceLayoutSidebarContent,De as ServiceLayoutSidebarFooter,ke as ServiceLayoutSidebarGroup,je as ServiceLayoutSidebarGroupContent,Ae as ServiceLayoutSidebarGroupLabel,X as ServiceLayoutSidebarMenu,Q as ServiceLayoutSidebarMenuButton,Z as ServiceLayoutSidebarMenuItem,$ as ServiceLayoutUserInfo,Pe as ServiceLayoutWrapper};
1
+ import{r as e,t}from"../../card-CWAdGhMr.mjs";import"../../button.variants-DmUzMbB8.mjs";import{t as n}from"../../button-DIEXNBpi.mjs";import"../../skeleton-CvZncisJ.mjs";import{t as r}from"../../image-BwbAQRxx.mjs";import{i,n as a,r as o,t as s}from"../../tooltip-D0XDvxqi.mjs";import{n as c,r as l,t as u}from"../../avatar-BaxX-xI9.mjs";import"../../close-CGei_VQ6.mjs";import{a as d,l as f,o as p,r as m,t as h}from"../../dialog-DeZVOOmh.mjs";import{t as g}from"../../input-CC10BdKh.mjs";import{t as _}from"../../separator-C2yOD6r_.mjs";import{c as v,i as y,o as b,r as x,s as S,t as C}from"../../sheet-DXLayspn.mjs";import{a as ee,h as te,o as ne,r as re,t as ie,u as ae}from"../../dropdown-menu-CtU6oBI4.mjs";import{a as w,l as T,o as oe,r as E,t as D}from"../../drawer-272Fecsq.mjs";import{i as O,n as k,r as se,t as ce}from"../../tabs-Cjh2jtUZ.mjs";import{t as le}from"../../scroll-area-CiMS2UY7.mjs";import{cn as A}from"@customafk/react-toolkit/utils";import{Fragment as ue,jsx as j,jsxs as M}from"react/jsx-runtime";import{LockIcon as de,LogInIcon as N,LogOutIcon as P,MenuIcon as fe,Minus as pe,Plus as me,ShoppingBag as he,ShoppingBasketIcon as ge,ShoppingCartIcon as F,Trash2 as _e,UserIcon as ve}from"lucide-react";import{createContext as I,use as L,useCallback as R,useEffect as z,useMemo as ye,useState as B}from"react";import{cva as be}from"class-variance-authority";import{Slot as V}from"radix-ui";import{useIsMobile as xe}from"@customafk/react-toolkit/hooks/useMobile";import{useMediaQuery as H}from"@customafk/react-toolkit/hooks/useMediaQuery";import{GoogleLogin as U}from"@react-oauth/google";import{useDebounceCallback as Se}from"@customafk/react-toolkit/hooks/useDebounceCallback";const W=I(null),G=()=>{let e=L(W);if(!e)throw Error(`useServiceLayoutContext must be used within a ServiceLayoutProvider`);return e},Ce=({id:i,type:a,productName:o,imageUrl:s,quantity:c,price:l,options:u})=>{let{onDeletingCart:d,onUpdatingCart:f}=G(),[p,m]=B(c),[h,_]=B(!1),v=Se(R(()=>{f?.(i,p,a)},[f,i,p,a]),500),y=R(e=>{e<1&&(e=1),e>99&&(e=99),m(e)},[]),b=R(async()=>{_(!0),await d?.(i),_(!1)},[i,d]);return z(()=>(p!==c&&v(),()=>{v.cancel()}),[p,c,v]),M(t,{className:`border-border-weak relative mb-3 overflow-x-auto border p-4 shadow-none`,children:[h&&j(`div`,{className:`bg-muted-muted/80 absolute inset-0 z-10 flex items-center justify-center`,children:j(`div`,{className:`loader-dots`})}),M(e,{className:`p-0`,children:[M(n,{variant:`ghost`,size:`icon`,color:`muted`,disabled:h,className:`text-text-positive-weak absolute top-2 right-2 z-10`,onClick:b,children:[j(_e,{className:`h-4 w-4`}),j(`span`,{className:`sr-only`,children:`Remove item`})]}),M(`div`,{className:`flex gap-3`,children:[j(`div`,{className:`relative size-20 flex-shrink-0`,children:s?j(r,{src:s,alt:o,className:`rounded-md border-none shadow-xs`,width:80,height:80}):j(`div`,{className:`bg-muted text-muted-foreground flex size-full items-center justify-center text-xs`,children:`No image`})}),M(`div`,{className:`flex flex-1 flex-col`,children:[j(`div`,{className:`flex justify-between`,children:j(`h3`,{className:`text-text-positive line-clamp-1 text-sm font-medium`,children:o})}),j(`p`,{className:`text-text-positive-weak mb-1 text-xs`,children:u.map((e,t)=>M(`span`,{children:[e.label,`: `,e.value,t<u.length-1&&`, `]},e.label))}),M(`div`,{className:`mt-auto flex items-center justify-between`,children:[M(`div`,{className:`flex items-center space-x-1`,children:[j(`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:()=>y(p-1),children:j(pe,{size:12})}),j(g,{value:p,onChange:e=>y(parseInt(e.target.value||`1`)),className:`border-border h-6.5 w-14 rounded-md border p-1 text-center text-sm`,min:1}),j(`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:()=>y(p+1),children:j(me,{size:12})})]}),M(`div`,{className:`text-sm font-semibold`,children:[(l*p).toLocaleString(),` ₫`]})]})]})]})]})]})},K=({items:e=[],cartType:t,className:r})=>{let i=e.reduce((e,t)=>e+t.price*t.quantity,0);return e.length===0?M(`div`,{className:A(`bg-muted-muted flex size-full max-h-80 flex-col items-center justify-center rounded-lg p-8`,r),children:[j(`div`,{className:`text-text-positive-weak bg-card shadow-card mb-4 flex size-20 items-center justify-center rounded-full text-5xl`,children:j(ge,{size:42,strokeWidth:1})}),M(`div`,{className:`flex flex-col space-y-1`,children:[j(`p`,{className:`text-text-positive text-center text-base font-semibold`,children:`Giỏ hàng trống`}),j(`p`,{className:`text-text-positive-weak mb-4 text-center text-sm`,children:t===`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!`})]})]}):M(`div`,{className:A(`flex h-full flex-col space-y-4 overflow-y-auto`,r),children:[j(le,{className:`h-full flex-1`,children:e.map(e=>j(Ce,{...e,type:t},e.id))}),M(`div`,{className:`flex-0 space-y-3`,children:[M(`div`,{className:`flex justify-between`,children:[j(`span`,{className:`text-text-positive-weak text-sm`,children:`Tạm tính:`}),M(`span`,{className:`text-sm`,children:[i.toLocaleString(),` ₫`]})]}),j(_,{}),M(`div`,{className:`flex justify-between`,children:[j(`span`,{className:`text-text-positive font-medium`,children:`Tổng cộng:`}),M(`span`,{className:`text-lg font-semibold`,children:[i.toLocaleString(),` ₫`]})]}),j(n,{className:`mt-2 w-full`,children:`Thanh toán ngay`}),t===`pre_order`&&j(`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`})]})]})},q=I(null),J=()=>{let e=L(q);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e};function we({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...s}){let c=xe(),[l,u]=B(!1),[d,f]=B(e),p=t??d,m=R(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=R(()=>c?u(e=>!e):m(e=>!e),[c,m]);z(()=>{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`,_=ye(()=>({state:g,isMobile:c,toggleSidebar:h,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[g,p,m,c,l,h]);return j(q.Provider,{value:_,children:j(o,{delayDuration:0,children:j(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...i},className:A(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:a})})})}function Te({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=J();return n===`none`?j(`aside`,{"data-slot":`sidebar`,className:A(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...a,children:i}):o?j(C,{open:c,onOpenChange:l,children:M(x,{side:`left`,"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":`16rem`},children:[M(b,{className:`sr-only`,children:[j(S,{children:`Sidebar`}),j(y,{children:`Displays the mobile sidebar.`})]}),M(`div`,{className:`flex size-full flex-col`,children:[M(`div`,{className:`flex flex-0 items-center gap-x-2 border-border-weak border-b p-2 pr-4`,children:[j(Y,{}),j(`div`,{className:`ml-2 flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:j(F,{size:20})}),M(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[j(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),j(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),j(`div`,{className:`flex flex-1 flex-col p-2`,children:i})]})]})}):M(`aside`,{className:`group peer hidden bg-card text-sidebar-foreground md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[j(`div`,{"data-slot":`sidebar-gap`,className:A(`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)`)}),j(`div`,{"data-slot":`sidebar-container`,className:A(`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)]`,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:j(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:A(`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 Y({className:e,onClick:t,...r}){let{toggleSidebar:i}=J();return M(n,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:A(`size-10 rounded-full`,e),onClick:e=>{t?.(e),i()},...r,children:[j(fe,{className:`size-6!`}),j(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Ee({className:e,children:t,...n}){return M(`main`,{"data-slot":`sidebar-inset`,className:A(`relative flex w-full flex-1 flex-col`,e),...n,children:[j(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)+0.5rem)]`}),j(`div`,{className:A(`inset-shadow-sm flex-1`),children:t})]})}function De({className:e,children:t,...n}){let{open:r}=J(),{onLogout:i}=G();return M(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:A(`flex flex-col gap-2`,e),...n,children:[t,M(X,{children:[j(Z,{children:M(Q,{className:`border border-border`,onClick:i,children:[j(P,{className:`text-text-positive-weak`}),`Đăng xuất`]})}),r&&j(Z,{className:`mt-2 border-t border-t-border`,children:j(`p`,{className:`pt-2 text-center text-muted-foreground text-xs`,children:`Copyright © 2025, Lunas.`})})]})]})}function Oe({className:e,...t}){return j(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:A(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function ke({className:e,...t}){return j(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:A(`relative flex w-full min-w-0 flex-col`,e),...t})}function Ae({className:e,asChild:t=!1,...n}){return j(t?V.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:A(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-xs 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 je({className:e,...t}){return j(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:A(`w-full text-sm`,e),...t})}function X({className:e,...t}){return j(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:A(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Z({className:e,...t}){return j(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:A(`group/menu-item relative`,e),...t})}const Me=be(`peer/menu-button.cursor-pointer.flex w-full items-center gap-2.overflow-hidden rounded-md p-2 outline-hidden.truncate text-left.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 Q({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:o,className:c,...l}){let u=e?V.Slot:`button`,{isMobile:d,state:f}=J(),p=j(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:A(Me({variant:n,size:r}),c),...l});return o?(typeof o==`string`&&(o={children:o}),M(s,{children:[j(i,{asChild:!0,children:p}),j(a,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...o})]})):p}const Ne=({isLoggedIn:e=!1,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c,children:l})=>j(W.Provider,{value:{isLoggedIn:e,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c},children:l}),Pe=({children:e})=>j(we,{children:e}),$=({userName:e=`Keith Kennedy`,userEmail:t=`k.kennedy@originui.com`,onLogout:r})=>M(ie,{children:[j(te,{asChild:!0,children:j(n,{size:`icon`,variant:`ghost`,color:`secondary`,className:`size-10 rounded-full`,children:M(u,{className:`size-10`,children:[j(l,{}),j(c,{className:`size-full bg-muted-muted`,children:j(ve,{})})]})})}),M(re,{align:`end`,className:`max-w-64`,children:[M(ne,{className:`flex min-w-0 flex-col`,children:[j(`span`,{className:`truncate font-medium text-sm text-text-positive`,children:e}),j(`span`,{className:`truncate font-normal text-text-positive-weak text-xs`,children:t})]}),j(ae,{}),M(ee,{onClick:r,children:[j(P,{size:16,"aria-hidden":`true`}),j(`span`,{className:`text-text-positive`,children:`Logout`})]})]})]}),Fe=()=>{let{inStockCarts:e=[],orderedCarts:t=[]}=G(),r=e.length,i=t.length,a=r+i;return M(C,{children:[j(v,{asChild:!0,children:j(n,{size:`icon`,variant:`ghost`,color:`secondary`,className:`relative size-10 rounded-full`,children:j(F,{})})}),M(x,{className:`w-[95vw] sm:max-w-md`,children:[j(b,{className:`flex-0 border-border-weak border-b pb-3`,children:M(S,{className:`flex items-center gap-2`,children:[j(he,{size:20}),j(`span`,{children:`Giỏ hàng của bạn`}),a>0&&M(`span`,{className:`font-normal text-sm text-text-positive-weak`,children:[`(`,a,` sản phẩm)`]})]})}),M(ce,{defaultValue:i>0?`pre_order`:`in_stock`,className:`h-full flex-1 overflow-y-auto p-4 pt-0`,children:[M(se,{className:`w-full flex-0`,children:[M(O,{value:`in_stock`,className:`relative`,children:[`Có sẵn`,r>0&&M(`span`,{children:[`(`,r,`)`]})]}),M(O,{value:`pre_order`,className:`relative`,children:[`Đặt trước`,i>0&&M(`span`,{children:[`(`,i,`)`]})]})]}),j(k,{value:`pre_order`,className:`flex-1 overflow-y-auto`,children:j(K,{items:t,cartType:`pre_order`})}),j(k,{value:`in_stock`,className:`flex-1 overflow-y-auto`,children:j(K,{items:e,cartType:`in_stock`})})]})]})]})},Ie=()=>{let{isLoggedIn:e,username:t,email:r,onGoogleLoginSuccess:i,onLogout:a}=G(),o=H(`(min-width: 640px)`),[s,c]=B(!1);return M(`header`,{className:A(`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`,`flex items-center shadow-nav`,`transition-[width,height] ease-linear`),children:[e&&j(Y,{}),M(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[j(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground`,children:j(F,{size:20})}),M(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[j(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),j(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),M(`div`,{className:`flex flex-1 items-center justify-end gap-x-2`,children:[!e&&M(n,{className:`w-8 sm:w-fit`,onClick:()=>c(!0),children:[j(N,{}),j(`span`,{className:`sr-only sm:not-sr-only`,children:`Đăng nhập`})]}),e&&M(ue,{children:[j($,{userName:t,userEmail:r,onLogout:a}),j(_,{orientation:`vertical`,className:`min-h-6 w-px`}),j(Fe,{})]})]}),o&&j(h,{open:s,onOpenChange:c,children:M(m,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[j(p,{className:`flex-0 gap-2 p-6`,children:j(f,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`size-full flex-1 bg-card p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),j(d,{className:`p-2`})]})}),!o&&j(D,{open:s,onOpenChange:c,children:M(E,{children:[j(oe,{className:`text-left`,children:j(T,{children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),j(w,{})]})})]})},Le=({children:e,...t})=>{let{isLoggedIn:n}=G();return n?j(Te,{variant:`inset`,collapsible:`icon`,...t,children:e}):null},Re=({children:e})=>{let{isLoggedIn:t,onGoogleLoginSuccess:r}=G(),i=H(`(min-width: 640px)`),[a,o]=B(!1);return t?j(Ee,{children:j(`section`,{className:`relative size-full`,children:j(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}):j(`div`,{className:`size-full p-4 pt-[calc(var(--header-height)+1.5rem)]`,children:M(`div`,{className:`flex size-full flex-col items-center justify-center gap-6 rounded-lg bg-card p-8 text-center shadow-card`,children:[j(`div`,{className:`flex size-20 items-center justify-center rounded-full bg-muted-foreground/10`,children:j(de,{className:`size-10 text-primary`})}),M(`div`,{className:`flex max-w-md flex-col gap-2`,children:[j(`h2`,{className:`font-semibold text-2xl`,children:`Bạn chưa đăng nhập`}),j(`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.`})]}),M(n,{size:`lg`,className:`gap-2`,onClick:()=>o(!0),children:[j(N,{size:18}),j(`span`,{children:`Đăng nhập ngay`})]}),i&&j(h,{open:a,onOpenChange:o,children:M(m,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[j(p,{className:`flex-0 gap-2 p-6`,children:j(f,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`size-full flex-1 bg-card p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),j(d,{className:`p-2`})]})}),!i&&j(D,{open:a,onOpenChange:o,children:M(E,{children:[j(oe,{className:`text-left`,children:j(T,{children:`Chào mừng bạn đến với Lunas Store!`})}),j(`div`,{className:`flex flex-1 flex-col`,children:j(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:M(`div`,{className:`flex flex-col items-center gap-y-1`,children:[j(`p`,{className:`text-sm text-text-positive-weak`,children:`Đăng nhập với Google`}),j(U,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),j(w,{})]})})]})})},ze=({className:e,children:t})=>j(`div`,{"data-slot":`main-header`,className:A(`flex-0 snap-start`,e),children:t}),Be=({className:e,children:t})=>j(`div`,{"data-slot":`main-content`,className:A(`flex w-full flex-1 flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),Ve=({className:e,children:t})=>j(`div`,{"data-slot":`main-footer`,className:A(`hidden w-full flex-0 border-border-weak border-t pt-2 sm:flex`,e),children:t}),He=({children:e,className:t})=>j(`div`,{"data-slot":`main-group`,className:A(`flex size-full flex-col gap-4`,t),children:e}),Ue=({className:e,children:t})=>j(`div`,{"data-slot":`main-group-content`,className:A(`size-full max-w-8xl flex-1 rounded-md bg-card p-4 shadow-card`,e),children:t});export{Fe as ServiceLayoutCartInfo,Ie as ServiceLayoutHeader,Re as ServiceLayoutMain,Be as ServiceLayoutMainContent,Ve as ServiceLayoutMainFooter,He as ServiceLayoutMainGroup,Ue as ServiceLayoutMainGroupContent,ze as ServiceLayoutMainHeader,Ne as ServiceLayoutProvider,Le as ServiceLayoutSidebar,Oe as ServiceLayoutSidebarContent,De as ServiceLayoutSidebarFooter,ke as ServiceLayoutSidebarGroup,je as ServiceLayoutSidebarGroupContent,Ae as ServiceLayoutSidebarGroupLabel,X as ServiceLayoutSidebarMenu,Q as ServiceLayoutSidebarMenuButton,Z as ServiceLayoutSidebarMenuItem,$ as ServiceLayoutUserInfo,Pe as ServiceLayoutWrapper};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime7 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/FeatureDeveloping.d.ts
4
4
  interface FeatureDevelopingProps {
@@ -19,7 +19,7 @@ declare const FeatureDeveloping: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: FeatureDevelopingProps) => react_jsx_runtime7.JSX.Element;
22
+ }: FeatureDevelopingProps) => react_jsx_runtime3.JSX.Element;
23
23
  //#endregion
24
24
  export { FeatureDeveloping, FeatureDeveloping as default, FeatureDevelopingProps };
25
25
  //# sourceMappingURL=FeatureDeveloping.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime26 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/FeatureDeveloping.d.ts
4
4
  interface FeatureDevelopingProps {
@@ -19,7 +19,7 @@ declare const FeatureDeveloping: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: FeatureDevelopingProps) => react_jsx_runtime26.JSX.Element;
22
+ }: FeatureDevelopingProps) => react_jsx_runtime0.JSX.Element;
23
23
  //#endregion
24
24
  export { FeatureDeveloping, FeatureDeveloping as default, FeatureDevelopingProps };
25
25
  //# sourceMappingURL=FeatureDeveloping.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/FeatureFixing.d.ts
4
4
  interface FeatureFixingProps {
@@ -19,7 +19,7 @@ declare const FeatureFixing: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: FeatureFixingProps) => react_jsx_runtime4.JSX.Element;
22
+ }: FeatureFixingProps) => react_jsx_runtime5.JSX.Element;
23
23
  //#endregion
24
24
  export { FeatureFixing, FeatureFixing as default, FeatureFixingProps };
25
25
  //# sourceMappingURL=FeatureFixing.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime29 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime71 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/FeatureFixing.d.ts
4
4
  interface FeatureFixingProps {
@@ -19,7 +19,7 @@ declare const FeatureFixing: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: FeatureFixingProps) => react_jsx_runtime29.JSX.Element;
22
+ }: FeatureFixingProps) => react_jsx_runtime71.JSX.Element;
23
23
  //#endregion
24
24
  export { FeatureFixing, FeatureFixing as default, FeatureFixingProps };
25
25
  //# sourceMappingURL=FeatureFixing.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/NotAuthorized.d.ts
4
4
  interface NotAuthorizedProps {
@@ -19,7 +19,7 @@ declare const NotAuthorized: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: NotAuthorizedProps) => react_jsx_runtime11.JSX.Element;
22
+ }: NotAuthorizedProps) => react_jsx_runtime6.JSX.Element;
23
23
  //#endregion
24
24
  export { NotAuthorized, NotAuthorized as default, NotAuthorizedProps };
25
25
  //# sourceMappingURL=NotAuthorized.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime31 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime168 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/NotAuthorized.d.ts
4
4
  interface NotAuthorizedProps {
@@ -19,7 +19,7 @@ declare const NotAuthorized: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: NotAuthorizedProps) => react_jsx_runtime31.JSX.Element;
22
+ }: NotAuthorizedProps) => react_jsx_runtime168.JSX.Element;
23
23
  //#endregion
24
24
  export { NotAuthorized, NotAuthorized as default, NotAuthorizedProps };
25
25
  //# sourceMappingURL=NotAuthorized.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime25 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/NotFound.d.ts
4
4
  interface NotFoundProps {
@@ -19,7 +19,7 @@ declare const NotFound: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: NotFoundProps) => react_jsx_runtime25.JSX.Element;
22
+ }: NotFoundProps) => react_jsx_runtime7.JSX.Element;
23
23
  //#endregion
24
24
  export { NotFound, NotFound as default, NotFoundProps };
25
25
  //# sourceMappingURL=NotFound.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime28 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime39 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/pages/NotFound.d.ts
4
4
  interface NotFoundProps {
@@ -19,7 +19,7 @@ declare const NotFound: ({
19
19
  onButtonClick,
20
20
  className,
21
21
  iconClassName
22
- }: NotFoundProps) => react_jsx_runtime28.JSX.Element;
22
+ }: NotFoundProps) => react_jsx_runtime39.JSX.Element;
23
23
  //#endregion
24
24
  export { NotFound, NotFound as default, NotFoundProps };
25
25
  //# sourceMappingURL=NotFound.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime239 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime244 from "react/jsx-runtime";
2
2
  import { Separator } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/separator.d.ts
@@ -7,7 +7,7 @@ declare function Separator$1({
7
7
  orientation,
8
8
  decorative,
9
9
  ...props
10
- }: React.ComponentProps<typeof Separator.Root>): react_jsx_runtime239.JSX.Element;
10
+ }: React.ComponentProps<typeof Separator.Root>): react_jsx_runtime244.JSX.Element;
11
11
  //#endregion
12
12
  export { Separator$1 as t };
13
- //# sourceMappingURL=separator-CY141ab_.d.cts.map
13
+ //# sourceMappingURL=separator-BlXmdu-p.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime219 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime167 from "react/jsx-runtime";
2
2
  import { Separator } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/separator.d.ts
@@ -7,7 +7,7 @@ declare function Separator$1({
7
7
  orientation,
8
8
  decorative,
9
9
  ...props
10
- }: React.ComponentProps<typeof Separator.Root>): react_jsx_runtime219.JSX.Element;
10
+ }: React.ComponentProps<typeof Separator.Root>): react_jsx_runtime167.JSX.Element;
11
11
  //#endregion
12
12
  export { Separator$1 as t };
13
- //# sourceMappingURL=separator-CbnkvGgQ.d.mts.map
13
+ //# sourceMappingURL=separator-uqlPXXM6.d.mts.map
@@ -1,23 +1,23 @@
1
- import * as react_jsx_runtime263 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime287 from "react/jsx-runtime";
2
2
  import { Tooltip } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/tooltip.d.ts
5
5
  declare function TooltipProvider({
6
6
  delayDuration,
7
7
  ...props
8
- }: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime263.JSX.Element;
8
+ }: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime287.JSX.Element;
9
9
  declare function Tooltip$1({
10
10
  ...props
11
- }: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime263.JSX.Element;
11
+ }: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime287.JSX.Element;
12
12
  declare function TooltipTrigger({
13
13
  ...props
14
- }: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime263.JSX.Element;
14
+ }: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime287.JSX.Element;
15
15
  declare function TooltipContent({
16
16
  className,
17
17
  sideOffset,
18
18
  children,
19
19
  ...props
20
- }: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime263.JSX.Element;
20
+ }: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime287.JSX.Element;
21
21
  //#endregion
22
22
  export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip$1 as t };
23
- //# sourceMappingURL=tooltip-DbdlL_22.d.mts.map
23
+ //# sourceMappingURL=tooltip-DOnCuFV4.d.cts.map
@@ -1,23 +1,23 @@
1
- import * as react_jsx_runtime285 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime280 from "react/jsx-runtime";
2
2
  import { Tooltip } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/tooltip.d.ts
5
5
  declare function TooltipProvider({
6
6
  delayDuration,
7
7
  ...props
8
- }: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime285.JSX.Element;
8
+ }: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime280.JSX.Element;
9
9
  declare function Tooltip$1({
10
10
  ...props
11
- }: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime285.JSX.Element;
11
+ }: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime280.JSX.Element;
12
12
  declare function TooltipTrigger({
13
13
  ...props
14
- }: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime285.JSX.Element;
14
+ }: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime280.JSX.Element;
15
15
  declare function TooltipContent({
16
16
  className,
17
17
  sideOffset,
18
18
  children,
19
19
  ...props
20
- }: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime285.JSX.Element;
20
+ }: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime280.JSX.Element;
21
21
  //#endregion
22
22
  export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip$1 as t };
23
- //# sourceMappingURL=tooltip-JB8ZVcSM.d.cts.map
23
+ //# sourceMappingURL=tooltip-DWHcJkRL.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime31 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/typography/paragraph.d.ts
4
4
  type Props = {
@@ -10,7 +10,7 @@ declare const Paragraph: ({
10
10
  variant,
11
11
  className,
12
12
  children
13
- }: Props) => react_jsx_runtime2.JSX.Element;
13
+ }: Props) => react_jsx_runtime31.JSX.Element;
14
14
  //#endregion
15
15
  export { Paragraph };
16
16
  //# sourceMappingURL=paragraph.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime30 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/typography/paragraph.d.ts
4
4
  type Props = {
@@ -10,7 +10,7 @@ declare const Paragraph: ({
10
10
  variant,
11
11
  className,
12
12
  children
13
- }: Props) => react_jsx_runtime30.JSX.Element;
13
+ }: Props) => react_jsx_runtime26.JSX.Element;
14
14
  //#endregion
15
15
  export { Paragraph };
16
16
  //# sourceMappingURL=paragraph.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/typography/title.d.ts
4
4
  type Props = {
@@ -10,7 +10,7 @@ declare const Title: ({
10
10
  level,
11
11
  className,
12
12
  children
13
- }: Props) => react_jsx_runtime5.JSX.Element;
13
+ }: Props) => react_jsx_runtime32.JSX.Element;
14
14
  //#endregion
15
15
  export { Title };
16
16
  //# sourceMappingURL=title.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime32 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime144 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/typography/title.d.ts
4
4
  type Props = {
@@ -10,7 +10,7 @@ declare const Title: ({
10
10
  level,
11
11
  className,
12
12
  children
13
- }: Props) => react_jsx_runtime32.JSX.Element;
13
+ }: Props) => react_jsx_runtime144.JSX.Element;
14
14
  //#endregion
15
15
  export { Title };
16
16
  //# sourceMappingURL=title.d.mts.map
@@ -1,48 +1,48 @@
1
- import * as react_jsx_runtime13 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime40 from "react/jsx-runtime";
2
2
  import { AlertDialog as AlertDialog$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/alert-dialog.d.ts
5
5
  declare function AlertDialog({
6
6
  ...props
7
- }: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime13.JSX.Element;
7
+ }: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime40.JSX.Element;
8
8
  declare function AlertDialogTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime13.JSX.Element;
10
+ }: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime40.JSX.Element;
11
11
  declare function AlertDialogPortal({
12
12
  ...props
13
- }: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime13.JSX.Element;
13
+ }: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime40.JSX.Element;
14
14
  declare function AlertDialogOverlay({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime13.JSX.Element;
17
+ }: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime40.JSX.Element;
18
18
  declare function AlertDialogContent({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime13.JSX.Element;
21
+ }: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime40.JSX.Element;
22
22
  declare function AlertDialogHeader({
23
23
  className,
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime13.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime40.JSX.Element;
26
26
  declare function AlertDialogFooter({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'div'>): react_jsx_runtime13.JSX.Element;
29
+ }: React.ComponentProps<'div'>): react_jsx_runtime40.JSX.Element;
30
30
  declare function AlertDialogTitle({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime13.JSX.Element;
33
+ }: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime40.JSX.Element;
34
34
  declare function AlertDialogDescription({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime13.JSX.Element;
37
+ }: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime40.JSX.Element;
38
38
  declare function AlertDialogAction({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime13.JSX.Element;
41
+ }: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime40.JSX.Element;
42
42
  declare function AlertDialogCancel({
43
43
  className,
44
44
  ...props
45
- }: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime13.JSX.Element;
45
+ }: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime40.JSX.Element;
46
46
  //#endregion
47
47
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
48
48
  //# sourceMappingURL=alert-dialog.d.cts.map
@@ -1,48 +1,48 @@
1
- import * as react_jsx_runtime34 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime223 from "react/jsx-runtime";
2
2
  import { AlertDialog as AlertDialog$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/alert-dialog.d.ts
5
5
  declare function AlertDialog({
6
6
  ...props
7
- }: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime34.JSX.Element;
7
+ }: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime223.JSX.Element;
8
8
  declare function AlertDialogTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime34.JSX.Element;
10
+ }: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime223.JSX.Element;
11
11
  declare function AlertDialogPortal({
12
12
  ...props
13
- }: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime34.JSX.Element;
13
+ }: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime223.JSX.Element;
14
14
  declare function AlertDialogOverlay({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime34.JSX.Element;
17
+ }: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime223.JSX.Element;
18
18
  declare function AlertDialogContent({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime34.JSX.Element;
21
+ }: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime223.JSX.Element;
22
22
  declare function AlertDialogHeader({
23
23
  className,
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime34.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime223.JSX.Element;
26
26
  declare function AlertDialogFooter({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'div'>): react_jsx_runtime34.JSX.Element;
29
+ }: React.ComponentProps<'div'>): react_jsx_runtime223.JSX.Element;
30
30
  declare function AlertDialogTitle({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime34.JSX.Element;
33
+ }: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime223.JSX.Element;
34
34
  declare function AlertDialogDescription({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime34.JSX.Element;
37
+ }: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime223.JSX.Element;
38
38
  declare function AlertDialogAction({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime34.JSX.Element;
41
+ }: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime223.JSX.Element;
42
42
  declare function AlertDialogCancel({
43
43
  className,
44
44
  ...props
45
- }: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime34.JSX.Element;
45
+ }: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime223.JSX.Element;
46
46
  //#endregion
47
47
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
48
48
  //# sourceMappingURL=alert-dialog.d.mts.map
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
- import * as class_variance_authority_types11 from "class-variance-authority/types";
1
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
2
+ import * as class_variance_authority_types14 from "class-variance-authority/types";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region packages/components/ui/alert-variants.d.ts
@@ -7,8 +7,8 @@ import { VariantProps } from "class-variance-authority";
7
7
  * Alert component variants for styling using class-variance-authority
8
8
  */
9
9
  declare const alertVariants: (props?: ({
10
- variant?: "default" | "success" | "destructive" | "warning" | "info" | null | undefined;
11
- } & class_variance_authority_types11.ClassProp) | undefined) => string;
10
+ variant?: "default" | "success" | "info" | "warning" | "destructive" | null | undefined;
11
+ } & class_variance_authority_types14.ClassProp) | undefined) => string;
12
12
  type AlertVariantProps = VariantProps<typeof alertVariants>;
13
13
  //#endregion
14
14
  //#region packages/components/ui/alert.d.ts
@@ -37,7 +37,7 @@ declare function Alert({
37
37
  dismissible,
38
38
  onDismiss,
39
39
  ...props
40
- }: AlertProps): react_jsx_runtime8.JSX.Element;
40
+ }: AlertProps): react_jsx_runtime34.JSX.Element;
41
41
  interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
42
42
  /**
43
43
  * Title text or elements
@@ -50,7 +50,7 @@ interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
50
50
  declare function AlertTitle({
51
51
  className,
52
52
  ...props
53
- }: AlertTitleProps): react_jsx_runtime8.JSX.Element;
53
+ }: AlertTitleProps): react_jsx_runtime34.JSX.Element;
54
54
  interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
55
55
  /**
56
56
  * Description text or elements
@@ -63,7 +63,7 @@ interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
63
63
  declare function AlertDescription({
64
64
  className,
65
65
  ...props
66
- }: AlertDescriptionProps): react_jsx_runtime8.JSX.Element;
66
+ }: AlertDescriptionProps): react_jsx_runtime34.JSX.Element;
67
67
  //#endregion
68
68
  export { Alert, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps };
69
69
  //# sourceMappingURL=alert.d.cts.map
@@ -1,14 +1,14 @@
1
- import * as react_jsx_runtime45 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime85 from "react/jsx-runtime";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types11 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types13 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/alert-variants.d.ts
6
6
  /**
7
7
  * Alert component variants for styling using class-variance-authority
8
8
  */
9
9
  declare const alertVariants: (props?: ({
10
- variant?: "default" | "success" | "destructive" | "warning" | "info" | null | undefined;
11
- } & class_variance_authority_types11.ClassProp) | undefined) => string;
10
+ variant?: "default" | "success" | "info" | "warning" | "destructive" | null | undefined;
11
+ } & class_variance_authority_types13.ClassProp) | undefined) => string;
12
12
  type AlertVariantProps = VariantProps<typeof alertVariants>;
13
13
  //#endregion
14
14
  //#region packages/components/ui/alert.d.ts
@@ -37,7 +37,7 @@ declare function Alert({
37
37
  dismissible,
38
38
  onDismiss,
39
39
  ...props
40
- }: AlertProps): react_jsx_runtime45.JSX.Element;
40
+ }: AlertProps): react_jsx_runtime85.JSX.Element;
41
41
  interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
42
42
  /**
43
43
  * Title text or elements
@@ -50,7 +50,7 @@ interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
50
50
  declare function AlertTitle({
51
51
  className,
52
52
  ...props
53
- }: AlertTitleProps): react_jsx_runtime45.JSX.Element;
53
+ }: AlertTitleProps): react_jsx_runtime85.JSX.Element;
54
54
  interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
55
55
  /**
56
56
  * Description text or elements
@@ -63,7 +63,7 @@ interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
63
63
  declare function AlertDescription({
64
64
  className,
65
65
  ...props
66
- }: AlertDescriptionProps): react_jsx_runtime45.JSX.Element;
66
+ }: AlertDescriptionProps): react_jsx_runtime85.JSX.Element;
67
67
  //#endregion
68
68
  export { Alert, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps };
69
69
  //# sourceMappingURL=alert.d.mts.map
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime53 from "react/jsx-runtime";
2
2
  import { AspectRatio as AspectRatio$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/aspect-ratio.d.ts
5
5
  declare function AspectRatio({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof AspectRatio$1.Root>): react_jsx_runtime12.JSX.Element;
8
+ }: React.ComponentProps<typeof AspectRatio$1.Root>): react_jsx_runtime53.JSX.Element;
9
9
  //#endregion
10
10
  export { AspectRatio };
11
11
  //# sourceMappingURL=aspect-ratio.d.cts.map