dgrcorrientes-modulos 1.0.52 → 1.0.53

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
@@ -864,7 +864,7 @@ const CA = ({
864
864
  children: u
865
865
  }), /* @__PURE__ */ y("div", {
866
866
  className: "is-flex is-flex-direction-column is-gap-4",
867
- children: l == null ? void 0 : l.map((r) => /* @__PURE__ */ L("div", {
867
+ children: l == null ? void 0 : l.map((r, p) => /* @__PURE__ */ L("div", {
868
868
  className: "is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",
869
869
  children: [/* @__PURE__ */ y("div", {
870
870
  className: "has-text-grey-dark has-text-weight-medium",
@@ -882,7 +882,7 @@ const CA = ({
882
882
  children: r.state
883
883
  })
884
884
  })]
885
- }))
885
+ }, "assistancediary_option" + p))
886
886
  }), /* @__PURE__ */ y("div", {
887
887
  children: /* @__PURE__ */ y(Ae, {
888
888
  label: "Ver todo",
@@ -26,7 +26,7 @@ Check the render method of \``+Y+"`."}return""}}function wn(Y){{if(Y!==void 0){v
26
26
 
27
27
  Check your code at `+xe+":"+Le+"."}return""}}var Hr={};function gl(Y){{var xe=Ln();if(!xe){var Le=typeof Y=="string"?Y:Y.displayName||Y.name;Le&&(xe=`
28
28
 
29
- Check the top-level render call using <`+Le+">.")}return xe}}function Sa(Y,xe){{if(!Y._store||Y._store.validated||Y.key!=null)return;Y._store.validated=!0;var Le=gl(xe);if(Hr[Le])return;Hr[Le]=!0;var st="";Y&&Y._owner&&Y._owner!==mt.current&&(st=" It was passed a child from "+he(Y._owner.type)+"."),vn(Y),ce('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Le,st),vn(null)}}function wr(Y,xe){{if(typeof Y!="object")return;if(Array.isArray(Y))for(var Le=0;Le<Y.length;Le++){var st=Y[Le];dn(st)&&Sa(st,xe)}else if(dn(Y))Y._store&&(Y._store.validated=!0);else if(Y){var Lt=K(Y);if(typeof Lt=="function"&&Lt!==Y.entries)for(var ut=Lt.call(Y),Ut;!(Ut=ut.next()).done;)dn(Ut.value)&&Sa(Ut.value,xe)}}}function si(Y){{var xe=Y.type;if(xe==null||typeof xe=="string")return;var Le;if(typeof xe=="function")Le=xe.propTypes;else if(typeof xe=="object"&&(xe.$$typeof===S||xe.$$typeof===R))Le=xe.propTypes;else return;if(Le){var st=he(xe);un(Le,Y.props,"prop",st,Y)}else if(xe.PropTypes!==void 0&&!cn){cn=!0;var Lt=he(xe);ce("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Lt||"Unknown")}typeof xe.getDefaultProps=="function"&&!xe.getDefaultProps.isReactClassApproved&&ce("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(Y){{for(var xe=Object.keys(Y.props),Le=0;Le<xe.length;Le++){var st=xe[Le];if(st!=="children"&&st!=="key"){vn(Y),ce("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",st),vn(null);break}}Y.ref!==null&&(vn(Y),ce("Invalid attribute `ref` supplied to `React.Fragment`."),vn(null))}}function Lr(Y,xe,Le,st,Lt,ut){{var Ut=pe(Y);if(!Ut){var zt="";(Y===void 0||typeof Y=="object"&&Y!==null&&Object.keys(Y).length===0)&&(zt+=" 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(Lt);fn?zt+=fn:zt+=Ln();var tn;Y===null?tn="null":Array.isArray(Y)?tn="array":Y!==void 0&&Y.$$typeof===a?(tn="<"+(he(Y.type)||"Unknown")+" />",zt=" Did you accidentally export a JSX literal instead of a component?"):tn=typeof Y,ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tn,zt)}var pn=rt(Y,xe,Le,Lt,ut);if(pn==null)return pn;if(Ut){var ea=xe.children;if(ea!==void 0)if(st)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],Y);Object.freeze&&Object.freeze(ea)}else ce("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,Y)}return Y===s.Fragment?fa(pn):si(pn),pn}}function $r(Y,xe,Le){return Lr(Y,xe,Le,!0)}function Ha(Y,xe,Le){return Lr(Y,xe,Le,!1)}var Ur=Ha,Hi=$r;s.jsx=Ur,s.jsxs=Hi}()}(Lg)),Lg}(function(s){process.env.NODE_ENV==="production"?s.exports=tk():s.exports=nk()})(Wh);const Qt=Wh.exports.Fragment,y=Wh.exports.jsx,L=Wh.exports.jsxs,Ke=({icon:s,className:l,type:u,size:a="16px",size_height:r,color:p,onClick:f,...m})=>{const v=ae.useRef(null);ae.useEffect(()=>{u=="svg_icon"&&S(s).then(k=>{v.current&&s&&(v.current.innerHTML=k)})},[v.current,s]);function S(k){return fetch(k).then(N=>N.text())}return u==="svg_icon"?y("span",{className:`svg_icon ${l}`,ref:v,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...m}):y("div",{className:"elv-component elv-icon",...m,children:y("i",{className:`fa_icon ${s} ${l}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},Pe=({color:s="primary",type:l="button",size:u="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:m=!1,disabled:v=!1,icon:S,icon_type:k="fa_icon",icon_size:N,icon_size_height:R,icon_color:P,icon_className:F,trailingIcon:Z=!1,label:A,onClick:Q,className:ie,...J})=>{const G=W=>{W.stopPropagation(),Q&&Q()};return y("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...J,children:y("button",{type:l,className:["button",`${a==="solid"||a==="outline"?" is-"+s+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${u!=="normal"?" is-"+u:""}`,`${Z?" button__icon--trailing":""}`,`${m?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${ie?" "+ie:""}`].join(""),onClick:W=>{G(W)},disabled:v,children:y("div",{className:"button-content is-flex",children:Z?L(Qt,{children:[A,S&&y(Ke,{icon:S,type:k,color:P,size:N,size_height:R,className:"button__icon "+F})]}):L(Qt,{children:[S&&y(Ke,{icon:S,type:k,color:P,size:N,size_height:R,className:"button__icon "+F}),A]})})})})},lL="",rk=({type:s,className:l,fill:u,accent:a,icon:r,labelTitle:p,label:f,isButton:m,button:v,...S})=>y("div",{className:"elv-component elv-notification",...S,children:L("div",{className:`notification --type-${s} --fill-${u} --accent-${a} ${l||""}`,children:[r&&y("div",{className:"notification__icon",children:y("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p!==void 0&&y("p",{className:"__title",children:y("div",{dangerouslySetInnerHTML:{__html:p}})}),y("p",{className:"__label",children:y("div",{dangerouslySetInnerHTML:{__html:f}})}),m&&v!==void 0&&y("div",{className:"notification__button",children:y(Pe,{...v[0]})})]})]})}),sL="",yo=({color:s,className:l,text:u,colorText:a,...r})=>y("div",{className:"elv-component elv-badge",...r,children:y("span",{style:{backgroundColor:s,color:a},className:`badge badge--${s} ${l||""}`,children:u})}),uL="",k0=({color:s="primary",size:l="normal",max:u,value:a,className:r,...p})=>y("div",{className:"elv-component elv-progressbar",...p,children:y("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:y("progress",{className:[`progress progress--${l}`,`${" is-"+s}`].join(""),value:a,max:u})})}),cL="",ak=({title:s,option:l,onSeeAll:u,className:a})=>y("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:[y("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),y("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:[y("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),y("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),y("div",{className:"assistancediary__widthstate p-1",children:y("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]}))}),y("div",{children:y(Pe,{label:"Ver todo",fill:"unstyled",icon:"fa-solid fa-arrow-right",trailingIcon:!0,className:"is-size-7 has-text-weight-medium has-text-grey px-4 py-3",onClick:()=>u&&u()})})]})}),dL="",ik=({option:s,option2:l,option3:u,Call:a,className:r})=>{const[p,f]=ae.useState(0),[m,v]=ae.useState(0),[S,k]=ae.useState(0),[N,R]=ae.useState(null),[P,F]=ae.useState(null),[Z,A]=ae.useState(null),[Q,ie]=ae.useState(null);ae.useEffect(()=>{const re=new Date().getWeek(),pe=re-1,ye=a.filter(Rt=>Rt.date.getWeek()===re),De=a.filter(Rt=>Rt.date.getWeek()===pe);f(ye.length),v(De.length);const he=De.length!==0?(ye.length-De.length)/De.length:0,Ee=parseFloat(he.toFixed(2));k(Ee);const _e=a[a.length-1];if(_e){const Rt=new Date,we=_e.arrivalTime,Re=_e.serviceStartTime||we,Me=(Re||Rt).getTime()-we.getTime();R(Me/(1e3*60));const Je=Rt.getTime()-(Re||we).getTime(),Ve=Math.floor(Je/(1e3*60));F(Ve);const lt=K(ye),ht=K(De),Fe=W(lt,ht,ye.length,De.length);ie(Fe)}else R(null),F(null);const Ne=le(ye),ze=le(De),ct=ce(Ne,ze,ye.length,De.length);A(ct)},[a]),ae.useEffect(()=>{const $=setInterval(()=>{const re=a[a.length-1];if(re&&re.serviceStartTime){const ye=new Date().getTime()-re.serviceStartTime.getTime();F(ye/6e4)}else F(null)},1e3);return()=>clearInterval($)},[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";Z!==null&&`${Math.floor(Z/60)}${(Z%60).toFixed(0).padStart(2,"0")}`;const W=($,re,pe,ye)=>{const De=pe>0?pe:1,he=ye>0?ye:1,Ee=($/De-re/he)/(1e3*60);return parseFloat(Ee.toFixed(2))/100},K=$=>$.reduce((re,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const ye=new Date().getTime()-pe.serviceStartTime.getTime();return re+ye}return re},0),le=$=>$.reduce((re,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const ye=pe.serviceStartTime.getTime()-pe.arrivalTime.getTime();return re+ye}return re},0),ce=($,re,pe,ye)=>{const De=pe>0?pe:1,he=ye>0?ye:1,Ee=($/De-re/he)/(1e3*60);return parseFloat(Ee.toFixed(2))};return Date.prototype.getWeek=function(){var $=new Date(this.getTime());$.setHours(0,0,0,0),$.setDate($.getDate()+4-($.getDay()||7));var re=new Date($.getFullYear(),0,1),pe=Math.ceil((($.getTime()-re.getTime())/864e5+1)/7);return pe},y("div",{className:"elv-component elv-averageAttended",children:L("div",{className:["averageAttended box is-flex is-gap-4 is-justify-content-space-between",`${r?" "+r:""}`].join(""),children:[s==null?void 0:s.map(($,re)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[y("div",{children:y(Ke,{icon:$.icon,color:$.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:$.status}),y("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),L("div",{className:"is-flex is-align-items-center",children:[y(yo,{text:`${S<0?$.labelButtom:$.labelTop}${S.toString()}%`,color:$.color,colorText:`${S<0?$.colorText:$.colorTextPositive}`,className:"badge"}),y("p",{className:"ml-3 is-size-14px has-text-grey",children:$.description})]})]})]},"averageAttended__option"+re)),l==null?void 0:l.map(($,re)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[y("div",{children:y(Ke,{icon:$.icon,color:$.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:$.status}),G!==null&&y("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${G}${$.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[y(yo,{text:`${Z!==null&&Z<0?$.labelButtom:$.labelTop}${Z!==null&&Z.toFixed(1)}%`,color:$.color,colorText:Z!=null&&Z<0?$.colorText:$.colorTextPositive,className:"badge"}),y("p",{className:"ml-3 is-size-14px has-text-grey",children:$.description})]})]})]},"averageAttended__option2"+re)),u==null?void 0:u.map(($,re)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[y("div",{children:y(Ke,{icon:$.icon,color:$.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:$.status}),J!==null&&y("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${J}${$.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[y(yo,{text:`${Q!=null&&Q<0?$.labelButtom:$.labelTop}${Q!=null&&Q.toFixed(1)}%`,color:$.color,colorText:`${Q!=null&&Q<0?$.colorText:$.colorTextPositive}`,className:"badge"}),y("p",{className:"ml-3 is-size-14px has-text-grey",children:$.description})]})]})]},"averageAttended__option3"+re))]})})},fL="";function Pt(s,l){return s.length<l?s:s.slice(0,l)+"..."}function An(){return`${Math.random().toString(36).substr(2,9)}`}function D0(s){return s<1024?s+" bytes":s<1024*1024?(s/1024).toFixed(2)+" KB":s<1024*1024*1024?(s/(1024*1024)).toFixed(2)+" MB":(s/(1024*1024*1024)).toFixed(2)+" GB"}function ok(s){const l=s.split(".");switch(l[l.length-1].toLowerCase()){case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"svg":return"far fa-file-image";case"csv":return"fas fa-file-csv";case"pdf":return"fas fa-file-pdf";default:return"fas fa-file"}}const lk=({type:s,defaultActiveLabel:l,items:u,handleActive:a,className:r,...p})=>{const f=u.find(k=>k.label===l),[m,v]=ae.useState(f),S=k=>{v(k),a&&a(k),k.onClick&&k.onClick()};return y("div",{className:"elv-component elv-nav_bc",...p,children:y("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${s} ${r||""}`,children:y("ol",{className:"bc-list",children:u.map((k,N)=>L("li",{className:`bc-item ${k===m?"bc-item--active":""}`,children:[L("p",{className:"bc-item__bc-link",onClick:()=>{S(k)},children:[k.icon&&k.icon!==""&&y("i",{className:`${k.icon} item-icon ${k.label&&k.label!==""?"--and-label":""}`}),k.label&&k.label!==""&&Pt(k.label,25)]}),N<u.length-1&&y("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},k.label))})})})},pL="",sk=({img:s,title:l,icon:u,date:a,description:r,button:p,className:f,isBorderless:m,isClickable:v,onClick:S,...k})=>y("div",{className:"elv-component elv-card",...k,children:L("div",{className:["card card-cta",`${f?" "+f:""}`,`${v?" is-clickable":""}`,`${m?" is-shadowless":" card-box"}`].join(""),onClick:()=>{v&&S&&S()},children:[L("div",{className:"card-content",style:{flexGrow:1},children:[y("div",{className:"card-header",children:L("div",{className:"card__text",children:[y("p",{className:"title is-3",children:Pt(l,54)}),r&&y("p",{children:Pt(r,198)})]})}),L("div",{className:"card-footer",children:[L("div",{className:"card__date",children:[u&&y(Ke,{...u[0]}),y("span",{className:"date",children:a})]}),p&&y("div",{className:"card__button",children:y(Pe,{...p})})]})]}),y("div",{className:"card-image",children:y("img",{src:s,alt:""})})]})}),hL="",uk=({dataBig:s,bigNumber:l,bigMonth:u,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:m,className:v,isBorderless:S,isClickable:k,onClick:N,...R})=>y("div",{className:"elv-component elv-card",...R,children:y("div",{className:["card card-expiration",`${v?" "+v:""}`,`${k?" is-clickable":""}`,`${S?" is-shadowless":" card-box"}`].join(""),onClick:()=>{k&&N&&N()},children:L("div",{className:"card-expiration__content",children:[L("div",{className:"card_header",children:[s&&L("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[y("h1",{children:l}),y("h4",{children:u})]}),a&&L("div",{className:"date__small",children:[r&&y("div",{className:"card__icon",children:y("div",{className:"icon",children:r?y(Ke,{icon:r[0].icon,className:"icon"}):null})}),y("p",{className:"title is-5",children:p}),y("p",{className:"title is-3",children:f})]})]}),y("div",{className:"card-footer",children:y("div",{className:"data__expiration",children:y("div",{className:"list",children:m.map(P=>L("p",{className:"title is-6",children:[P.type,": ",y("span",{children:P.text})]},An()))})})})]})})}),vL="",ck=({image:s,img:l,badge:u,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:m,date:v,description:S,button:k,className:N,isClickable:R,isBorderless:P,onClick:F,...Z})=>y("div",{className:"elv-component elv-card",...Z,children:L("div",{className:["card card-vertical",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&F&&F()},children:[L("div",{className:"card-header",children:[s&&L("div",{className:"card__img",children:[y("img",{src:l,alt:""}),u&&y(yo,{...u[0]})]}),p&&y("div",{className:"card__icon",children:y("div",{className:"icon",children:m?y(Ke,{...m[0],className:"icon"}):null})}),a&&y("div",{className:"card__avatar",children:y("img",{src:r,alt:""})})]}),L("div",{className:"card-body",children:[y("div",{className:"card__title",children:y("p",{className:"title is-5",children:f})}),L("div",{className:"card__date",children:[m&&y(Ke,{...m[0],className:"icon"}),y("span",{className:"date",children:v})]}),y("div",{className:"card__description",children:y("p",{children:S})})]}),y("div",{className:"card-footer",children:y("div",{className:"card__button",children:y(Pe,{...k})})})]})}),mL="",dk=({fill:s,className:l,title:u,description:a,secondaryDescription:r,isClickable:p,onClick:f,...m})=>y("div",{className:"elv-component elv-card",...m,children:L("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${l||""}`].join(""),onClick:()=>{p&&f&&f()},children:[y("p",{className:"card-activity__title",children:u}),y("p",{className:"card-activity__description",children:a}),y("p",{className:"card-activity__secondaryDescription",children:r})]})}),gL="",fk=({iconLeft:s,icon:l,image:u,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:m,button:v,buttonsArray:S,buttons:k,className:N,isClickable:R,isBorderless:P,onClick:F,...Z})=>y("div",{className:"elv-component elv-card",...Z,children:L("div",{className:["card-horizontal",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&F&&F()},children:[L("div",{className:["card-header pb-0 ",`${l||u?`icon--${a?"trailing":"leading"}`:""}`,,].join(" "),children:[s&&(l||u)?y("div",{className:"card__icon",children:l?y(Ke,{...l[0]}):u?y("img",{src:u,alt:"Card-Image"}):null}):y(Qt,{}),L("div",{className:"card__text",children:[y("p",{className:"title is-6 mb-1",children:r}),y("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),f&&y("div",{className:"card__menu ml-auto",children:y(Pe,{...m})})]}),L("div",{className:"card-body px-4 pb-4 pt-0",children:[v&&y(Pe,{...v}),S&&y("div",{children:k==null?void 0:k.map((A,Q)=>y(Pe,{...A},An()))})]})]})}),yL="",pk=({fill:s,list:l,badge:u,button:a,className:r,isClickable:p,onClick:f,...m})=>y("div",{className:"elv-component elv-card",...m,children:L("div",{className:[`card card-user ${s==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[y("div",{className:"card-body",children:l.map((v,S)=>{var k;return L("div",{className:"list-item",children:[v.iconType=="img"?y(Qt,{children:v.img&&y("div",{className:"list-item__img",children:y("img",{src:v.img,className:"img-p"},S)})}):y(Qt,{children:v.icon&&y("div",{className:"list-item__img",children:y(Ke,{className:"img-p",...v.icon},S)})}),L("div",{className:"list-item__text",children:[y("p",{className:"text__subtitle",children:v.title}),y("p",{className:"text__title",children:v.subtitle})]}),v.button&&y("div",{className:"list-item__button left",children:(k=v==null?void 0:v.button)==null?void 0:k.map(N=>y(Pe,{...N}))}),v.menuButton&&y("div",{className:"list-item__menu",children:y(Pe,{...v.menuButton})})]},S)})}),u||a?L("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[u&&y(Qt,{children:a?y("div",{className:"card-footer__badges card-footer__badges--button",children:u==null?void 0:u.map((v,S)=>y(yo,{...v},S))}):y("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${u.length*100<400?u.length*100:400}px`},children:u.map((v,S)=>y(yo,{...v},S))})}),a==null?void 0:a.map((v,S)=>y(Pe,{...v,className:"px-6"}))]}):y(Qt,{})]})}),wL="",hk=({button:s,title:l,optionButton:u,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:m,footerType:v,interLabel:S,isInterLabelCenter:k,list:N,total:R,className:P,...F})=>y("div",{className:"elv-component elv-cart",...F,children:L("div",{className:`cart ${P||""}`,children:[r==="icon"&&y("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?y(Ke,{type:"svg_icon",icon:f}):y(Ke,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&y("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:u&&y(Pe,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Pt(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})}),L("div",{className:"cart__content",children:[m==="perception"&&L("div",{className:"perception is-flex is-flex-direction-column",children:[L("div",{className:"perception__title is-flex is-justify-content-space-between",children:[y("p",{className:"title is-5",children:l}),u&&y(Pe,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Pt(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})]}),y("div",{className:"perception__labels",children:N==null?void 0:N.map(Z=>L("div",{className:"item is-flex is-justify-content-space-between",children:[y("p",{className:"item__label",children:Z.label}),y("p",{className:"item__value",children:Z.value})]},An()))}),a&&y("div",{className:"perception__sub-list",children:a==null?void 0:a.map(Z=>L("div",{className:"item is-flex is-justify-content-space-between",style:{color:Z.color},children:[y("p",{className:"item__label",children:Z.label}),y("p",{className:"item__value",children:Z.value})]},An()))}),L("div",{className:"perception__total is-flex is-justify-content-space-between",children:[y("p",{className:"total-label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:R==null?void 0:R.label}),y("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})]})]}),m==="bonds"&&y("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:[y("p",{className:"micro-label is-4",children:N[0].label}),y("p",{className:"micro-sub_label",children:N[0].sub_label})]}),y("p",{className:"item__value",children:N[0].value})]}),y("div",{className:`inter-label is-flex ${k?"is-justify-content-center":""}`,children:y("p",{children:S})}),L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[y("p",{className:"micro-label",children:N[1].label}),y("p",{className:"micro-sub_label",children:N[1].sub_label})]}),y("p",{className:"item__value",children:N[1].value})]})]})}),v==="button"&&y("div",{className:"footer--button",children:s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&y(Pe,{...s[0]}),s[1]&&y(Pe,{...s[1]})]})}),v==="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:[y("p",{className:"total__label",children:Pt(R.label,25)}),y("p",{className:"total__value",children:Pt(R.values[0].value,25)})]}),s&&y(Pe,{...s[0]})]}),v==="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(Qt,{children:[y("p",{className:"total__label",children:Pt(R.label,25)}),y("p",{className:"total__value",children:Pt(R.values[0].value,25)})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&y(Pe,{...s[0]}),s[1]&&y(Pe,{...s[1]})]})]}),v==="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(Qt,{children:[y("p",{className:"total__label",children:Pt(R.label,35)}),R.sub_label&&y("p",{className:"total__sub_label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:Pt(R.sub_label,35)}),R.values[0].sub_value&&y("p",{className:"total__sub_value",style:R!=null&&R.values[0].value_color?{color:R.values[0].value_color}:{},children:Pt(R.values[0].sub_value,35)}),R.values.map(Z=>L(Qt,{children:[Z.sub_desc&&y("p",{className:"total__sub_desc",style:Z.sub_desc_color?{color:Z.sub_desc_color}:{},children:Pt(Z.sub_desc,35)},An()),y("p",{className:"total__value",style:Z.value_color?{color:Z.value_color}:{},children:Pt(Z.value,35)})]})),R.value_description&&y("p",{className:"total__description",children:R.value_description})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&y(Pe,{...s[0]}),s[1]&&y(Pe,{...s[1]})]})]}),v==="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:[y("p",{className:"total__label",children:Pt(R.label,18)}),R.sub_label&&y("p",{className:"total__sub_label",children:Pt(R.sub_label,50)}),R.values[0].sub_value&&y("p",{className:"total__sub_value",children:Pt(R.values[0].sub_value,21)}),y("p",{className:"total__value",children:Pt(R.values[0].value,16)})]}),s&&y(Pe,{...s[0]})]})]})]})}),bL="",CL="",xL="",$f=({size:s="md",label:l="checkbox",value:u,name:a,className:r,key:p,defaultChecked:f,checked:m,error:v,disabled:S=!1,onCheck:k,onChange:N,...R})=>{const[P,F]=ae.useState(f||!1),Z=A=>{F(!P),k&&k(!P),N&&N(A)};return y("div",{className:"elv-component elv-checkbox elv-control",...R,children:L("label",{className:["e-control e-checkbox",` e-control--${s} e-checkbox--${s}`,`${v?" e-control--error e-checkbox--error":""}`,`${S?" 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:[y("input",{type:"checkbox",onChange:A=>{Z(A)},defaultChecked:f,id:u,value:u,name:a,checked:m,className:["e-control__input e-checkbox__input"].join(""),disabled:S}),l&&y("span",{className:"label-text is-flex is-align-items-center",children:l}),y("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},SL="",Ug=({contentType:s,trianglePos:l,className:u,active:a,text:r,date:p,sub_title:f,principal_item:m,sections:v,total:S,amount:k,notification:N,doubleStates:R,tripleStates:P,alert:F,...Z})=>{var A,Q,ie,J,G,W,K,le,ce,$,re,pe,ye,De,he,Ee,_e,Ne,ze,ct,Rt,we,Re,Me,Je,Ve,lt,ht,Fe,He;return y(Qt,{children:a?y("div",{className:"elv-component elv-tooltip",...Z,children:y("div",{className:`tooltip ${u||""}`,children:y("div",{className:`tooltip__content ${s&&"tooltip__content--"+s} ${l!=="none"&&"tp tp--"+l}`,children:L("div",{className:"labels is-flex flex-column",children:[s==="calendar"&&L(Qt,{children:[y("p",{className:"labels__date",children:p}),y("p",{className:"labels__text",children:r}),y("p",{className:"labels__sub_title",children:f})]}),s==="text"&&y(Qt,{children:r&&y("p",{className:"labels__text",children:r})}),s==="taxes"&&L(Qt,{children:[m&&L("div",{className:"principal-item is-flex is-justify-content-space-between",children:[y("p",{className:"principal-item__label",children:m==null?void 0:m.label}),y("p",{className:"principal-item__value",children:m==null?void 0:m.value})]}),v&&y("div",{className:"tax-sections",children:v==null?void 0:v.map(ft=>L("div",{className:"tax-sections__sec",children:[ft.title&&y("div",{className:"sec-title",children:ft.title}),ft.labels.map(Tt=>L("div",{className:"sec-label is-flex is-justify-content-space-between",children:[y("p",{className:"sec-label__label",children:Tt.label}),y("p",{className:"sec-label__value",children:Tt.value})]},Tt.label))]},ft.title))}),S&&L("div",{className:"total is-flex is-justify-content-space-between",children:[y("p",{className:"total__label",children:S==null?void 0:S.label}),y("p",{className:"total__value",children:S==null?void 0:S.value})]}),k&&L("div",{className:"amount is-flex is-justify-content-space-between",children:[y("p",{className:"amount__label",children:k==null?void 0:k.label}),y("p",{className:"amount__value",children:k==null?void 0:k.value})]}),N&&y("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:[y("p",{className:"state-label",children:(A=R[0])==null?void 0:A.label}),R[0].type==="state"?L("div",{className:"state-status",style:{color:(Q=R[0])==null?void 0:Q.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(ie=R[0])==null?void 0:ie.sub_label_color},children:(J=R[0])==null?void 0:J.sub_label})]}):y("p",{className:"state-sub_label",style:{color:(G=R[0])==null?void 0:G.sub_label_color},children:(W=R[0])==null?void 0:W.sub_label})]}),L("div",{className:"double-state__state column is-6",children:[y("p",{className:"state-label",children:(K=R[1])==null?void 0:K.label}),R[1].type==="state"?L("div",{className:"state-status",style:{color:(le=R[1])==null?void 0:le.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(ce=R[1])==null?void 0:ce.sub_label_color},children:($=R[1])==null?void 0:$.sub_label})]}):y("p",{className:"state-sub_label",style:{color:(re=R[1])==null?void 0:re.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:[y("p",{className:"state-label",children:(ye=P[0])==null?void 0:ye.label}),P[0].type==="state"?L("div",{className:"state-status",style:{color:(De=P[0])==null?void 0:De.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(he=P[0])==null?void 0:he.sub_label_color},children:(Ee=P[0])==null?void 0:Ee.sub_label})]}):y("p",{className:"state-sub_label",style:{color:(_e=P[0])==null?void 0:_e.sub_label_color},children:(Ne=P[0])==null?void 0:Ne.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[y("p",{className:"state-label",children:(ze=P[1])==null?void 0:ze.label}),P[1].type==="state"?L("div",{className:"state-status",style:{color:(ct=P[1])==null?void 0:ct.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(Rt=P[1])==null?void 0:Rt.sub_label_color},children:(we=P[1])==null?void 0:we.sub_label})]}):y("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:[y("p",{className:"state-label",children:(Je=P[2])==null?void 0:Je.label}),P[2].type==="state"?L("div",{className:"state-status",style:{color:(Ve=P[2])==null?void 0:Ve.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("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})]}):y("p",{className:"state-sub_label",style:{color:(Fe=P[2])==null?void 0:Fe.sub_label_color},children:(He=P[2])==null?void 0:He.sub_label})]})]}),F&&L("div",{className:"tax-alert is-flex",children:[(F==null?void 0:F.icon)&&y(Ke,{icon:F==null?void 0:F.icon}),y("p",{className:"tax-alert__label",children:F==null?void 0:F.label})]})]})]})})})}):y(Qt,{})})},_L="",jg=({size:s="md",disabled:l=!1,label:u="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:m,className:v,...S})=>{const k=ae.useRef(null),N=()=>{k.current&&k.current.checked&&f&&f()};return y("div",{className:"elv-component elv-radio elv-control",...S,children:L("label",{className:["e-control e-radio",` e-control--${s} e-radio--${s}`,`${m?" e-control--error e-radio--error":""}`,`${l?" e-control--disabled e-radio--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${v?" "+v:""}`].join(""),children:[y("input",{type:"radio",defaultChecked:p,id:r,name:a,value:r,className:["e-control__input e-radio__input","m-0","is-clickable"].join(""),onChange:()=>{N()},disabled:l,ref:k}),u&&y("span",{className:"label-text is-flex is-align-items-center",children:u}),y("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},kL="",Yf=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:v=30,onChangeSelect:S,className:k,...N})=>{const[R,P]=ae.useState(""),[F,Z]=ae.useState(a||""),[A,Q]=ae.useState(!1);ae.useEffect(()=>{if(f&&p){const W=p.find(K=>K.value===f);W&&(P(W.value),Z(W.label))}},[f,p]);function ie(){return W=>{Q(!1)}}function J(){return W=>{Q(!A)}}function G(W,K){return le=>{S&&S(W),P(W),Z(K),Q(!1)}}return y("div",{className:"elv-component elv-select",style:{minWidth:m},...N,children:L("div",{className:`select-container ${k||""}`,onMouseLeave:ie(),children:[y("div",{className:["select-container__select",`select--${l}`,`select--${s}`,`${r?"select--error":""} ${u?"select--disabled":""}`,,].join(" "),onClick:J(),children:f!==void 0||!f?F&&y("span",{children:Pt(F,v)}):y("span",{children:Pt(a||"",v)})}),y("div",{className:`select-container__dropdown select--${s} ${A?"select-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${R==a?"list__item--active":""}`,onClick:()=>G("",a),children:Pt(a,v)}),p==null?void 0:p.map((W,K)=>L("li",{className:"list__item",onClick:G(W.value,W.label),children:[W.icon&&y("i",{className:`item__icon ${W.icon}`}),Pt(W.label,v)]},K))]})})]})})},DL="",EL="",Bh=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:v,maxLength:S,iconLeft:k,iconRight:N,isRounded:R,isLoading:P,isDisabled:F,hasError:Z,className:A,onChangeInput:Q,onSearch:ie,...J})=>{const G=ae.useRef(null),W=le=>{le.key==="Enter"&&K()},K=()=>{var ce;const le=(ce=G.current)==null?void 0:ce.value;ie&&ie(le||"")};return y("div",{className:"elv-component elv-input",...J,children:y("div",{className:`field e-input ${A||""}`,children:L("p",{className:["control",`${k?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${P?" is-loading":""}`].join(""),children:[y("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${R?" is-rounded":""}`,`${Z?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:le=>{Q&&Q(le)},defaultValue:f,value:m,ref:G,disabled:F,onKeyDown:W,autoComplete:v,maxLength:S}),k&&y("span",{className:`icon is-left ${"is-"+r}`,children:y(Ke,{...k})}),N&&y("span",{className:`icon is-right ${"is-"+r}`,children:y(Ke,{...N})})]})})})},E0=({labelDescription:s,checkbox:l,input:u,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:m,priceBottomEdit:v,onCantidadChange:S,onSaveData:k,showAmountinEdit:N,calculateOnChangeCant:R,calculateOnChangeTax:P,exento:F,disabledInputTax:Z,visibleBtnRecalculate:A,visibleBtnCancelar:Q,visibleBtnGuardar:ie,...J})=>{const[G,W]=ae.useState(Number(u==null?void 0:u.defaultValue)||1),[K,le]=ae.useState(0),[ce,$]=ae.useState(F),[re,pe]=ae.useState(m==null?void 0:m.labelNumberI),ye=()=>{$(!ce)},De=()=>{ce||(N?k&&k({calculatedtax:G&&K&&(v==null?void 0:v.labelNumberA)?G*K*(v==null?void 0:v.labelNumberA)/100:0,aliquot:v!=null&&v.labelNumberA?v.labelNumberA:0}):k&&k({calculatedtax:K&&(v==null?void 0:v.labelNumberA)?K*(v==null?void 0:v.labelNumberA)/100:0,aliquot:v!=null&&v.labelNumberA?v.labelNumberA:0}))},he=(ze,ct)=>{if(ce)return;const Rt=v!=null&&v.labelNumberA?v.labelNumberA:0;if(N){const we=ze&&ct&&(v==null?void 0:v.labelNumberA)?parseFloat((ze*ct*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:we,aliquot:Rt})}else{const we=ct&&(v==null?void 0:v.labelNumberA)?parseFloat((ct*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:we,aliquot:Rt})}},Ee=()=>{!ce||pe(N?G&&K&&(v==null?void 0:v.labelNumberA)?parseFloat((G*K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0:K&&(v==null?void 0:v.labelNumberA)?parseFloat((K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0)},_e=ze=>{ce||(W(parseFloat(ze.toFixed(2))),pe(N?ze&&K&&(v==null?void 0:v.labelNumberA)?parseFloat((ze*K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0:K&&(v==null?void 0:v.labelNumberA)?parseFloat((K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0),R&&he(ze,K))},Ne=ze=>{ce||(le(parseFloat(ze.toFixed(2))),pe(N?G&&ze&&(v==null?void 0:v.labelNumberA)?parseFloat((G*ze*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0:ze&&(v==null?void 0:v.labelNumberA)?parseFloat((ze*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0),P&&he(G,ze))};return y("div",{className:"elv-component elv-collapsedit",...J,children:y("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:[y("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:s}),y("div",{className:"collapsedit__check is-size-14px",children:l&&y($f,{...l,defaultChecked:F,onCheck:ye,className:""})})]}),y("div",{className:"collapsedit__input",children:N&&y(Qt,{children:u&&L("div",{children:[y("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),y(Bh,{...u,className:"",onChangeInput:ze=>_e(Number(ze.target.value))})]})})})]}),y("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&L("div",{children:[y("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),y(Bh,{...a,isDisabled:Z,onChangeInput:ze=>Ne(Number(ze.target.value))})]})})]}),L("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[v&&L("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[y("div",{className:"is-size-10px has-text-grey-light",children:v.labelAliquot}),L("div",{className:"is-size-14px has-text-grey-dark",children:[v.labelNumberA,"%"]})]}),m&&L("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[y("div",{className:"is-size-10px has-text-grey-light",children:m.labelImpost}),L("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",re]})]})]})]}),L("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[y("div",{className:"",children:r&&A&&y(Pe,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{Ee()}})}),L("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[y("div",{className:"button-cancel ml-4",children:p&&Q&&y(Pe,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),y("div",{className:"button-save",children:ie&&y(Pe,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{De()}})})]})]})]})})})},T0=({type:s,paddingLeft:l,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:v,borderBottom:S,borderTop:k,title:N,stateTitle:R,titleWeight:P,titleIcon:F,description:Z,badge:A,details:Q,dateDays:ie,dateTime:J,price:G,priceColor:W,priceTop:K,priceBottom:le,priceLeft:ce,buttonMenu:$,buttonLink:re,buttonDetail:pe,dropRightButton:ye,buttonEdit:De,checkbox:he,collapseEdit:Ee,callBackCheckbox:_e,radio:Ne,onSaveData:ze,showAmountinEdit:ct,...Rt})=>{const[we,Re]=ae.useState(p),[Me,Je]=ae.useState(!1),[Ve,lt]=ae.useState(!1),[ht,Fe]=ae.useState(!1),[He,ft]=ae.useState(m);ae.useState(G);const[Tt,Nt]=ae.useState(!1),kn=()=>{Re(!we)},En=()=>{Fe(!ht),ft(!He)},vt=ae.useRef(null);ae.useEffect(()=>{function Xe(Yt){vt.current&&!vt.current.contains(Yt.target)&&lt(!1)}return document.addEventListener("click",Xe),()=>{document.removeEventListener("click",Xe)}},[vt]);const $t=ae.useRef(null);return ae.useEffect(()=>{function Xe(Yt){$t.current&&!$t.current.contains(Yt.target)&&Je(!1)}return document.addEventListener("click",Xe),()=>{document.removeEventListener("click",Xe)}},[$t]),y("div",{className:`elv-component elv-collapse ${a||""}`,...Rt,children:!ht&&!He?L("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${v?" e-collapse--colored-gray":""}`,`${k?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[L("div",{className:`e-collapse__container ${"e-collapse__container--"+s} ${l&&l==="short"?"e-collapse__container--"+s+"--short":"e-collapse__container--"+s+"--long"} ${m?"e-collapse__container--disabled":""} ${S?"e-collapse__container--borderBottom":""} ${N&&!Z&&!Q?"e-collapse__container--"+s+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[L("div",{className:"left-container is-flex",style:{cursor:u&&!m?"pointer":"auto"},onClick:()=>{u&&!m&&kn()},children:[u&&y("div",{className:"left-container__dropIcon",style:R&&{paddingTop:"28px"},children:y(Ke,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${we&&"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:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-title__text",children:R==null?void 0:R.label})]}),L("div",{className:"title-container is-flex is-align-items-center",children:[F&&y(Ke,{...F}),A&&y(yo,{...A}),N&&y("p",{className:`title-container__title title-container__title${P&&P=="regular"?"--regular":"--semibold"}`,children:N})]}),Z&&y("p",{className:"description",children:Z}),Q&&y("p",{className:"details",children:Q}),(ie||J)&&L("div",{className:"date is-flex",children:[ie&&L("span",{className:"date__days is-flex is-align-items-center",children:[y(Ke,{icon:"fa-solid fa-calendar-days"}),y("p",{children:ie})]}),J&&L("span",{className:"date__time is-flex is-align-items-center",children:[y(Ke,{icon:"fa-solid fa-clock"}),y("p",{children:J})]})]})]})]}),L("div",{className:"right-container is-flex is-align-items-center",children:[pe&&L("span",{className:"right-container__buttonDetail",ref:$t,children:[y(Pe,{...pe.button,onClick:()=>{Je(!Me),pe.button.onClick&&pe.button.onClick()}}),pe.tooltip?y("div",{className:`detail-tooltip ${pe.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:y(Ug,{...pe.tooltip,active:Me})}):y(Qt,{})]}),L("div",{className:"right-container__price is-flex",children:[ce&&ce.checkbox&&y("div",{className:"is-flex is-align-items-center",children:y($f,{...ce.checkbox})}),L("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[K&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[y("p",{className:"desc",children:K.description}),L("p",{className:"value",children:["$ ",K.value]})]}),G&&L("p",{className:"col-price__price",style:W&&W!=""?{color:W}:{color:"none"},children:["$",G]}),le&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[y("p",{className:"desc",children:le.description}),L("p",{className:"value",children:["$ ",le.value]})]})]})]}),$&&L("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:vt,children:[y("span",{className:"menu-button ",children:y(Pe,{...$.button,onClick:()=>{lt(!Ve),$.onEllipse&&$.onEllipse()}})}),Ve&&$.menuDropComponent&&y("div",{className:"menu-drop-component is-absolute",children:$.menuDropComponent}),$.select&&y("div",{className:"menu-select",style:Ve?{display:"block"}:{display:"none"},children:y(Yf,{...$.select})})]}),ye&&y("div",{className:"right-container__dropLeftButton is-flex",children:y(Pe,{...ye})}),re&&y("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:y(Pe,{...re})}),De||he||Ne?L("div",{className:"right-container__editCheckbox is-flex",children:[De&&y("div",{className:"buttonEdit is-flex is-align-items-center",children:y(Pe,{...De,onClick:()=>{En()}})}),he&&y("div",{className:"_checkbox is-flex is-align-items-center",children:y($f,{...he,onCheck:Xe=>{Nt(Xe),_e&&_e(Xe?{type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:v,borderBottom:S,borderTop:k,title:N,stateTitle:R,titleWeight:P,titleIcon:F,description:Z,badge:A,details:Q,dateDays:ie,dateTime:J,price:G,priceColor:W,priceTop:K,priceBottom:le,priceLeft:ce,buttonMenu:$,buttonLink:re,buttonDetail:pe,dropRightButton:ye,buttonEdit:De}:{})}})}),Ne&&y("div",{className:"_radio is-flex is-align-items-center",children:y(jg,{...Ne,onCheck:()=>{_e&&_e({type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:v,borderBottom:S,borderTop:k,title:N,stateTitle:R,titleWeight:P,titleIcon:F,description:Z,badge:A,details:Q,dateDays:ie,dateTime:J,price:G,priceColor:W,priceTop:K,priceBottom:le,priceLeft:ce,buttonMenu:$,buttonLink:re,buttonDetail:pe,dropRightButton:ye,buttonEdit:De}),Ne.onCheck&&Ne.onCheck()}})})]}):y(Qt,{})]})]}),f&&f.map(Xe=>y(T0,{...Xe,show:we},An()))]}):y("div",{className:"",children:y(E0,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:K==null?void 0:K.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:le==null?void 0:le.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(Xe){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(Xe){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(Xe){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){Fe(!1),ft(!1)}},onSaveData:Xe=>{ze&&ze({aliquot:Xe.aliquot,calculatedtax:Xe.calculatedtax}),Fe(!1),ft(!1)},showAmountinEdit:ct})})})},TL="";var N0={exports:{}};/*!
29
+ Check the top-level render call using <`+Le+">.")}return xe}}function Sa(Y,xe){{if(!Y._store||Y._store.validated||Y.key!=null)return;Y._store.validated=!0;var Le=gl(xe);if(Hr[Le])return;Hr[Le]=!0;var st="";Y&&Y._owner&&Y._owner!==mt.current&&(st=" It was passed a child from "+he(Y._owner.type)+"."),vn(Y),ce('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Le,st),vn(null)}}function wr(Y,xe){{if(typeof Y!="object")return;if(Array.isArray(Y))for(var Le=0;Le<Y.length;Le++){var st=Y[Le];dn(st)&&Sa(st,xe)}else if(dn(Y))Y._store&&(Y._store.validated=!0);else if(Y){var Lt=K(Y);if(typeof Lt=="function"&&Lt!==Y.entries)for(var ut=Lt.call(Y),Ut;!(Ut=ut.next()).done;)dn(Ut.value)&&Sa(Ut.value,xe)}}}function si(Y){{var xe=Y.type;if(xe==null||typeof xe=="string")return;var Le;if(typeof xe=="function")Le=xe.propTypes;else if(typeof xe=="object"&&(xe.$$typeof===S||xe.$$typeof===R))Le=xe.propTypes;else return;if(Le){var st=he(xe);un(Le,Y.props,"prop",st,Y)}else if(xe.PropTypes!==void 0&&!cn){cn=!0;var Lt=he(xe);ce("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Lt||"Unknown")}typeof xe.getDefaultProps=="function"&&!xe.getDefaultProps.isReactClassApproved&&ce("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(Y){{for(var xe=Object.keys(Y.props),Le=0;Le<xe.length;Le++){var st=xe[Le];if(st!=="children"&&st!=="key"){vn(Y),ce("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",st),vn(null);break}}Y.ref!==null&&(vn(Y),ce("Invalid attribute `ref` supplied to `React.Fragment`."),vn(null))}}function Lr(Y,xe,Le,st,Lt,ut){{var Ut=pe(Y);if(!Ut){var zt="";(Y===void 0||typeof Y=="object"&&Y!==null&&Object.keys(Y).length===0)&&(zt+=" 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(Lt);fn?zt+=fn:zt+=Ln();var tn;Y===null?tn="null":Array.isArray(Y)?tn="array":Y!==void 0&&Y.$$typeof===a?(tn="<"+(he(Y.type)||"Unknown")+" />",zt=" Did you accidentally export a JSX literal instead of a component?"):tn=typeof Y,ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tn,zt)}var pn=rt(Y,xe,Le,Lt,ut);if(pn==null)return pn;if(Ut){var ea=xe.children;if(ea!==void 0)if(st)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],Y);Object.freeze&&Object.freeze(ea)}else ce("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,Y)}return Y===s.Fragment?fa(pn):si(pn),pn}}function $r(Y,xe,Le){return Lr(Y,xe,Le,!0)}function Ha(Y,xe,Le){return Lr(Y,xe,Le,!1)}var Ur=Ha,Hi=$r;s.jsx=Ur,s.jsxs=Hi}()}(Lg)),Lg}(function(s){process.env.NODE_ENV==="production"?s.exports=tk():s.exports=nk()})(Wh);const Qt=Wh.exports.Fragment,y=Wh.exports.jsx,L=Wh.exports.jsxs,Ke=({icon:s,className:l,type:u,size:a="16px",size_height:r,color:p,onClick:f,...m})=>{const v=ae.useRef(null);ae.useEffect(()=>{u=="svg_icon"&&S(s).then(k=>{v.current&&s&&(v.current.innerHTML=k)})},[v.current,s]);function S(k){return fetch(k).then(N=>N.text())}return u==="svg_icon"?y("span",{className:`svg_icon ${l}`,ref:v,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...m}):y("div",{className:"elv-component elv-icon",...m,children:y("i",{className:`fa_icon ${s} ${l}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},Pe=({color:s="primary",type:l="button",size:u="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:m=!1,disabled:v=!1,icon:S,icon_type:k="fa_icon",icon_size:N,icon_size_height:R,icon_color:P,icon_className:F,trailingIcon:Z=!1,label:A,onClick:Q,className:ie,...J})=>{const G=W=>{W.stopPropagation(),Q&&Q()};return y("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...J,children:y("button",{type:l,className:["button",`${a==="solid"||a==="outline"?" is-"+s+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${u!=="normal"?" is-"+u:""}`,`${Z?" button__icon--trailing":""}`,`${m?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${ie?" "+ie:""}`].join(""),onClick:W=>{G(W)},disabled:v,children:y("div",{className:"button-content is-flex",children:Z?L(Qt,{children:[A,S&&y(Ke,{icon:S,type:k,color:P,size:N,size_height:R,className:"button__icon "+F})]}):L(Qt,{children:[S&&y(Ke,{icon:S,type:k,color:P,size:N,size_height:R,className:"button__icon "+F}),A]})})})})},lL="",rk=({type:s,className:l,fill:u,accent:a,icon:r,labelTitle:p,label:f,isButton:m,button:v,...S})=>y("div",{className:"elv-component elv-notification",...S,children:L("div",{className:`notification --type-${s} --fill-${u} --accent-${a} ${l||""}`,children:[r&&y("div",{className:"notification__icon",children:y("i",{className:`__icon ${r}`})}),L("div",{className:"notification__text",children:[p!==void 0&&y("p",{className:"__title",children:y("div",{dangerouslySetInnerHTML:{__html:p}})}),y("p",{className:"__label",children:y("div",{dangerouslySetInnerHTML:{__html:f}})}),m&&v!==void 0&&y("div",{className:"notification__button",children:y(Pe,{...v[0]})})]})]})}),sL="",yo=({color:s,className:l,text:u,colorText:a,...r})=>y("div",{className:"elv-component elv-badge",...r,children:y("span",{style:{backgroundColor:s,color:a},className:`badge badge--${s} ${l||""}`,children:u})}),uL="",k0=({color:s="primary",size:l="normal",max:u,value:a,className:r,...p})=>y("div",{className:"elv-component elv-progressbar",...p,children:y("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:y("progress",{className:[`progress progress--${l}`,`${" is-"+s}`].join(""),value:a,max:u})})}),cL="",ak=({title:s,option:l,onSeeAll:u,className:a})=>y("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:[y("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:s}),y("div",{className:"is-flex is-flex-direction-column is-gap-4",children:l==null?void 0:l.map((r,p)=>L("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[y("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),y("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),y("div",{className:"assistancediary__widthstate p-1",children:y("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]},"assistancediary_option"+p))}),y("div",{children:y(Pe,{label:"Ver todo",fill:"unstyled",icon:"fa-solid fa-arrow-right",trailingIcon:!0,className:"is-size-7 has-text-weight-medium has-text-grey px-4 py-3",onClick:()=>u&&u()})})]})}),dL="",ik=({option:s,option2:l,option3:u,Call:a,className:r})=>{const[p,f]=ae.useState(0),[m,v]=ae.useState(0),[S,k]=ae.useState(0),[N,R]=ae.useState(null),[P,F]=ae.useState(null),[Z,A]=ae.useState(null),[Q,ie]=ae.useState(null);ae.useEffect(()=>{const re=new Date().getWeek(),pe=re-1,ye=a.filter(Rt=>Rt.date.getWeek()===re),De=a.filter(Rt=>Rt.date.getWeek()===pe);f(ye.length),v(De.length);const he=De.length!==0?(ye.length-De.length)/De.length:0,Ee=parseFloat(he.toFixed(2));k(Ee);const _e=a[a.length-1];if(_e){const Rt=new Date,we=_e.arrivalTime,Re=_e.serviceStartTime||we,Me=(Re||Rt).getTime()-we.getTime();R(Me/(1e3*60));const Je=Rt.getTime()-(Re||we).getTime(),Ve=Math.floor(Je/(1e3*60));F(Ve);const lt=K(ye),ht=K(De),Fe=W(lt,ht,ye.length,De.length);ie(Fe)}else R(null),F(null);const Ne=le(ye),ze=le(De),ct=ce(Ne,ze,ye.length,De.length);A(ct)},[a]),ae.useEffect(()=>{const $=setInterval(()=>{const re=a[a.length-1];if(re&&re.serviceStartTime){const ye=new Date().getTime()-re.serviceStartTime.getTime();F(ye/6e4)}else F(null)},1e3);return()=>clearInterval($)},[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";Z!==null&&`${Math.floor(Z/60)}${(Z%60).toFixed(0).padStart(2,"0")}`;const W=($,re,pe,ye)=>{const De=pe>0?pe:1,he=ye>0?ye:1,Ee=($/De-re/he)/(1e3*60);return parseFloat(Ee.toFixed(2))/100},K=$=>$.reduce((re,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const ye=new Date().getTime()-pe.serviceStartTime.getTime();return re+ye}return re},0),le=$=>$.reduce((re,pe)=>{if(pe.serviceStartTime&&pe.arrivalTime){const ye=pe.serviceStartTime.getTime()-pe.arrivalTime.getTime();return re+ye}return re},0),ce=($,re,pe,ye)=>{const De=pe>0?pe:1,he=ye>0?ye:1,Ee=($/De-re/he)/(1e3*60);return parseFloat(Ee.toFixed(2))};return Date.prototype.getWeek=function(){var $=new Date(this.getTime());$.setHours(0,0,0,0),$.setDate($.getDate()+4-($.getDay()||7));var re=new Date($.getFullYear(),0,1),pe=Math.ceil((($.getTime()-re.getTime())/864e5+1)/7);return pe},y("div",{className:"elv-component elv-averageAttended",children:L("div",{className:["averageAttended box is-flex is-gap-4 is-justify-content-space-between",`${r?" "+r:""}`].join(""),children:[s==null?void 0:s.map(($,re)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[y("div",{children:y(Ke,{icon:$.icon,color:$.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:$.status}),y("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),L("div",{className:"is-flex is-align-items-center",children:[y(yo,{text:`${S<0?$.labelButtom:$.labelTop}${S.toString()}%`,color:$.color,colorText:`${S<0?$.colorText:$.colorTextPositive}`,className:"badge"}),y("p",{className:"ml-3 is-size-14px has-text-grey",children:$.description})]})]})]},"averageAttended__option"+re)),l==null?void 0:l.map(($,re)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[y("div",{children:y(Ke,{icon:$.icon,color:$.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:$.status}),G!==null&&y("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${G}${$.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[y(yo,{text:`${Z!==null&&Z<0?$.labelButtom:$.labelTop}${Z!==null&&Z.toFixed(1)}%`,color:$.color,colorText:Z!=null&&Z<0?$.colorText:$.colorTextPositive,className:"badge"}),y("p",{className:"ml-3 is-size-14px has-text-grey",children:$.description})]})]})]},"averageAttended__option2"+re)),u==null?void 0:u.map(($,re)=>L("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[y("div",{children:y(Ke,{icon:$.icon,color:$.iconColor,className:"is-size-1"})}),L("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[y("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:$.status}),J!==null&&y("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${J}${$.amountCall}`}),L("div",{className:"is-flex is-align-items-center",children:[y(yo,{text:`${Q!=null&&Q<0?$.labelButtom:$.labelTop}${Q!=null&&Q.toFixed(1)}%`,color:$.color,colorText:`${Q!=null&&Q<0?$.colorText:$.colorTextPositive}`,className:"badge"}),y("p",{className:"ml-3 is-size-14px has-text-grey",children:$.description})]})]})]},"averageAttended__option3"+re))]})})},fL="";function Pt(s,l){return s.length<l?s:s.slice(0,l)+"..."}function An(){return`${Math.random().toString(36).substr(2,9)}`}function D0(s){return s<1024?s+" bytes":s<1024*1024?(s/1024).toFixed(2)+" KB":s<1024*1024*1024?(s/(1024*1024)).toFixed(2)+" MB":(s/(1024*1024*1024)).toFixed(2)+" GB"}function ok(s){const l=s.split(".");switch(l[l.length-1].toLowerCase()){case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"svg":return"far fa-file-image";case"csv":return"fas fa-file-csv";case"pdf":return"fas fa-file-pdf";default:return"fas fa-file"}}const lk=({type:s,defaultActiveLabel:l,items:u,handleActive:a,className:r,...p})=>{const f=u.find(k=>k.label===l),[m,v]=ae.useState(f),S=k=>{v(k),a&&a(k),k.onClick&&k.onClick()};return y("div",{className:"elv-component elv-nav_bc",...p,children:y("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${s} ${r||""}`,children:y("ol",{className:"bc-list",children:u.map((k,N)=>L("li",{className:`bc-item ${k===m?"bc-item--active":""}`,children:[L("p",{className:"bc-item__bc-link",onClick:()=>{S(k)},children:[k.icon&&k.icon!==""&&y("i",{className:`${k.icon} item-icon ${k.label&&k.label!==""?"--and-label":""}`}),k.label&&k.label!==""&&Pt(k.label,25)]}),N<u.length-1&&y("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},k.label))})})})},pL="",sk=({img:s,title:l,icon:u,date:a,description:r,button:p,className:f,isBorderless:m,isClickable:v,onClick:S,...k})=>y("div",{className:"elv-component elv-card",...k,children:L("div",{className:["card card-cta",`${f?" "+f:""}`,`${v?" is-clickable":""}`,`${m?" is-shadowless":" card-box"}`].join(""),onClick:()=>{v&&S&&S()},children:[L("div",{className:"card-content",style:{flexGrow:1},children:[y("div",{className:"card-header",children:L("div",{className:"card__text",children:[y("p",{className:"title is-3",children:Pt(l,54)}),r&&y("p",{children:Pt(r,198)})]})}),L("div",{className:"card-footer",children:[L("div",{className:"card__date",children:[u&&y(Ke,{...u[0]}),y("span",{className:"date",children:a})]}),p&&y("div",{className:"card__button",children:y(Pe,{...p})})]})]}),y("div",{className:"card-image",children:y("img",{src:s,alt:""})})]})}),hL="",uk=({dataBig:s,bigNumber:l,bigMonth:u,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:m,className:v,isBorderless:S,isClickable:k,onClick:N,...R})=>y("div",{className:"elv-component elv-card",...R,children:y("div",{className:["card card-expiration",`${v?" "+v:""}`,`${k?" is-clickable":""}`,`${S?" is-shadowless":" card-box"}`].join(""),onClick:()=>{k&&N&&N()},children:L("div",{className:"card-expiration__content",children:[L("div",{className:"card_header",children:[s&&L("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[y("h1",{children:l}),y("h4",{children:u})]}),a&&L("div",{className:"date__small",children:[r&&y("div",{className:"card__icon",children:y("div",{className:"icon",children:r?y(Ke,{icon:r[0].icon,className:"icon"}):null})}),y("p",{className:"title is-5",children:p}),y("p",{className:"title is-3",children:f})]})]}),y("div",{className:"card-footer",children:y("div",{className:"data__expiration",children:y("div",{className:"list",children:m.map(P=>L("p",{className:"title is-6",children:[P.type,": ",y("span",{children:P.text})]},An()))})})})]})})}),vL="",ck=({image:s,img:l,badge:u,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:m,date:v,description:S,button:k,className:N,isClickable:R,isBorderless:P,onClick:F,...Z})=>y("div",{className:"elv-component elv-card",...Z,children:L("div",{className:["card card-vertical",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&F&&F()},children:[L("div",{className:"card-header",children:[s&&L("div",{className:"card__img",children:[y("img",{src:l,alt:""}),u&&y(yo,{...u[0]})]}),p&&y("div",{className:"card__icon",children:y("div",{className:"icon",children:m?y(Ke,{...m[0],className:"icon"}):null})}),a&&y("div",{className:"card__avatar",children:y("img",{src:r,alt:""})})]}),L("div",{className:"card-body",children:[y("div",{className:"card__title",children:y("p",{className:"title is-5",children:f})}),L("div",{className:"card__date",children:[m&&y(Ke,{...m[0],className:"icon"}),y("span",{className:"date",children:v})]}),y("div",{className:"card__description",children:y("p",{children:S})})]}),y("div",{className:"card-footer",children:y("div",{className:"card__button",children:y(Pe,{...k})})})]})}),mL="",dk=({fill:s,className:l,title:u,description:a,secondaryDescription:r,isClickable:p,onClick:f,...m})=>y("div",{className:"elv-component elv-card",...m,children:L("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${l||""}`].join(""),onClick:()=>{p&&f&&f()},children:[y("p",{className:"card-activity__title",children:u}),y("p",{className:"card-activity__description",children:a}),y("p",{className:"card-activity__secondaryDescription",children:r})]})}),gL="",fk=({iconLeft:s,icon:l,image:u,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:m,button:v,buttonsArray:S,buttons:k,className:N,isClickable:R,isBorderless:P,onClick:F,...Z})=>y("div",{className:"elv-component elv-card",...Z,children:L("div",{className:["card-horizontal",`${N?" "+N:""}`,`${R?" is-clickable":""}`,`${P?" is-shadowless":" card-box"}`].join(""),onClick:()=>{R&&F&&F()},children:[L("div",{className:["card-header pb-0 ",`${l||u?`icon--${a?"trailing":"leading"}`:""}`,,].join(" "),children:[s&&(l||u)?y("div",{className:"card__icon",children:l?y(Ke,{...l[0]}):u?y("img",{src:u,alt:"Card-Image"}):null}):y(Qt,{}),L("div",{className:"card__text",children:[y("p",{className:"title is-6 mb-1",children:r}),y("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),f&&y("div",{className:"card__menu ml-auto",children:y(Pe,{...m})})]}),L("div",{className:"card-body px-4 pb-4 pt-0",children:[v&&y(Pe,{...v}),S&&y("div",{children:k==null?void 0:k.map((A,Q)=>y(Pe,{...A},An()))})]})]})}),yL="",pk=({fill:s,list:l,badge:u,button:a,className:r,isClickable:p,onClick:f,...m})=>y("div",{className:"elv-component elv-card",...m,children:L("div",{className:[`card card-user ${s==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[y("div",{className:"card-body",children:l.map((v,S)=>{var k;return L("div",{className:"list-item",children:[v.iconType=="img"?y(Qt,{children:v.img&&y("div",{className:"list-item__img",children:y("img",{src:v.img,className:"img-p"},S)})}):y(Qt,{children:v.icon&&y("div",{className:"list-item__img",children:y(Ke,{className:"img-p",...v.icon},S)})}),L("div",{className:"list-item__text",children:[y("p",{className:"text__subtitle",children:v.title}),y("p",{className:"text__title",children:v.subtitle})]}),v.button&&y("div",{className:"list-item__button left",children:(k=v==null?void 0:v.button)==null?void 0:k.map(N=>y(Pe,{...N}))}),v.menuButton&&y("div",{className:"list-item__menu",children:y(Pe,{...v.menuButton})})]},S)})}),u||a?L("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[u&&y(Qt,{children:a?y("div",{className:"card-footer__badges card-footer__badges--button",children:u==null?void 0:u.map((v,S)=>y(yo,{...v},S))}):y("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${u.length*100<400?u.length*100:400}px`},children:u.map((v,S)=>y(yo,{...v},S))})}),a==null?void 0:a.map((v,S)=>y(Pe,{...v,className:"px-6"}))]}):y(Qt,{})]})}),wL="",hk=({button:s,title:l,optionButton:u,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:m,footerType:v,interLabel:S,isInterLabelCenter:k,list:N,total:R,className:P,...F})=>y("div",{className:"elv-component elv-cart",...F,children:L("div",{className:`cart ${P||""}`,children:[r==="icon"&&y("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?y(Ke,{type:"svg_icon",icon:f}):y(Ke,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&y("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:u&&y(Pe,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Pt(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})}),L("div",{className:"cart__content",children:[m==="perception"&&L("div",{className:"perception is-flex is-flex-direction-column",children:[L("div",{className:"perception__title is-flex is-justify-content-space-between",children:[y("p",{className:"title is-5",children:l}),u&&y(Pe,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?Pt(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})]}),y("div",{className:"perception__labels",children:N==null?void 0:N.map(Z=>L("div",{className:"item is-flex is-justify-content-space-between",children:[y("p",{className:"item__label",children:Z.label}),y("p",{className:"item__value",children:Z.value})]},An()))}),a&&y("div",{className:"perception__sub-list",children:a==null?void 0:a.map(Z=>L("div",{className:"item is-flex is-justify-content-space-between",style:{color:Z.color},children:[y("p",{className:"item__label",children:Z.label}),y("p",{className:"item__value",children:Z.value})]},An()))}),L("div",{className:"perception__total is-flex is-justify-content-space-between",children:[y("p",{className:"total-label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:R==null?void 0:R.label}),y("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})]})]}),m==="bonds"&&y("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:[y("p",{className:"micro-label is-4",children:N[0].label}),y("p",{className:"micro-sub_label",children:N[0].sub_label})]}),y("p",{className:"item__value",children:N[0].value})]}),y("div",{className:`inter-label is-flex ${k?"is-justify-content-center":""}`,children:y("p",{children:S})}),L("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[L("div",{className:"item__label",children:[y("p",{className:"micro-label",children:N[1].label}),y("p",{className:"micro-sub_label",children:N[1].sub_label})]}),y("p",{className:"item__value",children:N[1].value})]})]})}),v==="button"&&y("div",{className:"footer--button",children:s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&y(Pe,{...s[0]}),s[1]&&y(Pe,{...s[1]})]})}),v==="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:[y("p",{className:"total__label",children:Pt(R.label,25)}),y("p",{className:"total__value",children:Pt(R.values[0].value,25)})]}),s&&y(Pe,{...s[0]})]}),v==="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(Qt,{children:[y("p",{className:"total__label",children:Pt(R.label,25)}),y("p",{className:"total__value",children:Pt(R.values[0].value,25)})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&y(Pe,{...s[0]}),s[1]&&y(Pe,{...s[1]})]})]}),v==="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(Qt,{children:[y("p",{className:"total__label",children:Pt(R.label,35)}),R.sub_label&&y("p",{className:"total__sub_label",style:R!=null&&R.label_color?{color:R.label_color}:{},children:Pt(R.sub_label,35)}),R.values[0].sub_value&&y("p",{className:"total__sub_value",style:R!=null&&R.values[0].value_color?{color:R.values[0].value_color}:{},children:Pt(R.values[0].sub_value,35)}),R.values.map(Z=>L(Qt,{children:[Z.sub_desc&&y("p",{className:"total__sub_desc",style:Z.sub_desc_color?{color:Z.sub_desc_color}:{},children:Pt(Z.sub_desc,35)},An()),y("p",{className:"total__value",style:Z.value_color?{color:Z.value_color}:{},children:Pt(Z.value,35)})]})),R.value_description&&y("p",{className:"total__description",children:R.value_description})]}),s&&L("div",{className:"button-list is-flex is-flex-direction-column",children:[s[0]&&y(Pe,{...s[0]}),s[1]&&y(Pe,{...s[1]})]})]}),v==="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:[y("p",{className:"total__label",children:Pt(R.label,18)}),R.sub_label&&y("p",{className:"total__sub_label",children:Pt(R.sub_label,50)}),R.values[0].sub_value&&y("p",{className:"total__sub_value",children:Pt(R.values[0].sub_value,21)}),y("p",{className:"total__value",children:Pt(R.values[0].value,16)})]}),s&&y(Pe,{...s[0]})]})]})]})}),bL="",CL="",xL="",$f=({size:s="md",label:l="checkbox",value:u,name:a,className:r,key:p,defaultChecked:f,checked:m,error:v,disabled:S=!1,onCheck:k,onChange:N,...R})=>{const[P,F]=ae.useState(f||!1),Z=A=>{F(!P),k&&k(!P),N&&N(A)};return y("div",{className:"elv-component elv-checkbox elv-control",...R,children:L("label",{className:["e-control e-checkbox",` e-control--${s} e-checkbox--${s}`,`${v?" e-control--error e-checkbox--error":""}`,`${S?" 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:[y("input",{type:"checkbox",onChange:A=>{Z(A)},defaultChecked:f,id:u,value:u,name:a,checked:m,className:["e-control__input e-checkbox__input"].join(""),disabled:S}),l&&y("span",{className:"label-text is-flex is-align-items-center",children:l}),y("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},SL="",Ug=({contentType:s,trianglePos:l,className:u,active:a,text:r,date:p,sub_title:f,principal_item:m,sections:v,total:S,amount:k,notification:N,doubleStates:R,tripleStates:P,alert:F,...Z})=>{var A,Q,ie,J,G,W,K,le,ce,$,re,pe,ye,De,he,Ee,_e,Ne,ze,ct,Rt,we,Re,Me,Je,Ve,lt,ht,Fe,He;return y(Qt,{children:a?y("div",{className:"elv-component elv-tooltip",...Z,children:y("div",{className:`tooltip ${u||""}`,children:y("div",{className:`tooltip__content ${s&&"tooltip__content--"+s} ${l!=="none"&&"tp tp--"+l}`,children:L("div",{className:"labels is-flex flex-column",children:[s==="calendar"&&L(Qt,{children:[y("p",{className:"labels__date",children:p}),y("p",{className:"labels__text",children:r}),y("p",{className:"labels__sub_title",children:f})]}),s==="text"&&y(Qt,{children:r&&y("p",{className:"labels__text",children:r})}),s==="taxes"&&L(Qt,{children:[m&&L("div",{className:"principal-item is-flex is-justify-content-space-between",children:[y("p",{className:"principal-item__label",children:m==null?void 0:m.label}),y("p",{className:"principal-item__value",children:m==null?void 0:m.value})]}),v&&y("div",{className:"tax-sections",children:v==null?void 0:v.map(ft=>L("div",{className:"tax-sections__sec",children:[ft.title&&y("div",{className:"sec-title",children:ft.title}),ft.labels.map(Tt=>L("div",{className:"sec-label is-flex is-justify-content-space-between",children:[y("p",{className:"sec-label__label",children:Tt.label}),y("p",{className:"sec-label__value",children:Tt.value})]},Tt.label))]},ft.title))}),S&&L("div",{className:"total is-flex is-justify-content-space-between",children:[y("p",{className:"total__label",children:S==null?void 0:S.label}),y("p",{className:"total__value",children:S==null?void 0:S.value})]}),k&&L("div",{className:"amount is-flex is-justify-content-space-between",children:[y("p",{className:"amount__label",children:k==null?void 0:k.label}),y("p",{className:"amount__value",children:k==null?void 0:k.value})]}),N&&y("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:[y("p",{className:"state-label",children:(A=R[0])==null?void 0:A.label}),R[0].type==="state"?L("div",{className:"state-status",style:{color:(Q=R[0])==null?void 0:Q.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(ie=R[0])==null?void 0:ie.sub_label_color},children:(J=R[0])==null?void 0:J.sub_label})]}):y("p",{className:"state-sub_label",style:{color:(G=R[0])==null?void 0:G.sub_label_color},children:(W=R[0])==null?void 0:W.sub_label})]}),L("div",{className:"double-state__state column is-6",children:[y("p",{className:"state-label",children:(K=R[1])==null?void 0:K.label}),R[1].type==="state"?L("div",{className:"state-status",style:{color:(le=R[1])==null?void 0:le.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(ce=R[1])==null?void 0:ce.sub_label_color},children:($=R[1])==null?void 0:$.sub_label})]}):y("p",{className:"state-sub_label",style:{color:(re=R[1])==null?void 0:re.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:[y("p",{className:"state-label",children:(ye=P[0])==null?void 0:ye.label}),P[0].type==="state"?L("div",{className:"state-status",style:{color:(De=P[0])==null?void 0:De.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(he=P[0])==null?void 0:he.sub_label_color},children:(Ee=P[0])==null?void 0:Ee.sub_label})]}):y("p",{className:"state-sub_label",style:{color:(_e=P[0])==null?void 0:_e.sub_label_color},children:(Ne=P[0])==null?void 0:Ne.sub_label})]}),L("div",{className:"triple-state__state column is-4",children:[y("p",{className:"state-label",children:(ze=P[1])==null?void 0:ze.label}),P[1].type==="state"?L("div",{className:"state-status",style:{color:(ct=P[1])==null?void 0:ct.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-status__text",style:{color:(Rt=P[1])==null?void 0:Rt.sub_label_color},children:(we=P[1])==null?void 0:we.sub_label})]}):y("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:[y("p",{className:"state-label",children:(Je=P[2])==null?void 0:Je.label}),P[2].type==="state"?L("div",{className:"state-status",style:{color:(Ve=P[2])==null?void 0:Ve.colorStatus},children:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("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})]}):y("p",{className:"state-sub_label",style:{color:(Fe=P[2])==null?void 0:Fe.sub_label_color},children:(He=P[2])==null?void 0:He.sub_label})]})]}),F&&L("div",{className:"tax-alert is-flex",children:[(F==null?void 0:F.icon)&&y(Ke,{icon:F==null?void 0:F.icon}),y("p",{className:"tax-alert__label",children:F==null?void 0:F.label})]})]})]})})})}):y(Qt,{})})},_L="",jg=({size:s="md",disabled:l=!1,label:u="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:m,className:v,...S})=>{const k=ae.useRef(null),N=()=>{k.current&&k.current.checked&&f&&f()};return y("div",{className:"elv-component elv-radio elv-control",...S,children:L("label",{className:["e-control e-radio",` e-control--${s} e-radio--${s}`,`${m?" e-control--error e-radio--error":""}`,`${l?" e-control--disabled e-radio--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${v?" "+v:""}`].join(""),children:[y("input",{type:"radio",defaultChecked:p,id:r,name:a,value:r,className:["e-control__input e-radio__input","m-0","is-clickable"].join(""),onChange:()=>{N()},disabled:l,ref:k}),u&&y("span",{className:"label-text is-flex is-align-items-center",children:u}),y("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},kL="",Yf=({size:s="md",fill:l="outline",disabled:u=!1,placeholder:a,error:r,options:p,defaultValue:f,minWidth:m,maxCharacters:v=30,onChangeSelect:S,className:k,...N})=>{const[R,P]=ae.useState(""),[F,Z]=ae.useState(a||""),[A,Q]=ae.useState(!1);ae.useEffect(()=>{if(f&&p){const W=p.find(K=>K.value===f);W&&(P(W.value),Z(W.label))}},[f,p]);function ie(){return W=>{Q(!1)}}function J(){return W=>{Q(!A)}}function G(W,K){return le=>{S&&S(W),P(W),Z(K),Q(!1)}}return y("div",{className:"elv-component elv-select",style:{minWidth:m},...N,children:L("div",{className:`select-container ${k||""}`,onMouseLeave:ie(),children:[y("div",{className:["select-container__select",`select--${l}`,`select--${s}`,`${r?"select--error":""} ${u?"select--disabled":""}`,,].join(" "),onClick:J(),children:f!==void 0||!f?F&&y("span",{children:Pt(F,v)}):y("span",{children:Pt(a||"",v)})}),y("div",{className:`select-container__dropdown select--${s} ${A?"select-container__dropdown--active":""}`,children:L("ul",{className:"dropdown__list",children:[a&&y("li",{className:`list__item list__item--default ${R==a?"list__item--active":""}`,onClick:()=>G("",a),children:Pt(a,v)}),p==null?void 0:p.map((W,K)=>L("li",{className:"list__item",onClick:G(W.value,W.label),children:[W.icon&&y("i",{className:`item__icon ${W.icon}`}),Pt(W.label,v)]},K))]})})]})})},DL="",EL="",Bh=({nameInput:s,id:l,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:v,maxLength:S,iconLeft:k,iconRight:N,isRounded:R,isLoading:P,isDisabled:F,hasError:Z,className:A,onChangeInput:Q,onSearch:ie,...J})=>{const G=ae.useRef(null),W=le=>{le.key==="Enter"&&K()},K=()=>{var ce;const le=(ce=G.current)==null?void 0:ce.value;ie&&ie(le||"")};return y("div",{className:"elv-component elv-input",...J,children:y("div",{className:`field e-input ${A||""}`,children:L("p",{className:["control",`${k?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${P?" is-loading":""}`].join(""),children:[y("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${R?" is-rounded":""}`,`${Z?" has-error":""}`].join(""),type:u,name:s,id:l,placeholder:p,onChange:le=>{Q&&Q(le)},defaultValue:f,value:m,ref:G,disabled:F,onKeyDown:W,autoComplete:v,maxLength:S}),k&&y("span",{className:`icon is-left ${"is-"+r}`,children:y(Ke,{...k})}),N&&y("span",{className:`icon is-right ${"is-"+r}`,children:y(Ke,{...N})})]})})})},E0=({labelDescription:s,checkbox:l,input:u,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:m,priceBottomEdit:v,onCantidadChange:S,onSaveData:k,showAmountinEdit:N,calculateOnChangeCant:R,calculateOnChangeTax:P,exento:F,disabledInputTax:Z,visibleBtnRecalculate:A,visibleBtnCancelar:Q,visibleBtnGuardar:ie,...J})=>{const[G,W]=ae.useState(Number(u==null?void 0:u.defaultValue)||1),[K,le]=ae.useState(0),[ce,$]=ae.useState(F),[re,pe]=ae.useState(m==null?void 0:m.labelNumberI),ye=()=>{$(!ce)},De=()=>{ce||(N?k&&k({calculatedtax:G&&K&&(v==null?void 0:v.labelNumberA)?G*K*(v==null?void 0:v.labelNumberA)/100:0,aliquot:v!=null&&v.labelNumberA?v.labelNumberA:0}):k&&k({calculatedtax:K&&(v==null?void 0:v.labelNumberA)?K*(v==null?void 0:v.labelNumberA)/100:0,aliquot:v!=null&&v.labelNumberA?v.labelNumberA:0}))},he=(ze,ct)=>{if(ce)return;const Rt=v!=null&&v.labelNumberA?v.labelNumberA:0;if(N){const we=ze&&ct&&(v==null?void 0:v.labelNumberA)?parseFloat((ze*ct*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:we,aliquot:Rt})}else{const we=ct&&(v==null?void 0:v.labelNumberA)?parseFloat((ct*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0;k&&k({calculatedtax:we,aliquot:Rt})}},Ee=()=>{!ce||pe(N?G&&K&&(v==null?void 0:v.labelNumberA)?parseFloat((G*K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0:K&&(v==null?void 0:v.labelNumberA)?parseFloat((K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0)},_e=ze=>{ce||(W(parseFloat(ze.toFixed(2))),pe(N?ze&&K&&(v==null?void 0:v.labelNumberA)?parseFloat((ze*K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0:K&&(v==null?void 0:v.labelNumberA)?parseFloat((K*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0),R&&he(ze,K))},Ne=ze=>{ce||(le(parseFloat(ze.toFixed(2))),pe(N?G&&ze&&(v==null?void 0:v.labelNumberA)?parseFloat((G*ze*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0:ze&&(v==null?void 0:v.labelNumberA)?parseFloat((ze*(v==null?void 0:v.labelNumberA)/100).toFixed(2)):0),P&&he(G,ze))};return y("div",{className:"elv-component elv-collapsedit",...J,children:y("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:[y("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:s}),y("div",{className:"collapsedit__check is-size-14px",children:l&&y($f,{...l,defaultChecked:F,onCheck:ye,className:""})})]}),y("div",{className:"collapsedit__input",children:N&&y(Qt,{children:u&&L("div",{children:[y("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),y(Bh,{...u,className:"",onChangeInput:ze=>_e(Number(ze.target.value))})]})})})]}),y("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&L("div",{children:[y("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),y(Bh,{...a,isDisabled:Z,onChangeInput:ze=>Ne(Number(ze.target.value))})]})})]}),L("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[v&&L("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[y("div",{className:"is-size-10px has-text-grey-light",children:v.labelAliquot}),L("div",{className:"is-size-14px has-text-grey-dark",children:[v.labelNumberA,"%"]})]}),m&&L("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[y("div",{className:"is-size-10px has-text-grey-light",children:m.labelImpost}),L("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",re]})]})]})]}),L("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[y("div",{className:"",children:r&&A&&y(Pe,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{Ee()}})}),L("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[y("div",{className:"button-cancel ml-4",children:p&&Q&&y(Pe,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),y("div",{className:"button-save",children:ie&&y(Pe,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{De()}})})]})]})]})})})},T0=({type:s,paddingLeft:l,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:v,borderBottom:S,borderTop:k,title:N,stateTitle:R,titleWeight:P,titleIcon:F,description:Z,badge:A,details:Q,dateDays:ie,dateTime:J,price:G,priceColor:W,priceTop:K,priceBottom:le,priceLeft:ce,buttonMenu:$,buttonLink:re,buttonDetail:pe,dropRightButton:ye,buttonEdit:De,checkbox:he,collapseEdit:Ee,callBackCheckbox:_e,radio:Ne,onSaveData:ze,showAmountinEdit:ct,...Rt})=>{const[we,Re]=ae.useState(p),[Me,Je]=ae.useState(!1),[Ve,lt]=ae.useState(!1),[ht,Fe]=ae.useState(!1),[He,ft]=ae.useState(m);ae.useState(G);const[Tt,Nt]=ae.useState(!1),kn=()=>{Re(!we)},En=()=>{Fe(!ht),ft(!He)},vt=ae.useRef(null);ae.useEffect(()=>{function Xe(Yt){vt.current&&!vt.current.contains(Yt.target)&&lt(!1)}return document.addEventListener("click",Xe),()=>{document.removeEventListener("click",Xe)}},[vt]);const $t=ae.useRef(null);return ae.useEffect(()=>{function Xe(Yt){$t.current&&!$t.current.contains(Yt.target)&&Je(!1)}return document.addEventListener("click",Xe),()=>{document.removeEventListener("click",Xe)}},[$t]),y("div",{className:`elv-component elv-collapse ${a||""}`,...Rt,children:!ht&&!He?L("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${v?" e-collapse--colored-gray":""}`,`${k?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[L("div",{className:`e-collapse__container ${"e-collapse__container--"+s} ${l&&l==="short"?"e-collapse__container--"+s+"--short":"e-collapse__container--"+s+"--long"} ${m?"e-collapse__container--disabled":""} ${S?"e-collapse__container--borderBottom":""} ${N&&!Z&&!Q?"e-collapse__container--"+s+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[L("div",{className:"left-container is-flex",style:{cursor:u&&!m?"pointer":"auto"},onClick:()=>{u&&!m&&kn()},children:[u&&y("div",{className:"left-container__dropIcon",style:R&&{paddingTop:"28px"},children:y(Ke,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${we&&"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:[y(Ke,{icon:"fa-solid fa-circle"})," ",y("p",{className:"state-title__text",children:R==null?void 0:R.label})]}),L("div",{className:"title-container is-flex is-align-items-center",children:[F&&y(Ke,{...F}),A&&y(yo,{...A}),N&&y("p",{className:`title-container__title title-container__title${P&&P=="regular"?"--regular":"--semibold"}`,children:N})]}),Z&&y("p",{className:"description",children:Z}),Q&&y("p",{className:"details",children:Q}),(ie||J)&&L("div",{className:"date is-flex",children:[ie&&L("span",{className:"date__days is-flex is-align-items-center",children:[y(Ke,{icon:"fa-solid fa-calendar-days"}),y("p",{children:ie})]}),J&&L("span",{className:"date__time is-flex is-align-items-center",children:[y(Ke,{icon:"fa-solid fa-clock"}),y("p",{children:J})]})]})]})]}),L("div",{className:"right-container is-flex is-align-items-center",children:[pe&&L("span",{className:"right-container__buttonDetail",ref:$t,children:[y(Pe,{...pe.button,onClick:()=>{Je(!Me),pe.button.onClick&&pe.button.onClick()}}),pe.tooltip?y("div",{className:`detail-tooltip ${pe.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:y(Ug,{...pe.tooltip,active:Me})}):y(Qt,{})]}),L("div",{className:"right-container__price is-flex",children:[ce&&ce.checkbox&&y("div",{className:"is-flex is-align-items-center",children:y($f,{...ce.checkbox})}),L("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[K&&L("span",{className:"col-price__top is-flex is-align-items-center",children:[y("p",{className:"desc",children:K.description}),L("p",{className:"value",children:["$ ",K.value]})]}),G&&L("p",{className:"col-price__price",style:W&&W!=""?{color:W}:{color:"none"},children:["$",G]}),le&&L("span",{className:"col-price__bottom is-flex is-align-items-center",children:[y("p",{className:"desc",children:le.description}),L("p",{className:"value",children:["$ ",le.value]})]})]})]}),$&&L("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:vt,children:[y("span",{className:"menu-button ",children:y(Pe,{...$.button,onClick:()=>{lt(!Ve),$.onEllipse&&$.onEllipse()}})}),Ve&&$.menuDropComponent&&y("div",{className:"menu-drop-component is-absolute",children:$.menuDropComponent}),$.select&&y("div",{className:"menu-select",style:Ve?{display:"block"}:{display:"none"},children:y(Yf,{...$.select})})]}),ye&&y("div",{className:"right-container__dropLeftButton is-flex",children:y(Pe,{...ye})}),re&&y("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:y(Pe,{...re})}),De||he||Ne?L("div",{className:"right-container__editCheckbox is-flex",children:[De&&y("div",{className:"buttonEdit is-flex is-align-items-center",children:y(Pe,{...De,onClick:()=>{En()}})}),he&&y("div",{className:"_checkbox is-flex is-align-items-center",children:y($f,{...he,onCheck:Xe=>{Nt(Xe),_e&&_e(Xe?{type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:v,borderBottom:S,borderTop:k,title:N,stateTitle:R,titleWeight:P,titleIcon:F,description:Z,badge:A,details:Q,dateDays:ie,dateTime:J,price:G,priceColor:W,priceTop:K,priceBottom:le,priceLeft:ce,buttonMenu:$,buttonLink:re,buttonDetail:pe,dropRightButton:ye,buttonEdit:De}:{})}})}),Ne&&y("div",{className:"_radio is-flex is-align-items-center",children:y(jg,{...Ne,onCheck:()=>{_e&&_e({type:s,paddingLeft:l,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:v,borderBottom:S,borderTop:k,title:N,stateTitle:R,titleWeight:P,titleIcon:F,description:Z,badge:A,details:Q,dateDays:ie,dateTime:J,price:G,priceColor:W,priceTop:K,priceBottom:le,priceLeft:ce,buttonMenu:$,buttonLink:re,buttonDetail:pe,dropRightButton:ye,buttonEdit:De}),Ne.onCheck&&Ne.onCheck()}})})]}):y(Qt,{})]})]}),f&&f.map(Xe=>y(T0,{...Xe,show:we},An()))]}):y("div",{className:"",children:y(E0,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:K==null?void 0:K.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:le==null?void 0:le.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(Xe){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(Xe){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(Xe){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){Fe(!1),ft(!1)}},onSaveData:Xe=>{ze&&ze({aliquot:Xe.aliquot,calculatedtax:Xe.calculatedtax}),Fe(!1),ft(!1)},showAmountinEdit:ct})})})},TL="";var N0={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.52",
3
+ "version": "1.0.53",
4
4
  "description": "Un paquete de componentes minimizado",
5
5
  "main": "components.js",
6
6
  "module": "components.js",