dgrcorrientes-modulos 1.0.140 → 1.0.142
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 +1 -1
- package/components.umd.cjs +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/components.js
CHANGED
|
@@ -1443,7 +1443,7 @@ const oI = ({
|
|
|
1443
1443
|
children: [/* @__PURE__ */ A("div", {
|
|
1444
1444
|
className: ["card-header pb-0", `${s || u ? `icon--${a ? "trailing" : "leading"}` : ""}`].join(" "),
|
|
1445
1445
|
children: [z && /* @__PURE__ */ v("div", {
|
|
1446
|
-
className: "card__collapse
|
|
1446
|
+
className: "card__collapse",
|
|
1447
1447
|
children: /* @__PURE__ */ v("button", {
|
|
1448
1448
|
className: "collapse-btn",
|
|
1449
1449
|
onClick: (W) => {
|
package/components.umd.cjs
CHANGED
|
@@ -26,7 +26,7 @@ Check the render method of \``+G+"`."}return""}}function _n(G){{if(G!==void 0){v
|
|
|
26
26
|
|
|
27
27
|
Check your code at `+Oe+":"+$e+"."}return""}}var zr={};function bl(G){{var Oe=Fn();if(!Oe){var $e=typeof G=="string"?G:G.displayName||G.name;$e&&(Oe=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+$e+">.")}return Oe}}function _a(G,Oe){{if(!G._store||G._store.validated||G.key!=null)return;G._store.validated=!0;var $e=bl(Oe);if(zr[$e])return;zr[$e]=!0;var mt="";G&&G._owner&&G._owner!==Ct.current&&(mt=" It was passed a child from "+we(G._owner.type)+"."),gn(G),ae('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$e,mt),gn(null)}}function wr(G,Oe){{if(typeof G!="object")return;if(Array.isArray(G))for(var $e=0;$e<G.length;$e++){var mt=G[$e];pn(mt)&&_a(mt,Oe)}else if(pn(G))G._store&&(G._store.validated=!0);else if(G){var $t=V(G);if(typeof $t=="function"&&$t!==G.entries)for(var gt=$t.call(G),zt;!(zt=gt.next()).done;)pn(zt.value)&&_a(zt.value,Oe)}}}function si(G){{var Oe=G.type;if(Oe==null||typeof Oe=="string")return;var $e;if(typeof Oe=="function")$e=Oe.propTypes;else if(typeof Oe=="object"&&(Oe.$$typeof===x||Oe.$$typeof===O))$e=Oe.propTypes;else return;if($e){var mt=we(Oe);qe($e,G.props,"prop",mt,G)}else if(Oe.PropTypes!==void 0&&!fn){fn=!0;var $t=we(Oe);ae("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$t||"Unknown")}typeof Oe.getDefaultProps=="function"&&!Oe.getDefaultProps.isReactClassApproved&&ae("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(G){{for(var Oe=Object.keys(G.props),$e=0;$e<Oe.length;$e++){var mt=Oe[$e];if(mt!=="children"&&mt!=="key"){gn(G),ae("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",mt),gn(null);break}}G.ref!==null&&(gn(G),ae("Invalid attribute `ref` supplied to `React.Fragment`."),gn(null))}}function Lr(G,Oe,$e,mt,$t,gt){{var zt=ie(G);if(!zt){var Wt="";(G===void 0||typeof G=="object"&&G!==null&&Object.keys(G).length===0)&&(Wt+=" 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 hn=_n($t);hn?Wt+=hn:Wt+=Fn();var an;G===null?an="null":Array.isArray(G)?an="array":G!==void 0&&G.$$typeof===a?(an="<"+(we(G.type)||"Unknown")+" />",Wt=" Did you accidentally export a JSX literal instead of a component?"):an=typeof G,ae("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",an,Wt)}var vn=ft(G,Oe,$e,$t,gt);if(vn==null)return vn;if(zt){var ea=Oe.children;if(ea!==void 0)if(mt)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],G);Object.freeze&&Object.freeze(ea)}else ae("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,G)}return G===l.Fragment?fa(vn):si(vn),vn}}function Hr(G,Oe,$e){return Lr(G,Oe,$e,!0)}function za(G,Oe,$e){return Lr(G,Oe,$e,!1)}var Ir=za,Hi=Hr;l.jsx=Ir,l.jsxs=Hi}()}(Wg)),Wg}(function(l){process.env.NODE_ENV==="production"?l.exports=Sk():l.exports=kk()})(Zh);const qt=Zh.exports.Fragment,v=Zh.exports.jsx,A=Zh.exports.jsxs,He=({icon:l,className:s,type:u,size:a="16px",size_height:r,color:p,onClick:f,...m})=>{const g=te.useRef(null);te.useEffect(()=>{u=="svg_icon"&&x(l).then(_=>{g.current&&l&&(g.current.innerHTML=_)})},[g.current,l]);function x(_){return fetch(_).then(N=>N.text())}return u==="svg_icon"?v("span",{className:`svg_icon ${s}`,ref:g,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...m}):v("div",{className:"elv-component elv-icon",...m,children:v("i",{className:`fa_icon ${l} ${s}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},je=({color:l="primary",type:s="button",size:u="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:m=!1,disabled:g=!1,icon:x,icon_type:_="fa_icon",icon_size:N,icon_size_height:O,icon_color:R,icon_className:I,trailingIcon:z=!1,label:P,onClick:$,className:X,...B})=>{const W=Y=>{Y.stopPropagation(),$&&$()};return v("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...B,children:v("button",{type:s,className:["button",`${a==="solid"||a==="outline"?" is-"+l+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${u!=="normal"?" is-"+u:""}`,`${z?" button__icon--trailing":""}`,`${m?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${X?" "+X:""}`].join(""),onClick:Y=>{W(Y)},disabled:g,children:v("div",{className:"button-content is-flex",children:z?A(qt,{children:[P,x&&v(He,{icon:x,type:_,color:R,size:N,size_height:O,className:"button__icon "+I})]}):A(qt,{children:[x&&v(He,{icon:x,type:_,color:R,size:N,size_height:O,className:"button__icon "+I}),P]})})})})},UI="",Dk=({type:l,className:s,fill:u,accent:a,icon:r,labelTitle:p,label:f,key:m,isButton:g,button:x,..._})=>v("div",{className:"elv-component elv-notification",..._,children:A("div",{className:`notification --type-${l} --fill-${u} --accent-${a} ${s||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),A("div",{className:"notification__text",children:[p!==void 0&&v("div",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:p}})}),v("div",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:f}})}),g&&x!==void 0&&v("div",{className:"notification__button",children:v(je,{...x[0]})})]})]})},"elv-alert"+m?m:""),FI="",Nk=({type:l,className:s,fill:u,accent:a,icon:r,renglones:p,key:f,isButton:m,button:g,...x})=>v("div",{className:"elv-component elv-notification",...x,children:A("div",{className:`notification --type-${l} --fill-${u} --accent-${a} ${s||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),A("div",{className:"notification__text",children:[p&&p.map((_,N)=>A("div",{children:[_.labelTitle!==void 0&&v("div",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:_.labelTitle}})}),v("div",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:_.label}})})]},N)),m&&g!==void 0&&v("div",{className:"notification__button",children:v(je,{...g[0]})})]})]})},"elv-alert"+f?f:""),$I="",ji=({color:l,className:s,text:u,colorText:a,...r})=>v("div",{className:"elv-component elv-badge",...r,children:v("span",{style:{backgroundColor:l,color:a},className:`badge badge--${l} ${s||""}`,children:u})}),zI="",L0=({color:l="primary",size:s="normal",max:u,value:a,className:r,...p})=>v("div",{className:"elv-component elv-progressbar",...p,children:v("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:v("progress",{className:[`progress progress--${s}`,`${" is-"+l}`].join(""),value:a,max:u})})}),HI="",Ek=({title:l,option:s,onSeeAll:u,className:a})=>v("div",{className:"elv-component elv-assistancediary",children:A("div",{className:["assistancediary is-flex is-flex-direction-column p-5 is-gap-5 box",`${a?" "+a:""}`].join(""),children:[v("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:l}),v("div",{className:"is-flex is-flex-direction-column is-gap-4",children:s==null?void 0:s.map((r,p)=>A("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[v("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),v("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),v("div",{className:"assistancediary__widthstate p-1",children:v("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]},"assistancediary_option"+p))}),v("div",{children:v(je,{label:"Ver todo",fill:"unstyled",icon:"fa-solid fa-arrow-right",trailingIcon:!0,className:"is-size-7 has-text-weight-medium has-text-grey px-4 py-3",onClick:()=>u&&u()})})]})}),YI="",Tk=({option:l,option2:s,option3:u,Call:a,className:r})=>{const[p,f]=te.useState(0),[m,g]=te.useState(0),[x,_]=te.useState(0),[N,O]=te.useState(null),[R,I]=te.useState(null),[z,P]=te.useState(null),[$,X]=te.useState(null);te.useEffect(()=>{const K=new Date().getWeek(),ie=K-1,de=a.filter(at=>at.date.getWeek()===K),be=a.filter(at=>at.date.getWeek()===ie);f(de.length),g(be.length);const we=be.length!==0?(de.length-be.length)/be.length:0,ye=parseFloat(we.toFixed(2));_(ye);const pe=a[a.length-1];if(pe){const at=new Date,ge=pe.arrivalTime,De=pe.serviceStartTime||ge,Ae=(De||at).getTime()-ge.getTime();O(Ae/(1e3*60));const Qe=at.getTime()-(De||ge).getTime(),Fe=Math.floor(Qe/(1e3*60));I(Fe);const dt=V(de),lt=V(be),Ye=Y(dt,lt,de.length,be.length);X(Ye)}else O(null),I(null);const he=re(de),ke=re(be),We=ae(he,ke,de.length,be.length);P(We)},[a]),te.useEffect(()=>{const Q=setInterval(()=>{const K=a[a.length-1];if(K&&K.serviceStartTime){const de=new Date().getTime()-K.serviceStartTime.getTime();I(de/6e4)}else I(null)},1e3);return()=>clearInterval(Q)},[a]);const B=R!==null?`${Math.floor(R/60)}:${(R%60).toFixed(0).padStart(2,"0")}`:"N/A",W=N!==null?`${Math.floor(N/60)}:${(N%60).toFixed(0).padStart(2,"0")}`:"N/A";z!==null&&`${Math.floor(z/60)}${(z%60).toFixed(0).padStart(2,"0")}`;const Y=(Q,K,ie,de)=>{const be=ie>0?ie:1,we=de>0?de:1,ye=(Q/be-K/we)/(1e3*60);return parseFloat(ye.toFixed(2))/100},V=Q=>Q.reduce((K,ie)=>{if(ie.serviceStartTime&&ie.arrivalTime){const de=new Date().getTime()-ie.serviceStartTime.getTime();return K+de}return K},0),re=Q=>Q.reduce((K,ie)=>{if(ie.serviceStartTime&&ie.arrivalTime){const de=ie.serviceStartTime.getTime()-ie.arrivalTime.getTime();return K+de}return K},0),ae=(Q,K,ie,de)=>{const be=ie>0?ie:1,we=de>0?de:1,ye=(Q/be-K/we)/(1e3*60);return parseFloat(ye.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 K=new Date(Q.getFullYear(),0,1),ie=Math.ceil(((Q.getTime()-K.getTime())/864e5+1)/7);return ie},v("div",{className:"elv-component elv-averageAttended",children:A("div",{className:["averageAttended box is-flex is-gap-4 is-justify-content-space-between",`${r?" "+r:""}`].join(""),children:[l==null?void 0:l.map((Q,K)=>A("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(He,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),A("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),A("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${x<0?Q.labelButtom:Q.labelTop}${x.toString()}%`,color:Q.color,colorText:`${x<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]},"averageAttended__option"+K)),s==null?void 0:s.map((Q,K)=>A("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(He,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),A("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),W!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${W}${Q.amountCall}`}),A("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${z!==null&&z<0?Q.labelButtom:Q.labelTop}${z!==null&&z.toFixed(1)}%`,color:Q.color,colorText:z!=null&&z<0?Q.colorText:Q.colorTextPositive,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]},"averageAttended__option2"+K)),u==null?void 0:u.map((Q,K)=>A("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(He,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),A("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),B!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${B}${Q.amountCall}`}),A("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${$!=null&&$<0?Q.labelButtom:Q.labelTop}${$!=null&&$.toFixed(1)}%`,color:Q.color,colorText:`${$!=null&&$<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]},"averageAttended__option3"+K))]})})},VI="";function It(l,s){return l.length<s?l:l.slice(0,s)+"..."}function Un(){return`${Math.random().toString(36).substr(2,9)}`}function I0(l){return l<1024?l+" bytes":l<1024*1024?(l/1024).toFixed(2)+" KB":l<1024*1024*1024?(l/(1024*1024)).toFixed(2)+" MB":(l/(1024*1024*1024)).toFixed(2)+" GB"}function Ok(l){const s=l.split(".");switch(s[s.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 Rk=({type:l,defaultActiveLabel:s,items:u,handleActive:a,className:r,...p})=>{const f=u.find(_=>_.label===s),[m,g]=te.useState(f),x=_=>{g(_),a&&a(_),_.onClick&&_.onClick()};return v("div",{className:"elv-component elv-nav_bc",...p,children:v("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${l} ${r||""}`,children:v("ol",{className:"bc-list",children:u.map((_,N)=>A("li",{className:`bc-item ${_===m?"bc-item--active":""}`,children:[A("p",{className:"bc-item__bc-link",onClick:()=>{x(_)},children:[_.icon&&_.icon!==""&&v("i",{className:`${_.icon} item-icon ${_.label&&_.label!==""?"--and-label":""}`}),_.label&&_.label!==""&&It(_.label,25)]}),N<u.length-1&&v("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},_.label))})})})},WI="",Mk=({img:l,title:s,icon:u,date:a,description:r,button:p,className:f,isBorderless:m,isClickable:g,onClick:x,..._})=>v("div",{className:"elv-component elv-card",..._,children:A("div",{className:["card card-cta",`${f?" "+f:""}`,`${g?" is-clickable":""}`,`${m?" is-shadowless":" card-box"}`].join(""),onClick:()=>{g&&x&&x()},children:[A("div",{className:"card-content",style:{flexGrow:1},children:[v("div",{className:"card-header",children:A("div",{className:"card__text",children:[v("p",{className:"title is-3",children:It(s,54)}),r&&v("p",{children:It(r,198)})]})}),A("div",{className:"card-footer",children:[A("div",{className:"card__date",children:[u&&v(He,{...u[0]}),v("span",{className:"date",children:a})]}),p&&v("div",{className:"card__button",children:v(je,{...p})})]})]}),v("div",{className:"card-image",children:v("img",{src:l,alt:""})})]})}),BI="",Pk=({dataBig:l,bigNumber:s,bigMonth:u,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:m,className:g,isBorderless:x,isClickable:_,onClick:N,...O})=>v("div",{className:"elv-component elv-card",...O,children:v("div",{className:["card card-expiration",`${g?" "+g:""}`,`${_?" is-clickable":""}`,`${x?" is-shadowless":" card-box"}`].join(""),onClick:()=>{_&&N&&N()},children:A("div",{className:"card-expiration__content",children:[A("div",{className:"card_header",children:[l&&A("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[v("h1",{children:s}),v("h4",{children:u})]}),a&&A("div",{className:"date__small",children:[r&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:r?v(He,{icon:r[0].icon,className:"icon"}):null})}),v("p",{className:"title is-5",children:p}),v("p",{className:"title is-3",children:f})]})]}),v("div",{className:"card-footer",children:v("div",{className:"data__expiration",children:v("div",{className:"list",children:m.map(R=>A("p",{className:"title is-6",children:[R.type,": ",v("span",{children:R.text})]},Un()))})})})]})})}),qI="",Ak=({image:l,img:s,badge:u,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:m,date:g,description:x,button:_,className:N,isClickable:O,isBorderless:R,onClick:I,...z})=>v("div",{className:"elv-component elv-card",...z,children:A("div",{className:["card card-vertical",`${N?" "+N:""}`,`${O?" is-clickable":""}`,`${R?" is-shadowless":" card-box"}`].join(""),onClick:()=>{O&&I&&I()},children:[A("div",{className:"card-header",children:[l&&A("div",{className:"card__img",children:[v("img",{src:s,alt:""}),u&&v(ji,{...u[0]})]}),p&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:m?v(He,{...m[0],className:"icon"}):null})}),a&&v("div",{className:"card__avatar",children:v("img",{src:r,alt:""})})]}),A("div",{className:"card-body",children:[v("div",{className:"card__title",children:v("p",{className:"title is-5",children:f})}),A("div",{className:"card__date",children:[m&&v(He,{...m[0],className:"icon"}),v("span",{className:"date",children:g})]}),v("div",{className:"card__description",children:v("p",{children:x})})]}),v("div",{className:"card-footer",children:v("div",{className:"card__button",children:v(je,{..._})})})]})}),QI="",Lk=({fill:l,className:s,title:u,description:a,secondaryDescription:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:A("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${s||""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("p",{className:"card-activity__title",children:u}),v("p",{className:"card-activity__description",children:a}),v("p",{className:"card-activity__secondaryDescription",children:r})]})}),KI="",Ik=({iconLeft:l,icon:s,image:u,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:m,button:g,buttonsArray:x,buttonsDirection:_="row",buttons:N,className:O,isClickable:R,isBorderless:I,collapsible:z,onClick:P,...$})=>{const[X,B]=te.useState(!1);return v("div",{className:"elv-component elv-card",...$,children:A("div",{className:["card-horizontal",`${O?" "+O:""}`,`${R?" is-clickable":""}`,`${I?" is-shadowless":" card-box"}`,`${X?" is-collapsed":""}`].join(""),onClick:()=>{R&&P&&P()},children:[A("div",{className:["card-header pb-0",`${s||u?`icon--${a?"trailing":"leading"}`:""}`].join(" "),children:[z&&v("div",{className:"card__collapse mr-2",children:v("button",{className:"collapse-btn",onClick:W=>{W.stopPropagation(),B(Y=>!Y)},children:v("div",{className:"fa-solid fa-chevron-down"})})}),!a&&l&&(s||u)&&v("div",{className:"card__icon",children:s?v(He,{...s[0]}):v("img",{src:u,alt:"Card-Image"})}),A("div",{className:"card__text",children:[v("p",{className:"title is-6 mb-1",children:r}),v("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),a&&l&&(s||u)&&v("div",{className:"card__icon ml-2",children:s?v(He,{...s[0]}):v("img",{src:u,alt:"Card-Image"})}),f&&v("div",{className:"card__menu ml-auto",children:v(je,{...m})})]}),!X&&A("div",{className:"card-body px-4 pb-4 pt-0",children:[g&&v(je,{...g}),x&&v("div",{className:`card-buttons ${_==="col"?"is-col":""}`,children:N==null?void 0:N.map((W,Y)=>v(je,{...W},Un()))})]})]})})},GI="",jk=({fill:l,list:s,badge:u,button:a,className:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:A("div",{className:[`card card-user ${l==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("div",{className:"card-body",children:s.map((g,x)=>{var _;return A("div",{className:"list-item",children:[g.iconType=="img"?v(qt,{children:g.img&&v("div",{className:"list-item__img",children:v("img",{src:g.img,className:"img-p"},x)})}):v(qt,{children:g.icon&&v("div",{className:"list-item__img",children:v(He,{className:"img-p",...g.icon},x)})}),A("div",{className:"list-item__text",children:[v("p",{className:"text__subtitle",children:g.title}),v("p",{className:"text__title",children:g.subtitle})]}),g.button&&v("div",{className:"list-item__button left",children:(_=g==null?void 0:g.button)==null?void 0:_.map(N=>v(je,{...N}))}),g.menuButton&&v("div",{className:"list-item__menu",children:v(je,{...g.menuButton})})]},x)})}),u||a?A("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[u&&v(qt,{children:a?v("div",{className:"card-footer__badges card-footer__badges--button",children:u==null?void 0:u.map((g,x)=>v(ji,{...g},x))}):v("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${u.length*100<400?u.length*100:400}px`},children:u.map((g,x)=>v(ji,{...g},x))})}),a==null?void 0:a.map((g,x)=>v(je,{...g,className:"px-6"}))]}):v(qt,{})]})}),XI="",Uk=({button:l,title:s,optionButton:u,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:m,footerType:g,interLabel:x,isInterLabelCenter:_,list:N,total:O,className:R,...I})=>v("div",{className:"elv-component elv-cart",...I,children:A("div",{className:`cart ${R||""}`,children:[r==="icon"&&v("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?v(He,{type:"svg_icon",icon:f}):v(He,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&v("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:u&&v(je,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?It(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})}),A("div",{className:"cart__content",children:[m==="perception"&&A("div",{className:"perception is-flex is-flex-direction-column",children:[A("div",{className:"perception__title is-flex is-justify-content-space-between",children:[v("p",{className:"title is-5",children:s}),u&&v(je,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?It(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})]}),v("div",{className:"perception__labels",children:N==null?void 0:N.map(z=>A("div",{className:"item is-flex is-justify-content-space-between",children:[v("p",{className:"item__label",children:z.label}),v("p",{className:"item__value",children:z.value})]},Un()))}),a&&v("div",{className:"perception__sub-list",children:a==null?void 0:a.map(z=>A("div",{className:"item is-flex is-justify-content-space-between",style:{color:z.color},children:[v("p",{className:"item__label",children:z.label}),v("p",{className:"item__value",children:z.value})]},Un()))}),A("div",{className:"perception__total is-flex is-justify-content-space-between",children:[v("p",{className:"total-label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:O==null?void 0:O.label}),v("p",{className:"total-value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:O==null?void 0:O.values[0].value})]})]}),m==="bonds"&&v("div",{className:"bods is-flex is-flex-direction-column",children:N&&A("div",{className:"bonds__labels",children:[A("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[A("div",{className:"item__label",children:[v("p",{className:"micro-label is-4",children:N[0].label}),v("p",{className:"micro-sub_label",children:N[0].sub_label})]}),v("p",{className:"item__value",children:N[0].value})]}),v("div",{className:`inter-label is-flex ${_?"is-justify-content-center":""}`,children:v("p",{children:x})}),A("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[A("div",{className:"item__label",children:[v("p",{className:"micro-label",children:N[1].label}),v("p",{className:"micro-sub_label",children:N[1].sub_label})]}),v("p",{className:"item__value",children:N[1].value})]})]})}),g==="button"&&v("div",{className:"footer--button",children:l&&A("div",{className:"button-list is-flex is-flex-direction-column",children:[l[0]&&v(je,{...l[0]}),l[1]&&v(je,{...l[1]})]})}),g==="total-button"&&A("div",{className:"footer--total-button is-flex is-justify-content-space-between is-align-items-center",children:[O&&A("div",{className:"total",children:[v("p",{className:"total__label",children:It(O.label,25)}),v("p",{className:"total__value",children:It(O.values[0].value,25)})]}),l&&v(je,{...l[0]})]}),g==="big-total-button"&&A("div",{className:"footer--big-total-button is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&A(qt,{children:[v("p",{className:"total__label",children:It(O.label,25)}),v("p",{className:"total__value",children:It(O.values[0].value,25)})]}),l&&A("div",{className:"button-list is-flex is-flex-direction-column",children:[l[0]&&v(je,{...l[0]}),l[1]&&v(je,{...l[1]})]})]}),g==="big-total-button-sub"&&A("div",{className:"footer--big-total-button-sub is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&A(qt,{children:[v("p",{className:"total__label",children:It(O.label,35)}),O.sub_label&&v("p",{className:"total__sub_label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:It(O.sub_label,35)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:It(O.values[0].sub_value,35)}),O.values.map(z=>A(qt,{children:[z.sub_desc&&v("p",{className:"total__sub_desc",style:z.sub_desc_color?{color:z.sub_desc_color}:{},children:It(z.sub_desc,35)},Un()),v("p",{className:"total__value",style:z.value_color?{color:z.value_color}:{},children:It(z.value,35)})]})),O.value_description&&v("p",{className:"total__description",children:O.value_description})]}),l&&A("div",{className:"button-list is-flex is-flex-direction-column",children:[l[0]&&v(je,{...l[0]}),l[1]&&v(je,{...l[1]})]})]}),g==="total-button-sub-mobile"&&A("div",{className:"footer--total-button-sub-mobile is-flex is-justify-content-space-between is-align-items-center",children:[O&&A("div",{className:"total",children:[v("p",{className:"total__label",children:It(O.label,18)}),O.sub_label&&v("p",{className:"total__sub_label",children:It(O.sub_label,50)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",children:It(O.values[0].sub_value,21)}),v("p",{className:"total__value",children:It(O.values[0].value,16)})]}),l&&v(je,{...l[0]})]})]})]})}),ZI="",JI="",ej="",sd=({size:l="md",label:s="checkbox",value:u,name:a,className:r,key:p,defaultChecked:f,checked:m,error:g,disabled:x=!1,onCheck:_,onChange:N,...O})=>{const[R,I]=te.useState(f||!1),z=P=>{I(!R),_&&_(!R),N&&N(P)};return v("div",{className:"elv-component elv-checkbox elv-control",...O,children:A("label",{className:["e-control e-checkbox",` e-control--${l} e-checkbox--${l}`,`${g?" e-control--error e-checkbox--error":""}`,`${x?" e-control--disabled e-checkbox--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${r?" "+r:""}`].join(""),children:[v("input",{type:"checkbox",onChange:P=>{z(P)},defaultChecked:f,id:u,value:u,name:a,checked:m,className:["e-control__input e-checkbox__input"].join(""),disabled:x}),s&&v("span",{className:"label-text is-flex is-align-items-center",children:s}),v("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},tj="",ev=({contentType:l,trianglePos:s,className:u,active:a,text:r,date:p,sub_title:f,principal_item:m,sections:g,total:x,amount:_,notification:N,doubleStates:O,tripleStates:R,alert:I,...z})=>{var P,$,X,B,W,Y,V,re,ae,Q,K,ie,de,be,we,ye,pe,he,ke,We,at,ge,De,Ae,Qe,Fe,dt,lt,Ye,Pe;return v(qt,{children:a?v("div",{className:"elv-component elv-tooltip",...z,children:v("div",{className:`tooltip ${u||""}`,children:v("div",{className:`tooltip__content ${l&&"tooltip__content--"+l} ${s!=="none"&&"tp tp--"+s}`,children:A("div",{className:"labels is-flex flex-column",children:[l==="calendar"&&A(qt,{children:[v("p",{className:"labels__date",children:p}),v("p",{className:"labels__text",children:r}),v("p",{className:"labels__sub_title",children:f})]}),l==="text"&&v(qt,{children:r&&v("p",{className:"labels__text",children:r})}),l==="taxes"&&A(qt,{children:[m&&A("div",{className:"principal-item is-flex is-justify-content-space-between",children:[v("p",{className:"principal-item__label",children:m==null?void 0:m.label}),v("p",{className:"principal-item__value",children:m==null?void 0:m.value})]}),g&&v("div",{className:"tax-sections",children:g==null?void 0:g.map(ht=>A("div",{className:"tax-sections__sec",children:[ht.title&&v("div",{className:"sec-title",children:ht.title}),ht.labels.map(xt=>A("div",{className:"sec-label is-flex is-justify-content-space-between",children:[v("p",{className:"sec-label__label",children:xt.label}),v("p",{className:"sec-label__value",children:xt.value})]},xt.label))]},ht.title))}),x&&A("div",{className:"total is-flex is-justify-content-space-between",children:[v("p",{className:"total__label",children:x==null?void 0:x.label}),v("p",{className:"total__value",children:x==null?void 0:x.value})]}),_&&A("div",{className:"amount is-flex is-justify-content-space-between",children:[v("p",{className:"amount__label",children:_==null?void 0:_.label}),v("p",{className:"amount__value",children:_==null?void 0:_.value})]}),N&&v("div",{className:"tax-notification",children:N}),O&&A("div",{className:"double-state columns is-mobile",children:[A("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(P=O[0])==null?void 0:P.label}),O[0].type==="state"?A("div",{className:"state-status",style:{color:($=O[0])==null?void 0:$.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(X=O[0])==null?void 0:X.sub_label_color},children:(B=O[0])==null?void 0:B.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(W=O[0])==null?void 0:W.sub_label_color},children:(Y=O[0])==null?void 0:Y.sub_label})]}),A("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(V=O[1])==null?void 0:V.label}),O[1].type==="state"?A("div",{className:"state-status",style:{color:(re=O[1])==null?void 0:re.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(ae=O[1])==null?void 0:ae.sub_label_color},children:(Q=O[1])==null?void 0:Q.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(K=O[1])==null?void 0:K.sub_label_color},children:(ie=O[1])==null?void 0:ie.sub_label})]})]}),R&&A("div",{className:"triple-state columns is-mobile",children:[A("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(de=R[0])==null?void 0:de.label}),R[0].type==="state"?A("div",{className:"state-status",style:{color:(be=R[0])==null?void 0:be.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(we=R[0])==null?void 0:we.sub_label_color},children:(ye=R[0])==null?void 0:ye.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(pe=R[0])==null?void 0:pe.sub_label_color},children:(he=R[0])==null?void 0:he.sub_label})]}),A("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(ke=R[1])==null?void 0:ke.label}),R[1].type==="state"?A("div",{className:"state-status",style:{color:(We=R[1])==null?void 0:We.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(at=R[1])==null?void 0:at.sub_label_color},children:(ge=R[1])==null?void 0:ge.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(De=R[1])==null?void 0:De.sub_label_color},children:(Ae=R[1])==null?void 0:Ae.sub_label})]}),A("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(Qe=R[2])==null?void 0:Qe.label}),R[2].type==="state"?A("div",{className:"state-status",style:{color:(Fe=R[2])==null?void 0:Fe.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(dt=R[2])==null?void 0:dt.sub_label_color},children:(lt=R[2])==null?void 0:lt.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(Ye=R[2])==null?void 0:Ye.sub_label_color},children:(Pe=R[2])==null?void 0:Pe.sub_label})]})]}),I&&A("div",{className:"tax-alert is-flex",children:[(I==null?void 0:I.icon)&&v(He,{icon:I==null?void 0:I.icon}),v("p",{className:"tax-alert__label",children:I==null?void 0:I.label})]})]})]})})})}):v(qt,{})})},nj="",tv=({size:l="md",disabled:s=!1,label:u="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:m,className:g,...x})=>{const _=te.useRef(null),N=()=>{_.current&&_.current.checked&&f&&f()};return v("div",{className:"elv-component elv-radio elv-control",...x,children:A("label",{className:["e-control e-radio",` e-control--${l} e-radio--${l}`,`${m?" e-control--error e-radio--error":""}`,`${s?" e-control--disabled e-radio--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${g?" "+g:""}`].join(""),children:[v("input",{type:"radio",defaultChecked:p,id:r,name:a,value:r,className:["e-control__input e-radio__input","m-0","is-clickable"].join(""),onChange:()=>{N()},disabled:s,ref:_}),u&&v("span",{className:"label-text is-flex is-align-items-center",children:u}),v("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},rj="",ku=({size:l="md",fill:s="outline",disabled:u=!1,placeholder:a,dropUp:r=!1,error:p,options:f,defaultValue:m,minWidth:g,maxCharacters:x=30,onChangeSelect:_,className:N,...O})=>{const[R,I]=te.useState(""),[z,P]=te.useState(a||""),[$,X]=te.useState(!1);te.useEffect(()=>{if(m&&f){const V=f.find(re=>re.value===m);V&&(I(V.value),P(V.label))}},[m,f]);function B(){return V=>{X(!1)}}function W(){return V=>{X(!$)}}function Y(V,re){return ae=>{_&&_(V),I(V),P(re),X(!1)}}return v("div",{className:"elv-component elv-select",style:{minWidth:g},...O,children:A("div",{className:`select-container ${N||""}`,onMouseLeave:B(),children:[v("div",{className:["select-container__select",`select--${s}`,`select--${l}`,`${p?"select--error":""} ${u?"select--disabled":""}`,,].join(" "),onClick:W(),children:m!==void 0||!m?z&&v("span",{children:It(z,x)}):v("span",{children:It(a||"",x)})}),v("div",{className:`select-container__dropdown select--${l} ${$?"select-container__dropdown--active":""} ${r?"select-container__dropdown--up":""}`,children:A("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${R==a?"list__item--active":""}`,onClick:()=>Y("",a),children:It(a,x)}),f==null?void 0:f.map((V,re)=>A("li",{className:"list__item",onClick:Y(V.value,V.label),children:[V.icon&&v("i",{className:`item__icon ${V.icon}`}),It(V.label,x)]},re))]})})]})})},aj="",ij="",nv=({nameInput:l,id:s,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:g,maxLength:x,iconLeft:_,iconRight:N,isRounded:O,isLoading:R,isDisabled:I,hasError:z,className:P,onChangeInput:$,onSearch:X,...B})=>{const W=te.useRef(null),Y=re=>{re.key==="Enter"&&V()},V=()=>{var ae;const re=(ae=W.current)==null?void 0:ae.value;X&&X(re||"")};return v("div",{className:"elv-component elv-input",...B,children:v("div",{className:`field e-input ${P||""}`,children:A("div",{className:["control",`${_?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${R?" is-loading":""}`].join(""),children:[v("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${O?" is-rounded":""}`,`${z?" has-error":""}`].join(""),type:u,name:l,id:s,placeholder:p,onChange:re=>{$&&$(re)},defaultValue:f,value:m,ref:W,disabled:I,onKeyDown:Y,autoComplete:g,maxLength:x}),_&&v("span",{className:`icon is-left ${"is-"+r}`,children:v(He,{..._})}),N&&v("span",{className:`icon is-right ${"is-"+r}`,children:v(He,{...N})})]})})})},Bg=({labelDescription:l,checkbox:s,input:u,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:m,priceBottomEdit:g,onCantidadChange:x,onSaveData:_,showAmountinEdit:N,calculateOnChangeCant:O,calculateOnChangeTax:R,exento:I,disabledInputTax:z,visibleBtnRecalculate:P,visibleBtnCancelar:$,visibleBtnGuardar:X,...B})=>{const[W,Y]=te.useState(Number(u==null?void 0:u.defaultValue)||1),[V,re]=te.useState(0),[ae,Q]=te.useState(I),[K,ie]=te.useState(m==null?void 0:m.labelNumberI),de=()=>{Q(!ae)},be=()=>{ae||(N?_&&_({calculatedtax:W&&V&&(g==null?void 0:g.labelNumberA)?W*V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}):_&&_({calculatedtax:V&&(g==null?void 0:g.labelNumberA)?V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}))},we=(ke,We)=>{if(ae)return;const at=g!=null&&g.labelNumberA?g.labelNumberA:0;if(N){const ge=ke&&We&&(g==null?void 0:g.labelNumberA)?parseFloat((ke*We*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;_&&_({calculatedtax:ge,aliquot:at})}else{const ge=We&&(g==null?void 0:g.labelNumberA)?parseFloat((We*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;_&&_({calculatedtax:ge,aliquot:at})}},ye=()=>{!ae||ie(N?W&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((W*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0)},pe=ke=>{ae||(Y(parseFloat(ke.toFixed(2))),ie(N?ke&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((ke*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),O&&we(ke,V))},he=ke=>{ae||(re(parseFloat(ke.toFixed(2))),ie(N?W&&ke&&(g==null?void 0:g.labelNumberA)?parseFloat((W*ke*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:ke&&(g==null?void 0:g.labelNumberA)?parseFloat((ke*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),R&&we(W,ke))};return v("div",{className:"elv-component elv-collapsedit",...B,children:v("div",{className:["collapsedit box is-flex is-align-items-center px-4 py-2 has-background-white",`${f?" "+f:""}`].join(""),children:A("div",{className:"collapsedit__breakpoint4 is-flex is-align-items-center justify-content-space-between is-fullw ",children:[A("div",{className:"collapsedit__breakpoint3 is-align-items-center is-flex is-fullw ",children:[A("div",{className:"collapsedit__breakpoint2 is-flex is-align-items-center is-gap-4",children:[A("div",{className:"collapsedit__breakpoint1 is-flex is-align-items-center is-gap-4",children:[A("div",{className:"collapsedit__desc-cont is-flex is-gap-4 mr-4 is-align-items-center",children:[v("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:l}),v("div",{className:"collapsedit__check is-size-14px",children:s&&v(sd,{...s,defaultChecked:I,onCheck:de,className:""})})]}),v("div",{className:"collapsedit__input",children:N&&v(qt,{children:u&&A("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),v(nv,{...u,className:"",onChangeInput:ke=>pe(Number(ke.target.value))})]})})})]}),v("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&A("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),v(nv,{...a,isDisabled:z,onChangeInput:ke=>he(Number(ke.target.value))})]})})]}),A("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[g&&A("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:g.labelAliquot}),A("div",{className:"is-size-14px has-text-grey-dark",children:[g.labelNumberA,"%"]})]}),m&&A("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:m.labelImpost}),A("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",K]})]})]})]}),A("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[v("div",{className:"",children:r&&P&&v(je,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{ye()}})}),A("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[v("div",{className:"button-cancel ml-4",children:p&&$&&v(je,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),v("div",{className:"button-save",children:X&&v(je,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{be()}})})]})]})]})})})},j0=({type:l,paddingLeft:s,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,optionSelect:Q,buttonMenu:K,buttonLink:ie,buttonDetail:de,dropRightButton:be,buttonEdit:we,checkbox:ye,collapseEdit:pe,callBackCheckbox:he,radio:ke,onSaveData:We,showAmountinEdit:at,...ge})=>{const[De,Ae]=te.useState(p),[Qe,Fe]=te.useState(!1),[dt,lt]=te.useState(!1),[Ye,Pe]=te.useState(!1),[ht,xt]=te.useState(m);te.useState(W);const[Pt,Cn]=te.useState(!1),kn=()=>{Ae(!De)},bt=()=>{Pe(!Ye),xt(!ht)},Vt=te.useRef(null);te.useEffect(()=>{function Ee(qe){Vt.current&&!Vt.current.contains(qe.target)&<(!1)}return document.addEventListener("click",Ee),()=>{document.removeEventListener("click",Ee)}},[Vt]);const xe=te.useRef(null);return te.useEffect(()=>{function Ee(qe){xe.current&&!xe.current.contains(qe.target)&&Fe(!1)}return document.addEventListener("click",Ee),()=>{document.removeEventListener("click",Ee)}},[xe]),v("div",{className:`elv-component elv-collapse ${a||""}`,...ge,children:!Ye&&!ht?A("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${g?" e-collapse--colored-gray":""}`,`${_?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[A("div",{className:`e-collapse__container ${"e-collapse__container--"+l} ${s&&s==="short"?"e-collapse__container--"+l+"--short":"e-collapse__container--"+l+"--long"} ${m?"e-collapse__container--disabled":""} ${x?"e-collapse__container--borderBottom":""} ${N&&!z&&!$?"e-collapse__container--"+l+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[A("div",{className:"left-container is-flex",style:{cursor:u&&!m?"pointer":"auto"},onClick:()=>{u&&!m&&kn()},children:[u&&v("div",{className:"left-container__dropIcon",style:O&&{paddingTop:"28px"},children:v(He,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${De&&"rotate"}`})}),A("div",{className:"left-container__texts is-flex is-flex-direction-column is-justify-content-center",children:[O&&A("div",{className:"state-title is-flex",style:{color:O==null?void 0:O.color},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-title__text",children:O==null?void 0:O.label})]}),A("div",{className:"title-container is-flex is-align-items-center",children:[I&&v(He,{...I}),P&&v(ji,{...P}),N&&v("p",{className:`title-container__title title-container__title${R&&R=="regular"?"--regular":"--semibold"}`,children:N})]}),z&&v("p",{className:"description",children:z}),$&&v("p",{className:"details",children:$}),(X||B)&&A("div",{className:"date is-flex",children:[X&&A("span",{className:"date__days is-flex is-align-items-center",children:[v(He,{icon:"fa-solid fa-calendar-days"}),v("p",{children:X})]}),B&&A("span",{className:"date__time is-flex is-align-items-center",children:[v(He,{icon:"fa-solid fa-clock"}),v("p",{children:B})]})]})]})]}),A("div",{className:"right-container is-flex is-align-items-center",children:[de&&A("span",{className:"right-container__buttonDetail",ref:xe,children:[v(je,{...de.button,onClick:()=>{Fe(!Qe),de.button.onClick&&de.button.onClick()}}),de.tooltip?v("div",{className:`detail-tooltip ${de.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:v(ev,{...de.tooltip,active:Qe})}):v(qt,{})]}),A("div",{className:"right-container__price is-flex",children:[ae&&ae.checkbox&&v("div",{className:"is-flex is-align-items-center",children:v(sd,{...ae.checkbox})}),A("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[V&&A("span",{className:"col-price__top is-flex is-align-items-center",children:[v("p",{className:"desc",children:V.description}),A("p",{className:"value",children:["$ ",V.value]})]}),W&&A("p",{className:"col-price__price",style:Y&&Y!=""?{color:Y}:{color:"none"},children:["$",W]}),re&&A("span",{className:"col-price__bottom is-flex is-align-items-center",children:[v("p",{className:"desc",children:re.description}),A("p",{className:"value",children:["$ ",re.value]})]})]})]}),Q&&v("div",{className:"right-container__optionSelect is-flex",children:v(ku,{...Q})}),K&&A("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:Vt,children:[v("span",{className:"menu-button ",children:v(je,{...K.button,onClick:()=>{lt(!dt),K.onEllipse&&K.onEllipse()}})}),dt&&K.menuDropComponent&&v("div",{className:"menu-drop-component is-absolute",children:K.menuDropComponent}),K.select&&v("div",{className:"menu-select",style:dt?{display:"block"}:{display:"none"},children:v(ku,{...K.select})})]}),be&&v("div",{className:"right-container__dropLeftButton is-flex",children:v(je,{...be})}),ie&&v("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:v(je,{...ie})}),we||ye||ke?A("div",{className:"right-container__editCheckbox is-flex",children:[we&&v("div",{className:"buttonEdit is-flex is-align-items-center",children:v(je,{...we,onClick:()=>{bt()}})}),ye&&v("div",{className:"_checkbox is-flex is-align-items-center",children:v(sd,{...ye,onCheck:Ee=>{Cn(Ee),he&&he(Ee?{type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:K,buttonLink:ie,buttonDetail:de,dropRightButton:be,buttonEdit:we}:{})}})}),ke&&v("div",{className:"_radio is-flex is-align-items-center",children:v(tv,{...ke,onCheck:()=>{he&&he({type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:K,buttonLink:ie,buttonDetail:de,dropRightButton:be,buttonEdit:we}),ke.onCheck&&ke.onCheck()}})})]}):v(qt,{})]})]}),f&&f.map(Ee=>v(j0,{...Ee,show:De},Un()))]}):v("div",{className:"",children:v(Bg,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:V==null?void 0:V.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:re==null?void 0:re.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(Ee){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(Ee){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(Ee){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){Pe(!1),xt(!1)}},onSaveData:Ee=>{We&&We({aliquot:Ee.aliquot,calculatedtax:Ee.calculatedtax}),Pe(!1),xt(!1)},showAmountinEdit:at})})})},oj="",U0=({type:l,paddingLeft:s,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:Q,buttonLink:K,buttonDetail:ie,dropRightButton:de,buttonEdit:be,checkbox:we,collapseEdit:ye,callBackCheckbox:pe,radio:he,onSaveData:ke,showAmountinEdit:We,...at})=>{const[ge,De]=te.useState(Boolean(p)),[Ae,Qe]=te.useState(!1),Fe=te.useRef(null);te.useEffect(()=>{if(!Ae)return;function Pe(ht){Fe.current&&!Fe.current.contains(ht.target)&&Qe(!1)}return document.addEventListener("click",Pe),()=>document.removeEventListener("click",Pe)},[Ae]);const dt=()=>{m||De(Pe=>!Pe)},lt=Pe=>{Pe&&Pe.stopPropagation&&Pe.stopPropagation()},Ye=Pe=>{pe&&pe(Pe?{type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:Q,buttonLink:K,buttonDetail:ie,dropRightButton:de,buttonEdit:be}:{})};return A("div",{className:`elv-component elv-collapse-mobile ${a!=null?a:""}`,...at,children:[A("div",{className:"collapse-mobile__header",onClick:dt,role:"button","aria-expanded":ge,tabIndex:0,children:[A("div",{className:"collapse-mobile__header-left is-flex is-align-items-center",children:[O&&A("div",{className:"state-title is-flex",style:{color:O.color},children:[v(He,{icon:"fa-solid fa-circle"}),v("p",{className:"state-title__text",children:O.label})]}),A("div",{className:"title-container is-flex is-flex-direction-column",children:[A("div",{className:"title-container__top is-flex is-align-items-center",children:[I&&v(He,{...I}),P&&v(ji,{...P}),N&&v("p",{className:`title-container__title ${R&&R==="regular"?"title-container__title--regular":"title-container__title--semibold"}`,children:N})]}),(z||$)&&v("p",{className:"title-container__subtitle",children:(z!=null?z:$).toString().split(`
|
|
29
|
+
Check the top-level render call using <`+$e+">.")}return Oe}}function _a(G,Oe){{if(!G._store||G._store.validated||G.key!=null)return;G._store.validated=!0;var $e=bl(Oe);if(zr[$e])return;zr[$e]=!0;var mt="";G&&G._owner&&G._owner!==Ct.current&&(mt=" It was passed a child from "+we(G._owner.type)+"."),gn(G),ae('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$e,mt),gn(null)}}function wr(G,Oe){{if(typeof G!="object")return;if(Array.isArray(G))for(var $e=0;$e<G.length;$e++){var mt=G[$e];pn(mt)&&_a(mt,Oe)}else if(pn(G))G._store&&(G._store.validated=!0);else if(G){var $t=V(G);if(typeof $t=="function"&&$t!==G.entries)for(var gt=$t.call(G),zt;!(zt=gt.next()).done;)pn(zt.value)&&_a(zt.value,Oe)}}}function si(G){{var Oe=G.type;if(Oe==null||typeof Oe=="string")return;var $e;if(typeof Oe=="function")$e=Oe.propTypes;else if(typeof Oe=="object"&&(Oe.$$typeof===x||Oe.$$typeof===O))$e=Oe.propTypes;else return;if($e){var mt=we(Oe);qe($e,G.props,"prop",mt,G)}else if(Oe.PropTypes!==void 0&&!fn){fn=!0;var $t=we(Oe);ae("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$t||"Unknown")}typeof Oe.getDefaultProps=="function"&&!Oe.getDefaultProps.isReactClassApproved&&ae("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(G){{for(var Oe=Object.keys(G.props),$e=0;$e<Oe.length;$e++){var mt=Oe[$e];if(mt!=="children"&&mt!=="key"){gn(G),ae("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",mt),gn(null);break}}G.ref!==null&&(gn(G),ae("Invalid attribute `ref` supplied to `React.Fragment`."),gn(null))}}function Lr(G,Oe,$e,mt,$t,gt){{var zt=ie(G);if(!zt){var Wt="";(G===void 0||typeof G=="object"&&G!==null&&Object.keys(G).length===0)&&(Wt+=" 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 hn=_n($t);hn?Wt+=hn:Wt+=Fn();var an;G===null?an="null":Array.isArray(G)?an="array":G!==void 0&&G.$$typeof===a?(an="<"+(we(G.type)||"Unknown")+" />",Wt=" Did you accidentally export a JSX literal instead of a component?"):an=typeof G,ae("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",an,Wt)}var vn=ft(G,Oe,$e,$t,gt);if(vn==null)return vn;if(zt){var ea=Oe.children;if(ea!==void 0)if(mt)if(Array.isArray(ea)){for(var Yr=0;Yr<ea.length;Yr++)wr(ea[Yr],G);Object.freeze&&Object.freeze(ea)}else ae("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,G)}return G===l.Fragment?fa(vn):si(vn),vn}}function Hr(G,Oe,$e){return Lr(G,Oe,$e,!0)}function za(G,Oe,$e){return Lr(G,Oe,$e,!1)}var Ir=za,Hi=Hr;l.jsx=Ir,l.jsxs=Hi}()}(Wg)),Wg}(function(l){process.env.NODE_ENV==="production"?l.exports=Sk():l.exports=kk()})(Zh);const qt=Zh.exports.Fragment,v=Zh.exports.jsx,A=Zh.exports.jsxs,He=({icon:l,className:s,type:u,size:a="16px",size_height:r,color:p,onClick:f,...m})=>{const g=te.useRef(null);te.useEffect(()=>{u=="svg_icon"&&x(l).then(_=>{g.current&&l&&(g.current.innerHTML=_)})},[g.current,l]);function x(_){return fetch(_).then(N=>N.text())}return u==="svg_icon"?v("span",{className:`svg_icon ${s}`,ref:g,style:{fill:p,width:a,height:r},onClick:()=>{f&&f()},...m}):v("div",{className:"elv-component elv-icon",...m,children:v("i",{className:`fa_icon ${l} ${s}`,style:{fontSize:a,color:p},onClick:()=>{f&&f()}})})},je=({color:l="primary",type:s="button",size:u="normal",fill:a="solid",isFullWidth:r,isRounded:p,isOnlyIcon:f,loading:m=!1,disabled:g=!1,icon:x,icon_type:_="fa_icon",icon_size:N,icon_size_height:O,icon_color:R,icon_className:I,trailingIcon:z=!1,label:P,onClick:$,className:X,...B})=>{const W=Y=>{Y.stopPropagation(),$&&$()};return v("div",{className:`elv-component elv-button ${r?"is-fullw":""}`,...B,children:v("button",{type:s,className:["button",`${a==="solid"||a==="outline"?" is-"+l+"-600":""}`,`${a==="link"?" is-linked":""}`,`${a==="outline"?" is-outlined":""}`,`${a==="unstyled"?" is-unstyled":""}`,`${u!=="normal"?" is-"+u:""}`,`${z?" button__icon--trailing":""}`,`${m?" is-loading":""}`,`${r?" is-fullwidth":""}`,`${f?" is-only-icon":""}`,`${p?" is-rounded":""}`,`${X?" "+X:""}`].join(""),onClick:Y=>{W(Y)},disabled:g,children:v("div",{className:"button-content is-flex",children:z?A(qt,{children:[P,x&&v(He,{icon:x,type:_,color:R,size:N,size_height:O,className:"button__icon "+I})]}):A(qt,{children:[x&&v(He,{icon:x,type:_,color:R,size:N,size_height:O,className:"button__icon "+I}),P]})})})})},UI="",Dk=({type:l,className:s,fill:u,accent:a,icon:r,labelTitle:p,label:f,key:m,isButton:g,button:x,..._})=>v("div",{className:"elv-component elv-notification",..._,children:A("div",{className:`notification --type-${l} --fill-${u} --accent-${a} ${s||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),A("div",{className:"notification__text",children:[p!==void 0&&v("div",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:p}})}),v("div",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:f}})}),g&&x!==void 0&&v("div",{className:"notification__button",children:v(je,{...x[0]})})]})]})},"elv-alert"+m?m:""),FI="",Nk=({type:l,className:s,fill:u,accent:a,icon:r,renglones:p,key:f,isButton:m,button:g,...x})=>v("div",{className:"elv-component elv-notification",...x,children:A("div",{className:`notification --type-${l} --fill-${u} --accent-${a} ${s||""}`,children:[r&&v("div",{className:"notification__icon",children:v("i",{className:`__icon ${r}`})}),A("div",{className:"notification__text",children:[p&&p.map((_,N)=>A("div",{children:[_.labelTitle!==void 0&&v("div",{className:"__title",children:v("div",{dangerouslySetInnerHTML:{__html:_.labelTitle}})}),v("div",{className:"__label",children:v("div",{dangerouslySetInnerHTML:{__html:_.label}})})]},N)),m&&g!==void 0&&v("div",{className:"notification__button",children:v(je,{...g[0]})})]})]})},"elv-alert"+f?f:""),$I="",ji=({color:l,className:s,text:u,colorText:a,...r})=>v("div",{className:"elv-component elv-badge",...r,children:v("span",{style:{backgroundColor:l,color:a},className:`badge badge--${l} ${s||""}`,children:u})}),zI="",L0=({color:l="primary",size:s="normal",max:u,value:a,className:r,...p})=>v("div",{className:"elv-component elv-progressbar",...p,children:v("div",{className:["progressbar ",`${r?" "+r:""}`].join(""),children:v("progress",{className:[`progress progress--${s}`,`${" is-"+l}`].join(""),value:a,max:u})})}),HI="",Ek=({title:l,option:s,onSeeAll:u,className:a})=>v("div",{className:"elv-component elv-assistancediary",children:A("div",{className:["assistancediary is-flex is-flex-direction-column p-5 is-gap-5 box",`${a?" "+a:""}`].join(""),children:[v("div",{className:"is-size-4 has-text-weight-bold has-text-grey-dark",children:l}),v("div",{className:"is-flex is-flex-direction-column is-gap-4",children:s==null?void 0:s.map((r,p)=>A("div",{className:"is-flex is-size-7 is-justify-content-space-between py-2 is-align-items-center is-gap-2",children:[v("div",{className:"has-text-grey-dark has-text-weight-medium",children:r.detail}),v("div",{className:"assistancediary__date has-text-weight-medium",children:r.date}),v("div",{className:"assistancediary__widthstate p-1",children:v("div",{className:"assistancediary__status has-text-centered",style:{backgroundColor:r.stateBackground},children:r.state})})]},"assistancediary_option"+p))}),v("div",{children:v(je,{label:"Ver todo",fill:"unstyled",icon:"fa-solid fa-arrow-right",trailingIcon:!0,className:"is-size-7 has-text-weight-medium has-text-grey px-4 py-3",onClick:()=>u&&u()})})]})}),YI="",Tk=({option:l,option2:s,option3:u,Call:a,className:r})=>{const[p,f]=te.useState(0),[m,g]=te.useState(0),[x,_]=te.useState(0),[N,O]=te.useState(null),[R,I]=te.useState(null),[z,P]=te.useState(null),[$,X]=te.useState(null);te.useEffect(()=>{const K=new Date().getWeek(),ie=K-1,de=a.filter(at=>at.date.getWeek()===K),be=a.filter(at=>at.date.getWeek()===ie);f(de.length),g(be.length);const we=be.length!==0?(de.length-be.length)/be.length:0,ye=parseFloat(we.toFixed(2));_(ye);const pe=a[a.length-1];if(pe){const at=new Date,ge=pe.arrivalTime,De=pe.serviceStartTime||ge,Ae=(De||at).getTime()-ge.getTime();O(Ae/(1e3*60));const Qe=at.getTime()-(De||ge).getTime(),Fe=Math.floor(Qe/(1e3*60));I(Fe);const dt=V(de),lt=V(be),Ye=Y(dt,lt,de.length,be.length);X(Ye)}else O(null),I(null);const he=re(de),ke=re(be),We=ae(he,ke,de.length,be.length);P(We)},[a]),te.useEffect(()=>{const Q=setInterval(()=>{const K=a[a.length-1];if(K&&K.serviceStartTime){const de=new Date().getTime()-K.serviceStartTime.getTime();I(de/6e4)}else I(null)},1e3);return()=>clearInterval(Q)},[a]);const B=R!==null?`${Math.floor(R/60)}:${(R%60).toFixed(0).padStart(2,"0")}`:"N/A",W=N!==null?`${Math.floor(N/60)}:${(N%60).toFixed(0).padStart(2,"0")}`:"N/A";z!==null&&`${Math.floor(z/60)}${(z%60).toFixed(0).padStart(2,"0")}`;const Y=(Q,K,ie,de)=>{const be=ie>0?ie:1,we=de>0?de:1,ye=(Q/be-K/we)/(1e3*60);return parseFloat(ye.toFixed(2))/100},V=Q=>Q.reduce((K,ie)=>{if(ie.serviceStartTime&&ie.arrivalTime){const de=new Date().getTime()-ie.serviceStartTime.getTime();return K+de}return K},0),re=Q=>Q.reduce((K,ie)=>{if(ie.serviceStartTime&&ie.arrivalTime){const de=ie.serviceStartTime.getTime()-ie.arrivalTime.getTime();return K+de}return K},0),ae=(Q,K,ie,de)=>{const be=ie>0?ie:1,we=de>0?de:1,ye=(Q/be-K/we)/(1e3*60);return parseFloat(ye.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 K=new Date(Q.getFullYear(),0,1),ie=Math.ceil(((Q.getTime()-K.getTime())/864e5+1)/7);return ie},v("div",{className:"elv-component elv-averageAttended",children:A("div",{className:["averageAttended box is-flex is-gap-4 is-justify-content-space-between",`${r?" "+r:""}`].join(""),children:[l==null?void 0:l.map((Q,K)=>A("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(He,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),A("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:p}),A("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${x<0?Q.labelButtom:Q.labelTop}${x.toString()}%`,color:Q.color,colorText:`${x<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]},"averageAttended__option"+K)),s==null?void 0:s.map((Q,K)=>A("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(He,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),A("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),W!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${W}${Q.amountCall}`}),A("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${z!==null&&z<0?Q.labelButtom:Q.labelTop}${z!==null&&z.toFixed(1)}%`,color:Q.color,colorText:z!=null&&z<0?Q.colorText:Q.colorTextPositive,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]},"averageAttended__option2"+K)),u==null?void 0:u.map((Q,K)=>A("div",{className:"averageAttended__option is-flex is-align-items-center is-fullw",children:[v("div",{children:v(He,{icon:Q.icon,color:Q.iconColor,className:"is-size-1"})}),A("div",{className:"is-flex is-flex-direction-column is-gap-4",children:[v("div",{className:"averageAttended__colorDark has-text-weight-semibold",children:Q.status}),B!==null&&v("div",{className:"averageAttended__colorDark has-text-weight-bold is-size-3",children:`${B}${Q.amountCall}`}),A("div",{className:"is-flex is-align-items-center",children:[v(ji,{text:`${$!=null&&$<0?Q.labelButtom:Q.labelTop}${$!=null&&$.toFixed(1)}%`,color:Q.color,colorText:`${$!=null&&$<0?Q.colorText:Q.colorTextPositive}`,className:"badge"}),v("p",{className:"ml-3 is-size-14px has-text-grey",children:Q.description})]})]})]},"averageAttended__option3"+K))]})})},VI="";function It(l,s){return l.length<s?l:l.slice(0,s)+"..."}function Un(){return`${Math.random().toString(36).substr(2,9)}`}function I0(l){return l<1024?l+" bytes":l<1024*1024?(l/1024).toFixed(2)+" KB":l<1024*1024*1024?(l/(1024*1024)).toFixed(2)+" MB":(l/(1024*1024*1024)).toFixed(2)+" GB"}function Ok(l){const s=l.split(".");switch(s[s.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 Rk=({type:l,defaultActiveLabel:s,items:u,handleActive:a,className:r,...p})=>{const f=u.find(_=>_.label===s),[m,g]=te.useState(f),x=_=>{g(_),a&&a(_),_.onClick&&_.onClick()};return v("div",{className:"elv-component elv-nav_bc",...p,children:v("nav",{"aria-label":"nav_bc",className:`nav_bc nav_bc--${l} ${r||""}`,children:v("ol",{className:"bc-list",children:u.map((_,N)=>A("li",{className:`bc-item ${_===m?"bc-item--active":""}`,children:[A("p",{className:"bc-item__bc-link",onClick:()=>{x(_)},children:[_.icon&&_.icon!==""&&v("i",{className:`${_.icon} item-icon ${_.label&&_.label!==""?"--and-label":""}`}),_.label&&_.label!==""&&It(_.label,25)]}),N<u.length-1&&v("i",{className:"fa-solid fa-chevron-right bc-item__chebron"})]},_.label))})})})},WI="",Mk=({img:l,title:s,icon:u,date:a,description:r,button:p,className:f,isBorderless:m,isClickable:g,onClick:x,..._})=>v("div",{className:"elv-component elv-card",..._,children:A("div",{className:["card card-cta",`${f?" "+f:""}`,`${g?" is-clickable":""}`,`${m?" is-shadowless":" card-box"}`].join(""),onClick:()=>{g&&x&&x()},children:[A("div",{className:"card-content",style:{flexGrow:1},children:[v("div",{className:"card-header",children:A("div",{className:"card__text",children:[v("p",{className:"title is-3",children:It(s,54)}),r&&v("p",{children:It(r,198)})]})}),A("div",{className:"card-footer",children:[A("div",{className:"card__date",children:[u&&v(He,{...u[0]}),v("span",{className:"date",children:a})]}),p&&v("div",{className:"card__button",children:v(je,{...p})})]})]}),v("div",{className:"card-image",children:v("img",{src:l,alt:""})})]})}),BI="",Pk=({dataBig:l,bigNumber:s,bigMonth:u,dataSmall:a,iconCalendar:r,day:p,fullDay:f,list:m,className:g,isBorderless:x,isClickable:_,onClick:N,...O})=>v("div",{className:"elv-component elv-card",...O,children:v("div",{className:["card card-expiration",`${g?" "+g:""}`,`${_?" is-clickable":""}`,`${x?" is-shadowless":" card-box"}`].join(""),onClick:()=>{_&&N&&N()},children:A("div",{className:"card-expiration__content",children:[A("div",{className:"card_header",children:[l&&A("div",{className:["date__big",`${a?"mb-20":""}`].join(" "),children:[v("h1",{children:s}),v("h4",{children:u})]}),a&&A("div",{className:"date__small",children:[r&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:r?v(He,{icon:r[0].icon,className:"icon"}):null})}),v("p",{className:"title is-5",children:p}),v("p",{className:"title is-3",children:f})]})]}),v("div",{className:"card-footer",children:v("div",{className:"data__expiration",children:v("div",{className:"list",children:m.map(R=>A("p",{className:"title is-6",children:[R.type,": ",v("span",{children:R.text})]},Un()))})})})]})})}),qI="",Ak=({image:l,img:s,badge:u,avatar:a,imgAvatar:r,icon:p,title:f,iconDate:m,date:g,description:x,button:_,className:N,isClickable:O,isBorderless:R,onClick:I,...z})=>v("div",{className:"elv-component elv-card",...z,children:A("div",{className:["card card-vertical",`${N?" "+N:""}`,`${O?" is-clickable":""}`,`${R?" is-shadowless":" card-box"}`].join(""),onClick:()=>{O&&I&&I()},children:[A("div",{className:"card-header",children:[l&&A("div",{className:"card__img",children:[v("img",{src:s,alt:""}),u&&v(ji,{...u[0]})]}),p&&v("div",{className:"card__icon",children:v("div",{className:"icon",children:m?v(He,{...m[0],className:"icon"}):null})}),a&&v("div",{className:"card__avatar",children:v("img",{src:r,alt:""})})]}),A("div",{className:"card-body",children:[v("div",{className:"card__title",children:v("p",{className:"title is-5",children:f})}),A("div",{className:"card__date",children:[m&&v(He,{...m[0],className:"icon"}),v("span",{className:"date",children:g})]}),v("div",{className:"card__description",children:v("p",{children:x})})]}),v("div",{className:"card-footer",children:v("div",{className:"card__button",children:v(je,{..._})})})]})}),QI="",Lk=({fill:l,className:s,title:u,description:a,secondaryDescription:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:A("div",{className:["card-activity is-flex is-flex-direction-column",`${p?" is-clickable":""}`,` ${s||""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("p",{className:"card-activity__title",children:u}),v("p",{className:"card-activity__description",children:a}),v("p",{className:"card-activity__secondaryDescription",children:r})]})}),KI="",Ik=({iconLeft:l,icon:s,image:u,trailingIcon:a,title:r,subtitle:p,menu:f,menuButton:m,button:g,buttonsArray:x,buttonsDirection:_="row",buttons:N,className:O,isClickable:R,isBorderless:I,collapsible:z,onClick:P,...$})=>{const[X,B]=te.useState(!1);return v("div",{className:"elv-component elv-card",...$,children:A("div",{className:["card-horizontal",`${O?" "+O:""}`,`${R?" is-clickable":""}`,`${I?" is-shadowless":" card-box"}`,`${X?" is-collapsed":""}`].join(""),onClick:()=>{R&&P&&P()},children:[A("div",{className:["card-header pb-0",`${s||u?`icon--${a?"trailing":"leading"}`:""}`].join(" "),children:[z&&v("div",{className:"card__collapse",children:v("button",{className:"collapse-btn",onClick:W=>{W.stopPropagation(),B(Y=>!Y)},children:v("div",{className:"fa-solid fa-chevron-down"})})}),!a&&l&&(s||u)&&v("div",{className:"card__icon",children:s?v(He,{...s[0]}):v("img",{src:u,alt:"Card-Image"})}),A("div",{className:"card__text",children:[v("p",{className:"title is-6 mb-1",children:r}),v("p",{className:"is-size-14px has-tc-truegray-500",children:p})]}),a&&l&&(s||u)&&v("div",{className:"card__icon ml-2",children:s?v(He,{...s[0]}):v("img",{src:u,alt:"Card-Image"})}),f&&v("div",{className:"card__menu ml-auto",children:v(je,{...m})})]}),!X&&A("div",{className:"card-body px-4 pb-4 pt-0",children:[g&&v(je,{...g}),x&&v("div",{className:`card-buttons ${_==="col"?"is-col":""}`,children:N==null?void 0:N.map((W,Y)=>v(je,{...W},Un()))})]})]})})},GI="",jk=({fill:l,list:s,badge:u,button:a,className:r,isClickable:p,onClick:f,...m})=>v("div",{className:"elv-component elv-card",...m,children:A("div",{className:[`card card-user ${l==="outline"&&"outline"} ${r||""}`,`${p?" is-clickable":""}`].join(""),onClick:()=>{p&&f&&f()},children:[v("div",{className:"card-body",children:s.map((g,x)=>{var _;return A("div",{className:"list-item",children:[g.iconType=="img"?v(qt,{children:g.img&&v("div",{className:"list-item__img",children:v("img",{src:g.img,className:"img-p"},x)})}):v(qt,{children:g.icon&&v("div",{className:"list-item__img",children:v(He,{className:"img-p",...g.icon},x)})}),A("div",{className:"list-item__text",children:[v("p",{className:"text__subtitle",children:g.title}),v("p",{className:"text__title",children:g.subtitle})]}),g.button&&v("div",{className:"list-item__button left",children:(_=g==null?void 0:g.button)==null?void 0:_.map(N=>v(je,{...N}))}),g.menuButton&&v("div",{className:"list-item__menu",children:v(je,{...g.menuButton})})]},x)})}),u||a?A("div",{className:"card-footer p-4 mt-4 is-flex is-justify-content-space-between",children:[u&&v(qt,{children:a?v("div",{className:"card-footer__badges card-footer__badges--button",children:u==null?void 0:u.map((g,x)=>v(ji,{...g},x))}):v("div",{className:["card-footer__badges "].join(""),style:{maxWidth:`${u.length*100<400?u.length*100:400}px`},children:u.map((g,x)=>v(ji,{...g},x))})}),a==null?void 0:a.map((g,x)=>v(je,{...g,className:"px-6"}))]}):v(qt,{})]})}),XI="",Uk=({button:l,title:s,optionButton:u,sub_list:a,wallet:r,walletIcon:p,walletSVG:f,contentType:m,footerType:g,interLabel:x,isInterLabelCenter:_,list:N,total:O,className:R,...I})=>v("div",{className:"elv-component elv-cart",...I,children:A("div",{className:`cart ${R||""}`,children:[r==="icon"&&v("div",{className:"cart__wallet--icon is-flex is-align-items-center is-justify-content-center",children:f?v(He,{type:"svg_icon",icon:f}):v(He,{icon:p||"fa-solid fa-wallet"})}),r==="dropdownButton"&&v("div",{className:"cart__wallet--dropdownButton is-flex is-justify-content-end",children:u&&v(je,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?It(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})}),A("div",{className:"cart__content",children:[m==="perception"&&A("div",{className:"perception is-flex is-flex-direction-column",children:[A("div",{className:"perception__title is-flex is-justify-content-space-between",children:[v("p",{className:"title is-5",children:s}),u&&v(je,{type:u.type,size:u.size,fill:u.fill,loading:!1,disabled:u.disabled,icon:u.icon,label:u.label!==void 0?It(u.label,25):"",trailingIcon:u.trailingIcon,onClick:u.onClick})]}),v("div",{className:"perception__labels",children:N==null?void 0:N.map(z=>A("div",{className:"item is-flex is-justify-content-space-between",children:[v("p",{className:"item__label",children:z.label}),v("p",{className:"item__value",children:z.value})]},Un()))}),a&&v("div",{className:"perception__sub-list",children:a==null?void 0:a.map(z=>A("div",{className:"item is-flex is-justify-content-space-between",style:{color:z.color},children:[v("p",{className:"item__label",children:z.label}),v("p",{className:"item__value",children:z.value})]},Un()))}),A("div",{className:"perception__total is-flex is-justify-content-space-between",children:[v("p",{className:"total-label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:O==null?void 0:O.label}),v("p",{className:"total-value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:O==null?void 0:O.values[0].value})]})]}),m==="bonds"&&v("div",{className:"bods is-flex is-flex-direction-column",children:N&&A("div",{className:"bonds__labels",children:[A("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[A("div",{className:"item__label",children:[v("p",{className:"micro-label is-4",children:N[0].label}),v("p",{className:"micro-sub_label",children:N[0].sub_label})]}),v("p",{className:"item__value",children:N[0].value})]}),v("div",{className:`inter-label is-flex ${_?"is-justify-content-center":""}`,children:v("p",{children:x})}),A("div",{className:"item is-flex is-justify-content-space-between is-align-items-center",children:[A("div",{className:"item__label",children:[v("p",{className:"micro-label",children:N[1].label}),v("p",{className:"micro-sub_label",children:N[1].sub_label})]}),v("p",{className:"item__value",children:N[1].value})]})]})}),g==="button"&&v("div",{className:"footer--button",children:l&&A("div",{className:"button-list is-flex is-flex-direction-column",children:[l[0]&&v(je,{...l[0]}),l[1]&&v(je,{...l[1]})]})}),g==="total-button"&&A("div",{className:"footer--total-button is-flex is-justify-content-space-between is-align-items-center",children:[O&&A("div",{className:"total",children:[v("p",{className:"total__label",children:It(O.label,25)}),v("p",{className:"total__value",children:It(O.values[0].value,25)})]}),l&&v(je,{...l[0]})]}),g==="big-total-button"&&A("div",{className:"footer--big-total-button is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&A(qt,{children:[v("p",{className:"total__label",children:It(O.label,25)}),v("p",{className:"total__value",children:It(O.values[0].value,25)})]}),l&&A("div",{className:"button-list is-flex is-flex-direction-column",children:[l[0]&&v(je,{...l[0]}),l[1]&&v(je,{...l[1]})]})]}),g==="big-total-button-sub"&&A("div",{className:"footer--big-total-button-sub is-flex is-flex-direction-column is-justify-content-center is-align-items-center",children:[O&&A(qt,{children:[v("p",{className:"total__label",children:It(O.label,35)}),O.sub_label&&v("p",{className:"total__sub_label",style:O!=null&&O.label_color?{color:O.label_color}:{},children:It(O.sub_label,35)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",style:O!=null&&O.values[0].value_color?{color:O.values[0].value_color}:{},children:It(O.values[0].sub_value,35)}),O.values.map(z=>A(qt,{children:[z.sub_desc&&v("p",{className:"total__sub_desc",style:z.sub_desc_color?{color:z.sub_desc_color}:{},children:It(z.sub_desc,35)},Un()),v("p",{className:"total__value",style:z.value_color?{color:z.value_color}:{},children:It(z.value,35)})]})),O.value_description&&v("p",{className:"total__description",children:O.value_description})]}),l&&A("div",{className:"button-list is-flex is-flex-direction-column",children:[l[0]&&v(je,{...l[0]}),l[1]&&v(je,{...l[1]})]})]}),g==="total-button-sub-mobile"&&A("div",{className:"footer--total-button-sub-mobile is-flex is-justify-content-space-between is-align-items-center",children:[O&&A("div",{className:"total",children:[v("p",{className:"total__label",children:It(O.label,18)}),O.sub_label&&v("p",{className:"total__sub_label",children:It(O.sub_label,50)}),O.values[0].sub_value&&v("p",{className:"total__sub_value",children:It(O.values[0].sub_value,21)}),v("p",{className:"total__value",children:It(O.values[0].value,16)})]}),l&&v(je,{...l[0]})]})]})]})}),ZI="",JI="",ej="",sd=({size:l="md",label:s="checkbox",value:u,name:a,className:r,key:p,defaultChecked:f,checked:m,error:g,disabled:x=!1,onCheck:_,onChange:N,...O})=>{const[R,I]=te.useState(f||!1),z=P=>{I(!R),_&&_(!R),N&&N(P)};return v("div",{className:"elv-component elv-checkbox elv-control",...O,children:A("label",{className:["e-control e-checkbox",` e-control--${l} e-checkbox--${l}`,`${g?" e-control--error e-checkbox--error":""}`,`${x?" e-control--disabled e-checkbox--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${r?" "+r:""}`].join(""),children:[v("input",{type:"checkbox",onChange:P=>{z(P)},defaultChecked:f,id:u,value:u,name:a,checked:m,className:["e-control__input e-checkbox__input"].join(""),disabled:x}),s&&v("span",{className:"label-text is-flex is-align-items-center",children:s}),v("span",{className:["e-control__checkmark e-checkbox__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},tj="",ev=({contentType:l,trianglePos:s,className:u,active:a,text:r,date:p,sub_title:f,principal_item:m,sections:g,total:x,amount:_,notification:N,doubleStates:O,tripleStates:R,alert:I,...z})=>{var P,$,X,B,W,Y,V,re,ae,Q,K,ie,de,be,we,ye,pe,he,ke,We,at,ge,De,Ae,Qe,Fe,dt,lt,Ye,Pe;return v(qt,{children:a?v("div",{className:"elv-component elv-tooltip",...z,children:v("div",{className:`tooltip ${u||""}`,children:v("div",{className:`tooltip__content ${l&&"tooltip__content--"+l} ${s!=="none"&&"tp tp--"+s}`,children:A("div",{className:"labels is-flex flex-column",children:[l==="calendar"&&A(qt,{children:[v("p",{className:"labels__date",children:p}),v("p",{className:"labels__text",children:r}),v("p",{className:"labels__sub_title",children:f})]}),l==="text"&&v(qt,{children:r&&v("p",{className:"labels__text",children:r})}),l==="taxes"&&A(qt,{children:[m&&A("div",{className:"principal-item is-flex is-justify-content-space-between",children:[v("p",{className:"principal-item__label",children:m==null?void 0:m.label}),v("p",{className:"principal-item__value",children:m==null?void 0:m.value})]}),g&&v("div",{className:"tax-sections",children:g==null?void 0:g.map(ht=>A("div",{className:"tax-sections__sec",children:[ht.title&&v("div",{className:"sec-title",children:ht.title}),ht.labels.map(xt=>A("div",{className:"sec-label is-flex is-justify-content-space-between",children:[v("p",{className:"sec-label__label",children:xt.label}),v("p",{className:"sec-label__value",children:xt.value})]},xt.label))]},ht.title))}),x&&A("div",{className:"total is-flex is-justify-content-space-between",children:[v("p",{className:"total__label",children:x==null?void 0:x.label}),v("p",{className:"total__value",children:x==null?void 0:x.value})]}),_&&A("div",{className:"amount is-flex is-justify-content-space-between",children:[v("p",{className:"amount__label",children:_==null?void 0:_.label}),v("p",{className:"amount__value",children:_==null?void 0:_.value})]}),N&&v("div",{className:"tax-notification",children:N}),O&&A("div",{className:"double-state columns is-mobile",children:[A("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(P=O[0])==null?void 0:P.label}),O[0].type==="state"?A("div",{className:"state-status",style:{color:($=O[0])==null?void 0:$.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(X=O[0])==null?void 0:X.sub_label_color},children:(B=O[0])==null?void 0:B.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(W=O[0])==null?void 0:W.sub_label_color},children:(Y=O[0])==null?void 0:Y.sub_label})]}),A("div",{className:"double-state__state column is-6",children:[v("p",{className:"state-label",children:(V=O[1])==null?void 0:V.label}),O[1].type==="state"?A("div",{className:"state-status",style:{color:(re=O[1])==null?void 0:re.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(ae=O[1])==null?void 0:ae.sub_label_color},children:(Q=O[1])==null?void 0:Q.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(K=O[1])==null?void 0:K.sub_label_color},children:(ie=O[1])==null?void 0:ie.sub_label})]})]}),R&&A("div",{className:"triple-state columns is-mobile",children:[A("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(de=R[0])==null?void 0:de.label}),R[0].type==="state"?A("div",{className:"state-status",style:{color:(be=R[0])==null?void 0:be.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(we=R[0])==null?void 0:we.sub_label_color},children:(ye=R[0])==null?void 0:ye.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(pe=R[0])==null?void 0:pe.sub_label_color},children:(he=R[0])==null?void 0:he.sub_label})]}),A("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(ke=R[1])==null?void 0:ke.label}),R[1].type==="state"?A("div",{className:"state-status",style:{color:(We=R[1])==null?void 0:We.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(at=R[1])==null?void 0:at.sub_label_color},children:(ge=R[1])==null?void 0:ge.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(De=R[1])==null?void 0:De.sub_label_color},children:(Ae=R[1])==null?void 0:Ae.sub_label})]}),A("div",{className:"triple-state__state column is-4",children:[v("p",{className:"state-label",children:(Qe=R[2])==null?void 0:Qe.label}),R[2].type==="state"?A("div",{className:"state-status",style:{color:(Fe=R[2])==null?void 0:Fe.colorStatus},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-status__text",style:{color:(dt=R[2])==null?void 0:dt.sub_label_color},children:(lt=R[2])==null?void 0:lt.sub_label})]}):v("p",{className:"state-sub_label",style:{color:(Ye=R[2])==null?void 0:Ye.sub_label_color},children:(Pe=R[2])==null?void 0:Pe.sub_label})]})]}),I&&A("div",{className:"tax-alert is-flex",children:[(I==null?void 0:I.icon)&&v(He,{icon:I==null?void 0:I.icon}),v("p",{className:"tax-alert__label",children:I==null?void 0:I.label})]})]})]})})})}):v(qt,{})})},nj="",tv=({size:l="md",disabled:s=!1,label:u="radio",name:a,value:r,defaultChecked:p,onCheck:f,error:m,className:g,...x})=>{const _=te.useRef(null),N=()=>{_.current&&_.current.checked&&f&&f()};return v("div",{className:"elv-component elv-radio elv-control",...x,children:A("label",{className:["e-control e-radio",` e-control--${l} e-radio--${l}`,`${m?" e-control--error e-radio--error":""}`,`${s?" e-control--disabled e-radio--disabled":""}`," is-relative"," is-flex is-flex-direction-row-reverse is-justify-content-flex-end"," has-text-dark"," is-clickable",`${g?" "+g:""}`].join(""),children:[v("input",{type:"radio",defaultChecked:p,id:r,name:a,value:r,className:["e-control__input e-radio__input","m-0","is-clickable"].join(""),onChange:()=>{N()},disabled:s,ref:_}),u&&v("span",{className:"label-text is-flex is-align-items-center",children:u}),v("span",{className:["e-control__checkmark e-radio__checkmark"," is-flex is-align-items-center is-justify-content-center is-relative"].join("")})]})})},rj="",ku=({size:l="md",fill:s="outline",disabled:u=!1,placeholder:a,dropUp:r=!1,error:p,options:f,defaultValue:m,minWidth:g,maxCharacters:x=30,onChangeSelect:_,className:N,...O})=>{const[R,I]=te.useState(""),[z,P]=te.useState(a||""),[$,X]=te.useState(!1);te.useEffect(()=>{if(m&&f){const V=f.find(re=>re.value===m);V&&(I(V.value),P(V.label))}},[m,f]);function B(){return V=>{X(!1)}}function W(){return V=>{X(!$)}}function Y(V,re){return ae=>{_&&_(V),I(V),P(re),X(!1)}}return v("div",{className:"elv-component elv-select",style:{minWidth:g},...O,children:A("div",{className:`select-container ${N||""}`,onMouseLeave:B(),children:[v("div",{className:["select-container__select",`select--${s}`,`select--${l}`,`${p?"select--error":""} ${u?"select--disabled":""}`,,].join(" "),onClick:W(),children:m!==void 0||!m?z&&v("span",{children:It(z,x)}):v("span",{children:It(a||"",x)})}),v("div",{className:`select-container__dropdown select--${l} ${$?"select-container__dropdown--active":""} ${r?"select-container__dropdown--up":""}`,children:A("ul",{className:"dropdown__list",children:[a&&v("li",{className:`list__item list__item--default ${R==a?"list__item--active":""}`,onClick:()=>Y("",a),children:It(a,x)}),f==null?void 0:f.map((V,re)=>A("li",{className:"list__item",onClick:Y(V.value,V.label),children:[V.icon&&v("i",{className:`item__icon ${V.icon}`}),It(V.label,x)]},re))]})})]})})},aj="",ij="",nv=({nameInput:l,id:s,type:u,color:a,size:r,placeholder:p,defaultValue:f,value:m,autocomplete:g,maxLength:x,iconLeft:_,iconRight:N,isRounded:O,isLoading:R,isDisabled:I,hasError:z,className:P,onChangeInput:$,onSearch:X,...B})=>{const W=te.useRef(null),Y=re=>{re.key==="Enter"&&V()},V=()=>{var ae;const re=(ae=W.current)==null?void 0:ae.value;X&&X(re||"")};return v("div",{className:"elv-component elv-input",...B,children:v("div",{className:`field e-input ${P||""}`,children:A("div",{className:["control",`${_?" has-icons-left":""}`,`${N?" has-icons-right":""}`,`${R?" is-loading":""}`].join(""),children:[v("input",{className:["input",`${" is-"+r}`,`${a!=="none"?" is-"+a:""}`,`${O?" is-rounded":""}`,`${z?" has-error":""}`].join(""),type:u,name:l,id:s,placeholder:p,onChange:re=>{$&&$(re)},defaultValue:f,value:m,ref:W,disabled:I,onKeyDown:Y,autoComplete:g,maxLength:x}),_&&v("span",{className:`icon is-left ${"is-"+r}`,children:v(He,{..._})}),N&&v("span",{className:`icon is-right ${"is-"+r}`,children:v(He,{...N})})]})})})},Bg=({labelDescription:l,checkbox:s,input:u,inputAmount:a,buttonRecalculate:r,buttonCancel:p,className:f,priceTopEdit:m,priceBottomEdit:g,onCantidadChange:x,onSaveData:_,showAmountinEdit:N,calculateOnChangeCant:O,calculateOnChangeTax:R,exento:I,disabledInputTax:z,visibleBtnRecalculate:P,visibleBtnCancelar:$,visibleBtnGuardar:X,...B})=>{const[W,Y]=te.useState(Number(u==null?void 0:u.defaultValue)||1),[V,re]=te.useState(0),[ae,Q]=te.useState(I),[K,ie]=te.useState(m==null?void 0:m.labelNumberI),de=()=>{Q(!ae)},be=()=>{ae||(N?_&&_({calculatedtax:W&&V&&(g==null?void 0:g.labelNumberA)?W*V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}):_&&_({calculatedtax:V&&(g==null?void 0:g.labelNumberA)?V*(g==null?void 0:g.labelNumberA)/100:0,aliquot:g!=null&&g.labelNumberA?g.labelNumberA:0}))},we=(ke,We)=>{if(ae)return;const at=g!=null&&g.labelNumberA?g.labelNumberA:0;if(N){const ge=ke&&We&&(g==null?void 0:g.labelNumberA)?parseFloat((ke*We*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;_&&_({calculatedtax:ge,aliquot:at})}else{const ge=We&&(g==null?void 0:g.labelNumberA)?parseFloat((We*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0;_&&_({calculatedtax:ge,aliquot:at})}},ye=()=>{!ae||ie(N?W&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((W*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0)},pe=ke=>{ae||(Y(parseFloat(ke.toFixed(2))),ie(N?ke&&V&&(g==null?void 0:g.labelNumberA)?parseFloat((ke*V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:V&&(g==null?void 0:g.labelNumberA)?parseFloat((V*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),O&&we(ke,V))},he=ke=>{ae||(re(parseFloat(ke.toFixed(2))),ie(N?W&&ke&&(g==null?void 0:g.labelNumberA)?parseFloat((W*ke*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0:ke&&(g==null?void 0:g.labelNumberA)?parseFloat((ke*(g==null?void 0:g.labelNumberA)/100).toFixed(2)):0),R&&we(W,ke))};return v("div",{className:"elv-component elv-collapsedit",...B,children:v("div",{className:["collapsedit box is-flex is-align-items-center px-4 py-2 has-background-white",`${f?" "+f:""}`].join(""),children:A("div",{className:"collapsedit__breakpoint4 is-flex is-align-items-center justify-content-space-between is-fullw ",children:[A("div",{className:"collapsedit__breakpoint3 is-align-items-center is-flex is-fullw ",children:[A("div",{className:"collapsedit__breakpoint2 is-flex is-align-items-center is-gap-4",children:[A("div",{className:"collapsedit__breakpoint1 is-flex is-align-items-center is-gap-4",children:[A("div",{className:"collapsedit__desc-cont is-flex is-gap-4 mr-4 is-align-items-center",children:[v("div",{className:"collapsedit__desc has-text-grey-dark is-size-14px",children:l}),v("div",{className:"collapsedit__check is-size-14px",children:s&&v(sd,{...s,defaultChecked:I,onCheck:de,className:""})})]}),v("div",{className:"collapsedit__input",children:N&&v(qt,{children:u&&A("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Cantidad"}),v(nv,{...u,className:"",onChangeInput:ke=>pe(Number(ke.target.value))})]})})})]}),v("div",{className:"collapsedit__inputAmount mr-4 ",children:a&&A("div",{children:[v("p",{style:{marginLeft:"6px",fontSize:"10px",color:"hsl(0, 0%, 71%)"},children:"Monto imponible"}),v(nv,{...a,isDisabled:z,onChangeInput:ke=>he(Number(ke.target.value))})]})})]}),A("div",{className:"collapsedit__taxes is-flex is-gap-4",children:[g&&A("div",{className:"collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:g.labelAliquot}),A("div",{className:"is-size-14px has-text-grey-dark",children:[g.labelNumberA,"%"]})]}),m&&A("div",{className:"collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end",children:[v("div",{className:"is-size-10px has-text-grey-light",children:m.labelImpost}),A("div",{className:"is-size-14px has-text-grey-dark",children:["$ ",K]})]})]})]}),A("div",{className:"collapsedit__buttonCont is-flex is-gap-3 is-align-items-center",children:[v("div",{className:"",children:r&&P&&v(je,{...r,className:"collapsedit__buttonRec is-size-14px",onClick:()=>{ye()}})}),A("div",{className:"collapsedit__button is-flex is-gap-4 is-align-items-center ",children:[v("div",{className:"button-cancel ml-4",children:p&&$&&v(je,{...p,isFullWidth:!0,className:"has-text-danger is-full-tablet is-size-14px"})}),v("div",{className:"button-save",children:X&&v(je,{fill:"solid",color:"primary",size:"normal",label:"Guardar",className:"button-save- is-size-14px",isFullWidth:!0,onClick:()=>{be()}})})]})]})]})})})},j0=({type:l,paddingLeft:s,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,optionSelect:Q,buttonMenu:K,buttonLink:ie,buttonDetail:de,dropRightButton:be,buttonEdit:we,checkbox:ye,collapseEdit:pe,callBackCheckbox:he,radio:ke,onSaveData:We,showAmountinEdit:at,...ge})=>{const[De,Ae]=te.useState(p),[Qe,Fe]=te.useState(!1),[dt,lt]=te.useState(!1),[Ye,Pe]=te.useState(!1),[ht,xt]=te.useState(m);te.useState(W);const[Pt,Cn]=te.useState(!1),kn=()=>{Ae(!De)},bt=()=>{Pe(!Ye),xt(!ht)},Vt=te.useRef(null);te.useEffect(()=>{function Ee(qe){Vt.current&&!Vt.current.contains(qe.target)&<(!1)}return document.addEventListener("click",Ee),()=>{document.removeEventListener("click",Ee)}},[Vt]);const xe=te.useRef(null);return te.useEffect(()=>{function Ee(qe){xe.current&&!xe.current.contains(qe.target)&&Fe(!1)}return document.addEventListener("click",Ee),()=>{document.removeEventListener("click",Ee)}},[xe]),v("div",{className:`elv-component elv-collapse ${a||""}`,...ge,children:!Ye&&!ht?A("div",{className:["e-collapse",`${r?" e-collapse--show":" e-collapse--hide"}`,`${g?" e-collapse--colored-gray":""}`,`${_?" e-collapse--borderTop":""}`,`${a?" "+a:""}`].join(""),children:[A("div",{className:`e-collapse__container ${"e-collapse__container--"+l} ${s&&s==="short"?"e-collapse__container--"+l+"--short":"e-collapse__container--"+l+"--long"} ${m?"e-collapse__container--disabled":""} ${x?"e-collapse__container--borderBottom":""} ${N&&!z&&!$?"e-collapse__container--"+l+"--onlyTitle ":""}is-flex is-justify-content-space-between`,children:[A("div",{className:"left-container is-flex",style:{cursor:u&&!m?"pointer":"auto"},onClick:()=>{u&&!m&&kn()},children:[u&&v("div",{className:"left-container__dropIcon",style:O&&{paddingTop:"28px"},children:v(He,{icon:"fa-solid fa-chevron-right",className:`icon-drop ${De&&"rotate"}`})}),A("div",{className:"left-container__texts is-flex is-flex-direction-column is-justify-content-center",children:[O&&A("div",{className:"state-title is-flex",style:{color:O==null?void 0:O.color},children:[v(He,{icon:"fa-solid fa-circle"})," ",v("p",{className:"state-title__text",children:O==null?void 0:O.label})]}),A("div",{className:"title-container is-flex is-align-items-center",children:[I&&v(He,{...I}),P&&v(ji,{...P}),N&&v("p",{className:`title-container__title title-container__title${R&&R=="regular"?"--regular":"--semibold"}`,children:N})]}),z&&v("p",{className:"description",children:z}),$&&v("p",{className:"details",children:$}),(X||B)&&A("div",{className:"date is-flex",children:[X&&A("span",{className:"date__days is-flex is-align-items-center",children:[v(He,{icon:"fa-solid fa-calendar-days"}),v("p",{children:X})]}),B&&A("span",{className:"date__time is-flex is-align-items-center",children:[v(He,{icon:"fa-solid fa-clock"}),v("p",{children:B})]})]})]})]}),A("div",{className:"right-container is-flex is-align-items-center",children:[de&&A("span",{className:"right-container__buttonDetail",ref:xe,children:[v(je,{...de.button,onClick:()=>{Fe(!Qe),de.button.onClick&&de.button.onClick()}}),de.tooltip?v("div",{className:`detail-tooltip ${de.tooltipPos==="top"?"detail-tooltip--top":"detail-tooltip--bottom"}`,children:v(ev,{...de.tooltip,active:Qe})}):v(qt,{})]}),A("div",{className:"right-container__price is-flex",children:[ae&&ae.checkbox&&v("div",{className:"is-flex is-align-items-center",children:v(sd,{...ae.checkbox})}),A("div",{className:"col-price is-flex is-flex-direction-column is-align-items-end",children:[V&&A("span",{className:"col-price__top is-flex is-align-items-center",children:[v("p",{className:"desc",children:V.description}),A("p",{className:"value",children:["$ ",V.value]})]}),W&&A("p",{className:"col-price__price",style:Y&&Y!=""?{color:Y}:{color:"none"},children:["$",W]}),re&&A("span",{className:"col-price__bottom is-flex is-align-items-center",children:[v("p",{className:"desc",children:re.description}),A("p",{className:"value",children:["$ ",re.value]})]})]})]}),Q&&v("div",{className:"right-container__optionSelect is-flex",children:v(ku,{...Q})}),K&&A("div",{className:"right-container__buttonMenu is-flex is-align-items-center is-relative",ref:Vt,children:[v("span",{className:"menu-button ",children:v(je,{...K.button,onClick:()=>{lt(!dt),K.onEllipse&&K.onEllipse()}})}),dt&&K.menuDropComponent&&v("div",{className:"menu-drop-component is-absolute",children:K.menuDropComponent}),K.select&&v("div",{className:"menu-select",style:dt?{display:"block"}:{display:"none"},children:v(ku,{...K.select})})]}),be&&v("div",{className:"right-container__dropLeftButton is-flex",children:v(je,{...be})}),ie&&v("div",{className:"right-container__buttonLink is-flex is-align-items-center",children:v(je,{...ie})}),we||ye||ke?A("div",{className:"right-container__editCheckbox is-flex",children:[we&&v("div",{className:"buttonEdit is-flex is-align-items-center",children:v(je,{...we,onClick:()=>{bt()}})}),ye&&v("div",{className:"_checkbox is-flex is-align-items-center",children:v(sd,{...ye,onCheck:Ee=>{Cn(Ee),he&&he(Ee?{type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:K,buttonLink:ie,buttonDetail:de,dropRightButton:be,buttonEdit:we}:{})}})}),ke&&v("div",{className:"_radio is-flex is-align-items-center",children:v(tv,{...ke,onCheck:()=>{he&&he({type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:K,buttonLink:ie,buttonDetail:de,dropRightButton:be,buttonEdit:we}),ke.onCheck&&ke.onCheck()}})})]}):v(qt,{})]})]}),f&&f.map(Ee=>v(j0,{...Ee,show:De},Un()))]}):v("div",{className:"",children:v(Bg,{labelDescription:"1001 - Tambos",priceTopEdit:{labelImpost:"Impuesto",labelNumberI:V==null?void 0:V.value},priceBottomEdit:{labelAliquot:"Al\xEDcuota",labelNumberA:re==null?void 0:re.value},className:"collapseEdit",checkbox:{label:"Exento",disabled:!1,size:"sm",value:"",name:"",onCheck(Ee){}},inputAmount:{type:"number",color:"none",placeholder:"Monto imponible",size:"normal",onChange(Ee){}},input:{type:"number",color:"none",placeholder:"Cantidad",size:"normal",onChange(Ee){}},buttonRecalculate:{fill:"unstyled",label:"Recalcular",icon:"fa-solid fa-rotate-right",trailingIcon:!1,onClick(){}},buttonCancel:{fill:"unstyled",color:"secondary",size:"normal",label:"Cancelar",onClick(){Pe(!1),xt(!1)}},onSaveData:Ee=>{We&&We({aliquot:Ee.aliquot,calculatedtax:Ee.calculatedtax}),Pe(!1),xt(!1)},showAmountinEdit:at})})})},oj="",U0=({type:l,paddingLeft:s,isFather:u,className:a,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:Q,buttonLink:K,buttonDetail:ie,dropRightButton:de,buttonEdit:be,checkbox:we,collapseEdit:ye,callBackCheckbox:pe,radio:he,onSaveData:ke,showAmountinEdit:We,...at})=>{const[ge,De]=te.useState(Boolean(p)),[Ae,Qe]=te.useState(!1),Fe=te.useRef(null);te.useEffect(()=>{if(!Ae)return;function Pe(ht){Fe.current&&!Fe.current.contains(ht.target)&&Qe(!1)}return document.addEventListener("click",Pe),()=>document.removeEventListener("click",Pe)},[Ae]);const dt=()=>{m||De(Pe=>!Pe)},lt=Pe=>{Pe&&Pe.stopPropagation&&Pe.stopPropagation()},Ye=Pe=>{pe&&pe(Pe?{type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:Q,buttonLink:K,buttonDetail:ie,dropRightButton:de,buttonEdit:be}:{})};return A("div",{className:`elv-component elv-collapse-mobile ${a!=null?a:""}`,...at,children:[A("div",{className:"collapse-mobile__header",onClick:dt,role:"button","aria-expanded":ge,tabIndex:0,children:[A("div",{className:"collapse-mobile__header-left is-flex is-align-items-center",children:[O&&A("div",{className:"state-title is-flex",style:{color:O.color},children:[v(He,{icon:"fa-solid fa-circle"}),v("p",{className:"state-title__text",children:O.label})]}),A("div",{className:"title-container is-flex is-flex-direction-column",children:[A("div",{className:"title-container__top is-flex is-align-items-center",children:[I&&v(He,{...I}),P&&v(ji,{...P}),N&&v("p",{className:`title-container__title ${R&&R==="regular"?"title-container__title--regular":"title-container__title--semibold"}`,children:N})]}),(z||$)&&v("p",{className:"title-container__subtitle",children:(z!=null?z:$).toString().split(`
|
|
30
30
|
`)[0]})]})]}),A("div",{className:"collapse-mobile__header-right is-flex is-align-items-center",children:[W!==void 0&&A("div",{className:"right-container__price is-flex is-flex-direction-column is-align-items-end",children:[V&&A("span",{className:"col-price__top is-flex is-align-items-center",children:[v("p",{className:"desc",children:V.description}),A("p",{className:"value",children:["$ ",V.value]})]}),A("p",{className:"col-price__price",style:Y?{color:Y}:void 0,children:["$",W]}),re&&A("span",{className:"col-price__bottom is-flex is-align-items-center",children:[v("p",{className:"desc",children:re.description}),A("p",{className:"value",children:["$ ",re.value]})]})]}),we&&v("div",{className:"right-container__checkbox",onClick:lt,children:v(sd,{...we,onCheck:Pe=>{Ye(Pe),we.onCheck&&we.onCheck(Pe)}})}),ie&&A("span",{className:"right-container__buttonDetail",onClick:Pe=>{lt(Pe),ie.button.onClick&&ie.button.onClick()},children:[v(je,{...ie.button}),ie.tooltip&&v("div",{className:"detail-tooltip",children:v(ev,{...ie.tooltip,active:!1})})]}),Q&&A("div",{className:"right-container__buttonMenu is-relative",ref:Fe,children:[v("span",{className:"menu-button",onClick:Pe=>{lt(Pe),Qe(ht=>!ht),Q.onEllipse&&Q.onEllipse()},children:v(je,{...Q.button})}),Ae&&Q.menuDropComponent&&v("div",{className:"menu-drop-component is-absolute",onClick:lt,children:Q.menuDropComponent}),Q.select&&v("div",{className:"menu-select",style:Ae?{display:"block"}:{display:"none"},onClick:lt,children:v(ku,{...Q.select})})]}),de&&v("div",{className:"right-container__dropLeftButton is-flex",onClick:lt,children:v(je,{...de})}),K&&v("div",{className:"right-container__buttonLink is-flex is-align-items-center",onClick:lt,children:v(je,{...K})}),(be||he)&&A("div",{className:"right-container__editCheckbox is-flex is-align-items-center",onClick:lt,children:[be&&v("div",{className:"buttonEdit is-flex is-align-items-center",children:v(je,{...be,onClick:Pe=>{lt(Pe),be.onClick&&be.onClick()}})}),he&&v("div",{className:"_radio is-flex is-align-items-center",children:v(tv,{...he,onCheck:()=>{pe&&pe({type:l,paddingLeft:s,isFather:u,show:r,initialState:p,childCollapse:f,disabled:m,colored:g,borderBottom:x,borderTop:_,title:N,stateTitle:O,titleWeight:R,titleIcon:I,description:z,badge:P,details:$,dateDays:X,dateTime:B,price:W,priceColor:Y,priceTop:V,priceBottom:re,priceLeft:ae,buttonMenu:Q,buttonLink:K,buttonDetail:ie,dropRightButton:de,buttonEdit:be}),he.onCheck&&he.onCheck()}})})]})]})]}),ge&&A("div",{className:"collapse-mobile__body",children:[z&&v("div",{className:"collapse-mobile__description",children:z}),$&&v("div",{className:"collapse-mobile__details",children:$}),(X||B)&&A("div",{className:"collapse-mobile__dates",children:[X&&A("span",{children:[v(He,{icon:"fa-solid fa-calendar-days"})," ",X]}),B&&A("span",{children:[v(He,{icon:"fa-solid fa-clock"})," ",B]})]}),ye&&v(Bg,{...ye,onSaveData:Pe=>{ke&&ke(Pe)}}),f&&f.map((Pe,ht)=>v(U0,{...Pe,show:ge},ht))]})]})},lj="";var F0={exports:{}};/*!
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|