@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.
- package/CHANGELOG.md +6 -0
- package/dist/components/accordion/accordion-tab-header.js +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/carousel/carousel-action.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chip/chip-close.js +1 -1
- package/dist/components/chip/chip-icon.js +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/controls/calendar.js +1 -1
- package/dist/components/controls/checkbox.js +1 -1
- package/dist/components/controls/date-picker/date-picker-icon.js +1 -1
- package/dist/components/controls/date-picker/index.js +1 -1
- package/dist/components/controls/input/index.js +1 -1
- package/dist/components/controls/input/input-icon.js +1 -1
- package/dist/components/controls/input/input-numeric-stepper.js +1 -1
- package/dist/components/controls/rating.js +1 -1
- package/dist/components/controls/search-selector.js +1 -1
- package/dist/components/controls/select/index.d.ts +1 -0
- package/dist/components/controls/select/index.js +1 -1
- package/dist/components/controls/select/select-icon.js +1 -1
- package/dist/components/controls/select/select-option.d.ts +2 -1
- package/dist/components/controls/select/select-option.js +1 -1
- package/dist/components/controls/text-area/index.js +1 -1
- package/dist/components/controls/text-area/text-area-caption.js +1 -1
- package/dist/components/controls/text-area/text-area-content.js +1 -1
- package/dist/components/controls/text-area/text-area-editor.js +1 -1
- package/dist/components/controls/text-area/text-area-fullscreen-button.js +1 -1
- package/dist/components/controls/text-area/text-area-heading-button.js +1 -1
- package/dist/components/controls/text-area/text-area-root.js +1 -1
- package/dist/components/controls/text-area/text-area-toggle-button.js +1 -1
- package/dist/components/controls/text-area/text-area-toolbar.js +1 -1
- package/dist/components/custom/andamento-timeline/andamento-timeline.js +1 -1
- package/dist/components/custom/andamento-timeline/index.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-add-button.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-body.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-close-button.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-content.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-footer.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-header.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo-trigger.js +1 -1
- package/dist/components/custom/centro-custo/centro-custo.js +1 -1
- package/dist/components/custom/centro-custo/index.js +1 -1
- package/dist/components/custom/empresa/empresa-add-button.js +1 -1
- package/dist/components/custom/empresa/empresa-body.js +1 -1
- package/dist/components/custom/empresa/empresa-close-button.js +1 -1
- package/dist/components/custom/empresa/empresa-content.js +1 -1
- package/dist/components/custom/empresa/empresa-footer.js +1 -1
- package/dist/components/custom/empresa/empresa-header.js +1 -1
- package/dist/components/custom/empresa/empresa-table.js +1 -1
- package/dist/components/custom/empresa/empresa-trigger.js +1 -1
- package/dist/components/custom/empresa/empresa.js +1 -1
- package/dist/components/custom/empresa/index.js +1 -1
- package/dist/components/custom/lista-nivelada/hierarchical-navigation.js +1 -1
- package/dist/components/custom/lista-nivelada/index.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada-body.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada-close-button.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada-content.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada-footer.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada-header.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada-trigger.js +1 -1
- package/dist/components/custom/lista-nivelada/lista-nivelada.js +1 -1
- package/dist/components/custom/lista-nivelada/navigation-button.js +1 -1
- package/dist/components/custom/lista-nivelada/navigation-grid.js +1 -1
- package/dist/components/custom/lista-nivelada/radio-selection.js +1 -1
- package/dist/components/custom/pessoa/index.js +1 -1
- package/dist/components/custom/pessoa/pessoa-add-button.js +1 -1
- package/dist/components/custom/pessoa/pessoa-body.js +1 -1
- package/dist/components/custom/pessoa/pessoa-close-button.js +1 -1
- package/dist/components/custom/pessoa/pessoa-content.js +1 -1
- package/dist/components/custom/pessoa/pessoa-footer.js +1 -1
- package/dist/components/custom/pessoa/pessoa-header.js +1 -1
- package/dist/components/custom/pessoa/pessoa-trigger.js +1 -1
- package/dist/components/custom/pessoa/pessoa.js +1 -1
- package/dist/components/dialog/delete-dialog.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/full-calendar/calendar-add-event.js +1 -1
- package/dist/components/full-calendar/calendar-cell.js +1 -1
- package/dist/components/full-calendar/calendar-day-view.js +1 -1
- package/dist/components/full-calendar/calendar-month-view.js +1 -1
- package/dist/components/full-calendar/calendar-navigator.js +1 -1
- package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
- package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
- package/dist/components/full-calendar/calendar-week-view.js +1 -1
- package/dist/components/full-calendar/index.js +1 -1
- package/dist/components/icon/components/agenda.d.ts +1 -0
- package/dist/components/icon/components/agenda.js +1 -0
- package/dist/components/icon/components/compliance.d.ts +1 -0
- package/dist/components/icon/components/compliance.js +1 -0
- package/dist/components/icon/components/consultivo.d.ts +1 -0
- package/dist/components/icon/components/consultivo.js +1 -0
- package/dist/components/icon/components/contencioso.d.ts +1 -0
- package/dist/components/icon/components/contencioso.js +1 -0
- package/dist/components/icon/components/contrato.d.ts +1 -0
- package/dist/components/icon/components/contrato.js +1 -0
- package/dist/components/icon/components/custom-icon.d.ts +4 -0
- package/dist/components/icon/components/custom-icon.js +1 -0
- package/dist/components/icon/components/email-reset-senha-icon.d.ts +1 -0
- package/dist/components/icon/components/email-reset-senha-icon.js +1 -0
- package/dist/components/icon/components/ged.d.ts +1 -0
- package/dist/components/icon/components/ged.js +1 -0
- package/dist/components/icon/components/imobiliario.d.ts +1 -0
- package/dist/components/icon/components/imobiliario.js +1 -0
- package/dist/components/icon/components/marcas-e-patentes.d.ts +1 -0
- package/dist/components/icon/components/marcas-e-patentes.js +1 -0
- package/dist/components/icon/components/procuracao.d.ts +1 -0
- package/dist/components/icon/components/procuracao.js +1 -0
- package/dist/components/icon/components/regulatorio.d.ts +1 -0
- package/dist/components/icon/components/regulatorio.js +1 -0
- package/dist/components/icon/components/xpay.d.ts +1 -0
- package/dist/components/icon/components/xpay.js +1 -0
- package/dist/components/icon/components/xsigner.d.ts +1 -0
- package/dist/components/icon/components/xsigner.js +1 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/message/index.js +1 -1
- package/dist/components/message/message-close.js +1 -1
- package/dist/components/message/message-icon.js +1 -1
- package/dist/components/selection-bar/index.js +1 -1
- package/dist/components/selection-bar/selection-bar-close.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sheet/sheet-close.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/table-row.js +1 -1
- package/dist/components/table/table-sort.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/tag-close.js +1 -1
- package/dist/components/tag/tag-icon.js +1 -1
- package/dist/components/timeline-card/index.js +1 -1
- package/dist/components/timeline-card/timeline-card.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast-component.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/upload/upload-icon.js +1 -1
- package/dist/resources/icons.d.ts +2 -1
- package/dist/resources/icons.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as be,useMemo as Dt}from"react";import{cx as Ce}from"@xjur-ui/util";var ze=Math.pow(10,8)*24*60*60*1e3,wt=-ze;var Me=3600;var J=Me*24,_t=J*7,Se=J*365.2425,Ee=Se/12,Pt=Ee*3,M=Symbol.for("constructDateFrom");function d(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&M in e?e[M](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return d(t||e,e)}var Re={};function h(){return Re}function X(e,t){let o=h(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=m(e,t?.in),n=a.getDay(),i=(n<r?7:0)+n-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function b(e,...t){let o=d.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function S(e,t){let o=m(e,t?.in);return o.setHours(0,0,0,0),o}function Z(e){return d(e,Date.now())}function C(e,t,o){let[r,a]=b(o?.in,e,t);return+S(r)==+S(a)}function j(e,t){let[o,r]=b(e,t.start,t.end);return{start:o,end:r}}function ee(e,t){let{start:o,end:r}=j(t?.in,e),a=+o>+r,n=a?+o:+r,i=a?r:o;i.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,a=!a);let p=[];for(;+i<=n;)p.push(d(o,i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return a?p.reverse():p}function te(e,t){let o=h(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=m(e,t?.in),n=a.getDay(),i=(n<r?-7:0)+6-(n-r);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function oe(e){return+m(e)<Date.now()}function re(e,t){return C(d(t?.in||e,e),Z(t?.in||e))}function ae(e,t,o){let r=m(e,o?.in);return r.setHours(t),r}import{Slot as He}from"@radix-ui/react-slot";import{cva as Le}from"@xjur-ui/util";import{memo as se,useState as We}from"react";import*as D from"@radix-ui/react-tooltip";import{jsx as E}from"react/jsx-runtime";function Ne({delayDuration:e=0,...t}){return E(D.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function R({...e}){return E(Ne,{children:E(D.Root,{"data-slot":"tooltip",...e})})}import*as ne from"@radix-ui/react-tooltip";import{jsx as Oe}from"react/jsx-runtime";function N({...e}){return Oe(ne.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as w from"@radix-ui/react-tooltip";import{cx as Ve}from"@xjur-ui/util";import{jsx as ie}from"react/jsx-runtime";function O({className:e,sideOffset:t=1,variant:o="simple",children:r,...a}){return ie(w.Portal,{children:ie(w.Content,{className:Ve("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 _,jsxs as Be}from"react/jsx-runtime";var Fe=Le("",{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"}}),l=se(({variant:e,size:t,weight:o,asChild:r,className:a,children:n,...i})=>_(r?He:"span",{className:Fe({variant:e,size:t,weight:o,className:a}),...i,children:n}));l.displayName="Typography";var Ae=se(({children:e,...t})=>{let[o,r]=We(!1);return Be(R,{children:[_(N,{asChild:!0,children:_(l,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;r(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),o&&_(O,{children:e})]})});Ae.displayName="TruncatedTypography";var V=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],le=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function x(e){return re(e)}function pe(e){let t=X(e,{weekStartsOn:0}),o=te(e,{weekStartsOn:0}),r=ee({start:t,end:o}),a=t.getDay(),n=V[a];return r.map(i=>({date:i,dayOfWeekNumber:a,dayOfWeekName:n,fullDate:i,type:"week"}))}function de(e,t,o){return e.filter(r=>C(r.eventDate,t)&&r.eventDate.getHours()===o)}import{createContext as Ye,use as Ke,useCallback as So,useMemo as Eo,useState as Ro}from"react";import{DndContext as Oo,closestCenter as Vo,useSensor as Ho,useSensors as Lo,PointerSensor as Wo,KeyboardSensor as Fo,MouseSensor as Ao}from"@dnd-kit/core";import{sortableKeyboardCoordinates as Yo}from"@dnd-kit/sortable";import{jsx as $o}from"react/jsx-runtime";var $e=Ye({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function y(){let e=Ke($e);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{cx as H}from"@xjur-ui/util";import{jsx as L,jsxs as Qe}from"react/jsx-runtime";function me({date:e,className:t,...o}){let r=x(e),a=e.getDate();return Qe("div",{className:H("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...o,children:[L(l,{size:"sm",variant:"label",weight:"medium",children:V[e.getDay()]}),L("div",{className:H("size-large-2x rounded-circle flex items-center justify-center",r&&"bg-primary-idle"),children:L(l,{className:H(r&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:a})})]},e.toISOString())}import{Fragment as xt,useMemo as q}from"react";import{useDroppable as gt}from"@dnd-kit/core";import{cx as ht,tv as bt}from"@xjur-ui/util";import{Slot as qe}from"@radix-ui/react-slot";import{cva as Ge,cx as Ue}from"@xjur-ui/util";import{jsx as Xe}from"react/jsx-runtime";var Je=Ge(["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 P({asChild:e,className:t,variant:o="primary",size:r="md",appearance:a="solid",...n}){return Xe(e?qe:"button",{className:Ue(Je({variant:o,appearance:a,size:r}),t),...n})}import{cx as Ze}from"@xjur-ui/util";import{jsx as je}from"react/jsx-runtime";function ce({className:e,filled:t=!1,name:o,...r}){return je("span",{...r,className:Ze("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 vt}from"react/jsx-runtime";import"react";import*as ue from"@radix-ui/react-dropdown-menu";import{jsx as et}from"react/jsx-runtime";function W({...e}){return et(ue.Root,{"data-slot":"dropdown-menu",...e})}import*as fe from"@radix-ui/react-dropdown-menu";import{jsx as tt}from"react/jsx-runtime";function F({...e}){return tt(fe.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as I from"@radix-ui/react-dropdown-menu";import{cx as ut}from"@xjur-ui/util";import{Slot as rt}from"@radix-ui/react-slot";import{cx as at}from"@xjur-ui/util";import{useVirtualizer as nt}from"@tanstack/react-virtual";import{useRef as it}from"react";import{createContext as ot}from"react";var g=ot({virtualizer:null,enabled:!1});import{jsx as ye}from"react/jsx-runtime";function A({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...s}){let p=t?rt:"div",c=it(null),k=nt({count:a,getScrollElement:()=>c.current,estimateSize:n,overscan:i,enabled:r});return ye(g.Provider,{value:{virtualizer:k,enabled:r},children:ye(p,{...s,className:at(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:o})})}import{Slot as wr}from"@radix-ui/react-slot";import{cx as Pr}from"@xjur-ui/util";import{jsx as Tr}from"react/jsx-runtime";import{cx as Mr}from"@xjur-ui/util";import{jsx as Rr}from"react/jsx-runtime";import{Slot as st}from"@radix-ui/react-slot";import{cx as ve}from"@xjur-ui/util";import{useContext as lt}from"react";import{jsx as B}from"react/jsx-runtime";function Y({className:e,asChild:t,children:o,renderItem:r,...a}){let n=t?st:"ul",{virtualizer:i,enabled:s}=lt(g);if(s&&i&&r){let p=i.getVirtualItems();return B(n,{...a,className:ve("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:p.map(c=>B("div",{className:"absolute top-0 left-0 w-full","data-index":c.index,ref:i.measureElement,style:{transform:`translateY(${c.start}px)`},children:r(c.index)},c.key))})}return B(n,{...a,className:ve("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Br}from"@radix-ui/react-slot";import{cx as Kr,cva as pt}from"@xjur-ui/util";import{jsx as qr}from"react/jsx-runtime";var $r=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 K}from"react/jsx-runtime";function $({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:a,...n}){return K(I.Portal,{children:K(I.Content,{align:o,className:ut("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:K(A,{children:a})})})}import{jsx as ft}from"react/jsx-runtime";function Q({...e}){return ft(Y,{...e})}import{jsx as ma}from"react/jsx-runtime";import{cx as Ca}from"@xjur-ui/util";import"react";import*as yt from"@radix-ui/react-separator";import{cx as ya}from"@xjur-ui/util";import{jsx as xa}from"react/jsx-runtime";import{jsx as Ia}from"react/jsx-runtime";import{jsx as T,jsxs as xe}from"react/jsx-runtime";function ge({events:e}){let{renderEvent:t}=y();return xe(W,{children:[T(F,{asChild:!0,children:xe(P,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),T($,{className:"w-[240px]",children:T(Q,{children:e.map(o=>T(vt,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as u,jsxs as G}from"react/jsx-runtime";var Ct=bt({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 he({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:s}=y(),p=q(()=>t.slice(0,2),[t]),c=t.length>=3,{isOver:k,setNodeRef:we}=gt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),_e=q(()=>{let v=t.find(z=>z.id===n);if(!v)return!1;let U=z=>z.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),Te=U(o),ke=U(v.eventDate);return Te===ke},[n,o,t]),Pe=Ct({type:r}),Ie=q(()=>s&&oe(o)&&!x(o),[s,o]);return G("div",{className:Pe,"data-slot":"calendar-cell",ref:we,children:[r==="month"&&u("div",{className:"flex items-center justify-center",children:u("div",{className:ht("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",x(o)&&"bg-primary-idle text-neutral-label"),children:u(l,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),G("div",{className:"gap-small-1x flex flex-col",children:[p.map(v=>u(xt,{children:a(v)},v.id)),k&&p.length<2&&!_e&&u("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),G("div",{className:"mt-auto flex items-center justify-between",children:[c&&u(ge,{events:t.slice(2)}),i&&!Ie&&u("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:u(P,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:u(ce,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as f,jsxs as De}from"react/jsx-runtime";function un(){let{selectedDate:e,events:t}=y(),o=Dt(()=>pe(e),[e]),r=be((n,i)=>de(t,n,i),[t]),a=be((n,i)=>({...n,date:ae(n.date,i)}),[]);return f("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:De("div",{className:"flex flex-1 flex-col",children:[f("div",{className:Ce("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:o.map((n,i)=>f(me,{date:n.date,style:{gridColumnStart:i+2}},n.date.getDay()))}),f("div",{className:"overflow-hidden",children:le.map(({hour:n,label:i})=>De("div",{className:"flex items-start",children:[f("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:f(l,{size:"sm-1x",variant:"label",weight:"medium",children:i})}),f("div",{className:Ce("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:o.map(s=>f(he,{cell:a(s,n),events:r(s.date,n)},s.date.toISOString()))})]},n))})]})})}export{un as CalendarWeekView};
|
|
1
|
+
import{useCallback as tt,useMemo as so}from"react";import{cx as ot}from"@xjur-ui/util";var pt=Math.pow(10,8)*24*60*60*1e3,lo=-pt;var ct=3600;var ke=ct*24,po=ke*7,mt=ke*365.2425,ut=mt/12,co=ut*3,A=Symbol.for("constructDateFrom");function f(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&A in e?e[A](t):e instanceof Date?new e.constructor(t):new Date(t)}function h(e,t){return f(t||e,e)}var ft={};function V(){return ft}function De(e,t){let o=V(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=h(e,t?.in),i=n.getDay(),a=(i<r?7:0)+i-r;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function H(e,...t){let o=f.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function j(e,t){let o=h(e,t?.in);return o.setHours(0,0,0,0),o}function we(e){return f(e,Date.now())}function T(e,t,o){let[r,n]=H(o?.in,e,t);return+j(r)==+j(n)}function be(e,t){let[o,r]=H(e,t.start,t.end);return{start:o,end:r}}function Me(e,t){let{start:o,end:r}=be(t?.in,e),n=+o>+r,i=n?+o:+r,a=n?r:o;a.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,n=!n);let u=[];for(;+a<=i;)u.push(f(o,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return n?u.reverse():u}function Le(e,t){let o=V(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=h(e,t?.in),i=n.getDay(),a=(i<r?-7:0)+6-(i-r);return n.setDate(n.getDate()+a),n.setHours(23,59,59,999),n}function _e(e){return+h(e)<Date.now()}function Pe(e,t){return T(f(t?.in||e,e),we(t?.in||e))}function Ie(e,t,o){let r=h(e,o?.in);return r.setHours(t),r}import{Slot as gt}from"@radix-ui/react-slot";import{cva as yt}from"@xjur-ui/util";import{memo as Te,useState as xt}from"react";import*as z from"@radix-ui/react-tooltip";import{jsx as Y}from"react/jsx-runtime";function ht({delayDuration:e=0,...t}){return Y(z.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function K({...e}){return Y(ht,{children:Y(z.Root,{"data-slot":"tooltip",...e})})}import*as Ve from"@radix-ui/react-tooltip";import{jsx as Ct}from"react/jsx-runtime";function $({...e}){return Ct(Ve.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as E from"@radix-ui/react-tooltip";import{cx as vt}from"@xjur-ui/util";import{jsx as He}from"react/jsx-runtime";function G({className:e,sideOffset:t=1,variant:o="simple",children:r,...n}){return He(E.Portal,{children:He(E.Content,{className:vt("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 S,jsxs as wt}from"react/jsx-runtime";var kt=yt("",{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=Te(({variant:e,size:t,weight:o,asChild:r,className:n,children:i,...a})=>S(r?gt:"span",{className:kt({variant:e,size:t,weight:o,className:n}),...a,children:i}));c.displayName="Typography";var Dt=Te(({children:e,...t})=>{let[o,r]=xt(!1);return wt(K,{children:[S($,{asChild:!0,children:S(c,{onMouseEnter:({currentTarget:i})=>{let a=i.scrollWidth>i.clientWidth;r(a),a?i.style.cursor="pointer":i.style.cursor="text"},...t,children:e})}),o&&S(G,{children:e})]})});Dt.displayName="TruncatedTypography";var Q=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],ze=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function _(e){return Pe(e)}function Ee(e){let t=De(e,{weekStartsOn:0}),o=Le(e,{weekStartsOn:0}),r=Me({start:t,end:o}),n=t.getDay(),i=Q[n];return r.map(a=>({date:a,dayOfWeekNumber:n,dayOfWeekName:i,fullDate:a,type:"week"}))}function Se(e,t,o){return e.filter(r=>T(r.eventDate,t)&&r.eventDate.getHours()===o)}import{createContext as bt,use as Mt,useCallback as Cr,useMemo as vr,useState as gr}from"react";import{DndContext as xr,closestCenter as kr,useSensor as Dr,useSensors as wr,PointerSensor as br,KeyboardSensor as Mr,MouseSensor as Lr}from"@dnd-kit/core";import{sortableKeyboardCoordinates as Pr}from"@dnd-kit/sortable";import{jsx as Vr}from"react/jsx-runtime";var Lt=bt({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function w(){let e=Mt(Lt);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{cx as X}from"@xjur-ui/util";import{jsx as q,jsxs as _t}from"react/jsx-runtime";function Re({date:e,className:t,...o}){let r=_(e),n=e.getDate();return _t("div",{className:X("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...o,children:[q(c,{size:"sm",variant:"label",weight:"medium",children:Q[e.getDay()]}),q("div",{className:X("size-large-2x rounded-circle flex items-center justify-center",r&&"bg-primary-idle"),children:q(c,{className:X(r&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:n})})]},e.toISOString())}import{Fragment as oo,useMemo as ge}from"react";import{useDroppable as ro}from"@dnd-kit/core";import{cx as no,tv as io}from"@xjur-ui/util";import{Slot as Pt}from"@radix-ui/react-slot";import{cva as It,cx as Vt}from"@xjur-ui/util";import{jsx as Tt}from"react/jsx-runtime";var Ht=It(["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 R({asChild:e,className:t,variant:o="primary",size:r="md",appearance:n="solid",...i}){return Tt(e?Pt:"button",{className:Vt(Ht({variant:o,appearance:n,size:r}),t),...i})}import{cx as Ot}from"@xjur-ui/util";var Ne=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as d,jsxs as zt}from"react/jsx-runtime";function U(){return zt("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),d("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"}),d("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"}),d("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as m,jsxs as Oe}from"react/jsx-runtime";function J(){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_42822)",children:[m("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("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"}),m("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"}),m("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"}),m("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"}),m("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"}),m("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"})]}),m("defs",{children:m("clipPath",{id:"clip0_19548_42822",children:m("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as N,jsxs as Et}from"react/jsx-runtime";function ee(){return Et("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[N("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),N("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"}),N("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),N("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 l,jsxs as We}from"react/jsx-runtime";function te(){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_42667)",children:[l("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"}),l("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"}),l("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"}),l("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"}),l("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"}),l("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("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"}),l("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),l("defs",{children:l("clipPath",{id:"clip0_19548_42667",children:l("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as k,jsxs as St}from"react/jsx-runtime";function oe(){return St("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[k("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"}),k("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"}),k("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"}),k("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"}),k("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as b,jsxs as Be}from"react/jsx-runtime";function re(){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:[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 D,jsxs as Fe}from"react/jsx-runtime";function ne(){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_42782)",children:[D("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("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"}),D("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"})]}),D("defs",{children:D("clipPath",{id:"clip0_19548_42782",children:D("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as O,jsxs as Rt}from"react/jsx-runtime";function ie(){return Rt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[O("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),O("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),O("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"}),O("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 y,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_42757)",children:[y("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),y("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),y("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),y("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"}),y("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),y("defs",{children:y("clipPath",{id:"clip0_19548_42757",children:y("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as M,jsxs as Ae}from"react/jsx-runtime";function se(){return Ae("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ae("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 C,jsxs as je}from"react/jsx-runtime";function le(){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 P,jsxs as Nt}from"react/jsx-runtime";function de(){return Nt("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 p}from"react/jsx-runtime";function Ye({name:e}){switch(e){case"agenda":return p(U,{});case"contencioso":return p(te,{});case"contrato":return p(oe,{});case"consultivo":return p(ee,{});case"xsigner":return p(de,{});case"procuracao":return p(ae,{});case"xpay":return p(le,{});case"imobiliario":return p(ne,{});case"marcasepatentes":return p(ie,{});case"ged":return p(re,{});case"regulatorio":return p(se,{});case"compliance":return p(J,{});default:return null}}import{jsx as Ke}from"react/jsx-runtime";function $e({className:e,filled:t=!1,name:o,...r}){return Ne.includes(o)?Ke(Ye,{name:o}):Ke("span",{...r,className:Ot("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 to}from"react/jsx-runtime";import"react";import*as Ge from"@radix-ui/react-dropdown-menu";import{jsx as Wt}from"react/jsx-runtime";function pe({...e}){return Wt(Ge.Root,{"data-slot":"dropdown-menu",...e})}import*as Qe from"@radix-ui/react-dropdown-menu";import{jsx as Bt}from"react/jsx-runtime";function ce({...e}){return Bt(Qe.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as W from"@radix-ui/react-dropdown-menu";import{cx as Ut}from"@xjur-ui/util";import{Slot as Zt}from"@radix-ui/react-slot";import{cx as At}from"@xjur-ui/util";import{useVirtualizer as jt}from"@tanstack/react-virtual";import{useRef as Yt}from"react";import{createContext as Ft}from"react";var I=Ft({virtualizer:null,enabled:!1});import{jsx as Xe}from"react/jsx-runtime";function me({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:n=0,estimateSize:i=()=>48,overscan:a=5,...s}){let u=t?Zt:"div",v=Yt(null),F=jt({count:n,getScrollElement:()=>v.current,estimateSize:i,overscan:a,enabled:r});return Xe(I.Provider,{value:{virtualizer:F,enabled:r},children:Xe(u,{...s,className:At(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:v,children:o})})}import{Slot as Qn}from"@radix-ui/react-slot";import{cx as qn}from"@xjur-ui/util";import{jsx as Jn}from"react/jsx-runtime";import{cx as oi}from"@xjur-ui/util";import{jsx as ii}from"react/jsx-runtime";import{Slot as Kt}from"@radix-ui/react-slot";import{cx as qe}from"@xjur-ui/util";import{useContext as $t}from"react";import{jsx as ue}from"react/jsx-runtime";function fe({className:e,asChild:t,children:o,renderItem:r,...n}){let i=t?Kt:"ul",{virtualizer:a,enabled:s}=$t(I);if(s&&a&&r){let u=a.getVirtualItems();return ue(i,{...n,className:qe("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:u.map(v=>ue("div",{className:"absolute top-0 left-0 w-full","data-index":v.index,ref:a.measureElement,style:{transform:`translateY(${v.start}px)`},children:r(v.index)},v.key))})}return ue(i,{...n,className:qe("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as fi}from"@radix-ui/react-slot";import{cx as Ci,cva as Gt}from"@xjur-ui/util";import{jsx as yi}from"react/jsx-runtime";var vi=Gt(["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 he}from"react/jsx-runtime";function Ce({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:n,...i}){return he(W.Portal,{children:he(W.Content,{align:o,className:Ut("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:he(me,{children:n})})})}import{jsx as Jt}from"react/jsx-runtime";function ve({...e}){return Jt(fe,{...e})}import{jsx as Ni}from"react/jsx-runtime";import{cx as $i}from"@xjur-ui/util";import"react";import*as eo from"@radix-ui/react-separator";import{cx as Fi}from"@xjur-ui/util";import{jsx as Ai}from"react/jsx-runtime";import{jsx as Ui}from"react/jsx-runtime";import{jsx as B,jsxs as Ue}from"react/jsx-runtime";function Je({events:e}){let{renderEvent:t}=w();return Ue(pe,{children:[B(ce,{asChild:!0,children:Ue(R,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),B(Ce,{className:"w-[240px]",children:B(ve,{children:e.map(o=>B(to,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as g,jsxs as ye}from"react/jsx-runtime";var ao=io({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 et({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:n,activeEventId:i,onAddEvent:a,disableEventCreationInPast:s}=w(),u=ge(()=>t.slice(0,2),[t]),v=t.length>=3,{isOver:F,setNodeRef:nt}=ro({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),it=ge(()=>{let L=t.find(Z=>Z.id===i);if(!L)return!1;let xe=Z=>Z.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),lt=xe(o),dt=xe(L.eventDate);return lt===dt},[i,o,t]),at=ao({type:r}),st=ge(()=>s&&_e(o)&&!_(o),[s,o]);return ye("div",{className:at,"data-slot":"calendar-cell",ref:nt,children:[r==="month"&&g("div",{className:"flex items-center justify-center",children:g("div",{className:no("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",_(o)&&"bg-primary-idle text-neutral-label"),children:g(c,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),ye("div",{className:"gap-small-1x flex flex-col",children:[u.map(L=>g(oo,{children:n(L)},L.id)),F&&u.length<2&&!it&&g("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),ye("div",{className:"mt-auto flex items-center justify-between",children:[v&&g(Je,{events:t.slice(2)}),a&&!st&&g("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:g(R,{size:"icon_sm",variant:"outlined",onClick:()=>a(o),children:g($e,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as x,jsxs as rt}from"react/jsx-runtime";function Oa(){let{selectedDate:e,events:t}=w(),o=so(()=>Ee(e),[e]),r=tt((i,a)=>Se(t,i,a),[t]),n=tt((i,a)=>({...i,date:Ie(i.date,a)}),[]);return x("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:rt("div",{className:"flex flex-1 flex-col",children:[x("div",{className:ot("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:o.map((i,a)=>x(Re,{date:i.date,style:{gridColumnStart:a+2}},i.date.getDay()))}),x("div",{className:"overflow-hidden",children:ze.map(({hour:i,label:a})=>rt("div",{className:"flex items-start",children:[x("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:x(c,{size:"sm-1x",variant:"label",weight:"medium",children:a})}),x("div",{className:ot("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:o.map(s=>x(et,{cell:n(s,i),events:r(s.date,i)},s.date.toISOString()))})]},i))})]})})}export{Oa as CalendarWeekView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as ua,useMemo as pa}from"react";import{cx as sr}from"@xjur-ui/util";import{Slot as Nr}from"@radix-ui/react-slot";import{cva as Ir}from"@xjur-ui/util";import{memo as ft,useState as Er}from"react";import*as ie from"@radix-ui/react-tooltip";import{jsx as Se}from"react/jsx-runtime";function Or({delayDuration:e=0,...t}){return Se(ie.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function H({...e}){return Se(Or,{children:Se(ie.Root,{"data-slot":"tooltip",...e})})}import*as ut from"@radix-ui/react-tooltip";import{jsx as Wr}from"react/jsx-runtime";function L({...e}){return Wr(ut.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as se from"@radix-ui/react-tooltip";import{cx as _r}from"@xjur-ui/util";import{jsx as pt}from"react/jsx-runtime";function q({className:e,sideOffset:t=1,variant:r="simple",children:o,...a}){return pt(se.Portal,{children:pt(se.Content,{className:_r("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":r,sideOffset:t,...a,children:o})})}import{jsx as le,jsxs as Fr}from"react/jsx-runtime";var zr=Ir("",{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=ft(({variant:e,size:t,weight:r,asChild:o,className:a,children:n,...i})=>le(o?Nr:"span",{className:zr({variant:e,size:t,weight:r,className:a}),...i,children:n}));p.displayName="Typography";var Oe=ft(({children:e,...t})=>{let[r,o]=Er(!1);return Fr(H,{children:[le(L,{asChild:!0,children:le(p,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;o(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),r&&le(q,{children:e})]})});Oe.displayName="TruncatedTypography";var Vr=Math.pow(10,8)*24*60*60*1e3,Fn=-Vr,de=6048e5,ht=864e5;var Rr=3600;var gt=Rr*24,Vn=gt*7,Yr=gt*365.2425,Hr=Yr/12,Rn=Hr*3,We=Symbol.for("constructDateFrom");function h(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&We in e?e[We](t):e instanceof Date?new e.constructor(t):new Date(t)}function d(e,t){return h(t||e,e)}function A(e,t,r){let o=d(e,r?.in);return isNaN(t)?h(r?.in||e,NaN):(t&&o.setDate(o.getDate()+t),o)}function me(e,t,r){let o=d(e,r?.in);if(isNaN(t))return h(r?.in||e,NaN);if(!t)return o;let a=o.getDate(),n=h(r?.in||e,o.getTime());n.setMonth(o.getMonth()+t+1,0);let i=n.getDate();return a>=i?n:(o.setFullYear(n.getFullYear(),n.getMonth(),a),o)}var Lr={};function M(){return Lr}function v(e,t){let r=M(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=d(e,t?.in),n=a.getDay(),i=(n<o?7:0)+n-o;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function F(e,t){return v(e,{...t,weekStartsOn:1})}function ce(e,t){let r=d(e,t?.in),o=r.getFullYear(),a=h(r,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);let n=F(a),i=h(r,0);i.setFullYear(o,0,4),i.setHours(0,0,0,0);let s=F(i);return r.getTime()>=n.getTime()?o+1:r.getTime()>=s.getTime()?o:o-1}function _e(e){let t=d(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function B(e,...t){let r=h.bind(null,e||t.find(o=>typeof o=="object"));return t.map(r)}function Q(e,t){let r=d(e,t?.in);return r.setHours(0,0,0,0),r}function yt(e,t,r){let[o,a]=B(r?.in,e,t),n=Q(o),i=Q(a),s=+n-_e(n),l=+i-_e(i);return Math.round((s-l)/ht)}function vt(e,t){let r=ce(e,t),o=h(t?.in||e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),F(o)}function ue(e,t,r){return A(e,t*7,r)}function xt(e){return h(e,Date.now())}function J(e,t,r){let[o,a]=B(r?.in,e,t);return+Q(o)==+Q(a)}function bt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function wt(e){return!(!bt(e)&&typeof e!="number"||isNaN(+d(e)))}function Ne(e,t){let r=d(e,t?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function Ct(e,t){let[r,o]=B(e,t.start,t.end);return{start:r,end:o}}function Dt(e,t){let{start:r,end:o}=Ct(t?.in,e),a=+r>+o,n=a?+r:+o,i=a?o:r;i.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,a=!a);let l=[];for(;+i<=n;)l.push(h(r,i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return a?l.reverse():l}function Pt(e,t){let r=d(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Mt(e,t){let r=d(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Ie(e,t){let r=M(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=d(e,t?.in),n=a.getDay(),i=(n<o?-7:0)+6-(n-o);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}var qr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kt=(e,t,r)=>{let o,a=qr[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function N(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Ar={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Br={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qr={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tt={date:N({formats:Ar,defaultWidth:"full"}),time:N({formats:Br,defaultWidth:"full"}),dateTime:N({formats:Qr,defaultWidth:"full"})};var Xr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},St=(e,t,r,o)=>Xr[e];function w(e){return(t,r)=>{let o=r?.context?String(r.context):"standalone",a;if(o==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):i;a=e.formattingValues[s]||e.formattingValues[i]}else{let i=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;a=e.values[s]||e.values[i]}let n=e.argumentCallback?e.argumentCallback(t):t;return a[n]}}var $r={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jr={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Jr={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Kr={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ur={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zr=(e,t)=>{let r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ot={ordinalNumber:Zr,era:w({values:$r,defaultWidth:"wide"}),quarter:w({values:Gr,defaultWidth:"wide",argumentCallback:e=>e-1}),month:w({values:jr,defaultWidth:"wide"}),day:w({values:Jr,defaultWidth:"wide"}),dayPeriod:w({values:Kr,defaultWidth:"wide",formattingValues:Ur,defaultFormattingWidth:"wide"})};function C(e){return(t,r={})=>{let o=r.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(a);if(!n)return null;let i=n[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?to(s,u=>u.test(i)):eo(s,u=>u.test(i)),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;let f=t.slice(i.length);return{value:c,rest:f}}}function eo(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function to(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function pe(e){return(t,r={})=>{let o=t.match(e.matchPattern);if(!o)return null;let a=o[0],n=t.match(e.parsePattern);if(!n)return null;let i=e.valueCallback?e.valueCallback(n[0]):n[0];i=r.valueCallback?r.valueCallback(i):i;let s=t.slice(a.length);return{value:i,rest:s}}}var ro=/^(\d+)(th|st|nd|rd)?/i,oo=/\d+/i,ao={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},no={any:[/^b/i,/^(a|c)/i]},io={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},so={any:[/1/i,/2/i,/3/i,/4/i]},lo={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},mo={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},co={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},uo={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},po={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Wt={ordinalNumber:pe({matchPattern:ro,parsePattern:oo,valueCallback:e=>parseInt(e,10)}),era:C({matchPatterns:ao,defaultMatchWidth:"wide",parsePatterns:no,defaultParseWidth:"any"}),quarter:C({matchPatterns:io,defaultMatchWidth:"wide",parsePatterns:so,defaultParseWidth:"any",valueCallback:e=>e+1}),month:C({matchPatterns:lo,defaultMatchWidth:"wide",parsePatterns:mo,defaultParseWidth:"any"}),day:C({matchPatterns:co,defaultMatchWidth:"wide",parsePatterns:uo,defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:po,defaultMatchWidth:"any",parsePatterns:fo,defaultParseWidth:"any"})};var Ee={code:"en-US",formatDistance:kt,formatLong:Tt,formatRelative:St,localize:Ot,match:Wt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function _t(e,t){let r=d(e,t?.in);return yt(r,Mt(r))+1}function Nt(e,t){let r=d(e,t?.in),o=+F(r)-+vt(r);return Math.round(o/de)+1}function fe(e,t){let r=d(e,t?.in),o=r.getFullYear(),a=M(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=h(t?.in||e,0);i.setFullYear(o+1,0,n),i.setHours(0,0,0,0);let s=v(i,t),l=h(t?.in||e,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);let c=v(l,t);return+r>=+s?o+1:+r>=+c?o:o-1}function It(e,t){let r=M(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=fe(e,t),n=h(t?.in||e,0);return n.setFullYear(a,0,o),n.setHours(0,0,0,0),v(n,t)}function Et(e,t){let r=d(e,t?.in),o=+v(r,t)-+It(r,t);return Math.round(o/de)+1}function m(e,t){let r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}var O={y(e,t){let r=e.getFullYear(),o=r>0?r:1-r;return m(t==="yy"?o%100:o,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):m(r+1,2)},d(e,t){return m(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return m(e.getHours()%12||12,t.length)},H(e,t){return m(e.getHours(),t.length)},m(e,t){return m(e.getMinutes(),t.length)},s(e,t){return m(e.getSeconds(),t.length)},S(e,t){let r=t.length,o=e.getMilliseconds(),a=Math.trunc(o*Math.pow(10,r-3));return m(a,t.length)}};var X={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ze={G:function(e,t,r){let o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let o=e.getFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return O.y(e,t)},Y:function(e,t,r,o){let a=fe(e,o),n=a>0?a:1-a;if(t==="YY"){let i=n%100;return m(i,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):m(n,t.length)},R:function(e,t){let r=ce(e);return m(r,t.length)},u:function(e,t){let r=e.getFullYear();return m(r,t.length)},Q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return m(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return m(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){let o=e.getMonth();switch(t){case"M":case"MM":return O.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){let o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return m(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){let a=Et(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):m(a,t.length)},I:function(e,t,r){let o=Nt(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):m(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):O.d(e,t)},D:function(e,t,r){let o=_t(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):m(o,t.length)},E:function(e,t,r){let o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){let a=e.getDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return m(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){let a=e.getDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return m(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let o=e.getDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return m(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let o=e.getHours(),a;switch(o===12?a=X.noon:o===0?a=X.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let o=e.getHours(),a;switch(o>=17?a=X.evening:o>=12?a=X.afternoon:o>=4?a=X.morning:a=X.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return O.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):O.H(e,t)},K:function(e,t,r){let o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):m(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):m(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):O.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):O.s(e,t)},S:function(e,t){return O.S(e,t)},X:function(e,t,r){let o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Ft(o);case"XXXX":case"XX":return V(o);case"XXXXX":case"XXX":default:return V(o,":")}},x:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"x":return Ft(o);case"xxxx":case"xx":return V(o);case"xxxxx":case"xxx":default:return V(o,":")}},O:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zt(o,":");case"OOOO":default:return"GMT"+V(o,":")}},z:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zt(o,":");case"zzzz":default:return"GMT"+V(o,":")}},t:function(e,t,r){let o=Math.trunc(+e/1e3);return m(o,t.length)},T:function(e,t,r){return m(+e,t.length)}};function zt(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),a=Math.trunc(o/60),n=o%60;return n===0?r+String(a):r+String(a)+t+m(n,2)}function Ft(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):V(e,t)}function V(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),a=m(Math.trunc(o/60),2),n=m(o%60,2);return r+a+t+n}var Vt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Rt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ho=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return Vt(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",Vt(o,t)).replace("{{time}}",Rt(a,t))},Yt={p:Rt,P:ho};var go=/^D+$/,yo=/^Y+$/,vo=["D","DD","YY","YYYY"];function Ht(e){return go.test(e)}function Lt(e){return yo.test(e)}function qt(e,t,r){let o=xo(e,t,r);if(console.warn(o),vo.includes(e))throw new RangeError(o)}function xo(e,t,r){let o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var bo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Co=/^'([^]*?)'?$/,Do=/''/g,Po=/[a-zA-Z]/;function K(e,t,r){let o=M(),a=r?.locale??o.locale??Ee,n=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=d(e,r?.in);if(!wt(s))throw new RangeError("Invalid time value");let l=t.match(wo).map(f=>{let u=f[0];if(u==="p"||u==="P"){let y=Yt[u];return y(f,a.formatLong)}return f}).join("").match(bo).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let u=f[0];if(u==="'")return{isToken:!1,value:Mo(f)};if(ze[u])return{isToken:!0,value:f};if(u.match(Po))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:f}});a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));let c={firstWeekContainsDate:n,weekStartsOn:i,locale:a};return l.map(f=>{if(!f.isToken)return f.value;let u=f.value;(!r?.useAdditionalWeekYearTokens&&Lt(u)||!r?.useAdditionalDayOfYearTokens&&Ht(u))&&qt(u,t,String(e));let y=ze[u[0]];return y(s,u,a.localize,c)}).join("")}function Mo(e){let t=e.match(Co);return t?t[1].replace(Do,"'"):e}function At(e){return+d(e)<Date.now()}function Bt(e,t){return J(h(t?.in||e,e),xt(t?.in||e))}function Qt(e,t,r){return A(e,-t,r)}function he(e,t,r){let o=d(e,r?.in);return o.setHours(t),o}function ge(e,t,r){return me(e,-t,r)}function Xt(e,t,r){return ue(e,-t,r)}function Fe(e){return Array.from({length:e},(t,r)=>r)}var U=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],ye=Array.from({length:16},(e,t)=>{let r=t+8;return{hour:r,label:`${r.toString().padStart(2,"0")}:00`}});function $t(e){let t=e.getFullYear(),r=e.getMonth(),o=Pt(e).getDay(),a=Ne(ge(e,1)).getDate(),n=Ne(e).getDate(),i=Fe(o).map(y=>{y+=1;let b=r-1,T=a-o+y,z=new Date(t,b,T);return{dayOfWeekNumber:z.getDay(),date:z,type:"month"}}),s=Fe(n).map(y=>{let b=y+1,P=new Date(t,r,b);return{dayOfWeekNumber:P.getDay(),date:P,type:"month"}}),l=7,c=o+n,f=l-c%l%l,u=Fe(f).map(y=>{let b=y+1,P=new Date(t,r+1,b);return{dayOfWeekNumber:P.getDay(),date:P,type:"month"}});return[...i,...s,...u]}function Gt(e,t){return e.filter(r=>J(r.eventDate,t))}function Z(e){return Bt(e)}function jt(e){let t=v(e,{weekStartsOn:0}),r=Ie(e,{weekStartsOn:0}),o=Dt({start:t,end:r}),a=t.getDay(),n=U[a];return o.map(i=>({date:i,dayOfWeekNumber:a,dayOfWeekName:n,fullDate:i,type:"week"}))}function ve(e,t,r){return e.filter(o=>J(o.eventDate,t)&&o.eventDate.getHours()===r)}function Jt(e){let t=v(e,{weekStartsOn:0}),r=Ie(e,{weekStartsOn:0});return{start:t,end:r}}import{createContext as ko,use as To,useCallback as Ve,useMemo as So,useState as Re}from"react";import{DndContext as Oo,closestCenter as Wo,useSensor as Ye,useSensors as _o,PointerSensor as No,KeyboardSensor as Io,MouseSensor as Eo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as zo}from"@dnd-kit/sortable";import{jsx as Kt}from"react/jsx-runtime";var Ut=ko({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function Pl({children:e,events:t,calendarView:r="month",selectedDate:o=new Date,disableEventCreationInPast:a=!0,renderEvent:n,onEventMove:i,onAddEvent:s}){let[l,c]=Re(o),[f,u]=Re(r),[y,b]=Re(null),P=Ve(S=>{c(new Date),u(S)},[]),T=_o(Ye(No,{activationConstraint:{distance:8}}),Ye(Io,{coordinateGetter:zo}),Ye(Eo,{activationConstraint:{distance:5,delay:250}})),z=Ve(S=>{let ne=S.active.id.toString();b(ne)},[]),ke=Ve(S=>{let{active:ne,over:mt}=S;if(b(null),!ne||!mt||!i)return;let Sr=ne.id.toString(),ct=mt.data.current?.date;ct&&i(Sr,ct)},[i]),Te=So(()=>({events:t,renderEvent:n,activeEventId:y,disableEventCreationInPast:a,selectedDate:l,setSelectedDate:c,calendarView:f,handleChangeView:P,onEventMove:i,onAddEvent:s}),[t,n,y,a,l,f,P,i,s]);return Kt(Ut.Provider,{value:Te,children:Kt(Oo,{collisionDetection:Wo,sensors:T,onDragEnd:ke,onDragStart:z,children:e})})}function g(){let e=To(Ut);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as sa,useMemo as Xe}from"react";import{useDroppable as la}from"@dnd-kit/core";import{cx as da,tv as ma}from"@xjur-ui/util";import{Slot as Fo}from"@radix-ui/react-slot";import{cva as Vo,cx as Ro}from"@xjur-ui/util";import{jsx as Ho}from"react/jsx-runtime";var Yo=Vo(["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:r="primary",size:o="md",appearance:a="solid",...n}){return Ho(e?Fo:"button",{className:Ro(Yo({variant:r,appearance:a,size:o}),t),...n})}import{cx as Lo}from"@xjur-ui/util";import{jsx as qo}from"react/jsx-runtime";function R({className:e,filled:t=!1,name:r,...o}){return qo("span",{...o,className:Lo("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{Fragment as ia}from"react/jsx-runtime";import"react";import*as Zt from"@radix-ui/react-dropdown-menu";import{jsx as Ao}from"react/jsx-runtime";function He({...e}){return Ao(Zt.Root,{"data-slot":"dropdown-menu",...e})}import*as er from"@radix-ui/react-dropdown-menu";import{jsx as Bo}from"react/jsx-runtime";function Le({...e}){return Bo(er.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as be from"@radix-ui/react-dropdown-menu";import{cx as oa}from"@xjur-ui/util";import{Slot as Xo}from"@radix-ui/react-slot";import{cx as $o}from"@xjur-ui/util";import{useVirtualizer as Go}from"@tanstack/react-virtual";import{useRef as jo}from"react";import{createContext as Qo}from"react";var ee=Qo({virtualizer:null,enabled:!1});import{jsx as tr}from"react/jsx-runtime";function te({className:e,asChild:t,children:r,virtualized:o=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...s}){let l=t?Xo:"div",c=jo(null),f=Go({count:a,getScrollElement:()=>c.current,estimateSize:n,overscan:i,enabled:o});return tr(ee.Provider,{value:{virtualizer:f,enabled:o},children:tr(l,{...s,className:$o(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:r})})}import{Slot as Ul}from"@radix-ui/react-slot";import{cx as ed}from"@xjur-ui/util";import{jsx as rd}from"react/jsx-runtime";import{cx as nd}from"@xjur-ui/util";import{jsx as ld}from"react/jsx-runtime";import{Slot as Jo}from"@radix-ui/react-slot";import{cx as rr}from"@xjur-ui/util";import{useContext as Ko}from"react";import{jsx as qe}from"react/jsx-runtime";function re({className:e,asChild:t,children:r,renderItem:o,...a}){let n=t?Jo:"ul",{virtualizer:i,enabled:s}=Ko(ee);if(s&&i&&o){let l=i.getVirtualItems();return qe(n,{...a,className:rr("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:l.map(c=>qe("div",{className:"absolute top-0 left-0 w-full","data-index":c.index,ref:i.measureElement,style:{transform:`translateY(${c.start}px)`},children:o(c.index)},c.key))})}return qe(n,{...a,className:rr("gap-small-1x p-small flex flex-col",e),children:r})}import{Slot as Uo}from"@radix-ui/react-slot";import{cx as Zo,cva as ea}from"@xjur-ui/util";import{jsx as ra}from"react/jsx-runtime";var ta=ea(["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}});function xe({className:e,size:t,isActive:r,asChild:o,...a}){return ra(o?Uo:"li",{...a,className:Zo(ta({size:t,isActive:r}),e)})}import{jsx as Ae}from"react/jsx-runtime";function Be({className:e,sideOffset:t=4,align:r="start",side:o="bottom",children:a,...n}){return Ae(be.Portal,{children:Ae(be.Content,{align:r,className:oa("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:o,sideOffset:t,...n,children:Ae(te,{children:a})})})}import{jsx as aa}from"react/jsx-runtime";function Qe({...e}){return aa(re,{...e})}import{jsx as Fd}from"react/jsx-runtime";import{cx as Xd}from"@xjur-ui/util";import"react";import*as na from"@radix-ui/react-separator";import{cx as Hd}from"@xjur-ui/util";import{jsx as qd}from"react/jsx-runtime";import{jsx as Kd}from"react/jsx-runtime";import{jsx as we,jsxs as nr}from"react/jsx-runtime";function ir({events:e}){let{renderEvent:t}=g();return nr(He,{children:[we(Le,{asChild:!0,children:nr(W,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),we(Be,{className:"w-[240px]",children:we(Qe,{children:e.map(r=>we(ia,{children:t?.(r)},r.eventDate.toISOString()))})})]})}import{jsx as _,jsxs as $e}from"react/jsx-runtime";var ca=ma({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 $({cell:e,events:t}){let{date:r,type:o}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:s}=g(),l=Xe(()=>t.slice(0,2),[t]),c=t.length>=3,{isOver:f,setNodeRef:u}=la({id:`calendar-cell-${o}-${r.toISOString()}`,data:{date:r,type:o}}),y=Xe(()=>{let T=t.find(S=>S.id===n);if(!T)return!1;let z=S=>S.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),ke=z(r),Te=z(T.eventDate);return ke===Te},[n,r,t]),b=ca({type:o}),P=Xe(()=>s&&At(r)&&!Z(r),[s,r]);return $e("div",{className:b,"data-slot":"calendar-cell",ref:u,children:[o==="month"&&_("div",{className:"flex items-center justify-center",children:_("div",{className:da("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",Z(r)&&"bg-primary-idle text-neutral-label"),children:_(p,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),$e("div",{className:"gap-small-1x flex flex-col",children:[l.map(T=>_(sa,{children:a(T)},T.id)),f&&l.length<2&&!y&&_("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),$e("div",{className:"mt-auto flex items-center justify-between",children:[c&&_(ir,{events:t.slice(2)}),i&&!P&&_("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:_(W,{size:"icon_sm",variant:"outlined",onClick:()=>i(r),children:_(R,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as G,jsxs as fa}from"react/jsx-runtime";function Ge(){let{selectedDate:e,events:t}=g(),r=pa(()=>$t(e),[e]),o=ua(a=>Gt(t,a.date),[t]);return fa("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[G("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:U.map(a=>G("div",{className:sr("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:G(p,{size:"sm",variant:"label",weight:"medium",children:a})},a))}),G("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:r.map((a,n)=>{let i=(n+1)%7===0,s=(n+1)%7===1;return G("div",{className:sr("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:G($,{cell:a,events:o(a)})},`${a.date.toISOString()}-${n}`)})})]})}import{useCallback as lr,useMemo as ga}from"react";import{cx as dr}from"@xjur-ui/util";import{cx as je}from"@xjur-ui/util";import{jsx as Je,jsxs as ha}from"react/jsx-runtime";function Ce({date:e,className:t,...r}){let o=Z(e),a=e.getDate();return ha("div",{className:je("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...r,children:[Je(p,{size:"sm",variant:"label",weight:"medium",children:U[e.getDay()]}),Je("div",{className:je("size-large-2x rounded-circle flex items-center justify-center",o&&"bg-primary-idle"),children:Je(p,{className:je(o&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:a})})]},e.toISOString())}import{jsx as I,jsxs as mr}from"react/jsx-runtime";function cr(){let{selectedDate:e,events:t}=g(),r=ga(()=>jt(e),[e]),o=lr((n,i)=>ve(t,n,i),[t]),a=lr((n,i)=>({...n,date:he(n.date,i)}),[]);return I("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:mr("div",{className:"flex flex-1 flex-col",children:[I("div",{className:dr("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:r.map((n,i)=>I(Ce,{date:n.date,style:{gridColumnStart:i+2}},n.date.getDay()))}),I("div",{className:"overflow-hidden",children:ye.map(({hour:n,label:i})=>mr("div",{className:"flex items-start",children:[I("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:I(p,{size:"sm-1x",variant:"label",weight:"medium",children:i})}),I("div",{className:dr("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:r.map(s=>I($,{cell:a(s,n),events:o(s.date,n)},s.date.toISOString()))})]},n))})]})})}import{useCallback as ur}from"react";import{cx as ya}from"@xjur-ui/util";import{jsx as E,jsxs as Ke}from"react/jsx-runtime";function pr(){let{selectedDate:e,events:t}=g(),r=ur((a,n)=>ve(t,a,n),[t]),o=ur((a,n)=>({...a,date:he(a.date,n)}),[]);return E("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:Ke("div",{className:"flex flex-1 flex-col",children:[Ke("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[E("div",{className:"w-[64px]"}),E(Ce,{className:"border-border-layer-2 items-start border-l",date:e})]}),E("div",{className:"overflow-hidden",children:ye.map(({hour:a,label:n})=>Ke("div",{className:"flex items-start",children:[E("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:E(p,{size:"sm-1x",variant:"label",weight:"medium",children:n})}),E("div",{className:ya("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:E($,{cell:o({date:e,type:"day"},a),events:r(e,a)})})]},a))})]})})}import{jsx as De}from"react/jsx-runtime";function uc(){let{calendarView:e}=g();switch(e){case"month":return De(Ge,{});case"week":return De(cr,{});case"day":return De(pr,{});default:return De(Ge,{})}}import{useCallback as xr,useMemo as qa}from"react";var va={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xEAs",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xEAs",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},fr=(e,t,r)=>{let o,a=va[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"em "+o:"h\xE1 "+o:o};var xa={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},ba={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},wa={full:"{{date}} '\xE0s' {{time}}",long:"{{date}} '\xE0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hr={date:N({formats:xa,defaultWidth:"full"}),time:N({formats:ba,defaultWidth:"full"}),dateTime:N({formats:wa,defaultWidth:"full"})};var Ca={lastWeek:e=>{let t=e.getDay();return"'"+(t===0||t===6?"\xFAltimo":"\xFAltima")+"' eeee '\xE0s' p"},yesterday:"'ontem \xE0s' p",today:"'hoje \xE0s' p",tomorrow:"'amanh\xE3 \xE0s' p",nextWeek:"eeee '\xE0s' p",other:"P"},gr=(e,t,r,o)=>{let a=Ca[e];return typeof a=="function"?a(t):a};var Da={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Pa={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},Ma={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},ka={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xE7a","quarta","quinta","sexta","s\xE1bado"],wide:["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"]},Ta={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"}},Sa={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},Oa=(e,t)=>{let r=Number(e);return t?.unit==="week"?r+"\xAA":r+"\xBA"},yr={ordinalNumber:Oa,era:w({values:Da,defaultWidth:"wide"}),quarter:w({values:Pa,defaultWidth:"wide",argumentCallback:e=>e-1}),month:w({values:Ma,defaultWidth:"wide"}),day:w({values:ka,defaultWidth:"wide"}),dayPeriod:w({values:Ta,defaultWidth:"wide",formattingValues:Sa,defaultFormattingWidth:"wide"})};var Wa=/^(\d+)[ºªo]?/i,_a=/\d+/i,Na={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},Ia={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Ea={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},za={any:[/1/i,/2/i,/3/i,/4/i]},Fa={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Va={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Ra={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Ya={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Ha={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},La={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},vr={ordinalNumber:pe({matchPattern:Wa,parsePattern:_a,valueCallback:e=>parseInt(e,10)}),era:C({matchPatterns:Na,defaultMatchWidth:"wide",parsePatterns:Ia,defaultParseWidth:"any"}),quarter:C({matchPatterns:Ea,defaultMatchWidth:"wide",parsePatterns:za,defaultParseWidth:"any",valueCallback:e=>e+1}),month:C({matchPatterns:Fa,defaultMatchWidth:"wide",parsePatterns:Va,defaultParseWidth:"any"}),day:C({matchPatterns:Ra,defaultMatchWidth:"wide",parsePatterns:Ya,defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:Ha,defaultMatchWidth:"any",parsePatterns:La,defaultParseWidth:"any"})};var oe={code:"pt-BR",formatDistance:fr,formatLong:hr,formatRelative:gr,localize:yr,match:vr,options:{weekStartsOn:0,firstWeekContainsDate:1}};import{capitalize as Aa}from"@xjur-ui/util";import{jsx as ae,jsxs as br}from"react/jsx-runtime";function Yc(){let{selectedDate:e,calendarView:t,setSelectedDate:r}=g(),o=qa(()=>{if(t==="month")return Aa(K(e,"MMMM 'de' yyyy",{locale:oe}));if(t==="week"){let{start:i,end:s}=Jt(e),l=K(s,"MMMM",{locale:oe}),c=K(s,"yyyy",{locale:oe});return`${i.getDate()} - ${s.getDate()} de ${l} de ${c}`}return K(e,"dd 'de' MMMM 'de' yyyy",{locale:oe})},[e,t]),a=xr(()=>{if(t==="month"){r(me(e,1));return}if(t==="week"){let s=v(ue(e,1));r(s);return}let i=A(e,1);r(i)},[e,r,t]),n=xr(()=>{if(t==="month"){r(ge(e,1));return}t==="week"&&r(Xt(e,1)),r(Qt(e,1))},[e,r,t]);return br("div",{className:"gap-large flex items-center",children:[ae(p,{className:"text-title-neutral",size:"lg",variant:"title",children:o}),br("div",{className:"gap-small flex items-center",children:[ae(W,{size:"icon_md",variant:"tertiary",onClick:n,children:ae(R,{className:"text-icon-neutral-3",name:"chevron_left"})}),ae(W,{size:"icon_md",variant:"tertiary",onClick:a,children:ae(R,{className:"text-icon-neutral-3",name:"chevron_right"})})]})]})}import*as wr from"@radix-ui/react-popover";import{createContext as Ba,useContext as Qa}from"react";var Ue=Ba({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function x(){let e=Qa(Ue);if(!e)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return e}import{tv as Xa}from"@xjur-ui/util";var D=Xa({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x w-auto inline-flex cursor-pointer relative","items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-idle border border-border-layer-2","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)] group-data-[state=open]:rotate-180 transition-transform duration-200"],icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{trigger:"hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});import{jsx as Ze}from"react/jsx-runtime";var{wrapper:$a}=D();function et({className:e,state:t="normal",defaultOpen:r,variant:o="normal",modal:a,open:n,onOpenChange:i,...s}){return Ze(wr.Root,{defaultOpen:r,modal:a,open:n,onOpenChange:i,children:Ze(Ue.Provider,{value:{state:t,variant:o},children:Ze("div",{className:$a({className:e,state:t}),...s})})})}import{tv as Ga,twMerge as ja}from"@xjur-ui/util";import*as Cr from"@radix-ui/react-popover";import{jsx as Ka}from"react/jsx-runtime";var{trigger:Ja}=D();function tt({className:e,...t}){let{state:r,variant:o}=x(),a=Ga({base:["group bg-layer-2-idle"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),n=ja(Ja({state:r,className:e}),o==="filter"&&a({state:r,className:e}));return Ka(Cr.Trigger,{className:n,disabled:r==="disabled",...t})}import{jsx as Dr}from"react/jsx-runtime";var{icon:Ua}=D();function rt({className:e,name:t,orientation:r="left",...o}){let{state:a}=x();return Dr("div",{className:Ua({className:e,state:a}),"data-slot":`control-${r}-slot`,...o,children:Dr(R,{name:t})})}import{twJoin as en}from"@xjur-ui/util";import{useMemo as tn}from"react";import{tv as Za}from"@xjur-ui/util";import{jsx as Pr}from"react/jsx-runtime";function ot({className:e,htmlFor:t,children:r,...o}){let{state:a}=x(),n=Za({base:["group inline-block max-w-full truncate text-left","ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250","text-size-body-md","group-focus-within:-top-[3px]","group-data-[state=open]:-top-[3px]","group-focus-within:text-size-label-sm-1x group-focus-within:font-medium","group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium","group-has-[input:not(:placeholder-shown)]:-top-[3px]","group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x","group-has-[input:not(:placeholder-shown)]:font-medium","group-has-[div[data-slot=control-left-slot]]:left-large-4x","group-has-[div[data-slot=control-left-slot]]:group-focus-within:left-small","group-has-[div[data-slot=control-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small","group-has-[div[data-slot=control-left-slot]]:group-data-[state=open]:left-small","group-focus-within:animate-in","group-has-[input:not(:placeholder-shown)]:animate-out","data-[disabled=true]:hidden"],variants:{state:{normal:["group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle","group-has-[input:not(:placeholder-shown)]:!text-primary-idle"],error:["group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active","group-has-[input:not(:placeholder-shown)]:!text-danger-label-active"],disabled:[]}}});return Pr("label",{className:n({className:e,state:a}),htmlFor:t,...o,children:Pr("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:r})})}import{jsx as Pe,jsxs as rn}from"react/jsx-runtime";function at({className:e,value:t,placeholder:r,renderValue:o,...a}){let{variant:n}=x(),i=tn(()=>{let s=o?o(t??""):typeof t=="object"?t?.label:t;return n==="filter"?s:s||r},[t,r,n,o]);return rn("div",{className:"grid w-full items-center",children:[r&&n==="filter"&&Pe(ot,{children:r}),r&&n==="filter"&&Pe(p,{className:"invisible col-start-1 row-start-1 self-center",children:r}),Pe(p,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:i}),Pe("input",{...a,"aria-readonly":!0,className:en("pointer-events-none",e),hidden:!0,placeholder:" ",readOnly:!0,value:typeof t=="object"?t?.value??"":t??""})]})}import{twMerge as vu}from"@xjur-ui/util";import{Fragment as bu,useMemo as wu}from"react";import{jsx as ku,jsxs as Tu}from"react/jsx-runtime";import*as Me from"@radix-ui/react-popover";import{jsx as nt}from"react/jsx-runtime";var{content:on}=D();function it({className:e,sideOffset:t=5,side:r="bottom",align:o="start",children:a,virtualized:n=!1,overscan:i=5,estimateSize:s=()=>32,...l}){let{state:c}=x();return nt(Me.Portal,{children:nt(Me.Content,{align:o,className:on({className:e,state:c}),side:r,sideOffset:t,...l,children:nt(te,{estimateSize:s,overscan:i,virtualized:n,children:a})})})}import{jsx as Ru}from"react/jsx-runtime";var{caption:Fu}=D();import{jsx as Bu}from"react/jsx-runtime";var{slotText:qu}=D();import{jsx as an}from"react/jsx-runtime";function st(e){return an(re,{...e})}import{twMerge as nn}from"@xjur-ui/util";import{jsx as sn}from"react/jsx-runtime";function lt({className:e,value:t,...r}){return sn(xe,{className:nn(e,"cursor-pointer"),value:typeof t=="object"?t?.value:t,...r})}import{twMerge as ln}from"@xjur-ui/util";import{jsx as dn}from"react/jsx-runtime";function dt({className:e,...t}){return dn(Oe,{className:ln(e,"truncate"),...t})}import{jsx as np}from"react/jsx-runtime";import{jsx as dp}from"react/jsx-runtime";import{jsx as Y,jsxs as kr}from"react/jsx-runtime";var Mr=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function Np(){let{calendarView:e,handleChangeView:t}=g();return Y("div",{className:"w-[94px]",children:kr(et,{children:[kr(tt,{children:[Y(at,{name:"calendar-toggle-view",renderValue:r=>Mr.find(o=>o.value===r)?.name??"",value:e}),Y(rt,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),Y(it,{children:Y(st,{children:Mr.map(r=>Y(lt,{isActive:e===r.value,value:r.value,onClick:()=>t(r.value),children:Y(dt,{children:r.name})},r.value))})})]})})}import{cx as mn}from"@xjur-ui/util";import{jsx as cn}from"react/jsx-runtime";function Fp({className:e,...t}){return cn("div",{...t,className:mn(e,"gap-medium h-large-4x flex w-full items-center")})}import{cx as un}from"@xjur-ui/util";import{jsx as pn}from"react/jsx-runtime";function Hp({className:e,...t}){return pn("div",{className:un(e,"gap-large-2x p-large flex flex-col"),"data-slot":"calendar-body",...t})}import{cx as j,tv as fn}from"@xjur-ui/util";import{useDraggable as hn}from"@dnd-kit/core";import{jsx as k,jsxs as Tr}from"react/jsx-runtime";var gn=fn({base:"py-small_1x-alt pr-small pl-medium rounded-small-2x transition-colors duration-100 ease-out",variants:{status:{pending:"bg-layer-2-hover border-l-2 border-border-layer-4 hover:bg-layer-2-pressed active:bg-layer-2-active",completed:"bg-success-alt-idle border-l-2 border-success-idle hover:bg-success-alt-hover active:bg-success-alt-pressed",cancelled:"bg-danger-alt-idle border-l-2 border-danger-idle hover:bg-danger-alt-hover active:bg-danger-alt-pressed"}},defaultVariants:{status:"pending"}});function Gp({event:e,disabled:t=!1,status:r="pending",className:o,children:a,...n}){let{onEventMove:i}=g(),s=t||!i,{attributes:l,listeners:c,setNodeRef:f,transform:u,isDragging:y}=hn({id:e.id,disabled:s,data:{event:e,type:"calendar-event"}}),b=u?{transform:`translate3d(${u.x}px, ${u.y}px, 0)`}:void 0;return k("div",{className:j(t&&"pointer-events-none","cursor-pointer active:cursor-grabbing",y&&"z-1000 -rotate-2",gn({status:r}),o),"data-draggable-event-id":e.id,"data-slot":"calendar-event",ref:f,style:b,...c,...l,...n,children:a})}function jp({size:e="sm",variant:t="label",weight:r="medium",className:o,...a}){let{activeEventId:n}=g();return n!==null?k(p,{className:j(o,"text-title-neutral truncate"),size:e,variant:t,weight:r,...a}):Tr(H,{delayDuration:500,children:[k(L,{asChild:!0,children:k(p,{className:j(o,"text-title-neutral truncate"),size:e,variant:t,weight:r,...a})}),k(q,{className:"max-w-[320px]",children:a.children})]})}function Jp({size:e="sm-1x",variant:t="body",weight:r="normal",className:o,...a}){let{activeEventId:n}=g();return n!==null?k(p,{className:j(o,"truncate"),size:e,variant:t,weight:r,...a}):Tr(H,{delayDuration:500,children:[k(L,{asChild:!0,children:k(p,{className:j(o,"truncate"),size:e,variant:t,weight:r,...a})}),k(q,{className:"max-w-[320px]",children:a.children})]})}function Kp({variant:e="body",size:t="sm-1x",weight:r="normal",className:o,...a}){return k(p,{className:j(o,"truncate"),size:t,variant:e,weight:r,...a})}import{useCallback as yn}from"react";import{jsx as vn}from"react/jsx-runtime";function of({children:e="Hoje",variant:t="tertiary",...r}){let{setSelectedDate:o}=g(),a=yn(()=>{o(new Date)},[o]);return vn(W,{variant:t,onClick:a,...r,children:e})}export{Hp as CalendarBody,Gp as CalendarEvent,Jp as CalendarEventDescription,Kp as CalendarEventStatus,jp as CalendarEventTitle,Fp as CalendarHeader,Ge as CalendarMonthView,Yc as CalendarNavigator,Pl as CalendarRoot,of as CalendarTodayButton,Np as CalendarToggleView,uc as CalendarViewRenderer,cr as CalendarWeekView,g as useFullCalendar};
|
|
1
|
+
import{useCallback as ea,useMemo as ta}from"react";import{cx as Br}from"@xjur-ui/util";import{Slot as go}from"@radix-ui/react-slot";import{cva as yo}from"@xjur-ui/util";import{memo as zt,useState as vo}from"react";import*as ye from"@radix-ui/react-tooltip";import{jsx as Ye}from"react/jsx-runtime";function uo({delayDuration:e=0,...t}){return Ye(ye.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Q({...e}){return Ye(uo,{children:Ye(ye.Root,{"data-slot":"tooltip",...e})})}import*as Ht from"@radix-ui/react-tooltip";import{jsx as fo}from"react/jsx-runtime";function $({...e}){return fo(Ht.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as ve from"@radix-ui/react-tooltip";import{cx as ho}from"@xjur-ui/util";import{jsx as Ft}from"react/jsx-runtime";function G({className:e,sideOffset:t=1,variant:r="simple",children:o,...n}){return Ft(ve.Portal,{children:Ft(ve.Content,{className:ho("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":r,sideOffset:t,...n,children:o})})}import{jsx as xe,jsxs as Co}from"react/jsx-runtime";var xo=yo("",{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"}}),u=zt(({variant:e,size:t,weight:r,asChild:o,className:n,children:a,...i})=>xe(o?go:"span",{className:xo({variant:e,size:t,weight:r,className:n}),...i,children:a}));u.displayName="Typography";var Be=zt(({children:e,...t})=>{let[r,o]=vo(!1);return Co(Q,{children:[xe($,{asChild:!0,children:xe(u,{onMouseEnter:({currentTarget:a})=>{let i=a.scrollWidth>a.clientWidth;o(i),i?a.style.cursor="pointer":a.style.cursor="text"},...t,children:e})}),r&&xe(G,{children:e})]})});Be.displayName="TruncatedTypography";var wo=Math.pow(10,8)*24*60*60*1e3,bi=-wo,Ce=6048e5,Rt=864e5;var bo=3600;var Yt=bo*24,ki=Yt*7,ko=Yt*365.2425,Do=ko/12,Di=Do*3,Ae=Symbol.for("constructDateFrom");function h(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ae in e?e[Ae](t):e instanceof Date?new e.constructor(t):new Date(t)}function d(e,t){return h(t||e,e)}function J(e,t,r){let o=d(e,r?.in);return isNaN(t)?h(r?.in||e,NaN):(t&&o.setDate(o.getDate()+t),o)}function we(e,t,r){let o=d(e,r?.in);if(isNaN(t))return h(r?.in||e,NaN);if(!t)return o;let n=o.getDate(),a=h(r?.in||e,o.getTime());a.setMonth(o.getMonth()+t+1,0);let i=a.getDate();return n>=i?a:(o.setFullYear(a.getFullYear(),a.getMonth(),n),o)}var Mo={};function S(){return Mo}function v(e,t){let r=S(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=d(e,t?.in),a=n.getDay(),i=(a<o?7:0)+a-o;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function B(e,t){return v(e,{...t,weekStartsOn:1})}function be(e,t){let r=d(e,t?.in),o=r.getFullYear(),n=h(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let a=B(n),i=h(r,0);i.setFullYear(o,0,4),i.setHours(0,0,0,0);let s=B(i);return r.getTime()>=a.getTime()?o+1:r.getTime()>=s.getTime()?o:o-1}function qe(e){let t=d(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function K(e,...t){let r=h.bind(null,e||t.find(o=>typeof o=="object"));return t.map(r)}function U(e,t){let r=d(e,t?.in);return r.setHours(0,0,0,0),r}function Bt(e,t,r){let[o,n]=K(r?.in,e,t),a=U(o),i=U(n),s=+a-qe(a),l=+i-qe(i);return Math.round((s-l)/Rt)}function At(e,t){let r=be(e,t),o=h(t?.in||e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),B(o)}function ke(e,t,r){return J(e,t*7,r)}function qt(e){return h(e,Date.now())}function ie(e,t,r){let[o,n]=K(r?.in,e,t);return+U(o)==+U(n)}function jt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zt(e){return!(!jt(e)&&typeof e!="number"||isNaN(+d(e)))}function je(e,t){let r=d(e,t?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function Xt(e,t){let[r,o]=K(e,t.start,t.end);return{start:r,end:o}}function Qt(e,t){let{start:r,end:o}=Xt(t?.in,e),n=+r>+o,a=n?+r:+o,i=n?o:r;i.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,n=!n);let l=[];for(;+i<=a;)l.push(h(r,i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return n?l.reverse():l}function $t(e,t){let r=d(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Gt(e,t){let r=d(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Ze(e,t){let r=S(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=d(e,t?.in),a=n.getDay(),i=(a<o?-7:0)+6-(a-o);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}var Po={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Jt=(e,t,r)=>{let o,n=Po[e];return typeof n=="string"?o=n:t===1?o=n.one:o=n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function H(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Lo={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},To={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},So={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kt={date:H({formats:Lo,defaultWidth:"full"}),time:H({formats:To,defaultWidth:"full"}),dateTime:H({formats:So,defaultWidth:"full"})};var Oo={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ut=(e,t,r,o)=>Oo[e];function b(e){return(t,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):i;n=e.formattingValues[s]||e.formattingValues[i]}else{let i=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[i]}let a=e.argumentCallback?e.argumentCallback(t):t;return n[a]}}var _o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Io={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wo={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Vo={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Eo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},No={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ho=(e,t)=>{let r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},er={ordinalNumber:Ho,era:b({values:_o,defaultWidth:"wide"}),quarter:b({values:Io,defaultWidth:"wide",argumentCallback:e=>e-1}),month:b({values:Wo,defaultWidth:"wide"}),day:b({values:Vo,defaultWidth:"wide"}),dayPeriod:b({values:Eo,defaultWidth:"wide",formattingValues:No,defaultFormattingWidth:"wide"})};function k(e){return(t,r={})=>{let o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(n);if(!a)return null;let i=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?zo(s,p=>p.test(i)):Fo(s,p=>p.test(i)),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;let f=t.slice(i.length);return{value:c,rest:f}}}function Fo(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function zo(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function De(e){return(t,r={})=>{let o=t.match(e.matchPattern);if(!o)return null;let n=o[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;let s=t.slice(n.length);return{value:i,rest:s}}}var Ro=/^(\d+)(th|st|nd|rd)?/i,Yo=/\d+/i,Bo={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ao={any:[/^b/i,/^(a|c)/i]},qo={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jo={any:[/1/i,/2/i,/3/i,/4/i]},Zo={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Xo={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qo={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$o={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Go={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Jo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tr={ordinalNumber:De({matchPattern:Ro,parsePattern:Yo,valueCallback:e=>parseInt(e,10)}),era:k({matchPatterns:Bo,defaultMatchWidth:"wide",parsePatterns:Ao,defaultParseWidth:"any"}),quarter:k({matchPatterns:qo,defaultMatchWidth:"wide",parsePatterns:jo,defaultParseWidth:"any",valueCallback:e=>e+1}),month:k({matchPatterns:Zo,defaultMatchWidth:"wide",parsePatterns:Xo,defaultParseWidth:"any"}),day:k({matchPatterns:Qo,defaultMatchWidth:"wide",parsePatterns:$o,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:Go,defaultMatchWidth:"any",parsePatterns:Jo,defaultParseWidth:"any"})};var Xe={code:"en-US",formatDistance:Jt,formatLong:Kt,formatRelative:Ut,localize:er,match:tr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rr(e,t){let r=d(e,t?.in);return Bt(r,Gt(r))+1}function or(e,t){let r=d(e,t?.in),o=+B(r)-+At(r);return Math.round(o/Ce)+1}function Me(e,t){let r=d(e,t?.in),o=r.getFullYear(),n=S(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=h(t?.in||e,0);i.setFullYear(o+1,0,a),i.setHours(0,0,0,0);let s=v(i,t),l=h(t?.in||e,0);l.setFullYear(o,0,a),l.setHours(0,0,0,0);let c=v(l,t);return+r>=+s?o+1:+r>=+c?o:o-1}function nr(e,t){let r=S(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=Me(e,t),a=h(t?.in||e,0);return a.setFullYear(n,0,o),a.setHours(0,0,0,0),v(a,t)}function ar(e,t){let r=d(e,t?.in),o=+v(r,t)-+nr(r,t);return Math.round(o/Ce)+1}function m(e,t){let r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}var V={y(e,t){let r=e.getFullYear(),o=r>0?r:1-r;return m(t==="yy"?o%100:o,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):m(r+1,2)},d(e,t){return m(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return m(e.getHours()%12||12,t.length)},H(e,t){return m(e.getHours(),t.length)},m(e,t){return m(e.getMinutes(),t.length)},s(e,t){return m(e.getSeconds(),t.length)},S(e,t){let r=t.length,o=e.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return m(n,t.length)}};var ee={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qe={G:function(e,t,r){let o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let o=e.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return V.y(e,t)},Y:function(e,t,r,o){let n=Me(e,o),a=n>0?n:1-n;if(t==="YY"){let i=a%100;return m(i,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):m(a,t.length)},R:function(e,t){let r=be(e);return m(r,t.length)},u:function(e,t){let r=e.getFullYear();return m(r,t.length)},Q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return m(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return m(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){let o=e.getMonth();switch(t){case"M":case"MM":return V.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){let o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return m(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){let n=ar(e,o);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):m(n,t.length)},I:function(e,t,r){let o=or(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):m(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):V.d(e,t)},D:function(e,t,r){let o=rr(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):m(o,t.length)},E:function(e,t,r){let o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){let n=e.getDay(),a=(n-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return m(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){let n=e.getDay(),a=(n-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return m(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){let o=e.getDay(),n=o===0?7:o;switch(t){case"i":return String(n);case"ii":return m(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let o=e.getHours(),n;switch(o===12?n=ee.noon:o===0?n=ee.midnight:n=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let o=e.getHours(),n;switch(o>=17?n=ee.evening:o>=12?n=ee.afternoon:o>=4?n=ee.morning:n=ee.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return V.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):V.H(e,t)},K:function(e,t,r){let o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):m(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):m(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):V.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):V.s(e,t)},S:function(e,t){return V.S(e,t)},X:function(e,t,r){let o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return sr(o);case"XXXX":case"XX":return A(o);case"XXXXX":case"XXX":default:return A(o,":")}},x:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"x":return sr(o);case"xxxx":case"xx":return A(o);case"xxxxx":case"xxx":default:return A(o,":")}},O:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ir(o,":");case"OOOO":default:return"GMT"+A(o,":")}},z:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ir(o,":");case"zzzz":default:return"GMT"+A(o,":")}},t:function(e,t,r){let o=Math.trunc(+e/1e3);return m(o,t.length)},T:function(e,t,r){return m(+e,t.length)}};function ir(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),n=Math.trunc(o/60),a=o%60;return a===0?r+String(n):r+String(n)+t+m(a,2)}function sr(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):A(e,t)}function A(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),n=m(Math.trunc(o/60),2),a=m(o%60,2);return r+n+t+a}var lr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},dr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ko=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return lr(e,t);let a;switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",lr(o,t)).replace("{{time}}",dr(n,t))},mr={p:dr,P:Ko};var Uo=/^D+$/,en=/^Y+$/,tn=["D","DD","YY","YYYY"];function cr(e){return Uo.test(e)}function pr(e){return en.test(e)}function ur(e,t,r){let o=rn(e,t,r);if(console.warn(o),tn.includes(e))throw new RangeError(o)}function rn(e,t,r){let o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var on=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,an=/^'([^]*?)'?$/,sn=/''/g,ln=/[a-zA-Z]/;function se(e,t,r){let o=S(),n=r?.locale??o.locale??Xe,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=d(e,r?.in);if(!Zt(s))throw new RangeError("Invalid time value");let l=t.match(nn).map(f=>{let p=f[0];if(p==="p"||p==="P"){let y=mr[p];return y(f,n.formatLong)}return f}).join("").match(on).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:dn(f)};if(Qe[p])return{isToken:!0,value:f};if(p.match(ln))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});n.localize.preprocessor&&(l=n.localize.preprocessor(s,l));let c={firstWeekContainsDate:a,weekStartsOn:i,locale:n};return l.map(f=>{if(!f.isToken)return f.value;let p=f.value;(!r?.useAdditionalWeekYearTokens&&pr(p)||!r?.useAdditionalDayOfYearTokens&&cr(p))&&ur(p,t,String(e));let y=Qe[p[0]];return y(s,p,n.localize,c)}).join("")}function dn(e){let t=e.match(an);return t?t[1].replace(sn,"'"):e}function fr(e){return+d(e)<Date.now()}function hr(e,t){return ie(h(t?.in||e,e),qt(t?.in||e))}function gr(e,t,r){return J(e,-t,r)}function Pe(e,t,r){let o=d(e,r?.in);return o.setHours(t),o}function Le(e,t,r){return we(e,-t,r)}function yr(e,t,r){return ke(e,-t,r)}function $e(e){return Array.from({length:e},(t,r)=>r)}var le=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],Te=Array.from({length:16},(e,t)=>{let r=t+8;return{hour:r,label:`${r.toString().padStart(2,"0")}:00`}});function vr(e){let t=e.getFullYear(),r=e.getMonth(),o=$t(e).getDay(),n=je(Le(e,1)).getDate(),a=je(e).getDate(),i=$e(o).map(y=>{y+=1;let w=r-1,I=n-o+y,Y=new Date(t,w,I);return{dayOfWeekNumber:Y.getDay(),date:Y,type:"month"}}),s=$e(a).map(y=>{let w=y+1,L=new Date(t,r,w);return{dayOfWeekNumber:L.getDay(),date:L,type:"month"}}),l=7,c=o+a,f=l-c%l%l,p=$e(f).map(y=>{let w=y+1,L=new Date(t,r+1,w);return{dayOfWeekNumber:L.getDay(),date:L,type:"month"}});return[...i,...s,...p]}function xr(e,t){return e.filter(r=>ie(r.eventDate,t))}function de(e){return hr(e)}function Cr(e){let t=v(e,{weekStartsOn:0}),r=Ze(e,{weekStartsOn:0}),o=Qt({start:t,end:r}),n=t.getDay(),a=le[n];return o.map(i=>({date:i,dayOfWeekNumber:n,dayOfWeekName:a,fullDate:i,type:"week"}))}function Se(e,t,r){return e.filter(o=>ie(o.eventDate,t)&&o.eventDate.getHours()===r)}function wr(e){let t=v(e,{weekStartsOn:0}),r=Ze(e,{weekStartsOn:0});return{start:t,end:r}}import{createContext as mn,use as cn,useCallback as Ge,useMemo as pn,useState as Je}from"react";import{DndContext as un,closestCenter as fn,useSensor as Ke,useSensors as hn,PointerSensor as gn,KeyboardSensor as yn,MouseSensor as vn}from"@dnd-kit/core";import{sortableKeyboardCoordinates as xn}from"@dnd-kit/sortable";import{jsx as br}from"react/jsx-runtime";var kr=mn({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function md({children:e,events:t,calendarView:r="month",selectedDate:o=new Date,disableEventCreationInPast:n=!0,renderEvent:a,onEventMove:i,onAddEvent:s}){let[l,c]=Je(o),[f,p]=Je(r),[y,w]=Je(null),L=Ge(W=>{c(new Date),p(W)},[]),I=hn(Ke(gn,{activationConstraint:{distance:8}}),Ke(yn,{coordinateGetter:xn}),Ke(vn,{activationConstraint:{distance:5,delay:250}})),Y=Ge(W=>{let ge=W.active.id.toString();w(ge)},[]),ze=Ge(W=>{let{active:ge,over:Et}=W;if(w(null),!ge||!Et||!i)return;let po=ge.id.toString(),Nt=Et.data.current?.date;Nt&&i(po,Nt)},[i]),Re=pn(()=>({events:t,renderEvent:a,activeEventId:y,disableEventCreationInPast:n,selectedDate:l,setSelectedDate:c,calendarView:f,handleChangeView:L,onEventMove:i,onAddEvent:s}),[t,a,y,n,l,f,L,i,s]);return br(kr.Provider,{value:Re,children:br(un,{collisionDetection:fn,sensors:I,onDragEnd:ze,onDragStart:Y,children:e})})}function g(){let e=cn(kr);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as $n,useMemo as yt}from"react";import{useDroppable as Gn}from"@dnd-kit/core";import{cx as Jn,tv as Kn}from"@xjur-ui/util";import{Slot as Cn}from"@radix-ui/react-slot";import{cva as wn,cx as bn}from"@xjur-ui/util";import{jsx as Dn}from"react/jsx-runtime";var kn=wn(["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:r="primary",size:o="md",appearance:n="solid",...a}){return Dn(e?Cn:"button",{className:bn(kn({variant:r,appearance:n,size:o}),t),...a})}import{cx as On}from"@xjur-ui/util";var Dr=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as D,jsxs as Mn}from"react/jsx-runtime";function Ue(){return Mn("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[D("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"}),D("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"}),D("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"}),D("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"}),D("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"}),D("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"}),D("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"}),D("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"}),D("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),D("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"}),D("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"}),D("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as T,jsxs as Mr}from"react/jsx-runtime";function et(){return Mr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Mr("g",{clipPath:"url(#clip0_19548_42822)",children:[T("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("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"}),T("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"}),T("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"}),T("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"}),T("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"}),T("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"})]}),T("defs",{children:T("clipPath",{id:"clip0_19548_42822",children:T("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as Oe,jsxs as Pn}from"react/jsx-runtime";function tt(){return Pn("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Oe("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),Oe("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"}),Oe("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),Oe("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 x,jsxs as Pr}from"react/jsx-runtime";function rt(){return Pr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Pr("g",{clipPath:"url(#clip0_19548_42667)",children:[x("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"}),x("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"}),x("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"}),x("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"}),x("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"}),x("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),x("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"}),x("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),x("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),x("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),x("defs",{children:x("clipPath",{id:"clip0_19548_42667",children:x("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as q,jsxs as Ln}from"react/jsx-runtime";function ot(){return Ln("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[q("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"}),q("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"}),q("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"}),q("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"}),q("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),q("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),q("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as te,jsxs as Lr}from"react/jsx-runtime";function nt(){return Lr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Lr("g",{clipPath:"url(#clip0_19548_42803)",children:[te("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"}),te("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"}),te("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),te("defs",{children:te("clipPath",{id:"clip0_19548_42803",children:te("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as j,jsxs as Tr}from"react/jsx-runtime";function at(){return Tr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Tr("g",{clipPath:"url(#clip0_19548_42782)",children:[j("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),j("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),j("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"}),j("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"})]}),j("defs",{children:j("clipPath",{id:"clip0_19548_42782",children:j("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as _e,jsxs as Tn}from"react/jsx-runtime";function it(){return Tn("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_e("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),_e("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),_e("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"}),_e("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 F,jsxs as Sr}from"react/jsx-runtime";function st(){return Sr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Sr("g",{clipPath:"url(#clip0_19548_42757)",children:[F("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),F("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),F("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),F("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"}),F("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),F("defs",{children:F("clipPath",{id:"clip0_19548_42757",children:F("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as re,jsxs as Or}from"react/jsx-runtime";function lt(){return Or("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Or("g",{clipPath:"url(#clip0_19548_42810)",children:[re("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"}),re("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"}),re("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"})]}),re("defs",{children:re("clipPath",{id:"clip0_19548_42810",children:re("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as O,jsxs as _r}from"react/jsx-runtime";function dt(){return _r("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_r("g",{clipPath:"url(#clip0_21377_57335)",children:[O("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"}),O("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"}),O("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"}),O("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"}),O("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"}),O("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),O("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),O("defs",{children:O("clipPath",{id:"clip0_21377_57335",children:O("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as me,jsxs as Sn}from"react/jsx-runtime";function mt(){return Sn("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[me("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"}),me("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),me("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),me("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),me("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as M}from"react/jsx-runtime";function Ir({name:e}){switch(e){case"agenda":return M(Ue,{});case"contencioso":return M(rt,{});case"contrato":return M(ot,{});case"consultivo":return M(tt,{});case"xsigner":return M(mt,{});case"procuracao":return M(st,{});case"xpay":return M(dt,{});case"imobiliario":return M(at,{});case"marcasepatentes":return M(it,{});case"ged":return M(nt,{});case"regulatorio":return M(lt,{});case"compliance":return M(et,{});default:return null}}import{jsx as Wr}from"react/jsx-runtime";function Z({className:e,filled:t=!1,name:r,...o}){return Dr.includes(r)?Wr(Ir,{name:r}):Wr("span",{...o,className:On("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{Fragment as Qn}from"react/jsx-runtime";import"react";import*as Vr from"@radix-ui/react-dropdown-menu";import{jsx as _n}from"react/jsx-runtime";function ct({...e}){return _n(Vr.Root,{"data-slot":"dropdown-menu",...e})}import*as Er from"@radix-ui/react-dropdown-menu";import{jsx as In}from"react/jsx-runtime";function pt({...e}){return In(Er.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as We from"@radix-ui/react-dropdown-menu";import{cx as jn}from"@xjur-ui/util";import{Slot as Vn}from"@radix-ui/react-slot";import{cx as En}from"@xjur-ui/util";import{useVirtualizer as Nn}from"@tanstack/react-virtual";import{useRef as Hn}from"react";import{createContext as Wn}from"react";var ce=Wn({virtualizer:null,enabled:!1});import{jsx as Nr}from"react/jsx-runtime";function pe({className:e,asChild:t,children:r,virtualized:o=!1,itemCount:n=0,estimateSize:a=()=>48,overscan:i=5,...s}){let l=t?Vn:"div",c=Hn(null),f=Nn({count:n,getScrollElement:()=>c.current,estimateSize:a,overscan:i,enabled:o});return Nr(ce.Provider,{value:{virtualizer:f,enabled:o},children:Nr(l,{...s,className:En(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:r})})}import{Slot as Dm}from"@radix-ui/react-slot";import{cx as Pm}from"@xjur-ui/util";import{jsx as Tm}from"react/jsx-runtime";import{cx as _m}from"@xjur-ui/util";import{jsx as Vm}from"react/jsx-runtime";import{Slot as Fn}from"@radix-ui/react-slot";import{cx as Hr}from"@xjur-ui/util";import{useContext as zn}from"react";import{jsx as ut}from"react/jsx-runtime";function ue({className:e,asChild:t,children:r,renderItem:o,...n}){let a=t?Fn:"ul",{virtualizer:i,enabled:s}=zn(ce);if(s&&i&&o){let l=i.getVirtualItems();return ut(a,{...n,className:Hr("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:l.map(c=>ut("div",{className:"absolute top-0 left-0 w-full","data-index":c.index,ref:i.measureElement,style:{transform:`translateY(${c.start}px)`},children:o(c.index)},c.key))})}return ut(a,{...n,className:Hr("gap-small-1x p-small flex flex-col",e),children:r})}import{Slot as Rn}from"@radix-ui/react-slot";import{cx as Yn,cva as Bn}from"@xjur-ui/util";import{jsx as qn}from"react/jsx-runtime";var An=Bn(["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}});function Ie({className:e,size:t,isActive:r,asChild:o,...n}){return qn(o?Rn:"li",{...n,className:Yn(An({size:t,isActive:r}),e)})}import{jsx as ft}from"react/jsx-runtime";function ht({className:e,sideOffset:t=4,align:r="start",side:o="bottom",children:n,...a}){return ft(We.Portal,{children:ft(We.Content,{align:r,className:jn("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:o,sideOffset:t,...a,children:ft(pe,{children:n})})})}import{jsx as Zn}from"react/jsx-runtime";function gt({...e}){return Zn(ue,{...e})}import{jsx as lc}from"react/jsx-runtime";import{cx as vc}from"@xjur-ui/util";import"react";import*as Xn from"@radix-ui/react-separator";import{cx as pc}from"@xjur-ui/util";import{jsx as fc}from"react/jsx-runtime";import{jsx as kc}from"react/jsx-runtime";import{jsx as Ve,jsxs as Rr}from"react/jsx-runtime";function Yr({events:e}){let{renderEvent:t}=g();return Rr(ct,{children:[Ve(pt,{asChild:!0,children:Rr(E,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),Ve(ht,{className:"w-[240px]",children:Ve(gt,{children:e.map(r=>Ve(Qn,{children:t?.(r)},r.eventDate.toISOString()))})})]})}import{jsx as N,jsxs as vt}from"react/jsx-runtime";var Un=Kn({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 oe({cell:e,events:t}){let{date:r,type:o}=e,{renderEvent:n,activeEventId:a,onAddEvent:i,disableEventCreationInPast:s}=g(),l=yt(()=>t.slice(0,2),[t]),c=t.length>=3,{isOver:f,setNodeRef:p}=Gn({id:`calendar-cell-${o}-${r.toISOString()}`,data:{date:r,type:o}}),y=yt(()=>{let I=t.find(W=>W.id===a);if(!I)return!1;let Y=W=>W.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),ze=Y(r),Re=Y(I.eventDate);return ze===Re},[a,r,t]),w=Un({type:o}),L=yt(()=>s&&fr(r)&&!de(r),[s,r]);return vt("div",{className:w,"data-slot":"calendar-cell",ref:p,children:[o==="month"&&N("div",{className:"flex items-center justify-center",children:N("div",{className:Jn("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",de(r)&&"bg-primary-idle text-neutral-label"),children:N(u,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),vt("div",{className:"gap-small-1x flex flex-col",children:[l.map(I=>N($n,{children:n(I)},I.id)),f&&l.length<2&&!y&&N("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),vt("div",{className:"mt-auto flex items-center justify-between",children:[c&&N(Yr,{events:t.slice(2)}),i&&!L&&N("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:N(E,{size:"icon_sm",variant:"outlined",onClick:()=>i(r),children:N(Z,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as ne,jsxs as ra}from"react/jsx-runtime";function xt(){let{selectedDate:e,events:t}=g(),r=ta(()=>vr(e),[e]),o=ea(n=>xr(t,n.date),[t]);return ra("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[ne("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(n=>ne("div",{className:Br("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:ne(u,{size:"sm",variant:"label",weight:"medium",children:n})},n))}),ne("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:r.map((n,a)=>{let i=(a+1)%7===0,s=(a+1)%7===1;return ne("div",{className:Br("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:ne(oe,{cell:n,events:o(n)})},`${n.date.toISOString()}-${a}`)})})]})}import{useCallback as Ar,useMemo as na}from"react";import{cx as qr}from"@xjur-ui/util";import{cx as Ct}from"@xjur-ui/util";import{jsx as wt,jsxs as oa}from"react/jsx-runtime";function Ee({date:e,className:t,...r}){let o=de(e),n=e.getDate();return oa("div",{className:Ct("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...r,children:[wt(u,{size:"sm",variant:"label",weight:"medium",children:le[e.getDay()]}),wt("div",{className:Ct("size-large-2x rounded-circle flex items-center justify-center",o&&"bg-primary-idle"),children:wt(u,{className:Ct(o&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:n})})]},e.toISOString())}import{jsx as z,jsxs as jr}from"react/jsx-runtime";function Zr(){let{selectedDate:e,events:t}=g(),r=na(()=>Cr(e),[e]),o=Ar((a,i)=>Se(t,a,i),[t]),n=Ar((a,i)=>({...a,date:Pe(a.date,i)}),[]);return z("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jr("div",{className:"flex flex-1 flex-col",children:[z("div",{className:qr("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:r.map((a,i)=>z(Ee,{date:a.date,style:{gridColumnStart:i+2}},a.date.getDay()))}),z("div",{className:"overflow-hidden",children:Te.map(({hour:a,label:i})=>jr("div",{className:"flex items-start",children:[z("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:z(u,{size:"sm-1x",variant:"label",weight:"medium",children:i})}),z("div",{className:qr("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:r.map(s=>z(oe,{cell:n(s,a),events:o(s.date,a)},s.date.toISOString()))})]},a))})]})})}import{useCallback as Xr}from"react";import{cx as aa}from"@xjur-ui/util";import{jsx as R,jsxs as bt}from"react/jsx-runtime";function Qr(){let{selectedDate:e,events:t}=g(),r=Xr((n,a)=>Se(t,n,a),[t]),o=Xr((n,a)=>({...n,date:Pe(n.date,a)}),[]);return R("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:bt("div",{className:"flex flex-1 flex-col",children:[bt("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[R("div",{className:"w-[64px]"}),R(Ee,{className:"border-border-layer-2 items-start border-l",date:e})]}),R("div",{className:"overflow-hidden",children:Te.map(({hour:n,label:a})=>bt("div",{className:"flex items-start",children:[R("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:R(u,{size:"sm-1x",variant:"label",weight:"medium",children:a})}),R("div",{className:aa("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:R(oe,{cell:o({date:e,type:"day"},n),events:r(e,n)})})]},n))})]})})}import{jsx as Ne}from"react/jsx-runtime";function Fp(){let{calendarView:e}=g();switch(e){case"month":return Ne(xt,{});case"week":return Ne(Zr,{});case"day":return Ne(Qr,{});default:return Ne(xt,{})}}import{useCallback as eo,useMemo as Oa}from"react";var ia={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xEAs",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xEAs",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},$r=(e,t,r)=>{let o,n=ia[e];return typeof n=="string"?o=n:t===1?o=n.one:o=n.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"em "+o:"h\xE1 "+o:o};var sa={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},la={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},da={full:"{{date}} '\xE0s' {{time}}",long:"{{date}} '\xE0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gr={date:H({formats:sa,defaultWidth:"full"}),time:H({formats:la,defaultWidth:"full"}),dateTime:H({formats:da,defaultWidth:"full"})};var ma={lastWeek:e=>{let t=e.getDay();return"'"+(t===0||t===6?"\xFAltimo":"\xFAltima")+"' eeee '\xE0s' p"},yesterday:"'ontem \xE0s' p",today:"'hoje \xE0s' p",tomorrow:"'amanh\xE3 \xE0s' p",nextWeek:"eeee '\xE0s' p",other:"P"},Jr=(e,t,r,o)=>{let n=ma[e];return typeof n=="function"?n(t):n};var ca={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},pa={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},ua={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},fa={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xE7a","quarta","quinta","sexta","s\xE1bado"],wide:["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"]},ha={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"}},ga={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},ya=(e,t)=>{let r=Number(e);return t?.unit==="week"?r+"\xAA":r+"\xBA"},Kr={ordinalNumber:ya,era:b({values:ca,defaultWidth:"wide"}),quarter:b({values:pa,defaultWidth:"wide",argumentCallback:e=>e-1}),month:b({values:ua,defaultWidth:"wide"}),day:b({values:fa,defaultWidth:"wide"}),dayPeriod:b({values:ha,defaultWidth:"wide",formattingValues:ga,defaultFormattingWidth:"wide"})};var va=/^(\d+)[ºªo]?/i,xa=/\d+/i,Ca={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},wa={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},ba={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},ka={any:[/1/i,/2/i,/3/i,/4/i]},Da={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Ma={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Pa={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},La={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Ta={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Sa={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},Ur={ordinalNumber:De({matchPattern:va,parsePattern:xa,valueCallback:e=>parseInt(e,10)}),era:k({matchPatterns:Ca,defaultMatchWidth:"wide",parsePatterns:wa,defaultParseWidth:"any"}),quarter:k({matchPatterns:ba,defaultMatchWidth:"wide",parsePatterns:ka,defaultParseWidth:"any",valueCallback:e=>e+1}),month:k({matchPatterns:Da,defaultMatchWidth:"wide",parsePatterns:Ma,defaultParseWidth:"any"}),day:k({matchPatterns:Pa,defaultMatchWidth:"wide",parsePatterns:La,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:Ta,defaultMatchWidth:"any",parsePatterns:Sa,defaultParseWidth:"any"})};var fe={code:"pt-BR",formatDistance:$r,formatLong:Gr,formatRelative:Jr,localize:Kr,match:Ur,options:{weekStartsOn:0,firstWeekContainsDate:1}};import{capitalize as _a}from"@xjur-ui/util";import{jsx as he,jsxs as to}from"react/jsx-runtime";function cu(){let{selectedDate:e,calendarView:t,setSelectedDate:r}=g(),o=Oa(()=>{if(t==="month")return _a(se(e,"MMMM 'de' yyyy",{locale:fe}));if(t==="week"){let{start:i,end:s}=wr(e),l=se(s,"MMMM",{locale:fe}),c=se(s,"yyyy",{locale:fe});return`${i.getDate()} - ${s.getDate()} de ${l} de ${c}`}return se(e,"dd 'de' MMMM 'de' yyyy",{locale:fe})},[e,t]),n=eo(()=>{if(t==="month"){r(we(e,1));return}if(t==="week"){let s=v(ke(e,1));r(s);return}let i=J(e,1);r(i)},[e,r,t]),a=eo(()=>{if(t==="month"){r(Le(e,1));return}t==="week"&&r(yr(e,1)),r(gr(e,1))},[e,r,t]);return to("div",{className:"gap-large flex items-center",children:[he(u,{className:"text-title-neutral",size:"lg",variant:"title",children:o}),to("div",{className:"gap-small flex items-center",children:[he(E,{size:"icon_md",variant:"tertiary",onClick:a,children:he(Z,{className:"text-icon-neutral-3",name:"chevron_left"})}),he(E,{size:"icon_md",variant:"tertiary",onClick:n,children:he(Z,{className:"text-icon-neutral-3",name:"chevron_right"})})]})]})}import*as ro from"@radix-ui/react-popover";import{createContext as Ia,useContext as Wa}from"react";var kt=Ia({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function C(){let e=Wa(kt);if(!e)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return e}import{tv as Va}from"@xjur-ui/util";var P=Va({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x w-auto inline-flex cursor-pointer relative","items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-idle border border-border-layer-2","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)] group-data-[state=open]:rotate-180 transition-transform duration-200"],icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{trigger:"hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});import{jsx as Dt}from"react/jsx-runtime";var{wrapper:Ea}=P();function Mt({className:e,state:t="normal",defaultOpen:r,variant:o="normal",modal:n,open:a,onOpenChange:i,...s}){return Dt(ro.Root,{defaultOpen:r,modal:n,open:a,onOpenChange:i,children:Dt(kt.Provider,{value:{state:t,variant:o},children:Dt("div",{className:Ea({className:e,state:t}),...s})})})}import{tv as Na,twMerge as Ha}from"@xjur-ui/util";import*as oo from"@radix-ui/react-popover";import{jsx as za}from"react/jsx-runtime";var{trigger:Fa}=P();function Pt({className:e,...t}){let{state:r,variant:o}=C(),n=Na({base:["group bg-layer-2-idle"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),a=Ha(Fa({state:r,className:e}),o==="filter"&&n({state:r,className:e}));return za(oo.Trigger,{className:a,disabled:r==="disabled",...t})}import{jsx as no}from"react/jsx-runtime";var{icon:Ra}=P();function Lt({className:e,name:t,orientation:r="left",...o}){let{state:n}=C();return no("div",{className:Ra({className:e,state:n}),"data-slot":`control-${r}-slot`,...o,children:no(Z,{name:t})})}import{twJoin as Ba}from"@xjur-ui/util";import{useMemo as Aa}from"react";import{tv as Ya}from"@xjur-ui/util";import{jsx as ao}from"react/jsx-runtime";function Tt({className:e,htmlFor:t,children:r,...o}){let{state:n}=C(),a=Ya({base:["group inline-block max-w-full truncate text-left","ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250","text-size-body-md","group-focus-within:-top-[3px]","group-data-[state=open]:-top-[3px]","group-focus-within:text-size-label-sm-1x group-focus-within:font-medium","group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium","group-has-[input:not(:placeholder-shown)]:-top-[3px]","group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x","group-has-[input:not(:placeholder-shown)]:font-medium","group-has-[div[data-slot=control-left-slot]]:left-large-4x","group-has-[div[data-slot=control-left-slot]]:group-focus-within:left-small","group-has-[div[data-slot=control-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small","group-has-[div[data-slot=control-left-slot]]:group-data-[state=open]:left-small","group-focus-within:animate-in","group-has-[input:not(:placeholder-shown)]:animate-out","data-[disabled=true]:hidden"],variants:{state:{normal:["group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle","group-has-[input:not(:placeholder-shown)]:!text-primary-idle"],error:["group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active","group-has-[input:not(:placeholder-shown)]:!text-danger-label-active"],disabled:[]}}});return ao("label",{className:a({className:e,state:n}),htmlFor:t,...o,children:ao("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:r})})}import{jsx as He,jsxs as qa}from"react/jsx-runtime";function St({className:e,value:t,placeholder:r,renderValue:o,...n}){let{variant:a}=C(),i=Aa(()=>{let s=o?o(t??""):typeof t=="object"?t?.label:t;return a==="filter"?s:s||r},[t,r,a,o]);return qa("div",{className:"grid w-full items-center",children:[r&&a==="filter"&&He(Tt,{children:r}),r&&a==="filter"&&He(u,{className:"invisible col-start-1 row-start-1 self-center",children:r}),He(u,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:i}),He("input",{...n,"aria-readonly":!0,className:Ba("pointer-events-none",e),hidden:!0,placeholder:" ",readOnly:!0,value:typeof t=="object"?t?.value??"":t??""})]})}import{twMerge as qu}from"@xjur-ui/util";import{Fragment as Zu,useMemo as Xu}from"react";import{jsx as Ku,jsxs as Uu}from"react/jsx-runtime";import*as Fe from"@radix-ui/react-popover";import{jsx as Ot}from"react/jsx-runtime";var{content:ja}=P();function _t({className:e,sideOffset:t=5,side:r="bottom",align:o="start",children:n,virtualized:a=!1,overscan:i=5,estimateSize:s=()=>32,...l}){let{state:c}=C();return Ot(Fe.Portal,{children:Ot(Fe.Content,{align:o,className:ja({className:e,state:c}),side:r,sideOffset:t,...l,children:Ot(pe,{estimateSize:s,overscan:i,virtualized:a,children:n})})})}import{jsx as m1}from"react/jsx-runtime";var{caption:l1}=P();import{jsx as g1}from"react/jsx-runtime";var{slotText:f1}=P();import{jsx as Za}from"react/jsx-runtime";function It(e){return Za(ue,{...e})}import{twMerge as Xa}from"@xjur-ui/util";import*as so from"@radix-ui/react-popover";import{jsx as io}from"react/jsx-runtime";function Wt({className:e,value:t,closeOnSelect:r=!0,...o}){let n=io(Ie,{className:Xa(e,"cursor-pointer"),value:typeof t=="object"?t?.value:t,...o});return r?io(so.Close,{asChild:!0,children:n}):n}import{twMerge as Qa}from"@xjur-ui/util";import{jsx as $a}from"react/jsx-runtime";function Vt({className:e,...t}){return $a(Be,{className:Qa(e,"truncate"),...t})}import{jsx as _1}from"react/jsx-runtime";import{jsx as E1}from"react/jsx-runtime";import{Close as of}from"@radix-ui/react-popover";import{jsx as X,jsxs as mo}from"react/jsx-runtime";var lo=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function sf(){let{calendarView:e,handleChangeView:t}=g();return X("div",{className:"w-[94px]",children:mo(Mt,{children:[mo(Pt,{children:[X(St,{name:"calendar-toggle-view",renderValue:r=>lo.find(o=>o.value===r)?.name??"",value:e}),X(Lt,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),X(_t,{children:X(It,{children:lo.map(r=>X(Wt,{isActive:e===r.value,value:r.value,onClick:()=>t(r.value),children:X(Vt,{children:r.name})},r.value))})})]})})}import{cx as Ga}from"@xjur-ui/util";import{jsx as Ja}from"react/jsx-runtime";function cf({className:e,...t}){return Ja("div",{...t,className:Ga(e,"gap-medium h-large-4x flex w-full items-center")})}import{cx as Ka}from"@xjur-ui/util";import{jsx as Ua}from"react/jsx-runtime";function hf({className:e,...t}){return Ua("div",{className:Ka(e,"gap-large-2x p-large flex flex-col"),"data-slot":"calendar-body",...t})}import{cx as ae,tv as ei}from"@xjur-ui/util";import{useDraggable as ti}from"@dnd-kit/core";import{jsx as _,jsxs as co}from"react/jsx-runtime";var ri=ei({base:"py-small_1x-alt pr-small pl-medium rounded-small-2x transition-colors duration-100 ease-out",variants:{status:{pending:"bg-layer-2-hover border-l-2 border-border-layer-4 hover:bg-layer-2-pressed active:bg-layer-2-active",completed:"bg-success-alt-idle border-l-2 border-success-idle hover:bg-success-alt-hover active:bg-success-alt-pressed",cancelled:"bg-danger-alt-idle border-l-2 border-danger-idle hover:bg-danger-alt-hover active:bg-danger-alt-pressed"}},defaultVariants:{status:"pending"}});function kf({event:e,disabled:t=!1,status:r="pending",className:o,children:n,...a}){let{onEventMove:i}=g(),s=t||!i,{attributes:l,listeners:c,setNodeRef:f,transform:p,isDragging:y}=ti({id:e.id,disabled:s,data:{event:e,type:"calendar-event"}}),w=p?{transform:`translate3d(${p.x}px, ${p.y}px, 0)`}:void 0;return _("div",{className:ae(t&&"pointer-events-none","cursor-pointer active:cursor-grabbing",y&&"z-1000 -rotate-2",ri({status:r}),o),"data-draggable-event-id":e.id,"data-slot":"calendar-event",ref:f,style:w,...c,...l,...a,children:n})}function Df({size:e="sm",variant:t="label",weight:r="medium",className:o,...n}){let{activeEventId:a}=g();return a!==null?_(u,{className:ae(o,"text-title-neutral truncate"),size:e,variant:t,weight:r,...n}):co(Q,{delayDuration:500,children:[_($,{asChild:!0,children:_(u,{className:ae(o,"text-title-neutral truncate"),size:e,variant:t,weight:r,...n})}),_(G,{className:"max-w-[320px]",children:n.children})]})}function Mf({size:e="sm-1x",variant:t="body",weight:r="normal",className:o,...n}){let{activeEventId:a}=g();return a!==null?_(u,{className:ae(o,"truncate"),size:e,variant:t,weight:r,...n}):co(Q,{delayDuration:500,children:[_($,{asChild:!0,children:_(u,{className:ae(o,"truncate"),size:e,variant:t,weight:r,...n})}),_(G,{className:"max-w-[320px]",children:n.children})]})}function Pf({variant:e="body",size:t="sm-1x",weight:r="normal",className:o,...n}){return _(u,{className:ae(o,"truncate"),size:t,variant:e,weight:r,...n})}import{useCallback as oi}from"react";import{jsx as ni}from"react/jsx-runtime";function If({children:e="Hoje",variant:t="tertiary",...r}){let{setSelectedDate:o}=g(),n=oi(()=>{o(new Date)},[o]);return ni(E,{variant:t,onClick:n,...r,children:e})}export{hf as CalendarBody,kf as CalendarEvent,Mf as CalendarEventDescription,Pf as CalendarEventStatus,Df as CalendarEventTitle,cf as CalendarHeader,xt as CalendarMonthView,cu as CalendarNavigator,md as CalendarRoot,If as CalendarTodayButton,sf as CalendarToggleView,Fp as CalendarViewRenderer,Zr as CalendarWeekView,g as useFullCalendar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function IconAgenda(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";function o(){return e("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[t("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"}),t("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"}),t("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"}),t("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"}),t("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"}),t("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"}),t("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"}),t("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"}),t("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),t("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"}),t("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"}),t("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function IconCompliance(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";function i(){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_42822)",children:[t("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),t("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),t("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"}),t("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"}),t("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"}),t("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"}),t("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"}),t("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"})]}),t("defs",{children:t("clipPath",{id:"clip0_19548_42822",children:t("rect",{fill:"white",height:"20",width:"20"})})})]})}export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function IconConsultivo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";function o(){return e("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"})]})}export{o as default};
|