dgrcorrientes-modulos 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.js CHANGED
@@ -2236,7 +2236,7 @@ const Ub = ({
2236
2236
  visibleBtnGuardar: J,
2237
2237
  ...G
2238
2238
  }) => {
2239
- const [B, te] = Ge(0), [ie, le] = Ge(0), [Q, de] = Ge($), [fe, ve] = Ge(g == null ? void 0 : g.labelNumberI), _e = () => {
2239
+ const [B, te] = Ge(Number(s == null ? void 0 : s.defaultValue) || 1), [ie, le] = Ge(0), [Q, de] = Ge($), [fe, ve] = Ge(g == null ? void 0 : g.labelNumberI), _e = () => {
2240
2240
  de(!Q);
2241
2241
  }, he = () => {
2242
2242
  Q || (N ? _ && _({
@@ -2255,11 +2255,11 @@ const Ub = ({
2255
2255
  aliquot: m != null && m.labelNumberA ? m.labelNumberA : 0
2256
2256
  }));
2257
2257
  }, Se = () => {
2258
- !Q || ve(N ? B && ie && (m == null ? void 0 : m.labelNumberA) ? B * ie * (m == null ? void 0 : m.labelNumberA) : 0 : ie && (m == null ? void 0 : m.labelNumberA) ? ie * (m == null ? void 0 : m.labelNumberA) : 0);
2258
+ !Q || ve(N ? B && ie && (m == null ? void 0 : m.labelNumberA) ? parseFloat((B * ie * (m == null ? void 0 : m.labelNumberA)).toFixed(2)) : 0 : ie && (m == null ? void 0 : m.labelNumberA) ? parseFloat((ie * (m == null ? void 0 : m.labelNumberA)).toFixed(2)) : 0);
2259
2259
  }, Ee = (qe) => {
2260
- Q || (te(parseInt(qe.toString())), ve(N ? qe && ie && (m == null ? void 0 : m.labelNumberA) ? qe * ie * (m == null ? void 0 : m.labelNumberA) : 0 : ie && (m == null ? void 0 : m.labelNumberA) ? ie * (m == null ? void 0 : m.labelNumberA) : 0), R && De(qe, ie));
2260
+ Q || (te(parseInt(qe.toString())), ve(N ? qe && ie && (m == null ? void 0 : m.labelNumberA) ? parseFloat((qe * ie * (m == null ? void 0 : m.labelNumberA)).toFixed(2)) : 0 : ie && (m == null ? void 0 : m.labelNumberA) ? ie * (m == null ? void 0 : m.labelNumberA) : 0), R && De(qe, ie));
2261
2261
  }, ot = (qe) => {
2262
- Q || (le(parseInt(qe.toString())), ve(N ? B && qe && (m == null ? void 0 : m.labelNumberA) ? B * qe * (m == null ? void 0 : m.labelNumberA) : 0 : qe && (m == null ? void 0 : m.labelNumberA) ? qe * (m == null ? void 0 : m.labelNumberA) : 0), P && De(B, qe));
2262
+ Q || (le(parseInt(qe.toString())), ve(N ? B && qe && (m == null ? void 0 : m.labelNumberA) ? parseFloat((B * qe * (m == null ? void 0 : m.labelNumberA)).toFixed(2)) : 0 : qe && (m == null ? void 0 : m.labelNumberA) ? parseFloat((qe * (m == null ? void 0 : m.labelNumberA)).toFixed(2)) : 0), P && De(B, qe));
2263
2263
  };
2264
2264
  return /* @__PURE__ */ b("div", {
2265
2265
  className: "elv-component elv-collapsedit",
@@ -26,7 +26,7 @@ Check the render method of \``+H+"`."}return""}}function wn(H){{if(H!==void 0){v
26
26
 
27
27
  Check your code at `+xe+":"+Ae+"."}return""}}var Hr={};function gl(H){{var xe=An();if(!xe){var Ae=typeof H=="string"?H:H.displayName||H.name;Ae&&(xe=`
28
28
 
29
- Check the top-level render call using <`+Ae+">.")}return xe}}function Sa(H,xe){{if(!H._store||H._store.validated||H.key!=null)return;H._store.validated=!0;var Ae=gl(xe);if(Hr[Ae])return;Hr[Ae]=!0;var ut="";H&&H._owner&&H._owner!==mt.current&&(ut=" It was passed a child from "+ve(H._owner.type)+"."),vn(H),le('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ae,ut),vn(null)}}function wr(H,xe){{if(typeof H!="object")return;if(Array.isArray(H))for(var Ae=0;Ae<H.length;Ae++){var ut=H[Ae];dn(ut)&&Sa(ut,xe)}else if(dn(H))H._store&&(H._store.validated=!0);else if(H){var At=te(H);if(typeof At=="function"&&At!==H.entries)for(var ct=At.call(H),Lt;!(Lt=ct.next()).done;)dn(Lt.value)&&Sa(Lt.value,xe)}}}function si(H){{var xe=H.type;if(xe==null||typeof xe=="string")return;var Ae;if(typeof xe=="function")Ae=xe.propTypes;else if(typeof xe=="object"&&(xe.$$typeof===k||xe.$$typeof===R))Ae=xe.propTypes;else return;if(Ae){var ut=ve(xe);un(Ae,H.props,"prop",ut,H)}else if(xe.PropTypes!==void 0&&!cn){cn=!0;var At=ve(xe);le("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",At||"Unknown")}typeof xe.getDefaultProps=="function"&&!xe.getDefaultProps.isReactClassApproved&&le("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(H){{for(var xe=Object.keys(H.props),Ae=0;Ae<xe.length;Ae++){var ut=xe[Ae];if(ut!=="children"&&ut!=="key"){vn(H),le("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ut),vn(null);break}}H.ref!==null&&(vn(H),le("Invalid attribute `ref` supplied to `React.Fragment`."),vn(null))}}function Lr(H,xe,Ae,ut,At,ct){{var Lt=pe(H);if(!Lt){var jt="";(H===void 0||typeof H=="object"&&H!==null&&Object.keys(H).length===0)&&(jt+=" 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(At);fn?jt+=fn:jt+=An();var en;H===null?en="null":Array.isArray(H)?en="array":H!==void 0&&H.$$typeof===a?(en="<"+(ve(H.type)||"Unknown")+" />",jt=" Did you accidentally export a JSX literal instead of a component?"):en=typeof H,le("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",en,jt)}var pn=nt(H,xe,Ae,At,ct);if(pn==null)return pn;if(Lt){var ea=xe.children;if(ea!==void 0)if(ut)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],H);Object.freeze&&Object.freeze(ea)}else le("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,H)}return H===u.Fragment?fa(pn):si(pn),pn}}function $r(H,xe,Ae){return Lr(H,xe,Ae,!0)}function Ha(H,xe,Ae){return Lr(H,xe,Ae,!1)}var Ur=Ha,Hi=$r;u.jsx=Ur,u.jsxs=Hi}()}(Ag)),Ag}(function(u){process.env.NODE_ENV==="production"?u.exports=e_():u.exports=t_()})($h);const rn=$h.exports.Fragment,b=$h.exports.jsx,L=$h.exports.jsxs,it=({icon:u,className:l,type:s,size:a="16px",size_height:r,color:p,onClick:f,...g})=>{const m=de.useRef(null);de.useEffect(()=>{s=="svg_icon"&&k(u).then(_=>{m.current&&u&&(m.current.innerHTML=_)})},[m.current,u]);function k(_){return fetch(_).then(N=>N.text())}return s==="svg_icon"?b("span",{className:`svg_icon ${l}`,ref:m,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...g}):b("div",{className:"elv-component elv-icon",...g,children:b("i",{className:`fa_icon ${u} ${l}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},$e=({color:u="primary",type:l="button",size:s="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:g=!1,disabled:m=!1,icon:k,icon_type:_="fa_icon",icon_size:N,icon_size_height:R,icon_color:P,icon_className:$,trailingIcon:K=!1,label:A,onClick:re,className:se,...J})=>{const G=B=>{B.stopPropagation(),re&&re()};return b("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...J,children:b("button",{type:l,className:["button",`${a==="solid"||a==="outline"?" is-"+u+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${s!=="normal"?" is-"+s:""}`,`${K?" button__icon--trailing":""}`,`${g?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${se?" "+se:""}`].join(""),onClick:B=>{G(B)},disabled:m,children:b("div",{className:"button-content is-flex",children:K?L(rn,{children:[A,k&&b(it,{icon:k,type:_,color:P,size:N,size_height:R,className:"button__icon "+$})]}):L(rn,{children:[k&&b(it,{icon:k,type:_,color:P,size:N,size_height:R,className:"button__icon "+$}),A]})})})})},eL="",n_=({type:u,className:l,fill:s,accent:a,icon:r,labelTitle:p,label:f,isButton:g,button:m,...k})=>b("div",{className:"elv-component elv-notification",...k,children:L("div",{className:`notification --type-${u} --fill-${s} --accent-${a} ${l||""}`,children:[r&&b("div",{className:"notification__icon",children:b("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p!==void 0&&b("p",{className:"__title",children:b("div",{dangerouslySetInnerHTML:{__html:p}})}),b("p",{className:"__label",children:b("div",{dangerouslySetInnerHTML:{__html:f}})}),g&&m!==void 0&&b("div",{className:"notification__button",children:b($e,{...m[0]})})]})]})}),tL="",yo=({color:u,className:l,text:s,colorText:a,...r})=>b("div",{className:"elv-component elv-badge",...r,children:b("span",{style:{backgroundColor:u,color:a},className:`badge badge--${u} ${l||""}`,children:s})}),nL="",k0=({color:u="primary",size:l="normal",max:s,value:a,className:r,...p})=>b("div",{className:"elv-component elv-progressbar",...p,children:b("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:b("progress",{className:[`progress progress--${l}`,`${" is-"+u}`].join(""),value:a,max:s})})}),rL="",r_=({title:u,option:l,onSeeAll:s,className:a})=>b("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:[b("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:u}),b("div",{className:"is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(r=>L("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[b("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),b("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),b("div",{className:"assistancediary__widthstate p-1",children:b("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]}))}),b("div",{children:b($e,{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:()=>s&&s()})})]})}),aL="",a_=({option:u,option2:l,option3:s,Call:a,className:r})=>{const[p,f]=de.useState(0),[g,m]=de.useState(0),[k,_]=de.useState(0),[N,R]=de.useState(null),[P,$]=de.useState(null),[K,A]=de.useState(null),[re,se]=de.useState(null);de.useEffect(()=>{const fe=new Date().getWeek(),pe=fe-1,me=a.filter(Tt=>Tt.date.getWeek()===fe),De=a.filter(Tt=>Tt.date.getWeek()===pe);f(me.length),m(De.length);const ve=De.length!==0?(me.length-De.length)/De.length:0,Ee=parseFloat(ve.toFixed(2));_(Ee);const ke=a[a.length-1];if(ke){const Tt=new Date,be=ke.arrivalTime,Re=ke.serviceStartTime||be,Me=(Re||Tt).getTime()-be.getTime();R(Me/(1e3*60));const Ze=Tt.getTime()-(Re||be).getTime(),We=Math.floor(Ze/(1e3*60));$(We);const lt=te(me),ht=te(De),je=B(lt,ht,me.length,De.length);se(je)}else R(null),$(null);const Ne=ie(me),ot=ie(De),Qe=le(Ne,ot,me.length,De.length);A(Qe)},[a]),de.useEffect(()=>{const Q=setInterval(()=>{const fe=a[a.length-1];if(fe&&fe.serviceStartTime){const me=new Date().getTime()-fe.serviceStartTime.getTime();$(me/6e4)}else $(null)},1e3);return()=>clearInterval(Q)},[a]);const J=P!==null?`${Math.floor(P/60)}:${(P%60).toFixed(0).padStart(2,"0")}`:"N/A",G=N!==null?`${Math.floor(N/60)}:${(N%60).toFixed(0).padStart(2,"0")}`:"N/A";K!==null&&`${Math.floor(K/60)}${(K%60).toFixed(0).padStart(2,"0")}`;const B=(Q,fe,pe,me)=>{const De=pe>0?pe:1,ve=me>0?me:1,Ee=(Q/De-fe/ve)/(1e3*60);return parseFloat(Ee.toFixed(2))/100},te=Q=>Q.reduce((fe,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const me=new Date().getTime()-pe.serviceStartTime.getTime();return fe+me}return fe},0),ie=Q=>Q.reduce((fe,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const me=pe.serviceStartTime.getTime()-pe.arrivalTime.getTime();return fe+me}return fe},0),le=(Q,fe,pe,me)=>{const De=pe>0?pe:1,ve=me>0?me:1,Ee=(Q/De-fe/ve)/(1e3*60);return parseFloat(Ee.toFixed(2))};return Date.prototype.getWeek=function(){var Q=new Date(this.getTime());Q.setHours(0,0,0,0),Q.setDate(Q.getDate()+4-(Q.getDay()||7));var fe=new Date(Q.getFullYear(),0,1),pe=Math.ceil(((Q.getTime()-fe.getTime())/864e5+1)/7);return pe},b("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:[u==null?void 0:u.map(Q=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[b("div",{children:b(it,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),b("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),L("div",{className:"is-flex is-align-items-center",children:[b(yo,{text:`${k<0?Q.labelButtom:Q.labelTop}${k.toString()}%`,color:Q.color,colorText:`${k<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),b("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]})),l==null?void 0:l.map(Q=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[b("div",{children:b(it,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),G!==null&&b("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${G}${Q.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[b(yo,{text:`${K!==null&&K<0?Q.labelButtom:Q.labelTop}${K!==null&&K.toFixed(1)}%`,color:Q.color,colorText:K!=null&&K<0?Q.colorText:Q.colorTextPositive,className:"badge"}),b("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]})),s==null?void 0:s.map(Q=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[b("div",{children:b(it,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),J!==null&&b("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${J}${Q.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[b(yo,{text:`${re!=null&&re<0?Q.labelButtom:Q.labelTop}${re!=null&&re.toFixed(1)}%`,color:Q.color,colorText:`${re!=null&&re<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),b("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]}))]})})},iL="";function Vt(u,l){return u.length<l?u:u.slice(0,l)+"..."}function ar(){return`${Math.random().toString(36).substr(2,9)}`}function _0(u){return u<1024?u+" bytes":u<1024*1024?(u/1024).toFixed(2)+" KB":u<1024*1024*1024?(u/(1024*1024)).toFixed(2)+" MB":(u/(1024*1024*1024)).toFixed(2)+" GB"}function i_(u){const l=u.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 o_=({type:u,defaultActiveLabel:l,items:s,handleActive:a,className:r,...p})=>{const f=s.find(_=>_.label===l),[g,m]=de.useState(f),k=_=>{m(_),a&&a(_),_.onClick&&_.onClick()};return b("div",{className:"elv-component elv-nav_bc",...p,children:b("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${u} ${r||""}`,children:b("ol",{className:"bc-list",children:s.map((_,N)=>L("li",{className:`bc-item ${_===g?"bc-item--active":""}`,children:[L("p",{className:"bc-item__bc-link",onClick:()=>{k(_)},children:[_.icon&&_.icon!==""&&b("i",{className:`${_.icon} item-icon ${_.label&&_.label!==""?"--and-label":""}`}),_.label&&_.label!==""&&Vt(_.label,25)]}),N<s.length-1&&b("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},_.label))})})})},oL="",l_=({img:u,title:l,icon:s,date:a,description:r,button:p,className:f,isBorderless:g,isClickable:m,onClick:k,..._})=>b("div",{className:"elv-component elv-card",..._,children:L("div",{className:["card card-cta",`${f?" "+f:""}`,`${m?" is-clickable":""}`,`${g?" is-shadowless":" card-box"}`].join(""),onClick:()=>{m&&k&&k()},children:[L("div",{className:"card-content",style:{flexGrow:1},children:[b("div",{className:"card-header",children:L("div",{className:"card__text",children:[b("p",{className:"title is-3",children:Vt(l,54)}),r&&b("p",{children:Vt(r,198)})]})}),L("div",{className:"card-footer",children:[L("div",{className:"card__date",children:[s&&b(it,{...s[0]}),b("span",{className:"date",children:a})]}),p&&b("div",{className:"card__button",children:b($e,{...p})})]})]}),b("div",{className:"card-image",children:b("img",{src:u,alt:""})})]})}),lL="",s_=({dataBig:u,bigNumber:l,bigMonth:s,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:g,className:m,isBorderless:k,isClickable:_,onClick:N,...R})=>b("div",{className:"elv-component elv-card",...R,children:b("div",{className:["card card-expiration",`${m?" "+m:""}`,`${_?" is-clickable":""}`,`${k?" is-shadowless":" card-box"}`].join(""),onClick:()=>{_&&N&&N()},children:L("div",{className:"card-expiration__content",children:[L("div",{className:"card_header",children:[u&&L("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[b("h1",{children:l}),b("h4",{children:s})]}),a&&L("div",{className:"date__small",children:[r&&b("div",{className:"card__icon",children:b("div",{className:"icon",children:r?b(it,{icon:r[0].icon,className:"icon"}):null})}),b("p",{className:"title is-5",children:p}),b("p",{className:"title is-3",children:f})]})]}),b("div",{className:"card-footer",children:b("div",{className:"data__expiration",children:b("div",{className:"list",children:g.map(P=>L("p",{className:"title is-6",children:[P.type,": ",b("span",{children:P.text})]},ar()))})})})]})})}),sL="",u_=({image:u,img:l,badge:s,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:g,date:m,description:k,button:_,className:N,isClickable:R,isBorderless:P,onClick:$,...K})=>b("div",{className:"elv-component elv-card",...K,children:L("div",{className:["card card-vertical",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&$&&$()},children:[L("div",{className:"card-header",children:[u&&L("div",{className:"card__img",children:[b("img",{src:l,alt:""}),s&&b(yo,{...s[0]})]}),p&&b("div",{className:"card__icon",children:b("div",{className:"icon",children:g?b(it,{...g[0],className:"icon"}):null})}),a&&b("div",{className:"card__avatar",children:b("img",{src:r,alt:""})})]}),L("div",{className:"card-body",children:[b("div",{className:"card__title",children:b("p",{className:"title is-5",children:f})}),L("div",{className:"card__date",children:[g&&b(it,{...g[0],className:"icon"}),b("span",{className:"date",children:m})]}),b("div",{className:"card__description",children:b("p",{children:k})})]}),b("div",{className:"card-footer",children:b("div",{className:"card__button",children:b($e,{..._})})})]})}),uL="",c_=({fill:u,className:l,title:s,description:a,secondaryDescription:r,isClickable:p,onClick:f,...g})=>b("div",{className:"elv-component elv-card",...g,children:L("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${l||""}`].join(""),onClick:()=>{p&&f&&f()},children:[b("p",{className:"card-activity__title",children:s}),b("p",{className:"card-activity__description",children:a}),b("p",{className:"card-activity__secondaryDescription",children:r})]})}),cL="",d_=({iconLeft:u,icon:l,image:s,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:g,button:m,buttonsArray:k,buttons:_,className:N,isClickable:R,isBorderless:P,onClick:$,...K})=>b("div",{className:"elv-component elv-card",...K,children:L("div",{className:["card-horizontal",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&$&&$()},children:[L("div",{className:["card-header pb-0 ",`${l||s?`icon--${a?"trailing":"leading"}`:""}`,,].join(" "),children:[u&&(l||s)?b("div",{className:"card__icon",children:l?b(it,{...l[0]}):s?b("img",{src:s,alt:"Card-Image"}):null}):b(rn,{}),L("div",{className:"card__text",children:[b("p",{className:"title is-6 mb-1",children:r}),b("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),f&&b("div",{className:"card__menu ml-auto",children:b($e,{...g})})]}),L("div",{className:"card-body px-4 pb-4 pt-0",children:[m&&b($e,{...m}),k&&b("div",{children:_==null?void 0:_.map((A,re)=>b($e,{...A},ar()))})]})]})}),dL="",f_=({fill:u,list:l,badge:s,button:a,className:r,isClickable:p,onClick:f,...g})=>b("div",{className:"elv-component elv-card",...g,children:L("div",{className:[`card card-user ${u==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[b("div",{className:"card-body",children:l.map((m,k)=>{var _;return L("div",{className:"list-item",children:[m.iconType=="img"?b(rn,{children:m.img&&b("div",{className:"list-item__img",children:b("img",{src:m.img,className:"img-p"},k)})}):b(rn,{children:m.icon&&b("div",{className:"list-item__img",children:b(it,{className:"img-p",...m.icon},k)})}),L("div",{className:"list-item__text",children:[b("p",{className:"text__subtitle",children:m.title}),b("p",{className:"text__title",children:m.subtitle})]}),m.button&&b("div",{className:"list-item__button left",children:(_=m==null?void 0:m.button)==null?void 0:_.map(N=>b($e,{...N}))}),m.menuButton&&b("div",{className:"list-item__menu",children:b($e,{...m.menuButton})})]},k)})}),s||a?L("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[s&&b(rn,{children:a?b("div",{className:"card-footer__badges card-footer__badges--button",children:s==null?void 0:s.map((m,k)=>b(yo,{...m},k))}):b("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${s.length*100<400?s.length*100:400}px`},children:s.map((m,k)=>b(yo,{...m},k))})}),a==null?void 0:a.map((m,k)=>b($e,{...m,className:"px-6"}))]}):b(rn,{})]})}),fL="",p_=({button:u,title:l,optionButton:s,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:g,footerType:m,interLabel:k,isInterLabelCenter:_,list:N,total:R,className:P,...$})=>b("div",{className:"elv-component elv-cart",...$,children:L("div",{className:`cart ${P||""}`,children:[r==="icon"&&b("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?b(it,{type:"svg_icon",icon:f}):b(it,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&b("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:s&&b($e,{type:s.type,size:s.size,fill:s.fill,loading:!1,disabled:s.disabled,icon:s.icon,label:s.label!==void 0?Vt(s.label,25):"",trailingIcon:s.trailingIcon,onClick:s.onClick})}),L("div",{className:"cart__content",children:[g==="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:[b("p",{className:"title is-5",children:l}),s&&b($e,{type:s.type,size:s.size,fill:s.fill,loading:!1,disabled:s.disabled,icon:s.icon,label:s.label!==void 0?Vt(s.label,25):"",trailingIcon:s.trailingIcon,onClick:s.onClick})]}),b("div",{className:"perception__labels",children:N==null?void 0:N.map(K=>L("div",{className:"item is-flex is-justify-content-space-between",children:[b("p",{className:"item__label",children:K.label}),b("p",{className:"item__value",children:K.value})]},ar()))}),a&&b("div",{className:"perception__sub-list",children:a==null?void 0:a.map(K=>L("div",{className:"item is-flex is-justify-content-space-between",style:{color:K.color},children:[b("p",{className:"item__label",children:K.label}),b("p",{className:"item__value",children:K.value})]},ar()))}),L("div",{className:"perception__total is-flex is-justify-content-space-between",children:[b("p",{className:"total-label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:R==null?void 0:R.label}),b("p",{className:"total-value",style:R!=null&&R.values[0].value_color?{color:R.values[0].value_color}:{},children:R==null?void 0:R.values[0].value})]})]}),g==="bonds"&&b("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:[b("p",{className:"micro-label is-4",children:N[0].label}),b("p",{className:"micro-sub_label",children:N[0].sub_label})]}),b("p",{className:"item__value",children:N[0].value})]}),b("div",{className:`inter-label is-flex ${_?"is-justify-content-center":""}`,children:b("p",{children:k})}),L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[b("p",{className:"micro-label",children:N[1].label}),b("p",{className:"micro-sub_label",children:N[1].sub_label})]}),b("p",{className:"item__value",children:N[1].value})]})]})}),m==="button"&&b("div",{className:"footer--button",children:u&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[u[0]&&b($e,{...u[0]}),u[1]&&b($e,{...u[1]})]})}),m==="total-button"&&L("div",{className:"footer--total-button is-flex is-justify-content-space-between is-align-items-center",children:[R&&L("div",{className:"total",children:[b("p",{className:"total__label",children:Vt(R.label,25)}),b("p",{className:"total__value",children:Vt(R.values[0].value,25)})]}),u&&b($e,{...u[0]})]}),m==="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:[R&&L(rn,{children:[b("p",{className:"total__label",children:Vt(R.label,25)}),b("p",{className:"total__value",children:Vt(R.values[0].value,25)})]}),u&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[u[0]&&b($e,{...u[0]}),u[1]&&b($e,{...u[1]})]})]}),m==="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:[R&&L(rn,{children:[b("p",{className:"total__label",children:Vt(R.label,35)}),R.sub_label&&b("p",{className:"total__sub_label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:Vt(R.sub_label,35)}),R.values[0].sub_value&&b("p",{className:"total__sub_value",style:R!=null&&R.values[0].value_color?{color:R.values[0].value_color}:{},children:Vt(R.values[0].sub_value,35)}),R.values.map(K=>L(rn,{children:[K.sub_desc&&b("p",{className:"total__sub_desc",style:K.sub_desc_color?{color:K.sub_desc_color}:{},children:Vt(K.sub_desc,35)},ar()),b("p",{className:"total__value",style:K.value_color?{color:K.value_color}:{},children:Vt(K.value,35)})]})),R.value_description&&b("p",{className:"total__description",children:R.value_description})]}),u&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[u[0]&&b($e,{...u[0]}),u[1]&&b($e,{...u[1]})]})]}),m==="total-button-sub-mobile"&&L("div",{className:"footer--total-button-sub-mobile is-flex is-justify-content-space-between is-align-items-center",children:[R&&L("div",{className:"total",children:[b("p",{className:"total__label",children:Vt(R.label,18)}),R.sub_label&&b("p",{className:"total__sub_label",children:Vt(R.sub_label,50)}),R.values[0].sub_value&&b("p",{className:"total__sub_value",children:Vt(R.values[0].sub_value,21)}),b("p",{className:"total__value",children:Vt(R.values[0].value,16)})]}),u&&b($e,{...u[0]})]})]})]})}),pL="",hL="",vL="",$f=({size:u="md",label:l="checkbox",value:s,name:a,className:r,key:p,defaultChecked:f,checked:g,error:m,disabled:k=!1,onCheck:_,onChange:N,...R})=>{const[P,$]=de.useState(f||!1),K=A=>{$(!P),_&&_(!P),N&&N(A)};return b("div",{className:"elv-component elv-checkbox elv-control",...R,children:L("label",{className:["e-control e-checkbox",` e-control--${u} e-checkbox--${u}`,`${m?" e-control--error e-checkbox--error":""}`,`${k?" 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:[b("input",{type:"checkbox",onChange:A=>{K(A)},defaultChecked:f,id:s,value:s,name:a,checked:g,className:["e-control__input e-checkbox__input"].join(""),disabled:k}),l&&b("span",{className:"label-text is-flex is-align-items-center",children:l}),b("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},mL="",Lg=({contentType:u,trianglePos:l,className:s,active:a,text:r,date:p,sub_title:f,principal_item:g,sections:m,total:k,amount:_,notification:N,doubleStates:R,tripleStates:P,alert:$,...K})=>{var A,re,se,J,G,B,te,ie,le,Q,fe,pe,me,De,ve,Ee,ke,Ne,ot,Qe,Tt,be,Re,Me,Ze,We,lt,ht,je,ze;return b(rn,{children:a?b("div",{className:"elv-component elv-tooltip",...K,children:b("div",{className:`tooltip ${s||""}`,children:b("div",{className:`tooltip__content ${u&&"tooltip__content--"+u} ${l!=="none"&&"tp tp--"+l}`,children:L("div",{className:"labels is-flex flex-column",children:[u==="calendar"&&L(rn,{children:[b("p",{className:"labels__date",children:p}),b("p",{className:"labels__text",children:r}),b("p",{className:"labels__sub_title",children:f})]}),u==="text"&&b(rn,{children:r&&b("p",{className:"labels__text",children:r})}),u==="taxes"&&L(rn,{children:[g&&L("div",{className:"principal-item is-flex is-justify-content-space-between",children:[b("p",{className:"principal-item__label",children:g==null?void 0:g.label}),b("p",{className:"principal-item__value",children:g==null?void 0:g.value})]}),m&&b("div",{className:"tax-sections",children:m==null?void 0:m.map(ft=>L("div",{className:"tax-sections__sec",children:[ft.title&&b("div",{className:"sec-title",children:ft.title}),ft.labels.map(Nt=>L("div",{className:"sec-label is-flex is-justify-content-space-between",children:[b("p",{className:"sec-label__label",children:Nt.label}),b("p",{className:"sec-label__value",children:Nt.value})]},Nt.label))]},ft.title))}),k&&L("div",{className:"total is-flex is-justify-content-space-between",children:[b("p",{className:"total__label",children:k==null?void 0:k.label}),b("p",{className:"total__value",children:k==null?void 0:k.value})]}),_&&L("div",{className:"amount is-flex is-justify-content-space-between",children:[b("p",{className:"amount__label",children:_==null?void 0:_.label}),b("p",{className:"amount__value",children:_==null?void 0:_.value})]}),N&&b("div",{className:"tax-notification",children:N}),R&&L("div",{className:"double-state columns is-mobile",children:[L("div",{className:"double-state__state column is-6",children:[b("p",{className:"state-label",children:(A=R[0])==null?void 0:A.label}),R[0].type==="state"?L("div",{className:"state-status",style:{color:(re=R[0])==null?void 0:re.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(se=R[0])==null?void 0:se.sub_label_color},children:(J=R[0])==null?void 0:J.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(G=R[0])==null?void 0:G.sub_label_color},children:(B=R[0])==null?void 0:B.sub_label})]}),L("div",{className:"double-state__state column is-6",children:[b("p",{className:"state-label",children:(te=R[1])==null?void 0:te.label}),R[1].type==="state"?L("div",{className:"state-status",style:{color:(ie=R[1])==null?void 0:ie.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(le=R[1])==null?void 0:le.sub_label_color},children:(Q=R[1])==null?void 0:Q.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(fe=R[1])==null?void 0:fe.sub_label_color},children:(pe=R[1])==null?void 0:pe.sub_label})]})]}),P&&L("div",{className:"triple-state columns is-mobile",children:[L("div",{className:"triple-state__state column is-4",children:[b("p",{className:"state-label",children:(me=P[0])==null?void 0:me.label}),P[0].type==="state"?L("div",{className:"state-status",style:{color:(De=P[0])==null?void 0:De.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(ve=P[0])==null?void 0:ve.sub_label_color},children:(Ee=P[0])==null?void 0:Ee.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(ke=P[0])==null?void 0:ke.sub_label_color},children:(Ne=P[0])==null?void 0:Ne.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[b("p",{className:"state-label",children:(ot=P[1])==null?void 0:ot.label}),P[1].type==="state"?L("div",{className:"state-status",style:{color:(Qe=P[1])==null?void 0:Qe.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(Tt=P[1])==null?void 0:Tt.sub_label_color},children:(be=P[1])==null?void 0:be.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(Re=P[1])==null?void 0:Re.sub_label_color},children:(Me=P[1])==null?void 0:Me.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[b("p",{className:"state-label",children:(Ze=P[2])==null?void 0:Ze.label}),P[2].type==="state"?L("div",{className:"state-status",style:{color:(We=P[2])==null?void 0:We.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(lt=P[2])==null?void 0:lt.sub_label_color},children:(ht=P[2])==null?void 0:ht.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(je=P[2])==null?void 0:je.sub_label_color},children:(ze=P[2])==null?void 0:ze.sub_label})]})]}),$&&L("div",{className:"tax-alert is-flex",children:[($==null?void 0:$.icon)&&b(it,{icon:$==null?void 0:$.icon}),b("p",{className:"tax-alert__label",children:$==null?void 0:$.label})]})]})]})})})}):b(rn,{})})},gL="",Ug=({size:u="md",disabled:l=!1,label:s="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:g,className:m,...k})=>{const _=de.useRef(null),N=()=>{_.current&&_.current.checked&&f&&f()};return b("div",{className:"elv-component elv-radio elv-control",...k,children:L("label",{className:["e-control e-radio",` e-control--${u} e-radio--${u}`,`${g?" 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",`${m?" "+m:""}`].join(""),children:[b("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:_}),s&&b("span",{className:"label-text is-flex is-align-items-center",children:s}),b("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},yL="",Wh=({size:u="md",fill:l="outline",disabled:s=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:g,maxCharacters:m=30,onChangeSelect:k,className:_,...N})=>{const[R,P]=de.useState(""),[$,K]=de.useState(a||""),[A,re]=de.useState(!1);de.useEffect(()=>{if(f&&p){const B=p.find(te=>te.value===f);B&&(P(B.value),K(B.label))}},[f,p]);function se(){return B=>{re(!1)}}function J(){return B=>{re(!A)}}function G(B,te){return ie=>{k&&k(B),P(B),K(te),re(!1)}}return b("div",{className:"elv-component elv-select",style:{minWidth:g},...N,children:L("div",{className:`select-container ${_||""}`,onMouseLeave:se(),children:[b("div",{className:["select-container__select",`select--${l}`,`select--${u}`,`${r?"select--error":""} ${s?"select--disabled":""}`,,].join(" "),onClick:J(),children:f!==void 0||!f?$&&b("span",{children:Vt($,m)}):b("span",{children:Vt(a||"",m)})}),b("div",{className:`select-container__dropdown select--${u} ${A?"select-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&b("li",{className:`list__item list__item--default ${R==a?"list__item--active":""}`,onClick:()=>G("",a),children:Vt(a,m)}),p==null?void 0:p.map((B,te)=>L("li",{className:"list__item",onClick:G(B.value,B.label),children:[B.icon&&b("i",{className:`item__icon ${B.icon}`}),Vt(B.label,m)]},te))]})})]})})},wL="",bL="",Vh=({type:u,color:l,size:s,placeholder:a,defaultValue:r,iconLeft:p,iconRight:f,isRounded:g,isLoading:m,isDisabled:k,hasError:_,className:N,onChangeInput:R,...P})=>b("div",{className:"elv-component elv-input",...P,children:b("div",{className:`field e-input ${N||""}`,children:L("p",{className:["control",`${p?" has-icons-left":""}`,`${f?" has-icons-right":""}`,`${m?" is-loading":""}`].join(""),children:[b("input",{className:["input",`${" is-"+s}`,`${l!=="none"?" is-"+l:""}`,`${g?" is-rounded":""}`,`${_?" has-error":""}`].join(""),type:u,placeholder:a,defaultValue:r,disabled:k,onChange:$=>{R&&R($)}}),p&&b("span",{className:`icon is-left ${"is-"+s}`,children:b(it,{...p})}),f&&b("span",{className:`icon is-right ${"is-"+s}`,children:b(it,{...f})})]})})}),D0=({labelDescription:u,checkbox:l,input:s,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:g,priceBottomEdit:m,onCantidadChange:k,onSaveData:_,showAmountinEdit:N,calculateOnChangeCant:R,calculateOnChangeTax:P,exento:$,disabledInputTax:K,visibleInputCant:A,visibleBtnRecalculate:re,visibleBtnCancelar:se,visibleBtnGuardar:J,...G})=>{const[B,te]=de.useState(0),[ie,le]=de.useState(0),[Q,fe]=de.useState($),[pe,me]=de.useState(g==null?void 0:g.labelNumberI),De=()=>{fe(!Q)},ve=()=>{Q||(N?_&&_({calculatedtax:B&&ie&&(m==null?void 0:m.labelNumberA)?B*ie*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}):_&&_({calculatedtax:ie&&(m==null?void 0:m.labelNumberA)?ie*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}))},Ee=(Qe,Tt)=>{Q||(N?_&&_({calculatedtax:Qe&&Tt&&(m==null?void 0:m.labelNumberA)?Qe*Tt*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}):_&&_({calculatedtax:Tt&&(m==null?void 0:m.labelNumberA)?Tt*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}))},ke=()=>{!Q||me(N?B&&ie&&(m==null?void 0:m.labelNumberA)?B*ie*(m==null?void 0:m.labelNumberA):0:ie&&(m==null?void 0:m.labelNumberA)?ie*(m==null?void 0:m.labelNumberA):0)},Ne=Qe=>{Q||(te(parseInt(Qe.toString())),me(N?Qe&&ie&&(m==null?void 0:m.labelNumberA)?Qe*ie*(m==null?void 0:m.labelNumberA):0:ie&&(m==null?void 0:m.labelNumberA)?ie*(m==null?void 0:m.labelNumberA):0),R&&Ee(Qe,ie))},ot=Qe=>{Q||(le(parseInt(Qe.toString())),me(N?B&&Qe&&(m==null?void 0:m.labelNumberA)?B*Qe*(m==null?void 0:m.labelNumberA):0:Qe&&(m==null?void 0:m.labelNumberA)?Qe*(m==null?void 0:m.labelNumberA):0),P&&Ee(B,Qe))};return b("div",{className:"elv-component elv-collapsedit",...G,children:b("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:[b("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:u}),b("div",{className:"collapsedit__check is-size-14px",children:l&&b($f,{...l,defaultChecked:$,onCheck:De,className:""})})]}),b("div",{className:"collapsedit__input",children:N&&b(rn,{children:s&&A&&L("div",{children:[b("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),b(Vh,{...s,className:"",onChangeInput:Qe=>Ne(Number(Qe.target.value))})]})})})]}),b("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&L("div",{children:[b("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),b(Vh,{...a,isDisabled:K,onChangeInput:Qe=>ot(Number(Qe.target.value))})]})})]}),L("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[m&&L("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[b("div",{className:"is-size-10px has-text-grey-light",children:m.labelAliquot}),b("div",{className:"is-size-14px has-text-grey-dark",children:m.labelNumberA})]}),g&&L("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[b("div",{className:"is-size-10px has-text-grey-light",children:g.labelImpost}),L("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",pe]})]})]})]}),L("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[b("div",{className:"",children:r&&re&&b($e,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{ke()}})}),L("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[b("div",{className:"button-cancel ml-4",children:p&&se&&b($e,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),b("div",{className:"button-save",children:J&&b($e,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{ve()}})})]})]})]})})})},E0=({type:u,paddingLeft:l,isFather:s,className:a,show:r,initialState:p,childCollapse:f,disabled:g,colored:m,borderBottom:k,borderTop:_,title:N,stateTitle:R,titleWeight:P,titleIcon:$,description:K,badge:A,details:re,dateDays:se,dateTime:J,price:G,priceColor:B,priceTop:te,priceBottom:ie,priceLeft:le,buttonMenu:Q,buttonLink:fe,buttonDetail:pe,dropRightButton:me,buttonEdit:De,checkbox:ve,collapseEdit:Ee,callBackCheckbox:ke,radio:Ne,onSaveData:ot,showAmountinEdit:Qe,...Tt})=>{const[be,Re]=de.useState(p),[Me,Ze]=de.useState(!1),[We,lt]=de.useState(!1),[ht,je]=de.useState(!1),[ze,ft]=de.useState(g);de.useState(G);const[Nt,Ot]=de.useState(!1),_n=()=>{Re(!be)},En=()=>{je(!ht),ft(!ze)},vt=de.useRef(null);de.useEffect(()=>{function Ge($t){vt.current&&!vt.current.contains($t.target)&&lt(!1)}return document.addEventListener("click",Ge),()=>{document.removeEventListener("click",Ge)}},[vt]);const Ht=de.useRef(null);return de.useEffect(()=>{function Ge($t){Ht.current&&!Ht.current.contains($t.target)&&Ze(!1)}return document.addEventListener("click",Ge),()=>{document.removeEventListener("click",Ge)}},[Ht]),b("div",{className:`elv-component elv-collapse ${a||""}`,...Tt,children:!ht&&!ze?L("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${m?" e-collapse--colored-gray":""}`,`${_?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[L("div",{className:`e-collapse__container ${"e-collapse__container--"+u} ${l&&l==="short"?"e-collapse__container--"+u+"--short":"e-collapse__container--"+u+"--long"} ${g?"e-collapse__container--disabled":""} ${k?"e-collapse__container--borderBottom":""} ${N&&!K&&!re?"e-collapse__container--"+u+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[L("div",{className:"left-container is-flex",style:{cursor:s&&!g?"pointer":"auto"},onClick:()=>{s&&!g&&_n()},children:[s&&b("div",{className:"left-container__dropIcon",style:R&&{paddingTop:"28px"},children:b(it,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${be&&"rotate"}`})}),L("div",{className:"left-container__texts is-flex is-flex-direction-column is-justify-content-center",children:[R&&L("div",{className:"state-title is-flex",style:{color:R==null?void 0:R.color},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-title__text",children:R==null?void 0:R.label})]}),L("div",{className:"title-container is-flex is-align-items-center",children:[$&&b(it,{...$}),A&&b(yo,{...A}),N&&b("p",{className:`title-container__title title-container__title${P&&P=="regular"?"--regular":"--semibold"}`,children:N})]}),K&&b("p",{className:"description",children:K}),re&&b("p",{className:"details",children:re}),(se||J)&&L("div",{className:"date is-flex",children:[se&&L("span",{className:"date__days is-flex is-align-items-center",children:[b(it,{icon:"fa-solid fa-calendar-days"}),b("p",{children:se})]}),J&&L("span",{className:"date__time is-flex is-align-items-center",children:[b(it,{icon:"fa-solid fa-clock"}),b("p",{children:J})]})]})]})]}),L("div",{className:"right-container is-flex is-align-items-center",children:[pe&&L("span",{className:"right-container__buttonDetail",ref:Ht,children:[b($e,{...pe.button,onClick:()=>{Ze(!Me),pe.button.onClick&&pe.button.onClick()}}),pe.tooltip?b("div",{className:`detail-tooltip ${pe.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:b(Lg,{...pe.tooltip,active:Me})}):b(rn,{})]}),L("div",{className:"right-container__price is-flex",children:[le&&le.checkbox&&b("div",{className:"is-flex is-align-items-center",children:b($f,{...le.checkbox})}),L("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[te&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[b("p",{className:"desc",children:te.description}),L("p",{className:"value",children:["$ ",te.value]})]}),G&&L("p",{className:"col-price__price",style:B&&B!=""?{color:B}:{color:"none"},children:["$",G]}),ie&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[b("p",{className:"desc",children:ie.description}),L("p",{className:"value",children:["$ ",ie.value]})]})]})]}),Q&&L("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:vt,children:[b("span",{className:"menu-button ",children:b($e,{...Q.button,onClick:()=>{lt(!We),Q.onEllipse&&Q.onEllipse()}})}),We&&Q.menuDropComponent&&b("div",{className:"menu-drop-component is-absolute",children:Q.menuDropComponent}),Q.select&&b("div",{className:"menu-select",style:We?{display:"block"}:{display:"none"},children:b(Wh,{...Q.select})})]}),me&&b("div",{className:"right-container__dropLeftButton is-flex",children:b($e,{...me})}),fe&&b("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:b($e,{...fe})}),De||ve||Ne?L("div",{className:"right-container__editCheckbox is-flex",children:[De&&b("div",{className:"buttonEdit is-flex is-align-items-center",children:b($e,{...De,onClick:()=>{En()}})}),ve&&b("div",{className:"_checkbox is-flex is-align-items-center",children:b($f,{...ve,onCheck:Ge=>{Ot(Ge),ke&&ke(Ge?{type:u,paddingLeft:l,isFather:s,show:r,initialState:p,childCollapse:f,disabled:g,colored:m,borderBottom:k,borderTop:_,title:N,stateTitle:R,titleWeight:P,titleIcon:$,description:K,badge:A,details:re,dateDays:se,dateTime:J,price:G,priceColor:B,priceTop:te,priceBottom:ie,priceLeft:le,buttonMenu:Q,buttonLink:fe,buttonDetail:pe,dropRightButton:me,buttonEdit:De}:{})}})}),Ne&&b("div",{className:"_radio is-flex is-align-items-center",children:b(Ug,{...Ne,onCheck:()=>{ke&&ke({type:u,paddingLeft:l,isFather:s,show:r,initialState:p,childCollapse:f,disabled:g,colored:m,borderBottom:k,borderTop:_,title:N,stateTitle:R,titleWeight:P,titleIcon:$,description:K,badge:A,details:re,dateDays:se,dateTime:J,price:G,priceColor:B,priceTop:te,priceBottom:ie,priceLeft:le,buttonMenu:Q,buttonLink:fe,buttonDetail:pe,dropRightButton:me,buttonEdit:De}),Ne.onCheck&&Ne.onCheck()}})})]}):b(rn,{})]})]}),f&&f.map(Ge=>b(E0,{...Ge,show:be},ar()))]}):b("div",{className:"",children:b(D0,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:te==null?void 0:te.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:ie==null?void 0:ie.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(Ge){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(Ge){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(Ge){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){je(!1),ft(!1)}},onSaveData:Ge=>{ot&&ot({aliquot:Ge.aliquot,calculatedtax:Ge.calculatedtax}),je(!1),ft(!1)},showAmountinEdit:Qe})})})},CL="";var T0={exports:{}};/*!
29
+ Check the top-level render call using <`+Ae+">.")}return xe}}function Sa(H,xe){{if(!H._store||H._store.validated||H.key!=null)return;H._store.validated=!0;var Ae=gl(xe);if(Hr[Ae])return;Hr[Ae]=!0;var ut="";H&&H._owner&&H._owner!==mt.current&&(ut=" It was passed a child from "+ve(H._owner.type)+"."),vn(H),le('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ae,ut),vn(null)}}function wr(H,xe){{if(typeof H!="object")return;if(Array.isArray(H))for(var Ae=0;Ae<H.length;Ae++){var ut=H[Ae];dn(ut)&&Sa(ut,xe)}else if(dn(H))H._store&&(H._store.validated=!0);else if(H){var At=te(H);if(typeof At=="function"&&At!==H.entries)for(var ct=At.call(H),Lt;!(Lt=ct.next()).done;)dn(Lt.value)&&Sa(Lt.value,xe)}}}function si(H){{var xe=H.type;if(xe==null||typeof xe=="string")return;var Ae;if(typeof xe=="function")Ae=xe.propTypes;else if(typeof xe=="object"&&(xe.$$typeof===k||xe.$$typeof===R))Ae=xe.propTypes;else return;if(Ae){var ut=ve(xe);un(Ae,H.props,"prop",ut,H)}else if(xe.PropTypes!==void 0&&!cn){cn=!0;var At=ve(xe);le("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",At||"Unknown")}typeof xe.getDefaultProps=="function"&&!xe.getDefaultProps.isReactClassApproved&&le("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(H){{for(var xe=Object.keys(H.props),Ae=0;Ae<xe.length;Ae++){var ut=xe[Ae];if(ut!=="children"&&ut!=="key"){vn(H),le("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ut),vn(null);break}}H.ref!==null&&(vn(H),le("Invalid attribute `ref` supplied to `React.Fragment`."),vn(null))}}function Lr(H,xe,Ae,ut,At,ct){{var Lt=pe(H);if(!Lt){var jt="";(H===void 0||typeof H=="object"&&H!==null&&Object.keys(H).length===0)&&(jt+=" 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(At);fn?jt+=fn:jt+=An();var en;H===null?en="null":Array.isArray(H)?en="array":H!==void 0&&H.$$typeof===a?(en="<"+(ve(H.type)||"Unknown")+" />",jt=" Did you accidentally export a JSX literal instead of a component?"):en=typeof H,le("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",en,jt)}var pn=nt(H,xe,Ae,At,ct);if(pn==null)return pn;if(Lt){var ea=xe.children;if(ea!==void 0)if(ut)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],H);Object.freeze&&Object.freeze(ea)}else le("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,H)}return H===u.Fragment?fa(pn):si(pn),pn}}function $r(H,xe,Ae){return Lr(H,xe,Ae,!0)}function Ha(H,xe,Ae){return Lr(H,xe,Ae,!1)}var Ur=Ha,Hi=$r;u.jsx=Ur,u.jsxs=Hi}()}(Ag)),Ag}(function(u){process.env.NODE_ENV==="production"?u.exports=e_():u.exports=t_()})($h);const rn=$h.exports.Fragment,b=$h.exports.jsx,L=$h.exports.jsxs,it=({icon:u,className:l,type:s,size:a="16px",size_height:r,color:p,onClick:f,...g})=>{const m=de.useRef(null);de.useEffect(()=>{s=="svg_icon"&&k(u).then(_=>{m.current&&u&&(m.current.innerHTML=_)})},[m.current,u]);function k(_){return fetch(_).then(N=>N.text())}return s==="svg_icon"?b("span",{className:`svg_icon ${l}`,ref:m,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...g}):b("div",{className:"elv-component elv-icon",...g,children:b("i",{className:`fa_icon ${u} ${l}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},$e=({color:u="primary",type:l="button",size:s="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:g=!1,disabled:m=!1,icon:k,icon_type:_="fa_icon",icon_size:N,icon_size_height:R,icon_color:P,icon_className:$,trailingIcon:K=!1,label:A,onClick:re,className:se,...J})=>{const G=B=>{B.stopPropagation(),re&&re()};return b("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...J,children:b("button",{type:l,className:["button",`${a==="solid"||a==="outline"?" is-"+u+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${s!=="normal"?" is-"+s:""}`,`${K?" button__icon--trailing":""}`,`${g?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${se?" "+se:""}`].join(""),onClick:B=>{G(B)},disabled:m,children:b("div",{className:"button-content is-flex",children:K?L(rn,{children:[A,k&&b(it,{icon:k,type:_,color:P,size:N,size_height:R,className:"button__icon "+$})]}):L(rn,{children:[k&&b(it,{icon:k,type:_,color:P,size:N,size_height:R,className:"button__icon "+$}),A]})})})})},eL="",n_=({type:u,className:l,fill:s,accent:a,icon:r,labelTitle:p,label:f,isButton:g,button:m,...k})=>b("div",{className:"elv-component elv-notification",...k,children:L("div",{className:`notification --type-${u} --fill-${s} --accent-${a} ${l||""}`,children:[r&&b("div",{className:"notification__icon",children:b("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p!==void 0&&b("p",{className:"__title",children:b("div",{dangerouslySetInnerHTML:{__html:p}})}),b("p",{className:"__label",children:b("div",{dangerouslySetInnerHTML:{__html:f}})}),g&&m!==void 0&&b("div",{className:"notification__button",children:b($e,{...m[0]})})]})]})}),tL="",yo=({color:u,className:l,text:s,colorText:a,...r})=>b("div",{className:"elv-component elv-badge",...r,children:b("span",{style:{backgroundColor:u,color:a},className:`badge badge--${u} ${l||""}`,children:s})}),nL="",k0=({color:u="primary",size:l="normal",max:s,value:a,className:r,...p})=>b("div",{className:"elv-component elv-progressbar",...p,children:b("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:b("progress",{className:[`progress progress--${l}`,`${" is-"+u}`].join(""),value:a,max:s})})}),rL="",r_=({title:u,option:l,onSeeAll:s,className:a})=>b("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:[b("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:u}),b("div",{className:"is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map(r=>L("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[b("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),b("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),b("div",{className:"assistancediary__widthstate p-1",children:b("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]}))}),b("div",{children:b($e,{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:()=>s&&s()})})]})}),aL="",a_=({option:u,option2:l,option3:s,Call:a,className:r})=>{const[p,f]=de.useState(0),[g,m]=de.useState(0),[k,_]=de.useState(0),[N,R]=de.useState(null),[P,$]=de.useState(null),[K,A]=de.useState(null),[re,se]=de.useState(null);de.useEffect(()=>{const fe=new Date().getWeek(),pe=fe-1,me=a.filter(Tt=>Tt.date.getWeek()===fe),De=a.filter(Tt=>Tt.date.getWeek()===pe);f(me.length),m(De.length);const ve=De.length!==0?(me.length-De.length)/De.length:0,Ee=parseFloat(ve.toFixed(2));_(Ee);const ke=a[a.length-1];if(ke){const Tt=new Date,be=ke.arrivalTime,Re=ke.serviceStartTime||be,Me=(Re||Tt).getTime()-be.getTime();R(Me/(1e3*60));const Ze=Tt.getTime()-(Re||be).getTime(),We=Math.floor(Ze/(1e3*60));$(We);const lt=te(me),ht=te(De),je=B(lt,ht,me.length,De.length);se(je)}else R(null),$(null);const Ne=ie(me),ot=ie(De),Qe=le(Ne,ot,me.length,De.length);A(Qe)},[a]),de.useEffect(()=>{const Q=setInterval(()=>{const fe=a[a.length-1];if(fe&&fe.serviceStartTime){const me=new Date().getTime()-fe.serviceStartTime.getTime();$(me/6e4)}else $(null)},1e3);return()=>clearInterval(Q)},[a]);const J=P!==null?`${Math.floor(P/60)}:${(P%60).toFixed(0).padStart(2,"0")}`:"N/A",G=N!==null?`${Math.floor(N/60)}:${(N%60).toFixed(0).padStart(2,"0")}`:"N/A";K!==null&&`${Math.floor(K/60)}${(K%60).toFixed(0).padStart(2,"0")}`;const B=(Q,fe,pe,me)=>{const De=pe>0?pe:1,ve=me>0?me:1,Ee=(Q/De-fe/ve)/(1e3*60);return parseFloat(Ee.toFixed(2))/100},te=Q=>Q.reduce((fe,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const me=new Date().getTime()-pe.serviceStartTime.getTime();return fe+me}return fe},0),ie=Q=>Q.reduce((fe,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const me=pe.serviceStartTime.getTime()-pe.arrivalTime.getTime();return fe+me}return fe},0),le=(Q,fe,pe,me)=>{const De=pe>0?pe:1,ve=me>0?me:1,Ee=(Q/De-fe/ve)/(1e3*60);return parseFloat(Ee.toFixed(2))};return Date.prototype.getWeek=function(){var Q=new Date(this.getTime());Q.setHours(0,0,0,0),Q.setDate(Q.getDate()+4-(Q.getDay()||7));var fe=new Date(Q.getFullYear(),0,1),pe=Math.ceil(((Q.getTime()-fe.getTime())/864e5+1)/7);return pe},b("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:[u==null?void 0:u.map(Q=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[b("div",{children:b(it,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),b("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),L("div",{className:"is-flex is-align-items-center",children:[b(yo,{text:`${k<0?Q.labelButtom:Q.labelTop}${k.toString()}%`,color:Q.color,colorText:`${k<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),b("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]})),l==null?void 0:l.map(Q=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[b("div",{children:b(it,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),G!==null&&b("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${G}${Q.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[b(yo,{text:`${K!==null&&K<0?Q.labelButtom:Q.labelTop}${K!==null&&K.toFixed(1)}%`,color:Q.color,colorText:K!=null&&K<0?Q.colorText:Q.colorTextPositive,className:"badge"}),b("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]})),s==null?void 0:s.map(Q=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[b("div",{children:b(it,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[b("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),J!==null&&b("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${J}${Q.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[b(yo,{text:`${re!=null&&re<0?Q.labelButtom:Q.labelTop}${re!=null&&re.toFixed(1)}%`,color:Q.color,colorText:`${re!=null&&re<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),b("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]}))]})})},iL="";function Vt(u,l){return u.length<l?u:u.slice(0,l)+"..."}function ar(){return`${Math.random().toString(36).substr(2,9)}`}function _0(u){return u<1024?u+" bytes":u<1024*1024?(u/1024).toFixed(2)+" KB":u<1024*1024*1024?(u/(1024*1024)).toFixed(2)+" MB":(u/(1024*1024*1024)).toFixed(2)+" GB"}function i_(u){const l=u.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 o_=({type:u,defaultActiveLabel:l,items:s,handleActive:a,className:r,...p})=>{const f=s.find(_=>_.label===l),[g,m]=de.useState(f),k=_=>{m(_),a&&a(_),_.onClick&&_.onClick()};return b("div",{className:"elv-component elv-nav_bc",...p,children:b("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${u} ${r||""}`,children:b("ol",{className:"bc-list",children:s.map((_,N)=>L("li",{className:`bc-item ${_===g?"bc-item--active":""}`,children:[L("p",{className:"bc-item__bc-link",onClick:()=>{k(_)},children:[_.icon&&_.icon!==""&&b("i",{className:`${_.icon} item-icon ${_.label&&_.label!==""?"--and-label":""}`}),_.label&&_.label!==""&&Vt(_.label,25)]}),N<s.length-1&&b("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},_.label))})})})},oL="",l_=({img:u,title:l,icon:s,date:a,description:r,button:p,className:f,isBorderless:g,isClickable:m,onClick:k,..._})=>b("div",{className:"elv-component elv-card",..._,children:L("div",{className:["card card-cta",`${f?" "+f:""}`,`${m?" is-clickable":""}`,`${g?" is-shadowless":" card-box"}`].join(""),onClick:()=>{m&&k&&k()},children:[L("div",{className:"card-content",style:{flexGrow:1},children:[b("div",{className:"card-header",children:L("div",{className:"card__text",children:[b("p",{className:"title is-3",children:Vt(l,54)}),r&&b("p",{children:Vt(r,198)})]})}),L("div",{className:"card-footer",children:[L("div",{className:"card__date",children:[s&&b(it,{...s[0]}),b("span",{className:"date",children:a})]}),p&&b("div",{className:"card__button",children:b($e,{...p})})]})]}),b("div",{className:"card-image",children:b("img",{src:u,alt:""})})]})}),lL="",s_=({dataBig:u,bigNumber:l,bigMonth:s,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:g,className:m,isBorderless:k,isClickable:_,onClick:N,...R})=>b("div",{className:"elv-component elv-card",...R,children:b("div",{className:["card card-expiration",`${m?" "+m:""}`,`${_?" is-clickable":""}`,`${k?" is-shadowless":" card-box"}`].join(""),onClick:()=>{_&&N&&N()},children:L("div",{className:"card-expiration__content",children:[L("div",{className:"card_header",children:[u&&L("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[b("h1",{children:l}),b("h4",{children:s})]}),a&&L("div",{className:"date__small",children:[r&&b("div",{className:"card__icon",children:b("div",{className:"icon",children:r?b(it,{icon:r[0].icon,className:"icon"}):null})}),b("p",{className:"title is-5",children:p}),b("p",{className:"title is-3",children:f})]})]}),b("div",{className:"card-footer",children:b("div",{className:"data__expiration",children:b("div",{className:"list",children:g.map(P=>L("p",{className:"title is-6",children:[P.type,": ",b("span",{children:P.text})]},ar()))})})})]})})}),sL="",u_=({image:u,img:l,badge:s,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:g,date:m,description:k,button:_,className:N,isClickable:R,isBorderless:P,onClick:$,...K})=>b("div",{className:"elv-component elv-card",...K,children:L("div",{className:["card card-vertical",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&$&&$()},children:[L("div",{className:"card-header",children:[u&&L("div",{className:"card__img",children:[b("img",{src:l,alt:""}),s&&b(yo,{...s[0]})]}),p&&b("div",{className:"card__icon",children:b("div",{className:"icon",children:g?b(it,{...g[0],className:"icon"}):null})}),a&&b("div",{className:"card__avatar",children:b("img",{src:r,alt:""})})]}),L("div",{className:"card-body",children:[b("div",{className:"card__title",children:b("p",{className:"title is-5",children:f})}),L("div",{className:"card__date",children:[g&&b(it,{...g[0],className:"icon"}),b("span",{className:"date",children:m})]}),b("div",{className:"card__description",children:b("p",{children:k})})]}),b("div",{className:"card-footer",children:b("div",{className:"card__button",children:b($e,{..._})})})]})}),uL="",c_=({fill:u,className:l,title:s,description:a,secondaryDescription:r,isClickable:p,onClick:f,...g})=>b("div",{className:"elv-component elv-card",...g,children:L("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${l||""}`].join(""),onClick:()=>{p&&f&&f()},children:[b("p",{className:"card-activity__title",children:s}),b("p",{className:"card-activity__description",children:a}),b("p",{className:"card-activity__secondaryDescription",children:r})]})}),cL="",d_=({iconLeft:u,icon:l,image:s,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:g,button:m,buttonsArray:k,buttons:_,className:N,isClickable:R,isBorderless:P,onClick:$,...K})=>b("div",{className:"elv-component elv-card",...K,children:L("div",{className:["card-horizontal",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&$&&$()},children:[L("div",{className:["card-header pb-0 ",`${l||s?`icon--${a?"trailing":"leading"}`:""}`,,].join(" "),children:[u&&(l||s)?b("div",{className:"card__icon",children:l?b(it,{...l[0]}):s?b("img",{src:s,alt:"Card-Image"}):null}):b(rn,{}),L("div",{className:"card__text",children:[b("p",{className:"title is-6 mb-1",children:r}),b("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),f&&b("div",{className:"card__menu ml-auto",children:b($e,{...g})})]}),L("div",{className:"card-body px-4 pb-4 pt-0",children:[m&&b($e,{...m}),k&&b("div",{children:_==null?void 0:_.map((A,re)=>b($e,{...A},ar()))})]})]})}),dL="",f_=({fill:u,list:l,badge:s,button:a,className:r,isClickable:p,onClick:f,...g})=>b("div",{className:"elv-component elv-card",...g,children:L("div",{className:[`card card-user ${u==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[b("div",{className:"card-body",children:l.map((m,k)=>{var _;return L("div",{className:"list-item",children:[m.iconType=="img"?b(rn,{children:m.img&&b("div",{className:"list-item__img",children:b("img",{src:m.img,className:"img-p"},k)})}):b(rn,{children:m.icon&&b("div",{className:"list-item__img",children:b(it,{className:"img-p",...m.icon},k)})}),L("div",{className:"list-item__text",children:[b("p",{className:"text__subtitle",children:m.title}),b("p",{className:"text__title",children:m.subtitle})]}),m.button&&b("div",{className:"list-item__button left",children:(_=m==null?void 0:m.button)==null?void 0:_.map(N=>b($e,{...N}))}),m.menuButton&&b("div",{className:"list-item__menu",children:b($e,{...m.menuButton})})]},k)})}),s||a?L("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[s&&b(rn,{children:a?b("div",{className:"card-footer__badges card-footer__badges--button",children:s==null?void 0:s.map((m,k)=>b(yo,{...m},k))}):b("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${s.length*100<400?s.length*100:400}px`},children:s.map((m,k)=>b(yo,{...m},k))})}),a==null?void 0:a.map((m,k)=>b($e,{...m,className:"px-6"}))]}):b(rn,{})]})}),fL="",p_=({button:u,title:l,optionButton:s,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:g,footerType:m,interLabel:k,isInterLabelCenter:_,list:N,total:R,className:P,...$})=>b("div",{className:"elv-component elv-cart",...$,children:L("div",{className:`cart ${P||""}`,children:[r==="icon"&&b("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?b(it,{type:"svg_icon",icon:f}):b(it,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&b("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:s&&b($e,{type:s.type,size:s.size,fill:s.fill,loading:!1,disabled:s.disabled,icon:s.icon,label:s.label!==void 0?Vt(s.label,25):"",trailingIcon:s.trailingIcon,onClick:s.onClick})}),L("div",{className:"cart__content",children:[g==="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:[b("p",{className:"title is-5",children:l}),s&&b($e,{type:s.type,size:s.size,fill:s.fill,loading:!1,disabled:s.disabled,icon:s.icon,label:s.label!==void 0?Vt(s.label,25):"",trailingIcon:s.trailingIcon,onClick:s.onClick})]}),b("div",{className:"perception__labels",children:N==null?void 0:N.map(K=>L("div",{className:"item is-flex is-justify-content-space-between",children:[b("p",{className:"item__label",children:K.label}),b("p",{className:"item__value",children:K.value})]},ar()))}),a&&b("div",{className:"perception__sub-list",children:a==null?void 0:a.map(K=>L("div",{className:"item is-flex is-justify-content-space-between",style:{color:K.color},children:[b("p",{className:"item__label",children:K.label}),b("p",{className:"item__value",children:K.value})]},ar()))}),L("div",{className:"perception__total is-flex is-justify-content-space-between",children:[b("p",{className:"total-label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:R==null?void 0:R.label}),b("p",{className:"total-value",style:R!=null&&R.values[0].value_color?{color:R.values[0].value_color}:{},children:R==null?void 0:R.values[0].value})]})]}),g==="bonds"&&b("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:[b("p",{className:"micro-label is-4",children:N[0].label}),b("p",{className:"micro-sub_label",children:N[0].sub_label})]}),b("p",{className:"item__value",children:N[0].value})]}),b("div",{className:`inter-label is-flex ${_?"is-justify-content-center":""}`,children:b("p",{children:k})}),L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[b("p",{className:"micro-label",children:N[1].label}),b("p",{className:"micro-sub_label",children:N[1].sub_label})]}),b("p",{className:"item__value",children:N[1].value})]})]})}),m==="button"&&b("div",{className:"footer--button",children:u&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[u[0]&&b($e,{...u[0]}),u[1]&&b($e,{...u[1]})]})}),m==="total-button"&&L("div",{className:"footer--total-button is-flex is-justify-content-space-between is-align-items-center",children:[R&&L("div",{className:"total",children:[b("p",{className:"total__label",children:Vt(R.label,25)}),b("p",{className:"total__value",children:Vt(R.values[0].value,25)})]}),u&&b($e,{...u[0]})]}),m==="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:[R&&L(rn,{children:[b("p",{className:"total__label",children:Vt(R.label,25)}),b("p",{className:"total__value",children:Vt(R.values[0].value,25)})]}),u&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[u[0]&&b($e,{...u[0]}),u[1]&&b($e,{...u[1]})]})]}),m==="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:[R&&L(rn,{children:[b("p",{className:"total__label",children:Vt(R.label,35)}),R.sub_label&&b("p",{className:"total__sub_label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:Vt(R.sub_label,35)}),R.values[0].sub_value&&b("p",{className:"total__sub_value",style:R!=null&&R.values[0].value_color?{color:R.values[0].value_color}:{},children:Vt(R.values[0].sub_value,35)}),R.values.map(K=>L(rn,{children:[K.sub_desc&&b("p",{className:"total__sub_desc",style:K.sub_desc_color?{color:K.sub_desc_color}:{},children:Vt(K.sub_desc,35)},ar()),b("p",{className:"total__value",style:K.value_color?{color:K.value_color}:{},children:Vt(K.value,35)})]})),R.value_description&&b("p",{className:"total__description",children:R.value_description})]}),u&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[u[0]&&b($e,{...u[0]}),u[1]&&b($e,{...u[1]})]})]}),m==="total-button-sub-mobile"&&L("div",{className:"footer--total-button-sub-mobile is-flex is-justify-content-space-between is-align-items-center",children:[R&&L("div",{className:"total",children:[b("p",{className:"total__label",children:Vt(R.label,18)}),R.sub_label&&b("p",{className:"total__sub_label",children:Vt(R.sub_label,50)}),R.values[0].sub_value&&b("p",{className:"total__sub_value",children:Vt(R.values[0].sub_value,21)}),b("p",{className:"total__value",children:Vt(R.values[0].value,16)})]}),u&&b($e,{...u[0]})]})]})]})}),pL="",hL="",vL="",$f=({size:u="md",label:l="checkbox",value:s,name:a,className:r,key:p,defaultChecked:f,checked:g,error:m,disabled:k=!1,onCheck:_,onChange:N,...R})=>{const[P,$]=de.useState(f||!1),K=A=>{$(!P),_&&_(!P),N&&N(A)};return b("div",{className:"elv-component elv-checkbox elv-control",...R,children:L("label",{className:["e-control e-checkbox",` e-control--${u} e-checkbox--${u}`,`${m?" e-control--error e-checkbox--error":""}`,`${k?" 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:[b("input",{type:"checkbox",onChange:A=>{K(A)},defaultChecked:f,id:s,value:s,name:a,checked:g,className:["e-control__input e-checkbox__input"].join(""),disabled:k}),l&&b("span",{className:"label-text is-flex is-align-items-center",children:l}),b("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},mL="",Lg=({contentType:u,trianglePos:l,className:s,active:a,text:r,date:p,sub_title:f,principal_item:g,sections:m,total:k,amount:_,notification:N,doubleStates:R,tripleStates:P,alert:$,...K})=>{var A,re,se,J,G,B,te,ie,le,Q,fe,pe,me,De,ve,Ee,ke,Ne,ot,Qe,Tt,be,Re,Me,Ze,We,lt,ht,je,ze;return b(rn,{children:a?b("div",{className:"elv-component elv-tooltip",...K,children:b("div",{className:`tooltip ${s||""}`,children:b("div",{className:`tooltip__content ${u&&"tooltip__content--"+u} ${l!=="none"&&"tp tp--"+l}`,children:L("div",{className:"labels is-flex flex-column",children:[u==="calendar"&&L(rn,{children:[b("p",{className:"labels__date",children:p}),b("p",{className:"labels__text",children:r}),b("p",{className:"labels__sub_title",children:f})]}),u==="text"&&b(rn,{children:r&&b("p",{className:"labels__text",children:r})}),u==="taxes"&&L(rn,{children:[g&&L("div",{className:"principal-item is-flex is-justify-content-space-between",children:[b("p",{className:"principal-item__label",children:g==null?void 0:g.label}),b("p",{className:"principal-item__value",children:g==null?void 0:g.value})]}),m&&b("div",{className:"tax-sections",children:m==null?void 0:m.map(ft=>L("div",{className:"tax-sections__sec",children:[ft.title&&b("div",{className:"sec-title",children:ft.title}),ft.labels.map(Nt=>L("div",{className:"sec-label is-flex is-justify-content-space-between",children:[b("p",{className:"sec-label__label",children:Nt.label}),b("p",{className:"sec-label__value",children:Nt.value})]},Nt.label))]},ft.title))}),k&&L("div",{className:"total is-flex is-justify-content-space-between",children:[b("p",{className:"total__label",children:k==null?void 0:k.label}),b("p",{className:"total__value",children:k==null?void 0:k.value})]}),_&&L("div",{className:"amount is-flex is-justify-content-space-between",children:[b("p",{className:"amount__label",children:_==null?void 0:_.label}),b("p",{className:"amount__value",children:_==null?void 0:_.value})]}),N&&b("div",{className:"tax-notification",children:N}),R&&L("div",{className:"double-state columns is-mobile",children:[L("div",{className:"double-state__state column is-6",children:[b("p",{className:"state-label",children:(A=R[0])==null?void 0:A.label}),R[0].type==="state"?L("div",{className:"state-status",style:{color:(re=R[0])==null?void 0:re.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(se=R[0])==null?void 0:se.sub_label_color},children:(J=R[0])==null?void 0:J.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(G=R[0])==null?void 0:G.sub_label_color},children:(B=R[0])==null?void 0:B.sub_label})]}),L("div",{className:"double-state__state column is-6",children:[b("p",{className:"state-label",children:(te=R[1])==null?void 0:te.label}),R[1].type==="state"?L("div",{className:"state-status",style:{color:(ie=R[1])==null?void 0:ie.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(le=R[1])==null?void 0:le.sub_label_color},children:(Q=R[1])==null?void 0:Q.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(fe=R[1])==null?void 0:fe.sub_label_color},children:(pe=R[1])==null?void 0:pe.sub_label})]})]}),P&&L("div",{className:"triple-state columns is-mobile",children:[L("div",{className:"triple-state__state column is-4",children:[b("p",{className:"state-label",children:(me=P[0])==null?void 0:me.label}),P[0].type==="state"?L("div",{className:"state-status",style:{color:(De=P[0])==null?void 0:De.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(ve=P[0])==null?void 0:ve.sub_label_color},children:(Ee=P[0])==null?void 0:Ee.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(ke=P[0])==null?void 0:ke.sub_label_color},children:(Ne=P[0])==null?void 0:Ne.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[b("p",{className:"state-label",children:(ot=P[1])==null?void 0:ot.label}),P[1].type==="state"?L("div",{className:"state-status",style:{color:(Qe=P[1])==null?void 0:Qe.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(Tt=P[1])==null?void 0:Tt.sub_label_color},children:(be=P[1])==null?void 0:be.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(Re=P[1])==null?void 0:Re.sub_label_color},children:(Me=P[1])==null?void 0:Me.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[b("p",{className:"state-label",children:(Ze=P[2])==null?void 0:Ze.label}),P[2].type==="state"?L("div",{className:"state-status",style:{color:(We=P[2])==null?void 0:We.colorStatus},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-status__text",style:{color:(lt=P[2])==null?void 0:lt.sub_label_color},children:(ht=P[2])==null?void 0:ht.sub_label})]}):b("p",{className:"state-sub_label",style:{color:(je=P[2])==null?void 0:je.sub_label_color},children:(ze=P[2])==null?void 0:ze.sub_label})]})]}),$&&L("div",{className:"tax-alert is-flex",children:[($==null?void 0:$.icon)&&b(it,{icon:$==null?void 0:$.icon}),b("p",{className:"tax-alert__label",children:$==null?void 0:$.label})]})]})]})})})}):b(rn,{})})},gL="",Ug=({size:u="md",disabled:l=!1,label:s="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:g,className:m,...k})=>{const _=de.useRef(null),N=()=>{_.current&&_.current.checked&&f&&f()};return b("div",{className:"elv-component elv-radio elv-control",...k,children:L("label",{className:["e-control e-radio",` e-control--${u} e-radio--${u}`,`${g?" 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",`${m?" "+m:""}`].join(""),children:[b("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:_}),s&&b("span",{className:"label-text is-flex is-align-items-center",children:s}),b("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},yL="",Wh=({size:u="md",fill:l="outline",disabled:s=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:g,maxCharacters:m=30,onChangeSelect:k,className:_,...N})=>{const[R,P]=de.useState(""),[$,K]=de.useState(a||""),[A,re]=de.useState(!1);de.useEffect(()=>{if(f&&p){const B=p.find(te=>te.value===f);B&&(P(B.value),K(B.label))}},[f,p]);function se(){return B=>{re(!1)}}function J(){return B=>{re(!A)}}function G(B,te){return ie=>{k&&k(B),P(B),K(te),re(!1)}}return b("div",{className:"elv-component elv-select",style:{minWidth:g},...N,children:L("div",{className:`select-container ${_||""}`,onMouseLeave:se(),children:[b("div",{className:["select-container__select",`select--${l}`,`select--${u}`,`${r?"select--error":""} ${s?"select--disabled":""}`,,].join(" "),onClick:J(),children:f!==void 0||!f?$&&b("span",{children:Vt($,m)}):b("span",{children:Vt(a||"",m)})}),b("div",{className:`select-container__dropdown select--${u} ${A?"select-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&b("li",{className:`list__item list__item--default ${R==a?"list__item--active":""}`,onClick:()=>G("",a),children:Vt(a,m)}),p==null?void 0:p.map((B,te)=>L("li",{className:"list__item",onClick:G(B.value,B.label),children:[B.icon&&b("i",{className:`item__icon ${B.icon}`}),Vt(B.label,m)]},te))]})})]})})},wL="",bL="",Vh=({type:u,color:l,size:s,placeholder:a,defaultValue:r,iconLeft:p,iconRight:f,isRounded:g,isLoading:m,isDisabled:k,hasError:_,className:N,onChangeInput:R,...P})=>b("div",{className:"elv-component elv-input",...P,children:b("div",{className:`field e-input ${N||""}`,children:L("p",{className:["control",`${p?" has-icons-left":""}`,`${f?" has-icons-right":""}`,`${m?" is-loading":""}`].join(""),children:[b("input",{className:["input",`${" is-"+s}`,`${l!=="none"?" is-"+l:""}`,`${g?" is-rounded":""}`,`${_?" has-error":""}`].join(""),type:u,placeholder:a,defaultValue:r,disabled:k,onChange:$=>{R&&R($)}}),p&&b("span",{className:`icon is-left ${"is-"+s}`,children:b(it,{...p})}),f&&b("span",{className:`icon is-right ${"is-"+s}`,children:b(it,{...f})})]})})}),D0=({labelDescription:u,checkbox:l,input:s,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:g,priceBottomEdit:m,onCantidadChange:k,onSaveData:_,showAmountinEdit:N,calculateOnChangeCant:R,calculateOnChangeTax:P,exento:$,disabledInputTax:K,visibleInputCant:A,visibleBtnRecalculate:re,visibleBtnCancelar:se,visibleBtnGuardar:J,...G})=>{const[B,te]=de.useState(Number(s==null?void 0:s.defaultValue)||1),[ie,le]=de.useState(0),[Q,fe]=de.useState($),[pe,me]=de.useState(g==null?void 0:g.labelNumberI),De=()=>{fe(!Q)},ve=()=>{Q||(N?_&&_({calculatedtax:B&&ie&&(m==null?void 0:m.labelNumberA)?B*ie*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}):_&&_({calculatedtax:ie&&(m==null?void 0:m.labelNumberA)?ie*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}))},Ee=(Qe,Tt)=>{Q||(N?_&&_({calculatedtax:Qe&&Tt&&(m==null?void 0:m.labelNumberA)?Qe*Tt*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}):_&&_({calculatedtax:Tt&&(m==null?void 0:m.labelNumberA)?Tt*(m==null?void 0:m.labelNumberA):0,aliquot:m!=null&&m.labelNumberA?m.labelNumberA:0}))},ke=()=>{!Q||me(N?B&&ie&&(m==null?void 0:m.labelNumberA)?parseFloat((B*ie*(m==null?void 0:m.labelNumberA)).toFixed(2)):0:ie&&(m==null?void 0:m.labelNumberA)?parseFloat((ie*(m==null?void 0:m.labelNumberA)).toFixed(2)):0)},Ne=Qe=>{Q||(te(parseInt(Qe.toString())),me(N?Qe&&ie&&(m==null?void 0:m.labelNumberA)?parseFloat((Qe*ie*(m==null?void 0:m.labelNumberA)).toFixed(2)):0:ie&&(m==null?void 0:m.labelNumberA)?ie*(m==null?void 0:m.labelNumberA):0),R&&Ee(Qe,ie))},ot=Qe=>{Q||(le(parseInt(Qe.toString())),me(N?B&&Qe&&(m==null?void 0:m.labelNumberA)?parseFloat((B*Qe*(m==null?void 0:m.labelNumberA)).toFixed(2)):0:Qe&&(m==null?void 0:m.labelNumberA)?parseFloat((Qe*(m==null?void 0:m.labelNumberA)).toFixed(2)):0),P&&Ee(B,Qe))};return b("div",{className:"elv-component elv-collapsedit",...G,children:b("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:[b("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:u}),b("div",{className:"collapsedit__check is-size-14px",children:l&&b($f,{...l,defaultChecked:$,onCheck:De,className:""})})]}),b("div",{className:"collapsedit__input",children:N&&b(rn,{children:s&&A&&L("div",{children:[b("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),b(Vh,{...s,className:"",onChangeInput:Qe=>Ne(Number(Qe.target.value))})]})})})]}),b("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&L("div",{children:[b("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),b(Vh,{...a,isDisabled:K,onChangeInput:Qe=>ot(Number(Qe.target.value))})]})})]}),L("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[m&&L("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[b("div",{className:"is-size-10px has-text-grey-light",children:m.labelAliquot}),b("div",{className:"is-size-14px has-text-grey-dark",children:m.labelNumberA})]}),g&&L("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[b("div",{className:"is-size-10px has-text-grey-light",children:g.labelImpost}),L("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",pe]})]})]})]}),L("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[b("div",{className:"",children:r&&re&&b($e,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{ke()}})}),L("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[b("div",{className:"button-cancel ml-4",children:p&&se&&b($e,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),b("div",{className:"button-save",children:J&&b($e,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{ve()}})})]})]})]})})})},E0=({type:u,paddingLeft:l,isFather:s,className:a,show:r,initialState:p,childCollapse:f,disabled:g,colored:m,borderBottom:k,borderTop:_,title:N,stateTitle:R,titleWeight:P,titleIcon:$,description:K,badge:A,details:re,dateDays:se,dateTime:J,price:G,priceColor:B,priceTop:te,priceBottom:ie,priceLeft:le,buttonMenu:Q,buttonLink:fe,buttonDetail:pe,dropRightButton:me,buttonEdit:De,checkbox:ve,collapseEdit:Ee,callBackCheckbox:ke,radio:Ne,onSaveData:ot,showAmountinEdit:Qe,...Tt})=>{const[be,Re]=de.useState(p),[Me,Ze]=de.useState(!1),[We,lt]=de.useState(!1),[ht,je]=de.useState(!1),[ze,ft]=de.useState(g);de.useState(G);const[Nt,Ot]=de.useState(!1),_n=()=>{Re(!be)},En=()=>{je(!ht),ft(!ze)},vt=de.useRef(null);de.useEffect(()=>{function Ge($t){vt.current&&!vt.current.contains($t.target)&&lt(!1)}return document.addEventListener("click",Ge),()=>{document.removeEventListener("click",Ge)}},[vt]);const Ht=de.useRef(null);return de.useEffect(()=>{function Ge($t){Ht.current&&!Ht.current.contains($t.target)&&Ze(!1)}return document.addEventListener("click",Ge),()=>{document.removeEventListener("click",Ge)}},[Ht]),b("div",{className:`elv-component elv-collapse ${a||""}`,...Tt,children:!ht&&!ze?L("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${m?" e-collapse--colored-gray":""}`,`${_?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[L("div",{className:`e-collapse__container ${"e-collapse__container--"+u} ${l&&l==="short"?"e-collapse__container--"+u+"--short":"e-collapse__container--"+u+"--long"} ${g?"e-collapse__container--disabled":""} ${k?"e-collapse__container--borderBottom":""} ${N&&!K&&!re?"e-collapse__container--"+u+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[L("div",{className:"left-container is-flex",style:{cursor:s&&!g?"pointer":"auto"},onClick:()=>{s&&!g&&_n()},children:[s&&b("div",{className:"left-container__dropIcon",style:R&&{paddingTop:"28px"},children:b(it,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${be&&"rotate"}`})}),L("div",{className:"left-container__texts is-flex is-flex-direction-column is-justify-content-center",children:[R&&L("div",{className:"state-title is-flex",style:{color:R==null?void 0:R.color},children:[b(it,{icon:"fa-solid fa-circle"})," ",b("p",{className:"state-title__text",children:R==null?void 0:R.label})]}),L("div",{className:"title-container is-flex is-align-items-center",children:[$&&b(it,{...$}),A&&b(yo,{...A}),N&&b("p",{className:`title-container__title title-container__title${P&&P=="regular"?"--regular":"--semibold"}`,children:N})]}),K&&b("p",{className:"description",children:K}),re&&b("p",{className:"details",children:re}),(se||J)&&L("div",{className:"date is-flex",children:[se&&L("span",{className:"date__days is-flex is-align-items-center",children:[b(it,{icon:"fa-solid fa-calendar-days"}),b("p",{children:se})]}),J&&L("span",{className:"date__time is-flex is-align-items-center",children:[b(it,{icon:"fa-solid fa-clock"}),b("p",{children:J})]})]})]})]}),L("div",{className:"right-container is-flex is-align-items-center",children:[pe&&L("span",{className:"right-container__buttonDetail",ref:Ht,children:[b($e,{...pe.button,onClick:()=>{Ze(!Me),pe.button.onClick&&pe.button.onClick()}}),pe.tooltip?b("div",{className:`detail-tooltip ${pe.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:b(Lg,{...pe.tooltip,active:Me})}):b(rn,{})]}),L("div",{className:"right-container__price is-flex",children:[le&&le.checkbox&&b("div",{className:"is-flex is-align-items-center",children:b($f,{...le.checkbox})}),L("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[te&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[b("p",{className:"desc",children:te.description}),L("p",{className:"value",children:["$ ",te.value]})]}),G&&L("p",{className:"col-price__price",style:B&&B!=""?{color:B}:{color:"none"},children:["$",G]}),ie&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[b("p",{className:"desc",children:ie.description}),L("p",{className:"value",children:["$ ",ie.value]})]})]})]}),Q&&L("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:vt,children:[b("span",{className:"menu-button ",children:b($e,{...Q.button,onClick:()=>{lt(!We),Q.onEllipse&&Q.onEllipse()}})}),We&&Q.menuDropComponent&&b("div",{className:"menu-drop-component is-absolute",children:Q.menuDropComponent}),Q.select&&b("div",{className:"menu-select",style:We?{display:"block"}:{display:"none"},children:b(Wh,{...Q.select})})]}),me&&b("div",{className:"right-container__dropLeftButton is-flex",children:b($e,{...me})}),fe&&b("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:b($e,{...fe})}),De||ve||Ne?L("div",{className:"right-container__editCheckbox is-flex",children:[De&&b("div",{className:"buttonEdit is-flex is-align-items-center",children:b($e,{...De,onClick:()=>{En()}})}),ve&&b("div",{className:"_checkbox is-flex is-align-items-center",children:b($f,{...ve,onCheck:Ge=>{Ot(Ge),ke&&ke(Ge?{type:u,paddingLeft:l,isFather:s,show:r,initialState:p,childCollapse:f,disabled:g,colored:m,borderBottom:k,borderTop:_,title:N,stateTitle:R,titleWeight:P,titleIcon:$,description:K,badge:A,details:re,dateDays:se,dateTime:J,price:G,priceColor:B,priceTop:te,priceBottom:ie,priceLeft:le,buttonMenu:Q,buttonLink:fe,buttonDetail:pe,dropRightButton:me,buttonEdit:De}:{})}})}),Ne&&b("div",{className:"_radio is-flex is-align-items-center",children:b(Ug,{...Ne,onCheck:()=>{ke&&ke({type:u,paddingLeft:l,isFather:s,show:r,initialState:p,childCollapse:f,disabled:g,colored:m,borderBottom:k,borderTop:_,title:N,stateTitle:R,titleWeight:P,titleIcon:$,description:K,badge:A,details:re,dateDays:se,dateTime:J,price:G,priceColor:B,priceTop:te,priceBottom:ie,priceLeft:le,buttonMenu:Q,buttonLink:fe,buttonDetail:pe,dropRightButton:me,buttonEdit:De}),Ne.onCheck&&Ne.onCheck()}})})]}):b(rn,{})]})]}),f&&f.map(Ge=>b(E0,{...Ge,show:be},ar()))]}):b("div",{className:"",children:b(D0,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:te==null?void 0:te.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:ie==null?void 0:ie.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(Ge){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(Ge){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(Ge){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){je(!1),ft(!1)}},onSaveData:Ge=>{ot&&ot({aliquot:Ge.aliquot,calculatedtax:Ge.calculatedtax}),je(!1),ft(!1)},showAmountinEdit:Qe})})})},CL="";var T0={exports:{}};/*!
30
30
  Copyright (c) 2018 Jed Watson.
31
31
  Licensed under the MIT License (MIT), see
32
32
  http://jedwatson.github.io/classnames
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dgrcorrientes-modulos",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Un paquete de componentes minimizado",
5
5
  "main": "components.js",
6
6
  "module": "components.js",