dgrcorrientes-modulos 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.js CHANGED
@@ -30732,10 +30732,10 @@ const BA = ({
30732
30732
  })
30733
30733
  })]
30734
30734
  }), Z && /* @__PURE__ */ y("div", {
30735
- className: `autocomplete-container__dropdown autocomplete--${u} autocomplete-container__dropdown--active`,
30735
+ className: `autocomplete-container__dropdown autocomplete--${u} autocomplete-container__dropdown--active `,
30736
30736
  children: /* @__PURE__ */ y("ul", {
30737
30737
  className: "dropdown__list",
30738
- children: W.map((V, oe) => /* @__PURE__ */ y("li", {
30738
+ children: W.length > 0 ? W.map((V, oe) => /* @__PURE__ */ y("li", {
30739
30739
  className: "list__item",
30740
30740
  style: {
30741
30741
  cursor: "pointer",
@@ -30761,7 +30761,15 @@ const BA = ({
30761
30761
  children: jt(V.label, C)
30762
30762
  })]
30763
30763
  })
30764
- }, oe))
30764
+ }, oe)) : /* @__PURE__ */ y("li", {
30765
+ className: "list__item",
30766
+ style: {
30767
+ padding: "6px 0",
30768
+ textAlign: "center",
30769
+ color: "#666"
30770
+ },
30771
+ children: "No se encontraron coincidencias"
30772
+ })
30765
30773
  })
30766
30774
  })]
30767
30775
  })
@@ -308,4 +308,4 @@ https://sweetalert2.github.io/#ajax-request`),Fd(b),typeof b.title=="string"&&(b
308
308
  m 0,-`+a+`
309
309
  a `+a+","+a+" "+r+" 1 1 0,"+2*a+`
310
310
  a `+a+","+a+" "+r+" 1 1 0,-"+2*a+`
311
- `}function F2(s){var l=s.counterClockwise,u=s.dashRatio,a=s.pathRadius,r=Math.PI*2*a,p=(1-u)*r;return{strokeDasharray:r+"px "+r+"px",strokeDashoffset:(l?-p:p)+"px"}}var H2=function(s){L2(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},l.prototype.getPathRadius=function(){return yx-this.props.strokeWidth/2-this.getBackgroundPadding()},l.prototype.getPathRatio=function(){var u=this.props,a=u.value,r=u.minValue,p=u.maxValue,f=Math.min(Math.max(a,r),p);return(f-r)/(p-r)},l.prototype.render=function(){var u=this.props,a=u.circleRatio,r=u.className,p=u.classes,f=u.counterClockwise,m=u.styles,v=u.strokeWidth,x=u.text,k=this.getPathRadius(),N=this.getPathRatio();return re.createElement("svg",{className:p.root+" "+r,style:m.root,viewBox:"0 0 "+j2+" "+I2,"data-test-id":"CircularProgressbar"},this.props.background?re.createElement("circle",{className:p.background,style:m.background,cx:Oy,cy:Ry,r:yx}):null,re.createElement(wx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:v,style:m.trail}),re.createElement(wx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:v,style:m.path}),x?re.createElement("text",{className:p.text,style:m.text,x:Oy,y:Ry},x):null)},l.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},l}(re.Component);function $2(s){s.children;var l=U2(s,["children"]);return re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},re.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},re.createElement(H2,Ny({},l)),s.children?re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren__children",style:{position:"absolute",width:"100%",height:"100%",marginTop:"-100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},s.children):null))}function Y2(s){var l=s.rotation,u=s.strokeLinecap,a=s.textColor,r=s.textSize,p=s.pathColor,f=s.pathTransition,m=s.pathTransitionDuration,v=s.trailColor,x=s.backgroundColor,k=l==null?void 0:"rotate("+l+"turn)",N=l==null?void 0:"center center";return{root:{},path:bv({stroke:p,strokeLinecap:u,transform:k,transformOrigin:N,transition:f,transitionDuration:m==null?void 0:m+"s"}),trail:bv({stroke:v,strokeLinecap:u,transform:k,transformOrigin:N}),text:bv({fill:a,fontSize:r}),background:bv({fill:x})}}function bv(s){return Object.keys(s).forEach(function(l){s[l]==null&&delete s[l]}),s}const W2=({labelPerformance:s,dataTime:l,percentage:u,description:a,star:r,qualification:p,rating:f,className:m})=>{const v=Math.round(f*2)/2;return y("div",{className:"elv-component elv-performanceAssessment",children:L("div",{className:["performanceAssessment box is-flex is-flex-direction-column p-5 is-gap-6 is-align-items-center",`${m?" "+m:""}`].join(""),children:[L("div",{className:"is-flex is-flex-direction-column is-gap-3",children:[y("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),y("div",{children:l==null?void 0:l.map(x=>y("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:x.date}))})]}),y("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L($2,{value:u,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:Y2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[y("div",{className:"is-size-4",children:y("strong",{children:`${u}%`})}),y("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[y("div",{className:"is-flex",children:r==null?void 0:r.map((x,k)=>{const N=v-k===.5;return L("div",{children:[!N&&y(Ke,{icon:x.star,className:"iconStar mr-3 is-size-5",color:k<v?"#16A34A":"#CED4DA"}),N&&y(Ke,{icon:x.starStroke,className:"iconStar mr-3 is-size-5",color:"#16A34A"})]},k)})}),L("p",{className:"has-text-grey is-size-14px mt-3",children:[" ",f," ",p]})]})]})})},$L="",V2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:m})=>y("div",{className:"elv-component elv-shiftdiary",children:L("div",{className:["shiftdiary box is-flex is-flex-direction-column p-5 is-gap-5",`${m?" "+m:""}`].join(""),children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center",children:[y("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),y(Pe,{label:"Ver m\xE1s",fill:"unstyled",color:"primary",className:"shiftdiary__button is-size-10px has-text-weight-medium",onClick:()=>f&&f()})]}),L("div",{className:" shiftdiary__boxdiary is-flex is-gap-5",children:[y("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(v=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"has-text-grey-dark",children:v.time}),L("div",{className:"is-flex is-align-items-center py-4 is-justify-content-space-between",children:[L("div",{className:"is-flex is-gap-4",children:[y("div",{className:"has-text-weight-semibold has-text-grey-dark",children:v.name}),y("div",{className:"has-text-grey-dark",children:v.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:v.colorContains},children:[y(Ke,{icon:"fa-solid fa-circle",color:v.colorIcon,className:"mr-2"}),y("p",{className:"has-text-light is-size-7",children:v.state})]})]})]}))}),L("div",{className:"item is-flex is-flex-direction-column is-align-items-start is-gap-4",children:[L("div",{className:"shiftdiary__present radius is-flex p-4 is-align-items-center is-justify-content-space-between is-fullw",children:[L("div",{className:"is-flex",children:[y(Ke,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:a})]}),L("div",{className:"shiftdiary__assigned radius is-flex p-4 is-align-items-center is-fullw is-justify-content-space-between",children:[L("div",{className:"is-flex",children:[y(Ke,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),YL="",B2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(R=>R.label===l),[m,v]=re.useState(f),[x,k]=re.useState(f);if(m)var p=s.indexOf(m);re.useEffect(()=>{var R=s.find(P=>P.label===l);v(R),m&&(p=s.indexOf(m)),k(R)},[l,s]);const N=R=>{k(R),u&&u(R),R.onClick&&R.onClick()};return y("div",{className:"elv-component elv-steps",...r,children:y("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:s.map((R,P)=>L("li",{className:`steps-segment ${s[P+1]!==void 0&&s[P+1]==m?"is-pre-active":""} ${R==m?"is-active":""}`,children:[y("span",{className:"steps-marker",onClick:()=>{P<=p?N(R):R.onClick&&R.onClick()},children:P<p?y("span",{className:"icon",children:y("i",{className:`${R.icon}`})}):y("span",{children:P+1})}),y("div",{className:`steps-content ${P<=p?"steps-content--completed":"steps-content--incompleted"} ${R===x&&"steps-content--position"}`,children:y("p",{className:"steps-content__item-label",children:R.label})})]},P))})})},WL="",q2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...m})=>y("div",{className:"elv-component elv-tabs",...m,children:y("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((v,x)=>L("div",{className:"tabs__item",children:[l==="boxed"&&v.icon&&v.subtitle?L("li",{onClick:()=>{a&&a(v),v.sub_labels&&r&&r(v.sub_labels[0]),v.onClick&&v.onClick()},className:`item is-clickable ${x!==0?"ml-3":""} ${v.label==(u==null?void 0:u.label)?"item--active":""} ${v.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[y(Ke,{...v.icon,className:"boxed-container__icon mb-1 mr-1"}),y("p",{className:"boxed-container__label",children:Pt(v.label,30)})]}),y("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Pt(v.subtitle,20)})]}):y("li",{onClick:()=>{a&&a(v),v.sub_labels&&r&&r(v.sub_labels[0]),v.onClick&&v.onClick()},className:`item is-clickable ${x===0?"item--is-first":""} ${v.label==(u==null?void 0:u.label)?"item--active":""} ${v.disabled?"item--disabled":""}`,children:Pt(v.label,30)}),v.sub_labels!==void 0&&l==="vertical"&&v.sub_labels.map((k,N)=>y("li",{onClick:()=>{a&&a(v),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${x===0?"sub-item__--first":""} ${v.label==(u==null?void 0:u.label)&&k.label==(p==null?void 0:p.label)?"sub-item--active":""} ${k.disabled?"sub-item--inactive":""}`,children:Pt(k.label,25)},An()))]},v.label+An()))})}),VL="",Q2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:v=30,autocomplete:x,onChangeSelect:k,className:N,...R})=>{const[P,F]=re.useState(f||""),[Z,A]=re.useState(""),[K,ae]=re.useState(f||""),[J,G]=re.useState(!1),W=($,oe)=>{$==""?F(""):F(oe),A($),ae(oe),k&&k($),G(!1)};function V($){const oe=$.target.value;F(oe),G(!0)}const le=p.filter($=>$.label.toLowerCase().includes(P?P.toLowerCase():"")),ce=re.useRef(null);return re.useEffect(()=>{function $(oe){ce.current&&!ce.current.contains(oe.target)&&G(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ce]),re.useEffect(()=>{const $=p.find(oe=>oe.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ce,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:P||K,onChange:V,placeholder:a||"",onFocus:()=>G(!0),readOnly:!!Z,autoComplete:x}),Z&&K!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${Z==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,v||30)}),le==null?void 0:le.map(($,oe)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,v||30)]},oe))]})})]})})},K2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:m,minWidth:v,maxCharacters:x=30,onChangeSelect:k,className:N,...R})=>{const[P,F]=re.useState(m||""),[Z,A]=re.useState(!1),K=re.useRef(null),ae=f!==void 0?f:P,J=V=>{f===void 0&&F(V.value),k==null||k(V),A(!1)},G=V=>{f===void 0&&F(V.target.value),A(!0)},W=p.filter(V=>(V.value+" "+V.label).toLowerCase().includes((ae||"").toLowerCase()));return re.useEffect(()=>{const V=le=>{K.current&&!K.current.contains(le.target)&&A(!1)};return document.addEventListener("click",V),()=>document.removeEventListener("click",V)},[]),re.useEffect(()=>{m&&f===void 0&&F(m)},[m,f]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:v},...R,children:L("div",{className:`autocomplete-container ${N!=null?N:""}`,ref:K,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,r?"autocomplete--error":"",u?"autocomplete--disabled":""].join(" "),children:[y("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ae,onChange:G,onFocus:()=>A(!0)}),ae&&!u&&y("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&F(""),k==null||k({value:"",label:""})},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),Z&&y("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active`,children:y("ul",{className:"dropdown__list",children:W.map((V,le)=>y("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(V),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[y("span",{style:{fontWeight:"bold"},children:Pt(V.value,x)}),y("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Pt(V.label,x)})]})},le))})})]})})},BL="",G2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:v=30,autocomplete:x,onChangeSelect:k,className:N,...R})=>{const[P,F]=re.useState(f||""),[Z,A]=re.useState(""),[K,ae]=re.useState(f||""),[J,G]=re.useState(!1),W=($,oe)=>{$==""?F(""):F(oe),A($),ae(oe),k&&k($,oe),G(!1)};function V($){const oe=$.target.value;F(oe),G(!0)}const le=p.filter($=>$.label.toLowerCase().includes(P?P.toLowerCase():"")),ce=re.useRef(null);return re.useEffect(()=>{function $(oe){ce.current&&!ce.current.contains(oe.target)&&G(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ce]),re.useEffect(()=>{const $=p.find(oe=>oe.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ce,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:P||K,onChange:V,placeholder:a||"",onFocus:()=>G(!0),readOnly:!!Z,autoComplete:x,disabled:u}),Z&&K!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${Z==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,v||30)}),le==null?void 0:le.map(($,oe)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,v||30)]},oe))]})})]})})},qL="",X2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:m,onStartDateChange:v,onEndDateChange:x,className:k,...N})=>{const[R,P]=re.useState(u||new Date),[F,Z]=re.useState(a||new Date);return re.useEffect(()=>{v&&v(R)},[R]),re.useEffect(()=>{x&&x(F)},[F]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[y(yv,{selected:R,onChange:A=>P(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:R,endDate:F,className:k}),y(yv,{selected:F,onChange:A=>Z(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:R,endDate:F,minDate:R,className:k})]}):y("div",{className:"elv-component elv-datepicker",...N,children:y(yv,{selected:R,onChange:A=>P(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:m||"es"})})},QL="",Z2=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:m,onChangeFilters:v,className:x,...k})=>{const[N,R]=re.useState(!1),[P,F]=re.useState(!1),[Z,A]=re.useState(!1),[K,ae]=re.useState([]),[J,G]=re.useState([]),W=(oe,pe,ye)=>{var Ee,_e,Ne;const De=K.findIndex(ze=>ze.name===pe),he=[...K];if(oe==="radio")De>=0?he[De]={name:pe,value:[ye]}:he.push({name:pe,value:[ye]});else{const ze=(_e=(Ee=K[De])==null?void 0:Ee.value)==null?void 0:_e.indexOf(ye);De>=0&&ze>=0?he[De].value.splice(ze,1):De>=0?he[De].value.push(ye):he.push({name:pe,value:[ye]})}((Ne=he[De])==null?void 0:Ne.value.length)===0&&he.splice(De,1),he.length>0&&A(!0),ae(he)},V=()=>{v&&(v(K),G(K),A(!1),K.length===0?F(!1):F(!0))},le=()=>{ae([]),document.querySelectorAll(".section__options").forEach(pe=>{pe.querySelectorAll("label").forEach(De=>{De.querySelectorAll("input").forEach(Ee=>{Ee.checked=!1})})}),F(!1),A(!1),v&&(v([]),G([]))};function ce(){return oe=>{R(!N)}}const $=re.useRef(null);return re.useEffect(()=>{function oe(pe){$.current&&!$.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",oe),()=>{document.removeEventListener("click",oe)}},[$]),y("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${x||""}`,ref:$,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:ce(),children:[y(Ke,{icon:"fa-solid fa-filter",className:"filter"}),y("span",{className:"placeholder",children:Pt(a,25)}),J.length>0&&y(yo,{color:"primary",text:J.length.toString()}),y(Ke,{icon:"fa-solid fa-chevron-down",className:"chebron"})]}),L("div",{className:`filter-container__dropdown filter--${s} ${N?"filter-container__dropdown--active":""}`,children:[p==null?void 0:p.map(oe=>{var pe;return L("div",{className:"section",children:[y("p",{className:"section__title is-5",children:oe.label}),y("div",{className:`section__options ${oe.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=oe.options)==null?void 0:pe.map(ye=>y("div",{children:L("label",{htmlFor:ye.name,className:`filter-label ${oe.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ye.iconItem&&y(Ke,{...ye.iconItem}),y("p",{className:"",children:ye.name})]}),oe.type=="radio"?y(jg,{label:"",name:oe.name,size:"md",value:ye.name,onCheck:()=>W(oe.type,oe.name,ye.name)}):y($f,{label:"",size:"md",value:ye.name,name:oe.name,onCheck:()=>W(oe.type,oe.name,ye.name)})]})},ye.name))})]},oe.name)}),Z||P?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[Z&&y("span",{className:"button-aplicate is-flex is-justify-content-center",children:y(Pe,{label:f.label!==void 0?Pt(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:V,...f})}),P&&y("span",{className:"button-cleaner is-flex is-justify-content-center",children:y(Pe,{...m,label:m.label!==void 0?Pt(m.label,25):"",trailingIcon:m.trailingIcon,onClick:le})})]}):y(Qt,{})]})]})})},KL="",J2=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:v,onRef:x,iconLeft:k,iconRight:N,isRounded:R,isLoading:P,isDisabled:F,hasError:Z,className:A,onChangeInput:K,onSearch:ae,...J})=>{const G=V=>{V.key==="Enter"&&W()},W=()=>{var ce,$;const V=re.useRef(null),le=x?(ce=x.current)==null?void 0:ce.value:($=V.current)==null?void 0:$.value;ae&&ae(le||"")};return y("div",{className:"elv-component elv-input",...J,children:y("div",{className:`field e-input ${A||""}`,children:L("p",{className:["control",`${k?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${P?" is-loading":""}`].join(""),children:[y("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${R?" is-rounded":""}`,`${Z?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:V=>{K&&K(V)},defaultValue:f,value:m,ref:x,disabled:F,onKeyDown:G,autoComplete:v}),k&&y("span",{className:`icon is-left ${"is-"+r}`,children:y(Ke,{...k})}),N&&y("span",{className:`icon is-right ${"is-"+r}`,children:y(Ke,{...N})})]})})})},GL="",eO=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...m})=>y("div",{className:["elv-component"," elv-form-control"].join(""),...m,children:L("div",{className:`e-input-form ${f||""}`,children:[y("div",{children:l}),y(Bh,{...s}),L("div",{children:[y("span",{className:["helper",`${p?"text--error":""}`,`${a.length>r?"text--error":""}`,`${f||""}`].join(" "),children:u}),a.length&&r?L("span",{className:["length",,].join(" "),children:[a.length,"/",r]}):null]})]})}),XL="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:v,onChangeInput:x,onSearch:k,className:N,...R})=>{const P=re.useRef(null),F=A=>{A.key==="Enter"&&Z()},Z=()=>{var K;const A=(K=P.current)==null?void 0:K.value;k&&k(A||"")};return y("div",{className:"elv-component elv-search",...R,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[y("input",{className:`search-container__input + ${v?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:A=>x&&x(A.target.value),defaultValue:a,value:r,ref:P,disabled:v,onKeyDown:F}),y("span",{className:"search-container__button-search",children:y(Pe,{...p,size:s,onClick:()=>{Z()}})})]})})},ZL="",bx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,v]=re.useState(),x=()=>{v(!m),r&&r(!m)};return y("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[y("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:x}),y("span",{className:"slider round"})]})})},JL="",tO=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:v=50,className:x,...k})=>y("div",{className:"elv-component elv-textArea",children:y("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${x?" "+x:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:v,...k})}),eU="",tU="",Cx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...v})=>y("div",{className:"elv-component elv-uploadfile",...v,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${s?" "+s:""}`].join(""),children:[y("div",{className:"mr-5",children:r&&y(Ke,{icon:ok(r),className:"has-tc-primary-600",size:"24px"})}),L("div",{className:"uploadfile__info is-flex-direction-column ",children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center ",children:[L("div",{className:"is-flex is-align-items-center",children:[r?y("p",{className:"file_name is-size-7",children:r}):a?y("p",{className:"file_name is-size-7",children:a.name}):y(Qt,{}),y("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),y(Pe,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?y("div",{className:"is-size-7",children:D0(p)}):a?y("div",{className:"is-size-7",children:D0(a.size)}):y(Qt,{})]}),u&&y("div",{className:"uploadfile__progress pt-2",children:y(k0,{...l})})]}),y("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),nO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:v,onPreviewFile:x,onDeleteFile:k,onErrorSize:N,onErrorExtensions:R,...P})=>{const[F,Z]=re.useState(!1),[A,K]=re.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(ce=>{var oe;const $=(oe=ce.name.split(".").pop())==null?void 0:oe.toLowerCase();return m==null?void 0:m.includes($||"")})),ae=ce=>{ce.preventDefault(),Z(!0)},J=()=>{Z(!1)},G=ce=>{ce.preventDefault(),Z(!1);const $=ce.dataTransfer.files;$&&V($)},W=ce=>{const $=ce.target.files;$&&V($)},V=ce=>{var $;if(ce.length<=r&&A.length+ce.length<=r)for(let oe=0;oe<ce.length;oe++){const pe=ce[oe],ye=pe.name.split("."),De=ye.length>1?($=ye.pop())==null?void 0:$.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(De||""))){if(pe.size<=a*1024*1024)v&&v(pe);else{N&&N(pe);return}K(he=>[...he,pe])}else{R&&R(pe);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},le=ce=>{const $=A.filter(oe=>oe!==ce);K($)};return y("div",{className:"elv-component elv-uploadfiles",...P,children:L("div",{className:["uploadfiles is-flex is-flex-direction-column is-align-items-center is-gap-4 p-5",`${s?" "+s:""}`].join(""),children:[y("div",{className:`uploadfiles__files file ${F?"dragging":""}`,onDragEnter:ae,onDragLeave:J,onDragOver:ce=>ce.preventDefault(),onDrop:G,children:L("label",{htmlFor:"file-input",className:"file-label",children:[y("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:W,multiple:!0}),L("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[y("span",{className:"file-icon",children:y(Ke,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),y("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),y("div",{className:"uploadfiles__data",children:u}),A.length>0?y("div",{children:A.map((ce,$)=>y("div",{className:"uploadfiles__download mb-3",children:y(Cx,{showBar:!!(p&&p[$]&&p[$]!==100),file:ce,file_name:ce.name,file_size:ce.size,onPreview:oe=>{x&&x(oe)},onDelete:oe=>{k&&k(oe),le(oe)},progressBar:{value:p&&p[$]?p[$]:0}})},$))}):null]})})},nU="",rO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,className:p,...f})=>{var m=new Date,v=m.getFullYear();return y("div",{className:"elv-component elv-footer",...f,children:L("div",{className:`footer-component is-flex is-flex-direction-column ${p||""}`,children:[L("div",{className:"footer-component__container",children:[s&&y(Qt,{children:s.map(x=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[y("p",{className:"column-item__title",children:x.title}),x.buttonLinks.map(k=>y("span",{className:"column-item__button",children:y(Pe,{...k})},An())),y("span",{className:"column-item__final",children:y(Pe,{...x.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[y("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(x=>y("span",{className:"final-item__button",children:y(Pe,{...x})},An())),y("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[y("img",{src:u,alt:"",width:"155px",height:"37px"}),y("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[y("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",v," - Rentas Corrientes"]})}),r&&y("div",{className:"end-button-links is-flex",children:r.map(x=>y("div",{className:"end-button-links__item is-flex",children:y("span",{className:"end-button-links__button",children:y(Pe,{...x})},x.label)},An()))})]})]})]})})},rU="",aO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",iO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:v,...x})=>{var oe,pe,ye,De;const[k,N]=re.useState(!1),[R,P]=re.useState(!1),[F,Z]=re.useState(window.innerWidth<1217),[A,K]=re.useState(window.innerWidth<654),[ae,J]=re.useState(null),[G,W]=re.useState((oe=p==null?void 0:p.reduce((he,Ee)=>({...he,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?oe:{}),V=re.useRef(null),le=p==null?void 0:p.map(()=>re.useRef(null)),ce=he=>{J(Ee=>Ee===he?null:he),W(Ee=>({...Object.keys(Ee).reduce((_e,Ne)=>(_e[Ne]={active:Ne===he,name:Ee[Ne].name},_e),{})}))};re.useEffect(()=>{function he(Ee){var _e;Object.values(G).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((_e=V.current)!=null&&_e.contains(Ee.target))&&(W(Ne=>Object.keys(Ne).reduce((ze,ct)=>({...ze,[ct]:{active:!1,name:Ne[ct].name}}),{})),J(null))}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[V,G]);const $=re.useRef(null);return re.useEffect(()=>{function he(Ee){$.current&&!$.current.contains(Ee.target)&&P(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[$]),re.useEffect(()=>{function he(){Z(window.innerWidth<1217),K(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),y("div",{className:"elv-component elv-header",...x,children:y("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[y("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:y("img",{src:aO,alt:"Burger SVG"})}),u&&y(Qt,{children:A?y("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:y("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):y("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:y("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),y("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:y("div",{className:"navbar-start",children:r&&r.map(he=>y("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[y("div",{className:"icon-functions is-flex",ref:V,children:p&&p.map((he,Ee)=>L("div",{className:["item-icon "].join(""),ref:le&&le[Ee],children:[y("span",{children:y(Pe,{...he.buttonIcon,onClick:()=>{var _e;ce(he.uniqueValue),(_e=he.buttonIcon)!=null&&_e.onClick&&he.buttonIcon.onClick()}})}),he.badge&&y(Qt,{children:y("span",{className:"item-icon__badge-notif",children:y(yo,{...he.badge})})}),he.iconDropComponent&&y("div",{className:`drop-component drop-component__icon ${G[he.uniqueValue]&&p[Ee].uniqueValue===ae?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?y(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),m.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:$,children:[L("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>P(!R),children:[L("div",{className:"user-sec__text",children:[L("p",{className:"names",children:["Hola, ",m.name," ",m.lastName]}),y("p",{className:"description",children:m.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(pe=m.avatar)!=null&&pe.icon?L("div",{className:"user-icon",children:[y(Ke,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&y("span",{className:"user-icon__state",children:y(Ke,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):y("img",{src:(De=(ye=m.avatar)==null?void 0:ye.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),y(Ke,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]})}):y(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),v&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:v})]}):y("div",{className:"navbar-item",children:y(Pe,{...f})})})]})]})})})},aU="",oO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[v,x]=re.useState(!1),k=re.useRef(null);return re.useEffect(()=>{function N(R){k.current&&!k.current.contains(R.target)&&x(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),y("div",{className:`elv-component elv-header-table ${s||""}`,...m,children:L("div",{className:"header-table is-flex",children:[l&&y("span",{children:y(op,{...l})}),a&&a.map(N=>y("span",{children:y(Yf,{...N})},An())),u&&y(wv,{...u}),r&&y(Pe,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[y(Pe,{...p,onClick:()=>{x(!v),p.onClick&&p.onClick()}}),f&&v&&y("div",{className:"menuButton__dropComponent",children:f})]})]})})},iU="",lO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:v=!1,onShow:x,onClose:k,...N})=>{const[R,P]=re.useState(a),[F,Z]=re.useState(1),[A,K]=re.useState(0),ae=re.useRef(null),J=re.useRef(null),[G,W]=re.useState(p);re.useEffect(()=>{P(a)},[a]),re.useEffect(()=>{W(p)},[p]);const V=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{P(!0),x&&x()}})}),R&&y("div",{className:"modal-background",onClick:()=>{P(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${R?"is-open":""} ${s||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:V},children:m.slice((F-1)*p,F*p).map((le,ce)=>y("div",{ref:ae,className:`listItem ${v?" line-separation":""}`,children:le},An()))}),y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&y(wv,{onChangePage:le=>{Z(le)},minItemsPerPage:G,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},oU="",sO=({className:s,title:l,show:u,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:m,position:v="right",footerbutton:x,...k})=>{const[N,R]=re.useState(u);return re.useEffect(()=>{R(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...k,children:[!N&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...r,onClick:()=>{R(!0)}})}),N&&y("div",{className:"modal-background",onClick:()=>{R(!1)}}),L("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${N?"is-open":""}`,` sidebar-container--${v}`,`${s?" "+s:""}`].join(""),children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",children:[y("div",{className:"sidebar-container__button mr-3",children:y(Pe,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),y("p",{className:"title is-5 has-text-link-dark",children:l})]}),y("div",{className:"sidebar-container__content",children:m})]}),x&&y("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[y("div",{className:"button-container__opt ml-5",children:p&&y(Pe,{...p})}),y("div",{className:"button-container__opt",children:f&&y(Pe,{...f})})]})})]})]})},lU="",uO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:v,addButton:x,removeButton:k,linkButton:N,iconButton:R,switcherLabel:P,switcher:F,labelRight:Z,...A})=>y("div",{className:"elv-component elv-subtitle",...A,children:L("div",{className:`subtitle-component ${l&&"subtitle-component--border-bot-gray"} ${s||""}`,children:[L("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&y("div",{className:"left-backButton",children:y(Pe,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&y(Ke,{...f}),m&&y("span",{className:"left-texts__principal__rectangle"}),a&&y("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&y("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[x||k?L("div",{className:"right-editButtons is-flex",children:[x&&y("span",{className:"right-editButtons__addButton",children:y(Pe,{...x})}),k&&y("span",{className:"right-editButtons__removeButton",children:y(Pe,{...k})})]}):y(Qt,{}),N&&y("span",{className:"right-linkButton",children:y(Pe,{...N})}),R&&y("span",{children:y(Pe,{...R})}),F&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[P&&y("p",{className:"right-switcher__label",children:P}),y(bx,{...F})]}),Z&&y("p",{className:"right-label",children:Z})]})]})}),sU="",cO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:v,buttonWidth:x,backButton:k,searchWidth:N,align:R,...P})=>y("div",{className:"elv-component elv-title",...P,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&y("div",{className:"title-component-container__backButton is-flex",children:y(Pe,{...k})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&y("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&y("p",{className:"title-component__title",children:u}),L("div",{className:`title-component__content is-flex title-component__content--${R} is-flex-direction-column ${k&&"title-component__content--backButton"}`,children:[a&&y("p",{className:"title-component__description",style:{width:r},children:a}),p&&y("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&y("span",{className:"title-component__actionButtons is-flex",children:f.map(F=>y("span",{children:y(Pe,{...F})},F.label))}),m&&y("span",{className:"title-component__search",style:{width:N},children:y(op,{...m})}),v&&y("span",{className:"title-component__button",style:{width:x},children:y(Pe,{...v})})]})]})]})}),uU="",dO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:v=!1,onShow:x,onClose:k,children:N,width:R="315px",showOpenButton:P=!1,...F})=>{const[Z,A]=re.useState(a),[K,ae]=re.useState(1),[J,G]=re.useState(0),W=re.useRef(null),V=re.useRef(null),[le,ce]=re.useState(p);re.useEffect(()=>{A(a)},[a]),re.useEffect(()=>{ce(p)},[p]);const $=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...F,children:[!Z&&P&&l&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{A(!0),x&&x()}})}),Z&&y("div",{className:"modal-background",onClick:()=>{A(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${s!=null?s:""}`,style:{width:R,right:Z?"0":`-${R}`},children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:V,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:$},children:N||m.slice((K-1)*le,K*le).map(oe=>y("div",{ref:W,className:`listItem ${v?" line-separation":""}`,children:oe},An()))}),!N&&(m==null?void 0:m.length)>le&&y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:y(wv,{onChangePage:oe=>{ae(oe)},minItemsPerPage:le,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};at.Alert=rk,at.AssistanceDiary=ak,at.Autocomplete=Q2,at.Autocomplete2=K2,at.Autocomplete3=G2,at.AverageAttended=ik,at.Badge=yo,at.Breadcrumb=lk,at.Button=Pe,at.CTA=_2,at.CardActivity=dk,at.CardCTA=sk,at.CardExpiration=uk,at.CardHorizontal=fk,at.CardUser=pk,at.CardVertical=ck,at.Cart=hk,at.Checkbox=$f,at.Collapse=T0,at.CollapseEdit=E0,at.CompleteDiary=S2,at.DatePickerComponent=X2,at.Dropdown=k2,at.EmptyState=D2,at.ErrorPage=E2,at.Filters=Z2,at.Footer=rO,at.Header=iO,at.HeaderTable=oO,at.Icon=Ke,at.IncomingCall=T2,at.Input=Bh,at.Input2=J2,at.InputForm=eO,at.ModalConfirm=R2,at.ModalConfirm2=M2,at.ModalConfirm3=P2,at.Pagination=wv,at.Pagination2=A2,at.PerformanceAssessment=W2,at.ProgressBar=k0,at.Radio=jg,at.Search=op,at.Select=Yf,at.ShiftDiary=V2,at.Sidebar=lO,at.SidebarChildren=dO,at.SidebarEmpty=sO,at.Stepper=B2,at.Subtitle=uO,at.Switch=bx,at.Tabs=q2,at.Textarea=tO,at.Title=cO,at.Tooltip=Ug,at.UploadFileItem=Cx,at.UploadFiles=nO,Object.defineProperties(at,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
311
+ `}function F2(s){var l=s.counterClockwise,u=s.dashRatio,a=s.pathRadius,r=Math.PI*2*a,p=(1-u)*r;return{strokeDasharray:r+"px "+r+"px",strokeDashoffset:(l?-p:p)+"px"}}var H2=function(s){L2(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},l.prototype.getPathRadius=function(){return yx-this.props.strokeWidth/2-this.getBackgroundPadding()},l.prototype.getPathRatio=function(){var u=this.props,a=u.value,r=u.minValue,p=u.maxValue,f=Math.min(Math.max(a,r),p);return(f-r)/(p-r)},l.prototype.render=function(){var u=this.props,a=u.circleRatio,r=u.className,p=u.classes,f=u.counterClockwise,m=u.styles,v=u.strokeWidth,x=u.text,k=this.getPathRadius(),N=this.getPathRatio();return re.createElement("svg",{className:p.root+" "+r,style:m.root,viewBox:"0 0 "+j2+" "+I2,"data-test-id":"CircularProgressbar"},this.props.background?re.createElement("circle",{className:p.background,style:m.background,cx:Oy,cy:Ry,r:yx}):null,re.createElement(wx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:v,style:m.trail}),re.createElement(wx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:v,style:m.path}),x?re.createElement("text",{className:p.text,style:m.text,x:Oy,y:Ry},x):null)},l.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},l}(re.Component);function $2(s){s.children;var l=U2(s,["children"]);return re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},re.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},re.createElement(H2,Ny({},l)),s.children?re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren__children",style:{position:"absolute",width:"100%",height:"100%",marginTop:"-100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},s.children):null))}function Y2(s){var l=s.rotation,u=s.strokeLinecap,a=s.textColor,r=s.textSize,p=s.pathColor,f=s.pathTransition,m=s.pathTransitionDuration,v=s.trailColor,x=s.backgroundColor,k=l==null?void 0:"rotate("+l+"turn)",N=l==null?void 0:"center center";return{root:{},path:bv({stroke:p,strokeLinecap:u,transform:k,transformOrigin:N,transition:f,transitionDuration:m==null?void 0:m+"s"}),trail:bv({stroke:v,strokeLinecap:u,transform:k,transformOrigin:N}),text:bv({fill:a,fontSize:r}),background:bv({fill:x})}}function bv(s){return Object.keys(s).forEach(function(l){s[l]==null&&delete s[l]}),s}const W2=({labelPerformance:s,dataTime:l,percentage:u,description:a,star:r,qualification:p,rating:f,className:m})=>{const v=Math.round(f*2)/2;return y("div",{className:"elv-component elv-performanceAssessment",children:L("div",{className:["performanceAssessment box is-flex is-flex-direction-column p-5 is-gap-6 is-align-items-center",`${m?" "+m:""}`].join(""),children:[L("div",{className:"is-flex is-flex-direction-column is-gap-3",children:[y("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),y("div",{children:l==null?void 0:l.map(x=>y("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:x.date}))})]}),y("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L($2,{value:u,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:Y2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[y("div",{className:"is-size-4",children:y("strong",{children:`${u}%`})}),y("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[y("div",{className:"is-flex",children:r==null?void 0:r.map((x,k)=>{const N=v-k===.5;return L("div",{children:[!N&&y(Ke,{icon:x.star,className:"iconStar mr-3 is-size-5",color:k<v?"#16A34A":"#CED4DA"}),N&&y(Ke,{icon:x.starStroke,className:"iconStar mr-3 is-size-5",color:"#16A34A"})]},k)})}),L("p",{className:"has-text-grey is-size-14px mt-3",children:[" ",f," ",p]})]})]})})},$L="",V2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:m})=>y("div",{className:"elv-component elv-shiftdiary",children:L("div",{className:["shiftdiary box is-flex is-flex-direction-column p-5 is-gap-5",`${m?" "+m:""}`].join(""),children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center",children:[y("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),y(Pe,{label:"Ver m\xE1s",fill:"unstyled",color:"primary",className:"shiftdiary__button is-size-10px has-text-weight-medium",onClick:()=>f&&f()})]}),L("div",{className:" shiftdiary__boxdiary is-flex is-gap-5",children:[y("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(v=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"has-text-grey-dark",children:v.time}),L("div",{className:"is-flex is-align-items-center py-4 is-justify-content-space-between",children:[L("div",{className:"is-flex is-gap-4",children:[y("div",{className:"has-text-weight-semibold has-text-grey-dark",children:v.name}),y("div",{className:"has-text-grey-dark",children:v.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:v.colorContains},children:[y(Ke,{icon:"fa-solid fa-circle",color:v.colorIcon,className:"mr-2"}),y("p",{className:"has-text-light is-size-7",children:v.state})]})]})]}))}),L("div",{className:"item is-flex is-flex-direction-column is-align-items-start is-gap-4",children:[L("div",{className:"shiftdiary__present radius is-flex p-4 is-align-items-center is-justify-content-space-between is-fullw",children:[L("div",{className:"is-flex",children:[y(Ke,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:a})]}),L("div",{className:"shiftdiary__assigned radius is-flex p-4 is-align-items-center is-fullw is-justify-content-space-between",children:[L("div",{className:"is-flex",children:[y(Ke,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),YL="",B2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(R=>R.label===l),[m,v]=re.useState(f),[x,k]=re.useState(f);if(m)var p=s.indexOf(m);re.useEffect(()=>{var R=s.find(P=>P.label===l);v(R),m&&(p=s.indexOf(m)),k(R)},[l,s]);const N=R=>{k(R),u&&u(R),R.onClick&&R.onClick()};return y("div",{className:"elv-component elv-steps",...r,children:y("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:s.map((R,P)=>L("li",{className:`steps-segment ${s[P+1]!==void 0&&s[P+1]==m?"is-pre-active":""} ${R==m?"is-active":""}`,children:[y("span",{className:"steps-marker",onClick:()=>{P<=p?N(R):R.onClick&&R.onClick()},children:P<p?y("span",{className:"icon",children:y("i",{className:`${R.icon}`})}):y("span",{children:P+1})}),y("div",{className:`steps-content ${P<=p?"steps-content--completed":"steps-content--incompleted"} ${R===x&&"steps-content--position"}`,children:y("p",{className:"steps-content__item-label",children:R.label})})]},P))})})},WL="",q2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...m})=>y("div",{className:"elv-component elv-tabs",...m,children:y("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((v,x)=>L("div",{className:"tabs__item",children:[l==="boxed"&&v.icon&&v.subtitle?L("li",{onClick:()=>{a&&a(v),v.sub_labels&&r&&r(v.sub_labels[0]),v.onClick&&v.onClick()},className:`item is-clickable ${x!==0?"ml-3":""} ${v.label==(u==null?void 0:u.label)?"item--active":""} ${v.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[y(Ke,{...v.icon,className:"boxed-container__icon mb-1 mr-1"}),y("p",{className:"boxed-container__label",children:Pt(v.label,30)})]}),y("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Pt(v.subtitle,20)})]}):y("li",{onClick:()=>{a&&a(v),v.sub_labels&&r&&r(v.sub_labels[0]),v.onClick&&v.onClick()},className:`item is-clickable ${x===0?"item--is-first":""} ${v.label==(u==null?void 0:u.label)?"item--active":""} ${v.disabled?"item--disabled":""}`,children:Pt(v.label,30)}),v.sub_labels!==void 0&&l==="vertical"&&v.sub_labels.map((k,N)=>y("li",{onClick:()=>{a&&a(v),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${x===0?"sub-item__--first":""} ${v.label==(u==null?void 0:u.label)&&k.label==(p==null?void 0:p.label)?"sub-item--active":""} ${k.disabled?"sub-item--inactive":""}`,children:Pt(k.label,25)},An()))]},v.label+An()))})}),VL="",Q2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:v=30,autocomplete:x,onChangeSelect:k,className:N,...R})=>{const[P,F]=re.useState(f||""),[Z,A]=re.useState(""),[K,ae]=re.useState(f||""),[J,G]=re.useState(!1),W=($,oe)=>{$==""?F(""):F(oe),A($),ae(oe),k&&k($),G(!1)};function V($){const oe=$.target.value;F(oe),G(!0)}const le=p.filter($=>$.label.toLowerCase().includes(P?P.toLowerCase():"")),ce=re.useRef(null);return re.useEffect(()=>{function $(oe){ce.current&&!ce.current.contains(oe.target)&&G(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ce]),re.useEffect(()=>{const $=p.find(oe=>oe.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ce,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:P||K,onChange:V,placeholder:a||"",onFocus:()=>G(!0),readOnly:!!Z,autoComplete:x}),Z&&K!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${Z==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,v||30)}),le==null?void 0:le.map(($,oe)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,v||30)]},oe))]})})]})})},K2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:m,minWidth:v,maxCharacters:x=30,onChangeSelect:k,className:N,...R})=>{const[P,F]=re.useState(m||""),[Z,A]=re.useState(!1),K=re.useRef(null),ae=f!==void 0?f:P,J=V=>{f===void 0&&F(V.value),k==null||k(V),A(!1)},G=V=>{f===void 0&&F(V.target.value),A(!0)},W=p.filter(V=>(V.value+" "+V.label).toLowerCase().includes((ae||"").toLowerCase()));return re.useEffect(()=>{const V=le=>{K.current&&!K.current.contains(le.target)&&A(!1)};return document.addEventListener("click",V),()=>document.removeEventListener("click",V)},[]),re.useEffect(()=>{m&&f===void 0&&F(m)},[m,f]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:v},...R,children:L("div",{className:`autocomplete-container ${N!=null?N:""}`,ref:K,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,r?"autocomplete--error":"",u?"autocomplete--disabled":""].join(" "),children:[y("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ae,onChange:G,onFocus:()=>A(!0)}),ae&&!u&&y("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&F(""),k==null||k({value:"",label:""})},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),Z&&y("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active `,children:y("ul",{className:"dropdown__list",children:W.length>0?W.map((V,le)=>y("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(V),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[y("span",{style:{fontWeight:"bold"},children:Pt(V.value,x)}),y("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Pt(V.label,x)})]})},le)):y("li",{className:"list__item",style:{padding:"6px 0",textAlign:"center",color:"#666"},children:"No se encontraron coincidencias"})})})]})})},BL="",G2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:v=30,autocomplete:x,onChangeSelect:k,className:N,...R})=>{const[P,F]=re.useState(f||""),[Z,A]=re.useState(""),[K,ae]=re.useState(f||""),[J,G]=re.useState(!1),W=($,oe)=>{$==""?F(""):F(oe),A($),ae(oe),k&&k($,oe),G(!1)};function V($){const oe=$.target.value;F(oe),G(!0)}const le=p.filter($=>$.label.toLowerCase().includes(P?P.toLowerCase():"")),ce=re.useRef(null);return re.useEffect(()=>{function $(oe){ce.current&&!ce.current.contains(oe.target)&&G(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ce]),re.useEffect(()=>{const $=p.find(oe=>oe.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ce,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:P||K,onChange:V,placeholder:a||"",onFocus:()=>G(!0),readOnly:!!Z,autoComplete:x,disabled:u}),Z&&K!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${Z==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,v||30)}),le==null?void 0:le.map(($,oe)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,v||30)]},oe))]})})]})})},qL="",X2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:m,onStartDateChange:v,onEndDateChange:x,className:k,...N})=>{const[R,P]=re.useState(u||new Date),[F,Z]=re.useState(a||new Date);return re.useEffect(()=>{v&&v(R)},[R]),re.useEffect(()=>{x&&x(F)},[F]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[y(yv,{selected:R,onChange:A=>P(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:R,endDate:F,className:k}),y(yv,{selected:F,onChange:A=>Z(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:R,endDate:F,minDate:R,className:k})]}):y("div",{className:"elv-component elv-datepicker",...N,children:y(yv,{selected:R,onChange:A=>P(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:m||"es"})})},QL="",Z2=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:m,onChangeFilters:v,className:x,...k})=>{const[N,R]=re.useState(!1),[P,F]=re.useState(!1),[Z,A]=re.useState(!1),[K,ae]=re.useState([]),[J,G]=re.useState([]),W=(oe,pe,ye)=>{var Ee,_e,Ne;const De=K.findIndex(ze=>ze.name===pe),he=[...K];if(oe==="radio")De>=0?he[De]={name:pe,value:[ye]}:he.push({name:pe,value:[ye]});else{const ze=(_e=(Ee=K[De])==null?void 0:Ee.value)==null?void 0:_e.indexOf(ye);De>=0&&ze>=0?he[De].value.splice(ze,1):De>=0?he[De].value.push(ye):he.push({name:pe,value:[ye]})}((Ne=he[De])==null?void 0:Ne.value.length)===0&&he.splice(De,1),he.length>0&&A(!0),ae(he)},V=()=>{v&&(v(K),G(K),A(!1),K.length===0?F(!1):F(!0))},le=()=>{ae([]),document.querySelectorAll(".section__options").forEach(pe=>{pe.querySelectorAll("label").forEach(De=>{De.querySelectorAll("input").forEach(Ee=>{Ee.checked=!1})})}),F(!1),A(!1),v&&(v([]),G([]))};function ce(){return oe=>{R(!N)}}const $=re.useRef(null);return re.useEffect(()=>{function oe(pe){$.current&&!$.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",oe),()=>{document.removeEventListener("click",oe)}},[$]),y("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${x||""}`,ref:$,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:ce(),children:[y(Ke,{icon:"fa-solid fa-filter",className:"filter"}),y("span",{className:"placeholder",children:Pt(a,25)}),J.length>0&&y(yo,{color:"primary",text:J.length.toString()}),y(Ke,{icon:"fa-solid fa-chevron-down",className:"chebron"})]}),L("div",{className:`filter-container__dropdown filter--${s} ${N?"filter-container__dropdown--active":""}`,children:[p==null?void 0:p.map(oe=>{var pe;return L("div",{className:"section",children:[y("p",{className:"section__title is-5",children:oe.label}),y("div",{className:`section__options ${oe.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=oe.options)==null?void 0:pe.map(ye=>y("div",{children:L("label",{htmlFor:ye.name,className:`filter-label ${oe.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ye.iconItem&&y(Ke,{...ye.iconItem}),y("p",{className:"",children:ye.name})]}),oe.type=="radio"?y(jg,{label:"",name:oe.name,size:"md",value:ye.name,onCheck:()=>W(oe.type,oe.name,ye.name)}):y($f,{label:"",size:"md",value:ye.name,name:oe.name,onCheck:()=>W(oe.type,oe.name,ye.name)})]})},ye.name))})]},oe.name)}),Z||P?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[Z&&y("span",{className:"button-aplicate is-flex is-justify-content-center",children:y(Pe,{label:f.label!==void 0?Pt(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:V,...f})}),P&&y("span",{className:"button-cleaner is-flex is-justify-content-center",children:y(Pe,{...m,label:m.label!==void 0?Pt(m.label,25):"",trailingIcon:m.trailingIcon,onClick:le})})]}):y(Qt,{})]})]})})},KL="",J2=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:v,onRef:x,iconLeft:k,iconRight:N,isRounded:R,isLoading:P,isDisabled:F,hasError:Z,className:A,onChangeInput:K,onSearch:ae,...J})=>{const G=V=>{V.key==="Enter"&&W()},W=()=>{var ce,$;const V=re.useRef(null),le=x?(ce=x.current)==null?void 0:ce.value:($=V.current)==null?void 0:$.value;ae&&ae(le||"")};return y("div",{className:"elv-component elv-input",...J,children:y("div",{className:`field e-input ${A||""}`,children:L("p",{className:["control",`${k?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${P?" is-loading":""}`].join(""),children:[y("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${R?" is-rounded":""}`,`${Z?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:V=>{K&&K(V)},defaultValue:f,value:m,ref:x,disabled:F,onKeyDown:G,autoComplete:v}),k&&y("span",{className:`icon is-left ${"is-"+r}`,children:y(Ke,{...k})}),N&&y("span",{className:`icon is-right ${"is-"+r}`,children:y(Ke,{...N})})]})})})},GL="",eO=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...m})=>y("div",{className:["elv-component"," elv-form-control"].join(""),...m,children:L("div",{className:`e-input-form ${f||""}`,children:[y("div",{children:l}),y(Bh,{...s}),L("div",{children:[y("span",{className:["helper",`${p?"text--error":""}`,`${a.length>r?"text--error":""}`,`${f||""}`].join(" "),children:u}),a.length&&r?L("span",{className:["length",,].join(" "),children:[a.length,"/",r]}):null]})]})}),XL="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:v,onChangeInput:x,onSearch:k,className:N,...R})=>{const P=re.useRef(null),F=A=>{A.key==="Enter"&&Z()},Z=()=>{var K;const A=(K=P.current)==null?void 0:K.value;k&&k(A||"")};return y("div",{className:"elv-component elv-search",...R,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[y("input",{className:`search-container__input + ${v?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:A=>x&&x(A.target.value),defaultValue:a,value:r,ref:P,disabled:v,onKeyDown:F}),y("span",{className:"search-container__button-search",children:y(Pe,{...p,size:s,onClick:()=>{Z()}})})]})})},ZL="",bx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,v]=re.useState(),x=()=>{v(!m),r&&r(!m)};return y("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[y("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:x}),y("span",{className:"slider round"})]})})},JL="",tO=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:v=50,className:x,...k})=>y("div",{className:"elv-component elv-textArea",children:y("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${x?" "+x:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:v,...k})}),eU="",tU="",Cx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...v})=>y("div",{className:"elv-component elv-uploadfile",...v,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${s?" "+s:""}`].join(""),children:[y("div",{className:"mr-5",children:r&&y(Ke,{icon:ok(r),className:"has-tc-primary-600",size:"24px"})}),L("div",{className:"uploadfile__info is-flex-direction-column ",children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center ",children:[L("div",{className:"is-flex is-align-items-center",children:[r?y("p",{className:"file_name is-size-7",children:r}):a?y("p",{className:"file_name is-size-7",children:a.name}):y(Qt,{}),y("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),y(Pe,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?y("div",{className:"is-size-7",children:D0(p)}):a?y("div",{className:"is-size-7",children:D0(a.size)}):y(Qt,{})]}),u&&y("div",{className:"uploadfile__progress pt-2",children:y(k0,{...l})})]}),y("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),nO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:v,onPreviewFile:x,onDeleteFile:k,onErrorSize:N,onErrorExtensions:R,...P})=>{const[F,Z]=re.useState(!1),[A,K]=re.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(ce=>{var oe;const $=(oe=ce.name.split(".").pop())==null?void 0:oe.toLowerCase();return m==null?void 0:m.includes($||"")})),ae=ce=>{ce.preventDefault(),Z(!0)},J=()=>{Z(!1)},G=ce=>{ce.preventDefault(),Z(!1);const $=ce.dataTransfer.files;$&&V($)},W=ce=>{const $=ce.target.files;$&&V($)},V=ce=>{var $;if(ce.length<=r&&A.length+ce.length<=r)for(let oe=0;oe<ce.length;oe++){const pe=ce[oe],ye=pe.name.split("."),De=ye.length>1?($=ye.pop())==null?void 0:$.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(De||""))){if(pe.size<=a*1024*1024)v&&v(pe);else{N&&N(pe);return}K(he=>[...he,pe])}else{R&&R(pe);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},le=ce=>{const $=A.filter(oe=>oe!==ce);K($)};return y("div",{className:"elv-component elv-uploadfiles",...P,children:L("div",{className:["uploadfiles is-flex is-flex-direction-column is-align-items-center is-gap-4 p-5",`${s?" "+s:""}`].join(""),children:[y("div",{className:`uploadfiles__files file ${F?"dragging":""}`,onDragEnter:ae,onDragLeave:J,onDragOver:ce=>ce.preventDefault(),onDrop:G,children:L("label",{htmlFor:"file-input",className:"file-label",children:[y("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:W,multiple:!0}),L("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[y("span",{className:"file-icon",children:y(Ke,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),y("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),y("div",{className:"uploadfiles__data",children:u}),A.length>0?y("div",{children:A.map((ce,$)=>y("div",{className:"uploadfiles__download mb-3",children:y(Cx,{showBar:!!(p&&p[$]&&p[$]!==100),file:ce,file_name:ce.name,file_size:ce.size,onPreview:oe=>{x&&x(oe)},onDelete:oe=>{k&&k(oe),le(oe)},progressBar:{value:p&&p[$]?p[$]:0}})},$))}):null]})})},nU="",rO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,className:p,...f})=>{var m=new Date,v=m.getFullYear();return y("div",{className:"elv-component elv-footer",...f,children:L("div",{className:`footer-component is-flex is-flex-direction-column ${p||""}`,children:[L("div",{className:"footer-component__container",children:[s&&y(Qt,{children:s.map(x=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[y("p",{className:"column-item__title",children:x.title}),x.buttonLinks.map(k=>y("span",{className:"column-item__button",children:y(Pe,{...k})},An())),y("span",{className:"column-item__final",children:y(Pe,{...x.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[y("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(x=>y("span",{className:"final-item__button",children:y(Pe,{...x})},An())),y("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[y("img",{src:u,alt:"",width:"155px",height:"37px"}),y("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[y("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",v," - Rentas Corrientes"]})}),r&&y("div",{className:"end-button-links is-flex",children:r.map(x=>y("div",{className:"end-button-links__item is-flex",children:y("span",{className:"end-button-links__button",children:y(Pe,{...x})},x.label)},An()))})]})]})]})})},rU="",aO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",iO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:v,...x})=>{var oe,pe,ye,De;const[k,N]=re.useState(!1),[R,P]=re.useState(!1),[F,Z]=re.useState(window.innerWidth<1217),[A,K]=re.useState(window.innerWidth<654),[ae,J]=re.useState(null),[G,W]=re.useState((oe=p==null?void 0:p.reduce((he,Ee)=>({...he,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?oe:{}),V=re.useRef(null),le=p==null?void 0:p.map(()=>re.useRef(null)),ce=he=>{J(Ee=>Ee===he?null:he),W(Ee=>({...Object.keys(Ee).reduce((_e,Ne)=>(_e[Ne]={active:Ne===he,name:Ee[Ne].name},_e),{})}))};re.useEffect(()=>{function he(Ee){var _e;Object.values(G).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((_e=V.current)!=null&&_e.contains(Ee.target))&&(W(Ne=>Object.keys(Ne).reduce((ze,ct)=>({...ze,[ct]:{active:!1,name:Ne[ct].name}}),{})),J(null))}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[V,G]);const $=re.useRef(null);return re.useEffect(()=>{function he(Ee){$.current&&!$.current.contains(Ee.target)&&P(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[$]),re.useEffect(()=>{function he(){Z(window.innerWidth<1217),K(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),y("div",{className:"elv-component elv-header",...x,children:y("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[y("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:y("img",{src:aO,alt:"Burger SVG"})}),u&&y(Qt,{children:A?y("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:y("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):y("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:y("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),y("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:y("div",{className:"navbar-start",children:r&&r.map(he=>y("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[y("div",{className:"icon-functions is-flex",ref:V,children:p&&p.map((he,Ee)=>L("div",{className:["item-icon "].join(""),ref:le&&le[Ee],children:[y("span",{children:y(Pe,{...he.buttonIcon,onClick:()=>{var _e;ce(he.uniqueValue),(_e=he.buttonIcon)!=null&&_e.onClick&&he.buttonIcon.onClick()}})}),he.badge&&y(Qt,{children:y("span",{className:"item-icon__badge-notif",children:y(yo,{...he.badge})})}),he.iconDropComponent&&y("div",{className:`drop-component drop-component__icon ${G[he.uniqueValue]&&p[Ee].uniqueValue===ae?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?y(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),m.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:$,children:[L("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>P(!R),children:[L("div",{className:"user-sec__text",children:[L("p",{className:"names",children:["Hola, ",m.name," ",m.lastName]}),y("p",{className:"description",children:m.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(pe=m.avatar)!=null&&pe.icon?L("div",{className:"user-icon",children:[y(Ke,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&y("span",{className:"user-icon__state",children:y(Ke,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):y("img",{src:(De=(ye=m.avatar)==null?void 0:ye.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),y(Ke,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]})}):y(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),v&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:v})]}):y("div",{className:"navbar-item",children:y(Pe,{...f})})})]})]})})})},aU="",oO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[v,x]=re.useState(!1),k=re.useRef(null);return re.useEffect(()=>{function N(R){k.current&&!k.current.contains(R.target)&&x(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),y("div",{className:`elv-component elv-header-table ${s||""}`,...m,children:L("div",{className:"header-table is-flex",children:[l&&y("span",{children:y(op,{...l})}),a&&a.map(N=>y("span",{children:y(Yf,{...N})},An())),u&&y(wv,{...u}),r&&y(Pe,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[y(Pe,{...p,onClick:()=>{x(!v),p.onClick&&p.onClick()}}),f&&v&&y("div",{className:"menuButton__dropComponent",children:f})]})]})})},iU="",lO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:v=!1,onShow:x,onClose:k,...N})=>{const[R,P]=re.useState(a),[F,Z]=re.useState(1),[A,K]=re.useState(0),ae=re.useRef(null),J=re.useRef(null),[G,W]=re.useState(p);re.useEffect(()=>{P(a)},[a]),re.useEffect(()=>{W(p)},[p]);const V=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{P(!0),x&&x()}})}),R&&y("div",{className:"modal-background",onClick:()=>{P(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${R?"is-open":""} ${s||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:V},children:m.slice((F-1)*p,F*p).map((le,ce)=>y("div",{ref:ae,className:`listItem ${v?" line-separation":""}`,children:le},An()))}),y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&y(wv,{onChangePage:le=>{Z(le)},minItemsPerPage:G,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},oU="",sO=({className:s,title:l,show:u,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:m,position:v="right",footerbutton:x,...k})=>{const[N,R]=re.useState(u);return re.useEffect(()=>{R(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...k,children:[!N&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...r,onClick:()=>{R(!0)}})}),N&&y("div",{className:"modal-background",onClick:()=>{R(!1)}}),L("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${N?"is-open":""}`,` sidebar-container--${v}`,`${s?" "+s:""}`].join(""),children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",children:[y("div",{className:"sidebar-container__button mr-3",children:y(Pe,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),y("p",{className:"title is-5 has-text-link-dark",children:l})]}),y("div",{className:"sidebar-container__content",children:m})]}),x&&y("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[y("div",{className:"button-container__opt ml-5",children:p&&y(Pe,{...p})}),y("div",{className:"button-container__opt",children:f&&y(Pe,{...f})})]})})]})]})},lU="",uO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:v,addButton:x,removeButton:k,linkButton:N,iconButton:R,switcherLabel:P,switcher:F,labelRight:Z,...A})=>y("div",{className:"elv-component elv-subtitle",...A,children:L("div",{className:`subtitle-component ${l&&"subtitle-component--border-bot-gray"} ${s||""}`,children:[L("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&y("div",{className:"left-backButton",children:y(Pe,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&y(Ke,{...f}),m&&y("span",{className:"left-texts__principal__rectangle"}),a&&y("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&y("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[x||k?L("div",{className:"right-editButtons is-flex",children:[x&&y("span",{className:"right-editButtons__addButton",children:y(Pe,{...x})}),k&&y("span",{className:"right-editButtons__removeButton",children:y(Pe,{...k})})]}):y(Qt,{}),N&&y("span",{className:"right-linkButton",children:y(Pe,{...N})}),R&&y("span",{children:y(Pe,{...R})}),F&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[P&&y("p",{className:"right-switcher__label",children:P}),y(bx,{...F})]}),Z&&y("p",{className:"right-label",children:Z})]})]})}),sU="",cO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:v,buttonWidth:x,backButton:k,searchWidth:N,align:R,...P})=>y("div",{className:"elv-component elv-title",...P,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&y("div",{className:"title-component-container__backButton is-flex",children:y(Pe,{...k})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&y("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&y("p",{className:"title-component__title",children:u}),L("div",{className:`title-component__content is-flex title-component__content--${R} is-flex-direction-column ${k&&"title-component__content--backButton"}`,children:[a&&y("p",{className:"title-component__description",style:{width:r},children:a}),p&&y("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&y("span",{className:"title-component__actionButtons is-flex",children:f.map(F=>y("span",{children:y(Pe,{...F})},F.label))}),m&&y("span",{className:"title-component__search",style:{width:N},children:y(op,{...m})}),v&&y("span",{className:"title-component__button",style:{width:x},children:y(Pe,{...v})})]})]})]})}),uU="",dO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:v=!1,onShow:x,onClose:k,children:N,width:R="315px",showOpenButton:P=!1,...F})=>{const[Z,A]=re.useState(a),[K,ae]=re.useState(1),[J,G]=re.useState(0),W=re.useRef(null),V=re.useRef(null),[le,ce]=re.useState(p);re.useEffect(()=>{A(a)},[a]),re.useEffect(()=>{ce(p)},[p]);const $=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...F,children:[!Z&&P&&l&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{A(!0),x&&x()}})}),Z&&y("div",{className:"modal-background",onClick:()=>{A(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${s!=null?s:""}`,style:{width:R,right:Z?"0":`-${R}`},children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:V,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:$},children:N||m.slice((K-1)*le,K*le).map(oe=>y("div",{ref:W,className:`listItem ${v?" line-separation":""}`,children:oe},An()))}),!N&&(m==null?void 0:m.length)>le&&y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:y(wv,{onChangePage:oe=>{ae(oe)},minItemsPerPage:le,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};at.Alert=rk,at.AssistanceDiary=ak,at.Autocomplete=Q2,at.Autocomplete2=K2,at.Autocomplete3=G2,at.AverageAttended=ik,at.Badge=yo,at.Breadcrumb=lk,at.Button=Pe,at.CTA=_2,at.CardActivity=dk,at.CardCTA=sk,at.CardExpiration=uk,at.CardHorizontal=fk,at.CardUser=pk,at.CardVertical=ck,at.Cart=hk,at.Checkbox=$f,at.Collapse=T0,at.CollapseEdit=E0,at.CompleteDiary=S2,at.DatePickerComponent=X2,at.Dropdown=k2,at.EmptyState=D2,at.ErrorPage=E2,at.Filters=Z2,at.Footer=rO,at.Header=iO,at.HeaderTable=oO,at.Icon=Ke,at.IncomingCall=T2,at.Input=Bh,at.Input2=J2,at.InputForm=eO,at.ModalConfirm=R2,at.ModalConfirm2=M2,at.ModalConfirm3=P2,at.Pagination=wv,at.Pagination2=A2,at.PerformanceAssessment=W2,at.ProgressBar=k0,at.Radio=jg,at.Search=op,at.Select=Yf,at.ShiftDiary=V2,at.Sidebar=lO,at.SidebarChildren=dO,at.SidebarEmpty=sO,at.Stepper=B2,at.Subtitle=uO,at.Switch=bx,at.Tabs=q2,at.Textarea=tO,at.Title=cO,at.Tooltip=Ug,at.UploadFileItem=Cx,at.UploadFiles=nO,Object.defineProperties(at,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dgrcorrientes-modulos",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Un paquete de componentes minimizado",
5
5
  "main": "components.js",
6
6
  "module": "components.js",