@ufal-lccv/gpsub-ds 0.2.21 → 0.2.22
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/dist/{GenericAGGridTable-BlNFcg7w.cjs → GenericAGGridTable-C0wgdDMH.cjs} +13 -8
- package/dist/{GenericAGGridTable-DhoElCMW.js → GenericAGGridTable-DibITqf6.js} +79 -54
- package/dist/{RequiredLabel.view-CGImnWnk.js → RequiredLabel.view-B6q8CkiT.js} +11 -11
- package/dist/{RequiredLabel.view-CxoGqa8A.cjs → RequiredLabel.view-_hrKTGYl.cjs} +1 -1
- package/dist/{Table.view-DGP4M7Q-.cjs → Table.view-Dp_I_gpE.cjs} +1 -1
- package/dist/{Table.view-DbYZdRYy.js → Table.view-Dy0Bn4JZ.js} +57 -57
- package/dist/{Title.view-DUVXSFKz.cjs → Title.view-DMHCWGuh.cjs} +1 -1
- package/dist/{Title.view-BfFcFH5O.js → Title.view-U5Qir6tc.js} +3 -3
- package/dist/components/atoms/Container/Container.view.d.ts +5 -0
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +7 -7
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +10 -10
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.es.js +8 -8
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +17 -17
- package/package.json +2 -2
|
@@ -735,7 +735,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
735
735
|
`}
|
|
736
736
|
`,sbe=Le`
|
|
737
737
|
${({variant:e,disabled:t,isSelected:n,buttonType:r,iconColor:o,hasSelectedIcon:i,hasHoverIcon:a})=>e==="select"&&!t&&n&&Le`
|
|
738
|
-
background-color:
|
|
738
|
+
background-color: #d8e0ea;
|
|
739
739
|
border: ${r==="primary"?`${C.borders.borderWidth.borderWidthThinner} solid ${C.colors.brandColors.colorBrandPrimary}`:"none"};
|
|
740
740
|
|
|
741
741
|
& > .hover-icon {
|
|
@@ -788,7 +788,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
&:active {
|
|
791
|
-
background-color:
|
|
791
|
+
background-color: #d8e0ea;
|
|
792
792
|
border: ${t==="primary"?`${C.borders.borderWidth.borderWidthThinner} solid ${C.colors.brandColors.colorBrandPrimary}`:"none"};
|
|
793
793
|
|
|
794
794
|
& > .selected-icon {
|
|
@@ -805,7 +805,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
805
805
|
}
|
|
806
806
|
`:Le`
|
|
807
807
|
&:active {
|
|
808
|
-
background-color:
|
|
808
|
+
background-color: #d8e0ea;
|
|
809
809
|
border: ${t==="primary"?`${C.borders.borderWidth.borderWidthThinner} solid ${C.colors.brandColors.colorBrandPrimary}`:"none"};
|
|
810
810
|
|
|
811
811
|
& > .default-icon {
|
|
@@ -8065,7 +8065,7 @@ echarts.use([`+R+"]);":"Unknown series "+T))}return}if(d==="tooltip"){if(b){proc
|
|
|
8065
8065
|
font-weight: ${C.fonts.fontWeight.fontWeightRegular};
|
|
8066
8066
|
font-size: ${C.fonts.fontSize.fontSizeBodyMd};
|
|
8067
8067
|
line-height: 16px;
|
|
8068
|
-
`,llt=({buttons:e,activeIndex:t,onActiveIndexChange:n,className:r,"aria-label":o})=>{const[
|
|
8068
|
+
`,llt=({buttons:e,activeIndex:t,onActiveIndexChange:n,className:r,"aria-label":o,"data-cy":i,"data-testid":a})=>{const[s,l]=I.useState(0),c=t!==void 0,u=c?t:s,d=I.useCallback((h,p)=>{var f,m;e[h].disabled||(c||l(h),n&&n(h),e[h].onClick&&((m=(f=e[h]).onClick)==null||m.call(f,h,p)))},[e,c,n]);return me(ilt,{className:r,role:"group","aria-label":o||"Segmented button","data-testid":a,"data-cy":i,children:e.map((h,p)=>{const f=u===p,m=h["aria-label"]||h.label,v=ct(alt,{onClick:y=>d(p,y),active:f,disabled:h.disabled,role:"button","aria-pressed":f,"aria-disabled":h.disabled,"aria-label":m,"data-testid":a?`${a}-button-${p}`:void 0,"data-cy":i?`${i}-button-${p}`:void 0,children:[!!h.iconName&&me(Lo,{iconName:h.iconName,color:"currentcolor"}),!!h.label&&me(slt,{children:h.label})]},h.tooltipProps?void 0:`segmented-btn-${p}-${h.label||"icon"}`);return h.tooltipProps?me(Co,{position:"bottom",...h.tooltipProps,children:v},`segmented-btn-${p}-${h.label||"icon"}`):v})})},Cy={xl:"40px",lg:"32px",md:"24px",ant:"20px",sm:"16px"};var Em={exports:{}},ir={};/**
|
|
8069
8069
|
* @license React
|
|
8070
8070
|
* react-is.production.min.js
|
|
8071
8071
|
*
|
|
@@ -8388,7 +8388,12 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
8388
8388
|
overflow-x: ${t};
|
|
8389
8389
|
overflow-y: ${n};
|
|
8390
8390
|
`}};
|
|
8391
|
-
|
|
8391
|
+
${({query:e})=>{if(e){let t="";return Object.entries(e.styles||{}).forEach(([n,r])=>{t+=`${n.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${typeof r=="number"?`${r}px`:r};`}),nt`
|
|
8392
|
+
@media (${e.type}: ${e.pixel}) {
|
|
8393
|
+
${nt(...t)}
|
|
8394
|
+
}
|
|
8395
|
+
`}}}
|
|
8396
|
+
`,En=I.forwardRef(({title:e,width:t="fit-content",height:n="fit-content",flex:r="none",padding:o="0px",direction:i="vertical",gap:a="0px",horizontalAlign:s="left",verticalAlign:l="top",scroll:c="hidden",minWidth:u="initial",minHeight:d="initial",wrap:h="nowrap",backgroundColor:p,customStyles:f,onClick:m,children:v,query:y,...w},b)=>oe.jsx(u2t,{ref:b,title:e,width:t,minWidth:u,height:n,minHeight:d,flex:r,padding:o,direction:i,gap:a,horizontalAlign:s,verticalAlign:l,scroll:c,wrap:h,backgroundColor:p,style:{cursor:m?"pointer":void 0,...f||{}},onClick:m,query:y,...w,children:v}));En.displayName="Container";var CM={exports:{}};/*!
|
|
8392
8397
|
Copyright (c) 2018 Jed Watson.
|
|
8393
8398
|
Licensed under the MIT License (MIT), see
|
|
8394
8399
|
http://jedwatson.github.io/classnames
|
|
@@ -9736,7 +9741,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9736
9741
|
width: 100%;
|
|
9737
9742
|
height: ${({size:e})=>e==="Small"?"32px":"40px"};
|
|
9738
9743
|
margin-top: ${({hasLabel:e})=>e&&parseFloat(C.fonts.fontSize.fontSizeBodyMd)+parseFloat(C.fonts.lineHeight.lineHeightSm(C.fonts.fontSize.fontSizeBodyMd))/2+"rem"};
|
|
9739
|
-
`,Hoe=I.forwardRef(({idCalendar:e,date:t,valueInput:n,setValueInput:r,onClick:o,label:i,errorMessage:a,disabled:s,disabledInputOnly:l,size:c="Medium",width:u,flex:d,placeholderText:h,helperText:p,inputProps:f,setStartDate:m,setDateRange:v,selectsRange:y,calendarRef:w,onChangeHandleDate:b,tooltipProps:x={},readonly:S,onBlur:k,startDate:E,endDate:_,openCalendarOnInputClick:D,yearFormat:H,isRequired:T},R)=>{const{CalendarIcon:F,handleDate:N,handleDateRange:$}=u0t(c,m,v,b,n,r,H);let U=(()=>{if(y){const G=E?l3(E,H):"",K=_?l3(_,H):"";return G&&K?`${G} - ${K}`:G||K}else return n||l3(t,H)})()||"";U&&y&&!U.includes(" - ")&&(U=` ${U} - ${U} `);const Y=!!a,ue=y?[/[0-3]/,/\d/,"/",/[0-1]/,/\d/,"/",/\d/,/\d/,/\d/,/\d/," ","-"," ",/[0-3]/,/\d/,"/",/[0-1]/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]:[/[0-3]/,/\d/,"/",/[0-1]/,/\d/,"/",/\d/,/\d/,/\d/,/\d/];return oe.jsxs(d0t,{width:u,flex:d,disabled:s,readonly:S,ref:R,children:[i&&oe.jsxs(h0t,{id:"input-calendar","data-testid":"label-calendar",children:[i,T?oe.jsx(g7,{}):null]}),D&&oe.jsx(C0t,{hasLabel:!!i,size:c,onClick:o,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&o&&o()},"aria-label":"Open calendar"}),oe.jsx(Zo,{isActive:Y,isErrorTooltip:!0,label:a,width:"max-content",wrapperWidth:"auto",...x,children:oe.jsxs(p0t,{htmlFor:"input-calendar",disabled:s,readonly:S,"data-testid":"shape",size:c,error:Y,withPlaceholder:h,children:[oe.jsx(c0t,{mask:ue,"data-testid":"inputCalendar",id:`calendar-${e}`,disabled:s||l,disabledInputOnly:l,type:"text",readOnly:S,onBlur:G=>{k&&k(G)},placeholder:h,size:c,value:U,ref:f==null?void 0:f.ref,onChange:G=>{r(G.target.value),y?$(G.target.value):N(G.target.value)},render:(G,K)=>oe.jsx(g0t,{ref:G,...K}),autoComplete:"off"}),oe.jsx(m0t,{size:c,ref:w,id:`calendarButton-${e}`,disabled:s,readonly:S,onClick:()=>{!s&&!S&&(o==null||o())},children:F})]})}),p&&oe.jsx(f0t,{children:p})]})});Hoe.displayName="inputCalendar";var v0t={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},y0t=function(t,n,r){var o,i=v0t[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+o:"há "+o:o},w0t={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},b0t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},x0t={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S0t={date:W6({formats:w0t,defaultWidth:"full"}),time:W6({formats:b0t,defaultWidth:"full"}),dateTime:W6({formats:x0t,defaultWidth:"full"})},k0t={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},M0t=function(t,n,r,o){var i=k0t[t];return typeof i=="function"?i(n):i},E0t={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},L0t={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},_0t={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},D0t={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},V0t={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},H0t={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},T0t=function(t,n){var r=Number(t);return(n==null?void 0:n.unit)==="week"?r+"ª":r+"º"},R0t={ordinalNumber:T0t,era:pl({values:E0t,defaultWidth:"wide"}),quarter:pl({values:L0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:pl({values:_0t,defaultWidth:"wide"}),day:pl({values:D0t,defaultWidth:"wide"}),dayPeriod:pl({values:V0t,defaultWidth:"wide",formattingValues:H0t,defaultFormattingWidth:"wide"})},P0t=/^(\d+)[ºªo]?/i,I0t=/\d+/i,F0t={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},A0t={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},N0t={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},O0t={any:[/1/i,/2/i,/3/i,/4/i]},B0t={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},$0t={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},z0t={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Z0t={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},W0t={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},G0t={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},j0t={ordinalNumber:jre({matchPattern:P0t,parsePattern:I0t,valueCallback:function(t){return parseInt(t,10)}}),era:fl({matchPatterns:F0t,defaultMatchWidth:"wide",parsePatterns:A0t,defaultParseWidth:"any"}),quarter:fl({matchPatterns:N0t,defaultMatchWidth:"wide",parsePatterns:O0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:fl({matchPatterns:B0t,defaultMatchWidth:"wide",parsePatterns:$0t,defaultParseWidth:"any"}),day:fl({matchPatterns:z0t,defaultMatchWidth:"wide",parsePatterns:Z0t,defaultParseWidth:"any"}),dayPeriod:fl({matchPatterns:W0t,defaultMatchWidth:"any",parsePatterns:G0t,defaultParseWidth:"any"})},U0t={code:"pt-BR",formatDistance:y0t,formatLong:S0t,formatRelative:M0t,localize:R0t,match:j0t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const RG=/^(?<start>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))(\s-\s(?<end>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])))?$/,PG=e=>{var r,o;let t=null,n=null;if(e instanceof Date)return[e,null];if(e==="")t=null,n=null;else if(RG.test(e)){const i=e.match(RG);t=((r=i==null?void 0:i.groups)==null?void 0:r.start)||null,n=((o=i==null?void 0:i.groups)==null?void 0:o.end)||null}return[t!==null?ft.stringToUtcDate(t):null,n!==null?ft.stringToUtcDate(n):null]},Y0t=e=>{bdt("pt-BR",U0t);const t=b=>({sábado:"S","sexta-feira":"S","quinta-feira":"Q","quarta-feira":"Q","terça-feira":"T","segunda-feira":"S",domingo:"D"})[b],[n,r]=I.useState(PG(e)),[o,i]=I.useState((n==null?void 0:n.at(0))||null),[a,s]=n,[l,c]=I.useState(),[u,d]=I.useState(!1),[h,p]=I.useState(!1),[f,m]=I.useState(""),v=I.useRef(null),y=b=>{h&&(p(!1),d(!0)),u&&d(!1),i(b)};return I.useEffect(()=>{if(e==="")i(null),r([null,null]);else{const[b,x]=PG(e);i(b),r([b,x])}},[e]),I.useEffect(()=>{var b;(h||u)&&((b=v==null?void 0:v.current)==null||b.click())},[u,h]),(()=>{let b=document.getElementsByClassName("react-datepicker-popper");for(let x of b)x.style.position="fixed",x.style.zIndex="10"})(),{formatWeekDay:t,startDate:o,handleDate:y,calendarRef:v,isSelectYear:h,setIsSelectYear:p,isSelectMonth:u,setIsSelectMonth:d,startDateRange:a,endDateRange:s,dateRange:n,setDateRange:r,selectedMonth:l,setSelectedMonth:c,setStartDate:i,setValueInput:m,valueInput:f}},Toe=I.forwardRef(({withFilter:e=!0,selectsRange:t=!1,multipleMonth:n=!1,width:r="100%",flex:o,placeholder:i,label:a,isRequired:s,errorMessage:l,size:c,value:u,openToDate:d,helperText:h,idCalendar:p,disabled:f=!1,onChangeHandleDate:m,readonly:v,onBlur:y,openCalendarOnInputClick:w=!1,position:b="auto",yearFormat:x="yyyy",...S},k)=>{const{formatWeekDay:E,startDate:_,handleDate:D,calendarRef:H,isSelectYear:T,setIsSelectYear:R,isSelectMonth:F,setIsSelectMonth:N,startDateRange:$,endDateRange:W,setDateRange:U,selectedMonth:Y,setSelectedMonth:ce,setStartDate:X,setValueInput:ue,valueInput:G}=Y0t(u),K=b==="auto"?"bottom-end":`${b}`,ie=[{name:"preventOverflow",options:{mainAxis:b!=="auto"}},{name:"flip",enabled:b==="auto"}];let de=d;return typeof d=="string"&&(de=ft.stringToUtcDate(d)),oe.jsx(Udt,{width:r,flex:o,children:oe.jsx(Gdt,{dateFormat:"dd/MM/yyyy",closeOnScroll:b!=="auto",selected:_,renderCustomHeader:({date:Z,decreaseMonth:be,increaseMonth:J,changeYear:Ce,changeMonth:ve,customHeaderCount:pe})=>(ce(Z),oe.jsx(i0t,{date:Z,decreaseMonth:be,increaseMonth:J,changeYear:Ce,changeMonth:ve,isSelectMonth:F,setIsSelectMonth:N,isSelectYear:T,setIsSelectYear:R,customHeaderCount:pe,multipleMonth:n,selectsRange:t})),calendarContainer:Z=>oe.jsx(t0t,{...Z,withFilter:e,selectsRange:t,setDateRange:be=>{m==null||m(be.map(J=>l3(J)).join(" - ")),U(be)},month:Y,multipleMonth:n}),customInput:oe.jsx(Hoe,{yearFormat:x,date:u??null,valueInput:G,setValueInput:ue,width:r,placeholderText:i,label:a,isRequired:s,size:c,onBlur:y,errorMessage:l,readonly:v,helperText:h,inputProps:{...S,ref:k},idCalendar:p,setStartDate:X,setDateRange:U,selectsRange:t,calendarRef:H,onChangeHandleDate:m,disabled:f,endDate:W,startDate:$,openCalendarOnInputClick:w}),calendarClassName:"custom-datepicker",formatWeekDay:Z=>E(Z),showYearPicker:T,showMonthYearPicker:F,selectsRange:t,startDate:t&&$,endDate:t&&W,monthsShown:n?2:1,onChange:async Z=>{(t?U:D)(Z),m==null||m(l3(Z)),ue("")},disabled:f,locale:"pt-BR",popperPlacement:K,popperModifiers:ie,focusSelectedMonth:n,openToDate:_??de})})});Toe.displayName="datePicker";const IG=e=>g.createElement("svg",{width:10,height:12,viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M3.15 7.33333L4.66667 6.41667L6.18333 7.33333L5.78333 5.6L7.11667 4.45L5.36667 4.3L4.66667 2.66667L3.96667 4.3L2.21667 4.45L3.55 5.6L3.15 7.33333ZM0 12V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H8C8.36667 0 8.68056 0.130556 8.94167 0.391667C9.20278 0.652778 9.33333 0.966667 9.33333 1.33333V12L4.66667 10L0 12ZM1.33333 9.96667L4.66667 8.53333L8 9.96667V1.33333H1.33333V9.96667Z",fill:"#67738B"}));var q0t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M13.467 18.754 16.5 16.92l3.033 1.833-.8-3.466 2.667-2.3-3.5-.3-1.4-3.267-1.4 3.267-3.5.3 2.667 2.3zm-6.3 9.333V6.197q0-.9.66-1.56.663-.66 1.562-.661h14.222q.9 0 1.561.66.661.662.661 1.562v21.889l-9.333-4zm2.222-3.378 7.111-3.022 7.111 3.022V6.198H9.389z"})}),X0t=q0t,K0t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m11.567 22.489 4.933-4.934 4.933 4.933 1.556-1.555L18.056 16l4.933-4.934-1.556-1.555-4.933 4.933-4.933-4.933-1.556 1.555L14.945 16l-4.934 4.933zm4.933 6.844q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05m0-2.222q4.644 0 7.878-3.245T27.61 16q0-4.645-3.233-7.878T16.5 4.888q-4.622 0-7.867 3.234T5.39 16q0 4.621 3.244 7.866t7.867 3.245"})}),Q0t=K0t,J0t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m11.567 22.489 4.933-4.934 4.933 4.933 1.556-1.555L18.056 16l4.933-4.934-1.556-1.555-4.933 4.933-4.933-4.933-1.556 1.555L14.945 16l-4.934 4.933zm4.933 6.844q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05"})}),e5t=J0t,t5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m14.567 22.089 9.422-9.423-1.645-1.622-7.777 7.778-3.934-3.933-1.622 1.622zm1.933 7.244q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05m0-2.222q4.644 0 7.878-3.245T27.61 16q0-4.645-3.233-7.878T16.5 4.888q-4.622 0-7.867 3.234T5.39 16q0 4.621 3.244 7.866t7.867 3.245"})}),n5t=t5t,r5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m14.567 22.089 9.422-9.423-1.645-1.622-7.777 7.778-3.934-3.933-1.622 1.622zm1.933 7.244q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05"})}),o5t=r5t,i5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m8.878 25.177-1.556-1.555 7.623-7.623-7.623-7.622 1.556-1.555 7.622 7.622 7.622-7.622 1.556 1.555L18.056 16l7.622 7.623-1.556 1.555-7.622-7.622z"})}),dD=i5t,a5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M11.167 24.889q-.9 0-1.561-.662-.662-.66-.662-1.56V4.887q0-.9.662-1.56.66-.662 1.56-.662h13.779q.9 0 1.56.661.662.661.662 1.561v17.778q0 .9-.661 1.561-.662.662-1.561.662zm0-2.223h13.778V4.888H11.167zm-4.445 6.667q-.9 0-1.56-.661-.663-.66-.662-1.561v-20h2.222v20h16v2.222z"})}),s5t=a5t,l5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M6.722 28q-.944 0-1.583-.64-.639-.638-.639-1.582V6.221q0-.945.639-1.583.64-.64 1.583-.64h6.345q.278-1.166 1.244-1.916.967-.75 2.189-.75 1.245 0 2.206.75T19.944 4h6.334q.945 0 1.583.639.639.638.639 1.583v19.556q0 .944-.639 1.583-.64.639-1.583.639zm0-2.222h19.556V6.221h-2.222v3.333H8.944V6.222H6.722zM16.5 6.221q.566 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.384.383.95.383"})}),c5t=l5t,u5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M16.5 22.666q.5 0 .839-.338t.339-.84a1.14 1.14 0 0 0-.339-.838 1.14 1.14 0 0 0-.838-.34 1.14 1.14 0 0 0-.84.34 1.14 1.14 0 0 0-.339.838q0 .5.339.84.338.338.839.338m-1.044-5.178h2.222V9.2h-2.222zm1.05 11.845q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055m.005-2.222q4.634 0 7.867-3.245t3.233-7.877q0-4.635-3.229-7.867-3.23-3.234-7.882-3.234-4.622 0-7.867 3.23Q5.39 11.346 5.39 16q0 4.621 3.244 7.866t7.878 3.245"})}),d5t=u5t,h5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M16.5 22.666q.5 0 .839-.338t.339-.84a1.14 1.14 0 0 0-.339-.838 1.14 1.14 0 0 0-.838-.34 1.14 1.14 0 0 0-.84.34 1.14 1.14 0 0 0-.339.838q0 .5.339.84.338.338.839.338m-1.044-5.178h2.222V9.2h-2.222zm1.05 11.845q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055"})}),p5t=h5t,f5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M10.078 20.5 8.5 18.922l8-8 8 7.978-1.578 1.577-6.422-6.422z"})}),g5t=f5t,m5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m16.5 20.5-8-8 1.578-1.578 6.422 6.444 6.422-6.422 1.578 1.578z"})}),C5t=m5t,v5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M5.389 26.666q-.878 0-1.55-.672t-.672-1.55V7.555q0-.878.672-1.55t1.55-.672H14.3l2.222 2.222h11.09q.876 0 1.55.672.67.673.671 1.55H15.578l-2.222-2.222H5.389v16.89L8.722 12h23.111l-3.522 13.01q-.222.823-.817 1.24-.594.416-1.438.416zm2.333-2.222h18.445l2.666-10.222H10.39z"})}),y5t=v5t,w5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M15.456 22.666h2.222v-8h-2.222zM16.5 12.133q.5 0 .839-.332t.339-.824q0-.51-.339-.855a1.13 1.13 0 0 0-.838-.345 1.13 1.13 0 0 0-.84.345q-.339.345-.339.855 0 .491.339.824.338.332.839.332m.006 17.2q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055m.005-2.222q4.634 0 7.867-3.245t3.233-7.877q0-4.635-3.229-7.867-3.23-3.234-7.882-3.234-4.622 0-7.867 3.23Q5.39 11.346 5.39 16q0 4.621 3.244 7.866t7.878 3.245"})}),b5t=w5t,x5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M15.456 22.666h2.222v-8h-2.222zM16.5 12.133q.5 0 .839-.332t.339-.824q0-.51-.339-.855a1.13 1.13 0 0 0-.838-.345 1.13 1.13 0 0 0-.84.345q-.339.345-.339.855 0 .491.339.824.338.332.839.332m.006 17.2q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055"})}),VR=x5t,S5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M9.833 22.754q.567 0 .95-.384a1.3 1.3 0 0 0 .384-.95 1.3 1.3 0 0 0-.384-.95 1.3 1.3 0 0 0-.95-.383 1.3 1.3 0 0 0-.95.383 1.3 1.3 0 0 0-.383.95q0 .567.383.95.384.384.95.384M8.5 17.42h2.667v-8H8.5zm6.667 5.334H24.5v-2.667h-9.333zm0-5.334H24.5v-2.666h-9.333zm0-5.333H24.5V9.42h-9.333zm-9.334 16a2.57 2.57 0 0 1-1.883-.783 2.57 2.57 0 0 1-.783-1.884V6.754q0-1.101.783-1.884a2.57 2.57 0 0 1 1.883-.783h21.334q1.099 0 1.883.783.783.783.783 1.884V25.42q0 1.1-.783 1.884a2.57 2.57 0 0 1-1.883.783zm0-2.667h21.334V6.754H5.833z"})}),k5t=S5t,M5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M1.92 28 16.587 2.667 31.254 28zm4.6-2.667h20.134L16.587 8zM16.587 24q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.383.383.95.383m-1.333-4h2.666v-6.667h-2.667z"})}),E5t=M5t,L5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M1.833 28.087 16.5 2.754l14.667 25.333zm14.667-4q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.384.383.95.383m-1.333-4h2.666V13.42h-2.666z"})}),_5t=L5t;const D5t=He.nav`
|
|
9744
|
+
`,Hoe=I.forwardRef(({idCalendar:e,date:t,valueInput:n,setValueInput:r,onClick:o,label:i,errorMessage:a,disabled:s,disabledInputOnly:l,size:c="Medium",width:u,flex:d,placeholderText:h,helperText:p,inputProps:f,setStartDate:m,setDateRange:v,selectsRange:y,calendarRef:w,onChangeHandleDate:b,tooltipProps:x={},readonly:S,onBlur:k,startDate:E,endDate:_,openCalendarOnInputClick:D,yearFormat:H,isRequired:T},R)=>{const{CalendarIcon:F,handleDate:N,handleDateRange:$}=u0t(c,m,v,b,n,r,H);let U=(()=>{if(y){const G=E?l3(E,H):"",K=_?l3(_,H):"";return G&&K?`${G} - ${K}`:G||K}else return n||l3(t,H)})()||"";U&&y&&!U.includes(" - ")&&(U=` ${U} - ${U} `);const Y=!!a,ue=y?[/[0-3]/,/\d/,"/",/[0-1]/,/\d/,"/",/\d/,/\d/,/\d/,/\d/," ","-"," ",/[0-3]/,/\d/,"/",/[0-1]/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]:[/[0-3]/,/\d/,"/",/[0-1]/,/\d/,"/",/\d/,/\d/,/\d/,/\d/];return oe.jsxs(d0t,{width:u,flex:d,disabled:s,readonly:S,ref:R,children:[i&&oe.jsxs(h0t,{id:"input-calendar","data-testid":"label-calendar",children:[i,T?oe.jsx(g7,{}):null]}),D&&oe.jsx(C0t,{hasLabel:!!i,size:c,onClick:o,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&o&&o()},"aria-label":"Open calendar"}),oe.jsx(Zo,{isActive:Y,isErrorTooltip:!0,label:a,width:"max-content",wrapperWidth:"auto",...x,children:oe.jsxs(p0t,{htmlFor:"input-calendar",disabled:s,readonly:S,"data-testid":"shape",size:c,error:Y,withPlaceholder:h,children:[oe.jsx(c0t,{mask:ue,"data-testid":"inputCalendar",id:`calendar-${e}`,disabled:s||l,disabledInputOnly:l,type:"text",readOnly:S,onBlur:G=>{k&&k(G)},placeholder:h,size:c,value:U,ref:f==null?void 0:f.ref,onChange:G=>{r(G.target.value),y?$(G.target.value):N(G.target.value)},render:(G,K)=>oe.jsx(g0t,{ref:G,...K}),autoComplete:"off"}),oe.jsx(m0t,{size:c,ref:w,id:`calendarButton-${e}`,disabled:s,readonly:S,onClick:()=>{!s&&!S&&(o==null||o())},children:F})]})}),p&&oe.jsx(f0t,{children:p})]})});Hoe.displayName="inputCalendar";var v0t={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},y0t=function(t,n,r){var o,i=v0t[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+o:"há "+o:o},w0t={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},b0t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},x0t={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S0t={date:W6({formats:w0t,defaultWidth:"full"}),time:W6({formats:b0t,defaultWidth:"full"}),dateTime:W6({formats:x0t,defaultWidth:"full"})},k0t={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},M0t=function(t,n,r,o){var i=k0t[t];return typeof i=="function"?i(n):i},E0t={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},L0t={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},_0t={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},D0t={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},V0t={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},H0t={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},T0t=function(t,n){var r=Number(t);return(n==null?void 0:n.unit)==="week"?r+"ª":r+"º"},R0t={ordinalNumber:T0t,era:pl({values:E0t,defaultWidth:"wide"}),quarter:pl({values:L0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:pl({values:_0t,defaultWidth:"wide"}),day:pl({values:D0t,defaultWidth:"wide"}),dayPeriod:pl({values:V0t,defaultWidth:"wide",formattingValues:H0t,defaultFormattingWidth:"wide"})},P0t=/^(\d+)[ºªo]?/i,I0t=/\d+/i,F0t={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},A0t={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},N0t={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},O0t={any:[/1/i,/2/i,/3/i,/4/i]},B0t={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},$0t={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},z0t={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Z0t={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},W0t={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},G0t={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},j0t={ordinalNumber:jre({matchPattern:P0t,parsePattern:I0t,valueCallback:function(t){return parseInt(t,10)}}),era:fl({matchPatterns:F0t,defaultMatchWidth:"wide",parsePatterns:A0t,defaultParseWidth:"any"}),quarter:fl({matchPatterns:N0t,defaultMatchWidth:"wide",parsePatterns:O0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:fl({matchPatterns:B0t,defaultMatchWidth:"wide",parsePatterns:$0t,defaultParseWidth:"any"}),day:fl({matchPatterns:z0t,defaultMatchWidth:"wide",parsePatterns:Z0t,defaultParseWidth:"any"}),dayPeriod:fl({matchPatterns:W0t,defaultMatchWidth:"any",parsePatterns:G0t,defaultParseWidth:"any"})},U0t={code:"pt-BR",formatDistance:y0t,formatLong:S0t,formatRelative:M0t,localize:R0t,match:j0t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const RG=/^(?<start>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))(\s-\s(?<end>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])))?$/,PG=e=>{var r,o;let t=null,n=null;if(e===null)return[null,null];if(e instanceof Date)return[e,null];if(e==="")t=null,n=null;else if(RG.test(e)){const i=e.match(RG);t=((r=i==null?void 0:i.groups)==null?void 0:r.start)||null,n=((o=i==null?void 0:i.groups)==null?void 0:o.end)||null}else if(e!=null&&e.includes(" - ")){const[i,a]=e.split(" - ");t=i,n=a}return[t!==null?ft.stringToUtcDate(t):null,n!==null?ft.stringToUtcDate(n):null]},Y0t=e=>{bdt("pt-BR",U0t);const t=b=>({sábado:"S","sexta-feira":"S","quinta-feira":"Q","quarta-feira":"Q","terça-feira":"T","segunda-feira":"S",domingo:"D"})[b],[n,r]=I.useState(PG(e)),[o,i]=I.useState((n==null?void 0:n.at(0))||null),[a,s]=n,[l,c]=I.useState(),[u,d]=I.useState(!1),[h,p]=I.useState(!1),[f,m]=I.useState(""),v=I.useRef(null),y=b=>{h&&(p(!1),d(!0)),u&&d(!1),i(b)};return I.useEffect(()=>{if(e==="")i(null),r([null,null]);else{const[b,x]=PG(e);i(b),r([b,x])}},[e]),I.useEffect(()=>{var b;(h||u)&&((b=v==null?void 0:v.current)==null||b.click())},[u,h]),(()=>{let b=document.getElementsByClassName("react-datepicker-popper");for(let x of b)x.style.position="fixed",x.style.zIndex="10"})(),{formatWeekDay:t,startDate:o,handleDate:y,calendarRef:v,isSelectYear:h,setIsSelectYear:p,isSelectMonth:u,setIsSelectMonth:d,startDateRange:a,endDateRange:s,dateRange:n,setDateRange:r,selectedMonth:l,setSelectedMonth:c,setStartDate:i,setValueInput:m,valueInput:f}},Toe=I.forwardRef(({withFilter:e=!0,selectsRange:t=!1,multipleMonth:n=!1,width:r="100%",flex:o,placeholder:i,label:a,isRequired:s,errorMessage:l,size:c,value:u,openToDate:d,helperText:h,idCalendar:p,disabled:f=!1,onChangeHandleDate:m,readonly:v,onBlur:y,openCalendarOnInputClick:w=!1,position:b="auto",yearFormat:x="yyyy",...S},k)=>{const{formatWeekDay:E,startDate:_,handleDate:D,calendarRef:H,isSelectYear:T,setIsSelectYear:R,isSelectMonth:F,setIsSelectMonth:N,startDateRange:$,endDateRange:W,setDateRange:U,selectedMonth:Y,setSelectedMonth:ce,setStartDate:X,setValueInput:ue,valueInput:G}=Y0t(u),K=b==="auto"?"bottom-end":`${b}`,ie=[{name:"preventOverflow",options:{mainAxis:b!=="auto"}},{name:"flip",enabled:b==="auto"}];let de=d;return typeof d=="string"&&(de=ft.stringToUtcDate(d)),oe.jsx(Udt,{width:r,flex:o,children:oe.jsx(Gdt,{dateFormat:"dd/MM/yyyy",closeOnScroll:b!=="auto",selected:_,renderCustomHeader:({date:Z,decreaseMonth:be,increaseMonth:J,changeYear:Ce,changeMonth:ve,customHeaderCount:pe})=>(ce(Z),oe.jsx(i0t,{date:Z,decreaseMonth:be,increaseMonth:J,changeYear:Ce,changeMonth:ve,isSelectMonth:F,setIsSelectMonth:N,isSelectYear:T,setIsSelectYear:R,customHeaderCount:pe,multipleMonth:n,selectsRange:t})),calendarContainer:Z=>oe.jsx(t0t,{...Z,withFilter:e,selectsRange:t,setDateRange:be=>{m==null||m(be.map(J=>l3(J)).join(" - ")),U(be)},month:Y,multipleMonth:n}),customInput:oe.jsx(Hoe,{yearFormat:x,date:u??null,valueInput:G,setValueInput:ue,width:r,placeholderText:i,label:a,isRequired:s,size:c,onBlur:y,errorMessage:l,readonly:v,helperText:h,inputProps:{...S,ref:k},idCalendar:p,setStartDate:X,setDateRange:U,selectsRange:t,calendarRef:H,onChangeHandleDate:m,disabled:f,endDate:W,startDate:$,openCalendarOnInputClick:w}),calendarClassName:"custom-datepicker",formatWeekDay:Z=>E(Z),showYearPicker:T,showMonthYearPicker:F,selectsRange:t,startDate:t&&$,endDate:t&&W,monthsShown:n?2:1,onChange:async Z=>{(t?U:D)(Z),m==null||m(l3(Z)),ue("")},disabled:f,locale:"pt-BR",popperPlacement:K,popperModifiers:ie,focusSelectedMonth:n,openToDate:_??de})})});Toe.displayName="datePicker";const IG=e=>g.createElement("svg",{width:10,height:12,viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M3.15 7.33333L4.66667 6.41667L6.18333 7.33333L5.78333 5.6L7.11667 4.45L5.36667 4.3L4.66667 2.66667L3.96667 4.3L2.21667 4.45L3.55 5.6L3.15 7.33333ZM0 12V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H8C8.36667 0 8.68056 0.130556 8.94167 0.391667C9.20278 0.652778 9.33333 0.966667 9.33333 1.33333V12L4.66667 10L0 12ZM1.33333 9.96667L4.66667 8.53333L8 9.96667V1.33333H1.33333V9.96667Z",fill:"#67738B"}));var q0t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M13.467 18.754 16.5 16.92l3.033 1.833-.8-3.466 2.667-2.3-3.5-.3-1.4-3.267-1.4 3.267-3.5.3 2.667 2.3zm-6.3 9.333V6.197q0-.9.66-1.56.663-.66 1.562-.661h14.222q.9 0 1.561.66.661.662.661 1.562v21.889l-9.333-4zm2.222-3.378 7.111-3.022 7.111 3.022V6.198H9.389z"})}),X0t=q0t,K0t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m11.567 22.489 4.933-4.934 4.933 4.933 1.556-1.555L18.056 16l4.933-4.934-1.556-1.555-4.933 4.933-4.933-4.933-1.556 1.555L14.945 16l-4.934 4.933zm4.933 6.844q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05m0-2.222q4.644 0 7.878-3.245T27.61 16q0-4.645-3.233-7.878T16.5 4.888q-4.622 0-7.867 3.234T5.39 16q0 4.621 3.244 7.866t7.867 3.245"})}),Q0t=K0t,J0t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m11.567 22.489 4.933-4.934 4.933 4.933 1.556-1.555L18.056 16l4.933-4.934-1.556-1.555-4.933 4.933-4.933-4.933-1.556 1.555L14.945 16l-4.934 4.933zm4.933 6.844q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05"})}),e5t=J0t,t5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m14.567 22.089 9.422-9.423-1.645-1.622-7.777 7.778-3.934-3.933-1.622 1.622zm1.933 7.244q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05m0-2.222q4.644 0 7.878-3.245T27.61 16q0-4.645-3.233-7.878T16.5 4.888q-4.622 0-7.867 3.234T5.39 16q0 4.621 3.244 7.866t7.867 3.245"})}),n5t=t5t,r5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m14.567 22.089 9.422-9.423-1.645-1.622-7.777 7.778-3.934-3.933-1.622 1.622zm1.933 7.244q-2.745 0-5.178-1.05a13.5 13.5 0 0 1-4.244-2.861 13.5 13.5 0 0 1-2.861-4.245A12.9 12.9 0 0 1 3.167 16q0-2.767 1.05-5.2a13.4 13.4 0 0 1 2.86-4.234 13.6 13.6 0 0 1 4.245-2.85q2.434-1.05 5.178-1.05 2.767 0 5.2 1.05t4.233 2.85 2.85 4.234 1.05 5.2q0 2.745-1.05 5.177a13.6 13.6 0 0 1-2.85 4.245 13.4 13.4 0 0 1-4.233 2.86q-2.433 1.05-5.2 1.05"})}),o5t=r5t,i5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m8.878 25.177-1.556-1.555 7.623-7.623-7.623-7.622 1.556-1.555 7.622 7.622 7.622-7.622 1.556 1.555L18.056 16l7.622 7.623-1.556 1.555-7.622-7.622z"})}),dD=i5t,a5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M11.167 24.889q-.9 0-1.561-.662-.662-.66-.662-1.56V4.887q0-.9.662-1.56.66-.662 1.56-.662h13.779q.9 0 1.56.661.662.661.662 1.561v17.778q0 .9-.661 1.561-.662.662-1.561.662zm0-2.223h13.778V4.888H11.167zm-4.445 6.667q-.9 0-1.56-.661-.663-.66-.662-1.561v-20h2.222v20h16v2.222z"})}),s5t=a5t,l5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M6.722 28q-.944 0-1.583-.64-.639-.638-.639-1.582V6.221q0-.945.639-1.583.64-.64 1.583-.64h6.345q.278-1.166 1.244-1.916.967-.75 2.189-.75 1.245 0 2.206.75T19.944 4h6.334q.945 0 1.583.639.639.638.639 1.583v19.556q0 .944-.639 1.583-.64.639-1.583.639zm0-2.222h19.556V6.221h-2.222v3.333H8.944V6.222H6.722zM16.5 6.221q.566 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.384.383.95.383"})}),c5t=l5t,u5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M16.5 22.666q.5 0 .839-.338t.339-.84a1.14 1.14 0 0 0-.339-.838 1.14 1.14 0 0 0-.838-.34 1.14 1.14 0 0 0-.84.34 1.14 1.14 0 0 0-.339.838q0 .5.339.84.338.338.839.338m-1.044-5.178h2.222V9.2h-2.222zm1.05 11.845q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055m.005-2.222q4.634 0 7.867-3.245t3.233-7.877q0-4.635-3.229-7.867-3.23-3.234-7.882-3.234-4.622 0-7.867 3.23Q5.39 11.346 5.39 16q0 4.621 3.244 7.866t7.878 3.245"})}),d5t=u5t,h5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M16.5 22.666q.5 0 .839-.338t.339-.84a1.14 1.14 0 0 0-.339-.838 1.14 1.14 0 0 0-.838-.34 1.14 1.14 0 0 0-.84.34 1.14 1.14 0 0 0-.339.838q0 .5.339.84.338.338.839.338m-1.044-5.178h2.222V9.2h-2.222zm1.05 11.845q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055"})}),p5t=h5t,f5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M10.078 20.5 8.5 18.922l8-8 8 7.978-1.578 1.577-6.422-6.422z"})}),g5t=f5t,m5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"m16.5 20.5-8-8 1.578-1.578 6.422 6.444 6.422-6.422 1.578 1.578z"})}),C5t=m5t,v5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M5.389 26.666q-.878 0-1.55-.672t-.672-1.55V7.555q0-.878.672-1.55t1.55-.672H14.3l2.222 2.222h11.09q.876 0 1.55.672.67.673.671 1.55H15.578l-2.222-2.222H5.389v16.89L8.722 12h23.111l-3.522 13.01q-.222.823-.817 1.24-.594.416-1.438.416zm2.333-2.222h18.445l2.666-10.222H10.39z"})}),y5t=v5t,w5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M15.456 22.666h2.222v-8h-2.222zM16.5 12.133q.5 0 .839-.332t.339-.824q0-.51-.339-.855a1.13 1.13 0 0 0-.838-.345 1.13 1.13 0 0 0-.84.345q-.339.345-.339.855 0 .491.339.824.338.332.839.332m.006 17.2q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055m.005-2.222q4.634 0 7.867-3.245t3.233-7.877q0-4.635-3.229-7.867-3.23-3.234-7.882-3.234-4.622 0-7.867 3.23Q5.39 11.346 5.39 16q0 4.621 3.244 7.866t7.878 3.245"})}),b5t=w5t,x5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M15.456 22.666h2.222v-8h-2.222zM16.5 12.133q.5 0 .839-.332t.339-.824q0-.51-.339-.855a1.13 1.13 0 0 0-.838-.345 1.13 1.13 0 0 0-.84.345q-.339.345-.339.855 0 .491.339.824.338.332.839.332m.006 17.2q-2.76 0-5.189-1.05a13.5 13.5 0 0 1-4.24-2.861 13.5 13.5 0 0 1-2.86-4.241q-1.05-2.43-1.05-5.193t1.05-5.192 2.86-4.23a13.6 13.6 0 0 1 4.242-2.85q2.43-1.05 5.192-1.05t5.193 1.05 4.23 2.85 2.85 4.234 1.05 5.194-1.05 5.189q-1.05 2.427-2.85 4.235a13.5 13.5 0 0 1-4.234 2.86q-2.433 1.056-5.194 1.055"})}),VR=x5t,S5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M9.833 22.754q.567 0 .95-.384a1.3 1.3 0 0 0 .384-.95 1.3 1.3 0 0 0-.384-.95 1.3 1.3 0 0 0-.95-.383 1.3 1.3 0 0 0-.95.383 1.3 1.3 0 0 0-.383.95q0 .567.383.95.384.384.95.384M8.5 17.42h2.667v-8H8.5zm6.667 5.334H24.5v-2.667h-9.333zm0-5.334H24.5v-2.666h-9.333zm0-5.333H24.5V9.42h-9.333zm-9.334 16a2.57 2.57 0 0 1-1.883-.783 2.57 2.57 0 0 1-.783-1.884V6.754q0-1.101.783-1.884a2.57 2.57 0 0 1 1.883-.783h21.334q1.099 0 1.883.783.783.783.783 1.884V25.42q0 1.1-.783 1.884a2.57 2.57 0 0 1-1.883.783zm0-2.667h21.334V6.754H5.833z"})}),k5t=S5t,M5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 32",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M1.92 28 16.587 2.667 31.254 28zm4.6-2.667h20.134L16.587 8zM16.587 24q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.383.383.95.383m-1.333-4h2.666v-6.667h-2.667z"})}),E5t=M5t,L5t=e=>oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e.size?{width:e.size,height:e.size}:{width:"1em",height:"1em"},viewBox:"0 0 33 33",...e,fill:e.color||"currentColor",children:oe.jsx("path",{fill:e.color||"currentColor",d:"M1.833 28.087 16.5 2.754l14.667 25.333zm14.667-4q.567 0 .95-.383a1.3 1.3 0 0 0 .383-.95 1.3 1.3 0 0 0-.383-.95 1.3 1.3 0 0 0-.95-.384 1.3 1.3 0 0 0-.95.384 1.3 1.3 0 0 0-.383.95q0 .566.383.95.384.383.95.383m-1.333-4h2.666V13.42h-2.666z"})}),_5t=L5t;const D5t=He.nav`
|
|
9740
9745
|
position: sticky;
|
|
9741
9746
|
top: 0px;
|
|
9742
9747
|
width: 100%;
|
|
@@ -12475,7 +12480,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12475
12480
|
font-weight: ${C.fonts.fontWeight.fontWeightRegular};
|
|
12476
12481
|
font-family: ${C.fonts.fontFamily.fontFamilyPrimary};
|
|
12477
12482
|
line-height: ${C.fonts.lineHeight.lineHeightSm(C.fonts.fontSize.fontSizeBodyMd)};
|
|
12478
|
-
color: ${({hasError:e})=>e?`${C.colors.feedbackColors.colorFeedbackError}`:`${C.colors.neutralColors.
|
|
12483
|
+
color: ${({hasError:e})=>e?`${C.colors.feedbackColors.colorFeedbackError}`:`${C.colors.neutralColors.colorNeutralDark}`};
|
|
12479
12484
|
margin-bottom: ${C.spacings.spacingStack.spacingStackNano};
|
|
12480
12485
|
`;He.p`
|
|
12481
12486
|
display: inline-block;
|
|
@@ -12819,4 +12824,4 @@ If you are trying to annotate ${r} with application data, use the '${r}.context'
|
|
|
12819
12824
|
min-height: ${({$minHeight:e})=>gE(e)};
|
|
12820
12825
|
max-height: ${({$maxHeight:e})=>gE(e)};
|
|
12821
12826
|
width: 100%;
|
|
12822
|
-
`;Q4t.registerModules([BEt]);function KLt({rowData:e,columnDefs:t,defaultColDef:n,height:r=600,minHeight:o=150,maxHeight:i,rowHeight:a=32,headerHeight:s=40,getRowId:l,onModelUpdated:c,onRowClicked:u,gridOptions:d,className:h,style:p,suppressColumnVirtualisation:f=!0,rowBuffer:m=20,applyCustomStyles:v=!0,autoSizeStrategy:y=!1,allRowData:w,emptyProps:b={width:"100%",height:"100%",title:"Nenhum dado a ser mostrado.",mode:"table",borders:!0,backgroundColor:C.colors.backgroundColors.colorBackgroundSnow}}){const x=I.useMemo(()=>n||{sortable:!1,filter:{component:$R,filterParams:{allRowData:w||e},handler:D=>({doesFilterPass:({model:H,node:T})=>{var Y;if(!H||!H.values||H.values.length===0)return!0;const R=D.colDef,F=D.column;let N;R!=null&&R.valueGetter?N=R.valueGetter({data:T.data,node:T,colDef:R,column:F,getValue:ce=>{var X;return(X=T.data)==null?void 0:X[ce]}}):N=(Y=T.data)==null?void 0:Y[F.getColId()];const $="(Vazios)",W=N==null||N==="";if(H.values.includes($)&&W)return!0;let U=String(N);return R!=null&&R.valueFormatter&&(U=R.valueFormatter({value:N,data:T.data,node:T,colDef:R,column:F})),H.values.includes(U)},getModelAsString:H=>!H||!H.values||H.values.length===0?"":H.values.join(", ")})},resizable:!0,suppressSizeToFit:!0},[n,y,w,e]),S=I.useMemo(()=>{const _=D=>"children"in D&&Array.isArray(D.children)?{...D,children:D.children.map(_)}:{headerComponent:zoe,...D};return t.map(_)},[t]),k=I.useMemo(()=>l||(_=>{var H,T;const D=_.data;return(D==null?void 0:D.id)!==void 0&&(D==null?void 0:D.id)!==null?String(D.id):((H=_.node)==null?void 0:H.rowIndex)!==void 0&&((T=_.node)==null?void 0:T.rowIndex)!==null?`row-${_.node.rowIndex}`:`row-${Math.random().toString(36).substr(2,9)}`}),[l]),E=I.useMemo(()=>({suppressCellFocus:!0,suppressMovableColumns:!0,enableCellTextSelection:!0,enableFilterHandlers:!0,popupParent:typeof document<"u"?document.body:null,suppressColumnVirtualisation:f,suppressHorizontalScroll:!1,skipHeaderOnAutoSize:!0,autoSizeStrategy:y?{type:y,defaultMinWidth:100}:void 0,...d}),[d,f,y]);return!e||e.length===0?oe.jsx(FR,{backgroundColor:C.colors.backgroundColors.colorBackgroundSnow,borders:!0,mode:"table",...b}):oe.jsxs(oe.Fragment,{children:[v&&oe.jsx(Zoe,{}),oe.jsx(XLt,{$height:r,$minHeight:o,$maxHeight:i,className:h,style:p,children:oe.jsx(qLt,{rowData:e,columnDefs:S,defaultColDef:x,getRowId:k,rowHeight:a,headerHeight:s,rowBuffer:m,onModelUpdated:c,onRowClicked:u,...E})})]})}exports.AGGridCustomStyles=Zoe;exports.ActionButton=HR;exports.AlertView=i6t;exports.AutoComplete=ZR;exports.AutoCompleteField=joe;exports.Badge=fR;exports.Button=Ja;exports.Button$1=B7t;exports.CellText=t4t;exports.CheckCircleFill_default=o5t;exports.Checkbox=Dd;exports.Close_default=dD;exports.ConfirmButton=Ioe;exports.ConfirmModal=IR;exports.Container=En;exports.Container$1=B5t;exports.Container$2=W7t;exports.ContainerContent=j7t;exports.ContainerDevNav=D5t;exports.ContainerItem=G7t;exports.ContainerTable=Y7t;exports.ContainerWarning=c6t;exports.CustomHeaderComponent=zoe;exports.CustomSetFilter=$R;exports.Datepicker=Toe;exports.DevBrandLogo=V5t;exports.DevNavOption=T5t;exports.DevNavOptions=H5t;exports.Empty=FR;exports.ErrorFill_default=p5t;exports.ErrorMessage=R5t;exports.FrameView=Foe;exports.GenericAGGridTable=KLt;exports.HeaderCell=J7t;exports.Hr=h8;exports.IconSize=Cy;exports.Info=f7;exports.InfoFill_default=VR;exports.Input=rf;exports.Label=Roe;exports.Label$1=K6t;exports.Label$2=Hht;exports.Label$3=z7t;exports.LastSpace=U7t;exports.LibraryCard=Poe;exports.ListMultiSelect=Boe;exports.Loading=Aoe;exports.MenuMultiSelect=Noe;exports.MenuSelect=fb;exports.Message=l6t;exports.Modal=RR;exports.
|
|
12827
|
+
`;Q4t.registerModules([BEt]);function KLt({rowData:e,columnDefs:t,defaultColDef:n,height:r=600,minHeight:o=150,maxHeight:i,rowHeight:a=32,headerHeight:s=40,getRowId:l,onModelUpdated:c,onRowClicked:u,gridOptions:d,className:h,style:p,suppressColumnVirtualisation:f=!0,rowBuffer:m=20,applyCustomStyles:v=!0,autoSizeStrategy:y=!1,allRowData:w,emptyProps:b={width:"100%",height:"100%",title:"Nenhum dado a ser mostrado.",mode:"table",borders:!0,backgroundColor:C.colors.backgroundColors.colorBackgroundSnow}}){const x=I.useMemo(()=>n||{sortable:!1,filter:{component:$R,filterParams:{allRowData:w||e},handler:D=>({doesFilterPass:({model:H,node:T})=>{var Y;if(!H||!H.values||H.values.length===0)return!0;const R=D.colDef,F=D.column;let N;R!=null&&R.valueGetter?N=R.valueGetter({data:T.data,node:T,colDef:R,column:F,getValue:ce=>{var X;return(X=T.data)==null?void 0:X[ce]}}):N=(Y=T.data)==null?void 0:Y[F.getColId()];const $="(Vazios)",W=N==null||N==="";if(H.values.includes($)&&W)return!0;let U=String(N);return R!=null&&R.valueFormatter&&(U=R.valueFormatter({value:N,data:T.data,node:T,colDef:R,column:F})),H.values.includes(U)},getModelAsString:H=>!H||!H.values||H.values.length===0?"":H.values.join(", ")})},resizable:!0,suppressSizeToFit:!0},[n,y,w,e]),S=I.useMemo(()=>{const _=D=>"children"in D&&Array.isArray(D.children)?{...D,children:D.children.map(_)}:{headerComponent:zoe,...D};return t.map(_)},[t]),k=I.useMemo(()=>l||(_=>{var H,T;const D=_.data;return(D==null?void 0:D.id)!==void 0&&(D==null?void 0:D.id)!==null?String(D.id):((H=_.node)==null?void 0:H.rowIndex)!==void 0&&((T=_.node)==null?void 0:T.rowIndex)!==null?`row-${_.node.rowIndex}`:`row-${Math.random().toString(36).substr(2,9)}`}),[l]),E=I.useMemo(()=>({suppressCellFocus:!0,suppressMovableColumns:!0,enableCellTextSelection:!0,enableFilterHandlers:!0,popupParent:typeof document<"u"?document.body:null,suppressColumnVirtualisation:f,suppressHorizontalScroll:!1,skipHeaderOnAutoSize:!0,autoSizeStrategy:y?{type:y,defaultMinWidth:100}:void 0,...d}),[d,f,y]);return!e||e.length===0?oe.jsx(FR,{backgroundColor:C.colors.backgroundColors.colorBackgroundSnow,borders:!0,mode:"table",...b}):oe.jsxs(oe.Fragment,{children:[v&&oe.jsx(Zoe,{}),oe.jsx(XLt,{$height:r,$minHeight:o,$maxHeight:i,className:h,style:p,children:oe.jsx(qLt,{rowData:e,columnDefs:S,defaultColDef:x,getRowId:k,rowHeight:a,headerHeight:s,rowBuffer:m,onModelUpdated:c,onRowClicked:u,...E})})]})}exports.AGGridCustomStyles=Zoe;exports.ActionButton=HR;exports.AlertView=i6t;exports.AutoComplete=ZR;exports.AutoCompleteField=joe;exports.Badge=fR;exports.Button=Ja;exports.Button$1=B7t;exports.CellText=t4t;exports.CheckCircleFill_default=o5t;exports.Checkbox=Dd;exports.Close_default=dD;exports.ConfirmButton=Ioe;exports.ConfirmModal=IR;exports.Container=En;exports.Container$1=B5t;exports.Container$2=W7t;exports.ContainerContent=j7t;exports.ContainerDevNav=D5t;exports.ContainerItem=G7t;exports.ContainerTable=Y7t;exports.ContainerWarning=c6t;exports.CustomHeaderComponent=zoe;exports.CustomSetFilter=$R;exports.Datepicker=Toe;exports.DevBrandLogo=V5t;exports.DevNavOption=T5t;exports.DevNavOptions=H5t;exports.Empty=FR;exports.Eqe=llt;exports.ErrorFill_default=p5t;exports.ErrorMessage=R5t;exports.FrameView=Foe;exports.GenericAGGridTable=KLt;exports.HeaderCell=J7t;exports.Hr=h8;exports.Hse=AU;exports.IconSize=Cy;exports.Info=f7;exports.InfoFill_default=VR;exports.Input=rf;exports.KXe=ixe;exports.L$=rV;exports.Label=Roe;exports.Label$1=K6t;exports.Label$2=Hht;exports.Label$3=z7t;exports.LastSpace=U7t;exports.LibraryCard=Poe;exports.ListMultiSelect=Boe;exports.Loading=Aoe;exports.MenuMultiSelect=Noe;exports.MenuSelect=fb;exports.Message=l6t;exports.Modal=RR;exports.MultiInput=NR;exports.MultiNumberField=Uoe;exports.MultiSelect=Ooe;exports.NumberField=Yoe;exports.Radio=zR;exports.RadioField=qoe;exports.Required=g7;exports.RowCell=e4t;exports.Section=Joe;exports.SectionTitle=OR;exports.Select=eie;exports.SelectContainer=$7t;exports.Spacer=jl;exports.Switch=Goe;exports.SwitchField=Xoe;exports.Table=q7t;exports.TableRow=Q7t;exports.Text=$5t;exports.TextField=Qoe;exports.Textarea=BR;exports.TextareaField=Koe;exports.Title=s6t;exports.Title$1=i7t;exports.Tooltip=Zo;exports.WarningFill_default=_5t;exports.WrapperIcon=Z7t;exports.clientExports=TR;exports.jsxRuntimeExports=oe;exports.l2=tV;exports.loadingContainer=z5t;exports.loadingLine=W5t;exports.showConfirm=pb;exports.showModal=PR;exports.useTriggerFormField=I3;exports.y=C;
|
|
@@ -5321,7 +5321,7 @@ const dbe = ne.div`
|
|
|
5321
5321
|
hasSelectedIcon: i,
|
|
5322
5322
|
hasHoverIcon: a
|
|
5323
5323
|
}) => e === "select" && !t && n && Ee`
|
|
5324
|
-
background-color:
|
|
5324
|
+
background-color: #d8e0ea;
|
|
5325
5325
|
border: ${r === "primary" ? `${m.borders.borderWidth.borderWidthThinner} solid ${m.colors.brandColors.colorBrandPrimary}` : "none"};
|
|
5326
5326
|
|
|
5327
5327
|
& > .hover-icon {
|
|
@@ -5374,7 +5374,7 @@ const dbe = ne.div`
|
|
|
5374
5374
|
}
|
|
5375
5375
|
|
|
5376
5376
|
&:active {
|
|
5377
|
-
background-color:
|
|
5377
|
+
background-color: #d8e0ea;
|
|
5378
5378
|
border: ${t === "primary" ? `${m.borders.borderWidth.borderWidthThinner} solid ${m.colors.brandColors.colorBrandPrimary}` : "none"};
|
|
5379
5379
|
|
|
5380
5380
|
& > .selected-icon {
|
|
@@ -5391,7 +5391,7 @@ const dbe = ne.div`
|
|
|
5391
5391
|
}
|
|
5392
5392
|
` : Ee`
|
|
5393
5393
|
&:active {
|
|
5394
|
-
background-color:
|
|
5394
|
+
background-color: #d8e0ea;
|
|
5395
5395
|
border: ${t === "primary" ? `${m.borders.borderWidth.borderWidthThinner} solid ${m.colors.brandColors.colorBrandPrimary}` : "none"};
|
|
5396
5396
|
|
|
5397
5397
|
& > .default-icon {
|
|
@@ -86184,14 +86184,16 @@ const mlt = ne.div`
|
|
|
86184
86184
|
activeIndex: t,
|
|
86185
86185
|
onActiveIndexChange: n,
|
|
86186
86186
|
className: r,
|
|
86187
|
-
"aria-label": o
|
|
86187
|
+
"aria-label": o,
|
|
86188
|
+
"data-cy": i,
|
|
86189
|
+
"data-testid": a
|
|
86188
86190
|
}) => {
|
|
86189
|
-
const [
|
|
86190
|
-
(
|
|
86191
|
-
var
|
|
86192
|
-
e[
|
|
86191
|
+
const [s, l] = je(0), c = t !== void 0, u = c ? t : s, d = bt(
|
|
86192
|
+
(h, p) => {
|
|
86193
|
+
var f, g;
|
|
86194
|
+
e[h].disabled || (c || l(h), n && n(h), e[h].onClick && ((g = (f = e[h]).onClick) == null || g.call(f, h, p)));
|
|
86193
86195
|
},
|
|
86194
|
-
[e,
|
|
86196
|
+
[e, c, n]
|
|
86195
86197
|
);
|
|
86196
86198
|
return /* @__PURE__ */ me(
|
|
86197
86199
|
mlt,
|
|
@@ -86199,33 +86201,37 @@ const mlt = ne.div`
|
|
|
86199
86201
|
className: r,
|
|
86200
86202
|
role: "group",
|
|
86201
86203
|
"aria-label": o || "Segmented button",
|
|
86202
|
-
|
|
86203
|
-
|
|
86204
|
+
"data-testid": a,
|
|
86205
|
+
"data-cy": i,
|
|
86206
|
+
children: e.map((h, p) => {
|
|
86207
|
+
const f = u === p, g = h["aria-label"] || h.label, C = /* @__PURE__ */ ht(
|
|
86204
86208
|
Clt,
|
|
86205
86209
|
{
|
|
86206
|
-
onClick: (
|
|
86207
|
-
active:
|
|
86208
|
-
disabled:
|
|
86210
|
+
onClick: (y) => d(p, y),
|
|
86211
|
+
active: f,
|
|
86212
|
+
disabled: h.disabled,
|
|
86209
86213
|
role: "button",
|
|
86210
|
-
"aria-pressed":
|
|
86211
|
-
"aria-disabled":
|
|
86212
|
-
"aria-label":
|
|
86214
|
+
"aria-pressed": f,
|
|
86215
|
+
"aria-disabled": h.disabled,
|
|
86216
|
+
"aria-label": g,
|
|
86217
|
+
"data-testid": a ? `${a}-button-${p}` : void 0,
|
|
86218
|
+
"data-cy": i ? `${i}-button-${p}` : void 0,
|
|
86213
86219
|
children: [
|
|
86214
|
-
!!
|
|
86215
|
-
!!
|
|
86220
|
+
!!h.iconName && /* @__PURE__ */ me(Fo, { iconName: h.iconName, color: "currentcolor" }),
|
|
86221
|
+
!!h.label && /* @__PURE__ */ me(vlt, { children: h.label })
|
|
86216
86222
|
]
|
|
86217
86223
|
},
|
|
86218
|
-
|
|
86224
|
+
h.tooltipProps ? void 0 : `segmented-btn-${p}-${h.label || "icon"}`
|
|
86219
86225
|
);
|
|
86220
|
-
return
|
|
86226
|
+
return h.tooltipProps ? /* @__PURE__ */ me(
|
|
86221
86227
|
Lo,
|
|
86222
86228
|
{
|
|
86223
86229
|
position: "bottom",
|
|
86224
|
-
...
|
|
86225
|
-
children:
|
|
86230
|
+
...h.tooltipProps,
|
|
86231
|
+
children: C
|
|
86226
86232
|
},
|
|
86227
|
-
`segmented-btn-${
|
|
86228
|
-
) :
|
|
86233
|
+
`segmented-btn-${p}-${h.label || "icon"}`
|
|
86234
|
+
) : C;
|
|
86229
86235
|
})
|
|
86230
86236
|
}
|
|
86231
86237
|
);
|
|
@@ -88145,6 +88151,18 @@ const C2t = {
|
|
|
88145
88151
|
overflow-y: ${n};
|
|
88146
88152
|
`;
|
|
88147
88153
|
}};
|
|
88154
|
+
${({ query: e }) => {
|
|
88155
|
+
if (e) {
|
|
88156
|
+
let t = "";
|
|
88157
|
+
return Object.entries(e.styles || {}).forEach(([n, r]) => {
|
|
88158
|
+
t += `${n.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${typeof r == "number" ? `${r}px` : r};`;
|
|
88159
|
+
}), ot`
|
|
88160
|
+
@media (${e.type}: ${e.pixel}) {
|
|
88161
|
+
${ot(...t)}
|
|
88162
|
+
}
|
|
88163
|
+
`;
|
|
88164
|
+
}
|
|
88165
|
+
}}
|
|
88148
88166
|
`, An = Sn(
|
|
88149
88167
|
({
|
|
88150
88168
|
title: e,
|
|
@@ -88164,11 +88182,12 @@ const C2t = {
|
|
|
88164
88182
|
customStyles: f,
|
|
88165
88183
|
onClick: g,
|
|
88166
88184
|
children: C,
|
|
88167
|
-
|
|
88168
|
-
|
|
88185
|
+
query: y,
|
|
88186
|
+
...w
|
|
88187
|
+
}, b) => /* @__PURE__ */ oe.jsx(
|
|
88169
88188
|
w2t,
|
|
88170
88189
|
{
|
|
88171
|
-
ref:
|
|
88190
|
+
ref: b,
|
|
88172
88191
|
title: e,
|
|
88173
88192
|
width: t,
|
|
88174
88193
|
minWidth: u,
|
|
@@ -88188,7 +88207,8 @@ const C2t = {
|
|
|
88188
88207
|
...f || {}
|
|
88189
88208
|
},
|
|
88190
88209
|
onClick: g,
|
|
88191
|
-
|
|
88210
|
+
query: y,
|
|
88211
|
+
...w,
|
|
88192
88212
|
children: C
|
|
88193
88213
|
}
|
|
88194
88214
|
)
|
|
@@ -97427,6 +97447,8 @@ var _0t = {
|
|
|
97427
97447
|
const FG = /^(?<start>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))(\s-\s(?<end>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])))?$/, AG = (e) => {
|
|
97428
97448
|
var r, o;
|
|
97429
97449
|
let t = null, n = null;
|
|
97450
|
+
if (e === null)
|
|
97451
|
+
return [null, null];
|
|
97430
97452
|
if (e instanceof Date)
|
|
97431
97453
|
return [e, null];
|
|
97432
97454
|
if (e === "")
|
|
@@ -97434,6 +97456,9 @@ const FG = /^(?<start>\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))(\s-\s(
|
|
|
97434
97456
|
else if (FG.test(e)) {
|
|
97435
97457
|
const i = e.match(FG);
|
|
97436
97458
|
t = ((r = i == null ? void 0 : i.groups) == null ? void 0 : r.start) || null, n = ((o = i == null ? void 0 : i.groups) == null ? void 0 : o.end) || null;
|
|
97459
|
+
} else if (e != null && e.includes(" - ")) {
|
|
97460
|
+
const [i, a] = e.split(" - ");
|
|
97461
|
+
t = i, n = a;
|
|
97437
97462
|
}
|
|
97438
97463
|
return [
|
|
97439
97464
|
t !== null ? _L(t) : null,
|
|
@@ -105081,7 +105106,7 @@ const aie = H0`
|
|
|
105081
105106
|
line-height: ${m.fonts.lineHeight.lineHeightSm(
|
|
105082
105107
|
m.fonts.fontSize.fontSizeBodyMd
|
|
105083
105108
|
)};
|
|
105084
|
-
color: ${({ hasError: e }) => e ? `${m.colors.feedbackColors.colorFeedbackError}` : `${m.colors.neutralColors.
|
|
105109
|
+
color: ${({ hasError: e }) => e ? `${m.colors.feedbackColors.colorFeedbackError}` : `${m.colors.neutralColors.colorNeutralDark}`};
|
|
105085
105110
|
margin-bottom: ${m.spacings.spacingStack.spacingStackNano};
|
|
105086
105111
|
`;
|
|
105087
105112
|
He.p`
|
|
@@ -144790,23 +144815,23 @@ export {
|
|
|
144790
144815
|
ov as H,
|
|
144791
144816
|
hf as I,
|
|
144792
144817
|
_7t as J,
|
|
144793
|
-
|
|
144818
|
+
e_t as K,
|
|
144794
144819
|
B5t as L,
|
|
144795
144820
|
Yoe as M,
|
|
144796
144821
|
E7t as N,
|
|
144797
|
-
|
|
144798
|
-
|
|
144799
|
-
|
|
144822
|
+
D7t as O,
|
|
144823
|
+
V7t as P,
|
|
144824
|
+
H7t as Q,
|
|
144800
144825
|
rie as R,
|
|
144801
144826
|
Y2 as S,
|
|
144802
144827
|
xi as T,
|
|
144803
|
-
|
|
144804
|
-
|
|
144805
|
-
|
|
144806
|
-
|
|
144807
|
-
|
|
144808
|
-
|
|
144809
|
-
|
|
144828
|
+
GP as U,
|
|
144829
|
+
$7t as V,
|
|
144830
|
+
K7t as W,
|
|
144831
|
+
A_t as X,
|
|
144832
|
+
m as Y,
|
|
144833
|
+
aD as Z,
|
|
144834
|
+
oe as _,
|
|
144810
144835
|
n1 as a,
|
|
144811
144836
|
Uoe as a0,
|
|
144812
144837
|
r_t as a1,
|
|
@@ -144846,20 +144871,20 @@ export {
|
|
|
144846
144871
|
R_t as az,
|
|
144847
144872
|
An as b,
|
|
144848
144873
|
W5t as c,
|
|
144849
|
-
|
|
144850
|
-
|
|
144851
|
-
|
|
144852
|
-
|
|
144853
|
-
|
|
144854
|
-
|
|
144855
|
-
|
|
144856
|
-
|
|
144874
|
+
Kbe as d,
|
|
144875
|
+
pf as e,
|
|
144876
|
+
l7t as f,
|
|
144877
|
+
XU as g,
|
|
144878
|
+
h6t as h,
|
|
144879
|
+
Xoe as i,
|
|
144880
|
+
Lb as j,
|
|
144881
|
+
X6t as k,
|
|
144857
144882
|
jU as l,
|
|
144858
|
-
|
|
144859
|
-
|
|
144860
|
-
|
|
144861
|
-
|
|
144862
|
-
|
|
144883
|
+
qoe as m,
|
|
144884
|
+
Qoe as n,
|
|
144885
|
+
Lht as o,
|
|
144886
|
+
pht as p,
|
|
144887
|
+
Tht as q,
|
|
144863
144888
|
Joe as r,
|
|
144864
144889
|
ZP as s,
|
|
144865
144890
|
t_t as t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as o, $ as C, a0 as j, a1 as F, Y as r, a2 as f, a3 as I, b as x, a4 as w, a5 as E, a6 as S, a7 as R, a8 as A, a9 as _, e as $, I as D, aa as L } from "./GenericAGGridTable-DibITqf6.js";
|
|
2
2
|
import { d as v } from "./index-DUYr_t1R.js";
|
|
3
3
|
import { createPortal as y } from "react-dom";
|
|
4
4
|
import { useState as O } from "react";
|
|
@@ -35,7 +35,7 @@ const V = ({
|
|
|
35
35
|
c
|
|
36
36
|
);
|
|
37
37
|
j.createRoot(c).render(h);
|
|
38
|
-
},
|
|
38
|
+
}, N = ({
|
|
39
39
|
width: a = "100%",
|
|
40
40
|
height: l = "fit-content",
|
|
41
41
|
type: e,
|
|
@@ -128,7 +128,7 @@ const V = ({
|
|
|
128
128
|
]
|
|
129
129
|
}
|
|
130
130
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {}) });
|
|
131
|
-
},
|
|
131
|
+
}, T = ({
|
|
132
132
|
label: a,
|
|
133
133
|
labelRender: l,
|
|
134
134
|
infoProps: e = {},
|
|
@@ -145,22 +145,22 @@ const V = ({
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
return /* @__PURE__ */ o.jsxs(x, { width: i, direction: "horizontal", gap: "4px", flex: t, children: [
|
|
148
|
-
l ?? /* @__PURE__ */ o.jsxs(
|
|
148
|
+
l ?? /* @__PURE__ */ o.jsxs(_, { children: [
|
|
149
149
|
a,
|
|
150
150
|
" ",
|
|
151
|
-
d ? /* @__PURE__ */ o.jsx(
|
|
151
|
+
d ? /* @__PURE__ */ o.jsx($, {}) : null
|
|
152
152
|
] }),
|
|
153
|
-
n && /* @__PURE__ */ o.jsx(
|
|
153
|
+
n && /* @__PURE__ */ o.jsx(D, { ...c })
|
|
154
154
|
] });
|
|
155
|
-
},
|
|
155
|
+
}, X = ({
|
|
156
156
|
width: a = "100%",
|
|
157
157
|
flex: l,
|
|
158
158
|
label: e = "Obrigatório",
|
|
159
159
|
margin: n = "0 0 16px 0"
|
|
160
|
-
}) => /* @__PURE__ */ o.jsx(x, { width: a, flex: l, customStyles: { margin: n }, children: /* @__PURE__ */ o.jsx(
|
|
160
|
+
}) => /* @__PURE__ */ o.jsx(x, { width: a, flex: l, customStyles: { margin: n }, children: /* @__PURE__ */ o.jsx(L, { children: `* ${e}` }) });
|
|
161
161
|
export {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
N as A,
|
|
163
|
+
T as L,
|
|
164
|
+
X as R,
|
|
165
165
|
V as s
|
|
166
166
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./GenericAGGridTable-
|
|
1
|
+
"use strict";const e=require("./GenericAGGridTable-C0wgdDMH.cjs"),b=require("./index-CrCGNVEP.cjs"),E=require("react-dom"),g=require("react");require("sbwb-ds");const R=({id:s,type:t,title:r,description:n,durationInMilliseconds:l=3e3,dataToCopy:c,offset:a={x:0,y:0}})=>{const i=b.dom.portal.add(s+Date.now()+Math.random()),x=()=>{try{i.remove()}catch{console.error("Remoção indevida de alert.")}},d=E.createPortal(e.jsxRuntimeExports.jsx(e.AlertView,{id:s,type:t,title:r,description:n,durationInMilliseconds:l,destroy:x,dataToCopy:c,offset:a}),i);e.clientExports.createRoot(i).render(d)},C=({width:s="100%",height:t="fit-content",type:r,variant:n="small",title:l,message:c,margin:a,open:i=!0,onClose:x,canClose:d=!0})=>{var p,j;const[u,m]=g.useState(i),o={info:{backgroundColor:"#D5EBFD",borderColor:e.y.colors.feedbackColors.colorFeedbackInfo,icon:e.jsxRuntimeExports.jsx(e.InfoFill_default,{color:e.y.colors.feedbackColors.colorFeedbackInfo,height:"24px",width:"24px"})},success:{backgroundColor:"#DAF9DB",borderColor:e.y.colors.feedbackColors.colorFeedbackSuccess,icon:e.jsxRuntimeExports.jsx(e.CheckCircleFill_default,{color:e.y.colors.feedbackColors.colorFeedbackSuccess,height:"24px",width:"24px"})},warning:{backgroundColor:"#FEEECF",borderColor:e.y.colors.feedbackColors.colorFeedbackWarning},error:{backgroundColor:"#FFE1E1",borderColor:e.y.colors.feedbackColors.colorFeedbackError,icon:e.jsxRuntimeExports.jsx(e.ErrorFill_default,{color:e.y.colors.feedbackColors.colorFeedbackError,height:"24px",width:"24px"})}};function h(){m(!1),x==null||x()}return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:u?e.jsxRuntimeExports.jsxs(e.Container,{width:s,height:t,direction:"horizontal",verticalAlign:l?"top":"center",gap:e.y.spacings.spacingInline.spacingInlineAnt,padding:n=="small"?`${e.y.spacings.spacingStack.spacingStackXs} ${e.y.spacings.spacingInline.spacingInlineAnt}`:e.y.spacings.spacingInline.spacingInlineSm,backgroundColor:(p=o==null?void 0:o[r])==null?void 0:p.backgroundColor,customStyles:{border:`1px solid ${(j=o==null?void 0:o[r])==null?void 0:j.borderColor}`,borderRadius:e.y.borders.borderRadius.borderRadiusSm,margin:a,position:"relative"},children:[r==="warning"?e.jsxRuntimeExports.jsx(e.ContainerWarning,{children:e.jsxRuntimeExports.jsx(e.WarningFill_default,{width:"24px",height:"24px"})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:o==null?void 0:o[r].icon}),e.jsxRuntimeExports.jsxs(e.Container,{width:"100%",flex:"1",height:"100%",children:[e.jsxRuntimeExports.jsx(e.Title,{children:l}),e.jsxRuntimeExports.jsx(e.Message,{children:c})]}),d&&e.jsxRuntimeExports.jsx(e.Container,{children:e.jsxRuntimeExports.jsx(e.Close_default,{color:e.y.colors.neutralColors.colorNeutralCloudy,cursor:"pointer",onClick:h,height:"20px",width:"20px"})})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})})},k=({label:s,labelRender:t,infoProps:r={},withInfo:n=!0,flex:l,width:c="100%",isRequired:a=!1})=>{const i={tooltipProps:{position:"top",...r==null?void 0:r.tooltipProps,size:"Small"}};return e.jsxRuntimeExports.jsxs(e.Container,{width:c,direction:"horizontal",gap:"4px",flex:l,children:[t??e.jsxRuntimeExports.jsxs(e.Label$1,{children:[s," ",a?e.jsxRuntimeExports.jsx(e.Required,{}):null]}),n&&e.jsxRuntimeExports.jsx(e.Info,{...i})]})},F=({width:s="100%",flex:t,label:r="Obrigatório",margin:n="0 0 16px 0"})=>e.jsxRuntimeExports.jsx(e.Container,{width:s,flex:t,customStyles:{margin:n},children:e.jsxRuntimeExports.jsx(e.Label$2,{children:`* ${r}`})});exports.AlertInline=C;exports.LabelField=k;exports.RequiredLabelView=F;exports.showAlert=R;
|