sodtrack-web-ui 0.125.0 → 0.126.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/chunk-22LX5OTN.js +1 -0
  2. package/dist/{chunk-QITMJCQW.js → chunk-2VLVDI3Z.js} +1 -1
  3. package/dist/{chunk-ZLAJSOQ2.js → chunk-34OF7MN3.js} +1 -1
  4. package/dist/chunk-35MW6ETK.js +1 -0
  5. package/dist/{chunk-DKPZXVRL.js → chunk-367LGSOK.js} +1 -1
  6. package/dist/chunk-3SMBMEII.js +1 -0
  7. package/dist/chunk-6EO2NKQH.js +1 -0
  8. package/dist/chunk-6SISGO5H.js +1 -0
  9. package/dist/{chunk-ORDWXBDZ.js → chunk-6YK44VD4.js} +1 -1
  10. package/dist/{chunk-JNGYMN4S.js → chunk-7J5AW2GQ.js} +1 -1
  11. package/dist/{chunk-IDSS32AM.js → chunk-7L5T4Q35.js} +1 -1
  12. package/dist/{chunk-Y33BNMNT.js → chunk-BK5FDZCM.js} +1 -1
  13. package/dist/{chunk-HRZUD7LH.js → chunk-BL4BT5AX.js} +1 -1
  14. package/dist/{chunk-PD56TYMC.js → chunk-CIBHVNGF.js} +1 -1
  15. package/dist/{chunk-ELVNWQMU.js → chunk-CLWNCQCU.js} +1 -1
  16. package/dist/{chunk-LHHQ33KR.js → chunk-CNMAEXOF.js} +1 -1
  17. package/dist/{chunk-W7NVQZV6.js → chunk-DYK6RYLB.js} +1 -1
  18. package/dist/{chunk-4IIOM6VN.js → chunk-FZZROWEL.js} +1 -1
  19. package/dist/{chunk-BPRIXCGL.js → chunk-GKTZ47UB.js} +1 -1
  20. package/dist/{chunk-3TU5K4YP.js → chunk-HQGT2HDV.js} +1 -1
  21. package/dist/{chunk-4TKYSN4V.js → chunk-HUIUWCTG.js} +1 -1
  22. package/dist/chunk-IASAN3FQ.js +1 -0
  23. package/dist/chunk-JLYHPS4I.js +1 -0
  24. package/dist/{chunk-Z2GQ6KAT.js → chunk-JQHUJSGC.js} +1 -1
  25. package/dist/{chunk-2AXRTC6X.js → chunk-KP2PZZBK.js} +1 -1
  26. package/dist/chunk-L2E2R5WX.js +1 -0
  27. package/dist/{chunk-JGI2MZPP.js → chunk-LEOKE4DZ.js} +1 -1
  28. package/dist/{chunk-SKZQQUJS.js → chunk-LW4WFB3N.js} +1 -1
  29. package/dist/{chunk-ZRTBPAEE.js → chunk-MFXJNXON.js} +1 -1
  30. package/dist/{chunk-IFRQ4ZRO.js → chunk-MZ3RI3NS.js} +1 -1
  31. package/dist/{chunk-HJEK3IJI.js → chunk-NZGWPUNQ.js} +1 -1
  32. package/dist/chunk-O4O4SVKR.js +1 -0
  33. package/dist/chunk-P3WXE2MQ.js +1 -0
  34. package/dist/chunk-Q5WI2UGY.js +1 -0
  35. package/dist/{chunk-AMHDMLY3.js → chunk-QG42Q4VT.js} +1 -1
  36. package/dist/{chunk-D6JY2TVX.js → chunk-QGBF5FAR.js} +1 -1
  37. package/dist/{chunk-CCAIKRWO.js → chunk-RJPSFEAA.js} +1 -1
  38. package/dist/chunk-RORP6SWP.js +1 -0
  39. package/dist/{chunk-NRQYEWUT.js → chunk-RVRYL5Q3.js} +1 -1
  40. package/dist/{chunk-TVHEVGT5.js → chunk-RXNXQJGV.js} +1 -1
  41. package/dist/{chunk-KFIT2TO2.js → chunk-S5AQOWMU.js} +1 -1
  42. package/dist/{chunk-T5KOUFZV.js → chunk-SB3QNARF.js} +1 -1
  43. package/dist/chunk-SD7DMTBZ.js +1 -0
  44. package/dist/{chunk-XNBXUXHQ.js → chunk-SOO2IWYA.js} +1 -1
  45. package/dist/{chunk-DPXKYW6J.js → chunk-SVYR62JG.js} +1 -1
  46. package/dist/{chunk-ZODTM5W6.js → chunk-T7Y7LCUV.js} +1 -1
  47. package/dist/{chunk-2SFCNWDX.js → chunk-THJIENWN.js} +1 -1
  48. package/dist/{chunk-LTYV7LM5.js → chunk-TKF3OFO4.js} +1 -1
  49. package/dist/chunk-TXG7IH6C.js +1 -0
  50. package/dist/chunk-UVR5WX5Q.js +2 -0
  51. package/dist/chunk-WV24VQMR.js +1 -0
  52. package/dist/{chunk-G7NJYNJA.js → chunk-WY4OBCQD.js} +1 -1
  53. package/dist/{chunk-D47J2N5P.js → chunk-XL34ZBIV.js} +1 -1
  54. package/dist/{chunk-HBZ4L3JL.js → chunk-Y46L5AQB.js} +1 -1
  55. package/dist/{chunk-4HMXOGWD.js → chunk-YFJ5BFUC.js} +1 -1
  56. package/dist/{chunk-PI7DECIN.js → chunk-Z6BICKQK.js} +1 -1
  57. package/dist/chunk-ZR6VTPRV.js +1 -0
  58. package/dist/components/alert-dialog.js +1 -1
  59. package/dist/components/alert-message.js +1 -1
  60. package/dist/components/attachment-card.js +1 -1
  61. package/dist/components/attachment-field.d.ts +1 -2
  62. package/dist/components/attachment-field.js +1 -1
  63. package/dist/components/autocomplete-multiple.js +1 -1
  64. package/dist/components/autocomplete-skeleton.d.ts +1 -1
  65. package/dist/components/autocomplete-skeleton.js +1 -1
  66. package/dist/components/autocomplete.js +1 -1
  67. package/dist/components/base-button-styles.d.ts +9 -3
  68. package/dist/components/base-button-styles.js +1 -1
  69. package/dist/components/button-active-old.d.ts +38 -0
  70. package/dist/components/button-active-old.js +1 -0
  71. package/dist/components/button-active.d.ts +216 -29
  72. package/dist/components/button-active.js +1 -1
  73. package/dist/components/button-menu.js +1 -1
  74. package/dist/components/button.d.ts +12 -4
  75. package/dist/components/button.js +1 -1
  76. package/dist/components/card-action.d.ts +1 -1
  77. package/dist/components/card-action.js +1 -1
  78. package/dist/components/card-basic.js +1 -1
  79. package/dist/components/card-expandable.js +1 -1
  80. package/dist/components/card-form.js +1 -1
  81. package/dist/components/checkbox.js +1 -1
  82. package/dist/components/choice-chips.js +1 -1
  83. package/dist/components/data-table.js +1 -1
  84. package/dist/components/date-picker.js +1 -1
  85. package/dist/components/dialog.js +1 -1
  86. package/dist/components/drawer-bar.d.ts +1 -1
  87. package/dist/components/drawer-bar.js +1 -1
  88. package/dist/components/drawer.js +1 -1
  89. package/dist/components/empty-state.js +1 -1
  90. package/dist/components/error-screen.js +1 -1
  91. package/dist/components/file-icon.js +1 -1
  92. package/dist/components/file-list-item.d.ts +1 -1
  93. package/dist/components/file-list-item.js +1 -1
  94. package/dist/components/file-list.js +1 -1
  95. package/dist/components/file-picker.d.ts +9 -5
  96. package/dist/components/file-picker.js +1 -1
  97. package/dist/components/file-preview.js +1 -1
  98. package/dist/components/icon-button.d.ts +12 -4
  99. package/dist/components/icon-button.js +1 -1
  100. package/dist/components/index.d.ts +11 -8
  101. package/dist/components/index.js +1 -1
  102. package/dist/components/list-item-arrow.js +1 -1
  103. package/dist/components/list-item-button.js +1 -1
  104. package/dist/components/list-item-checkbox-left.js +1 -1
  105. package/dist/components/list-item-checkbox.js +1 -1
  106. package/dist/components/list-item.d.ts +1 -1
  107. package/dist/components/list-item.js +1 -1
  108. package/dist/components/list-item_old.js +1 -1
  109. package/dist/components/menu.js +1 -1
  110. package/dist/components/multi-select-chips.js +1 -1
  111. package/dist/components/note-card.js +1 -1
  112. package/dist/components/number-field.js +1 -1
  113. package/dist/components/passive-tabs.js +1 -1
  114. package/dist/components/popover.js +1 -1
  115. package/dist/components/popover_old.d.ts +3 -0
  116. package/dist/components/popover_old.js +1 -1
  117. package/dist/components/radio.js +1 -1
  118. package/dist/components/select-skeleton.d.ts +1 -1
  119. package/dist/components/select-skeleton.js +1 -1
  120. package/dist/components/select.js +1 -1
  121. package/dist/components/select_old.d.ts +3 -0
  122. package/dist/components/select_old.js +1 -1
  123. package/dist/components/sidebar.js +1 -1
  124. package/dist/components/signature-pad.d.ts +0 -8
  125. package/dist/components/signature-pad.js +1 -1
  126. package/dist/components/snackbar.js +1 -1
  127. package/dist/components/table.js +1 -1
  128. package/dist/components/text-field.js +1 -1
  129. package/dist/components/text-field_old.d.ts +4 -3
  130. package/dist/components/text-field_old.js +1 -1
  131. package/dist/components/textarea.js +1 -1
  132. package/dist/components/textarea_old.d.ts +3 -0
  133. package/dist/components/time-picker.js +1 -1
  134. package/dist/components/toast.js +1 -1
  135. package/dist/components/tooltip.js +1 -1
  136. package/dist/components/tracker-item.d.ts +2 -2
  137. package/dist/components/tracker-item.js +1 -1
  138. package/dist/{label-CwyjuBj_.d.ts → label-CCdG015k.d.ts} +2 -16
  139. package/dist/preferences.js +1 -1
  140. package/dist/styles/index.css +1 -1
  141. package/package.json +5 -5
  142. package/dist/chunk-5T72Q62I.js +0 -1
  143. package/dist/chunk-6KOW23JR.js +0 -1
  144. package/dist/chunk-7ASB5J74.js +0 -1
  145. package/dist/chunk-CQI4KDR4.js +0 -1
  146. package/dist/chunk-FNS34VZR.js +0 -1
  147. package/dist/chunk-G3QQBMLM.js +0 -1
  148. package/dist/chunk-J4XKXHNE.js +0 -1
  149. package/dist/chunk-JLPOXOG2.js +0 -1
  150. package/dist/chunk-KLL4XELW.js +0 -1
  151. package/dist/chunk-M4PKOXUS.js +0 -1
  152. package/dist/chunk-MTR5PWVB.js +0 -1
  153. package/dist/chunk-NVUOZ73Q.js +0 -1
  154. package/dist/chunk-PT6PF46Q.js +0 -1
  155. package/dist/chunk-PYPHO6IJ.js +0 -1
  156. package/dist/chunk-Q3OEC25I.js +0 -1
  157. package/dist/chunk-QFEIZHL3.js +0 -1
  158. package/dist/chunk-SWHOQK55.js +0 -1
  159. package/dist/chunk-UYRGKELU.js +0 -1
  160. package/dist/chunk-XRWUSO32.js +0 -2
  161. package/dist/components/dropzone.d.ts +0 -175
  162. package/dist/components/dropzone.js +0 -1
  163. package/dist/components/scrollarea.d.ts +0 -21
  164. package/dist/components/scrollarea.js +0 -1
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-IASAN3FQ.js';import {g}from'./chunk-QMPBFFFC.js';import {d}from'./chunk-CNMAEXOF.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var N=["sm","md","lg"],O=["primary","secondary","ghost"],S=["primary","neutral"],A=tv({extend:d,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),R=({label:u,StartIcon:n,options:d,onSelect:s,variant:p="primary",size:m="md",disabled:a$1=false,className:v,tone:g$1="primary",...b})=>{let y=useCallback(t=>{s?.(t);},[s]),{root:f,icon:r}=A({variant:p,size:m,tone:g$1,disabled:a$1});return jsxs(a.Root,{onSelect:y,...b,children:[jsxs(a.Trigger,{disabled:a$1,className:f({className:v}),children:[n&&jsx(n,{className:r()}),u,jsx(g,{className:r({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(a.Content,{children:d.map(t=>jsx(a.Option,{value:t.value,label:t.label,description:t.description,startIcon:t.startIcon,endIcon:t.endIcon,hasDivider:t.hasDivider,disabled:t.disabled,onSelect:t.onClick},t.value))})]})};export{N as a,O as b,S as c,R as d};
@@ -1 +1 @@
1
- import {d as d$1}from'./chunk-J2GED4G4.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-LHHQ33KR.js';import {a}from'./chunk-OBZIYJO7.js';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {forwardRef,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var X=({onOpenChange:a,...o})=>{let t=useCallback(r=>{a?.(r.open);},[a]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:t,...o})},q=Dialog.Trigger,G=["sm","md","lg","xl"],P=forwardRef(({children:a$1,className:o,size:t="sm",...r},l)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-layer fixed inset-0 bg-neutral-900/60"}),jsx(Dialog.Positioner,{className:"z-layer fixed top-0 left-0 flex h-dvh w-dvw items-center justify-end",children:jsx(Dialog.Content,{ref:l,className:a("elevation-10 z-layer data-[state=closed]:animate-swipe-out data-[state=open]:animate-slide-in h-full bg-neutral-50",t==="sm"&&"w-117.5",t==="md"&&"w-187",t==="lg"&&"w-235",t==="xl"&&"w-312",o),...r,children:jsx("div",{className:"flex h-full flex-1 flex-col",children:a$1})})})]}));P.displayName="DrawerContent";var T=forwardRef(({children:a$1,className:o,title:t,buttons:r=[],Icon:l,description:d$2,overline:c,...v},y)=>jsxs("div",{className:a("border-b border-neutral-200 pt-2 pb-2.75 pl-4",o),ref:y,...v,children:[jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(d,{className:"mr-2 ml-auto size-4.5 cursor-pointer"})}),c&&jsx("p",{className:"mt-1 line-clamp-1 text-xs leading-[133.33%] text-neutral-700 uppercase",children:c}),jsxs("div",{className:"mt-1 mr-4 flex items-center justify-between gap-3",children:[l&&jsx(d$1,{icon:l,size:"md",variant:"light",color:"primary"}),jsx(Dialog.Title,{className:"font-jakarta line-clamp-1 flex-1 text-xl leading-[140%] font-semibold break-all text-neutral-900",children:t}),!Array.isArray(r)&&r.visible!==false&&jsx(e,{size:"md",variant:"ghost",...(({visible:g,...m})=>m)(r)}),Array.isArray(r)&&jsx("div",{className:"flex gap-1",children:r.map(({visible:g=true,...m},b)=>g?jsx(e$1,{variant:"ghost",size:"md",...m},b):null)})]}),d$2&&jsx(Dialog.Description,{className:"font-inter mt-1 mr-4 line-clamp-2 text-sm leading-[143%] text-neutral-800",children:d$2})]}));T.displayName="DrawerHeader";var H=forwardRef(({children:a$1,className:o,...t},r)=>jsx("div",{className:a("flex justify-end gap-3 border-t border-neutral-200 p-4.5",o),ref:r,...t,children:a$1}));H.displayName="DrawerFooter";var h=forwardRef(({children:a$1,className:o,...t},r)=>jsx("div",{className:a("h-full scrollbar-gutter-stable overflow-y-auto p-4",o),ref:r,...t,children:a$1}));h.displayName="DrawerBody";var J=Dialog.CloseTrigger;export{X as a,q as b,G as c,P as d,T as e,H as f,h as g,J as h};
1
+ import {d as d$1}from'./chunk-J2GED4G4.js';import {e as e$1}from'./chunk-Z6BICKQK.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-CNMAEXOF.js';import {a}from'./chunk-OBZIYJO7.js';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {forwardRef,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var X=({onOpenChange:a,...o})=>{let t=useCallback(r=>{a?.(r.open);},[a]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:t,...o})},q=Dialog.Trigger,G=["sm","md","lg","xl"],P=forwardRef(({children:a$1,className:o,size:t="sm",...r},l)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-layer fixed inset-0 bg-neutral-900/60"}),jsx(Dialog.Positioner,{className:"z-layer fixed top-0 left-0 flex h-dvh w-dvw items-center justify-end",children:jsx(Dialog.Content,{ref:l,className:a("elevation-10 z-layer data-[state=closed]:animate-swipe-out data-[state=open]:animate-slide-in h-full bg-neutral-50",t==="sm"&&"w-117.5",t==="md"&&"w-187",t==="lg"&&"w-235",t==="xl"&&"w-312",o),...r,children:jsx("div",{className:"flex h-full flex-1 flex-col",children:a$1})})})]}));P.displayName="DrawerContent";var T=forwardRef(({children:a$1,className:o,title:t,buttons:r=[],Icon:l,description:d$2,overline:c,...v},y)=>jsxs("div",{className:a("border-b border-neutral-200 pt-2 pb-2.75 pl-4",o),ref:y,...v,children:[jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(d,{className:"mr-2 ml-auto size-4.5 cursor-pointer"})}),c&&jsx("p",{className:"mt-1 line-clamp-1 text-xs leading-[133.33%] text-neutral-700 uppercase",children:c}),jsxs("div",{className:"mt-1 mr-4 flex items-center justify-between gap-3",children:[l&&jsx(d$1,{icon:l,size:"md",variant:"light",color:"primary"}),jsx(Dialog.Title,{className:"font-jakarta line-clamp-1 flex-1 text-xl leading-[140%] font-semibold break-all text-neutral-900",children:t}),!Array.isArray(r)&&r.visible!==false&&jsx(e,{size:"md",variant:"ghost",...(({visible:g,...m})=>m)(r)}),Array.isArray(r)&&jsx("div",{className:"flex gap-1",children:r.map(({visible:g=true,...m},b)=>g?jsx(e$1,{variant:"ghost",size:"md",...m},b):null)})]}),d$2&&jsx(Dialog.Description,{className:"font-inter mt-1 mr-4 line-clamp-2 text-sm leading-[143%] text-neutral-800",children:d$2})]}));T.displayName="DrawerHeader";var H=forwardRef(({children:a$1,className:o,...t},r)=>jsx("div",{className:a("flex justify-end gap-3 border-t border-neutral-200 p-4.5",o),ref:r,...t,children:a$1}));H.displayName="DrawerFooter";var h=forwardRef(({children:a$1,className:o,...t},r)=>jsx("div",{className:a("h-full scrollbar-gutter-stable overflow-y-auto p-4",o),ref:r,...t,children:a$1}));h.displayName="DrawerBody";var J=Dialog.CloseTrigger;export{X as a,q as b,G as c,P as d,T as e,H as f,h as g,J as h};
@@ -1 +1 @@
1
- import {d}from'./chunk-2XPOFV4Q.js';import {c,e,a as a$1,b,d as d$1}from'./chunk-MQL3NZ6S.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-PYPHO6IJ.js';import {v}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {DatePicker}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=forwardRef(({className:g,disabled:o,error:C,helperText:f,invalid:b$1,label:x,labelProps:A,loading:h,readOnly:r,required:i,...F},V)=>{let n=C||b$1,l=c({error:n,disabled:o,readOnly:r});return jsxs(DatePicker.Root,{ref:V,...F,disabled:o,invalid:n,readOnly:r,positioning:{placement:"bottom-end"},"data-error":d$1(l)||void 0,className:a(b,g),children:[jsx(c$1,{...A,as:DatePicker.Label,label:x,required:i}),jsx(DatePicker.Context,{children:y=>jsx(e,{as:DatePicker.Control,state:l,clearAdornment:y.value.length>0?jsx(a$1,{as:DatePicker.ClearTrigger}):void 0,segment:jsx(DatePicker.Trigger,{className:"flex h-full w-full cursor-pointer items-center justify-center outline-none disabled:cursor-not-allowed",tabIndex:r?-1:void 0,children:jsx(v,{className:"size-4.5"})}),segmentClassName:"w-10",children:I=>jsx(DatePicker.Input,{className:a(I,"cursor-inherit"),tabIndex:r?-1:void 0,"aria-required":i||void 0})})}),jsx(a$2,{children:f}),jsx(Portal,{children:jsx(DatePicker.Positioner,{children:jsx(DatePicker.Content,{className:"elevation-9 z-layer rounded-xl bg-neutral-50 p-3",children:jsx(d,{loading:h})})})})]})});T.displayName="DatePicker";export{T as a};
1
+ import {d}from'./chunk-2XPOFV4Q.js';import {c,e,a as a$1,b,d as d$1}from'./chunk-MQL3NZ6S.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-P3WXE2MQ.js';import {v}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {DatePicker}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=forwardRef(({className:g,disabled:o,error:C,helperText:f,invalid:b$1,label:x,labelProps:A,loading:h,readOnly:r,required:i,...F},V)=>{let n=C||b$1,l=c({error:n,disabled:o,readOnly:r});return jsxs(DatePicker.Root,{ref:V,...F,disabled:o,invalid:n,readOnly:r,positioning:{placement:"bottom-end"},"data-error":d$1(l)||void 0,className:a(b,g),children:[jsx(c$1,{...A,as:DatePicker.Label,label:x,required:i}),jsx(DatePicker.Context,{children:y=>jsx(e,{as:DatePicker.Control,state:l,clearAdornment:y.value.length>0?jsx(a$1,{as:DatePicker.ClearTrigger}):void 0,segment:jsx(DatePicker.Trigger,{className:"flex h-full w-full cursor-pointer items-center justify-center outline-none disabled:cursor-not-allowed",tabIndex:r?-1:void 0,children:jsx(v,{className:"size-4.5"})}),segmentClassName:"w-10",children:I=>jsx(DatePicker.Input,{className:a(I,"cursor-inherit"),tabIndex:r?-1:void 0,"aria-required":i||void 0})})}),jsx(a$2,{children:f}),jsx(Portal,{children:jsx(DatePicker.Positioner,{children:jsx(DatePicker.Content,{className:"elevation-9 z-layer rounded-xl bg-neutral-50 p-3",children:jsx(d,{loading:h})})})})]})});T.displayName="DatePicker";export{T as a};
@@ -0,0 +1 @@
1
+ import {c}from'./chunk-P3WXE2MQ.js';import {d}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {SignaturePad}from'@ark-ui/react/signature-pad';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var v=forwardRef((b,c$1)=>{let{rootClassName:f,className:P,label:i,labelProps:S,required:h,helperText:s,error:n,onChange:d$1,readOnly:o,disabled:a$1,...x}=b,y=async l=>{let u=await l.getDataUrl("image/png");if(!u){d$1?.(null);return}let w=u.split(",")[1],C=Uint8Array.from(atob(w),N=>N.charCodeAt(0));d$1?.(new File([C],"signature.png",{type:"image/png"}));};return jsxs(SignaturePad.Root,{ref:c$1,"data-error":n,className:a("group flex flex-col",f),onDrawEnd:y,readOnly:o,disabled:a$1,...x,children:[i&&jsx(c,{...S,as:SignaturePad.Label,label:i,required:h}),jsx(SignaturePad.Context,{children:({paths:l})=>jsx(SignaturePad.HiddenInput,{value:l.join(" ")})}),jsxs(SignaturePad.Control,{className:a("group/control","relative h-40 w-full overflow-hidden","rounded-lg bg-white p-4","border border-dashed border-neutral-300",n&&"border-error-500",o&&"pointer-events-none border-neutral-300 bg-neutral-100",a$1&&"pointer-events-none opacity-60",P),children:[jsx(SignaturePad.Segment,{className:"h-full w-full"}),jsx(SignaturePad.Guide,{className:"absolute inset-0 opacity-20"}),!o&&!a$1&&jsx(SignaturePad.ClearTrigger,{className:"absolute top-2 right-2 z-20 cursor-pointer rounded-lg bg-neutral-100 p-1 ring-1 ring-neutral-500",children:jsx(d,{className:"size-4 text-neutral-700"})})]}),s&&jsx("p",{className:a("font-inter text-2xs mt-1 leading-[133.33%] font-normal",n?"text-error-500":"text-neutral-700",a$1&&"text-neutral-400"),children:s})]})});v.displayName="SignaturePad";export{v as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-LHHQ33KR.js';import {a}from'./chunk-OBZIYJO7.js';import {jsx,jsxs}from'react/jsx-runtime';var v=({children:e,className:r,...o})=>jsx("div",{...o,className:a("bg-neutral-80 @container rounded-lg border border-neutral-200",r),children:e}),u=({title:e$1,buttons:r,...o})=>jsxs("div",{...o,children:[jsxs("div",{className:"flex items-center justify-between gap-2.5 px-3 py-2 empty:hidden",children:[!!e$1&&jsx("h2",{className:"text-lg font-medium",children:e$1}),!!r&&r?.length>0&&jsx("div",{className:"ml-auto flex gap-2",children:r?.map((i,p)=>jsx(e,{...i,size:"md"},p))})]}),jsx(a$1,{})]}),P=({children:e,className:r,...o})=>jsx("div",{...o,className:a("px-3 py-4",r),children:e}),y=({children:e,ignorePadding:r=false,innerClassName:o,...i})=>jsxs("div",{...i,children:[jsx(a$1,{}),jsx("div",{className:a(o,!r&&"px-3 py-4"),children:e})]});export{v as a,u as b,P as c,y as d};
1
+ import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-CNMAEXOF.js';import {a}from'./chunk-OBZIYJO7.js';import {jsx,jsxs}from'react/jsx-runtime';var v=({children:e,className:r,...o})=>jsx("div",{...o,className:a("bg-neutral-80 @container rounded-lg border border-neutral-200",r),children:e}),u=({title:e$1,buttons:r,...o})=>jsxs("div",{...o,children:[jsxs("div",{className:"flex items-center justify-between gap-2.5 px-3 py-2 empty:hidden",children:[!!e$1&&jsx("h2",{className:"text-lg font-medium",children:e$1}),!!r&&r?.length>0&&jsx("div",{className:"ml-auto flex gap-2",children:r?.map((i,p)=>jsx(e,{...i,size:"md"},p))})]}),jsx(a$1,{})]}),P=({children:e,className:r,...o})=>jsx("div",{...o,className:a("px-3 py-4",r),children:e}),y=({children:e,ignorePadding:r=false,innerClassName:o,...i})=>jsxs("div",{...i,children:[jsx(a$1,{}),jsx("div",{className:a(o,!r&&"px-3 py-4"),children:e})]});export{v as a,u as b,P as c,y as d};
@@ -0,0 +1 @@
1
+ import {d,e}from'./chunk-HQGT2HDV.js';import {a}from'./chunk-OBZIYJO7.js';import {useState,useEffect,createElement}from'react';import {jsx}from'react/jsx-runtime';var R=({source:e$1,fileName:n,mimeType:o,alt:s="",className:f,onError:p,...a$1})=>{let{isImage:l}=d(e$1,{fileName:n,mimeType:o}),[c,m]=useState(null),[u,P]=useState();useEffect(()=>{if(P(void 0),typeof e$1=="string"||!l){m(null);return}let i=URL.createObjectURL(e$1);return m({file:e$1,url:i}),()=>URL.revokeObjectURL(i)},[e$1,l]);let r=typeof e$1=="string"?e$1:c?.file===e$1?c.url:void 0,v=i=>{P(r),p?.(i);};return !l||!r||r===u?jsx(e,{...a$1,source:e$1,fileName:n,mimeType:o,alt:s,className:a("size-12",f),onError:p}):createElement("img",{...a$1,key:r,src:r,alt:s,className:a("size-12 shrink-0 rounded-lg object-cover",f),onError:v})};export{R as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-CFP2GUU4.js';import {a as a$2}from'./chunk-3SMBMEII.js';import {a as a$1,e as e$1}from'./chunk-HQGT2HDV.js';import {e}from'./chunk-Z6BICKQK.js';import {x}from'./chunk-QMPBFFFC.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {LocaleProvider,FormatByte}from'@ark-ui/react';import {Children}from'react';import {jsx,jsxs}from'react/jsx-runtime';var D=({item:e$2,variant:k="list",disabled:F,onRemove:c,children:n,className:d})=>{let p=a(),a$4=e$2.kind==="local"?e$2.file:e$2.url,r=e$2.kind==="remote"?e$2.name:void 0,u=e$2.kind==="remote"?e$2.mimeType:void 0,i=a$1(a$4,r)||p.unnamed,l=e$2.kind==="local"?e$2.file.size:e$2.size,s=k==="thumbnails",f=Children.toArray(n).length>0,h=c&&jsx(e,{Icon:x,type:"button",variant:s?"light":"ghost",tone:"neutral",size:"sm",disabled:F,className:s?"absolute -top-1 -right-1":"ml-auto shrink-0","data-file-remove":"",onClick:c});return s?jsxs("li",{className:a$3("w-16 shrink-0",f?"wrap-break-word":"aspect-square h-16",d),title:i,children:[jsxs("div",{className:"relative aspect-square w-full",children:[jsx(a$2,{source:a$4,fileName:r,mimeType:u,alt:i,className:"h-full w-full rounded-lg object-cover"}),h]}),n]}):jsxs("li",{className:a$3("flex min-w-0 shrink-0 items-center rounded-md bg-neutral-50 pr-2 pl-4 ring ring-neutral-300 ring-inset",f?"min-h-13 py-2":"h-13",d),children:[jsx(e$1,{source:a$4,fileName:r,mimeType:u}),jsxs("div",{className:"mr-6 ml-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx("span",{className:"font-inter line-clamp-1 text-xs leading-[133%] font-medium break-all text-neutral-900",title:i,children:i}),l!==void 0&&Number.isFinite(l)&&l>=0&&jsx("span",{className:"text-2xs font-inter leading-[133%] text-neutral-700",children:jsx(LocaleProvider,{locale:p.locale,children:jsx(FormatByte,{value:l})})}),n]}),h]})};export{D as a};
@@ -0,0 +1 @@
1
+ import {c}from'./chunk-JYNJHAGL.js';import {a}from'./chunk-TKF3OFO4.js';import {a as a$3}from'./chunk-TN46TEUP.js';import {a as a$2}from'./chunk-MZ3RI3NS.js';import {d as d$1}from'./chunk-MP4CHZ2K.js';import {e as e$1}from'./chunk-Z6BICKQK.js';import {e,t,u}from'./chunk-QMPBFFFC.js';import {e as e$2}from'./chunk-CNMAEXOF.js';import {a as a$4}from'./chunk-2EC6JI3N.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {createContext,useContext}from'react';import {tv}from'tailwind-variants';import {useCollapsibleContext,Collapsible}from'@ark-ui/react/collapsible';import {getDefaultOptions}from'date-fns';import {jsxs,jsx}from'react/jsx-runtime';var g=createContext("white"),d=tv({slots:{root:"group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex min-h-14 items-center py-3 pr-1 pl-3",headerLabel:"text-sm leading-[130%] font-medium empty:hidden",complementaryText:"line-clamp-1 text-xs leading-[130%] text-neutral-900",subtitle:"line-clamp-1 text-xs leading-[130%] text-neutral-700",content:"data-[state=open]:animate-expand data-[state=closed]:animate-collapse overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 py-4",fixedContent:"border-t px-3 pt-6 pb-4"},variants:{background:{white:{root:"ring-expandable-card-white-border bg-neutral-50",content:"border-expandable-card-white-border",fixedContent:"border-expandable-card-white-border"},gray:{root:"ring-expandable-card-neutral-border bg-neutral-100",content:"border-expandable-card-neutral-border",fixedContent:"border-expandable-card-neutral-border"}}},defaultVariants:{background:"white"}}),Q=(e,o)=>o?.startsWith("es")?e?"Contraer":"Expandir":o?.startsWith("pt")?e?"Recolher":"Expandir":e?"Collapse":"Expand",ht=({headerLabel:e$3,complementaryText:o,subtitle:a$5,headerTooltip:n,className:i,action:f,chipStatus:h,badgeExpandable:v,chipExpandable:E,badgeNumber:l,Icon:P,iconButtons:D,checkbox:c$1,...F})=>{let{header:O,headerLabel:R,complementaryText:A,subtitle:S}=d(),m=useCollapsibleContext(),{locale:U}=getDefaultOptions(),W=Q(m.open,U?.code);return jsxs("div",{...F,className:a$1(O(),i),children:[c$1&&jsx(a,{...c$1,className:a$1("mt-0.25 mr-1.5",c$1.className)}),jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxs("div",{className:"flex items-center gap-1.5",children:[P&&jsx(P,{className:"size-3.5 shrink-0"}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("b",{className:R(),children:e$3}),o&&jsx("span",{className:A(),children:o}),n&&jsx(a$2,{content:n,contentClassName:"font-normal normal-case",children:jsx(e,{className:"h-3.5 w-3.5 shrink-0"})})]})]}),jsxs("div",{className:"flex items-center gap-2",children:[h&&jsx(d$1,{...h,size:"xs",type:"light"}),E&&jsx(c,{...E,type:"light"}),v&&jsx(a$3,{...v,size:"md"}),l&&jsx(a$2,{content:l.tooltipContent,disabled:!l.tooltipContent,children:jsx(a$4,{text:l.text,affix:l.affix,size:"md",variant:"primary",type:"square"})}),D?.map((p,x)=>{let{tooltipContent:y,variant:q="ghost",...V}=p;return jsx(a$2,{content:y,disabled:!y,children:jsx(e$1,{...V,variant:q,tone:"neutral",size:"sm"})},x)}),f&&(()=>{let{tooltipContent:p,...x}=f;return jsx(a$2,{content:p,disabled:!p,children:jsx(e$2,{...x,size:"sm",variant:"ghost",tone:"neutral"})})})(),jsx(a$2,{content:W,children:jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{disabled:m.disabled,Icon:m.open?t:u,variant:"ghost",size:"sm",tone:"neutral"})})})]})]}),a$5&&jsx("p",{className:S(),children:a$5})]})]})},vt=({className:e,...o})=>{let a=useContext(g),{contentInner:n,content:i}=d({background:a});return jsx(Collapsible.Content,{className:i(),children:jsx("div",{...o,className:n({className:e})})})},Et=({className:e,...o})=>{let a=useContext(g),{fixedContent:n}=d({background:a});return jsx("div",{...o,className:n({className:e})})},Pt=({className:e,children:o,background:a="white",...n})=>{let{root:i}=d({background:a});return jsx(g.Provider,{value:a,children:jsx(Collapsible.Root,{className:i({className:e}),...n,children:o})})};export{ht as a,vt as b,Et as c,Pt as d};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-T2Q6B32U.js';import {r,d,g as g$1}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import g,{forwardRef,useId,useRef,useState,useCallback,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {jsxs,jsx}from'react/jsx-runtime';var U=forwardRef(({label:x,placeholder:R,error:t,selectMode:b=false,showClearButton:H=true,helperText:M,className:I,size:e="md",onClean:P,onChange:f,startIcon:u,endIcon:p,startComponent:c,fixedTopLabel:C,startText:i,disabled:o,required:v,...D},m)=>{let w=useId(),l=useRef(null),[s,h]=useState(false),T=!l.current?.value,F=useCallback(()=>{if(l.current&&!o){l.current.value="",h(false),P?.();let a={target:l.current,currentTarget:l.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};f?.(a);}},[o,f,l.current]);return useEffect(()=>{l.current&&h(l.current.value.length>0);},[]),jsxs("div",{className:a("flex flex-col",I),children:[jsxs("div",{className:a("relative flex flex-col rounded-lg bg-neutral-50",e==="lg"&&"h-12",e==="md"&&"h-10",e==="sm"&&"h-8"),children:[jsx("input",{id:w,disabled:o,required:v,className:a("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 disabled:bg-neutral-80 absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500 caret-neutral-900 ring-1 ring-neutral-400 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:text-neutral-900 focus:placeholder-neutral-500 focus:ring-2 disabled:text-neutral-400 disabled:ring-neutral-100",x&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700 hover:text-neutral-900",e==="lg"&&"text-base",e==="md"&&"text-sm",e==="sm"&&"text-sm",u?e==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":c?"pl-[6.5rem]":"pl-4",i&&"pl-[1.94rem]",p?e==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:R??"",ref:a=>{typeof m=="function"?m(a):m&&(m.current=a),l.current=a;},onChange:a=>{h(a.target.value.length>0),f?.(a);},...D}),c&&g.cloneElement(c,{className:a("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),u&&g.cloneElement(u,{size:18,className:a("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),i&&jsx("div",{className:"flex h-full items-center pl-3",children:jsx("p",{className:a("text-neutral-700",t&&"text-error-700"),children:i})}),x&&jsxs(Label,{htmlFor:w,className:a("peer-hover:text-primary-800 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:text-primary-800 peer-disabled:peer-not-focus:peer-placeholder-shown:bg-neutral-80 peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs",!t&&"peer-not-disabled:peer-not-focus:text-neutral-400 peer-not-disabled:peer-not-focus:peer-not-placeholder-shown:text-neutral-900",s&&"peer-disabled:bg-neutral-80",e==="lg"?"text-base peer-placeholder-shown:top-3 placeholder-shown:text-xs":e==="md"?"text-sm peer-placeholder-shown:top-2.5 placeholder-shown:text-xs":"text-sm peer-placeholder-shown:top-1.5 placeholder-shown:text-xs",!T&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",u?e==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":c?"peer-placeholder-shown:ml-[6rem]":"ml-3",C&&"-top-[0.375rem]! z-20 ml-3 text-xs! transition-none!",i&&"peer-placeholder-shown:ml-[1.94rem]"),children:[v&&"*",x]}),(H&&(!T||s)||t)&&jsxs("div",{className:a("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!o&&"flex",b||p?e==="lg"?"right-[2.81rem]":e==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsx(r,{size:e==="sm"?14:18,className:"text-error-700"}),!t&&jsx(d,{onMouseDown:F,size:e==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),p&&g.cloneElement(p,{size:e==="sm"?14:18,className:a("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),b&&jsx("div",{className:a("peer-hover:text-neutral peer-focus:text-primary-900 absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-disabled:text-neutral-400"),children:jsx(g$1,{className:e==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsx(a$1,{helperText:M,error:t,disabled:o})]})});export{U as a};
1
+ import {a as a$1}from'./chunk-T2Q6B32U.js';import {r,d,g as g$1}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import g,{forwardRef,useId,useRef,useState,useCallback,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {jsxs,jsx}from'react/jsx-runtime';var U=forwardRef(({label:f,placeholder:y,error:t,selectMode:b=false,showClearButton:H=true,helperText:M,className:I,size:e="md",onClean:P,onChange:x,startIcon:u,endIcon:p,startComponent:c,fixedTopLabel:D,startText:i,disabled:o,required:v,...F},m)=>{let w=useId(),l=useRef(null),[s,h]=useState(false),E=!l.current?.value,C=useCallback(()=>{if(l.current&&!o){l.current.value="",h(false),P?.();let a={target:l.current,currentTarget:l.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};x?.(a);}},[o,x,l.current]);return useEffect(()=>{l.current&&h(l.current.value.length>0);},[]),jsxs("div",{className:a("flex flex-col",I),children:[jsxs("div",{className:a("relative flex flex-col rounded-lg bg-neutral-50",e==="lg"&&"h-12",e==="md"&&"h-10",e==="sm"&&"h-8"),children:[jsx("input",{id:w,disabled:o,required:v,className:a("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 disabled:bg-neutral-80 absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500 caret-neutral-900 ring-1 ring-neutral-400 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:text-neutral-900 focus:placeholder-neutral-500 focus:ring-2 disabled:text-neutral-400 disabled:ring-neutral-100",f&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700 hover:text-neutral-900",e==="lg"&&"text-base",e==="md"&&"text-sm",e==="sm"&&"text-sm",u?e==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":c?"pl-[6.5rem]":"pl-4",i&&"pl-[1.94rem]",p?e==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:y??"",ref:a=>{typeof m=="function"?m(a):m&&(m.current=a),l.current=a;},onChange:a=>{h(a.target.value.length>0),x?.(a);},...F}),c&&g.cloneElement(c,{className:a("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),u&&g.cloneElement(u,{size:18,className:a("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),i&&jsx("div",{className:"flex h-full items-center pl-3",children:jsx("p",{className:a("text-neutral-700",t&&"text-error-700"),children:i})}),f&&jsxs(Label,{htmlFor:w,className:a("peer-hover:text-primary-800 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:text-primary-800 peer-disabled:peer-not-focus:peer-placeholder-shown:bg-neutral-80 peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs",!t&&"peer-not-disabled:peer-not-focus:text-neutral-400 peer-not-disabled:peer-not-focus:peer-not-placeholder-shown:text-neutral-900",s&&"peer-disabled:bg-neutral-80",e==="lg"?"text-base peer-placeholder-shown:top-3 placeholder-shown:text-xs":e==="md"?"text-sm peer-placeholder-shown:top-2.5 placeholder-shown:text-xs":"text-sm peer-placeholder-shown:top-1.5 placeholder-shown:text-xs",!E&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",u?e==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":c?"peer-placeholder-shown:ml-[6rem]":"ml-3",D&&"-top-[0.375rem]! z-20 ml-3 text-xs! transition-none!",i&&"peer-placeholder-shown:ml-[1.94rem]"),children:[v&&"*",f]}),(H&&(!E||s)||t)&&jsxs("div",{className:a("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!o&&"flex",b||p?e==="lg"?"right-[2.81rem]":e==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsx(r,{size:e==="sm"?14:18,className:"text-error-700"}),!t&&jsx(d,{onMouseDown:C,size:e==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),p&&g.cloneElement(p,{size:e==="sm"?14:18,className:a("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),b&&jsx("div",{className:a("peer-hover:text-neutral peer-focus:text-primary-900 absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-disabled:text-neutral-400"),children:jsx(g$1,{className:e==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsx(a$1,{helperText:M,error:t,disabled:o})]})});export{U as a};
@@ -1 +1 @@
1
- import {e}from'./chunk-PI7DECIN.js';import {i,h}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-2EC6JI3N.js';import {TabsRoot,TabList,TabIndicator,TabTrigger,TabContent}from'@ark-ui/react/tabs';import {createContext,useRef,useContext,useState,useEffect}from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var p=tv({slots:{root:"flex flex-col",listContainer:"relative flex min-w-0",list:["group/list no-scrollbar relative flex max-w-full gap-3 overflow-x-auto","[--fade-end:0px] [--fade-start:0px]","data-overflow-end:[--fade-end:calc(var(--spacing)*10)] data-overflow-start:[--fade-start:calc(var(--spacing)*10)]","[mask-image:linear-gradient(to_right,transparent,black_var(--fade-start),black_calc(100%-var(--fade-end)),transparent)]"],scrollButton:"absolute top-1/2 -translate-y-1/2",trigger:["font-inter flex shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-2 font-medium whitespace-nowrap","transition-colors duration-100 ease-[cubic-bezier(0.2,0,0,1)]","not-data-disabled:hover:bg-primary-100","focus-visible:ring-primary-800 focus-visible:rounded-sm focus-visible:ring-3 focus-visible:outline-none focus-visible:ring-inset","data-selected:not-data-disabled:font-semibold","data-disabled:cursor-not-allowed data-disabled:text-neutral-600"],label:"grid justify-items-center",labelText:"col-start-1 row-start-1",labelSpacer:"invisible col-start-1 row-start-1 font-semibold",icon:"size-3.5 shrink-0",indicator:["bottom-0 flex h-0.5 w-(--width) justify-center group-has-[[data-selected][data-disabled]]/list:hidden","group-has-[[data-selected]:focus-visible]/list:opacity-0","[--transition-duration:250ms] [--transition-timing-function:cubic-bezier(0.3,0,0,1)] motion-reduce:[--transition-duration:0ms]"],indicatorBar:"h-full w-10 rounded-full",content:"outline-none"},variants:{variant:{primary:{trigger:"data-selected:not-data-disabled:text-primary-700 h-8 min-w-13 text-sm leading-[143%] text-neutral-900",indicatorBar:"bg-primary-700"},secondary:{trigger:"h-6 min-w-12 text-xs leading-[133%] text-neutral-800 data-selected:not-data-disabled:text-neutral-900",indicatorBar:"bg-neutral-700"}}},defaultVariants:{variant:"primary"}}),v=createContext("primary"),x=()=>p({variant:useContext(v)}),I=({className:n,variant:r="primary",activationMode:i="manual",lazyMount:e=true,onValueChange:t,...a})=>jsx(v.Provider,{value:r,children:jsx(TabsRoot,{activationMode:i,lazyMount:e,...a,onValueChange:t?s=>t(s.value):void 0,className:p({variant:r}).root({className:n})})}),E=n=>{let[r,i]=useState({start:false,end:false});return useEffect(()=>{let e=n.current;if(!e)return;let t=()=>{let{scrollLeft:l,scrollWidth:h,clientWidth:C}=e,m=l>1,g=l+C<h-1;i(b=>b.start===m&&b.end===g?b:{start:m,end:g});},a=new ResizeObserver(t),s=()=>{a.disconnect(),a.observe(e),Array.from(e.children).forEach(l=>a.observe(l));},d=new MutationObserver(()=>{s(),t();});return s(),t(),e.addEventListener("scroll",t,{passive:true}),d.observe(e,{childList:true}),()=>{e.removeEventListener("scroll",t),a.disconnect(),d.disconnect();}},[n]),r},O=({className:n,children:r,...i$1})=>{let e$1=x(),t=useRef(null),a=E(t),s=d=>{let l=t.current;l?.scrollBy({left:d*l.clientWidth*.8,behavior:"smooth"});};return jsxs("div",{className:e$1.listContainer(),children:[jsxs(TabList,{...i$1,ref:t,"data-overflow-start":a.start?"":void 0,"data-overflow-end":a.end?"":void 0,className:e$1.list({className:n}),children:[r,jsx(TabIndicator,{className:e$1.indicator(),children:jsx("div",{className:e$1.indicatorBar()})})]}),a.start&&jsx(e,{Icon:i,variant:"ghost",tone:"neutral",size:"sm",tabIndex:-1,"aria-hidden":true,className:e$1.scrollButton({className:"left-0"}),onClick:()=>s(-1)}),a.end&&jsx(e,{Icon:h,variant:"ghost",tone:"neutral",size:"sm",tabIndex:-1,"aria-hidden":true,className:e$1.scrollButton({className:"right-0"}),onClick:()=>s(1)})]})},M={primary:"md",secondary:"sm"},j=({className:n,StartIcon:r,badgeNumber:i,children:e,...t})=>{let a$1=useContext(v),s=p({variant:a$1});return jsxs(TabTrigger,{...t,className:s.trigger({className:n}),children:[r&&jsx(r,{className:s.icon()}),jsxs("span",{className:s.label(),children:[jsx("span",{className:s.labelText(),children:e}),jsx("span",{"aria-hidden":true,className:s.labelSpacer(),children:e})]}),i&&jsx(a,{type:"square",variant:"white",size:M[a$1],...i})]})},F=({className:n,...r})=>{let i=x();return jsx(TabContent,{...r,className:i.content({className:n})})},J={Root:I,List:O,Trigger:j,Content:F};export{J as a};
1
+ import {e}from'./chunk-Z6BICKQK.js';import {i,h}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-2EC6JI3N.js';import {TabsRoot,TabList,TabIndicator,TabTrigger,TabContent}from'@ark-ui/react/tabs';import {createContext,useRef,useContext,useState,useEffect}from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var p=tv({slots:{root:"flex flex-col",listContainer:"relative flex min-w-0",list:["group/list no-scrollbar relative flex max-w-full gap-3 overflow-x-auto","[--fade-end:0px] [--fade-start:0px]","data-overflow-end:[--fade-end:calc(var(--spacing)*10)] data-overflow-start:[--fade-start:calc(var(--spacing)*10)]","[mask-image:linear-gradient(to_right,transparent,black_var(--fade-start),black_calc(100%-var(--fade-end)),transparent)]"],scrollButton:"absolute top-1/2 -translate-y-1/2",trigger:["font-inter flex shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-2 font-medium whitespace-nowrap","transition-colors duration-100 ease-[cubic-bezier(0.2,0,0,1)]","not-data-disabled:hover:bg-primary-100","focus-visible:ring-primary-800 focus-visible:rounded-sm focus-visible:ring-3 focus-visible:outline-none focus-visible:ring-inset","data-selected:not-data-disabled:font-semibold","data-disabled:cursor-not-allowed data-disabled:text-neutral-600"],label:"grid justify-items-center",labelText:"col-start-1 row-start-1",labelSpacer:"invisible col-start-1 row-start-1 font-semibold",icon:"size-3.5 shrink-0",indicator:["bottom-0 flex h-0.5 w-(--width) justify-center group-has-[[data-selected][data-disabled]]/list:hidden","group-has-[[data-selected]:focus-visible]/list:opacity-0","[--transition-duration:250ms] [--transition-timing-function:cubic-bezier(0.3,0,0,1)] motion-reduce:[--transition-duration:0ms]"],indicatorBar:"h-full w-10 rounded-full",content:"outline-none"},variants:{variant:{primary:{trigger:"data-selected:not-data-disabled:text-primary-700 h-8 min-w-13 text-sm leading-[143%] text-neutral-900",indicatorBar:"bg-primary-700"},secondary:{trigger:"h-6 min-w-12 text-xs leading-[133%] text-neutral-800 data-selected:not-data-disabled:text-neutral-900",indicatorBar:"bg-neutral-700"}}},defaultVariants:{variant:"primary"}}),v=createContext("primary"),x=()=>p({variant:useContext(v)}),I=({className:n,variant:r="primary",activationMode:i="manual",lazyMount:e=true,onValueChange:t,...a})=>jsx(v.Provider,{value:r,children:jsx(TabsRoot,{activationMode:i,lazyMount:e,...a,onValueChange:t?s=>t(s.value):void 0,className:p({variant:r}).root({className:n})})}),E=n=>{let[r,i]=useState({start:false,end:false});return useEffect(()=>{let e=n.current;if(!e)return;let t=()=>{let{scrollLeft:l,scrollWidth:h,clientWidth:C}=e,m=l>1,g=l+C<h-1;i(b=>b.start===m&&b.end===g?b:{start:m,end:g});},a=new ResizeObserver(t),s=()=>{a.disconnect(),a.observe(e),Array.from(e.children).forEach(l=>a.observe(l));},d=new MutationObserver(()=>{s(),t();});return s(),t(),e.addEventListener("scroll",t,{passive:true}),d.observe(e,{childList:true}),()=>{e.removeEventListener("scroll",t),a.disconnect(),d.disconnect();}},[n]),r},O=({className:n,children:r,...i$1})=>{let e$1=x(),t=useRef(null),a=E(t),s=d=>{let l=t.current;l?.scrollBy({left:d*l.clientWidth*.8,behavior:"smooth"});};return jsxs("div",{className:e$1.listContainer(),children:[jsxs(TabList,{...i$1,ref:t,"data-overflow-start":a.start?"":void 0,"data-overflow-end":a.end?"":void 0,className:e$1.list({className:n}),children:[r,jsx(TabIndicator,{className:e$1.indicator(),children:jsx("div",{className:e$1.indicatorBar()})})]}),a.start&&jsx(e,{Icon:i,variant:"ghost",tone:"neutral",size:"sm",tabIndex:-1,"aria-hidden":true,className:e$1.scrollButton({className:"left-0"}),onClick:()=>s(-1)}),a.end&&jsx(e,{Icon:h,variant:"ghost",tone:"neutral",size:"sm",tabIndex:-1,"aria-hidden":true,className:e$1.scrollButton({className:"right-0"}),onClick:()=>s(1)})]})},M={primary:"md",secondary:"sm"},j=({className:n,StartIcon:r,badgeNumber:i,children:e,...t})=>{let a$1=useContext(v),s=p({variant:a$1});return jsxs(TabTrigger,{...t,className:s.trigger({className:n}),children:[r&&jsx(r,{className:s.icon()}),jsxs("span",{className:s.label(),children:[jsx("span",{className:s.labelText(),children:e}),jsx("span",{"aria-hidden":true,className:s.labelSpacer(),children:e})]}),i&&jsx(a,{type:"square",variant:"white",size:M[a$1],...i})]})},F=({className:n,...r})=>{let i=x();return jsx(TabContent,{...r,className:i.content({className:n})})},J={Root:I,List:O,Trigger:j,Content:F};export{J as a};
@@ -1 +1 @@
1
- import {r}from'./chunk-VBHBIUWS.js';import {c,b,d,e,a as a$2}from'./chunk-MQL3NZ6S.js';import {a}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-PYPHO6IJ.js';import {w}from'./chunk-QMPBFFFC.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select,useSelectContext}from'@ark-ui/react/select';import {forwardRef,useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var U=["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30","23:59"],j="00:00",G=({placeholder:a,state:n})=>{let i=useSelectContext().value.length>0;return jsx(e,{as:Select.Control,state:n,trailingClassName:"pointer-events-none",clearAdornment:i?jsx(a$2,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:r=>r.stopPropagation()}):void 0,segment:jsx(Select.Indicator,{className:"flex h-full w-full items-center justify-center",children:jsx(w,{className:"size-4.5"})}),segmentClassName:"pointer-events-none w-10",children:r=>jsx(Select.Trigger,{className:a$1(r,"flex cursor-pointer items-center text-left after:absolute after:inset-0 after:z-10 after:content-[''] data-disabled:cursor-not-allowed"),children:jsx(Select.ValueText,{className:"min-w-0 flex-1 truncate text-left",placeholder:a})})})},J=forwardRef((a$2,n)=>{let{formatTime:o}=r(),{className:i,label:r$1,labelProps:w,required:m,error:N,invalid:L,isItemDisabled:u,value:s,helperText:R,placeholder:F,onValueChange:p,defaultValue:f,disabled:g,readOnly:C,...D}=a$2,h=useMemo(()=>createListCollection({items:U,isItemDisabled:u,itemToString:o}),[o,u]),E=F??o(j),H=useCallback(l=>{p?.(l.value.at(0)??null);},[p]),P=N||L,d$1=c({error:P,disabled:g,readOnly:C});return jsxs(Select.Root,{ref:n,"data-disabled":d$1==="disabled"?"":void 0,"data-error":d(d$1)||void 0,disabled:g,invalid:P,readOnly:C,required:m,collection:h,className:a$1(b,i),positioning:{placement:"bottom-end",getAnchorRect:l=>l instanceof HTMLElement?l.parentElement?.getBoundingClientRect()??null:null},onValueChange:H,value:s===void 0?void 0:s?[s]:[],defaultValue:f?[f]:void 0,...D,children:[jsx(c$1,{...w,as:Select.Label,label:r$1,required:m}),jsx(G,{placeholder:E,state:d$1}),jsx(a,{children:R}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsx(Select.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg outline-none",children:h.items.map(l=>jsx(Select.Item,{item:l,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:o(l)})},l))})})}),jsx(Select.HiddenSelect,{required:false})]})});J.displayName="TimePicker";export{J as a};
1
+ import {r}from'./chunk-VBHBIUWS.js';import {c,b,d,e,a as a$2}from'./chunk-MQL3NZ6S.js';import {a}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-P3WXE2MQ.js';import {w}from'./chunk-QMPBFFFC.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select,useSelectContext}from'@ark-ui/react/select';import {forwardRef,useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var U=["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30","23:59"],j="00:00",G=({placeholder:a,state:n})=>{let i=useSelectContext().value.length>0;return jsx(e,{as:Select.Control,state:n,trailingClassName:"pointer-events-none",clearAdornment:i?jsx(a$2,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:r=>r.stopPropagation()}):void 0,segment:jsx(Select.Indicator,{className:"flex h-full w-full items-center justify-center",children:jsx(w,{className:"size-4.5"})}),segmentClassName:"pointer-events-none w-10",children:r=>jsx(Select.Trigger,{className:a$1(r,"flex cursor-pointer items-center text-left after:absolute after:inset-0 after:z-10 after:content-[''] data-disabled:cursor-not-allowed"),children:jsx(Select.ValueText,{className:"min-w-0 flex-1 truncate text-left",placeholder:a})})})},J=forwardRef((a$2,n)=>{let{formatTime:o}=r(),{className:i,label:r$1,labelProps:w,required:m,error:N,invalid:L,isItemDisabled:u,value:s,helperText:R,placeholder:F,onValueChange:p,defaultValue:f,disabled:g,readOnly:C,...D}=a$2,h=useMemo(()=>createListCollection({items:U,isItemDisabled:u,itemToString:o}),[o,u]),E=F??o(j),H=useCallback(l=>{p?.(l.value.at(0)??null);},[p]),P=N||L,d$1=c({error:P,disabled:g,readOnly:C});return jsxs(Select.Root,{ref:n,"data-disabled":d$1==="disabled"?"":void 0,"data-error":d(d$1)||void 0,disabled:g,invalid:P,readOnly:C,required:m,collection:h,className:a$1(b,i),positioning:{placement:"bottom-end",getAnchorRect:l=>l instanceof HTMLElement?l.parentElement?.getBoundingClientRect()??null:null},onValueChange:H,value:s===void 0?void 0:s?[s]:[],defaultValue:f?[f]:void 0,...D,children:[jsx(c$1,{...w,as:Select.Label,label:r$1,required:m}),jsx(G,{placeholder:E,state:d$1}),jsx(a,{children:R}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsx(Select.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg outline-none",children:h.items.map(l=>jsx(Select.Item,{item:l,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:o(l)})},l))})})}),jsx(Select.HiddenSelect,{required:false})]})});J.displayName="TimePicker";export{J as a};
@@ -1 +1 @@
1
- import {e}from'./chunk-LJZ245JN.js';import {a as a$1}from'./chunk-VIMWKUML.js';import {c}from'./chunk-PYPHO6IJ.js';import {a}from'./chunk-OBZIYJO7.js';import {ToggleGroup}from'@ark-ui/react/toggle-group';import {jsxs,jsx}from'react/jsx-runtime';var l=o=>`${typeof o}:${o}`,R=["vertical","horizontal"],$=(o,{selectedValue:a,isSelected:r})=>a!=null&&!r,k=({label:o,labelProps:a$2,orientation:r="vertical",options:h,value:i,onChange:f,required:v,disabled:s,isOptionDisabled:p,error:O,helperText:u,variant:y,tone:z,size:I,className:S})=>{let C=r==="horizontal",P=({value:e})=>{let c=h.find(n=>l(n.value)===e[0]);f(c?.value??null);};return jsxs("div",{className:a("group flex flex-col",S),"data-error":O||void 0,"data-disabled":s||void 0,children:[jsxs("div",{className:a("flex",C?"flex-row items-center":"flex-col"),children:[o&&jsx(c,{...a$2,as:"p",label:o,required:v,className:C?"mr-3 mb-0":"mb-3"}),jsx(ToggleGroup.Root,{"aria-label":o,className:"flex flex-wrap gap-3",deselectable:true,disabled:s,orientation:"horizontal",tabIndex:s?-1:void 0,value:i==null?[]:[l(i)],onValueChange:P,children:h.map((e$1,c)=>{let n=i===e$1.value,V=typeof p=="function"?p(e$1,{selectedValue:i,isSelected:n,index:c}):!!p,G=e$1.disabled||V;return jsx(ToggleGroup.Item,{asChild:true,value:l(e$1.value),disabled:G,children:jsx(e,{selected:n,variant:y,tone:z,size:I,StartIcon:e$1.StartIcon,children:e$1.label})},l(e$1.value))})})]}),u&&jsx(a$1,{children:u})]})};export{R as a,$ as b,k as c};
1
+ import {e}from'./chunk-LJZ245JN.js';import {a as a$1}from'./chunk-VIMWKUML.js';import {c}from'./chunk-P3WXE2MQ.js';import {a}from'./chunk-OBZIYJO7.js';import {ToggleGroup}from'@ark-ui/react/toggle-group';import {jsxs,jsx}from'react/jsx-runtime';var l=o=>`${typeof o}:${o}`,R=["vertical","horizontal"],$=(o,{selectedValue:a,isSelected:r})=>a!=null&&!r,k=({label:o,labelProps:a$2,orientation:r="vertical",options:h,value:i,onChange:f,required:v,disabled:s,isOptionDisabled:p,error:O,helperText:u,variant:y,tone:z,size:I,className:S})=>{let C=r==="horizontal",P=({value:e})=>{let c=h.find(n=>l(n.value)===e[0]);f(c?.value??null);};return jsxs("div",{className:a("group flex flex-col",S),"data-error":O||void 0,"data-disabled":s||void 0,children:[jsxs("div",{className:a("flex",C?"flex-row items-center":"flex-col"),children:[o&&jsx(c,{...a$2,as:"p",label:o,required:v,className:C?"mr-3 mb-0":"mb-3"}),jsx(ToggleGroup.Root,{"aria-label":o,className:"flex flex-wrap gap-3",deselectable:true,disabled:s,orientation:"horizontal",tabIndex:s?-1:void 0,value:i==null?[]:[l(i)],onValueChange:P,children:h.map((e$1,c)=>{let n=i===e$1.value,V=typeof p=="function"?p(e$1,{selectedValue:i,isSelected:n,index:c}):!!p,G=e$1.disabled||V;return jsx(ToggleGroup.Item,{asChild:true,value:l(e$1.value),disabled:G,children:jsx(e,{selected:n,variant:y,tone:z,size:I,StartIcon:e$1.StartIcon,children:e$1.label})},l(e$1.value))})})]}),u&&jsx(a$1,{children:u})]})};export{R as a,$ as b,k as c};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-AWRP67K4.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-LHHQ33KR.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {useCallback}from'react';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {jsxs,jsx}from'react/jsx-runtime';var H=({onOpenChange:t,...o})=>{let i=useCallback(p=>{t?.(p.open);},[t]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:i,...o})},F=Dialog.Trigger,f=r.forwardRef(({className:t,children:o,...i},p)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-layer fixed inset-0 bg-neutral-900/50"}),jsx(Dialog.Positioner,{className:"z-layer fixed inset-0",children:jsx(Dialog.Content,{ref:p,className:a("elevation-9 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 z-layer fixed top-[50%] left-[50%] grid max-h-[80vh] w-full max-w-2xl translate-x-[-50%] translate-y-[-50%] overflow-y-auto rounded-2xl bg-neutral-50 py-3 pr-0 duration-200",t),...i,children:o})})]}));f.displayName="DialogContent";var D=({className:t,...o})=>jsx("div",{className:a("mr-4 mb-4 ml-6 flex flex-col gap-4 text-left",t),...o});D.displayName="DialogHeader";var u=({className:t,...o})=>jsxs("div",{children:[jsx(a$1,{className:"w-full"}),jsx("div",{className:a("mx-6 mt-3 flex justify-end gap-2",t),...o})]});u.displayName="DialogFooter";var M=({className:t,...o})=>jsx("div",{className:a("mx-6 mb-4.5",t),...o}),C=r.forwardRef(({className:t,...o},i)=>jsxs("div",{className:"flex items-center justify-between",children:[jsx(Dialog.Title,{ref:i,className:a("font-jakarta pr-2 text-lg leading-[160%] font-semibold",t),...o}),jsxs(Dialog.CloseTrigger,{className:"h-5.5 w-5.5",children:[jsx(d,{className:"h-5.5 w-5.5"}),jsx("span",{className:"sr-only",children:"Close"})]})]}));C.displayName="DialogTitle";var R=r.forwardRef(({className:t,...o},i)=>jsx(Dialog.Description,{ref:i,className:a("font-inter text-sm leading-[130%] font-normal whitespace-pre-line",t),...o}));R.displayName="DialogDescription";var O=t=>jsx(e,{variant:"primary",...t}),z=t=>jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(e,{variant:"secondary",...t})}),L=t=>jsx(e,{variant:"ghost",...t});export{H as a,F as b,f as c,D as d,u as e,M as f,C as g,R as h,O as i,z as j,L as k};
1
+ import {a as a$1}from'./chunk-AWRP67K4.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-CNMAEXOF.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {useCallback}from'react';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {jsxs,jsx}from'react/jsx-runtime';var H=({onOpenChange:t,...o})=>{let i=useCallback(p=>{t?.(p.open);},[t]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:i,...o})},F=Dialog.Trigger,f=r.forwardRef(({className:t,children:o,...i},p)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-layer fixed inset-0 bg-neutral-900/50"}),jsx(Dialog.Positioner,{className:"z-layer fixed inset-0",children:jsx(Dialog.Content,{ref:p,className:a("elevation-9 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 z-layer fixed top-[50%] left-[50%] grid max-h-[80vh] w-full max-w-2xl translate-x-[-50%] translate-y-[-50%] overflow-y-auto rounded-2xl bg-neutral-50 py-3 pr-0 duration-200",t),...i,children:o})})]}));f.displayName="DialogContent";var D=({className:t,...o})=>jsx("div",{className:a("mr-4 mb-4 ml-6 flex flex-col gap-4 text-left",t),...o});D.displayName="DialogHeader";var u=({className:t,...o})=>jsxs("div",{children:[jsx(a$1,{className:"w-full"}),jsx("div",{className:a("mx-6 mt-3 flex justify-end gap-2",t),...o})]});u.displayName="DialogFooter";var M=({className:t,...o})=>jsx("div",{className:a("mx-6 mb-4.5",t),...o}),C=r.forwardRef(({className:t,...o},i)=>jsxs("div",{className:"flex items-center justify-between",children:[jsx(Dialog.Title,{ref:i,className:a("font-jakarta pr-2 text-lg leading-[160%] font-semibold",t),...o}),jsxs(Dialog.CloseTrigger,{className:"h-5.5 w-5.5",children:[jsx(d,{className:"h-5.5 w-5.5"}),jsx("span",{className:"sr-only",children:"Close"})]})]}));C.displayName="DialogTitle";var R=r.forwardRef(({className:t,...o},i)=>jsx(Dialog.Description,{ref:i,className:a("font-inter text-sm leading-[130%] font-normal whitespace-pre-line",t),...o}));R.displayName="DialogDescription";var O=t=>jsx(e,{variant:"primary",...t}),z=t=>jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(e,{variant:"secondary",...t})}),L=t=>jsx(e,{variant:"ghost",...t});export{H as a,F as b,f as c,D as d,u as e,M as f,C as g,R as h,O as i,z as j,L as k};
@@ -1 +1 @@
1
- import {a as a$5}from'./chunk-RBXMHWJQ.js';import {b,e,a as a$3}from'./chunk-2SFCNWDX.js';import {a as a$1}from'./chunk-SKZQQUJS.js';import {c,b as b$1,d,e as e$1,a as a$4}from'./chunk-MQL3NZ6S.js';import {a}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-PYPHO6IJ.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {useAsyncList}from'@ark-ui/react/collection';import {createListCollection,Select,useSelectContext}from'@ark-ui/react/select';import {forwardRef,useRef,useState,useMemo,useCallback,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';var He=a$5,ge="lg",be=({clearable:i,placeholder:u,size:m,state:S})=>{let d=useSelectContext().value.length>0;return jsx(e$1,{as:Select.Control,size:m,state:S,trailingClassName:"pointer-events-none",clearAdornment:i&&d?jsx(a$4,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:s=>s.stopPropagation()}):void 0,indicator:jsx(Select.Indicator,{className:"group/chevron-host flex shrink-0 items-center justify-center",children:jsx(a$3,{})}),children:s=>jsx(Select.Trigger,{className:a$2(s,"flex cursor-pointer items-center text-left after:absolute after:inset-0 after:z-10 after:content-[''] data-disabled:cursor-not-allowed"),children:jsx(Select.ValueText,{className:"min-w-0 flex-1 truncate text-left",placeholder:u})})})};function he(i,u){let{className:m,label:S,labelProps:h,required:d$1,error:s,isItemDisabled:v,value:l,helperText:T,placeholder:X,emptyState:Y,onSelect:x,onOpenChange:y,defaultValue:C,options:O,load:r,clearable:$=true,disabled:R,id:ee,invalid:te,readOnly:I,size:oe=ge,...ne}=i,le=Object.hasOwn(i,"defaultValue"),w=Object.hasOwn(i,"value"),P=typeof l=="object"&&l!==null?l.value:l,z=useRef(null),E=useRef(null),[re,ae]=useState(false),o=useAsyncList({load:async({cursor:e,signal:a})=>{if(!r)return {items:[]};let c=e??1,p=await r({page:c,pageSize:b,signal:a});return {items:p.options,cursor:p.hasMore?c+1:void 0}}}),L=useMemo(()=>{let e=r?o.items:O;return typeof l!="object"||l===null||e.some(a=>a.value===l.value)?e:[l,...e]},[o.items,r,O,l]),f=useMemo(()=>createListCollection({items:L,isItemDisabled:v,itemToValue:e=>String(e.value)}),[L,v]),ie=useCallback(e=>{let a=e.items.at(0)??null;x?.(a);},[x]),se=useCallback(e=>{ae(e.open),y?.(e),e.open&&r&&o.empty&&!o.loading&&o.reload();},[o.empty,o.loading,o.reload,r,y]),V=!!r&&re&&o.hasMore&&!o.loading&&!o.error;if(useEffect(()=>{let e=E.current,a=z.current;if(!e||!a||!V)return;let c=new IntersectionObserver(p=>{p[0]?.isIntersecting&&o.loadMore();},{root:a,rootMargin:"0px 0px 64px 0px"});return c.observe(e),()=>c.disconnect()},[V,o.loadMore]),le&&w)throw new Error("Cannot set both defaultValue and value props on Select. Use one or the other.");let A=!!(s||te),g=c({error:A,disabled:R,readOnly:I});return jsxs(Select.Root,{ref:u,"data-disabled":g==="disabled"?"":void 0,"data-error":d(g)||void 0,disabled:R,id:ee,invalid:A,readOnly:I,required:d$1,collection:f,className:a$2(b$1,m),positioning:{placement:"bottom-end",getAnchorRect:e=>e instanceof HTMLElement?e.parentElement?.getBoundingClientRect()??null:null},onValueChange:ie,onOpenChange:se,value:w?P!=null?[String(P)]:[]:void 0,defaultValue:C!=null?[String(C)]:void 0,...ne,children:[jsx(c$1,{...h,as:Select.Label,label:S,required:d$1}),jsx(be,{clearable:$,placeholder:X,size:oe,state:g}),T&&jsx(a,{children:T}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsxs(Select.Content,{ref:z,"aria-busy":o.loading||void 0,className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg outline-none",children:[f.items.map(e=>jsx(Select.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:e.label})},e.value)),o.loading&&jsx(e,{}),!o.loading&&f.items.length===0&&jsx(a$1,{size:"sm",variant:"empty",...Y,className:"mx-auto"}),r&&jsx("div",{ref:E,className:"h-px","aria-hidden":"true"})]})})}),jsx(Select.HiddenSelect,{required:false})]})}var Q=forwardRef(he);Q.displayName="Select";var qe=Q;export{He as a,ge as b,qe as c};
1
+ import {a as a$5}from'./chunk-RBXMHWJQ.js';import {b,e,a as a$3}from'./chunk-THJIENWN.js';import {a as a$1}from'./chunk-LW4WFB3N.js';import {c,b as b$1,d,e as e$1,a as a$4}from'./chunk-MQL3NZ6S.js';import {a}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-P3WXE2MQ.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {useAsyncList}from'@ark-ui/react/collection';import {createListCollection,Select,useSelectContext}from'@ark-ui/react/select';import {forwardRef,useRef,useState,useMemo,useCallback,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';var He=a$5,ge="lg",be=({clearable:i,placeholder:u,size:m,state:S})=>{let d=useSelectContext().value.length>0;return jsx(e$1,{as:Select.Control,size:m,state:S,trailingClassName:"pointer-events-none",clearAdornment:i&&d?jsx(a$4,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:s=>s.stopPropagation()}):void 0,indicator:jsx(Select.Indicator,{className:"group/chevron-host flex shrink-0 items-center justify-center",children:jsx(a$3,{})}),children:s=>jsx(Select.Trigger,{className:a$2(s,"flex cursor-pointer items-center text-left after:absolute after:inset-0 after:z-10 after:content-[''] data-disabled:cursor-not-allowed"),children:jsx(Select.ValueText,{className:"min-w-0 flex-1 truncate text-left",placeholder:u})})})};function he(i,u){let{className:m,label:S,labelProps:h,required:d$1,error:s,isItemDisabled:v,value:l,helperText:T,placeholder:X,emptyState:Y,onSelect:x,onOpenChange:y,defaultValue:C,options:O,load:r,clearable:$=true,disabled:R,id:ee,invalid:te,readOnly:I,size:oe=ge,...ne}=i,le=Object.hasOwn(i,"defaultValue"),w=Object.hasOwn(i,"value"),P=typeof l=="object"&&l!==null?l.value:l,z=useRef(null),E=useRef(null),[re,ae]=useState(false),o=useAsyncList({load:async({cursor:e,signal:a})=>{if(!r)return {items:[]};let c=e??1,p=await r({page:c,pageSize:b,signal:a});return {items:p.options,cursor:p.hasMore?c+1:void 0}}}),L=useMemo(()=>{let e=r?o.items:O;return typeof l!="object"||l===null||e.some(a=>a.value===l.value)?e:[l,...e]},[o.items,r,O,l]),f=useMemo(()=>createListCollection({items:L,isItemDisabled:v,itemToValue:e=>String(e.value)}),[L,v]),ie=useCallback(e=>{let a=e.items.at(0)??null;x?.(a);},[x]),se=useCallback(e=>{ae(e.open),y?.(e),e.open&&r&&o.empty&&!o.loading&&o.reload();},[o.empty,o.loading,o.reload,r,y]),V=!!r&&re&&o.hasMore&&!o.loading&&!o.error;if(useEffect(()=>{let e=E.current,a=z.current;if(!e||!a||!V)return;let c=new IntersectionObserver(p=>{p[0]?.isIntersecting&&o.loadMore();},{root:a,rootMargin:"0px 0px 64px 0px"});return c.observe(e),()=>c.disconnect()},[V,o.loadMore]),le&&w)throw new Error("Cannot set both defaultValue and value props on Select. Use one or the other.");let A=!!(s||te),g=c({error:A,disabled:R,readOnly:I});return jsxs(Select.Root,{ref:u,"data-disabled":g==="disabled"?"":void 0,"data-error":d(g)||void 0,disabled:R,id:ee,invalid:A,readOnly:I,required:d$1,collection:f,className:a$2(b$1,m),positioning:{placement:"bottom-end",getAnchorRect:e=>e instanceof HTMLElement?e.parentElement?.getBoundingClientRect()??null:null},onValueChange:ie,onOpenChange:se,value:w?P!=null?[String(P)]:[]:void 0,defaultValue:C!=null?[String(C)]:void 0,...ne,children:[jsx(c$1,{...h,as:Select.Label,label:S,required:d$1}),jsx(be,{clearable:$,placeholder:X,size:oe,state:g}),T&&jsx(a,{children:T}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsxs(Select.Content,{ref:z,"aria-busy":o.loading||void 0,className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg outline-none",children:[f.items.map(e=>jsx(Select.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:e.label})},e.value)),o.loading&&jsx(e,{}),!o.loading&&f.items.length===0&&jsx(a$1,{size:"sm",variant:"empty",...Y,className:"mx-auto"}),r&&jsx("div",{ref:E,className:"h-px","aria-hidden":"true"})]})})}),jsx(Select.HiddenSelect,{required:false})]})}var Q=forwardRef(he);Q.displayName="Select";var qe=Q;export{He as a,ge as b,qe as c};
@@ -1 +1 @@
1
- import {e}from'./chunk-PI7DECIN.js';import {e as e$1}from'./chunk-LHHQ33KR.js';import {a}from'./chunk-OBZIYJO7.js';import {createContext,forwardRef,useState,useEffect,useContext,useCallback,useMemo}from'react';import {PanelRightCloseIcon,PanelRightOpenIcon,PanelLeftCloseIcon,PanelLeftOpenIcon}from'lucide-react';import {jsxs,jsx}from'react/jsx-runtime';var h=createContext(null),f=()=>{let t=useContext(h);if(!t)throw new Error("useSidebar must be used within a SidebarProvider");return t},E=({open:t,defaultOpen:i=false,onOpenChange:a,storageKey:r,children:s})=>{let e=t!==void 0,[l,d]=useState(()=>{if(!e&&r&&typeof window<"u"){let u=localStorage.getItem(r);if(u!==null)return u==="true"}return i}),o=e?t:l;useEffect(()=>{!r||typeof window>"u"||localStorage.setItem(r,String(o));},[o,r]);let p=useCallback(()=>{let u=!o;e||d(u),a?.(u);},[e,o,a]),m=useMemo(()=>({isOpen:o,toggle:p}),[o,p]);return jsx(h.Provider,{value:m,children:s})};E.displayName="SidebarProvider";var y={left:{open:PanelLeftOpenIcon,close:PanelLeftCloseIcon},right:{open:PanelRightOpenIcon,close:PanelRightCloseIcon}},M=forwardRef(({side:t="left",className:i,children:a$1,...r},s)=>{let{isOpen:e$1,toggle:l}=f(),[d,o]=useState(e$1);useEffect(()=>{e$1&&o(true);},[e$1]);let p=e$1?y[t].close:y[t].open;return jsxs("aside",{ref:s,className:a("flex min-h-0 shrink-0 flex-col overflow-hidden border-neutral-400 bg-neutral-100 transition-[width] duration-300 ease-[cubic-bezier(0.165,0.84,0.44,1)]",t==="left"?"order-first border-r":"order-last border-l",e$1?"w-75":"w-13",i),...r,children:[jsx("div",{className:a("flex shrink-0 pt-2 pb-1",e$1?t==="left"?"justify-end px-2":"justify-start px-2":"justify-center"),children:jsx(e,{variant:"ghost",size:"md",Icon:p,onClick:l,"aria-expanded":e$1,"aria-label":e$1?"Collapse sidebar":"Expand sidebar"})}),d&&a$1]})});M.displayName="Sidebar";var k=forwardRef(({title:t,subtitle:i,Icon:a$1,buttons:r=[],className:s,...e$1},l)=>{let{isOpen:d}=f();return jsxs("div",{ref:l,className:a("flex min-w-75 shrink-0 flex-col border-b border-neutral-200 px-4 pb-3 transition-opacity duration-200",d?"opacity-100 delay-100":"pointer-events-none opacity-0",s),...e$1,children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[a$1&&jsx(a$1,{className:"size-4.5 shrink-0 text-neutral-900"}),jsx("p",{className:"font-jakarta line-clamp-1 flex-1 leading-[130%] font-semibold break-all text-neutral-900",children:t}),r.length>0&&jsx("div",{className:"flex gap-2",children:r.map(({visible:o=true,...p},m)=>o?jsx(e,{variant:"ghost",tone:"neutral",size:"sm",...p},m):null)})]}),i&&jsx("p",{className:"font-inter mt-1 line-clamp-2 text-xs leading-[130%] text-neutral-800",children:i})]})});k.displayName="SidebarHeader";var B=forwardRef(({className:t,children:i,...a$1},r)=>{let{isOpen:s}=f();return jsx("div",{ref:r,className:a("min-h-0 min-w-75 flex-1 shrink-0 overflow-y-auto px-4 py-2 transition-opacity duration-200",s?"opacity-100 delay-100":"pointer-events-none opacity-0",t),...a$1,children:i})});B.displayName="SidebarBody";var D=forwardRef(({className:t,buttons:i=[],children:a$1,...r},s)=>{let{isOpen:e}=f();return jsx("div",{ref:s,className:a("min-w-75 shrink-0 border-t border-neutral-200 px-4.5 pt-3 pb-4.5 transition-opacity duration-200",e?"opacity-100 delay-100":"pointer-events-none opacity-0",t),...r,children:i.length>0?jsx("div",{className:"flex gap-3",children:i.map(({visible:l=true,...d},o)=>l?jsx("div",{className:"flex-1",children:jsx(e$1,{size:"lg",className:"w-full",...d})},o):null)}):a$1})});D.displayName="SidebarFooter";export{f as a,E as b,M as c,k as d,B as e,D as f};
1
+ import {e}from'./chunk-Z6BICKQK.js';import {e as e$1}from'./chunk-CNMAEXOF.js';import {a}from'./chunk-OBZIYJO7.js';import {createContext,forwardRef,useState,useEffect,useContext,useCallback,useMemo}from'react';import {PanelRightCloseIcon,PanelRightOpenIcon,PanelLeftCloseIcon,PanelLeftOpenIcon}from'lucide-react';import {jsxs,jsx}from'react/jsx-runtime';var h=createContext(null),f=()=>{let t=useContext(h);if(!t)throw new Error("useSidebar must be used within a SidebarProvider");return t},E=({open:t,defaultOpen:i=false,onOpenChange:a,storageKey:r,children:s})=>{let e=t!==void 0,[l,d]=useState(()=>{if(!e&&r&&typeof window<"u"){let u=localStorage.getItem(r);if(u!==null)return u==="true"}return i}),o=e?t:l;useEffect(()=>{!r||typeof window>"u"||localStorage.setItem(r,String(o));},[o,r]);let p=useCallback(()=>{let u=!o;e||d(u),a?.(u);},[e,o,a]),m=useMemo(()=>({isOpen:o,toggle:p}),[o,p]);return jsx(h.Provider,{value:m,children:s})};E.displayName="SidebarProvider";var y={left:{open:PanelLeftOpenIcon,close:PanelLeftCloseIcon},right:{open:PanelRightOpenIcon,close:PanelRightCloseIcon}},M=forwardRef(({side:t="left",className:i,children:a$1,...r},s)=>{let{isOpen:e$1,toggle:l}=f(),[d,o]=useState(e$1);useEffect(()=>{e$1&&o(true);},[e$1]);let p=e$1?y[t].close:y[t].open;return jsxs("aside",{ref:s,className:a("flex min-h-0 shrink-0 flex-col overflow-hidden border-neutral-400 bg-neutral-100 transition-[width] duration-300 ease-[cubic-bezier(0.165,0.84,0.44,1)]",t==="left"?"order-first border-r":"order-last border-l",e$1?"w-75":"w-13",i),...r,children:[jsx("div",{className:a("flex shrink-0 pt-2 pb-1",e$1?t==="left"?"justify-end px-2":"justify-start px-2":"justify-center"),children:jsx(e,{variant:"ghost",size:"md",Icon:p,onClick:l,"aria-expanded":e$1,"aria-label":e$1?"Collapse sidebar":"Expand sidebar"})}),d&&a$1]})});M.displayName="Sidebar";var k=forwardRef(({title:t,subtitle:i,Icon:a$1,buttons:r=[],className:s,...e$1},l)=>{let{isOpen:d}=f();return jsxs("div",{ref:l,className:a("flex min-w-75 shrink-0 flex-col border-b border-neutral-200 px-4 pb-3 transition-opacity duration-200",d?"opacity-100 delay-100":"pointer-events-none opacity-0",s),...e$1,children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[a$1&&jsx(a$1,{className:"size-4.5 shrink-0 text-neutral-900"}),jsx("p",{className:"font-jakarta line-clamp-1 flex-1 leading-[130%] font-semibold break-all text-neutral-900",children:t}),r.length>0&&jsx("div",{className:"flex gap-2",children:r.map(({visible:o=true,...p},m)=>o?jsx(e,{variant:"ghost",tone:"neutral",size:"sm",...p},m):null)})]}),i&&jsx("p",{className:"font-inter mt-1 line-clamp-2 text-xs leading-[130%] text-neutral-800",children:i})]})});k.displayName="SidebarHeader";var B=forwardRef(({className:t,children:i,...a$1},r)=>{let{isOpen:s}=f();return jsx("div",{ref:r,className:a("min-h-0 min-w-75 flex-1 shrink-0 overflow-y-auto px-4 py-2 transition-opacity duration-200",s?"opacity-100 delay-100":"pointer-events-none opacity-0",t),...a$1,children:i})});B.displayName="SidebarBody";var D=forwardRef(({className:t,buttons:i=[],children:a$1,...r},s)=>{let{isOpen:e}=f();return jsx("div",{ref:s,className:a("min-w-75 shrink-0 border-t border-neutral-200 px-4.5 pt-3 pb-4.5 transition-opacity duration-200",e?"opacity-100 delay-100":"pointer-events-none opacity-0",t),...r,children:i.length>0?jsx("div",{className:"flex gap-3",children:i.map(({visible:l=true,...d},o)=>l?jsx("div",{className:"flex-1",children:jsx(e$1,{size:"lg",className:"w-full",...d})},o):null)}):a$1})});D.displayName="SidebarFooter";export{f as a,E as b,M as c,k as d,B as e,D as f};
@@ -1 +1 @@
1
- import {c}from'./chunk-C7TLKKPT.js';import {d,b,a as a$2,c as c$1}from'./chunk-CQI4KDR4.js';import {a}from'./chunk-2EC6JI3N.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import x,{forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var G=b,J=a$2,K=c$1,H=tv({extend:d,slots:{root:"relative min-w-0 gap-1.5 rounded-md ease-linear",icon:"shrink-0"},variants:{size:{lg:{root:"h-10 px-3 py-2 text-sm leading-[143%]",icon:"size-4.5"},md:{root:"h-8 px-3 py-1 text-sm leading-[143%]",icon:"size-3.5"},sm:{root:"h-6 rounded-sm px-2 py-1 text-xs leading-[133%]",icon:"size-3"}},variant:{primary:{},secondary:{},light:{},ghost:{}},tone:{primary:{},neutral:{},danger:{},success:{}},truncate:{true:{root:"shrink"},false:{}}},defaultVariants:{variant:"primary",loading:false,disabled:false,truncate:false}}),Q=forwardRef(({children:s,className:R,variant:n,tone:r="primary",size:a$2="lg",startIcon:i,endIcon:m,loading:e,disabled:c$1,type:z="button",StartIcon:p,EndIcon:u,badgeNumber:l,hasAlertBadge:L,truncate:v,...P},S)=>{let T=e||c$1,V=n==="primary"?"info":"primary",{root:h,icon:o}=H({variant:n,size:a$2,loading:e,disabled:c$1,tone:r,hasAlertBadge:L,truncate:v});return jsxs("button",{...P,ref:S,disabled:T,className:h({className:R}),type:z,children:[e&&jsx(c,{size:a$2==="lg"?"md":"sm",tone:r,className:"absolute inset-0 m-auto"}),i&&x.cloneElement(i,{className:o()}),p&&jsx(p,{className:o()}),(s||s===0)&&jsx("span",{className:"truncate",children:s}),l&&jsx(a,{...l,variant:V,size:a$2,type:"square",className:a$1("shrink-0",e&&"invisible")}),m&&x.cloneElement(m,{className:o()}),u&&jsx(u,{className:o()})]})});export{G as a,J as b,K as c,H as d,Q as e};
1
+ import {c}from'./chunk-C7TLKKPT.js';import {d,b,a as a$2,c as c$1}from'./chunk-ZR6VTPRV.js';import {a}from'./chunk-2EC6JI3N.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import x,{forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var G=b,J=a$2,K=c$1,H=tv({extend:d,slots:{root:"relative min-w-0 gap-1.5 rounded-md ease-linear",icon:"shrink-0"},variants:{size:{lg:{root:"h-10 px-3 py-2 text-sm leading-[143%]",icon:"size-4.5"},md:{root:"h-8 px-3 py-1 text-sm leading-[143%]",icon:"size-3.5"},sm:{root:"h-6 rounded-sm px-2 py-1 text-xs leading-[133%]",icon:"size-3"}},variant:{primary:{},secondary:{},light:{},ghost:{}},tone:{primary:{},neutral:{},danger:{},success:{}},truncate:{true:{root:"shrink"},false:{}}},defaultVariants:{variant:"primary",loading:false,disabled:false,truncate:false}}),Q=forwardRef(({children:s,className:R,variant:n,tone:r="primary",size:a$2="lg",startIcon:i,endIcon:m,loading:e,disabled:c$1,type:z="button",StartIcon:p,EndIcon:u,badgeNumber:l,hasAlertBadge:L,truncate:v,...P},S)=>{let T=e||c$1,V=n==="primary"?"info":"primary",{root:h,icon:o}=H({variant:n,size:a$2,loading:e,disabled:c$1,tone:r,hasAlertBadge:L,truncate:v});return jsxs("button",{...P,ref:S,disabled:T,className:h({className:R}),type:z,children:[e&&jsx(c,{size:a$2==="lg"?"md":"sm",tone:r,className:"absolute inset-0 m-auto"}),i&&x.cloneElement(i,{className:o()}),p&&jsx(p,{className:o()}),(s||s===0)&&jsx("span",{className:"truncate",children:s}),l&&jsx(a,{...l,variant:V,size:a$2,type:"square",className:a$1("shrink-0",e&&"invisible")}),m&&x.cloneElement(m,{className:o()}),u&&jsx(u,{className:o()})]})});export{G as a,J as b,K as c,H as d,Q as e};
@@ -1 +1 @@
1
- import {a}from'./chunk-W4C2Z52Z.js';import {c,e,a as a$1,b,d}from'./chunk-MQL3NZ6S.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-PYPHO6IJ.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var O=forwardRef(({className:I,defaultValue:l,disabled:t,error:r,form:n,helperText:i,id:H,label:L,labelProps:R,readOnly:a$4,required:p,value:d$1,onChange:h,...P},g)=>{let m=c({error:r,disabled:t,readOnly:a$4}),{fieldRef:E,handleChange:N,handleClear:y,hasValue:q}=a({defaultValue:l,disabled:t,formId:n,onChange:h,ref:g,value:d$1});return jsxs(Field.Root,{"data-error":d(m)||void 0,disabled:t,id:H,invalid:r,readOnly:a$4,className:a$3(b,I),children:[jsx(c$1,{...R,as:Field.Label,label:L,required:p}),jsx(e,{state:m,clearAdornment:q?jsx(a$1,{onClick:y}):void 0,children:v=>jsx(Field.Input,{...P,ref:E,"aria-required":p||void 0,className:v,defaultValue:l,form:n,value:d$1,onChange:N})}),i&&jsx(a$2,{as:r?Field.ErrorText:Field.HelperText,children:i})]})});O.displayName="TextField";export{O as a};
1
+ import {a}from'./chunk-W4C2Z52Z.js';import {c,e,a as a$1,b,d}from'./chunk-MQL3NZ6S.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-P3WXE2MQ.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var O=forwardRef(({className:I,defaultValue:l,disabled:t,error:r,form:n,helperText:i,id:H,label:L,labelProps:R,readOnly:a$4,required:p,value:d$1,onChange:h,...P},g)=>{let m=c({error:r,disabled:t,readOnly:a$4}),{fieldRef:E,handleChange:N,handleClear:y,hasValue:q}=a({defaultValue:l,disabled:t,formId:n,onChange:h,ref:g,value:d$1});return jsxs(Field.Root,{"data-error":d(m)||void 0,disabled:t,id:H,invalid:r,readOnly:a$4,className:a$3(b,I),children:[jsx(c$1,{...R,as:Field.Label,label:L,required:p}),jsx(e,{state:m,clearAdornment:q?jsx(a$1,{onClick:y}):void 0,children:v=>jsx(Field.Input,{...P,ref:E,"aria-required":p||void 0,className:v,defaultValue:l,form:n,value:d$1,onChange:N})}),i&&jsx(a$2,{as:r?Field.ErrorText:Field.HelperText,children:i})]})});O.displayName="TextField";export{O as a};
@@ -1 +1 @@
1
- import {b as b$1}from'./chunk-XN6VHPJL.js';import {c}from'./chunk-Y33BNMNT.js';import {d}from'./chunk-WAUY2MS6.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {L}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-LHHQ33KR.js';import {a as a$2}from'./chunk-2EC6JI3N.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var t=tv({slots:{root:"ring-drawer-bar-border @container flex w-full flex-col rounded-md bg-neutral-100 ring ring-inset",header:"border-drawer-bar-border py-3.125 flex flex-wrap items-center gap-3 border-b px-4 last:border-b-0 @md:gap-2",main:"border-drawer-bar-border py-1.875 flex flex-col items-stretch gap-2 border-b px-2 last:border-b-0 @md:flex-row @md:items-center",actions:"flex shrink-0 items-center gap-3 @max-md:flex-wrap",selection:"ml-auto flex items-center gap-3",selectionLabel:"text-sm leading-[143%] font-medium text-neutral-900",divider:"h-4 @max-md:h-px @max-md:w-full",filters:"flex flex-col gap-2 px-2 pt-3 pb-2 @md:flex-row @md:justify-between"}}),z=r=>r?.startsWith("es")?"Seleccionados":r?.startsWith("pt")?"Selecionados":"Selected",W=r=>r?.startsWith("es")?"Limpiar todo":r?.startsWith("pt")?"Limpar tudo":"Clear all",D=r=>{let{header:e}=t();return jsx("div",{...r,className:e()})};D.displayName="DrawerBarHeader";var f=({label:r,...e})=>{let{locale:o}=getDefaultOptions(),{selectionLabel:i,selection:s}=t();return jsxs("div",{className:s(),children:[jsx("span",{className:i(),children:r??z(o?.code)}),jsx(a$2,{...e,size:"md",variant:"primary",type:"square"})]})};f.displayName="DrawerBarSelection";var C=r=>jsx(c,{...r,variant:"outline",orientation:"horizontal",size:"sm"});C.displayName="DrawerBarChoiceChips";var v=r=>{let{main:e}=t();return jsx("div",{...r,className:e()})};v.displayName="DrawerBarMain";var P=r=>jsx(b$1,{size:"lg",...r});P.displayName="DrawerBarSearchBar";var N=({children:r})=>{let{actions:e}=t();return jsx("div",{className:e(),children:r})};N.displayName="DrawerBarActions";var b=({className:r,...e$1})=>jsx(e,{...e$1,className:a$1("@max-md:w-full",r),variant:"ghost",size:"md"});b.displayName="DrawerBarActionButton";var y=r=>jsx(e$1,{...r,variant:"ghost",size:"md"});y.displayName="DrawerBarActionIconButton";var g=()=>{let{divider:r}=t();return jsx(a,{orientation:"vertical",variant:"400",className:r()})};g.displayName="DrawerBarDivider";var x=({children:r,onClear:e$1,clearLabel:o})=>{let{locale:i}=getDefaultOptions(),{filters:s}=t();return jsxs("div",{className:s(),children:[jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:r}),e$1&&jsx(e,{size:"sm",variant:"ghost",StartIcon:L,onClick:e$1,children:o??W(i?.code)})]})};x.displayName="DrawerBarFilters";var F=r=>jsx(d,{size:"md",variant:"fill",color:"neutral",...r});F.displayName="DrawerBarFilterChipInput";var S=({children:r,className:e,...o})=>{let{root:i}=t();return jsx("div",{className:i({className:e}),...o,children:r})};S.displayName="DrawerBar";var Y=Object.assign(S,{Header:D,Selection:f,ChoiceChips:C,Main:v,SearchBar:P,Actions:N,ActionButton:b,ActionIconButton:y,Divider:g,Filters:x,FilterChipInput:F});export{Y as a};
1
+ import {b as b$1}from'./chunk-XN6VHPJL.js';import {c}from'./chunk-BK5FDZCM.js';import {d}from'./chunk-WAUY2MS6.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$1}from'./chunk-Z6BICKQK.js';import {L}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-CNMAEXOF.js';import {a as a$2}from'./chunk-2EC6JI3N.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var t=tv({slots:{root:"ring-drawer-bar-border @container flex w-full flex-col rounded-md bg-neutral-100 ring ring-inset",header:"border-drawer-bar-border py-3.125 flex flex-wrap items-center gap-3 border-b px-4 last:border-b-0 @md:gap-2",main:"border-drawer-bar-border py-1.875 flex flex-col items-stretch gap-2 border-b px-2 last:border-b-0 @md:flex-row @md:items-center",actions:"flex shrink-0 items-center gap-3 @max-md:flex-wrap",selection:"ml-auto flex items-center gap-3",selectionLabel:"text-sm leading-[143%] font-medium text-neutral-900",divider:"h-4 @max-md:h-px @max-md:w-full",filters:"flex flex-col gap-2 px-2 pt-3 pb-2 @md:flex-row @md:justify-between"}}),z=r=>r?.startsWith("es")?"Seleccionados":r?.startsWith("pt")?"Selecionados":"Selected",W=r=>r?.startsWith("es")?"Limpiar todo":r?.startsWith("pt")?"Limpar tudo":"Clear all",D=r=>{let{header:e}=t();return jsx("div",{...r,className:e()})};D.displayName="DrawerBarHeader";var f=({label:r,...e})=>{let{locale:o}=getDefaultOptions(),{selectionLabel:i,selection:s}=t();return jsxs("div",{className:s(),children:[jsx("span",{className:i(),children:r??z(o?.code)}),jsx(a$2,{...e,size:"md",variant:"primary",type:"square"})]})};f.displayName="DrawerBarSelection";var C=r=>jsx(c,{...r,variant:"outline",orientation:"horizontal",size:"sm"});C.displayName="DrawerBarChoiceChips";var v=r=>{let{main:e}=t();return jsx("div",{...r,className:e()})};v.displayName="DrawerBarMain";var P=r=>jsx(b$1,{size:"lg",...r});P.displayName="DrawerBarSearchBar";var N=({children:r})=>{let{actions:e}=t();return jsx("div",{className:e(),children:r})};N.displayName="DrawerBarActions";var b=({className:r,...e$1})=>jsx(e,{...e$1,className:a$1("@max-md:w-full",r),variant:"ghost",size:"md"});b.displayName="DrawerBarActionButton";var y=r=>jsx(e$1,{...r,variant:"ghost",size:"md"});y.displayName="DrawerBarActionIconButton";var g=()=>{let{divider:r}=t();return jsx(a,{orientation:"vertical",variant:"400",className:r()})};g.displayName="DrawerBarDivider";var x=({children:r,onClear:e$1,clearLabel:o})=>{let{locale:i}=getDefaultOptions(),{filters:s}=t();return jsxs("div",{className:s(),children:[jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:r}),e$1&&jsx(e,{size:"sm",variant:"ghost",StartIcon:L,onClick:e$1,children:o??W(i?.code)})]})};x.displayName="DrawerBarFilters";var F=r=>jsx(d,{size:"md",variant:"fill",color:"neutral",...r});F.displayName="DrawerBarFilterChipInput";var S=({children:r,className:e,...o})=>{let{root:i}=t();return jsx("div",{className:i({className:e}),...o,children:r})};S.displayName="DrawerBar";var Y=Object.assign(S,{Header:D,Selection:f,ChoiceChips:C,Main:v,SearchBar:P,Actions:N,ActionButton:b,ActionIconButton:y,Divider:g,Filters:x,FilterChipInput:F});export{Y as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-M4PKOXUS.js';import {a}from'./chunk-KTD2GEB6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
1
+ import {b}from'./chunk-Q5WI2UGY.js';import {a}from'./chunk-KTD2GEB6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
@@ -1,2 +1,2 @@
1
1
  import {a}from'./chunk-OBZIYJO7.js';import {jsx}from'react/jsx-runtime';var o='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/></svg>';var d='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.95 19.067c-.144 0-.282-.017-.413-.053a2.51 2.51 0 0 1-.37-.13v-.782c.113.08.213.148.303.202a.5.5 0 0 0 .26.082c.12 0 .218-.03.292-.092.077-.064.115-.166.115-.307v-2.189h.874v2.228c0 .198-.032.364-.096.499a.836.836 0 0 1-.245.321.873.873 0 0 1-.34.168 1.39 1.39 0 0 1-.38.053Zm2.584-1.08V19h-.869v-3.202h1.503c.377 0 .675.085.893.255.22.17.33.437.33.801 0 .362-.11.642-.33.84-.218.196-.516.293-.893.293h-.634Zm0-.662h.528c.061 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Zm3.81 1.742a1.96 1.96 0 0 1-.825-.163 1.2 1.2 0 0 1-.557-.528c-.131-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.605.062.199.042.39.1.572.173v.782a4.255 4.255 0 0 0-.552-.254 1.382 1.382 0 0 0-.51-.096c-.165 0-.31.03-.431.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .269.311.81.81 0 0 0 .384.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.023 19.067c-.144 0-.282-.017-.413-.053a2.51 2.51 0 0 1-.37-.13v-.782c.112.08.213.148.303.202a.5.5 0 0 0 .259.082c.121 0 .219-.03.293-.092.076-.064.115-.166.115-.307v-2.189h.873v2.228c0 .198-.032.364-.096.499a.836.836 0 0 1-.244.321.873.873 0 0 1-.341.168 1.39 1.39 0 0 1-.38.053Zm2.584-1.08V19h-.869v-3.202H7.24c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM8.977 19v-3.202h2.232v.663H9.851v.605h1.17v.662H9.847v.61h1.363V19H8.977Zm4.295.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.557-.528c-.13-.246-.196-.571-.196-.974 0-.394.065-.714.196-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.389.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.273.307c-.064.144-.096.347-.096.61 0 .256.033.459.1.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.633 17.987V19h-.87v-3.202h1.503c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM7.003 19v-3.202h.72l1.574 2.088-.264.557v-2.645h.797V19h-.634l-1.584-2.035.183-.394V19h-.792Zm4.918.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.556-.528c-.132-.246-.197-.571-.197-.974 0-.394.065-.714.197-.96.134-.25.32-.432.556-.548.237-.115.51-.172.821-.172.208 0 .41.02.605.062.198.042.389.1.571.173v.782a4.255 4.255 0 0 0-.552-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.273.307c-.064.144-.096.347-.096.61 0 .256.033.459.1.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.35v1.516a2.84 2.84 0 0 1-.644.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var v='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h18.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m4.37 19-.868-3.202h.95l.485 2.4h-.13l.687-2.4h.658l.69 2.43h-.138l.484-2.43h.956L7.274 19h-.858l-.663-2.194h.149L5.225 19h-.854Zm4.218 0v-3.202h2.232v.663H9.462v.605h1.17v.662H9.458v.61h1.363V19H8.588Zm2.855 0v-3.202h1.42c.225 0 .423.03.596.087a.82.82 0 0 1 .417.278c.106.128.159.304.159.528a.578.578 0 0 1-.116.365.88.88 0 0 1-.278.23 2.274 2.274 0 0 1-.297.13l-.101-.197c.195.007.363.043.504.11.14.065.25.156.326.274.08.115.12.255.12.418 0 .224-.056.41-.168.557a.972.972 0 0 1-.437.321c-.179.067-.376.101-.59.101h-1.555Zm.873-.662h.61a.475.475 0 0 0 .182-.034.27.27 0 0 0 .135-.11.373.373 0 0 0 .053-.207.32.32 0 0 0-.034-.153.248.248 0 0 0-.082-.106.323.323 0 0 0-.12-.058.575.575 0 0 0-.149-.019h-.595v.687Zm-.005-1.306h.586c.045 0 .085-.01.12-.029a.29.29 0 0 0 .096-.091.278.278 0 0 0 .039-.149c0-.112-.03-.19-.092-.235a.347.347 0 0 0-.21-.067h-.538v.571Zm3.263.955V19h-.869v-3.202h1.503c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Z"/></svg>';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h11.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.915 19.067a1.96 1.96 0 0 1-.825-.163 1.2 1.2 0 0 1-.557-.528c-.131-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.388.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.51-.096c-.166 0-.31.03-.431.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .269.311.81.81 0 0 0 .384.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662H6.23v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.673.091ZM6.883 19v-3.202h.874V19h-.874Zm1.528 0v-3.202h2.223v.663H9.28v.686h1.167v.667H9.28V19h-.869Z"/></svg>';var m='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.67 19v-3.202h.878l1.08 1.47-.456.009 1.114-1.479h.854V19h-.868v-2.563l.148.297-1.041 1.373-1.056-1.406.173-.106V19H3.67Zm4.994-1.013V19h-.869v-3.202h1.502c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM12.234 19v-.84h-1.34v-.59l1.417-1.772h.797v1.719h.398v.643h-.398V19h-.874Zm-.62-1.483h.62v-.773l-.62.773Z"/></svg>';var n='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h17.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.513 19v-3.202h.878l1.08 1.47-.456.009 1.114-1.479h.854V19h-.868v-2.563l.148.297-1.041 1.373-1.056-1.406.173-.106V19h-.826Zm4.994-1.013V19h-.869v-3.202H9.14c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM10.877 19v-3.202h2.232v.663h-1.358v.605h1.17v.662h-1.175v.61h1.363V19h-2.232Zm4.295.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.557-.528c-.13-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.388.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var Z='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m3.552 19 1.195-3.202h.955L6.806 19h-.892L4.91 15.947l.447-.038L4.358 19h-.806Zm.706-.629.163-.619h1.43l.082.62H4.258Zm3.47.629-1.185-3.202H7.55l.864 2.684h-.279l.86-2.684h.926L8.659 19h-.93Zm2.576 0v-3.202h.873V19h-.873Z"/></svg>';var k='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.351 19v-3.202h.879l1.08 1.47-.456.009 1.113-1.479h.855V19h-.869v-2.563l.149.297-1.042 1.373-1.056-1.406.173-.106V19h-.826Zm4.96-.95-.316-.504 1.219-1.748h1.094L8.312 18.05Zm-.835.95v-3.202h.874V19h-.874Zm1.565-2.02L10.4 19H9.32l-.95-1.469.671-.552ZM11.726 19l-1.186-3.202h1.008l.864 2.684h-.278l.86-2.684h.926L12.657 19h-.931Z"/></svg>';var g='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23593AD1" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.5 15.45a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.85 14.1V8.25l5.4-.9v5.85"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12.9 14.55a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path fill="%238161FF" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.712 19v-3.202h.879l1.08 1.47-.456.009 1.113-1.479h.855V19h-.87v-2.563l.15.297-1.042 1.373-1.056-1.406.173-.106V19h-.826Zm4.994-1.013V19h-.869v-3.202H9.34c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Zm3.335 1.713c-.173 0-.34-.025-.504-.076a3.162 3.162 0 0 1-.451-.183v-.725c.15.09.3.17.446.24.15.07.31.106.476.106a.753.753 0 0 0 .388-.086.279.279 0 0 0 .144-.255.36.36 0 0 0-.115-.278c-.077-.074-.22-.11-.432-.11h-.5v-.634h.51c.137 0 .236-.03.297-.091a.283.283 0 0 0 .096-.212c0-.086-.022-.152-.067-.196a.381.381 0 0 0-.178-.096.91.91 0 0 0-.23-.03c-.105 0-.216.014-.331.04a1.926 1.926 0 0 0-.442.162v-.643c.122-.064.256-.115.404-.153a1.651 1.651 0 0 1 .854-.015c.137.029.262.079.374.149a.761.761 0 0 1 .326.917.694.694 0 0 1-.278.326.442.442 0 0 1-.163.067c.08.023.157.06.23.11.074.049.14.108.197.178a.81.81 0 0 1 .197.552c0 .18-.037.33-.11.452a.828.828 0 0 1-.293.283c-.122.07-.256.121-.403.153a2.03 2.03 0 0 1-.442.048Z"/></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 5.7h-4.5a1.2 1.2 0 0 1-1.2-1.2h5.7v1.2Zm-4.5 0a1.2 1.2 0 0 1-1.2-1.2V.6h1.2v5.7ZM20.1.6v5.1V.6Z" mask="url(%23a)"/><path fill="%23593AD1" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.5 15.45a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.85 14.1V8.25l5.4-.9v5.85"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12.9 14.55a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path fill="%238161FF" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m4.488 19-.869-3.202h.95l.485 2.4h-.13l.687-2.4h.658l.691 2.43h-.14l.486-2.43h.955L7.392 19h-.86l-.662-2.194h.15L5.341 19h-.854Zm3.588 0 1.195-3.202h.955L11.33 19h-.893l-1.003-3.053.446-.038L8.882 19h-.806Zm.705-.629.163-.619h1.43l.082.62H8.781Zm3.47.629-1.185-3.202h1.008l.864 2.684h-.278l.859-2.684h.926L13.183 19h-.931Z"/></svg>';var M='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23730D0D" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%23BB3939" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.463 17.987V19h-.869v-3.202h1.503c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM6.833 19v-3.202h1.344c.554 0 .959.136 1.215.408.259.272.389.67.389 1.196 0 .521-.13.918-.39 1.19-.255.272-.66.408-1.214.408H6.833Zm.87-.662h.369c.265 0 .467-.074.605-.221.14-.15.21-.389.21-.715 0-.33-.07-.568-.21-.716-.138-.15-.34-.225-.605-.225h-.37v1.877Zm2.59.662v-3.202h2.222v.663h-1.354v.686h1.167v.667h-1.166V19h-.87Z"/></svg>';var w='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23074856" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%232D9AB2" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.806 19v-3.202H5.15c.554 0 .958.136 1.214.408.26.272.39.67.39 1.196 0 .521-.13.918-.39 1.19-.256.272-.66.408-1.214.408H3.806Zm.869-.662h.37c.265 0 .467-.074.604-.221.141-.15.211-.389.211-.715 0-.33-.07-.568-.21-.716-.138-.15-.34-.225-.606-.225h-.37v1.877Zm4.04.73c-.317 0-.595-.06-.835-.178a1.276 1.276 0 0 1-.557-.548c-.131-.246-.197-.56-.197-.94 0-.55.14-.967.418-1.248.281-.282.672-.423 1.17-.423.318 0 .595.06.831.178.24.118.426.3.557.547.134.243.202.557.202.94 0 .551-.14.967-.418 1.249-.278.281-.669.422-1.171.422Zm0-.702c.144 0 .267-.03.37-.09a.576.576 0 0 0 .235-.303c.057-.144.086-.338.086-.581 0-.24-.029-.43-.086-.571a.552.552 0 0 0-.235-.298.711.711 0 0 0-.37-.091.683.683 0 0 0-.37.096.6.6 0 0 0-.24.302c-.054.141-.081.333-.081.576 0 .24.027.43.081.572a.6.6 0 0 0 .24.297c.103.061.226.091.37.091Zm3.539.701c-.519 0-.915-.134-1.19-.403-.273-.269-.409-.69-.409-1.262 0-.554.13-.972.39-1.253.261-.285.665-.427 1.209-.427.17 0 .34.02.513.062.176.042.348.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.417-.077.938.938 0 0 0-.442.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.033.453.1.6a.613.613 0 0 0 .289.312c.128.058.284.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Z"/></svg>';var V='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23074856" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%232D9AB2" d="M.6 13.2h17.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.628 19v-3.202h1.344c.553 0 .958.136 1.214.408.26.272.389.67.389 1.196 0 .521-.13.918-.389 1.19-.256.272-.66.408-1.214.408H3.628Zm.869-.662h.37c.265 0 .466-.074.604-.221.14-.15.211-.389.211-.715 0-.33-.07-.568-.211-.716-.138-.15-.34-.225-.605-.225h-.37v1.877Zm4.04.73c-.317 0-.595-.06-.835-.178a1.276 1.276 0 0 1-.557-.548c-.131-.246-.197-.56-.197-.94 0-.55.14-.967.418-1.248.281-.282.672-.423 1.17-.423.318 0 .594.06.831.178.24.118.426.3.557.547.134.243.202.557.202.94 0 .551-.14.967-.418 1.249-.278.281-.669.422-1.171.422Zm0-.702c.144 0 .267-.03.37-.09a.576.576 0 0 0 .235-.303c.057-.144.086-.338.086-.581 0-.24-.029-.43-.086-.571a.552.552 0 0 0-.236-.298.711.711 0 0 0-.37-.091.683.683 0 0 0-.369.096.6.6 0 0 0-.24.302c-.054.141-.081.333-.081.576 0 .24.027.43.081.572a.6.6 0 0 0 .24.297c.103.061.226.091.37.091Zm3.538.701c-.518 0-.915-.134-1.19-.403-.272-.269-.408-.69-.408-1.262 0-.554.13-.972.389-1.253.262-.285.665-.427 1.21-.427.17 0 .34.02.513.062.176.042.347.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.418-.077.938.938 0 0 0-.441.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.033.453.1.6a.613.613 0 0 0 .289.312c.128.058.284.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Zm4.57-.067H15.56l-2.165-3.202h1.085L16.645 19Zm-1.633-2.05.649-1.152h.945l-1.147 1.79-.447-.638Zm.125.735L14.38 19h-.936l1.262-1.92.432.605Z"/></svg>';var H='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23124E46" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%2301756A" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.974 19v-2.54H3.12v-.662h2.587v.663h-.869V19h-.864Zm5.15 0H8.04l-2.164-3.202h1.084L9.124 19Zm-1.632-2.05.648-1.152h.946l-1.147 1.79-.447-.638Zm.125.735L6.86 19h-.936l1.262-1.92.432.605ZM10.147 19v-2.54h-.854v-.662h2.588v.663h-.87V19h-.863Z"/></svg>';var E='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23793304" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path fill="%23E1E7E6" d="M15.1 8.9H8.3v4.25a.425.425 0 0 0 .425.425h5.95a.425.425 0 0 0 .425-.425V8.9Zm.85 4.25a1.275 1.275 0 0 1-1.275 1.275h-1.949l1.4 1.4a.425.425 0 1 1-.601.6L11.7 14.601l-1.824 1.824a.425.425 0 1 1-.601-.6l1.399-1.4H8.725A1.275 1.275 0 0 1 7.45 13.15V8.9a.425.425 0 0 1 0-.85h8.5a.425.425 0 0 1 0 .85v4.25Z"/></g><path fill="%23C66727" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.547 17.987V19H3.68v-3.202H5.18c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.528c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865Zm3.24.662V19h-.87v-3.202H8.42c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.527c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865ZM10.8 19v-2.54h-.854v-.662h2.587v.663h-.87V19H10.8Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 7.2h10.2v10.2H6.6z"/></clipPath></defs></svg>';var B='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23793304" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path fill="%23E1E7E6" d="M15.1 8.9H8.3v4.25a.425.425 0 0 0 .425.425h5.95a.425.425 0 0 0 .425-.425V8.9Zm.85 4.25a1.275 1.275 0 0 1-1.275 1.275h-1.949l1.4 1.4a.425.425 0 1 1-.601.6L11.7 14.601l-1.824 1.824a.425.425 0 1 1-.601-.6l1.399-1.4H8.725A1.275 1.275 0 0 1 7.45 13.15V8.9a.425.425 0 0 1 0-.85h8.5a.425.425 0 0 1 0 .85v4.25Z"/></g><path fill="%23C66727" d="M.6 13.2h16.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.37 17.987V19H3.5v-3.202h1.503c.377 0 .675.085.893.255.22.17.33.437.33.801 0 .362-.11.642-.33.84-.218.196-.516.293-.893.293h-.634Zm0-.662h.527c.061 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03H4.37v.865Zm3.238.662V19H6.74v-3.202h1.502c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.528c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865ZM10.622 19v-2.54h-.855v-.662h2.588v.663h-.87V19h-.863Zm5.15 0h-1.085l-2.165-3.202h1.085L15.772 19Zm-1.632-2.05.648-1.152h.945l-1.147 1.79-.446-.638Zm.125.735L13.506 19h-.936l1.263-1.92.432.605Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 7.2h10.2v10.2H6.6z"/></clipPath></defs></svg>';var u='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M5.107 19.067c-.519 0-.915-.134-1.19-.403-.273-.269-.409-.69-.409-1.262 0-.554.13-.972.39-1.253.262-.285.665-.427 1.209-.427.17 0 .34.02.513.062.176.042.348.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.417-.077.938.938 0 0 0-.442.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.034.453.1.6a.613.613 0 0 0 .289.312c.128.058.285.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Zm2.702 0c-.16 0-.31-.006-.447-.019a2.674 2.674 0 0 1-.384-.062 1.96 1.96 0 0 1-.331-.125v-.816c.16.125.334.217.523.278.189.058.36.087.514.087.121 0 .219-.023.293-.068.073-.044.11-.121.11-.23 0-.074-.037-.133-.11-.178a1.019 1.019 0 0 0-.288-.124 29.641 29.641 0 0 1-.404-.135 2.128 2.128 0 0 1-.264-.115.963.963 0 0 1-.225-.168.768.768 0 0 1-.163-.25.93.93 0 0 1-.063-.36c0-.14.026-.275.077-.403a1.002 1.002 0 0 1 .643-.571c.163-.058.354-.086.571-.086.132 0 .25.008.356.024.105.012.204.035.297.067a2.2 2.2 0 0 1 .288.12v.825a1.89 1.89 0 0 0-.542-.312 1.06 1.06 0 0 0-.307-.067.872.872 0 0 0-.245.024.38.38 0 0 0-.183.091.246.246 0 0 0-.067.183c0 .08.026.144.077.192a.71.71 0 0 0 .22.115c.097.029.202.06.318.091.134.039.256.082.364.13.112.048.208.107.288.177a.73.73 0 0 1 .188.26c.044.099.067.22.067.364 0 .205-.048.388-.144.548-.096.16-.232.286-.408.379a1.33 1.33 0 0 1-.62.134ZM10.406 19 9.22 15.798h1.008l.864 2.684h-.278l.859-2.684h.926L11.337 19h-.931Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var C='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M6.384 19H5.3l-2.165-3.202H4.22L6.384 19Zm-1.632-2.05.648-1.152h.946l-1.147 1.79-.447-.638Zm.125.735L4.12 19h-.936l1.262-1.92.432.605ZM6.765 19v-3.202h.873v2.535h1.335V19H6.765Zm3.799.067c-.16 0-.309-.006-.446-.019a2.674 2.674 0 0 1-.384-.062 1.96 1.96 0 0 1-.332-.125v-.816c.16.125.335.217.524.278.188.058.36.087.513.087.122 0 .22-.023.293-.068.074-.044.11-.121.11-.23 0-.074-.036-.133-.11-.178a1.019 1.019 0 0 0-.288-.124 29.641 29.641 0 0 1-.403-.135 2.127 2.127 0 0 1-.264-.115.963.963 0 0 1-.226-.168.768.768 0 0 1-.163-.25.93.93 0 0 1-.062-.36c0-.14.025-.275.076-.403a1.002 1.002 0 0 1 .644-.571c.163-.058.353-.086.57-.086.132 0 .25.008.356.024.106.012.205.035.298.067a2.2 2.2 0 0 1 .288.12v.825a1.89 1.89 0 0 0-.542-.312 1.06 1.06 0 0 0-.308-.067.872.872 0 0 0-.245.024.38.38 0 0 0-.182.091.246.246 0 0 0-.067.183c0 .08.025.144.076.192a.71.71 0 0 0 .221.115c.096.029.202.06.317.091.134.039.256.082.365.13.112.048.208.107.288.177a.73.73 0 0 1 .187.26c.045.099.067.22.067.364 0 .205-.048.388-.144.548-.096.16-.232.286-.408.379a1.33 1.33 0 0 1-.619.134Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var y='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M6.232 19h-.965l-2.184-3.202h.965L6.232 19Zm-1.589-2.016.696-1.186h.86L5.045 17.56l-.403-.576Zm.13.677L3.962 19h-.84l1.243-1.872.408.533ZM6.624 19v-3.202h.778v2.592h1.392V19h-2.17Zm3.738.067c-.163 0-.31-.008-.442-.024a2.375 2.375 0 0 1-.364-.072 2.017 2.017 0 0 1-.327-.125v-.739c.147.119.314.208.5.269.185.06.361.091.527.091.148 0 .26-.027.336-.081.08-.058.12-.144.12-.26a.24.24 0 0 0-.11-.206.934.934 0 0 0-.283-.14c-.119-.04-.251-.087-.399-.138a1.812 1.812 0 0 1-.273-.11.784.784 0 0 1-.408-.422.944.944 0 0 1-.063-.366c0-.131.024-.258.072-.38a.923.923 0 0 1 .221-.326c.103-.096.232-.17.389-.225a1.6 1.6 0 0 1 .552-.087c.131 0 .246.008.346.024.102.016.2.04.292.072.093.03.188.068.284.116v.748a1.617 1.617 0 0 0-.25-.168 1.53 1.53 0 0 0-.283-.134 1.016 1.016 0 0 0-.576-.029.376.376 0 0 0-.187.11.263.263 0 0 0-.068.188c0 .09.028.16.082.211.054.051.13.094.226.13l.321.105c.131.039.251.082.36.13.112.045.21.102.293.173.083.07.147.156.192.259a.919.919 0 0 1 .067.37c0 .191-.045.367-.134.527a.975.975 0 0 1-.389.375c-.17.09-.378.134-.624.134Zm4.56-.067h-.964l-2.184-3.202h.965L14.923 19Zm-1.588-2.016.696-1.186h.86l-1.153 1.762-.403-.576Zm.13.677L12.652 19h-.84l1.244-1.872.408.533Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var D='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%238F6D01" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16 14.8a.8.8 0 0 1-.8.8H8.8a.8.8 0 0 1-.8-.8V9.2a.8.8 0 0 1 .8-.8h2l.8 1.2h3.6a.8.8 0 0 1 .8.8v4.4Z"/></g><path fill="%23D9AB01" d="M.6 13.2h11.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.333 19v-.624l1.632-2.06.226.154H3.352v-.672h2.544v.61l-1.54 2.02-.298-.095h1.838V19H3.333Zm3.143 0v-3.202h.873V19h-.873Zm2.396-1.013V19h-.868v-3.202h1.502c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662H9.4c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865Z"/><defs><clipPath id="b"><path fill="%23fff" d="M7.2 7.2h9.6v9.6H7.2z"/></clipPath></defs></svg>';var b='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%238F6D01" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16 14.8a.8.8 0 0 1-.8.8H8.8a.8.8 0 0 1-.8-.8V9.2a.8.8 0 0 1 .8-.8h2l.8 1.2h3.6a.8.8 0 0 1 .8.8v4.4Z"/></g><path fill="%23D9AB01" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.658 19v-3.202h1.613c.371 0 .664.085.879.255.214.17.321.429.321.777 0 .132-.027.264-.081.399a.945.945 0 0 1-.24.355.83.83 0 0 1-.404.202l-.096-.293L6.644 19H5.53l-.772-1.378.379.317h-.61V19h-.869Zm.87-1.685h.618a.39.39 0 0 0 .274-.1c.074-.068.11-.181.11-.341 0-.141-.035-.245-.105-.312a.35.35 0 0 0-.26-.101h-.638v.854ZM6.871 19l1.196-3.202h.955L10.127 19h-.893L8.23 15.947l.446-.038L7.68 19h-.807Zm.706-.629.163-.619h1.43l.082.62H7.578ZM10.51 19v-3.202h1.613c.371 0 .664.085.879.255.214.17.321.429.321.777 0 .132-.027.264-.081.399a.945.945 0 0 1-.24.355.83.83 0 0 1-.404.202l-.096-.293.994 1.507h-1.114l-.772-1.378.379.317h-.61V19h-.869Zm.87-1.685h.618a.39.39 0 0 0 .274-.1c.074-.068.11-.181.11-.341 0-.141-.035-.245-.105-.312a.35.35 0 0 0-.26-.101h-.638v.854Z"/><defs><clipPath id="b"><path fill="%23fff" d="M7.2 7.2h9.6v9.6H7.2z"/></clipPath></defs></svg>';var i={jpg:{fileType:"image",mimeType:"image/jpeg",badge:d},jpeg:{fileType:"image",mimeType:"image/jpeg",badge:p},png:{fileType:"image",mimeType:"image/png",badge:s},webp:{fileType:"image",mimeType:"image/webp",badge:v},gif:{fileType:"image",mimeType:"image/gif",badge:r},mp4:{fileType:"video",mimeType:"video/mp4",badge:m},mpeg:{fileType:"video",mimeType:"video/mpeg",badge:n},avi:{fileType:"video",mimeType:"video/x-msvideo",badge:Z},mkv:{fileType:"video",mimeType:"video/x-matroska",badge:k},mp3:{fileType:"audio",mimeType:"audio/mpeg",badge:g},wav:{fileType:"audio",mimeType:"audio/wav",badge:c},pdf:{fileType:"pdf",mimeType:"application/pdf",badge:M},doc:{fileType:"text",mimeType:"application/msword",badge:w},docx:{fileType:"text",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",badge:V},txt:{fileType:"text",mimeType:"text/plain",badge:H},ppt:{fileType:"text",mimeType:"application/vnd.ms-powerpoint",badge:E},pptx:{fileType:"text",mimeType:"application/vnd.openxmlformats-officedocument.presentationml.presentation",badge:B},csv:{fileType:"spreadsheet",mimeType:"text/csv",badge:u},xls:{fileType:"spreadsheet",mimeType:"application/vnd.ms-excel",badge:C},xlsx:{fileType:"spreadsheet",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",badge:y},zip:{fileType:"archive",mimeType:"application/zip",badge:D},rar:{fileType:"archive",mimeType:"application/vnd.rar",badge:b}},x=h=>{let a=h.lastIndexOf("."),t=a>0?h.slice(a+1).toLowerCase():"";return Object.hasOwn(i,t)?i[t]:void 0},T=h=>{try{let a=new URL(h,"https://file.invalid");if(a.protocol!=="http:"&&a.protocol!=="https:")return "";let t=a.pathname.slice(a.pathname.lastIndexOf("/")+1);try{t=decodeURIComponent(t);}catch{}return t}catch{return ""}},i1=(h,a)=>a?.trim()||(typeof h=="string"?T(h):h.name),e=(h,a)=>{let t=(a?.mimeType??(typeof h=="string"?"":h.type)).split(";")[0].trim().toLowerCase();return x(i1(h,a?.fileName))??(typeof h=="string"?x(T(h)):void 0)??Object.values(i).find(l=>l.mimeType===t)},Q1=(h,a)=>e(h,a)?.fileType==="image",$1=(h,a)=>e(h,a)?.mimeType??a?.mimeType??(typeof h=="string"?"":h.type),A=(h,a)=>{let t=e(h,a);return {icon:t?.badge??o,isImage:t?.fileType==="image"}};var l0=({source:h,fileName:a$1,mimeType:t,alt:l="",className:j,...L})=>jsx("img",{...L,src:A(h,{fileName:a$1,mimeType:t}).icon,alt:l,className:a("size-6 shrink-0 object-contain",j)});
2
- export{i as a,i1 as b,Q1 as c,$1 as d,A as e,l0 as f};
2
+ export{i1 as a,Q1 as b,$1 as c,A as d,l0 as e};
@@ -1 +1 @@
1
- import {e as e$2}from'./chunk-PI7DECIN.js';import {e,r,b,f,d}from'./chunk-QMPBFFFC.js';import {e as e$1}from'./chunk-LHHQ33KR.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useState,useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var _=["info","success","warning","danger"],q=["lg","md"],a="info",T=tv({slots:{container:"flex shrink-0 rounded-md p-3 pr-2 ring ring-inset",icon:"text-neutral-50",iconWrapper:"mr-3 h-fit rounded-full p-1.5 ring ring-inset",closeIcon:"my-auto ml-3 shrink-0",title:"font-inter my-auto font-medium",description:"font-inter mt-1 line-clamp-3"},variants:{hasCloseButton:{true:{}},size:{lg:{title:"text-sm leading-[143%]",description:"text-xs leading-[133%]",icon:"size-4.5"},md:{title:"text-xs leading-[133%]",description:"text-2xs leading-[133%]",icon:"size-3.5"}},variant:{warning:{container:"bg-warning-50 ring-warning-500 text-warning-800",iconWrapper:"bg-warning-600 ring-warning-700"},success:{container:"bg-success-50 ring-success-500 text-success-800",iconWrapper:"bg-success-500 ring-success-600"},danger:{container:"bg-danger-50 ring-danger-300 text-danger-800",iconWrapper:"bg-danger-300 ring-danger-500"},info:{container:"bg-info-50 ring-info-500 text-info-800",iconWrapper:"bg-info-500 ring-info-600"}}},defaultVariants:{variant:a,size:"lg",hasCloseButton:true}}),W={warning:f,success:b,danger:r,info:e},G=({variant:i=a,className:A,description:n,title:M,hasCloseButton:o=true,actionButton:t,size:l,onClose:c})=>{let[b,v]=useState(true),{container:y,icon:N,iconWrapper:I,closeIcon:h,title:C,description:w}=T({variant:i,hasCloseButton:o,size:l}),z=useCallback(()=>{v(false),c?.();},[c]),S=W[i||a];return jsxs("div",{role:"alert",className:a$1(y(),A,!b&&"hidden"),children:[jsxs("div",{className:"flex flex-1",children:[jsx("div",{className:I(),children:jsx(S,{className:N({className:!n&&"my-auto"}),"aria-hidden":"true"})}),jsxs("div",{className:"flex flex-col",children:[jsx("h6",{className:C({className:n&&"font-semibold"}),children:M}),n&&jsx("p",{className:w(),children:n})]})]}),t&&jsx(e$1,{...t,variant:"secondary",tone:"neutral",className:a$1("my-auto ml-4.5",t.className),size:l==="lg"?"lg":"md"}),o&&jsx(e$2,{Icon:d,className:h(),size:"md",variant:"ghost",tone:"neutral",onClick:z,"aria-label":"Close alert"})]})};export{_ as a,q as b,G as c};
1
+ import {e as e$2}from'./chunk-Z6BICKQK.js';import {e,r,b,f,d}from'./chunk-QMPBFFFC.js';import {e as e$1}from'./chunk-CNMAEXOF.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useState,useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var _=["info","success","warning","danger"],q=["lg","md"],a="info",T=tv({slots:{container:"flex shrink-0 rounded-md p-3 pr-2 ring ring-inset",icon:"text-neutral-50",iconWrapper:"mr-3 h-fit rounded-full p-1.5 ring ring-inset",closeIcon:"my-auto ml-3 shrink-0",title:"font-inter my-auto font-medium",description:"font-inter mt-1 line-clamp-3"},variants:{hasCloseButton:{true:{}},size:{lg:{title:"text-sm leading-[143%]",description:"text-xs leading-[133%]",icon:"size-4.5"},md:{title:"text-xs leading-[133%]",description:"text-2xs leading-[133%]",icon:"size-3.5"}},variant:{warning:{container:"bg-warning-50 ring-warning-500 text-warning-800",iconWrapper:"bg-warning-600 ring-warning-700"},success:{container:"bg-success-50 ring-success-500 text-success-800",iconWrapper:"bg-success-500 ring-success-600"},danger:{container:"bg-danger-50 ring-danger-300 text-danger-800",iconWrapper:"bg-danger-300 ring-danger-500"},info:{container:"bg-info-50 ring-info-500 text-info-800",iconWrapper:"bg-info-500 ring-info-600"}}},defaultVariants:{variant:a,size:"lg",hasCloseButton:true}}),W={warning:f,success:b,danger:r,info:e},G=({variant:i=a,className:A,description:n,title:M,hasCloseButton:o=true,actionButton:t,size:l,onClose:c})=>{let[b,v]=useState(true),{container:y,icon:N,iconWrapper:I,closeIcon:h,title:C,description:w}=T({variant:i,hasCloseButton:o,size:l}),z=useCallback(()=>{v(false),c?.();},[c]),S=W[i||a];return jsxs("div",{role:"alert",className:a$1(y(),A,!b&&"hidden"),children:[jsxs("div",{className:"flex flex-1",children:[jsx("div",{className:I(),children:jsx(S,{className:N({className:!n&&"my-auto"}),"aria-hidden":"true"})}),jsxs("div",{className:"flex flex-col",children:[jsx("h6",{className:C({className:n&&"font-semibold"}),children:M}),n&&jsx("p",{className:w(),children:n})]})]}),t&&jsx(e$1,{...t,variant:"secondary",tone:"neutral",className:a$1("my-auto ml-4.5",t.className),size:l==="lg"?"lg":"md"}),o&&jsx(e$2,{Icon:d,className:h(),size:"md",variant:"ghost",tone:"neutral",onClick:z,"aria-label":"Close alert"})]})};export{_ as a,q as b,G as c};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-T7Y7LCUV.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {a}from'./chunk-OBZIYJO7.js';import {MenuPositioner,MenuContent,useMenuContext,MenuItem,MenuTrigger,MenuRoot}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:animation-duration-150 data-[state=closed]:animation-duration-100 data-[state=open]:ease-out data-[state=closed]:ease-in data-[state=open]:data-[side=bottom]:slide-in-from-top-1 data-[state=closed]:data-[side=bottom]:slide-out-to-top-1 data-[state=open]:data-[side=top]:slide-in-from-bottom-1 data-[state=closed]:data-[side=top]:slide-out-to-bottom-1 data-[state=open]:data-[side=left]:slide-in-from-right-1 data-[state=closed]:data-[side=left]:slide-out-to-right-1 data-[state=open]:data-[side=right]:slide-in-from-left-1 data-[state=closed]:data-[side=right]:slide-out-to-left-1 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none";var x={placement:"bottom-start",flip:["bottom-end"]},h=({lazyMount:n=true,unmountOnExit:i=true,positioning:a=x,onSelect:o,...s})=>jsx(MenuRoot,{lazyMount:n,unmountOnExit:i,positioning:a,...s,onSelect:o?d=>o(d.value):void 0}),E=MenuTrigger,N=MenuItem,O=a("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",c),f=forwardRef(({className:n,children:i,...a$1},o)=>jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{ref:o,className:a(O,n),...a$1,children:i})})}));f.displayName="MenuContent";var D="data-highlighted:bg-primary-100 outline-none [&_p]:break-normal",C=forwardRef(({value:n,label:i,description:a$2,startIcon:o,endIcon:s,hasDivider:d,disabled:u,onSelect:l,className:I,...P},b$1)=>{let y=useMenuContext();return jsxs(Fragment,{children:[jsx(MenuItem,{...P,ref:b$1,id:y.getItemState({value:n}).id,value:n,disabled:u,onSelect:l?()=>l(n):void 0,asChild:true,children:jsxs(b.Root,{disabled:u,className:a(D,I),children:[o&&jsx(b.Leading,{children:jsx(b.Icon,{children:o})}),jsxs(b.Content,{children:[jsx(b.Headline,{children:i}),a$2&&jsx(b.Description,{children:a$2})]}),s&&jsx(b.Trailing,{children:jsx(b.Icon,{children:s})})]})}),d&&jsx(a$1,{})]})});C.displayName="MenuOption";var G={Root:h,Trigger:E,Content:f,Item:N,Option:C};export{G as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-LEOKE4DZ.js';import {h,i}from'./chunk-UVR5WX5Q.js';import {a}from'./chunk-CFP2GUU4.js';import {c}from'./chunk-P3WXE2MQ.js';import {c as c$1}from'./chunk-HUIUWCTG.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var U=forwardRef(({value:n,onChange:d,onBlur:y,maxItems:e=5,readOnly:l=false,disabled:p=false,loading:f=false,error:r,label:g,labelProps:L,required:F,listVariant:M="list",className:D,...h$1},N)=>{let R=a(),t=h(R.locale);if(!Number.isSafeInteger(e)||e<0)throw new RangeError("maxItems must be a nonnegative safe integer");let x=e===1&&n.length<=1,s=x?1:Math.max(0,e-n.length),m=p||f||l,k=!l&&s===0,c$2=h$1.category==="image",B=i=>{if(m||i.length>s)return;let o=i.map(A=>({kind:"local",file:A}));d(x?o:[...n,...o]);},C=(i,o)=>{m||d(n.filter((A,I)=>I!==o));},_=i=>{i.currentTarget.contains(i.relatedTarget)||y?.();};return jsxs("div",{ref:N,"data-attachment-field":"",tabIndex:-1,className:a$2("flex min-w-0 flex-col gap-3",D),onBlur:_,children:[jsxs("div",{children:[g&&jsx(c,{...L,as:"span",label:g,required:F}),!l&&jsx(i,{...h$1,maxFilesPerSelection:s,disabled:p,loading:f,invalid:!!r,required:F,onFilesSelected:B}),!l&&jsx("p",{className:"text-2xs mt-2 leading-[133%] font-medium text-neutral-600",children:c$2?t.maxImagesAllowed(e):t.maxFilesAllowed(e)})]}),k&&jsx(c$1,{hasCloseButton:false,variant:"warning",title:c$2?t.maxImagesTitle:t.maxFilesTitle,description:c$2?t.maxImagesDescription:t.maxFilesDescription}),jsx(a$1,{items:n,variant:M,disabled:m,onRemove:l?void 0:C}),r&&jsx("p",{className:"text-danger-600 text-xs",children:r})]})});U.displayName="AttachmentField";export{U as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-KTD2GEB6.js';import {b}from'./chunk-PD56TYMC.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var s={md:"h-(--height-input-md)",lg:"h-(--height-input)"},p=({size:i=b,className:r})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",r),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(s[i],"w-full rounded-lg")})]});export{p as a};
1
+ import {a}from'./chunk-KTD2GEB6.js';import {b}from'./chunk-CIBHVNGF.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var s={md:"h-(--height-input-md)",lg:"h-(--height-input)"},p=({size:i=b,className:r})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",r),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(s[i],"w-full rounded-lg")})]});export{p as a};
@@ -1 +1 @@
1
- import {e,i,f,a as a$1,b,c,g,h,d,j}from'./chunk-T5KOUFZV.js';import {a as a$6}from'./chunk-KLL4XELW.js';import {a as a$3}from'./chunk-KTD2GEB6.js';import {a as a$4}from'./chunk-LTYV7LM5.js';import {a as a$2}from'./chunk-IFRQ4ZRO.js';import {e as e$1,B,I,H,r,G,F,E,D,y,z,A,f as f$1,C}from'./chunk-QMPBFFFC.js';import {a as a$5}from'./chunk-ICF6RQIW.js';import {a}from'./chunk-OBZIYJO7.js';import {memo,useMemo,useState,useCallback,useRef,useEffect}from'react';import {flexRender,useReactTable,getCoreRowModel}from'@tanstack/react-table';import {jsx,jsxs}from'react/jsx-runtime';var V={alert:{Icon:C,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},incident:{Icon:f$1,bgClassName:"bg-warning-100 hover:bg-warning-200",iconClassName:"text-warning-900"},"no-address":{Icon:A,bgClassName:"bg-coral-50 hover:bg-coral-100",iconClassName:"text-coral-700"},"email-alert":{Icon:z,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},superadmin:{Icon:y,bgClassName:"bg-orchid-100 hover:bg-orchid-200",iconClassName:"text-orchid-700"},bundle:{Icon:D,bgClassName:"bg-aqua-100 hover:bg-aqua-200",iconClassName:"text-aqua-800"},variants:{Icon:a$5,bgClassName:"bg-bubblegum-50 hover:bg-bubblegum-100",iconClassName:"text-bubblegum-700"},providers:{Icon:E,bgClassName:"bg-pink-50 hover:bg-pink-200",iconClassName:"text-pink-700"},"transaction-request":{Icon:F,bgClassName:"bg-green-100 hover:bg-green-200",iconClassName:"text-green-800"},design:{Icon:G,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},error:{Icon:r,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},draft:{Icon:H,bgClassName:"bg-new-50 hover:bg-new-200",iconClassName:"text-new-700 group-hover/preset:text-new-800"},products:{Icon:I,bgClassName:"bg-bubblegum-200 hover:bg-bubblegum-300",iconClassName:"text-bubblegum-700"},more:{Icon:B,bgClassName:"bg-primary-300 hover:bg-primary-400",iconClassName:"text-primary-700"},empty:{bgClassName:"bg-primary-50 border-b border-b-primary-200 hover:bg-primary-100 data-disabled:border-b-neutral-300"}},je=["alert","incident"],bn=n=>{let a=je.map(l=>n.find(u=>u.name===l)).filter(l=>l!==void 0),i=n.filter(l=>!je.includes(l.name));return [...a,...i]},fn=n=>({id:q,size:54,enableResizing:false,header:({table:a})=>{let i=a.getRowModel().rows.some(u=>u.getCanSelect()),l=a.getIsAllPageRowsSelected()?true:a.getIsSomePageRowsSelected()?"indeterminate":false;return jsx(a$4,{checked:l,disabled:!i,className:"ml-1",onCheckedChange:u=>a.toggleAllPageRowsSelected(u===true)})},cell:({row:a})=>{let i=a.getCanSelect(),l=i?a.getIsSelected():typeof n.setDisabledRowState=="function"?n.setDisabledRowState(a.original):n.setDisabledRowState??false,u=jsx(a$4,{checked:l,onCheckedChange:T=>a.toggleSelected(T===true),disabled:!i}),b=n.rowSelectionTooltip?.content(a.original);return b?jsx(a$2,{className:"w-fit",content:b,positioning:n.rowSelectionTooltip?.positioning??{placement:"right"},children:u}):u},enableSorting:false}),ne=["w-3/4","w-1/2","w-2/3","w-5/6","w-3/5"],Qe=({columns:n,rows:a$2,hasSelection:i$1,hasRowActions:l,hasPagination:u,className:b$1,...T})=>jsxs(a$1,{className:b$1,...T,children:[jsxs(b,{children:[jsx(c,{children:jsxs(g,{children:[l&&jsx(h,{className:a("p-0",Z)}),i$1&&jsx(h,{className:"w-13.5",children:jsx(a$3,{className:"bg-primary-300 m-0.5 ml-1.5 size-4.5 rounded-sm"})}),Array.from({length:n},(P,c)=>jsx(h,{children:jsx(a$3,{className:"bg-primary-300 h-3 w-16"})},c))]})}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:Array.from({length:a$2},(P,c)=>jsxs(e,{children:[l&&jsx(i,{className:a("bg-primary-50 p-0 align-middle",Z),children:jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]})}),i$1&&jsx(i,{className:"align-middle",children:jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"})}),Array.from({length:n},(s,m)=>jsx(i,{children:jsx(a$3,{className:a("h-4",ne[(c+m)%ne.length])})},m))]},c))})]}),u&&jsxs("div",{className:"border-t-primary-200 grid min-h-12 grid-cols-3 items-center gap-6 border-t px-4.5",children:[jsx(a$3,{className:"h-3.5 w-20"}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(a$3,{className:"size-8 rounded-lg"}),jsx(a$3,{className:"size-8 rounded-lg"})]}),jsx("div",{className:"flex justify-end",children:jsx(a$3,{className:"h-3.5 w-28"})})]})]});Qe.displayName="DataTableFullSkeleton";var pn={neutral:"bg-neutral-100",success:"bg-success-20",orange:"bg-orange-20",warning:"bg-warning-20",danger:"bg-danger-20",default:"bg-neutral-50"},M="__row_actions__",q="__select__",Z="w-7.5 min-w-7.5 max-w-7.5",Ye="grid grid-cols-1 h-full w-full cursor-pointer overflow-hidden border-0 p-0 focus:outline-2 focus:-outline-offset-2 focus:outline-primary-800 focus:rounded-xs disabled:cursor-not-allowed",J=(n,a$1)=>{let i=n.Icon;return jsx(a$2,{content:a$1?.tooltip??"",disabled:!a$1?.tooltip,className:"h-full w-full",positioning:{placement:"right"},children:jsx("div",{"data-disabled":a$1?.disabled||void 0,className:a("group/preset flex h-full w-full items-center justify-center",n.bgClassName,"data-disabled:cursor-not-allowed data-disabled:bg-neutral-200"),children:i&&jsx(i,{className:a("size-3.5 shrink-0",n.iconClassName,"group-data-disabled/preset:text-neutral-600"),"aria-hidden":true})})},a$1?.key)},fe=(n,a)=>typeof n=="function"?n(a):n??false,Cn=({row:n,rowActions:a})=>{let i=n.original,l=bn(a(i));if(l.length===0)return J(V.empty);let u=l.length>3,b=u?l.slice(0,2):l,T=u?3:b.length;if(l.length===1){let c=l[0],s=fe(c.isDisabled,i);return jsx("button",{type:"button","aria-label":c.label,disabled:s,className:Ye,style:{gridTemplateRows:"repeat(1, minmax(0, 1fr))"},onClick:m=>{m.stopPropagation(),c.onClick(i);},children:J(V[c.name],{disabled:s,tooltip:c.tooltip})})}let P=c=>{let s=l.find((m,R)=>`${m.name}-${R}`===c);s&&queueMicrotask(()=>s.onClick(i));};return jsxs(a$6.Root,{positioning:{placement:"right-start",gutter:0},onSelect:P,children:[jsx(a$6.Trigger,{asChild:true,children:jsxs("button",{type:"button","aria-label":"Row actions",className:Ye,style:{gridTemplateRows:`repeat(${T}, minmax(0, 1fr))`},onClick:c=>{c.stopPropagation();},children:[b.map((c,s)=>J(V[c.name],{key:`${c.name}-${s}`,disabled:fe(c.isDisabled,i),tooltip:c.tooltip})),u&&J(V.more)]})}),jsx(a$6.Content,{className:"min-w-48",children:l.map((c,s)=>{let m=V[c.name];if(!m.Icon)return null;let R=m.Icon,z=fe(c.isDisabled,i);return jsx(a$6.Option,{value:`${c.name}-${s}`,label:c.label,disabled:z,startIcon:jsx(R,{})},`${c.name}-${s}`)})})]})},Tn=({rowActions:n})=>({id:M,header:()=>jsx("span",{className:"sr-only",children:"Actions"}),size:30,minSize:30,maxSize:30,enableResizing:false,cell:({row:a})=>n?jsx(Cn,{row:a,rowActions:n}):null}),en=memo(({row:n,isSelected:a$1,type:i$1})=>jsx(e,{"data-state":a$1&&"selected",className:a(i$1&&i$1!=="default"&&pn[i$1]),style:i$1&&i$1!=="default"?{"--row-divider-color":`var(--color-${i$1}-100)`}:void 0,children:n.getVisibleCells().map(l=>jsx(i,{className:l.column.id===M?a("p-0 align-middle",Z):void 0,children:flexRender(l.column.columnDef.cell,l.getContext())},l.id))}),(n,a)=>n.isSelected===a.isSelected&&n.row.original===a.row.original&&n.type===a.type&&n.columns===a.columns);en.displayName="DataTableRow";var Sn=150,hn=Number.POSITIVE_INFINITY,wn=140,ee=(n,a,i)=>Math.min(Math.max(n,a),i),Nn=20,Dn=Number.MAX_SAFE_INTEGER,Q=n=>{let a=n.size??Sn,i=n.minSize===void 0||n.minSize===Nn?void 0:n.minSize,l=n.maxSize===void 0||n.maxSize===Dn?void 0:n.maxSize;return {size:a,minSize:i??Math.min(a,wn),maxSize:l??hn}},nn="dt-col-sizes-",yn="dt-col-ratios-",Rn=n=>{try{localStorage.removeItem(`${yn}${n}`);let a=localStorage.getItem(`${nn}${n}`);if(!a)return {};let i=JSON.parse(a),l={};for(let[u,b]of Object.entries(i))typeof b=="number"&&Number.isFinite(b)&&b>0&&(l[u]=b);return l}catch{return {}}},zn=(n,a)=>{try{localStorage.setItem(`${nn}${n}`,JSON.stringify(a));}catch{}},xn=(n,a)=>{let i={},l=0,u=[];for(let s of n)if(s.isFixed)i[s.id]=s.weight,l+=s.weight;else if(s.isPinned){let m=ee(s.pinnedPx,s.minSize,s.maxSize);i[s.id]=m,l+=m;}else u.push(s);if(u.length===0)return i;let b=Math.max(a-l,0),T=u.map(s=>({column:s,px:s.minSize,frozen:false})),P=T.length+1;for(;P-- >0;){let s=T.filter(d=>!d.frozen);if(s.length===0)break;let m=T.filter(d=>d.frozen).reduce((d,h)=>d+h.px,0),R=b-m,z=s.reduce((d,h)=>d+h.column.weight,0);if(z<=0)break;let O=false;for(let d of s){let h=d.column.weight/z*R;h<d.column.minSize?(d.px=d.column.minSize,d.frozen=true,O=true):h>d.column.maxSize?(d.px=d.column.maxSize,d.frozen=true,O=true):d.px=h;}if(!O)break}for(let s of T)i[s.column.id]=s.px;let c=T.find(s=>s.column.isFill);if(c){let s=T.filter(m=>m.column.id!==c.column.id).reduce((m,R)=>m+R.px,0);i[c.column.id]=Math.max(b-s,c.column.minSize);}return i};function et({columns:n,data:a$4,rowsCount:i$1,pagination:l,onPaginationChange:u,noResults:b$1,onNextPageClick:T,onPreviousPageClick:P,disableNextPage:c$1,disablePreviousPage:s,className:m,onRowsPerPageChange:R,columnOrder:z,columnVisibility:O,rowsPerPageOptions:d$1,enableRowSelection:h$1=false,rowSelection:pe,onRowSelectionChange:tn,getRowId:Ce,rowSelectionTooltip:Te,setDisabledRowState:Se,tableId:N,isLoading:L,isInitialLoading:he,skeletonRowCount:on,skeletonColumns:an=6,getRowType:we,rowActions:I,...Ne}){let F=typeof h$1=="function"||h$1,De=useMemo(()=>{if(!z)return;let t=[I?M:null,F?q:null].filter(r=>r!=null),o=new Set(t);return [...t,...z.filter(r=>!o.has(r))]},[z,F,I]),H=useMemo(()=>{let t=[...n];if(F&&t.unshift(fn({rowSelectionTooltip:Te,setDisabledRowState:Se})),I){let o=Tn({rowActions:I});t.unshift(o);}return t},[F,n,Te,Se,I]),[v,ln]=useState(null),sn=useCallback(t=>ln(t),[]),[te,ye]=useState(0),Re=useRef(false),[D,oe]=useState({}),[ze,xe]=useState(null),ae=useRef(null),ie=useRef(null),C=useReactTable({data:a$4,columns:H,rowCount:i$1,state:{pagination:l,...De!==void 0&&{columnOrder:De},columnVisibility:O,...pe!==void 0&&{rowSelection:pe},...N&&{columnSizing:D}},onPaginationChange:u,onRowSelectionChange:tn,...N&&{onColumnSizingChange:oe},manualPagination:true,getCoreRowModel:getCoreRowModel(),enableRowSelection:typeof h$1=="function"?t=>h$1(t.original):h$1,getRowId:Ce?t=>Ce(t):void 0}),le=C.getVisibleLeafColumns().map(t=>t.id).join(","),Pe=ze!==null,k=useMemo(()=>{let t=C.getVisibleLeafColumns().filter(r=>r.getCanResize());return t.length===0?void 0:(t.find(r=>r.columnDef.isFillColumn)??t[t.length-1]).id},[C,le,H]),ve=useMemo(()=>{if(!te)return {};let t=C.getVisibleLeafColumns().map(o=>{let{size:r,minSize:g,maxSize:f}=Q(o.columnDef),x=o.getCanResize(),y=o.id===k;return {id:o.id,isFixed:!x,isPinned:x&&!y&&o.id in D,pinnedPx:D[o.id]??r,weight:r,minSize:g,maxSize:f,isFill:y}});return xn(t,te)},[C,le,H,te,D,k]),rn=useMemo(()=>C.getVisibleLeafColumns().reduce((t,o)=>{let{size:r,minSize:g,maxSize:f}=Q(o.columnDef);return o.getCanResize()?o.id!==k&&o.id in D?t+ee(D[o.id]??r,g,f):t+g:t+r},0),[C,le,H,D,k]),Ie=(t,o)=>{let r=t.column.id,{size:g,minSize:f,maxSize:x}=Q(t.column.columnDef),y=ve[r]??g,A="touches"in o?o.touches[0]?.clientX??0:o.clientX;o.preventDefault(),o.stopPropagation(),ae.current=r,xe(r),document.body.style.userSelect="none";let G=$=>{"touches"in $&&$.preventDefault();let cn="touches"in $?$.touches[0]?.clientX??A:$.clientX,Ae=ee(y+(cn-A),f,x);oe(se=>se[r]===Ae?se:{...se,[r]:Ae});},W=()=>{ae.current=null,xe(null),document.body.style.userSelect="",document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",W),ie.current=null,v&&ye(v.clientWidth);};ie.current=W,document.addEventListener("mousemove",G),document.addEventListener("mouseup",W),document.addEventListener("touchmove",G,{passive:false}),document.addEventListener("touchend",W);};useEffect(()=>()=>ie.current?.(),[]),useEffect(()=>{N&&oe(Rn(N));},[N]),useEffect(()=>{if(!v)return;let t=g=>{g>0&&ye(g);};t(v.clientWidth);let o=0,r=new ResizeObserver(([g])=>{if(!g||ae.current!==null)return;cancelAnimationFrame(o);let f=v.clientWidth;o=requestAnimationFrame(()=>t(f));});return r.observe(v),()=>{cancelAnimationFrame(o),r.disconnect();}},[v]),useEffect(()=>{if(N){if(!Re.current){Re.current=true;return}Pe||zn(N,D);}},[N,Pe,D]);let ke=on??l?.pageSize??10;return he?jsx(Qe,{columns:an,rows:ke,hasSelection:F,hasRowActions:!!I,hasPagination:!!l,className:m,...Ne}):!L&&!he&&!C.getRowModel().rows?.length?jsx(f,{...b$1}):jsxs(a$1,{ref:sn,className:m,...Ne,children:[jsxs(b,{style:{width:"100%",minWidth:rn,tableLayout:"fixed"},children:[jsx("colgroup",{children:C.getHeaderGroups()[0].headers.map(t=>{let o=t.column,r=o.getCanResize(),{size:g,minSize:f,maxSize:x}=Q(o.columnDef);if(o.id===k)return jsx("col",{span:1,style:{width:"auto",minWidth:f}},t.id);let y=ve[o.id]??ee(D[o.id]??g,f,x);return jsx("col",{span:1,style:{width:y,minWidth:r?f:y}},t.id)})}),jsx(c,{children:C.getHeaderGroups().map(t=>jsx(g,{children:t.headers.map(o=>{if(o.isPlaceholder)return jsx(h,{},o.id);let r=o.column.columnDef,g=flexRender(r.header,o.getContext()),f=typeof r.headerTooltip=="string"?r.headerTooltip:typeof g=="string"?g:void 0,x=o.column.id!==q&&r.headerTooltip!==false&&f!=null,y=jsx("span",{className:"line-clamp-1",children:g});return jsxs(h,{className:o.column.id===M?a("p-0",Z):N?"group/resize relative overflow-clip":void 0,children:[jsxs("div",{className:"flex items-center",children:[x?jsx(a$2,{content:f,contentClassName:"font-normal normal-case",children:y}):y,r.headerInfoTooltip&&jsx(a$2,{content:r.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e$1,{className:"ml-1 w-[0.875rem] shrink-0"})})]}),N&&o.column.getCanResize()&&o.column.id!==k&&jsx("div",{onMouseDown:A=>Ie(o,A),onTouchStart:A=>Ie(o,A),className:a("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none","bg-primary-400 opacity-0 transition-opacity group-hover/resize:opacity-100",ze===o.column.id&&"bg-primary-600 opacity-100")})]},o.id)})},t.id))}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:L?Array.from({length:ke},(t,o)=>jsx(e,{children:C.getVisibleLeafColumns().map((r,g)=>{let f=r.columnDef;return jsx(i,{className:r.id===q?"align-middle":r.id===M?a("bg-primary-50 p-0 align-middle",Z):void 0,children:r.id===q?jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"}):r.id===M?jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]}):f.skeleton!=null?f.skeleton:jsx(a$3,{className:a("h-4",ne[(o+g)%ne.length])})},r.id)})},o)):C.getRowModel().rows.map(t=>jsx(en,{row:t,isSelected:t.getIsSelected(),type:we?we(t.original):"default",columns:H},t.id))})]}),l&&u&&(a$4.length>0||L)&&jsx(j,{rowsPerPageOptions:d$1,rowsCount:i$1,pagination:l,onPageSizeChange:t=>{C.setPagination({pageIndex:0,pageSize:t}),R?.(t);},onPreviousPageClick:P,onNextPageClick:T,isDisableNextPageButton:L||c$1||!!i$1&&!C.getCanNextPage(),isDisablePreviousPageButton:L||s||!!i$1&&!C.getCanPreviousPage(),onPageChange:t=>{C.setPageIndex(t-1);}})]})}export{et as a};
1
+ import {e,i,f,a as a$1,b,c,g,h,d,j}from'./chunk-SB3QNARF.js';import {a as a$6}from'./chunk-IASAN3FQ.js';import {a as a$3}from'./chunk-KTD2GEB6.js';import {a as a$4}from'./chunk-TKF3OFO4.js';import {a as a$2}from'./chunk-MZ3RI3NS.js';import {e as e$1,B,I,H,r,G,F,E,D,y,z,A,f as f$1,C}from'./chunk-QMPBFFFC.js';import {a as a$5}from'./chunk-ICF6RQIW.js';import {a}from'./chunk-OBZIYJO7.js';import {memo,useMemo,useState,useCallback,useRef,useEffect}from'react';import {flexRender,useReactTable,getCoreRowModel}from'@tanstack/react-table';import {jsx,jsxs}from'react/jsx-runtime';var V={alert:{Icon:C,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},incident:{Icon:f$1,bgClassName:"bg-warning-100 hover:bg-warning-200",iconClassName:"text-warning-900"},"no-address":{Icon:A,bgClassName:"bg-coral-50 hover:bg-coral-100",iconClassName:"text-coral-700"},"email-alert":{Icon:z,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},superadmin:{Icon:y,bgClassName:"bg-orchid-100 hover:bg-orchid-200",iconClassName:"text-orchid-700"},bundle:{Icon:D,bgClassName:"bg-aqua-100 hover:bg-aqua-200",iconClassName:"text-aqua-800"},variants:{Icon:a$5,bgClassName:"bg-bubblegum-50 hover:bg-bubblegum-100",iconClassName:"text-bubblegum-700"},providers:{Icon:E,bgClassName:"bg-pink-50 hover:bg-pink-200",iconClassName:"text-pink-700"},"transaction-request":{Icon:F,bgClassName:"bg-green-100 hover:bg-green-200",iconClassName:"text-green-800"},design:{Icon:G,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},error:{Icon:r,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},draft:{Icon:H,bgClassName:"bg-new-50 hover:bg-new-200",iconClassName:"text-new-700 group-hover/preset:text-new-800"},products:{Icon:I,bgClassName:"bg-bubblegum-200 hover:bg-bubblegum-300",iconClassName:"text-bubblegum-700"},more:{Icon:B,bgClassName:"bg-primary-300 hover:bg-primary-400",iconClassName:"text-primary-700"},empty:{bgClassName:"bg-primary-50 border-b border-b-primary-200 hover:bg-primary-100 data-disabled:border-b-neutral-300"}},je=["alert","incident"],bn=n=>{let a=je.map(l=>n.find(u=>u.name===l)).filter(l=>l!==void 0),i=n.filter(l=>!je.includes(l.name));return [...a,...i]},fn=n=>({id:q,size:54,enableResizing:false,header:({table:a})=>{let i=a.getRowModel().rows.some(u=>u.getCanSelect()),l=a.getIsAllPageRowsSelected()?true:a.getIsSomePageRowsSelected()?"indeterminate":false;return jsx(a$4,{checked:l,disabled:!i,className:"ml-1",onCheckedChange:u=>a.toggleAllPageRowsSelected(u===true)})},cell:({row:a})=>{let i=a.getCanSelect(),l=i?a.getIsSelected():typeof n.setDisabledRowState=="function"?n.setDisabledRowState(a.original):n.setDisabledRowState??false,u=jsx(a$4,{checked:l,onCheckedChange:T=>a.toggleSelected(T===true),disabled:!i}),b=n.rowSelectionTooltip?.content(a.original);return b?jsx(a$2,{className:"w-fit",content:b,positioning:n.rowSelectionTooltip?.positioning??{placement:"right"},children:u}):u},enableSorting:false}),ne=["w-3/4","w-1/2","w-2/3","w-5/6","w-3/5"],Qe=({columns:n,rows:a$2,hasSelection:i$1,hasRowActions:l,hasPagination:u,className:b$1,...T})=>jsxs(a$1,{className:b$1,...T,children:[jsxs(b,{children:[jsx(c,{children:jsxs(g,{children:[l&&jsx(h,{className:a("p-0",Z)}),i$1&&jsx(h,{className:"w-13.5",children:jsx(a$3,{className:"bg-primary-300 m-0.5 ml-1.5 size-4.5 rounded-sm"})}),Array.from({length:n},(P,c)=>jsx(h,{children:jsx(a$3,{className:"bg-primary-300 h-3 w-16"})},c))]})}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:Array.from({length:a$2},(P,c)=>jsxs(e,{children:[l&&jsx(i,{className:a("bg-primary-50 p-0 align-middle",Z),children:jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]})}),i$1&&jsx(i,{className:"align-middle",children:jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"})}),Array.from({length:n},(s,m)=>jsx(i,{children:jsx(a$3,{className:a("h-4",ne[(c+m)%ne.length])})},m))]},c))})]}),u&&jsxs("div",{className:"border-t-primary-200 grid min-h-12 grid-cols-3 items-center gap-6 border-t px-4.5",children:[jsx(a$3,{className:"h-3.5 w-20"}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(a$3,{className:"size-8 rounded-lg"}),jsx(a$3,{className:"size-8 rounded-lg"})]}),jsx("div",{className:"flex justify-end",children:jsx(a$3,{className:"h-3.5 w-28"})})]})]});Qe.displayName="DataTableFullSkeleton";var pn={neutral:"bg-neutral-100",success:"bg-success-20",orange:"bg-orange-20",warning:"bg-warning-20",danger:"bg-danger-20",default:"bg-neutral-50"},M="__row_actions__",q="__select__",Z="w-7.5 min-w-7.5 max-w-7.5",Ye="grid grid-cols-1 h-full w-full cursor-pointer overflow-hidden border-0 p-0 focus:outline-2 focus:-outline-offset-2 focus:outline-primary-800 focus:rounded-xs disabled:cursor-not-allowed",J=(n,a$1)=>{let i=n.Icon;return jsx(a$2,{content:a$1?.tooltip??"",disabled:!a$1?.tooltip,className:"h-full w-full",positioning:{placement:"right"},children:jsx("div",{"data-disabled":a$1?.disabled||void 0,className:a("group/preset flex h-full w-full items-center justify-center",n.bgClassName,"data-disabled:cursor-not-allowed data-disabled:bg-neutral-200"),children:i&&jsx(i,{className:a("size-3.5 shrink-0",n.iconClassName,"group-data-disabled/preset:text-neutral-600"),"aria-hidden":true})})},a$1?.key)},fe=(n,a)=>typeof n=="function"?n(a):n??false,Cn=({row:n,rowActions:a})=>{let i=n.original,l=bn(a(i));if(l.length===0)return J(V.empty);let u=l.length>3,b=u?l.slice(0,2):l,T=u?3:b.length;if(l.length===1){let c=l[0],s=fe(c.isDisabled,i);return jsx("button",{type:"button","aria-label":c.label,disabled:s,className:Ye,style:{gridTemplateRows:"repeat(1, minmax(0, 1fr))"},onClick:m=>{m.stopPropagation(),c.onClick(i);},children:J(V[c.name],{disabled:s,tooltip:c.tooltip})})}let P=c=>{let s=l.find((m,R)=>`${m.name}-${R}`===c);s&&queueMicrotask(()=>s.onClick(i));};return jsxs(a$6.Root,{positioning:{placement:"right-start",gutter:0},onSelect:P,children:[jsx(a$6.Trigger,{asChild:true,children:jsxs("button",{type:"button","aria-label":"Row actions",className:Ye,style:{gridTemplateRows:`repeat(${T}, minmax(0, 1fr))`},onClick:c=>{c.stopPropagation();},children:[b.map((c,s)=>J(V[c.name],{key:`${c.name}-${s}`,disabled:fe(c.isDisabled,i),tooltip:c.tooltip})),u&&J(V.more)]})}),jsx(a$6.Content,{className:"min-w-48",children:l.map((c,s)=>{let m=V[c.name];if(!m.Icon)return null;let R=m.Icon,z=fe(c.isDisabled,i);return jsx(a$6.Option,{value:`${c.name}-${s}`,label:c.label,disabled:z,startIcon:jsx(R,{})},`${c.name}-${s}`)})})]})},Tn=({rowActions:n})=>({id:M,header:()=>jsx("span",{className:"sr-only",children:"Actions"}),size:30,minSize:30,maxSize:30,enableResizing:false,cell:({row:a})=>n?jsx(Cn,{row:a,rowActions:n}):null}),en=memo(({row:n,isSelected:a$1,type:i$1})=>jsx(e,{"data-state":a$1&&"selected",className:a(i$1&&i$1!=="default"&&pn[i$1]),style:i$1&&i$1!=="default"?{"--row-divider-color":`var(--color-${i$1}-100)`}:void 0,children:n.getVisibleCells().map(l=>jsx(i,{className:l.column.id===M?a("p-0 align-middle",Z):void 0,children:flexRender(l.column.columnDef.cell,l.getContext())},l.id))}),(n,a)=>n.isSelected===a.isSelected&&n.row.original===a.row.original&&n.type===a.type&&n.columns===a.columns);en.displayName="DataTableRow";var Sn=150,hn=Number.POSITIVE_INFINITY,wn=140,ee=(n,a,i)=>Math.min(Math.max(n,a),i),Nn=20,Dn=Number.MAX_SAFE_INTEGER,Q=n=>{let a=n.size??Sn,i=n.minSize===void 0||n.minSize===Nn?void 0:n.minSize,l=n.maxSize===void 0||n.maxSize===Dn?void 0:n.maxSize;return {size:a,minSize:i??Math.min(a,wn),maxSize:l??hn}},nn="dt-col-sizes-",yn="dt-col-ratios-",Rn=n=>{try{localStorage.removeItem(`${yn}${n}`);let a=localStorage.getItem(`${nn}${n}`);if(!a)return {};let i=JSON.parse(a),l={};for(let[u,b]of Object.entries(i))typeof b=="number"&&Number.isFinite(b)&&b>0&&(l[u]=b);return l}catch{return {}}},zn=(n,a)=>{try{localStorage.setItem(`${nn}${n}`,JSON.stringify(a));}catch{}},xn=(n,a)=>{let i={},l=0,u=[];for(let s of n)if(s.isFixed)i[s.id]=s.weight,l+=s.weight;else if(s.isPinned){let m=ee(s.pinnedPx,s.minSize,s.maxSize);i[s.id]=m,l+=m;}else u.push(s);if(u.length===0)return i;let b=Math.max(a-l,0),T=u.map(s=>({column:s,px:s.minSize,frozen:false})),P=T.length+1;for(;P-- >0;){let s=T.filter(d=>!d.frozen);if(s.length===0)break;let m=T.filter(d=>d.frozen).reduce((d,h)=>d+h.px,0),R=b-m,z=s.reduce((d,h)=>d+h.column.weight,0);if(z<=0)break;let O=false;for(let d of s){let h=d.column.weight/z*R;h<d.column.minSize?(d.px=d.column.minSize,d.frozen=true,O=true):h>d.column.maxSize?(d.px=d.column.maxSize,d.frozen=true,O=true):d.px=h;}if(!O)break}for(let s of T)i[s.column.id]=s.px;let c=T.find(s=>s.column.isFill);if(c){let s=T.filter(m=>m.column.id!==c.column.id).reduce((m,R)=>m+R.px,0);i[c.column.id]=Math.max(b-s,c.column.minSize);}return i};function et({columns:n,data:a$4,rowsCount:i$1,pagination:l,onPaginationChange:u,noResults:b$1,onNextPageClick:T,onPreviousPageClick:P,disableNextPage:c$1,disablePreviousPage:s,className:m,onRowsPerPageChange:R,columnOrder:z,columnVisibility:O,rowsPerPageOptions:d$1,enableRowSelection:h$1=false,rowSelection:pe,onRowSelectionChange:tn,getRowId:Ce,rowSelectionTooltip:Te,setDisabledRowState:Se,tableId:N,isLoading:L,isInitialLoading:he,skeletonRowCount:on,skeletonColumns:an=6,getRowType:we,rowActions:I,...Ne}){let F=typeof h$1=="function"||h$1,De=useMemo(()=>{if(!z)return;let t=[I?M:null,F?q:null].filter(r=>r!=null),o=new Set(t);return [...t,...z.filter(r=>!o.has(r))]},[z,F,I]),H=useMemo(()=>{let t=[...n];if(F&&t.unshift(fn({rowSelectionTooltip:Te,setDisabledRowState:Se})),I){let o=Tn({rowActions:I});t.unshift(o);}return t},[F,n,Te,Se,I]),[v,ln]=useState(null),sn=useCallback(t=>ln(t),[]),[te,ye]=useState(0),Re=useRef(false),[D,oe]=useState({}),[ze,xe]=useState(null),ae=useRef(null),ie=useRef(null),C=useReactTable({data:a$4,columns:H,rowCount:i$1,state:{pagination:l,...De!==void 0&&{columnOrder:De},columnVisibility:O,...pe!==void 0&&{rowSelection:pe},...N&&{columnSizing:D}},onPaginationChange:u,onRowSelectionChange:tn,...N&&{onColumnSizingChange:oe},manualPagination:true,getCoreRowModel:getCoreRowModel(),enableRowSelection:typeof h$1=="function"?t=>h$1(t.original):h$1,getRowId:Ce?t=>Ce(t):void 0}),le=C.getVisibleLeafColumns().map(t=>t.id).join(","),Pe=ze!==null,k=useMemo(()=>{let t=C.getVisibleLeafColumns().filter(r=>r.getCanResize());return t.length===0?void 0:(t.find(r=>r.columnDef.isFillColumn)??t[t.length-1]).id},[C,le,H]),ve=useMemo(()=>{if(!te)return {};let t=C.getVisibleLeafColumns().map(o=>{let{size:r,minSize:g,maxSize:f}=Q(o.columnDef),x=o.getCanResize(),y=o.id===k;return {id:o.id,isFixed:!x,isPinned:x&&!y&&o.id in D,pinnedPx:D[o.id]??r,weight:r,minSize:g,maxSize:f,isFill:y}});return xn(t,te)},[C,le,H,te,D,k]),rn=useMemo(()=>C.getVisibleLeafColumns().reduce((t,o)=>{let{size:r,minSize:g,maxSize:f}=Q(o.columnDef);return o.getCanResize()?o.id!==k&&o.id in D?t+ee(D[o.id]??r,g,f):t+g:t+r},0),[C,le,H,D,k]),Ie=(t,o)=>{let r=t.column.id,{size:g,minSize:f,maxSize:x}=Q(t.column.columnDef),y=ve[r]??g,A="touches"in o?o.touches[0]?.clientX??0:o.clientX;o.preventDefault(),o.stopPropagation(),ae.current=r,xe(r),document.body.style.userSelect="none";let G=$=>{"touches"in $&&$.preventDefault();let cn="touches"in $?$.touches[0]?.clientX??A:$.clientX,Ae=ee(y+(cn-A),f,x);oe(se=>se[r]===Ae?se:{...se,[r]:Ae});},W=()=>{ae.current=null,xe(null),document.body.style.userSelect="",document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",W),ie.current=null,v&&ye(v.clientWidth);};ie.current=W,document.addEventListener("mousemove",G),document.addEventListener("mouseup",W),document.addEventListener("touchmove",G,{passive:false}),document.addEventListener("touchend",W);};useEffect(()=>()=>ie.current?.(),[]),useEffect(()=>{N&&oe(Rn(N));},[N]),useEffect(()=>{if(!v)return;let t=g=>{g>0&&ye(g);};t(v.clientWidth);let o=0,r=new ResizeObserver(([g])=>{if(!g||ae.current!==null)return;cancelAnimationFrame(o);let f=v.clientWidth;o=requestAnimationFrame(()=>t(f));});return r.observe(v),()=>{cancelAnimationFrame(o),r.disconnect();}},[v]),useEffect(()=>{if(N){if(!Re.current){Re.current=true;return}Pe||zn(N,D);}},[N,Pe,D]);let ke=on??l?.pageSize??10;return he?jsx(Qe,{columns:an,rows:ke,hasSelection:F,hasRowActions:!!I,hasPagination:!!l,className:m,...Ne}):!L&&!he&&!C.getRowModel().rows?.length?jsx(f,{...b$1}):jsxs(a$1,{ref:sn,className:m,...Ne,children:[jsxs(b,{style:{width:"100%",minWidth:rn,tableLayout:"fixed"},children:[jsx("colgroup",{children:C.getHeaderGroups()[0].headers.map(t=>{let o=t.column,r=o.getCanResize(),{size:g,minSize:f,maxSize:x}=Q(o.columnDef);if(o.id===k)return jsx("col",{span:1,style:{width:"auto",minWidth:f}},t.id);let y=ve[o.id]??ee(D[o.id]??g,f,x);return jsx("col",{span:1,style:{width:y,minWidth:r?f:y}},t.id)})}),jsx(c,{children:C.getHeaderGroups().map(t=>jsx(g,{children:t.headers.map(o=>{if(o.isPlaceholder)return jsx(h,{},o.id);let r=o.column.columnDef,g=flexRender(r.header,o.getContext()),f=typeof r.headerTooltip=="string"?r.headerTooltip:typeof g=="string"?g:void 0,x=o.column.id!==q&&r.headerTooltip!==false&&f!=null,y=jsx("span",{className:"line-clamp-1",children:g});return jsxs(h,{className:o.column.id===M?a("p-0",Z):N?"group/resize relative overflow-clip":void 0,children:[jsxs("div",{className:"flex items-center",children:[x?jsx(a$2,{content:f,contentClassName:"font-normal normal-case",children:y}):y,r.headerInfoTooltip&&jsx(a$2,{content:r.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e$1,{className:"ml-1 w-[0.875rem] shrink-0"})})]}),N&&o.column.getCanResize()&&o.column.id!==k&&jsx("div",{onMouseDown:A=>Ie(o,A),onTouchStart:A=>Ie(o,A),className:a("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none","bg-primary-400 opacity-0 transition-opacity group-hover/resize:opacity-100",ze===o.column.id&&"bg-primary-600 opacity-100")})]},o.id)})},t.id))}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:L?Array.from({length:ke},(t,o)=>jsx(e,{children:C.getVisibleLeafColumns().map((r,g)=>{let f=r.columnDef;return jsx(i,{className:r.id===q?"align-middle":r.id===M?a("bg-primary-50 p-0 align-middle",Z):void 0,children:r.id===q?jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"}):r.id===M?jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]}):f.skeleton!=null?f.skeleton:jsx(a$3,{className:a("h-4",ne[(o+g)%ne.length])})},r.id)})},o)):C.getRowModel().rows.map(t=>jsx(en,{row:t,isSelected:t.getIsSelected(),type:we?we(t.original):"default",columns:H},t.id))})]}),l&&u&&(a$4.length>0||L)&&jsx(j,{rowsPerPageOptions:d$1,rowsCount:i$1,pagination:l,onPageSizeChange:t=>{C.setPagination({pageIndex:0,pageSize:t}),R?.(t);},onPreviousPageClick:P,onNextPageClick:T,isDisableNextPageButton:L||c$1||!!i$1&&!C.getCanNextPage(),isDisablePreviousPageButton:L||s||!!i$1&&!C.getCanPreviousPage(),onPageChange:t=>{C.setPageIndex(t-1);}})]})}export{et as a};
@@ -0,0 +1 @@
1
+ import {g}from'./chunk-QMPBFFFC.js';import {d}from'./chunk-CNMAEXOF.js';import {a}from'./chunk-2EC6JI3N.js';import {forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var k=["primary","secondary","ghost"],I=["primary","neutral"],A=tv({extend:d,slots:{root:"",icon:"",chevron:"size-3.5 shrink-0 text-neutral-800 transition-transform duration-150 motion-reduce:transition-none"},variants:{variant:{primary:{},secondary:{},ghost:{}},disabled:{true:{},false:{}},hasAlertBadge:{true:{},false:{}},selected:{true:{chevron:"rotate-180"},false:{}}},compoundVariants:[{variant:"primary",className:{chevron:"text-neutral-50"}},{variant:["secondary","ghost"],tone:"primary",disabled:false,className:{chevron:"text-primary-600"}},{variant:["secondary","ghost"],selected:true,disabled:false,className:{chevron:"text-primary-600"}},{variant:["secondary","ghost"],disabled:true,className:{chevron:"text-neutral-600"}},{selected:true,disabled:false,variant:"primary",tone:"primary",className:{root:"bg-primary-800"}},{selected:true,disabled:false,variant:"primary",tone:"neutral",className:{root:"bg-neutral-900"}},{selected:true,disabled:false,variant:"secondary",tone:"primary",className:{root:"bg-primary-200 text-primary-800 ring-primary-800"}},{selected:true,disabled:false,variant:"secondary",tone:"neutral",className:{root:"bg-primary-200 ring-primary-800"}},{selected:true,disabled:false,variant:"ghost",tone:"primary",className:{root:"bg-primary-200 text-primary-800"}},{selected:true,disabled:false,variant:"ghost",tone:"neutral",className:{root:"bg-primary-200"}}]}),x=forwardRef(({children:e,className:m,disabled:r,type:p="button",size:a$1="lg",variant:o="primary",tone:u="primary",selected:d=false,hasAlertBadge:y,badgeNumber:s,StartIcon:n,...b},v)=>{let{root:f,icon:g$1,chevron:h}=A({size:a$1,variant:o,tone:u,disabled:r,selected:d,hasAlertBadge:y});return jsxs("button",{...b,ref:v,type:p,disabled:r,className:f({className:m}),children:[n&&jsx(n,{className:g$1()}),(e||e===0)&&jsx("span",{className:"truncate",children:e}),s&&jsx(a,{...s,variant:o==="primary"?"info":"primary",size:a$1,type:"square",className:"shrink-0"}),jsx(g,{"aria-hidden":"true",className:h()})]})});x.displayName="ButtonActive";export{k as a,I as b,x as c};
@@ -1 +1 @@
1
- import {a}from'./chunk-7ASB5J74.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useRef}from'react';import {jsx}from'react/jsx-runtime';var A=({items:f,variant:l="list",disabled:p,onRemove:i,className:h})=>{let r=useRef(null),c=useRef(new WeakMap),y=useRef(0),b=e=>{if(e.kind==="remote")return e.id===void 0?`remote:url:${e.url}`:`remote:${typeof e.id}:${e.id}`;let t=c.current.get(e.file);return t===void 0&&(t=y.current++,c.current.set(e.file,t)),`local:${t}`},L=(e,t)=>{i?.(e,t),requestAnimationFrame(()=>{let n=r.current?.querySelectorAll("[data-file-remove]:not(:disabled)"),o=n?.[Math.min(t,n.length-1)],F=r.current?.closest("[data-attachment-field]");(o??F??r.current)?.focus();});},a$2=new Map;return jsx("ul",{ref:r,tabIndex:-1,className:a$1("flex min-w-0 gap-3 empty:hidden",l==="thumbnails"?"flex-wrap":"flex-col",h),children:f.map((e,t)=>{let n=b(e),o=a$2.get(n)??0;return a$2.set(n,o+1),jsx(a,{item:e,variant:l,disabled:p,onRemove:i?()=>L(e,t):void 0},`${n}:${o}`)})})};export{A as a};
1
+ import {a}from'./chunk-6EO2NKQH.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useRef}from'react';import {jsx}from'react/jsx-runtime';var A=({items:f,variant:l="list",disabled:p,onRemove:i,className:h})=>{let r=useRef(null),c=useRef(new WeakMap),y=useRef(0),b=e=>{if(e.kind==="remote")return e.id===void 0?`remote:url:${e.url}`:`remote:${typeof e.id}:${e.id}`;let t=c.current.get(e.file);return t===void 0&&(t=y.current++,c.current.set(e.file,t)),`local:${t}`},L=(e,t)=>{i?.(e,t),requestAnimationFrame(()=>{let n=r.current?.querySelectorAll("[data-file-remove]:not(:disabled)"),o=n?.[Math.min(t,n.length-1)],F=r.current?.closest("[data-attachment-field]");(o??F??r.current)?.focus();});},a$2=new Map;return jsx("ul",{ref:r,tabIndex:-1,className:a$1("flex min-w-0 gap-3 empty:hidden",l==="thumbnails"?"flex-wrap":"flex-col",h),children:f.map((e,t)=>{let n=b(e),o=a$2.get(n)??0;return a$2.set(n,o+1),jsx(a,{item:e,variant:l,disabled:p,onRemove:i?()=>L(e,t):void 0},`${n}:${o}`)})})};export{A as a};