dgrcorrientes-modulos 1.0.40 → 1.0.41

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
@@ -30618,8 +30618,7 @@ const BA = ({
30618
30618
  placeholder: a || "",
30619
30619
  onFocus: () => X(!0),
30620
30620
  readOnly: !!Z,
30621
- autoComplete: _,
30622
- defaultValue: f
30621
+ autoComplete: _
30623
30622
  }), Z && K != "" ? /* @__PURE__ */ w("div", {
30624
30623
  onClick: () => {
30625
30624
  B("", "");
@@ -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,g=u.strokeWidth,S=u.text,k=this.getPathRadius(),N=this.getPathRatio();return ie.createElement("svg",{className:p.root+" "+r,style:m.root,viewBox:"0 0 "+j2+" "+I2,"data-test-id":"CircularProgressbar"},this.props.background?ie.createElement("circle",{className:p.background,style:m.background,cx:Ny,cy:Oy,r:yx}):null,ie.createElement(wx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:g,style:m.trail}),ie.createElement(wx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:g,style:m.path}),S?ie.createElement("text",{className:p.text,style:m.text,x:Ny,y:Oy},S):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}(ie.Component);function $2(s){s.children;var l=U2(s,["children"]);return ie.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},ie.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},ie.createElement(H2,Ty({},l)),s.children?ie.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,g=s.trailColor,S=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:g,strokeLinecap:u,transform:k,transformOrigin:N}),text:bv({fill:a,fontSize:r}),background:bv({fill:S})}}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 g=Math.round(f*2)/2;return w("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:[w("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),w("div",{children:l==null?void 0:l.map(S=>w("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:S.date}))})]}),w("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:[w("div",{className:"is-size-4",children:w("strong",{children:`${u}%`})}),w("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[w("div",{className:"is-flex",children:r==null?void 0:r.map((S,k)=>{const N=g-k===.5;return L("div",{children:[!N&&w(rt,{icon:S.star,className:"iconStar mr-3 is-size-5",color:k<g?"#16A34A":"#CED4DA"}),N&&w(rt,{icon:S.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]})]})]})})},HL="",V2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:m})=>w("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:[w("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),w(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:[w("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(g=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[w("div",{className:"has-text-grey-dark",children:g.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:[w("div",{className:"has-text-weight-semibold has-text-grey-dark",children:g.name}),w("div",{className:"has-text-grey-dark",children:g.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:g.colorContains},children:[w(rt,{icon:"fa-solid fa-circle",color:g.colorIcon,className:"mr-2"}),w("p",{className:"has-text-light is-size-7",children:g.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:[w(rt,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),w("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),w("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:[w(rt,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),w("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),w("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),$L="",B2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(R=>R.label===l),[m,g]=ie.useState(f),[S,k]=ie.useState(f);if(m)var p=s.indexOf(m);ie.useEffect(()=>{var R=s.find(P=>P.label===l);g(R),m&&(p=s.indexOf(m)),k(R)},[l,s]);const N=R=>{k(R),u&&u(R),R.onClick&&R.onClick()};return w("div",{className:"elv-component elv-steps",...r,children:w("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:[w("span",{className:"steps-marker",onClick:()=>{P<=p?N(R):R.onClick&&R.onClick()},children:P<p?w("span",{className:"icon",children:w("i",{className:`${R.icon}`})}):w("span",{children:P+1})}),w("div",{className:`steps-content ${P<=p?"steps-content--completed":"steps-content--incompleted"} ${R===S&&"steps-content--position"}`,children:w("p",{className:"steps-content__item-label",children:R.label})})]},P))})})},YL="",q2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...m})=>w("div",{className:"elv-component elv-tabs",...m,children:w("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((g,S)=>L("div",{className:"tabs__item",children:[l==="boxed"&&g.icon&&g.subtitle?L("li",{onClick:()=>{a&&a(g),g.sub_labels&&r&&r(g.sub_labels[0]),g.onClick&&g.onClick()},className:`item is-clickable ${S!==0?"ml-3":""} ${g.label==(u==null?void 0:u.label)?"item--active":""} ${g.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[w(rt,{...g.icon,className:"boxed-container__icon mb-1 mr-1"}),w("p",{className:"boxed-container__label",children:Ft(g.label,30)})]}),w("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Ft(g.subtitle,20)})]}):w("li",{onClick:()=>{a&&a(g),g.sub_labels&&r&&r(g.sub_labels[0]),g.onClick&&g.onClick()},className:`item is-clickable ${S===0?"item--is-first":""} ${g.label==(u==null?void 0:u.label)?"item--active":""} ${g.disabled?"item--disabled":""}`,children:Ft(g.label,30)}),g.sub_labels!==void 0&&l==="vertical"&&g.sub_labels.map((k,N)=>w("li",{onClick:()=>{a&&a(g),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${S===0?"sub-item__--first":""} ${g.label==(u==null?void 0:u.label)&&k.label==(p==null?void 0:p.label)?"sub-item--active":""} ${k.disabled?"sub-item--inactive":""}`,children:Ft(k.label,25)},An()))]},g.label+An()))})}),WL="",Q2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:g=30,autocomplete:S,onChangeSelect:k,className:N,...R})=>{const[P,F]=ie.useState(f||""),[Z,A]=ie.useState(""),[K,ae]=ie.useState(f||""),[J,X]=ie.useState(!1),B=(Q,ue)=>{Q==""?F(""):F(ue),A(Q),ae(ue),k&&k(Q),X(!1)};function q(Q){const ue=Q.target.value;F(ue),X(!0)}const le=p.filter(Q=>Q.label.toLowerCase().includes(P?P.toLowerCase():"")),fe=ie.useRef(null);return ie.useEffect(()=>{function Q(ue){fe.current&&!fe.current.contains(ue.target)&&X(!1)}return document.addEventListener("click",Q),()=>{document.removeEventListener("click",Q)}},[fe]),ie.useEffect(()=>{const Q=p.find(ue=>ue.value===f);Q?B(Q.value,Q.label):B("","")},[f,p]),w("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:fe,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[w("input",{className:"input-autocomplete is-clickable ",type:"text",value:P||K,onChange:q,placeholder:a||"",onFocus:()=>X(!0),readOnly:!!Z,autoComplete:S,defaultValue:f}),Z&&K!=""?w("div",{onClick:()=>{B("","")},className:"",children:w(rt,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),w("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&w("li",{className:`list__item list__item--default ${Z==a?"list__item--active":""}`,onClick:()=>{B("",a)},children:Ft(a,g||30)}),le==null?void 0:le.map((Q,ue)=>L("li",{className:"list__item",onClick:()=>{B(Q.value,Q.label)},children:[Q.icon&&w("i",{className:`item__icon ${Q.icon}`}),Ft(Q.label,g||30)]},ue))]})})]})})},K2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:m,minWidth:g,maxCharacters:S=30,onChangeSelect:k,className:N,...R})=>{const[P,F]=ie.useState(m||""),[Z,A]=ie.useState(!1),K=ie.useRef(null),ae=f!==void 0?f:P,J=q=>{f===void 0&&F(q.value),k==null||k(q),A(!1)},X=q=>{f===void 0&&F(q.target.value),A(!0)},B=p.filter(q=>(q.value+" "+q.label).toLowerCase().includes((ae||"").toLowerCase()));return ie.useEffect(()=>{const q=le=>{K.current&&!K.current.contains(le.target)&&A(!1)};return document.addEventListener("click",q),()=>document.removeEventListener("click",q)},[]),ie.useEffect(()=>{m&&f===void 0&&F(m)},[m,f]),w("div",{className:"elv-component elv-autocomplete",style:{minWidth:g},...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:[w("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ae,onChange:X,onFocus:()=>A(!0)}),ae&&!u&&w("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&F(""),k==null||k({value:"",label:""})},children:w(rt,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),Z&&w("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active`,children:w("ul",{className:"dropdown__list",children:B.map((q,le)=>w("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(q),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[w("span",{style:{fontWeight:"bold"},children:Ft(q.value,S)}),w("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Ft(q.label,S)})]})},le))})})]})})},VL="",G2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:m,onStartDateChange:g,onEndDateChange:S,className:k,...N})=>{const[R,P]=ie.useState(u||new Date),[F,Z]=ie.useState(a||new Date);return ie.useEffect(()=>{g&&g(R)},[R]),ie.useEffect(()=>{S&&S(F)},[F]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[w(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}),w(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})]}):w("div",{className:"elv-component elv-datepicker",...N,children:w(yv,{selected:R,onChange:A=>P(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:m||"es"})})},BL="",X2=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:m,onChangeFilters:g,className:S,...k})=>{const[N,R]=ie.useState(!1),[P,F]=ie.useState(!1),[Z,A]=ie.useState(!1),[K,ae]=ie.useState([]),[J,X]=ie.useState([]),B=(ue,pe,ye)=>{var Ee,_e,Ne;const De=K.findIndex(ze=>ze.name===pe),he=[...K];if(ue==="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)},q=()=>{g&&(g(K),X(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),g&&(g([]),X([]))};function fe(){return ue=>{R(!N)}}const Q=ie.useRef(null);return ie.useEffect(()=>{function ue(pe){Q.current&&!Q.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",ue),()=>{document.removeEventListener("click",ue)}},[Q]),w("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${S||""}`,ref:Q,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:fe(),children:[w(rt,{icon:"fa-solid fa-filter",className:"filter"}),w("span",{className:"placeholder",children:Ft(a,25)}),J.length>0&&w(yo,{color:"primary",text:J.length.toString()}),w(rt,{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(ue=>{var pe;return L("div",{className:"section",children:[w("p",{className:"section__title is-5",children:ue.label}),w("div",{className:`section__options ${ue.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=ue.options)==null?void 0:pe.map(ye=>w("div",{children:L("label",{htmlFor:ye.name,className:`filter-label ${ue.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ye.iconItem&&w(rt,{...ye.iconItem}),w("p",{className:"",children:ye.name})]}),ue.type=="radio"?w(jg,{label:"",name:ue.name,size:"md",value:ye.name,onCheck:()=>B(ue.type,ue.name,ye.name)}):w($f,{label:"",size:"md",value:ye.name,name:ue.name,onCheck:()=>B(ue.type,ue.name,ye.name)})]})},ye.name))})]},ue.name)}),Z||P?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[Z&&w("span",{className:"button-aplicate is-flex is-justify-content-center",children:w(Pe,{label:f.label!==void 0?Ft(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:q,...f})}),P&&w("span",{className:"button-cleaner is-flex is-justify-content-center",children:w(Pe,{...m,label:m.label!==void 0?Ft(m.label,25):"",trailingIcon:m.trailingIcon,onClick:le})})]}):w(Qt,{})]})]})})},qL="",Z2=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...m})=>w("div",{className:["elv-component"," elv-form-control"].join(""),...m,children:L("div",{className:`e-input-form ${f||""}`,children:[w("div",{children:l}),w(Bh,{...s}),L("div",{children:[w("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]})]})}),QL="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:g,onChangeInput:S,onSearch:k,className:N,...R})=>{const P=ie.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 w("div",{className:"elv-component elv-search",...R,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[w("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:A=>S&&S(A.target.value),defaultValue:a,value:r,ref:P,disabled:g,onKeyDown:F}),w("span",{className:"search-container__button-search",children:w(Pe,{...p,size:s,onClick:()=>{Z()}})})]})})},KL="",bx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,g]=ie.useState(),S=()=>{g(!m),r&&r(!m)};return w("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[w("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:S}),w("span",{className:"slider round"})]})})},GL="",J2=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:g=50,className:S,...k})=>w("div",{className:"elv-component elv-textArea",children:w("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${S?" "+S:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:g,...k})}),XL="",ZL="",Cx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...g})=>w("div",{className:"elv-component elv-uploadfile",...g,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${s?" "+s:""}`].join(""),children:[w("div",{className:"mr-5",children:r&&w(rt,{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?w("p",{className:"file_name is-size-7",children:r}):a?w("p",{className:"file_name is-size-7",children:a.name}):w(Qt,{}),w("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),w(Pe,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?w("div",{className:"is-size-7",children:k0(p)}):a?w("div",{className:"is-size-7",children:k0(a.size)}):w(Qt,{})]}),u&&w("div",{className:"uploadfile__progress pt-2",children:w(_0,{...l})})]}),w("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:w(rt,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),eO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:g,onPreviewFile:S,onDeleteFile:k,onErrorSize:N,onErrorExtensions:R,...P})=>{const[F,Z]=ie.useState(!1),[A,K]=ie.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(fe=>{var ue;const Q=(ue=fe.name.split(".").pop())==null?void 0:ue.toLowerCase();return m==null?void 0:m.includes(Q||"")})),ae=fe=>{fe.preventDefault(),Z(!0)},J=()=>{Z(!1)},X=fe=>{fe.preventDefault(),Z(!1);const Q=fe.dataTransfer.files;Q&&q(Q)},B=fe=>{const Q=fe.target.files;Q&&q(Q)},q=fe=>{var Q;if(fe.length<=r&&A.length+fe.length<=r)for(let ue=0;ue<fe.length;ue++){const pe=fe[ue],ye=pe.name.split("."),De=ye.length>1?(Q=ye.pop())==null?void 0:Q.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(De||""))){if(pe.size<=a*1024*1024)g&&g(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=fe=>{const Q=A.filter(ue=>ue!==fe);K(Q)};return w("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:[w("div",{className:`uploadfiles__files file ${F?"dragging":""}`,onDragEnter:ae,onDragLeave:J,onDragOver:fe=>fe.preventDefault(),onDrop:X,children:L("label",{htmlFor:"file-input",className:"file-label",children:[w("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:[w("span",{className:"file-icon",children:w(rt,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),w("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),w("div",{className:"uploadfiles__data",children:u}),A.length>0?w("div",{children:A.map((fe,Q)=>w("div",{className:"uploadfiles__download mb-3",children:w(Cx,{showBar:!!(p&&p[Q]&&p[Q]!==100),file:fe,file_name:fe.name,file_size:fe.size,onPreview:ue=>{S&&S(ue)},onDelete:ue=>{k&&k(ue),le(ue)},progressBar:{value:p&&p[Q]?p[Q]:0}})},Q))}):null]})})},JL="",tO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,className:p,...f})=>{var m=new Date,g=m.getFullYear();return w("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&&w(Qt,{children:s.map(S=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[w("p",{className:"column-item__title",children:S.title}),S.buttonLinks.map(k=>w("span",{className:"column-item__button",children:w(Pe,{...k})},An())),w("span",{className:"column-item__final",children:w(Pe,{...S.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[w("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(S=>w("span",{className:"final-item__button",children:w(Pe,{...S})},An())),w("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[w("img",{src:u,alt:"",width:"155px",height:"37px"}),w("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[w("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",g," - Rentas Corrientes"]})}),r&&w("div",{className:"end-button-links is-flex",children:r.map(S=>w("div",{className:"end-button-links__item is-flex",children:w("span",{className:"end-button-links__button",children:w(Pe,{...S})},S.label)},An()))})]})]})]})})},eU="",nO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",rO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:g,...S})=>{var ue,pe,ye,De;const[k,N]=ie.useState(!1),[R,P]=ie.useState(!1),[F,Z]=ie.useState(window.innerWidth<1217),[A,K]=ie.useState(window.innerWidth<654),[ae,J]=ie.useState(null),[X,B]=ie.useState((ue=p==null?void 0:p.reduce((he,Ee)=>({...he,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?ue:{}),q=ie.useRef(null),le=p==null?void 0:p.map(()=>ie.useRef(null)),fe=he=>{J(Ee=>Ee===he?null:he),B(Ee=>({...Object.keys(Ee).reduce((_e,Ne)=>(_e[Ne]={active:Ne===he,name:Ee[Ne].name},_e),{})}))};ie.useEffect(()=>{function he(Ee){var _e;Object.values(X).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((_e=q.current)!=null&&_e.contains(Ee.target))&&(B(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)}},[q,X]);const Q=ie.useRef(null);return ie.useEffect(()=>{function he(Ee){Q.current&&!Q.current.contains(Ee.target)&&P(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[Q]),ie.useEffect(()=>{function he(){Z(window.innerWidth<1217),K(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),w("div",{className:"elv-component elv-header",...S,children:w("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[w("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:w("img",{src:nO,alt:"Burger SVG"})}),u&&w(Qt,{children:A?w("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:w("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):w("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:w("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),w("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:w("div",{className:"navbar-start",children:r&&r.map(he=>w("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[w("div",{className:"icon-functions is-flex",ref:q,children:p&&p.map((he,Ee)=>L("div",{className:["item-icon "].join(""),ref:le&&le[Ee],children:[w("span",{children:w(Pe,{...he.buttonIcon,onClick:()=>{var _e;fe(he.uniqueValue),(_e=he.buttonIcon)!=null&&_e.onClick&&he.buttonIcon.onClick()}})}),he.badge&&w(Qt,{children:w("span",{className:"item-icon__badge-notif",children:w(yo,{...he.badge})})}),he.iconDropComponent&&w("div",{className:`drop-component drop-component__icon ${X[he.uniqueValue]&&p[Ee].uniqueValue===ae?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?w(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[w("div",{className:"user-mobile__icon",children:w(rt,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),m.userDropComponent&&w("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.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, ",m.name," ",m.lastName]}),w("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:[w(rt,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&w("span",{className:"user-icon__state",children:w(rt,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):w("img",{src:(De=(ye=m.avatar)==null?void 0:ye.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),w(rt,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&w("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]})}):w(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[w("div",{className:"user-mobile__icon",children:w(rt,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),g&&w("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g})]}):w("div",{className:"navbar-item",children:w(Pe,{...f})})})]})]})})})},tU="",aO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[g,S]=ie.useState(!1),k=ie.useRef(null);return ie.useEffect(()=>{function N(R){k.current&&!k.current.contains(R.target)&&S(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),w("div",{className:`elv-component elv-header-table ${s||""}`,...m,children:L("div",{className:"header-table is-flex",children:[l&&w("span",{children:w(op,{...l})}),a&&a.map(N=>w("span",{children:w(Yf,{...N})},An())),u&&w(wv,{...u}),r&&w(Pe,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[w(Pe,{...p,onClick:()=>{S(!g),p.onClick&&p.onClick()}}),f&&g&&w("div",{className:"menuButton__dropComponent",children:f})]})]})})},nU="",iO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:g=!1,onShow:S,onClose:k,...N})=>{const[R,P]=ie.useState(a),[F,Z]=ie.useState(1),[A,K]=ie.useState(0),ae=ie.useRef(null),J=ie.useRef(null),[X,B]=ie.useState(p);ie.useEffect(()=>{P(a)},[a]),ie.useEffect(()=>{B(p)},[p]);const q=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&w("div",{className:"is-flex is-justify-content-end",children:w(Pe,{...l,onClick:()=>{P(!0),S&&S()}})}),R&&w("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:[w(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),k&&k()}}),w("p",{className:"title is-5",children:u})]}),r&&w("div",{className:"sidebar-container__search",children:w(op,{...r})}),w("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:q},children:m.slice((F-1)*p,F*p).map((le,fe)=>w("div",{ref:ae,className:`listItem ${g?" line-separation":""}`,children:le},An()))}),w("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&w(wv,{onChangePage:le=>{Z(le)},minItemsPerPage:X,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},rU="",oO=({className:s,title:l,show:u,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:m,position:g="right",footerbutton:S,...k})=>{const[N,R]=ie.useState(u);return ie.useEffect(()=>{R(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...k,children:[!N&&w("div",{className:"is-flex is-justify-content-end",children:w(Pe,{...r,onClick:()=>{R(!0)}})}),N&&w("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--${g}`,`${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:[w("div",{className:"sidebar-container__button mr-3",children:w(Pe,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),w("p",{className:"title is-5 has-text-link-dark",children:l})]}),w("div",{className:"sidebar-container__content",children:m})]}),S&&w("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[w("div",{className:"button-container__opt ml-5",children:p&&w(Pe,{...p})}),w("div",{className:"button-container__opt",children:f&&w(Pe,{...f})})]})})]})]})},aU="",lO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:g,addButton:S,removeButton:k,linkButton:N,iconButton:R,switcherLabel:P,switcher:F,labelRight:Z,...A})=>w("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&&w("div",{className:"left-backButton",children:w(Pe,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&w(rt,{...f}),m&&w("span",{className:"left-texts__principal__rectangle"}),a&&w("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&w("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[S||k?L("div",{className:"right-editButtons is-flex",children:[S&&w("span",{className:"right-editButtons__addButton",children:w(Pe,{...S})}),k&&w("span",{className:"right-editButtons__removeButton",children:w(Pe,{...k})})]}):w(Qt,{}),N&&w("span",{className:"right-linkButton",children:w(Pe,{...N})}),R&&w("span",{children:w(Pe,{...R})}),F&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[P&&w("p",{className:"right-switcher__label",children:P}),w(bx,{...F})]}),Z&&w("p",{className:"right-label",children:Z})]})]})}),iU="",sO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:g,buttonWidth:S,backButton:k,searchWidth:N,align:R,...P})=>w("div",{className:"elv-component elv-title",...P,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&w("div",{className:"title-component-container__backButton is-flex",children:w(Pe,{...k})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&w("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&w("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&&w("p",{className:"title-component__description",style:{width:r},children:a}),p&&w("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&w("span",{className:"title-component__actionButtons is-flex",children:f.map(F=>w("span",{children:w(Pe,{...F})},F.label))}),m&&w("span",{className:"title-component__search",style:{width:N},children:w(op,{...m})}),g&&w("span",{className:"title-component__button",style:{width:S},children:w(Pe,{...g})})]})]})]})}),oU="",uO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:g=!1,onShow:S,onClose:k,children:N,width:R="315px",showOpenButton:P=!1,...F})=>{const[Z,A]=ie.useState(a),[K,ae]=ie.useState(1),[J,X]=ie.useState(0),B=ie.useRef(null),q=ie.useRef(null),[le,fe]=ie.useState(p);ie.useEffect(()=>{A(a)},[a]),ie.useEffect(()=>{fe(p)},[p]);const Q=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...F,children:[!Z&&P&&l&&w("div",{className:"is-flex is-justify-content-end",children:w(Pe,{...l,onClick:()=>{A(!0),S&&S()}})}),Z&&w("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:[w(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),w("p",{className:"title is-5",children:u})]}),r&&w("div",{className:"sidebar-container__search",children:w(op,{...r})}),w("div",{ref:q,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:Q},children:N||m.slice((K-1)*le,K*le).map(ue=>w("div",{ref:B,className:`listItem ${g?" line-separation":""}`,children:ue},An()))}),!N&&(m==null?void 0:m.length)>le&&w("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:w(wv,{onChangePage:ue=>{ae(ue)},minItemsPerPage:le,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};it.Alert=rk,it.AssistanceDiary=ak,it.Autocomplete=Q2,it.Autocomplete2=K2,it.AverageAttended=ik,it.Badge=yo,it.Breadcrumb=lk,it.Button=Pe,it.CTA=_2,it.CardActivity=dk,it.CardCTA=sk,it.CardExpiration=uk,it.CardHorizontal=fk,it.CardUser=pk,it.CardVertical=ck,it.Cart=hk,it.Checkbox=$f,it.Collapse=E0,it.CollapseEdit=D0,it.CompleteDiary=S2,it.DatePickerComponent=G2,it.Dropdown=k2,it.EmptyState=D2,it.ErrorPage=E2,it.Filters=X2,it.Footer=tO,it.Header=rO,it.HeaderTable=aO,it.Icon=rt,it.IncomingCall=T2,it.Input=Bh,it.InputForm=Z2,it.Modal2=M2,it.ModalConfirm=R2,it.ModalConfirm3=P2,it.Pagination=wv,it.Pagination2=A2,it.PerformanceAssessment=W2,it.ProgressBar=_0,it.Radio=jg,it.Search=op,it.Select=Yf,it.ShiftDiary=V2,it.Sidebar=iO,it.SidebarChildren=uO,it.SidebarEmpty=oO,it.Stepper=B2,it.Subtitle=lO,it.Switch=bx,it.Tabs=q2,it.Textarea=J2,it.Title=sO,it.Tooltip=Ug,it.UploadFileItem=Cx,it.UploadFiles=eO,Object.defineProperties(it,{__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,g=u.strokeWidth,S=u.text,k=this.getPathRadius(),N=this.getPathRatio();return ie.createElement("svg",{className:p.root+" "+r,style:m.root,viewBox:"0 0 "+j2+" "+I2,"data-test-id":"CircularProgressbar"},this.props.background?ie.createElement("circle",{className:p.background,style:m.background,cx:Ny,cy:Oy,r:yx}):null,ie.createElement(wx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:g,style:m.trail}),ie.createElement(wx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:g,style:m.path}),S?ie.createElement("text",{className:p.text,style:m.text,x:Ny,y:Oy},S):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}(ie.Component);function $2(s){s.children;var l=U2(s,["children"]);return ie.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},ie.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},ie.createElement(H2,Ty({},l)),s.children?ie.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,g=s.trailColor,S=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:g,strokeLinecap:u,transform:k,transformOrigin:N}),text:bv({fill:a,fontSize:r}),background:bv({fill:S})}}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 g=Math.round(f*2)/2;return w("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:[w("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),w("div",{children:l==null?void 0:l.map(S=>w("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:S.date}))})]}),w("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:[w("div",{className:"is-size-4",children:w("strong",{children:`${u}%`})}),w("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[w("div",{className:"is-flex",children:r==null?void 0:r.map((S,k)=>{const N=g-k===.5;return L("div",{children:[!N&&w(rt,{icon:S.star,className:"iconStar mr-3 is-size-5",color:k<g?"#16A34A":"#CED4DA"}),N&&w(rt,{icon:S.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]})]})]})})},HL="",V2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:m})=>w("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:[w("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),w(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:[w("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(g=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[w("div",{className:"has-text-grey-dark",children:g.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:[w("div",{className:"has-text-weight-semibold has-text-grey-dark",children:g.name}),w("div",{className:"has-text-grey-dark",children:g.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:g.colorContains},children:[w(rt,{icon:"fa-solid fa-circle",color:g.colorIcon,className:"mr-2"}),w("p",{className:"has-text-light is-size-7",children:g.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:[w(rt,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),w("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),w("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:[w(rt,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),w("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),w("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),$L="",B2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(R=>R.label===l),[m,g]=ie.useState(f),[S,k]=ie.useState(f);if(m)var p=s.indexOf(m);ie.useEffect(()=>{var R=s.find(P=>P.label===l);g(R),m&&(p=s.indexOf(m)),k(R)},[l,s]);const N=R=>{k(R),u&&u(R),R.onClick&&R.onClick()};return w("div",{className:"elv-component elv-steps",...r,children:w("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:[w("span",{className:"steps-marker",onClick:()=>{P<=p?N(R):R.onClick&&R.onClick()},children:P<p?w("span",{className:"icon",children:w("i",{className:`${R.icon}`})}):w("span",{children:P+1})}),w("div",{className:`steps-content ${P<=p?"steps-content--completed":"steps-content--incompleted"} ${R===S&&"steps-content--position"}`,children:w("p",{className:"steps-content__item-label",children:R.label})})]},P))})})},YL="",q2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...m})=>w("div",{className:"elv-component elv-tabs",...m,children:w("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((g,S)=>L("div",{className:"tabs__item",children:[l==="boxed"&&g.icon&&g.subtitle?L("li",{onClick:()=>{a&&a(g),g.sub_labels&&r&&r(g.sub_labels[0]),g.onClick&&g.onClick()},className:`item is-clickable ${S!==0?"ml-3":""} ${g.label==(u==null?void 0:u.label)?"item--active":""} ${g.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[w(rt,{...g.icon,className:"boxed-container__icon mb-1 mr-1"}),w("p",{className:"boxed-container__label",children:Ft(g.label,30)})]}),w("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Ft(g.subtitle,20)})]}):w("li",{onClick:()=>{a&&a(g),g.sub_labels&&r&&r(g.sub_labels[0]),g.onClick&&g.onClick()},className:`item is-clickable ${S===0?"item--is-first":""} ${g.label==(u==null?void 0:u.label)?"item--active":""} ${g.disabled?"item--disabled":""}`,children:Ft(g.label,30)}),g.sub_labels!==void 0&&l==="vertical"&&g.sub_labels.map((k,N)=>w("li",{onClick:()=>{a&&a(g),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${S===0?"sub-item__--first":""} ${g.label==(u==null?void 0:u.label)&&k.label==(p==null?void 0:p.label)?"sub-item--active":""} ${k.disabled?"sub-item--inactive":""}`,children:Ft(k.label,25)},An()))]},g.label+An()))})}),WL="",Q2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:g=30,autocomplete:S,onChangeSelect:k,className:N,...R})=>{const[P,F]=ie.useState(f||""),[Z,A]=ie.useState(""),[K,ae]=ie.useState(f||""),[J,X]=ie.useState(!1),B=(Q,ue)=>{Q==""?F(""):F(ue),A(Q),ae(ue),k&&k(Q),X(!1)};function q(Q){const ue=Q.target.value;F(ue),X(!0)}const le=p.filter(Q=>Q.label.toLowerCase().includes(P?P.toLowerCase():"")),fe=ie.useRef(null);return ie.useEffect(()=>{function Q(ue){fe.current&&!fe.current.contains(ue.target)&&X(!1)}return document.addEventListener("click",Q),()=>{document.removeEventListener("click",Q)}},[fe]),ie.useEffect(()=>{const Q=p.find(ue=>ue.value===f);Q?B(Q.value,Q.label):B("","")},[f,p]),w("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:fe,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[w("input",{className:"input-autocomplete is-clickable ",type:"text",value:P||K,onChange:q,placeholder:a||"",onFocus:()=>X(!0),readOnly:!!Z,autoComplete:S}),Z&&K!=""?w("div",{onClick:()=>{B("","")},className:"",children:w(rt,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),w("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&w("li",{className:`list__item list__item--default ${Z==a?"list__item--active":""}`,onClick:()=>{B("",a)},children:Ft(a,g||30)}),le==null?void 0:le.map((Q,ue)=>L("li",{className:"list__item",onClick:()=>{B(Q.value,Q.label)},children:[Q.icon&&w("i",{className:`item__icon ${Q.icon}`}),Ft(Q.label,g||30)]},ue))]})})]})})},K2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:m,minWidth:g,maxCharacters:S=30,onChangeSelect:k,className:N,...R})=>{const[P,F]=ie.useState(m||""),[Z,A]=ie.useState(!1),K=ie.useRef(null),ae=f!==void 0?f:P,J=q=>{f===void 0&&F(q.value),k==null||k(q),A(!1)},X=q=>{f===void 0&&F(q.target.value),A(!0)},B=p.filter(q=>(q.value+" "+q.label).toLowerCase().includes((ae||"").toLowerCase()));return ie.useEffect(()=>{const q=le=>{K.current&&!K.current.contains(le.target)&&A(!1)};return document.addEventListener("click",q),()=>document.removeEventListener("click",q)},[]),ie.useEffect(()=>{m&&f===void 0&&F(m)},[m,f]),w("div",{className:"elv-component elv-autocomplete",style:{minWidth:g},...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:[w("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ae,onChange:X,onFocus:()=>A(!0)}),ae&&!u&&w("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&F(""),k==null||k({value:"",label:""})},children:w(rt,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),Z&&w("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active`,children:w("ul",{className:"dropdown__list",children:B.map((q,le)=>w("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(q),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[w("span",{style:{fontWeight:"bold"},children:Ft(q.value,S)}),w("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Ft(q.label,S)})]})},le))})})]})})},VL="",G2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:m,onStartDateChange:g,onEndDateChange:S,className:k,...N})=>{const[R,P]=ie.useState(u||new Date),[F,Z]=ie.useState(a||new Date);return ie.useEffect(()=>{g&&g(R)},[R]),ie.useEffect(()=>{S&&S(F)},[F]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[w(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}),w(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})]}):w("div",{className:"elv-component elv-datepicker",...N,children:w(yv,{selected:R,onChange:A=>P(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:m||"es"})})},BL="",X2=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:m,onChangeFilters:g,className:S,...k})=>{const[N,R]=ie.useState(!1),[P,F]=ie.useState(!1),[Z,A]=ie.useState(!1),[K,ae]=ie.useState([]),[J,X]=ie.useState([]),B=(ue,pe,ye)=>{var Ee,_e,Ne;const De=K.findIndex(ze=>ze.name===pe),he=[...K];if(ue==="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)},q=()=>{g&&(g(K),X(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),g&&(g([]),X([]))};function fe(){return ue=>{R(!N)}}const Q=ie.useRef(null);return ie.useEffect(()=>{function ue(pe){Q.current&&!Q.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",ue),()=>{document.removeEventListener("click",ue)}},[Q]),w("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${S||""}`,ref:Q,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:fe(),children:[w(rt,{icon:"fa-solid fa-filter",className:"filter"}),w("span",{className:"placeholder",children:Ft(a,25)}),J.length>0&&w(yo,{color:"primary",text:J.length.toString()}),w(rt,{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(ue=>{var pe;return L("div",{className:"section",children:[w("p",{className:"section__title is-5",children:ue.label}),w("div",{className:`section__options ${ue.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=ue.options)==null?void 0:pe.map(ye=>w("div",{children:L("label",{htmlFor:ye.name,className:`filter-label ${ue.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ye.iconItem&&w(rt,{...ye.iconItem}),w("p",{className:"",children:ye.name})]}),ue.type=="radio"?w(jg,{label:"",name:ue.name,size:"md",value:ye.name,onCheck:()=>B(ue.type,ue.name,ye.name)}):w($f,{label:"",size:"md",value:ye.name,name:ue.name,onCheck:()=>B(ue.type,ue.name,ye.name)})]})},ye.name))})]},ue.name)}),Z||P?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[Z&&w("span",{className:"button-aplicate is-flex is-justify-content-center",children:w(Pe,{label:f.label!==void 0?Ft(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:q,...f})}),P&&w("span",{className:"button-cleaner is-flex is-justify-content-center",children:w(Pe,{...m,label:m.label!==void 0?Ft(m.label,25):"",trailingIcon:m.trailingIcon,onClick:le})})]}):w(Qt,{})]})]})})},qL="",Z2=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...m})=>w("div",{className:["elv-component"," elv-form-control"].join(""),...m,children:L("div",{className:`e-input-form ${f||""}`,children:[w("div",{children:l}),w(Bh,{...s}),L("div",{children:[w("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]})]})}),QL="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:g,onChangeInput:S,onSearch:k,className:N,...R})=>{const P=ie.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 w("div",{className:"elv-component elv-search",...R,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[w("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:A=>S&&S(A.target.value),defaultValue:a,value:r,ref:P,disabled:g,onKeyDown:F}),w("span",{className:"search-container__button-search",children:w(Pe,{...p,size:s,onClick:()=>{Z()}})})]})})},KL="",bx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,g]=ie.useState(),S=()=>{g(!m),r&&r(!m)};return w("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[w("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:S}),w("span",{className:"slider round"})]})})},GL="",J2=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:g=50,className:S,...k})=>w("div",{className:"elv-component elv-textArea",children:w("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${S?" "+S:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:g,...k})}),XL="",ZL="",Cx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...g})=>w("div",{className:"elv-component elv-uploadfile",...g,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${s?" "+s:""}`].join(""),children:[w("div",{className:"mr-5",children:r&&w(rt,{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?w("p",{className:"file_name is-size-7",children:r}):a?w("p",{className:"file_name is-size-7",children:a.name}):w(Qt,{}),w("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),w(Pe,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?w("div",{className:"is-size-7",children:k0(p)}):a?w("div",{className:"is-size-7",children:k0(a.size)}):w(Qt,{})]}),u&&w("div",{className:"uploadfile__progress pt-2",children:w(_0,{...l})})]}),w("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:w(rt,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),eO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:g,onPreviewFile:S,onDeleteFile:k,onErrorSize:N,onErrorExtensions:R,...P})=>{const[F,Z]=ie.useState(!1),[A,K]=ie.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(fe=>{var ue;const Q=(ue=fe.name.split(".").pop())==null?void 0:ue.toLowerCase();return m==null?void 0:m.includes(Q||"")})),ae=fe=>{fe.preventDefault(),Z(!0)},J=()=>{Z(!1)},X=fe=>{fe.preventDefault(),Z(!1);const Q=fe.dataTransfer.files;Q&&q(Q)},B=fe=>{const Q=fe.target.files;Q&&q(Q)},q=fe=>{var Q;if(fe.length<=r&&A.length+fe.length<=r)for(let ue=0;ue<fe.length;ue++){const pe=fe[ue],ye=pe.name.split("."),De=ye.length>1?(Q=ye.pop())==null?void 0:Q.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(De||""))){if(pe.size<=a*1024*1024)g&&g(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=fe=>{const Q=A.filter(ue=>ue!==fe);K(Q)};return w("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:[w("div",{className:`uploadfiles__files file ${F?"dragging":""}`,onDragEnter:ae,onDragLeave:J,onDragOver:fe=>fe.preventDefault(),onDrop:X,children:L("label",{htmlFor:"file-input",className:"file-label",children:[w("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:[w("span",{className:"file-icon",children:w(rt,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),w("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),w("div",{className:"uploadfiles__data",children:u}),A.length>0?w("div",{children:A.map((fe,Q)=>w("div",{className:"uploadfiles__download mb-3",children:w(Cx,{showBar:!!(p&&p[Q]&&p[Q]!==100),file:fe,file_name:fe.name,file_size:fe.size,onPreview:ue=>{S&&S(ue)},onDelete:ue=>{k&&k(ue),le(ue)},progressBar:{value:p&&p[Q]?p[Q]:0}})},Q))}):null]})})},JL="",tO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,className:p,...f})=>{var m=new Date,g=m.getFullYear();return w("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&&w(Qt,{children:s.map(S=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[w("p",{className:"column-item__title",children:S.title}),S.buttonLinks.map(k=>w("span",{className:"column-item__button",children:w(Pe,{...k})},An())),w("span",{className:"column-item__final",children:w(Pe,{...S.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[w("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(S=>w("span",{className:"final-item__button",children:w(Pe,{...S})},An())),w("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[w("img",{src:u,alt:"",width:"155px",height:"37px"}),w("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[w("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",g," - Rentas Corrientes"]})}),r&&w("div",{className:"end-button-links is-flex",children:r.map(S=>w("div",{className:"end-button-links__item is-flex",children:w("span",{className:"end-button-links__button",children:w(Pe,{...S})},S.label)},An()))})]})]})]})})},eU="",nO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",rO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:g,...S})=>{var ue,pe,ye,De;const[k,N]=ie.useState(!1),[R,P]=ie.useState(!1),[F,Z]=ie.useState(window.innerWidth<1217),[A,K]=ie.useState(window.innerWidth<654),[ae,J]=ie.useState(null),[X,B]=ie.useState((ue=p==null?void 0:p.reduce((he,Ee)=>({...he,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?ue:{}),q=ie.useRef(null),le=p==null?void 0:p.map(()=>ie.useRef(null)),fe=he=>{J(Ee=>Ee===he?null:he),B(Ee=>({...Object.keys(Ee).reduce((_e,Ne)=>(_e[Ne]={active:Ne===he,name:Ee[Ne].name},_e),{})}))};ie.useEffect(()=>{function he(Ee){var _e;Object.values(X).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((_e=q.current)!=null&&_e.contains(Ee.target))&&(B(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)}},[q,X]);const Q=ie.useRef(null);return ie.useEffect(()=>{function he(Ee){Q.current&&!Q.current.contains(Ee.target)&&P(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[Q]),ie.useEffect(()=>{function he(){Z(window.innerWidth<1217),K(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),w("div",{className:"elv-component elv-header",...S,children:w("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[w("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:w("img",{src:nO,alt:"Burger SVG"})}),u&&w(Qt,{children:A?w("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:w("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):w("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:w("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),w("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:w("div",{className:"navbar-start",children:r&&r.map(he=>w("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[w("div",{className:"icon-functions is-flex",ref:q,children:p&&p.map((he,Ee)=>L("div",{className:["item-icon "].join(""),ref:le&&le[Ee],children:[w("span",{children:w(Pe,{...he.buttonIcon,onClick:()=>{var _e;fe(he.uniqueValue),(_e=he.buttonIcon)!=null&&_e.onClick&&he.buttonIcon.onClick()}})}),he.badge&&w(Qt,{children:w("span",{className:"item-icon__badge-notif",children:w(yo,{...he.badge})})}),he.iconDropComponent&&w("div",{className:`drop-component drop-component__icon ${X[he.uniqueValue]&&p[Ee].uniqueValue===ae?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?w(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[w("div",{className:"user-mobile__icon",children:w(rt,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),m.userDropComponent&&w("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.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, ",m.name," ",m.lastName]}),w("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:[w(rt,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&w("span",{className:"user-icon__state",children:w(rt,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):w("img",{src:(De=(ye=m.avatar)==null?void 0:ye.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),w(rt,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&w("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]})}):w(Qt,{children:F?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:Q,children:[w("div",{className:"user-mobile__icon",children:w(rt,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>P(!R)})}),g&&w("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g})]}):w("div",{className:"navbar-item",children:w(Pe,{...f})})})]})]})})})},tU="",aO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[g,S]=ie.useState(!1),k=ie.useRef(null);return ie.useEffect(()=>{function N(R){k.current&&!k.current.contains(R.target)&&S(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),w("div",{className:`elv-component elv-header-table ${s||""}`,...m,children:L("div",{className:"header-table is-flex",children:[l&&w("span",{children:w(op,{...l})}),a&&a.map(N=>w("span",{children:w(Yf,{...N})},An())),u&&w(wv,{...u}),r&&w(Pe,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[w(Pe,{...p,onClick:()=>{S(!g),p.onClick&&p.onClick()}}),f&&g&&w("div",{className:"menuButton__dropComponent",children:f})]})]})})},nU="",iO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:g=!1,onShow:S,onClose:k,...N})=>{const[R,P]=ie.useState(a),[F,Z]=ie.useState(1),[A,K]=ie.useState(0),ae=ie.useRef(null),J=ie.useRef(null),[X,B]=ie.useState(p);ie.useEffect(()=>{P(a)},[a]),ie.useEffect(()=>{B(p)},[p]);const q=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&w("div",{className:"is-flex is-justify-content-end",children:w(Pe,{...l,onClick:()=>{P(!0),S&&S()}})}),R&&w("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:[w(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),k&&k()}}),w("p",{className:"title is-5",children:u})]}),r&&w("div",{className:"sidebar-container__search",children:w(op,{...r})}),w("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:q},children:m.slice((F-1)*p,F*p).map((le,fe)=>w("div",{ref:ae,className:`listItem ${g?" line-separation":""}`,children:le},An()))}),w("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&w(wv,{onChangePage:le=>{Z(le)},minItemsPerPage:X,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},rU="",oO=({className:s,title:l,show:u,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:m,position:g="right",footerbutton:S,...k})=>{const[N,R]=ie.useState(u);return ie.useEffect(()=>{R(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...k,children:[!N&&w("div",{className:"is-flex is-justify-content-end",children:w(Pe,{...r,onClick:()=>{R(!0)}})}),N&&w("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--${g}`,`${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:[w("div",{className:"sidebar-container__button mr-3",children:w(Pe,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),w("p",{className:"title is-5 has-text-link-dark",children:l})]}),w("div",{className:"sidebar-container__content",children:m})]}),S&&w("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[w("div",{className:"button-container__opt ml-5",children:p&&w(Pe,{...p})}),w("div",{className:"button-container__opt",children:f&&w(Pe,{...f})})]})})]})]})},aU="",lO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:g,addButton:S,removeButton:k,linkButton:N,iconButton:R,switcherLabel:P,switcher:F,labelRight:Z,...A})=>w("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&&w("div",{className:"left-backButton",children:w(Pe,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&w(rt,{...f}),m&&w("span",{className:"left-texts__principal__rectangle"}),a&&w("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&w("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[S||k?L("div",{className:"right-editButtons is-flex",children:[S&&w("span",{className:"right-editButtons__addButton",children:w(Pe,{...S})}),k&&w("span",{className:"right-editButtons__removeButton",children:w(Pe,{...k})})]}):w(Qt,{}),N&&w("span",{className:"right-linkButton",children:w(Pe,{...N})}),R&&w("span",{children:w(Pe,{...R})}),F&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[P&&w("p",{className:"right-switcher__label",children:P}),w(bx,{...F})]}),Z&&w("p",{className:"right-label",children:Z})]})]})}),iU="",sO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:g,buttonWidth:S,backButton:k,searchWidth:N,align:R,...P})=>w("div",{className:"elv-component elv-title",...P,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&w("div",{className:"title-component-container__backButton is-flex",children:w(Pe,{...k})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&w("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&w("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&&w("p",{className:"title-component__description",style:{width:r},children:a}),p&&w("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&w("span",{className:"title-component__actionButtons is-flex",children:f.map(F=>w("span",{children:w(Pe,{...F})},F.label))}),m&&w("span",{className:"title-component__search",style:{width:N},children:w(op,{...m})}),g&&w("span",{className:"title-component__button",style:{width:S},children:w(Pe,{...g})})]})]})]})}),oU="",uO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:g=!1,onShow:S,onClose:k,children:N,width:R="315px",showOpenButton:P=!1,...F})=>{const[Z,A]=ie.useState(a),[K,ae]=ie.useState(1),[J,X]=ie.useState(0),B=ie.useRef(null),q=ie.useRef(null),[le,fe]=ie.useState(p);ie.useEffect(()=>{A(a)},[a]),ie.useEffect(()=>{fe(p)},[p]);const Q=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...F,children:[!Z&&P&&l&&w("div",{className:"is-flex is-justify-content-end",children:w(Pe,{...l,onClick:()=>{A(!0),S&&S()}})}),Z&&w("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:[w(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),w("p",{className:"title is-5",children:u})]}),r&&w("div",{className:"sidebar-container__search",children:w(op,{...r})}),w("div",{ref:q,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:Q},children:N||m.slice((K-1)*le,K*le).map(ue=>w("div",{ref:B,className:`listItem ${g?" line-separation":""}`,children:ue},An()))}),!N&&(m==null?void 0:m.length)>le&&w("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:w(wv,{onChangePage:ue=>{ae(ue)},minItemsPerPage:le,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};it.Alert=rk,it.AssistanceDiary=ak,it.Autocomplete=Q2,it.Autocomplete2=K2,it.AverageAttended=ik,it.Badge=yo,it.Breadcrumb=lk,it.Button=Pe,it.CTA=_2,it.CardActivity=dk,it.CardCTA=sk,it.CardExpiration=uk,it.CardHorizontal=fk,it.CardUser=pk,it.CardVertical=ck,it.Cart=hk,it.Checkbox=$f,it.Collapse=E0,it.CollapseEdit=D0,it.CompleteDiary=S2,it.DatePickerComponent=G2,it.Dropdown=k2,it.EmptyState=D2,it.ErrorPage=E2,it.Filters=X2,it.Footer=tO,it.Header=rO,it.HeaderTable=aO,it.Icon=rt,it.IncomingCall=T2,it.Input=Bh,it.InputForm=Z2,it.Modal2=M2,it.ModalConfirm=R2,it.ModalConfirm3=P2,it.Pagination=wv,it.Pagination2=A2,it.PerformanceAssessment=W2,it.ProgressBar=_0,it.Radio=jg,it.Search=op,it.Select=Yf,it.ShiftDiary=V2,it.Sidebar=iO,it.SidebarChildren=uO,it.SidebarEmpty=oO,it.Stepper=B2,it.Subtitle=lO,it.Switch=bx,it.Tabs=q2,it.Textarea=J2,it.Title=sO,it.Tooltip=Ug,it.UploadFileItem=Cx,it.UploadFiles=eO,Object.defineProperties(it,{__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.40",
3
+ "version": "1.0.41",
4
4
  "description": "Un paquete de componentes minimizado",
5
5
  "main": "components.js",
6
6
  "module": "components.js",