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