@xjur-ui/react 4.0.3 → 4.0.4

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 (142) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/components/accordion/accordion-tab-header.js +1 -1
  3. package/dist/components/accordion/accordion-trigger.js +1 -1
  4. package/dist/components/accordion/index.js +1 -1
  5. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  6. package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
  7. package/dist/components/breadcrumb/index.js +1 -1
  8. package/dist/components/carousel/carousel-action.js +1 -1
  9. package/dist/components/carousel/index.js +1 -1
  10. package/dist/components/chip/chip-close.js +1 -1
  11. package/dist/components/chip/chip-icon.js +1 -1
  12. package/dist/components/chip/index.js +1 -1
  13. package/dist/components/controls/calendar.js +1 -1
  14. package/dist/components/controls/checkbox.js +1 -1
  15. package/dist/components/controls/date-picker/date-picker-icon.js +1 -1
  16. package/dist/components/controls/date-picker/index.js +1 -1
  17. package/dist/components/controls/input/index.js +1 -1
  18. package/dist/components/controls/input/input-icon.js +1 -1
  19. package/dist/components/controls/input/input-numeric-stepper.js +1 -1
  20. package/dist/components/controls/rating.js +1 -1
  21. package/dist/components/controls/search-selector.js +1 -1
  22. package/dist/components/controls/select/index.d.ts +1 -0
  23. package/dist/components/controls/select/index.js +1 -1
  24. package/dist/components/controls/select/select-icon.js +1 -1
  25. package/dist/components/controls/select/select-option.d.ts +2 -1
  26. package/dist/components/controls/select/select-option.js +1 -1
  27. package/dist/components/controls/text-area/index.js +1 -1
  28. package/dist/components/controls/text-area/text-area-caption.js +1 -1
  29. package/dist/components/controls/text-area/text-area-content.js +1 -1
  30. package/dist/components/controls/text-area/text-area-editor.js +1 -1
  31. package/dist/components/controls/text-area/text-area-fullscreen-button.js +1 -1
  32. package/dist/components/controls/text-area/text-area-heading-button.js +1 -1
  33. package/dist/components/controls/text-area/text-area-root.js +1 -1
  34. package/dist/components/controls/text-area/text-area-toggle-button.js +1 -1
  35. package/dist/components/controls/text-area/text-area-toolbar.js +1 -1
  36. package/dist/components/custom/andamento-timeline/andamento-timeline.js +1 -1
  37. package/dist/components/custom/andamento-timeline/index.js +1 -1
  38. package/dist/components/custom/centro-custo/centro-custo-add-button.js +1 -1
  39. package/dist/components/custom/centro-custo/centro-custo-body.js +1 -1
  40. package/dist/components/custom/centro-custo/centro-custo-close-button.js +1 -1
  41. package/dist/components/custom/centro-custo/centro-custo-content.js +1 -1
  42. package/dist/components/custom/centro-custo/centro-custo-footer.js +1 -1
  43. package/dist/components/custom/centro-custo/centro-custo-header.js +1 -1
  44. package/dist/components/custom/centro-custo/centro-custo-trigger.js +1 -1
  45. package/dist/components/custom/centro-custo/centro-custo.js +1 -1
  46. package/dist/components/custom/centro-custo/index.js +1 -1
  47. package/dist/components/custom/empresa/empresa-add-button.js +1 -1
  48. package/dist/components/custom/empresa/empresa-body.js +1 -1
  49. package/dist/components/custom/empresa/empresa-close-button.js +1 -1
  50. package/dist/components/custom/empresa/empresa-content.js +1 -1
  51. package/dist/components/custom/empresa/empresa-footer.js +1 -1
  52. package/dist/components/custom/empresa/empresa-header.js +1 -1
  53. package/dist/components/custom/empresa/empresa-table.js +1 -1
  54. package/dist/components/custom/empresa/empresa-trigger.js +1 -1
  55. package/dist/components/custom/empresa/empresa.js +1 -1
  56. package/dist/components/custom/empresa/index.js +1 -1
  57. package/dist/components/custom/lista-nivelada/hierarchical-navigation.js +1 -1
  58. package/dist/components/custom/lista-nivelada/index.js +1 -1
  59. package/dist/components/custom/lista-nivelada/lista-nivelada-body.js +1 -1
  60. package/dist/components/custom/lista-nivelada/lista-nivelada-close-button.js +1 -1
  61. package/dist/components/custom/lista-nivelada/lista-nivelada-content.js +1 -1
  62. package/dist/components/custom/lista-nivelada/lista-nivelada-footer.js +1 -1
  63. package/dist/components/custom/lista-nivelada/lista-nivelada-header.js +1 -1
  64. package/dist/components/custom/lista-nivelada/lista-nivelada-trigger.js +1 -1
  65. package/dist/components/custom/lista-nivelada/lista-nivelada.js +1 -1
  66. package/dist/components/custom/lista-nivelada/navigation-button.js +1 -1
  67. package/dist/components/custom/lista-nivelada/navigation-grid.js +1 -1
  68. package/dist/components/custom/lista-nivelada/radio-selection.js +1 -1
  69. package/dist/components/custom/pessoa/index.js +1 -1
  70. package/dist/components/custom/pessoa/pessoa-add-button.js +1 -1
  71. package/dist/components/custom/pessoa/pessoa-body.js +1 -1
  72. package/dist/components/custom/pessoa/pessoa-close-button.js +1 -1
  73. package/dist/components/custom/pessoa/pessoa-content.js +1 -1
  74. package/dist/components/custom/pessoa/pessoa-footer.js +1 -1
  75. package/dist/components/custom/pessoa/pessoa-header.js +1 -1
  76. package/dist/components/custom/pessoa/pessoa-trigger.js +1 -1
  77. package/dist/components/custom/pessoa/pessoa.js +1 -1
  78. package/dist/components/dialog/delete-dialog.js +1 -1
  79. package/dist/components/dialog/dialog-content.js +1 -1
  80. package/dist/components/dialog/index.js +1 -1
  81. package/dist/components/full-calendar/calendar-add-event.js +1 -1
  82. package/dist/components/full-calendar/calendar-cell.js +1 -1
  83. package/dist/components/full-calendar/calendar-day-view.js +1 -1
  84. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  85. package/dist/components/full-calendar/calendar-navigator.js +1 -1
  86. package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
  87. package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
  88. package/dist/components/full-calendar/calendar-week-view.js +1 -1
  89. package/dist/components/full-calendar/index.js +1 -1
  90. package/dist/components/icon/components/agenda.d.ts +1 -0
  91. package/dist/components/icon/components/agenda.js +1 -0
  92. package/dist/components/icon/components/compliance.d.ts +1 -0
  93. package/dist/components/icon/components/compliance.js +1 -0
  94. package/dist/components/icon/components/consultivo.d.ts +1 -0
  95. package/dist/components/icon/components/consultivo.js +1 -0
  96. package/dist/components/icon/components/contencioso.d.ts +1 -0
  97. package/dist/components/icon/components/contencioso.js +1 -0
  98. package/dist/components/icon/components/contrato.d.ts +1 -0
  99. package/dist/components/icon/components/contrato.js +1 -0
  100. package/dist/components/icon/components/custom-icon.d.ts +4 -0
  101. package/dist/components/icon/components/custom-icon.js +1 -0
  102. package/dist/components/icon/components/email-reset-senha-icon.d.ts +1 -0
  103. package/dist/components/icon/components/email-reset-senha-icon.js +1 -0
  104. package/dist/components/icon/components/ged.d.ts +1 -0
  105. package/dist/components/icon/components/ged.js +1 -0
  106. package/dist/components/icon/components/imobiliario.d.ts +1 -0
  107. package/dist/components/icon/components/imobiliario.js +1 -0
  108. package/dist/components/icon/components/marcas-e-patentes.d.ts +1 -0
  109. package/dist/components/icon/components/marcas-e-patentes.js +1 -0
  110. package/dist/components/icon/components/procuracao.d.ts +1 -0
  111. package/dist/components/icon/components/procuracao.js +1 -0
  112. package/dist/components/icon/components/regulatorio.d.ts +1 -0
  113. package/dist/components/icon/components/regulatorio.js +1 -0
  114. package/dist/components/icon/components/xpay.d.ts +1 -0
  115. package/dist/components/icon/components/xpay.js +1 -0
  116. package/dist/components/icon/components/xsigner.d.ts +1 -0
  117. package/dist/components/icon/components/xsigner.js +1 -0
  118. package/dist/components/icon/index.d.ts +1 -1
  119. package/dist/components/icon/index.js +1 -1
  120. package/dist/components/message/index.js +1 -1
  121. package/dist/components/message/message-close.js +1 -1
  122. package/dist/components/message/message-icon.js +1 -1
  123. package/dist/components/selection-bar/index.js +1 -1
  124. package/dist/components/selection-bar/selection-bar-close.js +1 -1
  125. package/dist/components/sheet/index.js +1 -1
  126. package/dist/components/sheet/sheet-close.js +1 -1
  127. package/dist/components/table/index.js +1 -1
  128. package/dist/components/table/table-row.js +1 -1
  129. package/dist/components/table/table-sort.js +1 -1
  130. package/dist/components/tag/index.js +1 -1
  131. package/dist/components/tag/tag-close.js +1 -1
  132. package/dist/components/tag/tag-icon.js +1 -1
  133. package/dist/components/timeline-card/index.js +1 -1
  134. package/dist/components/timeline-card/timeline-card.js +1 -1
  135. package/dist/components/toast/index.js +1 -1
  136. package/dist/components/toast/toast-component.js +1 -1
  137. package/dist/components/toast/toast.js +1 -1
  138. package/dist/components/upload/index.js +1 -1
  139. package/dist/components/upload/upload-icon.js +1 -1
  140. package/dist/resources/icons.d.ts +2 -1
  141. package/dist/resources/icons.js +1 -1
  142. package/package.json +3 -3
@@ -1 +1 @@
1
- import{Fragment as Xe,useMemo as A}from"react";import{useDroppable as Ze}from"@dnd-kit/core";import{cx as je,tv as et}from"@xjur-ui/util";var me=Math.pow(10,8)*24*60*60*1e3,ot=-me;var ce=3600;var $=ce*24,rt=$*7,ue=$*365.2425,fe=ue/12,at=fe*3,P=Symbol.for("constructDateFrom");function p(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&P in e?e[P](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e,t){return p(t||e,e)}function K(e,...t){let o=p.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function T(e,t){let o=v(e,t?.in);return o.setHours(0,0,0,0),o}function Q(e){return p(e,Date.now())}function I(e,t,o){let[r,n]=K(o?.in,e,t);return+T(r)==+T(n)}function q(e){return+v(e)<Date.now()}function G(e,t){return I(p(t?.in||e,e),Q(t?.in||e))}import{Slot as ge}from"@radix-ui/react-slot";import{cva as he}from"@xjur-ui/util";import{memo as X,useState as be}from"react";import*as y from"@radix-ui/react-tooltip";import{jsx as z}from"react/jsx-runtime";function ve({delayDuration:e=0,...t}){return z(y.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function M({...e}){return z(ve,{children:z(y.Root,{"data-slot":"tooltip",...e})})}import*as U from"@radix-ui/react-tooltip";import{jsx as ye}from"react/jsx-runtime";function E({...e}){return ye(U.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as x from"@radix-ui/react-tooltip";import{cx as xe}from"@xjur-ui/util";import{jsx as J}from"react/jsx-runtime";function k({className:e,sideOffset:t=1,variant:o="simple",children:r,...n}){return J(x.Portal,{children:J(x.Content,{className:xe("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:r})})}import{jsx as g,jsxs as we}from"react/jsx-runtime";var Ce=he("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),c=X(({variant:e,size:t,weight:o,asChild:r,className:n,children:a,...i})=>g(r?ge:"span",{className:Ce({variant:e,size:t,weight:o,className:n}),...i,children:a}));c.displayName="Typography";var De=X(({children:e,...t})=>{let[o,r]=be(!1);return we(M,{children:[g(E,{asChild:!0,children:g(c,{onMouseEnter:({currentTarget:a})=>{let i=a.scrollWidth>a.clientWidth;r(i),i?a.style.cursor="pointer":a.style.cursor="text"},...t,children:e})}),o&&g(k,{children:e})]})});De.displayName="TruncatedTypography";import{Slot as _e}from"@radix-ui/react-slot";import{cva as Pe,cx as Te}from"@xjur-ui/util";import{jsx as ze}from"react/jsx-runtime";var Ie=Pe(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function h({asChild:e,className:t,variant:o="primary",size:r="md",appearance:n="solid",...a}){return ze(e?_e:"button",{className:Te(Ie({variant:o,appearance:n,size:r}),t),...a})}import{cx as Me}from"@xjur-ui/util";import{jsx as Ee}from"react/jsx-runtime";function Z({className:e,filled:t=!1,name:o,...r}){return Ee("span",{...r,className:Me("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}var no=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function S(e){return G(e)}import{createContext as ke,use as Se,useCallback as po,useMemo as mo,useState as co}from"react";import{DndContext as fo,closestCenter as vo,useSensor as yo,useSensors as xo,PointerSensor as go,KeyboardSensor as ho,MouseSensor as bo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as Do}from"@dnd-kit/sortable";import{jsx as _o}from"react/jsx-runtime";var Re=ke({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function b(){let e=Se(Re);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as Je}from"react/jsx-runtime";import"react";import*as j from"@radix-ui/react-dropdown-menu";import{jsx as Ve}from"react/jsx-runtime";function R({...e}){return Ve(j.Root,{"data-slot":"dropdown-menu",...e})}import*as ee from"@radix-ui/react-dropdown-menu";import{jsx as Ne}from"react/jsx-runtime";function V({...e}){return Ne(ee.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as C from"@radix-ui/react-dropdown-menu";import{cx as qe}from"@xjur-ui/util";import{Slot as He}from"@radix-ui/react-slot";import{cx as Oe}from"@xjur-ui/util";import{useVirtualizer as Fe}from"@tanstack/react-virtual";import{useRef as We}from"react";import{createContext as Le}from"react";var f=Le({virtualizer:null,enabled:!1});import{jsx as te}from"react/jsx-runtime";function N({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:n=0,estimateSize:a=()=>48,overscan:i=5,...d}){let m=t?He:"div",s=We(null),w=Fe({count:n,getScrollElement:()=>s.current,estimateSize:a,overscan:i,enabled:r});return te(f.Provider,{value:{virtualizer:w,enabled:r},children:te(m,{...d,className:Oe(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:s,children:o})})}import{Slot as Ao}from"@radix-ui/react-slot";import{cx as Yo}from"@xjur-ui/util";import{jsx as Ko}from"react/jsx-runtime";import{cx as Go}from"@xjur-ui/util";import{jsx as Xo}from"react/jsx-runtime";import{Slot as Ae}from"@radix-ui/react-slot";import{cx as oe}from"@xjur-ui/util";import{useContext as Be}from"react";import{jsx as L}from"react/jsx-runtime";function H({className:e,asChild:t,children:o,renderItem:r,...n}){let a=t?Ae:"ul",{virtualizer:i,enabled:d}=Be(f);if(d&&i&&r){let m=i.getVirtualItems();return L(a,{...n,className:oe("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:m.map(s=>L("div",{className:"absolute top-0 left-0 w-full","data-index":s.index,ref:i.measureElement,style:{transform:`translateY(${s.start}px)`},children:r(s.index)},s.key))})}return L(a,{...n,className:oe("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as ir}from"@radix-ui/react-slot";import{cx as lr,cva as Ye}from"@xjur-ui/util";import{jsx as mr}from"react/jsx-runtime";var pr=Ye(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as O}from"react/jsx-runtime";function F({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:n,...a}){return O(C.Portal,{children:O(C.Content,{align:o,className:qe("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:t,...a,children:O(N,{children:n})})})}import{jsx as Ge}from"react/jsx-runtime";function W({...e}){return Ge(H,{...e})}import{jsx as Mr}from"react/jsx-runtime";import{cx as Fr}from"@xjur-ui/util";import"react";import*as Ue from"@radix-ui/react-separator";import{cx as Rr}from"@xjur-ui/util";import{jsx as Nr}from"react/jsx-runtime";import{jsx as $r}from"react/jsx-runtime";import{jsx as D,jsxs as re}from"react/jsx-runtime";function ae({events:e}){let{renderEvent:t}=b();return re(R,{children:[D(V,{asChild:!0,children:re(h,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),D(F,{className:"w-[240px]",children:D(W,{children:e.map(o=>D(Je,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as l,jsxs as B}from"react/jsx-runtime";var tt=et({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function ba({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:n,activeEventId:a,onAddEvent:i,disableEventCreationInPast:d}=b(),m=A(()=>t.slice(0,2),[t]),s=t.length>=3,{isOver:w,setNodeRef:ne}=Ze({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),ie=A(()=>{let u=t.find(_=>_.id===a);if(!u)return!1;let Y=_=>_.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),pe=Y(o),de=Y(u.eventDate);return pe===de},[a,o,t]),se=tt({type:r}),le=A(()=>d&&q(o)&&!S(o),[d,o]);return B("div",{className:se,"data-slot":"calendar-cell",ref:ne,children:[r==="month"&&l("div",{className:"flex items-center justify-center",children:l("div",{className:je("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",S(o)&&"bg-primary-idle text-neutral-label"),children:l(c,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),B("div",{className:"gap-small-1x flex flex-col",children:[m.map(u=>l(Xe,{children:n(u)},u.id)),w&&m.length<2&&!ie&&l("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),B("div",{className:"mt-auto flex items-center justify-between",children:[s&&l(ae,{events:t.slice(2)}),i&&!le&&l("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:l(h,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:l(Z,{className:"text-icon-neutral-3",name:"add"})})})]})]})}export{ba as CalendarCell};
1
+ import{Fragment as Rt,useMemo as me}from"react";import{useDroppable as Nt}from"@dnd-kit/core";import{cx as Bt,tv as Zt}from"@xjur-ui/util";var $e=Math.pow(10,8)*24*60*60*1e3,Wt=-$e;var Ge=3600;var he=Ge*24,Ot=he*7,Ke=he*365.2425,Qe=Ke/12,jt=Qe*3,B=Symbol.for("constructDateFrom");function f(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&B in e?e[B](t):e instanceof Date?new e.constructor(t):new Date(t)}function L(e,t){return f(t||e,e)}function Ce(e,...t){let o=f.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function Z(e,t){let o=L(e,t?.in);return o.setHours(0,0,0,0),o}function ve(e){return f(e,Date.now())}function F(e,t,o){let[r,n]=Ce(o?.in,e,t);return+Z(r)==+Z(n)}function ge(e){return+L(e)<Date.now()}function ye(e,t){return F(f(t?.in||e,e),ve(t?.in||e))}import{Slot as Je}from"@radix-ui/react-slot";import{cva as et}from"@xjur-ui/util";import{memo as De,useState as tt}from"react";import*as _ from"@radix-ui/react-tooltip";import{jsx as W}from"react/jsx-runtime";function Xe({delayDuration:e=0,...t}){return W(_.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function O({...e}){return W(Xe,{children:W(_.Root,{"data-slot":"tooltip",...e})})}import*as ke from"@radix-ui/react-tooltip";import{jsx as qe}from"react/jsx-runtime";function j({...e}){return qe(ke.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as P from"@radix-ui/react-tooltip";import{cx as Ue}from"@xjur-ui/util";import{jsx as xe}from"react/jsx-runtime";function A({className:e,sideOffset:t=1,variant:o="simple",children:r,...n}){return xe(P.Portal,{children:xe(P.Content,{className:Ue("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:r})})}import{jsx as I,jsxs as nt}from"react/jsx-runtime";var ot=et("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),k=De(({variant:e,size:t,weight:o,asChild:r,className:n,children:i,...a})=>I(r?Je:"span",{className:ot({variant:e,size:t,weight:o,className:n}),...a,children:i}));k.displayName="Typography";var rt=De(({children:e,...t})=>{let[o,r]=tt(!1);return nt(O,{children:[I(j,{asChild:!0,children:I(k,{onMouseEnter:({currentTarget:i})=>{let a=i.scrollWidth>i.clientWidth;r(a),a?i.style.cursor="pointer":i.style.cursor="text"},...t,children:e})}),o&&I(A,{children:e})]})});rt.displayName="TruncatedTypography";import{Slot as it}from"@radix-ui/react-slot";import{cva as at,cx as st}from"@xjur-ui/util";import{jsx as pt}from"react/jsx-runtime";var lt=at(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function V({asChild:e,className:t,variant:o="primary",size:r="md",appearance:n="solid",...i}){return pt(e?it:"button",{className:st(lt({variant:o,appearance:n,size:r}),t),...i})}import{cx as ht}from"@xjur-ui/util";var we=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as l,jsxs as dt}from"react/jsx-runtime";function Y(){return dt("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),l("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),l("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),l("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),l("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),l("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),l("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as d,jsxs as Me}from"react/jsx-runtime";function $(){return Me("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Me("g",{clipPath:"url(#clip0_19548_42822)",children:[d("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),d("defs",{children:d("clipPath",{id:"clip0_19548_42822",children:d("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as T,jsxs as ct}from"react/jsx-runtime";function G(){return ct("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[T("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),T("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as s,jsxs as be}from"react/jsx-runtime";function K(){return be("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[be("g",{clipPath:"url(#clip0_19548_42667)",children:[s("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),s("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),s("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),s("defs",{children:s("clipPath",{id:"clip0_19548_42667",children:s("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as v,jsxs as mt}from"react/jsx-runtime";function Q(){return mt("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),v("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),v("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as x,jsxs as Le}from"react/jsx-runtime";function X(){return Le("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Le("g",{clipPath:"url(#clip0_19548_42803)",children:[x("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),x("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),x("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),x("defs",{children:x("clipPath",{id:"clip0_19548_42803",children:x("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as g,jsxs as _e}from"react/jsx-runtime";function q(){return _e("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_e("g",{clipPath:"url(#clip0_19548_42782)",children:[g("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),g("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),g("defs",{children:g("clipPath",{id:"clip0_19548_42782",children:g("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as H,jsxs as ut}from"react/jsx-runtime";function U(){return ut("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[H("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),H("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),H("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as h,jsxs as Pe}from"react/jsx-runtime";function J(){return Pe("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Pe("g",{clipPath:"url(#clip0_19548_42757)",children:[h("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),h("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),h("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),h("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),h("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),h("defs",{children:h("clipPath",{id:"clip0_19548_42757",children:h("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as D,jsxs as Ie}from"react/jsx-runtime";function ee(){return Ie("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ie("g",{clipPath:"url(#clip0_19548_42810)",children:[D("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),D("defs",{children:D("clipPath",{id:"clip0_19548_42810",children:D("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as c,jsxs as Ve}from"react/jsx-runtime";function te(){return Ve("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ve("g",{clipPath:"url(#clip0_21377_57335)",children:[c("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),c("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),c("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),c("defs",{children:c("clipPath",{id:"clip0_21377_57335",children:c("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as M,jsxs as ft}from"react/jsx-runtime";function oe(){return ft("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[M("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),M("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as p}from"react/jsx-runtime";function Te({name:e}){switch(e){case"agenda":return p(Y,{});case"contencioso":return p(K,{});case"contrato":return p(Q,{});case"consultivo":return p(G,{});case"xsigner":return p(oe,{});case"procuracao":return p(J,{});case"xpay":return p(te,{});case"imobiliario":return p(q,{});case"marcasepatentes":return p(U,{});case"ged":return p(X,{});case"regulatorio":return p(ee,{});case"compliance":return p($,{});default:return null}}import{jsx as He}from"react/jsx-runtime";function ze({className:e,filled:t=!1,name:o,...r}){return we.includes(o)?He(Te,{name:o}):He("span",{...r,className:ht("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}var Tr=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function re(e){return ye(e)}import{createContext as Ct,use as vt,useCallback as Sr,useMemo as Rr,useState as Nr}from"react";import{DndContext as Zr,closestCenter as Fr,useSensor as Wr,useSensors as Or,PointerSensor as jr,KeyboardSensor as Ar,MouseSensor as Yr}from"@dnd-kit/core";import{sortableKeyboardCoordinates as Gr}from"@dnd-kit/sortable";import{jsx as Qr}from"react/jsx-runtime";var gt=Ct({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function z(){let e=vt(gt);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as St}from"react/jsx-runtime";import"react";import*as Ee from"@radix-ui/react-dropdown-menu";import{jsx as yt}from"react/jsx-runtime";function ne({...e}){return yt(Ee.Root,{"data-slot":"dropdown-menu",...e})}import*as Se from"@radix-ui/react-dropdown-menu";import{jsx as kt}from"react/jsx-runtime";function ie({...e}){return kt(Se.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as E from"@radix-ui/react-dropdown-menu";import{cx as Ht}from"@xjur-ui/util";import{Slot as Dt}from"@radix-ui/react-slot";import{cx as wt}from"@xjur-ui/util";import{useVirtualizer as Mt}from"@tanstack/react-virtual";import{useRef as bt}from"react";import{createContext as xt}from"react";var b=xt({virtualizer:null,enabled:!1});import{jsx as Re}from"react/jsx-runtime";function ae({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:n=0,estimateSize:i=()=>48,overscan:a=5,...C}){let y=t?Dt:"div",m=bt(null),R=Mt({count:n,getScrollElement:()=>m.current,estimateSize:i,overscan:a,enabled:r});return Re(b.Provider,{value:{virtualizer:R,enabled:r},children:Re(y,{...C,className:wt(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:m,children:o})})}import{Slot as un}from"@radix-ui/react-slot";import{cx as hn}from"@xjur-ui/util";import{jsx as vn}from"react/jsx-runtime";import{cx as kn}from"@xjur-ui/util";import{jsx as wn}from"react/jsx-runtime";import{Slot as Lt}from"@radix-ui/react-slot";import{cx as Ne}from"@xjur-ui/util";import{useContext as _t}from"react";import{jsx as se}from"react/jsx-runtime";function le({className:e,asChild:t,children:o,renderItem:r,...n}){let i=t?Lt:"ul",{virtualizer:a,enabled:C}=_t(b);if(C&&a&&r){let y=a.getVirtualItems();return se(i,{...n,className:Ne("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:y.map(m=>se("div",{className:"absolute top-0 left-0 w-full","data-index":m.index,ref:a.measureElement,style:{transform:`translateY(${m.start}px)`},children:r(m.index)},m.key))})}return se(i,{...n,className:Ne("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Hn}from"@radix-ui/react-slot";import{cx as En,cva as Pt}from"@xjur-ui/util";import{jsx as Nn}from"react/jsx-runtime";var Sn=Pt(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as pe}from"react/jsx-runtime";function de({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:n,...i}){return pe(E.Portal,{children:pe(E.Content,{align:o,className:Ht("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:t,...i,children:pe(ae,{children:n})})})}import{jsx as zt}from"react/jsx-runtime";function ce({...e}){return zt(le,{...e})}import{jsx as t1}from"react/jsx-runtime";import{cx as c1}from"@xjur-ui/util";import"react";import*as Et from"@radix-ui/react-separator";import{cx as i1}from"@xjur-ui/util";import{jsx as s1}from"react/jsx-runtime";import{jsx as C1}from"react/jsx-runtime";import{jsx as S,jsxs as Be}from"react/jsx-runtime";function Ze({events:e}){let{renderEvent:t}=z();return Be(ne,{children:[S(ie,{asChild:!0,children:Be(V,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),S(de,{className:"w-[240px]",children:S(ce,{children:e.map(o=>S(St,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as u,jsxs as ue}from"react/jsx-runtime";var Ft=Zt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function $1({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:n,activeEventId:i,onAddEvent:a,disableEventCreationInPast:C}=z(),y=me(()=>t.slice(0,2),[t]),m=t.length>=3,{isOver:R,setNodeRef:Fe}=Nt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),We=me(()=>{let w=t.find(N=>N.id===i);if(!w)return!1;let fe=N=>N.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),Ae=fe(o),Ye=fe(w.eventDate);return Ae===Ye},[i,o,t]),Oe=Ft({type:r}),je=me(()=>C&&ge(o)&&!re(o),[C,o]);return ue("div",{className:Oe,"data-slot":"calendar-cell",ref:Fe,children:[r==="month"&&u("div",{className:"flex items-center justify-center",children:u("div",{className:Bt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",re(o)&&"bg-primary-idle text-neutral-label"),children:u(k,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),ue("div",{className:"gap-small-1x flex flex-col",children:[y.map(w=>u(Rt,{children:n(w)},w.id)),R&&y.length<2&&!We&&u("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),ue("div",{className:"mt-auto flex items-center justify-between",children:[m&&u(Ze,{events:t.slice(2)}),a&&!je&&u("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:u(V,{size:"icon_sm",variant:"outlined",onClick:()=>a(o),children:u(ze,{className:"text-icon-neutral-3",name:"add"})})})]})]})}export{$1 as CalendarCell};
@@ -1 +1 @@
1
- import{useCallback as ye}from"react";import{cx as ft}from"@xjur-ui/util";var De=Math.pow(10,8)*24*60*60*1e3,yt=-De;var we=3600;var G=we*24,vt=G*7,_e=G*365.2425,Pe=_e/12,xt=Pe*3,z=Symbol.for("constructDateFrom");function d(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&z in e?e[z](t):e instanceof Date?new e.constructor(t):new Date(t)}function f(e,t){return d(t||e,e)}function U(e,...t){let o=d.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function M(e,t){let o=f(e,t?.in);return o.setHours(0,0,0,0),o}function J(e){return d(e,Date.now())}function b(e,t,o){let[r,a]=U(o?.in,e,t);return+M(r)==+M(a)}function X(e){return+f(e)<Date.now()}function Z(e,t){return b(d(t?.in||e,e),J(t?.in||e))}function j(e,t,o){let r=f(e,o?.in);return r.setHours(t),r}import{Slot as Me}from"@radix-ui/react-slot";import{cva as ke}from"@xjur-ui/util";import{memo as oe,useState as Ee}from"react";import*as h from"@radix-ui/react-tooltip";import{jsx as k}from"react/jsx-runtime";function Te({delayDuration:e=0,...t}){return k(h.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function E({...e}){return k(Te,{children:k(h.Root,{"data-slot":"tooltip",...e})})}import*as ee from"@radix-ui/react-tooltip";import{jsx as Ie}from"react/jsx-runtime";function S({...e}){return Ie(ee.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as C from"@radix-ui/react-tooltip";import{cx as ze}from"@xjur-ui/util";import{jsx as te}from"react/jsx-runtime";function N({className:e,sideOffset:t=1,variant:o="simple",children:r,...a}){return te(C.Portal,{children:te(C.Content,{className:ze("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...a,children:r})})}import{jsx as D,jsxs as Re}from"react/jsx-runtime";var Se=ke("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),s=oe(({variant:e,size:t,weight:o,asChild:r,className:a,children:n,...i})=>D(r?Me:"span",{className:Se({variant:e,size:t,weight:o,className:a}),...i,children:n}));s.displayName="Typography";var Ne=oe(({children:e,...t})=>{let[o,r]=Ee(!1);return Re(E,{children:[D(S,{asChild:!0,children:D(s,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;r(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),o&&D(N,{children:e})]})});Ne.displayName="TruncatedTypography";var re=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],ae=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function x(e){return Z(e)}function ne(e,t,o){return e.filter(r=>b(r.eventDate,t)&&r.eventDate.getHours()===o)}import{createContext as Ve,use as He,useCallback as fo,useMemo as yo,useState as vo}from"react";import{DndContext as go,closestCenter as bo,useSensor as ho,useSensors as Co,PointerSensor as Do,KeyboardSensor as wo,MouseSensor as _o}from"@dnd-kit/core";import{sortableKeyboardCoordinates as To}from"@dnd-kit/sortable";import{jsx as zo}from"react/jsx-runtime";var Le=Ve({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function y(){let e=He(Le);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{cx as R}from"@xjur-ui/util";import{jsx as V,jsxs as Oe}from"react/jsx-runtime";function ie({date:e,className:t,...o}){let r=x(e),a=e.getDate();return Oe("div",{className:R("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...o,children:[V(s,{size:"sm",variant:"label",weight:"medium",children:re[e.getDay()]}),V("div",{className:R("size-large-2x rounded-circle flex items-center justify-center",r&&"bg-primary-idle"),children:V(s,{className:R(r&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:a})})]},e.toISOString())}import{Fragment as pt,useMemo as K}from"react";import{useDroppable as dt}from"@dnd-kit/core";import{cx as mt,tv as ct}from"@xjur-ui/util";import{Slot as We}from"@radix-ui/react-slot";import{cva as Fe,cx as Ae}from"@xjur-ui/util";import{jsx as Ye}from"react/jsx-runtime";var Be=Fe(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function w({asChild:e,className:t,variant:o="primary",size:r="md",appearance:a="solid",...n}){return Ye(e?We:"button",{className:Ae(Be({variant:o,appearance:a,size:r}),t),...n})}import{cx as Ke}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function se({className:e,filled:t=!1,name:o,...r}){return $e("span",{...r,className:Ke("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{Fragment as lt}from"react/jsx-runtime";import"react";import*as le from"@radix-ui/react-dropdown-menu";import{jsx as Qe}from"react/jsx-runtime";function H({...e}){return Qe(le.Root,{"data-slot":"dropdown-menu",...e})}import*as pe from"@radix-ui/react-dropdown-menu";import{jsx as qe}from"react/jsx-runtime";function L({...e}){return qe(pe.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as _ from"@radix-ui/react-dropdown-menu";import{cx as nt}from"@xjur-ui/util";import{Slot as Ue}from"@radix-ui/react-slot";import{cx as Je}from"@xjur-ui/util";import{useVirtualizer as Xe}from"@tanstack/react-virtual";import{useRef as Ze}from"react";import{createContext as Ge}from"react";var g=Ge({virtualizer:null,enabled:!1});import{jsx as de}from"react/jsx-runtime";function O({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...c}){let u=t?Ue:"div",l=Ze(null),T=Xe({count:a,getScrollElement:()=>l.current,estimateSize:n,overscan:i,enabled:r});return de(g.Provider,{value:{virtualizer:T,enabled:r},children:de(u,{...c,className:Je(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:l,children:o})})}import{Slot as ir}from"@radix-ui/react-slot";import{cx as lr}from"@xjur-ui/util";import{jsx as dr}from"react/jsx-runtime";import{cx as ur}from"@xjur-ui/util";import{jsx as vr}from"react/jsx-runtime";import{Slot as je}from"@radix-ui/react-slot";import{cx as me}from"@xjur-ui/util";import{useContext as et}from"react";import{jsx as W}from"react/jsx-runtime";function F({className:e,asChild:t,children:o,renderItem:r,...a}){let n=t?je:"ul",{virtualizer:i,enabled:c}=et(g);if(c&&i&&r){let u=i.getVirtualItems();return W(n,{...a,className:me("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:u.map(l=>W("div",{className:"absolute top-0 left-0 w-full","data-index":l.index,ref:i.measureElement,style:{transform:`translateY(${l.start}px)`},children:r(l.index)},l.key))})}return W(n,{...a,className:me("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Pr}from"@radix-ui/react-slot";import{cx as Ir,cva as tt}from"@xjur-ui/util";import{jsx as kr}from"react/jsx-runtime";var zr=tt(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as A}from"react/jsx-runtime";function B({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:a,...n}){return A(_.Portal,{children:A(_.Content,{align:o,className:nt("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:t,...n,children:A(O,{children:a})})})}import{jsx as it}from"react/jsx-runtime";function Y({...e}){return it(F,{...e})}import{jsx as Gr}from"react/jsx-runtime";import{cx as aa}from"@xjur-ui/util";import"react";import*as st from"@radix-ui/react-separator";import{cx as Zr}from"@xjur-ui/util";import{jsx as ea}from"react/jsx-runtime";import{jsx as pa}from"react/jsx-runtime";import{jsx as P,jsxs as ce}from"react/jsx-runtime";function ue({events:e}){let{renderEvent:t}=y();return ce(H,{children:[P(L,{asChild:!0,children:ce(w,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),P(B,{className:"w-[240px]",children:P(Y,{children:e.map(o=>P(lt,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as p,jsxs as $}from"react/jsx-runtime";var ut=ct({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function fe({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:c}=y(),u=K(()=>t.slice(0,2),[t]),l=t.length>=3,{isOver:T,setNodeRef:ve}=dt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),xe=K(()=>{let v=t.find(I=>I.id===n);if(!v)return!1;let q=I=>I.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),he=q(o),Ce=q(v.eventDate);return he===Ce},[n,o,t]),ge=ut({type:r}),be=K(()=>c&&X(o)&&!x(o),[c,o]);return $("div",{className:ge,"data-slot":"calendar-cell",ref:ve,children:[r==="month"&&p("div",{className:"flex items-center justify-center",children:p("div",{className:mt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",x(o)&&"bg-primary-idle text-neutral-label"),children:p(s,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),$("div",{className:"gap-small-1x flex flex-col",children:[u.map(v=>p(pt,{children:a(v)},v.id)),T&&u.length<2&&!xe&&p("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),$("div",{className:"mt-auto flex items-center justify-between",children:[l&&p(ue,{events:t.slice(2)}),i&&!be&&p("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:p(w,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:p(se,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as m,jsxs as Q}from"react/jsx-runtime";function Ua(){let{selectedDate:e,events:t}=y(),o=ye((a,n)=>ne(t,a,n),[t]),r=ye((a,n)=>({...a,date:j(a.date,n)}),[]);return m("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:Q("div",{className:"flex flex-1 flex-col",children:[Q("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[m("div",{className:"w-[64px]"}),m(ie,{className:"border-border-layer-2 items-start border-l",date:e})]}),m("div",{className:"overflow-hidden",children:ae.map(({hour:a,label:n})=>Q("div",{className:"flex items-start",children:[m("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:m(s,{size:"sm-1x",variant:"label",weight:"medium",children:n})}),m("div",{className:ft("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:m(fe,{cell:r({date:e,type:"day"},a),events:o(e,a)})})]},a))})]})})}export{Ua as CalendarDayView};
1
+ import{useCallback as Xe}from"react";import{cx as Jt}from"@xjur-ui/util";var rt=Math.pow(10,8)*24*60*60*1e3,eo=-rt;var nt=3600;var ye=nt*24,to=ye*7,it=ye*365.2425,at=it/12,oo=at*3,Z=Symbol.for("constructDateFrom");function h(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Z in e?e[Z](t):e instanceof Date?new e.constructor(t):new Date(t)}function D(e,t){return h(t||e,e)}function xe(e,...t){let o=h.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function O(e,t){let o=D(e,t?.in);return o.setHours(0,0,0,0),o}function ke(e){return h(e,Date.now())}function V(e,t,o){let[r,n]=xe(o?.in,e,t);return+O(r)==+O(n)}function De(e){return+D(e)<Date.now()}function we(e,t){return V(h(t?.in||e,e),ke(t?.in||e))}function be(e,t,o){let r=D(e,o?.in);return r.setHours(t),r}import{Slot as pt}from"@radix-ui/react-slot";import{cva as ct}from"@xjur-ui/util";import{memo as _e,useState as mt}from"react";import*as T from"@radix-ui/react-tooltip";import{jsx as A}from"react/jsx-runtime";function st({delayDuration:e=0,...t}){return A(T.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function j({...e}){return A(st,{children:A(T.Root,{"data-slot":"tooltip",...e})})}import*as Me from"@radix-ui/react-tooltip";import{jsx as lt}from"react/jsx-runtime";function Y({...e}){return lt(Me.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as H from"@radix-ui/react-tooltip";import{cx as dt}from"@xjur-ui/util";import{jsx as Le}from"react/jsx-runtime";function K({className:e,sideOffset:t=1,variant:o="simple",children:r,...n}){return Le(H.Portal,{children:Le(H.Content,{className:dt("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:r})})}import{jsx as z,jsxs as ht}from"react/jsx-runtime";var ut=ct("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),p=_e(({variant:e,size:t,weight:o,asChild:r,className:n,children:i,...a})=>z(r?pt:"span",{className:ut({variant:e,size:t,weight:o,className:n}),...a,children:i}));p.displayName="Typography";var ft=_e(({children:e,...t})=>{let[o,r]=mt(!1);return ht(j,{children:[z(Y,{asChild:!0,children:z(p,{onMouseEnter:({currentTarget:i})=>{let a=i.scrollWidth>i.clientWidth;r(a),a?i.style.cursor="pointer":i.style.cursor="text"},...t,children:e})}),o&&z(K,{children:e})]})});ft.displayName="TruncatedTypography";var Pe=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],Ie=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function _(e){return we(e)}function Ve(e,t,o){return e.filter(r=>V(r.eventDate,t)&&r.eventDate.getHours()===o)}import{createContext as Ct,use as vt,useCallback as Jo,useMemo as er,useState as tr}from"react";import{DndContext as rr,closestCenter as nr,useSensor as ir,useSensors as ar,PointerSensor as sr,KeyboardSensor as lr,MouseSensor as dr}from"@dnd-kit/core";import{sortableKeyboardCoordinates as cr}from"@dnd-kit/sortable";import{jsx as ur}from"react/jsx-runtime";var gt=Ct({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function w(){let e=vt(gt);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{cx as $}from"@xjur-ui/util";import{jsx as G,jsxs as yt}from"react/jsx-runtime";function Te({date:e,className:t,...o}){let r=_(e),n=e.getDate();return yt("div",{className:$("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...o,children:[G(p,{size:"sm",variant:"label",weight:"medium",children:Pe[e.getDay()]}),G("div",{className:$("size-large-2x rounded-circle flex items-center justify-center",r&&"bg-primary-idle"),children:G(p,{className:$(r&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:n})})]},e.toISOString())}import{Fragment as Gt,useMemo as he}from"react";import{useDroppable as Qt}from"@dnd-kit/core";import{cx as Xt,tv as qt}from"@xjur-ui/util";import{Slot as xt}from"@radix-ui/react-slot";import{cva as kt,cx as Dt}from"@xjur-ui/util";import{jsx as bt}from"react/jsx-runtime";var wt=kt(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function E({asChild:e,className:t,variant:o="primary",size:r="md",appearance:n="solid",...i}){return bt(e?xt:"button",{className:Dt(wt({variant:o,appearance:n,size:r}),t),...i})}import{cx as Vt}from"@xjur-ui/util";var He=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as l,jsxs as Mt}from"react/jsx-runtime";function Q(){return Mt("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),l("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),l("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),l("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),l("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),l("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),l("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as c,jsxs as ze}from"react/jsx-runtime";function X(){return ze("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ze("g",{clipPath:"url(#clip0_19548_42822)",children:[c("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),c("defs",{children:c("clipPath",{id:"clip0_19548_42822",children:c("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as S,jsxs as Lt}from"react/jsx-runtime";function q(){return Lt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[S("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),S("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),S("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),S("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as s,jsxs as Ee}from"react/jsx-runtime";function U(){return Ee("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ee("g",{clipPath:"url(#clip0_19548_42667)",children:[s("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),s("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),s("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),s("defs",{children:s("clipPath",{id:"clip0_19548_42667",children:s("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as y,jsxs as _t}from"react/jsx-runtime";function J(){return _t("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[y("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),y("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),y("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as b,jsxs as Se}from"react/jsx-runtime";function ee(){return Se("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Se("g",{clipPath:"url(#clip0_19548_42803)",children:[b("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),b("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),b("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),b("defs",{children:b("clipPath",{id:"clip0_19548_42803",children:b("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as x,jsxs as Re}from"react/jsx-runtime";function te(){return Re("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Re("g",{clipPath:"url(#clip0_19548_42782)",children:[x("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),x("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),x("defs",{children:x("clipPath",{id:"clip0_19548_42782",children:x("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as R,jsxs as Pt}from"react/jsx-runtime";function oe(){return Pt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[R("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),R("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),R("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),R("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as C,jsxs as Ne}from"react/jsx-runtime";function re(){return Ne("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ne("g",{clipPath:"url(#clip0_19548_42757)",children:[C("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),C("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),C("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),C("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),C("defs",{children:C("clipPath",{id:"clip0_19548_42757",children:C("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as M,jsxs as Be}from"react/jsx-runtime";function ne(){return Be("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Be("g",{clipPath:"url(#clip0_19548_42810)",children:[M("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),M("defs",{children:M("clipPath",{id:"clip0_19548_42810",children:M("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as m,jsxs as We}from"react/jsx-runtime";function ie(){return We("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[We("g",{clipPath:"url(#clip0_21377_57335)",children:[m("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),m("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),m("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),m("defs",{children:m("clipPath",{id:"clip0_21377_57335",children:m("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as P,jsxs as It}from"react/jsx-runtime";function ae(){return It("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[P("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),P("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as d}from"react/jsx-runtime";function Fe({name:e}){switch(e){case"agenda":return d(Q,{});case"contencioso":return d(U,{});case"contrato":return d(J,{});case"consultivo":return d(q,{});case"xsigner":return d(ae,{});case"procuracao":return d(re,{});case"xpay":return d(ie,{});case"imobiliario":return d(te,{});case"marcasepatentes":return d(oe,{});case"ged":return d(ee,{});case"regulatorio":return d(ne,{});case"compliance":return d(X,{});default:return null}}import{jsx as Ze}from"react/jsx-runtime";function Oe({className:e,filled:t=!1,name:o,...r}){return He.includes(o)?Ze(Fe,{name:o}):Ze("span",{...r,className:Vt("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{Fragment as $t}from"react/jsx-runtime";import"react";import*as Ae from"@radix-ui/react-dropdown-menu";import{jsx as Tt}from"react/jsx-runtime";function se({...e}){return Tt(Ae.Root,{"data-slot":"dropdown-menu",...e})}import*as je from"@radix-ui/react-dropdown-menu";import{jsx as Ht}from"react/jsx-runtime";function le({...e}){return Ht(je.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as N from"@radix-ui/react-dropdown-menu";import{cx as jt}from"@xjur-ui/util";import{Slot as Et}from"@radix-ui/react-slot";import{cx as St}from"@xjur-ui/util";import{useVirtualizer as Rt}from"@tanstack/react-virtual";import{useRef as Nt}from"react";import{createContext as zt}from"react";var I=zt({virtualizer:null,enabled:!1});import{jsx as Ye}from"react/jsx-runtime";function de({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:n=0,estimateSize:i=()=>48,overscan:a=5,...g}){let k=t?Et:"div",u=Nt(null),W=Rt({count:n,getScrollElement:()=>u.current,estimateSize:i,overscan:a,enabled:r});return Ye(I.Provider,{value:{virtualizer:W,enabled:r},children:Ye(k,{...g,className:St(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:u,children:o})})}import{Slot as Hn}from"@radix-ui/react-slot";import{cx as En}from"@xjur-ui/util";import{jsx as Rn}from"react/jsx-runtime";import{cx as Wn}from"@xjur-ui/util";import{jsx as On}from"react/jsx-runtime";import{Slot as Bt}from"@radix-ui/react-slot";import{cx as Ke}from"@xjur-ui/util";import{useContext as Wt}from"react";import{jsx as pe}from"react/jsx-runtime";function ce({className:e,asChild:t,children:o,renderItem:r,...n}){let i=t?Bt:"ul",{virtualizer:a,enabled:g}=Wt(I);if(g&&a&&r){let k=a.getVirtualItems();return pe(i,{...n,className:Ke("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:k.map(u=>pe("div",{className:"absolute top-0 left-0 w-full","data-index":u.index,ref:a.measureElement,style:{transform:`translateY(${u.start}px)`},children:r(u.index)},u.key))})}return pe(i,{...n,className:Ke("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as qn}from"@radix-ui/react-slot";import{cx as Jn,cva as Ft}from"@xjur-ui/util";import{jsx as o1}from"react/jsx-runtime";var e1=Ft(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as me}from"react/jsx-runtime";function ue({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:n,...i}){return me(N.Portal,{children:me(N.Content,{align:o,className:jt("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:t,...i,children:me(de,{children:n})})})}import{jsx as Yt}from"react/jsx-runtime";function fe({...e}){return Yt(ce,{...e})}import{jsx as x1}from"react/jsx-runtime";import{cx as V1}from"@xjur-ui/util";import"react";import*as Kt from"@radix-ui/react-separator";import{cx as b1}from"@xjur-ui/util";import{jsx as L1}from"react/jsx-runtime";import{jsx as S1}from"react/jsx-runtime";import{jsx as B,jsxs as $e}from"react/jsx-runtime";function Ge({events:e}){let{renderEvent:t}=w();return $e(se,{children:[B(le,{asChild:!0,children:$e(E,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),B(ue,{className:"w-[240px]",children:B(fe,{children:e.map(o=>B($t,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as f,jsxs as Ce}from"react/jsx-runtime";var Ut=qt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function Qe({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:n,activeEventId:i,onAddEvent:a,disableEventCreationInPast:g}=w(),k=he(()=>t.slice(0,2),[t]),u=t.length>=3,{isOver:W,setNodeRef:qe}=Qt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),Ue=he(()=>{let L=t.find(F=>F.id===i);if(!L)return!1;let ge=F=>F.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),tt=ge(o),ot=ge(L.eventDate);return tt===ot},[i,o,t]),Je=Ut({type:r}),et=he(()=>g&&De(o)&&!_(o),[g,o]);return Ce("div",{className:Je,"data-slot":"calendar-cell",ref:qe,children:[r==="month"&&f("div",{className:"flex items-center justify-center",children:f("div",{className:Xt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",_(o)&&"bg-primary-idle text-neutral-label"),children:f(p,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),Ce("div",{className:"gap-small-1x flex flex-col",children:[k.map(L=>f(Gt,{children:n(L)},L.id)),W&&k.length<2&&!Ue&&f("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),Ce("div",{className:"mt-auto flex items-center justify-between",children:[u&&f(Ge,{events:t.slice(2)}),a&&!et&&f("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:f(E,{size:"icon_sm",variant:"outlined",onClick:()=>a(o),children:f(Oe,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as v,jsxs as ve}from"react/jsx-runtime";function ki(){let{selectedDate:e,events:t}=w(),o=Xe((n,i)=>Ve(t,n,i),[t]),r=Xe((n,i)=>({...n,date:be(n.date,i)}),[]);return v("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:ve("div",{className:"flex flex-1 flex-col",children:[ve("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[v("div",{className:"w-[64px]"}),v(Te,{className:"border-border-layer-2 items-start border-l",date:e})]}),v("div",{className:"overflow-hidden",children:Ie.map(({hour:n,label:i})=>ve("div",{className:"flex items-start",children:[v("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:v(p,{size:"sm-1x",variant:"label",weight:"medium",children:i})}),v("div",{className:Jt("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:v(Qe,{cell:r({date:e,type:"day"},n),events:o(e,n)})})]},n))})]})})}export{ki as CalendarDayView};
@@ -1 +1 @@
1
- import{useCallback as ut,useMemo as ft}from"react";import{cx as he}from"@xjur-ui/util";import{Slot as Pe}from"@radix-ui/react-slot";import{cva as Ie}from"@xjur-ui/util";import{memo as j,useState as Te}from"react";import*as w from"@radix-ui/react-tooltip";import{jsx as S}from"react/jsx-runtime";function De({delayDuration:e=0,...t}){return S(w.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function R({...e}){return S(De,{children:S(w.Root,{"data-slot":"tooltip",...e})})}import*as X from"@radix-ui/react-tooltip";import{jsx as we}from"react/jsx-runtime";function V({...e}){return we(X.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as _ from"@radix-ui/react-tooltip";import{cx as _e}from"@xjur-ui/util";import{jsx as Z}from"react/jsx-runtime";function N({className:e,sideOffset:t=1,variant:o="simple",children:r,...a}){return Z(_.Portal,{children:Z(_.Content,{className:_e("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...a,children:r})})}import{jsx as P,jsxs as Ee}from"react/jsx-runtime";var Me=Ie("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),y=j(({variant:e,size:t,weight:o,asChild:r,className:a,children:n,...i})=>P(r?Pe:"span",{className:Me({variant:e,size:t,weight:o,className:a}),...i,children:n}));y.displayName="Typography";var ze=j(({children:e,...t})=>{let[o,r]=Te(!1);return Ee(R,{children:[P(V,{asChild:!0,children:P(y,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;r(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),o&&P(N,{children:e})]})});ze.displayName="TruncatedTypography";var ke=Math.pow(10,8)*24*60*60*1e3,Rt=-ke;var Se=3600;var ee=Se*24,Vt=ee*7,Re=ee*365.2425,Ve=Re/12,Nt=Ve*3,L=Symbol.for("constructDateFrom");function p(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&L in e?e[L](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return p(t||e,e)}function te(e,t,o){let r=m(e,o?.in);if(isNaN(t))return p(o?.in||e,NaN);if(!t)return r;let a=r.getDate(),n=p(o?.in||e,r.getTime());n.setMonth(r.getMonth()+t+1,0);let i=n.getDate();return a>=i?n:(r.setFullYear(n.getFullYear(),n.getMonth(),a),r)}function oe(e,...t){let o=p.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function F(e,t){let o=m(e,t?.in);return o.setHours(0,0,0,0),o}function re(e){return p(e,Date.now())}function I(e,t,o){let[r,a]=oe(o?.in,e,t);return+F(r)==+F(a)}function O(e,t){let o=m(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function ae(e,t){let o=m(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function ne(e){return+m(e)<Date.now()}function ie(e,t){return I(p(t?.in||e,e),re(t?.in||e))}function se(e,t,o){return te(e,-t,o)}function H(e){return Array.from({length:e},(t,o)=>o)}var le=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],vo=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function pe(e){let t=e.getFullYear(),o=e.getMonth(),r=ae(e).getDay(),a=O(se(e,1)).getDate(),n=O(e).getDate(),i=H(r).map(u=>{u+=1;let v=o-1,x=a-r+u,C=new Date(t,v,x);return{dayOfWeekNumber:C.getDay(),date:C,type:"month"}}),s=H(n).map(u=>{let v=u+1,f=new Date(t,o,v);return{dayOfWeekNumber:f.getDay(),date:f,type:"month"}}),d=7,l=r+n,b=d-l%d%d,E=H(b).map(u=>{let v=u+1,f=new Date(t,o+1,v);return{dayOfWeekNumber:f.getDay(),date:f,type:"month"}});return[...i,...s,...E]}function de(e,t){return e.filter(o=>I(o.eventDate,t))}function W(e){return ie(e)}import{createContext as Ne,use as Le,useCallback as bo,useMemo as Co,useState as Do}from"react";import{DndContext as _o,closestCenter as Po,useSensor as Io,useSensors as To,PointerSensor as Mo,KeyboardSensor as zo,MouseSensor as Eo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as So}from"@dnd-kit/sortable";import{jsx as Vo}from"react/jsx-runtime";var Fe=Ne({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function g(){let e=Le(Fe);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as lt,useMemo as U}from"react";import{useDroppable as pt}from"@dnd-kit/core";import{cx as dt,tv as mt}from"@xjur-ui/util";import{Slot as Oe}from"@radix-ui/react-slot";import{cva as He,cx as We}from"@xjur-ui/util";import{jsx as Ye}from"react/jsx-runtime";var Ae=He(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function T({asChild:e,className:t,variant:o="primary",size:r="md",appearance:a="solid",...n}){return Ye(e?Oe:"button",{className:We(Ae({variant:o,appearance:a,size:r}),t),...n})}import{cx as Be}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function me({className:e,filled:t=!1,name:o,...r}){return $e("span",{...r,className:Be("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{Fragment as st}from"react/jsx-runtime";import"react";import*as ce from"@radix-ui/react-dropdown-menu";import{jsx as Ke}from"react/jsx-runtime";function A({...e}){return Ke(ce.Root,{"data-slot":"dropdown-menu",...e})}import*as ue from"@radix-ui/react-dropdown-menu";import{jsx as Qe}from"react/jsx-runtime";function Y({...e}){return Qe(ue.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as M from"@radix-ui/react-dropdown-menu";import{cx as at}from"@xjur-ui/util";import{Slot as Ge}from"@radix-ui/react-slot";import{cx as Ue}from"@xjur-ui/util";import{useVirtualizer as Je}from"@tanstack/react-virtual";import{useRef as Xe}from"react";import{createContext as qe}from"react";var D=qe({virtualizer:null,enabled:!1});import{jsx as fe}from"react/jsx-runtime";function B({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...s}){let d=t?Ge:"div",l=Xe(null),b=Je({count:a,getScrollElement:()=>l.current,estimateSize:n,overscan:i,enabled:r});return fe(D.Provider,{value:{virtualizer:b,enabled:r},children:fe(d,{...s,className:Ue(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:l,children:o})})}import{Slot as sr}from"@radix-ui/react-slot";import{cx as pr}from"@xjur-ui/util";import{jsx as mr}from"react/jsx-runtime";import{cx as fr}from"@xjur-ui/util";import{jsx as xr}from"react/jsx-runtime";import{Slot as Ze}from"@radix-ui/react-slot";import{cx as ye}from"@xjur-ui/util";import{useContext as je}from"react";import{jsx as $}from"react/jsx-runtime";function K({className:e,asChild:t,children:o,renderItem:r,...a}){let n=t?Ze:"ul",{virtualizer:i,enabled:s}=je(D);if(s&&i&&r){let d=i.getVirtualItems();return $(n,{...a,className:ye("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:d.map(l=>$("div",{className:"absolute top-0 left-0 w-full","data-index":l.index,ref:i.measureElement,style:{transform:`translateY(${l.start}px)`},children:r(l.index)},l.key))})}return $(n,{...a,className:ye("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Ir}from"@radix-ui/react-slot";import{cx as Mr,cva as et}from"@xjur-ui/util";import{jsx as kr}from"react/jsx-runtime";var zr=et(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as Q}from"react/jsx-runtime";function q({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:a,...n}){return Q(M.Portal,{children:Q(M.Content,{align:o,className:at("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:t,...n,children:Q(B,{children:a})})})}import{jsx as nt}from"react/jsx-runtime";function G({...e}){return nt(K,{...e})}import{jsx as Ur}from"react/jsx-runtime";import{cx as na}from"@xjur-ui/util";import"react";import*as it from"@radix-ui/react-separator";import{cx as jr}from"@xjur-ui/util";import{jsx as ta}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";import{jsx as z,jsxs as ve}from"react/jsx-runtime";function xe({events:e}){let{renderEvent:t}=g();return ve(A,{children:[z(Y,{asChild:!0,children:ve(T,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),z(q,{className:"w-[240px]",children:z(G,{children:e.map(o=>z(st,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as c,jsxs as J}from"react/jsx-runtime";var ct=mt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function ge({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:s}=g(),d=U(()=>t.slice(0,2),[t]),l=t.length>=3,{isOver:b,setNodeRef:E}=pt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),u=U(()=>{let x=t.find(k=>k.id===n);if(!x)return!1;let C=k=>k.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),be=C(o),Ce=C(x.eventDate);return be===Ce},[n,o,t]),v=ct({type:r}),f=U(()=>s&&ne(o)&&!W(o),[s,o]);return J("div",{className:v,"data-slot":"calendar-cell",ref:E,children:[r==="month"&&c("div",{className:"flex items-center justify-center",children:c("div",{className:dt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",W(o)&&"bg-primary-idle text-neutral-label"),children:c(y,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),J("div",{className:"gap-small-1x flex flex-col",children:[d.map(x=>c(lt,{children:a(x)},x.id)),b&&d.length<2&&!u&&c("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),J("div",{className:"mt-auto flex items-center justify-between",children:[l&&c(xe,{events:t.slice(2)}),i&&!f&&c("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:c(T,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:c(me,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as h,jsxs as yt}from"react/jsx-runtime";function Ga(){let{selectedDate:e,events:t}=g(),o=ft(()=>pe(e),[e]),r=ut(a=>de(t,a.date),[t]);return yt("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[h("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:le.map(a=>h("div",{className:he("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:h(y,{size:"sm",variant:"label",weight:"medium",children:a})},a))}),h("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:o.map((a,n)=>{let i=(n+1)%7===0,s=(n+1)%7===1;return h("div",{className:he("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:h(ge,{cell:a,events:r(a)})},`${a.date.toISOString()}-${n}`)})})]})}export{Ga as CalendarMonthView};
1
+ import{useCallback as Ut,useMemo as Jt}from"react";import{cx as et}from"@xjur-ui/util";import{Slot as at}from"@radix-ui/react-slot";import{cva as st}from"@xjur-ui/util";import{memo as Me,useState as lt}from"react";import*as z from"@radix-ui/react-tooltip";import{jsx as Y}from"react/jsx-runtime";function rt({delayDuration:e=0,...o}){return Y(z.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function $({...e}){return Y(rt,{children:Y(z.Root,{"data-slot":"tooltip",...e})})}import*as De from"@radix-ui/react-tooltip";import{jsx as nt}from"react/jsx-runtime";function K({...e}){return nt(De.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as S from"@radix-ui/react-tooltip";import{cx as it}from"@xjur-ui/util";import{jsx as we}from"react/jsx-runtime";function G({className:e,sideOffset:o=1,variant:t="simple",children:r,...n}){return we(S.Portal,{children:we(S.Content,{className:it("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":t,sideOffset:o,...n,children:r})})}import{jsx as R,jsxs as ct}from"react/jsx-runtime";var dt=st("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),x=Me(({variant:e,size:o,weight:t,asChild:r,className:n,children:i,...a})=>R(r?at:"span",{className:dt({variant:e,size:o,weight:t,className:n}),...a,children:i}));x.displayName="Typography";var pt=Me(({children:e,...o})=>{let[t,r]=lt(!1);return ct($,{children:[R(K,{asChild:!0,children:R(x,{onMouseEnter:({currentTarget:i})=>{let a=i.scrollWidth>i.clientWidth;r(a),a?i.style.cursor="pointer":i.style.cursor="text"},...o,children:e})}),t&&R(G,{children:e})]})});pt.displayName="TruncatedTypography";var mt=Math.pow(10,8)*24*60*60*1e3,yo=-mt;var ut=3600;var be=ut*24,xo=be*7,ft=be*365.2425,ht=ft/12,ko=ht*3,Q=Symbol.for("constructDateFrom");function m(e,o){return typeof e=="function"?e(o):e&&typeof e=="object"&&Q in e?e[Q](o):e instanceof Date?new e.constructor(o):new Date(o)}function h(e,o){return m(o||e,e)}function Le(e,o,t){let r=h(e,t?.in);if(isNaN(o))return m(t?.in||e,NaN);if(!o)return r;let n=r.getDate(),i=m(t?.in||e,r.getTime());i.setMonth(r.getMonth()+o+1,0);let a=i.getDate();return n>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function _e(e,...o){let t=m.bind(null,e||o.find(r=>typeof r=="object"));return o.map(t)}function X(e,o){let t=h(e,o?.in);return t.setHours(0,0,0,0),t}function Ie(e){return m(e,Date.now())}function N(e,o,t){let[r,n]=_e(t?.in,e,o);return+X(r)==+X(n)}function q(e,o){let t=h(e,o?.in),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Pe(e,o){let t=h(e,o?.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Ve(e){return+h(e)<Date.now()}function Te(e,o){return N(m(o?.in||e,e),Ie(o?.in||e))}function He(e,o,t){return Le(e,-o,t)}function U(e){return Array.from({length:e},(o,t)=>t)}var Ee=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],tr=Array.from({length:16},(e,o)=>{let t=o+8;return{hour:t,label:`${t.toString().padStart(2,"0")}:00`}});function ze(e){let o=e.getFullYear(),t=e.getMonth(),r=Pe(e).getDay(),n=q(He(e,1)).getDate(),i=q(e).getDate(),a=U(r).map(g=>{g+=1;let D=t-1,w=n-r+g,T=new Date(o,D,w);return{dayOfWeekNumber:T.getDay(),date:T,type:"month"}}),p=U(i).map(g=>{let D=g+1,y=new Date(o,t,D);return{dayOfWeekNumber:y.getDay(),date:y,type:"month"}}),f=7,c=r+i,V=f-c%f%f,j=U(V).map(g=>{let D=g+1,y=new Date(o,t+1,D);return{dayOfWeekNumber:y.getDay(),date:y,type:"month"}});return[...a,...p,...j]}function Se(e,o){return e.filter(t=>N(t.eventDate,o))}function J(e){return Te(e)}import{createContext as Ct,use as vt,useCallback as ir,useMemo as ar,useState as sr}from"react";import{DndContext as dr,closestCenter as pr,useSensor as cr,useSensors as mr,PointerSensor as ur,KeyboardSensor as fr,MouseSensor as hr}from"@dnd-kit/core";import{sortableKeyboardCoordinates as vr}from"@dnd-kit/sortable";import{jsx as yr}from"react/jsx-runtime";var gt=Ct({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function L(){let e=vt(gt);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as Kt,useMemo as xe}from"react";import{useDroppable as Gt}from"@dnd-kit/core";import{cx as Qt,tv as Xt}from"@xjur-ui/util";import{Slot as yt}from"@radix-ui/react-slot";import{cva as xt,cx as kt}from"@xjur-ui/util";import{jsx as wt}from"react/jsx-runtime";var Dt=xt(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function F({asChild:e,className:o,variant:t="primary",size:r="md",appearance:n="solid",...i}){return wt(e?yt:"button",{className:kt(Dt({variant:t,appearance:n,size:r}),o),...i})}import{cx as Pt}from"@xjur-ui/util";var Re=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as l,jsxs as Mt}from"react/jsx-runtime";function ee(){return Mt("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),l("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),l("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),l("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),l("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),l("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),l("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),l("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as u,jsxs as Ne}from"react/jsx-runtime";function te(){return Ne("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ne("g",{clipPath:"url(#clip0_19548_42822)",children:[u("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),u("defs",{children:u("clipPath",{id:"clip0_19548_42822",children:u("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as B,jsxs as bt}from"react/jsx-runtime";function oe(){return bt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[B("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),B("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),B("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),B("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as s,jsxs as Fe}from"react/jsx-runtime";function re(){return Fe("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Fe("g",{clipPath:"url(#clip0_19548_42667)",children:[s("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),s("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),s("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),s("defs",{children:s("clipPath",{id:"clip0_19548_42667",children:s("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as M,jsxs as Lt}from"react/jsx-runtime";function ne(){return Lt("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[M("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),M("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),M("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as _,jsxs as Be}from"react/jsx-runtime";function ie(){return Be("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Be("g",{clipPath:"url(#clip0_19548_42803)",children:[_("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),_("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),_("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),_("defs",{children:_("clipPath",{id:"clip0_19548_42803",children:_("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as b,jsxs as Ze}from"react/jsx-runtime";function ae(){return Ze("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ze("g",{clipPath:"url(#clip0_19548_42782)",children:[b("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),b("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),b("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),b("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),b("defs",{children:b("clipPath",{id:"clip0_19548_42782",children:b("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as Z,jsxs as _t}from"react/jsx-runtime";function se(){return _t("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Z("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),Z("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),Z("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),Z("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as k,jsxs as Oe}from"react/jsx-runtime";function le(){return Oe("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Oe("g",{clipPath:"url(#clip0_19548_42757)",children:[k("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),k("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),k("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),k("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),k("defs",{children:k("clipPath",{id:"clip0_19548_42757",children:k("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as I,jsxs as We}from"react/jsx-runtime";function de(){return We("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[We("g",{clipPath:"url(#clip0_19548_42810)",children:[I("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),I("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),I("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),I("defs",{children:I("clipPath",{id:"clip0_19548_42810",children:I("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as C,jsxs as je}from"react/jsx-runtime";function pe(){return je("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[je("g",{clipPath:"url(#clip0_21377_57335)",children:[C("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),C("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),C("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),C("defs",{children:C("clipPath",{id:"clip0_21377_57335",children:C("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as H,jsxs as It}from"react/jsx-runtime";function ce(){return It("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[H("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),H("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as d}from"react/jsx-runtime";function Ae({name:e}){switch(e){case"agenda":return d(ee,{});case"contencioso":return d(re,{});case"contrato":return d(ne,{});case"consultivo":return d(oe,{});case"xsigner":return d(ce,{});case"procuracao":return d(le,{});case"xpay":return d(pe,{});case"imobiliario":return d(ae,{});case"marcasepatentes":return d(se,{});case"ged":return d(ie,{});case"regulatorio":return d(de,{});case"compliance":return d(te,{});default:return null}}import{jsx as Ye}from"react/jsx-runtime";function $e({className:e,filled:o=!1,name:t,...r}){return Re.includes(t)?Ye(Ae,{name:t}):Ye("span",{...r,className:Pt("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:t})}import{Fragment as $t}from"react/jsx-runtime";import"react";import*as Ke from"@radix-ui/react-dropdown-menu";import{jsx as Vt}from"react/jsx-runtime";function me({...e}){return Vt(Ke.Root,{"data-slot":"dropdown-menu",...e})}import*as Ge from"@radix-ui/react-dropdown-menu";import{jsx as Tt}from"react/jsx-runtime";function ue({...e}){return Tt(Ge.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as O from"@radix-ui/react-dropdown-menu";import{cx as jt}from"@xjur-ui/util";import{Slot as Et}from"@radix-ui/react-slot";import{cx as zt}from"@xjur-ui/util";import{useVirtualizer as St}from"@tanstack/react-virtual";import{useRef as Rt}from"react";import{createContext as Ht}from"react";var E=Ht({virtualizer:null,enabled:!1});import{jsx as Qe}from"react/jsx-runtime";function fe({className:e,asChild:o,children:t,virtualized:r=!1,itemCount:n=0,estimateSize:i=()=>48,overscan:a=5,...p}){let f=o?Et:"div",c=Rt(null),V=St({count:n,getScrollElement:()=>c.current,estimateSize:i,overscan:a,enabled:r});return Qe(E.Provider,{value:{virtualizer:V,enabled:r},children:Qe(f,{...p,className:zt(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:c,children:t})})}import{Slot as En}from"@radix-ui/react-slot";import{cx as Sn}from"@xjur-ui/util";import{jsx as Nn}from"react/jsx-runtime";import{cx as Zn}from"@xjur-ui/util";import{jsx as jn}from"react/jsx-runtime";import{Slot as Nt}from"@radix-ui/react-slot";import{cx as Xe}from"@xjur-ui/util";import{useContext as Ft}from"react";import{jsx as he}from"react/jsx-runtime";function Ce({className:e,asChild:o,children:t,renderItem:r,...n}){let i=o?Nt:"ul",{virtualizer:a,enabled:p}=Ft(E);if(p&&a&&r){let f=a.getVirtualItems();return he(i,{...n,className:Xe("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:f.map(c=>he("div",{className:"absolute top-0 left-0 w-full","data-index":c.index,ref:a.measureElement,style:{transform:`translateY(${c.start}px)`},children:r(c.index)},c.key))})}return he(i,{...n,className:Xe("gap-small-1x p-small flex flex-col",e),children:t})}import{Slot as Un}from"@radix-ui/react-slot";import{cx as e1,cva as Bt}from"@xjur-ui/util";import{jsx as r1}from"react/jsx-runtime";var t1=Bt(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as ve}from"react/jsx-runtime";function ge({className:e,sideOffset:o=4,align:t="start",side:r="bottom",children:n,...i}){return ve(O.Portal,{children:ve(O.Content,{align:t,className:jt("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:o,...i,children:ve(fe,{children:n})})})}import{jsx as At}from"react/jsx-runtime";function ye({...e}){return At(Ce,{...e})}import{jsx as k1}from"react/jsx-runtime";import{cx as T1}from"@xjur-ui/util";import"react";import*as Yt from"@radix-ui/react-separator";import{cx as b1}from"@xjur-ui/util";import{jsx as _1}from"react/jsx-runtime";import{jsx as R1}from"react/jsx-runtime";import{jsx as W,jsxs as qe}from"react/jsx-runtime";function Ue({events:e}){let{renderEvent:o}=L();return qe(me,{children:[W(ue,{asChild:!0,children:qe(F,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),W(ge,{className:"w-[240px]",children:W(ye,{children:e.map(t=>W($t,{children:o?.(t)},t.eventDate.toISOString()))})})]})}import{jsx as v,jsxs as ke}from"react/jsx-runtime";var qt=Xt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function Je({cell:e,events:o}){let{date:t,type:r}=e,{renderEvent:n,activeEventId:i,onAddEvent:a,disableEventCreationInPast:p}=L(),f=xe(()=>o.slice(0,2),[o]),c=o.length>=3,{isOver:V,setNodeRef:j}=Gt({id:`calendar-cell-${r}-${t.toISOString()}`,data:{date:t,type:r}}),g=xe(()=>{let w=o.find(A=>A.id===i);if(!w)return!1;let T=A=>A.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),tt=T(t),ot=T(w.eventDate);return tt===ot},[i,t,o]),D=qt({type:r}),y=xe(()=>p&&Ve(t)&&!J(t),[p,t]);return ke("div",{className:D,"data-slot":"calendar-cell",ref:j,children:[r==="month"&&v("div",{className:"flex items-center justify-center",children:v("div",{className:Qt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",J(t)&&"bg-primary-idle text-neutral-label"),children:v(x,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),ke("div",{className:"gap-small-1x flex flex-col",children:[f.map(w=>v(Kt,{children:n(w)},w.id)),V&&f.length<2&&!g&&v("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),ke("div",{className:"mt-auto flex items-center justify-between",children:[c&&v(Ue,{events:o.slice(2)}),a&&!y&&v("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:v(F,{size:"icon_sm",variant:"outlined",onClick:()=>a(t),children:v($e,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as P,jsxs as eo}from"react/jsx-runtime";function xi(){let{selectedDate:e,events:o}=L(),t=Jt(()=>ze(e),[e]),r=Ut(n=>Se(o,n.date),[o]);return eo("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[P("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:Ee.map(n=>P("div",{className:et("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:P(x,{size:"sm",variant:"label",weight:"medium",children:n})},n))}),P("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:t.map((n,i)=>{let a=(i+1)%7===0,p=(i+1)%7===1;return P("div",{className:et("border-border-layer-2 border-t border-r",a&&"pr-small-2x border-r-0",p&&"pl-small-2x"),children:P(Je,{cell:n,events:r(n)})},`${n.date.toISOString()}-${i}`)})})]})}export{xi as CalendarMonthView};