ivt 0.2.3 → 0.2.5

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 (177) hide show
  1. package/dist/accordion/index.mjs +1 -1
  2. package/dist/alert/index.mjs +1 -1
  3. package/dist/alert-dialog/index.mjs +1 -1
  4. package/dist/alert-dialog/index.mjs.map +1 -1
  5. package/dist/avatar/index.mjs +1 -1
  6. package/dist/avatar/index.mjs.map +1 -1
  7. package/dist/badge/index.mjs +1 -1
  8. package/dist/base/index.d.ts +4 -0
  9. package/dist/base/index.mjs +1 -1
  10. package/dist/base/index.mjs.map +1 -1
  11. package/dist/button/index.mjs +1 -1
  12. package/dist/calendar/index.d.ts +10 -9
  13. package/dist/calendar/index.mjs +1 -1
  14. package/dist/card/index.mjs +1 -1
  15. package/dist/checkbox/index.mjs +1 -1
  16. package/dist/checkbox/index.mjs.map +1 -1
  17. package/dist/chunks/accordion-BD1JRhVx.mjs +2 -0
  18. package/dist/chunks/{accordion-DxayPBXZ.mjs.map → accordion-BD1JRhVx.mjs.map} +1 -1
  19. package/dist/chunks/{badge-BIhNGnoC.mjs → badge-BlZWYqiz.mjs} +2 -2
  20. package/dist/chunks/{badge-BIhNGnoC.mjs.map → badge-BlZWYqiz.mjs.map} +1 -1
  21. package/dist/chunks/{bundle-mjs-BPxOXzif.mjs → bundle-mjs-p2tkjPN1.mjs} +1 -1
  22. package/dist/chunks/{bundle-mjs-BPxOXzif.mjs.map → bundle-mjs-p2tkjPN1.mjs.map} +1 -1
  23. package/dist/chunks/{button-kxm0Lckx.mjs → button-DrtQQeut.mjs} +2 -2
  24. package/dist/chunks/{button-kxm0Lckx.mjs.map → button-DrtQQeut.mjs.map} +1 -1
  25. package/dist/chunks/calendar-Dtopgd_k.mjs +2 -0
  26. package/dist/chunks/{calendar-CBJ49e3M.mjs.map → calendar-Dtopgd_k.mjs.map} +1 -1
  27. package/dist/chunks/check-XiDheatr.mjs +2 -0
  28. package/dist/chunks/{check-DlWKp3dT.mjs.map → check-XiDheatr.mjs.map} +1 -1
  29. package/dist/chunks/chevron-down-B1yMwors.mjs +2 -0
  30. package/dist/chunks/{chevron-down-CWUqY12V.mjs.map → chevron-down-B1yMwors.mjs.map} +1 -1
  31. package/dist/chunks/chevron-left-HipRXZQ8.mjs +2 -0
  32. package/dist/chunks/{chevron-left-CJfbOy3n.mjs.map → chevron-left-HipRXZQ8.mjs.map} +1 -1
  33. package/dist/chunks/chevron-right-BS1_kgp8.mjs +2 -0
  34. package/dist/chunks/{chevron-right-CepU0QYJ.mjs.map → chevron-right-BS1_kgp8.mjs.map} +1 -1
  35. package/dist/chunks/command-DzL_b7f4.mjs +2 -0
  36. package/dist/chunks/{command-DYCg8FQm.mjs.map → command-DzL_b7f4.mjs.map} +1 -1
  37. package/dist/chunks/{createLucideIcon-Okp8w8Ue.mjs → createLucideIcon-CsAdJd--.mjs} +1 -1
  38. package/dist/chunks/{createLucideIcon-Okp8w8Ue.mjs.map → createLucideIcon-CsAdJd--.mjs.map} +1 -1
  39. package/dist/chunks/{dialog-DTcjPj46.mjs → dialog-D8zOlPrU.mjs} +2 -2
  40. package/dist/chunks/{dialog-DTcjPj46.mjs.map → dialog-D8zOlPrU.mjs.map} +1 -1
  41. package/dist/chunks/hover-card-Cd6sPuv9.mjs +2 -0
  42. package/dist/chunks/{hover-card-T6QvJZH3.mjs.map → hover-card-Cd6sPuv9.mjs.map} +1 -1
  43. package/dist/chunks/{index-Cy8Nz9EO.mjs → index-B70-2oxO.mjs} +1 -1
  44. package/dist/chunks/{index-Cy8Nz9EO.mjs.map → index-B70-2oxO.mjs.map} +1 -1
  45. package/dist/chunks/index-B_x_ais9.mjs +2 -0
  46. package/dist/chunks/index-B_x_ais9.mjs.map +1 -0
  47. package/dist/chunks/index-C-Of5QmS.mjs +2 -0
  48. package/dist/chunks/{index-j5UZGMap.mjs.map → index-C-Of5QmS.mjs.map} +1 -1
  49. package/dist/chunks/{index-BEptPvC9.mjs → index-C2Fe0koc.mjs} +1 -1
  50. package/dist/chunks/{index-BEptPvC9.mjs.map → index-C2Fe0koc.mjs.map} +1 -1
  51. package/dist/chunks/index-C5Y3Sf57.mjs +2 -0
  52. package/dist/chunks/{index-Bmfh-9vj.mjs.map → index-C5Y3Sf57.mjs.map} +1 -1
  53. package/dist/chunks/index-CDjTdrNO.mjs +2 -0
  54. package/dist/chunks/{index-DzvdVz0F.mjs.map → index-CDjTdrNO.mjs.map} +1 -1
  55. package/dist/chunks/{index-Di_4GEUt.mjs → index-CIJFMEHT.mjs} +2 -2
  56. package/dist/chunks/{index-Di_4GEUt.mjs.map → index-CIJFMEHT.mjs.map} +1 -1
  57. package/dist/chunks/index-CQLZqpi3.mjs +2 -0
  58. package/dist/chunks/index-CQLZqpi3.mjs.map +1 -0
  59. package/dist/chunks/{index-BsSBJ3PL.mjs → index-CTsIdIko.mjs} +2 -2
  60. package/dist/chunks/{index-BsSBJ3PL.mjs.map → index-CTsIdIko.mjs.map} +1 -1
  61. package/dist/chunks/{index-BqVtEtRQ.mjs → index-CgLDADnA.mjs} +1 -1
  62. package/dist/chunks/{index-BqVtEtRQ.mjs.map → index-CgLDADnA.mjs.map} +1 -1
  63. package/dist/chunks/{index-jhOC7m1Z.mjs → index-DRqB8wXi.mjs} +2 -2
  64. package/dist/chunks/{index-jhOC7m1Z.mjs.map → index-DRqB8wXi.mjs.map} +1 -1
  65. package/dist/chunks/{index-sxa3-G-E.mjs → index-Dx9q9PhQ.mjs} +2 -2
  66. package/dist/chunks/{index-sxa3-G-E.mjs.map → index-Dx9q9PhQ.mjs.map} +1 -1
  67. package/dist/chunks/{index-g796WVS-.mjs → index-Dxh10iPI.mjs} +1 -1
  68. package/dist/chunks/{index-g796WVS-.mjs.map → index-Dxh10iPI.mjs.map} +1 -1
  69. package/dist/chunks/{index-DUhfpjqn.mjs → index-LYeASA5N.mjs} +2 -2
  70. package/dist/chunks/{index-DUhfpjqn.mjs.map → index-LYeASA5N.mjs.map} +1 -1
  71. package/dist/chunks/index-ZEFtUcMw.mjs +2 -0
  72. package/dist/chunks/index-ZEFtUcMw.mjs.map +1 -0
  73. package/dist/chunks/index-fgRlmr40.mjs +2 -0
  74. package/dist/chunks/index-fgRlmr40.mjs.map +1 -0
  75. package/dist/chunks/{index-C-gmRzgE.mjs → index-g_YR6VZJ.mjs} +1 -1
  76. package/dist/chunks/{index-C-gmRzgE.mjs.map → index-g_YR6VZJ.mjs.map} +1 -1
  77. package/dist/chunks/{input-DyBbEcZb.mjs → input-B-LMt_h_.mjs} +2 -2
  78. package/dist/chunks/{input-DyBbEcZb.mjs.map → input-B-LMt_h_.mjs.map} +1 -1
  79. package/dist/chunks/{label-7xIUYreG.mjs → label-D5csAh9b.mjs} +2 -2
  80. package/dist/chunks/{label-7xIUYreG.mjs.map → label-D5csAh9b.mjs.map} +1 -1
  81. package/dist/chunks/{pagination-BQCy5ruZ.mjs → pagination-BsXOOwtn.mjs} +2 -2
  82. package/dist/chunks/{pagination-BQCy5ruZ.mjs.map → pagination-BsXOOwtn.mjs.map} +1 -1
  83. package/dist/chunks/popover-Dov1Buds.mjs +2 -0
  84. package/dist/chunks/{popover-BaOty87a.mjs.map → popover-Dov1Buds.mjs.map} +1 -1
  85. package/dist/chunks/{progress-B01RWEwW.mjs → progress-C3Y_Swsn.mjs} +2 -2
  86. package/dist/chunks/{progress-B01RWEwW.mjs.map → progress-C3Y_Swsn.mjs.map} +1 -1
  87. package/dist/chunks/scroll-area-DW059l0P.mjs +2 -0
  88. package/dist/chunks/{scroll-area-DBEmK194.mjs.map → scroll-area-DW059l0P.mjs.map} +1 -1
  89. package/dist/chunks/{select-DluWFNkM.mjs → select-vTAesIVv.mjs} +2 -2
  90. package/dist/chunks/{select-DluWFNkM.mjs.map → select-vTAesIVv.mjs.map} +1 -1
  91. package/dist/chunks/{separator-Bj88WMYr.mjs → separator-20h7d7UI.mjs} +2 -2
  92. package/dist/chunks/{separator-Bj88WMYr.mjs.map → separator-20h7d7UI.mjs.map} +1 -1
  93. package/dist/chunks/{skeleton-BL6dx9Bm.mjs → skeleton-B4z6D5eV.mjs} +2 -2
  94. package/dist/chunks/{skeleton-BL6dx9Bm.mjs.map → skeleton-B4z6D5eV.mjs.map} +1 -1
  95. package/dist/chunks/{sortable-DrKB22S8.mjs → sortable-D7jRCUMx.mjs} +2 -2
  96. package/dist/chunks/{sortable-DrKB22S8.mjs.map → sortable-D7jRCUMx.mjs.map} +1 -1
  97. package/dist/chunks/{table-BvtQHwsd.mjs → table-CvqlUil9.mjs} +2 -2
  98. package/dist/chunks/{table-BvtQHwsd.mjs.map → table-CvqlUil9.mjs.map} +1 -1
  99. package/dist/chunks/toggle-BsT2kdMw.mjs +2 -0
  100. package/dist/chunks/toggle-BsT2kdMw.mjs.map +1 -0
  101. package/dist/chunks/{tslib.es6-1P1xnW5u.mjs → tslib.es6-CISrQAm2.mjs} +1 -1
  102. package/dist/chunks/{tslib.es6-1P1xnW5u.mjs.map → tslib.es6-CISrQAm2.mjs.map} +1 -1
  103. package/dist/chunks/{utils-BNmnOQuQ.mjs → utils-Dp2SHrBW.mjs} +2 -2
  104. package/dist/chunks/{utils-BNmnOQuQ.mjs.map → utils-Dp2SHrBW.mjs.map} +1 -1
  105. package/dist/chunks/x-CrlN9yY1.mjs +2 -0
  106. package/dist/chunks/{x-Dnrlrmes.mjs.map → x-CrlN9yY1.mjs.map} +1 -1
  107. package/dist/combobox/index.d.ts +53 -0
  108. package/dist/combobox/index.mjs +2 -0
  109. package/dist/combobox/index.mjs.map +1 -0
  110. package/dist/command/index.mjs +1 -1
  111. package/dist/data-table/index.mjs +1 -1
  112. package/dist/data-table/index.mjs.map +1 -1
  113. package/dist/dialog/index.mjs +1 -1
  114. package/dist/dropdown-menu/index.mjs +1 -1
  115. package/dist/dropdown-menu/index.mjs.map +1 -1
  116. package/dist/dropzone/index.mjs +1 -1
  117. package/dist/dropzone/index.mjs.map +1 -1
  118. package/dist/form/index.mjs +1 -1
  119. package/dist/form/index.mjs.map +1 -1
  120. package/dist/hover-card/index.mjs +1 -1
  121. package/dist/icon/index.mjs +1 -1
  122. package/dist/index.css +1 -1
  123. package/dist/input/index.mjs +1 -1
  124. package/dist/ivt.css +1 -1
  125. package/dist/label/index.mjs +1 -1
  126. package/dist/multi-select/index.mjs +1 -1
  127. package/dist/multi-select/index.mjs.map +1 -1
  128. package/dist/pagination/index.mjs +1 -1
  129. package/dist/popover/index.mjs +1 -1
  130. package/dist/progress/index.mjs +1 -1
  131. package/dist/radio-group/index.d.ts +2 -0
  132. package/dist/radio-group/index.mjs +2 -0
  133. package/dist/radio-group/index.mjs.map +1 -0
  134. package/dist/scroll-area/index.mjs +1 -1
  135. package/dist/select/index.mjs +1 -1
  136. package/dist/separator/index.mjs +1 -1
  137. package/dist/sheet/index.mjs +1 -1
  138. package/dist/sheet/index.mjs.map +1 -1
  139. package/dist/skeleton/index.mjs +1 -1
  140. package/dist/sonner/index.mjs +1 -1
  141. package/dist/sonner/index.mjs.map +1 -1
  142. package/dist/sortable/index.mjs +1 -1
  143. package/dist/table/index.mjs +1 -1
  144. package/dist/tabs/index.mjs +1 -1
  145. package/dist/tabs/index.mjs.map +1 -1
  146. package/dist/textarea/index.d.ts +2 -0
  147. package/dist/textarea/index.mjs +2 -0
  148. package/dist/textarea/index.mjs.map +1 -0
  149. package/dist/toast/index.mjs +1 -1
  150. package/dist/toast/index.mjs.map +1 -1
  151. package/dist/toggle/index.d.ts +13 -0
  152. package/dist/toggle/index.mjs +2 -0
  153. package/dist/toggle/index.mjs.map +1 -0
  154. package/dist/toggle-group/index.d.ts +12 -0
  155. package/dist/toggle-group/index.mjs +2 -0
  156. package/dist/toggle-group/index.mjs.map +1 -0
  157. package/dist/tooltip/index.mjs +1 -1
  158. package/dist/tooltip/index.mjs.map +1 -1
  159. package/package.json +24 -1
  160. package/dist/chunks/accordion-DxayPBXZ.mjs +0 -2
  161. package/dist/chunks/calendar-CBJ49e3M.mjs +0 -2
  162. package/dist/chunks/check-DlWKp3dT.mjs +0 -2
  163. package/dist/chunks/chevron-down-CWUqY12V.mjs +0 -2
  164. package/dist/chunks/chevron-left-CJfbOy3n.mjs +0 -2
  165. package/dist/chunks/chevron-right-CepU0QYJ.mjs +0 -2
  166. package/dist/chunks/command-DYCg8FQm.mjs +0 -2
  167. package/dist/chunks/hover-card-T6QvJZH3.mjs +0 -2
  168. package/dist/chunks/index-Bmfh-9vj.mjs +0 -2
  169. package/dist/chunks/index-DzvdVz0F.mjs +0 -2
  170. package/dist/chunks/index-Gmu-glAo.mjs +0 -2
  171. package/dist/chunks/index-Gmu-glAo.mjs.map +0 -1
  172. package/dist/chunks/index-j5UZGMap.mjs +0 -2
  173. package/dist/chunks/index-pz7_bV3J.mjs +0 -2
  174. package/dist/chunks/index-pz7_bV3J.mjs.map +0 -1
  175. package/dist/chunks/popover-BaOty87a.mjs +0 -2
  176. package/dist/chunks/scroll-area-DBEmK194.mjs +0 -2
  177. package/dist/chunks/x-Dnrlrmes.mjs +0 -2
@@ -1,2 +1,2 @@
1
- export{A as Accordion,c as AccordionContent,a as AccordionItem,b as AccordionTrigger}from"../chunks/accordion-DxayPBXZ.mjs";import"../chunks/utils-BNmnOQuQ.mjs";import"../chunks/bundle-mjs-BPxOXzif.mjs";import"react";import"../chunks/index-Cy8Nz9EO.mjs";import"react/jsx-runtime";import"@radix-ui/react-collection";import"../chunks/index-pz7_bV3J.mjs";import"../chunks/index-C-gmRzgE.mjs";import"../chunks/index-Di_4GEUt.mjs";import"../chunks/index-g796WVS-.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-sxa3-G-E.mjs";import"../chunks/index-BEptPvC9.mjs";import"../chunks/chevron-down-CWUqY12V.mjs";import"../chunks/createLucideIcon-Okp8w8Ue.mjs";
1
+ export{A as Accordion,c as AccordionContent,a as AccordionItem,b as AccordionTrigger}from"../chunks/accordion-BD1JRhVx.mjs";import"../chunks/utils-Dp2SHrBW.mjs";import"../chunks/bundle-mjs-p2tkjPN1.mjs";import"react";import"../chunks/index-B70-2oxO.mjs";import"react/jsx-runtime";import"@radix-ui/react-collection";import"../chunks/index-fgRlmr40.mjs";import"../chunks/index-CQLZqpi3.mjs";import"../chunks/index-CIJFMEHT.mjs";import"../chunks/index-g_YR6VZJ.mjs";import"../chunks/index-Dxh10iPI.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-ZEFtUcMw.mjs";import"../chunks/index-Dx9q9PhQ.mjs";import"../chunks/index-C2Fe0koc.mjs";import"../chunks/chevron-down-B1yMwors.mjs";import"../chunks/createLucideIcon-CsAdJd--.mjs";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as t}from"../chunks/utils-BNmnOQuQ.mjs";import{cva as r}from"class-variance-authority";import e from"react";import"../chunks/bundle-mjs-BPxOXzif.mjs";const a=r("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card border-destructive bg-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"text-warning bg-card border-warning bg-warning-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-warning/90"}},defaultVariants:{variant:"default"}});function s({className:r,variant:s,...i}){return e.createElement("div",{"data-slot":"alert",role:"alert",className:t(a({variant:s}),r),...i})}function i({className:r,...a}){return e.createElement("div",{"data-slot":"alert-title",className:t("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",r),...a})}function n({className:r,...a}){return e.createElement("div",{"data-slot":"alert-description",className:t("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",r),...a})}export{s as Alert,n as AlertDescription,i as AlertTitle};
1
+ import{c as t}from"../chunks/utils-Dp2SHrBW.mjs";import{cva as r}from"class-variance-authority";import e from"react";import"../chunks/bundle-mjs-p2tkjPN1.mjs";const a=r("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card border-destructive bg-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"text-warning bg-card border-warning bg-warning-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-warning/90"}},defaultVariants:{variant:"default"}});function s({className:r,variant:s,...i}){return e.createElement("div",{"data-slot":"alert",role:"alert",className:t(a({variant:s}),r),...i})}function i({className:r,...a}){return e.createElement("div",{"data-slot":"alert-title",className:t("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",r),...a})}function n({className:r,...a}){return e.createElement("div",{"data-slot":"alert-description",className:t("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",r),...a})}export{s as Alert,n as AlertDescription,i as AlertTitle};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{c as t}from"../chunks/index-Cy8Nz9EO.mjs";import{u as a,c as r}from"../chunks/index-pz7_bV3J.mjs";import{c as o,R as n,P as s,O as l,b as i,W as c,a as d,T as m,D as u,C as p}from"../chunks/index-DzvdVz0F.mjs";import{createSlottable as f}from"@radix-ui/react-slot";import{jsx as g,jsxs as h}from"react/jsx-runtime";import{c as x}from"../chunks/utils-BNmnOQuQ.mjs";import{b as v}from"../chunks/button-kxm0Lckx.mjs";import"../chunks/index-C-gmRzgE.mjs";import"../chunks/index-sxa3-G-E.mjs";import"../chunks/index-Di_4GEUt.mjs";import"../chunks/index-j5UZGMap.mjs";import"../chunks/index-g796WVS-.mjs";import"react-dom";import"../chunks/index-BqVtEtRQ.mjs";import"../chunks/index-BsSBJ3PL.mjs";import"../chunks/tslib.es6-1P1xnW5u.mjs";import"../chunks/bundle-mjs-BPxOXzif.mjs";import"class-variance-authority";var N="AlertDialog",[y,D]=t(N,[o]),A=o(),b=e=>{const{__scopeAlertDialog:t,...a}=e,r=A(t);return g(n,{...r,...a,modal:!0})};b.displayName=N;var j=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=A(a);return g(i,{...o,...r,ref:t})});j.displayName="AlertDialogTrigger";var _=e=>{const{__scopeAlertDialog:t,...a}=e,r=A(t);return g(s,{...r,...a})};_.displayName="AlertDialogPortal";var k=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=A(a);return g(l,{...o,...r,ref:t})});k.displayName="AlertDialogOverlay";var w="AlertDialogContent",[E,R]=y(w),O=f("AlertDialogContent"),z=e.forwardRef((t,o)=>{const{__scopeAlertDialog:n,children:s,...l}=t,i=A(n),m=e.useRef(null),u=a(o,m),p=e.useRef(null);return g(c,{contentName:w,titleName:C,docsSlug:"alert-dialog",children:g(E,{scope:n,cancelRef:p,children:h(d,{role:"alertdialog",...i,...l,ref:u,onOpenAutoFocus:r(l.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[g(O,{children:s}),g(q,{contentRef:m})]})})})});z.displayName=w;var C="AlertDialogTitle",$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=A(a);return g(m,{...o,...r,ref:t})});$.displayName=C;var F="AlertDialogDescription",I=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=A(a);return g(u,{...o,...r,ref:t})});I.displayName=F;var P=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=A(a);return g(p,{...o,...r,ref:t})});P.displayName="AlertDialogAction";var T="AlertDialogCancel",S=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:n}=R(T,r),s=A(r),l=a(t,n);return g(p,{...s,...o,ref:l})});S.displayName=T;var q=({contentRef:t})=>{const a=`\`${w}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${w}\` by passing a \`${F}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${w}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))},[a,t]),null},B=b,W=j,Y=_,G=k,H=z,J=P,K=S,L=$,M=I;function Q({...t}){return e.createElement(B,{"data-slot":"alert-dialog",...t})}function U({...t}){return e.createElement(W,{"data-slot":"alert-dialog-trigger",...t})}function V({...t}){return e.createElement(Y,{"data-slot":"alert-dialog-portal",...t})}function X({className:t,...a}){return e.createElement(G,{"data-slot":"alert-dialog-overlay",className:x("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function Z({className:t,...a}){return e.createElement(V,null,e.createElement(X,null),e.createElement(H,{"data-slot":"alert-dialog-content",className:x("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a}))}function ee({className:t,...a}){return e.createElement("div",{"data-slot":"alert-dialog-header",className:x("flex flex-col gap-2 text-center sm:text-left",t),...a})}function te({className:t,...a}){return e.createElement("div",{"data-slot":"alert-dialog-footer",className:x("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function ae({className:t,...a}){return e.createElement(L,{"data-slot":"alert-dialog-title",className:x("text-lg font-semibold",t),...a})}function re({className:t,...a}){return e.createElement(M,{"data-slot":"alert-dialog-description",className:x("text-muted-foreground text-sm",t),...a})}function oe({className:t,...a}){return e.createElement(J,{className:x(v(),t),...a})}function ne({className:t,...a}){return e.createElement(K,{className:x(v({variant:"outline"}),t),...a})}export{Q as AlertDialog,oe as AlertDialogAction,ne as AlertDialogCancel,Z as AlertDialogContent,re as AlertDialogDescription,te as AlertDialogFooter,ee as AlertDialogHeader,X as AlertDialogOverlay,V as AlertDialogPortal,ae as AlertDialogTitle,U as AlertDialogTrigger};
1
+ import*as e from"react";import{c as t}from"../chunks/index-B70-2oxO.mjs";import{u as a}from"../chunks/index-fgRlmr40.mjs";import{c as r,R as o,P as n,O as s,b as l,W as i,a as c,T as d,D as m,C as u}from"../chunks/index-CDjTdrNO.mjs";import{c as p}from"../chunks/index-CQLZqpi3.mjs";import{createSlottable as f}from"@radix-ui/react-slot";import{jsx as g,jsxs as h}from"react/jsx-runtime";import{c as x}from"../chunks/utils-Dp2SHrBW.mjs";import{b as v}from"../chunks/button-DrtQQeut.mjs";import"../chunks/index-Dx9q9PhQ.mjs";import"../chunks/index-g_YR6VZJ.mjs";import"../chunks/index-CIJFMEHT.mjs";import"../chunks/index-C-Of5QmS.mjs";import"../chunks/index-Dxh10iPI.mjs";import"react-dom";import"../chunks/index-CgLDADnA.mjs";import"../chunks/index-CTsIdIko.mjs";import"../chunks/tslib.es6-CISrQAm2.mjs";import"../chunks/index-ZEFtUcMw.mjs";import"../chunks/bundle-mjs-p2tkjPN1.mjs";import"class-variance-authority";var N="AlertDialog",[y,D]=t(N,[r]),b=r(),A=e=>{const{__scopeAlertDialog:t,...a}=e,r=b(t);return g(o,{...r,...a,modal:!0})};A.displayName=N;var j=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=b(a);return g(l,{...o,...r,ref:t})});j.displayName="AlertDialogTrigger";var k=e=>{const{__scopeAlertDialog:t,...a}=e,r=b(t);return g(n,{...r,...a})};k.displayName="AlertDialogPortal";var _=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=b(a);return g(s,{...o,...r,ref:t})});_.displayName="AlertDialogOverlay";var w="AlertDialogContent",[E,R]=y(w),O=f("AlertDialogContent"),z=e.forwardRef((t,r)=>{const{__scopeAlertDialog:o,children:n,...s}=t,l=b(o),d=e.useRef(null),m=a(r,d),u=e.useRef(null);return g(i,{contentName:w,titleName:C,docsSlug:"alert-dialog",children:g(E,{scope:o,cancelRef:u,children:h(c,{role:"alertdialog",...l,...s,ref:m,onOpenAutoFocus:p(s.onOpenAutoFocus,e=>{e.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[g(O,{children:n}),g(q,{contentRef:d})]})})})});z.displayName=w;var C="AlertDialogTitle",$=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=b(a);return g(d,{...o,...r,ref:t})});$.displayName=C;var F="AlertDialogDescription",I=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=b(a);return g(m,{...o,...r,ref:t})});I.displayName=F;var P=e.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...r}=e,o=b(a);return g(u,{...o,...r,ref:t})});P.displayName="AlertDialogAction";var T="AlertDialogCancel",S=e.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:n}=R(T,r),s=b(r),l=a(t,n);return g(u,{...s,...o,ref:l})});S.displayName=T;var q=({contentRef:t})=>{const a=`\`${w}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${w}\` by passing a \`${F}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${w}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))},[a,t]),null},B=A,W=j,Y=k,G=_,H=z,J=P,K=S,L=$,M=I;function Q({...t}){return e.createElement(B,{"data-slot":"alert-dialog",...t})}function U({...t}){return e.createElement(W,{"data-slot":"alert-dialog-trigger",...t})}function V({...t}){return e.createElement(Y,{"data-slot":"alert-dialog-portal",...t})}function X({className:t,...a}){return e.createElement(G,{"data-slot":"alert-dialog-overlay",className:x("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function Z({className:t,...a}){return e.createElement(V,null,e.createElement(X,null),e.createElement(H,{"data-slot":"alert-dialog-content",className:x("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a}))}function ee({className:t,...a}){return e.createElement("div",{"data-slot":"alert-dialog-header",className:x("flex flex-col gap-2 text-center sm:text-left",t),...a})}function te({className:t,...a}){return e.createElement("div",{"data-slot":"alert-dialog-footer",className:x("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function ae({className:t,...a}){return e.createElement(L,{"data-slot":"alert-dialog-title",className:x("text-lg font-semibold",t),...a})}function re({className:t,...a}){return e.createElement(M,{"data-slot":"alert-dialog-description",className:x("text-muted-foreground text-sm",t),...a})}function oe({className:t,...a}){return e.createElement(J,{className:x(v(),t),...a})}function ne({className:t,...a}){return e.createElement(K,{className:x(v({variant:"outline"}),t),...a})}export{Q as AlertDialog,oe as AlertDialogAction,ne as AlertDialogCancel,Z as AlertDialogContent,re as AlertDialogDescription,te as AlertDialogFooter,ee as AlertDialogHeader,X as AlertDialogOverlay,V as AlertDialogPortal,ae as AlertDialogTitle,U as AlertDialogTrigger};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../src/components/ui/alert-dialog/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n\treturn <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\nfunction AlertDialogTrigger({\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n\treturn <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\nfunction AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n\treturn <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />;\n}\n\nfunction AlertDialogOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Overlay\n\t\t\tdata-slot=\"alert-dialog-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n\treturn (\n\t\t<AlertDialogPortal>\n\t\t\t<AlertDialogOverlay />\n\t\t\t<AlertDialogPrimitive.Content\n\t\t\t\tdata-slot=\"alert-dialog-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</AlertDialogPortal>\n\t);\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-header\"\n\t\t\tclassName={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-footer\"\n\t\t\tclassName={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogTitle({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Title\n\t\t\tdata-slot=\"alert-dialog-title\"\n\t\t\tclassName={cn(\"text-lg font-semibold\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Description\n\t\t\tdata-slot=\"alert-dialog-description\"\n\t\t\tclassName={cn(\"text-muted-foreground text-sm\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogAction({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n\treturn <AlertDialogPrimitive.Action className={cn(buttonVariants(), className)} {...props} />;\n}\n\nfunction AlertDialogCancel({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Cancel\n\t\t\tclassName={cn(buttonVariants({ variant: \"outline\" }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tAlertDialog,\n\tAlertDialogPortal,\n\tAlertDialogOverlay,\n\tAlertDialogTrigger,\n\tAlertDialogContent,\n\tAlertDialogHeader,\n\tAlertDialogFooter,\n\tAlertDialogTitle,\n\tAlertDialogDescription,\n\tAlertDialogAction,\n\tAlertDialogCancel,\n};\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","modal","displayName","AlertDialogTrigger","React","forwardRef","forwardedRef","triggerProps","DialogPrimitive.Trigger","ref","AlertDialogPortal","portalProps","DialogPrimitive.Portal","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","useRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","contentName","titleName","TITLE_NAME","docsSlug","scope","jsxs","DialogPrimitive.Content","role","onOpenAutoFocus","composeEventHandlers","event","preventDefault","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","MESSAGE","useEffect","document","getElementById","getAttribute","Root","Trigger","Portal","Overlay","Content","Action","Cancel","Title","Description","createElement","AlertDialogPrimitive","data-slot","className","cn","AlertDialogHeader","div","AlertDialogFooter","buttonVariants","variant"],"mappings":"s0BAcA,IAAMA,EAAY,eAGXC,EAA0BC,GAA0BC,EAAmBH,EAAW,CACvFI,IAEIC,EAAiBD,IAKjBE,EAA2CC,IAC/C,MAAMC,mBAAEA,KAAuBC,GAAqBF,EAC9CG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBC,EAAhB,IAAyBF,KAAiBD,EAAkBI,OAAO,KAG7EP,EAAYQ,YAAcd,EAK1B,IAMMe,EAA2BC,EAAAC,WAC/B,CAACV,EAA6CW,KAC5C,MAAMV,mBAAEA,KAAuBW,GAAiBZ,EAC1CG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBS,EAAhB,IAA4BV,KAAiBS,EAAcE,IAAKH,MAI5EH,EAAmBD,YAdE,qBAoBrB,IAKMQ,EACJf,IAEA,MAAMC,mBAAEA,KAAuBe,GAAgBhB,EACzCG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBa,EAAhB,IAA2Bd,KAAiBa,KAGtDD,EAAkBR,YAbE,oBAmBpB,IAMMW,EAA2BT,EAAAC,WAC/B,CAACV,EAA6CW,K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,SAASkB,GAAmBiE,UAC3BA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAA4B,CAC5BC,YAAU,uBACVC,UAAWC,EACV,yJACAD,MAEGnF,GAGP,CAEA,SAAS0B,GAAmByD,UAC3BA,KACGnF,IAEH,OACCS,gBAACM,EAAAA,KACAN,EAAAuE,cAAC9D,EAAAA,MACDT,EAAAuE,cAACC,EAA4B,CAC5BC,YAAU,uBACVC,UAAWC,EACV,8WACAD,MAEGnF,IAIR,CAEA,SAASqF,IAAkBF,UAAEA,KAAcnF,IAC1C,OACCS,EAAAuE,cAACM,MAAAA,CACAJ,YAAU,sBACVC,UAAWC,EAAG,+CAAgDD,MAC1DnF,GAGP,CAEA,SAASuF,IAAkBJ,UAAEA,KAAcnF,IAC1C,OACCS,EAAAuE,cAACM,MAAAA,CACAJ,YAAU,sBACVC,UAAWC,EAAG,yDAA0DD,MACpEnF,GAGP,CAEA,SAASqD,IAAiB8B,UACzBA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAA0B,CAC1BC,YAAU,qBACVC,UAAWC,EAAG,wBAAyBD,MACnCnF,GAGP,CAEA,SAASyD,IAAuB0B,UAC/BA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAAgC,CAChCC,YAAU,2BACVC,UAAWC,EAAG,gCAAiCD,MAC3CnF,GAGP,CAEA,SAAS4D,IAAkBuB,UAC1BA,KACGnF,IAEH,OAAOS,EAAAuE,cAACC,EAA2B,CAACE,UAAWC,EAAGI,IAAkBL,MAAgBnF,GACrF,CAEA,SAASgE,IAAkBmB,UAC1BA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAA2B,CAC3BE,UAAWC,EAAGI,EAAe,CAAEC,QAAS,YAAcN,MAClDnF,GAGP","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../src/components/ui/alert-dialog/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n\treturn <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\nfunction AlertDialogTrigger({\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n\treturn <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\nfunction AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n\treturn <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />;\n}\n\nfunction AlertDialogOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Overlay\n\t\t\tdata-slot=\"alert-dialog-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n\treturn (\n\t\t<AlertDialogPortal>\n\t\t\t<AlertDialogOverlay />\n\t\t\t<AlertDialogPrimitive.Content\n\t\t\t\tdata-slot=\"alert-dialog-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</AlertDialogPortal>\n\t);\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-header\"\n\t\t\tclassName={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-footer\"\n\t\t\tclassName={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogTitle({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Title\n\t\t\tdata-slot=\"alert-dialog-title\"\n\t\t\tclassName={cn(\"text-lg font-semibold\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Description\n\t\t\tdata-slot=\"alert-dialog-description\"\n\t\t\tclassName={cn(\"text-muted-foreground text-sm\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogAction({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n\treturn <AlertDialogPrimitive.Action className={cn(buttonVariants(), className)} {...props} />;\n}\n\nfunction AlertDialogCancel({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Cancel\n\t\t\tclassName={cn(buttonVariants({ variant: \"outline\" }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tAlertDialog,\n\tAlertDialogPortal,\n\tAlertDialogOverlay,\n\tAlertDialogTrigger,\n\tAlertDialogContent,\n\tAlertDialogHeader,\n\tAlertDialogFooter,\n\tAlertDialogTitle,\n\tAlertDialogDescription,\n\tAlertDialogAction,\n\tAlertDialogCancel,\n};\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","modal","displayName","AlertDialogTrigger","React","forwardRef","forwardedRef","triggerProps","DialogPrimitive.Trigger","ref","AlertDialogPortal","portalProps","DialogPrimitive.Portal","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","useRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","contentName","titleName","TITLE_NAME","docsSlug","scope","jsxs","DialogPrimitive.Content","role","onOpenAutoFocus","composeEventHandlers","event","preventDefault","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","MESSAGE","useEffect","document","getElementById","getAttribute","Root","Trigger","Portal","Overlay","Content","Action","Cancel","Title","Description","createElement","AlertDialogPrimitive","data-slot","className","cn","AlertDialogHeader","div","AlertDialogFooter","buttonVariants","variant"],"mappings":"q5BAcA,IAAMA,EAAY,eAGXC,EAA0BC,GAA0BC,EAAmBH,EAAW,CACvFI,IAEIC,EAAiBD,IAKjBE,EAA2CC,IAC/C,MAAMC,mBAAEA,KAAuBC,GAAqBF,EAC9CG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBC,EAAhB,IAAyBF,KAAiBD,EAAkBI,OAAO,KAG7EP,EAAYQ,YAAcd,EAK1B,IAMMe,EAA2BC,EAAAC,WAC/B,CAACV,EAA6CW,KAC5C,MAAMV,mBAAEA,KAAuBW,GAAiBZ,EAC1CG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBS,EAAhB,IAA4BV,KAAiBS,EAAcE,IAAKH,MAI5EH,EAAmBD,YAdE,qBAoBrB,IAKMQ,EACJf,IAEA,MAAMC,mBAAEA,KAAuBe,GAAgBhB,EACzCG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBa,EAAhB,IAA2Bd,KAAiBa,KAGtDD,EAAkBR,YAbE,oBAmBpB,IAMMW,EAA2BT,EAAAC,WAC/B,CAACV,EAA6CW,KAC5C,MAAMV,mBAAEA,KAAuBkB,GAAiBnB,EAC1CG,EAAcL,EAAeG,GACnC,OAAOG,EAAiBgB,EAAhB,IAA4BjB,KAAiBgB,EAAcL,IAAKH,MAI5EO,EAAmBX,YAdE,qBAoBrB,IAAMc,EAAe,sBAMdC,EAA4BC,GACjC7B,EAAyD2B,GAOrDG,EAAYC,EAAgB,sBAE5BC,EAA2BjB,EAAAC,WAC/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ACVC,UAAWC,EACV,8WACAD,MAEGnF,IAIR,CAEA,SAASqF,IAAkBF,UAAEA,KAAcnF,IAC1C,OACCS,EAAAuE,cAACM,MAAAA,CACAJ,YAAU,sBACVC,UAAWC,EAAG,+CAAgDD,MAC1DnF,GAGP,CAEA,SAASuF,IAAkBJ,UAAEA,KAAcnF,IAC1C,OACCS,EAAAuE,cAACM,MAAAA,CACAJ,YAAU,sBACVC,UAAWC,EAAG,yDAA0DD,MACpEnF,GAGP,CAEA,SAASqD,IAAiB8B,UACzBA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAA0B,CAC1BC,YAAU,qBACVC,UAAWC,EAAG,wBAAyBD,MACnCnF,GAGP,CAEA,SAASyD,IAAuB0B,UAC/BA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAAgC,CAChCC,YAAU,2BACVC,UAAWC,EAAG,gCAAiCD,MAC3CnF,GAGP,CAEA,SAAS4D,IAAkBuB,UAC1BA,KACGnF,IAEH,OAAOS,EAAAuE,cAACC,EAA2B,CAACE,UAAWC,EAAGI,IAAkBL,MAAgBnF,GACrF,CAEA,SAASgE,IAAkBmB,UAC1BA,KACGnF,IAEH,OACCS,EAAAuE,cAACC,EAA2B,CAC3BE,UAAWC,EAAGI,EAAe,CAAEC,QAAS,YAAcN,MAClDnF,GAGP","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import t from"react";import{c as r}from"../chunks/index-Cy8Nz9EO.mjs";import{u as n}from"../chunks/index-BqVtEtRQ.mjs";import{u as a}from"../chunks/index-C-gmRzgE.mjs";import{P as o}from"../chunks/index-g796WVS-.mjs";import{jsx as u}from"react/jsx-runtime";import{c as s}from"../chunks/utils-BNmnOQuQ.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/bundle-mjs-BPxOXzif.mjs";var i,c={exports:{}},l={};var d,f,m={};var v=(f||(f=1,"production"===process.env.NODE_ENV?c.exports=function(){if(i)return l;i=1;var e=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,a=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=n({inst:{value:r,getSnapshot:t}}),c=i[0].inst,l=i[1];return o(function(){c.value=r,c.getSnapshot=t,s(c)&&l({inst:c})},[e,r,t]),a(function(){return s(c)&&l({inst:c}),e(function(){s(c)&&l({inst:c})})},[e]),u(r),r};return l.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,l}():c.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,u=r.useLayoutEffect,s=r.useDebugValue,i=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(t,l){i||void 0===r.startTransition||(i=!0);var d=l();if(!c){var f=l();n(d,f)||(c=!0)}var m=(f=a({inst:{value:d,getSnapshot:l}}))[0].inst,v=f[1];return u(function(){m.value=d,m.getSnapshot=l,e(m)&&v({inst:m})},[t,d,l]),o(function(){return e(m)&&v({inst:m}),t(function(){e(m)&&v({inst:m})})},[t]),s(d),d};m.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),m)),c.exports);function _(){return()=>{}}var p="Avatar",[S,E]=r(p),[O,g]=S(p),L=e.forwardRef((t,r)=>{const{__scopeAvatar:n,...a}=t,[s,i]=e.useState("idle");return u(O,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:u(o.span,{...a,ref:r})})});L.displayName=p;var y="AvatarImage",w=e.forwardRef((t,r)=>{const{__scopeAvatar:s,src:i,onLoadingStatusChange:c=()=>{},...l}=t,d=g(y,s),f=function(t,{referrerPolicy:r,crossOrigin:n}){const o=v.useSyncExternalStore(_,()=>!0,()=>!1),u=e.useRef(null),s=o?(u.current||(u.current=new window.Image),u.current):null,[i,c]=e.useState(()=>A(s,t));return a(()=>{c(A(s,t))},[s,t]),a(()=>{const e=e=>()=>{c(e)};if(!s)return;const t=e("loaded"),a=e("error");return s.addEventListener("load",t),s.addEventListener("error",a),r&&(s.referrerPolicy=r),"string"==typeof n&&(s.crossOrigin=n),()=>{s.removeEventListener("load",t),s.removeEventListener("error",a)}},[s,n,r]),i}(i,l),m=n(e=>{c(e),d.onImageLoadingStatusChange(e)});return a(()=>{"idle"!==f&&m(f)},[f,m]),"loaded"===f?u(o.img,{...l,ref:r,src:i}):null});w.displayName=y;var h="AvatarFallback",x=e.forwardRef((t,r)=>{const{__scopeAvatar:n,delayMs:a,...s}=t,i=g(h,n),[c,l]=e.useState(void 0===a);return e.useEffect(()=>{if(void 0!==a){const e=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(e)}},[a]),c&&"loaded"!==i.imageLoadingStatus?u(o.span,{...s,ref:r}):null});function A(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}x.displayName=h;var T=L,j=w,N=x;function b({className:t,...r}){return e.createElement(T,{"data-slot":"avatar",className:s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r})}function D({className:t,...r}){return e.createElement(j,{"data-slot":"avatar-image",className:s("aspect-square h-full w-full",t),...r})}function R({className:t,...r}){return e.createElement(N,{"data-slot":"avatar-fallback",className:s("bg-muted flex h-full w-full items-center justify-center rounded-full",t),...r})}export{b as Avatar,R as AvatarFallback,D as AvatarImage};
1
+ import*as e from"react";import t from"react";import{c as r}from"../chunks/index-B70-2oxO.mjs";import{u as n}from"../chunks/index-CgLDADnA.mjs";import{u as a}from"../chunks/index-g_YR6VZJ.mjs";import{P as o}from"../chunks/index-Dxh10iPI.mjs";import{jsx as u}from"react/jsx-runtime";import{c as s}from"../chunks/utils-Dp2SHrBW.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/bundle-mjs-p2tkjPN1.mjs";var i,c={exports:{}},l={};var d,f,m={};var v=(f||(f=1,"production"===process.env.NODE_ENV?c.exports=function(){if(i)return l;i=1;var e=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,a=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=n({inst:{value:r,getSnapshot:t}}),c=i[0].inst,l=i[1];return o(function(){c.value=r,c.getSnapshot=t,s(c)&&l({inst:c})},[e,r,t]),a(function(){return s(c)&&l({inst:c}),e(function(){s(c)&&l({inst:c})})},[e]),u(r),r};return l.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,l}():c.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,u=r.useLayoutEffect,s=r.useDebugValue,i=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(t,l){i||void 0===r.startTransition||(i=!0);var d=l();if(!c){var f=l();n(d,f)||(c=!0)}var m=(f=a({inst:{value:d,getSnapshot:l}}))[0].inst,v=f[1];return u(function(){m.value=d,m.getSnapshot=l,e(m)&&v({inst:m})},[t,d,l]),o(function(){return e(m)&&v({inst:m}),t(function(){e(m)&&v({inst:m})})},[t]),s(d),d};m.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),m)),c.exports);function _(){return()=>{}}var p="Avatar",[S,E]=r(p),[O,g]=S(p),L=e.forwardRef((t,r)=>{const{__scopeAvatar:n,...a}=t,[s,i]=e.useState("idle");return u(O,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:u(o.span,{...a,ref:r})})});L.displayName=p;var y="AvatarImage",w=e.forwardRef((t,r)=>{const{__scopeAvatar:s,src:i,onLoadingStatusChange:c=()=>{},...l}=t,d=g(y,s),f=function(t,{referrerPolicy:r,crossOrigin:n}){const o=v.useSyncExternalStore(_,()=>!0,()=>!1),u=e.useRef(null),s=o?(u.current||(u.current=new window.Image),u.current):null,[i,c]=e.useState(()=>A(s,t));return a(()=>{c(A(s,t))},[s,t]),a(()=>{const e=e=>()=>{c(e)};if(!s)return;const t=e("loaded"),a=e("error");return s.addEventListener("load",t),s.addEventListener("error",a),r&&(s.referrerPolicy=r),"string"==typeof n&&(s.crossOrigin=n),()=>{s.removeEventListener("load",t),s.removeEventListener("error",a)}},[s,n,r]),i}(i,l),m=n(e=>{c(e),d.onImageLoadingStatusChange(e)});return a(()=>{"idle"!==f&&m(f)},[f,m]),"loaded"===f?u(o.img,{...l,ref:r,src:i}):null});w.displayName=y;var h="AvatarFallback",x=e.forwardRef((t,r)=>{const{__scopeAvatar:n,delayMs:a,...s}=t,i=g(h,n),[c,l]=e.useState(void 0===a);return e.useEffect(()=>{if(void 0!==a){const e=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(e)}},[a]),c&&"loaded"!==i.imageLoadingStatus?u(o.span,{...s,ref:r}):null});function A(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}x.displayName=h;var T=L,j=w,N=x;function b({className:t,...r}){return e.createElement(T,{"data-slot":"avatar",className:s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r})}function D({className:t,...r}){return e.createElement(j,{"data-slot":"avatar-image",className:s("aspect-square h-full w-full",t),...r})}function R({className:t,...r}){return e.createElement(N,{"data-slot":"avatar-fallback",className:s("bg-muted flex h-full w-full items-center justify-center rounded-full",t),...r})}export{b as Avatar,R as AvatarFallback,D as AvatarImage};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/ui/avatar/avatar.tsx"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n\treturn (\n\t\t<AvatarPrimitive.Root\n\t\t\tdata-slot=\"avatar\"\n\t\t\tclassName={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n\treturn (\n\t\t<AvatarPrimitive.Image\n\t\t\tdata-slot=\"avatar-image\"\n\t\t\tclassName={cn(\"aspect-square h-full w-full\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarFallback({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n\treturn (\n\t\t<AvatarPrimitive.Fallback\n\t\t\tdata-slot=\"avatar-fallback\"\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted flex h-full w-full items-center justify-center rounded-full\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"names":["process","env","NODE_ENV","shimModule","exports","React","require$$0","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","value","nextValue","error","shim","window","document","createElement","subscribe","_useState","forceUpdate","useSyncExternalStoreShim_production","useSyncExternalStore","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","didWarnOld18Alpha","didWarnUncachedGetSnapshot","startTransition","cachedValue","useSyncExternalStoreShim_development","registerInternalModuleStop","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","forwardRef","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","scope","onImageLoadingStatusChange","children","Primitive","span","ref","displayName","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","referrerPolicy","crossOrigin","isHydrated","imageRef","useRef","image","current","Image","loadingStatus","setLoadingStatus","resolveLoadingStatus","updateStatus","status","handleLoad","handleError","addEventListener","removeEventListener","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","img","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","setTimeout","clearTimeout","complete","naturalWidth","Root","Fallback","className","AvatarPrimitive","data-slot","cn"],"mappings":"ydAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,qCCQF,IAAIC,EAAQC,EAIRC,EAAW,mBAAsBC,OAAOC,GAAKD,OAAOC,GAHxD,SAAYC,EAAGC,GACb,OAAOD,IAAOC,IAAM,IAAMD,GAAK,EAAIA,GAAM,EAAIC,IAAQD,GAAMA,GAAKC,GAA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,KACGtD,IAEH,OACC5C,EAAAqB,cAAC8E,EAAwB,CACxBC,YAAU,kBACVF,UAAWG,EACV,uEACAH,MAEGtD,GAGP","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"index.mjs","sources":["../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../../node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs","../../node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/ui/avatar/avatar.tsx"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n\treturn (\n\t\t<AvatarPrimitive.Root\n\t\t\tdata-slot=\"avatar\"\n\t\t\tclassName={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n\treturn (\n\t\t<AvatarPrimitive.Image\n\t\t\tdata-slot=\"avatar-image\"\n\t\t\tclassName={cn(\"aspect-square h-full w-full\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarFallback({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n\treturn (\n\t\t<AvatarPrimitive.Fallback\n\t\t\tdata-slot=\"avatar-fallback\"\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted flex h-full w-full items-center justify-center rounded-full\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"names":["process","env","NODE_ENV","shimModule","exports","React","require$$0","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","value","nextValue","error","shim","window","document","createElement","subscribe","_useState","forceUpdate","useSyncExternalStoreShim_production","useSyncExternalStore","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","didWarnOld18Alpha","didWarnUncachedGetSnapshot","startTransition","cachedValue","useSyncExternalStoreShim_development","registerInternalModuleStop","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","forwardRef","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","scope","onImageLoadingStatusChange","children","Primitive","span","ref","displayName","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","referrerPolicy","crossOrigin","isHydrated","imageRef","useRef","image","current","Image","loadingStatus","setLoadingStatus","resolveLoadingStatus","updateStatus","status","handleLoad","handleError","addEventListener","removeEventListener","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","img","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","setTimeout","clearTimeout","complete","naturalWidth","Root","Fallback","className","AvatarPrimitive","data-slot","cn"],"mappings":"ydAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,qCCQF,IAAIC,EAAQC,EAIRC,EAAW,mBAAsBC,OAAOC,GAAKD,OAAOC,GAHxD,SAAYC,EAAGC,GACb,OAAOD,IAAOC,IAAM,IAAMD,GAAK,EAAIA,GAAM,EAAIC,IAAQD,GAAMA,GAAKC,GAAMA,CACxE,EAEEC,EAAWP,EAAMO,SACjBC,EAAYR,EAAMQ,UAClBC,EAAkBT,EAAMS,gBACxBC,EAAgBV,EAAMU,cA0BxB,SAASC,EAAuBC,GAC9B,IAAIC,EAAoBD,EAAKE,YAC7BF,EAAOA,EAAKG,MACZ,IACE,IAAIC,EAAYH,IAChB,OAAQX,EAASU,EAAMI,EAC3B,CAAI,MAAOC,GACP,OAAO,CACX,CACA,CAIA,IAAIC,EACF,oBAAuBC,aACvB,IAAuBA,OAAOC,eAC9B,IAAuBD,OAAOC,SAASC,cANzC,SAAgCC,EAAWR,GACzC,OAAOA,GACT,EArCA,SAAgCQ,EAAWR,GACzC,IAAIC,EAAQD,IACVS,EAAYhB,EAAS,CAAEK,KAAM,CAAEG,MAAOA,EAAOD,YAAaA,KAC1DF,EAAOW,EAAU,GAAGX,KACpBY,EAAcD,EAAU,GAmB1B,OAlBAd,EACE,WACEG,EAAKG,MAAQA,EACbH,EAAKE,YAAcA,EACnBH,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,GAC1D,EACI,CAACU,EAAWP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ACI,EAAUC,KAAV,IAAmBiC,EAAehC,IAAKX,IACtC,OAQR,SAAS6B,EAAqBL,EAAgCT,GAC5D,OAAKS,EAGAT,GAGDS,EAAMT,MAAQA,IAChBS,EAAMT,IAAMA,GAEPS,EAAMyB,UAAYzB,EAAM0B,aAAe,EAAI,SAAW,WALpD,QAHA,MASX,CAfAT,EAAe7B,YAAc4B,EAkE7B,IAAMW,EAAOtD,EACP6B,EAAQZ,EACRsC,EAAWX,EClLjB,SAAS5C,GAAOwD,UAAEA,KAActD,IAC/B,OACC5C,EAAAqB,cAAC8E,EAAoB,CACpBC,YAAU,SACVF,UAAWG,EAAG,gEAAiEH,MAC3EtD,GAGP,CAEA,SAASe,GAAYuC,UAAEA,KAActD,IACpC,OACC5C,EAAAqB,cAAC8E,EAAqB,CACrBC,YAAU,eACVF,UAAWG,EAAG,8BAA+BH,MACzCtD,GAGP,CAEA,SAAS0C,GAAeY,UACvBA,KACGtD,IAEH,OACC5C,EAAAqB,cAAC8E,EAAwB,CACxBC,YAAU,kBACVF,UAAWG,EACV,uEACAH,MAEGtD,GAGP","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,2 +1,2 @@
1
- export{B as Badge,b as badgeVariants}from"../chunks/badge-BIhNGnoC.mjs";import"../chunks/utils-BNmnOQuQ.mjs";import"../chunks/bundle-mjs-BPxOXzif.mjs";import"@radix-ui/react-slot";import"class-variance-authority";import"react";
1
+ export{B as Badge,b as badgeVariants}from"../chunks/badge-BlZWYqiz.mjs";import"../chunks/utils-Dp2SHrBW.mjs";import"../chunks/bundle-mjs-p2tkjPN1.mjs";import"@radix-ui/react-slot";import"class-variance-authority";import"react";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -16,6 +16,7 @@ interface HeaderProps {
16
16
  }
17
17
  declare const Header: React__default.FC<HeaderProps>;
18
18
 
19
+ type CaptionLayout = "label" | "dropdown";
19
20
  declare function normalizeDate(date: Date): string;
20
21
  interface CalendarPopoverProps {
21
22
  date: Date | undefined;
@@ -23,6 +24,9 @@ interface CalendarPopoverProps {
23
24
  isLoading?: boolean;
24
25
  isLoadingTable?: boolean;
25
26
  disabledDates?: Set<string>;
27
+ captionLayout?: CaptionLayout;
28
+ fromYear?: number;
29
+ toYear?: number;
26
30
  }
27
31
  declare const CalendarPopover: React__default.FC<CalendarPopoverProps>;
28
32
 
@@ -1,2 +1,2 @@
1
- import{c as e}from"../chunks/utils-BNmnOQuQ.mjs";import a from"react";import{A as t,a as n,b as i,c as o}from"../chunks/accordion-DxayPBXZ.mjs";import{P as r,a as s,b as m}from"../chunks/popover-BaOty87a.mjs";import{B as d}from"../chunks/button-kxm0Lckx.mjs";import{c}from"../chunks/createLucideIcon-Okp8w8Ue.mjs";import{t as u,b as l,a as h,c as p,d as f,f as b,C as g}from"../chunks/calendar-CBJ49e3M.mjs";import{t as w}from"../chunks/bundle-mjs-BPxOXzif.mjs";import{H as y,a as j,b as v}from"../chunks/hover-card-T6QvJZH3.mjs";import{B as x}from"../chunks/badge-BIhNGnoC.mjs";import"../chunks/index-Cy8Nz9EO.mjs";import"react/jsx-runtime";import"@radix-ui/react-collection";import"../chunks/index-pz7_bV3J.mjs";import"../chunks/index-C-gmRzgE.mjs";import"../chunks/index-Di_4GEUt.mjs";import"../chunks/index-g796WVS-.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-sxa3-G-E.mjs";import"../chunks/index-BEptPvC9.mjs";import"../chunks/chevron-down-CWUqY12V.mjs";import"../chunks/index-j5UZGMap.mjs";import"../chunks/index-BqVtEtRQ.mjs";import"../chunks/index-BsSBJ3PL.mjs";import"../chunks/tslib.es6-1P1xnW5u.mjs";import"../chunks/index-Gmu-glAo.mjs";import"../chunks/index-jhOC7m1Z.mjs";import"class-variance-authority";import"../chunks/chevron-left-CJfbOy3n.mjs";import"../chunks/chevron-right-CepU0QYJ.mjs";const k=c("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),M=c("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),E=({children:t,className:n,...i})=>a.createElement("div",{className:e("line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]",n),...i},t),P=({title:r,description:s,className:m})=>a.createElement("header",{className:e("text-content-high px-2 py-1 text-xl sm:px-6 lg:px-8",m)},a.createElement(t,{type:"single",collapsible:!0,className:"w-full"},a.createElement(n,{className:"max-w-[62.5rem] border-b-0",value:"item-1"},a.createElement(i,{iconPosition:"left",className:"justify-start gap-2 py-2 text-xl font-bold"},r),a.createElement(o,{className:"text-content-medium text-base"},s))));const W={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},N={date:l({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:l({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:l({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:e=>{const a=e.getDay();return"'"+(0===a||6===a?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},z={code:"pt-BR",formatDistance:(e,a,t)=>{let n;const i=W[e];return n="string"==typeof i?i:1===a?i.one:i.other.replace("{{count}}",String(a)),t?.addSuffix?t.comparison&&t.comparison>0?"em "+n:"há "+n:n},formatLong:N,formatRelative:(e,a,t,n)=>{const i=q[e];return"function"==typeof i?i(a):i},localize:{ordinalNumber:(e,a)=>{const t=Number(e);return"week"===a?.unit?t+"ª":t+"º"},era:h({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:h({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:h({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:h({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:h({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:f({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:p({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function C(e){return b(e,"yyyy-MM-dd")}const D=({date:t,setDate:n,isLoading:i,isLoadingTable:o,disabledDates:c})=>a.createElement(r,null,i||!t?a.createElement(d,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",(i||!t)&&"cursor-default opacity-60")},a.createElement(M,{className:"h-4 w-4 animate-spin"}),a.createElement("span",null,"carregando...")):a.createElement(s,{asChild:!0},a.createElement(d,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",!t&&"text-muted-foreground")},t?b(t,"dd/MM/yyyy"):a.createElement("span",null,"Selecione uma data"),a.createElement(k,{className:"ml-2 h-4 w-4"}))),a.createElement(m,{className:"border-switch mr-12 w-auto p-0"},a.createElement(g,{mode:"single",selected:t,onSelect:e=>{if(e){C(e)!==(t?C(t):null)&&n(e)}},locale:z,defaultMonth:t,disabled:e=>{if(i||o)return!0;const a=C(e),t=c?.has(a),n=function(e,a){const t=u(e,a?.in).getDay();return 0===t||6===t}(e),r=e>new Date;return t||n||r}}))),H=({title:e,description:t,variant:n,className:i,showTitleInDescription:o=!0})=>a.createElement(y,null,a.createElement(j,null,a.createElement(x,{variant:n},e)),t&&a.createElement(v,{className:`${w("w-72 space-y-1",i)}`},o&&a.createElement("span",{className:"text-sm font-semibold"},e),a.createElement("p",{className:"w-full text-sm text-wrap break-words whitespace-pre-line"},t)));export{D as CalendarPopover,P as Header,H as HoverBadge,E as TextWrap,C as normalizeDate};
1
+ import{c as e}from"../chunks/utils-Dp2SHrBW.mjs";import a from"react";import{A as t,a as n,b as i,c as o}from"../chunks/accordion-BD1JRhVx.mjs";import{P as r,a as s,b as m}from"../chunks/popover-Dov1Buds.mjs";import{c as d}from"../chunks/createLucideIcon-CsAdJd--.mjs";import{t as c,b as u,c as l,d as h,e as p,f,C as b}from"../chunks/calendar-Dtopgd_k.mjs";import{B as g}from"../chunks/button-DrtQQeut.mjs";import{t as w}from"../chunks/bundle-mjs-p2tkjPN1.mjs";import{H as y,a as j,b as x}from"../chunks/hover-card-Cd6sPuv9.mjs";import{B as v}from"../chunks/badge-BlZWYqiz.mjs";import"../chunks/index-B70-2oxO.mjs";import"react/jsx-runtime";import"@radix-ui/react-collection";import"../chunks/index-fgRlmr40.mjs";import"../chunks/index-CQLZqpi3.mjs";import"../chunks/index-CIJFMEHT.mjs";import"../chunks/index-g_YR6VZJ.mjs";import"../chunks/index-Dxh10iPI.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-ZEFtUcMw.mjs";import"../chunks/index-Dx9q9PhQ.mjs";import"../chunks/index-C2Fe0koc.mjs";import"../chunks/chevron-down-B1yMwors.mjs";import"../chunks/index-C-Of5QmS.mjs";import"../chunks/index-CgLDADnA.mjs";import"../chunks/index-CTsIdIko.mjs";import"../chunks/tslib.es6-CISrQAm2.mjs";import"../chunks/index-B_x_ais9.mjs";import"../chunks/index-DRqB8wXi.mjs";import"../chunks/chevron-left-HipRXZQ8.mjs";import"../chunks/chevron-right-BS1_kgp8.mjs";import"class-variance-authority";const k=d("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),M=d("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),E=({children:t,className:n,...i})=>a.createElement("div",{className:e("line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]",n),...i},t),P=({title:r,description:s,className:m})=>a.createElement("header",{className:e("text-content-high px-2 py-1 text-xl sm:px-6 lg:px-8",m)},a.createElement(t,{type:"single",collapsible:!0,className:"w-full"},a.createElement(n,{className:"border-b-0",value:"item-1"},a.createElement(i,{iconPosition:"left",className:"justify-start gap-2 py-2 text-xl font-bold"},r),a.createElement(o,{className:"text-content-medium text-base"},s))));const W={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},N={date:u({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:u({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:u({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:e=>{const a=e.getDay();return"'"+(0===a||6===a?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},z={code:"pt-BR",formatDistance:(e,a,t)=>{let n;const i=W[e];return n="string"==typeof i?i:1===a?i.one:i.other.replace("{{count}}",String(a)),t?.addSuffix?t.comparison&&t.comparison>0?"em "+n:"há "+n:n},formatLong:N,formatRelative:(e,a,t,n)=>{const i=q[e];return"function"==typeof i?i(a):i},localize:{ordinalNumber:(e,a)=>{const t=Number(e);return"week"===a?.unit?t+"ª":t+"º"},era:l({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:l({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:p({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:h({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:h({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:h({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function C(e){return f(e,"yyyy-MM-dd")}const D=({date:t,setDate:n,isLoading:i,isLoadingTable:o,disabledDates:d,captionLayout:u,fromYear:l,toYear:h})=>a.createElement(r,null,i||!t?a.createElement(g,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",(i||!t)&&"cursor-default opacity-60")},a.createElement(M,{className:"h-4 w-4 animate-spin"}),a.createElement("span",null,"carregando...")):a.createElement(s,{asChild:!0},a.createElement(g,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",!t&&"text-muted-foreground")},t?f(t,"dd/MM/yyyy"):a.createElement("span",null,"Selecione uma data"),a.createElement(k,{className:"ml-2 h-4 w-4"}))),a.createElement(m,{className:"border-switch mr-12 w-auto p-0"},a.createElement(b,{mode:"single",selected:t,onSelect:e=>{if(e){C(e)!==(t?C(t):null)&&n(e)}},locale:z,defaultMonth:t,disabled:e=>{if(i||o)return!0;const a=C(e),t=d?.has(a),n=function(e,a){const t=c(e,a?.in).getDay();return 0===t||6===t}(e),r=e>new Date;return t||n||r},captionLayout:u,fromYear:l,toYear:h}))),H=({title:e,description:t,variant:n,className:i,showTitleInDescription:o=!0})=>a.createElement(y,null,a.createElement(j,null,a.createElement(v,{variant:n},e)),t&&a.createElement(x,{className:`${w("w-72 space-y-1",i)}`},o&&a.createElement("span",{className:"text-sm font-semibold"},e),a.createElement("p",{className:"w-full text-sm text-wrap break-words whitespace-pre-line"},t)));export{D as CalendarPopover,P as Header,H as HoverBadge,E as TextWrap,C as normalizeDate};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../node_modules/lucide-react/dist/esm/icons/calendar.js","../../node_modules/lucide-react/dist/esm/icons/loader-circle.js","../../src/components/default/base/TextWrap.tsx","../../src/components/default/base/Header.tsx","../../node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js","../../node_modules/date-fns/locale/pt-BR/_lib/formatLong.js","../../node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js","../../node_modules/date-fns/locale/pt-BR.js","../../node_modules/date-fns/locale/pt-BR/_lib/localize.js","../../node_modules/date-fns/locale/pt-BR/_lib/match.js","../../src/components/default/base/CalendarPopover.tsx","../../node_modules/date-fns/isWeekend.js","../../src/components/default/base/HoverBadge.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M8 2v4\", key: \"1cmpym\" }],\n [\"path\", { d: \"M16 2v4\", key: \"4m81vk\" }],\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"4\", rx: \"2\", key: \"1hopcy\" }],\n [\"path\", { d: \"M3 10h18\", key: \"8toen8\" }]\n];\nconst Calendar = createLucideIcon(\"Calendar\", __iconNode);\n\nexport { __iconNode, Calendar as default };\n//# sourceMappingURL=calendar.js.map\n","/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]];\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", __iconNode);\n\nexport { __iconNode, LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","import { cn } from \"@/lib/utils\";\nimport React from \"react\";\n\ninterface TextWrapProps extends React.HTMLAttributes<HTMLDivElement> {\n\tchildren: React.ReactNode;\n}\n\nexport const TextWrap: React.FC<TextWrapProps> = ({ children, className, ...props }) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n","import {\n\tAccordion,\n\tAccordionContent,\n\tAccordionItem,\n\tAccordionTrigger,\n} from \"@/components/ui/accordion\";\nimport { cn } from \"@/lib/utils\";\nimport React from \"react\";\ninterface HeaderProps {\n\ttitle: string;\n\tdescription: string;\n\tclassName?: string;\n}\n\nexport const Header: React.FC<HeaderProps> = ({ title, description, className }) => {\n\treturn (\n\t\t<header className={cn(\"text-content-high px-2 py-1 text-xl sm:px-6 lg:px-8\", className)}>\n\t\t\t<Accordion type=\"single\" collapsible className=\"w-full\">\n\t\t\t\t<AccordionItem className=\"max-w-[62.5rem] border-b-0\" value=\"item-1\">\n\t\t\t\t\t<AccordionTrigger\n\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\tclassName=\"justify-start gap-2 py-2 text-xl font-bold\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{title}\n\t\t\t\t\t</AccordionTrigger>\n\t\t\t\t\t<AccordionContent className=\"text-content-medium text-base\">\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</AccordionContent>\n\t\t\t\t</AccordionItem>\n\t\t\t</Accordion>\n\t\t</header>\n\t);\n};\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"menos de um segundo\",\n other: \"menos de {{count}} segundos\",\n },\n\n xSeconds: {\n one: \"1 segundo\",\n other: \"{{count}} segundos\",\n },\n\n halfAMinute: \"meio minuto\",\n\n lessThanXMinutes: {\n one: \"menos de um minuto\",\n other: \"menos de {{count}} minutos\",\n },\n\n xMinutes: {\n one: \"1 minuto\",\n other: \"{{count}} minutos\",\n },\n\n aboutXHours: {\n one: \"cerca de 1 hora\",\n other: \"cerca de {{count}} horas\",\n },\n\n xHours: {\n one: \"1 hora\",\n other: \"{{count}} horas\",\n },\n\n xDays: {\n one: \"1 dia\",\n other: \"{{count}} dias\",\n },\n\n aboutXWeeks: {\n one: \"cerca de 1 semana\",\n other: \"cerca de {{count}} semanas\",\n },\n\n xWeeks: {\n one: \"1 semana\",\n other: \"{{count}} semanas\",\n },\n\n aboutXMonths: {\n one: \"cerca de 1 mês\",\n other: \"cerca de {{count}} meses\",\n },\n\n xMonths: {\n one: \"1 mês\",\n other: \"{{count}} meses\",\n },\n\n aboutXYears: {\n one: \"cerca de 1 ano\",\n other: \"cerca de {{count}} anos\",\n },\n\n xYears: {\n one: \"1 ano\",\n other: \"{{count}} anos\",\n },\n\n overXYears: {\n one: \"mais de 1 ano\",\n other: \"mais de {{count}} anos\",\n },\n\n almostXYears: {\n one: \"quase 1 ano\",\n other: \"quase {{count}} anos\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", String(count));\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"em \" + result;\n } else {\n return \"há \" + result;\n }\n }\n\n return result;\n};\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, d 'de' MMMM 'de' y\",\n long: \"d 'de' MMMM 'de' y\",\n medium: \"d MMM y\",\n short: \"dd/MM/yyyy\",\n};\n\nconst timeFormats = {\n full: \"HH:mm:ss zzzz\",\n long: \"HH:mm:ss z\",\n medium: \"HH:mm:ss\",\n short: \"HH:mm\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'às' {{time}}\",\n long: \"{{date}} 'às' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: (date) => {\n const weekday = date.getDay();\n const last = weekday === 0 || weekday === 6 ? \"último\" : \"última\";\n return \"'\" + last + \"' eeee 'às' p\";\n },\n yesterday: \"'ontem às' p\",\n today: \"'hoje às' p\",\n tomorrow: \"'amanhã às' p\",\n nextWeek: \"eeee 'às' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, date, _baseDate, _options) => {\n const format = formatRelativeLocale[token];\n\n if (typeof format === \"function\") {\n return format(date);\n }\n\n return format;\n};\n","import { formatDistance } from \"./pt-BR/_lib/formatDistance.js\";\nimport { formatLong } from \"./pt-BR/_lib/formatLong.js\";\nimport { formatRelative } from \"./pt-BR/_lib/formatRelative.js\";\nimport { localize } from \"./pt-BR/_lib/localize.js\";\nimport { match } from \"./pt-BR/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary Portuguese locale (Brazil).\n * @language Portuguese\n * @iso-639-2 por\n * @author Lucas Duailibe [@duailibe](https://github.com/duailibe)\n * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo)\n */\nexport const ptBR = {\n code: \"pt-BR\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default ptBR;\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"AC\", \"DC\"],\n abbreviated: [\"AC\", \"DC\"],\n wide: [\"antes de cristo\", \"depois de cristo\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"T1\", \"T2\", \"T3\", \"T4\"],\n wide: [\"1º trimestre\", \"2º trimestre\", \"3º trimestre\", \"4º trimestre\"],\n};\n\nconst monthValues = {\n narrow: [\"j\", \"f\", \"m\", \"a\", \"m\", \"j\", \"j\", \"a\", \"s\", \"o\", \"n\", \"d\"],\n abbreviated: [\n \"jan\",\n \"fev\",\n \"mar\",\n \"abr\",\n \"mai\",\n \"jun\",\n \"jul\",\n \"ago\",\n \"set\",\n \"out\",\n \"nov\",\n \"dez\",\n ],\n\n wide: [\n \"janeiro\",\n \"fevereiro\",\n \"março\",\n \"abril\",\n \"maio\",\n \"junho\",\n \"julho\",\n \"agosto\",\n \"setembro\",\n \"outubro\",\n \"novembro\",\n \"dezembro\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"D\", \"S\", \"T\", \"Q\", \"Q\", \"S\", \"S\"],\n short: [\"dom\", \"seg\", \"ter\", \"qua\", \"qui\", \"sex\", \"sab\"],\n abbreviated: [\n \"domingo\",\n \"segunda\",\n \"terça\",\n \"quarta\",\n \"quinta\",\n \"sexta\",\n \"sábado\",\n ],\n\n wide: [\n \"domingo\",\n \"segunda-feira\",\n \"terça-feira\",\n \"quarta-feira\",\n \"quinta-feira\",\n \"sexta-feira\",\n \"sábado\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mn\",\n noon: \"md\",\n morning: \"manhã\",\n afternoon: \"tarde\",\n evening: \"tarde\",\n night: \"noite\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"manhã\",\n afternoon: \"tarde\",\n evening: \"tarde\",\n night: \"noite\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"manhã\",\n afternoon: \"tarde\",\n evening: \"tarde\",\n night: \"noite\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mn\",\n noon: \"md\",\n morning: \"da manhã\",\n afternoon: \"da tarde\",\n evening: \"da tarde\",\n night: \"da noite\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"da manhã\",\n afternoon: \"da tarde\",\n evening: \"da tarde\",\n night: \"da noite\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"da manhã\",\n afternoon: \"da tarde\",\n evening: \"da tarde\",\n night: \"da noite\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, options) => {\n const number = Number(dirtyNumber);\n\n if (options?.unit === \"week\") {\n return number + \"ª\";\n }\n return number + \"º\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)[ºªo]?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(ac|dc|a|d)/i,\n abbreviated: /^(a\\.?\\s?c\\.?|d\\.?\\s?c\\.?)/i,\n wide: /^(antes de cristo|depois de cristo)/i,\n};\nconst parseEraPatterns = {\n any: [/^ac/i, /^dc/i],\n wide: [/^antes de cristo/i, /^depois de cristo/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^T[1234]/i,\n wide: /^[1234](º)? trimestre/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmajsond]/i,\n abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,\n wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^fev/i,\n /^mar/i,\n /^abr/i,\n /^mai/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^set/i,\n /^out/i,\n /^nov/i,\n /^dez/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^(dom|[23456]ª?|s[aá]b)/i,\n short: /^(dom|[23456]ª?|s[aá]b)/i,\n abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,\n wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i,\n};\nconst parseDayPatterns = {\n short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],\n narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],\n any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,\n any: /^([ap]\\.?\\s?m\\.?|meia[-\\s]noite|meio[-\\s]dia|(da) (manhã|tarde|noite))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mn|^meia[-\\s]noite/i,\n noon: /^md|^meio[-\\s]dia/i,\n morning: /manhã/i,\n afternoon: /tarde/i,\n evening: /tarde/i,\n night: /noite/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/utils\";\nimport { format, isWeekend } from \"date-fns\";\nimport { ptBR } from \"date-fns/locale\";\nimport { CalendarIcon, LoaderCircleIcon } from \"lucide-react\";\nimport React from \"react\";\nexport function normalizeDate(date: Date): string {\n\treturn format(date, \"yyyy-MM-dd\");\n}\n\ninterface CalendarPopoverProps {\n\tdate: Date | undefined;\n\tsetDate: (newDate: Date | undefined) => void;\n\tisLoading?: boolean;\n\tisLoadingTable?: boolean;\n\tdisabledDates?: Set<string>;\n}\n\nexport const CalendarPopover: React.FC<CalendarPopoverProps> = ({\n\tdate,\n\tsetDate,\n\tisLoading,\n\tisLoadingTable,\n\tdisabledDates,\n}) => {\n\treturn (\n\t\t<Popover>\n\t\t\t{isLoading || !date ? (\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"b- justify-start text-left font-normal hover:bg-inherit\",\n\t\t\t\t\t\t(isLoading || !date) && \"cursor-default opacity-60\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<LoaderCircleIcon className=\"h-4 w-4 animate-spin\" />\n\t\t\t\t\t<span>carregando...</span>\n\t\t\t\t</Button>\n\t\t\t) : (\n\t\t\t\t<PopoverTrigger asChild>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\"b- justify-start text-left font-normal hover:bg-inherit\",\n\t\t\t\t\t\t\t!date && \"text-muted-foreground\",\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{date ? format(date, \"dd/MM/yyyy\") : <span>Selecione uma data</span>}\n\t\t\t\t\t\t<CalendarIcon className=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</PopoverTrigger>\n\t\t\t)}\n\n\t\t\t<PopoverContent className=\"border-switch mr-12 w-auto p-0\">\n\t\t\t\t<Calendar\n\t\t\t\t\tmode=\"single\"\n\t\t\t\t\tselected={date}\n\t\t\t\t\tonSelect={(selectedDate) => {\n\t\t\t\t\t\tif (selectedDate) {\n\t\t\t\t\t\t\tconst normalizedSelectedDate = normalizeDate(selectedDate);\n\t\t\t\t\t\t\tconst normalizedCurrentDate = date ? normalizeDate(date) : null;\n\n\t\t\t\t\t\t\tif (normalizedSelectedDate !== normalizedCurrentDate) {\n\t\t\t\t\t\t\t\tsetDate(selectedDate);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tlocale={ptBR}\n\t\t\t\t\tdefaultMonth={date}\n\t\t\t\t\tdisabled={(currentDate) => {\n\t\t\t\t\t\tif (isLoading || isLoadingTable) return true;\n\n\t\t\t\t\t\tconst normalizedCurrentDate = normalizeDate(currentDate);\n\n\t\t\t\t\t\tconst isHoliday = disabledDates?.has(normalizedCurrentDate);\n\t\t\t\t\t\tconst isWeekendDay = isWeekend(currentDate);\n\t\t\t\t\t\tconst isFutureDate = currentDate > new Date();\n\n\t\t\t\t\t\treturn isHoliday || isWeekendDay || isFutureDate;\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t);\n};\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link isWeekend} function options.\n */\n\n/**\n * @name isWeekend\n * @category Weekday Helpers\n * @summary Does the given date fall on a weekend?\n *\n * @description\n * Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`).\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date falls on a weekend\n *\n * @example\n * // Does 5 October 2014 fall on a weekend?\n * const result = isWeekend(new Date(2014, 9, 5))\n * //=> true\n */\nexport function isWeekend(date, options) {\n const day = toDate(date, options?.in).getDay();\n return day === 0 || day === 6;\n}\n\n// Fallback for modularized imports:\nexport default isWeekend;\n","import { Badge, type BadgeProps } from \"@/components/ui/badge\";\nimport { HoverCard, HoverCardContent, HoverCardTrigger } from \"@/components/ui/hover-card\";\nimport React from \"react\";\nimport { twMerge } from \"tailwind-merge\";\n\ninterface HoverBadgeProps {\n\ttitle: string;\n\tdescription?: string;\n\tvariant: BadgeProps[\"variant\"];\n\tclassName?: string;\n\tshowTitleInDescription?: boolean;\n}\n\nexport const HoverBadge: React.FC<HoverBadgeProps> = ({\n\ttitle,\n\tdescription,\n\tvariant,\n\tclassName,\n\tshowTitleInDescription = true,\n}) => {\n\treturn (\n\t\t<HoverCard>\n\t\t\t<HoverCardTrigger>\n\t\t\t\t<Badge variant={variant}>{title}</Badge>\n\t\t\t</HoverCardTrigger>\n\t\t\t{description && (\n\t\t\t\t<HoverCardContent className={`${twMerge(\"w-72 space-y-1\", className)}`}>\n\t\t\t\t\t{showTitleInDescription && <span className=\"text-sm font-semibold\">{title}</span>}\n\t\t\t\t\t<p className=\"w-full text-sm text-wrap break-words whitespace-pre-line\">{description}</p>\n\t\t\t\t</HoverCardContent>\n\t\t\t)}\n\t\t</HoverCard>\n\t);\n};\n"],"names":["Calendar","createLucideIcon","d","key","width","height","x","y","rx","LoaderCircle","TextWrap","children","className","props","React","createElement","div","cn","Header","title","description","header","Accordion","type","collapsible","AccordionItem","value","AccordionTrigger","iconPosition","AccordionContent","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatLong","date","buildFormatLongFn","formats","full","long","medium","short","defaultWidth","time","dateTime","formatRelativeLocale","lastWeek","weekday","getDay","yesterday","today","tomorrow","nextWeek","ptBR","code","formatDistance","token","count","options","result","tokenValue","replace","String","addSuffix","comparison","formatRelative","_baseDate","_options","format","localize","ordinalNumber","dirtyNumber","number","Number","unit","era","buildLocalizeFn","values","narrow","abbreviated","wide","quarter","argumentCallback","month","day","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","formattingValues","defaultFormattingWidth","match","buildMatchPatternFn","matchPattern","parsePattern","valueCallback","parseInt","buildMatchFn","matchPatterns","defaultMatchWidth","parsePatterns","any","defaultParseWidth","index","weekStartsOn","firstWeekContainsDate","normalizeDate","CalendarPopover","setDate","isLoading","isLoadingTable","disabledDates","Popover","Button","variant","LoaderCircleIcon","span","PopoverTrigger","asChild","CalendarIcon","PopoverContent","mode","selected","onSelect","selectedDate","locale","defaultMonth","disabled","currentDate","normalizedCurrentDate","isHoliday","has","isWeekendDay","toDate","in","isWeekend","isFutureDate","Date","HoverBadge","showTitleInDescription","HoverCard","HoverCardTrigger","Badge","HoverCardContent","twMerge","p"],"mappings":"0zCAGO,MAkBDA,EAAWC,EAAiB,WAlBE,CAClC,CAAC,OAAQ,CAAEC,EAAG,SAAUC,IAAK,WAC7B,CAAC,OAAQ,CAAED,EAAG,UAAWC,IAAK,WAC9B,CAAC,OAAQ,CAAEC,MAAO,KAAMC,OAAQ,KAAMC,EAAG,IAAKC,EAAG,IAAKC,GAAI,IAAKL,IAAK,WACpE,CAAC,OAAQ,CAAED,EAAG,WAAYC,IAAK,aCS3BM,EAAeR,EAAiB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ECrDL,SAAmBtG,EAAMuB,GAC9B,MAAM0B,EAAMsD,EAAOvG,EAAMuB,GAASiF,IAAI3F,SACtC,OAAe,IAARoC,GAAqB,IAARA,CACtB,CDkD2BwD,CAAUP,GACzBQ,EAAeR,EAAc,IAAIS,KAEvC,OAAOP,GAAaE,GAAgBI,OEnE7BE,EAAwC,EACpD3I,QACAC,cACAkH,UACA1H,YACAmJ,0BAAyB,KAGxBjJ,EAAAC,cAACiJ,EAAAA,KACAlJ,EAAAC,cAACkJ,EAAAA,KACAnJ,EAAAC,cAACmJ,EAAAA,CAAM5B,QAASA,GAAUnH,IAE1BC,GACAN,EAAAC,cAACoJ,EAAAA,CAAiBvJ,UAAW,GAAGwJ,EAAQ,iBAAkBxJ,MACxDmJ,GAA0BjJ,EAAAC,cAACyH,OAAAA,CAAK5H,UAAU,yBAAyBO,GACpEL,EAAAC,cAACsJ,IAAAA,CAAEzJ,UAAU,4DAA4DQ","x_google_ignoreList":[0,1,4,5,6,7,8,9,11]}
1
+ {"version":3,"file":"index.mjs","sources":["../../node_modules/lucide-react/dist/esm/icons/calendar.js","../../node_modules/lucide-react/dist/esm/icons/loader-circle.js","../../src/components/default/base/TextWrap.tsx","../../src/components/default/base/Header.tsx","../../node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js","../../node_modules/date-fns/locale/pt-BR/_lib/formatLong.js","../../node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js","../../node_modules/date-fns/locale/pt-BR.js","../../node_modules/date-fns/locale/pt-BR/_lib/localize.js","../../node_modules/date-fns/locale/pt-BR/_lib/match.js","../../src/components/default/base/CalendarPopover.tsx","../../node_modules/date-fns/isWeekend.js","../../src/components/default/base/HoverBadge.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M8 2v4\", key: \"1cmpym\" }],\n [\"path\", { d: \"M16 2v4\", key: \"4m81vk\" }],\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"4\", rx: \"2\", key: \"1hopcy\" }],\n [\"path\", { d: \"M3 10h18\", key: \"8toen8\" }]\n];\nconst Calendar = createLucideIcon(\"Calendar\", __iconNode);\n\nexport { __iconNode, Calendar as default };\n//# sourceMappingURL=calendar.js.map\n","/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]];\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", __iconNode);\n\nexport { __iconNode, LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","import { cn } from \"@/lib/utils\";\nimport React from \"react\";\n\ninterface TextWrapProps extends React.HTMLAttributes<HTMLDivElement> {\n\tchildren: React.ReactNode;\n}\n\nexport const TextWrap: React.FC<TextWrapProps> = ({ children, className, ...props }) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n","import {\n\tAccordion,\n\tAccordionContent,\n\tAccordionItem,\n\tAccordionTrigger,\n} from \"@/components/ui/accordion\";\nimport { cn } from \"@/lib/utils\";\nimport React from \"react\";\ninterface HeaderProps {\n\ttitle: string;\n\tdescription: string;\n\tclassName?: string;\n}\n\nexport const Header: React.FC<HeaderProps> = ({ title, description, className }) => {\n\treturn (\n\t\t<header className={cn(\"text-content-high px-2 py-1 text-xl sm:px-6 lg:px-8\", className)}>\n\t\t\t<Accordion type=\"single\" collapsible className=\"w-full\">\n\t\t\t\t<AccordionItem className=\"border-b-0\" value=\"item-1\">\n\t\t\t\t\t<AccordionTrigger\n\t\t\t\t\t\ticonPosition=\"left\"\n\t\t\t\t\t\tclassName=\"justify-start gap-2 py-2 text-xl font-bold\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{title}\n\t\t\t\t\t</AccordionTrigger>\n\t\t\t\t\t<AccordionContent className=\"text-content-medium text-base\">\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</AccordionContent>\n\t\t\t\t</AccordionItem>\n\t\t\t</Accordion>\n\t\t</header>\n\t);\n};\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"menos de um segundo\",\n other: \"menos de {{count}} segundos\",\n },\n\n xSeconds: {\n one: \"1 segundo\",\n other: \"{{count}} segundos\",\n },\n\n halfAMinute: \"meio minuto\",\n\n lessThanXMinutes: {\n one: \"menos de um minuto\",\n other: \"menos de {{count}} minutos\",\n },\n\n xMinutes: {\n one: \"1 minuto\",\n other: \"{{count}} minutos\",\n },\n\n aboutXHours: {\n one: \"cerca de 1 hora\",\n other: \"cerca de {{count}} horas\",\n },\n\n xHours: {\n one: \"1 hora\",\n other: \"{{count}} horas\",\n },\n\n xDays: {\n one: \"1 dia\",\n other: \"{{count}} dias\",\n },\n\n aboutXWeeks: {\n one: \"cerca de 1 semana\",\n other: \"cerca de {{count}} semanas\",\n },\n\n xWeeks: {\n one: \"1 semana\",\n other: \"{{count}} semanas\",\n },\n\n aboutXMonths: {\n one: \"cerca de 1 mês\",\n other: \"cerca de {{count}} meses\",\n },\n\n xMonths: {\n one: \"1 mês\",\n other: \"{{count}} meses\",\n },\n\n aboutXYears: {\n one: \"cerca de 1 ano\",\n other: \"cerca de {{count}} anos\",\n },\n\n xYears: {\n one: \"1 ano\",\n other: \"{{count}} anos\",\n },\n\n overXYears: {\n one: \"mais de 1 ano\",\n other: \"mais de {{count}} anos\",\n },\n\n almostXYears: {\n one: \"quase 1 ano\",\n other: \"quase {{count}} anos\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", String(count));\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"em \" + result;\n } else {\n return \"há \" + result;\n }\n }\n\n return result;\n};\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, d 'de' MMMM 'de' y\",\n long: \"d 'de' MMMM 'de' y\",\n medium: \"d MMM y\",\n short: \"dd/MM/yyyy\",\n};\n\nconst timeFormats = {\n full: \"HH:mm:ss zzzz\",\n long: \"HH:mm:ss z\",\n medium: \"HH:mm:ss\",\n short: \"HH:mm\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'às' {{time}}\",\n long: \"{{date}} 'às' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: (date) => {\n const weekday = date.getDay();\n const last = weekday === 0 || weekday === 6 ? \"último\" : \"última\";\n return \"'\" + last + \"' eeee 'às' p\";\n },\n yesterday: \"'ontem às' p\",\n today: \"'hoje às' p\",\n tomorrow: \"'amanhã às' p\",\n nextWeek: \"eeee 'às' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, date, _baseDate, _options) => {\n const format = formatRelativeLocale[token];\n\n if (typeof format === \"function\") {\n return format(date);\n }\n\n return format;\n};\n","import { formatDistance } from \"./pt-BR/_lib/formatDistance.js\";\nimport { formatLong } from \"./pt-BR/_lib/formatLong.js\";\nimport { formatRelative } from \"./pt-BR/_lib/formatRelative.js\";\nimport { localize } from \"./pt-BR/_lib/localize.js\";\nimport { match } from \"./pt-BR/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary Portuguese locale (Brazil).\n * @language Portuguese\n * @iso-639-2 por\n * @author Lucas Duailibe [@duailibe](https://github.com/duailibe)\n * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo)\n */\nexport const ptBR = {\n code: \"pt-BR\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default ptBR;\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"AC\", \"DC\"],\n abbreviated: [\"AC\", \"DC\"],\n wide: [\"antes de cristo\", \"depois de cristo\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"T1\", \"T2\", \"T3\", \"T4\"],\n wide: [\"1º trimestre\", \"2º trimestre\", \"3º trimestre\", \"4º trimestre\"],\n};\n\nconst monthValues = {\n narrow: [\"j\", \"f\", \"m\", \"a\", \"m\", \"j\", \"j\", \"a\", \"s\", \"o\", \"n\", \"d\"],\n abbreviated: [\n \"jan\",\n \"fev\",\n \"mar\",\n \"abr\",\n \"mai\",\n \"jun\",\n \"jul\",\n \"ago\",\n \"set\",\n \"out\",\n \"nov\",\n \"dez\",\n ],\n\n wide: [\n \"janeiro\",\n \"fevereiro\",\n \"março\",\n \"abril\",\n \"maio\",\n \"junho\",\n \"julho\",\n \"agosto\",\n \"setembro\",\n \"outubro\",\n \"novembro\",\n \"dezembro\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"D\", \"S\", \"T\", \"Q\", \"Q\", \"S\", \"S\"],\n short: [\"dom\", \"seg\", \"ter\", \"qua\", \"qui\", \"sex\", \"sab\"],\n abbreviated: [\n \"domingo\",\n \"segunda\",\n \"terça\",\n \"quarta\",\n \"quinta\",\n \"sexta\",\n \"sábado\",\n ],\n\n wide: [\n \"domingo\",\n \"segunda-feira\",\n \"terça-feira\",\n \"quarta-feira\",\n \"quinta-feira\",\n \"sexta-feira\",\n \"sábado\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mn\",\n noon: \"md\",\n morning: \"manhã\",\n afternoon: \"tarde\",\n evening: \"tarde\",\n night: \"noite\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"manhã\",\n afternoon: \"tarde\",\n evening: \"tarde\",\n night: \"noite\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"manhã\",\n afternoon: \"tarde\",\n evening: \"tarde\",\n night: \"noite\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mn\",\n noon: \"md\",\n morning: \"da manhã\",\n afternoon: \"da tarde\",\n evening: \"da tarde\",\n night: \"da noite\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"da manhã\",\n afternoon: \"da tarde\",\n evening: \"da tarde\",\n night: \"da noite\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"meia-noite\",\n noon: \"meio-dia\",\n morning: \"da manhã\",\n afternoon: \"da tarde\",\n evening: \"da tarde\",\n night: \"da noite\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, options) => {\n const number = Number(dirtyNumber);\n\n if (options?.unit === \"week\") {\n return number + \"ª\";\n }\n return number + \"º\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)[ºªo]?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(ac|dc|a|d)/i,\n abbreviated: /^(a\\.?\\s?c\\.?|d\\.?\\s?c\\.?)/i,\n wide: /^(antes de cristo|depois de cristo)/i,\n};\nconst parseEraPatterns = {\n any: [/^ac/i, /^dc/i],\n wide: [/^antes de cristo/i, /^depois de cristo/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^T[1234]/i,\n wide: /^[1234](º)? trimestre/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmajsond]/i,\n abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,\n wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^fev/i,\n /^mar/i,\n /^abr/i,\n /^mai/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^set/i,\n /^out/i,\n /^nov/i,\n /^dez/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^(dom|[23456]ª?|s[aá]b)/i,\n short: /^(dom|[23456]ª?|s[aá]b)/i,\n abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,\n wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i,\n};\nconst parseDayPatterns = {\n short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],\n narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],\n any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,\n any: /^([ap]\\.?\\s?m\\.?|meia[-\\s]noite|meio[-\\s]dia|(da) (manhã|tarde|noite))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mn|^meia[-\\s]noite/i,\n noon: /^md|^meio[-\\s]dia/i,\n morning: /manhã/i,\n afternoon: /tarde/i,\n evening: /tarde/i,\n night: /noite/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/utils\";\nimport { format, isWeekend } from \"date-fns\";\nimport { ptBR } from \"date-fns/locale\";\nimport { CalendarIcon, LoaderCircleIcon } from \"lucide-react\";\nimport React from \"react\";\n\ntype CaptionLayout = \"label\" | \"dropdown\";\n\nexport function normalizeDate(date: Date): string {\n\treturn format(date, \"yyyy-MM-dd\");\n}\n\ninterface CalendarPopoverProps {\n\tdate: Date | undefined;\n\tsetDate: (newDate: Date | undefined) => void;\n\tisLoading?: boolean;\n\tisLoadingTable?: boolean;\n\tdisabledDates?: Set<string>;\n\tcaptionLayout?: CaptionLayout;\n\tfromYear?: number;\n\ttoYear?: number;\n}\n\nexport const CalendarPopover: React.FC<CalendarPopoverProps> = ({\n\tdate,\n\tsetDate,\n\tisLoading,\n\tisLoadingTable,\n\tdisabledDates,\n\tcaptionLayout,\n\tfromYear,\n\ttoYear,\n}) => {\n\treturn (\n\t\t<Popover>\n\t\t\t{isLoading || !date ? (\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"b- justify-start text-left font-normal hover:bg-inherit\",\n\t\t\t\t\t\t(isLoading || !date) && \"cursor-default opacity-60\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<LoaderCircleIcon className=\"h-4 w-4 animate-spin\" />\n\t\t\t\t\t<span>carregando...</span>\n\t\t\t\t</Button>\n\t\t\t) : (\n\t\t\t\t<PopoverTrigger asChild>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\"b- justify-start text-left font-normal hover:bg-inherit\",\n\t\t\t\t\t\t\t!date && \"text-muted-foreground\",\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{date ? format(date, \"dd/MM/yyyy\") : <span>Selecione uma data</span>}\n\t\t\t\t\t\t<CalendarIcon className=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</PopoverTrigger>\n\t\t\t)}\n\n\t\t\t<PopoverContent className=\"border-switch mr-12 w-auto p-0\">\n\t\t\t\t<Calendar\n\t\t\t\t\tmode=\"single\"\n\t\t\t\t\tselected={date}\n\t\t\t\t\tonSelect={(selectedDate) => {\n\t\t\t\t\t\tif (selectedDate) {\n\t\t\t\t\t\t\tconst normalizedSelectedDate = normalizeDate(selectedDate);\n\t\t\t\t\t\t\tconst normalizedCurrentDate = date ? normalizeDate(date) : null;\n\n\t\t\t\t\t\t\tif (normalizedSelectedDate !== normalizedCurrentDate) {\n\t\t\t\t\t\t\t\tsetDate(selectedDate);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tlocale={ptBR}\n\t\t\t\t\tdefaultMonth={date}\n\t\t\t\t\tdisabled={(currentDate) => {\n\t\t\t\t\t\tif (isLoading || isLoadingTable) return true;\n\n\t\t\t\t\t\tconst normalizedCurrentDate = normalizeDate(currentDate);\n\n\t\t\t\t\t\tconst isHoliday = disabledDates?.has(normalizedCurrentDate);\n\t\t\t\t\t\tconst isWeekendDay = isWeekend(currentDate);\n\t\t\t\t\t\tconst isFutureDate = currentDate > new Date();\n\n\t\t\t\t\t\treturn isHoliday || isWeekendDay || isFutureDate;\n\t\t\t\t\t}}\n\t\t\t\t\tcaptionLayout={captionLayout}\n\t\t\t\t\tfromYear={fromYear}\n\t\t\t\t\ttoYear={toYear}\n\t\t\t\t/>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t);\n};\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link isWeekend} function options.\n */\n\n/**\n * @name isWeekend\n * @category Weekday Helpers\n * @summary Does the given date fall on a weekend?\n *\n * @description\n * Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`).\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date falls on a weekend\n *\n * @example\n * // Does 5 October 2014 fall on a weekend?\n * const result = isWeekend(new Date(2014, 9, 5))\n * //=> true\n */\nexport function isWeekend(date, options) {\n const day = toDate(date, options?.in).getDay();\n return day === 0 || day === 6;\n}\n\n// Fallback for modularized imports:\nexport default isWeekend;\n","import { Badge, type BadgeProps } from \"@/components/ui/badge\";\nimport { HoverCard, HoverCardContent, HoverCardTrigger } from \"@/components/ui/hover-card\";\nimport React from \"react\";\nimport { twMerge } from \"tailwind-merge\";\n\ninterface HoverBadgeProps {\n\ttitle: string;\n\tdescription?: string;\n\tvariant: BadgeProps[\"variant\"];\n\tclassName?: string;\n\tshowTitleInDescription?: boolean;\n}\n\nexport const HoverBadge: React.FC<HoverBadgeProps> = ({\n\ttitle,\n\tdescription,\n\tvariant,\n\tclassName,\n\tshowTitleInDescription = true,\n}) => {\n\treturn (\n\t\t<HoverCard>\n\t\t\t<HoverCardTrigger>\n\t\t\t\t<Badge variant={variant}>{title}</Badge>\n\t\t\t</HoverCardTrigger>\n\t\t\t{description && (\n\t\t\t\t<HoverCardContent className={`${twMerge(\"w-72 space-y-1\", className)}`}>\n\t\t\t\t\t{showTitleInDescription && <span className=\"text-sm font-semibold\">{title}</span>}\n\t\t\t\t\t<p className=\"w-full text-sm text-wrap break-words whitespace-pre-line\">{description}</p>\n\t\t\t\t</HoverCardContent>\n\t\t\t)}\n\t\t</HoverCard>\n\t);\n};\n"],"names":["Calendar","createLucideIcon","d","key","width","height","x","y","rx","LoaderCircle","TextWrap","children","className","props","React","createElement","div","cn","Header","title","description","header","Accordion","type","collapsible","AccordionItem","value","AccordionTrigger","iconPosition","AccordionContent","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatLong","date","buildFormatLongFn","formats","full","long","medium","short","defaultWidth","time","dateTime","formatRelativeLocale","lastWeek","weekday","getDay","yesterday","today","tomorrow","nextWeek","ptBR","code","formatDistance","token","count","options","result","tokenValue","replace","String","addSuffix","comparison","formatRelative","_baseDate","_options","format","localize","ordinalNumber","dirtyNumber","number","Number","unit","era","buildLocalizeFn","values","narrow","abbreviated","wide","quarter","argumentCallback","month","day","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","formattingValues","defaultFormattingWidth","match","buildMatchPatternFn","matchPattern","parsePattern","valueCallback","parseInt","buildMatchFn","matchPatterns","defaultMatchWidth","parsePatterns","any","defaultParseWidth","index","weekStartsOn","firstWeekContainsDate","normalizeDate","CalendarPopover","setDate","isLoading","isLoadingTable","disabledDates","captionLayout","fromYear","toYear","Popover","Button","variant","LoaderCircleIcon","span","PopoverTrigger","asChild","CalendarIcon","PopoverContent","mode","selected","onSelect","selectedDate","locale","defaultMonth","disabled","currentDate","normalizedCurrentDate","isHoliday","has","isWeekendDay","toDate","in","isWeekend","isFutureDate","Date","HoverBadge","showTitleInDescription","HoverCard","HoverCardTrigger","Badge","HoverCardContent","twMerge","p"],"mappings":"o4CAGO,MAkBDA,EAAWC,EAAiB,WAlBE,CAClC,CAAC,OAAQ,CAAEC,EAAG,SAAUC,IAAK,WAC7B,CAAC,OAAQ,CAAED,EAAG,UAAWC,IAAK,WAC9B,CAAC,OAAQ,CAAEC,MAAO,KAAMC,OAAQ,KAAMC,EAAG,IAAKC,EAAG,IAAKC,GAAI,IAAKL,IAAK,WACpE,CAAC,OAAQ,CAAED,EAAG,WAAYC,IAAK,aCS3BM,EA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AAeuB,IAAIF,GAC/BG,EC9DL,SAAmBzG,EAAMuB,GAC9B,MAAM0B,EAAMyD,EAAO1G,EAAMuB,GAASoF,IAAI9F,SACtC,OAAe,IAARoC,GAAqB,IAARA,CACtB,CD2D2B2D,CAAUP,GACzBQ,EAAeR,EAAc,IAAIS,KAEvC,OAAOP,GAAaE,GAAgBI,GAErC3B,cAAeA,EACfC,SAAUA,EACVC,OAAQA,MEhFA2B,EAAwC,EACpD9I,QACAC,cACAqH,UACA7H,YACAsJ,0BAAyB,KAGxBpJ,EAAAC,cAACoJ,EAAAA,KACArJ,EAAAC,cAACqJ,EAAAA,KACAtJ,EAAAC,cAACsJ,EAAAA,CAAM5B,QAASA,GAAUtH,IAE1BC,GACAN,EAAAC,cAACuJ,EAAAA,CAAiB1J,UAAW,GAAG2J,EAAQ,iBAAkB3J,MACxDsJ,GAA0BpJ,EAAAC,cAAC4H,OAAAA,CAAK/H,UAAU,yBAAyBO,GACpEL,EAAAC,cAACyJ,IAAAA,CAAE5J,UAAU,4DAA4DQ","x_google_ignoreList":[0,1,4,5,6,7,8,9,11]}
@@ -1,2 +1,2 @@
1
- export{B as Button,b as buttonVariants}from"../chunks/button-kxm0Lckx.mjs";import"@radix-ui/react-slot";import"class-variance-authority";import"react";import"../chunks/utils-BNmnOQuQ.mjs";import"../chunks/bundle-mjs-BPxOXzif.mjs";
1
+ export{B as Button,b as buttonVariants}from"../chunks/button-DrtQQeut.mjs";import"@radix-ui/react-slot";import"class-variance-authority";import"react";import"../chunks/utils-Dp2SHrBW.mjs";import"../chunks/bundle-mjs-p2tkjPN1.mjs";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,12 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React__default from 'react';
3
- import { DayPicker } from 'react-day-picker';
2
+ import * as React from 'react';
3
+ import { DayPicker, DayButton } from 'react-day-picker';
4
+ import { Button } from '../button/index.js';
5
+ import 'class-variance-authority/types';
6
+ import 'class-variance-authority';
4
7
 
5
- type CalendarProps = React__default.ComponentProps<typeof DayPicker>;
6
- declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
7
- declare namespace Calendar {
8
- var displayName: string;
9
- }
8
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, fromYear, toYear, ...props }: React.ComponentProps<typeof DayPicker> & {
9
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
10
+ }): react_jsx_runtime.JSX.Element;
11
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): react_jsx_runtime.JSX.Element;
10
12
 
11
- export { Calendar };
12
- export type { CalendarProps };
13
+ export { Calendar, CalendarDayButton };
@@ -1,2 +1,2 @@
1
- export{C as Calendar}from"../chunks/calendar-CBJ49e3M.mjs";import"react";import"../chunks/utils-BNmnOQuQ.mjs";import"../chunks/bundle-mjs-BPxOXzif.mjs";import"../chunks/chevron-left-CJfbOy3n.mjs";import"../chunks/createLucideIcon-Okp8w8Ue.mjs";import"../chunks/chevron-right-CepU0QYJ.mjs";import"../chunks/button-kxm0Lckx.mjs";import"@radix-ui/react-slot";import"class-variance-authority";
1
+ export{C as Calendar,a as CalendarDayButton}from"../chunks/calendar-Dtopgd_k.mjs";import"react";import"../chunks/utils-Dp2SHrBW.mjs";import"../chunks/bundle-mjs-p2tkjPN1.mjs";import"../chunks/chevron-left-HipRXZQ8.mjs";import"../chunks/createLucideIcon-CsAdJd--.mjs";import"../chunks/chevron-right-BS1_kgp8.mjs";import"../chunks/chevron-down-B1yMwors.mjs";import"../chunks/button-DrtQQeut.mjs";import"@radix-ui/react-slot";import"class-variance-authority";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as t}from"../chunks/utils-BNmnOQuQ.mjs";import e from"react";import"../chunks/bundle-mjs-BPxOXzif.mjs";function a({className:a,...r}){return e.createElement("div",{"data-slot":"card",className:t("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...r})}function r({className:a,...r}){return e.createElement("div",{"data-slot":"card-header",className:t("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[data-slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...r})}function s({className:a,...r}){return e.createElement("div",{"data-slot":"card-title",className:t("leading-none font-semibold",a),...r})}function c({className:a,...r}){return e.createElement("div",{"data-slot":"card-description",className:t("text-muted-foreground text-sm",a),...r})}function o({className:a,...r}){return e.createElement("div",{"data-slot":"card-action",className:t("col-start-2 row-span-2 row-start-1 self-start justify-self-end",a),...r})}function n({className:a,...r}){return e.createElement("div",{"data-slot":"card-content",className:t("px-6",a),...r})}function d({className:a,...r}){return e.createElement("div",{"data-slot":"card-footer",className:t("flex items-center px-6 [.border-t]:pt-6",a),...r})}export{a as Card,o as CardAction,n as CardContent,c as CardDescription,d as CardFooter,r as CardHeader,s as CardTitle};
1
+ import{c as t}from"../chunks/utils-Dp2SHrBW.mjs";import e from"react";import"../chunks/bundle-mjs-p2tkjPN1.mjs";function a({className:a,...r}){return e.createElement("div",{"data-slot":"card",className:t("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...r})}function r({className:a,...r}){return e.createElement("div",{"data-slot":"card-header",className:t("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[data-slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...r})}function s({className:a,...r}){return e.createElement("div",{"data-slot":"card-title",className:t("leading-none font-semibold",a),...r})}function c({className:a,...r}){return e.createElement("div",{"data-slot":"card-description",className:t("text-muted-foreground text-sm",a),...r})}function o({className:a,...r}){return e.createElement("div",{"data-slot":"card-action",className:t("col-start-2 row-span-2 row-start-1 self-start justify-self-end",a),...r})}function n({className:a,...r}){return e.createElement("div",{"data-slot":"card-content",className:t("px-6",a),...r})}function d({className:a,...r}){return e.createElement("div",{"data-slot":"card-footer",className:t("flex items-center px-6 [.border-t]:pt-6",a),...r})}export{a as Card,o as CardAction,n as CardContent,c as CardDescription,d as CardFooter,r as CardHeader,s as CardTitle};
2
2
  //# sourceMappingURL=index.mjs.map