dgrcorrientes-modulos 1.0.94 → 1.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.js +3 -3
- package/components.umd.cjs +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/components.js
CHANGED
|
@@ -33338,7 +33338,7 @@ const nI = ({
|
|
|
33338
33338
|
position: C = "right",
|
|
33339
33339
|
footerbutton: _,
|
|
33340
33340
|
onShow: N,
|
|
33341
|
-
width: E
|
|
33341
|
+
width: E,
|
|
33342
33342
|
...R
|
|
33343
33343
|
}) => {
|
|
33344
33344
|
const [I, z] = Ie(u);
|
|
@@ -33363,9 +33363,9 @@ const nI = ({
|
|
|
33363
33363
|
}), /* @__PURE__ */ A("div", {
|
|
33364
33364
|
className: [`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${I ? "is-open" : ""}`, ` sidebar-container--${C}`, `${l ? " " + l : ""}`].join(""),
|
|
33365
33365
|
style: {
|
|
33366
|
-
"--sidebar-width": E
|
|
33366
|
+
"--sidebar-width": E || "400px"
|
|
33367
33367
|
},
|
|
33368
|
-
"data-width": E,
|
|
33368
|
+
"data-width": E || "400px",
|
|
33369
33369
|
children: [/* @__PURE__ */ A("div", {
|
|
33370
33370
|
children: [/* @__PURE__ */ A("div", {
|
|
33371
33371
|
className: "sidebar-container__header is-flex is-align-items-center mb-4 is-gap-4",
|
package/components.umd.cjs
CHANGED
|
@@ -317,4 +317,4 @@ https://sweetalert2.github.io/#ajax-request`),Wd(b),typeof b.title=="string"&&(b
|
|
|
317
317
|
Prefix can't start with '-' when allowNegative is true.
|
|
318
318
|
prefix: `+r+`
|
|
319
319
|
allowNegative: `+p+`
|
|
320
|
-
`),p=!1),Object.assign(Object.assign({},l),{allowNegative:p})}function WO(l){l=VO(l),l.decimalSeparator,l.allowedDecimalSeparators,l.thousandsGroupStyle;var s=l.suffix,u=l.allowNegative,a=l.allowLeadingZeros,r=l.onKeyDown;r===void 0&&(r=bs);var p=l.onBlur;p===void 0&&(p=bs);var f=l.thousandSeparator,m=l.decimalScale,g=l.fixedDecimalScale,C=l.prefix;C===void 0&&(C="");var _=l.defaultValue,N=l.value,T=l.valueIsNumericString,R=l.onValueChange,I=TC(l,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),z=Ev(l),P=z.decimalSeparator,$=z.allowedDecimalSeparators,ee=function(pe){return FC(pe,l)},K=function(pe,he){return HO(pe,he,l)},q=md(N)?_:N,Y=T!=null?T:$O(q,C,s);md(N)?md(_)||(Y=Y||typeof _=="number"):Y=Y||typeof N=="number";var W=function(pe){return OC(pe)?pe:(typeof pe=="number"&&(pe=AC(pe)),Y&&typeof m=="number"?LC(pe,m,Boolean(g)):pe)},J=UC(W(N),W(_),Boolean(Y),ee,K,R),ae=J[0],V=ae.numAsString,te=ae.formattedValue,ue=J[1],de=function(pe){var he=pe.target,ke=pe.key,We=he.selectionStart,at=he.selectionEnd,ge=he.value;if(ge===void 0&&(ge=""),(ke==="Backspace"||ke==="Delete")&&at<C.length){pe.preventDefault();return}if(We!==at){r(pe);return}ke==="Backspace"&&ge[0]==="-"&&We===C.length+1&&u&&Ru(he,1),m&&g&&(ke==="Backspace"&&ge[We-1]===P?(Ru(he,We-1),pe.preventDefault()):ke==="Delete"&&ge[We]===P&&pe.preventDefault()),($==null?void 0:$.includes(ke))&&ge[We]===P&&Ru(he,We+1);var De=f===!0?",":f;ke==="Backspace"&&ge[We-1]===De&&Ru(he,We-1),ke==="Delete"&&ge[We]===De&&Ru(he,We+1),r(pe)},be=function(pe){var he=V;if(he.match(/\d/g)||(he=""),a||(he=EO(he)),g&&m&&(he=LC(he,m,g)),he!==V){var ke=FC(he,l);ue({formattedValue:ke,value:he,floatValue:parseFloat(he)},{event:pe,source:up.event})}p(pe)},we=function(pe){return pe===P?!0:cp(pe)},ye=function(pe){var he=pe.currentValue,ke=pe.lastValue,We=pe.formattedValue,at=pe.currentValueIndex,ge=pe.formattedValueIndex,De=he[at],Ae=We[ge],Qe=IC(ke,he),Fe=Qe.to,dt=function(lt){return K(lt).indexOf(".")+C.length};return N===0&&g&&m&&he[Fe.start]===P&&dt(he)<at&&dt(We)>ge?!1:at>=Fe.start&&at<Fe.end&&$&&$.includes(De)&&Ae===P?!0:De===Ae};return Object.assign(Object.assign({},I),{value:te,valueIsNumericString:!1,isValidInputCharacter:we,isCharacterSame:ye,onValueChange:ue,format:ee,removeFormatting:K,getCaretBoundary:function(pe){return YO(pe,l)},onKeyDown:de,onBlur:be})}function BO(l){var s=WO(l);return v(UO,{...Object.assign({},s)})}const qO=({value:l="",onChange:s,onBlur:u,placeholder:a="0,00",className:r="",size:p="normal",color:f="none",isRounded:m=!1,isDisabled:g=!1,hasError:C=!1,width:_="125px",...N})=>{const[T,R]=re.useState(l!=null?l:""),[I,z]=re.useState(!1);re.useEffect(()=>{R(l!=null?l:"")},[l]);const P=re.useCallback(()=>z(!0),[]),$=re.useCallback(()=>{z(!1),u==null||u()},[u]),ee=re.useCallback(Y=>{const{formattedValue:W,value:J}=Y;R(W),s==null||s(J)},[s]),K=re.useCallback(Y=>{const{floatValue:W,value:J}=Y;return!(W&&W<0||J&&J.length>20)},[]),q=re.useMemo(()=>["input-coin",`is-${p}`,f!=="none"?`is-${f}`:"",m?"is-rounded":"",C?"has-error":"",I?"is-focused":"",T!==""&&!I?"is-filled":"",r].filter(Boolean).join(" "),[r,T,I,p,f,m,C]);return v("div",{className:"elv-component elv-input-coin",children:v(BO,{className:q,style:{width:_},value:T,placeholder:I?"$":`$ ${a}`,decimalScale:2,thousandSeparator:".",decimalSeparator:",",allowNegative:!1,isAllowed:K,prefix:"$",onFocus:P,onBlur:$,onValueChange:ee,disabled:g,...N})})},KI="",dp=({size:l,backgroundColor:s,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:g,onChangeInput:C,onSearch:_,className:N,...T})=>{const R=re.useRef(null),I=P=>{P.key==="Enter"&&z()},z=()=>{var $;const P=($=R.current)==null?void 0:$.value;_&&_(P||"")};return v("div",{className:"elv-component elv-search",...T,children:A("div",{className:`elv-component search-container search-container--${l} ${N||""}`,style:{backgroundColor:s},children:[v("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:P=>C&&C(P.target.value),defaultValue:a,value:r,ref:R,disabled:g,onKeyDown:I}),v("span",{className:"search-container__button-search",children:v(je,{...p,size:l,onClick:()=>{z()}})})]})})},QO=({size:l="md",fill:s="outline",disabled:u=!1,placeholder:a,error:r,options:p=[],value:f,minWidth:m,maxCharacters:g=30,onChangeSelect:C,className:_,...N})=>{var K,q;const[T,R]=re.useState(!1),I=re.useRef(null),z=re.useMemo(()=>p.find(Y=>Y.value===f),[p,f]),P=(q=(K=z==null?void 0:z.label)!=null?K:a)!=null?q:"";re.useEffect(()=>{if(!T)return;function Y(J){!I.current||I.current.contains(J.target)||R(!1)}function W(J){J.key==="Escape"&&R(!1)}return document.addEventListener("click",Y),document.addEventListener("keydown",W),()=>{document.removeEventListener("click",Y),document.removeEventListener("keydown",W)}},[T]),re.useEffect(()=>{u&&R(!1)},[u]);const $=()=>{u||R(Y=>!Y)},ee=Y=>{C==null||C(Y),R(!1)};return v("div",{className:"elv-component elv-select",style:{minWidth:m},...N,children:A("div",{className:`select-container ${_!=null?_:""}`,ref:I,children:[v("div",{className:["select-container__select",`select--${s}`,`select--${l}`,`${r?"select--error":""}`,`${u?"select--disabled":""}`].join(" "),role:"button","aria-haspopup":"listbox","aria-expanded":T,onClick:$,children:v("span",{children:It(P,g)})}),v("div",{className:`select-container__dropdown select--${l} ${T?"select-container__dropdown--active":""}`,children:A("ul",{className:"dropdown__list",role:"listbox",children:[a&&v("li",{className:`list__item list__item--default ${f===""?"list__item--active":""}`,onClick:()=>ee(""),role:"option","aria-selected":f==="",children:It(a,g)}),p!=null&&p.length?p.map((Y,W)=>{const J=f===Y.value;return A("li",{className:`list__item ${J?"list__item--active":""}`,onClick:()=>ee(Y.value),role:"option","aria-selected":J,children:[Y.icon&&v("i",{className:`item__icon ${Y.icon}`}),It(Y.label,g)]},W)}):v("li",{className:"list__item",style:{opacity:.7,cursor:"default"},children:"No hay opciones"})]})})]})})},GI="",zC=({size:l="md",disabled:s=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,g]=re.useState(),C=()=>{g(!m),r&&r(!m)};return v("div",{className:"elv-component elv-switch",...f,children:A("label",{className:["switch",` switch--${l}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[v("input",{type:"checkbox",disabled:s,defaultChecked:u,onChange:C}),v("span",{className:"slider round"})]})})},XI="",KO=({value:l,error:s,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:g=50,className:C,..._})=>v("div",{className:"elv-component elv-textArea",children:v("textarea",{className:["textarea",`${s?" textarea--error":""}`,`${C?" "+C:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:g,..._})}),ZI="",JI="",$C=({className:l,progressBar:s,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...g})=>v("div",{className:"elv-component elv-uploadfile",...g,children:A("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${l?" "+l:""}`].join(""),children:[v("div",{className:"mr-5",children:r&&v(Ye,{icon:Nk(r),className:"has-tc-primary-600",size:"24px"})}),A("div",{className:"uploadfile__info is-flex-direction-column ",children:[A("div",{className:"is-flex is-justify-content-space-between is-align-items-center ",children:[A("div",{className:"is-flex is-align-items-center",children:[r?v("p",{className:"file_name is-size-7",children:r}):a?v("p",{className:"file_name is-size-7",children:a.name}):v(Vt,{}),v("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),v(je,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?v("div",{className:"is-size-7",children:L0(p)}):a?v("div",{className:"is-size-7",children:L0(a.size)}):v(Vt,{})]}),u&&v("div",{className:"uploadfile__progress pt-2",children:v(A0,{...s})})]}),v("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:v(Ye,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),GO=({className:l,labelSelection:s,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:g,onPreviewFile:C,onDeleteFile:_,onErrorSize:N,onErrorExtensions:T,...R})=>{const[I,z]=re.useState(!1),[P,$]=re.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(ae=>{var te;const V=(te=ae.name.split(".").pop())==null?void 0:te.toLowerCase();return m==null?void 0:m.includes(V||"")})),ee=ae=>{ae.preventDefault(),z(!0)},K=()=>{z(!1)},q=ae=>{ae.preventDefault(),z(!1);const V=ae.dataTransfer.files;V&&W(V)},Y=ae=>{const V=ae.target.files;V&&W(V)},W=ae=>{var V;if(console.log(""),ae.length<=r&&P.length+ae.length<=r)for(let te=0;te<ae.length;te++){const ue=ae[te],de=ue.name.split("."),be=de.length>1?(V=de.pop())==null?void 0:V.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(be||""))){if(ue.size<=a*1024*1024)g&&g(ue);else{N&&N(ue);return}$(we=>[...we,ue])}else{T&&T(ue);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},J=ae=>{const V=P.filter(te=>te!==ae);$(V)};return v("div",{className:"elv-component elv-uploadfiles",...R,children:A("div",{className:["uploadfiles is-flex is-flex-direction-column is-align-items-center is-gap-4 p-5",`${l?" "+l:""}`].join(""),children:[v("div",{className:`uploadfiles__files file ${I?"dragging":""}`,onDragEnter:ee,onDragLeave:K,onDragOver:ae=>ae.preventDefault(),onDrop:q,children:A("label",{htmlFor:"file-input",className:"file-label",children:[v("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:Y,multiple:!0}),A("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[v("span",{className:"file-icon",children:v(Ye,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),v("span",{className:"file-label has-text-grey-dark",children:s})]})]})}),v("div",{className:"uploadfiles__data",children:u}),P.length>0?v("div",{children:P.map((ae,V)=>v("div",{className:"uploadfiles__download mb-3",children:v($C,{showBar:!!(p&&p[V]&&p[V]!==100),file:ae,file_name:ae.name,file_size:ae.size,onPreview:te=>{C&&C(te)},onDelete:te=>{_&&_(te),J(te)},progressBar:{value:p&&p[V]?p[V]:0}})},V))}):null]})})},ej="",XO=({columnItems:l,finalItem:s,logo_1:u,logo_2:a,endButtonLinks:r,butonLegal:p,className:f,...m})=>{var g=new Date,C=g.getFullYear();return v("div",{className:"elv-component elv-footer",...m,children:A("div",{className:`footer-component is-flex is-flex-direction-column ${f||""}`,children:[A("div",{className:"footer-component__container",children:[l&&v(Vt,{children:l.map(_=>A("div",{className:"column-item is-flex is-flex-direction-column",children:[v("p",{className:"column-item__title",children:_.title}),_.buttonLinks.map(N=>v("span",{className:"column-item__button",children:v(je,{...N})},Un())),v("span",{className:"column-item__final",children:v(je,{..._.finalLink})})]},Un()))}),s&&A("div",{className:"final-item is-flex is-flex-direction-column",children:[v("p",{className:"final-item__title",children:s.title}),s.buttonLinks.map(_=>v("span",{className:"final-item__button",children:v(je,{..._})},Un())),v("p",{className:"final-item__phoneNumber",children:s.phoneNumber})]})]}),A("div",{className:"footer-component__end",children:[A("div",{className:"logos is-flex",children:[v("img",{className:"logo1",src:u,alt:""}),A("div",{className:"gob-centro is-flex is-flex-direction-column is-justify-content-center",children:[A("div",{className:"text-gob-centro",children:[v("p",{children:v("strong",{children:" Gobierno de Corrientes. Ministerio de Hacienda y Finanzas. Direccion General de Rentas"})}),v("p",{children:"Casa Central: 25 de Mayo 902 PB, Corrientes(W3400BCJ) - Corrientes"}),v("p",{children:"Centro Integral de Atencion al Contribuyente(CIAC): Av. Juan Pujol 2330, Corrientes(W3400BKU)."})]}),v("div",{className:"aviso-legal",children:p&&v(je,{...p})})]}),v("img",{className:"logo2",src:a,alt:""})]}),A("div",{className:"copy is-flex",children:[v("div",{className:"copy__text is-flex",children:A("p",{children:["Copyright\xA9 ",C," - Rentas Corrientes"]})}),r&&v("div",{className:"end-button-links is-flex",children:r.map(_=>v("div",{className:"end-button-links__item is-flex",children:v("span",{className:"end-button-links__button",children:v(je,{..._})},_.label)},Un()))})]})]})]})})},tj="",ZO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",JO=({className:l,logged:s,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:g,interno:C,..._})=>{var ue,de,be,we;const[N,T]=re.useState(!1),[R,I]=re.useState(!1),[z,P]=re.useState(window.innerWidth<1217),[$,ee]=re.useState(window.innerWidth<654),[K,q]=re.useState(null),[Y,W]=re.useState((ue=p==null?void 0:p.reduce((ye,pe)=>({...ye,[pe.uniqueValue]:{active:!1,name:null}}),{}))!=null?ue:{}),J=re.useRef(null),ae=p==null?void 0:p.map(()=>re.useRef(null)),V=ye=>{q(pe=>pe===ye?null:ye),W(pe=>({...Object.keys(pe).reduce((he,ke)=>(he[ke]={active:ke===ye,name:pe[ke].name},he),{})}))};re.useEffect(()=>{function ye(pe){var he;Object.values(Y).some(ke=>ke.active)&&!pe.defaultPrevented&&!((he=J.current)!=null&&he.contains(pe.target))&&(W(ke=>Object.keys(ke).reduce((We,at)=>({...We,[at]:{active:!1,name:ke[at].name}}),{})),q(null))}return document.addEventListener("click",ye),()=>{document.removeEventListener("click",ye)}},[J,Y]);const te=re.useRef(null);return re.useEffect(()=>{function ye(pe){te.current&&!te.current.contains(pe.target)&&I(!1)}return document.addEventListener("click",ye),()=>{document.removeEventListener("click",ye)}},[te]),re.useEffect(()=>{function ye(){P(window.innerWidth<1217),ee(window.innerWidth<654)}return window.addEventListener("resize",ye),()=>{window.removeEventListener("resize",ye)}},[]),v("div",{className:"elv-component elv-header",..._,children:v("div",{className:`navbar-container ${C?"navbar-container--interno":""} ${l||""}`,children:A("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[A("div",{className:"navbar-brand",children:[v("a",{role:"button",className:`navbar-burger ${N?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>T(!N),children:v("img",{src:ZO,alt:"Burger SVG"})}),u&&v(Vt,{children:$?v("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:v("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):v("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:v("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),v("div",{id:"rentas-ctes-header",className:`navbar-menu ${N?"is-active":""}`,children:v("div",{className:"navbar-start",children:r&&r.map(ye=>v("a",{className:"navbar-item item-text",onClick:ye.onClick,children:ye.label},Un()))})}),A("div",{className:"navbar-end is-flex",children:[v("div",{className:"icon-functions is-flex",ref:J,children:p&&p.map((ye,pe)=>A("div",{className:["item-icon "].join(""),ref:ae&&ae[pe],children:[v("span",{children:v(je,{...ye.buttonIcon,onClick:()=>{var he;V(ye.uniqueValue),(he=ye.buttonIcon)!=null&&he.onClick&&ye.buttonIcon.onClick()}})}),ye.badge&&v(Vt,{children:v("span",{className:"item-icon__badge-notif",children:v(ji,{...ye.badge})})}),ye.iconDropComponent&&v("div",{className:`drop-component drop-component__icon ${Y[ye.uniqueValue]&&p[pe].uniqueValue===K?"is-active":""}`,children:ye.iconDropComponent})]},Un()))}),s?v(Vt,{children:z?A("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:te,children:[v("div",{className:"user-mobile__icon",children:v(Ye,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>I(!R)})}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]}):A("div",{className:"navbar-item user-desktop",ref:te,children:[A("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>I(!R),children:[A("div",{className:"user-sec__text",children:[A("p",{className:"names",children:["Hola, ",m.name," ",m.lastName]}),v("p",{className:"description",children:m.description})]}),A("div",{className:"user-sec__icons is-flex",children:[(de=m.avatar)!=null&&de.icon?A("div",{className:"user-icon",children:[v(Ye,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&v("span",{className:"user-icon__state",children:v(Ye,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):v("img",{src:(we=(be=m.avatar)==null?void 0:be.img)==null?void 0:we.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),v(Ye,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]})}):v(Vt,{children:z?A("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:te,children:[v("div",{className:"user-mobile__icon",children:v(Ye,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>I(!R)})}),g&&v("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g})]}):v("div",{className:"navbar-item",children:v(je,{...f})})})]})]})})})},nj="",eR=({className:l,search:s,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[g,C]=re.useState(!1),_=re.useRef(null);return re.useEffect(()=>{function N(T){_.current&&!_.current.contains(T.target)&&C(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[_]),v("div",{className:`elv-component elv-header-table ${l||""}`,...m,children:A("div",{className:"header-table is-flex",children:[s&&v("span",{children:v(dp,{...s})}),a&&a.map(N=>v("span",{children:v(xu,{...N})},Un())),u&&v(Dv,{...u}),r&&v(je,{...r}),p&&A("div",{ref:_,className:"menuButton",children:[v(je,{...p,onClick:()=>{C(!g),p.onClick&&p.onClick()}}),f&&g&&v("div",{className:"menuButton__dropComponent",children:f})]})]})})},rj="",tR=({className:l,buttonShow:s,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:g=!1,onShow:C,onClose:_,...N})=>{const[T,R]=re.useState(a),[I,z]=re.useState(1),[P,$]=re.useState(0),ee=re.useRef(null),K=re.useRef(null),[q,Y]=re.useState(p);re.useEffect(()=>{R(a)},[a]),re.useEffect(()=>{Y(p)},[p]);const W=`${p*P+p}px`;return A("div",{className:"elv-component elv-sidebar",...N,children:[!T&&v("div",{className:"is-flex is-justify-content-end",children:v(je,{...s,onClick:()=>{R(!0),C&&C()}})}),T&&v("div",{className:"modal-background",onClick:()=>{R(!1),_&&_()}}),A("div",{className:`sidebar-container is-flex is-flex-direction-column ${T?"is-open":""} ${l||""}`,children:[A("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(je,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1),_&&_()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(dp,{...r})}),v("div",{ref:K,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:W},children:m.slice((I-1)*p,I*p).map((J,ae)=>v("div",{ref:ee,className:`listItem ${g?" line-separation":""}`,children:J},Un()))}),v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&v(Dv,{onChangePage:J=>{z(J)},minItemsPerPage:q,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},aj="",nR=({className:l,title:s,show:u,button:a,buttonShow:r,buttonShowVisible:p,optionalButton:f,optionalButton2:m,children:g,position:C="right",footerbutton:_,onShow:N,width:T="400px",...R})=>{const[I,z]=re.useState(u);return re.useEffect(()=>{z(u)},[u]),A("div",{className:"elv-component elv-sidebarEmpty",...R,children:[p&&!I&&v("div",{className:"is-flex is-justify-content-end",children:v(je,{...r,onClick:()=>{z(!0),N&&N()}})}),I&&v("div",{className:"modal-background",onClick:()=>{z(!1),N&&N()}}),A("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${I?"is-open":""}`,` sidebar-container--${C}`,`${l?" "+l:""}`].join(""),style:{"--sidebar-width":T},"data-width":T,children:[A("div",{children:[A("div",{className:"sidebar-container__header is-flex is-align-items-center mb-4 is-gap-4",children:[v("div",{className:"sidebar-container__button mr-3",children:v(je,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{z(!1),N&&N()}})}),v("p",{className:"title is-5 has-text-link-dark",children:s})]}),v("div",{className:"sidebar-container__content",children:g})]}),_&&v("div",{children:A("div",{className:"button-container is-flex pl-5 pb-5",children:[v("div",{className:"button-container__opt ml-5",children:f&&v(je,{...f})}),v("div",{className:"button-container__opt",children:m&&v(je,{...m})})]})})]})]})},ij="",rR=({className:l,border:s,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:g,addButton:C,removeButton:_,linkButton:N,iconButton:T,switcherLabel:R,switcher:I,labelRight:z,...P})=>v("div",{className:"elv-component elv-subtitle",...P,children:A("div",{className:`subtitle-component ${s&&"subtitle-component--border-bot-gray"} ${l||""}`,children:[A("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&v("div",{className:"left-backButton",children:v(je,{...p})}),A("div",{className:"left-texts",children:[A("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&v(Ye,{...f}),m&&v("span",{className:"left-texts__principal__rectangle"}),a&&v("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&v("div",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),A("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[C||_?A("div",{className:"right-editButtons is-flex",children:[C&&v("span",{className:"right-editButtons__addButton",children:v(je,{...C})}),_&&v("span",{className:"right-editButtons__removeButton",children:v(je,{..._})})]}):v(Vt,{}),N&&v("span",{className:"right-linkButton",children:v(je,{...N})}),T&&v("span",{children:v(je,{...T})}),I&&A("div",{className:"right-switcher is-flex is-align-items-center",children:[R&&v("p",{className:"right-switcher__label",children:R}),v(zC,{...I})]}),z&&v("p",{className:"right-label",children:z})]})]})}),oj="",aR=({className:l,subtitle:s,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:g,buttonWidth:C,backButton:_,searchWidth:N,align:T,...R})=>v("div",{className:"elv-component elv-title",...R,children:A("div",{className:`title-component-container ${_&&"title-component-container--backButton"} ${l||""}`,children:[_&&v("div",{className:"title-component-container__backButton is-flex",children:v(je,{..._})}),A("div",{className:`title-component title-component--${T} is-flex is-flex-direction-column`,children:[s&&v("p",{className:"title-component__subtitle",children:s.toUpperCase()}),u&&v("p",{className:"title-component__title",children:u}),A("div",{className:`title-component__content is-flex title-component__content--${T} is-flex-direction-column ${_&&"title-component__content--backButton"}`,children:[a&&v("p",{className:"title-component__description",style:{width:r},children:a}),p&&v("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&v("span",{className:"title-component__actionButtons is-flex",children:f.map(I=>v("span",{children:v(je,{...I})},I.label))}),m&&v("span",{className:"title-component__search",style:{width:N},children:v(dp,{...m})}),g&&v("span",{className:"title-component__button",style:{width:C},children:v(je,{...g})})]})]})]})}),lj="",iR=({className:l,buttonShow:s,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:g=!1,onShow:C,onClose:_,children:N,width:T="315px",showOpenButton:R=!1,...I})=>{const[z,P]=re.useState(a),[$,ee]=re.useState(1),[K,q]=re.useState(0),Y=re.useRef(null),W=re.useRef(null),[J,ae]=re.useState(p);re.useEffect(()=>{P(a)},[a]),re.useEffect(()=>{ae(p)},[p]);const V=`${p*K+p}px`;return A("div",{className:"elv-component elv-sidebar",...I,children:[!z&&R&&s&&v("div",{className:"is-flex is-justify-content-end",children:v(je,{...s,onClick:()=>{P(!0),C&&C()}})}),z&&v("div",{className:"modal-background",onClick:()=>{P(!1),_&&_()}}),A("div",{className:`sidebar-container is-flex is-flex-direction-column ${l!=null?l:""}`,style:{width:T,right:z?"0":`-${T}`},children:[A("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(je,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),_&&_()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(dp,{...r})}),v("div",{ref:W,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:V},children:N||m.slice(($-1)*J,$*J).map(te=>v("div",{ref:Y,className:`listItem ${g?" line-separation":""}`,children:te},Un()))}),!N&&(m==null?void 0:m.length)>J&&v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:v(Dv,{onChangePage:te=>{ee(te)},minItemsPerPage:J,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};nt.Alert=_k,nt.Alert2=Sk,nt.AssistanceDiary=kk,nt.Autocomplete=mO,nt.Autocomplete2=gO,nt.Autocomplete3=yO,nt.AverageAttended=Dk,nt.Badge=ji,nt.Breadcrumb=Ek,nt.Button=je,nt.CTA=W2,nt.CardActivity=Mk,nt.CardCTA=Tk,nt.CardExpiration=Ok,nt.CardHorizontal=Pk,nt.CardUser=Ak,nt.CardVertical=Rk,nt.Cart=Lk,nt.Checkbox=ad,nt.Collapse=I0,nt.CollapseEdit=Vg,nt.CollapseMobile=j0,nt.CompleteDiary=V2,nt.DatePickerComponent=wO,nt.Dropdown=B2,nt.EmptyState=q2,nt.ErrorPage=Q2,nt.Filters=bO,nt.Footer=XO,nt.Header=JO,nt.HeaderTable=eR,nt.Icon=Ye,nt.IncomingCall=K2,nt.Input=Jh,nt.Input2=xO,nt.InputCoin=qO,nt.InputForm=CO,nt.ModalConfirm=Z2,nt.ModalConfirm2=J2,nt.ModalConfirm3=eO,nt.Pagination=Dv,nt.Pagination2=tO,nt.PerformanceAssessment=dO,nt.ProgressBar=A0,nt.Radio=Zh,nt.Search=dp,nt.Select=xu,nt.Select2=QO,nt.ShiftDiary=fO,nt.Sidebar=tR,nt.SidebarChildren=iR,nt.SidebarEmpty=nR,nt.Stepper=pO,nt.Subtitle=rR,nt.Switch=zC,nt.Tabs=hO,nt.Textarea=KO,nt.Title=aR,nt.Tooltip=Xh,nt.Tooltip2=vO,nt.UploadFileItem=$C,nt.UploadFiles=GO,Object.defineProperties(nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
320
|
+
`),p=!1),Object.assign(Object.assign({},l),{allowNegative:p})}function WO(l){l=VO(l),l.decimalSeparator,l.allowedDecimalSeparators,l.thousandsGroupStyle;var s=l.suffix,u=l.allowNegative,a=l.allowLeadingZeros,r=l.onKeyDown;r===void 0&&(r=bs);var p=l.onBlur;p===void 0&&(p=bs);var f=l.thousandSeparator,m=l.decimalScale,g=l.fixedDecimalScale,C=l.prefix;C===void 0&&(C="");var _=l.defaultValue,N=l.value,T=l.valueIsNumericString,R=l.onValueChange,I=TC(l,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),z=Ev(l),P=z.decimalSeparator,$=z.allowedDecimalSeparators,ee=function(pe){return FC(pe,l)},K=function(pe,he){return HO(pe,he,l)},q=md(N)?_:N,Y=T!=null?T:$O(q,C,s);md(N)?md(_)||(Y=Y||typeof _=="number"):Y=Y||typeof N=="number";var W=function(pe){return OC(pe)?pe:(typeof pe=="number"&&(pe=AC(pe)),Y&&typeof m=="number"?LC(pe,m,Boolean(g)):pe)},J=UC(W(N),W(_),Boolean(Y),ee,K,R),ae=J[0],V=ae.numAsString,te=ae.formattedValue,ue=J[1],de=function(pe){var he=pe.target,ke=pe.key,We=he.selectionStart,at=he.selectionEnd,ge=he.value;if(ge===void 0&&(ge=""),(ke==="Backspace"||ke==="Delete")&&at<C.length){pe.preventDefault();return}if(We!==at){r(pe);return}ke==="Backspace"&&ge[0]==="-"&&We===C.length+1&&u&&Ru(he,1),m&&g&&(ke==="Backspace"&&ge[We-1]===P?(Ru(he,We-1),pe.preventDefault()):ke==="Delete"&&ge[We]===P&&pe.preventDefault()),($==null?void 0:$.includes(ke))&&ge[We]===P&&Ru(he,We+1);var De=f===!0?",":f;ke==="Backspace"&&ge[We-1]===De&&Ru(he,We-1),ke==="Delete"&&ge[We]===De&&Ru(he,We+1),r(pe)},be=function(pe){var he=V;if(he.match(/\d/g)||(he=""),a||(he=EO(he)),g&&m&&(he=LC(he,m,g)),he!==V){var ke=FC(he,l);ue({formattedValue:ke,value:he,floatValue:parseFloat(he)},{event:pe,source:up.event})}p(pe)},we=function(pe){return pe===P?!0:cp(pe)},ye=function(pe){var he=pe.currentValue,ke=pe.lastValue,We=pe.formattedValue,at=pe.currentValueIndex,ge=pe.formattedValueIndex,De=he[at],Ae=We[ge],Qe=IC(ke,he),Fe=Qe.to,dt=function(lt){return K(lt).indexOf(".")+C.length};return N===0&&g&&m&&he[Fe.start]===P&&dt(he)<at&&dt(We)>ge?!1:at>=Fe.start&&at<Fe.end&&$&&$.includes(De)&&Ae===P?!0:De===Ae};return Object.assign(Object.assign({},I),{value:te,valueIsNumericString:!1,isValidInputCharacter:we,isCharacterSame:ye,onValueChange:ue,format:ee,removeFormatting:K,getCaretBoundary:function(pe){return YO(pe,l)},onKeyDown:de,onBlur:be})}function BO(l){var s=WO(l);return v(UO,{...Object.assign({},s)})}const qO=({value:l="",onChange:s,onBlur:u,placeholder:a="0,00",className:r="",size:p="normal",color:f="none",isRounded:m=!1,isDisabled:g=!1,hasError:C=!1,width:_="125px",...N})=>{const[T,R]=re.useState(l!=null?l:""),[I,z]=re.useState(!1);re.useEffect(()=>{R(l!=null?l:"")},[l]);const P=re.useCallback(()=>z(!0),[]),$=re.useCallback(()=>{z(!1),u==null||u()},[u]),ee=re.useCallback(Y=>{const{formattedValue:W,value:J}=Y;R(W),s==null||s(J)},[s]),K=re.useCallback(Y=>{const{floatValue:W,value:J}=Y;return!(W&&W<0||J&&J.length>20)},[]),q=re.useMemo(()=>["input-coin",`is-${p}`,f!=="none"?`is-${f}`:"",m?"is-rounded":"",C?"has-error":"",I?"is-focused":"",T!==""&&!I?"is-filled":"",r].filter(Boolean).join(" "),[r,T,I,p,f,m,C]);return v("div",{className:"elv-component elv-input-coin",children:v(BO,{className:q,style:{width:_},value:T,placeholder:I?"$":`$ ${a}`,decimalScale:2,thousandSeparator:".",decimalSeparator:",",allowNegative:!1,isAllowed:K,prefix:"$",onFocus:P,onBlur:$,onValueChange:ee,disabled:g,...N})})},KI="",dp=({size:l,backgroundColor:s,placeholder:u,defaultValue:a,value:r,buttonSearch:p,name:f,id:m,isDisabled:g,onChangeInput:C,onSearch:_,className:N,...T})=>{const R=re.useRef(null),I=P=>{P.key==="Enter"&&z()},z=()=>{var $;const P=($=R.current)==null?void 0:$.value;_&&_(P||"")};return v("div",{className:"elv-component elv-search",...T,children:A("div",{className:`elv-component search-container search-container--${l} ${N||""}`,style:{backgroundColor:s},children:[v("input",{className:`search-container__input + ${g?"is-disabled":""}`,type:"text",name:f,id:m,placeholder:u,onChange:P=>C&&C(P.target.value),defaultValue:a,value:r,ref:R,disabled:g,onKeyDown:I}),v("span",{className:"search-container__button-search",children:v(je,{...p,size:l,onClick:()=>{z()}})})]})})},QO=({size:l="md",fill:s="outline",disabled:u=!1,placeholder:a,error:r,options:p=[],value:f,minWidth:m,maxCharacters:g=30,onChangeSelect:C,className:_,...N})=>{var K,q;const[T,R]=re.useState(!1),I=re.useRef(null),z=re.useMemo(()=>p.find(Y=>Y.value===f),[p,f]),P=(q=(K=z==null?void 0:z.label)!=null?K:a)!=null?q:"";re.useEffect(()=>{if(!T)return;function Y(J){!I.current||I.current.contains(J.target)||R(!1)}function W(J){J.key==="Escape"&&R(!1)}return document.addEventListener("click",Y),document.addEventListener("keydown",W),()=>{document.removeEventListener("click",Y),document.removeEventListener("keydown",W)}},[T]),re.useEffect(()=>{u&&R(!1)},[u]);const $=()=>{u||R(Y=>!Y)},ee=Y=>{C==null||C(Y),R(!1)};return v("div",{className:"elv-component elv-select",style:{minWidth:m},...N,children:A("div",{className:`select-container ${_!=null?_:""}`,ref:I,children:[v("div",{className:["select-container__select",`select--${s}`,`select--${l}`,`${r?"select--error":""}`,`${u?"select--disabled":""}`].join(" "),role:"button","aria-haspopup":"listbox","aria-expanded":T,onClick:$,children:v("span",{children:It(P,g)})}),v("div",{className:`select-container__dropdown select--${l} ${T?"select-container__dropdown--active":""}`,children:A("ul",{className:"dropdown__list",role:"listbox",children:[a&&v("li",{className:`list__item list__item--default ${f===""?"list__item--active":""}`,onClick:()=>ee(""),role:"option","aria-selected":f==="",children:It(a,g)}),p!=null&&p.length?p.map((Y,W)=>{const J=f===Y.value;return A("li",{className:`list__item ${J?"list__item--active":""}`,onClick:()=>ee(Y.value),role:"option","aria-selected":J,children:[Y.icon&&v("i",{className:`item__icon ${Y.icon}`}),It(Y.label,g)]},W)}):v("li",{className:"list__item",style:{opacity:.7,cursor:"default"},children:"No hay opciones"})]})})]})})},GI="",zC=({size:l="md",disabled:s=!1,defaultChecked:u,error:a,onCheck:r,className:p,...f})=>{const[m,g]=re.useState(),C=()=>{g(!m),r&&r(!m)};return v("div",{className:"elv-component elv-switch",...f,children:A("label",{className:["switch",` switch--${l}`,`${a?" switch--error":""}`,`${p?" "+p:""}`].join(""),children:[v("input",{type:"checkbox",disabled:s,defaultChecked:u,onChange:C}),v("span",{className:"slider round"})]})})},XI="",KO=({value:l,error:s,onChangeInput:u,placeholder:a,defaultValue:r,disabled:p,required:f,rows:m=5,cols:g=50,className:C,..._})=>v("div",{className:"elv-component elv-textArea",children:v("textarea",{className:["textarea",`${s?" textarea--error":""}`,`${C?" "+C:""}`].join(""),onChange:N=>u(N.target.value),placeholder:a,disabled:p,defaultValue:r,required:f,rows:m,cols:g,..._})}),ZI="",JI="",$C=({className:l,progressBar:s,showBar:u,file:a,file_name:r,file_size:p,onPreview:f,onDelete:m,...g})=>v("div",{className:"elv-component elv-uploadfile",...g,children:A("div",{className:["uploadfile p-4 is-flex is-align-items-center is-relative ",`${l?" "+l:""}`].join(""),children:[v("div",{className:"mr-5",children:r&&v(Ye,{icon:Nk(r),className:"has-tc-primary-600",size:"24px"})}),A("div",{className:"uploadfile__info is-flex-direction-column ",children:[A("div",{className:"is-flex is-justify-content-space-between is-align-items-center ",children:[A("div",{className:"is-flex is-align-items-center",children:[r?v("p",{className:"file_name is-size-7",children:r}):a?v("p",{className:"file_name is-size-7",children:a.name}):v(Vt,{}),v("span",{className:"uploadfile__elipse has-background-grey mt-2 mr-2 ml-2"}),v(je,{label:"Previsualizar",fill:"unstyled",className:"preview",onClick:()=>{a&&f&&f(a)}})]}),p?v("div",{className:"is-size-7",children:L0(p)}):a?v("div",{className:"is-size-7",children:L0(a.size)}):v(Vt,{})]}),u&&v("div",{className:"uploadfile__progress pt-2",children:v(A0,{...s})})]}),v("div",{className:"uploadfile__icon is-absolute",onClick:()=>{a&&m&&m(a)},children:v(Ye,{icon:"fa-solid fa-circle-xmark fa-2xl"})})]})}),GO=({className:l,labelSelection:s,labelData:u,maxSizeInMB:a,maxFiles:r,progressUpload:p,defaultFiles:f,acceptedExtensions:m,onProgressFile:g,onPreviewFile:C,onDeleteFile:_,onErrorSize:N,onErrorExtensions:T,...R})=>{const[I,z]=re.useState(!1),[P,$]=re.useState(()=>!m||(m==null?void 0:m.length)===0?f||[]:(f||[]).filter(ae=>{var te;const V=(te=ae.name.split(".").pop())==null?void 0:te.toLowerCase();return m==null?void 0:m.includes(V||"")})),ee=ae=>{ae.preventDefault(),z(!0)},K=()=>{z(!1)},q=ae=>{ae.preventDefault(),z(!1);const V=ae.dataTransfer.files;V&&W(V)},Y=ae=>{const V=ae.target.files;V&&W(V)},W=ae=>{var V;if(console.log(""),ae.length<=r&&P.length+ae.length<=r)for(let te=0;te<ae.length;te++){const ue=ae[te],de=ue.name.split("."),be=de.length>1?(V=de.pop())==null?void 0:V.toLowerCase():"";if((m==null?void 0:m.length)===0||(m==null?void 0:m.includes(be||""))){if(ue.size<=a*1024*1024)g&&g(ue);else{N&&N(ue);return}$(we=>[...we,ue])}else{T&&T(ue);return}}else{alert("La cantidad de archivos exceden el m\xE1ximo que es: "+r+".");return}},J=ae=>{const V=P.filter(te=>te!==ae);$(V)};return v("div",{className:"elv-component elv-uploadfiles",...R,children:A("div",{className:["uploadfiles is-flex is-flex-direction-column is-align-items-center is-gap-4 p-5",`${l?" "+l:""}`].join(""),children:[v("div",{className:`uploadfiles__files file ${I?"dragging":""}`,onDragEnter:ee,onDragLeave:K,onDragOver:ae=>ae.preventDefault(),onDrop:q,children:A("label",{htmlFor:"file-input",className:"file-label",children:[v("input",{id:"file-input",className:"file-input",type:"file",name:"resume",onChange:Y,multiple:!0}),A("span",{className:"file-cta px-6 py-5 is-flex-direction-column",children:[v("span",{className:"file-icon",children:v(Ye,{icon:"fas fa-upload has-text-grey-dark mb-3"})}),v("span",{className:"file-label has-text-grey-dark",children:s})]})]})}),v("div",{className:"uploadfiles__data",children:u}),P.length>0?v("div",{children:P.map((ae,V)=>v("div",{className:"uploadfiles__download mb-3",children:v($C,{showBar:!!(p&&p[V]&&p[V]!==100),file:ae,file_name:ae.name,file_size:ae.size,onPreview:te=>{C&&C(te)},onDelete:te=>{_&&_(te),J(te)},progressBar:{value:p&&p[V]?p[V]:0}})},V))}):null]})})},ej="",XO=({columnItems:l,finalItem:s,logo_1:u,logo_2:a,endButtonLinks:r,butonLegal:p,className:f,...m})=>{var g=new Date,C=g.getFullYear();return v("div",{className:"elv-component elv-footer",...m,children:A("div",{className:`footer-component is-flex is-flex-direction-column ${f||""}`,children:[A("div",{className:"footer-component__container",children:[l&&v(Vt,{children:l.map(_=>A("div",{className:"column-item is-flex is-flex-direction-column",children:[v("p",{className:"column-item__title",children:_.title}),_.buttonLinks.map(N=>v("span",{className:"column-item__button",children:v(je,{...N})},Un())),v("span",{className:"column-item__final",children:v(je,{..._.finalLink})})]},Un()))}),s&&A("div",{className:"final-item is-flex is-flex-direction-column",children:[v("p",{className:"final-item__title",children:s.title}),s.buttonLinks.map(_=>v("span",{className:"final-item__button",children:v(je,{..._})},Un())),v("p",{className:"final-item__phoneNumber",children:s.phoneNumber})]})]}),A("div",{className:"footer-component__end",children:[A("div",{className:"logos is-flex",children:[v("img",{className:"logo1",src:u,alt:""}),A("div",{className:"gob-centro is-flex is-flex-direction-column is-justify-content-center",children:[A("div",{className:"text-gob-centro",children:[v("p",{children:v("strong",{children:" Gobierno de Corrientes. Ministerio de Hacienda y Finanzas. Direccion General de Rentas"})}),v("p",{children:"Casa Central: 25 de Mayo 902 PB, Corrientes(W3400BCJ) - Corrientes"}),v("p",{children:"Centro Integral de Atencion al Contribuyente(CIAC): Av. Juan Pujol 2330, Corrientes(W3400BKU)."})]}),v("div",{className:"aviso-legal",children:p&&v(je,{...p})})]}),v("img",{className:"logo2",src:a,alt:""})]}),A("div",{className:"copy is-flex",children:[v("div",{className:"copy__text is-flex",children:A("p",{children:["Copyright\xA9 ",C," - Rentas Corrientes"]})}),r&&v("div",{className:"end-button-links is-flex",children:r.map(_=>v("div",{className:"end-button-links__item is-flex",children:v("span",{className:"end-button-links__button",children:v(je,{..._})},_.label)},Un()))})]})]})]})})},tj="",ZO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InNlZ21lbnQiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTUuODMyNSAxOC45MzA3SDMuODMyNTJWMTYuOTMwN0gxNS44MzI1VjE4LjkzMDdaTTIxLjgzMjUgNi45MzA2NlY4LjkzMDY2SDMuODMyNTJWNi45MzA2NkgyMS44MzI1Wk0xNS44MzI1IDEzLjkzMDdIMy44MzI1MlYxMS45MzA3SDE1LjgzMjVWMTMuOTMwN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg==",JO=({className:l,logged:s,logo:u,logoMobile:a,navItems:r,iconFunctions:p,buttonLogin:f,userInfo:m,notUserDropComponent:g,interno:C,..._})=>{var ue,de,be,we;const[N,T]=re.useState(!1),[R,I]=re.useState(!1),[z,P]=re.useState(window.innerWidth<1217),[$,ee]=re.useState(window.innerWidth<654),[K,q]=re.useState(null),[Y,W]=re.useState((ue=p==null?void 0:p.reduce((ye,pe)=>({...ye,[pe.uniqueValue]:{active:!1,name:null}}),{}))!=null?ue:{}),J=re.useRef(null),ae=p==null?void 0:p.map(()=>re.useRef(null)),V=ye=>{q(pe=>pe===ye?null:ye),W(pe=>({...Object.keys(pe).reduce((he,ke)=>(he[ke]={active:ke===ye,name:pe[ke].name},he),{})}))};re.useEffect(()=>{function ye(pe){var he;Object.values(Y).some(ke=>ke.active)&&!pe.defaultPrevented&&!((he=J.current)!=null&&he.contains(pe.target))&&(W(ke=>Object.keys(ke).reduce((We,at)=>({...We,[at]:{active:!1,name:ke[at].name}}),{})),q(null))}return document.addEventListener("click",ye),()=>{document.removeEventListener("click",ye)}},[J,Y]);const te=re.useRef(null);return re.useEffect(()=>{function ye(pe){te.current&&!te.current.contains(pe.target)&&I(!1)}return document.addEventListener("click",ye),()=>{document.removeEventListener("click",ye)}},[te]),re.useEffect(()=>{function ye(){P(window.innerWidth<1217),ee(window.innerWidth<654)}return window.addEventListener("resize",ye),()=>{window.removeEventListener("resize",ye)}},[]),v("div",{className:"elv-component elv-header",..._,children:v("div",{className:`navbar-container ${C?"navbar-container--interno":""} ${l||""}`,children:A("nav",{className:"navbar container",role:"navigation","aria-label":"main navigation",children:[A("div",{className:"navbar-brand",children:[v("a",{role:"button",className:`navbar-burger ${N?"is-active":""}`,"aria-label":"menu","aria-expanded":"false","data-target":"rentas-ctes-header",onClick:()=>T(!N),children:v("img",{src:ZO,alt:"Burger SVG"})}),u&&v(Vt,{children:$?v("a",{className:"navbar-item px-1",onClick:()=>{a!=null&&a.onClick&&a.onClick()},children:v("img",{src:a==null?void 0:a.src,alt:"Logo Header",height:u.height,width:u.width})}):v("a",{className:"navbar-item pt-0",onClick:()=>{u!=null&&u.onClick&&u.onClick()},children:v("img",{src:u.src,alt:"Logo Header",height:u.height,width:u.width})})})]}),v("div",{id:"rentas-ctes-header",className:`navbar-menu ${N?"is-active":""}`,children:v("div",{className:"navbar-start",children:r&&r.map(ye=>v("a",{className:"navbar-item item-text",onClick:ye.onClick,children:ye.label},Un()))})}),A("div",{className:"navbar-end is-flex",children:[v("div",{className:"icon-functions is-flex",ref:J,children:p&&p.map((ye,pe)=>A("div",{className:["item-icon "].join(""),ref:ae&&ae[pe],children:[v("span",{children:v(je,{...ye.buttonIcon,onClick:()=>{var he;V(ye.uniqueValue),(he=ye.buttonIcon)!=null&&he.onClick&&ye.buttonIcon.onClick()}})}),ye.badge&&v(Vt,{children:v("span",{className:"item-icon__badge-notif",children:v(ji,{...ye.badge})})}),ye.iconDropComponent&&v("div",{className:`drop-component drop-component__icon ${Y[ye.uniqueValue]&&p[pe].uniqueValue===K?"is-active":""}`,children:ye.iconDropComponent})]},Un()))}),s?v(Vt,{children:z?A("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:te,children:[v("div",{className:"user-mobile__icon",children:v(Ye,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>I(!R)})}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]}):A("div",{className:"navbar-item user-desktop",ref:te,children:[A("div",{className:"user-sec is-flex is-align-items-center",onClick:()=>I(!R),children:[A("div",{className:"user-sec__text",children:[A("p",{className:"names",children:["Hola, ",m.name," ",m.lastName]}),v("p",{className:"description",children:m.description})]}),A("div",{className:"user-sec__icons is-flex",children:[(de=m.avatar)!=null&&de.icon?A("div",{className:"user-icon",children:[v(Ye,{icon:m.avatar.icon.icon}),m.avatar.stateColor&&v("span",{className:"user-icon__state",children:v(Ye,{icon:"fa fa-circle",color:m.avatar.stateColor,size:"10px"})})]}):v("img",{src:(we=(be=m.avatar)==null?void 0:be.img)==null?void 0:we.src,width:"16px",height:"16px",style:{borderRadius:"50%"}}),v(Ye,{icon:"fa-solid fa-chevron-down"})]})]}),m.userDropComponent&&v("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:m.userDropComponent})]})}):v(Vt,{children:z?A("div",{className:"navbar-item user-mobile is-flex is-align-items-center",ref:te,children:[v("div",{className:"user-mobile__icon",children:v(Ye,{icon:"far fa-user",size:"20px",className:"pb-1 is-clickable",onClick:()=>I(!R)})}),g&&v("div",{className:`drop-component drop-component__user ${R&&"is-active"}`,children:g})]}):v("div",{className:"navbar-item",children:v(je,{...f})})})]})]})})})},nj="",eR=({className:l,search:s,pagination:u,selectList:a,button:r,menuButton:p,menuDropComponent:f,...m})=>{const[g,C]=re.useState(!1),_=re.useRef(null);return re.useEffect(()=>{function N(T){_.current&&!_.current.contains(T.target)&&C(!1)}return document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}},[_]),v("div",{className:`elv-component elv-header-table ${l||""}`,...m,children:A("div",{className:"header-table is-flex",children:[s&&v("span",{children:v(dp,{...s})}),a&&a.map(N=>v("span",{children:v(xu,{...N})},Un())),u&&v(Dv,{...u}),r&&v(je,{...r}),p&&A("div",{ref:_,className:"menuButton",children:[v(je,{...p,onClick:()=>{C(!g),p.onClick&&p.onClick()}}),f&&g&&v("div",{className:"menuButton__dropComponent",children:f})]})]})})},rj="",tR=({className:l,buttonShow:s,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m,listLineSeparation:g=!1,onShow:C,onClose:_,...N})=>{const[T,R]=re.useState(a),[I,z]=re.useState(1),[P,$]=re.useState(0),ee=re.useRef(null),K=re.useRef(null),[q,Y]=re.useState(p);re.useEffect(()=>{R(a)},[a]),re.useEffect(()=>{Y(p)},[p]);const W=`${p*P+p}px`;return A("div",{className:"elv-component elv-sidebar",...N,children:[!T&&v("div",{className:"is-flex is-justify-content-end",children:v(je,{...s,onClick:()=>{R(!0),C&&C()}})}),T&&v("div",{className:"modal-background",onClick:()=>{R(!1),_&&_()}}),A("div",{className:`sidebar-container is-flex is-flex-direction-column ${T?"is-open":""} ${l||""}`,children:[A("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(je,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{R(!1),_&&_()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(dp,{...r})}),v("div",{ref:K,className:`sidebar-container__list is-flex is-flex-direction-column is-gap-4 ${f} `,style:{minHeight:W},children:m.slice((I-1)*p,I*p).map((J,ae)=>v("div",{ref:ee,className:`listItem ${g?" line-separation":""}`,children:J},Un()))}),v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:(m==null?void 0:m.length)>p&&v(Dv,{onChangePage:J=>{z(J)},minItemsPerPage:q,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})},aj="",nR=({className:l,title:s,show:u,button:a,buttonShow:r,buttonShowVisible:p,optionalButton:f,optionalButton2:m,children:g,position:C="right",footerbutton:_,onShow:N,width:T,...R})=>{const[I,z]=re.useState(u);return re.useEffect(()=>{z(u)},[u]),A("div",{className:"elv-component elv-sidebarEmpty",...R,children:[p&&!I&&v("div",{className:"is-flex is-justify-content-end",children:v(je,{...r,onClick:()=>{z(!0),N&&N()}})}),I&&v("div",{className:"modal-background",onClick:()=>{z(!1),N&&N()}}),A("div",{className:[`sidebar-container is-flex is-flex-direction-column is-justify-content-space-between ${I?"is-open":""}`,` sidebar-container--${C}`,`${l?" "+l:""}`].join(""),style:{"--sidebar-width":T||"400px"},"data-width":T||"400px",children:[A("div",{children:[A("div",{className:"sidebar-container__header is-flex is-align-items-center mb-4 is-gap-4",children:[v("div",{className:"sidebar-container__button mr-3",children:v(je,{...a,fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{z(!1),N&&N()}})}),v("p",{className:"title is-5 has-text-link-dark",children:s})]}),v("div",{className:"sidebar-container__content",children:g})]}),_&&v("div",{children:A("div",{className:"button-container is-flex pl-5 pb-5",children:[v("div",{className:"button-container__opt ml-5",children:f&&v(je,{...f})}),v("div",{className:"button-container__opt",children:m&&v(je,{...m})})]})})]})]})},ij="",rR=({className:l,border:s,size:u,label:a,description:r,backButton:p,leftIcon:f,rectangle:m,actionButtons:g,addButton:C,removeButton:_,linkButton:N,iconButton:T,switcherLabel:R,switcher:I,labelRight:z,...P})=>v("div",{className:"elv-component elv-subtitle",...P,children:A("div",{className:`subtitle-component ${s&&"subtitle-component--border-bot-gray"} ${l||""}`,children:[A("div",{className:"subtitle-component__left is-flex is-justify-content-start is-align-items-start",children:[p&&v("div",{className:"left-backButton",children:v(je,{...p})}),A("div",{className:"left-texts",children:[A("div",{className:"left-texts__principal is-flex is-align-items-center",children:[f&&v(Ye,{...f}),m&&v("span",{className:"left-texts__principal__rectangle"}),a&&v("p",{className:`left-texts__principal__label left-texts__principal__label--${u}`,children:a})]}),r&&v("div",{className:`left-texts__description left-texts__description--${u}`,children:r})]})]}),A("div",{className:"subtitle-component__right is-flex is-align-items-center",children:[C||_?A("div",{className:"right-editButtons is-flex",children:[C&&v("span",{className:"right-editButtons__addButton",children:v(je,{...C})}),_&&v("span",{className:"right-editButtons__removeButton",children:v(je,{..._})})]}):v(Vt,{}),N&&v("span",{className:"right-linkButton",children:v(je,{...N})}),T&&v("span",{children:v(je,{...T})}),I&&A("div",{className:"right-switcher is-flex is-align-items-center",children:[R&&v("p",{className:"right-switcher__label",children:R}),v(zC,{...I})]}),z&&v("p",{className:"right-label",children:z})]})]})}),oj="",aR=({className:l,subtitle:s,title:u,description:a,descriptionWidth:r,secondDescription:p,actionsButtons:f,search:m,button:g,buttonWidth:C,backButton:_,searchWidth:N,align:T,...R})=>v("div",{className:"elv-component elv-title",...R,children:A("div",{className:`title-component-container ${_&&"title-component-container--backButton"} ${l||""}`,children:[_&&v("div",{className:"title-component-container__backButton is-flex",children:v(je,{..._})}),A("div",{className:`title-component title-component--${T} is-flex is-flex-direction-column`,children:[s&&v("p",{className:"title-component__subtitle",children:s.toUpperCase()}),u&&v("p",{className:"title-component__title",children:u}),A("div",{className:`title-component__content is-flex title-component__content--${T} is-flex-direction-column ${_&&"title-component__content--backButton"}`,children:[a&&v("p",{className:"title-component__description",style:{width:r},children:a}),p&&v("p",{className:"title-component__secondDescription",style:{width:r},children:p}),f&&v("span",{className:"title-component__actionButtons is-flex",children:f.map(I=>v("span",{children:v(je,{...I})},I.label))}),m&&v("span",{className:"title-component__search",style:{width:N},children:v(dp,{...m})}),g&&v("span",{className:"title-component__button",style:{width:C},children:v(je,{...g})})]})]})]})}),lj="",iR=({className:l,buttonShow:s,title:u,show:a,search:r,itemsPerPage:p=5,listClassName:f="",listOfComponents:m=[],listLineSeparation:g=!1,onShow:C,onClose:_,children:N,width:T="315px",showOpenButton:R=!1,...I})=>{const[z,P]=re.useState(a),[$,ee]=re.useState(1),[K,q]=re.useState(0),Y=re.useRef(null),W=re.useRef(null),[J,ae]=re.useState(p);re.useEffect(()=>{P(a)},[a]),re.useEffect(()=>{ae(p)},[p]);const V=`${p*K+p}px`;return A("div",{className:"elv-component elv-sidebar",...I,children:[!z&&R&&s&&v("div",{className:"is-flex is-justify-content-end",children:v(je,{...s,onClick:()=>{P(!0),C&&C()}})}),z&&v("div",{className:"modal-background",onClick:()=>{P(!1),_&&_()}}),A("div",{className:`sidebar-container is-flex is-flex-direction-column ${l!=null?l:""}`,style:{width:T,right:z?"0":`-${T}`},children:[A("div",{className:"sidebar-container__header is-flex is-align-items-center",children:[v(je,{fill:"unstyled",icon:"fa-solid fa-xmark",size:"medium",onClick:()=>{P(!1),_&&_()}}),v("p",{className:"title is-5",children:u})]}),r&&v("div",{className:"sidebar-container__search",children:v(dp,{...r})}),v("div",{ref:W,className:`sidebar-container__list overflow-y-scroll is-flex is-flex-direction-column is-gap-4 ${f}`,style:{minHeight:V},children:N||m.slice(($-1)*J,$*J).map(te=>v("div",{ref:Y,className:`listItem ${g?" line-separation":""}`,children:te},Un()))}),!N&&(m==null?void 0:m.length)>J&&v("div",{className:"sidebar-container__pagination is-flex is-justify-content-center is-align-items-end",children:v(Dv,{onChangePage:te=>{ee(te)},minItemsPerPage:J,totalItems:m.length,showTotals:!0,isColumn:!0})})]})]})};nt.Alert=_k,nt.Alert2=Sk,nt.AssistanceDiary=kk,nt.Autocomplete=mO,nt.Autocomplete2=gO,nt.Autocomplete3=yO,nt.AverageAttended=Dk,nt.Badge=ji,nt.Breadcrumb=Ek,nt.Button=je,nt.CTA=W2,nt.CardActivity=Mk,nt.CardCTA=Tk,nt.CardExpiration=Ok,nt.CardHorizontal=Pk,nt.CardUser=Ak,nt.CardVertical=Rk,nt.Cart=Lk,nt.Checkbox=ad,nt.Collapse=I0,nt.CollapseEdit=Vg,nt.CollapseMobile=j0,nt.CompleteDiary=V2,nt.DatePickerComponent=wO,nt.Dropdown=B2,nt.EmptyState=q2,nt.ErrorPage=Q2,nt.Filters=bO,nt.Footer=XO,nt.Header=JO,nt.HeaderTable=eR,nt.Icon=Ye,nt.IncomingCall=K2,nt.Input=Jh,nt.Input2=xO,nt.InputCoin=qO,nt.InputForm=CO,nt.ModalConfirm=Z2,nt.ModalConfirm2=J2,nt.ModalConfirm3=eO,nt.Pagination=Dv,nt.Pagination2=tO,nt.PerformanceAssessment=dO,nt.ProgressBar=A0,nt.Radio=Zh,nt.Search=dp,nt.Select=xu,nt.Select2=QO,nt.ShiftDiary=fO,nt.Sidebar=tR,nt.SidebarChildren=iR,nt.SidebarEmpty=nR,nt.Stepper=pO,nt.Subtitle=rR,nt.Switch=zC,nt.Tabs=hO,nt.Textarea=KO,nt.Title=aR,nt.Tooltip=Xh,nt.Tooltip2=vO,nt.UploadFileItem=$C,nt.UploadFiles=GO,Object.defineProperties(nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|