ixc-library-portal 1.0.78 → 1.0.80
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/dist/ixc-library.es.js
CHANGED
|
@@ -14479,7 +14479,7 @@ const ko = Re(/* @__PURE__ */ t.jsx("path", {
|
|
|
14479
14479
|
] });
|
|
14480
14480
|
};
|
|
14481
14481
|
q0.propTypes = {
|
|
14482
|
-
locale: r.oneOf(["es
|
|
14482
|
+
locale: r.oneOf(["es", "en"]),
|
|
14483
14483
|
heightBoxes: r.string,
|
|
14484
14484
|
onDateRangeChange: r.func.isRequired,
|
|
14485
14485
|
disablePastDates: r.bool,
|
package/dist/ixc-library.umd.js
CHANGED
|
@@ -447,4 +447,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${n}Chann
|
|
|
447
447
|
border: none;
|
|
448
448
|
background: none;
|
|
449
449
|
cursor: pointer;
|
|
450
|
-
`,Bo=({children:e,height:n,width:s,style:o})=>t.jsx(_o,{style:{height:n,width:s,...o},children:e});Bo.propTypes={children:r.any,width:r.string,height:r.string,style:r.object};const Fo=({title:e,height:n,width:s,style:o,children:i})=>{const[a,l]=S.useState(!1);return t.jsxs(_o,{style:{height:a?"auto":n,width:s,...o,borderRadius:"0px",boxShadow:"none",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e,t.jsx($u,{onClick:()=>l(!a),children:t.jsx("i",{className:`arrow-grey-container ${a?"up":"down"}`})})]}),a&&t.jsx("div",{style:{paddingTop:"8px"},children:i})," "]})};Fo.propTypes={title:r.node,width:r.string,height:r.string,style:r.object,children:r.node};const Lo=({totalPages:e=50,currentPage:n=1,onChange:s,nextLabel:o,prevLabel:i,height:a,disabled:l,fontSize:c})=>{const u=h=>{h>0&&h<=e&&s(h)},f=()=>{n<e&&s(n+1)},p=()=>{n>1&&s(n-1)},b=[],x=Math.max(1,n-4),m=Math.min(e,x+9-1);for(let h=x;h<=m;h++)b.push(h);if(n>e-4){b.length=0;for(let h=e-9+1;h<=e;h++)h>0&&b.push(h)}return t.jsx("nav",{className:"pagination",children:t.jsxs("ul",{className:"pagination-list",children:[n>1&&t.jsxs("li",{className:`pagination-prev ${l?"disabled":""}`,onClick:l?null:p,style:{height:a,fontSize:c},children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})}),i]}),x>1&&t.jsxs(t.Fragment,{children:[t.jsx("li",{className:`pagination-link ${l?"disabled":""}`,onClick:()=>l?null:u(1),style:{height:a,fontSize:c},children:"1"}),x>2&&t.jsx("li",{className:"pagination-list",style:{height:a,fontSize:c},children:"..."})]}),b.map(h=>t.jsx("li",{className:`pagination-link ${n===h?"active":""} ${l?"disabled":""}`,onClick:()=>l?null:u(h),style:{height:a,fontSize:c},children:h},h)),m<e&&t.jsxs(t.Fragment,{children:[m<e-1&&t.jsx("li",{className:`pagination-list ${l?"disabled":""}`,style:{height:a,fontSize:c},children:"..."}),t.jsx("li",{className:`pagination-link ${l?"disabled":""}`,onClick:()=>l?null:u(e),style:{height:a,fontSize:c},children:e})]}),n<e&&t.jsxs("li",{className:`pagination-next ${l?"disabled":""}`,onClick:l?null:f,style:{height:a,fontSize:c},children:[o,t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]})})};Lo.propTypes={totalPages:r.number,currentPage:r.number,onChange:r.func,nextLabel:r.string,prevLabel:r.string,height:r.string,disabled:r.bool,fontSize:r.string};const Ho=Oe(t.jsx("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded"),Vo=Oe(t.jsx("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76"}),"ArrowForwardIosRounded"),Uo=Oe(t.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),qo={DAYS:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],MONTHS:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],code:"es-ES",selectRange:"Selecciona un rango de fechas",days:"días",cancel:"CANCELAR",search:"BUSCAR"},Yo={DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],code:"en-US",selectRange:"Select a date range",days:"days",cancel:"CANCEL",search:"SEARCH"},_t=e=>{e instanceof Date||(e=new Date(e));const n=String(e.getDate()).padStart(2,"0"),s=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear();return{formatDDMMYYYY:`${n}-${s}-${o}`,formatMMDDYYYY:`${s}-${n}-${o}`,formatYYYYMMDD:`${o}-${s}-${n}`,originalFormat:e}},_u=(e,n,s)=>{if(!n||s<=0)return!1;const o=new Date(n);return o.setMonth(o.getMonth()+s),o.setDate(o.getDate()-1),e>o},Bu=({locale:e="es",disablePastDates:n,onDateRangeChange:s,withoutSearchButton:o=!1,onReset:i,limitRange:a,disableFutureDates:l,basicSelect:c,disablePastDaysCount:u})=>{const[f,p]=S.useReducer(N=>N+1,0),g=e==="es"?qo:Yo,[b,x]=S.useState(!1),[m,h]=S.useState(null),[w,k]=S.useState(null),[D,C]=S.useState(null),[j,v]=S.useState(new Date),[z,W]=S.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[Y,I]=S.useState(!1),[d,A]=S.useState(!1),E=(N,Q)=>{const L=new Date().setHours(0,0,0,0),q=new Date,ie=Date.UTC(q.getFullYear(),q.getMonth(),q.getDate());if(u){const P=new Date(ie);if(P.setUTCDate(P.getUTCDate()-u),Date.UTC(N.getFullYear(),N.getMonth(),N.getDate())<P.getTime())return!0}return Q&&n&&N<L||!Q&&l&&N>L||n&&N<L||l&&N>L?!0:a>0&&m?_u(N,m,a):!1},_=N=>{const Q=N.getFullYear(),L=N.getMonth(),ie=new Date(Q,L,1).getDay(),P=new Date(Q,L+1,0),de=[],Ne=new Date(Q,L,0).getDate();for(let ve=ie-1;ve>=0;ve--)de.push(new Date(Q,L-1,Ne-ve));for(let ve=1;ve<=P.getDate();ve++)de.push(new Date(Q,L,ve));const Me=42-de.length;for(let ve=1;ve<=Me;ve++)de.push(new Date(Q,L+1,ve));return de},H=N=>!m||!w?!1:N>=m&&N<=w,G=N=>!m||!D?!1:N>=m&&N<=D||N<=m&&N>=D,U=N=>{!m||w?(h(N),k(null)):N<m?(k(m),h(N),o&&te(N,m)):(k(N),o&&te(m,N))},F=N=>{C(N)},$=()=>!m||!w?0:Math.round((w.getTime()-m.getTime())/(1e3*60*60*24))+1,Z=(N,Q)=>{const L=new Date(N.getFullYear(),N.getMonth()-1,1);n&&L<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&Q||(Q?v(L):(W(L),L.getMonth()===j.getMonth()&&v(new Date(L.getFullYear(),L.getMonth()-1,1))))},T=(N,Q)=>{const L=new Date(N.getFullYear(),N.getMonth()+1,1);Q?(v(L),L.getMonth()===z.getMonth()&&W(new Date(L.getFullYear(),L.getMonth()+1,1))):W(L)},R=N=>{const L=N.toLocaleDateString(g.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),q=L[0].charAt(0).toUpperCase()+L[0].slice(1),ie=L[1],P=L[2].charAt(0).toUpperCase()+L[2].slice(1),de=L[3];return`${q} ${ie} de ${P} ${de}`},ee=()=>{const N=new Date;h(null),k(null),v(N),W(new Date(new Date().setMonth(new Date().getMonth()+1))),A(!1),x(!1),i({startDate:null,endDate:null}),p()},X=()=>{A(!1);const N=_t(m),Q=_t(w);s({startDate:N,endDate:Q}),Y&&c&&I(!1)},te=(N,Q)=>{h(N),k(Q),A(!1);const L=_t(N),q=_t(Q);s({startDate:L,endDate:q}),Y&&c&&I(!1)};return{isOpen:d,endDate:w,language:g,leftMonth:j,startDate:m,setIsOpen:A,hoverDate:D,rightMonth:z,formatDate:R,handleSearch:X,handleCancel:ee,isDateInRange:H,getDaysInMonth:_,isDateDisabled:E,handleDateClick:U,handleDateHover:F,handlePrevClick:Z,handleNextClick:T,getDaysSelected:$,isDateInHoverRange:G,handleBasicSelect:({value:N})=>{N==="custom"?(I(!0),x(!1)):(s({value:N}),x(!0),I(!1))},isCustomSelected:Y,toggleDateWhenBasicSelectIsTrue:()=>!!(!d&&Y&&c||!c&&d),basicSelectHasValue:b,keyReset:f}},Zo=(e,n,s,o)=>{if(!s||o<=0)return!1;const i=new Date(s);i.setMonth(i.getMonth()+o),i.setDate(i.getDate()-1);const a=new Date(s);return a.setDate(1),n?e<a:e>i},Go=({locale:e="es",onDateRangeChange:n,disablePastDates:s,limitRange:o=0,resetButton:i=!0,onReset:a,direction:l="right",heightBoxes:c="40px",fontSize:u="0.92vw",disabled:f,basicSelect:p,disableFutureDates:g,optionsBasicSelect:b,withoutSearchButton:x,widthBasicSelect:m,fontSizeLabelBasicSelect:h,fontSizeOptionsBasicSelect:w,labelText:k,subLabelText:D,disablePastDaysCount:C})=>{const{keyReset:j,isOpen:v,endDate:z,language:W,leftMonth:Y,startDate:I,setIsOpen:d,rightMonth:A,formatDate:E,handleSearch:_,handleCancel:H,isDateInRange:G,getDaysInMonth:U,isDateDisabled:F,handleDateClick:$,handleDateHover:Z,handlePrevClick:T,handleNextClick:R,getDaysSelected:ee,isDateInHoverRange:X,handleBasicSelect:te,basicSelectHasValue:V,toggleDateWhenBasicSelectIsTrue:J}=Bu({locale:e,onReset:a,onDateRangeChange:n,disablePastDates:s,withoutSearchButton:x,limitRange:o,disableFutureDates:g,basicSelect:p,disablePastDaysCount:C}),N=S.useRef(null);S.useEffect(()=>{const L=q=>{N.current&&!N.current.contains(q.target)&&v&&(d(!1),i||H())};return document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)}},[z,H,v,d,I,i]);const Q=(L,q=!0)=>{const ie=U(L),P=L.getMonth(),de=(re,Me)=>[re&&re.getMonth()!==P?"other-month":"",re&&G(re)?"in-range":"",re&&X(re)?"hover-range":"",re&&(re.getTime()===(I==null?void 0:I.getTime())||re.getTime()===(z==null?void 0:z.getTime()))?"selected":"",F(re,Me)?"disabled":""].join(" "),Ne=({date:re,isLeftCalendar:Me,disablePastDates:ve,leftMonth:Re})=>{const Ie=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),rt=new Date(re.getFullYear(),re.getMonth()-1,1).getTime();return!!(ve&&(rt<Ie||!Me&&new Date(Re.getFullYear(),Re.getMonth(),1).getTime()<=Ie))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>T(L,q),disabled:Zo(new Date(L.getFullYear(),L.getMonth()-1,1),!0,I,o)||Ne({date:L,isLeftCalendar:q,disablePastDates:s,leftMonth:Y}),children:t.jsx("span",{className:"sr-only",children:t.jsx(Ho,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[W.MONTHS[L.getMonth()],t.jsx("p",{children:L.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>R(L,q),disabled:Zo(new Date(L.getFullYear(),L.getMonth()+1,1),!1,I,o)||g&&new Date(L.getFullYear(),L.getMonth(),1).getTime()>=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),children:t.jsx("span",{className:"sr-only",children:t.jsx(Vo,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),W.DAYS.map(re=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:u},children:re},re)),ie.map((re,Me)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${de(re,q)}`,disabled:!re||F(re),onClick:()=>re&&!F(re)&&$(re),onMouseEnter:()=>re&&!F(re)&&Z(re),onMouseLeave:()=>Z(null),children:t.jsx("span",{className:`day-text ${re?"":"text-muted"}`,style:{fontSize:u},children:re?re.getDate():""})})},`${re}_${Me}`))]})]})};return t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:N,style:{width:m},children:[p?t.jsx(qe,{label:"Buscar por fecha",onchange:te,options:b,size:m,isOpen:v,setIsOpen:d,disabledClickOutside:!0,disabled:f,fontSizeLabel:h,fontSizeOptions:w,keyReset:j,labelText:k,subLabelText:D}):t.jsx("button",{className:`date-picker-toggle ${f?"disabled":""}`,disabled:f,onClick:()=>d(!v),children:I&&z?t.jsxs("div",{className:"container-formate",children:[t.jsxs("p",{className:`p-formate-date ${f?"disabled":""}`,style:{borderRight:"1px solid #9c9ca0"},children:[E(I)," ",t.jsx(Uo,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]}),t.jsxs("p",{className:`p-formate-date ${f?"disabled":""}`,children:[E(z),t.jsx(Uo,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]})]}):t.jsx("div",{className:"container-formate",children:t.jsx("p",{className:`p-formate-date ${f?"disabled":""}`,style:{height:"34px"},children:W.selectRange})})}),v&&t.jsx("div",{className:"square"}),v&&t.jsx("div",{className:"container-triangle",children:t.jsx("div",{className:"triangle",children:t.jsx("div",{className:"triangle-blur"})})}),J()&&t.jsxs("div",{className:"date-picker-dropdown",style:{right:l==="right"?"0":"auto",left:l==="left"?"0":"auto",top:p?"90%":"135%"},children:[t.jsxs("div",{className:"calendars-wrapper",children:[Q(Y,!0),Q(A,!1)]}),!x&&t.jsx("div",{className:"date-picker-footer",children:I&&z&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[ee()," ",W.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(vr,{buttonProperties:{onClick:()=>H(),style:{width:"115px",textAlign:"center"}},children:W.cancel}),t.jsx(He,{buttonProperties:{onClick:()=>_(),style:{width:"115px",textAlign:"center"}},children:W.search})]})]})})]})]}),I&&z&&i&&t.jsx("button",{className:"button-reset",onClick:()=>H(),children:t.jsx(fn,{})}),V&&i&&t.jsx("button",{className:"button-reset",onClick:()=>H(),children:t.jsx(fn,{})})]})};Go.propTypes={locale:r.oneOf(["es-ES","en-US"]),heightBoxes:r.string,onDateRangeChange:r.func.isRequired,disablePastDates:r.bool,resetButton:r.bool,withoutSearchButton:r.bool,onReset:r.func,direction:r.oneOf(["left","right"]),fontSize:r.string,limitRange:r.number,keyReset:r.number,disabled:r.bool,disableFutureDates:r.bool,basicSelect:r.bool,optionsBasicSelect:r.array,widthBasicSelect:r.string,fontSizeLabelBasicSelect:r.string,fontSizeOptionsBasicSelect:r.string,labelText:r.string,subLabelText:r.any,disablePastDaysCount:r.number};const Ko=(e,{disablePastDates:n,disableBusinessDays:s})=>{const o=new Date;if(o.setHours(0,0,0,0),n&&e<o)return!1;if(s&&typeof s=="number"&&s>0){let i=new Date(o),a=0;for(;a<s;){i.setDate(i.getDate()+1);const l=i.getDay();l!==0&&l!==6&&a++}if(e<i)return!1}return!0},Fu=e=>{const n=new Date;n.setHours(0,0,0,0);const s=new Date(n);s.setDate(n.getDate()+1);const o=new Date(n);return o.setDate(n.getDate()+2),e.getTime()===n.getTime()||e.getTime()===s.getTime()||e.getTime()===o.getTime()},Lu=(e,n)=>{const s=new Date(n);return s.setHours(0,0,0,0),e.getTime()<=s.getTime()},Hu="America/Bogota",Vu=16,Uu=3,qu=4,Xo=0,Qo=6,Yu=()=>{const e=new Date().toLocaleString("en-US",{timeZone:Hu});return new Date(e)},Zu=(e,n)=>{const s=n??Yu(),i=s.getHours()<Vu?Uu:qu;let a=0;const l=new Date(s);for(l.setDate(l.getDate()+1);a<i;){const p=l.getDay();p!==Xo&&p!==Qo&&a++,l.setDate(l.getDate()+1)}for(;l.getDay()===Xo||l.getDay()===Qo;)l.setDate(l.getDate()+1);const c=new Date(e);c.setHours(0,0,0,0);const u=new Date(l);return u.setHours(0,0,0,0),c<u},Gu=e=>{let n=0,s=new Date;for(s.setHours(0,0,0,0),s.setDate(s.getDate()+1);n<5;){const o=s.getDay();o!==0&&o!==6&&n++,s.setDate(s.getDate()+1)}for(;s.getDay()===0||s.getDay()===6;)s.setDate(s.getDate()+1);return e<s},Ku=e=>e.getDay()===0||e.getDay()===6,Xu=(e,n)=>{const s=new Date(n);s.setHours(0,0,0,0);let o=new Date(s);do o.setDate(o.getDate()+1);while(o.getDay()===0||o.getDay()===6);return e.getTime()<=o.getTime()},Qu=({locale:e="es",onDateChange:n,onChangeFunction:s,disablePastDates:o,disableBusinessDays:i,disableNextTwoDays:a,disableSpecificDate:l,disableDaysBasedOnTime:c,disableFiveBusinessDays:u,disableWeekends:f,disableNextBusinessDayAfter:p,hourDisableDaysBasedOnHour:g,id:b})=>{const x=e==="es"?qo:Yo,[m,h]=S.useState(new Date),[w,k]=S.useState(new Date),[D,C]=S.useState(!1),[j,v]=S.useState(null),z=S.useRef(null),W=F=>{const $=F.getFullYear(),Z=F.getMonth(),R=new Date($,Z,1).getDay(),ee=new Date($,Z+1,0),X=[],te=new Date($,Z,0).getDate();for(let N=R-1;N>=0;N--)X.push(new Date($,Z-1,te-N));for(let N=1;N<=ee.getDate();N++)X.push(new Date($,Z,N));const J=42-X.length;for(let N=1;N<=J;N++)X.push(new Date($,Z+1,N));return X};S.useEffect(()=>{if(i&&typeof i=="number"&&i>0){let F=new Date;F.setHours(0,0,0,0);let $=new Date(F),Z=0;for(;Z<i;){$.setDate($.getDate()+1);const T=$.getDay();T!==0&&T!==6&&Z++}$.getMonth()>F.getMonth()&&k($)}},[o,i]);const Y=S.useMemo(()=>F=>F?o&&!Ko(F,{disablePastDates:o})||i&&!Ko(F,{disableBusinessDays:i})||a&&Fu(F)||l&&Lu(F,new Date(l))||c&&Zu(F,g)||u&&Gu(F)||f&&Ku(F)||p&&Xu(F,p):!1,[o,i,a,l,c,u,f,p,g]),I=F=>{const $=new Date,Z=new Date($.getFullYear(),$.getMonth(),1).setHours(0,0,0,0);if(o&&F<Z)return!0;if(l){const T=new Date(l).setHours(0,0,0,0);return F<T}return!1},d=F=>m&&F.getTime()===m.getTime(),A=F=>{const $=F.getMonth(),Z=w.getMonth();$!==Z&&k(new Date(F.getFullYear(),$,1)),v(H(F)),h(F);const T=_t(F);n&&n(T),s&&s({id:b,date:T}),C(!1)},E=F=>{const $=new Date(F.getFullYear(),F.getMonth()-1,1),Z=new Date;Z.setHours(0,0,0,0),!(o&&$<new Date(Z.getFullYear(),Z.getMonth(),1))&&k($)},_=F=>{const $=new Date(F.getFullYear(),F.getMonth()+1,1);k($)},H=F=>{const Z=F.toLocaleDateString(x.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),T=Z[0].charAt(0).toUpperCase()+Z[0].slice(1),R=Z[1],ee=Z[2].charAt(0).toUpperCase()+Z[2].slice(1),X=Z[3];return`${T} ${R} de ${ee} ${X}`},G=()=>{h(new Date),C(!1)},U=()=>{C(!1),n&&n(m),s&&s({id:b,date:m})};return S.useEffect(()=>{const F=$=>{z.current&&!z.current.contains($.target)&&C(!1)};return document.addEventListener("mousedown",F),()=>{document.removeEventListener("mousedown",F)}},[z]),{date:j,isOpen:D,setDate:v,language:x,leftMonth:w,setIsOpen:C,formatDate:H,setLeftMonth:k,handleSearch:U,disablePrev:I,handleCancel:G,selectedDate:m,isDateInRange:d,datePickerRef:z,getDaysInMonth:W,isDateDisabled:Y,handlePrevClick:E,handleNextClick:_,handleDateClick:A,setSelectedDate:h}},Jo=({label:e,error:n,locale:s,disabled:o,size:i="180px",onDateChange:a,onChangeFunction:l,disableWeekends:c,keyResetCalendar:u,disablePastDates:f,disableNextTwoDays:p,disableSpecificDate:g,disableBusinessDays:b,disableDaysBasedOnTime:x,disableFiveBusinessDays:m,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:w,heightBoxes:k="40px",labelText:D,subLabelText:C,id:j})=>{const{date:v,isOpen:z,setDate:W,language:Y,leftMonth:I,setIsOpen:d,disablePrev:A,isDateInRange:E,getDaysInMonth:_,isDateDisabled:H,handleDateClick:G,handlePrevClick:U,handleNextClick:F,datePickerRef:$,setSelectedDate:Z}=Qu({locale:s,onDateChange:a,onChangeFunction:l,disableWeekends:c,disablePastDates:f,disableBusinessDays:b,disableNextTwoDays:p,disableSpecificDate:g,disableDaysBasedOnTime:x,disableFiveBusinessDays:m,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:w,id:j});S.useEffect(()=>{W(null),Z(null)},[u,W,Z]);const T=R=>{const ee=_(R),X=R.getMonth(),te=V=>[V&&V.getMonth()!==X?"other-month":"",V&&E(V)?"selected":"",H(V)?"disabled":""].join(" ");return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>U(R),disabled:A(new Date(R.getFullYear(),R.getMonth()-1,1)),children:t.jsx("span",{className:"sr-only",children:t.jsx(Ho,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[Y.MONTHS[R.getMonth()],t.jsx("p",{children:R.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>F(R),children:t.jsx("span",{className:"sr-only",children:t.jsx(Vo,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${k})`},children:[t.jsx("div",{className:"background-days"}),Y.DAYS.map(V=>t.jsx("div",{className:"calendar-day-header",children:V},V)),ee.map((V,J)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${te(V)}`,disabled:!V||H(V),onClick:()=>V&&!H(V)&&G(V),children:t.jsx("span",{className:`day-text ${V?"":"text-muted"}`,children:V?V.getDate():""})})},`${V}_${J}`))]})]})};return t.jsxs("div",{className:"single-date-picker-container relative",ref:$,children:[t.jsx(qe,{label:v??e,onchange:()=>{},options:[],size:i,isOpen:z,setIsOpen:d,error:n,disabledClickOutside:!0,disabled:o,keyReset:u,Icon:ed,labelText:D,subLabelText:C}),z&&t.jsx("div",{className:"date-picker-dropdown date-picker-individual",children:t.jsx("div",{className:"calendars-wrapper",children:T(I)})})]})};Jo.propTypes={locale:r.oneOf(["es-ES","en-US"]),onDateChange:r.func,disableBusinessDays:r.number,disablePastDates:r.bool,label:r.string,size:r.string,disableNextTwoDays:r.bool,disableSpecificDate:r.instanceOf(Date),keyResetCalendar:r.number,error:r.bool,disableDaysBasedOnTime:r.bool,disableFiveBusinessDays:r.bool,disabled:r.bool,disableWeekends:r.bool,disableNextBusinessDayAfter:r.instanceOf(Date),hourDisableDaysBasedOnHour:r.instanceOf(Date),heightBoxes:r.string,labelText:r.string,subLabelText:r.any,id:r.string,onChangeFunction:r.func};const ei=({title:e,description:n,linkText:s,icon:o,fnNavigate:i,width:a,height:l,id:c})=>{const u=()=>{i(c)};return t.jsxs("section",{className:"info-action-card",style:{width:a,height:l},onClick:u,children:[t.jsxs("div",{className:"info-action-card__content",children:[t.jsxs("div",{className:"info-action-card__content__text__container",children:[t.jsx("h3",{children:e}),t.jsx("p",{children:n})]}),o]}),t.jsx("div",{className:"line-grey"}),t.jsxs("div",{className:"info-action-card__action",children:[t.jsx("button",{children:s}),t.jsx(Vs,{})]})]})};ei.propTypes={title:r.string,description:r.string,linkText:r.string,icon:r.node,fnNavigate:r.func,width:r.string,height:r.string,id:r.string};const Ju=(e,n,s)=>{const[o,i]=S.useState([]),[a,l]=S.useState([]),[c,u]=S.useState(!1),f=S.useRef(null),p=S.useRef(!1),g=w=>{i(k=>k.includes(w)?k.filter(D=>D!==w):[...k,w])},b=(w,k)=>{p.current=!0,l(D=>{var I;const C=D.findIndex(d=>d.id===w);let j=[...D],v=[];const z=e.find(d=>d.id===w)||{};if(z.multiple!==!1)if(C===-1)v=[k],j.push({id:w,title:z.title||"",optionsSelect:v});else{const d=D[C].optionsSelect;d.some(E=>E.id===k.id)?v=d.filter(E=>E.id!==k.id):v=[...d,k],v.length===0?j.splice(C,1):(v.sort((E,_)=>E.label.localeCompare(_.label)),j[C].optionsSelect=v)}else if(C===-1||((I=D[C].optionsSelect[0])==null?void 0:I.id)!==k.id?v=[k]:v=[],v.length===0)C>-1&&j.splice(C,1);else{const d={id:w,title:z.title||"",optionsSelect:v};C===-1?j.push(d):j[C]=d}const Y={};return e.forEach(d=>{const A=j.find(E=>E.id===d.id);Y[d.id]=A?A.optionsSelect.map(E=>E.id):[]}),s&&s(Y),j})},x=()=>{if(p.current=!0,l([]),s){const w={};e.forEach(k=>{w[k.id]=[]}),s(w)}},m=S.useCallback(w=>{p.current=!0,l(w)},[]);S.useEffect(()=>{p.current&&(n&&n(a),p.current=!1)},[a,n]);const h=()=>a.reduce((w,k)=>w+k.optionsSelect.length,0);return S.useEffect(()=>{const w=k=>{f.current&&!f.current.contains(k.target)&&u(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),{expandedSections:o,selectedFilters:a,toggleSection:g,toggleFilter:b,clearAllFilters:x,open:c,setOpen:u,getLengthFilters:h,filterRef:f,setSelectedFilters:m}},ti=({data:e=[],onChange:n,widthSubComponent:s,disabled:o,keyRest:i,onChangeFunction:a})=>{const{open:l,setOpen:c,toggleFilter:u,toggleSection:f,selectedFilters:p,clearAllFilters:g,getLengthFilters:b,expandedSections:x,filterRef:m,setSelectedFilters:h}=Ju(e,n,a),[w,k]=S.useState({}),[D,C]=S.useState({}),j=S.useRef({}),v=S.useRef(!0),z=132,W=220,Y=I=>{k(d=>({...d,[I]:!d[I]}))};return S.useEffect(()=>{const I={};x.forEach(d=>{const A=j.current[d];A&&A.scrollHeight>z&&(I[d]=!0)}),C(I)},[x,e]),S.useEffect(()=>{if(v.current){v.current=!1;return}h([])},[i,h]),t.jsxs("div",{className:"toggle-filter-component",ref:m,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:o,onClick:()=>c(!l),children:["Filtro",t.jsx(pd,{}),p.length>0&&t.jsx("span",{className:"absolute spanNumber-filter",children:b()})]}),l&&t.jsxs("div",{className:"filter-container-component",style:{width:s},children:[t.jsxs("div",{className:"filter-header",children:[t.jsx("h2",{className:"filter-title",children:"Filtros aplicados"}),p.length>0&&t.jsxs("button",{className:"clear-all",onClick:g,children:["Borrar todo"," ",t.jsx("span",{className:"filter-container-close-icon",children:"×"})]})]}),e.map(({id:I,title:d,options:A})=>t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>f(I),children:[t.jsx("span",{className:"section-header-title",children:d}),t.jsx("span",{className:"filter-container-icon",children:t.jsx(wr,{isOpen:x.includes(I),onChange:()=>{}})})]}),x.includes(I)&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:E=>j.current[I]=E,style:D[I]?w[I]?{maxHeight:W,overflowY:"scroll"}:{maxHeight:z,overflow:"hidden"}:{},children:A.map(E=>{const _=p.some(H=>H.id===I&&H.optionsSelect.some(G=>G.id===E.id));return t.jsx(Mr,{height:"27px",onChange:()=>u(I,E),isSelect:_,children:E.label},E.id)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:D[I]&&t.jsx("button",{className:"view-more",onClick:()=>Y(I),children:w[I]?"Ver menos":"Ver más"})})]})]},I))]})]})};ti.propTypes={data:r.array,onChange:r.func,widthSubComponent:r.string,disabled:r.bool,keyRest:r.number||r.string,onChangeFunction:r.func};const ni=({title:e,description:n,linkText:s,icon:o,fnNavigate:i,width:a,fnDownload:l,gapTitleDescription:c,height:u,hasDownloadButton:f,fontSizeTitle:p,fontSizeDescription:g,fontSizeButton:b,textButton:x,widthButton:m="7.5vw",id:h})=>t.jsxs("section",{id:"info-action-card-download-template",className:"info-action-card",style:{width:a,height:u},children:[t.jsxs("div",{style:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:[t.jsxs("div",{className:"info-action-card__content info-action-card__content-download-template",children:[t.jsxs("div",{className:"info-action-card__content__text info-action-card__content__text-download-template",style:{gap:c},children:[t.jsx("h3",{style:{fontSize:p},children:e}),t.jsx("p",{style:{fontSize:g},children:n})]}),t.jsx("div",{className:"info-action-card__content__icon",children:o})]}),f&&t.jsx(jr,{buttonProperties:{disabled:!1,onClick:()=>l(),style:{minHeight:"32px",width:m,marginLeft:"10px",fontSize:b,display:"flex",justifyContent:"space-between",alignItems:"center"}},children:x})]}),t.jsx("div",{className:"info-action-card__action info-action-card__action-download-template",children:t.jsxs("div",{style:{display:"flex",alignItems:"center",padding:" 15px",gap:"10px",fontSize:g},children:[t.jsx("button",{onClick:()=>i(h),children:s}),t.jsx(Vs,{})]})})]});ni.propTypes={title:r.string,description:r.string,linkText:r.string,icon:r.node,fnNavigate:r.func,width:r.string,fnDownload:r.func,gapTitleDescription:r.string,height:r.string,hasDownloadButton:r.bool,fontSizeTitle:r.string,fontSizeDescription:r.string,fontSizeButton:r.string,textButton:r.string,widthButton:r.string,id:r.string};const ri=({iconTitle:e,title:n,numberTitle:s,mainData:o,news:i,width:a,height:l,onChange:c,isSelected:u,value:f,disabled:p,keyReset:g,heightTitleFilter:b="20px"})=>{const[x,m]=S.useState({isSelected:u||!1,value:f||null});S.useEffect(()=>{m({isSelected:u,value:f})},[u,f]);const h=({item:k,from:D})=>{const C={isSelected:x.value!==k.title,value:x.value===k.title?null:k.title};m(C),c({item:k,from:D,title:n,selected:C.value,isSelected:C.isSelected})};S.useEffect(()=>{m({isSelected:!1,value:null})},[g]);const w=k=>!!(Number(k.quantity)===0||p);return t.jsxs("div",{className:"ProcessFilter",style:{width:a,height:l},children:[t.jsxs("div",{className:"ProcessFilter-header",style:{height:b},children:[t.jsxs("div",{className:"ProcessFilter-titleWrapper",children:[e,t.jsx("h2",{className:"ProcessFilter-title",children:n})]}),t.jsxs("div",{className:"ProcessFilter-statsWrapper",children:[t.jsx(md,{}),t.jsxs("span",{className:"ProcessFilter-numberTitle",children:["(",s,")"]})]})]}),t.jsx("div",{className:"ProcessFilter-mainData",children:o.map(k=>t.jsxs("div",{onClick:()=>w(k)?null:h({item:k,from:"main"}),className:`ProcessFilter-item-wrapper ${x.value===k.title?"selected":""} ${w(k)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:k.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:k.quantity})]},k.id))}),i.length>0&&t.jsxs("div",{className:"",children:[t.jsxs("h3",{className:"ProcessFilter-newsTitle",children:["Novedades (",i.length,")"]}),i.map(k=>t.jsxs("div",{onClick:()=>w(k)?null:h({item:k,from:"news"}),className:`ProcessFilter-item-wrapper ${x.value===k.title?"selected":""} ${w(k)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:k.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:k.quantity})]},k.id))]})]})};ri.propTypes={iconTitle:r.any,title:r.string,numberTitle:r.oneOfType([r.number,r.string]),mainData:r.array.isRequired,news:r.array.isRequired,width:r.string,height:r.string,onChange:r.func.isRequired,isSelected:r.bool,value:r.string,disabled:r.bool,keyReset:r.number,heightTitleFilter:r.string};const e0=Oe(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),si=({data:e,language:n,onSave:s,onCancel:o,isUpdate:i})=>{const[a,l]=S.useState(e),c={en:{title:"Application list",update:"Update application",cancel:"CANCEL",save:"SAVE"},es:{title:"Lista de aplicaciones",update:"Editar aplicación",cancel:"CANCELAR",save:"GUARDAR"}},u=c[n]??c.es,f=g=>{const b=a.filter((x,m)=>m!==g);l(b)},p=()=>{s(a)};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-listAplication",children:[t.jsxs("div",{className:"relative-onehundredpercent",children:[t.jsx("div",{className:"modal-listAplication-header",children:t.jsx("h2",{children:i?u.update:u.title})}),t.jsx("button",{className:"close-button",onClick:o,children:t.jsx(bn,{sx:{color:"#8598ad"}})})]}),t.jsx("div",{className:"modal-listAplication-content",children:a==null?void 0:a.map((g,b)=>t.jsxs("div",{className:"application-item",children:[t.jsx("div",{className:"application-header",children:t.jsx("h3",{children:g.title})}),t.jsxs("div",{className:"container-center-between",children:[t.jsx("div",{className:"application-title",children:typeof g.logo=="string"?t.jsx("div",{children:t.jsx("img",{src:g==null?void 0:g.logo,alt:`${g.title} logo`,className:"app-logo"})}):t.jsx("div",{children:t.jsx(g.logo,{})})}),a.length>1&&t.jsx("button",{className:"remove-button",onClick:()=>f(b),children:t.jsx(e0,{sx:{color:"#8598ad"}})})]}),t.jsx("p",{className:"application-manager",children:g.manager}),b<e.length-1&&t.jsx("hr",{})]},b))}),t.jsxs("div",{className:"modal-listAplication-footer",children:[t.jsx(bt,{buttonProperties:{disabled:!1,onClick:()=>o(),style:{width:"45%"}},children:u.cancel}),t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"45%"}},children:u.save})]})]})})};si.propTypes={data:r.array,language:r.oneOf(["en","es"]),onSave:r.func,onCancel:r.func,isUpdate:r.bool};const oi=e=>e.toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"}),ii=({isOpen:e,ticketNumber:n="##000",date:s=new Date,setIsOpen:o,isReadOnly:i=!1,fontSize:a="1vw",fontSizeButton:l="0.8vw",fontSizeTicketNumber:c="1.3vw",width:u="40vw"})=>{if(!e)return null;const f=()=>o(!1),p=()=>{f()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:u},children:[t.jsx("button",{onClick:f,className:"closeButton",children:t.jsx(bn,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[i&&t.jsxs("div",{className:"alert",children:[t.jsx(gn,{width:30}),t.jsx("p",{style:{fontSize:a},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(tr,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:a},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:n})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Fecha:"}),t.jsx("p",{style:{fontSize:a},children:oi(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(bt,{buttonProperties:{disabled:!1,onClick:()=>f(),style:{width:"50%",fontSize:l}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"50%",fontSize:l}},children:"ACEPTAR"})]})]})]})})};ii.propTypes={isOpen:r.bool,onClose:r.func,ticketNumber:r.string,date:r.instanceOf(Date),setIsOpen:r.func,isReadOnly:r.bool,fontSize:r.string,fontSizeButton:r.string,fontSizeTicketNumber:r.string,width:r.string};const t0="data:image/png;base64,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",ai=({onChange:e,handleClose:n})=>{const[s,o]=S.useState(!1),i=()=>{e(s),n()};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-VisualizationModaLogin",children:[t.jsx("img",{src:t0,alt:"",className:"backgroundTicket"}),t.jsx("div",{className:"TicketImageUserReadOnly",style:{height:"95px"},children:t.jsx("div",{className:"UserReadOnlyIconCenter",children:t.jsx(gn,{width:80})})}),t.jsx("button",{className:"close-button-VisualizationModaLogin",onClick:n,children:t.jsx(bn,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"container-content",children:[t.jsx("div",{className:"modal-header",children:t.jsx("h2",{children:"¿Qué es un usuario de Visualización?"})}),t.jsxs("div",{className:"modal-content",children:[t.jsx("p",{children:"Este perfil se puede utilizar para realizar ensayos o simulaciones dentro del portal, aplicación o plataforma. Este tipo de usuario se creo con el objetivo de evaluar funcionalidades, detectar errores o problemas, y verificar que el sistema funciona correctamente antes de que esté disponible para usuarios reales."}),t.jsx("h3",{children:"¿Qué puedo y que no puedo hacer?"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Puedes Visualizar y hacer el flujo de una sección dentro del portal"}),t.jsx("li",{children:"Puedes hacer la navegación pero no es posible guardar o realizar solicitudes de Tickets"})]}),t.jsx("div",{className:"checkbox-container",children:t.jsx(Ye.FormControlLabel,{control:t.jsx(Ye.Checkbox,{onChange:a=>o(a.target.checked),sx:{"&.Mui-checked":{color:"#33a4dd"}}}),label:"No volver a mostrar al iniciar sesión"})}),t.jsx("div",{className:"container-button-modal",children:t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>{i()},style:{width:"40%"}},children:"ACEPTAR"})})]})]})]})})};ai.propTypes={onChange:r.func.isRequired,handleClose:r.func};const li=({width:e,fontSize:n,marginAuto:s,height:o})=>t.jsxs("div",{className:"state-basic states-InProcessing",style:{width:e,fontSize:n,margin:s?"auto":"",height:o},children:[t.jsx(nr,{fill:"#d0aa00"}),"En Procesamiento"]});li.propTypes={width:r.string,fontSize:r.string,marginAuto:r.bool,height:r.string};const ci=({width:e,fontSize:n,marginAuto:s,height:o})=>t.jsxs("div",{className:"state-basic states-ToStart",style:{width:e,fontSize:n,margin:s?"auto":"",height:o},children:[t.jsx(nr,{fill:"#7c92c5"}),"Por Iniciar"]});ci.propTypes={width:r.string,fontSize:r.string,marginAuto:r.bool,height:r.string};const Er=(e,n="100px",s,o,i)=>({Activo:t.jsx(kr,{width:n,fontSize:s,marginAuto:o,height:i}),Cancelada:t.jsx(Sr,{width:n,fontSize:s,marginAuto:o,height:i}),Finalizada:t.jsx(Tr,{width:n,fontSize:s,marginAuto:o,height:i}),Inactivo:t.jsx(Cr,{width:n,fontSize:s,marginAuto:o,height:i}),"En Procesamiento":t.jsx(li,{width:n,fontSize:s,marginAuto:o,height:i}),"Por Iniciar":t.jsx(ci,{width:n,fontSize:s,marginAuto:o,height:i}),"En tránsito":t.jsx(zr,{width:n,fontSize:s,marginAuto:o,height:i})})[e]||e,di=({data:e,onEdit:n,width:s,dataKeysNotToRender:o=[],textButton:i="Editar",textHeader:a="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeight:u,onFnIcon:f,icon:p=t.jsx(Us,{}),widthState:g,onEditSubData:b,onFnIconSubData:x,subMessage:m,onClickOptions:h,onClickSubOptions:w,fontSizeTHead:k,fontSizeTBody:D,widthOptions:C,fontSizeOptions:j,nameOfKeyState:v="Estado",texAlignTHead:z="start",textAlignTBody:W="start",fontSizeState:Y,fontStyleTBody:I="normal",fontStyleTHead:d="normal"})=>{const[A,E]=S.useState({}),_=$=>{E(Z=>({...Z,[$]:!Z[$]}))},H=$=>{n($)},G=$=>{b($)},U=e.length>0?Object.keys(e[0]).filter($=>$!=="subData"&&!o.includes($)):[],F=$=>$!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),U.map(($,Z)=>t.jsx("th",{style:{fontSize:k,textAlign:z,fontStyle:d},children:$.replace(/_/g," ")},Z)),U.length>0?t.jsx("th",{style:{fontSize:k,textAlign:z,fontStyle:d},children:a}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:U.length+1,style:{fontSize:c,textAlign:"center",fontStyle:I},children:l})}),e==null?void 0:e.map($=>{var Z;return t.jsxs(S.Fragment,{children:[t.jsxs("tr",{className:"main-row",children:[t.jsx("td",{children:t.jsx("button",{onClick:()=>_($.id),className:"reset-styles-button",style:{width:"100%"},children:t.jsx("i",{className:`arrow-grey-container ${A[$.id]?"up":"down"}`})})}),U.map((T,R)=>t.jsx("td",{style:{color:T!==v?F($.Estado):"black",padding:T===v?"0 9px":"10px",fontSize:D,textAlign:W,fontStyle:I},children:T===v?Er($[T],g,Y,W==="center"):$[T]||"-"},R)),((Z=$==null?void 0:$.options)==null?void 0:Z.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(xt,{onClick:T=>{console.log(T),h({option:T,row:$})},options:[...$.options],fontSize:j,width:C})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>H($),style:{fontSize:D,fontStyle:I},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>f($),children:p})]})})]}),A[$.id]&&t.jsx("tr",{className:"sub-row",style:{fontStyle:"italic"},children:Array.from({length:U.length+2},(T,R)=>t.jsx("td",{className:"td-empty",style:{fontWeight:"600"},children:R===1?`${m}`:""},R))}),A[$.id]&&$.subData.length>0&&$.subData.map((T,R)=>{var ee;return t.jsxs("tr",{className:"sub-row",children:[t.jsx("td",{})," ",U.map((X,te)=>t.jsx("td",{style:{color:X!==v?F(T.Estado):"black",padding:X===v?"0 9px":"10px",fontSize:D,textAlign:W,fontStyle:I},children:X===v?Er(T[X],g,Y,W==="center"):T[X]||"-"},te)),((ee=T==null?void 0:T.options)==null?void 0:ee.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(xt,{onClick:X=>{w({option:X,row:T})},options:[...T.options],fontSize:j,width:C})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>G(T),style:{fontSize:D,fontStyle:I},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>x(T),children:p})]})})]},R)})]},$.id)})]})]})};di.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func.isRequired,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeight:r.string,icon:r.node,onFnIcon:r.func,widthState:r.string,onEditSubData:r.func,onFnIconSubData:r.func,subMessage:r.string,onClickOptions:r.func,onClickSubOptions:r.func,fontSizeTHead:r.string,fontSizeTBody:r.string,fontSizeOptions:r.string,texAlignTHead:r.string,widthOptions:r.string,nameOfKeyState:r.string,textAlignTBody:r.string,fontSizeState:r.string};const ui=({data:e,dataKeysNotToRender:n,title:s,minWidth:o,texAlignTHead:i="start",textAlignTBody:a="start",fontSizeTHead:l,fontSizeTBody:c,fontSizeTitle:u})=>{const f=e.length>0?Object.keys(e[0]).filter(p=>!n.includes(p)):[];return t.jsxs("div",{className:"log-container",style:{minWidth:o},children:[t.jsx("h1",{className:"log-title",style:{fontSize:u},children:s}),t.jsxs("table",{className:"log-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:f.map((p,g)=>t.jsx("th",{style:{textAlign:i,fontSize:l},children:t.jsx("p",{children:p})},g))})}),t.jsx("tbody",{children:e.map((p,g)=>t.jsx("tr",{style:{textAlign:a,fontSize:c},children:f.map((b,x)=>t.jsx("td",{children:t.jsx("p",{children:p[b]})},x))},g))})]})]})};ui.propTypes={title:r.string.isRequired,data:r.array.isRequired,dataKeysNotToRender:r.array,minWidth:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string,fontSizeTitle:r.string};const hi=({data:e,minWidth:n,dataKeysNotToRender:s,topToolTip:o,toolTips:i,fontSizeToolTip:a,messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:u,texAlignTHead:f="start",textAlignTBody:p="start",fontSizeTHead:g,fontSizeTBody:b,heightTd:x="30px",isWrap:m=!1})=>{const[h,w]=S.useState(null),k=j=>{w(j)},D=()=>{w(null)},C=e.length>0?Object.keys(e[0]).filter(j=>!s.includes(j)):[];return t.jsxs("table",{className:"table-ixc",style:{minWidth:n,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[C.map((j,v)=>t.jsxs("th",{className:"relative",onMouseEnter:()=>k(j),onMouseLeave:D,style:{height:x},children:[t.jsx("p",{style:{textAlign:f,fontSize:g,whiteSpace:m?"wrap":"nowrap",textOverflow:m?"clip":"ellipsis",overflow:m?"auto":"hidden"},children:j}),i&&i[j]&&h===j&&t.jsx("div",{className:"tooltipTable",style:{top:o},children:t.jsx(sr,{fontSize:a,children:i[j]})})]},v)),C.length===0&&t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:C.length+1,style:{fontSize:c,textAlign:"center",whiteSpace:m?"wrap":"nowrap",textOverflow:m?"clip":"ellipsis",overflow:m?"auto":"hidden"},children:l})}),e.map((j,v)=>t.jsx("tr",{children:C.map((z,W)=>t.jsx("td",{style:{textAlign:p,fontSize:b,whiteSpace:m?"wrap":"nowrap",textOverflow:m?"clip":"ellipsis",overflow:m?"auto":"hidden",height:x},children:j[z]},W))},(j==null?void 0:j.id)||v))]})]})};hi.propTypes={minWidth:r.string,toolTips:r.object,topToolTip:r.string,data:r.arrayOf(r.object).isRequired,dataKeysNotToRender:r.arrayOf(r.string),fontSizeToolTip:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeigth:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string,heightTd:r.string,isWrap:r.bool};const fi=({data:e,onEdit:n,width:s,dataKeysNotToRender:o,textButton:i="Editar",textHeader:a="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:u,icon:f,onFnIcon:p,onClickOptions:g,widthOptions:b,fontSizeOptions:x,texAlignTHead:m="start",textAlignTBody:h="start",fontSizeTHead:w,fontSizeTBody:k})=>{const D=j=>{n(j)},C=e.length>0?Object.keys(e[0]).filter(j=>j!=="options"&&!o.includes(j)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[C.map((j,v)=>t.jsx("th",{style:{textAlign:m,fontSize:w},children:j},v)),C.length>0?t.jsx("th",{style:{textAlign:m,fontSize:w},children:a}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:C.length+1,style:{fontSize:c,textAlign:"center"},children:l})}),e.map((j,v)=>{var z;return t.jsxs("tr",{children:[C.map((W,Y)=>t.jsx("td",{style:{textAlign:h,fontSize:k},children:j[W]},Y)),((z=j==null?void 0:j.options)==null?void 0:z.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(xt,{onClick:W=>{g({option:W,row:j})},options:[...j.options],fontSize:x,width:b})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>D(j),style:{fontSize:k,textAlign:h},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>p(j),style:{textAlign:i?h:"center"},children:f})]})})]},(j==null?void 0:j.id)||v)})]})]})};fi.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),language:r.oneOf(["en","es"]),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeigth:r.string,icon:r.node,onFnIcon:r.func,onClickOptions:r.func,widthOptions:r.string,fontSizeOptions:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string};const pi=({data:e,onEdit:n,width:s,dataKeysNotToRender:o,textButton:i="Editar",textHeader:a="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:u,texAlignTHead:f="start",textAlignTBody:p="start",fontSizeTHead:g,fontSizeTBody:b,heightTd:x="30px"})=>{const m=w=>{n(w)},h=e.length>0?Object.keys(e[0]).filter(w=>!o.includes(w)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[h.map((w,k)=>t.jsx("th",{style:{textAlign:f,fontSize:g},children:w},k)),h.length>0?t.jsx("th",{style:{textAlign:f,fontSize:g},children:a}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:h.length+1,style:{fontSize:c,textAlign:"center"},children:l})}),e.map((w,k)=>t.jsxs("tr",{children:[h.map((D,C)=>t.jsx("td",{style:{textAlign:p,fontSize:b},children:w[D]},C)),t.jsx("td",{children:t.jsx("button",{className:"edit-button",onClick:()=>m(w),style:{fontSize:b,textAlign:p,height:x},children:i})})]},(w==null?void 0:w.id)||k))]})]})};pi.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func.isRequired,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),language:r.oneOf(["en","es"]),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeigth:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string};const gi=({data:e,onEdit:n,width:s,textButton:o="Editar",textHeader:i="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:l="1.5vw",minHeight:c,onFnIcon:u,icon:f=t.jsx(Us,{}),widthState:p,onClickOptions:g,fontSizeTHead:b,fontSizeTBody:x,widthOptions:m,fontSizeOptions:h,dataKeysNotToRender:w=[],nameOfKeyState:k="Estado",texAlignTHead:D="start",textAlignTBody:C="start",fontSizeState:j,heightStates:v="18px",heightTd:z="30px",fontStyleTBody:W="normal",fontStyleTHead:Y="normal"})=>{const I=E=>{n(E)},d=(e==null?void 0:e.length)>0?Object.keys(e[0]).filter(E=>E!=="options"&&!w.includes(E)):[],A=E=>E!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:c,fontStyle:W},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[d.map((E,_)=>t.jsx("th",{style:{fontSize:b,textAlign:D,fontStyle:Y},children:E},_)),d.length>0?t.jsx("th",{style:{fontSize:b,textAlign:D,fontStyle:Y},children:i}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:d.length+1,style:{fontSize:l,textAlign:"center",fontStyle:W},children:a})}),e.map((E,_)=>{var H;return t.jsxs("tr",{children:[d.map((G,U)=>t.jsx("td",{style:{fontSize:x,textAlign:C,color:G!==k?A(E.Estado):"black",height:z,fontStyle:W},children:G===k?Er(E[G],p,j,C==="center",v):E[G]},U)),((H=E==null?void 0:E.options)==null?void 0:H.length)>0?t.jsx("td",{style:{overflow:"visible",height:z,fontStyle:W},children:t.jsx(xt,{onClick:G=>{g({option:G,row:E})},options:[...E.options],fontSize:h,width:m})}):t.jsx("td",{style:{height:z,fontStyle:W},children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>I(E),style:{fontSize:x,textAlign:C,fontStyle:W},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>u(E),children:f})]})})]},(E==null?void 0:E.id)||_)})]})]})};gi.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func.isRequired,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeight:r.string,icon:r.node,onFnIcon:r.func,widthState:r.string,onClickOptions:r.func,fontSizeTHead:r.string,fontSizeTBody:r.string,fontSizeOptions:r.string,texAlignTHead:r.string,widthOptions:r.string,nameOfKeyState:r.string,textAlignTBody:r.string,fontSizeState:r.string,heightStates:r.string,heightTd:r.string,fontStyleTBody:r.string,fontStyleTHead:r.string};const mi=({isOpen:e,ticketNumber:n="##000",date:s=new Date,setIsOpen:o,isReadOnly:i=!1,fontSize:a="1vw",fontSizeButton:l="0.8vw",fontSizeTicketNumber:c="1.3vw",width:u="40vw"})=>{if(!e)return null;const f=()=>o(!1),p=()=>{f()};return t.jsx("div",{className:"ticket-component-v2",style:{width:u},children:t.jsxs("div",{className:"main-content",children:[i&&t.jsxs("div",{className:"alert",children:[t.jsx(gn,{width:30}),t.jsx("p",{style:{fontSize:a},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(tr,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:a},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:n})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Fecha:"}),t.jsx("p",{style:{fontSize:a},children:oi(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(bt,{buttonProperties:{disabled:!1,onClick:()=>f(),style:{width:"50%",fontSize:l}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"50%",fontSize:l}},children:"ACEPTAR"})]})]})})};mi.propTypes={isOpen:r.bool,width:r.string,onClose:r.func,setIsOpen:r.func,isReadOnly:r.bool,fontSize:r.string,ticketNumber:r.string,date:r.instanceOf(Date),fontSizeButton:r.string,fontSizeTicketNumber:r.string};const yi=({menus:e,size:n,onclick:s})=>{var f;const o=e||[],[i,a]=S.useState(((f=o[0])==null?void 0:f.id)||""),[l,c]=S.useState(100/o.length),u=p=>{a(p.id),s(p)};return S.useEffect(()=>{const p=()=>{const g=100/o.length;c(g)};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[o.length]),t.jsx("nav",{className:"dynamic-menu",style:{width:n},children:t.jsx("ul",{children:o.map(p=>t.jsx("li",{className:i===p.id?"selected":"",style:{width:`${l}%`},onClick:()=>u(p),children:t.jsx("button",{children:p.label})},p.id))})})};yi.propTypes={menus:r.array,size:r.string,onclick:r.func};const bi=({children:e,onChange:n,tabs:s,value:o,minHeight:i,width:a})=>{const[l,c]=S.useState(o),u=f=>{c(f),n(f)};return t.jsxs("div",{className:"tabs-container",style:{width:a},children:[t.jsx("div",{className:"tabs-wrapper",children:s.map(f=>t.jsxs("button",{onClick:()=>u(f.id),className:`tab-button ${l===f.id?"active":""}`,children:[t.jsx("span",{className:"tab-title",children:f.title}),t.jsx("span",{className:"tab-subtitle",children:f.subtitle})]},f.id))}),t.jsx("div",{style:{minHeight:i},children:e})]})};bi.propTypes={children:r.node,onChange:r.func,tabs:r.arrayOf(r.shape({id:r.string,title:r.string,subtitle:r.any})),value:r.string,minHeight:r.string,width:r.string};const xi=({tabs:e,width:n,onChange:s,disabled:o,defaultValue:i})=>{var u;const[a,l]=S.useState(i||((u=e[0])==null?void 0:u.key)||"");S.useEffect(()=>{i&&l(i)},[i]);const c=f=>{l(f),s(f)};return t.jsx("div",{className:"DeliveryTabs-tabs-container",style:{width:n},children:t.jsx("div",{className:"tabs-wrapper",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((f,p)=>t.jsx("button",{disabled:o,className:`tab ${a===f.key?"active":""} ${p===0?"first-tab":""} ${p===e.length-1?"last-tab":""}`,onClick:()=>c(f.key),role:"tab","aria-selected":a===f.key,children:f.label},f.key))})})};xi.propTypes={tabs:r.arrayOf(r.shape({key:r.string,label:r.string})),width:r.string,onChange:r.func,disabled:r.bool,defaultValue:r.string};const vi=({titles:e=["1. Cargar Datos de Cancelación","2. Validar los Datos Cargados","3. Aceptar o Rechazar"],currentStep:n=1,fontSizeTitles:s,widthIcon:o,heightIcon:i,width:a})=>{const l=[bd,yd,xd],c=e.map((u,f)=>({number:f+1,title:u,icon:l[f]}));return t.jsxs("div",{className:"stepper",style:{width:a},children:[t.jsx("div",{className:"stepper-progress",children:t.jsx("div",{className:"stepper-progress-bar",style:{width:n===1?"0%":n===2?"52%":"100%"}})}),t.jsx("div",{className:"stepper-steps",children:c.map(u=>{const f=u.icon,p=n>=u.number;return t.jsxs("div",{className:`stepper-step ${p?"active":""}`,style:{height:i},children:[t.jsx("span",{className:"stepper-title",style:{fontSize:s},children:u.title},u.number),t.jsx("div",{className:"stepper-icon",style:{width:o,height:i},children:t.jsx(f,{})})]},u.number)})})]})};vi.propTypes={titles:r.arrayOf(r.string),currentStep:r.number,fontSizeTitles:r.string,widthIcon:r.string,heightIcon:r.string,width:r.string};const ji=({width:e,menu:n,submenu:s,tab:o,navigateFn:i,fontSize:a,Icon:l,marginTop:c})=>{const u=()=>{i({submenu:s,tab:o})};return t.jsxs("div",{className:"flex gap w-full",style:{width:e},children:[t.jsxs("ul",{className:"flex gap items-center ulBreadcrumbs",children:[t.jsx("li",{className:"list-none flex",style:{marginTop:c??"4px"},children:l||t.jsx(Jn,{width:25,height:25})}),t.jsx("li",{className:"list-none",style:{fontSize:a},children:n}),t.jsx("li",{className:"list-none",style:{fontSize:a},children:t.jsx(er,{})})]}),t.jsxs("ul",{className:"flex gap items-center pointer ulBreadcrumbs",children:[t.jsx("li",{className:`list-none ${o?"border-bottom":"color-tab"}`,onClick:u,style:{fontSize:a},children:s}),o&&t.jsx("li",{className:"list-none",style:{fontSize:a},children:t.jsx(er,{})}),o&&t.jsx("li",{className:"list-none color-tab",style:{fontSize:a},children:o})]})]})};ji.propTypes={width:r.string,menu:r.string,submenu:r.string,tab:r.string,navigateFn:r.func,fontSize:r.string,Icon:r.element,marginTop:r.string};const wi=({children:e,style:n})=>t.jsx("h3",{className:"blue-title",style:{...n},children:e});wi.propTypes={children:r.any,style:r.object};const ki=({children:e,navigateTo:n,style:s})=>t.jsx("button",{onClick:()=>n(),style:{...s},className:"ions-link",children:e});ki.propTypes={children:r.node,navigateTo:r.func,style:r.object},r.checkPropTypes=()=>{},O.Active=kr,O.BasicSelect=qe,O.BlueTitle=wi,O.BoldIcon=Qn,O.Breadcrumbs=ji,O.ButtonAddBoxRoundedIcon=Do,O.ButtonArrow=wr,O.ButtonDarkBlue=$t,O.ButtonDarkBlueRounded=xr,O.ButtonDarkGreen=So,O.ButtonDownloadFile=To,O.ButtonDownloadTemplate=Oo,O.ButtonLetters=Co,O.ButtonMinus=Mo,O.ButtonPlus=zo,O.ButtonReset=ko,O.ButtonSearch=bo,O.ButtonSoftPastelBlue=Eo,O.ButtonSoftPastelBlueRounded=Ro,O.ButtonUploadTemplate=No,O.ButtonVibrantBlue=He,O.ButtonVibrantBlueUpload=Ao,O.ButtonWhiteBorderBlue=bt,O.ButtonWhiteBorderBlueDownloadTemplate=jr,O.ButtonWhiteBorderOrange=vr,O.Canceled=Sr,O.CheckBox=Ks,O.Chip=Po,O.ClearFilterIcon=fn,O.Completed=Tr,O.CustomArrowIcon=Jc,O.DateRangePicker=Go,O.DeliveryTabs=xi,O.DesSelectAllIcon=Hs,O.DropFile=wo,O.EraserIcon=Jn,O.ExpandableTable=di,O.EyeButton=Io,O.FilePreview=$o,O.FilterComponent=ti,O.GreyContainer=Bo,O.GreyContainerDropdown=Fo,O.GreyInput=Xs,O.GreySelect=wu,O.GreyTextArea=po,O.HeaderItemsComponent=yi,O.InTransit=zr,O.Inactive=Cr,O.InfoActionCard=ei,O.InfoActionCardDownloadTemplate=ni,O.InputRadio=mr,O.InputSearch=yn,O.InputUpload=fo,O.InputWithButtonSearch=xo,O.InputWithLabel=yo,O.ItalicIcon=Xn,O.KeyboardArrowDownOutlinedIconColorCustom=Fs,O.LastUpdate=Wo,O.Link=ki,O.Loader=Ys,O.LogTable=ui,O.MarksIcon=Kn,O.MenuOptions=xt,O.ModalListAplications=si,O.MultiSelect=uo,O.NumberSpinner=Au,O.NumberSpinnerByRange=vo,O.Pagination=Lo,O.ProcessFilter=ri,O.RightArrowIcon=er,O.RoundedInput=go,O.SelectAll=lo,O.SelectAllIcon=Ls,O.SelectRadio=ho,O.SelectWithTitle=jo,O.SingleDatePicker=Jo,O.Stepper=vi,O.Switch=Zs,O.Table=hi,O.TableActionIcon=fi,O.TableEdit=pi,O.TableStates=gi,O.TabsNavigation=bi,O.TextArea=Gs,O.TicketComponentV2=mi,O.TicketModal=ii,O.TimeComponent=mo,O.TitleWithTooltip=Rt,O.ToggleChip=Mr,O.TooltipsWhite=sr,O.UpLoadSvgIcon=hn,O.UpdateBanner=On,O.UploadFileIcon=pn,O.VisualizationModaLogin=ai,O.WaringBanner=Lc,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
|
|
450
|
+
`,Bo=({children:e,height:n,width:s,style:o})=>t.jsx(_o,{style:{height:n,width:s,...o},children:e});Bo.propTypes={children:r.any,width:r.string,height:r.string,style:r.object};const Fo=({title:e,height:n,width:s,style:o,children:i})=>{const[a,l]=S.useState(!1);return t.jsxs(_o,{style:{height:a?"auto":n,width:s,...o,borderRadius:"0px",boxShadow:"none",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e,t.jsx($u,{onClick:()=>l(!a),children:t.jsx("i",{className:`arrow-grey-container ${a?"up":"down"}`})})]}),a&&t.jsx("div",{style:{paddingTop:"8px"},children:i})," "]})};Fo.propTypes={title:r.node,width:r.string,height:r.string,style:r.object,children:r.node};const Lo=({totalPages:e=50,currentPage:n=1,onChange:s,nextLabel:o,prevLabel:i,height:a,disabled:l,fontSize:c})=>{const u=h=>{h>0&&h<=e&&s(h)},f=()=>{n<e&&s(n+1)},p=()=>{n>1&&s(n-1)},b=[],x=Math.max(1,n-4),m=Math.min(e,x+9-1);for(let h=x;h<=m;h++)b.push(h);if(n>e-4){b.length=0;for(let h=e-9+1;h<=e;h++)h>0&&b.push(h)}return t.jsx("nav",{className:"pagination",children:t.jsxs("ul",{className:"pagination-list",children:[n>1&&t.jsxs("li",{className:`pagination-prev ${l?"disabled":""}`,onClick:l?null:p,style:{height:a,fontSize:c},children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})}),i]}),x>1&&t.jsxs(t.Fragment,{children:[t.jsx("li",{className:`pagination-link ${l?"disabled":""}`,onClick:()=>l?null:u(1),style:{height:a,fontSize:c},children:"1"}),x>2&&t.jsx("li",{className:"pagination-list",style:{height:a,fontSize:c},children:"..."})]}),b.map(h=>t.jsx("li",{className:`pagination-link ${n===h?"active":""} ${l?"disabled":""}`,onClick:()=>l?null:u(h),style:{height:a,fontSize:c},children:h},h)),m<e&&t.jsxs(t.Fragment,{children:[m<e-1&&t.jsx("li",{className:`pagination-list ${l?"disabled":""}`,style:{height:a,fontSize:c},children:"..."}),t.jsx("li",{className:`pagination-link ${l?"disabled":""}`,onClick:()=>l?null:u(e),style:{height:a,fontSize:c},children:e})]}),n<e&&t.jsxs("li",{className:`pagination-next ${l?"disabled":""}`,onClick:l?null:f,style:{height:a,fontSize:c},children:[o,t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]})})};Lo.propTypes={totalPages:r.number,currentPage:r.number,onChange:r.func,nextLabel:r.string,prevLabel:r.string,height:r.string,disabled:r.bool,fontSize:r.string};const Ho=Oe(t.jsx("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded"),Vo=Oe(t.jsx("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76"}),"ArrowForwardIosRounded"),Uo=Oe(t.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),qo={DAYS:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],MONTHS:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],code:"es-ES",selectRange:"Selecciona un rango de fechas",days:"días",cancel:"CANCELAR",search:"BUSCAR"},Yo={DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],code:"en-US",selectRange:"Select a date range",days:"days",cancel:"CANCEL",search:"SEARCH"},_t=e=>{e instanceof Date||(e=new Date(e));const n=String(e.getDate()).padStart(2,"0"),s=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear();return{formatDDMMYYYY:`${n}-${s}-${o}`,formatMMDDYYYY:`${s}-${n}-${o}`,formatYYYYMMDD:`${o}-${s}-${n}`,originalFormat:e}},_u=(e,n,s)=>{if(!n||s<=0)return!1;const o=new Date(n);return o.setMonth(o.getMonth()+s),o.setDate(o.getDate()-1),e>o},Bu=({locale:e="es",disablePastDates:n,onDateRangeChange:s,withoutSearchButton:o=!1,onReset:i,limitRange:a,disableFutureDates:l,basicSelect:c,disablePastDaysCount:u})=>{const[f,p]=S.useReducer(N=>N+1,0),g=e==="es"?qo:Yo,[b,x]=S.useState(!1),[m,h]=S.useState(null),[w,k]=S.useState(null),[D,C]=S.useState(null),[j,v]=S.useState(new Date),[z,W]=S.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[Y,I]=S.useState(!1),[d,A]=S.useState(!1),E=(N,Q)=>{const L=new Date().setHours(0,0,0,0),q=new Date,ie=Date.UTC(q.getFullYear(),q.getMonth(),q.getDate());if(u){const P=new Date(ie);if(P.setUTCDate(P.getUTCDate()-u),Date.UTC(N.getFullYear(),N.getMonth(),N.getDate())<P.getTime())return!0}return Q&&n&&N<L||!Q&&l&&N>L||n&&N<L||l&&N>L?!0:a>0&&m?_u(N,m,a):!1},_=N=>{const Q=N.getFullYear(),L=N.getMonth(),ie=new Date(Q,L,1).getDay(),P=new Date(Q,L+1,0),de=[],Ne=new Date(Q,L,0).getDate();for(let ve=ie-1;ve>=0;ve--)de.push(new Date(Q,L-1,Ne-ve));for(let ve=1;ve<=P.getDate();ve++)de.push(new Date(Q,L,ve));const Me=42-de.length;for(let ve=1;ve<=Me;ve++)de.push(new Date(Q,L+1,ve));return de},H=N=>!m||!w?!1:N>=m&&N<=w,G=N=>!m||!D?!1:N>=m&&N<=D||N<=m&&N>=D,U=N=>{!m||w?(h(N),k(null)):N<m?(k(m),h(N),o&&te(N,m)):(k(N),o&&te(m,N))},F=N=>{C(N)},$=()=>!m||!w?0:Math.round((w.getTime()-m.getTime())/(1e3*60*60*24))+1,Z=(N,Q)=>{const L=new Date(N.getFullYear(),N.getMonth()-1,1);n&&L<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&Q||(Q?v(L):(W(L),L.getMonth()===j.getMonth()&&v(new Date(L.getFullYear(),L.getMonth()-1,1))))},T=(N,Q)=>{const L=new Date(N.getFullYear(),N.getMonth()+1,1);Q?(v(L),L.getMonth()===z.getMonth()&&W(new Date(L.getFullYear(),L.getMonth()+1,1))):W(L)},R=N=>{const L=N.toLocaleDateString(g.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),q=L[0].charAt(0).toUpperCase()+L[0].slice(1),ie=L[1],P=L[2].charAt(0).toUpperCase()+L[2].slice(1),de=L[3];return`${q} ${ie} de ${P} ${de}`},ee=()=>{const N=new Date;h(null),k(null),v(N),W(new Date(new Date().setMonth(new Date().getMonth()+1))),A(!1),x(!1),i({startDate:null,endDate:null}),p()},X=()=>{A(!1);const N=_t(m),Q=_t(w);s({startDate:N,endDate:Q}),Y&&c&&I(!1)},te=(N,Q)=>{h(N),k(Q),A(!1);const L=_t(N),q=_t(Q);s({startDate:L,endDate:q}),Y&&c&&I(!1)};return{isOpen:d,endDate:w,language:g,leftMonth:j,startDate:m,setIsOpen:A,hoverDate:D,rightMonth:z,formatDate:R,handleSearch:X,handleCancel:ee,isDateInRange:H,getDaysInMonth:_,isDateDisabled:E,handleDateClick:U,handleDateHover:F,handlePrevClick:Z,handleNextClick:T,getDaysSelected:$,isDateInHoverRange:G,handleBasicSelect:({value:N})=>{N==="custom"?(I(!0),x(!1)):(s({value:N}),x(!0),I(!1))},isCustomSelected:Y,toggleDateWhenBasicSelectIsTrue:()=>!!(!d&&Y&&c||!c&&d),basicSelectHasValue:b,keyReset:f}},Zo=(e,n,s,o)=>{if(!s||o<=0)return!1;const i=new Date(s);i.setMonth(i.getMonth()+o),i.setDate(i.getDate()-1);const a=new Date(s);return a.setDate(1),n?e<a:e>i},Go=({locale:e="es",onDateRangeChange:n,disablePastDates:s,limitRange:o=0,resetButton:i=!0,onReset:a,direction:l="right",heightBoxes:c="40px",fontSize:u="0.92vw",disabled:f,basicSelect:p,disableFutureDates:g,optionsBasicSelect:b,withoutSearchButton:x,widthBasicSelect:m,fontSizeLabelBasicSelect:h,fontSizeOptionsBasicSelect:w,labelText:k,subLabelText:D,disablePastDaysCount:C})=>{const{keyReset:j,isOpen:v,endDate:z,language:W,leftMonth:Y,startDate:I,setIsOpen:d,rightMonth:A,formatDate:E,handleSearch:_,handleCancel:H,isDateInRange:G,getDaysInMonth:U,isDateDisabled:F,handleDateClick:$,handleDateHover:Z,handlePrevClick:T,handleNextClick:R,getDaysSelected:ee,isDateInHoverRange:X,handleBasicSelect:te,basicSelectHasValue:V,toggleDateWhenBasicSelectIsTrue:J}=Bu({locale:e,onReset:a,onDateRangeChange:n,disablePastDates:s,withoutSearchButton:x,limitRange:o,disableFutureDates:g,basicSelect:p,disablePastDaysCount:C}),N=S.useRef(null);S.useEffect(()=>{const L=q=>{N.current&&!N.current.contains(q.target)&&v&&(d(!1),i||H())};return document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)}},[z,H,v,d,I,i]);const Q=(L,q=!0)=>{const ie=U(L),P=L.getMonth(),de=(re,Me)=>[re&&re.getMonth()!==P?"other-month":"",re&&G(re)?"in-range":"",re&&X(re)?"hover-range":"",re&&(re.getTime()===(I==null?void 0:I.getTime())||re.getTime()===(z==null?void 0:z.getTime()))?"selected":"",F(re,Me)?"disabled":""].join(" "),Ne=({date:re,isLeftCalendar:Me,disablePastDates:ve,leftMonth:Re})=>{const Ie=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),rt=new Date(re.getFullYear(),re.getMonth()-1,1).getTime();return!!(ve&&(rt<Ie||!Me&&new Date(Re.getFullYear(),Re.getMonth(),1).getTime()<=Ie))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>T(L,q),disabled:Zo(new Date(L.getFullYear(),L.getMonth()-1,1),!0,I,o)||Ne({date:L,isLeftCalendar:q,disablePastDates:s,leftMonth:Y}),children:t.jsx("span",{className:"sr-only",children:t.jsx(Ho,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[W.MONTHS[L.getMonth()],t.jsx("p",{children:L.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>R(L,q),disabled:Zo(new Date(L.getFullYear(),L.getMonth()+1,1),!1,I,o)||g&&new Date(L.getFullYear(),L.getMonth(),1).getTime()>=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),children:t.jsx("span",{className:"sr-only",children:t.jsx(Vo,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),W.DAYS.map(re=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:u},children:re},re)),ie.map((re,Me)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${de(re,q)}`,disabled:!re||F(re),onClick:()=>re&&!F(re)&&$(re),onMouseEnter:()=>re&&!F(re)&&Z(re),onMouseLeave:()=>Z(null),children:t.jsx("span",{className:`day-text ${re?"":"text-muted"}`,style:{fontSize:u},children:re?re.getDate():""})})},`${re}_${Me}`))]})]})};return t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:N,style:{width:m},children:[p?t.jsx(qe,{label:"Buscar por fecha",onchange:te,options:b,size:m,isOpen:v,setIsOpen:d,disabledClickOutside:!0,disabled:f,fontSizeLabel:h,fontSizeOptions:w,keyReset:j,labelText:k,subLabelText:D}):t.jsx("button",{className:`date-picker-toggle ${f?"disabled":""}`,disabled:f,onClick:()=>d(!v),children:I&&z?t.jsxs("div",{className:"container-formate",children:[t.jsxs("p",{className:`p-formate-date ${f?"disabled":""}`,style:{borderRight:"1px solid #9c9ca0"},children:[E(I)," ",t.jsx(Uo,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]}),t.jsxs("p",{className:`p-formate-date ${f?"disabled":""}`,children:[E(z),t.jsx(Uo,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]})]}):t.jsx("div",{className:"container-formate",children:t.jsx("p",{className:`p-formate-date ${f?"disabled":""}`,style:{height:"34px"},children:W.selectRange})})}),v&&t.jsx("div",{className:"square"}),v&&t.jsx("div",{className:"container-triangle",children:t.jsx("div",{className:"triangle",children:t.jsx("div",{className:"triangle-blur"})})}),J()&&t.jsxs("div",{className:"date-picker-dropdown",style:{right:l==="right"?"0":"auto",left:l==="left"?"0":"auto",top:p?"90%":"135%"},children:[t.jsxs("div",{className:"calendars-wrapper",children:[Q(Y,!0),Q(A,!1)]}),!x&&t.jsx("div",{className:"date-picker-footer",children:I&&z&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[ee()," ",W.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(vr,{buttonProperties:{onClick:()=>H(),style:{width:"115px",textAlign:"center"}},children:W.cancel}),t.jsx(He,{buttonProperties:{onClick:()=>_(),style:{width:"115px",textAlign:"center"}},children:W.search})]})]})})]})]}),I&&z&&i&&t.jsx("button",{className:"button-reset",onClick:()=>H(),children:t.jsx(fn,{})}),V&&i&&t.jsx("button",{className:"button-reset",onClick:()=>H(),children:t.jsx(fn,{})})]})};Go.propTypes={locale:r.oneOf(["es","en"]),heightBoxes:r.string,onDateRangeChange:r.func.isRequired,disablePastDates:r.bool,resetButton:r.bool,withoutSearchButton:r.bool,onReset:r.func,direction:r.oneOf(["left","right"]),fontSize:r.string,limitRange:r.number,keyReset:r.number,disabled:r.bool,disableFutureDates:r.bool,basicSelect:r.bool,optionsBasicSelect:r.array,widthBasicSelect:r.string,fontSizeLabelBasicSelect:r.string,fontSizeOptionsBasicSelect:r.string,labelText:r.string,subLabelText:r.any,disablePastDaysCount:r.number};const Ko=(e,{disablePastDates:n,disableBusinessDays:s})=>{const o=new Date;if(o.setHours(0,0,0,0),n&&e<o)return!1;if(s&&typeof s=="number"&&s>0){let i=new Date(o),a=0;for(;a<s;){i.setDate(i.getDate()+1);const l=i.getDay();l!==0&&l!==6&&a++}if(e<i)return!1}return!0},Fu=e=>{const n=new Date;n.setHours(0,0,0,0);const s=new Date(n);s.setDate(n.getDate()+1);const o=new Date(n);return o.setDate(n.getDate()+2),e.getTime()===n.getTime()||e.getTime()===s.getTime()||e.getTime()===o.getTime()},Lu=(e,n)=>{const s=new Date(n);return s.setHours(0,0,0,0),e.getTime()<=s.getTime()},Hu="America/Bogota",Vu=16,Uu=3,qu=4,Xo=0,Qo=6,Yu=()=>{const e=new Date().toLocaleString("en-US",{timeZone:Hu});return new Date(e)},Zu=(e,n)=>{const s=n??Yu(),i=s.getHours()<Vu?Uu:qu;let a=0;const l=new Date(s);for(l.setDate(l.getDate()+1);a<i;){const p=l.getDay();p!==Xo&&p!==Qo&&a++,l.setDate(l.getDate()+1)}for(;l.getDay()===Xo||l.getDay()===Qo;)l.setDate(l.getDate()+1);const c=new Date(e);c.setHours(0,0,0,0);const u=new Date(l);return u.setHours(0,0,0,0),c<u},Gu=e=>{let n=0,s=new Date;for(s.setHours(0,0,0,0),s.setDate(s.getDate()+1);n<5;){const o=s.getDay();o!==0&&o!==6&&n++,s.setDate(s.getDate()+1)}for(;s.getDay()===0||s.getDay()===6;)s.setDate(s.getDate()+1);return e<s},Ku=e=>e.getDay()===0||e.getDay()===6,Xu=(e,n)=>{const s=new Date(n);s.setHours(0,0,0,0);let o=new Date(s);do o.setDate(o.getDate()+1);while(o.getDay()===0||o.getDay()===6);return e.getTime()<=o.getTime()},Qu=({locale:e="es",onDateChange:n,onChangeFunction:s,disablePastDates:o,disableBusinessDays:i,disableNextTwoDays:a,disableSpecificDate:l,disableDaysBasedOnTime:c,disableFiveBusinessDays:u,disableWeekends:f,disableNextBusinessDayAfter:p,hourDisableDaysBasedOnHour:g,id:b})=>{const x=e==="es"?qo:Yo,[m,h]=S.useState(new Date),[w,k]=S.useState(new Date),[D,C]=S.useState(!1),[j,v]=S.useState(null),z=S.useRef(null),W=F=>{const $=F.getFullYear(),Z=F.getMonth(),R=new Date($,Z,1).getDay(),ee=new Date($,Z+1,0),X=[],te=new Date($,Z,0).getDate();for(let N=R-1;N>=0;N--)X.push(new Date($,Z-1,te-N));for(let N=1;N<=ee.getDate();N++)X.push(new Date($,Z,N));const J=42-X.length;for(let N=1;N<=J;N++)X.push(new Date($,Z+1,N));return X};S.useEffect(()=>{if(i&&typeof i=="number"&&i>0){let F=new Date;F.setHours(0,0,0,0);let $=new Date(F),Z=0;for(;Z<i;){$.setDate($.getDate()+1);const T=$.getDay();T!==0&&T!==6&&Z++}$.getMonth()>F.getMonth()&&k($)}},[o,i]);const Y=S.useMemo(()=>F=>F?o&&!Ko(F,{disablePastDates:o})||i&&!Ko(F,{disableBusinessDays:i})||a&&Fu(F)||l&&Lu(F,new Date(l))||c&&Zu(F,g)||u&&Gu(F)||f&&Ku(F)||p&&Xu(F,p):!1,[o,i,a,l,c,u,f,p,g]),I=F=>{const $=new Date,Z=new Date($.getFullYear(),$.getMonth(),1).setHours(0,0,0,0);if(o&&F<Z)return!0;if(l){const T=new Date(l).setHours(0,0,0,0);return F<T}return!1},d=F=>m&&F.getTime()===m.getTime(),A=F=>{const $=F.getMonth(),Z=w.getMonth();$!==Z&&k(new Date(F.getFullYear(),$,1)),v(H(F)),h(F);const T=_t(F);n&&n(T),s&&s({id:b,date:T}),C(!1)},E=F=>{const $=new Date(F.getFullYear(),F.getMonth()-1,1),Z=new Date;Z.setHours(0,0,0,0),!(o&&$<new Date(Z.getFullYear(),Z.getMonth(),1))&&k($)},_=F=>{const $=new Date(F.getFullYear(),F.getMonth()+1,1);k($)},H=F=>{const Z=F.toLocaleDateString(x.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),T=Z[0].charAt(0).toUpperCase()+Z[0].slice(1),R=Z[1],ee=Z[2].charAt(0).toUpperCase()+Z[2].slice(1),X=Z[3];return`${T} ${R} de ${ee} ${X}`},G=()=>{h(new Date),C(!1)},U=()=>{C(!1),n&&n(m),s&&s({id:b,date:m})};return S.useEffect(()=>{const F=$=>{z.current&&!z.current.contains($.target)&&C(!1)};return document.addEventListener("mousedown",F),()=>{document.removeEventListener("mousedown",F)}},[z]),{date:j,isOpen:D,setDate:v,language:x,leftMonth:w,setIsOpen:C,formatDate:H,setLeftMonth:k,handleSearch:U,disablePrev:I,handleCancel:G,selectedDate:m,isDateInRange:d,datePickerRef:z,getDaysInMonth:W,isDateDisabled:Y,handlePrevClick:E,handleNextClick:_,handleDateClick:A,setSelectedDate:h}},Jo=({label:e,error:n,locale:s,disabled:o,size:i="180px",onDateChange:a,onChangeFunction:l,disableWeekends:c,keyResetCalendar:u,disablePastDates:f,disableNextTwoDays:p,disableSpecificDate:g,disableBusinessDays:b,disableDaysBasedOnTime:x,disableFiveBusinessDays:m,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:w,heightBoxes:k="40px",labelText:D,subLabelText:C,id:j})=>{const{date:v,isOpen:z,setDate:W,language:Y,leftMonth:I,setIsOpen:d,disablePrev:A,isDateInRange:E,getDaysInMonth:_,isDateDisabled:H,handleDateClick:G,handlePrevClick:U,handleNextClick:F,datePickerRef:$,setSelectedDate:Z}=Qu({locale:s,onDateChange:a,onChangeFunction:l,disableWeekends:c,disablePastDates:f,disableBusinessDays:b,disableNextTwoDays:p,disableSpecificDate:g,disableDaysBasedOnTime:x,disableFiveBusinessDays:m,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:w,id:j});S.useEffect(()=>{W(null),Z(null)},[u,W,Z]);const T=R=>{const ee=_(R),X=R.getMonth(),te=V=>[V&&V.getMonth()!==X?"other-month":"",V&&E(V)?"selected":"",H(V)?"disabled":""].join(" ");return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>U(R),disabled:A(new Date(R.getFullYear(),R.getMonth()-1,1)),children:t.jsx("span",{className:"sr-only",children:t.jsx(Ho,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[Y.MONTHS[R.getMonth()],t.jsx("p",{children:R.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>F(R),children:t.jsx("span",{className:"sr-only",children:t.jsx(Vo,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${k})`},children:[t.jsx("div",{className:"background-days"}),Y.DAYS.map(V=>t.jsx("div",{className:"calendar-day-header",children:V},V)),ee.map((V,J)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${te(V)}`,disabled:!V||H(V),onClick:()=>V&&!H(V)&&G(V),children:t.jsx("span",{className:`day-text ${V?"":"text-muted"}`,children:V?V.getDate():""})})},`${V}_${J}`))]})]})};return t.jsxs("div",{className:"single-date-picker-container relative",ref:$,children:[t.jsx(qe,{label:v??e,onchange:()=>{},options:[],size:i,isOpen:z,setIsOpen:d,error:n,disabledClickOutside:!0,disabled:o,keyReset:u,Icon:ed,labelText:D,subLabelText:C}),z&&t.jsx("div",{className:"date-picker-dropdown date-picker-individual",children:t.jsx("div",{className:"calendars-wrapper",children:T(I)})})]})};Jo.propTypes={locale:r.oneOf(["es-ES","en-US"]),onDateChange:r.func,disableBusinessDays:r.number,disablePastDates:r.bool,label:r.string,size:r.string,disableNextTwoDays:r.bool,disableSpecificDate:r.instanceOf(Date),keyResetCalendar:r.number,error:r.bool,disableDaysBasedOnTime:r.bool,disableFiveBusinessDays:r.bool,disabled:r.bool,disableWeekends:r.bool,disableNextBusinessDayAfter:r.instanceOf(Date),hourDisableDaysBasedOnHour:r.instanceOf(Date),heightBoxes:r.string,labelText:r.string,subLabelText:r.any,id:r.string,onChangeFunction:r.func};const ei=({title:e,description:n,linkText:s,icon:o,fnNavigate:i,width:a,height:l,id:c})=>{const u=()=>{i(c)};return t.jsxs("section",{className:"info-action-card",style:{width:a,height:l},onClick:u,children:[t.jsxs("div",{className:"info-action-card__content",children:[t.jsxs("div",{className:"info-action-card__content__text__container",children:[t.jsx("h3",{children:e}),t.jsx("p",{children:n})]}),o]}),t.jsx("div",{className:"line-grey"}),t.jsxs("div",{className:"info-action-card__action",children:[t.jsx("button",{children:s}),t.jsx(Vs,{})]})]})};ei.propTypes={title:r.string,description:r.string,linkText:r.string,icon:r.node,fnNavigate:r.func,width:r.string,height:r.string,id:r.string};const Ju=(e,n,s)=>{const[o,i]=S.useState([]),[a,l]=S.useState([]),[c,u]=S.useState(!1),f=S.useRef(null),p=S.useRef(!1),g=w=>{i(k=>k.includes(w)?k.filter(D=>D!==w):[...k,w])},b=(w,k)=>{p.current=!0,l(D=>{var I;const C=D.findIndex(d=>d.id===w);let j=[...D],v=[];const z=e.find(d=>d.id===w)||{};if(z.multiple!==!1)if(C===-1)v=[k],j.push({id:w,title:z.title||"",optionsSelect:v});else{const d=D[C].optionsSelect;d.some(E=>E.id===k.id)?v=d.filter(E=>E.id!==k.id):v=[...d,k],v.length===0?j.splice(C,1):(v.sort((E,_)=>E.label.localeCompare(_.label)),j[C].optionsSelect=v)}else if(C===-1||((I=D[C].optionsSelect[0])==null?void 0:I.id)!==k.id?v=[k]:v=[],v.length===0)C>-1&&j.splice(C,1);else{const d={id:w,title:z.title||"",optionsSelect:v};C===-1?j.push(d):j[C]=d}const Y={};return e.forEach(d=>{const A=j.find(E=>E.id===d.id);Y[d.id]=A?A.optionsSelect.map(E=>E.id):[]}),s&&s(Y),j})},x=()=>{if(p.current=!0,l([]),s){const w={};e.forEach(k=>{w[k.id]=[]}),s(w)}},m=S.useCallback(w=>{p.current=!0,l(w)},[]);S.useEffect(()=>{p.current&&(n&&n(a),p.current=!1)},[a,n]);const h=()=>a.reduce((w,k)=>w+k.optionsSelect.length,0);return S.useEffect(()=>{const w=k=>{f.current&&!f.current.contains(k.target)&&u(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),{expandedSections:o,selectedFilters:a,toggleSection:g,toggleFilter:b,clearAllFilters:x,open:c,setOpen:u,getLengthFilters:h,filterRef:f,setSelectedFilters:m}},ti=({data:e=[],onChange:n,widthSubComponent:s,disabled:o,keyRest:i,onChangeFunction:a})=>{const{open:l,setOpen:c,toggleFilter:u,toggleSection:f,selectedFilters:p,clearAllFilters:g,getLengthFilters:b,expandedSections:x,filterRef:m,setSelectedFilters:h}=Ju(e,n,a),[w,k]=S.useState({}),[D,C]=S.useState({}),j=S.useRef({}),v=S.useRef(!0),z=132,W=220,Y=I=>{k(d=>({...d,[I]:!d[I]}))};return S.useEffect(()=>{const I={};x.forEach(d=>{const A=j.current[d];A&&A.scrollHeight>z&&(I[d]=!0)}),C(I)},[x,e]),S.useEffect(()=>{if(v.current){v.current=!1;return}h([])},[i,h]),t.jsxs("div",{className:"toggle-filter-component",ref:m,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:o,onClick:()=>c(!l),children:["Filtro",t.jsx(pd,{}),p.length>0&&t.jsx("span",{className:"absolute spanNumber-filter",children:b()})]}),l&&t.jsxs("div",{className:"filter-container-component",style:{width:s},children:[t.jsxs("div",{className:"filter-header",children:[t.jsx("h2",{className:"filter-title",children:"Filtros aplicados"}),p.length>0&&t.jsxs("button",{className:"clear-all",onClick:g,children:["Borrar todo"," ",t.jsx("span",{className:"filter-container-close-icon",children:"×"})]})]}),e.map(({id:I,title:d,options:A})=>t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>f(I),children:[t.jsx("span",{className:"section-header-title",children:d}),t.jsx("span",{className:"filter-container-icon",children:t.jsx(wr,{isOpen:x.includes(I),onChange:()=>{}})})]}),x.includes(I)&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:E=>j.current[I]=E,style:D[I]?w[I]?{maxHeight:W,overflowY:"scroll"}:{maxHeight:z,overflow:"hidden"}:{},children:A.map(E=>{const _=p.some(H=>H.id===I&&H.optionsSelect.some(G=>G.id===E.id));return t.jsx(Mr,{height:"27px",onChange:()=>u(I,E),isSelect:_,children:E.label},E.id)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:D[I]&&t.jsx("button",{className:"view-more",onClick:()=>Y(I),children:w[I]?"Ver menos":"Ver más"})})]})]},I))]})]})};ti.propTypes={data:r.array,onChange:r.func,widthSubComponent:r.string,disabled:r.bool,keyRest:r.number||r.string,onChangeFunction:r.func};const ni=({title:e,description:n,linkText:s,icon:o,fnNavigate:i,width:a,fnDownload:l,gapTitleDescription:c,height:u,hasDownloadButton:f,fontSizeTitle:p,fontSizeDescription:g,fontSizeButton:b,textButton:x,widthButton:m="7.5vw",id:h})=>t.jsxs("section",{id:"info-action-card-download-template",className:"info-action-card",style:{width:a,height:u},children:[t.jsxs("div",{style:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:[t.jsxs("div",{className:"info-action-card__content info-action-card__content-download-template",children:[t.jsxs("div",{className:"info-action-card__content__text info-action-card__content__text-download-template",style:{gap:c},children:[t.jsx("h3",{style:{fontSize:p},children:e}),t.jsx("p",{style:{fontSize:g},children:n})]}),t.jsx("div",{className:"info-action-card__content__icon",children:o})]}),f&&t.jsx(jr,{buttonProperties:{disabled:!1,onClick:()=>l(),style:{minHeight:"32px",width:m,marginLeft:"10px",fontSize:b,display:"flex",justifyContent:"space-between",alignItems:"center"}},children:x})]}),t.jsx("div",{className:"info-action-card__action info-action-card__action-download-template",children:t.jsxs("div",{style:{display:"flex",alignItems:"center",padding:" 15px",gap:"10px",fontSize:g},children:[t.jsx("button",{onClick:()=>i(h),children:s}),t.jsx(Vs,{})]})})]});ni.propTypes={title:r.string,description:r.string,linkText:r.string,icon:r.node,fnNavigate:r.func,width:r.string,fnDownload:r.func,gapTitleDescription:r.string,height:r.string,hasDownloadButton:r.bool,fontSizeTitle:r.string,fontSizeDescription:r.string,fontSizeButton:r.string,textButton:r.string,widthButton:r.string,id:r.string};const ri=({iconTitle:e,title:n,numberTitle:s,mainData:o,news:i,width:a,height:l,onChange:c,isSelected:u,value:f,disabled:p,keyReset:g,heightTitleFilter:b="20px"})=>{const[x,m]=S.useState({isSelected:u||!1,value:f||null});S.useEffect(()=>{m({isSelected:u,value:f})},[u,f]);const h=({item:k,from:D})=>{const C={isSelected:x.value!==k.title,value:x.value===k.title?null:k.title};m(C),c({item:k,from:D,title:n,selected:C.value,isSelected:C.isSelected})};S.useEffect(()=>{m({isSelected:!1,value:null})},[g]);const w=k=>!!(Number(k.quantity)===0||p);return t.jsxs("div",{className:"ProcessFilter",style:{width:a,height:l},children:[t.jsxs("div",{className:"ProcessFilter-header",style:{height:b},children:[t.jsxs("div",{className:"ProcessFilter-titleWrapper",children:[e,t.jsx("h2",{className:"ProcessFilter-title",children:n})]}),t.jsxs("div",{className:"ProcessFilter-statsWrapper",children:[t.jsx(md,{}),t.jsxs("span",{className:"ProcessFilter-numberTitle",children:["(",s,")"]})]})]}),t.jsx("div",{className:"ProcessFilter-mainData",children:o.map(k=>t.jsxs("div",{onClick:()=>w(k)?null:h({item:k,from:"main"}),className:`ProcessFilter-item-wrapper ${x.value===k.title?"selected":""} ${w(k)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:k.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:k.quantity})]},k.id))}),i.length>0&&t.jsxs("div",{className:"",children:[t.jsxs("h3",{className:"ProcessFilter-newsTitle",children:["Novedades (",i.length,")"]}),i.map(k=>t.jsxs("div",{onClick:()=>w(k)?null:h({item:k,from:"news"}),className:`ProcessFilter-item-wrapper ${x.value===k.title?"selected":""} ${w(k)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:k.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:k.quantity})]},k.id))]})]})};ri.propTypes={iconTitle:r.any,title:r.string,numberTitle:r.oneOfType([r.number,r.string]),mainData:r.array.isRequired,news:r.array.isRequired,width:r.string,height:r.string,onChange:r.func.isRequired,isSelected:r.bool,value:r.string,disabled:r.bool,keyReset:r.number,heightTitleFilter:r.string};const e0=Oe(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),si=({data:e,language:n,onSave:s,onCancel:o,isUpdate:i})=>{const[a,l]=S.useState(e),c={en:{title:"Application list",update:"Update application",cancel:"CANCEL",save:"SAVE"},es:{title:"Lista de aplicaciones",update:"Editar aplicación",cancel:"CANCELAR",save:"GUARDAR"}},u=c[n]??c.es,f=g=>{const b=a.filter((x,m)=>m!==g);l(b)},p=()=>{s(a)};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-listAplication",children:[t.jsxs("div",{className:"relative-onehundredpercent",children:[t.jsx("div",{className:"modal-listAplication-header",children:t.jsx("h2",{children:i?u.update:u.title})}),t.jsx("button",{className:"close-button",onClick:o,children:t.jsx(bn,{sx:{color:"#8598ad"}})})]}),t.jsx("div",{className:"modal-listAplication-content",children:a==null?void 0:a.map((g,b)=>t.jsxs("div",{className:"application-item",children:[t.jsx("div",{className:"application-header",children:t.jsx("h3",{children:g.title})}),t.jsxs("div",{className:"container-center-between",children:[t.jsx("div",{className:"application-title",children:typeof g.logo=="string"?t.jsx("div",{children:t.jsx("img",{src:g==null?void 0:g.logo,alt:`${g.title} logo`,className:"app-logo"})}):t.jsx("div",{children:t.jsx(g.logo,{})})}),a.length>1&&t.jsx("button",{className:"remove-button",onClick:()=>f(b),children:t.jsx(e0,{sx:{color:"#8598ad"}})})]}),t.jsx("p",{className:"application-manager",children:g.manager}),b<e.length-1&&t.jsx("hr",{})]},b))}),t.jsxs("div",{className:"modal-listAplication-footer",children:[t.jsx(bt,{buttonProperties:{disabled:!1,onClick:()=>o(),style:{width:"45%"}},children:u.cancel}),t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"45%"}},children:u.save})]})]})})};si.propTypes={data:r.array,language:r.oneOf(["en","es"]),onSave:r.func,onCancel:r.func,isUpdate:r.bool};const oi=e=>e.toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"}),ii=({isOpen:e,ticketNumber:n="##000",date:s=new Date,setIsOpen:o,isReadOnly:i=!1,fontSize:a="1vw",fontSizeButton:l="0.8vw",fontSizeTicketNumber:c="1.3vw",width:u="40vw"})=>{if(!e)return null;const f=()=>o(!1),p=()=>{f()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:u},children:[t.jsx("button",{onClick:f,className:"closeButton",children:t.jsx(bn,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[i&&t.jsxs("div",{className:"alert",children:[t.jsx(gn,{width:30}),t.jsx("p",{style:{fontSize:a},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(tr,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:a},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:n})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Fecha:"}),t.jsx("p",{style:{fontSize:a},children:oi(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(bt,{buttonProperties:{disabled:!1,onClick:()=>f(),style:{width:"50%",fontSize:l}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"50%",fontSize:l}},children:"ACEPTAR"})]})]})]})})};ii.propTypes={isOpen:r.bool,onClose:r.func,ticketNumber:r.string,date:r.instanceOf(Date),setIsOpen:r.func,isReadOnly:r.bool,fontSize:r.string,fontSizeButton:r.string,fontSizeTicketNumber:r.string,width:r.string};const t0="data:image/png;base64,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",ai=({onChange:e,handleClose:n})=>{const[s,o]=S.useState(!1),i=()=>{e(s),n()};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-VisualizationModaLogin",children:[t.jsx("img",{src:t0,alt:"",className:"backgroundTicket"}),t.jsx("div",{className:"TicketImageUserReadOnly",style:{height:"95px"},children:t.jsx("div",{className:"UserReadOnlyIconCenter",children:t.jsx(gn,{width:80})})}),t.jsx("button",{className:"close-button-VisualizationModaLogin",onClick:n,children:t.jsx(bn,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"container-content",children:[t.jsx("div",{className:"modal-header",children:t.jsx("h2",{children:"¿Qué es un usuario de Visualización?"})}),t.jsxs("div",{className:"modal-content",children:[t.jsx("p",{children:"Este perfil se puede utilizar para realizar ensayos o simulaciones dentro del portal, aplicación o plataforma. Este tipo de usuario se creo con el objetivo de evaluar funcionalidades, detectar errores o problemas, y verificar que el sistema funciona correctamente antes de que esté disponible para usuarios reales."}),t.jsx("h3",{children:"¿Qué puedo y que no puedo hacer?"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Puedes Visualizar y hacer el flujo de una sección dentro del portal"}),t.jsx("li",{children:"Puedes hacer la navegación pero no es posible guardar o realizar solicitudes de Tickets"})]}),t.jsx("div",{className:"checkbox-container",children:t.jsx(Ye.FormControlLabel,{control:t.jsx(Ye.Checkbox,{onChange:a=>o(a.target.checked),sx:{"&.Mui-checked":{color:"#33a4dd"}}}),label:"No volver a mostrar al iniciar sesión"})}),t.jsx("div",{className:"container-button-modal",children:t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>{i()},style:{width:"40%"}},children:"ACEPTAR"})})]})]})]})})};ai.propTypes={onChange:r.func.isRequired,handleClose:r.func};const li=({width:e,fontSize:n,marginAuto:s,height:o})=>t.jsxs("div",{className:"state-basic states-InProcessing",style:{width:e,fontSize:n,margin:s?"auto":"",height:o},children:[t.jsx(nr,{fill:"#d0aa00"}),"En Procesamiento"]});li.propTypes={width:r.string,fontSize:r.string,marginAuto:r.bool,height:r.string};const ci=({width:e,fontSize:n,marginAuto:s,height:o})=>t.jsxs("div",{className:"state-basic states-ToStart",style:{width:e,fontSize:n,margin:s?"auto":"",height:o},children:[t.jsx(nr,{fill:"#7c92c5"}),"Por Iniciar"]});ci.propTypes={width:r.string,fontSize:r.string,marginAuto:r.bool,height:r.string};const Er=(e,n="100px",s,o,i)=>({Activo:t.jsx(kr,{width:n,fontSize:s,marginAuto:o,height:i}),Cancelada:t.jsx(Sr,{width:n,fontSize:s,marginAuto:o,height:i}),Finalizada:t.jsx(Tr,{width:n,fontSize:s,marginAuto:o,height:i}),Inactivo:t.jsx(Cr,{width:n,fontSize:s,marginAuto:o,height:i}),"En Procesamiento":t.jsx(li,{width:n,fontSize:s,marginAuto:o,height:i}),"Por Iniciar":t.jsx(ci,{width:n,fontSize:s,marginAuto:o,height:i}),"En tránsito":t.jsx(zr,{width:n,fontSize:s,marginAuto:o,height:i})})[e]||e,di=({data:e,onEdit:n,width:s,dataKeysNotToRender:o=[],textButton:i="Editar",textHeader:a="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeight:u,onFnIcon:f,icon:p=t.jsx(Us,{}),widthState:g,onEditSubData:b,onFnIconSubData:x,subMessage:m,onClickOptions:h,onClickSubOptions:w,fontSizeTHead:k,fontSizeTBody:D,widthOptions:C,fontSizeOptions:j,nameOfKeyState:v="Estado",texAlignTHead:z="start",textAlignTBody:W="start",fontSizeState:Y,fontStyleTBody:I="normal",fontStyleTHead:d="normal"})=>{const[A,E]=S.useState({}),_=$=>{E(Z=>({...Z,[$]:!Z[$]}))},H=$=>{n($)},G=$=>{b($)},U=e.length>0?Object.keys(e[0]).filter($=>$!=="subData"&&!o.includes($)):[],F=$=>$!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),U.map(($,Z)=>t.jsx("th",{style:{fontSize:k,textAlign:z,fontStyle:d},children:$.replace(/_/g," ")},Z)),U.length>0?t.jsx("th",{style:{fontSize:k,textAlign:z,fontStyle:d},children:a}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:U.length+1,style:{fontSize:c,textAlign:"center",fontStyle:I},children:l})}),e==null?void 0:e.map($=>{var Z;return t.jsxs(S.Fragment,{children:[t.jsxs("tr",{className:"main-row",children:[t.jsx("td",{children:t.jsx("button",{onClick:()=>_($.id),className:"reset-styles-button",style:{width:"100%"},children:t.jsx("i",{className:`arrow-grey-container ${A[$.id]?"up":"down"}`})})}),U.map((T,R)=>t.jsx("td",{style:{color:T!==v?F($.Estado):"black",padding:T===v?"0 9px":"10px",fontSize:D,textAlign:W,fontStyle:I},children:T===v?Er($[T],g,Y,W==="center"):$[T]||"-"},R)),((Z=$==null?void 0:$.options)==null?void 0:Z.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(xt,{onClick:T=>{console.log(T),h({option:T,row:$})},options:[...$.options],fontSize:j,width:C})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>H($),style:{fontSize:D,fontStyle:I},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>f($),children:p})]})})]}),A[$.id]&&t.jsx("tr",{className:"sub-row",style:{fontStyle:"italic"},children:Array.from({length:U.length+2},(T,R)=>t.jsx("td",{className:"td-empty",style:{fontWeight:"600"},children:R===1?`${m}`:""},R))}),A[$.id]&&$.subData.length>0&&$.subData.map((T,R)=>{var ee;return t.jsxs("tr",{className:"sub-row",children:[t.jsx("td",{})," ",U.map((X,te)=>t.jsx("td",{style:{color:X!==v?F(T.Estado):"black",padding:X===v?"0 9px":"10px",fontSize:D,textAlign:W,fontStyle:I},children:X===v?Er(T[X],g,Y,W==="center"):T[X]||"-"},te)),((ee=T==null?void 0:T.options)==null?void 0:ee.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(xt,{onClick:X=>{w({option:X,row:T})},options:[...T.options],fontSize:j,width:C})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>G(T),style:{fontSize:D,fontStyle:I},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>x(T),children:p})]})})]},R)})]},$.id)})]})]})};di.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func.isRequired,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeight:r.string,icon:r.node,onFnIcon:r.func,widthState:r.string,onEditSubData:r.func,onFnIconSubData:r.func,subMessage:r.string,onClickOptions:r.func,onClickSubOptions:r.func,fontSizeTHead:r.string,fontSizeTBody:r.string,fontSizeOptions:r.string,texAlignTHead:r.string,widthOptions:r.string,nameOfKeyState:r.string,textAlignTBody:r.string,fontSizeState:r.string};const ui=({data:e,dataKeysNotToRender:n,title:s,minWidth:o,texAlignTHead:i="start",textAlignTBody:a="start",fontSizeTHead:l,fontSizeTBody:c,fontSizeTitle:u})=>{const f=e.length>0?Object.keys(e[0]).filter(p=>!n.includes(p)):[];return t.jsxs("div",{className:"log-container",style:{minWidth:o},children:[t.jsx("h1",{className:"log-title",style:{fontSize:u},children:s}),t.jsxs("table",{className:"log-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:f.map((p,g)=>t.jsx("th",{style:{textAlign:i,fontSize:l},children:t.jsx("p",{children:p})},g))})}),t.jsx("tbody",{children:e.map((p,g)=>t.jsx("tr",{style:{textAlign:a,fontSize:c},children:f.map((b,x)=>t.jsx("td",{children:t.jsx("p",{children:p[b]})},x))},g))})]})]})};ui.propTypes={title:r.string.isRequired,data:r.array.isRequired,dataKeysNotToRender:r.array,minWidth:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string,fontSizeTitle:r.string};const hi=({data:e,minWidth:n,dataKeysNotToRender:s,topToolTip:o,toolTips:i,fontSizeToolTip:a,messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:u,texAlignTHead:f="start",textAlignTBody:p="start",fontSizeTHead:g,fontSizeTBody:b,heightTd:x="30px",isWrap:m=!1})=>{const[h,w]=S.useState(null),k=j=>{w(j)},D=()=>{w(null)},C=e.length>0?Object.keys(e[0]).filter(j=>!s.includes(j)):[];return t.jsxs("table",{className:"table-ixc",style:{minWidth:n,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[C.map((j,v)=>t.jsxs("th",{className:"relative",onMouseEnter:()=>k(j),onMouseLeave:D,style:{height:x},children:[t.jsx("p",{style:{textAlign:f,fontSize:g,whiteSpace:m?"wrap":"nowrap",textOverflow:m?"clip":"ellipsis",overflow:m?"auto":"hidden"},children:j}),i&&i[j]&&h===j&&t.jsx("div",{className:"tooltipTable",style:{top:o},children:t.jsx(sr,{fontSize:a,children:i[j]})})]},v)),C.length===0&&t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:C.length+1,style:{fontSize:c,textAlign:"center",whiteSpace:m?"wrap":"nowrap",textOverflow:m?"clip":"ellipsis",overflow:m?"auto":"hidden"},children:l})}),e.map((j,v)=>t.jsx("tr",{children:C.map((z,W)=>t.jsx("td",{style:{textAlign:p,fontSize:b,whiteSpace:m?"wrap":"nowrap",textOverflow:m?"clip":"ellipsis",overflow:m?"auto":"hidden",height:x},children:j[z]},W))},(j==null?void 0:j.id)||v))]})]})};hi.propTypes={minWidth:r.string,toolTips:r.object,topToolTip:r.string,data:r.arrayOf(r.object).isRequired,dataKeysNotToRender:r.arrayOf(r.string),fontSizeToolTip:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeigth:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string,heightTd:r.string,isWrap:r.bool};const fi=({data:e,onEdit:n,width:s,dataKeysNotToRender:o,textButton:i="Editar",textHeader:a="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:u,icon:f,onFnIcon:p,onClickOptions:g,widthOptions:b,fontSizeOptions:x,texAlignTHead:m="start",textAlignTBody:h="start",fontSizeTHead:w,fontSizeTBody:k})=>{const D=j=>{n(j)},C=e.length>0?Object.keys(e[0]).filter(j=>j!=="options"&&!o.includes(j)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[C.map((j,v)=>t.jsx("th",{style:{textAlign:m,fontSize:w},children:j},v)),C.length>0?t.jsx("th",{style:{textAlign:m,fontSize:w},children:a}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:C.length+1,style:{fontSize:c,textAlign:"center"},children:l})}),e.map((j,v)=>{var z;return t.jsxs("tr",{children:[C.map((W,Y)=>t.jsx("td",{style:{textAlign:h,fontSize:k},children:j[W]},Y)),((z=j==null?void 0:j.options)==null?void 0:z.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(xt,{onClick:W=>{g({option:W,row:j})},options:[...j.options],fontSize:x,width:b})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>D(j),style:{fontSize:k,textAlign:h},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>p(j),style:{textAlign:i?h:"center"},children:f})]})})]},(j==null?void 0:j.id)||v)})]})]})};fi.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),language:r.oneOf(["en","es"]),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeigth:r.string,icon:r.node,onFnIcon:r.func,onClickOptions:r.func,widthOptions:r.string,fontSizeOptions:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string};const pi=({data:e,onEdit:n,width:s,dataKeysNotToRender:o,textButton:i="Editar",textHeader:a="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:u,texAlignTHead:f="start",textAlignTBody:p="start",fontSizeTHead:g,fontSizeTBody:b,heightTd:x="30px"})=>{const m=w=>{n(w)},h=e.length>0?Object.keys(e[0]).filter(w=>!o.includes(w)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[h.map((w,k)=>t.jsx("th",{style:{textAlign:f,fontSize:g},children:w},k)),h.length>0?t.jsx("th",{style:{textAlign:f,fontSize:g},children:a}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:h.length+1,style:{fontSize:c,textAlign:"center"},children:l})}),e.map((w,k)=>t.jsxs("tr",{children:[h.map((D,C)=>t.jsx("td",{style:{textAlign:p,fontSize:b},children:w[D]},C)),t.jsx("td",{children:t.jsx("button",{className:"edit-button",onClick:()=>m(w),style:{fontSize:b,textAlign:p,height:x},children:i})})]},(w==null?void 0:w.id)||k))]})]})};pi.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func.isRequired,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),language:r.oneOf(["en","es"]),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeigth:r.string,texAlignTHead:r.string,textAlignTBody:r.string,fontSizeTHead:r.string,fontSizeTBody:r.string};const gi=({data:e,onEdit:n,width:s,textButton:o="Editar",textHeader:i="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:l="1.5vw",minHeight:c,onFnIcon:u,icon:f=t.jsx(Us,{}),widthState:p,onClickOptions:g,fontSizeTHead:b,fontSizeTBody:x,widthOptions:m,fontSizeOptions:h,dataKeysNotToRender:w=[],nameOfKeyState:k="Estado",texAlignTHead:D="start",textAlignTBody:C="start",fontSizeState:j,heightStates:v="18px",heightTd:z="30px",fontStyleTBody:W="normal",fontStyleTHead:Y="normal"})=>{const I=E=>{n(E)},d=(e==null?void 0:e.length)>0?Object.keys(e[0]).filter(E=>E!=="options"&&!w.includes(E)):[],A=E=>E!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:c,fontStyle:W},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[d.map((E,_)=>t.jsx("th",{style:{fontSize:b,textAlign:D,fontStyle:Y},children:E},_)),d.length>0?t.jsx("th",{style:{fontSize:b,textAlign:D,fontStyle:Y},children:i}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:d.length+1,style:{fontSize:l,textAlign:"center",fontStyle:W},children:a})}),e.map((E,_)=>{var H;return t.jsxs("tr",{children:[d.map((G,U)=>t.jsx("td",{style:{fontSize:x,textAlign:C,color:G!==k?A(E.Estado):"black",height:z,fontStyle:W},children:G===k?Er(E[G],p,j,C==="center",v):E[G]},U)),((H=E==null?void 0:E.options)==null?void 0:H.length)>0?t.jsx("td",{style:{overflow:"visible",height:z,fontStyle:W},children:t.jsx(xt,{onClick:G=>{g({option:G,row:E})},options:[...E.options],fontSize:h,width:m})}):t.jsx("td",{style:{height:z,fontStyle:W},children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>I(E),style:{fontSize:x,textAlign:C,fontStyle:W},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>u(E),children:f})]})})]},(E==null?void 0:E.id)||_)})]})]})};gi.propTypes={data:r.arrayOf(r.object).isRequired,onEdit:r.func.isRequired,width:r.string,dataKeysNotToRender:r.arrayOf(r.string),textButton:r.string,textHeader:r.string,messageWhenEmpty:r.string,fontSizeMessageEmpty:r.string,minHeight:r.string,icon:r.node,onFnIcon:r.func,widthState:r.string,onClickOptions:r.func,fontSizeTHead:r.string,fontSizeTBody:r.string,fontSizeOptions:r.string,texAlignTHead:r.string,widthOptions:r.string,nameOfKeyState:r.string,textAlignTBody:r.string,fontSizeState:r.string,heightStates:r.string,heightTd:r.string,fontStyleTBody:r.string,fontStyleTHead:r.string};const mi=({isOpen:e,ticketNumber:n="##000",date:s=new Date,setIsOpen:o,isReadOnly:i=!1,fontSize:a="1vw",fontSizeButton:l="0.8vw",fontSizeTicketNumber:c="1.3vw",width:u="40vw"})=>{if(!e)return null;const f=()=>o(!1),p=()=>{f()};return t.jsx("div",{className:"ticket-component-v2",style:{width:u},children:t.jsxs("div",{className:"main-content",children:[i&&t.jsxs("div",{className:"alert",children:[t.jsx(gn,{width:30}),t.jsx("p",{style:{fontSize:a},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(tr,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:a},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:n})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:a},children:"Fecha:"}),t.jsx("p",{style:{fontSize:a},children:oi(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(bt,{buttonProperties:{disabled:!1,onClick:()=>f(),style:{width:"50%",fontSize:l}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(He,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"50%",fontSize:l}},children:"ACEPTAR"})]})]})})};mi.propTypes={isOpen:r.bool,width:r.string,onClose:r.func,setIsOpen:r.func,isReadOnly:r.bool,fontSize:r.string,ticketNumber:r.string,date:r.instanceOf(Date),fontSizeButton:r.string,fontSizeTicketNumber:r.string};const yi=({menus:e,size:n,onclick:s})=>{var f;const o=e||[],[i,a]=S.useState(((f=o[0])==null?void 0:f.id)||""),[l,c]=S.useState(100/o.length),u=p=>{a(p.id),s(p)};return S.useEffect(()=>{const p=()=>{const g=100/o.length;c(g)};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[o.length]),t.jsx("nav",{className:"dynamic-menu",style:{width:n},children:t.jsx("ul",{children:o.map(p=>t.jsx("li",{className:i===p.id?"selected":"",style:{width:`${l}%`},onClick:()=>u(p),children:t.jsx("button",{children:p.label})},p.id))})})};yi.propTypes={menus:r.array,size:r.string,onclick:r.func};const bi=({children:e,onChange:n,tabs:s,value:o,minHeight:i,width:a})=>{const[l,c]=S.useState(o),u=f=>{c(f),n(f)};return t.jsxs("div",{className:"tabs-container",style:{width:a},children:[t.jsx("div",{className:"tabs-wrapper",children:s.map(f=>t.jsxs("button",{onClick:()=>u(f.id),className:`tab-button ${l===f.id?"active":""}`,children:[t.jsx("span",{className:"tab-title",children:f.title}),t.jsx("span",{className:"tab-subtitle",children:f.subtitle})]},f.id))}),t.jsx("div",{style:{minHeight:i},children:e})]})};bi.propTypes={children:r.node,onChange:r.func,tabs:r.arrayOf(r.shape({id:r.string,title:r.string,subtitle:r.any})),value:r.string,minHeight:r.string,width:r.string};const xi=({tabs:e,width:n,onChange:s,disabled:o,defaultValue:i})=>{var u;const[a,l]=S.useState(i||((u=e[0])==null?void 0:u.key)||"");S.useEffect(()=>{i&&l(i)},[i]);const c=f=>{l(f),s(f)};return t.jsx("div",{className:"DeliveryTabs-tabs-container",style:{width:n},children:t.jsx("div",{className:"tabs-wrapper",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((f,p)=>t.jsx("button",{disabled:o,className:`tab ${a===f.key?"active":""} ${p===0?"first-tab":""} ${p===e.length-1?"last-tab":""}`,onClick:()=>c(f.key),role:"tab","aria-selected":a===f.key,children:f.label},f.key))})})};xi.propTypes={tabs:r.arrayOf(r.shape({key:r.string,label:r.string})),width:r.string,onChange:r.func,disabled:r.bool,defaultValue:r.string};const vi=({titles:e=["1. Cargar Datos de Cancelación","2. Validar los Datos Cargados","3. Aceptar o Rechazar"],currentStep:n=1,fontSizeTitles:s,widthIcon:o,heightIcon:i,width:a})=>{const l=[bd,yd,xd],c=e.map((u,f)=>({number:f+1,title:u,icon:l[f]}));return t.jsxs("div",{className:"stepper",style:{width:a},children:[t.jsx("div",{className:"stepper-progress",children:t.jsx("div",{className:"stepper-progress-bar",style:{width:n===1?"0%":n===2?"52%":"100%"}})}),t.jsx("div",{className:"stepper-steps",children:c.map(u=>{const f=u.icon,p=n>=u.number;return t.jsxs("div",{className:`stepper-step ${p?"active":""}`,style:{height:i},children:[t.jsx("span",{className:"stepper-title",style:{fontSize:s},children:u.title},u.number),t.jsx("div",{className:"stepper-icon",style:{width:o,height:i},children:t.jsx(f,{})})]},u.number)})})]})};vi.propTypes={titles:r.arrayOf(r.string),currentStep:r.number,fontSizeTitles:r.string,widthIcon:r.string,heightIcon:r.string,width:r.string};const ji=({width:e,menu:n,submenu:s,tab:o,navigateFn:i,fontSize:a,Icon:l,marginTop:c})=>{const u=()=>{i({submenu:s,tab:o})};return t.jsxs("div",{className:"flex gap w-full",style:{width:e},children:[t.jsxs("ul",{className:"flex gap items-center ulBreadcrumbs",children:[t.jsx("li",{className:"list-none flex",style:{marginTop:c??"4px"},children:l||t.jsx(Jn,{width:25,height:25})}),t.jsx("li",{className:"list-none",style:{fontSize:a},children:n}),t.jsx("li",{className:"list-none",style:{fontSize:a},children:t.jsx(er,{})})]}),t.jsxs("ul",{className:"flex gap items-center pointer ulBreadcrumbs",children:[t.jsx("li",{className:`list-none ${o?"border-bottom":"color-tab"}`,onClick:u,style:{fontSize:a},children:s}),o&&t.jsx("li",{className:"list-none",style:{fontSize:a},children:t.jsx(er,{})}),o&&t.jsx("li",{className:"list-none color-tab",style:{fontSize:a},children:o})]})]})};ji.propTypes={width:r.string,menu:r.string,submenu:r.string,tab:r.string,navigateFn:r.func,fontSize:r.string,Icon:r.element,marginTop:r.string};const wi=({children:e,style:n})=>t.jsx("h3",{className:"blue-title",style:{...n},children:e});wi.propTypes={children:r.any,style:r.object};const ki=({children:e,navigateTo:n,style:s})=>t.jsx("button",{onClick:()=>n(),style:{...s},className:"ions-link",children:e});ki.propTypes={children:r.node,navigateTo:r.func,style:r.object},r.checkPropTypes=()=>{},O.Active=kr,O.BasicSelect=qe,O.BlueTitle=wi,O.BoldIcon=Qn,O.Breadcrumbs=ji,O.ButtonAddBoxRoundedIcon=Do,O.ButtonArrow=wr,O.ButtonDarkBlue=$t,O.ButtonDarkBlueRounded=xr,O.ButtonDarkGreen=So,O.ButtonDownloadFile=To,O.ButtonDownloadTemplate=Oo,O.ButtonLetters=Co,O.ButtonMinus=Mo,O.ButtonPlus=zo,O.ButtonReset=ko,O.ButtonSearch=bo,O.ButtonSoftPastelBlue=Eo,O.ButtonSoftPastelBlueRounded=Ro,O.ButtonUploadTemplate=No,O.ButtonVibrantBlue=He,O.ButtonVibrantBlueUpload=Ao,O.ButtonWhiteBorderBlue=bt,O.ButtonWhiteBorderBlueDownloadTemplate=jr,O.ButtonWhiteBorderOrange=vr,O.Canceled=Sr,O.CheckBox=Ks,O.Chip=Po,O.ClearFilterIcon=fn,O.Completed=Tr,O.CustomArrowIcon=Jc,O.DateRangePicker=Go,O.DeliveryTabs=xi,O.DesSelectAllIcon=Hs,O.DropFile=wo,O.EraserIcon=Jn,O.ExpandableTable=di,O.EyeButton=Io,O.FilePreview=$o,O.FilterComponent=ti,O.GreyContainer=Bo,O.GreyContainerDropdown=Fo,O.GreyInput=Xs,O.GreySelect=wu,O.GreyTextArea=po,O.HeaderItemsComponent=yi,O.InTransit=zr,O.Inactive=Cr,O.InfoActionCard=ei,O.InfoActionCardDownloadTemplate=ni,O.InputRadio=mr,O.InputSearch=yn,O.InputUpload=fo,O.InputWithButtonSearch=xo,O.InputWithLabel=yo,O.ItalicIcon=Xn,O.KeyboardArrowDownOutlinedIconColorCustom=Fs,O.LastUpdate=Wo,O.Link=ki,O.Loader=Ys,O.LogTable=ui,O.MarksIcon=Kn,O.MenuOptions=xt,O.ModalListAplications=si,O.MultiSelect=uo,O.NumberSpinner=Au,O.NumberSpinnerByRange=vo,O.Pagination=Lo,O.ProcessFilter=ri,O.RightArrowIcon=er,O.RoundedInput=go,O.SelectAll=lo,O.SelectAllIcon=Ls,O.SelectRadio=ho,O.SelectWithTitle=jo,O.SingleDatePicker=Jo,O.Stepper=vi,O.Switch=Zs,O.Table=hi,O.TableActionIcon=fi,O.TableEdit=pi,O.TableStates=gi,O.TabsNavigation=bi,O.TextArea=Gs,O.TicketComponentV2=mi,O.TicketModal=ii,O.TimeComponent=mo,O.TitleWithTooltip=Rt,O.ToggleChip=Mr,O.TooltipsWhite=sr,O.UpLoadSvgIcon=hn,O.UpdateBanner=On,O.UploadFileIcon=pn,O.VisualizationModaLogin=ai,O.WaringBanner=Lc,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ixc-library-portal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.80",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/ixc-library.umd.js",
|
|
6
6
|
"module": "dist/ixc-library.es.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"styled-components": "^6.1.11",
|
|
30
30
|
"@emotion/react": "^11.11.4",
|
|
31
31
|
"@emotion/styled": "^11.11.5",
|
|
32
|
-
"@mui/material": ">=5.15.18 <
|
|
33
|
-
"@mui/icons-material": ">=5.15.18 <
|
|
32
|
+
"@mui/material": ">=5.15.18 <8.1.0",
|
|
33
|
+
"@mui/icons-material": ">=5.15.18 <8.1.0",
|
|
34
34
|
"react-icons": "^5.3.0",
|
|
35
35
|
"lodash": "^4.17.21"
|
|
36
36
|
},
|