@ufal-lccv/gpsub-ds 0.1.35 → 0.1.37

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.
@@ -12369,7 +12369,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12369
12369
  width: 100%;
12370
12370
  justify-content: flex-start;
12371
12371
  font-size: ${C.fonts.fontSize.fontSizeBodySm};
12372
- font-weight: ${C.fonts.fontWeight.fontWeightSemiBold};
12372
+ font-weight: ${C.fonts.fontWeight.fontWeightRegular};
12373
12373
  color: ${C.colors.neutralColors.colorNeutralDarkest};
12374
12374
  ${({customStyles:e})=>e&&rt(e)}
12375
12375
  `;De.div`
@@ -104733,7 +104733,7 @@ const OLt = De.div`
104733
104733
  width: 100%;
104734
104734
  justify-content: flex-start;
104735
104735
  font-size: ${m.fonts.fontSize.fontSizeBodySm};
104736
- font-weight: ${m.fonts.fontWeight.fontWeightSemiBold};
104736
+ font-weight: ${m.fonts.fontWeight.fontWeightRegular};
104737
104737
  color: ${m.colors.neutralColors.colorNeutralDarkest};
104738
104738
  ${({ customStyles: e }) => e && it(e)}
104739
104739
  `;
@@ -1,4 +1,4 @@
1
- import { W as o, X as C, Y as j, Z as F, U as r, _ as f, $ as I, b as x, a0 as w, a1 as E, a2 as S, a3 as R, a4 as A, a5 as _, d as $, I as D, a6 as L } from "./GenericAGGridTable-_tzyMjlo.js";
1
+ import { W as o, X as C, Y as j, Z as F, U as r, _ as f, $ as I, b as x, a0 as w, a1 as E, a2 as S, a3 as R, a4 as A, a5 as _, d as $, I as D, a6 as L } from "./GenericAGGridTable-DeqXRv6H.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";
@@ -1 +1 @@
1
- "use strict";const e=require("./GenericAGGridTable-B-VthvhD.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;
1
+ "use strict";const e=require("./GenericAGGridTable-CsbiQrWT.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;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./GenericAGGridTable-CsbiQrWT.cjs"),I=require("react");require("react-dom");const Q=require("sbwb-ds"),G=require("react-hook-form"),q=require("./index-CrCGNVEP.cjs"),X=require("./parseDate-w5bp6OXe.cjs"),Y=350,z=({title:a,children:x,endAdornment:f=null,marginBottom:j="16px",customStyles:u={},wrapperCustomStyles:i={},animationContainerCustomStyles:c={},hideAdornmentOnCollapse:p=!1,maxHeight:A="none",height:H="fit-content"})=>{const[C,M]=I.useState(!1),[o,E]=I.useState(!0);I.useEffect(()=>{if(p)if(C){const h=setTimeout(()=>E(!1),Y);return()=>clearTimeout(h)}else E(!0)},[C,p]);const R=p&&!o?null:f;return e.jsxRuntimeExports.jsxs(e.Container,{width:"100%",flex:"1",gap:"8px",customStyles:i,children:[e.jsxRuntimeExports.jsx(e.SectionTitle,{title:a,divider:!0,marginBottom:j,collapse:{collapsed:C,setCollapsed:M},endAdornment:R,customStyles:u}),e.jsxRuntimeExports.jsx(e.Container,{gap:"8px",width:"100%",height:H,customStyles:{...c,maxHeight:C?"0":A,transition:`max-height ${Y}ms ease-in-out`},children:x})]})};function v({form:a,name:x,id:f=x,label:j,readonly:u=!1,disabled:i=!1,afterCheck:c,width:p="100%",formatter:A,parser:H,flex:C,size:M="Medium",checkColor:o,triggerFormField:E=null,...R}){const{onChangeTrigger:h}=e.useTriggerFormField({form:a,fieldName:x,triggerType:E,debounceTime:0}),w=(S,F)=>{F(S),c==null||c(S),h==null||h()};return e.jsxRuntimeExports.jsx(e.Container,{width:p,flex:C,children:e.jsxRuntimeExports.jsx(G.Controller,{name:x,control:a.control,render:({field:{onChange:S,value:F,onBlur:n},fieldState:{error:b=null}})=>{const y=b==null?void 0:b.message;return y&&console.log("Error on checkbox!",y),e.jsxRuntimeExports.jsx(e.Checkbox,{id:`form-checkbox-${f}`,checked:A?A(F):!!F,name:x,label:j,disabled:i||u,onChange:d=>{w((H==null?void 0:H(d.target.checked,F))??d.target.checked,S),n==null||n()},size:M,checkColor:o,...R})}})})}const B=({form:a,name:x,label:f,placeholder:j,readonly:u=!1,disabled:i=!1,width:c="100%",flex:p,tooltipIsVisible:A,tooltipMaxWidth:H,tooltipPosition:C="top",afterFormChange:M,openToDate:o,range:E=!1,openCalendarOnInputClick:R=!1,...h})=>{let w=j;return!q.valuable(j)&&!i&&(w=u?"Nenhuma data escolhida":"Escolha uma data"),e.jsxRuntimeExports.jsx(e.Container,{width:c,flex:p,children:e.jsxRuntimeExports.jsx(G.Controller,{name:x,control:a.control,render:({field:{value:S,onChange:F,ref:n}})=>{let b;q.valuable(S)&&(E?b=Array.isArray(S)?S.join(" - "):S:b=new Date(q.stringToUtcDate(S.slice(0,10))));const{error:y}=a.getFieldState(x,a.formState);return e.jsxRuntimeExports.jsx(e.Datepicker,{ref:n,idCalendar:`${x}-calendar`,label:f,value:b,size:"Small",readonly:u,errorMessage:y==null?void 0:y.message,disabled:i,placeholder:w,onChangeHandleDate:d=>{var $,O;F(E?($=d.split)==null?void 0:$.call(d," - ").map(V=>{var r;return((r=X.parseDate(V))==null?void 0:r.slice(0,10))||null}):((O=X.parseDate(d))==null?void 0:O.slice(0,10))||null),M==null||M(d)},openToDate:o,selectsRange:E,openCalendarOnInputClick:R,width:c,flex:p,...h})}})})};function K({form:a,name:x,label:f,slots:{field:j},slotsProps:u,triggerFormField:i=null,value:c,bypassControllerOnChange:p=!1,overrideOnBlur:A=!1,isRequired:H=!1,readonly:C=!1,disabled:M=!1,parser:o,debounce:E,beforeChange:R,onChange:h,afterChange:w,beforeBlur:S,onBlur:F,afterBlur:n,onEnter:b}){const{field:{value:y,onChange:d},fieldState:{error:$=null}}=G.useController({name:x,control:a.control}),O=q.valuable(E),{onChangeTrigger:V,onBlurTrigger:r}=e.useTriggerFormField({form:a,fieldName:x,triggerType:i,debounceTime:O?0:500}),m=(t,N)=>{var U,D;const T=((U=t==null?void 0:t.target)==null?void 0:U.value)||((D=t==null?void 0:t.target)==null?void 0:D.checked)||t||void 0,g=q.valuable(o)?o(T):T;R==null||R(g),p||N==null||N(g),h==null||h(t,N),w==null||w(t,N),V==null||V()},W=I.useMemo(()=>{if(!O)return m;let t;return(T,g)=>{clearTimeout(t),t=setTimeout(()=>m(T,g),E)}},[O,E,m]),k=(t,N)=>{var g,U;const T=((g=t==null?void 0:t.target)==null?void 0:g.value)||((U=t==null?void 0:t.target)==null?void 0:U.checked)||t||void 0;!A&&p&&(d==null||d(T)),S==null||S(t,N),F==null||F(t,N),n==null||n(t,N),r==null||r()},l=(t,N)=>{b==null||b(t,N)};$!=null&&$.message&&console.log(`Error on ${j.displayName}!`,$.message);const s=q.valuable(c)?c==null?void 0:c(y):{value:y};return e.jsxRuntimeExports.jsx(e.Container,{...u==null?void 0:u.container,children:e.jsxRuntimeExports.jsx(j,{...u==null?void 0:u.field,...s,label:f,onChange:t=>W==null?void 0:W(t,d),onBlur:t=>k==null?void 0:k(t,d),onEnter:t=>l==null?void 0:l(t,d),errorMessage:$==null?void 0:$.message})})}const ee=({form:a,name:x,label:f,options:j,readonly:u=!1,disabled:i=!1,width:c="100%",flex:p,placeholder:A,iconName:H,onSelect:C,hasSelectAll:M=!1,tags:o=!0,sortOptions:E=!1,enableSearch:R=!1,valueAllOption:h,isRequired:w=!1,tooltipProps:S={},infoProps:F={},triggerFormField:n=null,...b})=>{const{onChangeTrigger:y}=e.useTriggerFormField({form:a,fieldName:x,triggerType:n,debounceTime:0});return e.jsxRuntimeExports.jsx(e.Container,{width:c,flex:p,children:e.jsxRuntimeExports.jsx(G.Controller,{name:x,control:a.control,render:({field:{value:d,onChange:$}})=>{const{error:O}=a.getFieldState(x),V=q.valuable(d)?d:[];return e.jsxRuntimeExports.jsx(e.MultiSelect,{label:f,size:"Small",disabled:i||u,onChange:r=>{$(r),C==null||C(r),y==null||y()},values:V,errorMessage:O==null?void 0:O.message,options:j,iconName:H,hasSelectAll:M,tags:o,sortOptions:E,placeholder:A,enableSearch:R,valueAllOption:h,isRequired:w,tooltipProps:{position:"top",...S},infoProps:{tooltipProps:{position:"top",maxWidth:"300px",...F.tooltipProps},...F},...b})}})})},te=({variant:a="default",form:x,name:f,label:j,options:u,readonly:i=!1,disabled:c=!1,optionsMap:p,width:A="100%",flex:H,placeholder:C,onSelect:M,parser:o,filter:E,tooltipProps:R={},infoProps:h={},maxHeigthMenu:w,isRequired:S=!1,onRemoveSelected:F,triggerFormField:n=null,displayText:b,...y})=>{const{onChangeTrigger:d}=e.useTriggerFormField({form:x,fieldName:f,triggerType:n,debounceTime:0}),$={position:"top",...R},O={...h,tooltipProps:{position:"top",maxWidth:"300px",...h==null?void 0:h.tooltipProps}},V=(m,W)=>{let k=m;o&&(k=o==null?void 0:o(m)),W(k),M==null||M(k),d==null||d()},r=I.useMemo(()=>q.valuable(p)?p:Object.fromEntries(u.map(m=>[m.value,m])),[u,p]);return e.jsxRuntimeExports.jsx(e.Container,{width:A,flex:H,children:e.jsxRuntimeExports.jsx(G.Controller,{name:f,control:x.control,render:({field:{onChange:m,value:W},fieldState:{error:k=null}})=>{let l=r[W];return e.jsxRuntimeExports.jsx(e.Select,{label:j,width:"100%",size:"Small",variant:a,disabled:c,readonly:i,filter:E,errorMessage:k==null?void 0:k.message,placeholder:C,value:l,handleOption:s=>{V(s.value,m)},tooltipProps:$,options:u,maxHeigthMenu:w,infoProps:O,maxHeightMenu:w,isRequired:S,onRemoveSelected:F,displayText:b,...y})}})})},se=a=>{const[x,f]=I.useState(!1),[j,u]=I.useState(a),i=I.useRef(null);return I.useEffect(()=>{u(a)},[a]),{setIsOpen:f,isOpen:x,setOptionsSelect:u,optionsSelect:j,selectContainerRef:i}},ie=200,le=({name:a,variant:x="primary",width:f="100%",size:j="Medium",disabled:u=!1,isLoading:i=!1,onClick:c,options:p,label:A,menuSelectProps:H={},iconName:C,optionsIconPosition:M})=>{const{isOpen:o,setIsOpen:E,selectContainerRef:R,optionsSelect:h}=se(p);let w=e.y.colors.backgroundColors.colorBackgroundSnow;u?w=e.y.colors.neutralColors.colorNeutralCloudy:x!=="primary"&&(w=e.y.colors.neutralColors.colorNeutralDark);const S={...H};return e.jsxRuntimeExports.jsxs(e.SelectContainer,{ref:R,width:f,size:j,disabled:u,onBlur:()=>setTimeout(()=>E(!1),ie),children:[A&&e.jsxRuntimeExports.jsx(e.Label$3,{children:A}),e.jsxRuntimeExports.jsxs(e.Button$1,{type:"button",size:j,disabled:u,variant:x,isLoading:i,onClick:()=>!i&&E(!o),id:`button-component-${a}`,"data-cy":`button-component-${a}`,children:[i&&e.jsxRuntimeExports.jsx(e.WrapperIcon,{size:j,disabled:u,variant:x,children:e.jsxRuntimeExports.jsx(Q.Icon,{iconName:`ProgressActivity${j==="Small"?"Ant":"Sm"}`,color:w,"data-testid":"icon-loading"})}),!i&&e.jsxRuntimeExports.jsx("p",{title:a,children:a}),!i&&(o?e.jsxRuntimeExports.jsx(Q.Icon,{iconName:`ExpandLess${j==="Small"?"Ant":"Sm"}`,color:w,"data-testid":"icon-button-less"}):e.jsxRuntimeExports.jsx(Q.Icon,{iconName:`ExpandMore${j==="Small"?"Ant":"Sm"}`,color:w,"data-testid":"icon-button-more"}))]}),o&&e.jsxRuntimeExports.jsx(e.MenuSelect,{selectContainerRef:R,value:null,optionsSelect:h,selectOption:c,size:j,inputValue:null,iconPosition:M,iconName:C,...S})]})},re=({width:a="100%",height:x="fit-content",flex:f,backgroundColor:j=e.y.colors.backgroundColors.colorBackgroundCarpet,upperComponent:u=void 0,options:i=[],lowerComponent:c=void 0,heightItems:p="60px",widthItems:A="155px",emptyProps:H={title:"Nenhum dado a ser mostrado",body:null},customWrapperStyles:C={border:`1px solid ${e.y.colors.neutralColors.colorNeutralSoft}`,borderRadius:"8px"},customItemStyles:M={},selectedItemKey:o,setSelectedItemKey:E})=>{const[R,h]=I.useState(i[0]||null),w=I.useRef(null),S=I.useRef(null);I.useEffect(()=>{const n=w.current,b=S.current,y=()=>{n&&b&&(b.scrollTop=n.scrollTop)};return n==null||n.addEventListener("scroll",y),()=>{n==null||n.removeEventListener("scroll",y)}},[]),I.useEffect(()=>{h(i[(i==null?void 0:i.length)-1]||null)},[i==null?void 0:i.length]);function F(n){E&&E(n.key),h(n)}return I.useEffect(()=>{if(typeof o=="number"&&o>=0&&o<i.length&&i.findIndex(b=>b.key===R.key)!==o&&h(i[o]),typeof o=="string"&&R.key!==o){const n=i.find(b=>b.key===o);if(!n)return;h(n)}},[o]),(i==null?void 0:i.length)===0?e.jsxRuntimeExports.jsx(e.Empty,{title:H.title,body:H.body,flex:"1",mode:"table"}):e.jsxRuntimeExports.jsxs(e.Container,{width:a,height:x,flex:f,backgroundColor:j,direction:"horizontal",customStyles:{border:`1px solid ${e.y.colors.neutralColors.colorNeutralSoft}`,borderRadius:e.y.borders.borderRadius.borderRadiusSm,...C,overflow:"hidden"},children:[e.jsxRuntimeExports.jsxs(e.Container$2,{ref:w,widthItems:A,children:[u&&u,i==null?void 0:i.map(n=>e.jsxRuntimeExports.jsx(e.ContainerItem,{selected:(R==null?void 0:R.key)===n.key,onClick:()=>F(n),withBorderRight:!0,heightItems:p,customStyles:M,children:n.item},n.key)),c&&c,e.jsxRuntimeExports.jsx(e.LastSpace,{})]}),e.jsxRuntimeExports.jsx(e.ContainerContent,{children:R&&(R==null?void 0:R.contentItem)})]})};function ne(a){return x=>typeof a=="string"?x[a]:typeof a=="function"?a(x):(console.warn("Please, setup a rowKey for table."),JSON.stringify(x))}function oe({id:a,rowKey:x="id",size:f="Small",onRowClick:j,fit:u=!1,maxHeight:i="40rem",columns:c,dataSource:p,columnsTextSize:A=f,emptyProps:H={width:"100%",height:"100%",title:"Nenhum dado a ser mostrado.",mode:"table",borders:!0,backgroundColor:e.y.colors.backgroundColors.colorBackgroundSnow},selectedRow:C=!1,hideHeader:M=!1,withBorder:o=!0,withBorderRadius:E=!0,striped:R=!1,borderRadius:h=e.y.borders.borderRadius.borderRadiusSm,disableMaxHeight:w=!1}){const S=I.useMemo(()=>ne(x),[x]),[F,n]=I.useState(null),b=I.useRef(null),y=I.useRef(null),[d,$]=I.useState(c);I.useLayoutEffect(()=>{if(!y.current||c.length===0){$(c);return}const r=()=>{var U;const W=((U=y.current)==null?void 0:U.clientWidth)||0;if(W===0)return;let k=0,l=0;const s=[],t=[];c.forEach(D=>{const L=Number(D.flex);D.width?k+=parseInt(D.width,10)||0:D.flex&&L>0?(l+=L,s.push(D)):t.push(D)});const N=W-k,T="80";let g=[...c];if(N>0){if(s.length>0){const D=N/l;g=c.map(L=>{const _=Number(L.flex);if(_&&_>0){const P=parseInt(L.minWidth||T,10),J=_*D,Z=Math.max(J,P);return{...L,width:`${Math.floor(Z)}px`}}return!L.width&&!_?{...L,width:L.minWidth||`${T}px`}:L})}else if(t.length>0){const D=N/t.length;g=c.map(L=>{const _=Number(L.flex);if(!L.width&&!_){const P=parseInt(L.minWidth||T,10),J=Math.max(D,P);return{...L,width:`${Math.floor(J)}px`}}return L})}}else g=c.map(D=>D.width?D:{...D,width:D.minWidth||`${T}px`});$(g)};r();const m=new ResizeObserver(r);return m.observe(y.current),()=>m.disconnect()},[c]),I.useEffect(()=>{const r=m=>{b.current&&!b.current.contains(m.target)&&n(null)};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[]);const O=I.useMemo(()=>d?d.some(r=>r.mergeHeaderId&&r.mergeHeaderLabel):!1,[d]),V=I.useMemo(()=>{var k,l;if(M||!d||d.length===0)return null;if(!O)return e.jsxRuntimeExports.jsx(e.TableRow,{isHeader:!0,size:f,numRows:1,borderRadius:h,children:d.map(s=>{var t;return e.jsxRuntimeExports.jsx(e.HeaderCell,{width:s.width,minWidth:s.minWidth,maxWidth:s.maxWidth,horizontalAlign:s.horizontalAlign,size:f,columnsTextSize:A,withBorder:o,headerAlign:s.headerAlign,children:((t=s.columnRender)==null?void 0:t.call(s,p))||e.jsxRuntimeExports.jsx("span",{title:s.label,children:s.label})},s.dataIndex)})});const r=[],m=[];let W=0;for(;W<d.length;){const s=d[W];if(s.mergeHeaderId&&s.mergeHeaderLabel){let t=0;const N=s.mergeHeaderId;for(let T=W;T<d.length&&d[T].mergeHeaderId===N;T++)t++;r.push(e.jsxRuntimeExports.jsx(e.HeaderCell,{colSpan:t,horizontalAlign:"center",size:f,columnsTextSize:A,withBorder:o,width:s.width,minWidth:s.minWidth,maxWidth:s.maxWidth,headerAlign:s.headerAlign,isTopRow:!0,children:e.jsxRuntimeExports.jsx("span",{title:s.mergeHeaderLabel,children:s.mergeHeaderLabel})},`${s.mergeHeaderId}-merged`));for(let T=0;T<t;T++){const g=d[W+T];m.push(e.jsxRuntimeExports.jsx(e.HeaderCell,{width:g.width,minWidth:g.minWidth,maxWidth:g.maxWidth,horizontalAlign:g.horizontalAlign,size:f,columnsTextSize:A,withBorder:o,headerAlign:s.headerAlign,children:((k=g.columnRender)==null?void 0:k.call(g,p))||e.jsxRuntimeExports.jsx("span",{title:g.label,children:g.label})},g.dataIndex+"-individual"))}W+=t}else r.push(e.jsxRuntimeExports.jsx(e.HeaderCell,{rowSpan:2,width:s.width,minWidth:s.minWidth,maxWidth:s.maxWidth,horizontalAlign:s.horizontalAlign,size:f,columnsTextSize:A,withBorder:o,headerAlign:s.headerAlign,isTopRow:!0,children:((l=s.columnRender)==null?void 0:l.call(s,p))||e.jsxRuntimeExports.jsx("span",{title:s.label,children:s.label})},s.dataIndex)),W++}return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.TableRow,{isHeader:!0,size:f,numRows:2,borderRadius:h,children:r}),m.length>0&&e.jsxRuntimeExports.jsx(e.TableRow,{isHeader:!0,size:f,numRows:2,borderRadius:h,children:m})]})},[d,M,f,A,O]);return!p||p.length===0?e.jsxRuntimeExports.jsx(e.Empty,{backgroundColor:e.y.colors.backgroundColors.colorBackgroundSnow,borders:!0,mode:"table",...H}):e.jsxRuntimeExports.jsx(e.ContainerTable,{maxHeight:i,disableMaxHeight:w,withBorderRadius:E,ref:y,borderRadius:h,children:e.jsxRuntimeExports.jsxs(e.Table,{id:a,ref:b,children:[e.jsxRuntimeExports.jsx("thead",{children:V}),e.jsxRuntimeExports.jsx("tbody",{style:{width:"100%"},children:p==null?void 0:p.map((r,m,W)=>{const k=S(r);return e.jsxRuntimeExports.jsx(e.TableRow,{isLast:m===W.length-1,fit:u,size:f,withBorder:o,isSelected:k===F&&C,striped:R&&m%2!==0,borderRadius:h,children:d.map(l=>{var s,t,N,T,g;return e.jsxRuntimeExports.jsx(e.RowCell,{width:l.width,minWidth:l.minWidth,maxWidth:l.maxWidth,size:f,isClickable:q.valuable(j),onClick:()=>{j&&j(r,l,m),C&&n(F===k?null:k)},horizontalAlign:l.horizontalAlign,verticalAlign:l.verticalAlign,rowPadding:l.rowPadding,withBorder:o,isLast:m===W.length-1,disabled:(s=l.disable)==null?void 0:s.call(l,r[l.dataIndex],r,m,W),hasError:(t=l.warn)==null?void 0:t.call(l,r[l.dataIndex],r,m,W),backgroundColor:(N=l.paint)==null?void 0:N.call(l,r[l.dataIndex],r,m,W),children:((T=l.render)==null?void 0:T.call(l,r[l.dataIndex],r,m,W))||e.jsxRuntimeExports.jsx(e.CellText,{title:r[l.dataIndex],style:(g=l.rowCss)==null?void 0:g.call(l,r),children:r[l.dataIndex]})||""},`${k}::${l.dataIndex}`)})},k)})})]})})}exports.CheckboxField=v;exports.CollapseSection=z;exports.DateField=B;exports.FormFieldView=K;exports.MultiSelectField=ee;exports.SelectButton=le;exports.SelectField=te;exports.TabInfo=re;exports.Table=oe;
@@ -1,4 +1,4 @@
1
- import { W as e, b as P, o as re, ah as z, C as ne, D as ae, l as de, P as oe, U, ai as ce, aj as he, ak as ue, al as fe, K as xe, E as le, am as ge, an as pe, ao as be, ap as je, aq as Y, ar as Z, as as me, at as we, au as We, av as Ie } from "./GenericAGGridTable-_tzyMjlo.js";
1
+ import { W as e, b as P, o as re, ah as z, C as ae, D as ne, l as de, P as oe, U, ai as ce, aj as he, ak as ue, al as fe, K as xe, E as le, am as ge, an as pe, ao as be, ap as je, aq as Y, ar as Z, as as me, at as we, au as We, av as Ie } from "./GenericAGGridTable-DeqXRv6H.js";
2
2
  import { useState as q, useEffect as G, useMemo as Q, useRef as X, useLayoutEffect as Se } from "react";
3
3
  import "react-dom";
4
4
  import { Icon as ee } from "sbwb-ds";
@@ -18,7 +18,7 @@ const se = 350, Le = ({
18
18
  // Default to 'none' to allow full expansion
19
19
  height: C = "fit-content"
20
20
  }) => {
21
- const [T, M] = q(!1), [a, W] = q(!0);
21
+ const [T, M] = q(!1), [n, W] = q(!0);
22
22
  G(() => {
23
23
  if (g)
24
24
  if (T) {
@@ -30,7 +30,7 @@ const se = 350, Le = ({
30
30
  } else
31
31
  W(!0);
32
32
  }, [T, g]);
33
- const j = g && !a ? null : x;
33
+ const j = g && !n ? null : x;
34
34
  return /* @__PURE__ */ e.jsxs(
35
35
  P,
36
36
  {
@@ -84,7 +84,7 @@ function Oe({
84
84
  parser: C,
85
85
  flex: T,
86
86
  size: M = "Medium",
87
- checkColor: a,
87
+ checkColor: n,
88
88
  triggerFormField: W = null,
89
89
  ...j
90
90
  }) {
@@ -102,12 +102,12 @@ function Oe({
102
102
  name: c,
103
103
  control: o.control,
104
104
  render: ({
105
- field: { onChange: S, value: $, onBlur: n },
105
+ field: { onChange: S, value: $, onBlur: a },
106
106
  fieldState: { error: m = null }
107
107
  }) => {
108
108
  const A = m == null ? void 0 : m.message;
109
109
  return A && console.log("Error on checkbox!", A), /* @__PURE__ */ e.jsx(
110
- ne,
110
+ ae,
111
111
  {
112
112
  id: `form-checkbox-${x}`,
113
113
  checked: y ? y($) : !!$,
@@ -118,10 +118,10 @@ function Oe({
118
118
  I(
119
119
  (C == null ? void 0 : C(d.target.checked, $)) ?? d.target.checked,
120
120
  S
121
- ), n == null || n();
121
+ ), a == null || a();
122
122
  },
123
123
  size: M,
124
- checkColor: a,
124
+ checkColor: n,
125
125
  ...j
126
126
  }
127
127
  );
@@ -142,7 +142,7 @@ const Ee = ({
142
142
  tooltipMaxWidth: C,
143
143
  tooltipPosition: T = "top",
144
144
  afterFormChange: M,
145
- openToDate: a,
145
+ openToDate: n,
146
146
  range: W = !1,
147
147
  openCalendarOnInputClick: j = !1,
148
148
  ...f
@@ -153,14 +153,14 @@ const Ee = ({
153
153
  {
154
154
  name: c,
155
155
  control: o.control,
156
- render: ({ field: { value: S, onChange: $, ref: n } }) => {
156
+ render: ({ field: { value: S, onChange: $, ref: a } }) => {
157
157
  let m;
158
158
  _(S) && (W ? m = Array.isArray(S) ? S.join(" - ") : S : m = new Date(Ae(S.slice(0, 10))));
159
159
  const { error: A } = o.getFieldState(c, o.formState);
160
160
  return /* @__PURE__ */ e.jsx(
161
- ae,
161
+ ne,
162
162
  {
163
- ref: n,
163
+ ref: a,
164
164
  idCalendar: `${c}-calendar`,
165
165
  label: x,
166
166
  value: m,
@@ -178,7 +178,7 @@ const Ee = ({
178
178
  }) : ((O = te(d)) == null ? void 0 : O.slice(0, 10)) || null
179
179
  ), M == null || M(d);
180
180
  },
181
- openToDate: a,
181
+ openToDate: n,
182
182
  selectsRange: W,
183
183
  openCalendarOnInputClick: j,
184
184
  width: u,
@@ -206,7 +206,7 @@ function Ue({
206
206
  readonly: T = !1,
207
207
  disabled: M = !1,
208
208
  // Tranformations
209
- parser: a,
209
+ parser: n,
210
210
  // Debounce
211
211
  debounce: W,
212
212
  // Change handlers
@@ -216,7 +216,7 @@ function Ue({
216
216
  // Blur handlers
217
217
  beforeBlur: S,
218
218
  onBlur: $,
219
- afterBlur: n,
219
+ afterBlur: a,
220
220
  // Enter handlers
221
221
  onEnter: m
222
222
  }) {
@@ -230,7 +230,7 @@ function Ue({
230
230
  debounceTime: O ? 0 : 500
231
231
  }), b = (t, H) => {
232
232
  var V, D;
233
- const N = ((V = t == null ? void 0 : t.target) == null ? void 0 : V.value) || ((D = t == null ? void 0 : t.target) == null ? void 0 : D.checked) || t || void 0, w = _(a) ? a(N) : N;
233
+ const N = ((V = t == null ? void 0 : t.target) == null ? void 0 : V.value) || ((D = t == null ? void 0 : t.target) == null ? void 0 : D.checked) || t || void 0, w = _(n) ? n(N) : N;
234
234
  j == null || j(w), g || H == null || H(w), f == null || f(t, H), I == null || I(t, H), E == null || E();
235
235
  }, k = Q(() => {
236
236
  if (!O) return b;
@@ -241,7 +241,7 @@ function Ue({
241
241
  }, [O, W, b]), R = (t, H) => {
242
242
  var w, V;
243
243
  const N = ((w = t == null ? void 0 : t.target) == null ? void 0 : w.value) || ((V = t == null ? void 0 : t.target) == null ? void 0 : V.checked) || t || void 0;
244
- !y && g && (d == null || d(N)), S == null || S(t, H), $ == null || $(t, H), n == null || n(t, H), r == null || r();
244
+ !y && g && (d == null || d(N)), S == null || S(t, H), $ == null || $(t, H), a == null || a(t, H), r == null || r();
245
245
  }, i = (t, H) => {
246
246
  m == null || m(t, H);
247
247
  };
@@ -273,20 +273,20 @@ const Ve = ({
273
273
  iconName: C,
274
274
  onSelect: T,
275
275
  hasSelectAll: M = !1,
276
- tags: a = !0,
276
+ tags: n = !0,
277
277
  sortOptions: W = !1,
278
278
  enableSearch: j = !1,
279
279
  valueAllOption: f,
280
280
  isRequired: I = !1,
281
281
  tooltipProps: S = {},
282
282
  infoProps: $ = {},
283
- triggerFormField: n = null,
283
+ triggerFormField: a = null,
284
284
  ...m
285
285
  }) => {
286
286
  const { onChangeTrigger: A } = z({
287
287
  form: o,
288
288
  fieldName: c,
289
- triggerType: n,
289
+ triggerType: a,
290
290
  debounceTime: 0
291
291
  });
292
292
  return /* @__PURE__ */ e.jsx(P, { width: u, flex: g, children: /* @__PURE__ */ e.jsx(
@@ -310,7 +310,7 @@ const Ve = ({
310
310
  options: p,
311
311
  iconName: C,
312
312
  hasSelectAll: M,
313
- tags: a,
313
+ tags: n,
314
314
  sortOptions: W,
315
315
  placeholder: y,
316
316
  enableSearch: j,
@@ -347,21 +347,21 @@ const Ve = ({
347
347
  flex: C,
348
348
  placeholder: T,
349
349
  onSelect: M,
350
- parser: a,
350
+ parser: n,
351
351
  filter: W,
352
352
  tooltipProps: j = {},
353
353
  infoProps: f = {},
354
354
  maxHeigthMenu: I,
355
355
  isRequired: S = !1,
356
356
  onRemoveSelected: $,
357
- triggerFormField: n = null,
357
+ triggerFormField: a = null,
358
358
  displayText: m,
359
359
  ...A
360
360
  }) => {
361
361
  const { onChangeTrigger: d } = z({
362
362
  form: c,
363
363
  fieldName: x,
364
- triggerType: n,
364
+ triggerType: a,
365
365
  debounceTime: 0
366
366
  }), F = {
367
367
  position: "top",
@@ -375,7 +375,7 @@ const Ve = ({
375
375
  }
376
376
  }, E = (b, k) => {
377
377
  let R = b;
378
- a && (R = a == null ? void 0 : a(b)), k(R), M == null || M(R), d == null || d();
378
+ n && (R = n == null ? void 0 : n(b)), k(R), M == null || M(R), d == null || d();
379
379
  }, r = Q(() => _(g) ? g : Object.fromEntries(h.map((b) => [b.value, b])), [h, g]);
380
380
  return /* @__PURE__ */ e.jsx(P, { width: y, flex: C, children: /* @__PURE__ */ e.jsx(
381
381
  B,
@@ -442,7 +442,7 @@ const Ve = ({
442
442
  iconName: T,
443
443
  optionsIconPosition: M
444
444
  }) => {
445
- const { isOpen: a, setIsOpen: W, selectContainerRef: j, optionsSelect: f } = Re(g);
445
+ const { isOpen: n, setIsOpen: W, selectContainerRef: j, optionsSelect: f } = Re(g);
446
446
  let I = U.colors.backgroundColors.colorBackgroundSnow;
447
447
  h ? I = U.colors.neutralColors.colorNeutralCloudy : c !== "primary" && (I = U.colors.neutralColors.colorNeutralDark);
448
448
  const S = {
@@ -466,7 +466,7 @@ const Ve = ({
466
466
  disabled: h,
467
467
  variant: c,
468
468
  isLoading: l,
469
- onClick: () => !l && W(!a),
469
+ onClick: () => !l && W(!n),
470
470
  id: `button-component-${o}`,
471
471
  "data-cy": `button-component-${o}`,
472
472
  children: [
@@ -479,7 +479,7 @@ const Ve = ({
479
479
  }
480
480
  ) }),
481
481
  !l && /* @__PURE__ */ e.jsx("p", { title: o, children: o }),
482
- !l && (a ? /* @__PURE__ */ e.jsx(
482
+ !l && (n ? /* @__PURE__ */ e.jsx(
483
483
  ee,
484
484
  {
485
485
  iconName: `ExpandLess${p === "Small" ? "Ant" : "Sm"}`,
@@ -497,7 +497,7 @@ const Ve = ({
497
497
  ]
498
498
  }
499
499
  ),
500
- a && /* @__PURE__ */ e.jsx(
500
+ n && /* @__PURE__ */ e.jsx(
501
501
  xe,
502
502
  {
503
503
  selectContainerRef: j,
@@ -529,44 +529,41 @@ const Ve = ({
529
529
  body: null
530
530
  },
531
531
  customWrapperStyles: T = {
532
- borderTop: `1px solid ${U.colors.neutralColors.colorNeutralSoft}`,
533
- borderRight: "none",
534
- borderBottom: "none",
535
- borderLeft: "none",
536
- borderRadius: "0px"
532
+ border: `1px solid ${U.colors.neutralColors.colorNeutralSoft}`,
533
+ borderRadius: "8px"
537
534
  },
538
535
  customItemStyles: M = {},
539
- selectedItemKey: a,
536
+ selectedItemKey: n,
540
537
  setSelectedItemKey: W
541
538
  }) => {
542
539
  const [j, f] = q(
543
540
  l[0] || null
544
541
  ), I = X(null), S = X(null);
545
542
  G(() => {
546
- const n = I.current, m = S.current, A = () => {
547
- n && m && (m.scrollTop = n.scrollTop);
543
+ const a = I.current, m = S.current, A = () => {
544
+ a && m && (m.scrollTop = a.scrollTop);
548
545
  };
549
- return n == null || n.addEventListener("scroll", A), () => {
550
- n == null || n.removeEventListener("scroll", A);
546
+ return a == null || a.addEventListener("scroll", A), () => {
547
+ a == null || a.removeEventListener("scroll", A);
551
548
  };
552
549
  }, []), G(() => {
553
550
  f(l[(l == null ? void 0 : l.length) - 1] || null);
554
551
  }, [l == null ? void 0 : l.length]);
555
- function $(n) {
556
- W && W(n.key), f(n);
552
+ function $(a) {
553
+ W && W(a.key), f(a);
557
554
  }
558
555
  return G(() => {
559
- if (typeof a == "number" && a >= 0 && a < l.length && l.findIndex(
556
+ if (typeof n == "number" && n >= 0 && n < l.length && l.findIndex(
560
557
  (m) => m.key === j.key
561
- ) !== a && f(l[a]), typeof a == "string" && j.key !== a) {
562
- const n = l.find(
563
- (m) => m.key === a
558
+ ) !== n && f(l[n]), typeof n == "string" && j.key !== n) {
559
+ const a = l.find(
560
+ (m) => m.key === n
564
561
  );
565
- if (!n)
562
+ if (!a)
566
563
  return;
567
- f(n);
564
+ f(a);
568
565
  }
569
- }, [a]), (l == null ? void 0 : l.length) === 0 ? /* @__PURE__ */ e.jsx(
566
+ }, [n]), (l == null ? void 0 : l.length) === 0 ? /* @__PURE__ */ e.jsx(
570
567
  le,
571
568
  {
572
569
  title: C.title,
@@ -591,17 +588,17 @@ const Ve = ({
591
588
  children: [
592
589
  /* @__PURE__ */ e.jsxs(ge, { ref: I, widthItems: y, children: [
593
590
  h && h,
594
- l == null ? void 0 : l.map((n) => /* @__PURE__ */ e.jsx(
591
+ l == null ? void 0 : l.map((a) => /* @__PURE__ */ e.jsx(
595
592
  pe,
596
593
  {
597
- selected: (j == null ? void 0 : j.key) === n.key,
598
- onClick: () => $(n),
594
+ selected: (j == null ? void 0 : j.key) === a.key,
595
+ onClick: () => $(a),
599
596
  withBorderRight: !0,
600
597
  heightItems: g,
601
598
  customStyles: M,
602
- children: n.item
599
+ children: a.item
603
600
  },
604
- n.key
601
+ a.key
605
602
  )),
606
603
  u && u,
607
604
  /* @__PURE__ */ e.jsx(be, {})
@@ -634,13 +631,13 @@ function Je({
634
631
  },
635
632
  selectedRow: T = !1,
636
633
  hideHeader: M = !1,
637
- withBorder: a = !0,
634
+ withBorder: n = !0,
638
635
  withBorderRadius: W = !0,
639
636
  striped: j = !1,
640
637
  borderRadius: f = U.borders.borderRadius.borderRadiusSm,
641
638
  disableMaxHeight: I = !1
642
639
  }) {
643
- const S = Q(() => Ne(c), [c]), [$, n] = q(null), m = X(null), A = X(null), [d, F] = q(u);
640
+ const S = Q(() => Ne(c), [c]), [$, a] = q(null), m = X(null), A = X(null), [d, F] = q(u);
644
641
  Se(() => {
645
642
  if (!A.current || u.length === 0) {
646
643
  F(u);
@@ -692,7 +689,7 @@ function Je({
692
689
  return b.observe(A.current), () => b.disconnect();
693
690
  }, [u]), G(() => {
694
691
  const r = (b) => {
695
- m.current && !m.current.contains(b.target) && n(null);
692
+ m.current && !m.current.contains(b.target) && a(null);
696
693
  };
697
694
  return document.addEventListener("mousedown", r), () => {
698
695
  document.removeEventListener("mousedown", r);
@@ -723,7 +720,7 @@ function Je({
723
720
  horizontalAlign: s.horizontalAlign,
724
721
  size: x,
725
722
  columnsTextSize: y,
726
- withBorder: a,
723
+ withBorder: n,
727
724
  headerAlign: s.headerAlign,
728
725
  children: ((t = s.columnRender) == null ? void 0 : t.call(s, g)) || /* @__PURE__ */ e.jsx("span", { title: s.label, children: s.label })
729
726
  },
@@ -749,7 +746,7 @@ function Je({
749
746
  horizontalAlign: "center",
750
747
  size: x,
751
748
  columnsTextSize: y,
752
- withBorder: a,
749
+ withBorder: n,
753
750
  width: s.width,
754
751
  minWidth: s.minWidth,
755
752
  maxWidth: s.maxWidth,
@@ -772,7 +769,7 @@ function Je({
772
769
  horizontalAlign: w.horizontalAlign,
773
770
  size: x,
774
771
  columnsTextSize: y,
775
- withBorder: a,
772
+ withBorder: n,
776
773
  headerAlign: s.headerAlign,
777
774
  children: ((R = w.columnRender) == null ? void 0 : R.call(w, g)) || /* @__PURE__ */ e.jsx("span", { title: w.label, children: w.label })
778
775
  },
@@ -793,7 +790,7 @@ function Je({
793
790
  horizontalAlign: s.horizontalAlign,
794
791
  size: x,
795
792
  columnsTextSize: y,
796
- withBorder: a,
793
+ withBorder: n,
797
794
  headerAlign: s.headerAlign,
798
795
  isTopRow: !0,
799
796
  children: ((i = s.columnRender) == null ? void 0 : i.call(s, g)) || /* @__PURE__ */ e.jsx("span", { title: s.label, children: s.label })
@@ -851,7 +848,7 @@ function Je({
851
848
  isLast: b === k.length - 1,
852
849
  fit: h,
853
850
  size: x,
854
- withBorder: a,
851
+ withBorder: n,
855
852
  isSelected: R === $ && T,
856
853
  striped: j && b % 2 !== 0,
857
854
  borderRadius: f,
@@ -866,14 +863,14 @@ function Je({
866
863
  size: x,
867
864
  isClickable: _(p),
868
865
  onClick: () => {
869
- p && p(r, i, b), T && n(
866
+ p && p(r, i, b), T && a(
870
867
  $ === R ? null : R
871
868
  );
872
869
  },
873
870
  horizontalAlign: i.horizontalAlign,
874
871
  verticalAlign: i.verticalAlign,
875
872
  rowPadding: i.rowPadding,
876
- withBorder: a,
873
+ withBorder: n,
877
874
  isLast: b === k.length - 1,
878
875
  disabled: (s = i.disable) == null ? void 0 : s.call(
879
876
  i,
@@ -1,4 +1,4 @@
1
- import { W as C, a7 as n, a8 as t, a9 as i, aa as l, b as o, a4 as c, ab as d, $ as h, U as V, ac as x, ad as H, ae as L, af as g, ag as j } from "./GenericAGGridTable-_tzyMjlo.js";
1
+ import { W as C, a7 as n, a8 as t, a9 as i, aa as l, b as o, a4 as c, ab as d, $ as h, U as V, ac as x, ad as H, ae as L, af as g, ag as j } from "./GenericAGGridTable-DeqXRv6H.js";
2
2
  import * as s from "react";
3
3
  const p = (e) => /* @__PURE__ */ s.createElement("svg", { width: 145, height: 29, viewBox: "0 0 145 29", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ s.createElement("path", { d: "M143.505 15.5289C143.119 15.1091 142.658 14.7441 142.136 14.4397C141.614 14.1353 141.548 13.3879 142.038 13.0056C142.4 12.72 142.725 12.3939 143.008 12.0246C143.878 10.8935 144.321 9.50559 144.321 7.91716C144.321 5.55832 143.536 3.81552 141.987 2.7407C140.491 1.70772 138.175 1.17969 135.111 1.17969H127.93V27.8627H136.058C137.785 27.8627 139.334 27.5828 140.662 27.0317C142.022 26.4705 143.099 25.6019 143.857 24.4391C144.616 23.2893 145.001 21.8134 145.001 20.0706C145.001 18.1359 144.498 16.6037 143.509 15.5203V15.5289H143.505ZM135.108 3.95547C137.349 3.95547 138.981 4.29162 139.956 4.95094C140.892 5.58573 141.345 6.62882 141.345 8.13789C141.345 9.64697 140.921 10.6929 140.041 11.423C139.147 12.1659 137.636 12.5396 135.546 12.5396H130.835V3.94681H135.108V3.95547ZM135.884 25.1302H130.834V15.2764H135.578C137.814 15.2764 139.47 15.6689 140.501 16.4306C141.503 17.1736 141.988 18.3321 141.988 19.9681C141.988 23.4393 139.993 25.1258 135.884 25.1258V25.1302Z", fill: "white" }), /* @__PURE__ */ s.createElement("path", { d: "M126.354 1.2708V4.42025H113.883L111.624 4.4289C108.3 4.30339 106.668 4.97569 106.334 6.3405C105.911 8.03713 106.221 10.3209 106.556 12.7375C107.159 17.1479 107.841 22.1151 104.382 25.7306C103.064 27.1084 101.384 27.8701 99.6571 27.8701C98.0375 27.8701 96.499 27.2252 95.1955 26.0105C92.9365 23.894 92.7437 18.7781 92.5407 13.3622V13.2828C92.4508 11.0538 92.2492 5.83122 91.5663 5.18056C91.1328 4.95116 90.5354 5.29309 90.531 5.29742C89.4479 5.98415 89.2696 11.3063 89.1666 14.4832C88.9926 19.5803 88.823 24.3643 86.5262 26.1735C84.5398 27.7388 81.4441 27.8788 79.1605 26.5053C74.0349 23.4222 74.5438 15.6749 74.9106 10.0122L74.9208 9.86216C75.0382 8.05877 75.1557 2.91982 74.973 2.05997C74.9309 1.85943 74.8932 1.64014 74.8932 1.64014C74.8845 1.58387 74.87 1.5377 74.8599 1.50452C74.8512 1.47711 74.8411 1.44393 74.8222 1.39776C74.8034 1.36025 74.7845 1.33717 74.7657 1.29966C74.7091 1.21021 74.667 1.16404 74.625 1.13086H78.1455L78.1977 1.40209C78.4804 2.72939 78.3485 7.96211 78.202 10.2286C77.8874 15.0502 77.4582 21.6621 80.87 23.7122C81.9763 24.3759 83.5669 24.334 84.4847 23.6098C85.5852 22.7456 85.765 17.5316 85.8738 14.4154V14.3504C86.0623 8.884 86.2218 4.16056 88.7824 2.53029C89.3464 2.1422 91.2763 1.32418 93.154 2.31966C95.3565 3.47815 95.5972 7.0431 95.8364 13.2381C95.9727 16.9098 96.1844 22.4383 97.4604 23.6343C98.8871 24.9703 100.623 24.914 101.993 23.4843C104.369 20.9985 103.824 17.0324 103.292 13.2006C102.921 10.4623 102.563 7.8741 103.133 5.56143C103.881 2.54328 106.766 1.10345 111.716 1.27225H126.358L126.354 1.2708Z", fill: "white" }), /* @__PURE__ */ s.createElement("path", { d: "M125.696 25.3138V27.7347C125.696 27.8097 125.635 27.8703 125.56 27.8703H111.601C111.526 27.8703 111.465 27.8097 111.465 27.7347V8.29703C111.465 7.69831 111.634 7.10102 112.02 6.64368C112.5 6.07381 113.179 5.76074 113.902 5.76074H114.372V13.3393C114.372 13.4143 114.433 13.4749 114.508 13.4749H124.915C124.99 13.4749 125.051 13.5355 125.051 13.6105V15.9939C125.051 16.0689 124.99 16.1295 124.915 16.1295H114.508C114.433 16.1295 114.372 16.1901 114.372 16.2651V25.0542C114.372 25.1292 114.433 25.1898 114.508 25.1898H125.558C125.634 25.1898 125.695 25.2504 125.695 25.3254V25.3167L125.696 25.3138Z", fill: "white" }), /* @__PURE__ */ s.createElement("path", { d: "M19.9601 16.6532C20.427 17.6357 20.6604 18.7048 20.6604 19.8604C20.6604 21.4676 20.266 22.9218 19.4787 24.2232C18.7044 25.5115 17.5372 26.5344 15.9756 27.2904C14.414 28.0334 12.4653 28.4056 10.1294 28.4056C8.51414 28.4056 6.79305 28.1531 4.96465 27.6482C3.13626 27.1302 1.48186 26.393 0 25.4365C0.0797476 24.5333 0.361039 23.6504 0.840975 22.7877C1.32091 21.9105 1.86899 21.2079 2.48233 20.6755C3.60314 21.3392 4.87765 21.9437 6.30586 22.4876C7.73407 23.0185 9.16228 23.2839 10.5905 23.2839C11.7519 23.2839 12.5856 23.0055 13.0931 22.4472C13.6006 21.8888 13.8543 21.2916 13.8543 20.6539C13.8543 20.2283 13.7137 19.7435 13.4338 19.1996C13.154 18.6413 12.4522 18.1306 11.3314 17.666L6.50595 15.6736C4.85155 14.9826 3.4828 14.0607 2.40258 12.9051C1.32091 11.7495 0.781527 10.2231 0.781527 8.32301C0.781527 6.66245 1.21506 5.2082 2.08214 3.96025C2.94921 2.7123 4.11788 1.7428 5.58523 1.05174C7.06709 0.352022 8.71569 0 10.531 0C12.3464 0 14.2009 0.245261 15.8567 0.737226C17.5256 1.22919 18.8799 1.74713 19.921 2.29103C19.8673 3.20715 19.6469 4.09009 19.2598 4.93985C18.8857 5.77662 18.3854 6.48067 17.7576 7.05198C16.7426 6.57444 15.5551 6.13586 14.1936 5.73767C12.8321 5.3265 11.6113 5.12019 10.5296 5.12019C9.38122 5.12019 8.56054 5.37844 8.06756 5.89637C7.58762 6.4143 7.34693 6.93945 7.34693 7.47037C7.34693 8.00129 7.51367 8.42689 7.84716 8.82508C8.1937 9.22327 8.80849 9.60847 9.68861 9.98069L14.6141 11.9933C15.9089 12.5242 17.0036 13.1878 17.8968 13.9857C18.8045 14.7691 19.4918 15.6592 19.9586 16.6547L19.9601 16.6532ZM42.6461 0.493408C42.2155 0.493408 41.7007 0.507835 41.1034 0.535247C40.519 0.562658 39.9492 0.631908 39.3939 0.742997V17.6905C39.3939 19.5098 39.0662 20.8847 38.4108 21.8138C37.7554 22.7299 36.6332 23.1887 35.0469 23.1887C33.4606 23.1887 32.3587 22.7299 31.7033 21.8138C31.0479 20.8847 30.7202 19.5098 30.7202 17.6905V4.22282C30.7202 2.80175 30.3983 1.77887 29.756 1.15561C29.1137 0.517934 28.1886 0.199094 26.9822 0.199094H24.6609L24.3796 0.458783V17.63C24.3796 19.8748 24.8001 21.7936 25.6425 23.3864C26.4849 24.9662 27.7145 26.1751 29.3312 27.0119C30.9479 27.8487 32.9126 28.2671 35.2238 28.2671C37.535 28.2671 39.5128 27.8487 41.1164 27.0119C42.7331 26.1751 43.9627 24.9662 44.8051 23.3864C45.6475 21.7922 46.068 19.8734 46.068 17.63V0.741555C45.5402 0.630466 44.9356 0.561215 44.2541 0.533804C43.5871 0.506392 43.0521 0.491965 42.649 0.491965L42.6461 0.493408ZM71.899 19.6209C71.899 21.4806 71.4858 23.0069 70.6578 24.203C69.8444 25.3845 68.6888 26.2617 67.1939 26.833C65.699 27.4043 63.93 27.69 61.8885 27.69C60.3399 27.69 58.7319 27.6698 57.063 27.6308C55.4086 27.6049 53.7267 27.5717 52.0186 27.5313L51.7388 27.2529V0.438585L52.0186 0.160141C53.6208 0.119745 55.2013 0.0865628 56.7629 0.060594C58.3376 0.020198 59.8325 0.00144271 61.2476 0.00144271C63.1166 0.00144271 64.7507 0.261131 66.1528 0.777622C67.5549 1.28257 68.6482 2.07174 69.4355 3.148C70.2228 4.20984 70.6172 5.57753 70.6172 7.25108C70.6172 8.22058 70.391 9.12949 69.9372 9.98069C69.4964 10.8304 68.9092 11.5345 68.1755 12.0928C67.8449 12.3453 67.4955 12.5516 67.1315 12.7074C67.6985 12.8935 68.2393 13.172 68.7569 13.5471C69.7052 14.2237 70.465 15.1009 71.0392 16.1771C71.6133 17.239 71.9004 18.3888 71.9004 19.6238L71.899 19.6209ZM58.078 10.8232H60.9214C61.816 10.8232 62.5076 10.666 62.9948 10.3515C63.482 10.024 63.8242 9.61713 64.0214 9.13382C64.2186 8.64907 64.3172 8.15133 64.3172 7.64061C64.3172 7.12989 64.2186 6.61917 64.0214 6.1474C63.8242 5.67563 63.4747 5.28899 62.9745 4.98746C62.4873 4.67295 61.8029 4.51569 60.9199 4.51569H59.6164C59.0901 4.50271 58.5768 4.48972 58.0766 4.47674V10.8247L58.078 10.8232ZM65.5047 19.3958C65.5047 18.8115 65.3843 18.22 65.1436 17.6227C64.9174 17.0125 64.5028 16.5003 63.9025 16.0891C63.3152 15.678 62.4873 15.4717 61.4202 15.4717H58.0766V23.2609C58.7305 23.2479 59.3511 23.2407 59.9383 23.2407C60.5255 23.2277 61.033 23.2205 61.4593 23.2205C62.554 23.2205 63.3877 23.0214 63.9619 22.6232C64.5492 22.212 64.9493 21.7128 65.1625 21.1285C65.3887 20.5313 65.5032 19.9527 65.5032 19.3958H65.5047Z", fill: "white" })), f = ({ labelTab: e, appIcon: a }) => /* @__PURE__ */ C.jsxs(n, { children: [
4
4
  /* @__PURE__ */ C.jsx(t, { children: /* @__PURE__ */ C.jsx(p, {}) }),
@@ -1 +1 @@
1
- "use strict";const C=require("./GenericAGGridTable-B-VthvhD.cjs"),i=require("react");function o(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=o(i),l=e=>n.createElement("svg",{width:145,height:29,viewBox:"0 0 145 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M143.505 15.5289C143.119 15.1091 142.658 14.7441 142.136 14.4397C141.614 14.1353 141.548 13.3879 142.038 13.0056C142.4 12.72 142.725 12.3939 143.008 12.0246C143.878 10.8935 144.321 9.50559 144.321 7.91716C144.321 5.55832 143.536 3.81552 141.987 2.7407C140.491 1.70772 138.175 1.17969 135.111 1.17969H127.93V27.8627H136.058C137.785 27.8627 139.334 27.5828 140.662 27.0317C142.022 26.4705 143.099 25.6019 143.857 24.4391C144.616 23.2893 145.001 21.8134 145.001 20.0706C145.001 18.1359 144.498 16.6037 143.509 15.5203V15.5289H143.505ZM135.108 3.95547C137.349 3.95547 138.981 4.29162 139.956 4.95094C140.892 5.58573 141.345 6.62882 141.345 8.13789C141.345 9.64697 140.921 10.6929 140.041 11.423C139.147 12.1659 137.636 12.5396 135.546 12.5396H130.835V3.94681H135.108V3.95547ZM135.884 25.1302H130.834V15.2764H135.578C137.814 15.2764 139.47 15.6689 140.501 16.4306C141.503 17.1736 141.988 18.3321 141.988 19.9681C141.988 23.4393 139.993 25.1258 135.884 25.1258V25.1302Z",fill:"white"}),n.createElement("path",{d:"M126.354 1.2708V4.42025H113.883L111.624 4.4289C108.3 4.30339 106.668 4.97569 106.334 6.3405C105.911 8.03713 106.221 10.3209 106.556 12.7375C107.159 17.1479 107.841 22.1151 104.382 25.7306C103.064 27.1084 101.384 27.8701 99.6571 27.8701C98.0375 27.8701 96.499 27.2252 95.1955 26.0105C92.9365 23.894 92.7437 18.7781 92.5407 13.3622V13.2828C92.4508 11.0538 92.2492 5.83122 91.5663 5.18056C91.1328 4.95116 90.5354 5.29309 90.531 5.29742C89.4479 5.98415 89.2696 11.3063 89.1666 14.4832C88.9926 19.5803 88.823 24.3643 86.5262 26.1735C84.5398 27.7388 81.4441 27.8788 79.1605 26.5053C74.0349 23.4222 74.5438 15.6749 74.9106 10.0122L74.9208 9.86216C75.0382 8.05877 75.1557 2.91982 74.973 2.05997C74.9309 1.85943 74.8932 1.64014 74.8932 1.64014C74.8845 1.58387 74.87 1.5377 74.8599 1.50452C74.8512 1.47711 74.8411 1.44393 74.8222 1.39776C74.8034 1.36025 74.7845 1.33717 74.7657 1.29966C74.7091 1.21021 74.667 1.16404 74.625 1.13086H78.1455L78.1977 1.40209C78.4804 2.72939 78.3485 7.96211 78.202 10.2286C77.8874 15.0502 77.4582 21.6621 80.87 23.7122C81.9763 24.3759 83.5669 24.334 84.4847 23.6098C85.5852 22.7456 85.765 17.5316 85.8738 14.4154V14.3504C86.0623 8.884 86.2218 4.16056 88.7824 2.53029C89.3464 2.1422 91.2763 1.32418 93.154 2.31966C95.3565 3.47815 95.5972 7.0431 95.8364 13.2381C95.9727 16.9098 96.1844 22.4383 97.4604 23.6343C98.8871 24.9703 100.623 24.914 101.993 23.4843C104.369 20.9985 103.824 17.0324 103.292 13.2006C102.921 10.4623 102.563 7.8741 103.133 5.56143C103.881 2.54328 106.766 1.10345 111.716 1.27225H126.358L126.354 1.2708Z",fill:"white"}),n.createElement("path",{d:"M125.696 25.3138V27.7347C125.696 27.8097 125.635 27.8703 125.56 27.8703H111.601C111.526 27.8703 111.465 27.8097 111.465 27.7347V8.29703C111.465 7.69831 111.634 7.10102 112.02 6.64368C112.5 6.07381 113.179 5.76074 113.902 5.76074H114.372V13.3393C114.372 13.4143 114.433 13.4749 114.508 13.4749H124.915C124.99 13.4749 125.051 13.5355 125.051 13.6105V15.9939C125.051 16.0689 124.99 16.1295 124.915 16.1295H114.508C114.433 16.1295 114.372 16.1901 114.372 16.2651V25.0542C114.372 25.1292 114.433 25.1898 114.508 25.1898H125.558C125.634 25.1898 125.695 25.2504 125.695 25.3254V25.3167L125.696 25.3138Z",fill:"white"}),n.createElement("path",{d:"M19.9601 16.6532C20.427 17.6357 20.6604 18.7048 20.6604 19.8604C20.6604 21.4676 20.266 22.9218 19.4787 24.2232C18.7044 25.5115 17.5372 26.5344 15.9756 27.2904C14.414 28.0334 12.4653 28.4056 10.1294 28.4056C8.51414 28.4056 6.79305 28.1531 4.96465 27.6482C3.13626 27.1302 1.48186 26.393 0 25.4365C0.0797476 24.5333 0.361039 23.6504 0.840975 22.7877C1.32091 21.9105 1.86899 21.2079 2.48233 20.6755C3.60314 21.3392 4.87765 21.9437 6.30586 22.4876C7.73407 23.0185 9.16228 23.2839 10.5905 23.2839C11.7519 23.2839 12.5856 23.0055 13.0931 22.4472C13.6006 21.8888 13.8543 21.2916 13.8543 20.6539C13.8543 20.2283 13.7137 19.7435 13.4338 19.1996C13.154 18.6413 12.4522 18.1306 11.3314 17.666L6.50595 15.6736C4.85155 14.9826 3.4828 14.0607 2.40258 12.9051C1.32091 11.7495 0.781527 10.2231 0.781527 8.32301C0.781527 6.66245 1.21506 5.2082 2.08214 3.96025C2.94921 2.7123 4.11788 1.7428 5.58523 1.05174C7.06709 0.352022 8.71569 0 10.531 0C12.3464 0 14.2009 0.245261 15.8567 0.737226C17.5256 1.22919 18.8799 1.74713 19.921 2.29103C19.8673 3.20715 19.6469 4.09009 19.2598 4.93985C18.8857 5.77662 18.3854 6.48067 17.7576 7.05198C16.7426 6.57444 15.5551 6.13586 14.1936 5.73767C12.8321 5.3265 11.6113 5.12019 10.5296 5.12019C9.38122 5.12019 8.56054 5.37844 8.06756 5.89637C7.58762 6.4143 7.34693 6.93945 7.34693 7.47037C7.34693 8.00129 7.51367 8.42689 7.84716 8.82508C8.1937 9.22327 8.80849 9.60847 9.68861 9.98069L14.6141 11.9933C15.9089 12.5242 17.0036 13.1878 17.8968 13.9857C18.8045 14.7691 19.4918 15.6592 19.9586 16.6547L19.9601 16.6532ZM42.6461 0.493408C42.2155 0.493408 41.7007 0.507835 41.1034 0.535247C40.519 0.562658 39.9492 0.631908 39.3939 0.742997V17.6905C39.3939 19.5098 39.0662 20.8847 38.4108 21.8138C37.7554 22.7299 36.6332 23.1887 35.0469 23.1887C33.4606 23.1887 32.3587 22.7299 31.7033 21.8138C31.0479 20.8847 30.7202 19.5098 30.7202 17.6905V4.22282C30.7202 2.80175 30.3983 1.77887 29.756 1.15561C29.1137 0.517934 28.1886 0.199094 26.9822 0.199094H24.6609L24.3796 0.458783V17.63C24.3796 19.8748 24.8001 21.7936 25.6425 23.3864C26.4849 24.9662 27.7145 26.1751 29.3312 27.0119C30.9479 27.8487 32.9126 28.2671 35.2238 28.2671C37.535 28.2671 39.5128 27.8487 41.1164 27.0119C42.7331 26.1751 43.9627 24.9662 44.8051 23.3864C45.6475 21.7922 46.068 19.8734 46.068 17.63V0.741555C45.5402 0.630466 44.9356 0.561215 44.2541 0.533804C43.5871 0.506392 43.0521 0.491965 42.649 0.491965L42.6461 0.493408ZM71.899 19.6209C71.899 21.4806 71.4858 23.0069 70.6578 24.203C69.8444 25.3845 68.6888 26.2617 67.1939 26.833C65.699 27.4043 63.93 27.69 61.8885 27.69C60.3399 27.69 58.7319 27.6698 57.063 27.6308C55.4086 27.6049 53.7267 27.5717 52.0186 27.5313L51.7388 27.2529V0.438585L52.0186 0.160141C53.6208 0.119745 55.2013 0.0865628 56.7629 0.060594C58.3376 0.020198 59.8325 0.00144271 61.2476 0.00144271C63.1166 0.00144271 64.7507 0.261131 66.1528 0.777622C67.5549 1.28257 68.6482 2.07174 69.4355 3.148C70.2228 4.20984 70.6172 5.57753 70.6172 7.25108C70.6172 8.22058 70.391 9.12949 69.9372 9.98069C69.4964 10.8304 68.9092 11.5345 68.1755 12.0928C67.8449 12.3453 67.4955 12.5516 67.1315 12.7074C67.6985 12.8935 68.2393 13.172 68.7569 13.5471C69.7052 14.2237 70.465 15.1009 71.0392 16.1771C71.6133 17.239 71.9004 18.3888 71.9004 19.6238L71.899 19.6209ZM58.078 10.8232H60.9214C61.816 10.8232 62.5076 10.666 62.9948 10.3515C63.482 10.024 63.8242 9.61713 64.0214 9.13382C64.2186 8.64907 64.3172 8.15133 64.3172 7.64061C64.3172 7.12989 64.2186 6.61917 64.0214 6.1474C63.8242 5.67563 63.4747 5.28899 62.9745 4.98746C62.4873 4.67295 61.8029 4.51569 60.9199 4.51569H59.6164C59.0901 4.50271 58.5768 4.48972 58.0766 4.47674V10.8247L58.078 10.8232ZM65.5047 19.3958C65.5047 18.8115 65.3843 18.22 65.1436 17.6227C64.9174 17.0125 64.5028 16.5003 63.9025 16.0891C63.3152 15.678 62.4873 15.4717 61.4202 15.4717H58.0766V23.2609C58.7305 23.2479 59.3511 23.2407 59.9383 23.2407C60.5255 23.2277 61.033 23.2205 61.4593 23.2205C62.554 23.2205 63.3877 23.0214 63.9619 22.6232C64.5492 22.212 64.9493 21.7128 65.1625 21.1285C65.3887 20.5313 65.5032 19.9527 65.5032 19.3958H65.5047Z",fill:"white"})),a=({labelTab:e,appIcon:t})=>C.jsxRuntimeExports.jsxs(C.ContainerDevNav,{children:[C.jsxRuntimeExports.jsx(C.DevBrandLogo,{children:C.jsxRuntimeExports.jsx(l,{})}),C.jsxRuntimeExports.jsx(C.DevNavOptions,{children:C.jsxRuntimeExports.jsxs(C.DevNavOption,{children:[C.jsxRuntimeExports.jsxs(C.Container,{direction:"horizontal",verticalAlign:"center",gap:"4px",children:[t,C.jsxRuntimeExports.jsx("span",{children:e})]}),C.jsxRuntimeExports.jsx(C.Close_default,{size:16})]})})]}),c=({message:e})=>C.jsxRuntimeExports.jsxs(C.ErrorMessage,{children:[C.jsxRuntimeExports.jsx(C.InfoFill_default,{color:C.y.colors.feedbackColors.colorFeedbackError}),e]}),x=({width:e,text:t,fontSize:r})=>C.jsxRuntimeExports.jsxs(C.Container$1,{width:e,children:[C.jsxRuntimeExports.jsx(C.loadingContainer,{width:e,children:C.jsxRuntimeExports.jsx(C.loadingLine,{"data-testid":"loading-line",className:"loading-line"})}),t&&C.jsxRuntimeExports.jsx(C.Text,{fontSize:r,children:t})]}),d=({text:e,color:t})=>C.jsxRuntimeExports.jsx(C.Title$1,{color:t,children:e});exports.DevHeader=a;exports.ErrorMessage=c;exports.LoadingBar=x;exports.Title=d;
1
+ "use strict";const C=require("./GenericAGGridTable-CsbiQrWT.cjs"),i=require("react");function o(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=o(i),l=e=>n.createElement("svg",{width:145,height:29,viewBox:"0 0 145 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M143.505 15.5289C143.119 15.1091 142.658 14.7441 142.136 14.4397C141.614 14.1353 141.548 13.3879 142.038 13.0056C142.4 12.72 142.725 12.3939 143.008 12.0246C143.878 10.8935 144.321 9.50559 144.321 7.91716C144.321 5.55832 143.536 3.81552 141.987 2.7407C140.491 1.70772 138.175 1.17969 135.111 1.17969H127.93V27.8627H136.058C137.785 27.8627 139.334 27.5828 140.662 27.0317C142.022 26.4705 143.099 25.6019 143.857 24.4391C144.616 23.2893 145.001 21.8134 145.001 20.0706C145.001 18.1359 144.498 16.6037 143.509 15.5203V15.5289H143.505ZM135.108 3.95547C137.349 3.95547 138.981 4.29162 139.956 4.95094C140.892 5.58573 141.345 6.62882 141.345 8.13789C141.345 9.64697 140.921 10.6929 140.041 11.423C139.147 12.1659 137.636 12.5396 135.546 12.5396H130.835V3.94681H135.108V3.95547ZM135.884 25.1302H130.834V15.2764H135.578C137.814 15.2764 139.47 15.6689 140.501 16.4306C141.503 17.1736 141.988 18.3321 141.988 19.9681C141.988 23.4393 139.993 25.1258 135.884 25.1258V25.1302Z",fill:"white"}),n.createElement("path",{d:"M126.354 1.2708V4.42025H113.883L111.624 4.4289C108.3 4.30339 106.668 4.97569 106.334 6.3405C105.911 8.03713 106.221 10.3209 106.556 12.7375C107.159 17.1479 107.841 22.1151 104.382 25.7306C103.064 27.1084 101.384 27.8701 99.6571 27.8701C98.0375 27.8701 96.499 27.2252 95.1955 26.0105C92.9365 23.894 92.7437 18.7781 92.5407 13.3622V13.2828C92.4508 11.0538 92.2492 5.83122 91.5663 5.18056C91.1328 4.95116 90.5354 5.29309 90.531 5.29742C89.4479 5.98415 89.2696 11.3063 89.1666 14.4832C88.9926 19.5803 88.823 24.3643 86.5262 26.1735C84.5398 27.7388 81.4441 27.8788 79.1605 26.5053C74.0349 23.4222 74.5438 15.6749 74.9106 10.0122L74.9208 9.86216C75.0382 8.05877 75.1557 2.91982 74.973 2.05997C74.9309 1.85943 74.8932 1.64014 74.8932 1.64014C74.8845 1.58387 74.87 1.5377 74.8599 1.50452C74.8512 1.47711 74.8411 1.44393 74.8222 1.39776C74.8034 1.36025 74.7845 1.33717 74.7657 1.29966C74.7091 1.21021 74.667 1.16404 74.625 1.13086H78.1455L78.1977 1.40209C78.4804 2.72939 78.3485 7.96211 78.202 10.2286C77.8874 15.0502 77.4582 21.6621 80.87 23.7122C81.9763 24.3759 83.5669 24.334 84.4847 23.6098C85.5852 22.7456 85.765 17.5316 85.8738 14.4154V14.3504C86.0623 8.884 86.2218 4.16056 88.7824 2.53029C89.3464 2.1422 91.2763 1.32418 93.154 2.31966C95.3565 3.47815 95.5972 7.0431 95.8364 13.2381C95.9727 16.9098 96.1844 22.4383 97.4604 23.6343C98.8871 24.9703 100.623 24.914 101.993 23.4843C104.369 20.9985 103.824 17.0324 103.292 13.2006C102.921 10.4623 102.563 7.8741 103.133 5.56143C103.881 2.54328 106.766 1.10345 111.716 1.27225H126.358L126.354 1.2708Z",fill:"white"}),n.createElement("path",{d:"M125.696 25.3138V27.7347C125.696 27.8097 125.635 27.8703 125.56 27.8703H111.601C111.526 27.8703 111.465 27.8097 111.465 27.7347V8.29703C111.465 7.69831 111.634 7.10102 112.02 6.64368C112.5 6.07381 113.179 5.76074 113.902 5.76074H114.372V13.3393C114.372 13.4143 114.433 13.4749 114.508 13.4749H124.915C124.99 13.4749 125.051 13.5355 125.051 13.6105V15.9939C125.051 16.0689 124.99 16.1295 124.915 16.1295H114.508C114.433 16.1295 114.372 16.1901 114.372 16.2651V25.0542C114.372 25.1292 114.433 25.1898 114.508 25.1898H125.558C125.634 25.1898 125.695 25.2504 125.695 25.3254V25.3167L125.696 25.3138Z",fill:"white"}),n.createElement("path",{d:"M19.9601 16.6532C20.427 17.6357 20.6604 18.7048 20.6604 19.8604C20.6604 21.4676 20.266 22.9218 19.4787 24.2232C18.7044 25.5115 17.5372 26.5344 15.9756 27.2904C14.414 28.0334 12.4653 28.4056 10.1294 28.4056C8.51414 28.4056 6.79305 28.1531 4.96465 27.6482C3.13626 27.1302 1.48186 26.393 0 25.4365C0.0797476 24.5333 0.361039 23.6504 0.840975 22.7877C1.32091 21.9105 1.86899 21.2079 2.48233 20.6755C3.60314 21.3392 4.87765 21.9437 6.30586 22.4876C7.73407 23.0185 9.16228 23.2839 10.5905 23.2839C11.7519 23.2839 12.5856 23.0055 13.0931 22.4472C13.6006 21.8888 13.8543 21.2916 13.8543 20.6539C13.8543 20.2283 13.7137 19.7435 13.4338 19.1996C13.154 18.6413 12.4522 18.1306 11.3314 17.666L6.50595 15.6736C4.85155 14.9826 3.4828 14.0607 2.40258 12.9051C1.32091 11.7495 0.781527 10.2231 0.781527 8.32301C0.781527 6.66245 1.21506 5.2082 2.08214 3.96025C2.94921 2.7123 4.11788 1.7428 5.58523 1.05174C7.06709 0.352022 8.71569 0 10.531 0C12.3464 0 14.2009 0.245261 15.8567 0.737226C17.5256 1.22919 18.8799 1.74713 19.921 2.29103C19.8673 3.20715 19.6469 4.09009 19.2598 4.93985C18.8857 5.77662 18.3854 6.48067 17.7576 7.05198C16.7426 6.57444 15.5551 6.13586 14.1936 5.73767C12.8321 5.3265 11.6113 5.12019 10.5296 5.12019C9.38122 5.12019 8.56054 5.37844 8.06756 5.89637C7.58762 6.4143 7.34693 6.93945 7.34693 7.47037C7.34693 8.00129 7.51367 8.42689 7.84716 8.82508C8.1937 9.22327 8.80849 9.60847 9.68861 9.98069L14.6141 11.9933C15.9089 12.5242 17.0036 13.1878 17.8968 13.9857C18.8045 14.7691 19.4918 15.6592 19.9586 16.6547L19.9601 16.6532ZM42.6461 0.493408C42.2155 0.493408 41.7007 0.507835 41.1034 0.535247C40.519 0.562658 39.9492 0.631908 39.3939 0.742997V17.6905C39.3939 19.5098 39.0662 20.8847 38.4108 21.8138C37.7554 22.7299 36.6332 23.1887 35.0469 23.1887C33.4606 23.1887 32.3587 22.7299 31.7033 21.8138C31.0479 20.8847 30.7202 19.5098 30.7202 17.6905V4.22282C30.7202 2.80175 30.3983 1.77887 29.756 1.15561C29.1137 0.517934 28.1886 0.199094 26.9822 0.199094H24.6609L24.3796 0.458783V17.63C24.3796 19.8748 24.8001 21.7936 25.6425 23.3864C26.4849 24.9662 27.7145 26.1751 29.3312 27.0119C30.9479 27.8487 32.9126 28.2671 35.2238 28.2671C37.535 28.2671 39.5128 27.8487 41.1164 27.0119C42.7331 26.1751 43.9627 24.9662 44.8051 23.3864C45.6475 21.7922 46.068 19.8734 46.068 17.63V0.741555C45.5402 0.630466 44.9356 0.561215 44.2541 0.533804C43.5871 0.506392 43.0521 0.491965 42.649 0.491965L42.6461 0.493408ZM71.899 19.6209C71.899 21.4806 71.4858 23.0069 70.6578 24.203C69.8444 25.3845 68.6888 26.2617 67.1939 26.833C65.699 27.4043 63.93 27.69 61.8885 27.69C60.3399 27.69 58.7319 27.6698 57.063 27.6308C55.4086 27.6049 53.7267 27.5717 52.0186 27.5313L51.7388 27.2529V0.438585L52.0186 0.160141C53.6208 0.119745 55.2013 0.0865628 56.7629 0.060594C58.3376 0.020198 59.8325 0.00144271 61.2476 0.00144271C63.1166 0.00144271 64.7507 0.261131 66.1528 0.777622C67.5549 1.28257 68.6482 2.07174 69.4355 3.148C70.2228 4.20984 70.6172 5.57753 70.6172 7.25108C70.6172 8.22058 70.391 9.12949 69.9372 9.98069C69.4964 10.8304 68.9092 11.5345 68.1755 12.0928C67.8449 12.3453 67.4955 12.5516 67.1315 12.7074C67.6985 12.8935 68.2393 13.172 68.7569 13.5471C69.7052 14.2237 70.465 15.1009 71.0392 16.1771C71.6133 17.239 71.9004 18.3888 71.9004 19.6238L71.899 19.6209ZM58.078 10.8232H60.9214C61.816 10.8232 62.5076 10.666 62.9948 10.3515C63.482 10.024 63.8242 9.61713 64.0214 9.13382C64.2186 8.64907 64.3172 8.15133 64.3172 7.64061C64.3172 7.12989 64.2186 6.61917 64.0214 6.1474C63.8242 5.67563 63.4747 5.28899 62.9745 4.98746C62.4873 4.67295 61.8029 4.51569 60.9199 4.51569H59.6164C59.0901 4.50271 58.5768 4.48972 58.0766 4.47674V10.8247L58.078 10.8232ZM65.5047 19.3958C65.5047 18.8115 65.3843 18.22 65.1436 17.6227C64.9174 17.0125 64.5028 16.5003 63.9025 16.0891C63.3152 15.678 62.4873 15.4717 61.4202 15.4717H58.0766V23.2609C58.7305 23.2479 59.3511 23.2407 59.9383 23.2407C60.5255 23.2277 61.033 23.2205 61.4593 23.2205C62.554 23.2205 63.3877 23.0214 63.9619 22.6232C64.5492 22.212 64.9493 21.7128 65.1625 21.1285C65.3887 20.5313 65.5032 19.9527 65.5032 19.3958H65.5047Z",fill:"white"})),a=({labelTab:e,appIcon:t})=>C.jsxRuntimeExports.jsxs(C.ContainerDevNav,{children:[C.jsxRuntimeExports.jsx(C.DevBrandLogo,{children:C.jsxRuntimeExports.jsx(l,{})}),C.jsxRuntimeExports.jsx(C.DevNavOptions,{children:C.jsxRuntimeExports.jsxs(C.DevNavOption,{children:[C.jsxRuntimeExports.jsxs(C.Container,{direction:"horizontal",verticalAlign:"center",gap:"4px",children:[t,C.jsxRuntimeExports.jsx("span",{children:e})]}),C.jsxRuntimeExports.jsx(C.Close_default,{size:16})]})})]}),c=({message:e})=>C.jsxRuntimeExports.jsxs(C.ErrorMessage,{children:[C.jsxRuntimeExports.jsx(C.InfoFill_default,{color:C.y.colors.feedbackColors.colorFeedbackError}),e]}),x=({width:e,text:t,fontSize:r})=>C.jsxRuntimeExports.jsxs(C.Container$1,{width:e,children:[C.jsxRuntimeExports.jsx(C.loadingContainer,{width:e,children:C.jsxRuntimeExports.jsx(C.loadingLine,{"data-testid":"loading-line",className:"loading-line"})}),t&&C.jsxRuntimeExports.jsx(C.Text,{fontSize:r,children:t})]}),d=({text:e,color:t})=>C.jsxRuntimeExports.jsx(C.Title$1,{color:t,children:e});exports.DevHeader=a;exports.ErrorMessage=c;exports.LoadingBar=x;exports.Title=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../GenericAGGridTable-B-VthvhD.cjs"),r=require("../../Title.view-CRSIZVjP.cjs");exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Container=e.Container;exports.Datepicker=e.Datepicker;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.Radio=e.Radio;exports.Required=e.Required;exports.Spacer=e.Spacer;exports.Switch=e.Switch;exports.Tag=e.x$;exports.Tooltip=e.Tooltip;exports.DevHeader=r.DevHeader;exports.ErrorMessage=r.ErrorMessage;exports.LoadingBar=r.LoadingBar;exports.Title=r.Title;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../GenericAGGridTable-CsbiQrWT.cjs"),r=require("../../Title.view-DKUzs0zS.cjs");exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Container=e.Container;exports.Datepicker=e.Datepicker;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.Radio=e.Radio;exports.Required=e.Required;exports.Spacer=e.Spacer;exports.Switch=e.Switch;exports.Tag=e.x$;exports.Tooltip=e.Tooltip;exports.DevHeader=r.DevHeader;exports.ErrorMessage=r.ErrorMessage;exports.LoadingBar=r.LoadingBar;exports.Title=r.Title;
@@ -1,5 +1,5 @@
1
- import { B as e, a as r, C as o, b as i, D as t, L as d, c, R as p, d as L, S as T, e as b, x as g, T as n } from "../../GenericAGGridTable-_tzyMjlo.js";
2
- import { D as B, E as C, L as D, T as l } from "../../Title.view-BaFM2yBf.js";
1
+ import { B as e, a as r, C as o, b as i, D as t, L as d, c, R as p, d as L, S as T, e as b, x as g, T as n } from "../../GenericAGGridTable-DeqXRv6H.js";
2
+ import { D as B, E as C, L as D, T as l } from "../../Title.view-D4JL5WO1.js";
3
3
  export {
4
4
  e as Badge,
5
5
  r as Button,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../GenericAGGridTable-B-VthvhD.cjs"),i=require("../Title.view-CRSIZVjP.cjs"),l=require("../RequiredLabel.view-Basqa4XQ.cjs"),t=require("../Table.view-CE9lHi7A.cjs");exports.AGGridCustomStyles=e.AGGridCustomStyles;exports.ActionButton=e.ActionButton;exports.AutoComplete=e.AutoComplete;exports.AutoCompleteField=e.AutoCompleteField;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.CustomHeaderComponent=e.CustomHeaderComponent;exports.CustomSetFilter=e.CustomSetFilter;exports.Datepicker=e.Datepicker;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.GenericAGGridTable=e.GenericAGGridTable;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.ListMultiSelect=e.ListMultiSelect;exports.Loading=e.Loading;exports.MenuMultiSelect=e.MenuMultiSelect;exports.MenuSelect=e.MenuSelect;exports.Modal=e.Modal;exports.MultiInput=e.MultiInput;exports.MultiNumberField=e.MultiNumberField;exports.MultiSelect=e.MultiSelect;exports.NumberField=e.NumberField;exports.Radio=e.Radio;exports.RadioField=e.RadioField;exports.Required=e.Required;exports.Section=e.Section;exports.SectionTitle=e.SectionTitle;exports.SegmentedButton=e.kXe;exports.Select=e.Select;exports.Spacer=e.Spacer;exports.Switch=e.Switch;exports.SwitchField=e.SwitchField;exports.Tag=e.x$;exports.TextField=e.TextField;exports.Textarea=e.Textarea;exports.TextareaField=e.TextareaField;exports.Tooltip=e.Tooltip;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.DevHeader=i.DevHeader;exports.ErrorMessage=i.ErrorMessage;exports.LoadingBar=i.LoadingBar;exports.Title=i.Title;exports.AlertInline=l.AlertInline;exports.LabelField=l.LabelField;exports.RequiredLabelView=l.RequiredLabelView;exports.showAlert=l.showAlert;exports.CheckboxField=t.CheckboxField;exports.CollapseSection=t.CollapseSection;exports.DateField=t.DateField;exports.FormFieldView=t.FormFieldView;exports.MultiSelectField=t.MultiSelectField;exports.SelectButton=t.SelectButton;exports.SelectField=t.SelectField;exports.TabInfo=t.TabInfo;exports.Table=t.Table;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../GenericAGGridTable-CsbiQrWT.cjs"),i=require("../Title.view-DKUzs0zS.cjs"),l=require("../RequiredLabel.view-C-Py5YBV.cjs"),t=require("../Table.view-Bkqt1BSd.cjs");exports.AGGridCustomStyles=e.AGGridCustomStyles;exports.ActionButton=e.ActionButton;exports.AutoComplete=e.AutoComplete;exports.AutoCompleteField=e.AutoCompleteField;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.CustomHeaderComponent=e.CustomHeaderComponent;exports.CustomSetFilter=e.CustomSetFilter;exports.Datepicker=e.Datepicker;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.GenericAGGridTable=e.GenericAGGridTable;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.ListMultiSelect=e.ListMultiSelect;exports.Loading=e.Loading;exports.MenuMultiSelect=e.MenuMultiSelect;exports.MenuSelect=e.MenuSelect;exports.Modal=e.Modal;exports.MultiInput=e.MultiInput;exports.MultiNumberField=e.MultiNumberField;exports.MultiSelect=e.MultiSelect;exports.NumberField=e.NumberField;exports.Radio=e.Radio;exports.RadioField=e.RadioField;exports.Required=e.Required;exports.Section=e.Section;exports.SectionTitle=e.SectionTitle;exports.SegmentedButton=e.kXe;exports.Select=e.Select;exports.Spacer=e.Spacer;exports.Switch=e.Switch;exports.SwitchField=e.SwitchField;exports.Tag=e.x$;exports.TextField=e.TextField;exports.Textarea=e.Textarea;exports.TextareaField=e.TextareaField;exports.Tooltip=e.Tooltip;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.DevHeader=i.DevHeader;exports.ErrorMessage=i.ErrorMessage;exports.LoadingBar=i.LoadingBar;exports.Title=i.Title;exports.AlertInline=l.AlertInline;exports.LabelField=l.LabelField;exports.RequiredLabelView=l.RequiredLabelView;exports.showAlert=l.showAlert;exports.CheckboxField=t.CheckboxField;exports.CollapseSection=t.CollapseSection;exports.DateField=t.DateField;exports.FormFieldView=t.FormFieldView;exports.MultiSelectField=t.MultiSelectField;exports.SelectButton=t.SelectButton;exports.SelectField=t.SelectField;exports.TabInfo=t.TabInfo;exports.Table=t.Table;
@@ -1,7 +1,7 @@
1
- import { u as s, A as t, v as i, w as o, B as l, a as r, C as d, g as n, f as u, g as m, b as c, r as F, t as S, D as C, E as p, F as M, F as b, Q as T, I as f, h as x, L, c as w, n as A, i as g, m as h, K as B, M as D, k as G, y as I, l as R, N as k, R as y, z as E, d as q, O as H, o as N, p as V, P as v, S as j, e as z, G as J, x as K, J as O, q as P, H as Q, T as U, s as W, j as X } from "../GenericAGGridTable-_tzyMjlo.js";
2
- import { D as Z, E as _, L as $, T as aa } from "../Title.view-BaFM2yBf.js";
3
- import { A as sa, L as ta, R as ia, s as oa } from "../RequiredLabel.view-Gp_qqzYI.js";
4
- import { a as ra, C as da, D as na, F as ua, M as ma, b as ca, S as Fa, T as Sa, c as Ca } from "../Table.view-Bscl_Ibc.js";
1
+ import { u as s, A as t, v as i, w as o, B as l, a as r, C as d, g as n, f as u, g as m, b as c, r as F, t as S, D as C, E as p, F as M, F as b, Q as T, I as f, h as x, L, c as w, n as A, i as g, m as h, K as B, M as D, k as G, y as I, l as R, N as k, R as y, z as E, d as q, O as H, o as N, p as V, P as v, S as j, e as z, G as J, x as K, J as O, q as P, H as Q, T as U, s as W, j as X } from "../GenericAGGridTable-DeqXRv6H.js";
2
+ import { D as Z, E as _, L as $, T as aa } from "../Title.view-D4JL5WO1.js";
3
+ import { A as sa, L as ta, R as ia, s as oa } from "../RequiredLabel.view-B3sKfegk.js";
4
+ import { a as ra, C as da, D as na, F as ua, M as ma, b as ca, S as Fa, T as Sa, c as Ca } from "../Table.view-vjz4Roc5.js";
5
5
  export {
6
6
  s as AGGridCustomStyles,
7
7
  t as ActionButton,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../GenericAGGridTable-B-VthvhD.cjs"),t=require("../../RequiredLabel.view-Basqa4XQ.cjs");exports.AGGridCustomStyles=e.AGGridCustomStyles;exports.ActionButton=e.ActionButton;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.CustomHeaderComponent=e.CustomHeaderComponent;exports.CustomSetFilter=e.CustomSetFilter;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.ListMultiSelect=e.ListMultiSelect;exports.Loading=e.Loading;exports.MenuMultiSelect=e.MenuMultiSelect;exports.Modal=e.Modal;exports.MultiInput=e.MultiInput;exports.MultiSelect=e.MultiSelect;exports.SectionTitle=e.SectionTitle;exports.SegmentedButton=e.kXe;exports.Textarea=e.Textarea;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.AlertInline=t.AlertInline;exports.LabelField=t.LabelField;exports.RequiredLabelView=t.RequiredLabelView;exports.showAlert=t.showAlert;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../GenericAGGridTable-CsbiQrWT.cjs"),t=require("../../RequiredLabel.view-C-Py5YBV.cjs");exports.AGGridCustomStyles=e.AGGridCustomStyles;exports.ActionButton=e.ActionButton;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.CustomHeaderComponent=e.CustomHeaderComponent;exports.CustomSetFilter=e.CustomSetFilter;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.ListMultiSelect=e.ListMultiSelect;exports.Loading=e.Loading;exports.MenuMultiSelect=e.MenuMultiSelect;exports.Modal=e.Modal;exports.MultiInput=e.MultiInput;exports.MultiSelect=e.MultiSelect;exports.SectionTitle=e.SectionTitle;exports.SegmentedButton=e.kXe;exports.Textarea=e.Textarea;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.AlertInline=t.AlertInline;exports.LabelField=t.LabelField;exports.RequiredLabelView=t.RequiredLabelView;exports.showAlert=t.showAlert;
@@ -1,5 +1,5 @@
1
- import { u as e, A as t, g as o, f as i, g as l, r as n, t as r, E as m, F as u, F as d, I as M, h as f, n as C, i as p, m as S, M as A, k as F, l as c, o as w, p as I, q as L, s as g, j as h } from "../../GenericAGGridTable-_tzyMjlo.js";
2
- import { A as B, L as b, R as q, s as y } from "../../RequiredLabel.view-Gp_qqzYI.js";
1
+ import { u as e, A as t, g as o, f as i, g as l, r as n, t as r, E as m, F as u, F as d, I as M, h as f, n as C, i as p, m as S, M as A, k as F, l as c, o as w, p as I, q as L, s as g, j as h } from "../../GenericAGGridTable-DeqXRv6H.js";
2
+ import { A as B, L as b, R as q, s as y } from "../../RequiredLabel.view-B3sKfegk.js";
3
3
  export {
4
4
  e as AGGridCustomStyles,
5
5
  t as ActionButton,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../GenericAGGridTable-B-VthvhD.cjs"),l=require("../../Table.view-CE9lHi7A.cjs");exports.AutoComplete=e.AutoComplete;exports.AutoCompleteField=e.AutoCompleteField;exports.GenericAGGridTable=e.GenericAGGridTable;exports.MenuSelect=e.MenuSelect;exports.MultiNumberField=e.MultiNumberField;exports.NumberField=e.NumberField;exports.RadioField=e.RadioField;exports.Section=e.Section;exports.Select=e.Select;exports.SwitchField=e.SwitchField;exports.TextField=e.TextField;exports.TextareaField=e.TextareaField;exports.CheckboxField=l.CheckboxField;exports.CollapseSection=l.CollapseSection;exports.DateField=l.DateField;exports.FormFieldView=l.FormFieldView;exports.MultiSelectField=l.MultiSelectField;exports.SelectButton=l.SelectButton;exports.SelectField=l.SelectField;exports.TabInfo=l.TabInfo;exports.Table=l.Table;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../GenericAGGridTable-CsbiQrWT.cjs"),l=require("../../Table.view-Bkqt1BSd.cjs");exports.AutoComplete=e.AutoComplete;exports.AutoCompleteField=e.AutoCompleteField;exports.GenericAGGridTable=e.GenericAGGridTable;exports.MenuSelect=e.MenuSelect;exports.MultiNumberField=e.MultiNumberField;exports.NumberField=e.NumberField;exports.RadioField=e.RadioField;exports.Section=e.Section;exports.Select=e.Select;exports.SwitchField=e.SwitchField;exports.TextField=e.TextField;exports.TextareaField=e.TextareaField;exports.CheckboxField=l.CheckboxField;exports.CollapseSection=l.CollapseSection;exports.DateField=l.DateField;exports.FormFieldView=l.FormFieldView;exports.MultiSelectField=l.MultiSelectField;exports.SelectButton=l.SelectButton;exports.SelectField=l.SelectField;exports.TabInfo=l.TabInfo;exports.Table=l.Table;
@@ -1,5 +1,5 @@
1
- import { v as l, w as s, Q as i, K as t, y as o, N as d, z as F, O as c, P as r, G as S, J as u, H as b } from "../../GenericAGGridTable-_tzyMjlo.js";
2
- import { a as n, C as T, D as p, F as x, M as C, b as G, S as M, T as f, c as w } from "../../Table.view-Bscl_Ibc.js";
1
+ import { v as l, w as s, Q as i, K as t, y as o, N as d, z as F, O as c, P as r, G as S, J as u, H as b } from "../../GenericAGGridTable-DeqXRv6H.js";
2
+ import { a as n, C as T, D as p, F as x, M as C, b as G, S as M, T as f, c as w } from "../../Table.view-vjz4Roc5.js";
3
3
  export {
4
4
  l as AutoComplete,
5
5
  s as AutoCompleteField,
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GenericAGGridTable-B-VthvhD.cjs"),l=require("./Title.view-CRSIZVjP.cjs"),r=require("./RequiredLabel.view-Basqa4XQ.cjs"),i=require("./Table.view-CE9lHi7A.cjs"),t=require("./index-CrCGNVEP.cjs"),a=require("./hash-BcdkiN5J.cjs"),o=require("./parseDate-w5bp6OXe.cjs"),n={emerald100:"#D1FAE5",emerald300:"#6EE7B7",emerald600:"#059669",amber100:"#FEF3C7",amber300:"#FCD34D",amber600:"#D97706",blue100:"#DBEAFE",blue300:"#93C5FD",blue600:"#2563EB",slate100:"#F1F5F9",slate300:"#CBD5E1",slate600:"#475569"};exports.AGGridCustomStyles=e.AGGridCustomStyles;exports.ActionButton=e.ActionButton;exports.AutoComplete=e.AutoComplete;exports.AutoCompleteField=e.AutoCompleteField;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.CustomHeaderComponent=e.CustomHeaderComponent;exports.CustomSetFilter=e.CustomSetFilter;exports.Datepicker=e.Datepicker;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.GenericAGGridTable=e.GenericAGGridTable;exports.IconSize=e.IconSize;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.ListMultiSelect=e.ListMultiSelect;exports.Loading=e.Loading;exports.MenuMultiSelect=e.MenuMultiSelect;exports.MenuSelect=e.MenuSelect;exports.Modal=e.Modal;exports.MultiInput=e.MultiInput;exports.MultiNumberField=e.MultiNumberField;exports.MultiSelect=e.MultiSelect;exports.NumberField=e.NumberField;exports.Radio=e.Radio;exports.RadioField=e.RadioField;exports.Required=e.Required;exports.Section=e.Section;exports.SectionTitle=e.SectionTitle;exports.SegmentedButton=e.kXe;exports.Select=e.Select;exports.Spacer=e.Spacer;exports.Switch=e.Switch;exports.SwitchField=e.SwitchField;exports.Tag=e.x$;exports.TextField=e.TextField;exports.Textarea=e.Textarea;exports.TextareaField=e.TextareaField;exports.Tooltip=e.Tooltip;exports.sg=e.y;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.DevHeader=l.DevHeader;exports.ErrorMessage=l.ErrorMessage;exports.LoadingBar=l.LoadingBar;exports.Title=l.Title;exports.AlertInline=r.AlertInline;exports.LabelField=r.LabelField;exports.RequiredLabelView=r.RequiredLabelView;exports.showAlert=r.showAlert;exports.CheckboxField=i.CheckboxField;exports.CollapseSection=i.CollapseSection;exports.DateField=i.DateField;exports.FormFieldView=i.FormFieldView;exports.MultiSelectField=i.MultiSelectField;exports.SelectButton=i.SelectButton;exports.SelectField=i.SelectField;exports.TabInfo=i.TabInfo;exports.Table=i.Table;exports.applyOpacityToHex=t.applyOpacityToHex;exports.capitalizeAllFirstLetters=t.capitalizeAllFirstLetters;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.convertHexToRGB=t.convertHexToRGB;exports.dom=t.dom;exports.formatNumber=t.formatNumber;exports.parseNumberField=t.parseNumberField;exports.parseScientificMaybe=t.parseScientificMaybe;exports.resetStyles=t.resetStyles;exports.stringToUtcDate=t.stringToUtcDate;exports.valuable=t.valuable;exports.getLabelText=a.getLabelText;exports.multiplyRemValues=a.multiplyRemValues;exports.stableStringify=a.stableStringify;exports.parseDate=o.parseDate;exports.v2Colors=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GenericAGGridTable-CsbiQrWT.cjs"),l=require("./Title.view-DKUzs0zS.cjs"),r=require("./RequiredLabel.view-C-Py5YBV.cjs"),i=require("./Table.view-Bkqt1BSd.cjs"),t=require("./index-CrCGNVEP.cjs"),a=require("./hash-BcdkiN5J.cjs"),o=require("./parseDate-w5bp6OXe.cjs"),n={emerald100:"#D1FAE5",emerald300:"#6EE7B7",emerald600:"#059669",amber100:"#FEF3C7",amber300:"#FCD34D",amber600:"#D97706",blue100:"#DBEAFE",blue300:"#93C5FD",blue600:"#2563EB",slate100:"#F1F5F9",slate300:"#CBD5E1",slate600:"#475569"};exports.AGGridCustomStyles=e.AGGridCustomStyles;exports.ActionButton=e.ActionButton;exports.AutoComplete=e.AutoComplete;exports.AutoCompleteField=e.AutoCompleteField;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.CustomHeaderComponent=e.CustomHeaderComponent;exports.CustomSetFilter=e.CustomSetFilter;exports.Datepicker=e.Datepicker;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.GenericAGGridTable=e.GenericAGGridTable;exports.IconSize=e.IconSize;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.LibraryCard=e.LibraryCard;exports.ListMultiSelect=e.ListMultiSelect;exports.Loading=e.Loading;exports.MenuMultiSelect=e.MenuMultiSelect;exports.MenuSelect=e.MenuSelect;exports.Modal=e.Modal;exports.MultiInput=e.MultiInput;exports.MultiNumberField=e.MultiNumberField;exports.MultiSelect=e.MultiSelect;exports.NumberField=e.NumberField;exports.Radio=e.Radio;exports.RadioField=e.RadioField;exports.Required=e.Required;exports.Section=e.Section;exports.SectionTitle=e.SectionTitle;exports.SegmentedButton=e.kXe;exports.Select=e.Select;exports.Spacer=e.Spacer;exports.Switch=e.Switch;exports.SwitchField=e.SwitchField;exports.Tag=e.x$;exports.TextField=e.TextField;exports.Textarea=e.Textarea;exports.TextareaField=e.TextareaField;exports.Tooltip=e.Tooltip;exports.sg=e.y;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.DevHeader=l.DevHeader;exports.ErrorMessage=l.ErrorMessage;exports.LoadingBar=l.LoadingBar;exports.Title=l.Title;exports.AlertInline=r.AlertInline;exports.LabelField=r.LabelField;exports.RequiredLabelView=r.RequiredLabelView;exports.showAlert=r.showAlert;exports.CheckboxField=i.CheckboxField;exports.CollapseSection=i.CollapseSection;exports.DateField=i.DateField;exports.FormFieldView=i.FormFieldView;exports.MultiSelectField=i.MultiSelectField;exports.SelectButton=i.SelectButton;exports.SelectField=i.SelectField;exports.TabInfo=i.TabInfo;exports.Table=i.Table;exports.applyOpacityToHex=t.applyOpacityToHex;exports.capitalizeAllFirstLetters=t.capitalizeAllFirstLetters;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.convertHexToRGB=t.convertHexToRGB;exports.dom=t.dom;exports.formatNumber=t.formatNumber;exports.parseNumberField=t.parseNumberField;exports.parseScientificMaybe=t.parseScientificMaybe;exports.resetStyles=t.resetStyles;exports.stringToUtcDate=t.stringToUtcDate;exports.valuable=t.valuable;exports.getLabelText=a.getLabelText;exports.multiplyRemValues=a.multiplyRemValues;exports.stableStringify=a.stableStringify;exports.parseDate=o.parseDate;exports.v2Colors=n;
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as t, A as l, v as r, w as o, B as i, a as m, C as d, g as n, f as u, g as F, b as c, r as p, t as b, D as S, E as C, F as f, F as x, Q as T, V as D, I as M, h as g, L as B, c as L, n as A, i as E, m as y, K as w, M as h, k as R, y as G, l as I, N as v, R as H, z as N, d as V, O as k, o as z, p as q, P as O, S as U, e as j, G as J, x as K, J as P, q as Q, H as W, T as X, U as Y, s as Z, j as _ } from "./GenericAGGridTable-_tzyMjlo.js";
2
- import { D as aa, E as ea, L as sa, T as ta } from "./Title.view-BaFM2yBf.js";
3
- import { A as ra, L as oa, R as ia, s as ma } from "./RequiredLabel.view-Gp_qqzYI.js";
4
- import { a as na, C as ua, D as Fa, F as ca, M as pa, b as ba, S as Sa, T as Ca, c as fa } from "./Table.view-Bscl_Ibc.js";
1
+ import { u as t, A as l, v as r, w as o, B as i, a as m, C as d, g as n, f as u, g as F, b as c, r as p, t as b, D as S, E as C, F as f, F as x, Q as T, V as D, I as M, h as g, L as B, c as L, n as A, i as E, m as y, K as w, M as h, k as R, y as G, l as I, N as v, R as H, z as N, d as V, O as k, o as z, p as q, P as O, S as U, e as j, G as J, x as K, J as P, q as Q, H as W, T as X, U as Y, s as Z, j as _ } from "./GenericAGGridTable-DeqXRv6H.js";
2
+ import { D as aa, E as ea, L as sa, T as ta } from "./Title.view-D4JL5WO1.js";
3
+ import { A as ra, L as oa, R as ia, s as ma } from "./RequiredLabel.view-B3sKfegk.js";
4
+ import { a as na, C as ua, D as Fa, F as ca, M as pa, b as ba, S as Sa, T as Ca, c as fa } from "./Table.view-vjz4Roc5.js";
5
5
  import { g as Ta, b as Da, c as Ma, e as ga, d as Ba, f as La, p as Aa, a as Ea, r as ya, s as wa, v as ha } from "./index-DUYr_t1R.js";
6
6
  import { g as Ga, m as Ia, s as va } from "./hash-BJHL2fP_.js";
7
7
  import { p as Na } from "./parseDate-ihxA2lUF.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ufal-lccv/gpsub-ds",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "description": "Design system temporário do GP-SUB para auxiliar na futura migração para o DS Subweb 2.0",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- "use strict";const e=require("./GenericAGGridTable-B-VthvhD.cjs"),I=require("react");require("react-dom");const Q=require("sbwb-ds"),G=require("react-hook-form"),q=require("./index-CrCGNVEP.cjs"),X=require("./parseDate-w5bp6OXe.cjs"),Y=350,z=({title:a,children:x,endAdornment:f=null,marginBottom:j="16px",customStyles:u={},wrapperCustomStyles:i={},animationContainerCustomStyles:c={},hideAdornmentOnCollapse:p=!1,maxHeight:T="none",height:H="fit-content"})=>{const[C,M]=I.useState(!1),[o,E]=I.useState(!0);I.useEffect(()=>{if(p)if(C){const h=setTimeout(()=>E(!1),Y);return()=>clearTimeout(h)}else E(!0)},[C,p]);const R=p&&!o?null:f;return e.jsxRuntimeExports.jsxs(e.Container,{width:"100%",flex:"1",gap:"8px",customStyles:i,children:[e.jsxRuntimeExports.jsx(e.SectionTitle,{title:a,divider:!0,marginBottom:j,collapse:{collapsed:C,setCollapsed:M},endAdornment:R,customStyles:u}),e.jsxRuntimeExports.jsx(e.Container,{gap:"8px",width:"100%",height:H,customStyles:{...c,maxHeight:C?"0":T,transition:`max-height ${Y}ms ease-in-out`},children:x})]})};function v({form:a,name:x,id:f=x,label:j,readonly:u=!1,disabled:i=!1,afterCheck:c,width:p="100%",formatter:T,parser:H,flex:C,size:M="Medium",checkColor:o,triggerFormField:E=null,...R}){const{onChangeTrigger:h}=e.useTriggerFormField({form:a,fieldName:x,triggerType:E,debounceTime:0}),w=(S,F)=>{F(S),c==null||c(S),h==null||h()};return e.jsxRuntimeExports.jsx(e.Container,{width:p,flex:C,children:e.jsxRuntimeExports.jsx(G.Controller,{name:x,control:a.control,render:({field:{onChange:S,value:F,onBlur:n},fieldState:{error:b=null}})=>{const y=b==null?void 0:b.message;return y&&console.log("Error on checkbox!",y),e.jsxRuntimeExports.jsx(e.Checkbox,{id:`form-checkbox-${f}`,checked:T?T(F):!!F,name:x,label:j,disabled:i||u,onChange:d=>{w((H==null?void 0:H(d.target.checked,F))??d.target.checked,S),n==null||n()},size:M,checkColor:o,...R})}})})}const B=({form:a,name:x,label:f,placeholder:j,readonly:u=!1,disabled:i=!1,width:c="100%",flex:p,tooltipIsVisible:T,tooltipMaxWidth:H,tooltipPosition:C="top",afterFormChange:M,openToDate:o,range:E=!1,openCalendarOnInputClick:R=!1,...h})=>{let w=j;return!q.valuable(j)&&!i&&(w=u?"Nenhuma data escolhida":"Escolha uma data"),e.jsxRuntimeExports.jsx(e.Container,{width:c,flex:p,children:e.jsxRuntimeExports.jsx(G.Controller,{name:x,control:a.control,render:({field:{value:S,onChange:F,ref:n}})=>{let b;q.valuable(S)&&(E?b=Array.isArray(S)?S.join(" - "):S:b=new Date(q.stringToUtcDate(S.slice(0,10))));const{error:y}=a.getFieldState(x,a.formState);return e.jsxRuntimeExports.jsx(e.Datepicker,{ref:n,idCalendar:`${x}-calendar`,label:f,value:b,size:"Small",readonly:u,errorMessage:y==null?void 0:y.message,disabled:i,placeholder:w,onChangeHandleDate:d=>{var L,O;F(E?(L=d.split)==null?void 0:L.call(d," - ").map(V=>{var r;return((r=X.parseDate(V))==null?void 0:r.slice(0,10))||null}):((O=X.parseDate(d))==null?void 0:O.slice(0,10))||null),M==null||M(d)},openToDate:o,selectsRange:E,openCalendarOnInputClick:R,width:c,flex:p,...h})}})})};function K({form:a,name:x,label:f,slots:{field:j},slotsProps:u,triggerFormField:i=null,value:c,bypassControllerOnChange:p=!1,overrideOnBlur:T=!1,isRequired:H=!1,readonly:C=!1,disabled:M=!1,parser:o,debounce:E,beforeChange:R,onChange:h,afterChange:w,beforeBlur:S,onBlur:F,afterBlur:n,onEnter:b}){const{field:{value:y,onChange:d},fieldState:{error:L=null}}=G.useController({name:x,control:a.control}),O=q.valuable(E),{onChangeTrigger:V,onBlurTrigger:r}=e.useTriggerFormField({form:a,fieldName:x,triggerType:i,debounceTime:O?0:500}),m=(t,N)=>{var U,D;const A=((U=t==null?void 0:t.target)==null?void 0:U.value)||((D=t==null?void 0:t.target)==null?void 0:D.checked)||t||void 0,g=q.valuable(o)?o(A):A;R==null||R(g),p||N==null||N(g),h==null||h(t,N),w==null||w(t,N),V==null||V()},W=I.useMemo(()=>{if(!O)return m;let t;return(A,g)=>{clearTimeout(t),t=setTimeout(()=>m(A,g),E)}},[O,E,m]),k=(t,N)=>{var g,U;const A=((g=t==null?void 0:t.target)==null?void 0:g.value)||((U=t==null?void 0:t.target)==null?void 0:U.checked)||t||void 0;!T&&p&&(d==null||d(A)),S==null||S(t,N),F==null||F(t,N),n==null||n(t,N),r==null||r()},l=(t,N)=>{b==null||b(t,N)};L!=null&&L.message&&console.log(`Error on ${j.displayName}!`,L.message);const s=q.valuable(c)?c==null?void 0:c(y):{value:y};return e.jsxRuntimeExports.jsx(e.Container,{...u==null?void 0:u.container,children:e.jsxRuntimeExports.jsx(j,{...u==null?void 0:u.field,...s,label:f,onChange:t=>W==null?void 0:W(t,d),onBlur:t=>k==null?void 0:k(t,d),onEnter:t=>l==null?void 0:l(t,d),errorMessage:L==null?void 0:L.message})})}const ee=({form:a,name:x,label:f,options:j,readonly:u=!1,disabled:i=!1,width:c="100%",flex:p,placeholder:T,iconName:H,onSelect:C,hasSelectAll:M=!1,tags:o=!0,sortOptions:E=!1,enableSearch:R=!1,valueAllOption:h,isRequired:w=!1,tooltipProps:S={},infoProps:F={},triggerFormField:n=null,...b})=>{const{onChangeTrigger:y}=e.useTriggerFormField({form:a,fieldName:x,triggerType:n,debounceTime:0});return e.jsxRuntimeExports.jsx(e.Container,{width:c,flex:p,children:e.jsxRuntimeExports.jsx(G.Controller,{name:x,control:a.control,render:({field:{value:d,onChange:L}})=>{const{error:O}=a.getFieldState(x),V=q.valuable(d)?d:[];return e.jsxRuntimeExports.jsx(e.MultiSelect,{label:f,size:"Small",disabled:i||u,onChange:r=>{L(r),C==null||C(r),y==null||y()},values:V,errorMessage:O==null?void 0:O.message,options:j,iconName:H,hasSelectAll:M,tags:o,sortOptions:E,placeholder:T,enableSearch:R,valueAllOption:h,isRequired:w,tooltipProps:{position:"top",...S},infoProps:{tooltipProps:{position:"top",maxWidth:"300px",...F.tooltipProps},...F},...b})}})})},te=({variant:a="default",form:x,name:f,label:j,options:u,readonly:i=!1,disabled:c=!1,optionsMap:p,width:T="100%",flex:H,placeholder:C,onSelect:M,parser:o,filter:E,tooltipProps:R={},infoProps:h={},maxHeigthMenu:w,isRequired:S=!1,onRemoveSelected:F,triggerFormField:n=null,displayText:b,...y})=>{const{onChangeTrigger:d}=e.useTriggerFormField({form:x,fieldName:f,triggerType:n,debounceTime:0}),L={position:"top",...R},O={...h,tooltipProps:{position:"top",maxWidth:"300px",...h==null?void 0:h.tooltipProps}},V=(m,W)=>{let k=m;o&&(k=o==null?void 0:o(m)),W(k),M==null||M(k),d==null||d()},r=I.useMemo(()=>q.valuable(p)?p:Object.fromEntries(u.map(m=>[m.value,m])),[u,p]);return e.jsxRuntimeExports.jsx(e.Container,{width:T,flex:H,children:e.jsxRuntimeExports.jsx(G.Controller,{name:f,control:x.control,render:({field:{onChange:m,value:W},fieldState:{error:k=null}})=>{let l=r[W];return e.jsxRuntimeExports.jsx(e.Select,{label:j,width:"100%",size:"Small",variant:a,disabled:c,readonly:i,filter:E,errorMessage:k==null?void 0:k.message,placeholder:C,value:l,handleOption:s=>{V(s.value,m)},tooltipProps:L,options:u,maxHeigthMenu:w,infoProps:O,maxHeightMenu:w,isRequired:S,onRemoveSelected:F,displayText:b,...y})}})})},se=a=>{const[x,f]=I.useState(!1),[j,u]=I.useState(a),i=I.useRef(null);return I.useEffect(()=>{u(a)},[a]),{setIsOpen:f,isOpen:x,setOptionsSelect:u,optionsSelect:j,selectContainerRef:i}},ie=200,le=({name:a,variant:x="primary",width:f="100%",size:j="Medium",disabled:u=!1,isLoading:i=!1,onClick:c,options:p,label:T,menuSelectProps:H={},iconName:C,optionsIconPosition:M})=>{const{isOpen:o,setIsOpen:E,selectContainerRef:R,optionsSelect:h}=se(p);let w=e.y.colors.backgroundColors.colorBackgroundSnow;u?w=e.y.colors.neutralColors.colorNeutralCloudy:x!=="primary"&&(w=e.y.colors.neutralColors.colorNeutralDark);const S={...H};return e.jsxRuntimeExports.jsxs(e.SelectContainer,{ref:R,width:f,size:j,disabled:u,onBlur:()=>setTimeout(()=>E(!1),ie),children:[T&&e.jsxRuntimeExports.jsx(e.Label$3,{children:T}),e.jsxRuntimeExports.jsxs(e.Button$1,{type:"button",size:j,disabled:u,variant:x,isLoading:i,onClick:()=>!i&&E(!o),id:`button-component-${a}`,"data-cy":`button-component-${a}`,children:[i&&e.jsxRuntimeExports.jsx(e.WrapperIcon,{size:j,disabled:u,variant:x,children:e.jsxRuntimeExports.jsx(Q.Icon,{iconName:`ProgressActivity${j==="Small"?"Ant":"Sm"}`,color:w,"data-testid":"icon-loading"})}),!i&&e.jsxRuntimeExports.jsx("p",{title:a,children:a}),!i&&(o?e.jsxRuntimeExports.jsx(Q.Icon,{iconName:`ExpandLess${j==="Small"?"Ant":"Sm"}`,color:w,"data-testid":"icon-button-less"}):e.jsxRuntimeExports.jsx(Q.Icon,{iconName:`ExpandMore${j==="Small"?"Ant":"Sm"}`,color:w,"data-testid":"icon-button-more"}))]}),o&&e.jsxRuntimeExports.jsx(e.MenuSelect,{selectContainerRef:R,value:null,optionsSelect:h,selectOption:c,size:j,inputValue:null,iconPosition:M,iconName:C,...S})]})},re=({width:a="100%",height:x="fit-content",flex:f,backgroundColor:j=e.y.colors.backgroundColors.colorBackgroundCarpet,upperComponent:u=void 0,options:i=[],lowerComponent:c=void 0,heightItems:p="60px",widthItems:T="155px",emptyProps:H={title:"Nenhum dado a ser mostrado",body:null},customWrapperStyles:C={borderTop:`1px solid ${e.y.colors.neutralColors.colorNeutralSoft}`,borderRight:"none",borderBottom:"none",borderLeft:"none",borderRadius:"0px"},customItemStyles:M={},selectedItemKey:o,setSelectedItemKey:E})=>{const[R,h]=I.useState(i[0]||null),w=I.useRef(null),S=I.useRef(null);I.useEffect(()=>{const n=w.current,b=S.current,y=()=>{n&&b&&(b.scrollTop=n.scrollTop)};return n==null||n.addEventListener("scroll",y),()=>{n==null||n.removeEventListener("scroll",y)}},[]),I.useEffect(()=>{h(i[(i==null?void 0:i.length)-1]||null)},[i==null?void 0:i.length]);function F(n){E&&E(n.key),h(n)}return I.useEffect(()=>{if(typeof o=="number"&&o>=0&&o<i.length&&i.findIndex(b=>b.key===R.key)!==o&&h(i[o]),typeof o=="string"&&R.key!==o){const n=i.find(b=>b.key===o);if(!n)return;h(n)}},[o]),(i==null?void 0:i.length)===0?e.jsxRuntimeExports.jsx(e.Empty,{title:H.title,body:H.body,flex:"1",mode:"table"}):e.jsxRuntimeExports.jsxs(e.Container,{width:a,height:x,flex:f,backgroundColor:j,direction:"horizontal",customStyles:{border:`1px solid ${e.y.colors.neutralColors.colorNeutralSoft}`,borderRadius:e.y.borders.borderRadius.borderRadiusSm,...C,overflow:"hidden"},children:[e.jsxRuntimeExports.jsxs(e.Container$2,{ref:w,widthItems:T,children:[u&&u,i==null?void 0:i.map(n=>e.jsxRuntimeExports.jsx(e.ContainerItem,{selected:(R==null?void 0:R.key)===n.key,onClick:()=>F(n),withBorderRight:!0,heightItems:p,customStyles:M,children:n.item},n.key)),c&&c,e.jsxRuntimeExports.jsx(e.LastSpace,{})]}),e.jsxRuntimeExports.jsx(e.ContainerContent,{children:R&&(R==null?void 0:R.contentItem)})]})};function ne(a){return x=>typeof a=="string"?x[a]:typeof a=="function"?a(x):(console.warn("Please, setup a rowKey for table."),JSON.stringify(x))}function oe({id:a,rowKey:x="id",size:f="Small",onRowClick:j,fit:u=!1,maxHeight:i="40rem",columns:c,dataSource:p,columnsTextSize:T=f,emptyProps:H={width:"100%",height:"100%",title:"Nenhum dado a ser mostrado.",mode:"table",borders:!0,backgroundColor:e.y.colors.backgroundColors.colorBackgroundSnow},selectedRow:C=!1,hideHeader:M=!1,withBorder:o=!0,withBorderRadius:E=!0,striped:R=!1,borderRadius:h=e.y.borders.borderRadius.borderRadiusSm,disableMaxHeight:w=!1}){const S=I.useMemo(()=>ne(x),[x]),[F,n]=I.useState(null),b=I.useRef(null),y=I.useRef(null),[d,L]=I.useState(c);I.useLayoutEffect(()=>{if(!y.current||c.length===0){L(c);return}const r=()=>{var U;const W=((U=y.current)==null?void 0:U.clientWidth)||0;if(W===0)return;let k=0,l=0;const s=[],t=[];c.forEach(D=>{const $=Number(D.flex);D.width?k+=parseInt(D.width,10)||0:D.flex&&$>0?(l+=$,s.push(D)):t.push(D)});const N=W-k,A="80";let g=[...c];if(N>0){if(s.length>0){const D=N/l;g=c.map($=>{const _=Number($.flex);if(_&&_>0){const P=parseInt($.minWidth||A,10),J=_*D,Z=Math.max(J,P);return{...$,width:`${Math.floor(Z)}px`}}return!$.width&&!_?{...$,width:$.minWidth||`${A}px`}:$})}else if(t.length>0){const D=N/t.length;g=c.map($=>{const _=Number($.flex);if(!$.width&&!_){const P=parseInt($.minWidth||A,10),J=Math.max(D,P);return{...$,width:`${Math.floor(J)}px`}}return $})}}else g=c.map(D=>D.width?D:{...D,width:D.minWidth||`${A}px`});L(g)};r();const m=new ResizeObserver(r);return m.observe(y.current),()=>m.disconnect()},[c]),I.useEffect(()=>{const r=m=>{b.current&&!b.current.contains(m.target)&&n(null)};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[]);const O=I.useMemo(()=>d?d.some(r=>r.mergeHeaderId&&r.mergeHeaderLabel):!1,[d]),V=I.useMemo(()=>{var k,l;if(M||!d||d.length===0)return null;if(!O)return e.jsxRuntimeExports.jsx(e.TableRow,{isHeader:!0,size:f,numRows:1,borderRadius:h,children:d.map(s=>{var t;return e.jsxRuntimeExports.jsx(e.HeaderCell,{width:s.width,minWidth:s.minWidth,maxWidth:s.maxWidth,horizontalAlign:s.horizontalAlign,size:f,columnsTextSize:T,withBorder:o,headerAlign:s.headerAlign,children:((t=s.columnRender)==null?void 0:t.call(s,p))||e.jsxRuntimeExports.jsx("span",{title:s.label,children:s.label})},s.dataIndex)})});const r=[],m=[];let W=0;for(;W<d.length;){const s=d[W];if(s.mergeHeaderId&&s.mergeHeaderLabel){let t=0;const N=s.mergeHeaderId;for(let A=W;A<d.length&&d[A].mergeHeaderId===N;A++)t++;r.push(e.jsxRuntimeExports.jsx(e.HeaderCell,{colSpan:t,horizontalAlign:"center",size:f,columnsTextSize:T,withBorder:o,width:s.width,minWidth:s.minWidth,maxWidth:s.maxWidth,headerAlign:s.headerAlign,isTopRow:!0,children:e.jsxRuntimeExports.jsx("span",{title:s.mergeHeaderLabel,children:s.mergeHeaderLabel})},`${s.mergeHeaderId}-merged`));for(let A=0;A<t;A++){const g=d[W+A];m.push(e.jsxRuntimeExports.jsx(e.HeaderCell,{width:g.width,minWidth:g.minWidth,maxWidth:g.maxWidth,horizontalAlign:g.horizontalAlign,size:f,columnsTextSize:T,withBorder:o,headerAlign:s.headerAlign,children:((k=g.columnRender)==null?void 0:k.call(g,p))||e.jsxRuntimeExports.jsx("span",{title:g.label,children:g.label})},g.dataIndex+"-individual"))}W+=t}else r.push(e.jsxRuntimeExports.jsx(e.HeaderCell,{rowSpan:2,width:s.width,minWidth:s.minWidth,maxWidth:s.maxWidth,horizontalAlign:s.horizontalAlign,size:f,columnsTextSize:T,withBorder:o,headerAlign:s.headerAlign,isTopRow:!0,children:((l=s.columnRender)==null?void 0:l.call(s,p))||e.jsxRuntimeExports.jsx("span",{title:s.label,children:s.label})},s.dataIndex)),W++}return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.TableRow,{isHeader:!0,size:f,numRows:2,borderRadius:h,children:r}),m.length>0&&e.jsxRuntimeExports.jsx(e.TableRow,{isHeader:!0,size:f,numRows:2,borderRadius:h,children:m})]})},[d,M,f,T,O]);return!p||p.length===0?e.jsxRuntimeExports.jsx(e.Empty,{backgroundColor:e.y.colors.backgroundColors.colorBackgroundSnow,borders:!0,mode:"table",...H}):e.jsxRuntimeExports.jsx(e.ContainerTable,{maxHeight:i,disableMaxHeight:w,withBorderRadius:E,ref:y,borderRadius:h,children:e.jsxRuntimeExports.jsxs(e.Table,{id:a,ref:b,children:[e.jsxRuntimeExports.jsx("thead",{children:V}),e.jsxRuntimeExports.jsx("tbody",{style:{width:"100%"},children:p==null?void 0:p.map((r,m,W)=>{const k=S(r);return e.jsxRuntimeExports.jsx(e.TableRow,{isLast:m===W.length-1,fit:u,size:f,withBorder:o,isSelected:k===F&&C,striped:R&&m%2!==0,borderRadius:h,children:d.map(l=>{var s,t,N,A,g;return e.jsxRuntimeExports.jsx(e.RowCell,{width:l.width,minWidth:l.minWidth,maxWidth:l.maxWidth,size:f,isClickable:q.valuable(j),onClick:()=>{j&&j(r,l,m),C&&n(F===k?null:k)},horizontalAlign:l.horizontalAlign,verticalAlign:l.verticalAlign,rowPadding:l.rowPadding,withBorder:o,isLast:m===W.length-1,disabled:(s=l.disable)==null?void 0:s.call(l,r[l.dataIndex],r,m,W),hasError:(t=l.warn)==null?void 0:t.call(l,r[l.dataIndex],r,m,W),backgroundColor:(N=l.paint)==null?void 0:N.call(l,r[l.dataIndex],r,m,W),children:((A=l.render)==null?void 0:A.call(l,r[l.dataIndex],r,m,W))||e.jsxRuntimeExports.jsx(e.CellText,{title:r[l.dataIndex],style:(g=l.rowCss)==null?void 0:g.call(l,r),children:r[l.dataIndex]})||""},`${k}::${l.dataIndex}`)})},k)})})]})})}exports.CheckboxField=v;exports.CollapseSection=z;exports.DateField=B;exports.FormFieldView=K;exports.MultiSelectField=ee;exports.SelectButton=le;exports.SelectField=te;exports.TabInfo=re;exports.Table=oe;