dgrcorrientes-modulos 1.0.7 → 1.0.9

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
@@ -31084,7 +31084,7 @@ const yA = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZX
31084
31084
  ...he.buttonIcon,
31085
31085
  onClick: () => {
31086
31086
  var Se;
31087
- le(he.uniqueValue), (Se = he.buttonIcon) == null || Se.onClick;
31087
+ le(he.uniqueValue), (Se = he.buttonIcon) != null && Se.onClick && he.buttonIcon.onClick();
31088
31088
  }
31089
31089
  })
31090
31090
  }), he.badge && /* @__PURE__ */ b(on, {
@@ -308,4 +308,4 @@ https://sweetalert2.github.io/#ajax-request`),Fd(w),typeof w.title=="string"&&(w
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 I2(u){var l=u.counterClockwise,s=u.dashRatio,a=u.pathRadius,r=Math.PI*2*a,p=(1-s)*r;return{strokeDasharray:r+"px "+r+"px",strokeDashoffset:(l?-p:p)+"px"}}var j2=function(u){M2(l,u);function l(){return u!==null&&u.apply(this,arguments)||this}return l.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},l.prototype.getPathRadius=function(){return gx-this.props.strokeWidth/2-this.getBackgroundPadding()},l.prototype.getPathRatio=function(){var s=this.props,a=s.value,r=s.minValue,p=s.maxValue,f=Math.min(Math.max(a,r),p);return(f-r)/(p-r)},l.prototype.render=function(){var s=this.props,a=s.circleRatio,r=s.className,p=s.classes,f=s.counterClockwise,g=s.styles,m=s.strokeWidth,k=s.text,_=this.getPathRadius(),N=this.getPathRatio();return de.createElement("svg",{className:p.root+" "+r,style:g.root,viewBox:"0 0 "+A2+" "+L2,"data-test-id":"CircularProgressbar"},this.props.background?de.createElement("circle",{className:p.background,style:g.background,cx:Ny,cy:Oy,r:gx}):null,de.createElement(yx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:_,strokeWidth:m,style:g.trail}),de.createElement(yx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:_,strokeWidth:m,style:g.path}),k?de.createElement("text",{className:p.text,style:g.text,x:Ny,y:Oy},k):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}(de.Component);function z2(u){u.children;var l=P2(u,["children"]);return de.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},de.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},de.createElement(j2,Ty({},l)),u.children?de.createElement("div",{"data-test-id":"CircularProgressbarWithChildren__children",style:{position:"absolute",width:"100%",height:"100%",marginTop:"-100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},u.children):null))}function F2(u){var l=u.rotation,s=u.strokeLinecap,a=u.textColor,r=u.textSize,p=u.pathColor,f=u.pathTransition,g=u.pathTransitionDuration,m=u.trailColor,k=u.backgroundColor,_=l==null?void 0:"rotate("+l+"turn)",N=l==null?void 0:"center center";return{root:{},path:yv({stroke:p,strokeLinecap:s,transform:_,transformOrigin:N,transition:f,transitionDuration:g==null?void 0:g+"s"}),trail:yv({stroke:m,strokeLinecap:s,transform:_,transformOrigin:N}),text:yv({fill:a,fontSize:r}),background:yv({fill:k})}}function yv(u){return Object.keys(u).forEach(function(l){u[l]==null&&delete u[l]}),u}const H2=({labelPerformance:u,dataTime:l,percentage:s,description:a,star:r,qualification:p,rating:f,className:g})=>{const m=Math.round(f*2)/2;return b("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",`${g?" "+g:""}`].join(""),children:[L("div",{className:"is-flex is-flex-direction-column is-gap-3",children:[b("div",{className:"has-text-weight-bold has-text-grey-dark",children:u}),b("div",{children:l==null?void 0:l.map(k=>b("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:k.date}))})]}),b("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L(z2,{value:s,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:F2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[b("div",{className:"is-size-4",children:b("strong",{children:`${s}%`})}),b("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[b("div",{className:"is-flex",children:r==null?void 0:r.map((k,_)=>{const N=m-_===.5;return L("div",{children:[!N&&b(it,{icon:k.star,className:"iconStar mr-3 is-size-5",color:_<m?"#16A34A":"#CED4DA"}),N&&b(it,{icon:k.starStroke,className:"iconStar mr-3 is-size-5",color:"#16A34A"})]},_)})}),L("p",{className:"has-text-grey is-size-14px mt-3",children:[" ",f," ",p]})]})]})})},PL="",$2=({title:u,option:l,labelQuantity:s,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:g})=>b("div",{className:"elv-component elv-shiftdiary",children:L("div",{className:["shiftdiary box is-flex is-flex-direction-column p-5 is-gap-5",`${g?" "+g:""}`].join(""),children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center",children:[b("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:u}),b($e,{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:[b("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(m=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"has-text-grey-dark",children:m.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:[b("div",{className:"has-text-weight-semibold has-text-grey-dark",children:m.name}),b("div",{className:"has-text-grey-dark",children:m.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:m.colorContains},children:[b(it,{icon:"fa-solid fa-circle",color:m.colorIcon,className:"mr-2"}),b("p",{className:"has-text-light is-size-7",children:m.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:[b(it,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),b("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:s})]}),b("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:[b(it,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),b("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),b("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),AL="",Y2=({items:u,activeLabel:l,handlePosition:s,className:a,...r})=>{var p=0;const f=u.find(R=>R.label===l),[g,m]=de.useState(f),[k,_]=de.useState(f);if(g)var p=u.indexOf(g);de.useEffect(()=>{var R=u.find(P=>P.label===l);m(R),g&&(p=u.indexOf(g)),_(R)},[l,u]);const N=R=>{_(R),s&&s(R),R.onClick&&R.onClick()};return b("div",{className:"elv-component elv-steps",...r,children:b("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:u.map((R,P)=>L("li",{className:`steps-segment ${u[P+1]!==void 0&&u[P+1]==g?"is-pre-active":""} ${R==g?"is-active":""}`,children:[b("span",{className:"steps-marker",onClick:()=>{P<=p?N(R):R.onClick&&R.onClick()},children:P<p?b("span",{className:"icon",children:b("i",{className:`${R.icon}`})}):b("span",{children:P+1})}),b("div",{className:`steps-content ${P<=p?"steps-content--completed":"steps-content--incompleted"} ${R===k&&"steps-content--position"}`,children:b("p",{className:"steps-content__item-label",children:R.label})})]},P))})})},LL="",W2=({items:u,type:l,activeTab:s,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...g})=>b("div",{className:"elv-component elv-tabs",...g,children:b("ul",{className:`tabs tabs--${l} ${f||""}`,children:u.map((m,k)=>L("div",{className:"tabs__item",children:[l==="boxed"&&m.icon&&m.subtitle?L("li",{onClick:()=>{a&&a(m),m.sub_labels&&r&&r(m.sub_labels[0]),m.onClick&&m.onClick()},className:`item is-clickable ${k!==0?"ml-3":""} ${m.label==(s==null?void 0:s.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[b(it,{...m.icon,className:"boxed-container__icon mb-1 mr-1"}),b("p",{className:"boxed-container__label",children:Vt(m.label,30)})]}),b("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Vt(m.subtitle,20)})]}):b("li",{onClick:()=>{a&&a(m),m.sub_labels&&r&&r(m.sub_labels[0]),m.onClick&&m.onClick()},className:`item is-clickable ${k===0?"item--is-first":""} ${m.label==(s==null?void 0:s.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:Vt(m.label,30)}),m.sub_labels!==void 0&&l==="vertical"&&m.sub_labels.map((_,N)=>b("li",{onClick:()=>{a&&a(m),r&&r(_),_.onClick&&_.onClick()},className:`sub-item ${k===0?"sub-item__--first":""} ${m.label==(s==null?void 0:s.label)&&_.label==(p==null?void 0:p.label)?"sub-item--active":""} ${_.disabled?"sub-item--inactive":""}`,children:Vt(_.label,25)},ar()))]},m.label+ar()))})}),UL="",V2=({size:u="md",fill:l="outline",disabled:s=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:g,maxCharacters:m=30,onChangeSelect:k,className:_,...N})=>{const[R,P]=de.useState(f||""),[$,K]=de.useState(""),[A,re]=de.useState(f||""),[se,J]=de.useState(!1),G=(le,Q)=>{le==""?P(""):P(Q),K(le),re(Q),k&&k(le),J(!1)};function B(le){const Q=le.target.value;P(Q),J(!0)}const te=p.filter(le=>le.label.toLowerCase().includes(R?R.toLowerCase():"")),ie=de.useRef(null);return de.useEffect(()=>{function le(Q){ie.current&&!ie.current.contains(Q.target)&&J(!1)}return document.addEventListener("click",le),()=>{document.removeEventListener("click",le)}},[ie]),de.useEffect(()=>{const le=p.find(Q=>Q.value===f);le?G(le.value,le.label):G("","")},[f,p]),b("div",{className:"elv-component elv-autocomplete",style:{minWidth:g},...N,children:L("div",{className:`autocomplete-container ${_||""}`,ref:ie,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${u}`,`${r?"autocomplete--error":""} ${s?"autocomplete--disabled":""}`,,].join(" "),children:[b("input",{className:"input-autocomplete is-clickable ",type:"text",value:R||A,onChange:B,placeholder:a||"",onFocus:()=>J(!0),readOnly:!!$}),$&&A!=""?b("div",{onClick:()=>{G("","")},className:"",children:b(it,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),b("div",{className:`autocomplete-container__dropdown autocomplete--${u} ${se?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&b("li",{className:`list__item list__item--default ${$==a?"list__item--active":""}`,onClick:()=>{G("",a)},children:Vt(a,m||30)}),te==null?void 0:te.map((le,Q)=>L("li",{className:"list__item",onClick:()=>{G(le.value,le.label)},children:[le.icon&&b("i",{className:`item__icon ${le.icon}`}),Vt(le.label,m||30)]},Q))]})})]})})},IL="",B2=({type:u,dateFormat:l,startDate:s,endDate:a,showIcon:r,withPortal:p,isRange:f,onStartDateChange:g,onEndDateChange:m,className:k,..._})=>{const[N,R]=de.useState(s||new Date),[P,$]=de.useState(a||new Date);return de.useEffect(()=>{g&&g(N)},[N]),de.useEffect(()=>{m&&m(P)},[P]),f?L("div",{className:"elv-component elv-datepicker",..._,children:[b(gv,{selected:N,onChange:K=>R(K),withPortal:p,showMonthYearPicker:u=="months",showYearPicker:u=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:N,endDate:P,className:k}),b(gv,{selected:P,onChange:K=>$(K),withPortal:p,showMonthYearPicker:u=="months",showYearPicker:u=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:N,endDate:P,minDate:N,className:k})]}):b("div",{className:"elv-component elv-datepicker",..._,children:b(gv,{selected:N,onChange:K=>R(K),withPortal:p,showMonthYearPicker:u=="months",showYearPicker:u=="year",dateFormat:l,showIcon:r,className:k})})},jL="",q2=({size:u="sm",fill:l="outline",disabled:s=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:g,onChangeFilters:m,className:k,..._})=>{const[N,R]=de.useState(!1),[P,$]=de.useState(!1),[K,A]=de.useState(!1),[re,se]=de.useState([]),[J,G]=de.useState([]),B=(fe,pe,me)=>{var Ee,ke,Ne;const De=re.findIndex(ot=>ot.name===pe),ve=[...re];if(fe==="radio")De>=0?ve[De]={name:pe,value:[me]}:ve.push({name:pe,value:[me]});else{const ot=(ke=(Ee=re[De])==null?void 0:Ee.value)==null?void 0:ke.indexOf(me);De>=0&&ot>=0?ve[De].value.splice(ot,1):De>=0?ve[De].value.push(me):ve.push({name:pe,value:[me]})}((Ne=ve[De])==null?void 0:Ne.value.length)===0&&ve.splice(De,1),ve.length>0&&A(!0),se(ve)},te=()=>{m&&(m(re),G(re),A(!1),re.length===0?$(!1):$(!0))},ie=()=>{se([]),document.querySelectorAll(".section__options").forEach(pe=>{pe.querySelectorAll("label").forEach(De=>{De.querySelectorAll("input").forEach(Ee=>{Ee.checked=!1})})}),$(!1),A(!1),m&&(m([]),G([]))};function le(){return fe=>{R(!N)}}const Q=de.useRef(null);return de.useEffect(()=>{function fe(pe){Q.current&&!Q.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",fe),()=>{document.removeEventListener("click",fe)}},[Q]),b("div",{className:"elv-component elv-filters",..._,children:L("div",{className:`filter-container ${k||""}`,ref:Q,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${u}`,`${r?"filter--error":""} ${s?"filter--disabled":""}`,,].join(" "),onClick:le(),children:[b(it,{icon:"fa-solid fa-filter",className:"filter"}),b("span",{className:"placeholder",children:Vt(a,25)}),J.length>0&&b(yo,{color:"primary",text:J.length.toString()}),b(it,{icon:"fa-solid fa-chevron-down",className:"chebron"})]}),L("div",{className:`filter-container__dropdown filter--${u} ${N?"filter-container__dropdown--active":""}`,children:[p==null?void 0:p.map(fe=>{var pe;return L("div",{className:"section",children:[b("p",{className:"section__title is-5",children:fe.label}),b("div",{className:`section__options ${fe.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=fe.options)==null?void 0:pe.map(me=>b("div",{children:L("label",{htmlFor:me.name,className:`filter-label ${fe.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[me.iconItem&&b(it,{...me.iconItem}),b("p",{className:"",children:me.name})]}),fe.type=="radio"?b(Ug,{label:"",name:fe.name,size:"md",value:me.name,onCheck:()=>B(fe.type,fe.name,me.name)}):b($f,{label:"",size:"md",value:me.name,name:fe.name,onCheck:()=>B(fe.type,fe.name,me.name)})]})},me.name))})]},fe.name)}),K||P?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[K&&b("span",{className:"button-aplicate is-flex is-justify-content-center",children:b($e,{label:f.label!==void 0?Vt(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:te,...f})}),P&&b("span",{className:"button-cleaner is-flex is-justify-content-center",children:b($e,{...g,label:g.label!==void 0?Vt(g.label,25):"",trailingIcon:g.trailingIcon,onClick:ie})})]}):b(rn,{})]})]})})},zL="",Q2=({input:u,label:l,helperText:s,defaultValue:a,maxLength:r,error:p,className:f,...g})=>b("div",{className:["elv-component"," elv-form-control"].join(""),...g,children:L("div",{className:`e-input-form ${f||""}`,children:[b("div",{children:l}),b(Vh,{...u}),L("div",{children:[b("span",{className:["helper",`${p?"text--error":""}`,`${a.length>r?"text--error":""}`,`${f||""}`].join(" "),children:s}),a.length&&r?L("span",{className:["length",,].join(" "),children:[a.length,"/",r]}):null]})]})}),FL="",wv=({size:u,backgroundColor:l,placeholder:s,defaultValue:a,buttonSearch:r,name:p,id:f,isDisabled:g,onChangeInput:m,onSearch:k,className:_,...N})=>{const R=de.useRef(null),P=K=>{K.key==="Enter"&&$()},$=()=>{var A;const K=(A=R.current)==null?void 0:A.value;k&&k(K||"")};return b("div",{className:"elv-component elv-search",...N,children:L("div",{className:`elv-component search-container search-container--${u} ${_||""}`,style:{backgroundColor:l},children:[b("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:p,id:f,placeholder:s,onChange:K=>m&&m(K.target.value),defaultValue:a,ref:R,disabled:g,onKeyDown:P}),b("span",{className:"search-container__button-search",children:b($e,{...r,size:u,onClick:()=>{$()}})})]})})},HL="",wx=({size:u="md",disabled:l=!1,defaultChecked:s,error:a,onCheck:r,className:p,...f})=>{const[g,m]=de.useState(),k=()=>{m(!g),r&&r(!g)};return b("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${u}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[b("input",{type:"checkbox",disabled:l,defaultChecked:s,onChange:k}),b("span",{className:"slider round"})]})})},$L="",K2=({value:u,error:l,onChangeInput:s,placeholder:a,defaultValue:r,disabled:p,required:f,rows:g=5,cols:m=50,className:k,..._})=>b("div",{className:"elv-component elv-textArea",children:b("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${k?" "+k:""}`].join(""),onChange:N=>s(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:g,cols:m,..._})}),YL="",WL="",bx=({className:u,progressBar:l,showBar:s,file:a,file_name:r,file_size:p,onPreview:f,onDelete:g,...m})=>b("div",{className:"elv-component elv-uploadfile",...m,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${u?" "+u:""}`].join(""),children:[b("div",{className:"mr-5",children:r&&b(it,{icon:i_(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?b("p",{className:"file_name is-size-7",children:r}):a?b("p",{className:"file_name is-size-7",children:a.name}):b(rn,{}),b("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),b($e,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?b("div",{className:"is-size-7",children:_0(p)}):a?b("div",{className:"is-size-7",children:_0(a.size)}):b(rn,{})]}),s&&b("div",{className:"uploadfile__progress pt-2",children:b(k0,{...l})})]}),b("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&g&&g(a)},children:b(it,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),G2=({className:u,labelSelection:l,labelData:s,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:g,onProgressFile:m,onPreviewFile:k,onDeleteFile:_,onErrorSize:N,onErrorExtensions:R,...P})=>{const[$,K]=de.useState(!1),[A,re]=de.useState(()=>!g||(g==null?void 0:g.length)===0?f||[]:(f||[]).filter(le=>{var fe;const Q=(fe=le.name.split(".").pop())==null?void 0:fe.toLowerCase();return g==null?void 0:g.includes(Q||"")})),se=le=>{le.preventDefault(),K(!0)},J=()=>{K(!1)},G=le=>{le.preventDefault(),K(!1);const Q=le.dataTransfer.files;Q&&te(Q)},B=le=>{const Q=le.target.files;Q&&te(Q)},te=le=>{var Q;if(le.length<=r&&A.length+le.length<=r)for(let fe=0;fe<le.length;fe++){const pe=le[fe],me=pe.name.split("."),De=me.length>1?(Q=me.pop())==null?void 0:Q.toLowerCase():"";if((g==null?void 0:g.length)===0||(g==null?void 0:g.includes(De||""))){if(pe.size<=a*1024*1024)m&&m(pe);else{N&&N(pe);return}re(ve=>[...ve,pe])}else{R&&R(pe);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},ie=le=>{const Q=A.filter(fe=>fe!==le);re(Q)};return b("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",`${u?" "+u:""}`].join(""),children:[b("div",{className:`uploadfiles__files file ${$?"dragging":""}`,onDragEnter:se,onDragLeave:J,onDragOver:le=>le.preventDefault(),onDrop:G,children:L("label",{htmlFor:"file-input",className:"file-label",children:[b("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:B,multiple:!0}),L("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[b("span",{className:"file-icon",children:b(it,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),b("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),b("div",{className:"uploadfiles__data",children:s}),A.length>0?b("div",{children:A.map((le,Q)=>b("div",{className:"uploadfiles__download mb-3",children:b(bx,{showBar:!!(p&&p[Q]&&p[Q]!==100),file:le,file_name:le.name,file_size:le.size,onPreview:fe=>{k&&k(fe)},onDelete:fe=>{_&&_(fe),ie(fe)},progressBar:{value:p&&p[Q]?p[Q]:0}})},Q))}):null]})})},VL="",X2=({columnItems:u,finalItem:l,logo_1:s,logo_2:a,endButtonLinks:r,className:p,...f})=>{var g=new Date,m=g.getFullYear();return b("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:[u&&b(rn,{children:u.map(k=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[b("p",{className:"column-item__title",children:k.title}),k.buttonLinks.map(_=>b("span",{className:"column-item__button",children:b($e,{..._})},ar())),b("span",{className:"column-item__final",children:b($e,{...k.finalLink})})]},ar()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[b("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(k=>b("span",{className:"final-item__button",children:b($e,{...k})},ar())),b("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[b("img",{src:s,alt:"",width:"155px",height:"37px"}),b("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[b("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",m," - Rentas Corrientes"]})}),r&&b("div",{className:"end-button-links is-flex",children:r.map(k=>b("div",{className:"end-button-links__item is-flex",children:b("span",{className:"end-button-links__button",children:b($e,{...k})},k.label)},ar()))})]})]})]})})},BL="",Z2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",J2=({className:u,logged:l,logo:s,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:g,notUserDropComponent:m,...k})=>{var fe,pe,me,De;const[_,N]=de.useState(!1),[R,P]=de.useState(!1),[$,K]=de.useState(window.innerWidth<1217),[A,re]=de.useState(window.innerWidth<654),[se,J]=de.useState(null),[G,B]=de.useState((fe=p==null?void 0:p.reduce((ve,Ee)=>({...ve,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?fe:{}),te=de.useRef(null),ie=p==null?void 0:p.map(()=>de.useRef(null)),le=ve=>{J(Ee=>Ee===ve?null:ve),B(Ee=>({...Object.keys(Ee).reduce((ke,Ne)=>(ke[Ne]={active:Ne===ve,name:Ee[Ne].name},ke),{})}))};de.useEffect(()=>{function ve(Ee){var ke;Object.values(G).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((ke=te.current)!=null&&ke.contains(Ee.target))&&(B(Ne=>Object.keys(Ne).reduce((ot,Qe)=>({...ot,[Qe]:{active:!1,name:Ne[Qe].name}}),{})),J(null))}return document.addEventListener("click",ve),()=>{document.removeEventListener("click",ve)}},[te,G]);const Q=de.useRef(null);return de.useEffect(()=>{function ve(Ee){Q.current&&!Q.current.contains(Ee.target)&&P(!1)}return document.addEventListener("click",ve),()=>{document.removeEventListener("click",ve)}},[Q]),de.useEffect(()=>{function ve(){K(window.innerWidth<1217),re(window.innerWidth<654)}return window.addEventListener("resize",ve),()=>{window.removeEventListener("resize",ve)}},[]),b("div",{className:"elv-component elv-header",...k,children:b("div",{className:`navbar-container ${u||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[b("a",{role:"button",className:`navbar-burger ${_?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!_),children:b("img",{src:Z2,alt:"Burger SVG"})}),s&&b(rn,{children:A?b("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:b("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:s.height,width:s.width})}):b("a",{className:"navbar-item pt-0",onClick:()=>{s!=null&&s.onClick&&s.onClick()},children:b("img",{src:s.src,alt:"Logo Header",height:s.height,width:s.width})})})]}),b("div",{id:"rentas-ctes-header",className:`navbar-menu ${_?"is-active":""}`,children:b("div",{className:"navbar-start",children:r&&r.map(ve=>b("a",{className:"navbar-item item-text",onClick:ve.onClick,children:ve.label},ar()))})}),L("div",{className:"navbar-end is-flex",children:[b("div",{className:"icon-functions is-flex",ref:te,children:p&&p.map((ve,Ee)=>L("div",{className:["item-icon "].join(""),ref:ie&&ie[Ee],children:[b("span",{children:b($e,{...ve.buttonIcon,onClick:()=>{var ke;le(ve.uniqueValue),(ke=ve.buttonIcon)==null||ke.onClick}})}),ve.badge&&b(rn,{children:b("span",{className:"item-icon__badge-notif",children:b(yo,{...ve.badge})})}),ve.iconDropComponent&&b("div",{className:`drop-component drop-component__icon ${G[ve.uniqueValue]&&p[Ee].uniqueValue===se?"is-active":""}`,children:ve.iconDropComponent})]},ar()))}),l?b(rn,{children:$?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[b("div",{className:"user-mobile__icon",children:b(it,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),g.userDropComponent&&b("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:Q,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, ",g.name," ",g.lastName]}),b("p",{className:"description",children:g.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(pe=g.avatar)!=null&&pe.icon?L("div",{className:"user-icon",children:[b(it,{icon:g.avatar.icon.icon}),g.avatar.stateColor&&b("span",{className:"user-icon__state",children:b(it,{icon:"fa fa-circle",color:g.avatar.stateColor,size:"10px"})})]}):b("img",{src:(De=(me=g.avatar)==null?void 0:me.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),b(it,{icon:"fa-solid fa-chevron-down"})]})]}),g.userDropComponent&&b("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g.userDropComponent})]})}):b(rn,{children:$?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[b("div",{className:"user-mobile__icon",children:b(it,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),m&&b("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m})]}):b("div",{className:"navbar-item",children:b($e,{...f})})})]})]})})})},qL="",eO=({className:u,search:l,pagination:s,selectList:a,button:r,menuButton:p,menuDropComponent:f,...g})=>{const[m,k]=de.useState(!1),_=de.useRef(null);return de.useEffect(()=>{function N(R){_.current&&!_.current.contains(R.target)&&k(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[_]),b("div",{className:`elv-component elv-header-table ${u||""}`,...g,children:L("div",{className:"header-table is-flex",children:[l&&b("span",{children:b(wv,{...l})}),a&&a.map(N=>b("span",{children:b(Wh,{...N})},ar())),s&&b(Dy,{...s}),r&&b($e,{...r}),p&&L("div",{ref:_,className:"menuButton",children:[b($e,{...p,onClick:()=>{k(!m),p.onClick&&p.onClick()}}),f&&m&&b("div",{className:"menuButton__dropComponent",children:f})]})]})})},QL="",tO=({className:u,buttonShow:l,title:s,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:g,listLineSeparation:m=!1,onShow:k,onClose:_,...N})=>{const[R,P]=de.useState(a),[$,K]=de.useState(1),[A,re]=de.useState(0),se=de.useRef(null),J=de.useRef(null),[G,B]=de.useState(p);de.useEffect(()=>{P(a)},[a]),de.useEffect(()=>{B(p)},[p]);const te=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&b("div",{className:"is-flex is-justify-content-end",children:b($e,{...l,onClick:()=>{P(!0),k&&k()}})}),R&&b("div",{className:"modal-background",onClick:()=>{P(!1),_&&_()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${R?"is-open":""} ${u||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[b($e,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),_&&_()}}),b("p",{className:"title is-5",children:s})]}),r&&b("div",{className:"sidebar-container__search",children:b(wv,{...r})}),b("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:te},children:g.slice(($-1)*p,$*p).map((ie,le)=>b("div",{ref:se,className:`listItem ${m?" line-separation":""}`,children:ie},ar()))}),b("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(g==null?void 0:g.length)>p&&b(Dy,{onChangePage:ie=>{K(ie)},minItemsPerPage:G,totalItems:g.length,showTotals:!0,isColumn:!0})})]})]})},KL="",nO=({className:u,title:l,show:s,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:g,position:m="right",footerbutton:k,..._})=>{const[N,R]=de.useState(s);return de.useEffect(()=>{R(s)},[s]),L("div",{className:"elv-component elv-sidebarEmpty",..._,children:[!N&&b("div",{className:"is-flex is-justify-content-end",children:b($e,{...r,onClick:()=>{R(!0)}})}),N&&b("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--${m}`,`${u?" "+u:""}`].join(""),children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",children:[b("div",{className:"sidebar-container__button mr-3",children:b($e,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),b("p",{className:"title is-5 has-text-link-dark",children:l})]}),b("div",{className:"sidebar-container__content",children:g})]}),k&&b("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[b("div",{className:"button-container__opt ml-5",children:p&&b($e,{...p})}),b("div",{className:"button-container__opt",children:f&&b($e,{...f})})]})})]})]})},GL="",rO=({className:u,border:l,size:s,label:a,description:r,backButton:p,leftIcon:f,rectangle:g,actionButtons:m,addButton:k,removeButton:_,linkButton:N,iconButton:R,switcherLabel:P,switcher:$,labelRight:K,...A})=>b("div",{className:"elv-component elv-subtitle",...A,children:L("div",{className:`subtitle-component ${l&&"subtitle-component--border-bot-gray"} ${u||""}`,children:[L("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&b("div",{className:"left-backButton",children:b($e,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&b(it,{...f}),g&&b("span",{className:"left-texts__principal__rectangle"}),a&&b("p",{className:`left-texts__principal__label left-texts__principal__label--${s}`,children:a})]}),r&&b("p",{className:`left-texts__description left-texts__description--${s}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[k||_?L("div",{className:"right-editButtons is-flex",children:[k&&b("span",{className:"right-editButtons__addButton",children:b($e,{...k})}),_&&b("span",{className:"right-editButtons__removeButton",children:b($e,{..._})})]}):b(rn,{}),N&&b("span",{className:"right-linkButton",children:b($e,{...N})}),R&&b("span",{children:b($e,{...R})}),$&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[P&&b("p",{className:"right-switcher__label",children:P}),b(wx,{...$})]}),K&&b("p",{className:"right-label",children:K})]})]})}),XL="",aO=({className:u,subtitle:l,title:s,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:g,button:m,buttonWidth:k,backButton:_,searchWidth:N,align:R,...P})=>b("div",{className:"elv-component elv-title",...P,children:L("div",{className:`title-component-container ${_&&"title-component-container--backButton"} ${u||""}`,children:[_&&b("div",{className:"title-component-container__backButton is-flex",children:b($e,{..._})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&b("p",{className:"title-component__subtitle",children:l.toUpperCase()}),s&&b("p",{className:"title-component__title",children:s}),L("div",{className:`title-component__content is-flex title-component__content--${R} is-flex-direction-column ${_&&"title-component__content--backButton"}`,children:[a&&b("p",{className:"title-component__description",style:{width:r},children:a}),p&&b("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&b("span",{className:"title-component__actionButtons is-flex",children:f.map($=>b("span",{children:b($e,{...$})},$.label))}),g&&b("span",{className:"title-component__search",style:{width:N},children:b(wv,{...g})}),m&&b("span",{className:"title-component__button",style:{width:k},children:b($e,{...m})})]})]})]})});st.Alert=n_,st.AssistanceDiary=r_,st.Autocomplete=V2,st.AverageAttended=a_,st.Badge=yo,st.Breadcrumb=o_,st.Button=$e,st.CTA=S2,st.CardActivity=c_,st.CardCTA=l_,st.CardExpiration=s_,st.CardHorizontal=d_,st.CardUser=f_,st.CardVertical=u_,st.Cart=p_,st.Checkbox=$f,st.Collapse=E0,st.CollapseEdit=D0,st.CompleteDiary=x2,st.DatePickerComponent=B2,st.Dropdown=k2,st.EmptyState=_2,st.ErrorPage=D2,st.Filters=q2,st.Footer=X2,st.Header=J2,st.HeaderTable=eO,st.Icon=it,st.IncomingCall=E2,st.Input=Vh,st.InputForm=Q2,st.ModalConfirm=R2,st.Pagination=Dy,st.PerformanceAssessment=H2,st.ProgressBar=k0,st.Radio=Ug,st.Search=wv,st.Select=Wh,st.ShiftDiary=$2,st.Sidebar=tO,st.SidebarEmpty=nO,st.Stepper=Y2,st.Subtitle=rO,st.Switch=wx,st.Tabs=W2,st.Textarea=K2,st.Title=aO,st.Tooltip=Lg,st.UploadFileItem=bx,st.UploadFiles=G2,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
311
+ `}function I2(u){var l=u.counterClockwise,s=u.dashRatio,a=u.pathRadius,r=Math.PI*2*a,p=(1-s)*r;return{strokeDasharray:r+"px "+r+"px",strokeDashoffset:(l?-p:p)+"px"}}var j2=function(u){M2(l,u);function l(){return u!==null&&u.apply(this,arguments)||this}return l.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},l.prototype.getPathRadius=function(){return gx-this.props.strokeWidth/2-this.getBackgroundPadding()},l.prototype.getPathRatio=function(){var s=this.props,a=s.value,r=s.minValue,p=s.maxValue,f=Math.min(Math.max(a,r),p);return(f-r)/(p-r)},l.prototype.render=function(){var s=this.props,a=s.circleRatio,r=s.className,p=s.classes,f=s.counterClockwise,g=s.styles,m=s.strokeWidth,k=s.text,_=this.getPathRadius(),N=this.getPathRatio();return de.createElement("svg",{className:p.root+" "+r,style:g.root,viewBox:"0 0 "+A2+" "+L2,"data-test-id":"CircularProgressbar"},this.props.background?de.createElement("circle",{className:p.background,style:g.background,cx:Ny,cy:Oy,r:gx}):null,de.createElement(yx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:_,strokeWidth:m,style:g.trail}),de.createElement(yx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:_,strokeWidth:m,style:g.path}),k?de.createElement("text",{className:p.text,style:g.text,x:Ny,y:Oy},k):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}(de.Component);function z2(u){u.children;var l=P2(u,["children"]);return de.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},de.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},de.createElement(j2,Ty({},l)),u.children?de.createElement("div",{"data-test-id":"CircularProgressbarWithChildren__children",style:{position:"absolute",width:"100%",height:"100%",marginTop:"-100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},u.children):null))}function F2(u){var l=u.rotation,s=u.strokeLinecap,a=u.textColor,r=u.textSize,p=u.pathColor,f=u.pathTransition,g=u.pathTransitionDuration,m=u.trailColor,k=u.backgroundColor,_=l==null?void 0:"rotate("+l+"turn)",N=l==null?void 0:"center center";return{root:{},path:yv({stroke:p,strokeLinecap:s,transform:_,transformOrigin:N,transition:f,transitionDuration:g==null?void 0:g+"s"}),trail:yv({stroke:m,strokeLinecap:s,transform:_,transformOrigin:N}),text:yv({fill:a,fontSize:r}),background:yv({fill:k})}}function yv(u){return Object.keys(u).forEach(function(l){u[l]==null&&delete u[l]}),u}const H2=({labelPerformance:u,dataTime:l,percentage:s,description:a,star:r,qualification:p,rating:f,className:g})=>{const m=Math.round(f*2)/2;return b("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",`${g?" "+g:""}`].join(""),children:[L("div",{className:"is-flex is-flex-direction-column is-gap-3",children:[b("div",{className:"has-text-weight-bold has-text-grey-dark",children:u}),b("div",{children:l==null?void 0:l.map(k=>b("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:k.date}))})]}),b("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L(z2,{value:s,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:F2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[b("div",{className:"is-size-4",children:b("strong",{children:`${s}%`})}),b("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[b("div",{className:"is-flex",children:r==null?void 0:r.map((k,_)=>{const N=m-_===.5;return L("div",{children:[!N&&b(it,{icon:k.star,className:"iconStar mr-3 is-size-5",color:_<m?"#16A34A":"#CED4DA"}),N&&b(it,{icon:k.starStroke,className:"iconStar mr-3 is-size-5",color:"#16A34A"})]},_)})}),L("p",{className:"has-text-grey is-size-14px mt-3",children:[" ",f," ",p]})]})]})})},PL="",$2=({title:u,option:l,labelQuantity:s,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:g})=>b("div",{className:"elv-component elv-shiftdiary",children:L("div",{className:["shiftdiary box is-flex is-flex-direction-column p-5 is-gap-5",`${g?" "+g:""}`].join(""),children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center",children:[b("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:u}),b($e,{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:[b("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(m=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"has-text-grey-dark",children:m.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:[b("div",{className:"has-text-weight-semibold has-text-grey-dark",children:m.name}),b("div",{className:"has-text-grey-dark",children:m.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:m.colorContains},children:[b(it,{icon:"fa-solid fa-circle",color:m.colorIcon,className:"mr-2"}),b("p",{className:"has-text-light is-size-7",children:m.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:[b(it,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),b("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:s})]}),b("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:[b(it,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),b("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),b("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),AL="",Y2=({items:u,activeLabel:l,handlePosition:s,className:a,...r})=>{var p=0;const f=u.find(R=>R.label===l),[g,m]=de.useState(f),[k,_]=de.useState(f);if(g)var p=u.indexOf(g);de.useEffect(()=>{var R=u.find(P=>P.label===l);m(R),g&&(p=u.indexOf(g)),_(R)},[l,u]);const N=R=>{_(R),s&&s(R),R.onClick&&R.onClick()};return b("div",{className:"elv-component elv-steps",...r,children:b("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:u.map((R,P)=>L("li",{className:`steps-segment ${u[P+1]!==void 0&&u[P+1]==g?"is-pre-active":""} ${R==g?"is-active":""}`,children:[b("span",{className:"steps-marker",onClick:()=>{P<=p?N(R):R.onClick&&R.onClick()},children:P<p?b("span",{className:"icon",children:b("i",{className:`${R.icon}`})}):b("span",{children:P+1})}),b("div",{className:`steps-content ${P<=p?"steps-content--completed":"steps-content--incompleted"} ${R===k&&"steps-content--position"}`,children:b("p",{className:"steps-content__item-label",children:R.label})})]},P))})})},LL="",W2=({items:u,type:l,activeTab:s,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...g})=>b("div",{className:"elv-component elv-tabs",...g,children:b("ul",{className:`tabs tabs--${l} ${f||""}`,children:u.map((m,k)=>L("div",{className:"tabs__item",children:[l==="boxed"&&m.icon&&m.subtitle?L("li",{onClick:()=>{a&&a(m),m.sub_labels&&r&&r(m.sub_labels[0]),m.onClick&&m.onClick()},className:`item is-clickable ${k!==0?"ml-3":""} ${m.label==(s==null?void 0:s.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[b(it,{...m.icon,className:"boxed-container__icon mb-1 mr-1"}),b("p",{className:"boxed-container__label",children:Vt(m.label,30)})]}),b("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Vt(m.subtitle,20)})]}):b("li",{onClick:()=>{a&&a(m),m.sub_labels&&r&&r(m.sub_labels[0]),m.onClick&&m.onClick()},className:`item is-clickable ${k===0?"item--is-first":""} ${m.label==(s==null?void 0:s.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:Vt(m.label,30)}),m.sub_labels!==void 0&&l==="vertical"&&m.sub_labels.map((_,N)=>b("li",{onClick:()=>{a&&a(m),r&&r(_),_.onClick&&_.onClick()},className:`sub-item ${k===0?"sub-item__--first":""} ${m.label==(s==null?void 0:s.label)&&_.label==(p==null?void 0:p.label)?"sub-item--active":""} ${_.disabled?"sub-item--inactive":""}`,children:Vt(_.label,25)},ar()))]},m.label+ar()))})}),UL="",V2=({size:u="md",fill:l="outline",disabled:s=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:g,maxCharacters:m=30,onChangeSelect:k,className:_,...N})=>{const[R,P]=de.useState(f||""),[$,K]=de.useState(""),[A,re]=de.useState(f||""),[se,J]=de.useState(!1),G=(le,Q)=>{le==""?P(""):P(Q),K(le),re(Q),k&&k(le),J(!1)};function B(le){const Q=le.target.value;P(Q),J(!0)}const te=p.filter(le=>le.label.toLowerCase().includes(R?R.toLowerCase():"")),ie=de.useRef(null);return de.useEffect(()=>{function le(Q){ie.current&&!ie.current.contains(Q.target)&&J(!1)}return document.addEventListener("click",le),()=>{document.removeEventListener("click",le)}},[ie]),de.useEffect(()=>{const le=p.find(Q=>Q.value===f);le?G(le.value,le.label):G("","")},[f,p]),b("div",{className:"elv-component elv-autocomplete",style:{minWidth:g},...N,children:L("div",{className:`autocomplete-container ${_||""}`,ref:ie,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${u}`,`${r?"autocomplete--error":""} ${s?"autocomplete--disabled":""}`,,].join(" "),children:[b("input",{className:"input-autocomplete is-clickable ",type:"text",value:R||A,onChange:B,placeholder:a||"",onFocus:()=>J(!0),readOnly:!!$}),$&&A!=""?b("div",{onClick:()=>{G("","")},className:"",children:b(it,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),b("div",{className:`autocomplete-container__dropdown autocomplete--${u} ${se?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&b("li",{className:`list__item list__item--default ${$==a?"list__item--active":""}`,onClick:()=>{G("",a)},children:Vt(a,m||30)}),te==null?void 0:te.map((le,Q)=>L("li",{className:"list__item",onClick:()=>{G(le.value,le.label)},children:[le.icon&&b("i",{className:`item__icon ${le.icon}`}),Vt(le.label,m||30)]},Q))]})})]})})},IL="",B2=({type:u,dateFormat:l,startDate:s,endDate:a,showIcon:r,withPortal:p,isRange:f,onStartDateChange:g,onEndDateChange:m,className:k,..._})=>{const[N,R]=de.useState(s||new Date),[P,$]=de.useState(a||new Date);return de.useEffect(()=>{g&&g(N)},[N]),de.useEffect(()=>{m&&m(P)},[P]),f?L("div",{className:"elv-component elv-datepicker",..._,children:[b(gv,{selected:N,onChange:K=>R(K),withPortal:p,showMonthYearPicker:u=="months",showYearPicker:u=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:N,endDate:P,className:k}),b(gv,{selected:P,onChange:K=>$(K),withPortal:p,showMonthYearPicker:u=="months",showYearPicker:u=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:N,endDate:P,minDate:N,className:k})]}):b("div",{className:"elv-component elv-datepicker",..._,children:b(gv,{selected:N,onChange:K=>R(K),withPortal:p,showMonthYearPicker:u=="months",showYearPicker:u=="year",dateFormat:l,showIcon:r,className:k})})},jL="",q2=({size:u="sm",fill:l="outline",disabled:s=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:g,onChangeFilters:m,className:k,..._})=>{const[N,R]=de.useState(!1),[P,$]=de.useState(!1),[K,A]=de.useState(!1),[re,se]=de.useState([]),[J,G]=de.useState([]),B=(fe,pe,me)=>{var Ee,ke,Ne;const De=re.findIndex(ot=>ot.name===pe),ve=[...re];if(fe==="radio")De>=0?ve[De]={name:pe,value:[me]}:ve.push({name:pe,value:[me]});else{const ot=(ke=(Ee=re[De])==null?void 0:Ee.value)==null?void 0:ke.indexOf(me);De>=0&&ot>=0?ve[De].value.splice(ot,1):De>=0?ve[De].value.push(me):ve.push({name:pe,value:[me]})}((Ne=ve[De])==null?void 0:Ne.value.length)===0&&ve.splice(De,1),ve.length>0&&A(!0),se(ve)},te=()=>{m&&(m(re),G(re),A(!1),re.length===0?$(!1):$(!0))},ie=()=>{se([]),document.querySelectorAll(".section__options").forEach(pe=>{pe.querySelectorAll("label").forEach(De=>{De.querySelectorAll("input").forEach(Ee=>{Ee.checked=!1})})}),$(!1),A(!1),m&&(m([]),G([]))};function le(){return fe=>{R(!N)}}const Q=de.useRef(null);return de.useEffect(()=>{function fe(pe){Q.current&&!Q.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",fe),()=>{document.removeEventListener("click",fe)}},[Q]),b("div",{className:"elv-component elv-filters",..._,children:L("div",{className:`filter-container ${k||""}`,ref:Q,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${u}`,`${r?"filter--error":""} ${s?"filter--disabled":""}`,,].join(" "),onClick:le(),children:[b(it,{icon:"fa-solid fa-filter",className:"filter"}),b("span",{className:"placeholder",children:Vt(a,25)}),J.length>0&&b(yo,{color:"primary",text:J.length.toString()}),b(it,{icon:"fa-solid fa-chevron-down",className:"chebron"})]}),L("div",{className:`filter-container__dropdown filter--${u} ${N?"filter-container__dropdown--active":""}`,children:[p==null?void 0:p.map(fe=>{var pe;return L("div",{className:"section",children:[b("p",{className:"section__title is-5",children:fe.label}),b("div",{className:`section__options ${fe.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=fe.options)==null?void 0:pe.map(me=>b("div",{children:L("label",{htmlFor:me.name,className:`filter-label ${fe.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[me.iconItem&&b(it,{...me.iconItem}),b("p",{className:"",children:me.name})]}),fe.type=="radio"?b(Ug,{label:"",name:fe.name,size:"md",value:me.name,onCheck:()=>B(fe.type,fe.name,me.name)}):b($f,{label:"",size:"md",value:me.name,name:fe.name,onCheck:()=>B(fe.type,fe.name,me.name)})]})},me.name))})]},fe.name)}),K||P?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[K&&b("span",{className:"button-aplicate is-flex is-justify-content-center",children:b($e,{label:f.label!==void 0?Vt(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:te,...f})}),P&&b("span",{className:"button-cleaner is-flex is-justify-content-center",children:b($e,{...g,label:g.label!==void 0?Vt(g.label,25):"",trailingIcon:g.trailingIcon,onClick:ie})})]}):b(rn,{})]})]})})},zL="",Q2=({input:u,label:l,helperText:s,defaultValue:a,maxLength:r,error:p,className:f,...g})=>b("div",{className:["elv-component"," elv-form-control"].join(""),...g,children:L("div",{className:`e-input-form ${f||""}`,children:[b("div",{children:l}),b(Vh,{...u}),L("div",{children:[b("span",{className:["helper",`${p?"text--error":""}`,`${a.length>r?"text--error":""}`,`${f||""}`].join(" "),children:s}),a.length&&r?L("span",{className:["length",,].join(" "),children:[a.length,"/",r]}):null]})]})}),FL="",wv=({size:u,backgroundColor:l,placeholder:s,defaultValue:a,buttonSearch:r,name:p,id:f,isDisabled:g,onChangeInput:m,onSearch:k,className:_,...N})=>{const R=de.useRef(null),P=K=>{K.key==="Enter"&&$()},$=()=>{var A;const K=(A=R.current)==null?void 0:A.value;k&&k(K||"")};return b("div",{className:"elv-component elv-search",...N,children:L("div",{className:`elv-component search-container search-container--${u} ${_||""}`,style:{backgroundColor:l},children:[b("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:p,id:f,placeholder:s,onChange:K=>m&&m(K.target.value),defaultValue:a,ref:R,disabled:g,onKeyDown:P}),b("span",{className:"search-container__button-search",children:b($e,{...r,size:u,onClick:()=>{$()}})})]})})},HL="",wx=({size:u="md",disabled:l=!1,defaultChecked:s,error:a,onCheck:r,className:p,...f})=>{const[g,m]=de.useState(),k=()=>{m(!g),r&&r(!g)};return b("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${u}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[b("input",{type:"checkbox",disabled:l,defaultChecked:s,onChange:k}),b("span",{className:"slider round"})]})})},$L="",K2=({value:u,error:l,onChangeInput:s,placeholder:a,defaultValue:r,disabled:p,required:f,rows:g=5,cols:m=50,className:k,..._})=>b("div",{className:"elv-component elv-textArea",children:b("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${k?" "+k:""}`].join(""),onChange:N=>s(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:g,cols:m,..._})}),YL="",WL="",bx=({className:u,progressBar:l,showBar:s,file:a,file_name:r,file_size:p,onPreview:f,onDelete:g,...m})=>b("div",{className:"elv-component elv-uploadfile",...m,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${u?" "+u:""}`].join(""),children:[b("div",{className:"mr-5",children:r&&b(it,{icon:i_(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?b("p",{className:"file_name is-size-7",children:r}):a?b("p",{className:"file_name is-size-7",children:a.name}):b(rn,{}),b("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),b($e,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?b("div",{className:"is-size-7",children:_0(p)}):a?b("div",{className:"is-size-7",children:_0(a.size)}):b(rn,{})]}),s&&b("div",{className:"uploadfile__progress pt-2",children:b(k0,{...l})})]}),b("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&g&&g(a)},children:b(it,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),G2=({className:u,labelSelection:l,labelData:s,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:g,onProgressFile:m,onPreviewFile:k,onDeleteFile:_,onErrorSize:N,onErrorExtensions:R,...P})=>{const[$,K]=de.useState(!1),[A,re]=de.useState(()=>!g||(g==null?void 0:g.length)===0?f||[]:(f||[]).filter(le=>{var fe;const Q=(fe=le.name.split(".").pop())==null?void 0:fe.toLowerCase();return g==null?void 0:g.includes(Q||"")})),se=le=>{le.preventDefault(),K(!0)},J=()=>{K(!1)},G=le=>{le.preventDefault(),K(!1);const Q=le.dataTransfer.files;Q&&te(Q)},B=le=>{const Q=le.target.files;Q&&te(Q)},te=le=>{var Q;if(le.length<=r&&A.length+le.length<=r)for(let fe=0;fe<le.length;fe++){const pe=le[fe],me=pe.name.split("."),De=me.length>1?(Q=me.pop())==null?void 0:Q.toLowerCase():"";if((g==null?void 0:g.length)===0||(g==null?void 0:g.includes(De||""))){if(pe.size<=a*1024*1024)m&&m(pe);else{N&&N(pe);return}re(ve=>[...ve,pe])}else{R&&R(pe);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},ie=le=>{const Q=A.filter(fe=>fe!==le);re(Q)};return b("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",`${u?" "+u:""}`].join(""),children:[b("div",{className:`uploadfiles__files file ${$?"dragging":""}`,onDragEnter:se,onDragLeave:J,onDragOver:le=>le.preventDefault(),onDrop:G,children:L("label",{htmlFor:"file-input",className:"file-label",children:[b("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:B,multiple:!0}),L("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[b("span",{className:"file-icon",children:b(it,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),b("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),b("div",{className:"uploadfiles__data",children:s}),A.length>0?b("div",{children:A.map((le,Q)=>b("div",{className:"uploadfiles__download mb-3",children:b(bx,{showBar:!!(p&&p[Q]&&p[Q]!==100),file:le,file_name:le.name,file_size:le.size,onPreview:fe=>{k&&k(fe)},onDelete:fe=>{_&&_(fe),ie(fe)},progressBar:{value:p&&p[Q]?p[Q]:0}})},Q))}):null]})})},VL="",X2=({columnItems:u,finalItem:l,logo_1:s,logo_2:a,endButtonLinks:r,className:p,...f})=>{var g=new Date,m=g.getFullYear();return b("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:[u&&b(rn,{children:u.map(k=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[b("p",{className:"column-item__title",children:k.title}),k.buttonLinks.map(_=>b("span",{className:"column-item__button",children:b($e,{..._})},ar())),b("span",{className:"column-item__final",children:b($e,{...k.finalLink})})]},ar()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[b("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(k=>b("span",{className:"final-item__button",children:b($e,{...k})},ar())),b("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[b("img",{src:s,alt:"",width:"155px",height:"37px"}),b("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[b("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",m," - Rentas Corrientes"]})}),r&&b("div",{className:"end-button-links is-flex",children:r.map(k=>b("div",{className:"end-button-links__item is-flex",children:b("span",{className:"end-button-links__button",children:b($e,{...k})},k.label)},ar()))})]})]})]})})},BL="",Z2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",J2=({className:u,logged:l,logo:s,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:g,notUserDropComponent:m,...k})=>{var fe,pe,me,De;const[_,N]=de.useState(!1),[R,P]=de.useState(!1),[$,K]=de.useState(window.innerWidth<1217),[A,re]=de.useState(window.innerWidth<654),[se,J]=de.useState(null),[G,B]=de.useState((fe=p==null?void 0:p.reduce((ve,Ee)=>({...ve,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?fe:{}),te=de.useRef(null),ie=p==null?void 0:p.map(()=>de.useRef(null)),le=ve=>{J(Ee=>Ee===ve?null:ve),B(Ee=>({...Object.keys(Ee).reduce((ke,Ne)=>(ke[Ne]={active:Ne===ve,name:Ee[Ne].name},ke),{})}))};de.useEffect(()=>{function ve(Ee){var ke;Object.values(G).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((ke=te.current)!=null&&ke.contains(Ee.target))&&(B(Ne=>Object.keys(Ne).reduce((ot,Qe)=>({...ot,[Qe]:{active:!1,name:Ne[Qe].name}}),{})),J(null))}return document.addEventListener("click",ve),()=>{document.removeEventListener("click",ve)}},[te,G]);const Q=de.useRef(null);return de.useEffect(()=>{function ve(Ee){Q.current&&!Q.current.contains(Ee.target)&&P(!1)}return document.addEventListener("click",ve),()=>{document.removeEventListener("click",ve)}},[Q]),de.useEffect(()=>{function ve(){K(window.innerWidth<1217),re(window.innerWidth<654)}return window.addEventListener("resize",ve),()=>{window.removeEventListener("resize",ve)}},[]),b("div",{className:"elv-component elv-header",...k,children:b("div",{className:`navbar-container ${u||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[b("a",{role:"button",className:`navbar-burger ${_?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!_),children:b("img",{src:Z2,alt:"Burger SVG"})}),s&&b(rn,{children:A?b("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:b("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:s.height,width:s.width})}):b("a",{className:"navbar-item pt-0",onClick:()=>{s!=null&&s.onClick&&s.onClick()},children:b("img",{src:s.src,alt:"Logo Header",height:s.height,width:s.width})})})]}),b("div",{id:"rentas-ctes-header",className:`navbar-menu ${_?"is-active":""}`,children:b("div",{className:"navbar-start",children:r&&r.map(ve=>b("a",{className:"navbar-item item-text",onClick:ve.onClick,children:ve.label},ar()))})}),L("div",{className:"navbar-end is-flex",children:[b("div",{className:"icon-functions is-flex",ref:te,children:p&&p.map((ve,Ee)=>L("div",{className:["item-icon "].join(""),ref:ie&&ie[Ee],children:[b("span",{children:b($e,{...ve.buttonIcon,onClick:()=>{var ke;le(ve.uniqueValue),(ke=ve.buttonIcon)!=null&&ke.onClick&&ve.buttonIcon.onClick()}})}),ve.badge&&b(rn,{children:b("span",{className:"item-icon__badge-notif",children:b(yo,{...ve.badge})})}),ve.iconDropComponent&&b("div",{className:`drop-component drop-component__icon ${G[ve.uniqueValue]&&p[Ee].uniqueValue===se?"is-active":""}`,children:ve.iconDropComponent})]},ar()))}),l?b(rn,{children:$?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[b("div",{className:"user-mobile__icon",children:b(it,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),g.userDropComponent&&b("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:Q,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, ",g.name," ",g.lastName]}),b("p",{className:"description",children:g.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(pe=g.avatar)!=null&&pe.icon?L("div",{className:"user-icon",children:[b(it,{icon:g.avatar.icon.icon}),g.avatar.stateColor&&b("span",{className:"user-icon__state",children:b(it,{icon:"fa fa-circle",color:g.avatar.stateColor,size:"10px"})})]}):b("img",{src:(De=(me=g.avatar)==null?void 0:me.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),b(it,{icon:"fa-solid fa-chevron-down"})]})]}),g.userDropComponent&&b("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g.userDropComponent})]})}):b(rn,{children:$?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[b("div",{className:"user-mobile__icon",children:b(it,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),m&&b("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m})]}):b("div",{className:"navbar-item",children:b($e,{...f})})})]})]})})})},qL="",eO=({className:u,search:l,pagination:s,selectList:a,button:r,menuButton:p,menuDropComponent:f,...g})=>{const[m,k]=de.useState(!1),_=de.useRef(null);return de.useEffect(()=>{function N(R){_.current&&!_.current.contains(R.target)&&k(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[_]),b("div",{className:`elv-component elv-header-table ${u||""}`,...g,children:L("div",{className:"header-table is-flex",children:[l&&b("span",{children:b(wv,{...l})}),a&&a.map(N=>b("span",{children:b(Wh,{...N})},ar())),s&&b(Dy,{...s}),r&&b($e,{...r}),p&&L("div",{ref:_,className:"menuButton",children:[b($e,{...p,onClick:()=>{k(!m),p.onClick&&p.onClick()}}),f&&m&&b("div",{className:"menuButton__dropComponent",children:f})]})]})})},QL="",tO=({className:u,buttonShow:l,title:s,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:g,listLineSeparation:m=!1,onShow:k,onClose:_,...N})=>{const[R,P]=de.useState(a),[$,K]=de.useState(1),[A,re]=de.useState(0),se=de.useRef(null),J=de.useRef(null),[G,B]=de.useState(p);de.useEffect(()=>{P(a)},[a]),de.useEffect(()=>{B(p)},[p]);const te=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&b("div",{className:"is-flex is-justify-content-end",children:b($e,{...l,onClick:()=>{P(!0),k&&k()}})}),R&&b("div",{className:"modal-background",onClick:()=>{P(!1),_&&_()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${R?"is-open":""} ${u||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[b($e,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),_&&_()}}),b("p",{className:"title is-5",children:s})]}),r&&b("div",{className:"sidebar-container__search",children:b(wv,{...r})}),b("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:te},children:g.slice(($-1)*p,$*p).map((ie,le)=>b("div",{ref:se,className:`listItem ${m?" line-separation":""}`,children:ie},ar()))}),b("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(g==null?void 0:g.length)>p&&b(Dy,{onChangePage:ie=>{K(ie)},minItemsPerPage:G,totalItems:g.length,showTotals:!0,isColumn:!0})})]})]})},KL="",nO=({className:u,title:l,show:s,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:g,position:m="right",footerbutton:k,..._})=>{const[N,R]=de.useState(s);return de.useEffect(()=>{R(s)},[s]),L("div",{className:"elv-component elv-sidebarEmpty",..._,children:[!N&&b("div",{className:"is-flex is-justify-content-end",children:b($e,{...r,onClick:()=>{R(!0)}})}),N&&b("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--${m}`,`${u?" "+u:""}`].join(""),children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",children:[b("div",{className:"sidebar-container__button mr-3",children:b($e,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),b("p",{className:"title is-5 has-text-link-dark",children:l})]}),b("div",{className:"sidebar-container__content",children:g})]}),k&&b("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[b("div",{className:"button-container__opt ml-5",children:p&&b($e,{...p})}),b("div",{className:"button-container__opt",children:f&&b($e,{...f})})]})})]})]})},GL="",rO=({className:u,border:l,size:s,label:a,description:r,backButton:p,leftIcon:f,rectangle:g,actionButtons:m,addButton:k,removeButton:_,linkButton:N,iconButton:R,switcherLabel:P,switcher:$,labelRight:K,...A})=>b("div",{className:"elv-component elv-subtitle",...A,children:L("div",{className:`subtitle-component ${l&&"subtitle-component--border-bot-gray"} ${u||""}`,children:[L("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&b("div",{className:"left-backButton",children:b($e,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&b(it,{...f}),g&&b("span",{className:"left-texts__principal__rectangle"}),a&&b("p",{className:`left-texts__principal__label left-texts__principal__label--${s}`,children:a})]}),r&&b("p",{className:`left-texts__description left-texts__description--${s}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[k||_?L("div",{className:"right-editButtons is-flex",children:[k&&b("span",{className:"right-editButtons__addButton",children:b($e,{...k})}),_&&b("span",{className:"right-editButtons__removeButton",children:b($e,{..._})})]}):b(rn,{}),N&&b("span",{className:"right-linkButton",children:b($e,{...N})}),R&&b("span",{children:b($e,{...R})}),$&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[P&&b("p",{className:"right-switcher__label",children:P}),b(wx,{...$})]}),K&&b("p",{className:"right-label",children:K})]})]})}),XL="",aO=({className:u,subtitle:l,title:s,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:g,button:m,buttonWidth:k,backButton:_,searchWidth:N,align:R,...P})=>b("div",{className:"elv-component elv-title",...P,children:L("div",{className:`title-component-container ${_&&"title-component-container--backButton"} ${u||""}`,children:[_&&b("div",{className:"title-component-container__backButton is-flex",children:b($e,{..._})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&b("p",{className:"title-component__subtitle",children:l.toUpperCase()}),s&&b("p",{className:"title-component__title",children:s}),L("div",{className:`title-component__content is-flex title-component__content--${R} is-flex-direction-column ${_&&"title-component__content--backButton"}`,children:[a&&b("p",{className:"title-component__description",style:{width:r},children:a}),p&&b("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&b("span",{className:"title-component__actionButtons is-flex",children:f.map($=>b("span",{children:b($e,{...$})},$.label))}),g&&b("span",{className:"title-component__search",style:{width:N},children:b(wv,{...g})}),m&&b("span",{className:"title-component__button",style:{width:k},children:b($e,{...m})})]})]})]})});st.Alert=n_,st.AssistanceDiary=r_,st.Autocomplete=V2,st.AverageAttended=a_,st.Badge=yo,st.Breadcrumb=o_,st.Button=$e,st.CTA=S2,st.CardActivity=c_,st.CardCTA=l_,st.CardExpiration=s_,st.CardHorizontal=d_,st.CardUser=f_,st.CardVertical=u_,st.Cart=p_,st.Checkbox=$f,st.Collapse=E0,st.CollapseEdit=D0,st.CompleteDiary=x2,st.DatePickerComponent=B2,st.Dropdown=k2,st.EmptyState=_2,st.ErrorPage=D2,st.Filters=q2,st.Footer=X2,st.Header=J2,st.HeaderTable=eO,st.Icon=it,st.IncomingCall=E2,st.Input=Vh,st.InputForm=Q2,st.ModalConfirm=R2,st.Pagination=Dy,st.PerformanceAssessment=H2,st.ProgressBar=k0,st.Radio=Ug,st.Search=wv,st.Select=Wh,st.ShiftDiary=$2,st.Sidebar=tO,st.SidebarEmpty=nO,st.Stepper=Y2,st.Subtitle=rO,st.Switch=wx,st.Tabs=W2,st.Textarea=K2,st.Title=aO,st.Tooltip=Lg,st.UploadFileItem=bx,st.UploadFiles=G2,Object.defineProperties(st,{__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.7",
3
+ "version": "1.0.9",
4
4
  "description": "Un paquete de componentes minimizado",
5
5
  "main": "components.js",
6
6
  "module": "components.js",