dgrcorrientes-modulos 1.0.85 → 1.0.87
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 +3 -3
- package/components.umd.cjs +2 -2
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -838,14 +838,14 @@ const kA = ({
|
|
|
838
838
|
}), /* @__PURE__ */ L("div", {
|
|
839
839
|
className: "notification__text",
|
|
840
840
|
children: [p && p.map((S, T) => /* @__PURE__ */ L("div", {
|
|
841
|
-
children: [S.labelTitle !== void 0 && /* @__PURE__ */ v("
|
|
841
|
+
children: [S.labelTitle !== void 0 && /* @__PURE__ */ v("div", {
|
|
842
842
|
className: "__title",
|
|
843
843
|
children: /* @__PURE__ */ v("div", {
|
|
844
844
|
dangerouslySetInnerHTML: {
|
|
845
845
|
__html: S.labelTitle
|
|
846
846
|
}
|
|
847
847
|
})
|
|
848
|
-
}), /* @__PURE__ */ v("
|
|
848
|
+
}), /* @__PURE__ */ v("div", {
|
|
849
849
|
className: "__label",
|
|
850
850
|
children: /* @__PURE__ */ v("div", {
|
|
851
851
|
dangerouslySetInnerHTML: {
|
|
@@ -32519,7 +32519,7 @@ const cL = ({
|
|
|
32519
32519
|
className: `left-texts__principal__label left-texts__principal__label--${s}`,
|
|
32520
32520
|
children: a
|
|
32521
32521
|
})]
|
|
32522
|
-
}), r && /* @__PURE__ */ v("
|
|
32522
|
+
}), r && /* @__PURE__ */ v("div", {
|
|
32523
32523
|
className: `left-texts__description left-texts__description--${s}`,
|
|
32524
32524
|
children: r
|
|
32525
32525
|
})]
|
package/components.umd.cjs
CHANGED
|
@@ -26,7 +26,7 @@ Check the render method of \``+B+"`."}return""}}function wn(B){{if(B!==void 0){v
|
|
|
26
26
|
|
|
27
27
|
Check your code at `+_e+":"+je+"."}return""}}var $r={};function gl(B){{var _e=Ln();if(!_e){var je=typeof B=="string"?B:B.displayName||B.name;je&&(_e=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+je+">.")}return _e}}function _a(B,_e){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var je=gl(_e);if($r[je])return;$r[je]=!0;var ct="";B&&B._owner&&B._owner!==mt.current&&(ct=" It was passed a child from "+he(B._owner.type)+"."),vn(B),se('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',je,ct),vn(null)}}function wr(B,_e){{if(typeof B!="object")return;if(Array.isArray(B))for(var je=0;je<B.length;je++){var ct=B[je];dn(ct)&&_a(ct,_e)}else if(dn(B))B._store&&(B._store.validated=!0);else if(B){var Ut=V(B);if(typeof Ut=="function"&&Ut!==B.entries)for(var dt=Ut.call(B),jt;!(jt=dt.next()).done;)dn(jt.value)&&_a(jt.value,_e)}}}function si(B){{var _e=B.type;if(_e==null||typeof _e=="string")return;var je;if(typeof _e=="function")je=_e.propTypes;else if(typeof _e=="object"&&(_e.$$typeof===x||_e.$$typeof===O))je=_e.propTypes;else return;if(je){var ct=he(_e);Xt(je,B.props,"prop",ct,B)}else if(_e.PropTypes!==void 0&&!cn){cn=!0;var Ut=he(_e);se("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ut||"Unknown")}typeof _e.getDefaultProps=="function"&&!_e.getDefaultProps.isReactClassApproved&&se("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(B){{for(var _e=Object.keys(B.props),je=0;je<_e.length;je++){var ct=_e[je];if(ct!=="children"&&ct!=="key"){vn(B),se("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ct),vn(null);break}}B.ref!==null&&(vn(B),se("Invalid attribute `ref` supplied to `React.Fragment`."),vn(null))}}function Lr(B,_e,je,ct,Ut,dt){{var jt=de(B);if(!jt){var Ft="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Ft+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var fn=wn(Ut);fn?Ft+=fn:Ft+=Ln();var nn;B===null?nn="null":Array.isArray(B)?nn="array":B!==void 0&&B.$$typeof===a?(nn="<"+(he(B.type)||"Unknown")+" />",Ft=" Did you accidentally export a JSX literal instead of a component?"):nn=typeof B,se("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",nn,Ft)}var pn=rt(B,_e,je,Ut,dt);if(pn==null)return pn;if(jt){var ea=_e.children;if(ea!==void 0)if(ct)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],B);Object.freeze&&Object.freeze(ea)}else se("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wr(ea,B)}return B===s.Fragment?fa(pn):si(pn),pn}}function Hr(B,_e,je){return Lr(B,_e,je,!0)}function $a(B,_e,je){return Lr(B,_e,je,!1)}var Ur=$a,Hi=Hr;s.jsx=Ur,s.jsxs=Hi}()}(jg)),jg}(function(s){process.env.NODE_ENV==="production"?s.exports=nk():s.exports=rk()})(Wh);const Qt=Wh.exports.Fragment,v=Wh.exports.jsx,L=Wh.exports.jsxs,Ve=({icon:s,className:l,type:u,size:a="16px",size_height:r,color:p,onClick:f,...m})=>{const g=re.useRef(null);re.useEffect(()=>{u=="svg_icon"&&x(s).then(k=>{g.current&&s&&(g.current.innerHTML=k)})},[g.current,s]);function x(k){return fetch(k).then(N=>N.text())}return u==="svg_icon"?v("span",{className:`svg_icon ${l}`,ref:g,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...m}):v("div",{className:"elv-component elv-icon",...m,children:v("i",{className:`fa_icon ${s} ${l}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},Ae=({color:s="primary",type:l="button",size:u="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:m=!1,disabled:g=!1,icon:x,icon_type:k="fa_icon",icon_size:N,icon_size_height:O,icon_color:M,icon_className:z,trailingIcon:$=!1,label:A,onClick:q,className:ne,...J})=>{const Q=W=>{W.stopPropagation(),q&&q()};return v("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...J,children:v("button",{type:l,className:["button",`${a==="solid"||a==="outline"?" is-"+s+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${u!=="normal"?" is-"+u:""}`,`${$?" button__icon--trailing":""}`,`${m?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${ne?" "+ne:""}`].join(""),onClick:W=>{Q(W)},disabled:g,children:v("div",{className:"button-content is-flex",children:$?L(Qt,{children:[A,x&&v(Ve,{icon:x,type:k,color:M,size:N,size_height:O,className:"button__icon "+z})]}):L(Qt,{children:[x&&v(Ve,{icon:x,type:k,color:M,size:N,size_height:O,className:"button__icon "+z}),A]})})})})},cL="",ak=({type:s,className:l,fill:u,accent:a,icon:r,labelTitle:p,label:f,key:m,isButton:g,button:x,...k})=>v("div",{className:"elv-component elv-notification",...k,children:L("div",{className:`notification --type-${s} --fill-${u} --accent-${a} ${l||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p!==void 0&&v("p",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:p}})}),v("p",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:f}})}),g&&x!==void 0&&v("div",{className:"notification__button",children:v(Ae,{...x[0]})})]})]})},"elv-alert"+m?m:""),dL="",ik=({type:s,className:l,fill:u,accent:a,icon:r,renglones:p,key:f,isButton:m,button:g,...x})=>v("div",{className:"elv-component elv-notification",...x,children:L("div",{className:`notification --type-${s} --fill-${u} --accent-${a} ${l||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p&&p.map((k,N)=>L("div",{children:[k.labelTitle!==void 0&&v("p",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:k.labelTitle}})}),v("p",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:k.label}})})]},N)),m&&g!==void 0&&v("div",{className:"notification__button",children:v(Ae,{...g[0]})})]})]})},"elv-alert"+f?f:""),fL="",ji=({color:s,className:l,text:u,colorText:a,...r})=>v("div",{className:"elv-component elv-badge",...r,children:v("span",{style:{backgroundColor:s,color:a},className:`badge badge--${s} ${l||""}`,children:u})}),pL="",D0=({color:s="primary",size:l="normal",max:u,value:a,className:r,...p})=>v("div",{className:"elv-component elv-progressbar",...p,children:v("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:v("progress",{className:[`progress progress--${l}`,`${" is-"+s}`].join(""),value:a,max:u})})}),hL="",ok=({title:s,option:l,onSeeAll:u,className:a})=>v("div",{className:"elv-component elv-assistancediary",children:L("div",{className:["assistancediary is-flex is-flex-direction-column p-5 is-gap-5 box",`${a?" "+a:""}`].join(""),children:[v("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),v("div",{className:"is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map((r,p)=>L("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[v("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),v("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),v("div",{className:"assistancediary__widthstate p-1",children:v("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]},"assistancediary_option"+p))}),v("div",{children:v(Ae,{label:"Ver todo",fill:"unstyled",icon:"fa-solid fa-arrow-right",trailingIcon:!0,className:"is-size-7 has-text-weight-medium has-text-grey px-4 py-3",onClick:()=>u&&u()})})]})}),vL="",lk=({option:s,option2:l,option3:u,Call:a,className:r})=>{const[p,f]=re.useState(0),[m,g]=re.useState(0),[x,k]=re.useState(0),[N,O]=re.useState(null),[M,z]=re.useState(null),[$,A]=re.useState(null),[q,ne]=re.useState(null);re.useEffect(()=>{const ee=new Date().getWeek(),de=ee-1,ve=a.filter(Rt=>Rt.date.getWeek()===ee),xe=a.filter(Rt=>Rt.date.getWeek()===de);f(ve.length),g(xe.length);const he=xe.length!==0?(ve.length-xe.length)/xe.length:0,Se=parseFloat(he.toFixed(2));k(Se);const De=a[a.length-1];if(De){const Rt=new Date,ye=De.arrivalTime,Me=De.serviceStartTime||ye,Pe=(Me||Rt).getTime()-ye.getTime();O(Pe/(1e3*60));const Ge=Rt.getTime()-(Me||ye).getTime(),$e=Math.floor(Ge/(1e3*60));z($e);const lt=V(ve),it=V(xe),He=W(lt,it,ve.length,xe.length);ne(He)}else O(null),z(null);const Ne=te(ve),Ue=te(xe),ut=se(Ne,Ue,ve.length,xe.length);A(ut)},[a]),re.useEffect(()=>{const H=setInterval(()=>{const ee=a[a.length-1];if(ee&&ee.serviceStartTime){const ve=new Date().getTime()-ee.serviceStartTime.getTime();z(ve/6e4)}else z(null)},1e3);return()=>clearInterval(H)},[a]);const J=M!==null?`${Math.floor(M/60)}:${(M%60).toFixed(0).padStart(2,"0")}`:"N/A",Q=N!==null?`${Math.floor(N/60)}:${(N%60).toFixed(0).padStart(2,"0")}`:"N/A";$!==null&&`${Math.floor($/60)}${($%60).toFixed(0).padStart(2,"0")}`;const W=(H,ee,de,ve)=>{const xe=de>0?de:1,he=ve>0?ve:1,Se=(H/xe-ee/he)/(1e3*60);return parseFloat(Se.toFixed(2))/100},V=H=>H.reduce((ee,de)=>{if(de.serviceStartTime&&de.arrivalTime){const ve=new Date().getTime()-de.serviceStartTime.getTime();return ee+ve}return ee},0),te=H=>H.reduce((ee,de)=>{if(de.serviceStartTime&&de.arrivalTime){const ve=de.serviceStartTime.getTime()-de.arrivalTime.getTime();return ee+ve}return ee},0),se=(H,ee,de,ve)=>{const xe=de>0?de:1,he=ve>0?ve:1,Se=(H/xe-ee/he)/(1e3*60);return parseFloat(Se.toFixed(2))};return Date.prototype.getWeek=function(){var H=new Date(this.getTime());H.setHours(0,0,0,0),H.setDate(H.getDate()+4-(H.getDay()||7));var ee=new Date(H.getFullYear(),0,1),de=Math.ceil(((H.getTime()-ee.getTime())/864e5+1)/7);return de},v("div",{className:"elv-component elv-averageAttended",children:L("div",{className:["averageAttended box is-flex is-gap-4 is-justify-content-space-between",`${r?" "+r:""}`].join(""),children:[s==null?void 0:s.map((H,ee)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(Ve,{icon:H.icon,color:H.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:H.status}),v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),L("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${x<0?H.labelButtom:H.labelTop}${x.toString()}%`,color:H.color,colorText:`${x<0?H.colorText:H.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:H.description})]})]})]},"averageAttended__option"+ee)),l==null?void 0:l.map((H,ee)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(Ve,{icon:H.icon,color:H.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:H.status}),Q!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${Q}${H.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${$!==null&&$<0?H.labelButtom:H.labelTop}${$!==null&&$.toFixed(1)}%`,color:H.color,colorText:$!=null&&$<0?H.colorText:H.colorTextPositive,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:H.description})]})]})]},"averageAttended__option2"+ee)),u==null?void 0:u.map((H,ee)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(Ve,{icon:H.icon,color:H.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:H.status}),J!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${J}${H.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${q!=null&&q<0?H.labelButtom:H.labelTop}${q!=null&&q.toFixed(1)}%`,color:H.color,colorText:`${q!=null&&q<0?H.colorText:H.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:H.description})]})]})]},"averageAttended__option3"+ee))]})})},mL="";function Ot(s,l){return s.length<l?s:s.slice(0,l)+"..."}function An(){return`${Math.random().toString(36).substr(2,9)}`}function E0(s){return s<1024?s+" bytes":s<1024*1024?(s/1024).toFixed(2)+" KB":s<1024*1024*1024?(s/(1024*1024)).toFixed(2)+" MB":(s/(1024*1024*1024)).toFixed(2)+" GB"}function sk(s){const l=s.split(".");switch(l[l.length-1].toLowerCase()){case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"svg":return"far fa-file-image";case"csv":return"fas fa-file-csv";case"pdf":return"fas fa-file-pdf";default:return"fas fa-file"}}const uk=({type:s,defaultActiveLabel:l,items:u,handleActive:a,className:r,...p})=>{const f=u.find(k=>k.label===l),[m,g]=re.useState(f),x=k=>{g(k),a&&a(k),k.onClick&&k.onClick()};return v("div",{className:"elv-component elv-nav_bc",...p,children:v("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${s} ${r||""}`,children:v("ol",{className:"bc-list",children:u.map((k,N)=>L("li",{className:`bc-item ${k===m?"bc-item--active":""}`,children:[L("p",{className:"bc-item__bc-link",onClick:()=>{x(k)},children:[k.icon&&k.icon!==""&&v("i",{className:`${k.icon} item-icon ${k.label&&k.label!==""?"--and-label":""}`}),k.label&&k.label!==""&&Ot(k.label,25)]}),N<u.length-1&&v("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},k.label))})})})},gL="",ck=({img:s,title:l,icon:u,date:a,description:r,button:p,className:f,isBorderless:m,isClickable:g,onClick:x,...k})=>v("div",{className:"elv-component elv-card",...k,children:L("div",{className:["card card-cta",`${f?" "+f:""}`,`${g?" is-clickable":""}`,`${m?" is-shadowless":" card-box"}`].join(""),onClick:()=>{g&&x&&x()},children:[L("div",{className:"card-content",style:{flexGrow:1},children:[v("div",{className:"card-header",children:L("div",{className:"card__text",children:[v("p",{className:"title is-3",children:Ot(l,54)}),r&&v("p",{children:Ot(r,198)})]})}),L("div",{className:"card-footer",children:[L("div",{className:"card__date",children:[u&&v(Ve,{...u[0]}),v("span",{className:"date",children:a})]}),p&&v("div",{className:"card__button",children:v(Ae,{...p})})]})]}),v("div",{className:"card-image",children:v("img",{src:s,alt:""})})]})}),yL="",dk=({dataBig:s,bigNumber:l,bigMonth:u,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:m,className:g,isBorderless:x,isClickable:k,onClick:N,...O})=>v("div",{className:"elv-component elv-card",...O,children:v("div",{className:["card card-expiration",`${g?" "+g:""}`,`${k?" is-clickable":""}`,`${x?" is-shadowless":" card-box"}`].join(""),onClick:()=>{k&&N&&N()},children:L("div",{className:"card-expiration__content",children:[L("div",{className:"card_header",children:[s&&L("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[v("h1",{children:l}),v("h4",{children:u})]}),a&&L("div",{className:"date__small",children:[r&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:r?v(Ve,{icon:r[0].icon,className:"icon"}):null})}),v("p",{className:"title is-5",children:p}),v("p",{className:"title is-3",children:f})]})]}),v("div",{className:"card-footer",children:v("div",{className:"data__expiration",children:v("div",{className:"list",children:m.map(M=>L("p",{className:"title is-6",children:[M.type,": ",v("span",{children:M.text})]},An()))})})})]})})}),wL="",fk=({image:s,img:l,badge:u,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:m,date:g,description:x,button:k,className:N,isClickable:O,isBorderless:M,onClick:z,...$})=>v("div",{className:"elv-component elv-card",...$,children:L("div",{className:["card card-vertical",`${N?" "+N:""}`,`${O?" is-clickable":""}`,`${M?" is-shadowless":" card-box"}`].join(""),onClick:()=>{O&&z&&z()},children:[L("div",{className:"card-header",children:[s&&L("div",{className:"card__img",children:[v("img",{src:l,alt:""}),u&&v(ji,{...u[0]})]}),p&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:m?v(Ve,{...m[0],className:"icon"}):null})}),a&&v("div",{className:"card__avatar",children:v("img",{src:r,alt:""})})]}),L("div",{className:"card-body",children:[v("div",{className:"card__title",children:v("p",{className:"title is-5",children:f})}),L("div",{className:"card__date",children:[m&&v(Ve,{...m[0],className:"icon"}),v("span",{className:"date",children:g})]}),v("div",{className:"card__description",children:v("p",{children:x})})]}),v("div",{className:"card-footer",children:v("div",{className:"card__button",children:v(Ae,{...k})})})]})}),bL="",pk=({fill:s,className:l,title:u,description:a,secondaryDescription:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:L("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${l||""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("p",{className:"card-activity__title",children:u}),v("p",{className:"card-activity__description",children:a}),v("p",{className:"card-activity__secondaryDescription",children:r})]})}),CL="",hk=({iconLeft:s,icon:l,image:u,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:m,button:g,buttonsArray:x,buttons:k,className:N,isClickable:O,isBorderless:M,onClick:z,...$})=>v("div",{className:"elv-component elv-card",...$,children:L("div",{className:["card-horizontal",`${N?" "+N:""}`,`${O?" is-clickable":""}`,`${M?" is-shadowless":" card-box"}`].join(""),onClick:()=>{O&&z&&z()},children:[L("div",{className:["card-header pb-0 ",`${l||u?`icon--${a?"trailing":"leading"}`:""}`,,].join(" "),children:[s&&(l||u)?v("div",{className:"card__icon",children:l?v(Ve,{...l[0]}):u?v("img",{src:u,alt:"Card-Image"}):null}):v(Qt,{}),L("div",{className:"card__text",children:[v("p",{className:"title is-6 mb-1",children:r}),v("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),f&&v("div",{className:"card__menu ml-auto",children:v(Ae,{...m})})]}),L("div",{className:"card-body px-4 pb-4 pt-0",children:[g&&v(Ae,{...g}),x&&v("div",{children:k==null?void 0:k.map((A,q)=>v(Ae,{...A},An()))})]})]})}),xL="",vk=({fill:s,list:l,badge:u,button:a,className:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:L("div",{className:[`card card-user ${s==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("div",{className:"card-body",children:l.map((g,x)=>{var k;return L("div",{className:"list-item",children:[g.iconType=="img"?v(Qt,{children:g.img&&v("div",{className:"list-item__img",children:v("img",{src:g.img,className:"img-p"},x)})}):v(Qt,{children:g.icon&&v("div",{className:"list-item__img",children:v(Ve,{className:"img-p",...g.icon},x)})}),L("div",{className:"list-item__text",children:[v("p",{className:"text__subtitle",children:g.title}),v("p",{className:"text__title",children:g.subtitle})]}),g.button&&v("div",{className:"list-item__button left",children:(k=g==null?void 0:g.button)==null?void 0:k.map(N=>v(Ae,{...N}))}),g.menuButton&&v("div",{className:"list-item__menu",children:v(Ae,{...g.menuButton})})]},x)})}),u||a?L("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[u&&v(Qt,{children:a?v("div",{className:"card-footer__badges card-footer__badges--button",children:u==null?void 0:u.map((g,x)=>v(ji,{...g},x))}):v("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${u.length*100<400?u.length*100:400}px`},children:u.map((g,x)=>v(ji,{...g},x))})}),a==null?void 0:a.map((g,x)=>v(Ae,{...g,className:"px-6"}))]}):v(Qt,{})]})}),_L="",mk=({button:s,title:l,optionButton:u,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:m,footerType:g,interLabel:x,isInterLabelCenter:k,list:N,total:O,className:M,...z})=>v("div",{className:"elv-component elv-cart",...z,children:L("div",{className:`cart ${M||""}`,children:[r==="icon"&&v("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?v(Ve,{type:"svg_icon",icon:f}):v(Ve,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&v("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:u&&v(Ae,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Ot(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})}),L("div",{className:"cart__content",children:[m==="perception"&&L("div",{className:"perception is-flex is-flex-direction-column",children:[L("div",{className:"perception__title is-flex is-justify-content-space-between",children:[v("p",{className:"title is-5",children:l}),u&&v(Ae,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Ot(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})]}),v("div",{className:"perception__labels",children:N==null?void 0:N.map($=>L("div",{className:"item is-flex is-justify-content-space-between",children:[v("p",{className:"item__label",children:$.label}),v("p",{className:"item__value",children:$.value})]},An()))}),a&&v("div",{className:"perception__sub-list",children:a==null?void 0:a.map($=>L("div",{className:"item is-flex is-justify-content-space-between",style:{color:$.color},children:[v("p",{className:"item__label",children:$.label}),v("p",{className:"item__value",children:$.value})]},An()))}),L("div",{className:"perception__total is-flex is-justify-content-space-between",children:[v("p",{className:"total-label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:O==null?void 0:O.label}),v("p",{className:"total-value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:O==null?void 0:O.values[0].value})]})]}),m==="bonds"&&v("div",{className:"bods is-flex is-flex-direction-column",children:N&&L("div",{className:"bonds__labels",children:[L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[v("p",{className:"micro-label is-4",children:N[0].label}),v("p",{className:"micro-sub_label",children:N[0].sub_label})]}),v("p",{className:"item__value",children:N[0].value})]}),v("div",{className:`inter-label is-flex ${k?"is-justify-content-center":""}`,children:v("p",{children:x})}),L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[v("p",{className:"micro-label",children:N[1].label}),v("p",{className:"micro-sub_label",children:N[1].sub_label})]}),v("p",{className:"item__value",children:N[1].value})]})]})}),g==="button"&&v("div",{className:"footer--button",children:s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&v(Ae,{...s[0]}),s[1]&&v(Ae,{...s[1]})]})}),g==="total-button"&&L("div",{className:"footer--total-button is-flex is-justify-content-space-between is-align-items-center",children:[O&&L("div",{className:"total",children:[v("p",{className:"total__label",children:Ot(O.label,25)}),v("p",{className:"total__value",children:Ot(O.values[0].value,25)})]}),s&&v(Ae,{...s[0]})]}),g==="big-total-button"&&L("div",{className:"footer--big-total-button is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&L(Qt,{children:[v("p",{className:"total__label",children:Ot(O.label,25)}),v("p",{className:"total__value",children:Ot(O.values[0].value,25)})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&v(Ae,{...s[0]}),s[1]&&v(Ae,{...s[1]})]})]}),g==="big-total-button-sub"&&L("div",{className:"footer--big-total-button-sub is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&L(Qt,{children:[v("p",{className:"total__label",children:Ot(O.label,35)}),O.sub_label&&v("p",{className:"total__sub_label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:Ot(O.sub_label,35)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:Ot(O.values[0].sub_value,35)}),O.values.map($=>L(Qt,{children:[$.sub_desc&&v("p",{className:"total__sub_desc",style:$.sub_desc_color?{color:$.sub_desc_color}:{},children:Ot($.sub_desc,35)},An()),v("p",{className:"total__value",style:$.value_color?{color:$.value_color}:{},children:Ot($.value,35)})]})),O.value_description&&v("p",{className:"total__description",children:O.value_description})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&v(Ae,{...s[0]}),s[1]&&v(Ae,{...s[1]})]})]}),g==="total-button-sub-mobile"&&L("div",{className:"footer--total-button-sub-mobile is-flex is-justify-content-space-between is-align-items-center",children:[O&&L("div",{className:"total",children:[v("p",{className:"total__label",children:Ot(O.label,18)}),O.sub_label&&v("p",{className:"total__sub_label",children:Ot(O.sub_label,50)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",children:Ot(O.values[0].sub_value,21)}),v("p",{className:"total__value",children:Ot(O.values[0].value,16)})]}),s&&v(Ae,{...s[0]})]})]})]})}),SL="",kL="",DL="",nd=({size:s="md",label:l="checkbox",value:u,name:a,className:r,key:p,defaultChecked:f,checked:m,error:g,disabled:x=!1,onCheck:k,onChange:N,...O})=>{const[M,z]=re.useState(f||!1),$=A=>{z(!M),k&&k(!M),N&&N(A)};return v("div",{className:"elv-component elv-checkbox elv-control",...O,children:L("label",{className:["e-control e-checkbox",` e-control--${s} e-checkbox--${s}`,`${g?" e-control--error e-checkbox--error":""}`,`${x?" e-control--disabled e-checkbox--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${r?" "+r:""}`].join(""),children:[v("input",{type:"checkbox",onChange:A=>{$(A)},defaultChecked:f,id:u,value:u,name:a,checked:m,className:["e-control__input e-checkbox__input"].join(""),disabled:x}),l&&v("span",{className:"label-text is-flex is-align-items-center",children:l}),v("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},EL="",Bh=({contentType:s,trianglePos:l,className:u,active:a,text:r,date:p,sub_title:f,principal_item:m,sections:g,total:x,amount:k,notification:N,doubleStates:O,tripleStates:M,alert:z,...$})=>{var A,q,ne,J,Q,W,V,te,se,H,ee,de,ve,xe,he,Se,De,Ne,Ue,ut,Rt,ye,Me,Pe,Ge,$e,lt,it,He,Oe;return v(Qt,{children:a?v("div",{className:"elv-component elv-tooltip",...$,children:v("div",{className:`tooltip ${u||""}`,children:v("div",{className:`tooltip__content ${s&&"tooltip__content--"+s} ${l!=="none"&&"tp tp--"+l}`,children:L("div",{className:"labels is-flex flex-column",children:[s==="calendar"&&L(Qt,{children:[v("p",{className:"labels__date",children:p}),v("p",{className:"labels__text",children:r}),v("p",{className:"labels__sub_title",children:f})]}),s==="text"&&v(Qt,{children:r&&v("p",{className:"labels__text",children:r})}),s==="taxes"&&L(Qt,{children:[m&&L("div",{className:"principal-item is-flex is-justify-content-space-between",children:[v("p",{className:"principal-item__label",children:m==null?void 0:m.label}),v("p",{className:"principal-item__value",children:m==null?void 0:m.value})]}),g&&v("div",{className:"tax-sections",children:g==null?void 0:g.map(st=>L("div",{className:"tax-sections__sec",children:[st.title&&v("div",{className:"sec-title",children:st.title}),st.labels.map(xt=>L("div",{className:"sec-label is-flex is-justify-content-space-between",children:[v("p",{className:"sec-label__label",children:xt.label}),v("p",{className:"sec-label__value",children:xt.value})]},xt.label))]},st.title))}),x&&L("div",{className:"total is-flex is-justify-content-space-between",children:[v("p",{className:"total__label",children:x==null?void 0:x.label}),v("p",{className:"total__value",children:x==null?void 0:x.value})]}),k&&L("div",{className:"amount is-flex is-justify-content-space-between",children:[v("p",{className:"amount__label",children:k==null?void 0:k.label}),v("p",{className:"amount__value",children:k==null?void 0:k.value})]}),N&&v("div",{className:"tax-notification",children:N}),O&&L("div",{className:"double-state columns is-mobile",children:[L("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(A=O[0])==null?void 0:A.label}),O[0].type==="state"?L("div",{className:"state-status",style:{color:(q=O[0])==null?void 0:q.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(ne=O[0])==null?void 0:ne.sub_label_color},children:(J=O[0])==null?void 0:J.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(Q=O[0])==null?void 0:Q.sub_label_color},children:(W=O[0])==null?void 0:W.sub_label})]}),L("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(V=O[1])==null?void 0:V.label}),O[1].type==="state"?L("div",{className:"state-status",style:{color:(te=O[1])==null?void 0:te.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(se=O[1])==null?void 0:se.sub_label_color},children:(H=O[1])==null?void 0:H.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(ee=O[1])==null?void 0:ee.sub_label_color},children:(de=O[1])==null?void 0:de.sub_label})]})]}),M&&L("div",{className:"triple-state columns is-mobile",children:[L("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(ve=M[0])==null?void 0:ve.label}),M[0].type==="state"?L("div",{className:"state-status",style:{color:(xe=M[0])==null?void 0:xe.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(he=M[0])==null?void 0:he.sub_label_color},children:(Se=M[0])==null?void 0:Se.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(De=M[0])==null?void 0:De.sub_label_color},children:(Ne=M[0])==null?void 0:Ne.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(Ue=M[1])==null?void 0:Ue.label}),M[1].type==="state"?L("div",{className:"state-status",style:{color:(ut=M[1])==null?void 0:ut.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(Rt=M[1])==null?void 0:Rt.sub_label_color},children:(ye=M[1])==null?void 0:ye.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(Me=M[1])==null?void 0:Me.sub_label_color},children:(Pe=M[1])==null?void 0:Pe.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(Ge=M[2])==null?void 0:Ge.label}),M[2].type==="state"?L("div",{className:"state-status",style:{color:($e=M[2])==null?void 0:$e.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(lt=M[2])==null?void 0:lt.sub_label_color},children:(it=M[2])==null?void 0:it.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(He=M[2])==null?void 0:He.sub_label_color},children:(Oe=M[2])==null?void 0:Oe.sub_label})]})]}),z&&L("div",{className:"tax-alert is-flex",children:[(z==null?void 0:z.icon)&&v(Ve,{icon:z==null?void 0:z.icon}),v("p",{className:"tax-alert__label",children:z==null?void 0:z.label})]})]})]})})})}):v(Qt,{})})},NL="",qh=({size:s="md",disabled:l=!1,label:u="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:m,className:g,...x})=>{const k=re.useRef(null),N=()=>{k.current&&k.current.checked&&f&&f()};return v("div",{className:"elv-component elv-radio elv-control",...x,children:L("label",{className:["e-control e-radio",` e-control--${s} e-radio--${s}`,`${m?" e-control--error e-radio--error":""}`,`${l?" e-control--disabled e-radio--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${g?" "+g:""}`].join(""),children:[v("input",{type:"radio",defaultChecked:p,id:r,name:a,value:r,className:["e-control__input e-radio__input","m-0","is-clickable"].join(""),onChange:()=>{N()},disabled:l,ref:k}),u&&v("span",{className:"label-text is-flex is-align-items-center",children:u}),v("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},TL="",bu=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,dropUp:r=!1,error:p,options:f,defaultValue:m,minWidth:g,maxCharacters:x=30,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(""),[$,A]=re.useState(a||""),[q,ne]=re.useState(!1);re.useEffect(()=>{if(m&&f){const V=f.find(te=>te.value===m);V&&(z(V.value),A(V.label))}},[m,f]);function J(){return V=>{ne(!1)}}function Q(){return V=>{ne(!q)}}function W(V,te){return se=>{k&&k(V),z(V),A(te),ne(!1)}}return v("div",{className:"elv-component elv-select",style:{minWidth:g},...O,children:L("div",{className:`select-container ${N||""}`,onMouseLeave:J(),children:[v("div",{className:["select-container__select",`select--${l}`,`select--${s}`,`${p?"select--error":""} ${u?"select--disabled":""}`,,].join(" "),onClick:Q(),children:m!==void 0||!m?$&&v("span",{children:Ot($,x)}):v("span",{children:Ot(a||"",x)})}),v("div",{className:`select-container__dropdown select--${s} ${q?"select-container__dropdown--active":""} ${r?"select-container__dropdown--up":""}`,children:L("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${M==a?"list__item--active":""}`,onClick:()=>W("",a),children:Ot(a,x)}),f==null?void 0:f.map((V,te)=>L("li",{className:"list__item",onClick:W(V.value,V.label),children:[V.icon&&v("i",{className:`item__icon ${V.icon}`}),Ot(V.label,x)]},te))]})})]})})},OL="",RL="",Qh=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:g,maxLength:x,iconLeft:k,iconRight:N,isRounded:O,isLoading:M,isDisabled:z,hasError:$,className:A,onChangeInput:q,onSearch:ne,...J})=>{const Q=re.useRef(null),W=te=>{te.key==="Enter"&&V()},V=()=>{var se;const te=(se=Q.current)==null?void 0:se.value;ne&&ne(te||"")};return v("div",{className:"elv-component elv-input",...J,children:v("div",{className:`field e-input ${A||""}`,children:L("p",{className:["control",`${k?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${M?" is-loading":""}`].join(""),children:[v("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${O?" is-rounded":""}`,`${$?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:te=>{q&&q(te)},defaultValue:f,value:m,ref:Q,disabled:z,onKeyDown:W,autoComplete:g,maxLength:x}),k&&v("span",{className:`icon is-left ${"is-"+r}`,children:v(Ve,{...k})}),N&&v("span",{className:`icon is-right ${"is-"+r}`,children:v(Ve,{...N})})]})})})},Ig=({labelDescription:s,checkbox:l,input:u,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:m,priceBottomEdit:g,onCantidadChange:x,onSaveData:k,showAmountinEdit:N,calculateOnChangeCant:O,calculateOnChangeTax:M,exento:z,disabledInputTax:$,visibleBtnRecalculate:A,visibleBtnCancelar:q,visibleBtnGuardar:ne,...J})=>{const[Q,W]=re.useState(Number(u==null?void 0:u.defaultValue)||1),[V,te]=re.useState(0),[se,H]=re.useState(z),[ee,de]=re.useState(m==null?void 0:m.labelNumberI),ve=()=>{H(!se)},xe=()=>{se||(N?k&&k({calculatedtax:Q&&V&&(g==null?void 0:g.labelNumberA)?Q*V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}):k&&k({calculatedtax:V&&(g==null?void 0:g.labelNumberA)?V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}))},he=(Ue,ut)=>{if(se)return;const Rt=g!=null&&g.labelNumberA?g.labelNumberA:0;if(N){const ye=Ue&&ut&&(g==null?void 0:g.labelNumberA)?parseFloat((Ue*ut*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:ye,aliquot:Rt})}else{const ye=ut&&(g==null?void 0:g.labelNumberA)?parseFloat((ut*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:ye,aliquot:Rt})}},Se=()=>{!se||de(N?Q&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((Q*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0)},De=Ue=>{se||(W(parseFloat(Ue.toFixed(2))),de(N?Ue&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((Ue*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),O&&he(Ue,V))},Ne=Ue=>{se||(te(parseFloat(Ue.toFixed(2))),de(N?Q&&Ue&&(g==null?void 0:g.labelNumberA)?parseFloat((Q*Ue*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:Ue&&(g==null?void 0:g.labelNumberA)?parseFloat((Ue*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),M&&he(Q,Ue))};return v("div",{className:"elv-component elv-collapsedit",...J,children:v("div",{className:["collapsedit box is-flex is-align-items-center px-4 py-2 has-background-white",`${f?" "+f:""}`].join(""),children:L("div",{className:"collapsedit__breakpoint4 is-flex is-align-items-center justify-content-space-between is-fullw ",children:[L("div",{className:"collapsedit__breakpoint3 is-align-items-center is-flex is-fullw ",children:[L("div",{className:"collapsedit__breakpoint2 is-flex is-align-items-center is-gap-4",children:[L("div",{className:"collapsedit__breakpoint1 is-flex is-align-items-center is-gap-4",children:[L("div",{className:"collapsedit__desc-cont is-flex is-gap-4 mr-4 is-align-items-center",children:[v("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:s}),v("div",{className:"collapsedit__check is-size-14px",children:l&&v(nd,{...l,defaultChecked:z,onCheck:ve,className:""})})]}),v("div",{className:"collapsedit__input",children:N&&v(Qt,{children:u&&L("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),v(Qh,{...u,className:"",onChangeInput:Ue=>De(Number(Ue.target.value))})]})})})]}),v("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&L("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),v(Qh,{...a,isDisabled:$,onChangeInput:Ue=>Ne(Number(Ue.target.value))})]})})]}),L("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[g&&L("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:g.labelAliquot}),L("div",{className:"is-size-14px has-text-grey-dark",children:[g.labelNumberA,"%"]})]}),m&&L("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:m.labelImpost}),L("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",ee]})]})]})]}),L("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[v("div",{className:"",children:r&&A&&v(Ae,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{Se()}})}),L("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[v("div",{className:"button-cancel ml-4",children:p&&q&&v(Ae,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),v("div",{className:"button-save",children:ne&&v(Ae,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{xe()}})})]})]})]})})})},N0=({type:s,paddingLeft:l,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,optionSelect:H,buttonMenu:ee,buttonLink:de,buttonDetail:ve,dropRightButton:xe,buttonEdit:he,checkbox:Se,collapseEdit:De,callBackCheckbox:Ne,radio:Ue,onSaveData:ut,showAmountinEdit:Rt,...ye})=>{const[Me,Pe]=re.useState(p),[Ge,$e]=re.useState(!1),[lt,it]=re.useState(!1),[He,Oe]=re.useState(!1),[st,xt]=re.useState(m);re.useState(Q);const[Mt,kn]=re.useState(!1),En=()=>{Pe(!Me)},_t=()=>{Oe(!He),xt(!st)},Yt=re.useRef(null);re.useEffect(()=>{function vt(Xt){Yt.current&&!Yt.current.contains(Xt.target)&&it(!1)}return document.addEventListener("click",vt),()=>{document.removeEventListener("click",vt)}},[Yt]);const ft=re.useRef(null);return re.useEffect(()=>{function vt(Xt){ft.current&&!ft.current.contains(Xt.target)&&$e(!1)}return document.addEventListener("click",vt),()=>{document.removeEventListener("click",vt)}},[ft]),v("div",{className:`elv-component elv-collapse ${a||""}`,...ye,children:!He&&!st?L("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${g?" e-collapse--colored-gray":""}`,`${k?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[L("div",{className:`e-collapse__container ${"e-collapse__container--"+s} ${l&&l==="short"?"e-collapse__container--"+s+"--short":"e-collapse__container--"+s+"--long"} ${m?"e-collapse__container--disabled":""} ${x?"e-collapse__container--borderBottom":""} ${N&&!$&&!q?"e-collapse__container--"+s+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[L("div",{className:"left-container is-flex",style:{cursor:u&&!m?"pointer":"auto"},onClick:()=>{u&&!m&&En()},children:[u&&v("div",{className:"left-container__dropIcon",style:O&&{paddingTop:"28px"},children:v(Ve,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${Me&&"rotate"}`})}),L("div",{className:"left-container__texts is-flex is-flex-direction-column is-justify-content-center",children:[O&&L("div",{className:"state-title is-flex",style:{color:O==null?void 0:O.color},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-title__text",children:O==null?void 0:O.label})]}),L("div",{className:"title-container is-flex is-align-items-center",children:[z&&v(Ve,{...z}),A&&v(ji,{...A}),N&&v("p",{className:`title-container__title title-container__title${M&&M=="regular"?"--regular":"--semibold"}`,children:N})]}),$&&v("p",{className:"description",children:$}),q&&v("p",{className:"details",children:q}),(ne||J)&&L("div",{className:"date is-flex",children:[ne&&L("span",{className:"date__days is-flex is-align-items-center",children:[v(Ve,{icon:"fa-solid fa-calendar-days"}),v("p",{children:ne})]}),J&&L("span",{className:"date__time is-flex is-align-items-center",children:[v(Ve,{icon:"fa-solid fa-clock"}),v("p",{children:J})]})]})]})]}),L("div",{className:"right-container is-flex is-align-items-center",children:[ve&&L("span",{className:"right-container__buttonDetail",ref:ft,children:[v(Ae,{...ve.button,onClick:()=>{$e(!Ge),ve.button.onClick&&ve.button.onClick()}}),ve.tooltip?v("div",{className:`detail-tooltip ${ve.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:v(Bh,{...ve.tooltip,active:Ge})}):v(Qt,{})]}),L("div",{className:"right-container__price is-flex",children:[se&&se.checkbox&&v("div",{className:"is-flex is-align-items-center",children:v(nd,{...se.checkbox})}),L("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[V&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[v("p",{className:"desc",children:V.description}),L("p",{className:"value",children:["$ ",V.value]})]}),Q&&L("p",{className:"col-price__price",style:W&&W!=""?{color:W}:{color:"none"},children:["$",Q]}),te&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[v("p",{className:"desc",children:te.description}),L("p",{className:"value",children:["$ ",te.value]})]})]})]}),H&&v("div",{className:"right-container__optionSelect is-flex",children:v(bu,{...H})}),ee&&L("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:Yt,children:[v("span",{className:"menu-button ",children:v(Ae,{...ee.button,onClick:()=>{it(!lt),ee.onEllipse&&ee.onEllipse()}})}),lt&&ee.menuDropComponent&&v("div",{className:"menu-drop-component is-absolute",children:ee.menuDropComponent}),ee.select&&v("div",{className:"menu-select",style:lt?{display:"block"}:{display:"none"},children:v(bu,{...ee.select})})]}),xe&&v("div",{className:"right-container__dropLeftButton is-flex",children:v(Ae,{...xe})}),de&&v("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:v(Ae,{...de})}),he||Se||Ue?L("div",{className:"right-container__editCheckbox is-flex",children:[he&&v("div",{className:"buttonEdit is-flex is-align-items-center",children:v(Ae,{...he,onClick:()=>{_t()}})}),Se&&v("div",{className:"_checkbox is-flex is-align-items-center",children:v(nd,{...Se,onCheck:vt=>{kn(vt),Ne&&Ne(vt?{type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:ee,buttonLink:de,buttonDetail:ve,dropRightButton:xe,buttonEdit:he}:{})}})}),Ue&&v("div",{className:"_radio is-flex is-align-items-center",children:v(qh,{...Ue,onCheck:()=>{Ne&&Ne({type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:ee,buttonLink:de,buttonDetail:ve,dropRightButton:xe,buttonEdit:he}),Ue.onCheck&&Ue.onCheck()}})})]}):v(Qt,{})]})]}),f&&f.map(vt=>v(N0,{...vt,show:Me},An()))]}):v("div",{className:"",children:v(Ig,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:V==null?void 0:V.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:te==null?void 0:te.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(vt){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(vt){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(vt){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){Oe(!1),xt(!1)}},onSaveData:vt=>{ut&&ut({aliquot:vt.aliquot,calculatedtax:vt.calculatedtax}),Oe(!1),xt(!1)},showAmountinEdit:Rt})})})},ML="",T0=({type:s,paddingLeft:l,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:H,buttonLink:ee,buttonDetail:de,dropRightButton:ve,buttonEdit:xe,checkbox:he,collapseEdit:Se,callBackCheckbox:De,radio:Ne,onSaveData:Ue,showAmountinEdit:ut,...Rt})=>{const[ye,Me]=re.useState(Boolean(p)),[Pe,Ge]=re.useState(!1),$e=re.useRef(null);re.useEffect(()=>{if(!Pe)return;function Oe(st){$e.current&&!$e.current.contains(st.target)&&Ge(!1)}return document.addEventListener("click",Oe),()=>document.removeEventListener("click",Oe)},[Pe]);const lt=()=>{m||Me(Oe=>!Oe)},it=Oe=>{Oe&&Oe.stopPropagation&&Oe.stopPropagation()},He=Oe=>{De&&De(Oe?{type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:H,buttonLink:ee,buttonDetail:de,dropRightButton:ve,buttonEdit:xe}:{})};return L("div",{className:`elv-component elv-collapse-mobile ${a!=null?a:""}`,...Rt,children:[L("div",{className:"collapse-mobile__header",onClick:lt,role:"button","aria-expanded":ye,tabIndex:0,children:[L("div",{className:"collapse-mobile__header-left is-flex is-align-items-center",children:[O&&L("div",{className:"state-title is-flex",style:{color:O.color},children:[v(Ve,{icon:"fa-solid fa-circle"}),v("p",{className:"state-title__text",children:O.label})]}),L("div",{className:"title-container is-flex is-flex-direction-column",children:[L("div",{className:"title-container__top is-flex is-align-items-center",children:[z&&v(Ve,{...z}),A&&v(ji,{...A}),N&&v("p",{className:`title-container__title ${M&&M==="regular"?"title-container__title--regular":"title-container__title--semibold"}`,children:N})]}),($||q)&&v("p",{className:"title-container__subtitle",children:($!=null?$:q).toString().split(`
|
|
29
|
+
Check the top-level render call using <`+je+">.")}return _e}}function _a(B,_e){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var je=gl(_e);if($r[je])return;$r[je]=!0;var ct="";B&&B._owner&&B._owner!==mt.current&&(ct=" It was passed a child from "+he(B._owner.type)+"."),vn(B),se('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',je,ct),vn(null)}}function wr(B,_e){{if(typeof B!="object")return;if(Array.isArray(B))for(var je=0;je<B.length;je++){var ct=B[je];dn(ct)&&_a(ct,_e)}else if(dn(B))B._store&&(B._store.validated=!0);else if(B){var Ut=V(B);if(typeof Ut=="function"&&Ut!==B.entries)for(var dt=Ut.call(B),jt;!(jt=dt.next()).done;)dn(jt.value)&&_a(jt.value,_e)}}}function si(B){{var _e=B.type;if(_e==null||typeof _e=="string")return;var je;if(typeof _e=="function")je=_e.propTypes;else if(typeof _e=="object"&&(_e.$$typeof===x||_e.$$typeof===O))je=_e.propTypes;else return;if(je){var ct=he(_e);Xt(je,B.props,"prop",ct,B)}else if(_e.PropTypes!==void 0&&!cn){cn=!0;var Ut=he(_e);se("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ut||"Unknown")}typeof _e.getDefaultProps=="function"&&!_e.getDefaultProps.isReactClassApproved&&se("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(B){{for(var _e=Object.keys(B.props),je=0;je<_e.length;je++){var ct=_e[je];if(ct!=="children"&&ct!=="key"){vn(B),se("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ct),vn(null);break}}B.ref!==null&&(vn(B),se("Invalid attribute `ref` supplied to `React.Fragment`."),vn(null))}}function Lr(B,_e,je,ct,Ut,dt){{var jt=de(B);if(!jt){var Ft="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Ft+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var fn=wn(Ut);fn?Ft+=fn:Ft+=Ln();var nn;B===null?nn="null":Array.isArray(B)?nn="array":B!==void 0&&B.$$typeof===a?(nn="<"+(he(B.type)||"Unknown")+" />",Ft=" Did you accidentally export a JSX literal instead of a component?"):nn=typeof B,se("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",nn,Ft)}var pn=rt(B,_e,je,Ut,dt);if(pn==null)return pn;if(jt){var ea=_e.children;if(ea!==void 0)if(ct)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],B);Object.freeze&&Object.freeze(ea)}else se("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wr(ea,B)}return B===s.Fragment?fa(pn):si(pn),pn}}function Hr(B,_e,je){return Lr(B,_e,je,!0)}function $a(B,_e,je){return Lr(B,_e,je,!1)}var Ur=$a,Hi=Hr;s.jsx=Ur,s.jsxs=Hi}()}(jg)),jg}(function(s){process.env.NODE_ENV==="production"?s.exports=nk():s.exports=rk()})(Wh);const Qt=Wh.exports.Fragment,v=Wh.exports.jsx,L=Wh.exports.jsxs,Ve=({icon:s,className:l,type:u,size:a="16px",size_height:r,color:p,onClick:f,...m})=>{const g=re.useRef(null);re.useEffect(()=>{u=="svg_icon"&&x(s).then(k=>{g.current&&s&&(g.current.innerHTML=k)})},[g.current,s]);function x(k){return fetch(k).then(N=>N.text())}return u==="svg_icon"?v("span",{className:`svg_icon ${l}`,ref:g,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...m}):v("div",{className:"elv-component elv-icon",...m,children:v("i",{className:`fa_icon ${s} ${l}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},Ae=({color:s="primary",type:l="button",size:u="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:m=!1,disabled:g=!1,icon:x,icon_type:k="fa_icon",icon_size:N,icon_size_height:O,icon_color:M,icon_className:z,trailingIcon:$=!1,label:A,onClick:q,className:ne,...J})=>{const Q=W=>{W.stopPropagation(),q&&q()};return v("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...J,children:v("button",{type:l,className:["button",`${a==="solid"||a==="outline"?" is-"+s+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${u!=="normal"?" is-"+u:""}`,`${$?" button__icon--trailing":""}`,`${m?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${ne?" "+ne:""}`].join(""),onClick:W=>{Q(W)},disabled:g,children:v("div",{className:"button-content is-flex",children:$?L(Qt,{children:[A,x&&v(Ve,{icon:x,type:k,color:M,size:N,size_height:O,className:"button__icon "+z})]}):L(Qt,{children:[x&&v(Ve,{icon:x,type:k,color:M,size:N,size_height:O,className:"button__icon "+z}),A]})})})})},cL="",ak=({type:s,className:l,fill:u,accent:a,icon:r,labelTitle:p,label:f,key:m,isButton:g,button:x,...k})=>v("div",{className:"elv-component elv-notification",...k,children:L("div",{className:`notification --type-${s} --fill-${u} --accent-${a} ${l||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p!==void 0&&v("p",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:p}})}),v("p",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:f}})}),g&&x!==void 0&&v("div",{className:"notification__button",children:v(Ae,{...x[0]})})]})]})},"elv-alert"+m?m:""),dL="",ik=({type:s,className:l,fill:u,accent:a,icon:r,renglones:p,key:f,isButton:m,button:g,...x})=>v("div",{className:"elv-component elv-notification",...x,children:L("div",{className:`notification --type-${s} --fill-${u} --accent-${a} ${l||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p&&p.map((k,N)=>L("div",{children:[k.labelTitle!==void 0&&v("div",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:k.labelTitle}})}),v("div",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:k.label}})})]},N)),m&&g!==void 0&&v("div",{className:"notification__button",children:v(Ae,{...g[0]})})]})]})},"elv-alert"+f?f:""),fL="",ji=({color:s,className:l,text:u,colorText:a,...r})=>v("div",{className:"elv-component elv-badge",...r,children:v("span",{style:{backgroundColor:s,color:a},className:`badge badge--${s} ${l||""}`,children:u})}),pL="",D0=({color:s="primary",size:l="normal",max:u,value:a,className:r,...p})=>v("div",{className:"elv-component elv-progressbar",...p,children:v("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:v("progress",{className:[`progress progress--${l}`,`${" is-"+s}`].join(""),value:a,max:u})})}),hL="",ok=({title:s,option:l,onSeeAll:u,className:a})=>v("div",{className:"elv-component elv-assistancediary",children:L("div",{className:["assistancediary is-flex is-flex-direction-column p-5 is-gap-5 box",`${a?" "+a:""}`].join(""),children:[v("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),v("div",{className:"is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map((r,p)=>L("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[v("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),v("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),v("div",{className:"assistancediary__widthstate p-1",children:v("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]},"assistancediary_option"+p))}),v("div",{children:v(Ae,{label:"Ver todo",fill:"unstyled",icon:"fa-solid fa-arrow-right",trailingIcon:!0,className:"is-size-7 has-text-weight-medium has-text-grey px-4 py-3",onClick:()=>u&&u()})})]})}),vL="",lk=({option:s,option2:l,option3:u,Call:a,className:r})=>{const[p,f]=re.useState(0),[m,g]=re.useState(0),[x,k]=re.useState(0),[N,O]=re.useState(null),[M,z]=re.useState(null),[$,A]=re.useState(null),[q,ne]=re.useState(null);re.useEffect(()=>{const ee=new Date().getWeek(),de=ee-1,ve=a.filter(Rt=>Rt.date.getWeek()===ee),xe=a.filter(Rt=>Rt.date.getWeek()===de);f(ve.length),g(xe.length);const he=xe.length!==0?(ve.length-xe.length)/xe.length:0,Se=parseFloat(he.toFixed(2));k(Se);const De=a[a.length-1];if(De){const Rt=new Date,ye=De.arrivalTime,Me=De.serviceStartTime||ye,Pe=(Me||Rt).getTime()-ye.getTime();O(Pe/(1e3*60));const Ge=Rt.getTime()-(Me||ye).getTime(),$e=Math.floor(Ge/(1e3*60));z($e);const lt=V(ve),it=V(xe),He=W(lt,it,ve.length,xe.length);ne(He)}else O(null),z(null);const Ne=te(ve),Ue=te(xe),ut=se(Ne,Ue,ve.length,xe.length);A(ut)},[a]),re.useEffect(()=>{const H=setInterval(()=>{const ee=a[a.length-1];if(ee&&ee.serviceStartTime){const ve=new Date().getTime()-ee.serviceStartTime.getTime();z(ve/6e4)}else z(null)},1e3);return()=>clearInterval(H)},[a]);const J=M!==null?`${Math.floor(M/60)}:${(M%60).toFixed(0).padStart(2,"0")}`:"N/A",Q=N!==null?`${Math.floor(N/60)}:${(N%60).toFixed(0).padStart(2,"0")}`:"N/A";$!==null&&`${Math.floor($/60)}${($%60).toFixed(0).padStart(2,"0")}`;const W=(H,ee,de,ve)=>{const xe=de>0?de:1,he=ve>0?ve:1,Se=(H/xe-ee/he)/(1e3*60);return parseFloat(Se.toFixed(2))/100},V=H=>H.reduce((ee,de)=>{if(de.serviceStartTime&&de.arrivalTime){const ve=new Date().getTime()-de.serviceStartTime.getTime();return ee+ve}return ee},0),te=H=>H.reduce((ee,de)=>{if(de.serviceStartTime&&de.arrivalTime){const ve=de.serviceStartTime.getTime()-de.arrivalTime.getTime();return ee+ve}return ee},0),se=(H,ee,de,ve)=>{const xe=de>0?de:1,he=ve>0?ve:1,Se=(H/xe-ee/he)/(1e3*60);return parseFloat(Se.toFixed(2))};return Date.prototype.getWeek=function(){var H=new Date(this.getTime());H.setHours(0,0,0,0),H.setDate(H.getDate()+4-(H.getDay()||7));var ee=new Date(H.getFullYear(),0,1),de=Math.ceil(((H.getTime()-ee.getTime())/864e5+1)/7);return de},v("div",{className:"elv-component elv-averageAttended",children:L("div",{className:["averageAttended box is-flex is-gap-4 is-justify-content-space-between",`${r?" "+r:""}`].join(""),children:[s==null?void 0:s.map((H,ee)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(Ve,{icon:H.icon,color:H.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:H.status}),v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),L("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${x<0?H.labelButtom:H.labelTop}${x.toString()}%`,color:H.color,colorText:`${x<0?H.colorText:H.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:H.description})]})]})]},"averageAttended__option"+ee)),l==null?void 0:l.map((H,ee)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(Ve,{icon:H.icon,color:H.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:H.status}),Q!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${Q}${H.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${$!==null&&$<0?H.labelButtom:H.labelTop}${$!==null&&$.toFixed(1)}%`,color:H.color,colorText:$!=null&&$<0?H.colorText:H.colorTextPositive,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:H.description})]})]})]},"averageAttended__option2"+ee)),u==null?void 0:u.map((H,ee)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(Ve,{icon:H.icon,color:H.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:H.status}),J!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${J}${H.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${q!=null&&q<0?H.labelButtom:H.labelTop}${q!=null&&q.toFixed(1)}%`,color:H.color,colorText:`${q!=null&&q<0?H.colorText:H.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:H.description})]})]})]},"averageAttended__option3"+ee))]})})},mL="";function Ot(s,l){return s.length<l?s:s.slice(0,l)+"..."}function An(){return`${Math.random().toString(36).substr(2,9)}`}function E0(s){return s<1024?s+" bytes":s<1024*1024?(s/1024).toFixed(2)+" KB":s<1024*1024*1024?(s/(1024*1024)).toFixed(2)+" MB":(s/(1024*1024*1024)).toFixed(2)+" GB"}function sk(s){const l=s.split(".");switch(l[l.length-1].toLowerCase()){case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"svg":return"far fa-file-image";case"csv":return"fas fa-file-csv";case"pdf":return"fas fa-file-pdf";default:return"fas fa-file"}}const uk=({type:s,defaultActiveLabel:l,items:u,handleActive:a,className:r,...p})=>{const f=u.find(k=>k.label===l),[m,g]=re.useState(f),x=k=>{g(k),a&&a(k),k.onClick&&k.onClick()};return v("div",{className:"elv-component elv-nav_bc",...p,children:v("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${s} ${r||""}`,children:v("ol",{className:"bc-list",children:u.map((k,N)=>L("li",{className:`bc-item ${k===m?"bc-item--active":""}`,children:[L("p",{className:"bc-item__bc-link",onClick:()=>{x(k)},children:[k.icon&&k.icon!==""&&v("i",{className:`${k.icon} item-icon ${k.label&&k.label!==""?"--and-label":""}`}),k.label&&k.label!==""&&Ot(k.label,25)]}),N<u.length-1&&v("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},k.label))})})})},gL="",ck=({img:s,title:l,icon:u,date:a,description:r,button:p,className:f,isBorderless:m,isClickable:g,onClick:x,...k})=>v("div",{className:"elv-component elv-card",...k,children:L("div",{className:["card card-cta",`${f?" "+f:""}`,`${g?" is-clickable":""}`,`${m?" is-shadowless":" card-box"}`].join(""),onClick:()=>{g&&x&&x()},children:[L("div",{className:"card-content",style:{flexGrow:1},children:[v("div",{className:"card-header",children:L("div",{className:"card__text",children:[v("p",{className:"title is-3",children:Ot(l,54)}),r&&v("p",{children:Ot(r,198)})]})}),L("div",{className:"card-footer",children:[L("div",{className:"card__date",children:[u&&v(Ve,{...u[0]}),v("span",{className:"date",children:a})]}),p&&v("div",{className:"card__button",children:v(Ae,{...p})})]})]}),v("div",{className:"card-image",children:v("img",{src:s,alt:""})})]})}),yL="",dk=({dataBig:s,bigNumber:l,bigMonth:u,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:m,className:g,isBorderless:x,isClickable:k,onClick:N,...O})=>v("div",{className:"elv-component elv-card",...O,children:v("div",{className:["card card-expiration",`${g?" "+g:""}`,`${k?" is-clickable":""}`,`${x?" is-shadowless":" card-box"}`].join(""),onClick:()=>{k&&N&&N()},children:L("div",{className:"card-expiration__content",children:[L("div",{className:"card_header",children:[s&&L("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[v("h1",{children:l}),v("h4",{children:u})]}),a&&L("div",{className:"date__small",children:[r&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:r?v(Ve,{icon:r[0].icon,className:"icon"}):null})}),v("p",{className:"title is-5",children:p}),v("p",{className:"title is-3",children:f})]})]}),v("div",{className:"card-footer",children:v("div",{className:"data__expiration",children:v("div",{className:"list",children:m.map(M=>L("p",{className:"title is-6",children:[M.type,": ",v("span",{children:M.text})]},An()))})})})]})})}),wL="",fk=({image:s,img:l,badge:u,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:m,date:g,description:x,button:k,className:N,isClickable:O,isBorderless:M,onClick:z,...$})=>v("div",{className:"elv-component elv-card",...$,children:L("div",{className:["card card-vertical",`${N?" "+N:""}`,`${O?" is-clickable":""}`,`${M?" is-shadowless":" card-box"}`].join(""),onClick:()=>{O&&z&&z()},children:[L("div",{className:"card-header",children:[s&&L("div",{className:"card__img",children:[v("img",{src:l,alt:""}),u&&v(ji,{...u[0]})]}),p&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:m?v(Ve,{...m[0],className:"icon"}):null})}),a&&v("div",{className:"card__avatar",children:v("img",{src:r,alt:""})})]}),L("div",{className:"card-body",children:[v("div",{className:"card__title",children:v("p",{className:"title is-5",children:f})}),L("div",{className:"card__date",children:[m&&v(Ve,{...m[0],className:"icon"}),v("span",{className:"date",children:g})]}),v("div",{className:"card__description",children:v("p",{children:x})})]}),v("div",{className:"card-footer",children:v("div",{className:"card__button",children:v(Ae,{...k})})})]})}),bL="",pk=({fill:s,className:l,title:u,description:a,secondaryDescription:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:L("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${l||""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("p",{className:"card-activity__title",children:u}),v("p",{className:"card-activity__description",children:a}),v("p",{className:"card-activity__secondaryDescription",children:r})]})}),CL="",hk=({iconLeft:s,icon:l,image:u,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:m,button:g,buttonsArray:x,buttons:k,className:N,isClickable:O,isBorderless:M,onClick:z,...$})=>v("div",{className:"elv-component elv-card",...$,children:L("div",{className:["card-horizontal",`${N?" "+N:""}`,`${O?" is-clickable":""}`,`${M?" is-shadowless":" card-box"}`].join(""),onClick:()=>{O&&z&&z()},children:[L("div",{className:["card-header pb-0 ",`${l||u?`icon--${a?"trailing":"leading"}`:""}`,,].join(" "),children:[s&&(l||u)?v("div",{className:"card__icon",children:l?v(Ve,{...l[0]}):u?v("img",{src:u,alt:"Card-Image"}):null}):v(Qt,{}),L("div",{className:"card__text",children:[v("p",{className:"title is-6 mb-1",children:r}),v("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),f&&v("div",{className:"card__menu ml-auto",children:v(Ae,{...m})})]}),L("div",{className:"card-body px-4 pb-4 pt-0",children:[g&&v(Ae,{...g}),x&&v("div",{children:k==null?void 0:k.map((A,q)=>v(Ae,{...A},An()))})]})]})}),xL="",vk=({fill:s,list:l,badge:u,button:a,className:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:L("div",{className:[`card card-user ${s==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("div",{className:"card-body",children:l.map((g,x)=>{var k;return L("div",{className:"list-item",children:[g.iconType=="img"?v(Qt,{children:g.img&&v("div",{className:"list-item__img",children:v("img",{src:g.img,className:"img-p"},x)})}):v(Qt,{children:g.icon&&v("div",{className:"list-item__img",children:v(Ve,{className:"img-p",...g.icon},x)})}),L("div",{className:"list-item__text",children:[v("p",{className:"text__subtitle",children:g.title}),v("p",{className:"text__title",children:g.subtitle})]}),g.button&&v("div",{className:"list-item__button left",children:(k=g==null?void 0:g.button)==null?void 0:k.map(N=>v(Ae,{...N}))}),g.menuButton&&v("div",{className:"list-item__menu",children:v(Ae,{...g.menuButton})})]},x)})}),u||a?L("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[u&&v(Qt,{children:a?v("div",{className:"card-footer__badges card-footer__badges--button",children:u==null?void 0:u.map((g,x)=>v(ji,{...g},x))}):v("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${u.length*100<400?u.length*100:400}px`},children:u.map((g,x)=>v(ji,{...g},x))})}),a==null?void 0:a.map((g,x)=>v(Ae,{...g,className:"px-6"}))]}):v(Qt,{})]})}),_L="",mk=({button:s,title:l,optionButton:u,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:m,footerType:g,interLabel:x,isInterLabelCenter:k,list:N,total:O,className:M,...z})=>v("div",{className:"elv-component elv-cart",...z,children:L("div",{className:`cart ${M||""}`,children:[r==="icon"&&v("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?v(Ve,{type:"svg_icon",icon:f}):v(Ve,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&v("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:u&&v(Ae,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Ot(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})}),L("div",{className:"cart__content",children:[m==="perception"&&L("div",{className:"perception is-flex is-flex-direction-column",children:[L("div",{className:"perception__title is-flex is-justify-content-space-between",children:[v("p",{className:"title is-5",children:l}),u&&v(Ae,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Ot(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})]}),v("div",{className:"perception__labels",children:N==null?void 0:N.map($=>L("div",{className:"item is-flex is-justify-content-space-between",children:[v("p",{className:"item__label",children:$.label}),v("p",{className:"item__value",children:$.value})]},An()))}),a&&v("div",{className:"perception__sub-list",children:a==null?void 0:a.map($=>L("div",{className:"item is-flex is-justify-content-space-between",style:{color:$.color},children:[v("p",{className:"item__label",children:$.label}),v("p",{className:"item__value",children:$.value})]},An()))}),L("div",{className:"perception__total is-flex is-justify-content-space-between",children:[v("p",{className:"total-label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:O==null?void 0:O.label}),v("p",{className:"total-value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:O==null?void 0:O.values[0].value})]})]}),m==="bonds"&&v("div",{className:"bods is-flex is-flex-direction-column",children:N&&L("div",{className:"bonds__labels",children:[L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[v("p",{className:"micro-label is-4",children:N[0].label}),v("p",{className:"micro-sub_label",children:N[0].sub_label})]}),v("p",{className:"item__value",children:N[0].value})]}),v("div",{className:`inter-label is-flex ${k?"is-justify-content-center":""}`,children:v("p",{children:x})}),L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[v("p",{className:"micro-label",children:N[1].label}),v("p",{className:"micro-sub_label",children:N[1].sub_label})]}),v("p",{className:"item__value",children:N[1].value})]})]})}),g==="button"&&v("div",{className:"footer--button",children:s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&v(Ae,{...s[0]}),s[1]&&v(Ae,{...s[1]})]})}),g==="total-button"&&L("div",{className:"footer--total-button is-flex is-justify-content-space-between is-align-items-center",children:[O&&L("div",{className:"total",children:[v("p",{className:"total__label",children:Ot(O.label,25)}),v("p",{className:"total__value",children:Ot(O.values[0].value,25)})]}),s&&v(Ae,{...s[0]})]}),g==="big-total-button"&&L("div",{className:"footer--big-total-button is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&L(Qt,{children:[v("p",{className:"total__label",children:Ot(O.label,25)}),v("p",{className:"total__value",children:Ot(O.values[0].value,25)})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&v(Ae,{...s[0]}),s[1]&&v(Ae,{...s[1]})]})]}),g==="big-total-button-sub"&&L("div",{className:"footer--big-total-button-sub is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&L(Qt,{children:[v("p",{className:"total__label",children:Ot(O.label,35)}),O.sub_label&&v("p",{className:"total__sub_label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:Ot(O.sub_label,35)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:Ot(O.values[0].sub_value,35)}),O.values.map($=>L(Qt,{children:[$.sub_desc&&v("p",{className:"total__sub_desc",style:$.sub_desc_color?{color:$.sub_desc_color}:{},children:Ot($.sub_desc,35)},An()),v("p",{className:"total__value",style:$.value_color?{color:$.value_color}:{},children:Ot($.value,35)})]})),O.value_description&&v("p",{className:"total__description",children:O.value_description})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&v(Ae,{...s[0]}),s[1]&&v(Ae,{...s[1]})]})]}),g==="total-button-sub-mobile"&&L("div",{className:"footer--total-button-sub-mobile is-flex is-justify-content-space-between is-align-items-center",children:[O&&L("div",{className:"total",children:[v("p",{className:"total__label",children:Ot(O.label,18)}),O.sub_label&&v("p",{className:"total__sub_label",children:Ot(O.sub_label,50)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",children:Ot(O.values[0].sub_value,21)}),v("p",{className:"total__value",children:Ot(O.values[0].value,16)})]}),s&&v(Ae,{...s[0]})]})]})]})}),SL="",kL="",DL="",nd=({size:s="md",label:l="checkbox",value:u,name:a,className:r,key:p,defaultChecked:f,checked:m,error:g,disabled:x=!1,onCheck:k,onChange:N,...O})=>{const[M,z]=re.useState(f||!1),$=A=>{z(!M),k&&k(!M),N&&N(A)};return v("div",{className:"elv-component elv-checkbox elv-control",...O,children:L("label",{className:["e-control e-checkbox",` e-control--${s} e-checkbox--${s}`,`${g?" e-control--error e-checkbox--error":""}`,`${x?" e-control--disabled e-checkbox--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${r?" "+r:""}`].join(""),children:[v("input",{type:"checkbox",onChange:A=>{$(A)},defaultChecked:f,id:u,value:u,name:a,checked:m,className:["e-control__input e-checkbox__input"].join(""),disabled:x}),l&&v("span",{className:"label-text is-flex is-align-items-center",children:l}),v("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},EL="",Bh=({contentType:s,trianglePos:l,className:u,active:a,text:r,date:p,sub_title:f,principal_item:m,sections:g,total:x,amount:k,notification:N,doubleStates:O,tripleStates:M,alert:z,...$})=>{var A,q,ne,J,Q,W,V,te,se,H,ee,de,ve,xe,he,Se,De,Ne,Ue,ut,Rt,ye,Me,Pe,Ge,$e,lt,it,He,Oe;return v(Qt,{children:a?v("div",{className:"elv-component elv-tooltip",...$,children:v("div",{className:`tooltip ${u||""}`,children:v("div",{className:`tooltip__content ${s&&"tooltip__content--"+s} ${l!=="none"&&"tp tp--"+l}`,children:L("div",{className:"labels is-flex flex-column",children:[s==="calendar"&&L(Qt,{children:[v("p",{className:"labels__date",children:p}),v("p",{className:"labels__text",children:r}),v("p",{className:"labels__sub_title",children:f})]}),s==="text"&&v(Qt,{children:r&&v("p",{className:"labels__text",children:r})}),s==="taxes"&&L(Qt,{children:[m&&L("div",{className:"principal-item is-flex is-justify-content-space-between",children:[v("p",{className:"principal-item__label",children:m==null?void 0:m.label}),v("p",{className:"principal-item__value",children:m==null?void 0:m.value})]}),g&&v("div",{className:"tax-sections",children:g==null?void 0:g.map(st=>L("div",{className:"tax-sections__sec",children:[st.title&&v("div",{className:"sec-title",children:st.title}),st.labels.map(xt=>L("div",{className:"sec-label is-flex is-justify-content-space-between",children:[v("p",{className:"sec-label__label",children:xt.label}),v("p",{className:"sec-label__value",children:xt.value})]},xt.label))]},st.title))}),x&&L("div",{className:"total is-flex is-justify-content-space-between",children:[v("p",{className:"total__label",children:x==null?void 0:x.label}),v("p",{className:"total__value",children:x==null?void 0:x.value})]}),k&&L("div",{className:"amount is-flex is-justify-content-space-between",children:[v("p",{className:"amount__label",children:k==null?void 0:k.label}),v("p",{className:"amount__value",children:k==null?void 0:k.value})]}),N&&v("div",{className:"tax-notification",children:N}),O&&L("div",{className:"double-state columns is-mobile",children:[L("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(A=O[0])==null?void 0:A.label}),O[0].type==="state"?L("div",{className:"state-status",style:{color:(q=O[0])==null?void 0:q.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(ne=O[0])==null?void 0:ne.sub_label_color},children:(J=O[0])==null?void 0:J.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(Q=O[0])==null?void 0:Q.sub_label_color},children:(W=O[0])==null?void 0:W.sub_label})]}),L("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(V=O[1])==null?void 0:V.label}),O[1].type==="state"?L("div",{className:"state-status",style:{color:(te=O[1])==null?void 0:te.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(se=O[1])==null?void 0:se.sub_label_color},children:(H=O[1])==null?void 0:H.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(ee=O[1])==null?void 0:ee.sub_label_color},children:(de=O[1])==null?void 0:de.sub_label})]})]}),M&&L("div",{className:"triple-state columns is-mobile",children:[L("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(ve=M[0])==null?void 0:ve.label}),M[0].type==="state"?L("div",{className:"state-status",style:{color:(xe=M[0])==null?void 0:xe.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(he=M[0])==null?void 0:he.sub_label_color},children:(Se=M[0])==null?void 0:Se.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(De=M[0])==null?void 0:De.sub_label_color},children:(Ne=M[0])==null?void 0:Ne.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(Ue=M[1])==null?void 0:Ue.label}),M[1].type==="state"?L("div",{className:"state-status",style:{color:(ut=M[1])==null?void 0:ut.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(Rt=M[1])==null?void 0:Rt.sub_label_color},children:(ye=M[1])==null?void 0:ye.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(Me=M[1])==null?void 0:Me.sub_label_color},children:(Pe=M[1])==null?void 0:Pe.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(Ge=M[2])==null?void 0:Ge.label}),M[2].type==="state"?L("div",{className:"state-status",style:{color:($e=M[2])==null?void 0:$e.colorStatus},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(lt=M[2])==null?void 0:lt.sub_label_color},children:(it=M[2])==null?void 0:it.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(He=M[2])==null?void 0:He.sub_label_color},children:(Oe=M[2])==null?void 0:Oe.sub_label})]})]}),z&&L("div",{className:"tax-alert is-flex",children:[(z==null?void 0:z.icon)&&v(Ve,{icon:z==null?void 0:z.icon}),v("p",{className:"tax-alert__label",children:z==null?void 0:z.label})]})]})]})})})}):v(Qt,{})})},NL="",qh=({size:s="md",disabled:l=!1,label:u="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:m,className:g,...x})=>{const k=re.useRef(null),N=()=>{k.current&&k.current.checked&&f&&f()};return v("div",{className:"elv-component elv-radio elv-control",...x,children:L("label",{className:["e-control e-radio",` e-control--${s} e-radio--${s}`,`${m?" e-control--error e-radio--error":""}`,`${l?" e-control--disabled e-radio--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${g?" "+g:""}`].join(""),children:[v("input",{type:"radio",defaultChecked:p,id:r,name:a,value:r,className:["e-control__input e-radio__input","m-0","is-clickable"].join(""),onChange:()=>{N()},disabled:l,ref:k}),u&&v("span",{className:"label-text is-flex is-align-items-center",children:u}),v("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},TL="",bu=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,dropUp:r=!1,error:p,options:f,defaultValue:m,minWidth:g,maxCharacters:x=30,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(""),[$,A]=re.useState(a||""),[q,ne]=re.useState(!1);re.useEffect(()=>{if(m&&f){const V=f.find(te=>te.value===m);V&&(z(V.value),A(V.label))}},[m,f]);function J(){return V=>{ne(!1)}}function Q(){return V=>{ne(!q)}}function W(V,te){return se=>{k&&k(V),z(V),A(te),ne(!1)}}return v("div",{className:"elv-component elv-select",style:{minWidth:g},...O,children:L("div",{className:`select-container ${N||""}`,onMouseLeave:J(),children:[v("div",{className:["select-container__select",`select--${l}`,`select--${s}`,`${p?"select--error":""} ${u?"select--disabled":""}`,,].join(" "),onClick:Q(),children:m!==void 0||!m?$&&v("span",{children:Ot($,x)}):v("span",{children:Ot(a||"",x)})}),v("div",{className:`select-container__dropdown select--${s} ${q?"select-container__dropdown--active":""} ${r?"select-container__dropdown--up":""}`,children:L("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${M==a?"list__item--active":""}`,onClick:()=>W("",a),children:Ot(a,x)}),f==null?void 0:f.map((V,te)=>L("li",{className:"list__item",onClick:W(V.value,V.label),children:[V.icon&&v("i",{className:`item__icon ${V.icon}`}),Ot(V.label,x)]},te))]})})]})})},OL="",RL="",Qh=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:g,maxLength:x,iconLeft:k,iconRight:N,isRounded:O,isLoading:M,isDisabled:z,hasError:$,className:A,onChangeInput:q,onSearch:ne,...J})=>{const Q=re.useRef(null),W=te=>{te.key==="Enter"&&V()},V=()=>{var se;const te=(se=Q.current)==null?void 0:se.value;ne&&ne(te||"")};return v("div",{className:"elv-component elv-input",...J,children:v("div",{className:`field e-input ${A||""}`,children:L("p",{className:["control",`${k?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${M?" is-loading":""}`].join(""),children:[v("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${O?" is-rounded":""}`,`${$?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:te=>{q&&q(te)},defaultValue:f,value:m,ref:Q,disabled:z,onKeyDown:W,autoComplete:g,maxLength:x}),k&&v("span",{className:`icon is-left ${"is-"+r}`,children:v(Ve,{...k})}),N&&v("span",{className:`icon is-right ${"is-"+r}`,children:v(Ve,{...N})})]})})})},Ig=({labelDescription:s,checkbox:l,input:u,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:m,priceBottomEdit:g,onCantidadChange:x,onSaveData:k,showAmountinEdit:N,calculateOnChangeCant:O,calculateOnChangeTax:M,exento:z,disabledInputTax:$,visibleBtnRecalculate:A,visibleBtnCancelar:q,visibleBtnGuardar:ne,...J})=>{const[Q,W]=re.useState(Number(u==null?void 0:u.defaultValue)||1),[V,te]=re.useState(0),[se,H]=re.useState(z),[ee,de]=re.useState(m==null?void 0:m.labelNumberI),ve=()=>{H(!se)},xe=()=>{se||(N?k&&k({calculatedtax:Q&&V&&(g==null?void 0:g.labelNumberA)?Q*V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}):k&&k({calculatedtax:V&&(g==null?void 0:g.labelNumberA)?V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}))},he=(Ue,ut)=>{if(se)return;const Rt=g!=null&&g.labelNumberA?g.labelNumberA:0;if(N){const ye=Ue&&ut&&(g==null?void 0:g.labelNumberA)?parseFloat((Ue*ut*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:ye,aliquot:Rt})}else{const ye=ut&&(g==null?void 0:g.labelNumberA)?parseFloat((ut*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:ye,aliquot:Rt})}},Se=()=>{!se||de(N?Q&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((Q*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0)},De=Ue=>{se||(W(parseFloat(Ue.toFixed(2))),de(N?Ue&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((Ue*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),O&&he(Ue,V))},Ne=Ue=>{se||(te(parseFloat(Ue.toFixed(2))),de(N?Q&&Ue&&(g==null?void 0:g.labelNumberA)?parseFloat((Q*Ue*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:Ue&&(g==null?void 0:g.labelNumberA)?parseFloat((Ue*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),M&&he(Q,Ue))};return v("div",{className:"elv-component elv-collapsedit",...J,children:v("div",{className:["collapsedit box is-flex is-align-items-center px-4 py-2 has-background-white",`${f?" "+f:""}`].join(""),children:L("div",{className:"collapsedit__breakpoint4 is-flex is-align-items-center justify-content-space-between is-fullw ",children:[L("div",{className:"collapsedit__breakpoint3 is-align-items-center is-flex is-fullw ",children:[L("div",{className:"collapsedit__breakpoint2 is-flex is-align-items-center is-gap-4",children:[L("div",{className:"collapsedit__breakpoint1 is-flex is-align-items-center is-gap-4",children:[L("div",{className:"collapsedit__desc-cont is-flex is-gap-4 mr-4 is-align-items-center",children:[v("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:s}),v("div",{className:"collapsedit__check is-size-14px",children:l&&v(nd,{...l,defaultChecked:z,onCheck:ve,className:""})})]}),v("div",{className:"collapsedit__input",children:N&&v(Qt,{children:u&&L("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),v(Qh,{...u,className:"",onChangeInput:Ue=>De(Number(Ue.target.value))})]})})})]}),v("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&L("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),v(Qh,{...a,isDisabled:$,onChangeInput:Ue=>Ne(Number(Ue.target.value))})]})})]}),L("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[g&&L("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:g.labelAliquot}),L("div",{className:"is-size-14px has-text-grey-dark",children:[g.labelNumberA,"%"]})]}),m&&L("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:m.labelImpost}),L("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",ee]})]})]})]}),L("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[v("div",{className:"",children:r&&A&&v(Ae,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{Se()}})}),L("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[v("div",{className:"button-cancel ml-4",children:p&&q&&v(Ae,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),v("div",{className:"button-save",children:ne&&v(Ae,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{xe()}})})]})]})]})})})},N0=({type:s,paddingLeft:l,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,optionSelect:H,buttonMenu:ee,buttonLink:de,buttonDetail:ve,dropRightButton:xe,buttonEdit:he,checkbox:Se,collapseEdit:De,callBackCheckbox:Ne,radio:Ue,onSaveData:ut,showAmountinEdit:Rt,...ye})=>{const[Me,Pe]=re.useState(p),[Ge,$e]=re.useState(!1),[lt,it]=re.useState(!1),[He,Oe]=re.useState(!1),[st,xt]=re.useState(m);re.useState(Q);const[Mt,kn]=re.useState(!1),En=()=>{Pe(!Me)},_t=()=>{Oe(!He),xt(!st)},Yt=re.useRef(null);re.useEffect(()=>{function vt(Xt){Yt.current&&!Yt.current.contains(Xt.target)&&it(!1)}return document.addEventListener("click",vt),()=>{document.removeEventListener("click",vt)}},[Yt]);const ft=re.useRef(null);return re.useEffect(()=>{function vt(Xt){ft.current&&!ft.current.contains(Xt.target)&&$e(!1)}return document.addEventListener("click",vt),()=>{document.removeEventListener("click",vt)}},[ft]),v("div",{className:`elv-component elv-collapse ${a||""}`,...ye,children:!He&&!st?L("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${g?" e-collapse--colored-gray":""}`,`${k?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[L("div",{className:`e-collapse__container ${"e-collapse__container--"+s} ${l&&l==="short"?"e-collapse__container--"+s+"--short":"e-collapse__container--"+s+"--long"} ${m?"e-collapse__container--disabled":""} ${x?"e-collapse__container--borderBottom":""} ${N&&!$&&!q?"e-collapse__container--"+s+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[L("div",{className:"left-container is-flex",style:{cursor:u&&!m?"pointer":"auto"},onClick:()=>{u&&!m&&En()},children:[u&&v("div",{className:"left-container__dropIcon",style:O&&{paddingTop:"28px"},children:v(Ve,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${Me&&"rotate"}`})}),L("div",{className:"left-container__texts is-flex is-flex-direction-column is-justify-content-center",children:[O&&L("div",{className:"state-title is-flex",style:{color:O==null?void 0:O.color},children:[v(Ve,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-title__text",children:O==null?void 0:O.label})]}),L("div",{className:"title-container is-flex is-align-items-center",children:[z&&v(Ve,{...z}),A&&v(ji,{...A}),N&&v("p",{className:`title-container__title title-container__title${M&&M=="regular"?"--regular":"--semibold"}`,children:N})]}),$&&v("p",{className:"description",children:$}),q&&v("p",{className:"details",children:q}),(ne||J)&&L("div",{className:"date is-flex",children:[ne&&L("span",{className:"date__days is-flex is-align-items-center",children:[v(Ve,{icon:"fa-solid fa-calendar-days"}),v("p",{children:ne})]}),J&&L("span",{className:"date__time is-flex is-align-items-center",children:[v(Ve,{icon:"fa-solid fa-clock"}),v("p",{children:J})]})]})]})]}),L("div",{className:"right-container is-flex is-align-items-center",children:[ve&&L("span",{className:"right-container__buttonDetail",ref:ft,children:[v(Ae,{...ve.button,onClick:()=>{$e(!Ge),ve.button.onClick&&ve.button.onClick()}}),ve.tooltip?v("div",{className:`detail-tooltip ${ve.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:v(Bh,{...ve.tooltip,active:Ge})}):v(Qt,{})]}),L("div",{className:"right-container__price is-flex",children:[se&&se.checkbox&&v("div",{className:"is-flex is-align-items-center",children:v(nd,{...se.checkbox})}),L("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[V&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[v("p",{className:"desc",children:V.description}),L("p",{className:"value",children:["$ ",V.value]})]}),Q&&L("p",{className:"col-price__price",style:W&&W!=""?{color:W}:{color:"none"},children:["$",Q]}),te&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[v("p",{className:"desc",children:te.description}),L("p",{className:"value",children:["$ ",te.value]})]})]})]}),H&&v("div",{className:"right-container__optionSelect is-flex",children:v(bu,{...H})}),ee&&L("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:Yt,children:[v("span",{className:"menu-button ",children:v(Ae,{...ee.button,onClick:()=>{it(!lt),ee.onEllipse&&ee.onEllipse()}})}),lt&&ee.menuDropComponent&&v("div",{className:"menu-drop-component is-absolute",children:ee.menuDropComponent}),ee.select&&v("div",{className:"menu-select",style:lt?{display:"block"}:{display:"none"},children:v(bu,{...ee.select})})]}),xe&&v("div",{className:"right-container__dropLeftButton is-flex",children:v(Ae,{...xe})}),de&&v("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:v(Ae,{...de})}),he||Se||Ue?L("div",{className:"right-container__editCheckbox is-flex",children:[he&&v("div",{className:"buttonEdit is-flex is-align-items-center",children:v(Ae,{...he,onClick:()=>{_t()}})}),Se&&v("div",{className:"_checkbox is-flex is-align-items-center",children:v(nd,{...Se,onCheck:vt=>{kn(vt),Ne&&Ne(vt?{type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:ee,buttonLink:de,buttonDetail:ve,dropRightButton:xe,buttonEdit:he}:{})}})}),Ue&&v("div",{className:"_radio is-flex is-align-items-center",children:v(qh,{...Ue,onCheck:()=>{Ne&&Ne({type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:ee,buttonLink:de,buttonDetail:ve,dropRightButton:xe,buttonEdit:he}),Ue.onCheck&&Ue.onCheck()}})})]}):v(Qt,{})]})]}),f&&f.map(vt=>v(N0,{...vt,show:Me},An()))]}):v("div",{className:"",children:v(Ig,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:V==null?void 0:V.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:te==null?void 0:te.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(vt){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(vt){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(vt){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){Oe(!1),xt(!1)}},onSaveData:vt=>{ut&&ut({aliquot:vt.aliquot,calculatedtax:vt.calculatedtax}),Oe(!1),xt(!1)},showAmountinEdit:Rt})})})},ML="",T0=({type:s,paddingLeft:l,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:H,buttonLink:ee,buttonDetail:de,dropRightButton:ve,buttonEdit:xe,checkbox:he,collapseEdit:Se,callBackCheckbox:De,radio:Ne,onSaveData:Ue,showAmountinEdit:ut,...Rt})=>{const[ye,Me]=re.useState(Boolean(p)),[Pe,Ge]=re.useState(!1),$e=re.useRef(null);re.useEffect(()=>{if(!Pe)return;function Oe(st){$e.current&&!$e.current.contains(st.target)&&Ge(!1)}return document.addEventListener("click",Oe),()=>document.removeEventListener("click",Oe)},[Pe]);const lt=()=>{m||Me(Oe=>!Oe)},it=Oe=>{Oe&&Oe.stopPropagation&&Oe.stopPropagation()},He=Oe=>{De&&De(Oe?{type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:H,buttonLink:ee,buttonDetail:de,dropRightButton:ve,buttonEdit:xe}:{})};return L("div",{className:`elv-component elv-collapse-mobile ${a!=null?a:""}`,...Rt,children:[L("div",{className:"collapse-mobile__header",onClick:lt,role:"button","aria-expanded":ye,tabIndex:0,children:[L("div",{className:"collapse-mobile__header-left is-flex is-align-items-center",children:[O&&L("div",{className:"state-title is-flex",style:{color:O.color},children:[v(Ve,{icon:"fa-solid fa-circle"}),v("p",{className:"state-title__text",children:O.label})]}),L("div",{className:"title-container is-flex is-flex-direction-column",children:[L("div",{className:"title-container__top is-flex is-align-items-center",children:[z&&v(Ve,{...z}),A&&v(ji,{...A}),N&&v("p",{className:`title-container__title ${M&&M==="regular"?"title-container__title--regular":"title-container__title--semibold"}`,children:N})]}),($||q)&&v("p",{className:"title-container__subtitle",children:($!=null?$:q).toString().split(`
|
|
30
30
|
`)[0]})]})]}),L("div",{className:"collapse-mobile__header-right is-flex is-align-items-center",children:[Q!==void 0&&L("div",{className:"right-container__price is-flex is-flex-direction-column is-align-items-end",children:[V&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[v("p",{className:"desc",children:V.description}),L("p",{className:"value",children:["$ ",V.value]})]}),L("p",{className:"col-price__price",style:W?{color:W}:void 0,children:["$",Q]}),te&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[v("p",{className:"desc",children:te.description}),L("p",{className:"value",children:["$ ",te.value]})]})]}),he&&v("div",{className:"right-container__checkbox",onClick:it,children:v(nd,{...he,onCheck:Oe=>{He(Oe),he.onCheck&&he.onCheck(Oe)}})}),de&&L("span",{className:"right-container__buttonDetail",onClick:Oe=>{it(Oe),de.button.onClick&&de.button.onClick()},children:[v(Ae,{...de.button}),de.tooltip&&v("div",{className:"detail-tooltip",children:v(Bh,{...de.tooltip,active:!1})})]}),H&&L("div",{className:"right-container__buttonMenu is-relative",ref:$e,children:[v("span",{className:"menu-button",onClick:Oe=>{it(Oe),Ge(st=>!st),H.onEllipse&&H.onEllipse()},children:v(Ae,{...H.button})}),Pe&&H.menuDropComponent&&v("div",{className:"menu-drop-component is-absolute",onClick:it,children:H.menuDropComponent}),H.select&&v("div",{className:"menu-select",style:Pe?{display:"block"}:{display:"none"},onClick:it,children:v(bu,{...H.select})})]}),ve&&v("div",{className:"right-container__dropLeftButton is-flex",onClick:it,children:v(Ae,{...ve})}),ee&&v("div",{className:"right-container__buttonLink is-flex is-align-items-center",onClick:it,children:v(Ae,{...ee})}),(xe||Ne)&&L("div",{className:"right-container__editCheckbox is-flex is-align-items-center",onClick:it,children:[xe&&v("div",{className:"buttonEdit is-flex is-align-items-center",children:v(Ae,{...xe,onClick:Oe=>{it(Oe),xe.onClick&&xe.onClick()}})}),Ne&&v("div",{className:"_radio is-flex is-align-items-center",children:v(qh,{...Ne,onCheck:()=>{De&&De({type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:k,title:N,stateTitle:O,titleWeight:M,titleIcon:z,description:$,badge:A,details:q,dateDays:ne,dateTime:J,price:Q,priceColor:W,priceTop:V,priceBottom:te,priceLeft:se,buttonMenu:H,buttonLink:ee,buttonDetail:de,dropRightButton:ve,buttonEdit:xe}),Ne.onCheck&&Ne.onCheck()}})})]})]})]}),ye&&L("div",{className:"collapse-mobile__body",children:[$&&v("div",{className:"collapse-mobile__description",children:$}),q&&v("div",{className:"collapse-mobile__details",children:q}),(ne||J)&&L("div",{className:"collapse-mobile__dates",children:[ne&&L("span",{children:[v(Ve,{icon:"fa-solid fa-calendar-days"})," ",ne]}),J&&L("span",{children:[v(Ve,{icon:"fa-solid fa-clock"})," ",J]})]}),Se&&v(Ig,{...Se,onSaveData:Oe=>{Ue&&Ue(Oe)}}),f&&f.map((Oe,st)=>v(T0,{...Oe,show:ye},st))]})]})},PL="";var O0={exports:{}};/*!
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
@@ -309,4 +309,4 @@ https://sweetalert2.github.io/#ajax-request`),Hd(b),typeof b.title=="string"&&(b
|
|
|
309
309
|
m 0,-`+a+`
|
|
310
310
|
a `+a+","+a+" "+r+" 1 1 0,"+2*a+`
|
|
311
311
|
a `+a+","+a+" "+r+" 1 1 0,-"+2*a+`
|
|
312
|
-
`}function H2(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 Y2=function(s){j2(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 wx-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,x=u.text,k=this.getPathRadius(),N=this.getPathRatio();return re.createElement("svg",{className:p.root+" "+r,style:m.root,viewBox:"0 0 "+z2+" "+F2,"data-test-id":"CircularProgressbar"},this.props.background?re.createElement("circle",{className:p.background,style:m.background,cx:Ry,cy:My,r:wx}):null,re.createElement(bx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:g,style:m.trail}),re.createElement(bx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:g,style:m.path}),x?re.createElement("text",{className:p.text,style:m.text,x:Ry,y:My},x):null)},l.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},l}(re.Component);function W2(s){s.children;var l=I2(s,["children"]);return re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},re.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},re.createElement(Y2,Oy({},l)),s.children?re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren__children",style:{position:"absolute",width:"100%",height:"100%",marginTop:"-100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},s.children):null))}function V2(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,x=s.backgroundColor,k=l==null?void 0:"rotate("+l+"turn)",N=l==null?void 0:"center center";return{root:{},path:xv({stroke:p,strokeLinecap:u,transform:k,transformOrigin:N,transition:f,transitionDuration:m==null?void 0:m+"s"}),trail:xv({stroke:g,strokeLinecap:u,transform:k,transformOrigin:N}),text:xv({fill:a,fontSize:r}),background:xv({fill:x})}}function xv(s){return Object.keys(s).forEach(function(l){s[l]==null&&delete s[l]}),s}const B2=({labelPerformance:s,dataTime:l,percentage:u,description:a,star:r,qualification:p,rating:f,className:m})=>{const g=Math.round(f*2)/2;return v("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:[v("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),v("div",{children:l==null?void 0:l.map(x=>v("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:x.date}))})]}),v("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L(W2,{value:u,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:V2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[v("div",{className:"is-size-4",children:v("strong",{children:`${u}%`})}),v("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[v("div",{className:"is-flex",children:r==null?void 0:r.map((x,k)=>{const N=g-k===.5;return L("div",{children:[!N&&v(Ve,{icon:x.star,className:"iconStar mr-3 is-size-5",color:k<g?"#16A34A":"#CED4DA"}),N&&v(Ve,{icon:x.starStroke,className:"iconStar mr-3 is-size-5",color:"#16A34A"})]},k)})}),L("p",{className:"has-text-grey is-size-14px mt-3",children:[" ",f," ",p]})]})]})})},qL="",q2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:m})=>v("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:[v("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),v(Ae,{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:[v("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:[v("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:[v("div",{className:"has-text-weight-semibold has-text-grey-dark",children:g.name}),v("div",{className:"has-text-grey-dark",children:g.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:g.colorContains},children:[v(Ve,{icon:"fa-solid fa-circle",color:g.colorIcon,className:"mr-2"}),v("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:[v(Ve,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),v("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),v("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:[v(Ve,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),v("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),v("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),QL="",Q2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(O=>O.label===l),[m,g]=re.useState(f),[x,k]=re.useState(f);if(m)var p=s.indexOf(m);re.useEffect(()=>{var O=s.find(M=>M.label===l);g(O),m&&(p=s.indexOf(m)),k(O)},[l,s]);const N=O=>{k(O),u&&u(O),O.onClick&&O.onClick()};return v("div",{className:"elv-component elv-steps",...r,children:v("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:s.map((O,M)=>L("li",{className:`steps-segment ${s[M+1]!==void 0&&s[M+1]==m?"is-pre-active":""} ${O==m?"is-active":""}`,children:[v("span",{className:"steps-marker",onClick:()=>{M<=p?N(O):O.onClick&&O.onClick()},children:M<p?v("span",{className:"icon",children:v("i",{className:`${O.icon}`})}):v("span",{children:M+1})}),v("div",{className:`steps-content ${M<=p?"steps-content--completed":"steps-content--incompleted"} ${O===x&&"steps-content--position"}`,children:v("p",{className:"steps-content__item-label",children:O.label})})]},M))})})},KL="",K2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...m})=>v("div",{className:"elv-component elv-tabs",...m,children:v("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((g,x)=>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 ${x!==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:[v(Ve,{...g.icon,className:"boxed-container__icon mb-1 mr-1"}),v("p",{className:"boxed-container__label",children:Ot(g.label,30)})]}),v("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Ot(g.subtitle,20)})]}):v("li",{onClick:()=>{a&&a(g),g.sub_labels&&r&&r(g.sub_labels[0]),g.onClick&&g.onClick()},className:`item is-clickable ${x===0?"item--is-first":""} ${g.label==(u==null?void 0:u.label)?"item--active":""} ${g.disabled?"item--disabled":""}`,children:Ot(g.label,30)}),g.sub_labels!==void 0&&l==="vertical"&&g.sub_labels.map((k,N)=>v("li",{onClick:()=>{a&&a(g),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${x===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:Ot(k.label,25)},An()))]},g.label+An()))})}),GL="",G2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:g=30,autocomplete:x,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(f||""),[$,A]=re.useState(""),[q,ne]=re.useState(f||""),[J,Q]=re.useState(!1),W=(H,ee)=>{H==""?z(""):z(ee),A(H),ne(ee),k&&k(H),Q(!1)};function V(H){const ee=H.target.value;z(ee),Q(!0)}const te=p.filter(H=>H.label.toLowerCase().includes(M?M.toLowerCase():"")),se=re.useRef(null);return re.useEffect(()=>{function H(ee){se.current&&!se.current.contains(ee.target)&&Q(!1)}return document.addEventListener("click",H),()=>{document.removeEventListener("click",H)}},[se]),re.useEffect(()=>{const H=p.find(ee=>ee.value===f);H?W(H.value,H.label):W("","")},[f,p]),v("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...O,children:L("div",{className:`autocomplete-container ${N||""}`,ref:se,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[v("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||q,onChange:V,placeholder:a||"",onFocus:()=>Q(!0),readOnly:!!$,autoComplete:x}),$&&q!=""?v("div",{onClick:()=>{W("","")},className:"",children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),v("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${$==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Ot(a,g||30)}),te==null?void 0:te.map((H,ee)=>L("li",{className:"list__item",onClick:()=>{W(H.value,H.label)},children:[H.icon&&v("i",{className:`item__icon ${H.icon}`}),Ot(H.label,g||30)]},ee))]})})]})})},X2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:m,minWidth:g,maxCharacters:x=30,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(m||""),[$,A]=re.useState(!1),q=re.useRef(null),ne=f!==void 0?f:M,J=V=>{f===void 0&&z(V.value),k==null||k(V),A(!1)},Q=V=>{f===void 0&&z(V.target.value),A(!0)},W=p.filter(V=>(V.value+" "+V.label).toLowerCase().includes((ne||"").toLowerCase()));return re.useEffect(()=>{const V=te=>{q.current&&!q.current.contains(te.target)&&A(!1)};return document.addEventListener("click",V),()=>document.removeEventListener("click",V)},[]),re.useEffect(()=>{m&&f===void 0&&z(m)},[m,f]),v("div",{className:"elv-component elv-autocomplete",style:{minWidth:g},...O,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:[v("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ne,onChange:Q,onFocus:()=>A(!0)}),ne&&!u&&v("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&z(""),k==null||k({value:"",label:""})},children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),$&&v("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active `,children:v("ul",{className:"dropdown__list",children:W.length>0?W.map((V,te)=>v("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(V),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[v("span",{style:{fontWeight:"bold"},children:Ot(V.value,x)}),v("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Ot(V.label,x)})]})},te)):v("li",{className:"list__item",style:{padding:"6px 0",textAlign:"center",color:"#666"},children:"No se encontraron coincidencias"})})})]})})},XL="",Z2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:g=30,autocomplete:x,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(f||""),[$,A]=re.useState(""),[q,ne]=re.useState(f||""),[J,Q]=re.useState(!1),W=(H,ee)=>{H==""?z(""):z(ee),A(H),ne(ee),k&&k(H,ee),Q(!1)};function V(H){const ee=H.target.value;z(ee),Q(!0)}const te=p.filter(H=>H.label.toLowerCase().includes(M?M.toLowerCase():"")),se=re.useRef(null);return re.useEffect(()=>{function H(ee){se.current&&!se.current.contains(ee.target)&&Q(!1)}return document.addEventListener("click",H),()=>{document.removeEventListener("click",H)}},[se]),re.useEffect(()=>{const H=p.find(ee=>ee.value===f);H?W(H.value,H.label):W("","")},[f,p]),v("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...O,children:L("div",{className:`autocomplete-container ${N||""}`,ref:se,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[v("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||q,onChange:V,placeholder:a||"",onFocus:()=>Q(!0),readOnly:!!$,autoComplete:x,disabled:u}),$&&q!=""?v("div",{onClick:()=>{W("","")},className:"",children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),v("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${$==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Ot(a,g||30)}),te==null?void 0:te.map((H,ee)=>L("li",{className:"list__item",onClick:()=>{W(H.value,H.label)},children:[H.icon&&v("i",{className:`item__icon ${H.icon}`}),Ot(H.label,g||30)]},ee))]})})]})})},ZL="",J2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:m,onStartDateChange:g,onEndDateChange:x,className:k,...N})=>{const[O,M]=re.useState(u||new Date),[z,$]=re.useState(a||new Date);return re.useEffect(()=>{g&&g(O)},[O]),re.useEffect(()=>{x&&x(z)},[z]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[v(bv,{selected:O,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:O,endDate:z,className:k}),v(bv,{selected:z,onChange:A=>$(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:O,endDate:z,minDate:O,className:k})]}):v("div",{className:"elv-component elv-datepicker",...N,children:v(bv,{selected:O,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:m||"es"})})},JL="",eO=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:m,onChangeFilters:g,className:x,...k})=>{const[N,O]=re.useState(!1),[M,z]=re.useState(!1),[$,A]=re.useState(!1),[q,ne]=re.useState([]),[J,Q]=re.useState([]),W=(ee,de,ve)=>{var Se,De,Ne;const xe=q.findIndex(Ue=>Ue.name===de),he=[...q];if(ee==="radio")xe>=0?he[xe]={name:de,value:[ve]}:he.push({name:de,value:[ve]});else{const Ue=(De=(Se=q[xe])==null?void 0:Se.value)==null?void 0:De.indexOf(ve);xe>=0&&Ue>=0?he[xe].value.splice(Ue,1):xe>=0?he[xe].value.push(ve):he.push({name:de,value:[ve]})}((Ne=he[xe])==null?void 0:Ne.value.length)===0&&he.splice(xe,1),he.length>0&&A(!0),ne(he)},V=()=>{g&&(g(q),Q(q),A(!1),q.length===0?z(!1):z(!0))},te=()=>{ne([]),document.querySelectorAll(".section__options").forEach(de=>{de.querySelectorAll("label").forEach(xe=>{xe.querySelectorAll("input").forEach(Se=>{Se.checked=!1})})}),z(!1),A(!1),g&&(g([]),Q([]))};function se(){return ee=>{O(!N)}}const H=re.useRef(null);return re.useEffect(()=>{function ee(de){H.current&&!H.current.contains(de.target)&&O(!1)}return document.addEventListener("click",ee),()=>{document.removeEventListener("click",ee)}},[H]),v("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${x||""}`,ref:H,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:se(),children:[v(Ve,{icon:"fa-solid fa-filter",className:"filter"}),v("span",{className:"placeholder",children:Ot(a,25)}),J.length>0&&v(ji,{color:"primary",text:J.length.toString()}),v(Ve,{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(ee=>{var de;return L("div",{className:"section",children:[v("p",{className:"section__title is-5",children:ee.label}),v("div",{className:`section__options ${ee.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(de=ee.options)==null?void 0:de.map(ve=>v("div",{children:L("label",{htmlFor:ve.name,className:`filter-label ${ee.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ve.iconItem&&v(Ve,{...ve.iconItem}),v("p",{className:"",children:ve.name})]}),ee.type=="radio"?v(qh,{label:"",name:ee.name,size:"md",value:ve.name,onCheck:()=>W(ee.type,ee.name,ve.name)}):v(nd,{label:"",size:"md",value:ve.name,name:ee.name,onCheck:()=>W(ee.type,ee.name,ve.name)})]})},ve.name))})]},ee.name)}),$||M?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[$&&v("span",{className:"button-aplicate is-flex is-justify-content-center",children:v(Ae,{label:f.label!==void 0?Ot(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:V,...f})}),M&&v("span",{className:"button-cleaner is-flex is-justify-content-center",children:v(Ae,{...m,label:m.label!==void 0?Ot(m.label,25):"",trailingIcon:m.trailingIcon,onClick:te})})]}):v(Qt,{})]})]})})},eU="",tO=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:g,pattern:x,onRef:k,iconLeft:N,iconRight:O,isRounded:M,isLoading:z,isDisabled:$,hasError:A,className:q,onChangeInput:ne,onKeyDown:J,onSearch:Q,...W})=>{const V=se=>{se.key==="Enter"&&te()},te=()=>{var ee,de;const se=re.useRef(null),H=k?(ee=k.current)==null?void 0:ee.value:(de=se.current)==null?void 0:de.value;Q&&Q(H||"")};return v("div",{className:"elv-component elv-input",...W,children:v("div",{className:`field e-input ${q||""}`,children:L("p",{className:["control",`${N?" has-icons-left":""}`,`${O?" has-icons-right":""}`,`${z?" is-loading":""}`].join(""),children:[v("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:se=>{ne&&ne(se)},defaultValue:f,value:m,ref:k,disabled:$,onKeyDown:J||V,autoComplete:g,pattern:x}),N&&v("span",{className:`icon is-left ${"is-"+r}`,children:v(Ve,{...N})}),O&&v("span",{className:`icon is-right ${"is-"+r}`,children:v(Ve,{...O})})]})})})},tU="",nO=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...m})=>v("div",{className:["elv-component"," elv-form-control"].join(""),...m,children:L("div",{className:`e-input-form ${f||""}`,children:[v("div",{children:l}),v(Qh,{...s}),L("div",{children:[v("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]})]})}),nU="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:g,onChangeInput:x,onSearch:k,className:N,...O})=>{const M=re.useRef(null),z=A=>{A.key==="Enter"&&$()},$=()=>{var q;const A=(q=M.current)==null?void 0:q.value;k&&k(A||"")};return v("div",{className:"elv-component elv-search",...O,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[v("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:A=>x&&x(A.target.value),defaultValue:a,value:r,ref:M,disabled:g,onKeyDown:z}),v("span",{className:"search-container__button-search",children:v(Ae,{...p,size:s,onClick:()=>{$()}})})]})})},rO=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p=[],value:f,minWidth:m,maxCharacters:g=30,onChangeSelect:x,className:k,...N})=>{var J,Q;const[O,M]=re.useState(!1),z=re.useRef(null),$=re.useMemo(()=>p.find(W=>W.value===f),[p,f]),A=(Q=(J=$==null?void 0:$.label)!=null?J:a)!=null?Q:"";re.useEffect(()=>{if(!O)return;function W(te){!z.current||z.current.contains(te.target)||M(!1)}function V(te){te.key==="Escape"&&M(!1)}return document.addEventListener("click",W),document.addEventListener("keydown",V),()=>{document.removeEventListener("click",W),document.removeEventListener("keydown",V)}},[O]),re.useEffect(()=>{u&&M(!1)},[u]);const q=()=>{u||M(W=>!W)},ne=W=>{x==null||x(W),M(!1)};return v("div",{className:"elv-component elv-select",style:{minWidth:m},...N,children:L("div",{className:`select-container ${k!=null?k:""}`,ref:z,children:[v("div",{className:["select-container__select",`select--${l}`,`select--${s}`,`${r?"select--error":""}`,`${u?"select--disabled":""}`].join(" "),role:"button","aria-haspopup":"listbox","aria-expanded":O,onClick:q,children:v("span",{children:Ot(A,g)})}),v("div",{className:`select-container__dropdown select--${s} ${O?"select-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",role:"listbox",children:[a&&v("li",{className:`list__item list__item--default ${f===""?"list__item--active":""}`,onClick:()=>ne(""),role:"option","aria-selected":f==="",children:Ot(a,g)}),p!=null&&p.length?p.map((W,V)=>{const te=f===W.value;return L("li",{className:`list__item ${te?"list__item--active":""}`,onClick:()=>ne(W.value),role:"option","aria-selected":te,children:[W.icon&&v("i",{className:`item__icon ${W.icon}`}),Ot(W.label,g)]},V)}):v("li",{className:"list__item",style:{opacity:.7,cursor:"default"},children:"No hay opciones"})]})})]})})},rU="",Cx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,g]=re.useState(),x=()=>{g(!m),r&&r(!m)};return v("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[v("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:x}),v("span",{className:"slider round"})]})})},aU="",aO=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:g=50,className:x,...k})=>v("div",{className:"elv-component elv-textArea",children:v("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${x?" "+x:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:g,...k})}),iU="",oU="",xx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...g})=>v("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:[v("div",{className:"mr-5",children:r&&v(Ve,{icon:sk(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?v("p",{className:"file_name is-size-7",children:r}):a?v("p",{className:"file_name is-size-7",children:a.name}):v(Qt,{}),v("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),v(Ae,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?v("div",{className:"is-size-7",children:E0(p)}):a?v("div",{className:"is-size-7",children:E0(a.size)}):v(Qt,{})]}),u&&v("div",{className:"uploadfile__progress pt-2",children:v(D0,{...l})})]}),v("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),iO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:g,onPreviewFile:x,onDeleteFile:k,onErrorSize:N,onErrorExtensions:O,...M})=>{const[z,$]=re.useState(!1),[A,q]=re.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(se=>{var ee;const H=(ee=se.name.split(".").pop())==null?void 0:ee.toLowerCase();return m==null?void 0:m.includes(H||"")})),ne=se=>{se.preventDefault(),$(!0)},J=()=>{$(!1)},Q=se=>{se.preventDefault(),$(!1);const H=se.dataTransfer.files;H&&V(H)},W=se=>{const H=se.target.files;H&&V(H)},V=se=>{var H;if(console.log(""),se.length<=r&&A.length+se.length<=r)for(let ee=0;ee<se.length;ee++){const de=se[ee],ve=de.name.split("."),xe=ve.length>1?(H=ve.pop())==null?void 0:H.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(xe||""))){if(de.size<=a*1024*1024)g&&g(de);else{N&&N(de);return}q(he=>[...he,de])}else{O&&O(de);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},te=se=>{const H=A.filter(ee=>ee!==se);q(H)};return v("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:[v("div",{className:`uploadfiles__files file ${z?"dragging":""}`,onDragEnter:ne,onDragLeave:J,onDragOver:se=>se.preventDefault(),onDrop:Q,children:L("label",{htmlFor:"file-input",className:"file-label",children:[v("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:[v("span",{className:"file-icon",children:v(Ve,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),v("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),v("div",{className:"uploadfiles__data",children:u}),A.length>0?v("div",{children:A.map((se,H)=>v("div",{className:"uploadfiles__download mb-3",children:v(xx,{showBar:!!(p&&p[H]&&p[H]!==100),file:se,file_name:se.name,file_size:se.size,onPreview:ee=>{x&&x(ee)},onDelete:ee=>{k&&k(ee),te(ee)},progressBar:{value:p&&p[H]?p[H]:0}})},H))}):null]})})},lU="",oO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,butonLegal:p,className:f,...m})=>{var g=new Date,x=g.getFullYear();return v("div",{className:"elv-component elv-footer",...m,children:L("div",{className:`footer-component is-flex is-flex-direction-column ${f||""}`,children:[L("div",{className:"footer-component__container",children:[s&&v(Qt,{children:s.map(k=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[v("p",{className:"column-item__title",children:k.title}),k.buttonLinks.map(N=>v("span",{className:"column-item__button",children:v(Ae,{...N})},An())),v("span",{className:"column-item__final",children:v(Ae,{...k.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[v("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(k=>v("span",{className:"final-item__button",children:v(Ae,{...k})},An())),v("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[v("img",{className:"logo1",src:u,alt:""}),L("div",{className:"gob-centro is-flex is-flex-direction-column is-justify-content-center",children:[L("div",{className:"text-gob-centro",children:[v("p",{children:v("strong",{children:" Gobierno de Corrientes. Ministerio de Hacienda y Finanzas. Direccion General de Rentas"})}),v("p",{children:"Casa Central: 25 de Mayo 902 PB, Corrientes(W3400BCJ) - Corrientes"}),v("p",{children:"Centro Integral de Atencion al Contribuyente(CIAC): Av. Juan Pujol 2330, Corrientes(W3400BKU)."})]}),v("div",{className:"aviso-legal",children:p&&v(Ae,{...p})})]}),v("img",{className:"logo2",src:a,alt:""})]}),L("div",{className:"copy is-flex",children:[v("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",x," - Rentas Corrientes"]})}),r&&v("div",{className:"end-button-links is-flex",children:r.map(k=>v("div",{className:"end-button-links__item is-flex",children:v("span",{className:"end-button-links__button",children:v(Ae,{...k})},k.label)},An()))})]})]})]})})},sU="",lO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",sO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:g,...x})=>{var ee,de,ve,xe;const[k,N]=re.useState(!1),[O,M]=re.useState(!1),[z,$]=re.useState(window.innerWidth<1217),[A,q]=re.useState(window.innerWidth<654),[ne,J]=re.useState(null),[Q,W]=re.useState((ee=p==null?void 0:p.reduce((he,Se)=>({...he,[Se.uniqueValue]:{active:!1,name:null}}),{}))!=null?ee:{}),V=re.useRef(null),te=p==null?void 0:p.map(()=>re.useRef(null)),se=he=>{J(Se=>Se===he?null:he),W(Se=>({...Object.keys(Se).reduce((De,Ne)=>(De[Ne]={active:Ne===he,name:Se[Ne].name},De),{})}))};re.useEffect(()=>{function he(Se){var De;Object.values(Q).some(Ne=>Ne.active)&&!Se.defaultPrevented&&!((De=V.current)!=null&&De.contains(Se.target))&&(W(Ne=>Object.keys(Ne).reduce((Ue,ut)=>({...Ue,[ut]:{active:!1,name:Ne[ut].name}}),{})),J(null))}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[V,Q]);const H=re.useRef(null);return re.useEffect(()=>{function he(Se){H.current&&!H.current.contains(Se.target)&&M(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[H]),re.useEffect(()=>{function he(){$(window.innerWidth<1217),q(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),v("div",{className:"elv-component elv-header",...x,children:v("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[v("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:v("img",{src:lO,alt:"Burger SVG"})}),u&&v(Qt,{children:A?v("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:v("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):v("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:v("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),v("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:v("div",{className:"navbar-start",children:r&&r.map(he=>v("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[v("div",{className:"icon-functions is-flex",ref:V,children:p&&p.map((he,Se)=>L("div",{className:["item-icon "].join(""),ref:te&&te[Se],children:[v("span",{children:v(Ae,{...he.buttonIcon,onClick:()=>{var De;se(he.uniqueValue),(De=he.buttonIcon)!=null&&De.onClick&&he.buttonIcon.onClick()}})}),he.badge&&v(Qt,{children:v("span",{className:"item-icon__badge-notif",children:v(ji,{...he.badge})})}),he.iconDropComponent&&v("div",{className:`drop-component drop-component__icon ${Q[he.uniqueValue]&&p[Se].uniqueValue===ne?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?v(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:H,children:[v("div",{className:"user-mobile__icon",children:v(Ve,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!O)})}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${O&&"is-active"}`,children:m.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:H,children:[L("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>M(!O),children:[L("div",{className:"user-sec__text",children:[L("p",{className:"names",children:["Hola, ",m.name," ",m.lastName]}),v("p",{className:"description",children:m.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(de=m.avatar)!=null&&de.icon?L("div",{className:"user-icon",children:[v(Ve,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&v("span",{className:"user-icon__state",children:v(Ve,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):v("img",{src:(xe=(ve=m.avatar)==null?void 0:ve.img)==null?void 0:xe.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),v(Ve,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${O&&"is-active"}`,children:m.userDropComponent})]})}):v(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:H,children:[v("div",{className:"user-mobile__icon",children:v(Ve,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!O)})}),g&&v("div",{className:`drop-component drop-component__user ${O&&"is-active"}`,children:g})]}):v("div",{className:"navbar-item",children:v(Ae,{...f})})})]})]})})})},uU="",uO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[g,x]=re.useState(!1),k=re.useRef(null);return re.useEffect(()=>{function N(O){k.current&&!k.current.contains(O.target)&&x(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),v("div",{className:`elv-component elv-header-table ${s||""}`,...m,children:L("div",{className:"header-table is-flex",children:[l&&v("span",{children:v(op,{...l})}),a&&a.map(N=>v("span",{children:v(bu,{...N})},An())),u&&v(Cv,{...u}),r&&v(Ae,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[v(Ae,{...p,onClick:()=>{x(!g),p.onClick&&p.onClick()}}),f&&g&&v("div",{className:"menuButton__dropComponent",children:f})]})]})})},cU="",cO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:g=!1,onShow:x,onClose:k,...N})=>{const[O,M]=re.useState(a),[z,$]=re.useState(1),[A,q]=re.useState(0),ne=re.useRef(null),J=re.useRef(null),[Q,W]=re.useState(p);re.useEffect(()=>{M(a)},[a]),re.useEffect(()=>{W(p)},[p]);const V=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!O&&v("div",{className:"is-flex is-justify-content-end",children:v(Ae,{...l,onClick:()=>{M(!0),x&&x()}})}),O&&v("div",{className:"modal-background",onClick:()=>{M(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${O?"is-open":""} ${s||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(Ae,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{M(!1),k&&k()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(op,{...r})}),v("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:V},children:m.slice((z-1)*p,z*p).map((te,se)=>v("div",{ref:ne,className:`listItem ${g?" line-separation":""}`,children:te},An()))}),v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&v(Cv,{onChangePage:te=>{$(te)},minItemsPerPage:Q,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},dU="",dO=({className:s,title:l,show:u,button:a,buttonShow:r,buttonShowVisible:p,optionalButton:f,optionalButton2:m,children:g,position:x="right",footerbutton:k,onShow:N,width:O="400px",...M})=>{const[z,$]=re.useState(u);return re.useEffect(()=>{$(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...M,children:[p&&!z&&v("div",{className:"is-flex is-justify-content-end",children:v(Ae,{...r,onClick:()=>{$(!0),N&&N()}})}),z&&v("div",{className:"modal-background",onClick:()=>{$(!1),N&&N()}}),L("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${z?"is-open":""}`,` sidebar-container--${x}`,`${s?" "+s:""}`].join(""),style:{"--sidebar-width":O},"data-width":O,children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-4 is-gap-4",children:[v("div",{className:"sidebar-container__button mr-3",children:v(Ae,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{$(!1),N&&N()}})}),v("p",{className:"title is-5 has-text-link-dark",children:l})]}),v("div",{className:"sidebar-container__content",children:g})]}),k&&v("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[v("div",{className:"button-container__opt ml-5",children:f&&v(Ae,{...f})}),v("div",{className:"button-container__opt",children:m&&v(Ae,{...m})})]})})]})]})},fU="",fO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:g,addButton:x,removeButton:k,linkButton:N,iconButton:O,switcherLabel:M,switcher:z,labelRight:$,...A})=>v("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&&v("div",{className:"left-backButton",children:v(Ae,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&v(Ve,{...f}),m&&v("span",{className:"left-texts__principal__rectangle"}),a&&v("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&v("p",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[x||k?L("div",{className:"right-editButtons is-flex",children:[x&&v("span",{className:"right-editButtons__addButton",children:v(Ae,{...x})}),k&&v("span",{className:"right-editButtons__removeButton",children:v(Ae,{...k})})]}):v(Qt,{}),N&&v("span",{className:"right-linkButton",children:v(Ae,{...N})}),O&&v("span",{children:v(Ae,{...O})}),z&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[M&&v("p",{className:"right-switcher__label",children:M}),v(Cx,{...z})]}),$&&v("p",{className:"right-label",children:$})]})]})}),pU="",pO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:g,buttonWidth:x,backButton:k,searchWidth:N,align:O,...M})=>v("div",{className:"elv-component elv-title",...M,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&v("div",{className:"title-component-container__backButton is-flex",children:v(Ae,{...k})}),L("div",{className:`title-component title-component--${O} is-flex is-flex-direction-column`,children:[l&&v("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&v("p",{className:"title-component__title",children:u}),L("div",{className:`title-component__content is-flex title-component__content--${O} is-flex-direction-column ${k&&"title-component__content--backButton"}`,children:[a&&v("p",{className:"title-component__description",style:{width:r},children:a}),p&&v("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&v("span",{className:"title-component__actionButtons is-flex",children:f.map(z=>v("span",{children:v(Ae,{...z})},z.label))}),m&&v("span",{className:"title-component__search",style:{width:N},children:v(op,{...m})}),g&&v("span",{className:"title-component__button",style:{width:x},children:v(Ae,{...g})})]})]})]})}),hU="",hO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:g=!1,onShow:x,onClose:k,children:N,width:O="315px",showOpenButton:M=!1,...z})=>{const[$,A]=re.useState(a),[q,ne]=re.useState(1),[J,Q]=re.useState(0),W=re.useRef(null),V=re.useRef(null),[te,se]=re.useState(p);re.useEffect(()=>{A(a)},[a]),re.useEffect(()=>{se(p)},[p]);const H=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...z,children:[!$&&M&&l&&v("div",{className:"is-flex is-justify-content-end",children:v(Ae,{...l,onClick:()=>{A(!0),x&&x()}})}),$&&v("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:O,right:$?"0":`-${O}`},children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(Ae,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(op,{...r})}),v("div",{ref:V,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:H},children:N||m.slice((q-1)*te,q*te).map(ee=>v("div",{ref:W,className:`listItem ${g?" line-separation":""}`,children:ee},An()))}),!N&&(m==null?void 0:m.length)>te&&v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:v(Cv,{onChangePage:ee=>{ne(ee)},minItemsPerPage:te,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};Je.Alert=ak,Je.Alert2=ik,Je.AssistanceDiary=ok,Je.Autocomplete=G2,Je.Autocomplete2=X2,Je.Autocomplete3=Z2,Je.AverageAttended=lk,Je.Badge=ji,Je.Breadcrumb=uk,Je.Button=Ae,Je.CTA=D2,Je.CardActivity=pk,Je.CardCTA=ck,Je.CardExpiration=dk,Je.CardHorizontal=hk,Je.CardUser=vk,Je.CardVertical=fk,Je.Cart=mk,Je.Checkbox=nd,Je.Collapse=N0,Je.CollapseEdit=Ig,Je.CollapseMobile=T0,Je.CompleteDiary=k2,Je.DatePickerComponent=J2,Je.Dropdown=E2,Je.EmptyState=N2,Je.ErrorPage=T2,Je.Filters=eO,Je.Footer=oO,Je.Header=sO,Je.HeaderTable=uO,Je.Icon=Ve,Je.IncomingCall=O2,Je.Input=Qh,Je.Input2=tO,Je.InputForm=nO,Je.ModalConfirm=P2,Je.ModalConfirm2=A2,Je.ModalConfirm3=L2,Je.Pagination=Cv,Je.Pagination2=U2,Je.PerformanceAssessment=B2,Je.ProgressBar=D0,Je.Radio=qh,Je.Search=op,Je.Select=bu,Je.Select2=rO,Je.ShiftDiary=q2,Je.Sidebar=cO,Je.SidebarChildren=hO,Je.SidebarEmpty=dO,Je.Stepper=Q2,Je.Subtitle=fO,Je.Switch=Cx,Je.Tabs=K2,Je.Textarea=aO,Je.Title=pO,Je.Tooltip=Bh,Je.UploadFileItem=xx,Je.UploadFiles=iO,Object.defineProperties(Je,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
312
|
+
`}function H2(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 Y2=function(s){j2(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 wx-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,x=u.text,k=this.getPathRadius(),N=this.getPathRatio();return re.createElement("svg",{className:p.root+" "+r,style:m.root,viewBox:"0 0 "+z2+" "+F2,"data-test-id":"CircularProgressbar"},this.props.background?re.createElement("circle",{className:p.background,style:m.background,cx:Ry,cy:My,r:wx}):null,re.createElement(bx,{className:p.trail,counterClockwise:f,dashRatio:a,pathRadius:k,strokeWidth:g,style:m.trail}),re.createElement(bx,{className:p.path,counterClockwise:f,dashRatio:N*a,pathRadius:k,strokeWidth:g,style:m.path}),x?re.createElement("text",{className:p.text,style:m.text,x:Ry,y:My},x):null)},l.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},l}(re.Component);function W2(s){s.children;var l=I2(s,["children"]);return re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren"},re.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},re.createElement(Y2,Oy({},l)),s.children?re.createElement("div",{"data-test-id":"CircularProgressbarWithChildren__children",style:{position:"absolute",width:"100%",height:"100%",marginTop:"-100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},s.children):null))}function V2(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,x=s.backgroundColor,k=l==null?void 0:"rotate("+l+"turn)",N=l==null?void 0:"center center";return{root:{},path:xv({stroke:p,strokeLinecap:u,transform:k,transformOrigin:N,transition:f,transitionDuration:m==null?void 0:m+"s"}),trail:xv({stroke:g,strokeLinecap:u,transform:k,transformOrigin:N}),text:xv({fill:a,fontSize:r}),background:xv({fill:x})}}function xv(s){return Object.keys(s).forEach(function(l){s[l]==null&&delete s[l]}),s}const B2=({labelPerformance:s,dataTime:l,percentage:u,description:a,star:r,qualification:p,rating:f,className:m})=>{const g=Math.round(f*2)/2;return v("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:[v("div",{className:"has-text-weight-bold has-text-grey-dark",children:s}),v("div",{children:l==null?void 0:l.map(x=>v("div",{className:"performanceAssessment__date is-size-14px has-text-weight-medium",children:x.date}))})]}),v("div",{style:{maxWidth:"214.277px"},className:"progressCircular",children:L(W2,{value:u,text:"",strokeWidth:15,background:!0,backgroundPadding:10,styles:V2({backgroundColor:"#FFFFFF",pathColor:"#7DAFFF",trailColor:"#CED4DA4D",strokeLinecap:"butt"}),children:[v("div",{className:"is-size-4",children:v("strong",{children:`${u}%`})}),v("div",{className:"progressCircular__desc is-size-7 has-text-centered",children:a})]})}),L("div",{className:"mt-2",children:[v("div",{className:"is-flex",children:r==null?void 0:r.map((x,k)=>{const N=g-k===.5;return L("div",{children:[!N&&v(Ve,{icon:x.star,className:"iconStar mr-3 is-size-5",color:k<g?"#16A34A":"#CED4DA"}),N&&v(Ve,{icon:x.starStroke,className:"iconStar mr-3 is-size-5",color:"#16A34A"})]},k)})}),L("p",{className:"has-text-grey is-size-14px mt-3",children:[" ",f," ",p]})]})]})})},qL="",q2=({title:s,option:l,labelQuantity:u,totalNumber:a,labelAssigned:r,numberAssigned:p,onSeeMore:f,className:m})=>v("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:[v("p",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),v(Ae,{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:[v("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:[v("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:[v("div",{className:"has-text-weight-semibold has-text-grey-dark",children:g.name}),v("div",{className:"has-text-grey-dark",children:g.age})]}),L("div",{className:"shiftdiary__status is-flex",style:{backgroundColor:g.colorContains},children:[v(Ve,{icon:"fa-solid fa-circle",color:g.colorIcon,className:"mr-2"}),v("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:[v(Ve,{icon:"fa-regular fa-circle-check",className:"icon mr-2",size:"24px"}),v("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:u})]}),v("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:[v(Ve,{icon:"fa-regular fa-calendar",className:"icon2 mr-2",size:"24px"}),v("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:r})]}),v("div",{className:"has-text-light is-size-5 has-text-weight-bold",children:p})]})]})]})]})}),QL="",Q2=({items:s,activeLabel:l,handlePosition:u,className:a,...r})=>{var p=0;const f=s.find(O=>O.label===l),[m,g]=re.useState(f),[x,k]=re.useState(f);if(m)var p=s.indexOf(m);re.useEffect(()=>{var O=s.find(M=>M.label===l);g(O),m&&(p=s.indexOf(m)),k(O)},[l,s]);const N=O=>{k(O),u&&u(O),O.onClick&&O.onClick()};return v("div",{className:"elv-component elv-steps",...r,children:v("ul",{className:`steps has-content-centered is-horizontal ${a||""}`,children:s.map((O,M)=>L("li",{className:`steps-segment ${s[M+1]!==void 0&&s[M+1]==m?"is-pre-active":""} ${O==m?"is-active":""}`,children:[v("span",{className:"steps-marker",onClick:()=>{M<=p?N(O):O.onClick&&O.onClick()},children:M<p?v("span",{className:"icon",children:v("i",{className:`${O.icon}`})}):v("span",{children:M+1})}),v("div",{className:`steps-content ${M<=p?"steps-content--completed":"steps-content--incompleted"} ${O===x&&"steps-content--position"}`,children:v("p",{className:"steps-content__item-label",children:O.label})})]},M))})})},KL="",K2=({items:s,type:l,activeTab:u,handleActive:a,handleSubActive:r,subactiveTab:p,className:f,...m})=>v("div",{className:"elv-component elv-tabs",...m,children:v("ul",{className:`tabs tabs--${l} ${f||""}`,children:s.map((g,x)=>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 ${x!==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:[v(Ve,{...g.icon,className:"boxed-container__icon mb-1 mr-1"}),v("p",{className:"boxed-container__label",children:Ot(g.label,30)})]}),v("p",{className:"boxed-subtitle mb-1 is-size-7 has-text-weight-normal has-tc-truegray-600 has-text-centered",children:Ot(g.subtitle,20)})]}):v("li",{onClick:()=>{a&&a(g),g.sub_labels&&r&&r(g.sub_labels[0]),g.onClick&&g.onClick()},className:`item is-clickable ${x===0?"item--is-first":""} ${g.label==(u==null?void 0:u.label)?"item--active":""} ${g.disabled?"item--disabled":""}`,children:Ot(g.label,30)}),g.sub_labels!==void 0&&l==="vertical"&&g.sub_labels.map((k,N)=>v("li",{onClick:()=>{a&&a(g),r&&r(k),k.onClick&&k.onClick()},className:`sub-item ${x===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:Ot(k.label,25)},An()))]},g.label+An()))})}),GL="",G2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:g=30,autocomplete:x,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(f||""),[$,A]=re.useState(""),[q,ne]=re.useState(f||""),[J,Q]=re.useState(!1),W=(H,ee)=>{H==""?z(""):z(ee),A(H),ne(ee),k&&k(H),Q(!1)};function V(H){const ee=H.target.value;z(ee),Q(!0)}const te=p.filter(H=>H.label.toLowerCase().includes(M?M.toLowerCase():"")),se=re.useRef(null);return re.useEffect(()=>{function H(ee){se.current&&!se.current.contains(ee.target)&&Q(!1)}return document.addEventListener("click",H),()=>{document.removeEventListener("click",H)}},[se]),re.useEffect(()=>{const H=p.find(ee=>ee.value===f);H?W(H.value,H.label):W("","")},[f,p]),v("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...O,children:L("div",{className:`autocomplete-container ${N||""}`,ref:se,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[v("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||q,onChange:V,placeholder:a||"",onFocus:()=>Q(!0),readOnly:!!$,autoComplete:x}),$&&q!=""?v("div",{onClick:()=>{W("","")},className:"",children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),v("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${$==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Ot(a,g||30)}),te==null?void 0:te.map((H,ee)=>L("li",{className:"list__item",onClick:()=>{W(H.value,H.label)},children:[H.icon&&v("i",{className:`item__icon ${H.icon}`}),Ot(H.label,g||30)]},ee))]})})]})})},X2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,value:f,defaultValue:m,minWidth:g,maxCharacters:x=30,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(m||""),[$,A]=re.useState(!1),q=re.useRef(null),ne=f!==void 0?f:M,J=V=>{f===void 0&&z(V.value),k==null||k(V),A(!1)},Q=V=>{f===void 0&&z(V.target.value),A(!0)},W=p.filter(V=>(V.value+" "+V.label).toLowerCase().includes((ne||"").toLowerCase()));return re.useEffect(()=>{const V=te=>{q.current&&!q.current.contains(te.target)&&A(!1)};return document.addEventListener("click",V),()=>document.removeEventListener("click",V)},[]),re.useEffect(()=>{m&&f===void 0&&z(m)},[m,f]),v("div",{className:"elv-component elv-autocomplete",style:{minWidth:g},...O,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:[v("input",{className:"input-autocomplete is-clickable",type:"text",disabled:u,placeholder:a,value:ne,onChange:Q,onFocus:()=>A(!0)}),ne&&!u&&v("div",{style:{cursor:"pointer"},onClick:()=>{f===void 0&&z(""),k==null||k({value:"",label:""})},children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]}),$&&v("div",{className:`autocomplete-container__dropdown autocomplete--${s} autocomplete-container__dropdown--active `,children:v("ul",{className:"dropdown__list",children:W.length>0?W.map((V,te)=>v("li",{className:"list__item",style:{cursor:"pointer",padding:"6px 0"},onClick:()=>J(V),children:L("div",{style:{display:"flex",flexDirection:"column"},children:[v("span",{style:{fontWeight:"bold"},children:Ot(V.value,x)}),v("span",{style:{color:"#999",fontSize:"0.85rem",marginTop:"2px"},children:Ot(V.label,x)})]})},te)):v("li",{className:"list__item",style:{padding:"6px 0",textAlign:"center",color:"#666"},children:"No se encontraron coincidencias"})})})]})})},XL="",Z2=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:g=30,autocomplete:x,onChangeSelect:k,className:N,...O})=>{const[M,z]=re.useState(f||""),[$,A]=re.useState(""),[q,ne]=re.useState(f||""),[J,Q]=re.useState(!1),W=(H,ee)=>{H==""?z(""):z(ee),A(H),ne(ee),k&&k(H,ee),Q(!1)};function V(H){const ee=H.target.value;z(ee),Q(!0)}const te=p.filter(H=>H.label.toLowerCase().includes(M?M.toLowerCase():"")),se=re.useRef(null);return re.useEffect(()=>{function H(ee){se.current&&!se.current.contains(ee.target)&&Q(!1)}return document.addEventListener("click",H),()=>{document.removeEventListener("click",H)}},[se]),re.useEffect(()=>{const H=p.find(ee=>ee.value===f);H?W(H.value,H.label):W("","")},[f,p]),v("div",{className:"elv-component elv-autocomplete",style:{minWidth:m},...O,children:L("div",{className:`autocomplete-container ${N||""}`,ref:se,children:[L("div",{className:["autocomplete-container__autocomplete",`autocomplete--${l}`,`autocomplete--${s}`,`${r?"autocomplete--error":""} ${u?"autocomplete--disabled":""}`,,].join(" "),children:[v("input",{className:"input-autocomplete is-clickable ",type:"text",value:M||q,onChange:V,placeholder:a||"",onFocus:()=>Q(!0),readOnly:!!$,autoComplete:x,disabled:u}),$&&q!=""?v("div",{onClick:()=>{W("","")},className:"",children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})}):null]}),v("div",{className:`autocomplete-container__dropdown autocomplete--${s} ${J?"autocomplete-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${$==a?"list__item--active":""}`,onClick:()=>{W("",a)},children:Ot(a,g||30)}),te==null?void 0:te.map((H,ee)=>L("li",{className:"list__item",onClick:()=>{W(H.value,H.label)},children:[H.icon&&v("i",{className:`item__icon ${H.icon}`}),Ot(H.label,g||30)]},ee))]})})]})})},ZL="",J2=({type:s,dateFormat:l,startDate:u,endDate:a,showIcon:r,withPortal:p,isRange:f,locale:m,onStartDateChange:g,onEndDateChange:x,className:k,...N})=>{const[O,M]=re.useState(u||new Date),[z,$]=re.useState(a||new Date);return re.useEffect(()=>{g&&g(O)},[O]),re.useEffect(()=>{x&&x(z)},[z]),f?L("div",{className:"elv-component elv-datepicker",...N,children:[v(bv,{selected:O,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsStart:!0,startDate:O,endDate:z,className:k}),v(bv,{selected:z,onChange:A=>$(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,selectsEnd:!0,startDate:O,endDate:z,minDate:O,className:k})]}):v("div",{className:"elv-component elv-datepicker",...N,children:v(bv,{selected:O,onChange:A=>M(A),withPortal:p,showMonthYearPicker:s=="months",showYearPicker:s=="year",dateFormat:l,showIcon:r,className:k,locale:m||"es"})})},JL="",eO=({size:s="sm",fill:l="outline",disabled:u=!1,placeholder:a,error:r,section:p,button:f,buttonCleaner:m,onChangeFilters:g,className:x,...k})=>{const[N,O]=re.useState(!1),[M,z]=re.useState(!1),[$,A]=re.useState(!1),[q,ne]=re.useState([]),[J,Q]=re.useState([]),W=(ee,de,ve)=>{var Se,De,Ne;const xe=q.findIndex(Ue=>Ue.name===de),he=[...q];if(ee==="radio")xe>=0?he[xe]={name:de,value:[ve]}:he.push({name:de,value:[ve]});else{const Ue=(De=(Se=q[xe])==null?void 0:Se.value)==null?void 0:De.indexOf(ve);xe>=0&&Ue>=0?he[xe].value.splice(Ue,1):xe>=0?he[xe].value.push(ve):he.push({name:de,value:[ve]})}((Ne=he[xe])==null?void 0:Ne.value.length)===0&&he.splice(xe,1),he.length>0&&A(!0),ne(he)},V=()=>{g&&(g(q),Q(q),A(!1),q.length===0?z(!1):z(!0))},te=()=>{ne([]),document.querySelectorAll(".section__options").forEach(de=>{de.querySelectorAll("label").forEach(xe=>{xe.querySelectorAll("input").forEach(Se=>{Se.checked=!1})})}),z(!1),A(!1),g&&(g([]),Q([]))};function se(){return ee=>{O(!N)}}const H=re.useRef(null);return re.useEffect(()=>{function ee(de){H.current&&!H.current.contains(de.target)&&O(!1)}return document.addEventListener("click",ee),()=>{document.removeEventListener("click",ee)}},[H]),v("div",{className:"elv-component elv-filters",...k,children:L("div",{className:`filter-container ${x||""}`,ref:H,children:[L("div",{className:["filter-container__filter",`filter--${l}`,`filter--${s}`,`${r?"filter--error":""} ${u?"filter--disabled":""}`,,].join(" "),onClick:se(),children:[v(Ve,{icon:"fa-solid fa-filter",className:"filter"}),v("span",{className:"placeholder",children:Ot(a,25)}),J.length>0&&v(ji,{color:"primary",text:J.length.toString()}),v(Ve,{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(ee=>{var de;return L("div",{className:"section",children:[v("p",{className:"section__title is-5",children:ee.label}),v("div",{className:`section__options ${ee.type=="radio"?"control":"checkbox"} is-flex is-flex-direction-column`,children:(de=ee.options)==null?void 0:de.map(ve=>v("div",{children:L("label",{htmlFor:ve.name,className:`filter-label ${ee.type=="radio"?"radio":"checkbox"} is-flex is-justify-content-space-between`,children:[L("span",{className:"filter-label__name is-flex",children:[ve.iconItem&&v(Ve,{...ve.iconItem}),v("p",{className:"",children:ve.name})]}),ee.type=="radio"?v(qh,{label:"",name:ee.name,size:"md",value:ve.name,onCheck:()=>W(ee.type,ee.name,ve.name)}):v(nd,{label:"",size:"md",value:ve.name,name:ee.name,onCheck:()=>W(ee.type,ee.name,ve.name)})]})},ve.name))})]},ee.name)}),$||M?L("div",{className:"actionButtons is-flex is-flex-direction-column",children:[$&&v("span",{className:"button-aplicate is-flex is-justify-content-center",children:v(Ae,{label:f.label!==void 0?Ot(f.label,25):"",trailingIcon:f.trailingIcon,isFullWidth:!0,onClick:V,...f})}),M&&v("span",{className:"button-cleaner is-flex is-justify-content-center",children:v(Ae,{...m,label:m.label!==void 0?Ot(m.label,25):"",trailingIcon:m.trailingIcon,onClick:te})})]}):v(Qt,{})]})]})})},eU="",tO=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:g,pattern:x,onRef:k,iconLeft:N,iconRight:O,isRounded:M,isLoading:z,isDisabled:$,hasError:A,className:q,onChangeInput:ne,onKeyDown:J,onSearch:Q,...W})=>{const V=se=>{se.key==="Enter"&&te()},te=()=>{var ee,de;const se=re.useRef(null),H=k?(ee=k.current)==null?void 0:ee.value:(de=se.current)==null?void 0:de.value;Q&&Q(H||"")};return v("div",{className:"elv-component elv-input",...W,children:v("div",{className:`field e-input ${q||""}`,children:L("p",{className:["control",`${N?" has-icons-left":""}`,`${O?" has-icons-right":""}`,`${z?" is-loading":""}`].join(""),children:[v("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:se=>{ne&&ne(se)},defaultValue:f,value:m,ref:k,disabled:$,onKeyDown:J||V,autoComplete:g,pattern:x}),N&&v("span",{className:`icon is-left ${"is-"+r}`,children:v(Ve,{...N})}),O&&v("span",{className:`icon is-right ${"is-"+r}`,children:v(Ve,{...O})})]})})})},tU="",nO=({input:s,label:l,helperText:u,defaultValue:a,maxLength:r,error:p,className:f,...m})=>v("div",{className:["elv-component"," elv-form-control"].join(""),...m,children:L("div",{className:`e-input-form ${f||""}`,children:[v("div",{children:l}),v(Qh,{...s}),L("div",{children:[v("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]})]})}),nU="",op=({size:s,backgroundColor:l,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:g,onChangeInput:x,onSearch:k,className:N,...O})=>{const M=re.useRef(null),z=A=>{A.key==="Enter"&&$()},$=()=>{var q;const A=(q=M.current)==null?void 0:q.value;k&&k(A||"")};return v("div",{className:"elv-component elv-search",...O,children:L("div",{className:`elv-component search-container search-container--${s} ${N||""}`,style:{backgroundColor:l},children:[v("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:A=>x&&x(A.target.value),defaultValue:a,value:r,ref:M,disabled:g,onKeyDown:z}),v("span",{className:"search-container__button-search",children:v(Ae,{...p,size:s,onClick:()=>{$()}})})]})})},rO=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p=[],value:f,minWidth:m,maxCharacters:g=30,onChangeSelect:x,className:k,...N})=>{var J,Q;const[O,M]=re.useState(!1),z=re.useRef(null),$=re.useMemo(()=>p.find(W=>W.value===f),[p,f]),A=(Q=(J=$==null?void 0:$.label)!=null?J:a)!=null?Q:"";re.useEffect(()=>{if(!O)return;function W(te){!z.current||z.current.contains(te.target)||M(!1)}function V(te){te.key==="Escape"&&M(!1)}return document.addEventListener("click",W),document.addEventListener("keydown",V),()=>{document.removeEventListener("click",W),document.removeEventListener("keydown",V)}},[O]),re.useEffect(()=>{u&&M(!1)},[u]);const q=()=>{u||M(W=>!W)},ne=W=>{x==null||x(W),M(!1)};return v("div",{className:"elv-component elv-select",style:{minWidth:m},...N,children:L("div",{className:`select-container ${k!=null?k:""}`,ref:z,children:[v("div",{className:["select-container__select",`select--${l}`,`select--${s}`,`${r?"select--error":""}`,`${u?"select--disabled":""}`].join(" "),role:"button","aria-haspopup":"listbox","aria-expanded":O,onClick:q,children:v("span",{children:Ot(A,g)})}),v("div",{className:`select-container__dropdown select--${s} ${O?"select-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",role:"listbox",children:[a&&v("li",{className:`list__item list__item--default ${f===""?"list__item--active":""}`,onClick:()=>ne(""),role:"option","aria-selected":f==="",children:Ot(a,g)}),p!=null&&p.length?p.map((W,V)=>{const te=f===W.value;return L("li",{className:`list__item ${te?"list__item--active":""}`,onClick:()=>ne(W.value),role:"option","aria-selected":te,children:[W.icon&&v("i",{className:`item__icon ${W.icon}`}),Ot(W.label,g)]},V)}):v("li",{className:"list__item",style:{opacity:.7,cursor:"default"},children:"No hay opciones"})]})})]})})},rU="",Cx=({size:s="md",disabled:l=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,g]=re.useState(),x=()=>{g(!m),r&&r(!m)};return v("div",{className:"elv-component elv-switch",...f,children:L("label",{className:["switch",` switch--${s}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[v("input",{type:"checkbox",disabled:l,defaultChecked:u,onChange:x}),v("span",{className:"slider round"})]})})},aU="",aO=({value:s,error:l,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:g=50,className:x,...k})=>v("div",{className:"elv-component elv-textArea",children:v("textarea",{className:["textarea",`${l?" textarea--error":""}`,`${x?" "+x:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:g,...k})}),iU="",oU="",xx=({className:s,progressBar:l,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...g})=>v("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:[v("div",{className:"mr-5",children:r&&v(Ve,{icon:sk(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?v("p",{className:"file_name is-size-7",children:r}):a?v("p",{className:"file_name is-size-7",children:a.name}):v(Qt,{}),v("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),v(Ae,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?v("div",{className:"is-size-7",children:E0(p)}):a?v("div",{className:"is-size-7",children:E0(a.size)}):v(Qt,{})]}),u&&v("div",{className:"uploadfile__progress pt-2",children:v(D0,{...l})})]}),v("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:v(Ve,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),iO=({className:s,labelSelection:l,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:g,onPreviewFile:x,onDeleteFile:k,onErrorSize:N,onErrorExtensions:O,...M})=>{const[z,$]=re.useState(!1),[A,q]=re.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(se=>{var ee;const H=(ee=se.name.split(".").pop())==null?void 0:ee.toLowerCase();return m==null?void 0:m.includes(H||"")})),ne=se=>{se.preventDefault(),$(!0)},J=()=>{$(!1)},Q=se=>{se.preventDefault(),$(!1);const H=se.dataTransfer.files;H&&V(H)},W=se=>{const H=se.target.files;H&&V(H)},V=se=>{var H;if(console.log(""),se.length<=r&&A.length+se.length<=r)for(let ee=0;ee<se.length;ee++){const de=se[ee],ve=de.name.split("."),xe=ve.length>1?(H=ve.pop())==null?void 0:H.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(xe||""))){if(de.size<=a*1024*1024)g&&g(de);else{N&&N(de);return}q(he=>[...he,de])}else{O&&O(de);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},te=se=>{const H=A.filter(ee=>ee!==se);q(H)};return v("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:[v("div",{className:`uploadfiles__files file ${z?"dragging":""}`,onDragEnter:ne,onDragLeave:J,onDragOver:se=>se.preventDefault(),onDrop:Q,children:L("label",{htmlFor:"file-input",className:"file-label",children:[v("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:[v("span",{className:"file-icon",children:v(Ve,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),v("span",{className:"file-label has-text-grey-dark",children:l})]})]})}),v("div",{className:"uploadfiles__data",children:u}),A.length>0?v("div",{children:A.map((se,H)=>v("div",{className:"uploadfiles__download mb-3",children:v(xx,{showBar:!!(p&&p[H]&&p[H]!==100),file:se,file_name:se.name,file_size:se.size,onPreview:ee=>{x&&x(ee)},onDelete:ee=>{k&&k(ee),te(ee)},progressBar:{value:p&&p[H]?p[H]:0}})},H))}):null]})})},lU="",oO=({columnItems:s,finalItem:l,logo_1:u,logo_2:a,endButtonLinks:r,butonLegal:p,className:f,...m})=>{var g=new Date,x=g.getFullYear();return v("div",{className:"elv-component elv-footer",...m,children:L("div",{className:`footer-component is-flex is-flex-direction-column ${f||""}`,children:[L("div",{className:"footer-component__container",children:[s&&v(Qt,{children:s.map(k=>L("div",{className:"column-item is-flex is-flex-direction-column",children:[v("p",{className:"column-item__title",children:k.title}),k.buttonLinks.map(N=>v("span",{className:"column-item__button",children:v(Ae,{...N})},An())),v("span",{className:"column-item__final",children:v(Ae,{...k.finalLink})})]},An()))}),l&&L("div",{className:"final-item is-flex is-flex-direction-column",children:[v("p",{className:"final-item__title",children:l.title}),l.buttonLinks.map(k=>v("span",{className:"final-item__button",children:v(Ae,{...k})},An())),v("p",{className:"final-item__phoneNumber",children:l.phoneNumber})]})]}),L("div",{className:"footer-component__end",children:[L("div",{className:"logos is-flex",children:[v("img",{className:"logo1",src:u,alt:""}),L("div",{className:"gob-centro is-flex is-flex-direction-column is-justify-content-center",children:[L("div",{className:"text-gob-centro",children:[v("p",{children:v("strong",{children:" Gobierno de Corrientes. Ministerio de Hacienda y Finanzas. Direccion General de Rentas"})}),v("p",{children:"Casa Central: 25 de Mayo 902 PB, Corrientes(W3400BCJ) - Corrientes"}),v("p",{children:"Centro Integral de Atencion al Contribuyente(CIAC): Av. Juan Pujol 2330, Corrientes(W3400BKU)."})]}),v("div",{className:"aviso-legal",children:p&&v(Ae,{...p})})]}),v("img",{className:"logo2",src:a,alt:""})]}),L("div",{className:"copy is-flex",children:[v("div",{className:"copy__text is-flex",children:L("p",{children:["Copyright\xA9 ",x," - Rentas Corrientes"]})}),r&&v("div",{className:"end-button-links is-flex",children:r.map(k=>v("div",{className:"end-button-links__item is-flex",children:v("span",{className:"end-button-links__button",children:v(Ae,{...k})},k.label)},An()))})]})]})]})})},sU="",lO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",sO=({className:s,logged:l,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:g,...x})=>{var ee,de,ve,xe;const[k,N]=re.useState(!1),[O,M]=re.useState(!1),[z,$]=re.useState(window.innerWidth<1217),[A,q]=re.useState(window.innerWidth<654),[ne,J]=re.useState(null),[Q,W]=re.useState((ee=p==null?void 0:p.reduce((he,Se)=>({...he,[Se.uniqueValue]:{active:!1,name:null}}),{}))!=null?ee:{}),V=re.useRef(null),te=p==null?void 0:p.map(()=>re.useRef(null)),se=he=>{J(Se=>Se===he?null:he),W(Se=>({...Object.keys(Se).reduce((De,Ne)=>(De[Ne]={active:Ne===he,name:Se[Ne].name},De),{})}))};re.useEffect(()=>{function he(Se){var De;Object.values(Q).some(Ne=>Ne.active)&&!Se.defaultPrevented&&!((De=V.current)!=null&&De.contains(Se.target))&&(W(Ne=>Object.keys(Ne).reduce((Ue,ut)=>({...Ue,[ut]:{active:!1,name:Ne[ut].name}}),{})),J(null))}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[V,Q]);const H=re.useRef(null);return re.useEffect(()=>{function he(Se){H.current&&!H.current.contains(Se.target)&&M(!1)}return document.addEventListener("click",he),()=>{document.removeEventListener("click",he)}},[H]),re.useEffect(()=>{function he(){$(window.innerWidth<1217),q(window.innerWidth<654)}return window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}},[]),v("div",{className:"elv-component elv-header",...x,children:v("div",{className:`navbar-container ${s||""}`,children:L("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[L("div",{className:"navbar-brand",children:[v("a",{role:"button",className:`navbar-burger ${k?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>N(!k),children:v("img",{src:lO,alt:"Burger SVG"})}),u&&v(Qt,{children:A?v("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:v("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):v("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:v("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),v("div",{id:"rentas-ctes-header",className:`navbar-menu ${k?"is-active":""}`,children:v("div",{className:"navbar-start",children:r&&r.map(he=>v("a",{className:"navbar-item item-text",onClick:he.onClick,children:he.label},An()))})}),L("div",{className:"navbar-end is-flex",children:[v("div",{className:"icon-functions is-flex",ref:V,children:p&&p.map((he,Se)=>L("div",{className:["item-icon "].join(""),ref:te&&te[Se],children:[v("span",{children:v(Ae,{...he.buttonIcon,onClick:()=>{var De;se(he.uniqueValue),(De=he.buttonIcon)!=null&&De.onClick&&he.buttonIcon.onClick()}})}),he.badge&&v(Qt,{children:v("span",{className:"item-icon__badge-notif",children:v(ji,{...he.badge})})}),he.iconDropComponent&&v("div",{className:`drop-component drop-component__icon ${Q[he.uniqueValue]&&p[Se].uniqueValue===ne?"is-active":""}`,children:he.iconDropComponent})]},An()))}),l?v(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:H,children:[v("div",{className:"user-mobile__icon",children:v(Ve,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!O)})}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${O&&"is-active"}`,children:m.userDropComponent})]}):L("div",{className:"navbar-item user-desktop",ref:H,children:[L("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>M(!O),children:[L("div",{className:"user-sec__text",children:[L("p",{className:"names",children:["Hola, ",m.name," ",m.lastName]}),v("p",{className:"description",children:m.description})]}),L("div",{className:"user-sec__icons is-flex",children:[(de=m.avatar)!=null&&de.icon?L("div",{className:"user-icon",children:[v(Ve,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&v("span",{className:"user-icon__state",children:v(Ve,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):v("img",{src:(xe=(ve=m.avatar)==null?void 0:ve.img)==null?void 0:xe.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),v(Ve,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${O&&"is-active"}`,children:m.userDropComponent})]})}):v(Qt,{children:z?L("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:H,children:[v("div",{className:"user-mobile__icon",children:v(Ve,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>M(!O)})}),g&&v("div",{className:`drop-component drop-component__user ${O&&"is-active"}`,children:g})]}):v("div",{className:"navbar-item",children:v(Ae,{...f})})})]})]})})})},uU="",uO=({className:s,search:l,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[g,x]=re.useState(!1),k=re.useRef(null);return re.useEffect(()=>{function N(O){k.current&&!k.current.contains(O.target)&&x(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[k]),v("div",{className:`elv-component elv-header-table ${s||""}`,...m,children:L("div",{className:"header-table is-flex",children:[l&&v("span",{children:v(op,{...l})}),a&&a.map(N=>v("span",{children:v(bu,{...N})},An())),u&&v(Cv,{...u}),r&&v(Ae,{...r}),p&&L("div",{ref:k,className:"menuButton",children:[v(Ae,{...p,onClick:()=>{x(!g),p.onClick&&p.onClick()}}),f&&g&&v("div",{className:"menuButton__dropComponent",children:f})]})]})})},cU="",cO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:g=!1,onShow:x,onClose:k,...N})=>{const[O,M]=re.useState(a),[z,$]=re.useState(1),[A,q]=re.useState(0),ne=re.useRef(null),J=re.useRef(null),[Q,W]=re.useState(p);re.useEffect(()=>{M(a)},[a]),re.useEffect(()=>{W(p)},[p]);const V=`${p*A+p}px`;return L("div",{className:"elv-component elv-sidebar",...N,children:[!O&&v("div",{className:"is-flex is-justify-content-end",children:v(Ae,{...l,onClick:()=>{M(!0),x&&x()}})}),O&&v("div",{className:"modal-background",onClick:()=>{M(!1),k&&k()}}),L("div",{className:`sidebar-container is-flex is-flex-direction-column ${O?"is-open":""} ${s||""}`,children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(Ae,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{M(!1),k&&k()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(op,{...r})}),v("div",{ref:J,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:V},children:m.slice((z-1)*p,z*p).map((te,se)=>v("div",{ref:ne,className:`listItem ${g?" line-separation":""}`,children:te},An()))}),v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&v(Cv,{onChangePage:te=>{$(te)},minItemsPerPage:Q,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},dU="",dO=({className:s,title:l,show:u,button:a,buttonShow:r,buttonShowVisible:p,optionalButton:f,optionalButton2:m,children:g,position:x="right",footerbutton:k,onShow:N,width:O="400px",...M})=>{const[z,$]=re.useState(u);return re.useEffect(()=>{$(u)},[u]),L("div",{className:"elv-component elv-sidebarEmpty",...M,children:[p&&!z&&v("div",{className:"is-flex is-justify-content-end",children:v(Ae,{...r,onClick:()=>{$(!0),N&&N()}})}),z&&v("div",{className:"modal-background",onClick:()=>{$(!1),N&&N()}}),L("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${z?"is-open":""}`,` sidebar-container--${x}`,`${s?" "+s:""}`].join(""),style:{"--sidebar-width":O},"data-width":O,children:[L("div",{children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center mb-4 is-gap-4",children:[v("div",{className:"sidebar-container__button mr-3",children:v(Ae,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{$(!1),N&&N()}})}),v("p",{className:"title is-5 has-text-link-dark",children:l})]}),v("div",{className:"sidebar-container__content",children:g})]}),k&&v("div",{children:L("div",{className:"button-container is-flex pl-5 pb-5",children:[v("div",{className:"button-container__opt ml-5",children:f&&v(Ae,{...f})}),v("div",{className:"button-container__opt",children:m&&v(Ae,{...m})})]})})]})]})},fU="",fO=({className:s,border:l,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:g,addButton:x,removeButton:k,linkButton:N,iconButton:O,switcherLabel:M,switcher:z,labelRight:$,...A})=>v("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&&v("div",{className:"left-backButton",children:v(Ae,{...p})}),L("div",{className:"left-texts",children:[L("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&v(Ve,{...f}),m&&v("span",{className:"left-texts__principal__rectangle"}),a&&v("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&v("div",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),L("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[x||k?L("div",{className:"right-editButtons is-flex",children:[x&&v("span",{className:"right-editButtons__addButton",children:v(Ae,{...x})}),k&&v("span",{className:"right-editButtons__removeButton",children:v(Ae,{...k})})]}):v(Qt,{}),N&&v("span",{className:"right-linkButton",children:v(Ae,{...N})}),O&&v("span",{children:v(Ae,{...O})}),z&&L("div",{className:"right-switcher is-flex is-align-items-center",children:[M&&v("p",{className:"right-switcher__label",children:M}),v(Cx,{...z})]}),$&&v("p",{className:"right-label",children:$})]})]})}),pU="",pO=({className:s,subtitle:l,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:g,buttonWidth:x,backButton:k,searchWidth:N,align:O,...M})=>v("div",{className:"elv-component elv-title",...M,children:L("div",{className:`title-component-container ${k&&"title-component-container--backButton"} ${s||""}`,children:[k&&v("div",{className:"title-component-container__backButton is-flex",children:v(Ae,{...k})}),L("div",{className:`title-component title-component--${O} is-flex is-flex-direction-column`,children:[l&&v("p",{className:"title-component__subtitle",children:l.toUpperCase()}),u&&v("p",{className:"title-component__title",children:u}),L("div",{className:`title-component__content is-flex title-component__content--${O} is-flex-direction-column ${k&&"title-component__content--backButton"}`,children:[a&&v("p",{className:"title-component__description",style:{width:r},children:a}),p&&v("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&v("span",{className:"title-component__actionButtons is-flex",children:f.map(z=>v("span",{children:v(Ae,{...z})},z.label))}),m&&v("span",{className:"title-component__search",style:{width:N},children:v(op,{...m})}),g&&v("span",{className:"title-component__button",style:{width:x},children:v(Ae,{...g})})]})]})]})}),hU="",hO=({className:s,buttonShow:l,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:g=!1,onShow:x,onClose:k,children:N,width:O="315px",showOpenButton:M=!1,...z})=>{const[$,A]=re.useState(a),[q,ne]=re.useState(1),[J,Q]=re.useState(0),W=re.useRef(null),V=re.useRef(null),[te,se]=re.useState(p);re.useEffect(()=>{A(a)},[a]),re.useEffect(()=>{se(p)},[p]);const H=`${p*J+p}px`;return L("div",{className:"elv-component elv-sidebar",...z,children:[!$&&M&&l&&v("div",{className:"is-flex is-justify-content-end",children:v(Ae,{...l,onClick:()=>{A(!0),x&&x()}})}),$&&v("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:O,right:$?"0":`-${O}`},children:[L("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(Ae,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{A(!1),k&&k()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(op,{...r})}),v("div",{ref:V,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:H},children:N||m.slice((q-1)*te,q*te).map(ee=>v("div",{ref:W,className:`listItem ${g?" line-separation":""}`,children:ee},An()))}),!N&&(m==null?void 0:m.length)>te&&v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:v(Cv,{onChangePage:ee=>{ne(ee)},minItemsPerPage:te,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};Je.Alert=ak,Je.Alert2=ik,Je.AssistanceDiary=ok,Je.Autocomplete=G2,Je.Autocomplete2=X2,Je.Autocomplete3=Z2,Je.AverageAttended=lk,Je.Badge=ji,Je.Breadcrumb=uk,Je.Button=Ae,Je.CTA=D2,Je.CardActivity=pk,Je.CardCTA=ck,Je.CardExpiration=dk,Je.CardHorizontal=hk,Je.CardUser=vk,Je.CardVertical=fk,Je.Cart=mk,Je.Checkbox=nd,Je.Collapse=N0,Je.CollapseEdit=Ig,Je.CollapseMobile=T0,Je.CompleteDiary=k2,Je.DatePickerComponent=J2,Je.Dropdown=E2,Je.EmptyState=N2,Je.ErrorPage=T2,Je.Filters=eO,Je.Footer=oO,Je.Header=sO,Je.HeaderTable=uO,Je.Icon=Ve,Je.IncomingCall=O2,Je.Input=Qh,Je.Input2=tO,Je.InputForm=nO,Je.ModalConfirm=P2,Je.ModalConfirm2=A2,Je.ModalConfirm3=L2,Je.Pagination=Cv,Je.Pagination2=U2,Je.PerformanceAssessment=B2,Je.ProgressBar=D0,Je.Radio=qh,Je.Search=op,Je.Select=bu,Je.Select2=rO,Je.ShiftDiary=q2,Je.Sidebar=cO,Je.SidebarChildren=hO,Je.SidebarEmpty=dO,Je.Stepper=Q2,Je.Subtitle=fO,Je.Switch=Cx,Je.Tabs=K2,Je.Textarea=aO,Je.Title=pO,Je.Tooltip=Bh,Je.UploadFileItem=xx,Je.UploadFiles=iO,Object.defineProperties(Je,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|