@aleleba/ro-ut-ui 4.4.0 → 4.6.0
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/index.css +13 -4
- package/dist/index.js +1 -1
- package/dist/types/components/Calendars/Calendar/index.d.ts +47 -0
- package/dist/types/components/Calendars/index.d.ts +7 -0
- package/dist/types/components/Carousels/Carousel/index.d.ts +57 -0
- package/dist/types/components/Carousels/index.d.ts +7 -0
- package/dist/types/components/DropdownMenus/DropdownMenu/index.d.ts +60 -0
- package/dist/types/components/DropdownMenus/index.d.ts +11 -0
- package/dist/types/components/EventCards/EventCard/index.d.ts +37 -0
- package/dist/types/components/EventCards/index.d.ts +7 -0
- package/dist/types/components/IconButtons/index.d.ts +2 -1
- package/dist/types/components/Icons/index.d.ts +3 -1
- package/dist/types/components/RouteCards/RouteCard/index.d.ts +53 -0
- package/dist/types/components/RouteCards/index.d.ts +7 -0
- package/dist/types/components/SelectableTiles/SelectableTile/index.d.ts +46 -0
- package/dist/types/components/SelectableTiles/SelectableTileGroup/index.d.ts +79 -0
- package/dist/types/components/SelectableTiles/index.d.ts +8 -0
- package/dist/types/components/Tables/Table/index.d.ts +60 -0
- package/dist/types/components/Tables/index.d.ts +7 -0
- package/dist/types/components/Tabs/Tabs/index.d.ts +52 -0
- package/dist/types/components/Tabs/index.d.ts +8 -0
- package/dist/types/components/index.d.ts +8 -0
- package/package.json +124 -124
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["ui-library"]=a():e["ui-library"]=a()}(this,()=>(()=>{"use strict";var e={d:(a,n)=>{for(var r in n)e.o(n,r)&&!e.o(a,r)&&Object.defineProperty(a,r,{enumerable:!0,get:n[r]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};e.r(a),e.d(a,{Avatar:()=>dr,AvatarSizes:()=>lr,AvatarThemes:()=>ur,Badge:()=>jr,BadgeVariants:()=>Nr,BorderCard:()=>He,Button:()=>Le,ButtonThemes:()=>qe,ButtonTypes:()=>Be,Card:()=>Fe,CardThemes:()=>Ue,Checkbox:()=>Xa,CheckboxGroup:()=>tn,CheckboxGroupDirections:()=>an,CheckboxThemes:()=>rn,DatePicker:()=>er,DatePickerThemes:()=>$n,Icon:()=>D,IconButton:()=>Wr,IconButtonShapes:()=>Yr,IconButtonSizes:()=>Zr,IconButtonThemes:()=>Jr,IconButtonTypes:()=>Kr,IconNames:()=>I,Input:()=>We,InputThemes:()=>Ke,LeftNavbar:()=>wa,LeftNavbarThemes:()=>Aa,Link:()=>it,LinkThemes:()=>tt,NavItem:()=>Ia,NavList:()=>za,NavMenuContext:()=>va,Navbar:()=>pa,NavbarContext:()=>da,NavbarThemes:()=>La,Radio:()=>Ua,RadioGroup:()=>Ya,RadioGroupDirections:()=>Ja,RadioThemes:()=>Za,Rating:()=>xt,RatingSizes:()=>gt,RatingThemes:()=>bt,Select:()=>_n,SelectThemes:()=>Gn,Tag:()=>Ar,TagThemes:()=>Er,Textarea:()=>xn,TextareaThemes:()=>gn,Toggle:()=>mn,ToggleThemes:()=>dn,TopNavbar:()=>fa,TopNavbarThemes:()=>Ea,getAvatarSizeClass:()=>vr,getAvatarThemeClass:()=>mr,getBadgeVariantClass:()=>kr,getBorderCard:()=>Ze,getButtonThemeClass:()=>Ee,getCardThemeClass:()=>Je,getCheckboxThemeClass:()=>cn,getDatePickerThemeClass:()=>ar,getIconButtonShapeClass:()=>et,getIconButtonSizeClass:()=>$r,getIconButtonThemeClass:()=>Xr,getIconClass:()=>fe,getInputThemeClass:()=>Xe,getLeftNavbarThemeClass:()=>Ma,getLinkThemeClass:()=>ct,getNavbarThemeClass:()=>Pa,getRadioThemeClass:()=>Ka,getRatingSizeClass:()=>jt,getRatingThemeClass:()=>Nt,getSelectThemeClass:()=>Qn,getTagThemeClass:()=>Ir,getTextareaThemeClass:()=>Nn,getToggleThemeClass:()=>vn,getTopNavbarThemeClass:()=>Da,useNavMenu:()=>ha,useNavbar:()=>ma});const n="namBd2yDO5uRnuiJiF4I",r="IezAhh3IOxZrbRaPnSuX",t="peAKuLVAiIXSFB_8weUX",i="fX0XkPg_VOwlCS_puohG",c="uRh5AMB7fHGMjymlSkIe",o="A61ABO8IXKvkyJ2iRq6l",s="nYNZP8pJf0SUq0ZPndyE",u="OOr9vC74FozQAPLK3TBF",l="jtiHB4J2Gd75DxgbExDU",d="htFKNG_lNNMADoynscvf",m="b41eXc_YG54TSjVcPdr3",v="iDCPPzPmlHXmY6DeRlrz",h="qSKheV1seun_M2zooNYG",p="neFnz7mqfjyob2IpBRAB",f="fMuDGJLmZu10m_5wuQwH",y="W1_8p2A4KoAru1W3fQQt",b="tm0XixvT9lg82S8vBQ7H",g="s4WqNjDDGgeMddVjGC39",x="bedJB1k7F24TZZ14mvGS",N="PgNn5YrHhpkkzKgbQGHw",j="g7BsZUvE5UmvGR7yux1n",k="oCPQLbmQjjlb4QfF6N3z",C="w1jjKytmOVrGE_OOWN24",w="wxOwGgByggkSrx_yH1Mm",T="jyv2Pn76yjv7yHzme6Vi",S="l_u5YpNTZO_QLR2ODTsM",O="D3lpa3rGkDORSZEMO4Pu",z="ptOAordfG6nUqt1RGPGD",q="tcijTEF2DcjdTgUYgwm_",B="odUpHd2U2lDHRINyeow1",L="Sb74MmtzlQ4r_auGli10",E="iRPlBCtkk8OZ1fVrK6Ac",A=require("react/jsx-runtime");var I,P=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return e.filter(function(e){return e}).join(" ")},D=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,c=P(i?fe({icon:i}):"",t);return(0,A.jsx)("span",{id:n,className:c})},M=n,R=j,G=N,V=v,_=d,Q=l,U=i,H=r,F=T,J=o,Z=p,Y=m,K=g,W=b,X=L,$=w,ee=x,ae=C,ne=h,re=O,te=S,ie=z,ce=q,oe=c,se=k,ue=y,le=t,de=E,me=f,ve=u,he=s,pe=B;!function(e){e.perfil="perfil",e.password="password",e.google="google",e.facebook="facebook",e.dashboard="dashboard",e.calendario="calendario",e.administracionDeUsuario="administracionDeUsuario",e.rutas="rutas",e.chat="chat",e.informes="informes",e.flecha="flecha",e.nuevaRuta="nuevaRuta",e.notificacion="notificacion",e.usuarioDentroApp="usuarioDentroApp",e.rutaNueva="rutaNueva",e.nuevaRuta2="nuevaRuta2",e.rutaCompletada="rutaCompletada",e.hoy="hoy",e.rutasProgramadas="rutasProgramadas",e.rutasEliminadas="rutasEliminadas",e.rutasReprogramadas="rutasReprogramadas",e.search="search",e.camion="camion",e.pickup="pickup",e.motocicleta="motocicleta",e.barco="barco",e.varios="varios",e.menu="menu",e.chevronDown="chevronDown",e.check="check",e.star="star"}(I||(I={}));var fe=function(e){switch(e.icon){case"perfil":return"".concat(M," ").concat(R);case"password":return"".concat(M," ").concat(G);case"google":return"".concat(M," ").concat(V);case"facebook":return"".concat(M," ").concat(_);case"dashboard":return"".concat(M," ").concat(Q);case"calendario":return"".concat(M," ").concat(U);case"administracionDeUsuario":return"".concat(M," ").concat(H);case"rutas":return"".concat(M," ").concat(F);case"chat":return"".concat(M," ").concat(J);case"informes":return"".concat(M," ").concat(Z);case"flecha":return"".concat(M," ").concat(Y);case"nuevaRuta":return"".concat(M," ").concat(K);case"notificacion":return"".concat(M," ").concat(W);case"usuarioDentroApp":return"".concat(M," ").concat(X);case"rutaNueva":return"".concat(M," ").concat($);case"nuevaRuta2":return"".concat(M," ").concat(ee);case"rutaCompletada":return"".concat(M," ").concat(ae);case"hoy":return"".concat(M," ").concat(ne);case"rutasProgramadas":return"".concat(M," ").concat(re);case"rutasEliminadas":return"".concat(M," ").concat(te);case"rutasReprogramadas":return"".concat(M," ").concat(ie);case"search":return"".concat(M," ").concat(ce);case"camion":return"".concat(M," ").concat(oe);case"pickup":return"".concat(M," ").concat(se);case"motocicleta":return"".concat(M," ").concat(ue);case"barco":return"".concat(M," ").concat(le);case"varios":return"".concat(M," ").concat(de);case"menu":return"".concat(M," ").concat(me);case"chevronDown":return"".concat(M," ").concat(ve);case"check":return"".concat(M," ").concat(he);case"star":return"".concat(M," ").concat(pe);default:return""}};const ye="UxC2t97LIIISx7e71_3R",be="JJF9nOwFrn4f4Agjebcs",ge="cwK5avZb5ShuVPiPWB8Q",xe="CFpiqnX4jq_EltxkwEvy",Ne="yjB0ArEAyeYU6_u7zKsQ",je="Djr8Yh2IQcUcgjSZ_WQ5",ke="uyBaWoSnHEIxM4x7jgQw",Ce="qWYltwKufw7ZliVlCT9g",we="oQRCOHaGpuh207HQzerc",Te="HtF5k4mwsNW1v9YG7qd2",Se="Pg7VF5nFKczFtA3r5E88",Oe="wXyKJ8kY_42bOcyetwnC",ze="dLCzLEcc0jSLJgsTyHoM";var qe,Be,Le=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?qe.primary:o,u=e.hardBorder,l=void 0===u||u,d=e.type,m=void 0===d?Be.button:d,v=e.onClick,h=P(ye,Ee({theme:s}),l?be:ge,c);return(0,A.jsx)("button",{id:n,className:h,type:m,onClick:v,children:t})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary",e.primaryOutline="primaryOutline",e.secondaryOutline="secondaryOutline",e.tertiaryOutline="tertiaryOutline",e.quaternaryOutline="quaternaryOutline",e.quinaryOutline="quinaryOutline"}(qe||(qe={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Be||(Be={}));var Ee=function(e){switch(e.theme){case qe.primary:return xe;case qe.secondary:return Ne;case qe.tertiary:return je;case qe.quaternary:return ke;case qe.quinary:return Ce;case qe.primaryOutline:return we;case qe.secondaryOutline:return Te;case qe.tertiaryOutline:return Se;case qe.quaternaryOutline:return Oe;case qe.quinaryOutline:return ze;default:return""}};const Ae="pAD4BifhMTLUZvCJxyOx",Ie="a2VHzo7AbMVmPMGC3mSx",Pe="W0VuH9q0UPwsyVsTQQJe",De="SIPeMNZqcOWCkESf4cPg",Me="hPcmh2SHmHeXnUxGP93s",Re="DcZJoe6Kl4lnV3k4i7nV",Ge="LH35do5a6HPSjPusBT_z",Ve="juXoWoLQrRgOgzapK6H9",_e="tPCdlPqN6fB69GmnQ181",Qe="nsb5sNsicCrkfBe9SIFs";var Ue,He,Fe=function(e){var a=e.children,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Ue.primary:i,o=e.border,s=void 0===o?He.soft:o,u=e.title,l=P(Ae,Je({theme:c}),Ze({border:s}),t);return(0,A.jsxs)("div",{className:l,children:[u&&(0,A.jsx)("div",{className:Ie,children:(0,A.jsx)("h5",{className:De,children:u})}),(0,A.jsx)("div",{className:Pe,children:n})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(Ue||(Ue={})),function(e){e.soft="soft",e.hard="hard"}(He||(He={}));var Je=function(e){switch(e.theme){case"primary":return Ge;case"secondary":return Ve;case"tertiary":return _e;case"quaternary":return Qe;default:return""}},Ze=function(e){switch(e.border){case"soft":return Me;case"hard":return Re;default:return""}};const Ye={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var Ke,We=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.type,c=void 0===i?"text":i,o=e.theme,s=void 0===o?Ke.primary:o,u=e.placeholder,l=void 0===u?"":u,d=e.hardBorder,m=void 0!==d&&d,v=e.icon,h=e.onChange,p=void 0===h?function(){}:h,f=P(Ye["input-common"],Xe({theme:s}),m?Ye["input-border-hard"]:"",t,v?Ye["input-with-icon"]:"");return(0,A.jsxs)("div",{className:Ye.relative,children:[(0,A.jsx)("input",{id:n,className:f,placeholder:l,type:c,onChange:p}),v&&(0,A.jsx)(D,{className:Ye["icon-input"],icon:v})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(Ke||(Ke={}));var Xe=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return Ye["input-secondary"];case"tertiary":return Ye["input-tertiary"]}};const $e="FnQHiSW9NTFa3WlXGoCc",ea="NatMJzDzTApsQaVDAagx",aa="qY4Y2bWaIDQFsSw6KaT5",na="zguwwN6hze6uapnqp5Ni",ra="ko1cAltyF24Od59He2SS",ta="kpCx3tGL8Ty2NT_5o1mJ",ia="F6hI7ZfLokc9h5jkh6IL",ca="qlSGENr4s2AUMMLzL8AR",oa="RY7dvVQ6fbBnjtgy0igh",sa="OpF1ocsD_5dn_993DhqT",ua="FSuEOctgnc2BHuB5nXoQ",la=require("react");var da=(0,la.createContext)(void 0),ma=function(){var e;return null!==(e=(0,la.useContext)(da))&&void 0!==e?e:{isOpen:!1,toggle:function(){},setOpen:function(){},isExpanded:!1,toggleExpanded:function(){},isMobile:!1}},va=(0,la.createContext)("accordion"),ha=function(){return(0,la.useContext)(va)},pa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?La.primary:o,u=e.defaultOpen,l=void 0!==u&&u,d=e.defaultExpanded,m=void 0!==d&&d,v=(0,la.useState)(l),h=v[0],p=v[1],f=(0,la.useState)(m),y=f[0],b=f[1],g=(0,la.useState)(!1),x=g[0],N=g[1];(0,la.useEffect)(function(){if("undefined"!=typeof window&&window.matchMedia){var e=window.matchMedia("(max-width: 767px)"),a=function(){return N(e.matches)};return a(),e.addEventListener?(e.addEventListener("change",a),function(){return e.removeEventListener("change",a)}):(e.addListener(a),function(){return e.removeListener(a)})}},[]),(0,la.useEffect)(function(){if("undefined"!=typeof document){var e=document.documentElement;return e.style.setProperty("--ro-ut-sidebar-width",x?"0px":y?"24rem":"6rem"),e.style.setProperty("--ro-ut-topbar-height",x?"0px":"101px"),function(){e.style.removeProperty("--ro-ut-sidebar-width"),e.style.removeProperty("--ro-ut-topbar-height")}}},[x,y]);var j=(0,la.useCallback)(function(){return p(function(e){return!e})},[]),k=(0,la.useCallback)(function(e){return p(e)},[]),C=(0,la.useCallback)(function(){return b(function(e){return!e})},[]),w={isOpen:h,toggle:j,setOpen:k,isExpanded:y,toggleExpanded:C,isMobile:x},T=P($e,Pa({theme:s}),c);return(0,A.jsx)(da.Provider,{value:w,children:(0,A.jsx)("nav",{id:n,className:T,children:t})})},fa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Ea.primary:o,u=e.brand,l=e.actions,d=e.menuIcon,m=void 0===d?I.menu:d,v=e.hideMenuToggle,h=void 0!==v&&v,p=ma(),f=p.isOpen,y=p.toggle,b=p.isMobile?"accordion":"dropdown",g=P(aa,Da({theme:s}),c),x=P(ia,f?ca:oa);return(0,A.jsxs)("header",{id:n,className:g,children:[(0,A.jsxs)("div",{className:na,children:[u&&(0,A.jsx)("div",{className:ta,children:u}),!h&&(0,A.jsx)("button",{type:"button","aria-label":"Toggle menu",className:ra,onClick:y,children:(0,A.jsx)(D,{icon:m})})]}),(0,A.jsx)(va.Provider,{value:b,children:(0,A.jsx)("div",{className:x,children:t})}),l&&(0,A.jsx)("div",{className:sa,children:l})]})};const ya="lB8REa7QbS00_HY39qlv",ba="sSfHpXGaWQJlKsMHHaNz",ga="KUAQgA5jKT0cpt4YT9My",xa="VHv_24fnWV6U7utpmyOv",Na="xz7mio21qHuZpdmkS_Ql",ja="mecTZPfsBQEB8_dRnBQz",ka="B9dyOyj_V1ejlMhgfn9g",Ca="ZddvyvLdn43wm9cl0jwZ";var wa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Aa.primary:o,u=e.pinToggleIcon,l=void 0===u?I.flecha:u,d=e.hidePinToggle,m=void 0!==d&&d,v=ma(),h=v.isOpen,p=v.isExpanded,f=v.toggleExpanded,y=P(ya,h?ba:ga,p?Na:xa,Ma({theme:s}),c);return(0,A.jsxs)("aside",{id:n,className:y,children:[(0,A.jsx)(va.Provider,{value:"accordion",children:t}),!m&&(0,A.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:ja,onClick:f,children:(0,A.jsx)(D,{icon:l,className:P(ka,p?Ca:"")})})]})};const Ta="huVncZ_cd_BiHgGKvG2R",Sa="OhBh129QqaKYIl1RoRRQ",Oa="mpssuMH2mFjNpZnuMaOp";var za=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=e.className,i=void 0===t?"":t,c=e.level,o=void 0===c?1:c,s=ha(),u=P(Ta,"dropdown"===s&&1===o?Oa:Sa,i);return(0,A.jsx)("ul",{id:n,className:u,children:la.Children.map(r,function(e){return(0,la.isValidElement)(e)?(0,la.cloneElement)(e,{level:o}):e})})};const qa=require("react-router-dom"),Ba={"nav-item-wrapper":"DYcbVGvq2gOTbslQ9dtd","nav-item":"UuLDbzdBjeWuOYQrYFWC","nav-item-inline":"poOzQJfQ4Zwl1iu2RK31","nav-item-l1":"k4ofdETJ7Y_29z1Izk5N","nav-item-l2":"_dxePEO0GOkz4uV9ZCih","nav-item-l3":"dhQwjaox_1b3Ne2rtLUV","nav-item-collapsed":"bMDMJ1WsQxyWIruZxhk4","nav-item-active":"Ox3zdaZO80qbQ_tOnwAf","nav-item-icon":"FGmw5cM6XpFJK0IFEZA_","nav-item-icon-active":"oxRil4wKmzylOy_4besK","nav-item-label":"g6mZSnz_vDZHIPu7Lcn0","nav-item-label-collapsed":"EdGVseAHauIZaFqII1Oc","nav-item-chevron":"oUSWwp2gN16l9XDwC401","is-open":"f2sCWSYLCu5BcSoAQUfJ","nav-item-chevron-collapsed":"hq0Y1ntvELh0Hqs1kXut","nav-dropdown-panel":"YFeh0FaB0H6yto5JgjF6","nav-dropdown-below":"zrQ1EkV9gwCROBuciEk9","nav-dropdown-side":"zs65yT6zCjjFDszT1VGQ"};var La,Ea,Aa,Ia=function(e){var a=e.id,n=void 0===a?"":a,r=e.label,t=void 0===r?"":r,i=e.icon,c=e.children,o=e.className,s=void 0===o?"":o,u=e.active,l=void 0!==u&&u,d=e.to,m=e.href,v=e.onClick,h=e.defaultExpanded,p=void 0!==h&&h,f=e.level,y=void 0===f?1:f,b=ha(),g=ma().isExpanded,x=(0,la.useState)(p),N=x[0],j=x[1],k=!!c&&y<3,C=y+1,w="accordion"===b&&!g,T=l&&y>1,S=l&&1===y,O=P(Ba["nav-item-label"],w?Ba["nav-item-label-collapsed"]:""),z=P(Ba["nav-item"],"accordion"===b?Ba["nav-item-l".concat(y)]:Ba["nav-item-inline"],w?Ba["nav-item-collapsed"]:"",T?Ba["nav-item-active"]:"",s),q=function(e){k&&j(function(e){return!e}),v&&v(e)},B=(0,A.jsxs)(A.Fragment,{children:[i&&(0,A.jsx)(D,{icon:i,className:P(Ba["nav-item-icon"],S?Ba["nav-item-icon-active"]:"")}),t&&(0,A.jsx)("span",{className:O,children:t}),k&&(0,A.jsx)(D,{icon:I.flecha,className:P(Ba["nav-item-chevron"],w?Ba["nav-item-chevron-collapsed"]:"",N?Ba["is-open"]:"")})]}),L=d?(0,A.jsx)(qa.Link,{to:d,id:n,className:z,onClick:q,children:B}):m?(0,A.jsx)("a",{id:n,href:m,className:z,onClick:q,children:B}):(0,A.jsx)("button",{id:n,type:"button",className:z,onClick:q,children:B}),E=(0,la.isValidElement)(c)?(0,la.cloneElement)(c,{level:C}):c;return(0,A.jsxs)("li",{className:Ba["nav-item-wrapper"],onMouseEnter:"dropdown"===b&&k?function(){return j(!0)}:void 0,onMouseLeave:"dropdown"===b&&k?function(){return j(!1)}:void 0,children:[L,k&&N&&("accordion"===b?E:(0,A.jsx)("div",{className:P(Ba["nav-dropdown-panel"],1===y?Ba["nav-dropdown-below"]:Ba["nav-dropdown-side"]),children:E}))]})};!function(e){e.primary="primary"}(La||(La={})),function(e){e.primary="primary",e.dark="dark"}(Ea||(Ea={})),function(e){e.primary="primary"}(Aa||(Aa={}));var Pa=function(e){return e.theme===La.primary?ea:""},Da=function(e){switch(e.theme){case Ea.primary:return"";case Ea.dark:return ua;default:return""}},Ma=function(e){e.theme;return Aa.primary,""};const Ra="GXbNNfaRE3TyRdoGrwb7",Ga="JJlpwqbl4lBtQC3RnNnw",Va="YHIztbHCIlsXLL9Yn8ww",_a="KDNJqjBclhbRaDk4mBr6",Qa="EhYmjqYe_GtBncOd1xD9";var Ua=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Za.primary:t,c=e.name,o=e.value,s=e.label,u=e.checked,l=e.defaultChecked,d=e.disabled,m=void 0!==d&&d,v=e.onChange,h=void 0===v?function(){}:v,p=P(Ra,Ka({theme:i}),m?Qa:"",r);return(0,A.jsxs)("label",{className:p,children:[(0,A.jsx)("input",{id:a,className:Ga,type:"radio",name:c,value:o,checked:u,defaultChecked:l,disabled:m,onChange:h}),(0,A.jsx)("span",{className:Va,"aria-hidden":"true"}),s&&(0,A.jsx)("span",{className:_a,children:s})]})};const Ha="QBLrCrEV0gM6Kw5pF1St",Fa="RU1XYIJgTOpk_L6PLAhf";var Ja;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(Ja||(Ja={}));var Za,Ya=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Za.primary:t,c=e.name,o=e.options,s=void 0===o?[]:o,u=e.value,l=e.defaultValue,d=void 0===l?"":l,m=e.direction,v=void 0===m?Ja.vertical:m,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,la.useState)(d),g=b[0],x=b[1],N=void 0!==u?u:g,j=function(e){void 0===u&&x(e.target.value),y(e)},k=P(Ha,v===Ja.horizontal?Fa:"",r);return(0,A.jsx)("div",{id:a,role:"radiogroup",className:k,children:s.map(function(e){return(0,A.jsx)(Ua,{theme:i,name:c,value:e.value,label:e.label,checked:N===e.value,disabled:p||e.disabled,onChange:j},e.value)})})};!function(e){e.primary="primary"}(Za||(Za={}));var Ka=function(e){e.theme;return""};const Wa={"checkbox-label":"zjjHhR8Wrs1uEuvkvAET","checkbox-input":"jgDLO2lj8lIL4n2aUvd4","checkbox-box":"tBBM2Tox6G2Lc1HgNzpm","checkbox-check":"pwzoSwjqGtatjDWB8YwK","checkbox-dash":"tV_vzpZfKvHlPlIiWYQj","checkbox-disabled":"ntiFyXsULeH5Q21zjZaP"};var Xa=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?rn.primary:t,c=e.name,o=e.value,s=e.label,u=e.checked,l=e.defaultChecked,d=e.indeterminate,m=void 0!==d&&d,v=e.disabled,h=void 0!==v&&v,p=e.onChange,f=void 0===p?function(){}:p,y=(0,la.useRef)(null);(0,la.useEffect)(function(){y.current&&(y.current.indeterminate=m)},[m]);var b=P(Wa["checkbox-label"],cn({theme:i}),h?Wa["checkbox-disabled"]:"",r);return(0,A.jsxs)("label",{className:b,children:[(0,A.jsx)("input",{ref:y,id:a,className:Wa["checkbox-input"],type:"checkbox",name:c,value:o,checked:u,defaultChecked:l,disabled:h,onChange:f}),(0,A.jsxs)("span",{className:Wa["checkbox-box"],"aria-hidden":"true",children:[(0,A.jsx)(D,{className:Wa["checkbox-check"],icon:I.check}),(0,A.jsx)("span",{className:Wa["checkbox-dash"]})]}),s&&(0,A.jsx)("span",{className:Wa["checkbox-text"],children:s})]})};const $a="moROzwaINmGAqyCdeqUb",en="uGMTsBF__2RgYnA6S_ae";var an,nn=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))};!function(e){e.vertical="vertical",e.horizontal="horizontal"}(an||(an={}));var rn,tn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?rn.primary:t,c=e.name,o=e.options,s=void 0===o?[]:o,u=e.values,l=e.defaultValues,d=void 0===l?[]:l,m=e.direction,v=void 0===m?an.vertical:m,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,la.useState)(d),g=b[0],x=b[1],N=void 0!==u?u:g,j=P($a,v===an.horizontal?en:"",r);return(0,A.jsx)("div",{id:a,role:"group",className:j,children:s.map(function(e){return(0,A.jsx)(Xa,{theme:i,name:c,value:e.value,label:e.label,checked:N.includes(e.value),disabled:p||e.disabled,onChange:function(){return a=e.value,n=N.includes(a)?N.filter(function(e){return e!==a}):nn(nn([],N,!0),[a],!1),void 0===u&&x(n),void y(n);var a,n}},e.value)})})};!function(e){e.primary="primary"}(rn||(rn={}));var cn=function(e){e.theme;return""};const on="zegNFU1IXq2D0NAslGyj",sn="rGbn8Dr7CvRzb5aBaIm6",un="oHn7xu1kuT37RPqDSpc0",ln="VofOiaYafh2S6lqJD62h";var dn,mn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?dn.primary:t,c=e.checked,o=e.defaultChecked,s=void 0!==o&&o,u=e.label,l=e.children,d=void 0===l?"Activar":l,m=e.disabled,v=void 0!==m&&m,h=e.onChange,p=void 0===h?function(){}:h,f=(0,la.useState)(s),y=f[0],b=f[1],g=void 0!==c?c:y,x=P(un,vn({theme:i}),g?ln:"",r);return(0,A.jsxs)("span",{className:on,children:[u&&(0,A.jsx)("span",{className:sn,children:u}),(0,A.jsx)("button",{id:a,type:"button",role:"switch","aria-checked":g,disabled:v,className:x,onClick:function(){void 0===c&&b(!g),p(!g)},children:d})]})};!function(e){e.primary="primary"}(dn||(dn={}));var vn=function(e){e.theme;return""};const hn="kkj7ttLeFO1S4d8mM_Pn",pn="a_HuZeJ_oVLoqS7eukOK",fn="OluyRygiDnbSKaGwqvJW",yn="h4zm0kOhR9ZxkSdTB7GN",bn="pfLJgfyLJlYmzTol8bA5";var gn,xn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?gn.primary:t,c=e.value,o=e.defaultValue,s=e.placeholder,u=void 0===s?"":s,l=e.rows,d=void 0===l?4:l,m=e.autoResize,v=void 0!==m&&m,h=e.hardBorder,p=void 0!==h&&h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,g=void 0===b?function(){}:b,x=P(hn,Nn({theme:i}),p?yn:"",v?bn:"",r);return(0,A.jsx)("textarea",{id:a,className:x,value:c,defaultValue:o,placeholder:u,rows:d,disabled:y,onChange:function(e){v&&(e.currentTarget.style.height="auto",e.currentTarget.style.height="".concat(e.currentTarget.scrollHeight,"px")),g(e)}})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(gn||(gn={}));var Nn=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return pn;case"tertiary":return fn}};const jn="WihApGsGcC1E22NRG0P5",kn="fUrHs64HZzxc8wuJx0Sb",Cn="LXJF8zINUAOvCEJtkK8Q",wn="Wb8G9wRU_hGXsgxvtTI1",Tn="EkMWU0uN6UWfqy9bLsBt",Sn="jFyLmbuHrBcChK1PCUAW",On="toX_UmDpZNE2kruEXl8S",zn="H1zoebUk7LJVtn0H0Zu_",qn="i_2UnWCN655j4bednibQ",Bn="SITJboRY_HWw8TaUHpkS",Ln="c4nJQCuqPERLXusqZmTf",En="rVjFTHZ3d6gzTyGq1wOq",An="rLYHgyXqKJfVOrHCTUHr",In="_aOV8eUPNj11n_VY0NAB",Pn="gFuL19WEJXow8Pop913u",Dn="gdPP8CuH6BxL79m2ly8i",Mn="tm2CatA44Mbqd0CMaXp7",Rn="HfTjK7bgJmXNcDqfhL0J";var Gn,Vn=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))},_n=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Gn.primary:t,c=e.options,o=void 0===c?[]:c,s=e.multiple,u=void 0!==s&&s,l=e.value,d=e.defaultValue,m=void 0===d?"":d,v=e.values,h=e.defaultValues,p=void 0===h?[]:h,f=e.placeholder,y=void 0===f?"":f,b=e.searchable,g=void 0!==b&&b,x=e.icon,N=e.emptyMessage,j=void 0===N?"Sin resultados":N,k=e.hardBorder,C=void 0!==k&&k,w=e.disabled,T=void 0!==w&&w,S=e.onChange,O=void 0===S?function(){}:S,z=(0,la.useState)(!1),q=z[0],B=z[1],L=(0,la.useState)(""),E=L[0],M=L[1],R=(0,la.useState)(0),G=R[0],V=R[1],_=(0,la.useState)(m),Q=_[0],U=_[1],H=(0,la.useState)(p),F=H[0],J=H[1],Z=(0,la.useRef)(null),Y=(0,la.useRef)(null),K=(0,la.useId)(),W=void 0!==l?l:Q,X=void 0!==v?v:F,$=(u?o.filter(function(e){return X.includes(e.value)}):o.filter(function(e){return e.value===W})).map(function(e){return e.label}).join(", "),ee=g&&E?o.filter(function(e){return e.label.toLowerCase().includes(E.toLowerCase())}):o,ae=function(e){return u?X.includes(e.value):e.value===W};(0,la.useEffect)(function(){if(q){var e=function(e){Z.current&&!Z.current.contains(e.target)&&(B(!1),M(""))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[q]),(0,la.useEffect)(function(){var e;q&&g&&(null===(e=Y.current)||void 0===e||e.focus())},[q,g]);var ne=function(){T||(B(!0),V(0))},re=function(){B(!1),M("")},te=function(e){if(!e.disabled)if(u){var a=X.includes(e.value)?X.filter(function(a){return a!==e.value}):Vn(Vn([],X,!0),[e.value],!1);void 0===v&&J(a),O(a)}else void 0===l&&U(e.value),O(e.value),re()},ie=P(kn,Qn({theme:i}),C?Dn:"",T?Mn:"");return(0,A.jsxs)("div",{id:a,ref:Z,className:P(jn,r),children:[(0,A.jsxs)("div",{role:"combobox","aria-expanded":q,"aria-haspopup":"listbox","aria-controls":K,"aria-disabled":T,tabIndex:T?-1:0,className:ie,onClick:function(){return q?re():ne()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),q?V(function(e){return Math.min(e+1,ee.length-1)}):ne();break;case"ArrowUp":e.preventDefault(),V(function(e){return Math.max(e-1,0)});break;case"Enter":e.preventDefault(),q?ee[G]&&te(ee[G]):ne();break;case"Escape":re();break;case" ":q||g||(e.preventDefault(),ne())}},children:[x&&(0,A.jsx)(D,{className:Sn,icon:x}),g&&q?(0,A.jsx)("input",{ref:Y,className:Tn,value:E,placeholder:$||y,onChange:function(e){M(e.target.value),V(0)},onClick:function(e){return e.stopPropagation()}}):(0,A.jsx)("span",{className:P(Cn,$?"":wn),children:$||y}),(0,A.jsx)(D,{className:On,icon:I.chevronDown})]}),q&&(0,A.jsxs)("ul",{id:K,role:"listbox","aria-multiselectable":u,className:zn,children:[0===ee.length&&(0,A.jsx)("li",{className:Pn,children:j}),ee.map(function(e,a){return(0,A.jsxs)("li",{role:"option","aria-selected":ae(e),className:P(qn,a===G?Ln:"",ae(e)?En:"",e.disabled?In:""),onMouseEnter:function(){return V(a)},onClick:function(a){a.stopPropagation(),te(e)},children:[(0,A.jsx)("span",{className:Bn,children:e.label}),ae(e)&&(0,A.jsx)(D,{className:An,icon:I.check})]},e.value)})]})]})};!function(e){e.primary="primary",e.dark="dark"}(Gn||(Gn={}));var Qn=function(e){switch(e.theme){case"primary":default:return"";case"dark":return Rn}};const Un="HVj3aNmDW6tJTr0uageu",Hn="hW1Ev2Vff5FMrAuQdu5Q",Fn="ZI5_XWdK17MXXnYMh5O_",Jn="PhpcwVhP56ggFwiGvuAl",Zn="ndBtMO52dtAMHPla372a",Yn="YxneKx82bAQhUpOy8Adj",Kn="rEwN2ippBOfwtYrsL8xL",Wn="QGvk3ZseIqrsJEo4c5E8",Xn="cS9mLM8C2odtqKRL50qU";var $n,er=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?$n.primary:t,c=e.value,o=e.defaultValue,s=void 0===o?"":o,u=e.min,l=e.max,d=e.placeholder,m=void 0===d?"":d,v=e.icon,h=void 0===v?I.calendario:v,p=e.hardBorder,f=void 0!==p&&p,y=e.disabled,b=void 0!==y&&y,g=e.onChange,x=void 0===g?function(){}:g,N=(0,la.useRef)(null),j=(0,la.useState)(s),k=j[0],C=j[1],w=void 0!==c?c:k,T=P(Un,ar({theme:i}),f?Wn:"",b?Xn:"",r);return(0,A.jsxs)("div",{className:T,onClick:function(){var e,a,n;if(!b){null===(e=N.current)||void 0===e||e.focus();try{null===(n=null===(a=N.current)||void 0===a?void 0:a.showPicker)||void 0===n||n.call(a)}catch(e){}}},children:[(0,A.jsx)(D,{className:Hn,icon:h}),(0,A.jsxs)("span",{className:Fn,children:[(0,A.jsx)("input",{ref:N,id:a,className:P(Jn,!w&&m?Zn:""),type:"date",value:w,min:u,max:l,disabled:b,onChange:function(e){void 0===c&&C(e.target.value),x(e)}}),!w&&m&&(0,A.jsx)("span",{className:Yn,children:m})]}),(0,A.jsx)(D,{className:Kn,icon:I.chevronDown})]})};!function(e){e.primary="primary"}($n||($n={}));var ar=function(e){e.theme;return""};const nr="csTTdgNhhaKeM3WzlV5O",rr="WmmocI2yHIe8GUSg2X13",tr="Ztm3_ulDynd0uNXYEM9R",ir="ZUtlZ5rivCyTPAaLLX5w",cr="Eq1489yFWMUmM_u6vh9f",or="PMVJ8fczX7bKcOIU0fOL",sr="TIFdzexsUxA525Gdwpcb";var ur,lr,dr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?ur.primary:i,o=e.size,s=void 0===o?lr.md:o,u=e.src,l=e.alt,d=void 0===l?"":l,m=e.fallbackIcon,v=void 0===m?I.usuarioDentroApp:m,h=P(nr,mr({theme:c}),vr({size:s}),t);return(0,A.jsx)("span",{id:n,className:h,children:u?(0,A.jsx)("img",{className:rr,src:u,alt:d}):(0,A.jsx)(D,{className:tr,icon:v})})};!function(e){e.primary="primary"}(ur||(ur={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(lr||(lr={}));var mr=function(e){return e.theme===ur.primary?ir:""},vr=function(e){switch(e.size){case lr.sm:return cr;case lr.md:return or;case lr.lg:return sr;default:return""}};const hr="IWyEVo8NMrRjUWP04rfw",pr="CqnccCvEtLIl5USsaXlg",fr="YG349hVZasvp2jO4kPsA",yr="_CvqVXegZYiyGoajONPu",br="UUiupi6FttBIFLsTsP3g",gr="A0QVkfVJsx9sZLnPR6kv",xr="VkrlgKZfUw3mzJQ6C8p9";var Nr,jr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.variant,c=void 0===i?Nr.success:i,o=e.icon,s=e.children,u=P(hr,kr({variant:c}),t);return(0,A.jsxs)("span",{id:n,className:u,children:[o&&(0,A.jsx)(D,{className:pr,icon:o}),(0,A.jsx)("span",{className:fr,children:s})]})};!function(e){e.success="success",e.progress="progress",e.pending="pending",e.info="info"}(Nr||(Nr={}));var kr=function(e){switch(e.variant){case Nr.success:return yr;case Nr.progress:return br;case Nr.pending:return gr;case Nr.info:return xr;default:return""}};const Cr="XT6EGfuWYGIoJSqy05TJ",wr="UIk9FL7BDJpO9kTxs_Uw",Tr="lBgbjqELas7qzyxa17Gg",Sr="KAT9D73UpzE9tm2yc2Tz",Or="K1sgv7WJBtYs1CrvdSgv",zr="It7juqSa974gPQ1ECS7P",qr="xqzhTvRpnACwBTzGmCFd",Br="aYo2q4_DqNJ5Yl0NQB9t",Lr="bTytWyysO56yZTSSf5LT";var Er,Ar=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Er.primary:i,o=e.icon,s=e.label,u=P(Cr,t),l=P(wr,Ir({theme:c}));return(0,A.jsxs)("span",{id:n,className:u,children:[(0,A.jsx)("span",{className:l,children:(0,A.jsx)(D,{className:Tr,icon:o})}),s&&(0,A.jsx)("span",{className:Sr,children:s})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary"}(Er||(Er={}));var Ir=function(e){switch(e.theme){case Er.primary:return Or;case Er.secondary:return zr;case Er.tertiary:return qr;case Er.quaternary:return Br;case Er.quinary:return Lr;default:return""}};const Pr="MBywYK0SgL4lTZV_77nW",Dr="j8IeW9LCX93pCcFNrNdY",Mr="YBLMvqC9pz7R4bSGdeh6",Rr="aWScMBie4dNuQWeWzk94",Gr="vpvm_c6Fwnhmhnve66Of",Vr="E11UJFYJUt38tQ_rmIFl",_r="l5moywrOYUj3JR58GJ3Q",Qr="VUVz_XqUxME6E3pS7NEm",Ur="yBxzIsU4VisEdoiz2GnA",Hr="SHOkFcwsH5L4yMMkYR30",Fr="v4frrN_DRHohQdZjJiVA";var Jr,Zr,Yr,Kr,Wr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,c=e.ariaLabel,o=e.theme,s=void 0===o?Jr.primary:o,u=e.size,l=void 0===u?Zr.md:u,d=e.shape,m=void 0===d?Yr.circle:d,v=e.disabled,h=void 0!==v&&v,p=e.type,f=void 0===p?Kr.button:p,y=e.onClick,b=P(Pr,Xr({theme:s}),$r({size:l}),et({shape:m}),t);return(0,A.jsx)("button",{id:n,className:b,type:f,"aria-label":c,disabled:h,onClick:y,children:(0,A.jsx)(D,{className:Dr,icon:i})})};!function(e){e.primary="primary",e.secondary="secondary",e.outline="outline",e.ghost="ghost"}(Jr||(Jr={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(Zr||(Zr={})),function(e){e.circle="circle",e.square="square"}(Yr||(Yr={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Kr||(Kr={}));var Xr=function(e){switch(e.theme){case Jr.primary:return Qr;case Jr.secondary:return Ur;case Jr.outline:return Hr;case Jr.ghost:return Fr;default:return""}},$r=function(e){switch(e.size){case Zr.sm:return Gr;case Zr.md:return Vr;case Zr.lg:return _r;default:return""}},et=function(e){switch(e.shape){case Yr.circle:return Mr;case Yr.square:return Rr;default:return""}};const at="ta7Gh0oux0JTjsuKbz67",nt="KZtf6l8cQuhmNelFlruw",rt="Ofk0fCFamMeiTdjTIFee";var tt,it=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?tt.primary:i,o=e.to,s=e.href,u=e.target,l=e.children,d=e.onClick,m=P(at,ct({theme:c}),t);return o?(0,A.jsx)(qa.Link,{to:o,id:n,className:m,onClick:d,children:l}):s?(0,A.jsx)("a",{id:n,href:s,target:u,className:m,onClick:d,children:l}):(0,A.jsx)("button",{id:n,type:"button",className:m,onClick:d,children:l})};!function(e){e.primary="primary",e.muted="muted"}(tt||(tt={}));var ct=function(e){switch(e.theme){case tt.primary:return nt;case tt.muted:return rt;default:return""}};const ot="NVSkcMXjGBloaxcmkInt",st="mabEcjJJijuiIgVk79DH",ut="IyemsZ0IYvI3nuNOXkvX",lt="Dqhex8Evhb4AAc9Xkvo5",dt="N5bqz6Zxbi50Vhek2ylV",mt="a2NsnBpqeBMKcuZP7okt",vt="ElABlLAgZYeancITzEhQ",ht="B_mWTdrLaXzyri3tKAWA",pt="UuPlwVneHDPTMC1UZW6G",ft="cRoCcl6LJW501_zUJ2_G",yt="co6gq0z96SbIsuyd9xp_";var bt,gt,xt=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?bt.primary:i,o=e.size,s=void 0===o?gt.md:o,u=e.value,l=e.defaultValue,d=void 0===l?0:l,m=e.max,v=void 0===m?5:m,h=e.readOnly,p=void 0===h||h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,g=void 0===b?function(){}:b,x=(0,la.useState)(d),N=x[0],j=x[1],k=void 0!==u?u:N,C=!p&&!y,w=function(e){C&&(void 0===u&&j(e),g(e))},T=P(ot,Nt({theme:c}),jt({size:s}),C?st:"",t),S=Array.from({length:v},function(e,a){var n=100*Math.max(0,Math.min(1,k-a));return(0,A.jsxs)("span",{className:ut,children:[(0,A.jsx)(D,{className:lt,icon:I.star}),(0,A.jsx)("span",{className:dt,style:{width:"".concat(n,"%")},children:(0,A.jsx)(D,{className:mt,icon:I.star})}),C&&(0,A.jsx)("button",{type:"button",className:vt,"aria-label":"".concat(a+1),onClick:function(){return w(a+1)}})]},a)});return(0,A.jsx)("span",{id:n,className:T,role:C?"slider":"img","aria-label":"".concat(k," / ").concat(v),"aria-valuenow":C?k:void 0,"aria-valuemin":C?0:void 0,"aria-valuemax":C?v:void 0,tabIndex:C?0:void 0,onKeyDown:function(e){C&&("ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),w(Math.min(v,k+1))):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),w(Math.max(0,k-1))))},children:S})};!function(e){e.primary="primary"}(bt||(bt={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(gt||(gt={}));var Nt=function(e){return e.theme===bt.primary?ht:""},jt=function(e){switch(e.size){case gt.sm:return pt;case gt.md:return ft;case gt.lg:return yt;default:return""}};return a})());
|
|
1
|
+
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["ui-library"]=a():e["ui-library"]=a()}(this,()=>(()=>{"use strict";var e={d:(a,n)=>{for(var r in n)e.o(n,r)&&!e.o(a,r)&&Object.defineProperty(a,r,{enumerable:!0,get:n[r]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};e.r(a),e.d(a,{Avatar:()=>pr,AvatarSizes:()=>hr,AvatarThemes:()=>vr,Badge:()=>Tr,BadgeVariants:()=>Cr,BorderCard:()=>Je,Button:()=>qe,ButtonThemes:()=>Be,ButtonTypes:()=>Oe,Calendar:()=>oc,CalendarThemes:()=>rc,Card:()=>Ke,CardThemes:()=>Ye,Carousel:()=>li,CarouselThemes:()=>si,Checkbox:()=>nn,CheckboxGroup:()=>ln,CheckboxGroupDirections:()=>cn,CheckboxThemes:()=>sn,DatePicker:()=>tr,DatePickerThemes:()=>rr,DropdownMenu:()=>Ti,DropdownMenuAligns:()=>Ci,DropdownMenuThemes:()=>ki,EventCard:()=>ec,EventCardVariants:()=>$i,Icon:()=>P,IconButton:()=>nt,IconButtonShapes:()=>et,IconButtonSizes:()=>$r,IconButtonThemes:()=>Zr,IconButtonTypes:()=>at,IconNames:()=>V,Input:()=>aa,InputThemes:()=>ea,LeftNavbar:()=>Aa,LeftNavbarThemes:()=>Ia,Link:()=>dt,LinkThemes:()=>lt,NavItem:()=>Pa,NavList:()=>La,NavMenuContext:()=>ya,Navbar:()=>xa,NavbarContext:()=>pa,NavbarThemes:()=>qa,Radio:()=>Ya,RadioGroup:()=>$a,RadioGroupDirections:()=>Xa,RadioThemes:()=>Za,Rating:()=>Ct,RatingSizes:()=>kt,RatingThemes:()=>wt,RouteCard:()=>Qi,RouteCardThemes:()=>Ri,Select:()=>Un,SelectThemes:()=>Fn,SelectableTile:()=>Ft,SelectableTileGroup:()=>Kt,SelectableTileGroupDirections:()=>Wt,SelectableTileThemes:()=>Jt,Table:()=>Vt,TableThemes:()=>qt,Tabs:()=>Vi,TabsVariants:()=>qi,Tag:()=>Ir,TagThemes:()=>Vr,Textarea:()=>kn,TextareaThemes:()=>wn,Toggle:()=>fn,ToggleThemes:()=>pn,TopNavbar:()=>ga,TopNavbarThemes:()=>Va,getAvatarSizeClass:()=>yr,getAvatarThemeClass:()=>fr,getBadgeVariantClass:()=>Sr,getBorderCard:()=>Ze,getButtonThemeClass:()=>Ve,getCalendarThemeClass:()=>sc,getCardThemeClass:()=>Xe,getCarouselThemeClass:()=>di,getCheckboxThemeClass:()=>dn,getDatePickerThemeClass:()=>ir,getDropdownMenuThemeClass:()=>Si,getEventCardColor:()=>ac,getIconButtonShapeClass:()=>it,getIconButtonSizeClass:()=>tt,getIconButtonThemeClass:()=>rt,getIconClass:()=>ge,getInputThemeClass:()=>na,getLeftNavbarThemeClass:()=>Ga,getLinkThemeClass:()=>ut,getNavbarThemeClass:()=>Ra,getRadioThemeClass:()=>en,getRatingSizeClass:()=>St,getRatingThemeClass:()=>Tt,getRouteCardThemeClass:()=>Gi,getSelectThemeClass:()=>Wn,getSelectableTileThemeClass:()=>Xt,getTableThemeClass:()=>It,getTabsVariantClass:()=>Ii,getTagThemeClass:()=>Pr,getTextareaThemeClass:()=>Cn,getToggleThemeClass:()=>yn,getTopNavbarThemeClass:()=>Qa,useNavMenu:()=>ba,useNavbar:()=>fa});const n="namBd2yDO5uRnuiJiF4I",r="IezAhh3IOxZrbRaPnSuX",t="peAKuLVAiIXSFB_8weUX",i="fX0XkPg_VOwlCS_puohG",c="uRh5AMB7fHGMjymlSkIe",o="A61ABO8IXKvkyJ2iRq6l",s="nYNZP8pJf0SUq0ZPndyE",l="OOr9vC74FozQAPLK3TBF",d="jtiHB4J2Gd75DxgbExDU",u="htFKNG_lNNMADoynscvf",m="b41eXc_YG54TSjVcPdr3",v="iDCPPzPmlHXmY6DeRlrz",h="qSKheV1seun_M2zooNYG",p="neFnz7mqfjyob2IpBRAB",f="fMuDGJLmZu10m_5wuQwH",y="W1_8p2A4KoAru1W3fQQt",b="tm0XixvT9lg82S8vBQ7H",x="s4WqNjDDGgeMddVjGC39",g="bedJB1k7F24TZZ14mvGS",j="PgNn5YrHhpkkzKgbQGHw",N="g7BsZUvE5UmvGR7yux1n",w="oCPQLbmQjjlb4QfF6N3z",k="wfd2_xlEdwPwYkBjBxw8",C="H9Qtv2_WsMQSr3eiIzoj",T="w1jjKytmOVrGE_OOWN24",S="wxOwGgByggkSrx_yH1Mm",M="jyv2Pn76yjv7yHzme6Vi",A="l_u5YpNTZO_QLR2ODTsM",z="D3lpa3rGkDORSZEMO4Pu",D="ptOAordfG6nUqt1RGPGD",E="tcijTEF2DcjdTgUYgwm_",L="odUpHd2U2lDHRINyeow1",B="Sb74MmtzlQ4r_auGli10",O="iRPlBCtkk8OZ1fVrK6Ac",q=require("react/jsx-runtime");var V,I=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return e.filter(function(e){return e}).join(" ")},P=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,c=I(i?ge({icon:i}):"",t);return(0,q.jsx)("span",{id:n,className:c})},R=n,Q=N,G=j,_=v,F=u,H=d,U=i,W=r,Y=M,J=o,K=p,X=m,Z=x,$=b,ee=B,ae=S,ne=g,re=T,te=h,ie=z,ce=A,oe=D,se=E,le=c,de=w,ue=y,me=t,ve=O,he=f,pe=l,fe=s,ye=L,be=C,xe=k;!function(e){e.perfil="perfil",e.password="password",e.google="google",e.facebook="facebook",e.dashboard="dashboard",e.calendario="calendario",e.administracionDeUsuario="administracionDeUsuario",e.rutas="rutas",e.chat="chat",e.informes="informes",e.flecha="flecha",e.nuevaRuta="nuevaRuta",e.notificacion="notificacion",e.usuarioDentroApp="usuarioDentroApp",e.rutaNueva="rutaNueva",e.nuevaRuta2="nuevaRuta2",e.rutaCompletada="rutaCompletada",e.hoy="hoy",e.rutasProgramadas="rutasProgramadas",e.rutasEliminadas="rutasEliminadas",e.rutasReprogramadas="rutasReprogramadas",e.search="search",e.camion="camion",e.pickup="pickup",e.motocicleta="motocicleta",e.barco="barco",e.varios="varios",e.menu="menu",e.chevronDown="chevronDown",e.check="check",e.star="star",e.reloj="reloj",e.pin="pin"}(V||(V={}));var ge=function(e){switch(e.icon){case"perfil":return"".concat(R," ").concat(Q);case"password":return"".concat(R," ").concat(G);case"google":return"".concat(R," ").concat(_);case"facebook":return"".concat(R," ").concat(F);case"dashboard":return"".concat(R," ").concat(H);case"calendario":return"".concat(R," ").concat(U);case"administracionDeUsuario":return"".concat(R," ").concat(W);case"rutas":return"".concat(R," ").concat(Y);case"chat":return"".concat(R," ").concat(J);case"informes":return"".concat(R," ").concat(K);case"flecha":return"".concat(R," ").concat(X);case"nuevaRuta":return"".concat(R," ").concat(Z);case"notificacion":return"".concat(R," ").concat($);case"usuarioDentroApp":return"".concat(R," ").concat(ee);case"rutaNueva":return"".concat(R," ").concat(ae);case"nuevaRuta2":return"".concat(R," ").concat(ne);case"rutaCompletada":return"".concat(R," ").concat(re);case"hoy":return"".concat(R," ").concat(te);case"rutasProgramadas":return"".concat(R," ").concat(ie);case"rutasEliminadas":return"".concat(R," ").concat(ce);case"rutasReprogramadas":return"".concat(R," ").concat(oe);case"search":return"".concat(R," ").concat(se);case"camion":return"".concat(R," ").concat(le);case"pickup":return"".concat(R," ").concat(de);case"motocicleta":return"".concat(R," ").concat(ue);case"barco":return"".concat(R," ").concat(me);case"varios":return"".concat(R," ").concat(ve);case"menu":return"".concat(R," ").concat(he);case"chevronDown":return"".concat(R," ").concat(pe);case"check":return"".concat(R," ").concat(fe);case"star":return"".concat(R," ").concat(ye);case"reloj":return"".concat(R," ").concat(be);case"pin":return"".concat(R," ").concat(xe);default:return""}};const je="UxC2t97LIIISx7e71_3R",Ne="JJF9nOwFrn4f4Agjebcs",we="cwK5avZb5ShuVPiPWB8Q",ke="CFpiqnX4jq_EltxkwEvy",Ce="yjB0ArEAyeYU6_u7zKsQ",Te="Djr8Yh2IQcUcgjSZ_WQ5",Se="uyBaWoSnHEIxM4x7jgQw",Me="qWYltwKufw7ZliVlCT9g",Ae="oQRCOHaGpuh207HQzerc",ze="HtF5k4mwsNW1v9YG7qd2",De="Pg7VF5nFKczFtA3r5E88",Ee="wXyKJ8kY_42bOcyetwnC",Le="dLCzLEcc0jSLJgsTyHoM";var Be,Oe,qe=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Be.primary:o,l=e.hardBorder,d=void 0===l||l,u=e.type,m=void 0===u?Oe.button:u,v=e.onClick,h=I(je,Ve({theme:s}),d?Ne:we,c);return(0,q.jsx)("button",{id:n,className:h,type:m,onClick:v,children:t})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary",e.primaryOutline="primaryOutline",e.secondaryOutline="secondaryOutline",e.tertiaryOutline="tertiaryOutline",e.quaternaryOutline="quaternaryOutline",e.quinaryOutline="quinaryOutline"}(Be||(Be={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Oe||(Oe={}));var Ve=function(e){switch(e.theme){case Be.primary:return ke;case Be.secondary:return Ce;case Be.tertiary:return Te;case Be.quaternary:return Se;case Be.quinary:return Me;case Be.primaryOutline:return Ae;case Be.secondaryOutline:return ze;case Be.tertiaryOutline:return De;case Be.quaternaryOutline:return Ee;case Be.quinaryOutline:return Le;default:return""}};const Ie="pAD4BifhMTLUZvCJxyOx",Pe="a2VHzo7AbMVmPMGC3mSx",Re="W0VuH9q0UPwsyVsTQQJe",Qe="SIPeMNZqcOWCkESf4cPg",Ge="hPcmh2SHmHeXnUxGP93s",_e="DcZJoe6Kl4lnV3k4i7nV",Fe="LH35do5a6HPSjPusBT_z",He="juXoWoLQrRgOgzapK6H9",Ue="tPCdlPqN6fB69GmnQ181",We="nsb5sNsicCrkfBe9SIFs";var Ye,Je,Ke=function(e){var a=e.children,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Ye.primary:i,o=e.border,s=void 0===o?Je.soft:o,l=e.title,d=I(Ie,Xe({theme:c}),Ze({border:s}),t);return(0,q.jsxs)("div",{className:d,children:[l&&(0,q.jsx)("div",{className:Pe,children:(0,q.jsx)("h5",{className:Qe,children:l})}),(0,q.jsx)("div",{className:Re,children:n})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(Ye||(Ye={})),function(e){e.soft="soft",e.hard="hard"}(Je||(Je={}));var Xe=function(e){switch(e.theme){case"primary":return Fe;case"secondary":return He;case"tertiary":return Ue;case"quaternary":return We;default:return""}},Ze=function(e){switch(e.border){case"soft":return Ge;case"hard":return _e;default:return""}};const $e={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var ea,aa=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.type,c=void 0===i?"text":i,o=e.theme,s=void 0===o?ea.primary:o,l=e.placeholder,d=void 0===l?"":l,u=e.hardBorder,m=void 0!==u&&u,v=e.icon,h=e.onChange,p=void 0===h?function(){}:h,f=I($e["input-common"],na({theme:s}),m?$e["input-border-hard"]:"",t,v?$e["input-with-icon"]:"");return(0,q.jsxs)("div",{className:$e.relative,children:[(0,q.jsx)("input",{id:n,className:f,placeholder:d,type:c,onChange:p}),v&&(0,q.jsx)(P,{className:$e["icon-input"],icon:v})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(ea||(ea={}));var na=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return $e["input-secondary"];case"tertiary":return $e["input-tertiary"]}};const ra="FnQHiSW9NTFa3WlXGoCc",ta="NatMJzDzTApsQaVDAagx",ia="qY4Y2bWaIDQFsSw6KaT5",ca="zguwwN6hze6uapnqp5Ni",oa="ko1cAltyF24Od59He2SS",sa="kpCx3tGL8Ty2NT_5o1mJ",la="F6hI7ZfLokc9h5jkh6IL",da="qlSGENr4s2AUMMLzL8AR",ua="RY7dvVQ6fbBnjtgy0igh",ma="OpF1ocsD_5dn_993DhqT",va="FSuEOctgnc2BHuB5nXoQ",ha=require("react");var pa=(0,ha.createContext)(void 0),fa=function(){var e;return null!==(e=(0,ha.useContext)(pa))&&void 0!==e?e:{isOpen:!1,toggle:function(){},setOpen:function(){},isExpanded:!1,toggleExpanded:function(){},isMobile:!1}},ya=(0,ha.createContext)("accordion"),ba=function(){return(0,ha.useContext)(ya)},xa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?qa.primary:o,l=e.defaultOpen,d=void 0!==l&&l,u=e.defaultExpanded,m=void 0!==u&&u,v=(0,ha.useState)(d),h=v[0],p=v[1],f=(0,ha.useState)(m),y=f[0],b=f[1],x=(0,ha.useState)(!1),g=x[0],j=x[1];(0,ha.useEffect)(function(){if("undefined"!=typeof window&&window.matchMedia){var e=window.matchMedia("(max-width: 767px)"),a=function(){return j(e.matches)};return a(),e.addEventListener?(e.addEventListener("change",a),function(){return e.removeEventListener("change",a)}):(e.addListener(a),function(){return e.removeListener(a)})}},[]),(0,ha.useEffect)(function(){if("undefined"!=typeof document){var e=document.documentElement;return e.style.setProperty("--ro-ut-sidebar-width",g?"0px":y?"24rem":"6rem"),e.style.setProperty("--ro-ut-topbar-height",g?"0px":"101px"),function(){e.style.removeProperty("--ro-ut-sidebar-width"),e.style.removeProperty("--ro-ut-topbar-height")}}},[g,y]);var N=(0,ha.useCallback)(function(){return p(function(e){return!e})},[]),w=(0,ha.useCallback)(function(e){return p(e)},[]),k=(0,ha.useCallback)(function(){return b(function(e){return!e})},[]),C={isOpen:h,toggle:N,setOpen:w,isExpanded:y,toggleExpanded:k,isMobile:g},T=I(ra,Ra({theme:s}),c);return(0,q.jsx)(pa.Provider,{value:C,children:(0,q.jsx)("nav",{id:n,className:T,children:t})})},ga=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Va.primary:o,l=e.brand,d=e.actions,u=e.menuIcon,m=void 0===u?V.menu:u,v=e.hideMenuToggle,h=void 0!==v&&v,p=fa(),f=p.isOpen,y=p.toggle,b=p.isMobile?"accordion":"dropdown",x=I(ia,Qa({theme:s}),c),g=I(la,f?da:ua);return(0,q.jsxs)("header",{id:n,className:x,children:[(0,q.jsxs)("div",{className:ca,children:[l&&(0,q.jsx)("div",{className:sa,children:l}),!h&&(0,q.jsx)("button",{type:"button","aria-label":"Toggle menu",className:oa,onClick:y,children:(0,q.jsx)(P,{icon:m})})]}),(0,q.jsx)(ya.Provider,{value:b,children:(0,q.jsx)("div",{className:g,children:t})}),d&&(0,q.jsx)("div",{className:ma,children:d})]})};const ja="lB8REa7QbS00_HY39qlv",Na="sSfHpXGaWQJlKsMHHaNz",wa="KUAQgA5jKT0cpt4YT9My",ka="VHv_24fnWV6U7utpmyOv",Ca="xz7mio21qHuZpdmkS_Ql",Ta="mecTZPfsBQEB8_dRnBQz",Sa="B9dyOyj_V1ejlMhgfn9g",Ma="ZddvyvLdn43wm9cl0jwZ";var Aa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Ia.primary:o,l=e.pinToggleIcon,d=void 0===l?V.flecha:l,u=e.hidePinToggle,m=void 0!==u&&u,v=fa(),h=v.isOpen,p=v.isExpanded,f=v.toggleExpanded,y=I(ja,h?Na:wa,p?Ca:ka,Ga({theme:s}),c);return(0,q.jsxs)("aside",{id:n,className:y,children:[(0,q.jsx)(ya.Provider,{value:"accordion",children:t}),!m&&(0,q.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:Ta,onClick:f,children:(0,q.jsx)(P,{icon:d,className:I(Sa,p?Ma:"")})})]})};const za="huVncZ_cd_BiHgGKvG2R",Da="OhBh129QqaKYIl1RoRRQ",Ea="mpssuMH2mFjNpZnuMaOp";var La=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=e.className,i=void 0===t?"":t,c=e.level,o=void 0===c?1:c,s=ba(),l=I(za,"dropdown"===s&&1===o?Ea:Da,i);return(0,q.jsx)("ul",{id:n,className:l,children:ha.Children.map(r,function(e){return(0,ha.isValidElement)(e)?(0,ha.cloneElement)(e,{level:o}):e})})};const Ba=require("react-router-dom"),Oa={"nav-item-wrapper":"DYcbVGvq2gOTbslQ9dtd","nav-item":"UuLDbzdBjeWuOYQrYFWC","nav-item-inline":"poOzQJfQ4Zwl1iu2RK31","nav-item-l1":"k4ofdETJ7Y_29z1Izk5N","nav-item-l2":"_dxePEO0GOkz4uV9ZCih","nav-item-l3":"dhQwjaox_1b3Ne2rtLUV","nav-item-collapsed":"bMDMJ1WsQxyWIruZxhk4","nav-item-active":"Ox3zdaZO80qbQ_tOnwAf","nav-item-icon":"FGmw5cM6XpFJK0IFEZA_","nav-item-icon-active":"oxRil4wKmzylOy_4besK","nav-item-label":"g6mZSnz_vDZHIPu7Lcn0","nav-item-label-collapsed":"EdGVseAHauIZaFqII1Oc","nav-item-chevron":"oUSWwp2gN16l9XDwC401","is-open":"f2sCWSYLCu5BcSoAQUfJ","nav-item-chevron-collapsed":"hq0Y1ntvELh0Hqs1kXut","nav-dropdown-panel":"YFeh0FaB0H6yto5JgjF6","nav-dropdown-below":"zrQ1EkV9gwCROBuciEk9","nav-dropdown-side":"zs65yT6zCjjFDszT1VGQ"};var qa,Va,Ia,Pa=function(e){var a=e.id,n=void 0===a?"":a,r=e.label,t=void 0===r?"":r,i=e.icon,c=e.children,o=e.className,s=void 0===o?"":o,l=e.active,d=void 0!==l&&l,u=e.to,m=e.href,v=e.onClick,h=e.defaultExpanded,p=void 0!==h&&h,f=e.level,y=void 0===f?1:f,b=ba(),x=fa().isExpanded,g=(0,ha.useState)(p),j=g[0],N=g[1],w=!!c&&y<3,k=y+1,C="accordion"===b&&!x,T=d&&y>1,S=d&&1===y,M=I(Oa["nav-item-label"],C?Oa["nav-item-label-collapsed"]:""),A=I(Oa["nav-item"],"accordion"===b?Oa["nav-item-l".concat(y)]:Oa["nav-item-inline"],C?Oa["nav-item-collapsed"]:"",T?Oa["nav-item-active"]:"",s),z=function(e){w&&N(function(e){return!e}),v&&v(e)},D=(0,q.jsxs)(q.Fragment,{children:[i&&(0,q.jsx)(P,{icon:i,className:I(Oa["nav-item-icon"],S?Oa["nav-item-icon-active"]:"")}),t&&(0,q.jsx)("span",{className:M,children:t}),w&&(0,q.jsx)(P,{icon:V.flecha,className:I(Oa["nav-item-chevron"],C?Oa["nav-item-chevron-collapsed"]:"",j?Oa["is-open"]:"")})]}),E=u?(0,q.jsx)(Ba.Link,{to:u,id:n,className:A,onClick:z,children:D}):m?(0,q.jsx)("a",{id:n,href:m,className:A,onClick:z,children:D}):(0,q.jsx)("button",{id:n,type:"button",className:A,onClick:z,children:D}),L=(0,ha.isValidElement)(c)?(0,ha.cloneElement)(c,{level:k}):c;return(0,q.jsxs)("li",{className:Oa["nav-item-wrapper"],onMouseEnter:"dropdown"===b&&w?function(){return N(!0)}:void 0,onMouseLeave:"dropdown"===b&&w?function(){return N(!1)}:void 0,children:[E,w&&j&&("accordion"===b?L:(0,q.jsx)("div",{className:I(Oa["nav-dropdown-panel"],1===y?Oa["nav-dropdown-below"]:Oa["nav-dropdown-side"]),children:L}))]})};!function(e){e.primary="primary"}(qa||(qa={})),function(e){e.primary="primary",e.dark="dark"}(Va||(Va={})),function(e){e.primary="primary"}(Ia||(Ia={}));var Ra=function(e){return e.theme===qa.primary?ta:""},Qa=function(e){switch(e.theme){case Va.primary:return"";case Va.dark:return va;default:return""}},Ga=function(e){e.theme;return Ia.primary,""};const _a="GXbNNfaRE3TyRdoGrwb7",Fa="JJlpwqbl4lBtQC3RnNnw",Ha="YHIztbHCIlsXLL9Yn8ww",Ua="KDNJqjBclhbRaDk4mBr6",Wa="EhYmjqYe_GtBncOd1xD9";var Ya=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Za.primary:t,c=e.name,o=e.value,s=e.label,l=e.checked,d=e.defaultChecked,u=e.disabled,m=void 0!==u&&u,v=e.onChange,h=void 0===v?function(){}:v,p=I(_a,en({theme:i}),m?Wa:"",r);return(0,q.jsxs)("label",{className:p,children:[(0,q.jsx)("input",{id:a,className:Fa,type:"radio",name:c,value:o,checked:l,defaultChecked:d,disabled:m,onChange:h}),(0,q.jsx)("span",{className:Ha,"aria-hidden":"true"}),s&&(0,q.jsx)("span",{className:Ua,children:s})]})};const Ja="QBLrCrEV0gM6Kw5pF1St",Ka="RU1XYIJgTOpk_L6PLAhf";var Xa;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(Xa||(Xa={}));var Za,$a=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Za.primary:t,c=e.name,o=e.options,s=void 0===o?[]:o,l=e.value,d=e.defaultValue,u=void 0===d?"":d,m=e.direction,v=void 0===m?Xa.vertical:m,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,ha.useState)(u),x=b[0],g=b[1],j=void 0!==l?l:x,N=function(e){void 0===l&&g(e.target.value),y(e)},w=I(Ja,v===Xa.horizontal?Ka:"",r);return(0,q.jsx)("div",{id:a,role:"radiogroup",className:w,children:s.map(function(e){return(0,q.jsx)(Ya,{theme:i,name:c,value:e.value,label:e.label,checked:j===e.value,disabled:p||e.disabled,onChange:N},e.value)})})};!function(e){e.primary="primary"}(Za||(Za={}));var en=function(e){e.theme;return""};const an={"checkbox-label":"zjjHhR8Wrs1uEuvkvAET","checkbox-input":"jgDLO2lj8lIL4n2aUvd4","checkbox-box":"tBBM2Tox6G2Lc1HgNzpm","checkbox-check":"pwzoSwjqGtatjDWB8YwK","checkbox-dash":"tV_vzpZfKvHlPlIiWYQj","checkbox-disabled":"ntiFyXsULeH5Q21zjZaP"};var nn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?sn.primary:t,c=e.name,o=e.value,s=e.label,l=e.checked,d=e.defaultChecked,u=e.indeterminate,m=void 0!==u&&u,v=e.disabled,h=void 0!==v&&v,p=e.onChange,f=void 0===p?function(){}:p,y=(0,ha.useRef)(null);(0,ha.useEffect)(function(){y.current&&(y.current.indeterminate=m)},[m]);var b=I(an["checkbox-label"],dn({theme:i}),h?an["checkbox-disabled"]:"",r);return(0,q.jsxs)("label",{className:b,children:[(0,q.jsx)("input",{ref:y,id:a,className:an["checkbox-input"],type:"checkbox",name:c,value:o,checked:l,defaultChecked:d,disabled:h,onChange:f}),(0,q.jsxs)("span",{className:an["checkbox-box"],"aria-hidden":"true",children:[(0,q.jsx)(P,{className:an["checkbox-check"],icon:V.check}),(0,q.jsx)("span",{className:an["checkbox-dash"]})]}),s&&(0,q.jsx)("span",{className:an["checkbox-text"],children:s})]})};const rn="moROzwaINmGAqyCdeqUb",tn="uGMTsBF__2RgYnA6S_ae";var cn,on=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))};!function(e){e.vertical="vertical",e.horizontal="horizontal"}(cn||(cn={}));var sn,ln=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?sn.primary:t,c=e.name,o=e.options,s=void 0===o?[]:o,l=e.values,d=e.defaultValues,u=void 0===d?[]:d,m=e.direction,v=void 0===m?cn.vertical:m,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,ha.useState)(u),x=b[0],g=b[1],j=void 0!==l?l:x,N=I(rn,v===cn.horizontal?tn:"",r);return(0,q.jsx)("div",{id:a,role:"group",className:N,children:s.map(function(e){return(0,q.jsx)(nn,{theme:i,name:c,value:e.value,label:e.label,checked:j.includes(e.value),disabled:p||e.disabled,onChange:function(){return a=e.value,n=j.includes(a)?j.filter(function(e){return e!==a}):on(on([],j,!0),[a],!1),void 0===l&&g(n),void y(n);var a,n}},e.value)})})};!function(e){e.primary="primary"}(sn||(sn={}));var dn=function(e){e.theme;return""};const un="zegNFU1IXq2D0NAslGyj",mn="rGbn8Dr7CvRzb5aBaIm6",vn="oHn7xu1kuT37RPqDSpc0",hn="VofOiaYafh2S6lqJD62h";var pn,fn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?pn.primary:t,c=e.checked,o=e.defaultChecked,s=void 0!==o&&o,l=e.label,d=e.children,u=void 0===d?"Activar":d,m=e.disabled,v=void 0!==m&&m,h=e.onChange,p=void 0===h?function(){}:h,f=(0,ha.useState)(s),y=f[0],b=f[1],x=void 0!==c?c:y,g=I(vn,yn({theme:i}),x?hn:"",r);return(0,q.jsxs)("span",{className:un,children:[l&&(0,q.jsx)("span",{className:mn,children:l}),(0,q.jsx)("button",{id:a,type:"button",role:"switch","aria-checked":x,disabled:v,className:g,onClick:function(){void 0===c&&b(!x),p(!x)},children:u})]})};!function(e){e.primary="primary"}(pn||(pn={}));var yn=function(e){e.theme;return""};const bn="kkj7ttLeFO1S4d8mM_Pn",xn="a_HuZeJ_oVLoqS7eukOK",gn="OluyRygiDnbSKaGwqvJW",jn="h4zm0kOhR9ZxkSdTB7GN",Nn="pfLJgfyLJlYmzTol8bA5";var wn,kn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?wn.primary:t,c=e.value,o=e.defaultValue,s=e.placeholder,l=void 0===s?"":s,d=e.rows,u=void 0===d?4:d,m=e.autoResize,v=void 0!==m&&m,h=e.hardBorder,p=void 0!==h&&h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,x=void 0===b?function(){}:b,g=I(bn,Cn({theme:i}),p?jn:"",v?Nn:"",r);return(0,q.jsx)("textarea",{id:a,className:g,value:c,defaultValue:o,placeholder:l,rows:u,disabled:y,onChange:function(e){v&&(e.currentTarget.style.height="auto",e.currentTarget.style.height="".concat(e.currentTarget.scrollHeight,"px")),x(e)}})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(wn||(wn={}));var Cn=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return xn;case"tertiary":return gn}};const Tn="WihApGsGcC1E22NRG0P5",Sn="fUrHs64HZzxc8wuJx0Sb",Mn="LXJF8zINUAOvCEJtkK8Q",An="Wb8G9wRU_hGXsgxvtTI1",zn="EkMWU0uN6UWfqy9bLsBt",Dn="jFyLmbuHrBcChK1PCUAW",En="toX_UmDpZNE2kruEXl8S",Ln="H1zoebUk7LJVtn0H0Zu_",Bn="i_2UnWCN655j4bednibQ",On="SITJboRY_HWw8TaUHpkS",qn="c4nJQCuqPERLXusqZmTf",Vn="rVjFTHZ3d6gzTyGq1wOq",In="rLYHgyXqKJfVOrHCTUHr",Pn="_aOV8eUPNj11n_VY0NAB",Rn="gFuL19WEJXow8Pop913u",Qn="gdPP8CuH6BxL79m2ly8i",Gn="tm2CatA44Mbqd0CMaXp7",_n="HfTjK7bgJmXNcDqfhL0J";var Fn,Hn=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))},Un=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Fn.primary:t,c=e.options,o=void 0===c?[]:c,s=e.multiple,l=void 0!==s&&s,d=e.value,u=e.defaultValue,m=void 0===u?"":u,v=e.values,h=e.defaultValues,p=void 0===h?[]:h,f=e.placeholder,y=void 0===f?"":f,b=e.searchable,x=void 0!==b&&b,g=e.icon,j=e.emptyMessage,N=void 0===j?"Sin resultados":j,w=e.hardBorder,k=void 0!==w&&w,C=e.disabled,T=void 0!==C&&C,S=e.onChange,M=void 0===S?function(){}:S,A=(0,ha.useState)(!1),z=A[0],D=A[1],E=(0,ha.useState)(""),L=E[0],B=E[1],O=(0,ha.useState)(0),R=O[0],Q=O[1],G=(0,ha.useState)(m),_=G[0],F=G[1],H=(0,ha.useState)(p),U=H[0],W=H[1],Y=(0,ha.useRef)(null),J=(0,ha.useRef)(null),K=(0,ha.useId)(),X=void 0!==d?d:_,Z=void 0!==v?v:U,$=(l?o.filter(function(e){return Z.includes(e.value)}):o.filter(function(e){return e.value===X})).map(function(e){return e.label}).join(", "),ee=x&&L?o.filter(function(e){return e.label.toLowerCase().includes(L.toLowerCase())}):o,ae=function(e){return l?Z.includes(e.value):e.value===X};(0,ha.useEffect)(function(){if(z){var e=function(e){Y.current&&!Y.current.contains(e.target)&&(D(!1),B(""))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[z]),(0,ha.useEffect)(function(){var e;z&&x&&(null===(e=J.current)||void 0===e||e.focus())},[z,x]);var ne=function(){T||(D(!0),Q(0))},re=function(){D(!1),B("")},te=function(e){if(!e.disabled)if(l){var a=Z.includes(e.value)?Z.filter(function(a){return a!==e.value}):Hn(Hn([],Z,!0),[e.value],!1);void 0===v&&W(a),M(a)}else void 0===d&&F(e.value),M(e.value),re()},ie=I(Sn,Wn({theme:i}),k?Qn:"",T?Gn:"");return(0,q.jsxs)("div",{id:a,ref:Y,className:I(Tn,r),children:[(0,q.jsxs)("div",{role:"combobox","aria-expanded":z,"aria-haspopup":"listbox","aria-controls":K,"aria-disabled":T,tabIndex:T?-1:0,className:ie,onClick:function(){return z?re():ne()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),z?Q(function(e){return Math.min(e+1,ee.length-1)}):ne();break;case"ArrowUp":e.preventDefault(),Q(function(e){return Math.max(e-1,0)});break;case"Enter":e.preventDefault(),z?ee[R]&&te(ee[R]):ne();break;case"Escape":re();break;case" ":z||x||(e.preventDefault(),ne())}},children:[g&&(0,q.jsx)(P,{className:Dn,icon:g}),x&&z?(0,q.jsx)("input",{ref:J,className:zn,value:L,placeholder:$||y,onChange:function(e){B(e.target.value),Q(0)},onClick:function(e){return e.stopPropagation()}}):(0,q.jsx)("span",{className:I(Mn,$?"":An),children:$||y}),(0,q.jsx)(P,{className:En,icon:V.chevronDown})]}),z&&(0,q.jsxs)("ul",{id:K,role:"listbox","aria-multiselectable":l,className:Ln,children:[0===ee.length&&(0,q.jsx)("li",{className:Rn,children:N}),ee.map(function(e,a){return(0,q.jsxs)("li",{role:"option","aria-selected":ae(e),className:I(Bn,a===R?qn:"",ae(e)?Vn:"",e.disabled?Pn:""),onMouseEnter:function(){return Q(a)},onClick:function(a){a.stopPropagation(),te(e)},children:[(0,q.jsx)("span",{className:On,children:e.label}),ae(e)&&(0,q.jsx)(P,{className:In,icon:V.check})]},e.value)})]})]})};!function(e){e.primary="primary",e.dark="dark"}(Fn||(Fn={}));var Wn=function(e){switch(e.theme){case"primary":default:return"";case"dark":return _n}};const Yn="HVj3aNmDW6tJTr0uageu",Jn="hW1Ev2Vff5FMrAuQdu5Q",Kn="ZI5_XWdK17MXXnYMh5O_",Xn="PhpcwVhP56ggFwiGvuAl",Zn="ndBtMO52dtAMHPla372a",$n="YxneKx82bAQhUpOy8Adj",er="rEwN2ippBOfwtYrsL8xL",ar="QGvk3ZseIqrsJEo4c5E8",nr="cS9mLM8C2odtqKRL50qU";var rr,tr=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?rr.primary:t,c=e.value,o=e.defaultValue,s=void 0===o?"":o,l=e.min,d=e.max,u=e.placeholder,m=void 0===u?"":u,v=e.icon,h=void 0===v?V.calendario:v,p=e.hardBorder,f=void 0!==p&&p,y=e.disabled,b=void 0!==y&&y,x=e.onChange,g=void 0===x?function(){}:x,j=(0,ha.useRef)(null),N=(0,ha.useState)(s),w=N[0],k=N[1],C=void 0!==c?c:w,T=I(Yn,ir({theme:i}),f?ar:"",b?nr:"",r);return(0,q.jsxs)("div",{className:T,onClick:function(){var e,a,n;if(!b){null===(e=j.current)||void 0===e||e.focus();try{null===(n=null===(a=j.current)||void 0===a?void 0:a.showPicker)||void 0===n||n.call(a)}catch(e){}}},children:[(0,q.jsx)(P,{className:Jn,icon:h}),(0,q.jsxs)("span",{className:Kn,children:[(0,q.jsx)("input",{ref:j,id:a,className:I(Xn,!C&&m?Zn:""),type:"date",value:C,min:l,max:d,disabled:b,onChange:function(e){void 0===c&&k(e.target.value),g(e)}}),!C&&m&&(0,q.jsx)("span",{className:$n,children:m})]}),(0,q.jsx)(P,{className:er,icon:V.chevronDown})]})};!function(e){e.primary="primary"}(rr||(rr={}));var ir=function(e){e.theme;return""};const cr="csTTdgNhhaKeM3WzlV5O",or="WmmocI2yHIe8GUSg2X13",sr="Ztm3_ulDynd0uNXYEM9R",lr="ZUtlZ5rivCyTPAaLLX5w",dr="Eq1489yFWMUmM_u6vh9f",ur="PMVJ8fczX7bKcOIU0fOL",mr="TIFdzexsUxA525Gdwpcb";var vr,hr,pr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?vr.primary:i,o=e.size,s=void 0===o?hr.md:o,l=e.src,d=e.alt,u=void 0===d?"":d,m=e.fallbackIcon,v=void 0===m?V.usuarioDentroApp:m,h=I(cr,fr({theme:c}),yr({size:s}),t);return(0,q.jsx)("span",{id:n,className:h,children:l?(0,q.jsx)("img",{className:or,src:l,alt:u}):(0,q.jsx)(P,{className:sr,icon:v})})};!function(e){e.primary="primary"}(vr||(vr={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(hr||(hr={}));var fr=function(e){return e.theme===vr.primary?lr:""},yr=function(e){switch(e.size){case hr.sm:return dr;case hr.md:return ur;case hr.lg:return mr;default:return""}};const br="IWyEVo8NMrRjUWP04rfw",xr="CqnccCvEtLIl5USsaXlg",gr="YG349hVZasvp2jO4kPsA",jr="_CvqVXegZYiyGoajONPu",Nr="UUiupi6FttBIFLsTsP3g",wr="A0QVkfVJsx9sZLnPR6kv",kr="VkrlgKZfUw3mzJQ6C8p9";var Cr,Tr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.variant,c=void 0===i?Cr.success:i,o=e.icon,s=e.children,l=I(br,Sr({variant:c}),t);return(0,q.jsxs)("span",{id:n,className:l,children:[o&&(0,q.jsx)(P,{className:xr,icon:o}),(0,q.jsx)("span",{className:gr,children:s})]})};!function(e){e.success="success",e.progress="progress",e.pending="pending",e.info="info"}(Cr||(Cr={}));var Sr=function(e){switch(e.variant){case Cr.success:return jr;case Cr.progress:return Nr;case Cr.pending:return wr;case Cr.info:return kr;default:return""}};const Mr="XT6EGfuWYGIoJSqy05TJ",Ar="UIk9FL7BDJpO9kTxs_Uw",zr="lBgbjqELas7qzyxa17Gg",Dr="KAT9D73UpzE9tm2yc2Tz",Er="K1sgv7WJBtYs1CrvdSgv",Lr="It7juqSa974gPQ1ECS7P",Br="xqzhTvRpnACwBTzGmCFd",Or="aYo2q4_DqNJ5Yl0NQB9t",qr="bTytWyysO56yZTSSf5LT";var Vr,Ir=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Vr.primary:i,o=e.icon,s=e.label,l=I(Mr,t),d=I(Ar,Pr({theme:c}));return(0,q.jsxs)("span",{id:n,className:l,children:[(0,q.jsx)("span",{className:d,children:(0,q.jsx)(P,{className:zr,icon:o})}),s&&(0,q.jsx)("span",{className:Dr,children:s})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary"}(Vr||(Vr={}));var Pr=function(e){switch(e.theme){case Vr.primary:return Er;case Vr.secondary:return Lr;case Vr.tertiary:return Br;case Vr.quaternary:return Or;case Vr.quinary:return qr;default:return""}};const Rr="MBywYK0SgL4lTZV_77nW",Qr="j8IeW9LCX93pCcFNrNdY",Gr="YBLMvqC9pz7R4bSGdeh6",_r="aWScMBie4dNuQWeWzk94",Fr="vpvm_c6Fwnhmhnve66Of",Hr="E11UJFYJUt38tQ_rmIFl",Ur="l5moywrOYUj3JR58GJ3Q",Wr="VUVz_XqUxME6E3pS7NEm",Yr="yBxzIsU4VisEdoiz2GnA",Jr="SHOkFcwsH5L4yMMkYR30",Kr="v4frrN_DRHohQdZjJiVA",Xr="TgIb9A2h3x_ihidHcUcY";var Zr,$r,et,at,nt=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,c=e.ariaLabel,o=e.theme,s=void 0===o?Zr.primary:o,l=e.size,d=void 0===l?$r.md:l,u=e.shape,m=void 0===u?et.circle:u,v=e.disabled,h=void 0!==v&&v,p=e.type,f=void 0===p?at.button:p,y=e.onClick,b=I(Rr,rt({theme:s}),tt({size:d}),it({shape:m}),t);return(0,q.jsx)("button",{id:n,className:b,type:f,"aria-label":c,disabled:h,onClick:y,children:(0,q.jsx)(P,{className:Qr,icon:i})})};!function(e){e.primary="primary",e.secondary="secondary",e.outline="outline",e.ghost="ghost",e.soft="soft"}(Zr||(Zr={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}($r||($r={})),function(e){e.circle="circle",e.square="square"}(et||(et={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(at||(at={}));var rt=function(e){switch(e.theme){case Zr.primary:return Wr;case Zr.secondary:return Yr;case Zr.outline:return Jr;case Zr.ghost:return Kr;case Zr.soft:return Xr;default:return""}},tt=function(e){switch(e.size){case $r.sm:return Fr;case $r.md:return Hr;case $r.lg:return Ur;default:return""}},it=function(e){switch(e.shape){case et.circle:return Gr;case et.square:return _r;default:return""}};const ct="ta7Gh0oux0JTjsuKbz67",ot="KZtf6l8cQuhmNelFlruw",st="Ofk0fCFamMeiTdjTIFee";var lt,dt=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?lt.primary:i,o=e.to,s=e.href,l=e.target,d=e.children,u=e.onClick,m=I(ct,ut({theme:c}),t);return o?(0,q.jsx)(Ba.Link,{to:o,id:n,className:m,onClick:u,children:d}):s?(0,q.jsx)("a",{id:n,href:s,target:l,className:m,onClick:u,children:d}):(0,q.jsx)("button",{id:n,type:"button",className:m,onClick:u,children:d})};!function(e){e.primary="primary",e.muted="muted"}(lt||(lt={}));var ut=function(e){switch(e.theme){case lt.primary:return ot;case lt.muted:return st;default:return""}};const mt="NVSkcMXjGBloaxcmkInt",vt="mabEcjJJijuiIgVk79DH",ht="IyemsZ0IYvI3nuNOXkvX",pt="Dqhex8Evhb4AAc9Xkvo5",ft="N5bqz6Zxbi50Vhek2ylV",yt="a2NsnBpqeBMKcuZP7okt",bt="ElABlLAgZYeancITzEhQ",xt="B_mWTdrLaXzyri3tKAWA",gt="UuPlwVneHDPTMC1UZW6G",jt="cRoCcl6LJW501_zUJ2_G",Nt="co6gq0z96SbIsuyd9xp_";var wt,kt,Ct=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?wt.primary:i,o=e.size,s=void 0===o?kt.md:o,l=e.value,d=e.defaultValue,u=void 0===d?0:d,m=e.max,v=void 0===m?5:m,h=e.readOnly,p=void 0===h||h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,x=void 0===b?function(){}:b,g=(0,ha.useState)(u),j=g[0],N=g[1],w=void 0!==l?l:j,k=!p&&!y,C=function(e){k&&(void 0===l&&N(e),x(e))},T=I(mt,Tt({theme:c}),St({size:s}),k?vt:"",t),S=Array.from({length:v},function(e,a){var n=100*Math.max(0,Math.min(1,w-a));return(0,q.jsxs)("span",{className:ht,children:[(0,q.jsx)(P,{className:pt,icon:V.star}),(0,q.jsx)("span",{className:ft,style:{width:"".concat(n,"%")},children:(0,q.jsx)(P,{className:yt,icon:V.star})}),k&&(0,q.jsx)("button",{type:"button",className:bt,"aria-label":"".concat(a+1),onClick:function(){return C(a+1)}})]},a)});return(0,q.jsx)("span",{id:n,className:T,role:k?"slider":"img","aria-label":"".concat(w," / ").concat(v),"aria-valuenow":k?w:void 0,"aria-valuemin":k?0:void 0,"aria-valuemax":k?v:void 0,tabIndex:k?0:void 0,onKeyDown:function(e){k&&("ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),C(Math.min(v,w+1))):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),C(Math.max(0,w-1))))},children:S})};!function(e){e.primary="primary"}(wt||(wt={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(kt||(kt={}));var Tt=function(e){return e.theme===wt.primary?xt:""},St=function(e){switch(e.size){case kt.sm:return gt;case kt.md:return jt;case kt.lg:return Nt;default:return""}};const Mt="grzoafeuaVbctItAvaBj",At="wbmmrBuO8sfCMTvFh_1w",zt="SsnpuFnrdU36Xwd4HqXk",Dt="CWQXTxCoWGjSAVajqPfY",Et="Bt8wp_CR69pVVxdRoLy9",Lt="YJaKXBCYjrfe38zzeXjJ",Bt="ajEpjzUlrdk7Mnz5jSJb",Ot="tTj9iSnLcOA1i9kBrllR";var qt,Vt=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?qt.primary:t,c=e.columns,o=e.data,s=e.rowKey,l=e.onRowClick,d=e.emptyMessage,u=void 0===d?"Sin resultados":d,m=I(Mt,It({theme:i}),r);return(0,q.jsx)("div",{id:a,className:m,children:(0,q.jsxs)("table",{className:At,children:[(0,q.jsx)("thead",{className:zt,children:(0,q.jsx)("tr",{children:c.map(function(e){var a;return(0,q.jsx)("th",{className:Dt,style:{textAlign:null!==(a=e.align)&&void 0!==a?a:"center",width:e.width},children:e.header},e.key)})})}),(0,q.jsx)("tbody",{children:0===o.length?(0,q.jsx)("tr",{children:(0,q.jsx)("td",{className:Ot,colSpan:c.length,children:u})}):o.map(function(e){return(0,q.jsx)("tr",{className:I(Et,l?Lt:""),onClick:l?function(){return l(e)}:void 0,children:c.map(function(a){var n;return(0,q.jsx)("td",{className:Bt,style:{textAlign:null!==(n=a.align)&&void 0!==n?n:"center"},children:a.render?a.render(e):e[a.key]},a.key)})},s(e))})})]})})};!function(e){e.primary="primary"}(qt||(qt={}));var It=function(e){e.theme;return qt.primary,""};const Pt="ZPqhyocEqag6LOWDbVjQ",Rt="lWYdhTDpA0GJvfHJjAxw",Qt="yyknVWqnterLrlyMBe8Q",Gt="Io266Be3pnb7Y7pNe8JU",_t="x8_MYteZu5b87Bd4J1eL";var Ft=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Jt.primary:i,o=e.icon,s=e.label,l=e.sublabel,d=e.value,u=e.selected,m=void 0!==u&&u,v=e.disabled,h=void 0!==v&&v,p=e.onSelect,f=void 0===p?function(){}:p,y=I(Pt,Xt({theme:c}),m?_t:"",t);return(0,q.jsxs)("button",{id:n,type:"button",className:y,"aria-pressed":m,disabled:h,onClick:function(){return f(d)},children:[(0,q.jsx)(P,{className:Rt,icon:o}),s&&(0,q.jsx)("span",{className:Qt,children:s}),l&&(0,q.jsx)("span",{className:Gt,children:l})]})};const Ht="lIZRkupG0Tnu5PZhmQk7",Ut="HPk63kIH_wE7yDHatfVd";var Wt,Yt=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))};!function(e){e.horizontal="horizontal",e.vertical="vertical"}(Wt||(Wt={}));var Jt,Kt=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Jt.primary:t,c=e.options,o=void 0===c?[]:c,s=e.multiple,l=void 0!==s&&s,d=e.value,u=e.defaultValue,m=void 0===u?"":u,v=e.values,h=e.defaultValues,p=void 0===h?[]:h,f=e.direction,y=void 0===f?Wt.horizontal:f,b=e.disabled,x=void 0!==b&&b,g=e.onChange,j=void 0===g?function(){}:g,N=(0,ha.useState)(m),w=N[0],k=N[1],C=(0,ha.useState)(p),T=C[0],S=C[1],M=void 0!==d?d:w,A=void 0!==v?v:T,z=function(e){if(void 0!==e)if(l){var a=A.includes(e)?A.filter(function(a){return a!==e}):Yt(Yt([],A,!0),[e],!1);void 0===v&&S(a),j(a)}else void 0===d&&k(e),j(e)},D=I(Ht,y===Wt.vertical?Ut:"",r);return(0,q.jsx)("div",{id:a,role:"group",className:D,children:o.map(function(e){return(0,q.jsx)(Ft,{theme:i,icon:e.icon,label:e.label,sublabel:e.sublabel,value:e.value,selected:(a=e.value,l?A.includes(a):a===M),disabled:x||e.disabled,onSelect:z},e.value);var a})})};!function(e){e.primary="primary"}(Jt||(Jt={}));var Xt=function(e){e.theme;return Jt.primary,""};const Zt="sLGAM7oBNrXGmob1q_sq",$t="ajTwlbHajl6FyObOjfzO",ei="t3wCLrfNxdRone4UrmI0",ai="lWEf_hSXFYbT7Pg1lDO_",ni="EYPgHsxHMLGbc92dyTap",ri="HVKOGVWGaff1Yo3rxRsw",ti="V5jwid2fjd5qbwkTIpI_",ii="VnvwelENcP64JTRvGVAw",ci="c1ikpWoc8ASIpAvAwDlk",oi="W87Bkj4YXZuOxfurrgql";var si,li=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?si.primary:t,c=e.items,o=e.renderItem,s=e.children,l=e.itemsPerView,d=void 0===l?1:l,u=e.dots,m=void 0!==u&&u,v=e.index,h=e.defaultIndex,p=void 0===h?0:h,f=e.prevLabel,y=void 0===f?"Anterior":f,b=e.nextLabel,x=void 0===b?"Siguiente":b,g=e.onChange,j=void 0===g?function(){}:g,N=(0,ha.useState)(p),w=N[0],k=N[1],C=(0,ha.useState)(d),T=C[0],S=C[1],M=c&&o?c.map(function(e,a){return o(e,a)}):ha.Children.toArray(s);(0,ha.useEffect)(function(){var e=function(){window.matchMedia("(max-width: 767px)").matches?S(1):window.matchMedia("(max-width: 1023px)").matches?S(Math.min(2,d)):S(d)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[d]);var A=Math.max(1,Math.min(T,M.length)),z=Math.max(0,M.length-A),D=Math.min(void 0!==v?v:w,z),E=function(e){var a=Math.max(0,Math.min(e,z));void 0===v&&k(a),j(a)},L="".concat(100/A,"%");return(0,q.jsxs)("div",{id:a,className:I(Zt,di({theme:i}),r),children:[(0,q.jsxs)("div",{className:$t,children:[(0,q.jsx)(nt,{className:ri,icon:V.flecha,ariaLabel:y,theme:Zr.soft,size:$r.sm,disabled:D<=0,onClick:function(){return E(D-1)}}),(0,q.jsx)("div",{className:ei,children:(0,q.jsx)("div",{className:ai,style:{transform:"translateX(-".concat(D*(100/A),"%)")},children:M.map(function(e,a){return(0,q.jsx)("div",{className:ni,style:{flex:"0 0 ".concat(L),maxWidth:L},children:e},a)})})}),(0,q.jsx)(nt,{className:ti,icon:V.flecha,ariaLabel:x,theme:Zr.soft,size:$r.sm,disabled:D>=z,onClick:function(){return E(D+1)}})]}),m&&z>0&&(0,q.jsx)("div",{className:ii,children:Array.from({length:z+1}).map(function(e,a){return(0,q.jsx)("button",{type:"button","aria-label":"Ir a la página ".concat(a+1),"aria-current":a===D,className:I(ci,a===D?oi:""),onClick:function(){return E(a)}},a)})})]})};!function(e){e.primary="primary"}(si||(si={}));var di=function(e){e.theme;return si.primary,""};const ui="HIFvmvcN_t_U44Ek9Pzg",mi="NY2jLuTYDx8PHHwxBWP1",vi="jtUYOcgCVKerfp1MFOBA",hi="SiF7Wh1N0Q3o9K47m1Tg",pi="pYonitDFiQ4mCODmEfEj",fi="QPNF93lBTsjCwQHIbd5M",yi="Q9xNwQE8zhzBQucSSqh8",bi="y7ycDWtgNus3_HGbp7Aw",xi="tI2VRSWho7y9AnLTBSul",gi="TrUTI_sHulK4rszb5W35",ji="nVAEwekLtZzbxiDIi908",Ni="m0dxrqnoPSi2k6j8TIdk",wi="nLoxinED1jVEuT9WT0Yt";var ki,Ci,Ti=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?ki.primary:t,c=e.items,o=e.trigger,s=e.align,l=void 0===s?Ci.right:s,d=e.ariaLabel,u=void 0===d?"Abrir menú":d,m=e.disabled,v=void 0!==m&&m,h=(0,ha.useState)(!1),p=h[0],f=h[1],y=(0,ha.useState)(0),b=y[0],x=y[1],g=(0,ha.useRef)(null);(0,ha.useEffect)(function(){if(p){var e=function(e){g.current&&!g.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[p]);var j=function(){v||(f(!0),x(0))},N=function(){return f(!1)},w=function(e){e.disabled||(e.onClick(),N())},k=(0,q.jsxs)("span",{className:vi,"aria-hidden":"true",children:[(0,q.jsx)("span",{className:hi}),(0,q.jsx)("span",{className:hi}),(0,q.jsx)("span",{className:hi})]}),C=I(pi,l===Ci.left?yi:fi);return(0,q.jsxs)("div",{id:a,ref:g,className:I(ui,Si({theme:i}),r),children:[(0,q.jsx)("button",{type:"button",className:mi,"aria-haspopup":"menu","aria-expanded":p,"aria-label":u,disabled:v,onClick:function(){return p?N():j()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),p?x(function(e){return Math.min(e+1,c.length-1)}):j();break;case"ArrowUp":e.preventDefault(),x(function(e){return Math.max(e-1,0)});break;case"Enter":case" ":e.preventDefault(),p?c[b]&&w(c[b]):j();break;case"Escape":N()}},children:null!=o?o:k}),p&&(0,q.jsx)("ul",{role:"menu",className:C,children:c.map(function(e,a){return(0,q.jsx)("li",{role:"none",children:(0,q.jsxs)("button",{type:"button",role:"menuitem",disabled:e.disabled,className:I(bi,a===b?xi:"",e.danger?Ni:"",e.disabled?wi:""),onMouseEnter:function(){return x(a)},onClick:function(){return w(e)},children:[e.icon&&(0,q.jsx)(P,{className:gi,icon:e.icon}),(0,q.jsx)("span",{className:ji,children:e.label})]})},"".concat(e.label,"-").concat(a))})})]})};!function(e){e.primary="primary"}(ki||(ki={})),function(e){e.left="left",e.right="right"}(Ci||(Ci={}));var Si=function(e){e.theme;return ki.primary,""};const Mi="KJlu3bfoW7aFxtsdynLR",Ai="qh6PIBH6JH6McFPpJslO",zi="UYaNKPp7ukvzoUz3a7rz",Di="EAe4BYvP4jJp1qEH3RQE",Ei="WxLvmW9HVq420LX1G5jJ",Li="zWkpfZjiDdNdwpRuvv0b",Bi="sozrqips8AZla5qXbAcU",Oi="CY3yslAxro0WOsWiPfro";var qi,Vi=function(e){var a,n,r=e.id,t=e.className,i=void 0===t?"":t,c=e.variant,o=void 0===c?qi.iconTab:c,s=e.tabs,l=e.active,d=e.defaultActive,u=e.onChange,m=void 0===u?function(){}:u,v=(0,ha.useState)(null!==(n=null!=d?d:null===(a=s[0])||void 0===a?void 0:a.value)&&void 0!==n?n:""),h=v[0],p=v[1],f=void 0!==l?l:h,y=function(e){e.disabled||(void 0===l&&p(e.value),m(e.value))},b=function(e){for(var a=s.length,n=0;n<a;n+=1){var r=s[((e+n)%a+a)%a];if(!r.disabled)return void y(r)}};return(0,q.jsx)("div",{id:r,role:"tablist",className:I(Mi,Ii({variant:o}),i),children:s.map(function(e,a){var n=e.value===f;return(0,q.jsxs)("button",{type:"button",role:"tab","aria-selected":n,tabIndex:n?0:-1,disabled:e.disabled,className:I(Ai,n?Bi:"",e.disabled?zi:""),onClick:function(){return y(e)},onKeyDown:function(e){return function(e,a){switch(e.key){case"ArrowRight":e.preventDefault(),b(a+1);break;case"ArrowLeft":e.preventDefault(),b(a-1)}}(e,a)},children:[e.icon&&(0,q.jsx)(P,{className:Ei,icon:e.icon}),(0,q.jsx)("span",{className:Li,children:e.label})]},e.value)})})};!function(e){e.iconTab="iconTab",e.segmented="segmented"}(qi||(qi={}));var Ii=function(e){switch(e.variant){case qi.iconTab:return Di;case qi.segmented:return Oi;default:return""}};const Pi={"route-card":"EsVXsSdIcU7Q0FS5w_ux","route-card-header":"ImegCMc9pvWmNLwESzyc","route-card-info":"K8XcWiLezWdjdXAACtxp","route-card-name":"crdObMIFvtdTPGml2scQ","route-card-role":"YyuuW2kvumzHt8nBFQtK","route-card-body":"deATl6Duo6Lea_Pp50gS","route-card-row":"w_0RduY81CpRLM0wTZ_f","route-card-icon":"ku21k4nYRp2Mn2Ff7_Aq","route-card-meta":"DlyyjfKmtodgVTi9ViNl","route-card-meta-item":"hAxPilUGltBQJiQyUrdX","route-card-btn":"XwOb1M1gfrH24G3cqeCM"};var Ri,Qi=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Ri.primary:i,o=e.avatar,s=e.avatarAlt,l=void 0===s?"":s,d=e.name,u=e.role,m=e.location,v=e.date,h=e.time,p=e.detailLabel,f=void 0===p?"Detalle":p,y=e.onDetail;return(0,q.jsxs)("article",{id:n,className:I(Pi["route-card"],Gi({theme:c}),t),children:[(0,q.jsxs)("div",{className:Pi["route-card-header"],children:[(0,q.jsx)(pr,{src:o,alt:l,size:hr.md}),(0,q.jsxs)("div",{className:Pi["route-card-info"],children:[(0,q.jsx)("span",{className:Pi["route-card-name"],children:d}),u&&(0,q.jsx)("span",{className:Pi["route-card-role"],children:u})]})]}),m&&(0,q.jsx)("div",{className:Pi["route-card-body"],children:(0,q.jsxs)("div",{className:Pi["route-card-row"],children:[(0,q.jsx)("span",{className:Pi["route-card-icon"],children:(0,q.jsx)(P,{icon:V.pin})}),(0,q.jsx)("span",{children:m})]})}),(v||h)&&(0,q.jsxs)("div",{className:I(Pi["route-card-meta"],m?"":Pi["route-card-body"]),children:[v&&(0,q.jsxs)("div",{className:Pi["route-card-meta-item"],children:[(0,q.jsx)("span",{className:Pi["route-card-icon"],children:(0,q.jsx)(P,{icon:V.calendario})}),(0,q.jsx)("span",{children:v})]}),h&&(0,q.jsxs)("div",{className:Pi["route-card-meta-item"],children:[(0,q.jsx)("span",{className:Pi["route-card-icon"],children:(0,q.jsx)(P,{icon:V.reloj})}),(0,q.jsx)("span",{children:h})]})]}),(0,q.jsx)("button",{className:Pi["route-card-btn"],onClick:y,type:"button",children:f})]})};!function(e){e.primary="primary"}(Ri||(Ri={}));var Gi=function(e){return e.theme===Ri.primary?Pi["route-card-primary"]:""};const _i="iFUX92YwTRZDhOIxr94o",Fi="imQwcMKaUDvSU3Qtt6aB",Hi="_g27enioUgBpdx_XK_1B",Ui="V5dT5tTjfH7vaRJ2kWYj",Wi="Q8iCWpwQSrBe6lgvo09J",Yi="a1fmmQ9ke4O97un9RpzD",Ji="FCykKGFqWVjv00b4EmQV",Ki="vr1wV8FfVKfVa0qzAr64",Xi="cygJ02KV34y117fQHCpT",Zi="E05jrqJfxMQSNPe1XyG9";var $i,ec=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.variant,c=void 0===i?$i.blue:i,o=e.title,s=e.subtitle,l=e.time,d=e.location,u=e.avatars,m=ac(c);return(0,q.jsxs)("div",{id:n,className:I(_i,t),role:"article",children:[(0,q.jsx)("div",{className:Fi,style:{backgroundColor:m}}),(0,q.jsx)("div",{className:Hi,style:{backgroundColor:m}}),(0,q.jsx)("span",{className:Ui,style:{color:m},children:o}),s&&(0,q.jsx)("span",{className:Wi,style:{color:m},children:s}),(0,q.jsxs)("div",{className:Yi,children:[l&&(0,q.jsxs)("div",{className:Ji,style:{color:m},children:[(0,q.jsx)("span",{className:Ki,children:(0,q.jsx)(P,{icon:V.reloj})}),l]}),d&&(0,q.jsxs)("div",{className:Ji,style:{color:m},children:[(0,q.jsx)("span",{className:Ki,children:(0,q.jsx)(P,{icon:V.pin})}),d]})]}),u&&u.length>0&&(0,q.jsx)("div",{className:Xi,children:u.slice(0,3).map(function(e,a){return(0,q.jsx)("div",{className:Zi,children:e&&(0,q.jsx)("img",{src:e,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})},a)})})]})};!function(e){e.blue="blue",e.red="red",e.amber="amber"}($i||($i={}));var ac=function(e){switch(e){case $i.blue:return"#009fee";case $i.red:return"#ee2b00";case $i.amber:return"#ee8f00";default:return"#009fee"}};const nc={calendar:"tUPTrfuL5EjJKRCuiGi5","today-header":"OMDiXjwb3fHf6vYFBB39","today-day":"M20ELJ3VIAzYsTTMK8YU","today-date":"FAOdkvpDfC04Z8c4pwxq","month-nav":"qu2VL7PKFuN7woXluw2d","month-label":"mxyNos33UBjXnsgMSU2g","nav-btn":"obiFJnFhrGhRkBFGX5Ni","week-header":"Mb8WgdTXzcxeAd1PzbR6","week-day":"MVOQjiNchupM6glVom32","day-grid":"TohOqLA0omRckCbE_2mF","day-cell":"IqeeYVQMfPLMh6WBT7Yo","day-btn":"FqHBLr9jswJ2oYzZcjl1","day-btn-selected":"bGTpVO2vPSPp7JYUPRl_","day-btn-empty":"QoBaT83lQNt1KhJgBGT9","day-dots":"pv6nZsro1IU2Fo0szu2W","day-dot":"KNqxxwm0Dq1V6tkSIUWA"};var rc,tc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ic=["January","February","March","April","May","June","July","August","September","October","November","December"],cc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],oc=function(e){for(var a,n=e.id,r=void 0===n?"":n,t=e.className,i=void 0===t?"":t,c=e.theme,o=void 0===c?rc.primary:c,s=e.value,l=e.defaultValue,d=e.events,u=void 0===d?[]:d,m=e.showTodayHeader,v=void 0===m||m,h=e.onSelectDay,p=e.onNavigate,f=new Date,y=null!==(a=null!=s?s:l)&&void 0!==a?a:f,b=(0,ha.useState)(y.getFullYear()),x=b[0],g=b[1],j=(0,ha.useState)(y.getMonth()),N=j[0],w=j[1],k=(0,ha.useState)(null!=s?s:l),C=k[0],T=k[1],S=void 0!==s,M=S?s:C,A=new Date(x,N,1).getDay(),z=new Date(x,N+1,0).getDate(),D=[],E=0;E<A;E++)D.push(null);for(var L=1;L<=z;L++)D.push(L);var B={};u.forEach(function(e){var a=e.date,n=e.color,r=void 0===n?"#009fee":n;B[a]||(B[a]=[]),B[a].push(r)});return(0,q.jsxs)("div",{id:r,className:I(nc.calendar,sc({theme:o}),i),children:[v&&M&&(0,q.jsxs)("div",{className:nc["today-header"],children:[(0,q.jsx)("span",{className:nc["today-day"],children:cc[M.getDay()]}),(0,q.jsxs)("span",{className:nc["today-date"],children:[function(e){return"".concat(e.getDate()," ").concat(ic[e.getMonth()]," ").concat(e.getFullYear())}(M),(0,q.jsx)(P,{icon:V.chevronDown})]})]}),(0,q.jsxs)("div",{className:nc["month-nav"],children:[(0,q.jsx)("span",{className:nc["month-label"],children:ic[N]}),(0,q.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,q.jsx)("button",{className:nc["nav-btn"],onClick:function(){var e=0===N?11:N-1,a=0===N?x-1:x;w(e),g(a),null==p||p(a,e)},type:"button","aria-label":"Mes anterior",children:(0,q.jsx)("span",{style:{display:"inline-flex",transform:"rotate(180deg)"},children:(0,q.jsx)(P,{icon:V.flecha})})}),(0,q.jsx)("button",{className:nc["nav-btn"],onClick:function(){var e=11===N?0:N+1,a=11===N?x+1:x;w(e),g(a),null==p||p(a,e)},type:"button","aria-label":"Mes siguiente",children:(0,q.jsx)(P,{icon:V.flecha})})]})]}),(0,q.jsx)("div",{className:nc["week-header"],role:"row",children:tc.map(function(e){return(0,q.jsx)("span",{className:nc["week-day"],role:"columnheader",children:e},e)})}),(0,q.jsx)("div",{className:nc["day-grid"],role:"grid",children:D.map(function(e,a){var n;if(null===e)return(0,q.jsx)("div",{className:nc["day-cell"]},"empty-".concat(a));var r="".concat(x,"-").concat(String(N+1).padStart(2,"0"),"-").concat(String(e).padStart(2,"0")),t=M&&function(e){var a=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(a,"-").concat(n,"-").concat(r)}(M)===r,i=null!==(n=B[r])&&void 0!==n?n:[];return(0,q.jsxs)("div",{className:nc["day-cell"],children:[(0,q.jsx)("button",{className:I(nc["day-btn"],t?nc["day-btn-selected"]:""),onClick:function(){return function(e){var a=new Date(x,N,e);S||T(a),null==h||h(a)}(e)},type:"button","aria-label":"".concat(e," ").concat(ic[N]," ").concat(x),"aria-pressed":!!t,children:e}),i.length>0&&(0,q.jsx)("div",{className:nc["day-dots"],children:i.slice(0,3).map(function(e,a){return(0,q.jsx)("span",{className:nc["day-dot"],style:{backgroundColor:e}},a)})})]},r)})})]})};!function(e){e.primary="primary"}(rc||(rc={}));var sc=function(e){return e.theme===rc.primary?nc["calendar-primary"]:""};return a})());
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { CalendarThemes } from '..';
|
|
3
|
+
export type TCalendarEvent = {
|
|
4
|
+
/** Date in "YYYY-MM-DD" format. */
|
|
5
|
+
date: string;
|
|
6
|
+
/** CSS color for the dot. Defaults to event-blue (#009fee). */
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
export type TCalendarProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Id of the calendar.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Additional CSS classes.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Theme of the calendar.
|
|
20
|
+
*/
|
|
21
|
+
theme?: CalendarThemes;
|
|
22
|
+
/**
|
|
23
|
+
* Currently selected date (controlled).
|
|
24
|
+
*/
|
|
25
|
+
value?: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Initial selected date (uncontrolled).
|
|
28
|
+
*/
|
|
29
|
+
defaultValue?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* List of events to display as dots.
|
|
32
|
+
*/
|
|
33
|
+
events?: TCalendarEvent[];
|
|
34
|
+
/**
|
|
35
|
+
* Whether to show the "Today" header with the selected day name and date.
|
|
36
|
+
*/
|
|
37
|
+
showTodayHeader?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Called when the user selects a day.
|
|
40
|
+
*/
|
|
41
|
+
onSelectDay?: (date: Date) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Called when the month view changes.
|
|
44
|
+
*/
|
|
45
|
+
onNavigate?: (year: number, month: number) => void;
|
|
46
|
+
};
|
|
47
|
+
export declare const Calendar: ({ id, className, theme, value, defaultValue, events, showTodayHeader, onSelectDay, onNavigate, }: TCalendarProps) => ReactElement;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { CarouselThemes } from '..';
|
|
3
|
+
export type TCarouselProps<T> = {
|
|
4
|
+
/**
|
|
5
|
+
* Is this the id of the carousel.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Is this the classes that you want to add
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Is this the theme you want to add to the carousel
|
|
14
|
+
*/
|
|
15
|
+
theme?: CarouselThemes;
|
|
16
|
+
/**
|
|
17
|
+
* Is this the list of items rendered through renderItem (data-driven mode)
|
|
18
|
+
*/
|
|
19
|
+
items?: T[];
|
|
20
|
+
/**
|
|
21
|
+
* Is this the renderer of each item (data-driven mode)
|
|
22
|
+
*/
|
|
23
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Is this the content of the carousel, one slide per child (children mode)
|
|
26
|
+
*/
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Is this the number of items shown per view on desktop (clamped down on smaller screens)
|
|
30
|
+
*/
|
|
31
|
+
itemsPerView?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Is this the visibility of the page indicator dots
|
|
34
|
+
*/
|
|
35
|
+
dots?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Is this the index of the first visible item (controlled)
|
|
38
|
+
*/
|
|
39
|
+
index?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Is this the initial index of the first visible item (uncontrolled)
|
|
42
|
+
*/
|
|
43
|
+
defaultIndex?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Is this the accessible label of the previous button
|
|
46
|
+
*/
|
|
47
|
+
prevLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Is this the accessible label of the next button
|
|
50
|
+
*/
|
|
51
|
+
nextLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Is this the onChange event of the carousel, called with the next index
|
|
54
|
+
*/
|
|
55
|
+
onChange?: (index: number) => void;
|
|
56
|
+
};
|
|
57
|
+
export declare const Carousel: <T>({ id, className, theme, items, renderItem, children, itemsPerView, dots, index, defaultIndex, prevLabel, nextLabel, onChange, }: TCarouselProps<T>) => ReactElement;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { IconNames } from '@components';
|
|
3
|
+
import { DropdownMenuThemes, DropdownMenuAligns } from '..';
|
|
4
|
+
export type TDropdownMenuItem = {
|
|
5
|
+
/**
|
|
6
|
+
* Is this the visible label of the item
|
|
7
|
+
*/
|
|
8
|
+
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* Is this the onClick event of the item
|
|
11
|
+
*/
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Is this the icon shown at the left of the item
|
|
15
|
+
*/
|
|
16
|
+
icon?: IconNames;
|
|
17
|
+
/**
|
|
18
|
+
* Is this the destructive style of the item
|
|
19
|
+
*/
|
|
20
|
+
danger?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Is this the disabled state of the item
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type TDropdownMenuProps = {
|
|
27
|
+
/**
|
|
28
|
+
* Is this the id of the dropdown menu.
|
|
29
|
+
*/
|
|
30
|
+
id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Is this the classes that you want to add
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Is this the theme you want to add to the dropdown menu
|
|
37
|
+
*/
|
|
38
|
+
theme?: DropdownMenuThemes;
|
|
39
|
+
/**
|
|
40
|
+
* Is this the list of items of the menu
|
|
41
|
+
*/
|
|
42
|
+
items: TDropdownMenuItem[];
|
|
43
|
+
/**
|
|
44
|
+
* Is this the custom trigger of the menu (defaults to a kebab button)
|
|
45
|
+
*/
|
|
46
|
+
trigger?: ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Is this the horizontal alignment of the menu relative to the trigger
|
|
49
|
+
*/
|
|
50
|
+
align?: DropdownMenuAligns;
|
|
51
|
+
/**
|
|
52
|
+
* Is this the accessible label of the default kebab trigger (used as aria-label)
|
|
53
|
+
*/
|
|
54
|
+
ariaLabel?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Is this the disabled state of the menu
|
|
57
|
+
*/
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
};
|
|
60
|
+
export declare const DropdownMenu: FC<TDropdownMenuProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum DropdownMenuThemes {
|
|
2
|
+
primary = "primary"
|
|
3
|
+
}
|
|
4
|
+
export declare enum DropdownMenuAligns {
|
|
5
|
+
left = "left",
|
|
6
|
+
right = "right"
|
|
7
|
+
}
|
|
8
|
+
export declare const getDropdownMenuThemeClass: ({ theme }: {
|
|
9
|
+
theme: DropdownMenuThemes;
|
|
10
|
+
}) => string;
|
|
11
|
+
export * from './DropdownMenu';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { EventCardVariants } from '..';
|
|
3
|
+
export type TEventCardProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Id of the card.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Additional CSS classes.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Color variant of the event card.
|
|
14
|
+
*/
|
|
15
|
+
variant?: EventCardVariants;
|
|
16
|
+
/**
|
|
17
|
+
* Main title of the event.
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Subtitle or description of the event.
|
|
22
|
+
*/
|
|
23
|
+
subtitle?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Time range (e.g. "17:00 - 18:30").
|
|
26
|
+
*/
|
|
27
|
+
time?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Location of the event.
|
|
30
|
+
*/
|
|
31
|
+
location?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Up to 3 avatar src URLs.
|
|
34
|
+
*/
|
|
35
|
+
avatars?: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare const EventCard: FC<TEventCardProps>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FC, MouseEventHandler } from 'react';
|
|
2
|
+
import { RouteCardThemes } from '..';
|
|
3
|
+
export type TRouteCardProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Id of the card.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Additional CSS classes.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Theme of the card.
|
|
14
|
+
*/
|
|
15
|
+
theme?: RouteCardThemes;
|
|
16
|
+
/**
|
|
17
|
+
* Avatar image source URL.
|
|
18
|
+
*/
|
|
19
|
+
avatar?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Alt text for the avatar image.
|
|
22
|
+
*/
|
|
23
|
+
avatarAlt?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Pilot name.
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Pilot role or specialty.
|
|
30
|
+
*/
|
|
31
|
+
role?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Route location / address.
|
|
34
|
+
*/
|
|
35
|
+
location?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Route date (e.g. "31/08/2018").
|
|
38
|
+
*/
|
|
39
|
+
date?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Route time (e.g. "4:35 PM").
|
|
42
|
+
*/
|
|
43
|
+
time?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Label for the detail button.
|
|
46
|
+
*/
|
|
47
|
+
detailLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Handler for the detail button click.
|
|
50
|
+
*/
|
|
51
|
+
onDetail?: MouseEventHandler<HTMLButtonElement>;
|
|
52
|
+
};
|
|
53
|
+
export declare const RouteCard: FC<TRouteCardProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IconNames } from '@components';
|
|
3
|
+
import { SelectableTileThemes } from '..';
|
|
4
|
+
export type TSelectableTileProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Is this the id of the selectable tile.
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Is this the classes that you want to add
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Is this the theme you want to add to the selectable tile
|
|
15
|
+
*/
|
|
16
|
+
theme?: SelectableTileThemes;
|
|
17
|
+
/**
|
|
18
|
+
* Is this the icon shown inside the tile
|
|
19
|
+
*/
|
|
20
|
+
icon: IconNames;
|
|
21
|
+
/**
|
|
22
|
+
* Is this the label shown under the icon
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Is this the secondary label shown under the label
|
|
27
|
+
*/
|
|
28
|
+
sublabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Is this the value of the tile (passed to onSelect)
|
|
31
|
+
*/
|
|
32
|
+
value?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Is this the selected state of the tile
|
|
35
|
+
*/
|
|
36
|
+
selected?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Is this the disabled state of the tile
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Is this the onSelect event of the tile, called with the value of the tile
|
|
43
|
+
*/
|
|
44
|
+
onSelect?: (value?: string) => void;
|
|
45
|
+
};
|
|
46
|
+
export declare const SelectableTile: FC<TSelectableTileProps>;
|