@xjur-ui/react 4.0.3 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"react";import*as Be from"@radix-ui/react-dialog";import{jsx as bt}from"react/jsx-runtime";function pe({...e}){return bt(Be.Root,{"data-slot":"sheet",...e})}import*as We from"@radix-ui/react-dialog";import{tv as Ct}from"@xjur-ui/util";import*as Ge from"@radix-ui/react-dialog";import{jsx as xt}from"react/jsx-runtime";function de({...e}){return xt(Ge.Portal,{"data-slot":"sheet-portal",...e})}import*as $e from"@radix-ui/react-dialog";import{cx as yt}from"@xjur-ui/util";import{jsx as vt}from"react/jsx-runtime";function ce({className:e,...t}){return vt($e.Overlay,{className:yt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",e),"data-slot":"sheet-overlay",...t})}import{jsx as qe,jsxs as Pt}from"react/jsx-runtime";function me({className:e,children:t,side:r="right",overlay:o=!1,...n}){let i=Ct({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return Pt(de,{children:[o&&qe(ce,{}),qe(We.Content,{className:i({side:r,className:e}),"data-slot":"sheet-content",...n,children:t})]})}import*as Je from"@radix-ui/react-dialog";import{jsx as St}from"react/jsx-runtime";function ue({...e}){return St(Je.Trigger,{"data-slot":"sheet-trigger",...e})}import{cx as wt}from"@xjur-ui/util";import*as Ye from"@radix-ui/react-dialog";import{jsx as Tt}from"react/jsx-runtime";function fe({className:e,...t}){return Tt(Ye.Title,{className:wt("text-size-title-lg font-normal",e),"data-slot":"sheet-title",...t})}import{cx as kt}from"@xjur-ui/util";import{jsx as Rt}from"react/jsx-runtime";function he({className:e,...t}){return Rt("div",{className:kt("py-large px-large-2x border-b-border-layer-2 border-b",e),"data-slot":"sheet-header",...t})}import*as Ke from"@radix-ui/react-dialog";import{Slot as _t}from"@radix-ui/react-slot";import{cva as Nt,cx as zt}from"@xjur-ui/util";import{jsx as Et}from"react/jsx-runtime";var Vt=Nt(["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:r="primary",size:o="md",appearance:n="solid",...i}){return Et(e?_t:"button",{className:zt(Vt({variant:r,appearance:n,size:o}),t),...i})}import{cx as Ot}from"@xjur-ui/util";import{jsx as It}from"react/jsx-runtime";function g({className:e,filled:t=!1,name:r,...o}){return It("span",{...o,className:Ot("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{jsx as ge}from"react/jsx-runtime";function F({children:e=ge(R,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:ge(g,{className:"text-icon-neutral-3",name:"close"})}),...t}){return ge(Ke.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as Ft}from"@xjur-ui/util";import{jsx as Ht}from"react/jsx-runtime";function be({className:e,...t}){return Ht("div",{className:Ft("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",e),"data-slot":"sheet-footer",...t})}import{cx as Lt}from"@xjur-ui/util";import{jsx as At}from"react/jsx-runtime";function xe({className:e,...t}){return At("div",{className:Lt("px-large-2x h-full",e),...t})}import{createContext as Mt,useCallback as Qe,useContext as Bt,useState as ye,useMemo as Gt}from"react";import{jsx as $t}from"react/jsx-runtime";var U=Mt({});function Ue({children:e}){let[t,r]=ye("list"),[o,n]=ye(!1),[i,a]=ye([]),d=Qe(f=>{r(f)},[]),u=Qe(()=>{n(f=>!f)},[]),m=Gt(()=>({currentView:t,changeCurrentView:d,isFullscreen:o,changeIsFullscreen:u,empresas:i,setEmpresas:a}),[t,d,o,u,i,a]);return $t(U.Provider,{value:m,children:e})}function N(){let e=Bt(U);if(!e)throw new Error("useEmpresaContext must be used within an EmpresaProvider");return{...e,empresas:e.empresas,setEmpresas:e.setEmpresas}}import{jsx as ve}from"react/jsx-runtime";function aa({onOpenChange:e,children:t,...r}){return ve(Ue,{children:ve(U.Consumer,{children:o=>ve(pe,{onOpenChange:n=>{o.changeCurrentView("list"),e?.(n)},...r,children:typeof t=="function"?t(o):t})})})}import{twMerge as qt}from"@xjur-ui/util";import{useCallback as Wt}from"react";import{jsx as Jt,jsxs as Yt}from"react/jsx-runtime";function ma({appearance:e="ghost",onClick:t,className:r,children:o="Adicionar",...n}){let{changeCurrentView:i}=N(),a=Wt(d=>{i("form"),t?.(d)},[i,t]);return Yt(R,{appearance:e,className:qt("w-fit",r),onClick:a,...n,children:[o,Jt(g,{name:"add"})]})}import{twMerge as Kt}from"@xjur-ui/util";import{jsx as Qt}from"react/jsx-runtime";function xa({className:e,...t}){let{currentView:r}=N();return Qt(xe,{className:Kt("gap-large-2x data-[view=form]:!px-none flex flex-col",e),"data-view":r,...t})}import{twMerge as Ut}from"@xjur-ui/util";import{jsx as Xt}from"react/jsx-runtime";function wa({className:e,side:t="right",...r}){let{currentView:o,isFullscreen:n}=N();return Xt(me,{className:Ut("w-[900px] max-w-[1200px] min-w-[900px] data-[fullscreen=true]:w-full data-[fullscreen=true]:max-w-full data-[fullscreen=true]:min-w-full",e),"data-fullscreen":n,"data-view":o,side:t,...r})}import{twMerge as Zt}from"@xjur-ui/util";import{jsx as Dt}from"react/jsx-runtime";function Na({className:e,...t}){return Dt(be,{className:Zt("flex items-center justify-between",e),...t})}import{twMerge as jt}from"@xjur-ui/util";import{jsx as X,jsxs as Xe}from"react/jsx-runtime";function La({title:e,className:t,showCloseButton:r=!0,...o}){let{changeIsFullscreen:n}=N();return Xe(he,{className:jt("flex items-center justify-between",t),...o,children:[X(fe,{children:e}),Xe("div",{className:"gap-small flex items-center",children:[X(R,{appearance:"ghost",size:"icon_md",variant:"tertiary",onClick:()=>n(),children:X(g,{className:"text-icon-neutral-3",name:"expand_content"})}),r&&X(F,{})]})]})}import{jsx as Ze,jsxs as eo}from"react/jsx-runtime";function qa({children:e=eo(R,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[Ze(g,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:t=!0,...r}){return Ze(ue,{asChild:t,...r,children:e})}import{jsx as De}from"react/jsx-runtime";function Qa({...e}){return De(F,{...e,asChild:!0,children:De(R,{appearance:"ghost",children:"Cancelar"})})}import{useState as Le}from"react";import{cx as to}from"@xjur-ui/util";import{jsx as je}from"react/jsx-runtime";function et({className:e,...t}){return je("div",{className:"text-size-body-md scrollbar-thin relative w-full overflow-hidden transition-all hover:overflow-x-auto","data-slot":"table-container",children:je("table",{className:to("w-full caption-bottom",e),"data-slot":"table",...t})})}import{cx as oo}from"@xjur-ui/util";import{jsx as ro}from"react/jsx-runtime";function tt({className:e,...t}){return ro("thead",{className:oo("group/table-header [&_tr]:border-border-layer-2 hover:bg-layer-2-hover [&_tr]:border-b",e),"data-slot":"table-header",...t})}import{cx as ao}from"@xjur-ui/util";import{jsx as io}from"react/jsx-runtime";function ot({className:e,...t}){return io("tbody",{className:ao("[&_tr]:border-border-layer-2 [&_tr]:border-b [&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}import{cx as rt}from"@xjur-ui/util";import{jsx as at}from"react/jsx-runtime";function O({className:e,...t}){return at("th",{className:rt("group/th text-neutral-placeholder text-size-label-sm h-large-4x py-small-1x px-small text-left align-middle font-medium whitespace-nowrap","relative","animate-in fade-in duration-200 ease-in",e),"data-slot":"table-head",...t})}function H({className:e,...t}){return at("div",{className:rt("gap-small pr-large-3x relative flex w-fit items-center",e),...t})}import{cx as no}from"@xjur-ui/util";import{jsx as Ce}from"react/jsx-runtime";function L({className:e,sortedDirection:t,...r}){return Ce("button",{className:no("size-large-1x rounded-small-1x","flex cursor-pointer items-center justify-center","hidden group-hover/th:flex","data-[sorted=true]:flex","transition-all duration-200 ease-out","data-[sorted=true]:bg-primary-alt-active data-[sorted=true]:text-primary-label-active","absolute top-1/2 right-0 -translate-y-1/2",e),"data-sorted":t!==void 0,type:"button",...r,children:t!==void 0?Ce(g,{name:t==="asc"?"arrow_downward":"arrow_upward"}):Ce(g,{name:"swap_vert"})})}import Fe,{useState as ht}from"react";import{cx as le}from"@xjur-ui/util";import*as ee from"@radix-ui/react-checkbox";import{cx as go}from"@xjur-ui/util";import{Slot as co}from"@radix-ui/react-slot";import{cva as mo}from"@xjur-ui/util";import{memo as lt,useState as uo}from"react";import*as Z from"@radix-ui/react-tooltip";import{jsx as Pe}from"react/jsx-runtime";function lo({delayDuration:e=0,...t}){return Pe(Z.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Se({...e}){return Pe(lo,{children:Pe(Z.Root,{"data-slot":"tooltip",...e})})}import*as it from"@radix-ui/react-tooltip";import{jsx as so}from"react/jsx-runtime";function we({...e}){return so(it.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as D from"@radix-ui/react-tooltip";import{cx as po}from"@xjur-ui/util";import{jsx as nt}from"react/jsx-runtime";function Te({className:e,sideOffset:t=1,variant:r="simple",children:o,...n}){return nt(D.Portal,{children:nt(D.Content,{className:po("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 j,jsxs as ho}from"react/jsx-runtime";var fo=mo("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),x=lt(({variant:e,size:t,weight:r,asChild:o,className:n,children:i,...a})=>j(o?co:"span",{className:fo({variant:e,size:t,weight:r,className:n}),...a,children:i}));x.displayName="Typography";var ke=lt(({children:e,...t})=>{let[r,o]=uo(!1);return ho(Se,{children:[j(we,{asChild:!0,children:j(x,{onMouseEnter:({currentTarget:i})=>{let a=i.scrollWidth>i.clientWidth;o(a),a?i.style.cursor="pointer":i.style.cursor="text"},...t,children:e})}),r&&j(Te,{children:e})]})});ke.displayName="TruncatedTypography";import{jsx as A,jsxs as bo}from"react/jsx-runtime";function M({label:e,name:t,className:r,disabled:o=!1,...n}){let i=`field-checkbox-${t}`;return bo("div",{className:"group gap-small flex items-center",children:[A(ee.Root,{disabled:o,...n,className:go("size-large-alt rounded-small-1x inline-flex items-center justify-center transition-[border-color,box-shadow,background-color] duration-200 outline-none","border-border-layer-2 bg-layer-2-idle cursor-pointer border-2","hover:border-primary-idle focus:border-primary-idle focus:shadow-focus-primary","data-[state=checked]:bg-primary-active data-[state=checked]:border-primary-active","data-[state=checked]:hover:border-primary-idle","disabled:hover:border-border-layer-2 disabled:cursor-not-allowed disabled:opacity-[38%]",r),id:i,name:t,children:A(ee.Indicator,{className:"flex items-center justify-center",children:A(g,{className:"text-neutral-label",name:"check"})})}),!!e&&A(x,{asChild:!0,className:"text-size-body-sm data-[disabled=true]:opacity-38","data-disabled":o,weight:"medium",children:A("label",{htmlFor:i,children:e})})]})}import*as b from"react";import*as I from"@radix-ui/react-radio-group";import{cx as te}from"@xjur-ui/util";import{jsx as P,jsxs as oe}from"react/jsx-runtime";function xo({children:e,allowToggle:t,value:r,onValueChange:o}){let[n,i]=b.useState([]),[a,d]=b.useState([]);b.useEffect(()=>{let y=b.Children.toArray(e).filter(v=>b.isValidElement(v)&&typeof v.props=="object"&&v.props!==null&&"value"in v.props&&typeof v.props.value=="string").map(v=>v.props.value);d(y)},[e]),b.useEffect(()=>{t&&i(r?r.split(",").filter(Boolean):[])},[r,t]);let u=b.useCallback(y=>{if(!t){o?.(y);return}i(v=>{let _=v.includes(y)?v.filter(C=>C!==y):[...v,y];return o?.(_.join(",")),_})},[t,o]),m=a.length>0&&a.every(y=>n.includes(y)),f=b.useCallback(()=>{if(!t)return;let y=m?[]:a;i(y),o?.(y.join(","))},[t,m,a,o]);return{selected:n,allValues:a,toggleValue:u,toggleAll:f,allSelected:m}}function st({checked:e,disabled:t,onClick:r,className:o,...n}){let i=b.useCallback(()=>{r?.()},[r]);return P("button",{className:te("size-large-alt rounded-circle inline-flex items-center justify-center transition-[border-color,box-shadow,background-color] duration-200 outline-none","border-border-layer-2 bg-layer-2-idle cursor-pointer border-2","hover:border-primary-idle focus:border-primary-idle focus:shadow-focus-primary",e?"bg-primary-active border-primary-active":"",t&&"hover:border-border-layer-2 cursor-not-allowed opacity-[38%]",o),disabled:t,type:"button",onClick:i,...n,children:e&&P("div",{className:"relative flex items-center justify-center","data-slot":"radio-group-indicator"})})}function yo({label:e,checked:t,onClick:r}){let o=b.useCallback(()=>{r()},[r]);return oe("div",{className:"gap-small flex items-center",children:[P(st,{checked:t,onClick:o}),P(x,{asChild:!0,className:"text-size-body-sm",weight:"medium",children:P("button",{className:"cursor-pointer border-none bg-transparent p-0 text-left",type:"button",onClick:o,children:e})})]})}function re({className:e,orientation:t="vertical",allowToggle:r=!1,allowSelectAll:o=!1,selectAllLabel:n="Selecionar todos",value:i,onValueChange:a,children:d,...u}){let{selected:m,toggleValue:f,toggleAll:y,allSelected:v}=xo({children:d,allowToggle:r,value:i||void 0,onValueChange:a}),z=t==="horizontal",_=b.useCallback(C=>{a?.(C)},[a]);return r?oe("div",{className:"gap-small flex flex-col",children:[o&&P(yo,{checked:v,label:n,onClick:y}),P("div",{className:te("gap-small flex",z?"flex-row":"flex-col",e),children:b.Children.map(d,C=>{if(b.isValidElement(C)&&typeof C.props=="object"&&C.props!==null&&"value"in C.props){let E=C.props;return b.cloneElement(C,{allowToggle:!0,checked:m.includes(E.value),onToggle:()=>f(E.value)})}return C})})]}):P(I.Root,{className:te("gap-small flex",z?"flex-row":"flex-col",e),"data-slot":"radio-group",value:i,onValueChange:_,...u,children:d})}function ae({className:e,id:t,label:r,disabled:o=!1,allowToggle:n=!1,checked:i=!1,onToggle:a,...d}){let u=b.useCallback(()=>a?.(),[a]);return n?oe("div",{className:"gap-small flex items-center",children:[P(st,{checked:i,disabled:o,onClick:u}),!!r&&P(x,{asChild:!0,className:"text-size-body-sm","data-disabled":o,weight:"medium",children:P("button",{className:"cursor-pointer border-none bg-transparent p-0 text-left",disabled:o,type:"button",onClick:u,children:r})})]}):oe("div",{className:"gap-small flex items-center",children:[P(I.Item,{className:te("size-large-alt rounded-circle inline-flex items-center justify-center transition-[border-color,box-shadow,background-color] duration-200 outline-none","border-border-layer-2 bg-layer-2-idle cursor-pointer border-2","hover:border-primary-idle focus:border-primary-idle focus:shadow-focus-primary","data-[state=checked]:bg-primary-active data-[state=checked]:border-primary-active","data-[state=checked]:hover:border-primary-idle",o&&"hover:border-border-layer-2 cursor-not-allowed opacity-[38%]",e),disabled:o,id:t,...d,children:P(I.Indicator,{className:"relative flex items-center justify-center"})}),!!r&&P(x,{asChild:!0,className:"text-size-body-sm","data-disabled":o,weight:"medium",children:P("label",{htmlFor:t,children:r})})]})}import*as pt from"@radix-ui/react-popover";import{createContext as vo,useContext as Co}from"react";var Re=vo({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function S(){let e=Co(Re);if(!e)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return e}import{tv as Po}from"@xjur-ui/util";var T=Po({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 _e}from"react/jsx-runtime";var{wrapper:So}=T();function B({className:e,state:t="normal",defaultOpen:r,variant:o="normal",modal:n,open:i,onOpenChange:a,...d}){return _e(pt.Root,{defaultOpen:r,modal:n,open:i,onOpenChange:a,children:_e(Re.Provider,{value:{state:t,variant:o},children:_e("div",{className:So({className:e,state:t}),...d})})})}import{tv as wo,twMerge as To}from"@xjur-ui/util";import*as dt from"@radix-ui/react-popover";import{jsx as Ro}from"react/jsx-runtime";var{trigger:ko}=T();function G({className:e,...t}){let{state:r,variant:o}=S(),n=wo({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"]}}}),i=To(ko({state:r,className:e}),o==="filter"&&n({state:r,className:e}));return Ro(dt.Trigger,{className:i,disabled:r==="disabled",...t})}import{jsx as ct}from"react/jsx-runtime";var{icon:_o}=T();function $({className:e,name:t,orientation:r="left",...o}){let{state:n}=S();return ct("div",{className:_o({className:e,state:n}),"data-slot":`control-${r}-slot`,...o,children:ct(g,{name:t})})}import{twJoin as zo}from"@xjur-ui/util";import{useMemo as Vo}from"react";import{tv as No}from"@xjur-ui/util";import{jsx as mt}from"react/jsx-runtime";function Ne({className:e,htmlFor:t,children:r,...o}){let{state:n}=S(),i=No({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 mt("label",{className:i({className:e,state:n}),htmlFor:t,...o,children:mt("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:r})})}import{jsx as ie,jsxs as Eo}from"react/jsx-runtime";function q({className:e,value:t,placeholder:r,renderValue:o,...n}){let{variant:i}=S(),a=Vo(()=>{let d=o?o(t??""):typeof t=="object"?t?.label:t;return i==="filter"?d:d||r},[t,r,i,o]);return Eo("div",{className:"grid w-full items-center",children:[r&&i==="filter"&&ie(Ne,{children:r}),r&&i==="filter"&&ie(x,{className:"invisible col-start-1 row-start-1 self-center",children:r}),ie(x,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:a}),ie("input",{...n,"aria-readonly":!0,className:zo("pointer-events-none",e),hidden:!0,placeholder:" ",readOnly:!0,value:typeof t=="object"?t?.value??"":t??""})]})}import{twMerge as gn}from"@xjur-ui/util";import{Fragment as xn,useMemo as yn}from"react";import{jsx as wn,jsxs as Tn}from"react/jsx-runtime";import*as ne from"@radix-ui/react-popover";import{Slot as Io}from"@radix-ui/react-slot";import{cx as Fo}from"@xjur-ui/util";import{useVirtualizer as Ho}from"@tanstack/react-virtual";import{useRef as Lo}from"react";import{createContext as Oo}from"react";var W=Oo({virtualizer:null,enabled:!1});import{jsx as ut}from"react/jsx-runtime";function ze({className:e,asChild:t,children:r,virtualized:o=!1,itemCount:n=0,estimateSize:i=()=>48,overscan:a=5,...d}){let u=t?Io:"div",m=Lo(null),f=Ho({count:n,getScrollElement:()=>m.current,estimateSize:i,overscan:a,enabled:o});return ut(W.Provider,{value:{virtualizer:f,enabled:o},children:ut(u,{...d,className:Fo(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:m,children:r})})}import{Slot as Ln}from"@radix-ui/react-slot";import{cx as Mn}from"@xjur-ui/util";import{jsx as Gn}from"react/jsx-runtime";import{cx as Wn}from"@xjur-ui/util";import{jsx as Kn}from"react/jsx-runtime";import{Slot as Ao}from"@radix-ui/react-slot";import{cx as ft}from"@xjur-ui/util";import{useContext as Mo}from"react";import{jsx as Ve}from"react/jsx-runtime";function Ee({className:e,asChild:t,children:r,renderItem:o,...n}){let i=t?Ao:"ul",{virtualizer:a,enabled:d}=Mo(W);if(d&&a&&o){let u=a.getVirtualItems();return Ve(i,{...n,className:ft("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:u.map(m=>Ve("div",{className:"absolute top-0 left-0 w-full","data-index":m.index,ref:a.measureElement,style:{transform:`translateY(${m.start}px)`},children:o(m.index)},m.key))})}return Ve(i,{...n,className:ft("gap-small-1x p-small flex flex-col",e),children:r})}import{Slot as Bo}from"@radix-ui/react-slot";import{cx as Go,cva as $o}from"@xjur-ui/util";import{jsx as Wo}from"react/jsx-runtime";var qo=$o(["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 Oe({className:e,size:t,isActive:r,asChild:o,...n}){return Wo(o?Bo:"li",{...n,className:Go(qo({size:t,isActive:r}),e)})}import{jsx as Ie}from"react/jsx-runtime";var{content:Ko}=T();function J({className:e,sideOffset:t=5,side:r="bottom",align:o="start",children:n,virtualized:i=!1,overscan:a=5,estimateSize:d=()=>32,...u}){let{state:m}=S();return Ie(ne.Portal,{children:Ie(ne.Content,{align:o,className:Ko({className:e,state:m}),side:r,sideOffset:t,...u,children:Ie(ze,{estimateSize:d,overscan:a,virtualized:i,children:n})})})}import{jsx as Cl}from"react/jsx-runtime";var{caption:yl}=T();import{jsx as Rl}from"react/jsx-runtime";var{slotText:Tl}=T();import{jsx as Qo}from"react/jsx-runtime";function Y(e){return Qo(Ee,{...e})}import{twMerge as Uo}from"@xjur-ui/util";import{jsx as Xo}from"react/jsx-runtime";function K({className:e,value:t,...r}){return Xo(Oe,{className:Uo(e,"cursor-pointer"),value:typeof t=="object"?t?.value:t,...r})}import{twMerge as Zo}from"@xjur-ui/util";import{jsx as Do}from"react/jsx-runtime";function Q({className:e,...t}){return Do(ke,{className:Zo(e,"truncate"),...t})}import{jsx as $l}from"react/jsx-runtime";import{jsx as Yl}from"react/jsx-runtime";import{Fragment as jo,jsx as h,jsxs as V}from"react/jsx-runtime";function He({className:e,isSelected:t=!1,variant:r="default",accordionContent:o,isAccordionOpen:n=!1,onAccordionToggle:i,accordionData:a,...d}){let[u,m]=ht(n),[f,y]=ht("");Fe.useEffect(()=>{m(n)},[n]);let v=()=>{if(!o)return;m(!u),i?.()},z=c=>{a?.checkbox?.onCheckedChange(c)},_=Fe.useCallback(c=>{a?.radio&&a.radio.onCheckedChange(a.radio.value,c)},[a?.radio]),C=Fe.useMemo(()=>!a?.searchSelect?.options||!f?a?.searchSelect?.options||[]:a.searchSelect.options.filter(c=>c.label.toLowerCase().includes(f.toLowerCase())),[a?.searchSelect?.options,f]),E=c=>{y(c.target.value)},se=c=>{a?.searchSelect?.onChangeSearchOption(c),y("")};return r==="accordion"?V(jo,{children:[V("tr",{"aria-expanded":o?u:void 0,className:le("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",o&&"cursor-pointer",e),"data-selected":t,"data-slot":"table-row-accordion",role:o?"button":void 0,tabIndex:o?0:void 0,onClick:v,...d,children:[h("td",{className:"w-6 px-2 py-3",children:a?.checkbox&&h(M,{checked:a.checkbox.checked,onCheckedChange:z,onClick:c=>c.stopPropagation()})}),h("td",{className:"px-2 py-3",children:V("div",{className:"flex items-center gap-2",children:[o&&h(g,{className:le("text-neutral-medium transition-transform duration-200",u&&"rotate-90"),name:"keyboard_arrow_up"}),h(x,{children:a?.text1})]})}),h("td",{className:"px-2 py-3",children:h(x,{children:a?.text2})}),h("td",{className:"px-2 py-3",onClick:c=>c.stopPropagation(),children:a?.searchSelect&&V(B,{children:[V(G,{children:[h(q,{placeholder:"Selecione",value:{value:a.searchSelect?.selectedSearchOption||"",label:a.searchSelect?.options.find(c=>c.value===a.searchSelect?.selectedSearchOption)?.label||""}}),h($,{className:"text-layer-1-active",name:"keyboard_arrow_down"})]}),h(J,{children:V(Y,{className:"p-0",children:[h("div",{className:"py-small border-border-layer-2 border-b",children:V("div",{className:"gap-small py-small_1x-alt bg-layer-2-idle rounded-small flex items-center",children:[h(g,{className:"text-layer-1-active",name:"search"}),h("input",{className:"text-size-body-md text-neutral-dark placeholder:text-neutral-placeholder flex-1 bg-transparent outline-none",placeholder:"Pesquisar",value:f,onChange:E})]})}),C.map(c=>h(K,{className:"p-0",isActive:a.searchSelect?.selectedSearchOption===c.value,value:c,onClick:()=>se(c.value),children:h(Q,{children:c.label})},c.value))]})})]})}),h("td",{className:"px-2 py-3",onClick:c=>c.stopPropagation(),children:a?.radio&&h(re,{allowToggle:!0,className:"",value:a.radio.checked?a.radio.value:"",onValueChange:c=>{a?.radio&&_(c!=="")},children:h(ae,{className:"",id:`principal-${a.radio.value}`,label:"",value:a.radio.value})})})]}),u&&o&&h("tr",{className:le("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",e),children:h("td",{colSpan:5,children:o})})]}):h("tr",{className:le("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",e),"data-selected":t,"data-slot":"table-row",...d})}import{jsx as p,jsxs as w}from"react/jsx-runtime";var Ae=[{value:"autor",label:"Autor"},{value:"coautor",label:"Coautor"},{value:"colaborador",label:"Colaborador"}];function Is({empresas:e,selectedEmpresas:t,selectedRadios:r,selectedSearchOptions:o,selectedAccordionContent:n,onEmpresaSelect:i,onRadioChange:a,onSearchOptionChange:d,onAccordionContentChange:u,onSort:m,sortConfig:f}){let[y,v]=Le([]),[z,_]=Le([]),[C,E]=Le({}),se=l=>{v(s=>s.includes(l)?s.filter(k=>k!==l):[...s,l])},c=(l,s)=>{_(s?k=>[...k,l]:k=>k.filter(gt=>gt!==l))},Me=(l,s)=>{E(k=>({...k,[l]:s}))};return w(et,{children:[p(tt,{children:w(He,{children:[p(O,{children:p(M,{checked:t.length===e.length&&e.length>0,onCheckedChange:l=>{l?(e.forEach(s=>{t.includes(s.id)||i(s.id,!0)}),e.forEach(s=>{s.detalhes&&u(s.id,!0)})):(e.forEach(s=>{t.includes(s.id)&&i(s.id,!1)}),e.forEach(s=>{s.detalhes&&u(s.id,!1)}))}})}),p(O,{children:w(H,{children:["Nome fantasia",p(L,{sortedDirection:f?.key==="nomeFantasia"?f.direction:void 0,onClick:()=>m("nomeFantasia")})]})}),p(O,{children:w(H,{children:["Documento",p(L,{sortedDirection:f?.key==="documento"?f.direction:void 0,onClick:()=>m("documento")})]})}),p(O,{children:w(H,{children:["Forma de participa\xE7\xE3o",p(L,{sortedDirection:f?.key==="formaParticipacao"?f.direction:void 0,onClick:()=>m("formaParticipacao")})]})}),p(O,{children:w(H,{children:["Principal",p(L,{sortedDirection:f?.key==="principal"?f.direction:void 0,onClick:()=>m("principal")})]})})]})}),p(ot,{children:e.map(l=>p(He,{accordionContent:l.detalhes?w("tr",{className:"flex w-full",children:[p("td",{className:"mr-14 px-2 py-3",children:p(M,{checked:n.includes(l.id),onCheckedChange:s=>u(l.id,s)})}),w("div",{className:"flex w-full justify-between",children:[p("td",{className:"mr-18 px-2 py-3",children:w("div",{className:"flex items-center gap-2",children:[p(g,{className:"text-neutral-medium",name:"keyboard_arrow_up"}),p(x,{className:"truncate text-sm sm:text-base",children:l.nomeFantasia})]})}),p("td",{className:"w-full px-2 py-3",children:p(x,{className:"truncate text-sm sm:text-base",children:l.documento})}),p("td",{className:"w-full px-2 py-3",children:w(B,{children:[w(G,{children:[p(q,{placeholder:"Selecione",value:{value:C[l.id]||"",label:Ae.find(s=>s.value===C[l.id])?.label||""}}),p($,{className:"text-layer-1-active",name:"keyboard_arrow_down"})]}),p(J,{children:w(Y,{className:"p-0",children:[p("div",{className:"py-small border-border-layer-2 border-b",children:w("div",{className:"gap-small py-small_1x-alt bg-layer-2-idle rounded-small flex items-center",children:[p(g,{className:"text-layer-1-active",name:"search"}),p("input",{className:"text-size-body-md text-neutral-dark placeholder:text-neutral-placeholder flex-1 bg-transparent outline-none",placeholder:"Pesquisar",value:"",onChange:()=>{}})]})}),Ae.map(s=>p(K,{className:"p-0",isActive:C[l.id]===s.value,value:s,onClick:()=>Me(l.id,s.value),children:p(Q,{children:s.label})},s.value))]})})]})}),p("td",{className:"w-full px-2 py-3",children:p(re,{allowToggle:!0,className:"",value:z.includes(l.id)?l.id:"",onValueChange:s=>{let k=s!=="";c(l.id,k)},children:p(ae,{className:"",id:`accordion-principal-${l.id}`,label:"",value:l.id})})})]})]}):void 0,accordionData:{checkbox:{checked:t.includes(l.id),onCheckedChange:s=>i(l.id,s)},radio:{checked:r.includes(l.id),onCheckedChange:(s,k)=>a(l.id,k),value:l.id},searchSelect:{options:Ae,selectedSearchOption:o[l.id]||l.formaParticipacao.toLowerCase(),onChangeSearchOption:s=>d(l.id,s),placeholder:"Selecione"},text1:l.nomeFantasia,text2:l.documento},isAccordionOpen:y.includes(l.id),variant:"accordion",onAccordionToggle:()=>se(l.id)},l.id))})]})}export{ma as EmpresaAddButton,xa as EmpresaBody,Qa as EmpresaCloseButton,wa as EmpresaContent,U as EmpresaContext,Na as EmpresaFooter,La as EmpresaHeader,Ue as EmpresaProvider,aa as EmpresaRoot,Is as EmpresaTable,qa as EmpresaTrigger,N as useEmpresaContext};
|
|
1
|
+
import"react";import"react";import*as ct from"@radix-ui/react-dialog";import{jsx as eo}from"react/jsx-runtime";function ke({...e}){return eo(ct.Root,{"data-slot":"sheet",...e})}import*as ht from"@radix-ui/react-dialog";import{tv as ao}from"@xjur-ui/util";import*as mt from"@radix-ui/react-dialog";import{jsx as to}from"react/jsx-runtime";function we({...e}){return to(mt.Portal,{"data-slot":"sheet-portal",...e})}import*as ut from"@radix-ui/react-dialog";import{cx as oo}from"@xjur-ui/util";import{jsx as ro}from"react/jsx-runtime";function Pe({className:e,...t}){return ro(ut.Overlay,{className:oo("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",e),"data-slot":"sheet-overlay",...t})}import{jsx as ft,jsxs as io}from"react/jsx-runtime";function Se({className:e,children:t,side:r="right",overlay:o=!1,...i}){let n=ao({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return io(we,{children:[o&&ft(Pe,{}),ft(ht.Content,{className:n({side:r,className:e}),"data-slot":"sheet-content",...i,children:t})]})}import*as gt from"@radix-ui/react-dialog";import{jsx as no}from"react/jsx-runtime";function Le({...e}){return no(gt.Trigger,{"data-slot":"sheet-trigger",...e})}import{cx as lo}from"@xjur-ui/util";import*as Ct from"@radix-ui/react-dialog";import{jsx as so}from"react/jsx-runtime";function Te({className:e,...t}){return so(Ct.Title,{className:lo("text-size-title-lg font-normal",e),"data-slot":"sheet-title",...t})}import{cx as po}from"@xjur-ui/util";import{jsx as co}from"react/jsx-runtime";function Me({className:e,...t}){return co("div",{className:po("py-large px-large-2x border-b-border-layer-2 border-b",e),"data-slot":"sheet-header",...t})}import*as Mt from"@radix-ui/react-dialog";import{Slot as mo}from"@radix-ui/react-slot";import{cva as uo,cx as fo}from"@xjur-ui/util";import{jsx as go}from"react/jsx-runtime";var ho=uo(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function V({asChild:e,className:t,variant:r="primary",size:o="md",appearance:i="solid",...n}){return go(e?mo:"button",{className:fo(ho({variant:r,appearance:i,size:o}),t),...n})}import{cx as ko}from"@xjur-ui/util";var bt=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as L,jsxs as Co}from"react/jsx-runtime";function _e(){return Co("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[L("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),L("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),L("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),L("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),L("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),L("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),L("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),L("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),L("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),L("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),L("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),L("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as R,jsxs as vt}from"react/jsx-runtime";function Re(){return vt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[vt("g",{clipPath:"url(#clip0_19548_42822)",children:[R("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),R("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),R("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"}),R("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"}),R("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"}),R("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"}),R("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"}),R("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"})]}),R("defs",{children:R("clipPath",{id:"clip0_19548_42822",children:R("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as ne,jsxs as bo}from"react/jsx-runtime";function Ve(){return bo("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ne("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),ne("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"}),ne("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),ne("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 w,jsxs as xt}from"react/jsx-runtime";function Ne(){return xt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[xt("g",{clipPath:"url(#clip0_19548_42667)",children:[w("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"}),w("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"}),w("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"}),w("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"}),w("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"}),w("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),w("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"}),w("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),w("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),w("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),w("defs",{children:w("clipPath",{id:"clip0_19548_42667",children:w("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as E,jsxs as vo}from"react/jsx-runtime";function ze(){return vo("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[E("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"}),E("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"}),E("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"}),E("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"}),E("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),E("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),E("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as A,jsxs as yt}from"react/jsx-runtime";function He(){return yt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[yt("g",{clipPath:"url(#clip0_19548_42803)",children:[A("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"}),A("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"}),A("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),A("defs",{children:A("clipPath",{id:"clip0_19548_42803",children:A("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as O,jsxs as kt}from"react/jsx-runtime";function De(){return kt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[kt("g",{clipPath:"url(#clip0_19548_42782)",children:[O("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("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"}),O("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"})]}),O("defs",{children:O("clipPath",{id:"clip0_19548_42782",children:O("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as le,jsxs as xo}from"react/jsx-runtime";function Ie(){return xo("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[le("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),le("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),le("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"}),le("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as H,jsxs as wt}from"react/jsx-runtime";function Ee(){return wt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[wt("g",{clipPath:"url(#clip0_19548_42757)",children:[H("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),H("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),H("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),H("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),H("defs",{children:H("clipPath",{id:"clip0_19548_42757",children:H("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as Z,jsxs as Pt}from"react/jsx-runtime";function Oe(){return Pt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Pt("g",{clipPath:"url(#clip0_19548_42810)",children:[Z("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"}),Z("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"}),Z("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"})]}),Z("defs",{children:Z("clipPath",{id:"clip0_19548_42810",children:Z("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as N,jsxs as St}from"react/jsx-runtime";function Be(){return St("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[St("g",{clipPath:"url(#clip0_21377_57335)",children:[N("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"}),N("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"}),N("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"}),N("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"}),N("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"}),N("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),N("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),N("defs",{children:N("clipPath",{id:"clip0_21377_57335",children:N("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as j,jsxs as yo}from"react/jsx-runtime";function Fe(){return yo("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[j("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"}),j("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),j("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),j("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),j("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as T}from"react/jsx-runtime";function Lt({name:e}){switch(e){case"agenda":return T(_e,{});case"contencioso":return T(Ne,{});case"contrato":return T(ze,{});case"consultivo":return T(Ve,{});case"xsigner":return T(Fe,{});case"procuracao":return T(Ee,{});case"xpay":return T(Be,{});case"imobiliario":return T(De,{});case"marcasepatentes":return T(Ie,{});case"ged":return T(He,{});case"regulatorio":return T(Oe,{});case"compliance":return T(Re,{});default:return null}}import{jsx as Tt}from"react/jsx-runtime";function g({className:e,filled:t=!1,name:r,...o}){return bt.includes(r)?Tt(Lt,{name:r}):Tt("span",{...o,className:ko("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{jsx as Ae}from"react/jsx-runtime";function $({children:e=Ae(V,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:Ae(g,{className:"text-icon-neutral-3",name:"close"})}),...t}){return Ae(Mt.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as wo}from"@xjur-ui/util";import{jsx as Po}from"react/jsx-runtime";function Ze({className:e,...t}){return Po("div",{className:wo("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",e),"data-slot":"sheet-footer",...t})}import{cx as So}from"@xjur-ui/util";import{jsx as Lo}from"react/jsx-runtime";function Ge({className:e,...t}){return Lo("div",{className:So("px-large-2x h-full",e),...t})}import{createContext as To,useCallback as _t,useContext as Mo,useState as We,useMemo as _o}from"react";import{jsx as Ro}from"react/jsx-runtime";var se=To({});function Rt({children:e}){let[t,r]=We("list"),[o,i]=We(!1),[n,a]=We([]),d=_t(f=>{r(f)},[]),u=_t(()=>{i(f=>!f)},[]),m=_o(()=>({currentView:t,changeCurrentView:d,isFullscreen:o,changeIsFullscreen:u,empresas:n,setEmpresas:a}),[t,d,o,u,n,a]);return Ro(se.Provider,{value:m,children:e})}function D(){let e=Mo(se);if(!e)throw new Error("useEmpresaContext must be used within an EmpresaProvider");return{...e,empresas:e.empresas,setEmpresas:e.setEmpresas}}import{jsx as je}from"react/jsx-runtime";function Ri({onOpenChange:e,children:t,...r}){return je(Rt,{children:je(se.Consumer,{children:o=>je(ke,{onOpenChange:i=>{o.changeCurrentView("list"),e?.(i)},...r,children:typeof t=="function"?t(o):t})})})}import{twMerge as Vo}from"@xjur-ui/util";import{useCallback as No}from"react";import{jsx as zo,jsxs as Ho}from"react/jsx-runtime";function Oi({appearance:e="ghost",onClick:t,className:r,children:o="Adicionar",...i}){let{changeCurrentView:n}=D(),a=No(d=>{n("form"),t?.(d)},[n,t]);return Ho(V,{appearance:e,className:Vo("w-fit",r),onClick:a,...i,children:[o,zo(g,{name:"add"})]})}import{twMerge as Do}from"@xjur-ui/util";import{jsx as Io}from"react/jsx-runtime";function Wi({className:e,...t}){let{currentView:r}=D();return Io(Ge,{className:Do("gap-large-2x data-[view=form]:!px-none flex flex-col",e),"data-view":r,...t})}import{twMerge as Eo}from"@xjur-ui/util";import{jsx as Oo}from"react/jsx-runtime";function Yi({className:e,side:t="right",...r}){let{currentView:o,isFullscreen:i}=D();return Oo(Se,{className:Eo("w-[900px] max-w-[1200px] min-w-[900px] data-[fullscreen=true]:w-full data-[fullscreen=true]:max-w-full data-[fullscreen=true]:min-w-full",e),"data-fullscreen":i,"data-view":o,side:t,...r})}import{twMerge as Bo}from"@xjur-ui/util";import{jsx as Fo}from"react/jsx-runtime";function tn({className:e,...t}){return Fo(Ze,{className:Bo("flex items-center justify-between",e),...t})}import{twMerge as Ao}from"@xjur-ui/util";import{jsx as pe,jsxs as Vt}from"react/jsx-runtime";function dn({title:e,className:t,showCloseButton:r=!0,...o}){let{changeIsFullscreen:i}=D();return Vt(Me,{className:Ao("flex items-center justify-between",t),...o,children:[pe(Te,{children:e}),Vt("div",{className:"gap-small flex items-center",children:[pe(V,{appearance:"ghost",size:"icon_md",variant:"tertiary",onClick:()=>i(),children:pe(g,{className:"text-icon-neutral-3",name:"expand_content"})}),r&&pe($,{})]})]})}import{jsx as Nt,jsxs as Zo}from"react/jsx-runtime";function gn({children:e=Zo(V,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[Nt(g,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:t=!0,...r}){return Nt(Le,{asChild:t,...r,children:e})}import{jsx as zt}from"react/jsx-runtime";function yn({...e}){return zt($,{...e,asChild:!0,children:zt(V,{appearance:"ghost",children:"Cancelar"})})}import{useState as st}from"react";import{cx as Go}from"@xjur-ui/util";import{jsx as Ht}from"react/jsx-runtime";function Dt({className:e,...t}){return Ht("div",{className:"text-size-body-md scrollbar-thin relative w-full overflow-hidden transition-all hover:overflow-x-auto","data-slot":"table-container",children:Ht("table",{className:Go("w-full caption-bottom",e),"data-slot":"table",...t})})}import{cx as Wo}from"@xjur-ui/util";import{jsx as jo}from"react/jsx-runtime";function It({className:e,...t}){return jo("thead",{className:Wo("group/table-header [&_tr]:border-border-layer-2 hover:bg-layer-2-hover [&_tr]:border-b",e),"data-slot":"table-header",...t})}import{cx as $o}from"@xjur-ui/util";import{jsx as qo}from"react/jsx-runtime";function Et({className:e,...t}){return qo("tbody",{className:$o("[&_tr]:border-border-layer-2 [&_tr]:border-b [&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}import{cx as Ot}from"@xjur-ui/util";import{jsx as Bt}from"react/jsx-runtime";function G({className:e,...t}){return Bt("th",{className:Ot("group/th text-neutral-placeholder text-size-label-sm h-large-4x py-small-1x px-small text-left align-middle font-medium whitespace-nowrap","relative","animate-in fade-in duration-200 ease-in",e),"data-slot":"table-head",...t})}function q({className:e,...t}){return Bt("div",{className:Ot("gap-small pr-large-3x relative flex w-fit items-center",e),...t})}import{cx as Xo}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function X({className:e,sortedDirection:t,...r}){return $e("button",{className:Xo("size-large-1x rounded-small-1x","flex cursor-pointer items-center justify-center","hidden group-hover/th:flex","data-[sorted=true]:flex","transition-all duration-200 ease-out","data-[sorted=true]:bg-primary-alt-active data-[sorted=true]:text-primary-label-active","absolute top-1/2 right-0 -translate-y-1/2",e),"data-sorted":t!==void 0,type:"button",...r,children:t!==void 0?$e(g,{name:t==="asc"?"arrow_downward":"arrow_upward"}):$e(g,{name:"swap_vert"})})}import nt,{useState as Qt}from"react";import{cx as xe}from"@xjur-ui/util";import*as ue from"@radix-ui/react-checkbox";import{cx as rr}from"@xjur-ui/util";import{Slot as Qo}from"@radix-ui/react-slot";import{cva as Uo}from"@xjur-ui/util";import{memo as Zt,useState as er}from"react";import*as de from"@radix-ui/react-tooltip";import{jsx as qe}from"react/jsx-runtime";function Jo({delayDuration:e=0,...t}){return qe(de.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Xe({...e}){return qe(Jo,{children:qe(de.Root,{"data-slot":"tooltip",...e})})}import*as Ft from"@radix-ui/react-tooltip";import{jsx as Yo}from"react/jsx-runtime";function Je({...e}){return Yo(Ft.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as ce from"@radix-ui/react-tooltip";import{cx as Ko}from"@xjur-ui/util";import{jsx as At}from"react/jsx-runtime";function Ye({className:e,sideOffset:t=1,variant:r="simple",children:o,...i}){return At(ce.Portal,{children:At(ce.Content,{className:Ko("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,...i,children:o})})}import{jsx as me,jsxs as or}from"react/jsx-runtime";var tr=Uo("",{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"}}),b=Zt(({variant:e,size:t,weight:r,asChild:o,className:i,children:n,...a})=>me(o?Qo:"span",{className:tr({variant:e,size:t,weight:r,className:i}),...a,children:n}));b.displayName="Typography";var Ke=Zt(({children:e,...t})=>{let[r,o]=er(!1);return or(Xe,{children:[me(Je,{asChild:!0,children:me(b,{onMouseEnter:({currentTarget:n})=>{let a=n.scrollWidth>n.clientWidth;o(a),a?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),r&&me(Ye,{children:e})]})});Ke.displayName="TruncatedTypography";import{jsx as J,jsxs as ar}from"react/jsx-runtime";function Y({label:e,name:t,className:r,disabled:o=!1,...i}){let n=`field-checkbox-${t}`;return ar("div",{className:"group gap-small flex items-center",children:[J(ue.Root,{disabled:o,...i,className:rr("size-large-alt rounded-small-1x inline-flex items-center justify-center transition-[border-color,box-shadow,background-color] duration-200 outline-none","border-border-layer-2 bg-layer-2-idle cursor-pointer border-2","hover:border-primary-idle focus:border-primary-idle focus:shadow-focus-primary","data-[state=checked]:bg-primary-active data-[state=checked]:border-primary-active","data-[state=checked]:hover:border-primary-idle","disabled:hover:border-border-layer-2 disabled:cursor-not-allowed disabled:opacity-[38%]",r),id:n,name:t,children:J(ue.Indicator,{className:"flex items-center justify-center",children:J(g,{className:"text-neutral-label",name:"check"})})}),!!e&&J(b,{asChild:!0,className:"text-size-body-sm data-[disabled=true]:opacity-38","data-disabled":o,weight:"medium",children:J("label",{htmlFor:n,children:e})})]})}import*as C from"react";import*as W from"@radix-ui/react-radio-group";import{cx as fe}from"@xjur-ui/util";import{jsx as k,jsxs as he}from"react/jsx-runtime";function ir({children:e,allowToggle:t,value:r,onValueChange:o}){let[i,n]=C.useState([]),[a,d]=C.useState([]);C.useEffect(()=>{let v=C.Children.toArray(e).filter(x=>C.isValidElement(x)&&typeof x.props=="object"&&x.props!==null&&"value"in x.props&&typeof x.props.value=="string").map(x=>x.props.value);d(v)},[e]),C.useEffect(()=>{t&&n(r?r.split(",").filter(Boolean):[])},[r,t]);let u=C.useCallback(v=>{if(!t){o?.(v);return}n(x=>{let z=x.includes(v)?x.filter(y=>y!==v):[...x,v];return o?.(z.join(",")),z})},[t,o]),m=a.length>0&&a.every(v=>i.includes(v)),f=C.useCallback(()=>{if(!t)return;let v=m?[]:a;n(v),o?.(v.join(","))},[t,m,a,o]);return{selected:i,allValues:a,toggleValue:u,toggleAll:f,allSelected:m}}function Gt({checked:e,disabled:t,onClick:r,className:o,...i}){let n=C.useCallback(()=>{r?.()},[r]);return k("button",{className:fe("size-large-alt rounded-circle inline-flex items-center justify-center transition-[border-color,box-shadow,background-color] duration-200 outline-none","border-border-layer-2 bg-layer-2-idle cursor-pointer border-2","hover:border-primary-idle focus:border-primary-idle focus:shadow-focus-primary",e?"bg-primary-active border-primary-active":"",t&&"hover:border-border-layer-2 cursor-not-allowed opacity-[38%]",o),disabled:t,type:"button",onClick:n,...i,children:e&&k("div",{className:"relative flex items-center justify-center","data-slot":"radio-group-indicator"})})}function nr({label:e,checked:t,onClick:r}){let o=C.useCallback(()=>{r()},[r]);return he("div",{className:"gap-small flex items-center",children:[k(Gt,{checked:t,onClick:o}),k(b,{asChild:!0,className:"text-size-body-sm",weight:"medium",children:k("button",{className:"cursor-pointer border-none bg-transparent p-0 text-left",type:"button",onClick:o,children:e})})]})}function ge({className:e,orientation:t="vertical",allowToggle:r=!1,allowSelectAll:o=!1,selectAllLabel:i="Selecionar todos",value:n,onValueChange:a,children:d,...u}){let{selected:m,toggleValue:f,toggleAll:v,allSelected:x}=ir({children:d,allowToggle:r,value:n||void 0,onValueChange:a}),I=t==="horizontal",z=C.useCallback(y=>{a?.(y)},[a]);return r?he("div",{className:"gap-small flex flex-col",children:[o&&k(nr,{checked:x,label:i,onClick:v}),k("div",{className:fe("gap-small flex",I?"flex-row":"flex-col",e),children:C.Children.map(d,y=>{if(C.isValidElement(y)&&typeof y.props=="object"&&y.props!==null&&"value"in y.props){let F=y.props;return C.cloneElement(y,{allowToggle:!0,checked:m.includes(F.value),onToggle:()=>f(F.value)})}return y})})]}):k(W.Root,{className:fe("gap-small flex",I?"flex-row":"flex-col",e),"data-slot":"radio-group",value:n,onValueChange:z,...u,children:d})}function Ce({className:e,id:t,label:r,disabled:o=!1,allowToggle:i=!1,checked:n=!1,onToggle:a,...d}){let u=C.useCallback(()=>a?.(),[a]);return i?he("div",{className:"gap-small flex items-center",children:[k(Gt,{checked:n,disabled:o,onClick:u}),!!r&&k(b,{asChild:!0,className:"text-size-body-sm","data-disabled":o,weight:"medium",children:k("button",{className:"cursor-pointer border-none bg-transparent p-0 text-left",disabled:o,type:"button",onClick:u,children:r})})]}):he("div",{className:"gap-small flex items-center",children:[k(W.Item,{className:fe("size-large-alt rounded-circle inline-flex items-center justify-center transition-[border-color,box-shadow,background-color] duration-200 outline-none","border-border-layer-2 bg-layer-2-idle cursor-pointer border-2","hover:border-primary-idle focus:border-primary-idle focus:shadow-focus-primary","data-[state=checked]:bg-primary-active data-[state=checked]:border-primary-active","data-[state=checked]:hover:border-primary-idle",o&&"hover:border-border-layer-2 cursor-not-allowed opacity-[38%]",e),disabled:o,id:t,...d,children:k(W.Indicator,{className:"relative flex items-center justify-center"})}),!!r&&k(b,{asChild:!0,className:"text-size-body-sm","data-disabled":o,weight:"medium",children:k("label",{htmlFor:t,children:r})})]})}import*as Wt from"@radix-ui/react-popover";import{createContext as lr,useContext as sr}from"react";var Qe=lr({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function P(){let e=sr(Qe);if(!e)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return e}import{tv as pr}from"@xjur-ui/util";var M=pr({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 Ue}from"react/jsx-runtime";var{wrapper:dr}=M();function K({className:e,state:t="normal",defaultOpen:r,variant:o="normal",modal:i,open:n,onOpenChange:a,...d}){return Ue(Wt.Root,{defaultOpen:r,modal:i,open:n,onOpenChange:a,children:Ue(Qe.Provider,{value:{state:t,variant:o},children:Ue("div",{className:dr({className:e,state:t}),...d})})})}import{tv as cr,twMerge as mr}from"@xjur-ui/util";import*as jt from"@radix-ui/react-popover";import{jsx as fr}from"react/jsx-runtime";var{trigger:ur}=M();function Q({className:e,...t}){let{state:r,variant:o}=P(),i=cr({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=mr(ur({state:r,className:e}),o==="filter"&&i({state:r,className:e}));return fr(jt.Trigger,{className:n,disabled:r==="disabled",...t})}import{jsx as $t}from"react/jsx-runtime";var{icon:hr}=M();function U({className:e,name:t,orientation:r="left",...o}){let{state:i}=P();return $t("div",{className:hr({className:e,state:i}),"data-slot":`control-${r}-slot`,...o,children:$t(g,{name:t})})}import{twJoin as Cr}from"@xjur-ui/util";import{useMemo as br}from"react";import{tv as gr}from"@xjur-ui/util";import{jsx as qt}from"react/jsx-runtime";function et({className:e,htmlFor:t,children:r,...o}){let{state:i}=P(),n=gr({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 qt("label",{className:n({className:e,state:i}),htmlFor:t,...o,children:qt("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:r})})}import{jsx as be,jsxs as vr}from"react/jsx-runtime";function ee({className:e,value:t,placeholder:r,renderValue:o,...i}){let{variant:n}=P(),a=br(()=>{let d=o?o(t??""):typeof t=="object"?t?.label:t;return n==="filter"?d:d||r},[t,r,n,o]);return vr("div",{className:"grid w-full items-center",children:[r&&n==="filter"&&be(et,{children:r}),r&&n==="filter"&&be(b,{className:"invisible col-start-1 row-start-1 self-center",children:r}),be(b,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:a}),be("input",{...i,"aria-readonly":!0,className:Cr("pointer-events-none",e),hidden:!0,placeholder:" ",readOnly:!0,value:typeof t=="object"?t?.value??"":t??""})]})}import{twMerge as Zl}from"@xjur-ui/util";import{Fragment as Wl,useMemo as jl}from"react";import{jsx as Yl,jsxs as Kl}from"react/jsx-runtime";import*as ve from"@radix-ui/react-popover";import{Slot as yr}from"@radix-ui/react-slot";import{cx as kr}from"@xjur-ui/util";import{useVirtualizer as wr}from"@tanstack/react-virtual";import{useRef as Pr}from"react";import{createContext as xr}from"react";var te=xr({virtualizer:null,enabled:!1});import{jsx as Xt}from"react/jsx-runtime";function tt({className:e,asChild:t,children:r,virtualized:o=!1,itemCount:i=0,estimateSize:n=()=>48,overscan:a=5,...d}){let u=t?yr:"div",m=Pr(null),f=wr({count:i,getScrollElement:()=>m.current,estimateSize:n,overscan:a,enabled:o});return Xt(te.Provider,{value:{virtualizer:f,enabled:o},children:Xt(u,{...d,className:kr(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:m,children:r})})}import{Slot as ps}from"@radix-ui/react-slot";import{cx as cs}from"@xjur-ui/util";import{jsx as us}from"react/jsx-runtime";import{cx as gs}from"@xjur-ui/util";import{jsx as vs}from"react/jsx-runtime";import{Slot as Sr}from"@radix-ui/react-slot";import{cx as Jt}from"@xjur-ui/util";import{useContext as Lr}from"react";import{jsx as ot}from"react/jsx-runtime";function rt({className:e,asChild:t,children:r,renderItem:o,...i}){let n=t?Sr:"ul",{virtualizer:a,enabled:d}=Lr(te);if(d&&a&&o){let u=a.getVirtualItems();return ot(n,{...i,className:Jt("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:u.map(m=>ot("div",{className:"absolute top-0 left-0 w-full","data-index":m.index,ref:a.measureElement,style:{transform:`translateY(${m.start}px)`},children:o(m.index)},m.key))})}return ot(n,{...i,className:Jt("gap-small-1x p-small flex flex-col",e),children:r})}import{Slot as Tr}from"@radix-ui/react-slot";import{cx as Mr,cva as _r}from"@xjur-ui/util";import{jsx as Vr}from"react/jsx-runtime";var Rr=_r(["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 at({className:e,size:t,isActive:r,asChild:o,...i}){return Vr(o?Tr:"li",{...i,className:Mr(Rr({size:t,isActive:r}),e)})}import{jsx as it}from"react/jsx-runtime";var{content:Hr}=M();function oe({className:e,sideOffset:t=5,side:r="bottom",align:o="start",children:i,virtualized:n=!1,overscan:a=5,estimateSize:d=()=>32,...u}){let{state:m}=P();return it(ve.Portal,{children:it(ve.Content,{align:o,className:Hr({className:e,state:m}),side:r,sideOffset:t,...u,children:it(tt,{estimateSize:d,overscan:a,virtualized:n,children:i})})})}import{jsx as qs}from"react/jsx-runtime";var{caption:js}=M();import{jsx as Us}from"react/jsx-runtime";var{slotText:Ks}=M();import{jsx as Dr}from"react/jsx-runtime";function re(e){return Dr(rt,{...e})}import{twMerge as Ir}from"@xjur-ui/util";import*as Kt from"@radix-ui/react-popover";import{jsx as Yt}from"react/jsx-runtime";function ae({className:e,value:t,closeOnSelect:r=!0,...o}){let i=Yt(at,{className:Ir(e,"cursor-pointer"),value:typeof t=="object"?t?.value:t,...o});return r?Yt(Kt.Close,{asChild:!0,children:i}):i}import{twMerge as Er}from"@xjur-ui/util";import{jsx as Or}from"react/jsx-runtime";function ie({className:e,...t}){return Or(Ke,{className:Er(e,"truncate"),...t})}import{jsx as f1}from"react/jsx-runtime";import{jsx as b1}from"react/jsx-runtime";import{Close as F1}from"@radix-ui/react-popover";import{Fragment as Br,jsx as h,jsxs as B}from"react/jsx-runtime";function lt({className:e,isSelected:t=!1,variant:r="default",accordionContent:o,isAccordionOpen:i=!1,onAccordionToggle:n,accordionData:a,...d}){let[u,m]=Qt(i),[f,v]=Qt("");nt.useEffect(()=>{m(i)},[i]);let x=()=>{if(!o)return;m(!u),n?.()},I=c=>{a?.checkbox?.onCheckedChange(c)},z=nt.useCallback(c=>{a?.radio&&a.radio.onCheckedChange(a.radio.value,c)},[a?.radio]),y=nt.useMemo(()=>!a?.searchSelect?.options||!f?a?.searchSelect?.options||[]:a.searchSelect.options.filter(c=>c.label.toLowerCase().includes(f.toLowerCase())),[a?.searchSelect?.options,f]),F=c=>{v(c.target.value)},ye=c=>{a?.searchSelect?.onChangeSearchOption(c),v("")};return r==="accordion"?B(Br,{children:[B("tr",{"aria-expanded":o?u:void 0,className:xe("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",o&&"cursor-pointer",e),"data-selected":t,"data-slot":"table-row-accordion",role:o?"button":void 0,tabIndex:o?0:void 0,onClick:x,...d,children:[h("td",{className:"w-6 px-2 py-3",children:a?.checkbox&&h(Y,{checked:a.checkbox.checked,onCheckedChange:I,onClick:c=>c.stopPropagation()})}),h("td",{className:"px-2 py-3",children:B("div",{className:"flex items-center gap-2",children:[o&&h(g,{className:xe("text-neutral-medium transition-transform duration-200",u&&"rotate-90"),name:"keyboard_arrow_up"}),h(b,{children:a?.text1})]})}),h("td",{className:"px-2 py-3",children:h(b,{children:a?.text2})}),h("td",{className:"px-2 py-3",onClick:c=>c.stopPropagation(),children:a?.searchSelect&&B(K,{children:[B(Q,{children:[h(ee,{placeholder:"Selecione",value:{value:a.searchSelect?.selectedSearchOption||"",label:a.searchSelect?.options.find(c=>c.value===a.searchSelect?.selectedSearchOption)?.label||""}}),h(U,{className:"text-layer-1-active",name:"keyboard_arrow_down"})]}),h(oe,{children:B(re,{className:"p-0",children:[h("div",{className:"py-small border-border-layer-2 border-b",children:B("div",{className:"gap-small py-small_1x-alt bg-layer-2-idle rounded-small flex items-center",children:[h(g,{className:"text-layer-1-active",name:"search"}),h("input",{className:"text-size-body-md text-neutral-dark placeholder:text-neutral-placeholder flex-1 bg-transparent outline-none",placeholder:"Pesquisar",value:f,onChange:F})]})}),y.map(c=>h(ae,{className:"p-0",isActive:a.searchSelect?.selectedSearchOption===c.value,value:c,onClick:()=>ye(c.value),children:h(ie,{children:c.label})},c.value))]})})]})}),h("td",{className:"px-2 py-3",onClick:c=>c.stopPropagation(),children:a?.radio&&h(ge,{allowToggle:!0,className:"",value:a.radio.checked?a.radio.value:"",onValueChange:c=>{a?.radio&&z(c!=="")},children:h(Ce,{className:"",id:`principal-${a.radio.value}`,label:"",value:a.radio.value})})})]}),u&&o&&h("tr",{className:xe("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",e),children:h("td",{colSpan:5,children:o})})]}):h("tr",{className:xe("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",e),"data-selected":t,"data-slot":"table-row",...d})}import{jsx as p,jsxs as S}from"react/jsx-runtime";var pt=[{value:"autor",label:"Autor"},{value:"coautor",label:"Coautor"},{value:"colaborador",label:"Colaborador"}];function sp({empresas:e,selectedEmpresas:t,selectedRadios:r,selectedSearchOptions:o,selectedAccordionContent:i,onEmpresaSelect:n,onRadioChange:a,onSearchOptionChange:d,onAccordionContentChange:u,onSort:m,sortConfig:f}){let[v,x]=st([]),[I,z]=st([]),[y,F]=st({}),ye=l=>{x(s=>s.includes(l)?s.filter(_=>_!==l):[...s,l])},c=(l,s)=>{z(s?_=>[..._,l]:_=>_.filter(Ut=>Ut!==l))},dt=(l,s)=>{F(_=>({..._,[l]:s}))};return S(Dt,{children:[p(It,{children:S(lt,{children:[p(G,{children:p(Y,{checked:t.length===e.length&&e.length>0,onCheckedChange:l=>{l?(e.forEach(s=>{t.includes(s.id)||n(s.id,!0)}),e.forEach(s=>{s.detalhes&&u(s.id,!0)})):(e.forEach(s=>{t.includes(s.id)&&n(s.id,!1)}),e.forEach(s=>{s.detalhes&&u(s.id,!1)}))}})}),p(G,{children:S(q,{children:["Nome fantasia",p(X,{sortedDirection:f?.key==="nomeFantasia"?f.direction:void 0,onClick:()=>m("nomeFantasia")})]})}),p(G,{children:S(q,{children:["Documento",p(X,{sortedDirection:f?.key==="documento"?f.direction:void 0,onClick:()=>m("documento")})]})}),p(G,{children:S(q,{children:["Forma de participa\xE7\xE3o",p(X,{sortedDirection:f?.key==="formaParticipacao"?f.direction:void 0,onClick:()=>m("formaParticipacao")})]})}),p(G,{children:S(q,{children:["Principal",p(X,{sortedDirection:f?.key==="principal"?f.direction:void 0,onClick:()=>m("principal")})]})})]})}),p(Et,{children:e.map(l=>p(lt,{accordionContent:l.detalhes?S("tr",{className:"flex w-full",children:[p("td",{className:"mr-14 px-2 py-3",children:p(Y,{checked:i.includes(l.id),onCheckedChange:s=>u(l.id,s)})}),S("div",{className:"flex w-full justify-between",children:[p("td",{className:"mr-18 px-2 py-3",children:S("div",{className:"flex items-center gap-2",children:[p(g,{className:"text-neutral-medium",name:"keyboard_arrow_up"}),p(b,{className:"truncate text-sm sm:text-base",children:l.nomeFantasia})]})}),p("td",{className:"w-full px-2 py-3",children:p(b,{className:"truncate text-sm sm:text-base",children:l.documento})}),p("td",{className:"w-full px-2 py-3",children:S(K,{children:[S(Q,{children:[p(ee,{placeholder:"Selecione",value:{value:y[l.id]||"",label:pt.find(s=>s.value===y[l.id])?.label||""}}),p(U,{className:"text-layer-1-active",name:"keyboard_arrow_down"})]}),p(oe,{children:S(re,{className:"p-0",children:[p("div",{className:"py-small border-border-layer-2 border-b",children:S("div",{className:"gap-small py-small_1x-alt bg-layer-2-idle rounded-small flex items-center",children:[p(g,{className:"text-layer-1-active",name:"search"}),p("input",{className:"text-size-body-md text-neutral-dark placeholder:text-neutral-placeholder flex-1 bg-transparent outline-none",placeholder:"Pesquisar",value:"",onChange:()=>{}})]})}),pt.map(s=>p(ae,{className:"p-0",isActive:y[l.id]===s.value,value:s,onClick:()=>dt(l.id,s.value),children:p(ie,{children:s.label})},s.value))]})})]})}),p("td",{className:"w-full px-2 py-3",children:p(ge,{allowToggle:!0,className:"",value:I.includes(l.id)?l.id:"",onValueChange:s=>{let _=s!=="";c(l.id,_)},children:p(Ce,{className:"",id:`accordion-principal-${l.id}`,label:"",value:l.id})})})]})]}):void 0,accordionData:{checkbox:{checked:t.includes(l.id),onCheckedChange:s=>n(l.id,s)},radio:{checked:r.includes(l.id),onCheckedChange:(s,_)=>a(l.id,_),value:l.id},searchSelect:{options:pt,selectedSearchOption:o[l.id]||l.formaParticipacao.toLowerCase(),onChangeSearchOption:s=>d(l.id,s),placeholder:"Selecione"},text1:l.nomeFantasia,text2:l.documento},isAccordionOpen:v.includes(l.id),variant:"accordion",onAccordionToggle:()=>ye(l.id)},l.id))})]})}export{Oi as EmpresaAddButton,Wi as EmpresaBody,yn as EmpresaCloseButton,Yi as EmpresaContent,se as EmpresaContext,tn as EmpresaFooter,dn as EmpresaHeader,Rt as EmpresaProvider,Ri as EmpresaRoot,sp as EmpresaTable,gn as EmpresaTrigger,D as useEmpresaContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as f from"react";import{cx as Ne}from"@xjur-ui/util";import{jsx as j}from"react/jsx-runtime";function C({...e}){return j("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}import{cx as ee}from"@xjur-ui/util";import{jsx as te}from"react/jsx-runtime";function z({className:e,...o}){return te("ol",{className:ee("text-neutral-placeholder flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),"data-slot":"breadcrumb-list",...o})}import{cx as oe}from"@xjur-ui/util";import{jsx as ae}from"react/jsx-runtime";function P({className:e,...o}){return ae("li",{className:oe("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...o})}import{Slot as ge}from"@radix-ui/react-slot";import{cx as fe}from"@xjur-ui/util";import{Slot as se}from"@radix-ui/react-slot";import{cva as ne}from"@xjur-ui/util";import{memo as q,useState as de}from"react";import*as x from"@radix-ui/react-tooltip";import{jsx as R}from"react/jsx-runtime";function re({delayDuration:e=0,...o}){return R(x.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function I({...e}){return R(re,{children:R(x.Root,{"data-slot":"tooltip",...e})})}import*as F from"@radix-ui/react-tooltip";import{jsx as ie}from"react/jsx-runtime";function B({...e}){return ie(F.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as _ from"@radix-ui/react-tooltip";import{cx as le}from"@xjur-ui/util";import{jsx as O}from"react/jsx-runtime";function S({className:e,sideOffset:o=1,variant:t="simple",children:r,...l}){return O(_.Portal,{children:O(_.Content,{className:le("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":t,sideOffset:o,...l,children:r})})}import{jsx as T,jsxs as me}from"react/jsx-runtime";var pe=ne("",{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"}}),d=q(({variant:e,size:o,weight:t,asChild:r,className:l,children:i,...m})=>T(r?se:"span",{className:pe({variant:e,size:o,weight:t,className:l}),...m,children:i}));d.displayName="Typography";var ce=q(({children:e,...o})=>{let[t,r]=de(!1);return me(I,{children:[T(B,{asChild:!0,children:T(d,{onMouseEnter:({currentTarget:i})=>{let m=i.scrollWidth>i.clientWidth;r(m),m?i.style.cursor="pointer":i.style.cursor="text"},...o,children:e})}),t&&T(S,{children:e})]})});ce.displayName="TruncatedTypography";import{jsx as D}from"react/jsx-runtime";function L({asChild:e,className:o,variant:t="headline",size:r="sm",...l}){return D(d,{asChild:!0,size:r,variant:t,children:D(e?ge:"a",{className:fe("hover:text-neutral-dark transition-colors",o),"data-slot":"breadcrumb-link",...l})})}import{cx as be}from"@xjur-ui/util";import{jsx as ue}from"react/jsx-runtime";function M({variant:e="headline",size:o="sm",className:t,...r}){return ue(d,{"aria-current":"page","aria-disabled":"true",className:be("text-neutral-dark font-normal",t),"data-slot":"breadcrumb-page",role:"link",size:o,variant:e,...r})}import{cx as he}from"@xjur-ui/util";import{cx as ye}from"@xjur-ui/util";import{jsx as ve}from"react/jsx-runtime";function u({className:e,filled:o=!1,name:t,...r}){return ve("span",{...r,className:ye("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:t})}import{jsx as W}from"react/jsx-runtime";function V({children:e,className:o,...t}){return W("li",{"aria-hidden":"true",className:he("[&>span]:text-size-title-lg",o),"data-slot":"breadcrumb-separator",role:"presentation",...t,children:e??W(u,{name:"chevron_right"})})}import{cx as ut}from"@xjur-ui/util";import{jsx as ht,jsxs as xt}from"react/jsx-runtime";import*as N from"react";import{cx as A}from"@xjur-ui/util";import*as $ from"react";import{cx as E}from"@xjur-ui/util";import{jsx as U,jsxs as xe}from"react/jsx-runtime";function J({label:e,disabled:o=!1,onClick:t,className:r,...l}){let i=$.useCallback(()=>{o||t?.()},[o,t]);return xe("button",{className:E("group bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed relative flex w-full items-center justify-between rounded-lg p-6 transition-all duration-200",r),disabled:o,type:"button",onClick:i,...l,children:[U(d,{className:E("text-left transition-colors"),size:"sm",weight:"medium",children:e}),U(u,{className:E("text-sm transition-colors"),name:"chevron_right"})]})}import{jsx as k,jsxs as _e}from"react/jsx-runtime";function K({items:e,title:o,onItemClick:t,className:r,...l}){let i=N.useCallback(p=>{p.disabled||t?.(p)},[t]),m=N.useMemo(()=>{let p=[...e].sort((a,c)=>a.label.localeCompare(c.label,"pt-BR")),n={};return p.forEach(a=>{let c=a.label.charAt(0).toUpperCase();n[c]||(n[c]=[]),n[c].push(a)}),n},[e]);return _e("div",{className:A("flex w-full flex-col gap-6",r),...l,children:[k(d,{className:"text-neutral-placeholder",size:"sm",variant:"headline",weight:"normal",children:o}),k("div",{className:A("flex flex-col gap-6"),children:Object.entries(m).map(([p,n])=>k("div",{className:A("grid grid-cols-3 gap-2"),children:n.map(a=>k(J,{disabled:a.disabled,label:a.label,onClick:()=>i(a)},a.id))},p))})]})}import*as G from"react";import{cx as v}from"@xjur-ui/util";import{jsx as y,jsxs as ke}from"react/jsx-runtime";function Q({allowMultiple:e=!1,className:o,columns:t=3,items:r,onValueChange:l,value:i,...m}){let p={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},n=G.useCallback(a=>{if(e){let c=Array.isArray(i)?i:[];if(c.includes(a)){let h=c.filter(s=>s!==a);l?.(h)}else{let h=[...c,a];l?.(h)}}else l?.(a)},[e,l,i]);return y("div",{className:v("w-full",o),...m,children:y("div",{className:v("grid gap-4",p[t],"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"),children:r.map(a=>y(Te,{allowMultiple:e,disabled:a.disabled,icon:a.icon,id:a.id,isSelected:e?Array.isArray(i)&&i.includes(a.id):i===a.id,label:a.label,value:a.id,onClick:()=>n(a.id)},a.id))})})}function Te({disabled:e=!1,icon:o,isSelected:t=!1,label:r,onClick:l}){let i=G.useCallback(()=>{l?.()},[l]);return ke("button",{className:v("bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed flex cursor-pointer items-center gap-3 rounded-lg p-6 transition-all duration-200",t?"border-primary-alt-idle bg-primary-alt-idle":"bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-2-pressed",e&&"cursor-not-allowed opacity-50"),disabled:e,type:"button",onClick:i,children:[y("div",{className:v("border-border-layer-1 h-4 w-4 shrink-0 rounded-full border transition-all duration-200",t?"border-primary-alt-idle bg-primary-idle":"border-border-layer-1 bg-layer-1-idle"),children:t&&y("div",{className:"bg-primary-idle border-border-layer-1 h-full w-full scale-50 rounded-full"})}),o&&y(u,{className:v("text-lg",e?"text-gray-400":t?"text-primary-alt-idle":"text-gray-600"),name:o}),y(d,{className:v("flex-1 text-left",e?"text-gray-400":t?"text-primary-idle":"text-gray-700"),size:"sm",weight:"medium",children:r})]})}import{jsx as g,jsxs as X}from"react/jsx-runtime";function Xt({allowMultipleSelection:e=!1,levels:o,currentPath:t,onPathChange:r,selectedValue:l,onSelectionChange:i,className:m,...p}){let n=f.useMemo(()=>{let s=t[t.length-1];return o.find(b=>b.id===s)},[o,t]),a=f.useMemo(()=>t.map((s,b)=>{let w=o.find(Z=>Z.id===s),Y=b===t.length-1;return{id:s,title:w?.title||s,isLast:Y}}),[t,o]),c=f.useCallback(s=>{let b=t.indexOf(s);if(b!==-1){let w=t.slice(0,b+1);r?.(w)}},[t,r]),H=f.useCallback(s=>{let b=[...t,s.id];r?.(b)},[t,r]),h=f.useCallback(s=>{i?.(s)},[i]);return X("div",{className:Ne("w-full space-y-6",m),...p,children:[t.length>1&&g(C,{children:g(z,{children:a.map(s=>X(f.Fragment,{children:[g(P,{children:s.isLast?g(M,{children:s.title}):g(L,{className:"cursor-pointer",onClick:()=>c(s.id),children:s.title})}),!s.isLast&&g(V,{})]},s.id))})}),n&&g("div",{className:"space-y-4",children:n.hasRadioSelection&&n.radioItems?g(Q,{allowMultiple:e,items:n.radioItems,value:l,onValueChange:h}):g(K,{items:n.items,title:n.title,onItemClick:H})})]})}export{Xt as HierarchicalNavigation};
|
|
1
|
+
import*as v from"react";import{cx as dt}from"@xjur-ui/util";import{jsx as N1}from"react/jsx-runtime";function E({...t}){return N1("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t})}import{cx as z1}from"@xjur-ui/util";import{jsx as R1}from"react/jsx-runtime";function S({className:t,...o}){return R1("ol",{className:z1("text-neutral-placeholder flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),"data-slot":"breadcrumb-list",...o})}import{cx as Z1}from"@xjur-ui/util";import{jsx as j1}from"react/jsx-runtime";function A({className:t,...o}){return j1("li",{className:Z1("inline-flex items-center gap-1.5",t),"data-slot":"breadcrumb-item",...o})}import{Slot as U1}from"@radix-ui/react-slot";import{cx as $1}from"@xjur-ui/util";import{Slot as F1}from"@radix-ui/react-slot";import{cva as W1}from"@xjur-ui/util";import{memo as u1,useState as G1}from"react";import*as H from"@radix-ui/react-tooltip";import{jsx as F}from"react/jsx-runtime";function E1({delayDuration:t=0,...o}){return F(H.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function W({...t}){return F(E1,{children:F(H.Root,{"data-slot":"tooltip",...t})})}import*as c1 from"@radix-ui/react-tooltip";import{jsx as S1}from"react/jsx-runtime";function G({...t}){return S1(c1.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as B from"@radix-ui/react-tooltip";import{cx as A1}from"@xjur-ui/util";import{jsx as m1}from"react/jsx-runtime";function X({className:t,sideOffset:o=1,variant:e="simple",children:i,...n}){return m1(B.Portal,{children:m1(B.Content,{className:A1("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)",t),"data-slot":"tooltip-content","data-variant":e,sideOffset:o,...n,children:i})})}import{jsx as V,jsxs as q1}from"react/jsx-runtime";var X1=W1("",{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=u1(({variant:t,size:o,weight:e,asChild:i,className:n,children:a,...f})=>V(i?F1:"span",{className:X1({variant:t,size:o,weight:e,className:n}),...f,children:a}));p.displayName="Typography";var O1=u1(({children:t,...o})=>{let[e,i]=G1(!1);return q1(W,{children:[V(G,{asChild:!0,children:V(p,{onMouseEnter:({currentTarget:a})=>{let f=a.scrollWidth>a.clientWidth;i(f),f?a.style.cursor="pointer":a.style.cursor="text"},...o,children:t})}),e&&V(X,{children:t})]})});O1.displayName="TruncatedTypography";import{jsx as h1}from"react/jsx-runtime";function O({asChild:t,className:o,variant:e="headline",size:i="sm",...n}){return h1(p,{asChild:!0,size:i,variant:e,children:h1(t?U1:"a",{className:$1("hover:text-neutral-dark transition-colors",o),"data-slot":"breadcrumb-link",...n})})}import{cx as J1}from"@xjur-ui/util";import{jsx as K1}from"react/jsx-runtime";function q({variant:t="headline",size:o="sm",className:e,...i}){return K1(p,{"aria-current":"page","aria-disabled":"true",className:J1("text-neutral-dark font-normal",e),"data-slot":"breadcrumb-page",role:"link",size:o,variant:t,...i})}import{cx as it}from"@xjur-ui/util";import{cx as rt}from"@xjur-ui/util";var g1=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as c,jsxs as Q1}from"react/jsx-runtime";function U(){return Q1("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("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"}),c("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),c("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"}),c("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"}),c("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as g,jsxs as f1}from"react/jsx-runtime";function $(){return f1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[f1("g",{clipPath:"url(#clip0_19548_42822)",children:[g("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"})]}),g("defs",{children:g("clipPath",{id:"clip0_19548_42822",children:g("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as N,jsxs as Y1}from"react/jsx-runtime";function J(){return Y1("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 d,jsxs as k1}from"react/jsx-runtime";function K(){return k1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[k1("g",{clipPath:"url(#clip0_19548_42667)",children:[d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),d("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"}),d("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),d("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),d("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),d("defs",{children:d("clipPath",{id:"clip0_19548_42667",children:d("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as y,jsxs as tt}from"react/jsx-runtime";function Q(){return tt("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[y("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),y("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),y("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),y("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as _,jsxs as C1}from"react/jsx-runtime";function Y(){return C1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[C1("g",{clipPath:"url(#clip0_19548_42803)",children:[_("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),_("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),_("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),_("defs",{children:_("clipPath",{id:"clip0_19548_42803",children:_("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as w,jsxs as v1}from"react/jsx-runtime";function t1(){return v1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[v1("g",{clipPath:"url(#clip0_19548_42782)",children:[w("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),w("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),w("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"}),w("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"})]}),w("defs",{children:w("clipPath",{id:"clip0_19548_42782",children:w("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as z,jsxs as et}from"react/jsx-runtime";function e1(){return et("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[z("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),z("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),z("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),z("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as L,jsxs as b1}from"react/jsx-runtime";function o1(){return b1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[b1("g",{clipPath:"url(#clip0_19548_42757)",children:[L("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),L("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),L("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),L("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"}),L("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),L("defs",{children:L("clipPath",{id:"clip0_19548_42757",children:L("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as D,jsxs as L1}from"react/jsx-runtime";function r1(){return L1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[L1("g",{clipPath:"url(#clip0_19548_42810)",children:[D("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),D("defs",{children:D("clipPath",{id:"clip0_19548_42810",children:D("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as k,jsxs as y1}from"react/jsx-runtime";function i1(){return y1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[y1("g",{clipPath:"url(#clip0_21377_57335)",children:[k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),k("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),k("defs",{children:k("clipPath",{id:"clip0_21377_57335",children:k("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as T,jsxs as ot}from"react/jsx-runtime";function a1(){return ot("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[T("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"}),T("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),T("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 w1({name:t}){switch(t){case"agenda":return m(U,{});case"contencioso":return m(K,{});case"contrato":return m(Q,{});case"consultivo":return m(J,{});case"xsigner":return m(a1,{});case"procuracao":return m(o1,{});case"xpay":return m(i1,{});case"imobiliario":return m(t1,{});case"marcasepatentes":return m(e1,{});case"ged":return m(Y,{});case"regulatorio":return m(r1,{});case"compliance":return m($,{});default:return null}}import{jsx as x1}from"react/jsx-runtime";function x({className:t,filled:o=!1,name:e,...i}){return g1.includes(e)?x1(w1,{name:e}):x1("span",{...i,className:rt("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...i.style},children:e})}import{jsx as M1}from"react/jsx-runtime";function n1({children:t,className:o,...e}){return M1("li",{"aria-hidden":"true",className:it("[&>span]:text-size-title-lg",o),"data-slot":"breadcrumb-separator",role:"presentation",...e,children:t??M1(x,{name:"chevron_right"})})}import{cx as Ae}from"@xjur-ui/util";import{jsx as Ge,jsxs as Xe}from"react/jsx-runtime";import*as Z from"react";import{cx as l1}from"@xjur-ui/util";import*as D1 from"react";import{cx as s1}from"@xjur-ui/util";import{jsx as _1,jsxs as at}from"react/jsx-runtime";function P1({label:t,disabled:o=!1,onClick:e,className:i,...n}){let a=D1.useCallback(()=>{o||e?.()},[o,e]);return at("button",{className:s1("group bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed relative flex w-full items-center justify-between rounded-lg p-6 transition-all duration-200",i),disabled:o,type:"button",onClick:a,...n,children:[_1(p,{className:s1("text-left transition-colors"),size:"sm",weight:"medium",children:t}),_1(x,{className:s1("text-sm transition-colors"),name:"chevron_right"})]})}import{jsx as R,jsxs as nt}from"react/jsx-runtime";function I1({items:t,title:o,onItemClick:e,className:i,...n}){let a=Z.useCallback(u=>{u.disabled||e?.(u)},[e]),f=Z.useMemo(()=>{let u=[...t].sort((r,h)=>r.label.localeCompare(h.label,"pt-BR")),l={};return u.forEach(r=>{let h=r.label.charAt(0).toUpperCase();l[h]||(l[h]=[]),l[h].push(r)}),l},[t]);return nt("div",{className:l1("flex w-full flex-col gap-6",i),...n,children:[R(p,{className:"text-neutral-placeholder",size:"sm",variant:"headline",weight:"normal",children:o}),R("div",{className:l1("flex flex-col gap-6"),children:Object.entries(f).map(([u,l])=>R("div",{className:l1("grid grid-cols-3 gap-2"),children:l.map(r=>R(P1,{disabled:r.disabled,label:r.label,onClick:()=>a(r)},r.id))},u))})]})}import*as d1 from"react";import{cx as P}from"@xjur-ui/util";import{jsx as M,jsxs as lt}from"react/jsx-runtime";function T1({allowMultiple:t=!1,className:o,columns:e=3,items:i,onValueChange:n,value:a,...f}){let u={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},l=d1.useCallback(r=>{if(t){let h=Array.isArray(a)?a:[];if(h.includes(r)){let I=h.filter(s=>s!==r);n?.(I)}else{let I=[...h,r];n?.(I)}}else n?.(r)},[t,n,a]);return M("div",{className:P("w-full",o),...f,children:M("div",{className:P("grid gap-4",u[e],"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"),children:i.map(r=>M(st,{allowMultiple:t,disabled:r.disabled,icon:r.icon,id:r.id,isSelected:t?Array.isArray(a)&&a.includes(r.id):a===r.id,label:r.label,value:r.id,onClick:()=>l(r.id)},r.id))})})}function st({disabled:t=!1,icon:o,isSelected:e=!1,label:i,onClick:n}){let a=d1.useCallback(()=>{n?.()},[n]);return lt("button",{className:P("bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed flex cursor-pointer items-center gap-3 rounded-lg p-6 transition-all duration-200",e?"border-primary-alt-idle bg-primary-alt-idle":"bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-2-pressed",t&&"cursor-not-allowed opacity-50"),disabled:t,type:"button",onClick:a,children:[M("div",{className:P("border-border-layer-1 h-4 w-4 shrink-0 rounded-full border transition-all duration-200",e?"border-primary-alt-idle bg-primary-idle":"border-border-layer-1 bg-layer-1-idle"),children:e&&M("div",{className:"bg-primary-idle border-border-layer-1 h-full w-full scale-50 rounded-full"})}),o&&M(x,{className:P("text-lg",t?"text-gray-400":e?"text-primary-alt-idle":"text-gray-600"),name:o}),M(p,{className:P("flex-1 text-left",t?"text-gray-400":e?"text-primary-idle":"text-gray-700"),size:"sm",weight:"medium",children:i})]})}import{jsx as C,jsxs as H1}from"react/jsx-runtime";function yo({allowMultipleSelection:t=!1,levels:o,currentPath:e,onPathChange:i,selectedValue:n,onSelectionChange:a,className:f,...u}){let l=v.useMemo(()=>{let s=e[e.length-1];return o.find(b=>b.id===s)},[o,e]),r=v.useMemo(()=>e.map((s,b)=>{let j=o.find(V1=>V1.id===s),B1=b===e.length-1;return{id:s,title:j?.title||s,isLast:B1}}),[e,o]),h=v.useCallback(s=>{let b=e.indexOf(s);if(b!==-1){let j=e.slice(0,b+1);i?.(j)}},[e,i]),p1=v.useCallback(s=>{let b=[...e,s.id];i?.(b)},[e,i]),I=v.useCallback(s=>{a?.(s)},[a]);return H1("div",{className:dt("w-full space-y-6",f),...u,children:[e.length>1&&C(E,{children:C(S,{children:r.map(s=>H1(v.Fragment,{children:[C(A,{children:s.isLast?C(q,{children:s.title}):C(O,{className:"cursor-pointer",onClick:()=>h(s.id),children:s.title})}),!s.isLast&&C(n1,{})]},s.id))})}),l&&C("div",{className:"space-y-4",children:l.hasRadioSelection&&l.radioItems?C(T1,{allowMultiple:t,items:l.radioItems,value:n,onValueChange:I}):C(I1,{items:l.items,title:l.title,onItemClick:p1})})]})}export{yo as HierarchicalNavigation};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as pe from"react";import{cx as H}from"@xjur-ui/util";import{cx as Re}from"@xjur-ui/util";import{jsx as Te}from"react/jsx-runtime";function c({className:e,filled:t=!1,name:o,...a}){return Te("span",{...a,className:Re("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...a.style},children:o})}import{Slot as Ie}from"@radix-ui/react-slot";import{cva as Be}from"@xjur-ui/util";import{memo as ne,useState as Ve}from"react";import*as S from"@radix-ui/react-tooltip";import{jsx as I}from"react/jsx-runtime";function ze({delayDuration:e=0,...t}){return I(S.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function B({...e}){return I(ze,{children:I(S.Root,{"data-slot":"tooltip",...e})})}import*as ie from"@radix-ui/react-tooltip";import{jsx as ke}from"react/jsx-runtime";function V({...e}){return ke(ie.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as w from"@radix-ui/react-tooltip";import{cx as Le}from"@xjur-ui/util";import{jsx as se}from"react/jsx-runtime";function F({className:e,sideOffset:t=1,variant:o="simple",children:a,...r}){return se(w.Portal,{children:se(w.Content,{className:Le("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,...r,children:a})})}import{jsx as R,jsxs as Me}from"react/jsx-runtime";var Fe=Be("",{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"}}),f=ne(({variant:e,size:t,weight:o,asChild:a,className:r,children:i,...p})=>R(a?Ie:"span",{className:Fe({variant:e,size:t,weight:o,className:r}),...p,children:i}));f.displayName="Typography";var He=ne(({children:e,...t})=>{let[o,a]=Ve(!1);return Me(B,{children:[R(V,{asChild:!0,children:R(f,{onMouseEnter:({currentTarget:i})=>{let p=i.scrollWidth>i.clientWidth;a(p),p?i.style.cursor="pointer":i.style.cursor="text"},...t,children:e})}),o&&R(F,{children:e})]})});He.displayName="TruncatedTypography";import{jsx as le,jsxs as Ae}from"react/jsx-runtime";function M({label:e,disabled:t=!1,onClick:o,className:a,...r}){let i=pe.useCallback(()=>{t||o?.()},[t,o]);return Ae("button",{className:H("group bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed relative flex w-full items-center justify-between rounded-lg p-6 transition-all duration-200",a),disabled:t,type:"button",onClick:i,...r,children:[le(f,{className:H("text-left transition-colors"),size:"sm",weight:"medium",children:e}),le(c,{className:H("text-sm transition-colors"),name:"chevron_right"})]})}import*as z from"react";import{cx as A}from"@xjur-ui/util";import{jsx as T,jsxs as Oe}from"react/jsx-runtime";function O({items:e,title:t,onItemClick:o,className:a,...r}){let i=z.useCallback(d=>{d.disabled||o?.(d)},[o]),p=z.useMemo(()=>{let d=[...e].sort((s,m)=>s.label.localeCompare(m.label,"pt-BR")),l={};return d.forEach(s=>{let m=s.label.charAt(0).toUpperCase();l[m]||(l[m]=[]),l[m].push(s)}),l},[e]);return Oe("div",{className:A("flex w-full flex-col gap-6",a),...r,children:[T(f,{className:"text-neutral-placeholder",size:"sm",variant:"headline",weight:"normal",children:t}),T("div",{className:A("flex flex-col gap-6"),children:Object.entries(p).map(([d,l])=>T("div",{className:A("grid grid-cols-3 gap-2"),children:l.map(s=>T(M,{disabled:s.disabled,label:s.label,onClick:()=>i(s)},s.id))},d))})]})}import*as E from"react";import{cx as y}from"@xjur-ui/util";import{jsx as h,jsxs as Ge}from"react/jsx-runtime";function G({allowMultiple:e=!1,className:t,columns:o=3,items:a,onValueChange:r,value:i,...p}){let d={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},l=E.useCallback(s=>{if(e){let m=Array.isArray(i)?i:[];if(m.includes(s)){let b=m.filter(n=>n!==s);r?.(b)}else{let b=[...m,s];r?.(b)}}else r?.(s)},[e,r,i]);return h("div",{className:y("w-full",t),...p,children:h("div",{className:y("grid gap-4",d[o],"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"),children:a.map(s=>h(Ee,{allowMultiple:e,disabled:s.disabled,icon:s.icon,id:s.id,isSelected:e?Array.isArray(i)&&i.includes(s.id):i===s.id,label:s.label,value:s.id,onClick:()=>l(s.id)},s.id))})})}function Ee({disabled:e=!1,icon:t,isSelected:o=!1,label:a,onClick:r}){let i=E.useCallback(()=>{r?.()},[r]);return Ge("button",{className:y("bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed flex cursor-pointer items-center gap-3 rounded-lg p-6 transition-all duration-200",o?"border-primary-alt-idle bg-primary-alt-idle":"bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-2-pressed",e&&"cursor-not-allowed opacity-50"),disabled:e,type:"button",onClick:i,children:[h("div",{className:y("border-border-layer-1 h-4 w-4 shrink-0 rounded-full border transition-all duration-200",o?"border-primary-alt-idle bg-primary-idle":"border-border-layer-1 bg-layer-1-idle"),children:o&&h("div",{className:"bg-primary-idle border-border-layer-1 h-full w-full scale-50 rounded-full"})}),t&&h(c,{className:y("text-lg",e?"text-gray-400":o?"text-primary-alt-idle":"text-gray-600"),name:t}),h(f,{className:y("flex-1 text-left",e?"text-gray-400":o?"text-primary-idle":"text-gray-700"),size:"sm",weight:"medium",children:a})]})}import*as v from"react";import{cx as Ze}from"@xjur-ui/util";import{jsx as De}from"react/jsx-runtime";function D({...e}){return De("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}import{cx as qe}from"@xjur-ui/util";import{jsx as We}from"react/jsx-runtime";function q({className:e,...t}){return We("ol",{className:qe("text-neutral-placeholder flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),"data-slot":"breadcrumb-list",...t})}import{cx as Ue}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function W({className:e,...t}){return $e("li",{className:Ue("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}import{Slot as Je}from"@radix-ui/react-slot";import{cx as Ke}from"@xjur-ui/util";import{jsx as de}from"react/jsx-runtime";function U({asChild:e,className:t,variant:o="headline",size:a="sm",...r}){return de(f,{asChild:!0,size:a,variant:o,children:de(e?Je:"a",{className:Ke("hover:text-neutral-dark transition-colors",t),"data-slot":"breadcrumb-link",...r})})}import{cx as Qe}from"@xjur-ui/util";import{jsx as Xe}from"react/jsx-runtime";function $({variant:e="headline",size:t="sm",className:o,...a}){return Xe(f,{"aria-current":"page","aria-disabled":"true",className:Qe("text-neutral-dark font-normal",o),"data-slot":"breadcrumb-page",role:"link",size:t,variant:e,...a})}import{cx as Ye}from"@xjur-ui/util";import{jsx as me}from"react/jsx-runtime";function J({children:e,className:t,...o}){return me("li",{"aria-hidden":"true",className:Ye("[&>span]:text-size-title-lg",t),"data-slot":"breadcrumb-separator",role:"presentation",...o,children:e??me(c,{name:"chevron_right"})})}import{cx as Uo}from"@xjur-ui/util";import{jsx as Ko,jsxs as Qo}from"react/jsx-runtime";import{jsx as g,jsxs as ce}from"react/jsx-runtime";function je({allowMultipleSelection:e=!1,levels:t,currentPath:o,onPathChange:a,selectedValue:r,onSelectionChange:i,className:p,...d}){let l=v.useMemo(()=>{let n=o[o.length-1];return t.find(u=>u.id===n)},[t,o]),s=v.useMemo(()=>o.map((n,u)=>{let L=t.find(we=>we.id===n),Se=u===o.length-1;return{id:n,title:L?.title||n,isLast:Se}}),[o,t]),m=v.useCallback(n=>{let u=o.indexOf(n);if(u!==-1){let L=o.slice(0,u+1);a?.(L)}},[o,a]),C=v.useCallback(n=>{let u=[...o,n.id];a?.(u)},[o,a]),b=v.useCallback(n=>{i?.(n)},[i]);return ce("div",{className:Ze("w-full space-y-6",p),...d,children:[o.length>1&&g(D,{children:g(q,{children:s.map(n=>ce(v.Fragment,{children:[g(W,{children:n.isLast?g($,{children:n.title}):g(U,{className:"cursor-pointer",onClick:()=>m(n.id),children:n.title})}),!n.isLast&&g(J,{})]},n.id))})}),l&&g("div",{className:"space-y-4",children:l.hasRadioSelection&&l.radioItems?g(G,{allowMultiple:e,items:l.radioItems,value:r,onValueChange:b}):g(O,{items:l.items,title:l.title,onItemClick:C})})]})}import"react";import"react";import*as fe from"@radix-ui/react-dialog";import{jsx as et}from"react/jsx-runtime";function K({...e}){return et(fe.Root,{"data-slot":"sheet",...e})}import*as be from"@radix-ui/react-dialog";import{tv as rt}from"@xjur-ui/util";import*as ue from"@radix-ui/react-dialog";import{jsx as tt}from"react/jsx-runtime";function Q({...e}){return tt(ue.Portal,{"data-slot":"sheet-portal",...e})}import*as ge from"@radix-ui/react-dialog";import{cx as ot}from"@xjur-ui/util";import{jsx as at}from"react/jsx-runtime";function X({className:e,...t}){return at(ge.Overlay,{className:ot("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",e),"data-slot":"sheet-overlay",...t})}import{jsx as ve,jsxs as it}from"react/jsx-runtime";function Y({className:e,children:t,side:o="right",overlay:a=!1,...r}){let i=rt({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return it(Q,{children:[a&&ve(X,{}),ve(be.Content,{className:i({side:o,className:e}),"data-slot":"sheet-content",...r,children:t})]})}import*as he from"@radix-ui/react-dialog";import{jsx as st}from"react/jsx-runtime";function Z({...e}){return st(he.Trigger,{"data-slot":"sheet-trigger",...e})}import{cx as Ta}from"@xjur-ui/util";import*as nt from"@radix-ui/react-dialog";import{jsx as ka}from"react/jsx-runtime";import{cx as lt}from"@xjur-ui/util";import{jsx as pt}from"react/jsx-runtime";function j({className:e,...t}){return pt("div",{className:lt("py-large px-large-2x border-b-border-layer-2 border-b",e),"data-slot":"sheet-header",...t})}import*as ye from"@radix-ui/react-dialog";import{Slot as dt}from"@radix-ui/react-slot";import{cva as mt,cx as ct}from"@xjur-ui/util";import{jsx as ut}from"react/jsx-runtime";var ft=mt(["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 x({asChild:e,className:t,variant:o="primary",size:a="md",appearance:r="solid",...i}){return ut(e?dt:"button",{className:ct(ft({variant:o,appearance:r,size:a}),t),...i})}import{jsx as ee}from"react/jsx-runtime";function te({children:e=ee(x,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:ee(c,{className:"text-icon-neutral-3",name:"close"})}),...t}){return ee(ye.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as gt}from"@xjur-ui/util";import{jsx as vt}from"react/jsx-runtime";function oe({className:e,...t}){return vt("div",{className:gt("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",e),"data-slot":"sheet-footer",...t})}import{cx as bt}from"@xjur-ui/util";import{jsx as ht}from"react/jsx-runtime";function ae({className:e,...t}){return ht("div",{className:bt("px-large-2x h-full",e),...t})}import{createContext as yt,useCallback as xe,useContext as xt,useState as P,useMemo as Ct}from"react";import{jsx as Pt}from"react/jsx-runtime";var k=yt({});function Ce({children:e}){let[t,o]=P("list"),[a,r]=P(!1),[i,p]=P([]),[d,l]=P(["todos"]),[s,m]=P(""),C=xe(u=>{o(u)},[]),b=xe(()=>{r(u=>!u)},[]),n=Ct(()=>({currentView:t,changeCurrentView:C,isFullscreen:a,changeIsFullscreen:b,selectedItems:i,setSelectedItems:p,currentPath:d,setCurrentPath:l,selectedValue:s,setSelectedValue:m}),[t,C,a,b,i,p,d,l,s,m]);return Pt(k.Provider,{value:n,children:e})}function N(){let e=xt(k);if(!e)throw new Error("useListaNiveladaContext must be used within a ListaNiveladaProvider");return e}import{jsx as re}from"react/jsx-runtime";function Nt({onOpenChange:e,children:t,...o}){return re(Ce,{children:re(k.Consumer,{children:a=>re(K,{onOpenChange:r=>{a.changeCurrentView("list"),e?.(r)},...o,children:typeof t=="function"?t(a):t})})})}import{jsx as Pe,jsxs as St}from"react/jsx-runtime";function _t({children:e=St(x,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[Pe(c,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:t=!0,...o}){return Pe(Z,{asChild:t,...o,children:e})}import{twMerge as wt}from"@xjur-ui/util";import{jsx as Tt}from"react/jsx-runtime";function Rt({className:e,side:t="right",...o}){let{currentView:a,isFullscreen:r}=N();return Tt(Y,{className:wt("w-[900px] max-w-[1200px] min-w-[900px] data-[fullscreen=true]:w-full data-[fullscreen=true]:max-w-full data-[fullscreen=true]:min-w-full",e),"data-fullscreen":r,"data-view":a,side:t,...o})}import{twMerge as zt}from"@xjur-ui/util";import{jsx as _,jsxs as Ne}from"react/jsx-runtime";function kt({className:e,title:t="Lista nivelada",showCloseButton:o=!0,...a}){let{isFullscreen:r,changeIsFullscreen:i}=N(),p=()=>{i()};return Ne(j,{className:zt("flex items-center justify-between",e),...a,children:[_(f,{size:"lg",variant:"title",weight:"semibold",children:t}),Ne("div",{className:"flex items-center gap-2",children:[_("button",{"aria-label":r?"Restaurar janela":"Maximizar janela",className:"rounded-lg p-2 transition-colors hover:bg-gray-100",type:"button",onClick:p,children:_(c,{className:"text-gray-600",name:"expand_content"})}),o&&_("button",{"aria-label":"Fechar",className:"rounded-lg p-2 transition-colors hover:bg-gray-100",type:"button",children:_(c,{className:"text-gray-600",name:"close"})})]})]})}import{twMerge as Lt}from"@xjur-ui/util";import{jsx as Bt}from"react/jsx-runtime";function It({className:e,...t}){return Bt(ae,{className:Lt("flex-1 overflow-auto",e),...t})}import{twMerge as Vt}from"@xjur-ui/util";import{jsx as Ht}from"react/jsx-runtime";function Ft({className:e,...t}){return Ht(oe,{className:Vt("flex items-center justify-between border-t border-gray-200 pt-4",e),...t})}import{jsx as _e}from"react/jsx-runtime";function Mt({children:e="Cancelar",...t}){return _e(te,{asChild:!0,children:_e(x,{variant:"secondary",...t,children:e})})}export{je as HierarchicalNavigation,It as ListaNiveladaBody,Mt as ListaNiveladaCloseButton,Rt as ListaNiveladaContent,Ft as ListaNiveladaFooter,kt as ListaNiveladaHeader,Nt as ListaNiveladaRoot,_t as ListaNiveladaTrigger,M as NavigationButton,O as NavigationGrid,G as RadioSelection,N as useListaNiveladaContext};
|
|
1
|
+
import*as We from"react";import{cx as se}from"@xjur-ui/util";import{cx as ut}from"@xjur-ui/util";var Se=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as g,jsxs as lt}from"react/jsx-runtime";function G(){return lt("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),g("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"}),g("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"}),g("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as C,jsxs as Ie}from"react/jsx-runtime";function X(){return Ie("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ie("g",{clipPath:"url(#clip0_19548_42822)",children:[C("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),C("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),C("defs",{children:C("clipPath",{id:"clip0_19548_42822",children:C("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as H,jsxs as pt}from"react/jsx-runtime";function q(){return pt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[H("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("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"}),H("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("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 h,jsxs as Re}from"react/jsx-runtime";function U(){return Re("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Re("g",{clipPath:"url(#clip0_19548_42667)",children:[h("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"}),h("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"}),h("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"}),h("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"}),h("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"}),h("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("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"}),h("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),h("defs",{children:h("clipPath",{id:"clip0_19548_42667",children:h("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as w,jsxs as dt}from"react/jsx-runtime";function $(){return dt("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[w("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"}),w("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"}),w("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"}),w("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"}),w("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),w("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),w("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as _,jsxs as Ve}from"react/jsx-runtime";function J(){return Ve("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ve("g",{clipPath:"url(#clip0_19548_42803)",children:[_("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),_("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),_("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),_("defs",{children:_("clipPath",{id:"clip0_19548_42803",children:_("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as P,jsxs as Be}from"react/jsx-runtime";function K(){return Be("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Be("g",{clipPath:"url(#clip0_19548_42782)",children:[P("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("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"}),P("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"})]}),P("defs",{children:P("clipPath",{id:"clip0_19548_42782",children:P("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as z,jsxs as ct}from"react/jsx-runtime";function Q(){return ct("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[z("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),z("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),z("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),z("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as L,jsxs as Te}from"react/jsx-runtime";function Y(){return Te("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Te("g",{clipPath:"url(#clip0_19548_42757)",children:[L("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),L("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),L("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),L("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"}),L("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),L("defs",{children:L("clipPath",{id:"clip0_19548_42757",children:L("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as N,jsxs as He}from"react/jsx-runtime";function ee(){return He("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[He("g",{clipPath:"url(#clip0_19548_42810)",children:[N("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"}),N("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"}),N("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"})]}),N("defs",{children:N("clipPath",{id:"clip0_19548_42810",children:N("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as b,jsxs as ze}from"react/jsx-runtime";function te(){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_21377_57335)",children:[b("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"}),b("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"}),b("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"}),b("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"}),b("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"}),b("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),b("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),b("defs",{children:b("clipPath",{id:"clip0_21377_57335",children:b("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as R,jsxs as mt}from"react/jsx-runtime";function oe(){return mt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[R("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"}),R("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),R("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),R("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),R("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as v}from"react/jsx-runtime";function Ze({name:e}){switch(e){case"agenda":return v(G,{});case"contencioso":return v(U,{});case"contrato":return v($,{});case"consultivo":return v(q,{});case"xsigner":return v(oe,{});case"procuracao":return v(Y,{});case"xpay":return v(te,{});case"imobiliario":return v(K,{});case"marcasepatentes":return v(Q,{});case"ged":return v(J,{});case"regulatorio":return v(ee,{});case"compliance":return v(X,{});default:return null}}import{jsx as Fe}from"react/jsx-runtime";function m({className:e,filled:t=!1,name:o,...r}){return Se.includes(o)?Fe(Ze,{name:o}):Fe("span",{...r,className:ut("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{Slot as vt}from"@radix-ui/react-slot";import{cva as Ct}from"@xjur-ui/util";import{memo as je,useState as bt}from"react";import*as Z from"@radix-ui/react-tooltip";import{jsx as re}from"react/jsx-runtime";function ht({delayDuration:e=0,...t}){return re(Z.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function ie({...e}){return re(ht,{children:re(Z.Root,{"data-slot":"tooltip",...e})})}import*as Ee from"@radix-ui/react-tooltip";import{jsx as ft}from"react/jsx-runtime";function ae({...e}){return ft(Ee.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as F from"@radix-ui/react-tooltip";import{cx as gt}from"@xjur-ui/util";import{jsx as Ae}from"react/jsx-runtime";function ne({className:e,sideOffset:t=1,variant:o="simple",children:r,...i}){return Ae(F.Portal,{children:Ae(F.Content,{className:gt("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,...i,children:r})})}import{jsx as E,jsxs as xt}from"react/jsx-runtime";var yt=Ct("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),u=je(({variant:e,size:t,weight:o,asChild:r,className:i,children:a,...p})=>E(r?vt:"span",{className:yt({variant:e,size:t,weight:o,className:i}),...p,children:a}));u.displayName="Typography";var kt=je(({children:e,...t})=>{let[o,r]=bt(!1);return xt(ie,{children:[E(ae,{asChild:!0,children:E(u,{onMouseEnter:({currentTarget:a})=>{let p=a.scrollWidth>a.clientWidth;r(p),p?a.style.cursor="pointer":a.style.cursor="text"},...t,children:e})}),o&&E(ne,{children:e})]})});kt.displayName="TruncatedTypography";import{jsx as Oe,jsxs as Lt}from"react/jsx-runtime";function le({label:e,disabled:t=!1,onClick:o,className:r,...i}){let a=We.useCallback(()=>{t||o?.()},[t,o]);return Lt("button",{className:se("group bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed relative flex w-full items-center justify-between rounded-lg p-6 transition-all duration-200",r),disabled:t,type:"button",onClick:a,...i,children:[Oe(u,{className:se("text-left transition-colors"),size:"sm",weight:"medium",children:e}),Oe(m,{className:se("text-sm transition-colors"),name:"chevron_right"})]})}import*as j from"react";import{cx as pe}from"@xjur-ui/util";import{jsx as A,jsxs as wt}from"react/jsx-runtime";function de({items:e,title:t,onItemClick:o,className:r,...i}){let a=j.useCallback(d=>{d.disabled||o?.(d)},[o]),p=j.useMemo(()=>{let d=[...e].sort((n,c)=>n.label.localeCompare(c.label,"pt-BR")),l={};return d.forEach(n=>{let c=n.label.charAt(0).toUpperCase();l[c]||(l[c]=[]),l[c].push(n)}),l},[e]);return wt("div",{className:pe("flex w-full flex-col gap-6",r),...i,children:[A(u,{className:"text-neutral-placeholder",size:"sm",variant:"headline",weight:"normal",children:t}),A("div",{className:pe("flex flex-col gap-6"),children:Object.entries(p).map(([d,l])=>A("div",{className:pe("grid grid-cols-3 gap-2"),children:l.map(n=>A(le,{disabled:n.disabled,label:n.label,onClick:()=>a(n)},n.id))},d))})]})}import*as ce from"react";import{cx as D}from"@xjur-ui/util";import{jsx as M,jsxs as Mt}from"react/jsx-runtime";function me({allowMultiple:e=!1,className:t,columns:o=3,items:r,onValueChange:i,value:a,...p}){let d={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},l=ce.useCallback(n=>{if(e){let c=Array.isArray(a)?a:[];if(c.includes(n)){let x=c.filter(s=>s!==n);i?.(x)}else{let x=[...c,n];i?.(x)}}else i?.(n)},[e,i,a]);return M("div",{className:D("w-full",t),...p,children:M("div",{className:D("grid gap-4",d[o],"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"),children:r.map(n=>M(Pt,{allowMultiple:e,disabled:n.disabled,icon:n.icon,id:n.id,isSelected:e?Array.isArray(a)&&a.includes(n.id):a===n.id,label:n.label,value:n.id,onClick:()=>l(n.id)},n.id))})})}function Pt({disabled:e=!1,icon:t,isSelected:o=!1,label:r,onClick:i}){let a=ce.useCallback(()=>{i?.()},[i]);return Mt("button",{className:D("bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-1-pressed flex cursor-pointer items-center gap-3 rounded-lg p-6 transition-all duration-200",o?"border-primary-alt-idle bg-primary-alt-idle":"bg-layer-1-idle hover:bg-layer-1-hover active:bg-layer-2-pressed",e&&"cursor-not-allowed opacity-50"),disabled:e,type:"button",onClick:a,children:[M("div",{className:D("border-border-layer-1 h-4 w-4 shrink-0 rounded-full border transition-all duration-200",o?"border-primary-alt-idle bg-primary-idle":"border-border-layer-1 bg-layer-1-idle"),children:o&&M("div",{className:"bg-primary-idle border-border-layer-1 h-full w-full scale-50 rounded-full"})}),t&&M(m,{className:D("text-lg",e?"text-gray-400":o?"text-primary-alt-idle":"text-gray-600"),name:t}),M(u,{className:D("flex-1 text-left",e?"text-gray-400":o?"text-primary-idle":"text-gray-700"),size:"sm",weight:"medium",children:r})]})}import*as k from"react";import{cx as zt}from"@xjur-ui/util";import{jsx as _t}from"react/jsx-runtime";function ue({...e}){return _t("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}import{cx as Nt}from"@xjur-ui/util";import{jsx as Dt}from"react/jsx-runtime";function he({className:e,...t}){return Dt("ol",{className:Nt("text-neutral-placeholder flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),"data-slot":"breadcrumb-list",...t})}import{cx as St}from"@xjur-ui/util";import{jsx as It}from"react/jsx-runtime";function fe({className:e,...t}){return It("li",{className:St("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}import{Slot as Rt}from"@radix-ui/react-slot";import{cx as Vt}from"@xjur-ui/util";import{jsx as Ge}from"react/jsx-runtime";function ge({asChild:e,className:t,variant:o="headline",size:r="sm",...i}){return Ge(u,{asChild:!0,size:r,variant:o,children:Ge(e?Rt:"a",{className:Vt("hover:text-neutral-dark transition-colors",t),"data-slot":"breadcrumb-link",...i})})}import{cx as Bt}from"@xjur-ui/util";import{jsx as Tt}from"react/jsx-runtime";function ve({variant:e="headline",size:t="sm",className:o,...r}){return Tt(u,{"aria-current":"page","aria-disabled":"true",className:Bt("text-neutral-dark font-normal",o),"data-slot":"breadcrumb-page",role:"link",size:t,variant:e,...r})}import{cx as Ht}from"@xjur-ui/util";import{jsx as Xe}from"react/jsx-runtime";function Ce({children:e,className:t,...o}){return Xe("li",{"aria-hidden":"true",className:Ht("[&>span]:text-size-title-lg",t),"data-slot":"breadcrumb-separator",role:"presentation",...o,children:e??Xe(m,{name:"chevron_right"})})}import{cx as gi}from"@xjur-ui/util";import{jsx as bi,jsxs as yi}from"react/jsx-runtime";import{jsx as y,jsxs as qe}from"react/jsx-runtime";function Zt({allowMultipleSelection:e=!1,levels:t,currentPath:o,onPathChange:r,selectedValue:i,onSelectionChange:a,className:p,...d}){let l=k.useMemo(()=>{let s=o[o.length-1];return t.find(f=>f.id===s)},[t,o]),n=k.useMemo(()=>o.map((s,f)=>{let W=t.find(st=>st.id===s),nt=f===o.length-1;return{id:s,title:W?.title||s,isLast:nt}}),[o,t]),c=k.useCallback(s=>{let f=o.indexOf(s);if(f!==-1){let W=o.slice(0,f+1);r?.(W)}},[o,r]),I=k.useCallback(s=>{let f=[...o,s.id];r?.(f)},[o,r]),x=k.useCallback(s=>{a?.(s)},[a]);return qe("div",{className:zt("w-full space-y-6",p),...d,children:[o.length>1&&y(ue,{children:y(he,{children:n.map(s=>qe(k.Fragment,{children:[y(fe,{children:s.isLast?y(ve,{children:s.title}):y(ge,{className:"cursor-pointer",onClick:()=>c(s.id),children:s.title})}),!s.isLast&&y(Ce,{})]},s.id))})}),l&&y("div",{className:"space-y-4",children:l.hasRadioSelection&&l.radioItems?y(me,{allowMultiple:e,items:l.radioItems,value:i,onValueChange:x}):y(de,{items:l.items,title:l.title,onItemClick:I})})]})}import"react";import"react";import*as Ue from"@radix-ui/react-dialog";import{jsx as Ft}from"react/jsx-runtime";function be({...e}){return Ft(Ue.Root,{"data-slot":"sheet",...e})}import*as Qe from"@radix-ui/react-dialog";import{tv as Ot}from"@xjur-ui/util";import*as $e from"@radix-ui/react-dialog";import{jsx as Et}from"react/jsx-runtime";function ye({...e}){return Et($e.Portal,{"data-slot":"sheet-portal",...e})}import*as Je from"@radix-ui/react-dialog";import{cx as At}from"@xjur-ui/util";import{jsx as jt}from"react/jsx-runtime";function ke({className:e,...t}){return jt(Je.Overlay,{className:At("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",e),"data-slot":"sheet-overlay",...t})}import{jsx as Ke,jsxs as Wt}from"react/jsx-runtime";function xe({className:e,children:t,side:o="right",overlay:r=!1,...i}){let a=Ot({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return Wt(ye,{children:[r&&Ke(ke,{}),Ke(Qe.Content,{className:a({side:o,className:e}),"data-slot":"sheet-content",...i,children:t})]})}import*as Ye from"@radix-ui/react-dialog";import{jsx as Gt}from"react/jsx-runtime";function Le({...e}){return Gt(Ye.Trigger,{"data-slot":"sheet-trigger",...e})}import{cx as Yi}from"@xjur-ui/util";import*as Xt from"@radix-ui/react-dialog";import{jsx as ta}from"react/jsx-runtime";import{cx as qt}from"@xjur-ui/util";import{jsx as Ut}from"react/jsx-runtime";function we({className:e,...t}){return Ut("div",{className:qt("py-large px-large-2x border-b-border-layer-2 border-b",e),"data-slot":"sheet-header",...t})}import*as et from"@radix-ui/react-dialog";import{Slot as $t}from"@radix-ui/react-slot";import{cva as Jt,cx as Kt}from"@xjur-ui/util";import{jsx as Yt}from"react/jsx-runtime";var Qt=Jt(["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 S({asChild:e,className:t,variant:o="primary",size:r="md",appearance:i="solid",...a}){return Yt(e?$t:"button",{className:Kt(Qt({variant:o,appearance:i,size:r}),t),...a})}import{jsx as Pe}from"react/jsx-runtime";function Me({children:e=Pe(S,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:Pe(m,{className:"text-icon-neutral-3",name:"close"})}),...t}){return Pe(et.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as eo}from"@xjur-ui/util";import{jsx as to}from"react/jsx-runtime";function _e({className:e,...t}){return to("div",{className:eo("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",e),"data-slot":"sheet-footer",...t})}import{cx as oo}from"@xjur-ui/util";import{jsx as ro}from"react/jsx-runtime";function Ne({className:e,...t}){return ro("div",{className:oo("px-large-2x h-full",e),...t})}import{createContext as io,useCallback as tt,useContext as ao,useState as V,useMemo as no}from"react";import{jsx as so}from"react/jsx-runtime";var O=io({});function ot({children:e}){let[t,o]=V("list"),[r,i]=V(!1),[a,p]=V([]),[d,l]=V(["todos"]),[n,c]=V(""),I=tt(f=>{o(f)},[]),x=tt(()=>{i(f=>!f)},[]),s=no(()=>({currentView:t,changeCurrentView:I,isFullscreen:r,changeIsFullscreen:x,selectedItems:a,setSelectedItems:p,currentPath:d,setCurrentPath:l,selectedValue:n,setSelectedValue:c}),[t,I,r,x,a,p,d,l,n,c]);return so(O.Provider,{value:s,children:e})}function B(){let e=ao(O);if(!e)throw new Error("useListaNiveladaContext must be used within a ListaNiveladaProvider");return e}import{jsx as De}from"react/jsx-runtime";function lo({onOpenChange:e,children:t,...o}){return De(ot,{children:De(O.Consumer,{children:r=>De(be,{onOpenChange:i=>{r.changeCurrentView("list"),e?.(i)},...o,children:typeof t=="function"?t(r):t})})})}import{jsx as rt,jsxs as co}from"react/jsx-runtime";function po({children:e=co(S,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[rt(m,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:t=!0,...o}){return rt(Le,{asChild:t,...o,children:e})}import{twMerge as mo}from"@xjur-ui/util";import{jsx as ho}from"react/jsx-runtime";function uo({className:e,side:t="right",...o}){let{currentView:r,isFullscreen:i}=B();return ho(xe,{className:mo("w-[900px] max-w-[1200px] min-w-[900px] data-[fullscreen=true]:w-full data-[fullscreen=true]:max-w-full data-[fullscreen=true]:min-w-full",e),"data-fullscreen":i,"data-view":r,side:t,...o})}import{twMerge as fo}from"@xjur-ui/util";import{jsx as T,jsxs as it}from"react/jsx-runtime";function go({className:e,title:t="Lista nivelada",showCloseButton:o=!0,...r}){let{isFullscreen:i,changeIsFullscreen:a}=B(),p=()=>{a()};return it(we,{className:fo("flex items-center justify-between",e),...r,children:[T(u,{size:"lg",variant:"title",weight:"semibold",children:t}),it("div",{className:"flex items-center gap-2",children:[T("button",{"aria-label":i?"Restaurar janela":"Maximizar janela",className:"rounded-lg p-2 transition-colors hover:bg-gray-100",type:"button",onClick:p,children:T(m,{className:"text-gray-600",name:"expand_content"})}),o&&T("button",{"aria-label":"Fechar",className:"rounded-lg p-2 transition-colors hover:bg-gray-100",type:"button",children:T(m,{className:"text-gray-600",name:"close"})})]})]})}import{twMerge as vo}from"@xjur-ui/util";import{jsx as bo}from"react/jsx-runtime";function Co({className:e,...t}){return bo(Ne,{className:vo("flex-1 overflow-auto",e),...t})}import{twMerge as yo}from"@xjur-ui/util";import{jsx as xo}from"react/jsx-runtime";function ko({className:e,...t}){return xo(_e,{className:yo("flex items-center justify-between border-t border-gray-200 pt-4",e),...t})}import{jsx as at}from"react/jsx-runtime";function Lo({children:e="Cancelar",...t}){return at(Me,{asChild:!0,children:at(S,{variant:"secondary",...t,children:e})})}export{Zt as HierarchicalNavigation,Co as ListaNiveladaBody,Lo as ListaNiveladaCloseButton,uo as ListaNiveladaContent,ko as ListaNiveladaFooter,go as ListaNiveladaHeader,lo as ListaNiveladaRoot,po as ListaNiveladaTrigger,le as NavigationButton,de as NavigationGrid,me as RadioSelection,B as useListaNiveladaContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{twMerge as
|
|
1
|
+
import{twMerge as f}from"@xjur-ui/util";import"react";import*as r from"@radix-ui/react-dialog";import{jsx as v}from"react/jsx-runtime";import*as l from"@radix-ui/react-dialog";import{tv as V}from"@xjur-ui/util";import*as i from"@radix-ui/react-dialog";import{jsx as _}from"react/jsx-runtime";import*as n from"@radix-ui/react-dialog";import{cx as b}from"@xjur-ui/util";import{jsx as D}from"react/jsx-runtime";import{jsx as Z,jsxs as j}from"react/jsx-runtime";import*as d from"@radix-ui/react-dialog";import{jsx as z}from"react/jsx-runtime";import{cx as A}from"@xjur-ui/util";import*as p from"@radix-ui/react-dialog";import{jsx as W}from"react/jsx-runtime";import{cx as G}from"@xjur-ui/util";import{jsx as $}from"react/jsx-runtime";import*as h from"@radix-ui/react-dialog";import{Slot as Q}from"@radix-ui/react-slot";import{cva as c,cx as Y}from"@xjur-ui/util";import{jsx as o1}from"react/jsx-runtime";var e1=c(["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"}});import{cx as Ve}from"@xjur-ui/util";import{jsx as a1,jsxs as s1}from"react/jsx-runtime";import{jsx as p1,jsxs as c1}from"react/jsx-runtime";import{jsx as u1,jsxs as f1}from"react/jsx-runtime";import{jsx as g1,jsxs as v1}from"react/jsx-runtime";import{jsx as _1,jsxs as M1}from"react/jsx-runtime";import{jsx as x1,jsxs as D1}from"react/jsx-runtime";import{jsx as V1,jsxs as S1}from"react/jsx-runtime";import{jsx as Z1,jsxs as j1}from"react/jsx-runtime";import{jsx as z1,jsxs as T1}from"react/jsx-runtime";import{jsx as N1,jsxs as W1}from"react/jsx-runtime";import{jsx as G1,jsxs as q1}from"react/jsx-runtime";import{jsx as K1,jsxs as Q1}from"react/jsx-runtime";import{jsx as ye}from"react/jsx-runtime";import{jsx as Ze}from"react/jsx-runtime";import{jsx as Ne}from"react/jsx-runtime";import{cx as Xe}from"@xjur-ui/util";import{jsx as qe}from"react/jsx-runtime";import{cx as m}from"@xjur-ui/util";import{jsx as u}from"react/jsx-runtime";function o({className:e,...t}){return u("div",{className:m("px-large-2x h-full",e),...t})}import{jsx as k}from"react/jsx-runtime";function gt({className:e,...t}){return k(o,{className:f("flex-1 overflow-auto",e),...t})}export{gt as ListaNiveladaBody};
|