dgrcorrientes-modulos 1.0.59 → 1.0.60
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 +22 -21
- package/components.umd.cjs +1 -1
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -31940,34 +31940,35 @@ const iL = ({
|
|
|
31940
31940
|
show: s,
|
|
31941
31941
|
button: a,
|
|
31942
31942
|
buttonShow: r,
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31943
|
+
buttonShowVisible: p,
|
|
31944
|
+
optionalButton: f,
|
|
31945
|
+
optionalButton2: v,
|
|
31946
|
+
children: m,
|
|
31947
|
+
position: _ = "right",
|
|
31948
|
+
footerbutton: S,
|
|
31949
|
+
...N
|
|
31949
31950
|
}) => {
|
|
31950
|
-
const [
|
|
31951
|
+
const [R, M] = Pe(s);
|
|
31951
31952
|
return Vt(() => {
|
|
31952
|
-
|
|
31953
|
+
M(s);
|
|
31953
31954
|
}, [s]), /* @__PURE__ */ L("div", {
|
|
31954
31955
|
className: "elv-component elv-sidebarEmpty",
|
|
31955
|
-
...
|
|
31956
|
-
children: [!
|
|
31956
|
+
...N,
|
|
31957
|
+
children: [p && !R && /* @__PURE__ */ y("div", {
|
|
31957
31958
|
className: "is-flex is-justify-content-end",
|
|
31958
31959
|
children: /* @__PURE__ */ y(Ae, {
|
|
31959
31960
|
...r,
|
|
31960
31961
|
onClick: () => {
|
|
31961
|
-
|
|
31962
|
+
M(!0);
|
|
31962
31963
|
}
|
|
31963
31964
|
})
|
|
31964
|
-
}),
|
|
31965
|
+
}), R && /* @__PURE__ */ y("div", {
|
|
31965
31966
|
className: "modal-background",
|
|
31966
31967
|
onClick: () => {
|
|
31967
|
-
|
|
31968
|
+
M(!1);
|
|
31968
31969
|
}
|
|
31969
31970
|
}), /* @__PURE__ */ L("div", {
|
|
31970
|
-
className: [`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${
|
|
31971
|
+
className: [`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${R ? "is-open" : ""}`, ` sidebar-container--${_}`, `${u ? " " + u : ""}`].join(""),
|
|
31971
31972
|
children: [/* @__PURE__ */ L("div", {
|
|
31972
31973
|
children: [/* @__PURE__ */ L("div", {
|
|
31973
31974
|
className: "sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",
|
|
@@ -31979,7 +31980,7 @@ const iL = ({
|
|
|
31979
31980
|
icon: "fa-solid fa-xmark",
|
|
31980
31981
|
size: "medium",
|
|
31981
31982
|
onClick: () => {
|
|
31982
|
-
|
|
31983
|
+
M(!1);
|
|
31983
31984
|
}
|
|
31984
31985
|
})
|
|
31985
31986
|
}), /* @__PURE__ */ y("p", {
|
|
@@ -31988,20 +31989,20 @@ const iL = ({
|
|
|
31988
31989
|
})]
|
|
31989
31990
|
}), /* @__PURE__ */ y("div", {
|
|
31990
31991
|
className: "sidebar-container__content",
|
|
31991
|
-
children:
|
|
31992
|
+
children: m
|
|
31992
31993
|
})]
|
|
31993
|
-
}),
|
|
31994
|
+
}), S && /* @__PURE__ */ y("div", {
|
|
31994
31995
|
children: /* @__PURE__ */ L("div", {
|
|
31995
31996
|
className: "button-container is-flex pl-5 pb-5",
|
|
31996
31997
|
children: [/* @__PURE__ */ y("div", {
|
|
31997
31998
|
className: "button-container__opt ml-5",
|
|
31998
|
-
children:
|
|
31999
|
-
...
|
|
31999
|
+
children: f && /* @__PURE__ */ y(Ae, {
|
|
32000
|
+
...f
|
|
32000
32001
|
})
|
|
32001
32002
|
}), /* @__PURE__ */ y("div", {
|
|
32002
32003
|
className: "button-container__opt",
|
|
32003
|
-
children:
|
|
32004
|
-
...
|
|
32004
|
+
children: v && /* @__PURE__ */ y(Ae, {
|
|
32005
|
+
...v
|
|
32005
32006
|
})
|
|
32006
32007
|
})]
|
|
32007
32008
|
})
|
package/components.umd.cjs
CHANGED
|
@@ -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,v=u.styles,m=u.strokeWidth,S=u.text,k=this.getPathRadius(),N=this.getPathRatio();return ae.createElement("svg",{className:p.root+" "+r,style:v.root,viewBox:"0 0 "+j2+" "+I2,"data-test-id":"CircularProgressbar"},this.props.background?ae.createElement("circle",{className:p.background,style:v.background,cx:Oy,cy:Ry,r:yx}):null,ae.createElement(wx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:m,style:v.trail}),ae.createElement(wx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:m,style:v.path}),S?ae.createElement("text",{className:p.text,style:v.text,x:Oy,y:Ry},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}(ae.Component);function $2(s){s.children;var l=U2(s,["children"]);return ae.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},ae.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},ae.createElement(H2,Ny({},l)),s.children?ae.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,v=s.pathTransitionDuration,m=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:v==null?void 0:v+"s"}),trail:bv({stroke:m,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:v})=>{const m=Math.round(f*2)/2;return y("div",{className:"elv-component elv-performanceAssessment",children:L("div",{className:["performanceAssessment box is-flex is-flex-direction-column p-5 is-gap-6 is-align-items-center",`${v?" "+v:""}`].join(""),children:[L("div",{className:"is-flex is-flex-direction-column is-gap-3",children:[y("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),y("div",{children:l==null?void 0:l.map(S=>y("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:S.date}))})]}),y("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L($2,{value:u,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:Y2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[y("div",{className:"is-size-4",children:y("strong",{children:`${u}%`})}),y("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[y("div",{className:"is-flex",children:r==null?void 0:r.map((S,k)=>{const N=m-k===.5;return L("div",{children:[!N&&y(Ke,{icon:S.star,className:"iconStar mr-3 is-size-5",color:k<m?"#16A34A":"#CED4DA"}),N&&y(Ke,{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]})]})]})})},$L="",V2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:v})=>y("div",{className:"elv-component elv-shiftdiary",children:L("div",{className:["shiftdiary box is-flex is-flex-direction-column p-5 is-gap-5",`${v?" "+v:""}`].join(""),children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center",children:[y("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),y(Pe,{label:"Ver m\xE1s",fill:"unstyled",color:"primary",className:"shiftdiary__button is-size-10px has-text-weight-medium",onClick:()=>f&&f()})]}),L("div",{className:" shiftdiary__boxdiary is-flex is-gap-5",children:[y("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(m=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("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:[y("div",{className:"has-text-weight-semibold has-text-grey-dark",children:m.name}),y("div",{className:"has-text-grey-dark",children:m.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:m.colorContains},children:[y(Ke,{icon:"fa-solid fa-circle",color:m.colorIcon,className:"mr-2"}),y("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:[y(Ke,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:a})]}),L("div",{className:"shiftdiary__assigned radius is-flex p-4 is-align-items-center is-fullw is-justify-content-space-between",children:[L("div",{className:"is-flex",children:[y(Ke,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),YL="",B2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(R=>R.label===l),[v,m]=ae.useState(f),[S,k]=ae.useState(f);if(v)var p=s.indexOf(v);ae.useEffect(()=>{var R=s.find(M=>M.label===l);m(R),v&&(p=s.indexOf(v)),k(R)},[l,s]);const N=R=>{k(R),u&&u(R),R.onClick&&R.onClick()};return y("div",{className:"elv-component elv-steps",...r,children:y("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:s.map((R,M)=>L("li",{className:`steps-segment ${s[M+1]!==void 0&&s[M+1]==v?"is-pre-active":""} ${R==v?"is-active":""}`,children:[y("span",{className:"steps-marker",onClick:()=>{M<=p?N(R):R.onClick&&R.onClick()},children:M<p?y("span",{className:"icon",children:y("i",{className:`${R.icon}`})}):y("span",{children:M+1})}),y("div",{className:`steps-content ${M<=p?"steps-content--completed":"steps-content--incompleted"} ${R===S&&"steps-content--position"}`,children:y("p",{className:"steps-content__item-label",children:R.label})})]},M))})})},WL="",q2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...v})=>y("div",{className:"elv-component elv-tabs",...v,children:y("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((m,S)=>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 ${S!==0?"ml-3":""} ${m.label==(u==null?void 0:u.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[y(Ke,{...m.icon,className:"boxed-container__icon mb-1 mr-1"}),y("p",{className:"boxed-container__label",children:Pt(m.label,30)})]}),y("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Pt(m.subtitle,20)})]}):y("li",{onClick:()=>{a&&a(m),m.sub_labels&&r&&r(m.sub_labels[0]),m.onClick&&m.onClick()},className:`item is-clickable ${S===0?"item--is-first":""} ${m.label==(u==null?void 0:u.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:Pt(m.label,30)}),m.sub_labels!==void 0&&l==="vertical"&&m.sub_labels.map((k,N)=>y("li",{onClick:()=>{a&&a(m),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${S===0?"sub-item__--first":""} ${m.label==(u==null?void 0:u.label)&&k.label==(p==null?void 0:p.label)?"sub-item--active":""} ${k.disabled?"sub-item--inactive":""}`,children:Pt(k.label,25)},An()))]},m.label+An()))})}),VL="",Q2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:v,maxCharacters:m=30,autocomplete:S,onChangeSelect:k,className:N,...R})=>{const[M,z]=ae.useState(f||""),[X,A]=ae.useState(""),[Q,ie]=ae.useState(f||""),[J,K]=ae.useState(!1),W=($,ne)=>{$==""?z(""):z(ne),A($),ie(ne),k&&k($),K(!1)};function G($){const ne=$.target.value;z(ne),K(!0)}const le=p.filter($=>$.label.toLowerCase().includes(M?M.toLowerCase():"")),ue=ae.useRef(null);return ae.useEffect(()=>{function $(ne){ue.current&&!ue.current.contains(ne.target)&&K(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ue]),ae.useEffect(()=>{const $=p.find(ne=>ne.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:v},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ue,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||Q,onChange:G,placeholder:a||"",onFocus:()=>K(!0),readOnly:!!X,autoComplete:S}),X&&Q!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${X==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,m||30)}),le==null?void 0:le.map(($,ne)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,m||30)]},ne))]})})]})})},K2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:v,minWidth:m,maxCharacters:S=30,onChangeSelect:k,className:N,...R})=>{const[M,z]=ae.useState(v||""),[X,A]=ae.useState(!1),Q=ae.useRef(null),ie=f!==void 0?f:M,J=G=>{f===void 0&&z(G.value),k==null||k(G),A(!1)},K=G=>{f===void 0&&z(G.target.value),A(!0)},W=p.filter(G=>(G.value+" "+G.label).toLowerCase().includes((ie||"").toLowerCase()));return ae.useEffect(()=>{const G=le=>{Q.current&&!Q.current.contains(le.target)&&A(!1)};return document.addEventListener("click",G),()=>document.removeEventListener("click",G)},[]),ae.useEffect(()=>{v&&f===void 0&&z(v)},[v,f]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N!=null?N:""}`,ref:Q,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,r?"autocomplete--error":"",u?"autocomplete--disabled":""].join(" "),children:[y("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ie,onChange:K,onFocus:()=>A(!0)}),ie&&!u&&y("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&z(""),k==null||k({value:"",label:""})},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),X&&y("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active `,children:y("ul",{className:"dropdown__list",children:W.length>0?W.map((G,le)=>y("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(G),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[y("span",{style:{fontWeight:"bold"},children:Pt(G.value,S)}),y("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Pt(G.label,S)})]})},le)):y("li",{className:"list__item",style:{padding:"6px 0",textAlign:"center",color:"#666"},children:"No se encontraron coincidencias"})})})]})})},BL="",G2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:v,maxCharacters:m=30,autocomplete:S,onChangeSelect:k,className:N,...R})=>{const[M,z]=ae.useState(f||""),[X,A]=ae.useState(""),[Q,ie]=ae.useState(f||""),[J,K]=ae.useState(!1),W=($,ne)=>{$==""?z(""):z(ne),A($),ie(ne),k&&k($,ne),K(!1)};function G($){const ne=$.target.value;z(ne),K(!0)}const le=p.filter($=>$.label.toLowerCase().includes(M?M.toLowerCase():"")),ue=ae.useRef(null);return ae.useEffect(()=>{function $(ne){ue.current&&!ue.current.contains(ne.target)&&K(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ue]),ae.useEffect(()=>{const $=p.find(ne=>ne.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:v},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ue,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||Q,onChange:G,placeholder:a||"",onFocus:()=>K(!0),readOnly:!!X,autoComplete:S,disabled:u}),X&&Q!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${X==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,m||30)}),le==null?void 0:le.map(($,ne)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,m||30)]},ne))]})})]})})},qL="",X2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:v,onStartDateChange:m,onEndDateChange:S,className:k,...N})=>{const[R,M]=ae.useState(u||new Date),[z,X]=ae.useState(a||new Date);return ae.useEffect(()=>{m&&m(R)},[R]),ae.useEffect(()=>{S&&S(z)},[z]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[y(yv,{selected:R,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:R,endDate:z,className:k}),y(yv,{selected:z,onChange:A=>X(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:R,endDate:z,minDate:R,className:k})]}):y("div",{className:"elv-component elv-datepicker",...N,children:y(yv,{selected:R,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:v||"es"})})},QL="",Z2=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:v,onChangeFilters:m,className:S,...k})=>{const[N,R]=ae.useState(!1),[M,z]=ae.useState(!1),[X,A]=ae.useState(!1),[Q,ie]=ae.useState([]),[J,K]=ae.useState([]),W=(ne,pe,ye)=>{var Ee,_e,Ne;const De=Q.findIndex(ze=>ze.name===pe),he=[...Q];if(ne==="radio")De>=0?he[De]={name:pe,value:[ye]}:he.push({name:pe,value:[ye]});else{const ze=(_e=(Ee=Q[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),ie(he)},G=()=>{m&&(m(Q),K(Q),A(!1),Q.length===0?z(!1):z(!0))},le=()=>{ie([]),document.querySelectorAll(".section__options").forEach(pe=>{pe.querySelectorAll("label").forEach(De=>{De.querySelectorAll("input").forEach(Ee=>{Ee.checked=!1})})}),z(!1),A(!1),m&&(m([]),K([]))};function ue(){return ne=>{R(!N)}}const $=ae.useRef(null);return ae.useEffect(()=>{function ne(pe){$.current&&!$.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",ne),()=>{document.removeEventListener("click",ne)}},[$]),y("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${S||""}`,ref:$,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:ue(),children:[y(Ke,{icon:"fa-solid fa-filter",className:"filter"}),y("span",{className:"placeholder",children:Pt(a,25)}),J.length>0&&y(yo,{color:"primary",text:J.length.toString()}),y(Ke,{icon:"fa-solid fa-chevron-down",className:"chebron"})]}),L("div",{className:`filter-container__dropdown filter--${s} ${N?"filter-container__dropdown--active":""}`,children:[p==null?void 0:p.map(ne=>{var pe;return L("div",{className:"section",children:[y("p",{className:"section__title is-5",children:ne.label}),y("div",{className:`section__options ${ne.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=ne.options)==null?void 0:pe.map(ye=>y("div",{children:L("label",{htmlFor:ye.name,className:`filter-label ${ne.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ye.iconItem&&y(Ke,{...ye.iconItem}),y("p",{className:"",children:ye.name})]}),ne.type=="radio"?y(jg,{label:"",name:ne.name,size:"md",value:ye.name,onCheck:()=>W(ne.type,ne.name,ye.name)}):y($f,{label:"",size:"md",value:ye.name,name:ne.name,onCheck:()=>W(ne.type,ne.name,ye.name)})]})},ye.name))})]},ne.name)}),X||M?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[X&&y("span",{className:"button-aplicate is-flex is-justify-content-center",children:y(Pe,{label:f.label!==void 0?Pt(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:G,...f})}),M&&y("span",{className:"button-cleaner is-flex is-justify-content-center",children:y(Pe,{...v,label:v.label!==void 0?Pt(v.label,25):"",trailingIcon:v.trailingIcon,onClick:le})})]}):y(Qt,{})]})]})})},KL="",J2=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:v,autocomplete:m,pattern:S,onRef:k,iconLeft:N,iconRight:R,isRounded:M,isLoading:z,isDisabled:X,hasError:A,className:Q,onChangeInput:ie,onKeyDown:J,onSearch:K,...W})=>{const G=ue=>{ue.key==="Enter"&&le()},le=()=>{var ne,pe;const ue=ae.useRef(null),$=k?(ne=k.current)==null?void 0:ne.value:(pe=ue.current)==null?void 0:pe.value;K&&K($||"")};return y("div",{className:"elv-component elv-input",...W,children:y("div",{className:`field e-input ${Q||""}`,children:L("p",{className:["control",`${N?" has-icons-left":""}`,`${R?" has-icons-right":""}`,`${z?" is-loading":""}`].join(""),children:[y("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${M?" is-rounded":""}`,`${A?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:ue=>{ie&&ie(ue)},defaultValue:f,value:v,ref:k,disabled:X,onKeyDown:J||G,autoComplete:m,pattern:S}),N&&y("span",{className:`icon is-left ${"is-"+r}`,children:y(Ke,{...N})}),R&&y("span",{className:`icon is-right ${"is-"+r}`,children:y(Ke,{...R})})]})})})},GL="",eO=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...v})=>y("div",{className:["elv-component"," elv-form-control"].join(""),...v,children:L("div",{className:`e-input-form ${f||""}`,children:[y("div",{children:l}),y(Bh,{...s}),L("div",{children:[y("span",{className:["helper",`${p?"text--error":""}`,`${a.length>r?"text--error":""}`,`${f||""}`].join(" "),children:u}),a.length&&r?L("span",{className:["length",,].join(" "),children:[a.length,"/",r]}):null]})]})}),XL="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:v,isDisabled:m,onChangeInput:S,onSearch:k,className:N,...R})=>{const M=ae.useRef(null),z=A=>{A.key==="Enter"&&X()},X=()=>{var Q;const A=(Q=M.current)==null?void 0:Q.value;k&&k(A||"")};return y("div",{className:"elv-component elv-search",...R,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[y("input",{className:`search-container__input + ${m?"is-disabled":""}`,type:"text",name:f,id:v,placeholder:u,onChange:A=>S&&S(A.target.value),defaultValue:a,value:r,ref:M,disabled:m,onKeyDown:z}),y("span",{className:"search-container__button-search",children:y(Pe,{...p,size:s,onClick:()=>{X()}})})]})})},ZL="",bx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[v,m]=ae.useState(),S=()=>{m(!v),r&&r(!v)};return y("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[y("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:S}),y("span",{className:"slider round"})]})})},JL="",tO=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:v=5,cols:m=50,className:S,...k})=>y("div",{className:"elv-component elv-textArea",children:y("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${S?" "+S:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:v,cols:m,...k})}),eU="",tU="",Cx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:v,...m})=>y("div",{className:"elv-component elv-uploadfile",...m,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${s?" "+s:""}`].join(""),children:[y("div",{className:"mr-5",children:r&&y(Ke,{icon:ok(r),className:"has-tc-primary-600",size:"24px"})}),L("div",{className:"uploadfile__info is-flex-direction-column ",children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center ",children:[L("div",{className:"is-flex is-align-items-center",children:[r?y("p",{className:"file_name is-size-7",children:r}):a?y("p",{className:"file_name is-size-7",children:a.name}):y(Qt,{}),y("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),y(Pe,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?y("div",{className:"is-size-7",children:D0(p)}):a?y("div",{className:"is-size-7",children:D0(a.size)}):y(Qt,{})]}),u&&y("div",{className:"uploadfile__progress pt-2",children:y(k0,{...l})})]}),y("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&v&&v(a)},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),nO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:v,onProgressFile:m,onPreviewFile:S,onDeleteFile:k,onErrorSize:N,onErrorExtensions:R,...M})=>{const[z,X]=ae.useState(!1),[A,Q]=ae.useState(()=>!v||(v==null?void 0:v.length)===0?f||[]:(f||[]).filter(ue=>{var ne;const $=(ne=ue.name.split(".").pop())==null?void 0:ne.toLowerCase();return v==null?void 0:v.includes($||"")})),ie=ue=>{ue.preventDefault(),X(!0)},J=()=>{X(!1)},K=ue=>{ue.preventDefault(),X(!1);const $=ue.dataTransfer.files;$&&G($)},W=ue=>{const $=ue.target.files;$&&G($)},G=ue=>{var $;if(console.log(""),ue.length<=r&&A.length+ue.length<=r)for(let ne=0;ne<ue.length;ne++){const pe=ue[ne],ye=pe.name.split("."),De=ye.length>1?($=ye.pop())==null?void 0:$.toLowerCase():"";if((v==null?void 0:v.length)===0||(v==null?void 0:v.includes(De||""))){if(pe.size<=a*1024*1024)m&&m(pe);else{N&&N(pe);return}Q(he=>[...he,pe])}else{R&&R(pe);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},le=ue=>{const $=A.filter(ne=>ne!==ue);Q($)};return y("div",{className:"elv-component elv-uploadfiles",...M,children:L("div",{className:["uploadfiles is-flex is-flex-direction-column is-align-items-center is-gap-4 p-5",`${s?" "+s:""}`].join(""),children:[y("div",{className:`uploadfiles__files file ${z?"dragging":""}`,onDragEnter:ie,onDragLeave:J,onDragOver:ue=>ue.preventDefault(),onDrop:K,children:L("label",{htmlFor:"file-input",className:"file-label",children:[y("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:W,multiple:!0}),L("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[y("span",{className:"file-icon",children:y(Ke,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),y("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),y("div",{className:"uploadfiles__data",children:u}),A.length>0?y("div",{children:A.map((ue,$)=>y("div",{className:"uploadfiles__download mb-3",children:y(Cx,{showBar:!!(p&&p[$]&&p[$]!==100),file:ue,file_name:ue.name,file_size:ue.size,onPreview:ne=>{S&&S(ne)},onDelete:ne=>{k&&k(ne),le(ne)},progressBar:{value:p&&p[$]?p[$]:0}})},$))}):null]})})},nU="",rO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,className:p,...f})=>{var v=new Date,m=v.getFullYear();return y("div",{className:"elv-component elv-footer",...f,children:L("div",{className:`footer-component is-flex is-flex-direction-column ${p||""}`,children:[L("div",{className:"footer-component__container",children:[s&&y(Qt,{children:s.map(S=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[y("p",{className:"column-item__title",children:S.title}),S.buttonLinks.map(k=>y("span",{className:"column-item__button",children:y(Pe,{...k})},An())),y("span",{className:"column-item__final",children:y(Pe,{...S.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[y("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(S=>y("span",{className:"final-item__button",children:y(Pe,{...S})},An())),y("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[y("img",{src:u,alt:"",width:"155px",height:"37px"}),y("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[y("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",m," - Rentas Corrientes"]})}),r&&y("div",{className:"end-button-links is-flex",children:r.map(S=>y("div",{className:"end-button-links__item is-flex",children:y("span",{className:"end-button-links__button",children:y(Pe,{...S})},S.label)},An()))})]})]})]})})},rU="",aO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",iO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:v,notUserDropComponent:m,...S})=>{var ne,pe,ye,De;const[k,N]=ae.useState(!1),[R,M]=ae.useState(!1),[z,X]=ae.useState(window.innerWidth<1217),[A,Q]=ae.useState(window.innerWidth<654),[ie,J]=ae.useState(null),[K,W]=ae.useState((ne=p==null?void 0:p.reduce((he,Ee)=>({...he,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?ne:{}),G=ae.useRef(null),le=p==null?void 0:p.map(()=>ae.useRef(null)),ue=he=>{J(Ee=>Ee===he?null:he),W(Ee=>({...Object.keys(Ee).reduce((_e,Ne)=>(_e[Ne]={active:Ne===he,name:Ee[Ne].name},_e),{})}))};ae.useEffect(()=>{function he(Ee){var _e;Object.values(K).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((_e=G.current)!=null&&_e.contains(Ee.target))&&(W(Ne=>Object.keys(Ne).reduce((ze,ct)=>({...ze,[ct]:{active:!1,name:Ne[ct].name}}),{})),J(null))}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[G,K]);const $=ae.useRef(null);return ae.useEffect(()=>{function he(Ee){$.current&&!$.current.contains(Ee.target)&&M(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[$]),ae.useEffect(()=>{function he(){X(window.innerWidth<1217),Q(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),y("div",{className:"elv-component elv-header",...S,children:y("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[y("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:y("img",{src:aO,alt:"Burger SVG"})}),u&&y(Qt,{children:A?y("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:y("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):y("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:y("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),y("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:y("div",{className:"navbar-start",children:r&&r.map(he=>y("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[y("div",{className:"icon-functions is-flex",ref:G,children:p&&p.map((he,Ee)=>L("div",{className:["item-icon "].join(""),ref:le&&le[Ee],children:[y("span",{children:y(Pe,{...he.buttonIcon,onClick:()=>{var _e;ue(he.uniqueValue),(_e=he.buttonIcon)!=null&&_e.onClick&&he.buttonIcon.onClick()}})}),he.badge&&y(Qt,{children:y("span",{className:"item-icon__badge-notif",children:y(yo,{...he.badge})})}),he.iconDropComponent&&y("div",{className:`drop-component drop-component__icon ${K[he.uniqueValue]&&p[Ee].uniqueValue===ie?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?y(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!R)})}),v.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:v.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:$,children:[L("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>M(!R),children:[L("div",{className:"user-sec__text",children:[L("p",{className:"names",children:["Hola, ",v.name," ",v.lastName]}),y("p",{className:"description",children:v.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(pe=v.avatar)!=null&&pe.icon?L("div",{className:"user-icon",children:[y(Ke,{icon:v.avatar.icon.icon}),v.avatar.stateColor&&y("span",{className:"user-icon__state",children:y(Ke,{icon:"fa fa-circle",color:v.avatar.stateColor,size:"10px"})})]}):y("img",{src:(De=(ye=v.avatar)==null?void 0:ye.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),y(Ke,{icon:"fa-solid fa-chevron-down"})]})]}),v.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:v.userDropComponent})]})}):y(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!R)})}),m&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m})]}):y("div",{className:"navbar-item",children:y(Pe,{...f})})})]})]})})})},aU="",oO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...v})=>{const[m,S]=ae.useState(!1),k=ae.useRef(null);return ae.useEffect(()=>{function N(R){k.current&&!k.current.contains(R.target)&&S(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),y("div",{className:`elv-component elv-header-table ${s||""}`,...v,children:L("div",{className:"header-table is-flex",children:[l&&y("span",{children:y(op,{...l})}),a&&a.map(N=>y("span",{children:y(Yf,{...N})},An())),u&&y(wv,{...u}),r&&y(Pe,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[y(Pe,{...p,onClick:()=>{S(!m),p.onClick&&p.onClick()}}),f&&m&&y("div",{className:"menuButton__dropComponent",children:f})]})]})})},iU="",lO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:v,listLineSeparation:m=!1,onShow:S,onClose:k,...N})=>{const[R,M]=ae.useState(a),[z,X]=ae.useState(1),[A,Q]=ae.useState(0),ie=ae.useRef(null),J=ae.useRef(null),[K,W]=ae.useState(p);ae.useEffect(()=>{M(a)},[a]),ae.useEffect(()=>{W(p)},[p]);const G=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{M(!0),S&&S()}})}),R&&y("div",{className:"modal-background",onClick:()=>{M(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${R?"is-open":""} ${s||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{M(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:G},children:v.slice((z-1)*p,z*p).map((le,ue)=>y("div",{ref:ie,className:`listItem ${m?" line-separation":""}`,children:le},An()))}),y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(v==null?void 0:v.length)>p&&y(wv,{onChangePage:le=>{X(le)},minItemsPerPage:K,totalItems:v.length,showTotals:!0,isColumn:!0})})]})]})},oU="",sO=({className:s,title:l,show:u,button:a,buttonShow:r,optionalButton:p,optionalButton2:f,children:v,position:m="right",footerbutton:S,...k})=>{const[N,R]=ae.useState(u);return ae.useEffect(()=>{R(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...k,children:[!N&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...r,onClick:()=>{R(!0)}})}),N&&y("div",{className:"modal-background",onClick:()=>{R(!1)}}),L("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${N?"is-open":""}`,` sidebar-container--${m}`,`${s?" "+s:""}`].join(""),children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",children:[y("div",{className:"sidebar-container__button mr-3",children:y(Pe,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1)}})}),y("p",{className:"title is-5 has-text-link-dark",children:l})]}),y("div",{className:"sidebar-container__content",children:v})]}),S&&y("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[y("div",{className:"button-container__opt ml-5",children:p&&y(Pe,{...p})}),y("div",{className:"button-container__opt",children:f&&y(Pe,{...f})})]})})]})]})},lU="",uO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:v,actionButtons:m,addButton:S,removeButton:k,linkButton:N,iconButton:R,switcherLabel:M,switcher:z,labelRight:X,...A})=>y("div",{className:"elv-component elv-subtitle",...A,children:L("div",{className:`subtitle-component ${l&&"subtitle-component--border-bot-gray"} ${s||""}`,children:[L("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&y("div",{className:"left-backButton",children:y(Pe,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&y(Ke,{...f}),v&&y("span",{className:"left-texts__principal__rectangle"}),a&&y("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&y("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[S||k?L("div",{className:"right-editButtons is-flex",children:[S&&y("span",{className:"right-editButtons__addButton",children:y(Pe,{...S})}),k&&y("span",{className:"right-editButtons__removeButton",children:y(Pe,{...k})})]}):y(Qt,{}),N&&y("span",{className:"right-linkButton",children:y(Pe,{...N})}),R&&y("span",{children:y(Pe,{...R})}),z&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[M&&y("p",{className:"right-switcher__label",children:M}),y(bx,{...z})]}),X&&y("p",{className:"right-label",children:X})]})]})}),sU="",cO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:v,button:m,buttonWidth:S,backButton:k,searchWidth:N,align:R,...M})=>y("div",{className:"elv-component elv-title",...M,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&y("div",{className:"title-component-container__backButton is-flex",children:y(Pe,{...k})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&y("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&y("p",{className:"title-component__title",children:u}),L("div",{className:`title-component__content is-flex title-component__content--${R} is-flex-direction-column ${k&&"title-component__content--backButton"}`,children:[a&&y("p",{className:"title-component__description",style:{width:r},children:a}),p&&y("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&y("span",{className:"title-component__actionButtons is-flex",children:f.map(z=>y("span",{children:y(Pe,{...z})},z.label))}),v&&y("span",{className:"title-component__search",style:{width:N},children:y(op,{...v})}),m&&y("span",{className:"title-component__button",style:{width:S},children:y(Pe,{...m})})]})]})]})}),uU="",dO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:v=[],listLineSeparation:m=!1,onShow:S,onClose:k,children:N,width:R="315px",showOpenButton:M=!1,...z})=>{const[X,A]=ae.useState(a),[Q,ie]=ae.useState(1),[J,K]=ae.useState(0),W=ae.useRef(null),G=ae.useRef(null),[le,ue]=ae.useState(p);ae.useEffect(()=>{A(a)},[a]),ae.useEffect(()=>{ue(p)},[p]);const $=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...z,children:[!X&&M&&l&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{A(!0),S&&S()}})}),X&&y("div",{className:"modal-background",onClick:()=>{A(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${s!=null?s:""}`,style:{width:R,right:X?"0":`-${R}`},children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:G,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:$},children:N||v.slice((Q-1)*le,Q*le).map(ne=>y("div",{ref:W,className:`listItem ${m?" line-separation":""}`,children:ne},An()))}),!N&&(v==null?void 0:v.length)>le&&y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:y(wv,{onChangePage:ne=>{ie(ne)},minItemsPerPage:le,totalItems:v.length,showTotals:!0,isColumn:!0})})]})]})};at.Alert=rk,at.AssistanceDiary=ak,at.Autocomplete=Q2,at.Autocomplete2=K2,at.Autocomplete3=G2,at.AverageAttended=ik,at.Badge=yo,at.Breadcrumb=lk,at.Button=Pe,at.CTA=_2,at.CardActivity=dk,at.CardCTA=sk,at.CardExpiration=uk,at.CardHorizontal=fk,at.CardUser=pk,at.CardVertical=ck,at.Cart=hk,at.Checkbox=$f,at.Collapse=T0,at.CollapseEdit=E0,at.CompleteDiary=S2,at.DatePickerComponent=X2,at.Dropdown=k2,at.EmptyState=D2,at.ErrorPage=E2,at.Filters=Z2,at.Footer=rO,at.Header=iO,at.HeaderTable=oO,at.Icon=Ke,at.IncomingCall=T2,at.Input=Bh,at.Input2=J2,at.InputForm=eO,at.ModalConfirm=R2,at.ModalConfirm2=M2,at.ModalConfirm3=P2,at.Pagination=wv,at.Pagination2=A2,at.PerformanceAssessment=W2,at.ProgressBar=k0,at.Radio=jg,at.Search=op,at.Select=Yf,at.ShiftDiary=V2,at.Sidebar=lO,at.SidebarChildren=dO,at.SidebarEmpty=sO,at.Stepper=B2,at.Subtitle=uO,at.Switch=bx,at.Tabs=q2,at.Textarea=tO,at.Title=cO,at.Tooltip=Ug,at.UploadFileItem=Cx,at.UploadFiles=nO,Object.defineProperties(at,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
311
|
+
`}function F2(s){var l=s.counterClockwise,u=s.dashRatio,a=s.pathRadius,r=Math.PI*2*a,p=(1-u)*r;return{strokeDasharray:r+"px "+r+"px",strokeDashoffset:(l?-p:p)+"px"}}var H2=function(s){L2(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},l.prototype.getPathRadius=function(){return yx-this.props.strokeWidth/2-this.getBackgroundPadding()},l.prototype.getPathRatio=function(){var u=this.props,a=u.value,r=u.minValue,p=u.maxValue,f=Math.min(Math.max(a,r),p);return(f-r)/(p-r)},l.prototype.render=function(){var u=this.props,a=u.circleRatio,r=u.className,p=u.classes,f=u.counterClockwise,v=u.styles,m=u.strokeWidth,S=u.text,k=this.getPathRadius(),N=this.getPathRatio();return ae.createElement("svg",{className:p.root+" "+r,style:v.root,viewBox:"0 0 "+j2+" "+I2,"data-test-id":"CircularProgressbar"},this.props.background?ae.createElement("circle",{className:p.background,style:v.background,cx:Oy,cy:Ry,r:yx}):null,ae.createElement(wx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:m,style:v.trail}),ae.createElement(wx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:m,style:v.path}),S?ae.createElement("text",{className:p.text,style:v.text,x:Oy,y:Ry},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}(ae.Component);function $2(s){s.children;var l=U2(s,["children"]);return ae.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},ae.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},ae.createElement(H2,Ny({},l)),s.children?ae.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,v=s.pathTransitionDuration,m=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:v==null?void 0:v+"s"}),trail:bv({stroke:m,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:v})=>{const m=Math.round(f*2)/2;return y("div",{className:"elv-component elv-performanceAssessment",children:L("div",{className:["performanceAssessment box is-flex is-flex-direction-column p-5 is-gap-6 is-align-items-center",`${v?" "+v:""}`].join(""),children:[L("div",{className:"is-flex is-flex-direction-column is-gap-3",children:[y("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),y("div",{children:l==null?void 0:l.map(S=>y("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:S.date}))})]}),y("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L($2,{value:u,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:Y2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[y("div",{className:"is-size-4",children:y("strong",{children:`${u}%`})}),y("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[y("div",{className:"is-flex",children:r==null?void 0:r.map((S,k)=>{const N=m-k===.5;return L("div",{children:[!N&&y(Ke,{icon:S.star,className:"iconStar mr-3 is-size-5",color:k<m?"#16A34A":"#CED4DA"}),N&&y(Ke,{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]})]})]})})},$L="",V2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:v})=>y("div",{className:"elv-component elv-shiftdiary",children:L("div",{className:["shiftdiary box is-flex is-flex-direction-column p-5 is-gap-5",`${v?" "+v:""}`].join(""),children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center",children:[y("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),y(Pe,{label:"Ver m\xE1s",fill:"unstyled",color:"primary",className:"shiftdiary__button is-size-10px has-text-weight-medium",onClick:()=>f&&f()})]}),L("div",{className:" shiftdiary__boxdiary is-flex is-gap-5",children:[y("div",{className:"item is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(m=>L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("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:[y("div",{className:"has-text-weight-semibold has-text-grey-dark",children:m.name}),y("div",{className:"has-text-grey-dark",children:m.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:m.colorContains},children:[y(Ke,{icon:"fa-solid fa-circle",color:m.colorIcon,className:"mr-2"}),y("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:[y(Ke,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:a})]}),L("div",{className:"shiftdiary__assigned radius is-flex p-4 is-align-items-center is-fullw is-justify-content-space-between",children:[L("div",{className:"is-flex",children:[y(Ke,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),y("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),YL="",B2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(R=>R.label===l),[v,m]=ae.useState(f),[S,k]=ae.useState(f);if(v)var p=s.indexOf(v);ae.useEffect(()=>{var R=s.find(M=>M.label===l);m(R),v&&(p=s.indexOf(v)),k(R)},[l,s]);const N=R=>{k(R),u&&u(R),R.onClick&&R.onClick()};return y("div",{className:"elv-component elv-steps",...r,children:y("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:s.map((R,M)=>L("li",{className:`steps-segment ${s[M+1]!==void 0&&s[M+1]==v?"is-pre-active":""} ${R==v?"is-active":""}`,children:[y("span",{className:"steps-marker",onClick:()=>{M<=p?N(R):R.onClick&&R.onClick()},children:M<p?y("span",{className:"icon",children:y("i",{className:`${R.icon}`})}):y("span",{children:M+1})}),y("div",{className:`steps-content ${M<=p?"steps-content--completed":"steps-content--incompleted"} ${R===S&&"steps-content--position"}`,children:y("p",{className:"steps-content__item-label",children:R.label})})]},M))})})},WL="",q2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...v})=>y("div",{className:"elv-component elv-tabs",...v,children:y("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((m,S)=>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 ${S!==0?"ml-3":""} ${m.label==(u==null?void 0:u.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:[L("div",{className:"boxed-container is-flex is-justify-content-center mb-1",children:[y(Ke,{...m.icon,className:"boxed-container__icon mb-1 mr-1"}),y("p",{className:"boxed-container__label",children:Pt(m.label,30)})]}),y("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Pt(m.subtitle,20)})]}):y("li",{onClick:()=>{a&&a(m),m.sub_labels&&r&&r(m.sub_labels[0]),m.onClick&&m.onClick()},className:`item is-clickable ${S===0?"item--is-first":""} ${m.label==(u==null?void 0:u.label)?"item--active":""} ${m.disabled?"item--disabled":""}`,children:Pt(m.label,30)}),m.sub_labels!==void 0&&l==="vertical"&&m.sub_labels.map((k,N)=>y("li",{onClick:()=>{a&&a(m),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${S===0?"sub-item__--first":""} ${m.label==(u==null?void 0:u.label)&&k.label==(p==null?void 0:p.label)?"sub-item--active":""} ${k.disabled?"sub-item--inactive":""}`,children:Pt(k.label,25)},An()))]},m.label+An()))})}),VL="",Q2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:v,maxCharacters:m=30,autocomplete:S,onChangeSelect:k,className:N,...R})=>{const[M,z]=ae.useState(f||""),[X,A]=ae.useState(""),[Q,ie]=ae.useState(f||""),[J,K]=ae.useState(!1),W=($,ne)=>{$==""?z(""):z(ne),A($),ie(ne),k&&k($),K(!1)};function G($){const ne=$.target.value;z(ne),K(!0)}const le=p.filter($=>$.label.toLowerCase().includes(M?M.toLowerCase():"")),ue=ae.useRef(null);return ae.useEffect(()=>{function $(ne){ue.current&&!ue.current.contains(ne.target)&&K(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ue]),ae.useEffect(()=>{const $=p.find(ne=>ne.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:v},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ue,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||Q,onChange:G,placeholder:a||"",onFocus:()=>K(!0),readOnly:!!X,autoComplete:S}),X&&Q!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${X==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,m||30)}),le==null?void 0:le.map(($,ne)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,m||30)]},ne))]})})]})})},K2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:v,minWidth:m,maxCharacters:S=30,onChangeSelect:k,className:N,...R})=>{const[M,z]=ae.useState(v||""),[X,A]=ae.useState(!1),Q=ae.useRef(null),ie=f!==void 0?f:M,J=G=>{f===void 0&&z(G.value),k==null||k(G),A(!1)},K=G=>{f===void 0&&z(G.target.value),A(!0)},W=p.filter(G=>(G.value+" "+G.label).toLowerCase().includes((ie||"").toLowerCase()));return ae.useEffect(()=>{const G=le=>{Q.current&&!Q.current.contains(le.target)&&A(!1)};return document.addEventListener("click",G),()=>document.removeEventListener("click",G)},[]),ae.useEffect(()=>{v&&f===void 0&&z(v)},[v,f]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...R,children:L("div",{className:`autocomplete-container ${N!=null?N:""}`,ref:Q,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,r?"autocomplete--error":"",u?"autocomplete--disabled":""].join(" "),children:[y("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ie,onChange:K,onFocus:()=>A(!0)}),ie&&!u&&y("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&z(""),k==null||k({value:"",label:""})},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),X&&y("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active `,children:y("ul",{className:"dropdown__list",children:W.length>0?W.map((G,le)=>y("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(G),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[y("span",{style:{fontWeight:"bold"},children:Pt(G.value,S)}),y("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Pt(G.label,S)})]})},le)):y("li",{className:"list__item",style:{padding:"6px 0",textAlign:"center",color:"#666"},children:"No se encontraron coincidencias"})})})]})})},BL="",G2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:v,maxCharacters:m=30,autocomplete:S,onChangeSelect:k,className:N,...R})=>{const[M,z]=ae.useState(f||""),[X,A]=ae.useState(""),[Q,ie]=ae.useState(f||""),[J,K]=ae.useState(!1),W=($,ne)=>{$==""?z(""):z(ne),A($),ie(ne),k&&k($,ne),K(!1)};function G($){const ne=$.target.value;z(ne),K(!0)}const le=p.filter($=>$.label.toLowerCase().includes(M?M.toLowerCase():"")),ue=ae.useRef(null);return ae.useEffect(()=>{function $(ne){ue.current&&!ue.current.contains(ne.target)&&K(!1)}return document.addEventListener("click",$),()=>{document.removeEventListener("click",$)}},[ue]),ae.useEffect(()=>{const $=p.find(ne=>ne.value===f);$?W($.value,$.label):W("","")},[f,p]),y("div",{className:"elv-component elv-autocomplete",style:{minWidth:v},...R,children:L("div",{className:`autocomplete-container ${N||""}`,ref:ue,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[y("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||Q,onChange:G,placeholder:a||"",onFocus:()=>K(!0),readOnly:!!X,autoComplete:S,disabled:u}),X&&Q!=""?y("div",{onClick:()=>{W("","")},className:"",children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),y("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${X==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Pt(a,m||30)}),le==null?void 0:le.map(($,ne)=>L("li",{className:"list__item",onClick:()=>{W($.value,$.label)},children:[$.icon&&y("i",{className:`item__icon ${$.icon}`}),Pt($.label,m||30)]},ne))]})})]})})},qL="",X2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:v,onStartDateChange:m,onEndDateChange:S,className:k,...N})=>{const[R,M]=ae.useState(u||new Date),[z,X]=ae.useState(a||new Date);return ae.useEffect(()=>{m&&m(R)},[R]),ae.useEffect(()=>{S&&S(z)},[z]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[y(yv,{selected:R,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:R,endDate:z,className:k}),y(yv,{selected:z,onChange:A=>X(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:R,endDate:z,minDate:R,className:k})]}):y("div",{className:"elv-component elv-datepicker",...N,children:y(yv,{selected:R,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:v||"es"})})},QL="",Z2=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:v,onChangeFilters:m,className:S,...k})=>{const[N,R]=ae.useState(!1),[M,z]=ae.useState(!1),[X,A]=ae.useState(!1),[Q,ie]=ae.useState([]),[J,K]=ae.useState([]),W=(ne,pe,ye)=>{var Ee,_e,Ne;const De=Q.findIndex(ze=>ze.name===pe),he=[...Q];if(ne==="radio")De>=0?he[De]={name:pe,value:[ye]}:he.push({name:pe,value:[ye]});else{const ze=(_e=(Ee=Q[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),ie(he)},G=()=>{m&&(m(Q),K(Q),A(!1),Q.length===0?z(!1):z(!0))},le=()=>{ie([]),document.querySelectorAll(".section__options").forEach(pe=>{pe.querySelectorAll("label").forEach(De=>{De.querySelectorAll("input").forEach(Ee=>{Ee.checked=!1})})}),z(!1),A(!1),m&&(m([]),K([]))};function ue(){return ne=>{R(!N)}}const $=ae.useRef(null);return ae.useEffect(()=>{function ne(pe){$.current&&!$.current.contains(pe.target)&&R(!1)}return document.addEventListener("click",ne),()=>{document.removeEventListener("click",ne)}},[$]),y("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${S||""}`,ref:$,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:ue(),children:[y(Ke,{icon:"fa-solid fa-filter",className:"filter"}),y("span",{className:"placeholder",children:Pt(a,25)}),J.length>0&&y(yo,{color:"primary",text:J.length.toString()}),y(Ke,{icon:"fa-solid fa-chevron-down",className:"chebron"})]}),L("div",{className:`filter-container__dropdown filter--${s} ${N?"filter-container__dropdown--active":""}`,children:[p==null?void 0:p.map(ne=>{var pe;return L("div",{className:"section",children:[y("p",{className:"section__title is-5",children:ne.label}),y("div",{className:`section__options ${ne.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(pe=ne.options)==null?void 0:pe.map(ye=>y("div",{children:L("label",{htmlFor:ye.name,className:`filter-label ${ne.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ye.iconItem&&y(Ke,{...ye.iconItem}),y("p",{className:"",children:ye.name})]}),ne.type=="radio"?y(jg,{label:"",name:ne.name,size:"md",value:ye.name,onCheck:()=>W(ne.type,ne.name,ye.name)}):y($f,{label:"",size:"md",value:ye.name,name:ne.name,onCheck:()=>W(ne.type,ne.name,ye.name)})]})},ye.name))})]},ne.name)}),X||M?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[X&&y("span",{className:"button-aplicate is-flex is-justify-content-center",children:y(Pe,{label:f.label!==void 0?Pt(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:G,...f})}),M&&y("span",{className:"button-cleaner is-flex is-justify-content-center",children:y(Pe,{...v,label:v.label!==void 0?Pt(v.label,25):"",trailingIcon:v.trailingIcon,onClick:le})})]}):y(Qt,{})]})]})})},KL="",J2=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:v,autocomplete:m,pattern:S,onRef:k,iconLeft:N,iconRight:R,isRounded:M,isLoading:z,isDisabled:X,hasError:A,className:Q,onChangeInput:ie,onKeyDown:J,onSearch:K,...W})=>{const G=ue=>{ue.key==="Enter"&&le()},le=()=>{var ne,pe;const ue=ae.useRef(null),$=k?(ne=k.current)==null?void 0:ne.value:(pe=ue.current)==null?void 0:pe.value;K&&K($||"")};return y("div",{className:"elv-component elv-input",...W,children:y("div",{className:`field e-input ${Q||""}`,children:L("p",{className:["control",`${N?" has-icons-left":""}`,`${R?" has-icons-right":""}`,`${z?" is-loading":""}`].join(""),children:[y("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${M?" is-rounded":""}`,`${A?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:ue=>{ie&&ie(ue)},defaultValue:f,value:v,ref:k,disabled:X,onKeyDown:J||G,autoComplete:m,pattern:S}),N&&y("span",{className:`icon is-left ${"is-"+r}`,children:y(Ke,{...N})}),R&&y("span",{className:`icon is-right ${"is-"+r}`,children:y(Ke,{...R})})]})})})},GL="",eO=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...v})=>y("div",{className:["elv-component"," elv-form-control"].join(""),...v,children:L("div",{className:`e-input-form ${f||""}`,children:[y("div",{children:l}),y(Bh,{...s}),L("div",{children:[y("span",{className:["helper",`${p?"text--error":""}`,`${a.length>r?"text--error":""}`,`${f||""}`].join(" "),children:u}),a.length&&r?L("span",{className:["length",,].join(" "),children:[a.length,"/",r]}):null]})]})}),XL="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:v,isDisabled:m,onChangeInput:S,onSearch:k,className:N,...R})=>{const M=ae.useRef(null),z=A=>{A.key==="Enter"&&X()},X=()=>{var Q;const A=(Q=M.current)==null?void 0:Q.value;k&&k(A||"")};return y("div",{className:"elv-component elv-search",...R,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[y("input",{className:`search-container__input + ${m?"is-disabled":""}`,type:"text",name:f,id:v,placeholder:u,onChange:A=>S&&S(A.target.value),defaultValue:a,value:r,ref:M,disabled:m,onKeyDown:z}),y("span",{className:"search-container__button-search",children:y(Pe,{...p,size:s,onClick:()=>{X()}})})]})})},ZL="",bx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[v,m]=ae.useState(),S=()=>{m(!v),r&&r(!v)};return y("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[y("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:S}),y("span",{className:"slider round"})]})})},JL="",tO=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:v=5,cols:m=50,className:S,...k})=>y("div",{className:"elv-component elv-textArea",children:y("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${S?" "+S:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:v,cols:m,...k})}),eU="",tU="",Cx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:v,...m})=>y("div",{className:"elv-component elv-uploadfile",...m,children:L("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${s?" "+s:""}`].join(""),children:[y("div",{className:"mr-5",children:r&&y(Ke,{icon:ok(r),className:"has-tc-primary-600",size:"24px"})}),L("div",{className:"uploadfile__info is-flex-direction-column ",children:[L("div",{className:"is-flex is-justify-content-space-between is-align-items-center ",children:[L("div",{className:"is-flex is-align-items-center",children:[r?y("p",{className:"file_name is-size-7",children:r}):a?y("p",{className:"file_name is-size-7",children:a.name}):y(Qt,{}),y("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),y(Pe,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?y("div",{className:"is-size-7",children:D0(p)}):a?y("div",{className:"is-size-7",children:D0(a.size)}):y(Qt,{})]}),u&&y("div",{className:"uploadfile__progress pt-2",children:y(k0,{...l})})]}),y("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&v&&v(a)},children:y(Ke,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),nO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:v,onProgressFile:m,onPreviewFile:S,onDeleteFile:k,onErrorSize:N,onErrorExtensions:R,...M})=>{const[z,X]=ae.useState(!1),[A,Q]=ae.useState(()=>!v||(v==null?void 0:v.length)===0?f||[]:(f||[]).filter(ue=>{var ne;const $=(ne=ue.name.split(".").pop())==null?void 0:ne.toLowerCase();return v==null?void 0:v.includes($||"")})),ie=ue=>{ue.preventDefault(),X(!0)},J=()=>{X(!1)},K=ue=>{ue.preventDefault(),X(!1);const $=ue.dataTransfer.files;$&&G($)},W=ue=>{const $=ue.target.files;$&&G($)},G=ue=>{var $;if(console.log(""),ue.length<=r&&A.length+ue.length<=r)for(let ne=0;ne<ue.length;ne++){const pe=ue[ne],ye=pe.name.split("."),De=ye.length>1?($=ye.pop())==null?void 0:$.toLowerCase():"";if((v==null?void 0:v.length)===0||(v==null?void 0:v.includes(De||""))){if(pe.size<=a*1024*1024)m&&m(pe);else{N&&N(pe);return}Q(he=>[...he,pe])}else{R&&R(pe);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},le=ue=>{const $=A.filter(ne=>ne!==ue);Q($)};return y("div",{className:"elv-component elv-uploadfiles",...M,children:L("div",{className:["uploadfiles is-flex is-flex-direction-column is-align-items-center is-gap-4 p-5",`${s?" "+s:""}`].join(""),children:[y("div",{className:`uploadfiles__files file ${z?"dragging":""}`,onDragEnter:ie,onDragLeave:J,onDragOver:ue=>ue.preventDefault(),onDrop:K,children:L("label",{htmlFor:"file-input",className:"file-label",children:[y("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:W,multiple:!0}),L("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[y("span",{className:"file-icon",children:y(Ke,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),y("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),y("div",{className:"uploadfiles__data",children:u}),A.length>0?y("div",{children:A.map((ue,$)=>y("div",{className:"uploadfiles__download mb-3",children:y(Cx,{showBar:!!(p&&p[$]&&p[$]!==100),file:ue,file_name:ue.name,file_size:ue.size,onPreview:ne=>{S&&S(ne)},onDelete:ne=>{k&&k(ne),le(ne)},progressBar:{value:p&&p[$]?p[$]:0}})},$))}):null]})})},nU="",rO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,className:p,...f})=>{var v=new Date,m=v.getFullYear();return y("div",{className:"elv-component elv-footer",...f,children:L("div",{className:`footer-component is-flex is-flex-direction-column ${p||""}`,children:[L("div",{className:"footer-component__container",children:[s&&y(Qt,{children:s.map(S=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[y("p",{className:"column-item__title",children:S.title}),S.buttonLinks.map(k=>y("span",{className:"column-item__button",children:y(Pe,{...k})},An())),y("span",{className:"column-item__final",children:y(Pe,{...S.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[y("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(S=>y("span",{className:"final-item__button",children:y(Pe,{...S})},An())),y("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[y("img",{src:u,alt:"",width:"155px",height:"37px"}),y("img",{src:a,alt:"",width:"261px",height:"37px"})]}),L("div",{className:"copy is-flex",children:[y("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",m," - Rentas Corrientes"]})}),r&&y("div",{className:"end-button-links is-flex",children:r.map(S=>y("div",{className:"end-button-links__item is-flex",children:y("span",{className:"end-button-links__button",children:y(Pe,{...S})},S.label)},An()))})]})]})]})})},rU="",aO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",iO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:v,notUserDropComponent:m,...S})=>{var ne,pe,ye,De;const[k,N]=ae.useState(!1),[R,M]=ae.useState(!1),[z,X]=ae.useState(window.innerWidth<1217),[A,Q]=ae.useState(window.innerWidth<654),[ie,J]=ae.useState(null),[K,W]=ae.useState((ne=p==null?void 0:p.reduce((he,Ee)=>({...he,[Ee.uniqueValue]:{active:!1,name:null}}),{}))!=null?ne:{}),G=ae.useRef(null),le=p==null?void 0:p.map(()=>ae.useRef(null)),ue=he=>{J(Ee=>Ee===he?null:he),W(Ee=>({...Object.keys(Ee).reduce((_e,Ne)=>(_e[Ne]={active:Ne===he,name:Ee[Ne].name},_e),{})}))};ae.useEffect(()=>{function he(Ee){var _e;Object.values(K).some(Ne=>Ne.active)&&!Ee.defaultPrevented&&!((_e=G.current)!=null&&_e.contains(Ee.target))&&(W(Ne=>Object.keys(Ne).reduce((ze,ct)=>({...ze,[ct]:{active:!1,name:Ne[ct].name}}),{})),J(null))}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[G,K]);const $=ae.useRef(null);return ae.useEffect(()=>{function he(Ee){$.current&&!$.current.contains(Ee.target)&&M(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[$]),ae.useEffect(()=>{function he(){X(window.innerWidth<1217),Q(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),y("div",{className:"elv-component elv-header",...S,children:y("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[y("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:y("img",{src:aO,alt:"Burger SVG"})}),u&&y(Qt,{children:A?y("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:y("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):y("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:y("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),y("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:y("div",{className:"navbar-start",children:r&&r.map(he=>y("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[y("div",{className:"icon-functions is-flex",ref:G,children:p&&p.map((he,Ee)=>L("div",{className:["item-icon "].join(""),ref:le&&le[Ee],children:[y("span",{children:y(Pe,{...he.buttonIcon,onClick:()=>{var _e;ue(he.uniqueValue),(_e=he.buttonIcon)!=null&&_e.onClick&&he.buttonIcon.onClick()}})}),he.badge&&y(Qt,{children:y("span",{className:"item-icon__badge-notif",children:y(yo,{...he.badge})})}),he.iconDropComponent&&y("div",{className:`drop-component drop-component__icon ${K[he.uniqueValue]&&p[Ee].uniqueValue===ie?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?y(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!R)})}),v.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:v.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:$,children:[L("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>M(!R),children:[L("div",{className:"user-sec__text",children:[L("p",{className:"names",children:["Hola, ",v.name," ",v.lastName]}),y("p",{className:"description",children:v.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(pe=v.avatar)!=null&&pe.icon?L("div",{className:"user-icon",children:[y(Ke,{icon:v.avatar.icon.icon}),v.avatar.stateColor&&y("span",{className:"user-icon__state",children:y(Ke,{icon:"fa fa-circle",color:v.avatar.stateColor,size:"10px"})})]}):y("img",{src:(De=(ye=v.avatar)==null?void 0:ye.img)==null?void 0:De.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),y(Ke,{icon:"fa-solid fa-chevron-down"})]})]}),v.userDropComponent&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:v.userDropComponent})]})}):y(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:$,children:[y("div",{className:"user-mobile__icon",children:y(Ke,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!R)})}),m&&y("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m})]}):y("div",{className:"navbar-item",children:y(Pe,{...f})})})]})]})})})},aU="",oO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...v})=>{const[m,S]=ae.useState(!1),k=ae.useRef(null);return ae.useEffect(()=>{function N(R){k.current&&!k.current.contains(R.target)&&S(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),y("div",{className:`elv-component elv-header-table ${s||""}`,...v,children:L("div",{className:"header-table is-flex",children:[l&&y("span",{children:y(op,{...l})}),a&&a.map(N=>y("span",{children:y(Yf,{...N})},An())),u&&y(wv,{...u}),r&&y(Pe,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[y(Pe,{...p,onClick:()=>{S(!m),p.onClick&&p.onClick()}}),f&&m&&y("div",{className:"menuButton__dropComponent",children:f})]})]})})},iU="",lO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:v,listLineSeparation:m=!1,onShow:S,onClose:k,...N})=>{const[R,M]=ae.useState(a),[z,X]=ae.useState(1),[A,Q]=ae.useState(0),ie=ae.useRef(null),J=ae.useRef(null),[K,W]=ae.useState(p);ae.useEffect(()=>{M(a)},[a]),ae.useEffect(()=>{W(p)},[p]);const G=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!R&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{M(!0),S&&S()}})}),R&&y("div",{className:"modal-background",onClick:()=>{M(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${R?"is-open":""} ${s||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{M(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:G},children:v.slice((z-1)*p,z*p).map((le,ue)=>y("div",{ref:ie,className:`listItem ${m?" line-separation":""}`,children:le},An()))}),y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(v==null?void 0:v.length)>p&&y(wv,{onChangePage:le=>{X(le)},minItemsPerPage:K,totalItems:v.length,showTotals:!0,isColumn:!0})})]})]})},oU="",sO=({className:s,title:l,show:u,button:a,buttonShow:r,buttonShowVisible:p,optionalButton:f,optionalButton2:v,children:m,position:S="right",footerbutton:k,...N})=>{const[R,M]=ae.useState(u);return ae.useEffect(()=>{M(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...N,children:[p&&!R&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...r,onClick:()=>{M(!0)}})}),R&&y("div",{className:"modal-background",onClick:()=>{M(!1)}}),L("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${R?"is-open":""}`,` sidebar-container--${S}`,`${s?" "+s:""}`].join(""),children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-6 is-gap-4",children:[y("div",{className:"sidebar-container__button mr-3",children:y(Pe,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{M(!1)}})}),y("p",{className:"title is-5 has-text-link-dark",children:l})]}),y("div",{className:"sidebar-container__content",children:m})]}),k&&y("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[y("div",{className:"button-container__opt ml-5",children:f&&y(Pe,{...f})}),y("div",{className:"button-container__opt",children:v&&y(Pe,{...v})})]})})]})]})},lU="",uO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:v,actionButtons:m,addButton:S,removeButton:k,linkButton:N,iconButton:R,switcherLabel:M,switcher:z,labelRight:X,...A})=>y("div",{className:"elv-component elv-subtitle",...A,children:L("div",{className:`subtitle-component ${l&&"subtitle-component--border-bot-gray"} ${s||""}`,children:[L("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&y("div",{className:"left-backButton",children:y(Pe,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&y(Ke,{...f}),v&&y("span",{className:"left-texts__principal__rectangle"}),a&&y("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&y("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[S||k?L("div",{className:"right-editButtons is-flex",children:[S&&y("span",{className:"right-editButtons__addButton",children:y(Pe,{...S})}),k&&y("span",{className:"right-editButtons__removeButton",children:y(Pe,{...k})})]}):y(Qt,{}),N&&y("span",{className:"right-linkButton",children:y(Pe,{...N})}),R&&y("span",{children:y(Pe,{...R})}),z&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[M&&y("p",{className:"right-switcher__label",children:M}),y(bx,{...z})]}),X&&y("p",{className:"right-label",children:X})]})]})}),sU="",cO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:v,button:m,buttonWidth:S,backButton:k,searchWidth:N,align:R,...M})=>y("div",{className:"elv-component elv-title",...M,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&y("div",{className:"title-component-container__backButton is-flex",children:y(Pe,{...k})}),L("div",{className:`title-component title-component--${R} is-flex is-flex-direction-column`,children:[l&&y("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&y("p",{className:"title-component__title",children:u}),L("div",{className:`title-component__content is-flex title-component__content--${R} is-flex-direction-column ${k&&"title-component__content--backButton"}`,children:[a&&y("p",{className:"title-component__description",style:{width:r},children:a}),p&&y("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&y("span",{className:"title-component__actionButtons is-flex",children:f.map(z=>y("span",{children:y(Pe,{...z})},z.label))}),v&&y("span",{className:"title-component__search",style:{width:N},children:y(op,{...v})}),m&&y("span",{className:"title-component__button",style:{width:S},children:y(Pe,{...m})})]})]})]})}),uU="",dO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:v=[],listLineSeparation:m=!1,onShow:S,onClose:k,children:N,width:R="315px",showOpenButton:M=!1,...z})=>{const[X,A]=ae.useState(a),[Q,ie]=ae.useState(1),[J,K]=ae.useState(0),W=ae.useRef(null),G=ae.useRef(null),[le,ue]=ae.useState(p);ae.useEffect(()=>{A(a)},[a]),ae.useEffect(()=>{ue(p)},[p]);const $=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...z,children:[!X&&M&&l&&y("div",{className:"is-flex is-justify-content-end",children:y(Pe,{...l,onClick:()=>{A(!0),S&&S()}})}),X&&y("div",{className:"modal-background",onClick:()=>{A(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${s!=null?s:""}`,style:{width:R,right:X?"0":`-${R}`},children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[y(Pe,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),y("p",{className:"title is-5",children:u})]}),r&&y("div",{className:"sidebar-container__search",children:y(op,{...r})}),y("div",{ref:G,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:$},children:N||v.slice((Q-1)*le,Q*le).map(ne=>y("div",{ref:W,className:`listItem ${m?" line-separation":""}`,children:ne},An()))}),!N&&(v==null?void 0:v.length)>le&&y("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:y(wv,{onChangePage:ne=>{ie(ne)},minItemsPerPage:le,totalItems:v.length,showTotals:!0,isColumn:!0})})]})]})};at.Alert=rk,at.AssistanceDiary=ak,at.Autocomplete=Q2,at.Autocomplete2=K2,at.Autocomplete3=G2,at.AverageAttended=ik,at.Badge=yo,at.Breadcrumb=lk,at.Button=Pe,at.CTA=_2,at.CardActivity=dk,at.CardCTA=sk,at.CardExpiration=uk,at.CardHorizontal=fk,at.CardUser=pk,at.CardVertical=ck,at.Cart=hk,at.Checkbox=$f,at.Collapse=T0,at.CollapseEdit=E0,at.CompleteDiary=S2,at.DatePickerComponent=X2,at.Dropdown=k2,at.EmptyState=D2,at.ErrorPage=E2,at.Filters=Z2,at.Footer=rO,at.Header=iO,at.HeaderTable=oO,at.Icon=Ke,at.IncomingCall=T2,at.Input=Bh,at.Input2=J2,at.InputForm=eO,at.ModalConfirm=R2,at.ModalConfirm2=M2,at.ModalConfirm3=P2,at.Pagination=wv,at.Pagination2=A2,at.PerformanceAssessment=W2,at.ProgressBar=k0,at.Radio=jg,at.Search=op,at.Select=Yf,at.ShiftDiary=V2,at.Sidebar=lO,at.SidebarChildren=dO,at.SidebarEmpty=sO,at.Stepper=B2,at.Subtitle=uO,at.Switch=bx,at.Tabs=q2,at.Textarea=tO,at.Title=cO,at.Tooltip=Ug,at.UploadFileItem=Cx,at.UploadFiles=nO,Object.defineProperties(at,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|