@aleleba/ro-ut-ui 4.3.0 → 4.5.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.
Files changed (28) hide show
  1. package/dist/index.css +15 -3
  2. package/dist/index.js +1 -1
  3. package/dist/types/components/Avatars/Avatar/index.d.ts +34 -0
  4. package/dist/types/components/Avatars/index.d.ts +15 -0
  5. package/dist/types/components/Badges/Badge/index.d.ts +26 -0
  6. package/dist/types/components/Badges/index.d.ts +10 -0
  7. package/dist/types/components/Carousels/Carousel/index.d.ts +57 -0
  8. package/dist/types/components/Carousels/index.d.ts +7 -0
  9. package/dist/types/components/DropdownMenus/DropdownMenu/index.d.ts +60 -0
  10. package/dist/types/components/DropdownMenus/index.d.ts +11 -0
  11. package/dist/types/components/IconButtons/IconButton/index.d.ts +46 -0
  12. package/dist/types/components/IconButtons/index.d.ts +31 -0
  13. package/dist/types/components/Icons/index.d.ts +2 -1
  14. package/dist/types/components/Links/Link/index.d.ts +37 -0
  15. package/dist/types/components/Links/index.d.ts +8 -0
  16. package/dist/types/components/Ratings/Rating/index.d.ts +45 -0
  17. package/dist/types/components/Ratings/index.d.ts +15 -0
  18. package/dist/types/components/SelectableTiles/SelectableTile/index.d.ts +46 -0
  19. package/dist/types/components/SelectableTiles/SelectableTileGroup/index.d.ts +79 -0
  20. package/dist/types/components/SelectableTiles/index.d.ts +8 -0
  21. package/dist/types/components/Tables/Table/index.d.ts +60 -0
  22. package/dist/types/components/Tables/index.d.ts +7 -0
  23. package/dist/types/components/Tabs/Tabs/index.d.ts +52 -0
  24. package/dist/types/components/Tabs/index.d.ts +8 -0
  25. package/dist/types/components/Tags/Tag/index.d.ts +26 -0
  26. package/dist/types/components/Tags/index.d.ts +11 -0
  27. package/dist/types/components/index.d.ts +11 -0
  28. package/package.json +1 -1
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,{BorderCard:()=>Ve,Button:()=>Pe,ButtonThemes:()=>Se,ButtonTypes:()=>Ee,Card:()=>Ie,CardThemes:()=>Me,Checkbox:()=>Ya,CheckboxGroup:()=>nn,CheckboxGroupDirections:()=>$a,CheckboxThemes:()=>an,DatePicker:()=>Wn,DatePickerThemes:()=>Xn,Icon:()=>G,IconNames:()=>B,Input:()=>Je,InputThemes:()=>Ze,LeftNavbar:()=>ka,LeftNavbarThemes:()=>La,NavItem:()=>Da,NavList:()=>Oa,NavMenuContext:()=>la,Navbar:()=>ma,NavbarContext:()=>ua,NavbarThemes:()=>Pa,Radio:()=>Ma,RadioGroup:()=>Ua,RadioGroupDirections:()=>Fa,RadioThemes:()=>Ka,Select:()=>_n,SelectThemes:()=>Qn,Textarea:()=>bn,TextareaThemes:()=>yn,Toggle:()=>dn,ToggleThemes:()=>un,TopNavbar:()=>ha,TopNavbarThemes:()=>qa,getBorderCard:()=>Ke,getButtonThemeClass:()=>qe,getCardThemeClass:()=>Fe,getCheckboxThemeClass:()=>rn,getDatePickerThemeClass:()=>$n,getIconClass:()=>he,getInputThemeClass:()=>Ye,getLeftNavbarThemeClass:()=>Ga,getNavbarThemeClass:()=>Ba,getRadioThemeClass:()=>Za,getSelectThemeClass:()=>An,getTextareaThemeClass:()=>xn,getToggleThemeClass:()=>ln,getTopNavbarThemeClass:()=>Ra,useNavMenu:()=>va,useNavbar:()=>da});const n="namBd2yDO5uRnuiJiF4I",r="IezAhh3IOxZrbRaPnSuX",t="peAKuLVAiIXSFB_8weUX",i="fX0XkPg_VOwlCS_puohG",o="uRh5AMB7fHGMjymlSkIe",c="A61ABO8IXKvkyJ2iRq6l",s="nYNZP8pJf0SUq0ZPndyE",u="OOr9vC74FozQAPLK3TBF",d="jtiHB4J2Gd75DxgbExDU",l="htFKNG_lNNMADoynscvf",v="b41eXc_YG54TSjVcPdr3",m="iDCPPzPmlHXmY6DeRlrz",h="qSKheV1seun_M2zooNYG",p="neFnz7mqfjyob2IpBRAB",f="fMuDGJLmZu10m_5wuQwH",y="W1_8p2A4KoAru1W3fQQt",b="tm0XixvT9lg82S8vBQ7H",x="s4WqNjDDGgeMddVjGC39",g="bedJB1k7F24TZZ14mvGS",N="PgNn5YrHhpkkzKgbQGHw",j="g7BsZUvE5UmvGR7yux1n",k="oCPQLbmQjjlb4QfF6N3z",C="w1jjKytmOVrGE_OOWN24",w="wxOwGgByggkSrx_yH1Mm",T="jyv2Pn76yjv7yHzme6Vi",O="l_u5YpNTZO_QLR2ODTsM",S="D3lpa3rGkDORSZEMO4Pu",E="ptOAordfG6nUqt1RGPGD",P="tcijTEF2DcjdTgUYgwm_",q="Sb74MmtzlQ4r_auGli10",L="iRPlBCtkk8OZ1fVrK6Ac",D=require("react/jsx-runtime");var B,R=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return e.filter(function(e){return e}).join(" ")},G=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,o=R(i?he({icon:i}):"",t);return(0,D.jsx)("span",{id:n,className:o})},H=n,Q=j,z=N,_=m,A=l,M=d,V=i,I=r,F=T,K=c,U=p,Z=v,J=x,Y=b,X=q,W=w,$=g,ee=C,ae=h,ne=S,re=O,te=E,ie=P,oe=o,ce=k,se=y,ue=t,de=L,le=f,ve=u,me=s;!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"}(B||(B={}));var he=function(e){switch(e.icon){case"perfil":return"".concat(H," ").concat(Q);case"password":return"".concat(H," ").concat(z);case"google":return"".concat(H," ").concat(_);case"facebook":return"".concat(H," ").concat(A);case"dashboard":return"".concat(H," ").concat(M);case"calendario":return"".concat(H," ").concat(V);case"administracionDeUsuario":return"".concat(H," ").concat(I);case"rutas":return"".concat(H," ").concat(F);case"chat":return"".concat(H," ").concat(K);case"informes":return"".concat(H," ").concat(U);case"flecha":return"".concat(H," ").concat(Z);case"nuevaRuta":return"".concat(H," ").concat(J);case"notificacion":return"".concat(H," ").concat(Y);case"usuarioDentroApp":return"".concat(H," ").concat(X);case"rutaNueva":return"".concat(H," ").concat(W);case"nuevaRuta2":return"".concat(H," ").concat($);case"rutaCompletada":return"".concat(H," ").concat(ee);case"hoy":return"".concat(H," ").concat(ae);case"rutasProgramadas":return"".concat(H," ").concat(ne);case"rutasEliminadas":return"".concat(H," ").concat(re);case"rutasReprogramadas":return"".concat(H," ").concat(te);case"search":return"".concat(H," ").concat(ie);case"camion":return"".concat(H," ").concat(oe);case"pickup":return"".concat(H," ").concat(ce);case"motocicleta":return"".concat(H," ").concat(se);case"barco":return"".concat(H," ").concat(ue);case"varios":return"".concat(H," ").concat(de);case"menu":return"".concat(H," ").concat(le);case"chevronDown":return"".concat(H," ").concat(ve);case"check":return"".concat(H," ").concat(me);default:return""}};const pe="UxC2t97LIIISx7e71_3R",fe="JJF9nOwFrn4f4Agjebcs",ye="cwK5avZb5ShuVPiPWB8Q",be="CFpiqnX4jq_EltxkwEvy",xe="yjB0ArEAyeYU6_u7zKsQ",ge="Djr8Yh2IQcUcgjSZ_WQ5",Ne="uyBaWoSnHEIxM4x7jgQw",je="qWYltwKufw7ZliVlCT9g",ke="oQRCOHaGpuh207HQzerc",Ce="HtF5k4mwsNW1v9YG7qd2",we="Pg7VF5nFKczFtA3r5E88",Te="wXyKJ8kY_42bOcyetwnC",Oe="dLCzLEcc0jSLJgsTyHoM";var Se,Ee,Pe=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Se.primary:c,u=e.hardBorder,d=void 0===u||u,l=e.type,v=void 0===l?Ee.button:l,m=e.onClick,h=R(pe,qe({theme:s}),d?fe:ye,o);return(0,D.jsx)("button",{id:n,className:h,type:v,onClick:m,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"}(Se||(Se={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Ee||(Ee={}));var qe=function(e){switch(e.theme){case Se.primary:return be;case Se.secondary:return xe;case Se.tertiary:return ge;case Se.quaternary:return Ne;case Se.quinary:return je;case Se.primaryOutline:return ke;case Se.secondaryOutline:return Ce;case Se.tertiaryOutline:return we;case Se.quaternaryOutline:return Te;case Se.quinaryOutline:return Oe;default:return""}};const Le="pAD4BifhMTLUZvCJxyOx",De="a2VHzo7AbMVmPMGC3mSx",Be="W0VuH9q0UPwsyVsTQQJe",Re="SIPeMNZqcOWCkESf4cPg",Ge="hPcmh2SHmHeXnUxGP93s",He="DcZJoe6Kl4lnV3k4i7nV",Qe="LH35do5a6HPSjPusBT_z",ze="juXoWoLQrRgOgzapK6H9",_e="tPCdlPqN6fB69GmnQ181",Ae="nsb5sNsicCrkfBe9SIFs";var Me,Ve,Ie=function(e){var a=e.children,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?Me.primary:i,c=e.border,s=void 0===c?Ve.soft:c,u=e.title,d=R(Le,Fe({theme:o}),Ke({border:s}),t);return(0,D.jsxs)("div",{className:d,children:[u&&(0,D.jsx)("div",{className:De,children:(0,D.jsx)("h5",{className:Re,children:u})}),(0,D.jsx)("div",{className:Be,children:n})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(Me||(Me={})),function(e){e.soft="soft",e.hard="hard"}(Ve||(Ve={}));var Fe=function(e){switch(e.theme){case"primary":return Qe;case"secondary":return ze;case"tertiary":return _e;case"quaternary":return Ae;default:return""}},Ke=function(e){switch(e.border){case"soft":return Ge;case"hard":return He;default:return""}};const Ue={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var Ze,Je=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.type,o=void 0===i?"text":i,c=e.theme,s=void 0===c?Ze.primary:c,u=e.placeholder,d=void 0===u?"":u,l=e.hardBorder,v=void 0!==l&&l,m=e.icon,h=e.onChange,p=void 0===h?function(){}:h,f=R(Ue["input-common"],Ye({theme:s}),v?Ue["input-border-hard"]:"",t,m?Ue["input-with-icon"]:"");return(0,D.jsxs)("div",{className:Ue.relative,children:[(0,D.jsx)("input",{id:n,className:f,placeholder:d,type:o,onChange:p}),m&&(0,D.jsx)(G,{className:Ue["icon-input"],icon:m})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(Ze||(Ze={}));var Ye=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return Ue["input-secondary"];case"tertiary":return Ue["input-tertiary"]}};const Xe="FnQHiSW9NTFa3WlXGoCc",We="NatMJzDzTApsQaVDAagx",$e="qY4Y2bWaIDQFsSw6KaT5",ea="zguwwN6hze6uapnqp5Ni",aa="ko1cAltyF24Od59He2SS",na="kpCx3tGL8Ty2NT_5o1mJ",ra="F6hI7ZfLokc9h5jkh6IL",ta="qlSGENr4s2AUMMLzL8AR",ia="RY7dvVQ6fbBnjtgy0igh",oa="OpF1ocsD_5dn_993DhqT",ca="FSuEOctgnc2BHuB5nXoQ",sa=require("react");var ua=(0,sa.createContext)(void 0),da=function(){var e;return null!==(e=(0,sa.useContext)(ua))&&void 0!==e?e:{isOpen:!1,toggle:function(){},setOpen:function(){},isExpanded:!1,toggleExpanded:function(){},isMobile:!1}},la=(0,sa.createContext)("accordion"),va=function(){return(0,sa.useContext)(la)},ma=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Pa.primary:c,u=e.defaultOpen,d=void 0!==u&&u,l=e.defaultExpanded,v=void 0!==l&&l,m=(0,sa.useState)(d),h=m[0],p=m[1],f=(0,sa.useState)(v),y=f[0],b=f[1],x=(0,sa.useState)(!1),g=x[0],N=x[1];(0,sa.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,sa.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 j=(0,sa.useCallback)(function(){return p(function(e){return!e})},[]),k=(0,sa.useCallback)(function(e){return p(e)},[]),C=(0,sa.useCallback)(function(){return b(function(e){return!e})},[]),w={isOpen:h,toggle:j,setOpen:k,isExpanded:y,toggleExpanded:C,isMobile:g},T=R(Xe,Ba({theme:s}),o);return(0,D.jsx)(ua.Provider,{value:w,children:(0,D.jsx)("nav",{id:n,className:T,children:t})})},ha=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?qa.primary:c,u=e.brand,d=e.actions,l=e.menuIcon,v=void 0===l?B.menu:l,m=e.hideMenuToggle,h=void 0!==m&&m,p=da(),f=p.isOpen,y=p.toggle,b=p.isMobile?"accordion":"dropdown",x=R($e,Ra({theme:s}),o),g=R(ra,f?ta:ia);return(0,D.jsxs)("header",{id:n,className:x,children:[(0,D.jsxs)("div",{className:ea,children:[u&&(0,D.jsx)("div",{className:na,children:u}),!h&&(0,D.jsx)("button",{type:"button","aria-label":"Toggle menu",className:aa,onClick:y,children:(0,D.jsx)(G,{icon:v})})]}),(0,D.jsx)(la.Provider,{value:b,children:(0,D.jsx)("div",{className:g,children:t})}),d&&(0,D.jsx)("div",{className:oa,children:d})]})};const pa="lB8REa7QbS00_HY39qlv",fa="sSfHpXGaWQJlKsMHHaNz",ya="KUAQgA5jKT0cpt4YT9My",ba="VHv_24fnWV6U7utpmyOv",xa="xz7mio21qHuZpdmkS_Ql",ga="mecTZPfsBQEB8_dRnBQz",Na="B9dyOyj_V1ejlMhgfn9g",ja="ZddvyvLdn43wm9cl0jwZ";var ka=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?La.primary:c,u=e.pinToggleIcon,d=void 0===u?B.flecha:u,l=e.hidePinToggle,v=void 0!==l&&l,m=da(),h=m.isOpen,p=m.isExpanded,f=m.toggleExpanded,y=R(pa,h?fa:ya,p?xa:ba,Ga({theme:s}),o);return(0,D.jsxs)("aside",{id:n,className:y,children:[(0,D.jsx)(la.Provider,{value:"accordion",children:t}),!v&&(0,D.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:ga,onClick:f,children:(0,D.jsx)(G,{icon:d,className:R(Na,p?ja:"")})})]})};const Ca="huVncZ_cd_BiHgGKvG2R",wa="OhBh129QqaKYIl1RoRRQ",Ta="mpssuMH2mFjNpZnuMaOp";var Oa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=e.className,i=void 0===t?"":t,o=e.level,c=void 0===o?1:o,s=va(),u=R(Ca,"dropdown"===s&&1===c?Ta:wa,i);return(0,D.jsx)("ul",{id:n,className:u,children:sa.Children.map(r,function(e){return(0,sa.isValidElement)(e)?(0,sa.cloneElement)(e,{level:c}):e})})};const Sa=require("react-router-dom"),Ea={"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 Pa,qa,La,Da=function(e){var a=e.id,n=void 0===a?"":a,r=e.label,t=void 0===r?"":r,i=e.icon,o=e.children,c=e.className,s=void 0===c?"":c,u=e.active,d=void 0!==u&&u,l=e.to,v=e.href,m=e.onClick,h=e.defaultExpanded,p=void 0!==h&&h,f=e.level,y=void 0===f?1:f,b=va(),x=da().isExpanded,g=(0,sa.useState)(p),N=g[0],j=g[1],k=!!o&&y<3,C=y+1,w="accordion"===b&&!x,T=d&&y>1,O=d&&1===y,S=R(Ea["nav-item-label"],w?Ea["nav-item-label-collapsed"]:""),E=R(Ea["nav-item"],"accordion"===b?Ea["nav-item-l".concat(y)]:Ea["nav-item-inline"],w?Ea["nav-item-collapsed"]:"",T?Ea["nav-item-active"]:"",s),P=function(e){k&&j(function(e){return!e}),m&&m(e)},q=(0,D.jsxs)(D.Fragment,{children:[i&&(0,D.jsx)(G,{icon:i,className:R(Ea["nav-item-icon"],O?Ea["nav-item-icon-active"]:"")}),t&&(0,D.jsx)("span",{className:S,children:t}),k&&(0,D.jsx)(G,{icon:B.flecha,className:R(Ea["nav-item-chevron"],w?Ea["nav-item-chevron-collapsed"]:"",N?Ea["is-open"]:"")})]}),L=l?(0,D.jsx)(Sa.Link,{to:l,id:n,className:E,onClick:P,children:q}):v?(0,D.jsx)("a",{id:n,href:v,className:E,onClick:P,children:q}):(0,D.jsx)("button",{id:n,type:"button",className:E,onClick:P,children:q}),H=(0,sa.isValidElement)(o)?(0,sa.cloneElement)(o,{level:C}):o;return(0,D.jsxs)("li",{className:Ea["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?H:(0,D.jsx)("div",{className:R(Ea["nav-dropdown-panel"],1===y?Ea["nav-dropdown-below"]:Ea["nav-dropdown-side"]),children:H}))]})};!function(e){e.primary="primary"}(Pa||(Pa={})),function(e){e.primary="primary",e.dark="dark"}(qa||(qa={})),function(e){e.primary="primary"}(La||(La={}));var Ba=function(e){return e.theme===Pa.primary?We:""},Ra=function(e){switch(e.theme){case qa.primary:return"";case qa.dark:return ca;default:return""}},Ga=function(e){e.theme;return La.primary,""};const Ha="GXbNNfaRE3TyRdoGrwb7",Qa="JJlpwqbl4lBtQC3RnNnw",za="YHIztbHCIlsXLL9Yn8ww",_a="KDNJqjBclhbRaDk4mBr6",Aa="EhYmjqYe_GtBncOd1xD9";var Ma=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ka.primary:t,o=e.name,c=e.value,s=e.label,u=e.checked,d=e.defaultChecked,l=e.disabled,v=void 0!==l&&l,m=e.onChange,h=void 0===m?function(){}:m,p=R(Ha,Za({theme:i}),v?Aa:"",r);return(0,D.jsxs)("label",{className:p,children:[(0,D.jsx)("input",{id:a,className:Qa,type:"radio",name:o,value:c,checked:u,defaultChecked:d,disabled:v,onChange:h}),(0,D.jsx)("span",{className:za,"aria-hidden":"true"}),s&&(0,D.jsx)("span",{className:_a,children:s})]})};const Va="QBLrCrEV0gM6Kw5pF1St",Ia="RU1XYIJgTOpk_L6PLAhf";var Fa;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(Fa||(Fa={}));var Ka,Ua=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ka.primary:t,o=e.name,c=e.options,s=void 0===c?[]:c,u=e.value,d=e.defaultValue,l=void 0===d?"":d,v=e.direction,m=void 0===v?Fa.vertical:v,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,sa.useState)(l),x=b[0],g=b[1],N=void 0!==u?u:x,j=function(e){void 0===u&&g(e.target.value),y(e)},k=R(Va,m===Fa.horizontal?Ia:"",r);return(0,D.jsx)("div",{id:a,role:"radiogroup",className:k,children:s.map(function(e){return(0,D.jsx)(Ma,{theme:i,name:o,value:e.value,label:e.label,checked:N===e.value,disabled:p||e.disabled,onChange:j},e.value)})})};!function(e){e.primary="primary"}(Ka||(Ka={}));var Za=function(e){e.theme;return""};const Ja={"checkbox-label":"zjjHhR8Wrs1uEuvkvAET","checkbox-input":"jgDLO2lj8lIL4n2aUvd4","checkbox-box":"tBBM2Tox6G2Lc1HgNzpm","checkbox-check":"pwzoSwjqGtatjDWB8YwK","checkbox-dash":"tV_vzpZfKvHlPlIiWYQj","checkbox-disabled":"ntiFyXsULeH5Q21zjZaP"};var Ya=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?an.primary:t,o=e.name,c=e.value,s=e.label,u=e.checked,d=e.defaultChecked,l=e.indeterminate,v=void 0!==l&&l,m=e.disabled,h=void 0!==m&&m,p=e.onChange,f=void 0===p?function(){}:p,y=(0,sa.useRef)(null);(0,sa.useEffect)(function(){y.current&&(y.current.indeterminate=v)},[v]);var b=R(Ja["checkbox-label"],rn({theme:i}),h?Ja["checkbox-disabled"]:"",r);return(0,D.jsxs)("label",{className:b,children:[(0,D.jsx)("input",{ref:y,id:a,className:Ja["checkbox-input"],type:"checkbox",name:o,value:c,checked:u,defaultChecked:d,disabled:h,onChange:f}),(0,D.jsxs)("span",{className:Ja["checkbox-box"],"aria-hidden":"true",children:[(0,D.jsx)(G,{className:Ja["checkbox-check"],icon:B.check}),(0,D.jsx)("span",{className:Ja["checkbox-dash"]})]}),s&&(0,D.jsx)("span",{className:Ja["checkbox-text"],children:s})]})};const Xa="moROzwaINmGAqyCdeqUb",Wa="uGMTsBF__2RgYnA6S_ae";var $a,en=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"}($a||($a={}));var an,nn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?an.primary:t,o=e.name,c=e.options,s=void 0===c?[]:c,u=e.values,d=e.defaultValues,l=void 0===d?[]:d,v=e.direction,m=void 0===v?$a.vertical:v,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,sa.useState)(l),x=b[0],g=b[1],N=void 0!==u?u:x,j=R(Xa,m===$a.horizontal?Wa:"",r);return(0,D.jsx)("div",{id:a,role:"group",className:j,children:s.map(function(e){return(0,D.jsx)(Ya,{theme:i,name:o,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}):en(en([],N,!0),[a],!1),void 0===u&&g(n),void y(n);var a,n}},e.value)})})};!function(e){e.primary="primary"}(an||(an={}));var rn=function(e){e.theme;return""};const tn="zegNFU1IXq2D0NAslGyj",on="rGbn8Dr7CvRzb5aBaIm6",cn="oHn7xu1kuT37RPqDSpc0",sn="VofOiaYafh2S6lqJD62h";var un,dn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?un.primary:t,o=e.checked,c=e.defaultChecked,s=void 0!==c&&c,u=e.label,d=e.children,l=void 0===d?"Activar":d,v=e.disabled,m=void 0!==v&&v,h=e.onChange,p=void 0===h?function(){}:h,f=(0,sa.useState)(s),y=f[0],b=f[1],x=void 0!==o?o:y,g=R(cn,ln({theme:i}),x?sn:"",r);return(0,D.jsxs)("span",{className:tn,children:[u&&(0,D.jsx)("span",{className:on,children:u}),(0,D.jsx)("button",{id:a,type:"button",role:"switch","aria-checked":x,disabled:m,className:g,onClick:function(){void 0===o&&b(!x),p(!x)},children:l})]})};!function(e){e.primary="primary"}(un||(un={}));var ln=function(e){e.theme;return""};const vn="kkj7ttLeFO1S4d8mM_Pn",mn="a_HuZeJ_oVLoqS7eukOK",hn="OluyRygiDnbSKaGwqvJW",pn="h4zm0kOhR9ZxkSdTB7GN",fn="pfLJgfyLJlYmzTol8bA5";var yn,bn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?yn.primary:t,o=e.value,c=e.defaultValue,s=e.placeholder,u=void 0===s?"":s,d=e.rows,l=void 0===d?4:d,v=e.autoResize,m=void 0!==v&&v,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=R(vn,xn({theme:i}),p?pn:"",m?fn:"",r);return(0,D.jsx)("textarea",{id:a,className:g,value:o,defaultValue:c,placeholder:u,rows:l,disabled:y,onChange:function(e){m&&(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"}(yn||(yn={}));var xn=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return mn;case"tertiary":return hn}};const gn="WihApGsGcC1E22NRG0P5",Nn="fUrHs64HZzxc8wuJx0Sb",jn="LXJF8zINUAOvCEJtkK8Q",kn="Wb8G9wRU_hGXsgxvtTI1",Cn="EkMWU0uN6UWfqy9bLsBt",wn="jFyLmbuHrBcChK1PCUAW",Tn="toX_UmDpZNE2kruEXl8S",On="H1zoebUk7LJVtn0H0Zu_",Sn="i_2UnWCN655j4bednibQ",En="SITJboRY_HWw8TaUHpkS",Pn="c4nJQCuqPERLXusqZmTf",qn="rVjFTHZ3d6gzTyGq1wOq",Ln="rLYHgyXqKJfVOrHCTUHr",Dn="_aOV8eUPNj11n_VY0NAB",Bn="gFuL19WEJXow8Pop913u",Rn="gdPP8CuH6BxL79m2ly8i",Gn="tm2CatA44Mbqd0CMaXp7",Hn="HfTjK7bgJmXNcDqfhL0J";var Qn,zn=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?Qn.primary:t,o=e.options,c=void 0===o?[]:o,s=e.multiple,u=void 0!==s&&s,d=e.value,l=e.defaultValue,v=void 0===l?"":l,m=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,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,O=e.onChange,S=void 0===O?function(){}:O,E=(0,sa.useState)(!1),P=E[0],q=E[1],L=(0,sa.useState)(""),H=L[0],Q=L[1],z=(0,sa.useState)(0),_=z[0],A=z[1],M=(0,sa.useState)(v),V=M[0],I=M[1],F=(0,sa.useState)(p),K=F[0],U=F[1],Z=(0,sa.useRef)(null),J=(0,sa.useRef)(null),Y=(0,sa.useId)(),X=void 0!==d?d:V,W=void 0!==m?m:K,$=(u?c.filter(function(e){return W.includes(e.value)}):c.filter(function(e){return e.value===X})).map(function(e){return e.label}).join(", "),ee=x&&H?c.filter(function(e){return e.label.toLowerCase().includes(H.toLowerCase())}):c,ae=function(e){return u?W.includes(e.value):e.value===X};(0,sa.useEffect)(function(){if(P){var e=function(e){Z.current&&!Z.current.contains(e.target)&&(q(!1),Q(""))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[P]),(0,sa.useEffect)(function(){var e;P&&x&&(null===(e=J.current)||void 0===e||e.focus())},[P,x]);var ne=function(){T||(q(!0),A(0))},re=function(){q(!1),Q("")},te=function(e){if(!e.disabled)if(u){var a=W.includes(e.value)?W.filter(function(a){return a!==e.value}):zn(zn([],W,!0),[e.value],!1);void 0===m&&U(a),S(a)}else void 0===d&&I(e.value),S(e.value),re()},ie=R(Nn,An({theme:i}),C?Rn:"",T?Gn:"");return(0,D.jsxs)("div",{id:a,ref:Z,className:R(gn,r),children:[(0,D.jsxs)("div",{role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-controls":Y,"aria-disabled":T,tabIndex:T?-1:0,className:ie,onClick:function(){return P?re():ne()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),P?A(function(e){return Math.min(e+1,ee.length-1)}):ne();break;case"ArrowUp":e.preventDefault(),A(function(e){return Math.max(e-1,0)});break;case"Enter":e.preventDefault(),P?ee[_]&&te(ee[_]):ne();break;case"Escape":re();break;case" ":P||x||(e.preventDefault(),ne())}},children:[g&&(0,D.jsx)(G,{className:wn,icon:g}),x&&P?(0,D.jsx)("input",{ref:J,className:Cn,value:H,placeholder:$||y,onChange:function(e){Q(e.target.value),A(0)},onClick:function(e){return e.stopPropagation()}}):(0,D.jsx)("span",{className:R(jn,$?"":kn),children:$||y}),(0,D.jsx)(G,{className:Tn,icon:B.chevronDown})]}),P&&(0,D.jsxs)("ul",{id:Y,role:"listbox","aria-multiselectable":u,className:On,children:[0===ee.length&&(0,D.jsx)("li",{className:Bn,children:j}),ee.map(function(e,a){return(0,D.jsxs)("li",{role:"option","aria-selected":ae(e),className:R(Sn,a===_?Pn:"",ae(e)?qn:"",e.disabled?Dn:""),onMouseEnter:function(){return A(a)},onClick:function(a){a.stopPropagation(),te(e)},children:[(0,D.jsx)("span",{className:En,children:e.label}),ae(e)&&(0,D.jsx)(G,{className:Ln,icon:B.check})]},e.value)})]})]})};!function(e){e.primary="primary",e.dark="dark"}(Qn||(Qn={}));var An=function(e){switch(e.theme){case"primary":default:return"";case"dark":return Hn}};const Mn="HVj3aNmDW6tJTr0uageu",Vn="hW1Ev2Vff5FMrAuQdu5Q",In="ZI5_XWdK17MXXnYMh5O_",Fn="PhpcwVhP56ggFwiGvuAl",Kn="ndBtMO52dtAMHPla372a",Un="YxneKx82bAQhUpOy8Adj",Zn="rEwN2ippBOfwtYrsL8xL",Jn="QGvk3ZseIqrsJEo4c5E8",Yn="cS9mLM8C2odtqKRL50qU";var Xn,Wn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Xn.primary:t,o=e.value,c=e.defaultValue,s=void 0===c?"":c,u=e.min,d=e.max,l=e.placeholder,v=void 0===l?"":l,m=e.icon,h=void 0===m?B.calendario:m,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,N=(0,sa.useRef)(null),j=(0,sa.useState)(s),k=j[0],C=j[1],w=void 0!==o?o:k,T=R(Mn,$n({theme:i}),f?Jn:"",b?Yn:"",r);return(0,D.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,D.jsx)(G,{className:Vn,icon:h}),(0,D.jsxs)("span",{className:In,children:[(0,D.jsx)("input",{ref:N,id:a,className:R(Fn,!w&&v?Kn:""),type:"date",value:w,min:u,max:d,disabled:b,onChange:function(e){void 0===o&&C(e.target.value),g(e)}}),!w&&v&&(0,D.jsx)("span",{className:Un,children:v})]}),(0,D.jsx)(G,{className:Zn,icon:B.chevronDown})]})};!function(e){e.primary="primary"}(Xn||(Xn={}));var $n=function(e){e.theme;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:()=>dr,AvatarSizes:()=>ur,AvatarThemes:()=>lr,Badge:()=>jr,BadgeVariants:()=>Nr,BorderCard:()=>Ue,Button:()=>Oe,ButtonThemes:()=>Le,ButtonTypes:()=>Ee,Card:()=>We,CardThemes:()=>Qe,Carousel:()=>ii,CarouselThemes:()=>ti,Checkbox:()=>Xa,CheckboxGroup:()=>tn,CheckboxGroupDirections:()=>an,CheckboxThemes:()=>rn,DatePicker:()=>er,DatePickerThemes:()=>$n,DropdownMenu:()=>ji,DropdownMenuAligns:()=>Ni,DropdownMenuThemes:()=>gi,Icon:()=>I,IconButton:()=>Xr,IconButtonShapes:()=>Zr,IconButtonSizes:()=>Fr,IconButtonThemes:()=>Jr,IconButtonTypes:()=>Kr,IconNames:()=>D,Input:()=>Ke,InputThemes:()=>Ze,LeftNavbar:()=>Ca,LeftNavbarThemes:()=>Ba,Link:()=>ot,LinkThemes:()=>it,NavItem:()=>Da,NavList:()=>Aa,NavMenuContext:()=>va,Navbar:()=>fa,NavbarContext:()=>da,NavbarThemes:()=>Oa,Radio:()=>Qa,RadioGroup:()=>Fa,RadioGroupDirections:()=>Ya,RadioThemes:()=>Ja,Rating:()=>Nt,RatingSizes:()=>gt,RatingThemes:()=>xt,Select:()=>Hn,SelectThemes:()=>Rn,SelectableTile:()=>Rt,SelectableTileGroup:()=>Wt,SelectableTileGroupDirections:()=>_t,SelectableTileThemes:()=>Ut,Table:()=>qt,TableThemes:()=>Ot,Tabs:()=>qi,TabsVariants:()=>Oi,Tag:()=>Br,TagThemes:()=>qr,Textarea:()=>gn,TextareaThemes:()=>xn,Toggle:()=>mn,ToggleThemes:()=>dn,TopNavbar:()=>pa,TopNavbarThemes:()=>qa,getAvatarSizeClass:()=>vr,getAvatarThemeClass:()=>mr,getBadgeVariantClass:()=>kr,getBorderCard:()=>Je,getButtonThemeClass:()=>qe,getCardThemeClass:()=>Ye,getCarouselThemeClass:()=>oi,getCheckboxThemeClass:()=>on,getDatePickerThemeClass:()=>ar,getDropdownMenuThemeClass:()=>ki,getIconButtonShapeClass:()=>at,getIconButtonSizeClass:()=>et,getIconButtonThemeClass:()=>$r,getIconClass:()=>pe,getInputThemeClass:()=>Xe,getLeftNavbarThemeClass:()=>Pa,getLinkThemeClass:()=>ct,getNavbarThemeClass:()=>Ma,getRadioThemeClass:()=>Za,getRatingSizeClass:()=>kt,getRatingThemeClass:()=>jt,getSelectThemeClass:()=>_n,getSelectableTileThemeClass:()=>Yt,getTableThemeClass:()=>Bt,getTabsVariantClass:()=>Bi,getTagThemeClass:()=>Dr,getTextareaThemeClass:()=>Nn,getToggleThemeClass:()=>vn,getTopNavbarThemeClass:()=>Ia,useNavMenu:()=>ha,useNavbar:()=>ma});const n="namBd2yDO5uRnuiJiF4I",r="IezAhh3IOxZrbRaPnSuX",t="peAKuLVAiIXSFB_8weUX",i="fX0XkPg_VOwlCS_puohG",o="uRh5AMB7fHGMjymlSkIe",c="A61ABO8IXKvkyJ2iRq6l",s="nYNZP8pJf0SUq0ZPndyE",l="OOr9vC74FozQAPLK3TBF",u="jtiHB4J2Gd75DxgbExDU",d="htFKNG_lNNMADoynscvf",m="b41eXc_YG54TSjVcPdr3",v="iDCPPzPmlHXmY6DeRlrz",h="qSKheV1seun_M2zooNYG",f="neFnz7mqfjyob2IpBRAB",p="fMuDGJLmZu10m_5wuQwH",y="W1_8p2A4KoAru1W3fQQt",b="tm0XixvT9lg82S8vBQ7H",x="s4WqNjDDGgeMddVjGC39",g="bedJB1k7F24TZZ14mvGS",N="PgNn5YrHhpkkzKgbQGHw",j="g7BsZUvE5UmvGR7yux1n",k="oCPQLbmQjjlb4QfF6N3z",w="w1jjKytmOVrGE_OOWN24",C="wxOwGgByggkSrx_yH1Mm",T="jyv2Pn76yjv7yHzme6Vi",S="l_u5YpNTZO_QLR2ODTsM",z="D3lpa3rGkDORSZEMO4Pu",A="ptOAordfG6nUqt1RGPGD",L="tcijTEF2DcjdTgUYgwm_",E="odUpHd2U2lDHRINyeow1",O="Sb74MmtzlQ4r_auGli10",q="iRPlBCtkk8OZ1fVrK6Ac",B=require("react/jsx-runtime");var D,M=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return e.filter(function(e){return e}).join(" ")},I=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,o=M(i?pe({icon:i}):"",t);return(0,B.jsx)("span",{id:n,className:o})},P=n,V=j,R=N,G=v,H=d,_=u,Q=i,U=r,W=T,Y=c,J=f,F=m,Z=x,K=b,X=O,$=C,ee=g,ae=w,ne=h,re=z,te=S,ie=A,oe=L,ce=o,se=k,le=y,ue=t,de=q,me=p,ve=l,he=s,fe=E;!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"}(D||(D={}));var pe=function(e){switch(e.icon){case"perfil":return"".concat(P," ").concat(V);case"password":return"".concat(P," ").concat(R);case"google":return"".concat(P," ").concat(G);case"facebook":return"".concat(P," ").concat(H);case"dashboard":return"".concat(P," ").concat(_);case"calendario":return"".concat(P," ").concat(Q);case"administracionDeUsuario":return"".concat(P," ").concat(U);case"rutas":return"".concat(P," ").concat(W);case"chat":return"".concat(P," ").concat(Y);case"informes":return"".concat(P," ").concat(J);case"flecha":return"".concat(P," ").concat(F);case"nuevaRuta":return"".concat(P," ").concat(Z);case"notificacion":return"".concat(P," ").concat(K);case"usuarioDentroApp":return"".concat(P," ").concat(X);case"rutaNueva":return"".concat(P," ").concat($);case"nuevaRuta2":return"".concat(P," ").concat(ee);case"rutaCompletada":return"".concat(P," ").concat(ae);case"hoy":return"".concat(P," ").concat(ne);case"rutasProgramadas":return"".concat(P," ").concat(re);case"rutasEliminadas":return"".concat(P," ").concat(te);case"rutasReprogramadas":return"".concat(P," ").concat(ie);case"search":return"".concat(P," ").concat(oe);case"camion":return"".concat(P," ").concat(ce);case"pickup":return"".concat(P," ").concat(se);case"motocicleta":return"".concat(P," ").concat(le);case"barco":return"".concat(P," ").concat(ue);case"varios":return"".concat(P," ").concat(de);case"menu":return"".concat(P," ").concat(me);case"chevronDown":return"".concat(P," ").concat(ve);case"check":return"".concat(P," ").concat(he);case"star":return"".concat(P," ").concat(fe);default:return""}};const ye="UxC2t97LIIISx7e71_3R",be="JJF9nOwFrn4f4Agjebcs",xe="cwK5avZb5ShuVPiPWB8Q",ge="CFpiqnX4jq_EltxkwEvy",Ne="yjB0ArEAyeYU6_u7zKsQ",je="Djr8Yh2IQcUcgjSZ_WQ5",ke="uyBaWoSnHEIxM4x7jgQw",we="qWYltwKufw7ZliVlCT9g",Ce="oQRCOHaGpuh207HQzerc",Te="HtF5k4mwsNW1v9YG7qd2",Se="Pg7VF5nFKczFtA3r5E88",ze="wXyKJ8kY_42bOcyetwnC",Ae="dLCzLEcc0jSLJgsTyHoM";var Le,Ee,Oe=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Le.primary:c,l=e.hardBorder,u=void 0===l||l,d=e.type,m=void 0===d?Ee.button:d,v=e.onClick,h=M(ye,qe({theme:s}),u?be:xe,o);return(0,B.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"}(Le||(Le={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Ee||(Ee={}));var qe=function(e){switch(e.theme){case Le.primary:return ge;case Le.secondary:return Ne;case Le.tertiary:return je;case Le.quaternary:return ke;case Le.quinary:return we;case Le.primaryOutline:return Ce;case Le.secondaryOutline:return Te;case Le.tertiaryOutline:return Se;case Le.quaternaryOutline:return ze;case Le.quinaryOutline:return Ae;default:return""}};const Be="pAD4BifhMTLUZvCJxyOx",De="a2VHzo7AbMVmPMGC3mSx",Me="W0VuH9q0UPwsyVsTQQJe",Ie="SIPeMNZqcOWCkESf4cPg",Pe="hPcmh2SHmHeXnUxGP93s",Ve="DcZJoe6Kl4lnV3k4i7nV",Re="LH35do5a6HPSjPusBT_z",Ge="juXoWoLQrRgOgzapK6H9",He="tPCdlPqN6fB69GmnQ181",_e="nsb5sNsicCrkfBe9SIFs";var Qe,Ue,We=function(e){var a=e.children,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?Qe.primary:i,c=e.border,s=void 0===c?Ue.soft:c,l=e.title,u=M(Be,Ye({theme:o}),Je({border:s}),t);return(0,B.jsxs)("div",{className:u,children:[l&&(0,B.jsx)("div",{className:De,children:(0,B.jsx)("h5",{className:Ie,children:l})}),(0,B.jsx)("div",{className:Me,children:n})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(Qe||(Qe={})),function(e){e.soft="soft",e.hard="hard"}(Ue||(Ue={}));var Ye=function(e){switch(e.theme){case"primary":return Re;case"secondary":return Ge;case"tertiary":return He;case"quaternary":return _e;default:return""}},Je=function(e){switch(e.border){case"soft":return Pe;case"hard":return Ve;default:return""}};const Fe={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var Ze,Ke=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.type,o=void 0===i?"text":i,c=e.theme,s=void 0===c?Ze.primary:c,l=e.placeholder,u=void 0===l?"":l,d=e.hardBorder,m=void 0!==d&&d,v=e.icon,h=e.onChange,f=void 0===h?function(){}:h,p=M(Fe["input-common"],Xe({theme:s}),m?Fe["input-border-hard"]:"",t,v?Fe["input-with-icon"]:"");return(0,B.jsxs)("div",{className:Fe.relative,children:[(0,B.jsx)("input",{id:n,className:p,placeholder:u,type:o,onChange:f}),v&&(0,B.jsx)(I,{className:Fe["icon-input"],icon:v})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(Ze||(Ze={}));var Xe=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return Fe["input-secondary"];case"tertiary":return Fe["input-tertiary"]}};const $e="FnQHiSW9NTFa3WlXGoCc",ea="NatMJzDzTApsQaVDAagx",aa="qY4Y2bWaIDQFsSw6KaT5",na="zguwwN6hze6uapnqp5Ni",ra="ko1cAltyF24Od59He2SS",ta="kpCx3tGL8Ty2NT_5o1mJ",ia="F6hI7ZfLokc9h5jkh6IL",oa="qlSGENr4s2AUMMLzL8AR",ca="RY7dvVQ6fbBnjtgy0igh",sa="OpF1ocsD_5dn_993DhqT",la="FSuEOctgnc2BHuB5nXoQ",ua=require("react");var da=(0,ua.createContext)(void 0),ma=function(){var e;return null!==(e=(0,ua.useContext)(da))&&void 0!==e?e:{isOpen:!1,toggle:function(){},setOpen:function(){},isExpanded:!1,toggleExpanded:function(){},isMobile:!1}},va=(0,ua.createContext)("accordion"),ha=function(){return(0,ua.useContext)(va)},fa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Oa.primary:c,l=e.defaultOpen,u=void 0!==l&&l,d=e.defaultExpanded,m=void 0!==d&&d,v=(0,ua.useState)(u),h=v[0],f=v[1],p=(0,ua.useState)(m),y=p[0],b=p[1],x=(0,ua.useState)(!1),g=x[0],N=x[1];(0,ua.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,ua.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 j=(0,ua.useCallback)(function(){return f(function(e){return!e})},[]),k=(0,ua.useCallback)(function(e){return f(e)},[]),w=(0,ua.useCallback)(function(){return b(function(e){return!e})},[]),C={isOpen:h,toggle:j,setOpen:k,isExpanded:y,toggleExpanded:w,isMobile:g},T=M($e,Ma({theme:s}),o);return(0,B.jsx)(da.Provider,{value:C,children:(0,B.jsx)("nav",{id:n,className:T,children:t})})},pa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?qa.primary:c,l=e.brand,u=e.actions,d=e.menuIcon,m=void 0===d?D.menu:d,v=e.hideMenuToggle,h=void 0!==v&&v,f=ma(),p=f.isOpen,y=f.toggle,b=f.isMobile?"accordion":"dropdown",x=M(aa,Ia({theme:s}),o),g=M(ia,p?oa:ca);return(0,B.jsxs)("header",{id:n,className:x,children:[(0,B.jsxs)("div",{className:na,children:[l&&(0,B.jsx)("div",{className:ta,children:l}),!h&&(0,B.jsx)("button",{type:"button","aria-label":"Toggle menu",className:ra,onClick:y,children:(0,B.jsx)(I,{icon:m})})]}),(0,B.jsx)(va.Provider,{value:b,children:(0,B.jsx)("div",{className:g,children:t})}),u&&(0,B.jsx)("div",{className:sa,children:u})]})};const ya="lB8REa7QbS00_HY39qlv",ba="sSfHpXGaWQJlKsMHHaNz",xa="KUAQgA5jKT0cpt4YT9My",ga="VHv_24fnWV6U7utpmyOv",Na="xz7mio21qHuZpdmkS_Ql",ja="mecTZPfsBQEB8_dRnBQz",ka="B9dyOyj_V1ejlMhgfn9g",wa="ZddvyvLdn43wm9cl0jwZ";var Ca=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Ba.primary:c,l=e.pinToggleIcon,u=void 0===l?D.flecha:l,d=e.hidePinToggle,m=void 0!==d&&d,v=ma(),h=v.isOpen,f=v.isExpanded,p=v.toggleExpanded,y=M(ya,h?ba:xa,f?Na:ga,Pa({theme:s}),o);return(0,B.jsxs)("aside",{id:n,className:y,children:[(0,B.jsx)(va.Provider,{value:"accordion",children:t}),!m&&(0,B.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:ja,onClick:p,children:(0,B.jsx)(I,{icon:u,className:M(ka,f?wa:"")})})]})};const Ta="huVncZ_cd_BiHgGKvG2R",Sa="OhBh129QqaKYIl1RoRRQ",za="mpssuMH2mFjNpZnuMaOp";var Aa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=e.className,i=void 0===t?"":t,o=e.level,c=void 0===o?1:o,s=ha(),l=M(Ta,"dropdown"===s&&1===c?za:Sa,i);return(0,B.jsx)("ul",{id:n,className:l,children:ua.Children.map(r,function(e){return(0,ua.isValidElement)(e)?(0,ua.cloneElement)(e,{level:c}):e})})};const La=require("react-router-dom"),Ea={"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 Oa,qa,Ba,Da=function(e){var a=e.id,n=void 0===a?"":a,r=e.label,t=void 0===r?"":r,i=e.icon,o=e.children,c=e.className,s=void 0===c?"":c,l=e.active,u=void 0!==l&&l,d=e.to,m=e.href,v=e.onClick,h=e.defaultExpanded,f=void 0!==h&&h,p=e.level,y=void 0===p?1:p,b=ha(),x=ma().isExpanded,g=(0,ua.useState)(f),N=g[0],j=g[1],k=!!o&&y<3,w=y+1,C="accordion"===b&&!x,T=u&&y>1,S=u&&1===y,z=M(Ea["nav-item-label"],C?Ea["nav-item-label-collapsed"]:""),A=M(Ea["nav-item"],"accordion"===b?Ea["nav-item-l".concat(y)]:Ea["nav-item-inline"],C?Ea["nav-item-collapsed"]:"",T?Ea["nav-item-active"]:"",s),L=function(e){k&&j(function(e){return!e}),v&&v(e)},E=(0,B.jsxs)(B.Fragment,{children:[i&&(0,B.jsx)(I,{icon:i,className:M(Ea["nav-item-icon"],S?Ea["nav-item-icon-active"]:"")}),t&&(0,B.jsx)("span",{className:z,children:t}),k&&(0,B.jsx)(I,{icon:D.flecha,className:M(Ea["nav-item-chevron"],C?Ea["nav-item-chevron-collapsed"]:"",N?Ea["is-open"]:"")})]}),O=d?(0,B.jsx)(La.Link,{to:d,id:n,className:A,onClick:L,children:E}):m?(0,B.jsx)("a",{id:n,href:m,className:A,onClick:L,children:E}):(0,B.jsx)("button",{id:n,type:"button",className:A,onClick:L,children:E}),q=(0,ua.isValidElement)(o)?(0,ua.cloneElement)(o,{level:w}):o;return(0,B.jsxs)("li",{className:Ea["nav-item-wrapper"],onMouseEnter:"dropdown"===b&&k?function(){return j(!0)}:void 0,onMouseLeave:"dropdown"===b&&k?function(){return j(!1)}:void 0,children:[O,k&&N&&("accordion"===b?q:(0,B.jsx)("div",{className:M(Ea["nav-dropdown-panel"],1===y?Ea["nav-dropdown-below"]:Ea["nav-dropdown-side"]),children:q}))]})};!function(e){e.primary="primary"}(Oa||(Oa={})),function(e){e.primary="primary",e.dark="dark"}(qa||(qa={})),function(e){e.primary="primary"}(Ba||(Ba={}));var Ma=function(e){return e.theme===Oa.primary?ea:""},Ia=function(e){switch(e.theme){case qa.primary:return"";case qa.dark:return la;default:return""}},Pa=function(e){e.theme;return Ba.primary,""};const Va="GXbNNfaRE3TyRdoGrwb7",Ra="JJlpwqbl4lBtQC3RnNnw",Ga="YHIztbHCIlsXLL9Yn8ww",Ha="KDNJqjBclhbRaDk4mBr6",_a="EhYmjqYe_GtBncOd1xD9";var Qa=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ja.primary:t,o=e.name,c=e.value,s=e.label,l=e.checked,u=e.defaultChecked,d=e.disabled,m=void 0!==d&&d,v=e.onChange,h=void 0===v?function(){}:v,f=M(Va,Za({theme:i}),m?_a:"",r);return(0,B.jsxs)("label",{className:f,children:[(0,B.jsx)("input",{id:a,className:Ra,type:"radio",name:o,value:c,checked:l,defaultChecked:u,disabled:m,onChange:h}),(0,B.jsx)("span",{className:Ga,"aria-hidden":"true"}),s&&(0,B.jsx)("span",{className:Ha,children:s})]})};const Ua="QBLrCrEV0gM6Kw5pF1St",Wa="RU1XYIJgTOpk_L6PLAhf";var Ya;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(Ya||(Ya={}));var Ja,Fa=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ja.primary:t,o=e.name,c=e.options,s=void 0===c?[]:c,l=e.value,u=e.defaultValue,d=void 0===u?"":u,m=e.direction,v=void 0===m?Ya.vertical:m,h=e.disabled,f=void 0!==h&&h,p=e.onChange,y=void 0===p?function(){}:p,b=(0,ua.useState)(d),x=b[0],g=b[1],N=void 0!==l?l:x,j=function(e){void 0===l&&g(e.target.value),y(e)},k=M(Ua,v===Ya.horizontal?Wa:"",r);return(0,B.jsx)("div",{id:a,role:"radiogroup",className:k,children:s.map(function(e){return(0,B.jsx)(Qa,{theme:i,name:o,value:e.value,label:e.label,checked:N===e.value,disabled:f||e.disabled,onChange:j},e.value)})})};!function(e){e.primary="primary"}(Ja||(Ja={}));var Za=function(e){e.theme;return""};const Ka={"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,o=e.name,c=e.value,s=e.label,l=e.checked,u=e.defaultChecked,d=e.indeterminate,m=void 0!==d&&d,v=e.disabled,h=void 0!==v&&v,f=e.onChange,p=void 0===f?function(){}:f,y=(0,ua.useRef)(null);(0,ua.useEffect)(function(){y.current&&(y.current.indeterminate=m)},[m]);var b=M(Ka["checkbox-label"],on({theme:i}),h?Ka["checkbox-disabled"]:"",r);return(0,B.jsxs)("label",{className:b,children:[(0,B.jsx)("input",{ref:y,id:a,className:Ka["checkbox-input"],type:"checkbox",name:o,value:c,checked:l,defaultChecked:u,disabled:h,onChange:p}),(0,B.jsxs)("span",{className:Ka["checkbox-box"],"aria-hidden":"true",children:[(0,B.jsx)(I,{className:Ka["checkbox-check"],icon:D.check}),(0,B.jsx)("span",{className:Ka["checkbox-dash"]})]}),s&&(0,B.jsx)("span",{className:Ka["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,o=e.name,c=e.options,s=void 0===c?[]:c,l=e.values,u=e.defaultValues,d=void 0===u?[]:u,m=e.direction,v=void 0===m?an.vertical:m,h=e.disabled,f=void 0!==h&&h,p=e.onChange,y=void 0===p?function(){}:p,b=(0,ua.useState)(d),x=b[0],g=b[1],N=void 0!==l?l:x,j=M($a,v===an.horizontal?en:"",r);return(0,B.jsx)("div",{id:a,role:"group",className:j,children:s.map(function(e){return(0,B.jsx)(Xa,{theme:i,name:o,value:e.value,label:e.label,checked:N.includes(e.value),disabled:f||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===l&&g(n),void y(n);var a,n}},e.value)})})};!function(e){e.primary="primary"}(rn||(rn={}));var on=function(e){e.theme;return""};const cn="zegNFU1IXq2D0NAslGyj",sn="rGbn8Dr7CvRzb5aBaIm6",ln="oHn7xu1kuT37RPqDSpc0",un="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,o=e.checked,c=e.defaultChecked,s=void 0!==c&&c,l=e.label,u=e.children,d=void 0===u?"Activar":u,m=e.disabled,v=void 0!==m&&m,h=e.onChange,f=void 0===h?function(){}:h,p=(0,ua.useState)(s),y=p[0],b=p[1],x=void 0!==o?o:y,g=M(ln,vn({theme:i}),x?un:"",r);return(0,B.jsxs)("span",{className:cn,children:[l&&(0,B.jsx)("span",{className:sn,children:l}),(0,B.jsx)("button",{id:a,type:"button",role:"switch","aria-checked":x,disabled:v,className:g,onClick:function(){void 0===o&&b(!x),f(!x)},children:d})]})};!function(e){e.primary="primary"}(dn||(dn={}));var vn=function(e){e.theme;return""};const hn="kkj7ttLeFO1S4d8mM_Pn",fn="a_HuZeJ_oVLoqS7eukOK",pn="OluyRygiDnbSKaGwqvJW",yn="h4zm0kOhR9ZxkSdTB7GN",bn="pfLJgfyLJlYmzTol8bA5";var xn,gn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?xn.primary:t,o=e.value,c=e.defaultValue,s=e.placeholder,l=void 0===s?"":s,u=e.rows,d=void 0===u?4:u,m=e.autoResize,v=void 0!==m&&m,h=e.hardBorder,f=void 0!==h&&h,p=e.disabled,y=void 0!==p&&p,b=e.onChange,x=void 0===b?function(){}:b,g=M(hn,Nn({theme:i}),f?yn:"",v?bn:"",r);return(0,B.jsx)("textarea",{id:a,className:g,value:o,defaultValue:c,placeholder:l,rows:d,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"}(xn||(xn={}));var Nn=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return fn;case"tertiary":return pn}};const jn="WihApGsGcC1E22NRG0P5",kn="fUrHs64HZzxc8wuJx0Sb",wn="LXJF8zINUAOvCEJtkK8Q",Cn="Wb8G9wRU_hGXsgxvtTI1",Tn="EkMWU0uN6UWfqy9bLsBt",Sn="jFyLmbuHrBcChK1PCUAW",zn="toX_UmDpZNE2kruEXl8S",An="H1zoebUk7LJVtn0H0Zu_",Ln="i_2UnWCN655j4bednibQ",En="SITJboRY_HWw8TaUHpkS",On="c4nJQCuqPERLXusqZmTf",qn="rVjFTHZ3d6gzTyGq1wOq",Bn="rLYHgyXqKJfVOrHCTUHr",Dn="_aOV8eUPNj11n_VY0NAB",Mn="gFuL19WEJXow8Pop913u",In="gdPP8CuH6BxL79m2ly8i",Pn="tm2CatA44Mbqd0CMaXp7",Vn="HfTjK7bgJmXNcDqfhL0J";var Rn,Gn=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))},Hn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Rn.primary:t,o=e.options,c=void 0===o?[]:o,s=e.multiple,l=void 0!==s&&s,u=e.value,d=e.defaultValue,m=void 0===d?"":d,v=e.values,h=e.defaultValues,f=void 0===h?[]:h,p=e.placeholder,y=void 0===p?"":p,b=e.searchable,x=void 0!==b&&b,g=e.icon,N=e.emptyMessage,j=void 0===N?"Sin resultados":N,k=e.hardBorder,w=void 0!==k&&k,C=e.disabled,T=void 0!==C&&C,S=e.onChange,z=void 0===S?function(){}:S,A=(0,ua.useState)(!1),L=A[0],E=A[1],O=(0,ua.useState)(""),q=O[0],P=O[1],V=(0,ua.useState)(0),R=V[0],G=V[1],H=(0,ua.useState)(m),_=H[0],Q=H[1],U=(0,ua.useState)(f),W=U[0],Y=U[1],J=(0,ua.useRef)(null),F=(0,ua.useRef)(null),Z=(0,ua.useId)(),K=void 0!==u?u:_,X=void 0!==v?v:W,$=(l?c.filter(function(e){return X.includes(e.value)}):c.filter(function(e){return e.value===K})).map(function(e){return e.label}).join(", "),ee=x&&q?c.filter(function(e){return e.label.toLowerCase().includes(q.toLowerCase())}):c,ae=function(e){return l?X.includes(e.value):e.value===K};(0,ua.useEffect)(function(){if(L){var e=function(e){J.current&&!J.current.contains(e.target)&&(E(!1),P(""))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[L]),(0,ua.useEffect)(function(){var e;L&&x&&(null===(e=F.current)||void 0===e||e.focus())},[L,x]);var ne=function(){T||(E(!0),G(0))},re=function(){E(!1),P("")},te=function(e){if(!e.disabled)if(l){var a=X.includes(e.value)?X.filter(function(a){return a!==e.value}):Gn(Gn([],X,!0),[e.value],!1);void 0===v&&Y(a),z(a)}else void 0===u&&Q(e.value),z(e.value),re()},ie=M(kn,_n({theme:i}),w?In:"",T?Pn:"");return(0,B.jsxs)("div",{id:a,ref:J,className:M(jn,r),children:[(0,B.jsxs)("div",{role:"combobox","aria-expanded":L,"aria-haspopup":"listbox","aria-controls":Z,"aria-disabled":T,tabIndex:T?-1:0,className:ie,onClick:function(){return L?re():ne()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),L?G(function(e){return Math.min(e+1,ee.length-1)}):ne();break;case"ArrowUp":e.preventDefault(),G(function(e){return Math.max(e-1,0)});break;case"Enter":e.preventDefault(),L?ee[R]&&te(ee[R]):ne();break;case"Escape":re();break;case" ":L||x||(e.preventDefault(),ne())}},children:[g&&(0,B.jsx)(I,{className:Sn,icon:g}),x&&L?(0,B.jsx)("input",{ref:F,className:Tn,value:q,placeholder:$||y,onChange:function(e){P(e.target.value),G(0)},onClick:function(e){return e.stopPropagation()}}):(0,B.jsx)("span",{className:M(wn,$?"":Cn),children:$||y}),(0,B.jsx)(I,{className:zn,icon:D.chevronDown})]}),L&&(0,B.jsxs)("ul",{id:Z,role:"listbox","aria-multiselectable":l,className:An,children:[0===ee.length&&(0,B.jsx)("li",{className:Mn,children:j}),ee.map(function(e,a){return(0,B.jsxs)("li",{role:"option","aria-selected":ae(e),className:M(Ln,a===R?On:"",ae(e)?qn:"",e.disabled?Dn:""),onMouseEnter:function(){return G(a)},onClick:function(a){a.stopPropagation(),te(e)},children:[(0,B.jsx)("span",{className:En,children:e.label}),ae(e)&&(0,B.jsx)(I,{className:Bn,icon:D.check})]},e.value)})]})]})};!function(e){e.primary="primary",e.dark="dark"}(Rn||(Rn={}));var _n=function(e){switch(e.theme){case"primary":default:return"";case"dark":return Vn}};const Qn="HVj3aNmDW6tJTr0uageu",Un="hW1Ev2Vff5FMrAuQdu5Q",Wn="ZI5_XWdK17MXXnYMh5O_",Yn="PhpcwVhP56ggFwiGvuAl",Jn="ndBtMO52dtAMHPla372a",Fn="YxneKx82bAQhUpOy8Adj",Zn="rEwN2ippBOfwtYrsL8xL",Kn="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,o=e.value,c=e.defaultValue,s=void 0===c?"":c,l=e.min,u=e.max,d=e.placeholder,m=void 0===d?"":d,v=e.icon,h=void 0===v?D.calendario:v,f=e.hardBorder,p=void 0!==f&&f,y=e.disabled,b=void 0!==y&&y,x=e.onChange,g=void 0===x?function(){}:x,N=(0,ua.useRef)(null),j=(0,ua.useState)(s),k=j[0],w=j[1],C=void 0!==o?o:k,T=M(Qn,ar({theme:i}),p?Kn:"",b?Xn:"",r);return(0,B.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,B.jsx)(I,{className:Un,icon:h}),(0,B.jsxs)("span",{className:Wn,children:[(0,B.jsx)("input",{ref:N,id:a,className:M(Yn,!C&&m?Jn:""),type:"date",value:C,min:l,max:u,disabled:b,onChange:function(e){void 0===o&&w(e.target.value),g(e)}}),!C&&m&&(0,B.jsx)("span",{className:Fn,children:m})]}),(0,B.jsx)(I,{className:Zn,icon:D.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",or="Eq1489yFWMUmM_u6vh9f",cr="PMVJ8fczX7bKcOIU0fOL",sr="TIFdzexsUxA525Gdwpcb";var lr,ur,dr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?lr.primary:i,c=e.size,s=void 0===c?ur.md:c,l=e.src,u=e.alt,d=void 0===u?"":u,m=e.fallbackIcon,v=void 0===m?D.usuarioDentroApp:m,h=M(nr,mr({theme:o}),vr({size:s}),t);return(0,B.jsx)("span",{id:n,className:h,children:l?(0,B.jsx)("img",{className:rr,src:l,alt:d}):(0,B.jsx)(I,{className:tr,icon:v})})};!function(e){e.primary="primary"}(lr||(lr={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(ur||(ur={}));var mr=function(e){return e.theme===lr.primary?ir:""},vr=function(e){switch(e.size){case ur.sm:return or;case ur.md:return cr;case ur.lg:return sr;default:return""}};const hr="IWyEVo8NMrRjUWP04rfw",fr="CqnccCvEtLIl5USsaXlg",pr="YG349hVZasvp2jO4kPsA",yr="_CvqVXegZYiyGoajONPu",br="UUiupi6FttBIFLsTsP3g",xr="A0QVkfVJsx9sZLnPR6kv",gr="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,o=void 0===i?Nr.success:i,c=e.icon,s=e.children,l=M(hr,kr({variant:o}),t);return(0,B.jsxs)("span",{id:n,className:l,children:[c&&(0,B.jsx)(I,{className:fr,icon:c}),(0,B.jsx)("span",{className:pr,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 xr;case Nr.info:return gr;default:return""}};const wr="XT6EGfuWYGIoJSqy05TJ",Cr="UIk9FL7BDJpO9kTxs_Uw",Tr="lBgbjqELas7qzyxa17Gg",Sr="KAT9D73UpzE9tm2yc2Tz",zr="K1sgv7WJBtYs1CrvdSgv",Ar="It7juqSa974gPQ1ECS7P",Lr="xqzhTvRpnACwBTzGmCFd",Er="aYo2q4_DqNJ5Yl0NQB9t",Or="bTytWyysO56yZTSSf5LT";var qr,Br=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?qr.primary:i,c=e.icon,s=e.label,l=M(wr,t),u=M(Cr,Dr({theme:o}));return(0,B.jsxs)("span",{id:n,className:l,children:[(0,B.jsx)("span",{className:u,children:(0,B.jsx)(I,{className:Tr,icon:c})}),s&&(0,B.jsx)("span",{className:Sr,children:s})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary"}(qr||(qr={}));var Dr=function(e){switch(e.theme){case qr.primary:return zr;case qr.secondary:return Ar;case qr.tertiary:return Lr;case qr.quaternary:return Er;case qr.quinary:return Or;default:return""}};const Mr="MBywYK0SgL4lTZV_77nW",Ir="j8IeW9LCX93pCcFNrNdY",Pr="YBLMvqC9pz7R4bSGdeh6",Vr="aWScMBie4dNuQWeWzk94",Rr="vpvm_c6Fwnhmhnve66Of",Gr="E11UJFYJUt38tQ_rmIFl",Hr="l5moywrOYUj3JR58GJ3Q",_r="VUVz_XqUxME6E3pS7NEm",Qr="yBxzIsU4VisEdoiz2GnA",Ur="SHOkFcwsH5L4yMMkYR30",Wr="v4frrN_DRHohQdZjJiVA",Yr="TgIb9A2h3x_ihidHcUcY";var Jr,Fr,Zr,Kr,Xr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,o=e.ariaLabel,c=e.theme,s=void 0===c?Jr.primary:c,l=e.size,u=void 0===l?Fr.md:l,d=e.shape,m=void 0===d?Zr.circle:d,v=e.disabled,h=void 0!==v&&v,f=e.type,p=void 0===f?Kr.button:f,y=e.onClick,b=M(Mr,$r({theme:s}),et({size:u}),at({shape:m}),t);return(0,B.jsx)("button",{id:n,className:b,type:p,"aria-label":o,disabled:h,onClick:y,children:(0,B.jsx)(I,{className:Ir,icon:i})})};!function(e){e.primary="primary",e.secondary="secondary",e.outline="outline",e.ghost="ghost",e.soft="soft"}(Jr||(Jr={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(Fr||(Fr={})),function(e){e.circle="circle",e.square="square"}(Zr||(Zr={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Kr||(Kr={}));var $r=function(e){switch(e.theme){case Jr.primary:return _r;case Jr.secondary:return Qr;case Jr.outline:return Ur;case Jr.ghost:return Wr;case Jr.soft:return Yr;default:return""}},et=function(e){switch(e.size){case Fr.sm:return Rr;case Fr.md:return Gr;case Fr.lg:return Hr;default:return""}},at=function(e){switch(e.shape){case Zr.circle:return Pr;case Zr.square:return Vr;default:return""}};const nt="ta7Gh0oux0JTjsuKbz67",rt="KZtf6l8cQuhmNelFlruw",tt="Ofk0fCFamMeiTdjTIFee";var it,ot=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?it.primary:i,c=e.to,s=e.href,l=e.target,u=e.children,d=e.onClick,m=M(nt,ct({theme:o}),t);return c?(0,B.jsx)(La.Link,{to:c,id:n,className:m,onClick:d,children:u}):s?(0,B.jsx)("a",{id:n,href:s,target:l,className:m,onClick:d,children:u}):(0,B.jsx)("button",{id:n,type:"button",className:m,onClick:d,children:u})};!function(e){e.primary="primary",e.muted="muted"}(it||(it={}));var ct=function(e){switch(e.theme){case it.primary:return rt;case it.muted:return tt;default:return""}};const st="NVSkcMXjGBloaxcmkInt",lt="mabEcjJJijuiIgVk79DH",ut="IyemsZ0IYvI3nuNOXkvX",dt="Dqhex8Evhb4AAc9Xkvo5",mt="N5bqz6Zxbi50Vhek2ylV",vt="a2NsnBpqeBMKcuZP7okt",ht="ElABlLAgZYeancITzEhQ",ft="B_mWTdrLaXzyri3tKAWA",pt="UuPlwVneHDPTMC1UZW6G",yt="cRoCcl6LJW501_zUJ2_G",bt="co6gq0z96SbIsuyd9xp_";var xt,gt,Nt=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?xt.primary:i,c=e.size,s=void 0===c?gt.md:c,l=e.value,u=e.defaultValue,d=void 0===u?0:u,m=e.max,v=void 0===m?5:m,h=e.readOnly,f=void 0===h||h,p=e.disabled,y=void 0!==p&&p,b=e.onChange,x=void 0===b?function(){}:b,g=(0,ua.useState)(d),N=g[0],j=g[1],k=void 0!==l?l:N,w=!f&&!y,C=function(e){w&&(void 0===l&&j(e),x(e))},T=M(st,jt({theme:o}),kt({size:s}),w?lt:"",t),S=Array.from({length:v},function(e,a){var n=100*Math.max(0,Math.min(1,k-a));return(0,B.jsxs)("span",{className:ut,children:[(0,B.jsx)(I,{className:dt,icon:D.star}),(0,B.jsx)("span",{className:mt,style:{width:"".concat(n,"%")},children:(0,B.jsx)(I,{className:vt,icon:D.star})}),w&&(0,B.jsx)("button",{type:"button",className:ht,"aria-label":"".concat(a+1),onClick:function(){return C(a+1)}})]},a)});return(0,B.jsx)("span",{id:n,className:T,role:w?"slider":"img","aria-label":"".concat(k," / ").concat(v),"aria-valuenow":w?k:void 0,"aria-valuemin":w?0:void 0,"aria-valuemax":w?v:void 0,tabIndex:w?0:void 0,onKeyDown:function(e){w&&("ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),C(Math.min(v,k+1))):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),C(Math.max(0,k-1))))},children:S})};!function(e){e.primary="primary"}(xt||(xt={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(gt||(gt={}));var jt=function(e){return e.theme===xt.primary?ft:""},kt=function(e){switch(e.size){case gt.sm:return pt;case gt.md:return yt;case gt.lg:return bt;default:return""}};const wt="grzoafeuaVbctItAvaBj",Ct="wbmmrBuO8sfCMTvFh_1w",Tt="SsnpuFnrdU36Xwd4HqXk",St="CWQXTxCoWGjSAVajqPfY",zt="Bt8wp_CR69pVVxdRoLy9",At="YJaKXBCYjrfe38zzeXjJ",Lt="ajEpjzUlrdk7Mnz5jSJb",Et="tTj9iSnLcOA1i9kBrllR";var Ot,qt=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ot.primary:t,o=e.columns,c=e.data,s=e.rowKey,l=e.onRowClick,u=e.emptyMessage,d=void 0===u?"Sin resultados":u,m=M(wt,Bt({theme:i}),r);return(0,B.jsx)("div",{id:a,className:m,children:(0,B.jsxs)("table",{className:Ct,children:[(0,B.jsx)("thead",{className:Tt,children:(0,B.jsx)("tr",{children:o.map(function(e){var a;return(0,B.jsx)("th",{className:St,style:{textAlign:null!==(a=e.align)&&void 0!==a?a:"center",width:e.width},children:e.header},e.key)})})}),(0,B.jsx)("tbody",{children:0===c.length?(0,B.jsx)("tr",{children:(0,B.jsx)("td",{className:Et,colSpan:o.length,children:d})}):c.map(function(e){return(0,B.jsx)("tr",{className:M(zt,l?At:""),onClick:l?function(){return l(e)}:void 0,children:o.map(function(a){var n;return(0,B.jsx)("td",{className:Lt,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"}(Ot||(Ot={}));var Bt=function(e){e.theme;return Ot.primary,""};const Dt="ZPqhyocEqag6LOWDbVjQ",Mt="lWYdhTDpA0GJvfHJjAxw",It="yyknVWqnterLrlyMBe8Q",Pt="Io266Be3pnb7Y7pNe8JU",Vt="x8_MYteZu5b87Bd4J1eL";var Rt=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?Ut.primary:i,c=e.icon,s=e.label,l=e.sublabel,u=e.value,d=e.selected,m=void 0!==d&&d,v=e.disabled,h=void 0!==v&&v,f=e.onSelect,p=void 0===f?function(){}:f,y=M(Dt,Yt({theme:o}),m?Vt:"",t);return(0,B.jsxs)("button",{id:n,type:"button",className:y,"aria-pressed":m,disabled:h,onClick:function(){return p(u)},children:[(0,B.jsx)(I,{className:Mt,icon:c}),s&&(0,B.jsx)("span",{className:It,children:s}),l&&(0,B.jsx)("span",{className:Pt,children:l})]})};const Gt="lIZRkupG0Tnu5PZhmQk7",Ht="HPk63kIH_wE7yDHatfVd";var _t,Qt=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"}(_t||(_t={}));var Ut,Wt=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ut.primary:t,o=e.options,c=void 0===o?[]:o,s=e.multiple,l=void 0!==s&&s,u=e.value,d=e.defaultValue,m=void 0===d?"":d,v=e.values,h=e.defaultValues,f=void 0===h?[]:h,p=e.direction,y=void 0===p?_t.horizontal:p,b=e.disabled,x=void 0!==b&&b,g=e.onChange,N=void 0===g?function(){}:g,j=(0,ua.useState)(m),k=j[0],w=j[1],C=(0,ua.useState)(f),T=C[0],S=C[1],z=void 0!==u?u:k,A=void 0!==v?v:T,L=function(e){if(void 0!==e)if(l){var a=A.includes(e)?A.filter(function(a){return a!==e}):Qt(Qt([],A,!0),[e],!1);void 0===v&&S(a),N(a)}else void 0===u&&w(e),N(e)},E=M(Gt,y===_t.vertical?Ht:"",r);return(0,B.jsx)("div",{id:a,role:"group",className:E,children:c.map(function(e){return(0,B.jsx)(Rt,{theme:i,icon:e.icon,label:e.label,sublabel:e.sublabel,value:e.value,selected:(a=e.value,l?A.includes(a):a===z),disabled:x||e.disabled,onSelect:L},e.value);var a})})};!function(e){e.primary="primary"}(Ut||(Ut={}));var Yt=function(e){e.theme;return Ut.primary,""};const Jt="sLGAM7oBNrXGmob1q_sq",Ft="ajTwlbHajl6FyObOjfzO",Zt="t3wCLrfNxdRone4UrmI0",Kt="lWEf_hSXFYbT7Pg1lDO_",Xt="EYPgHsxHMLGbc92dyTap",$t="HVKOGVWGaff1Yo3rxRsw",ei="V5jwid2fjd5qbwkTIpI_",ai="VnvwelENcP64JTRvGVAw",ni="c1ikpWoc8ASIpAvAwDlk",ri="W87Bkj4YXZuOxfurrgql";var ti,ii=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?ti.primary:t,o=e.items,c=e.renderItem,s=e.children,l=e.itemsPerView,u=void 0===l?1:l,d=e.dots,m=void 0!==d&&d,v=e.index,h=e.defaultIndex,f=void 0===h?0:h,p=e.prevLabel,y=void 0===p?"Anterior":p,b=e.nextLabel,x=void 0===b?"Siguiente":b,g=e.onChange,N=void 0===g?function(){}:g,j=(0,ua.useState)(f),k=j[0],w=j[1],C=(0,ua.useState)(u),T=C[0],S=C[1],z=o&&c?o.map(function(e,a){return c(e,a)}):ua.Children.toArray(s);(0,ua.useEffect)(function(){var e=function(){window.matchMedia("(max-width: 767px)").matches?S(1):window.matchMedia("(max-width: 1023px)").matches?S(Math.min(2,u)):S(u)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]);var A=Math.max(1,Math.min(T,z.length)),L=Math.max(0,z.length-A),E=Math.min(void 0!==v?v:k,L),O=function(e){var a=Math.max(0,Math.min(e,L));void 0===v&&w(a),N(a)},q="".concat(100/A,"%");return(0,B.jsxs)("div",{id:a,className:M(Jt,oi({theme:i}),r),children:[(0,B.jsxs)("div",{className:Ft,children:[(0,B.jsx)(Xr,{className:$t,icon:D.flecha,ariaLabel:y,theme:Jr.soft,size:Fr.sm,disabled:E<=0,onClick:function(){return O(E-1)}}),(0,B.jsx)("div",{className:Zt,children:(0,B.jsx)("div",{className:Kt,style:{transform:"translateX(-".concat(E*(100/A),"%)")},children:z.map(function(e,a){return(0,B.jsx)("div",{className:Xt,style:{flex:"0 0 ".concat(q),maxWidth:q},children:e},a)})})}),(0,B.jsx)(Xr,{className:ei,icon:D.flecha,ariaLabel:x,theme:Jr.soft,size:Fr.sm,disabled:E>=L,onClick:function(){return O(E+1)}})]}),m&&L>0&&(0,B.jsx)("div",{className:ai,children:Array.from({length:L+1}).map(function(e,a){return(0,B.jsx)("button",{type:"button","aria-label":"Ir a la página ".concat(a+1),"aria-current":a===E,className:M(ni,a===E?ri:""),onClick:function(){return O(a)}},a)})})]})};!function(e){e.primary="primary"}(ti||(ti={}));var oi=function(e){e.theme;return ti.primary,""};const ci="HIFvmvcN_t_U44Ek9Pzg",si="NY2jLuTYDx8PHHwxBWP1",li="jtUYOcgCVKerfp1MFOBA",ui="SiF7Wh1N0Q3o9K47m1Tg",di="pYonitDFiQ4mCODmEfEj",mi="QPNF93lBTsjCwQHIbd5M",vi="Q9xNwQE8zhzBQucSSqh8",hi="y7ycDWtgNus3_HGbp7Aw",fi="tI2VRSWho7y9AnLTBSul",pi="TrUTI_sHulK4rszb5W35",yi="nVAEwekLtZzbxiDIi908",bi="m0dxrqnoPSi2k6j8TIdk",xi="nLoxinED1jVEuT9WT0Yt";var gi,Ni,ji=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?gi.primary:t,o=e.items,c=e.trigger,s=e.align,l=void 0===s?Ni.right:s,u=e.ariaLabel,d=void 0===u?"Abrir menú":u,m=e.disabled,v=void 0!==m&&m,h=(0,ua.useState)(!1),f=h[0],p=h[1],y=(0,ua.useState)(0),b=y[0],x=y[1],g=(0,ua.useRef)(null);(0,ua.useEffect)(function(){if(f){var e=function(e){g.current&&!g.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[f]);var N=function(){v||(p(!0),x(0))},j=function(){return p(!1)},k=function(e){e.disabled||(e.onClick(),j())},w=(0,B.jsxs)("span",{className:li,"aria-hidden":"true",children:[(0,B.jsx)("span",{className:ui}),(0,B.jsx)("span",{className:ui}),(0,B.jsx)("span",{className:ui})]}),C=M(di,l===Ni.left?vi:mi);return(0,B.jsxs)("div",{id:a,ref:g,className:M(ci,ki({theme:i}),r),children:[(0,B.jsx)("button",{type:"button",className:si,"aria-haspopup":"menu","aria-expanded":f,"aria-label":d,disabled:v,onClick:function(){return f?j():N()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),f?x(function(e){return Math.min(e+1,o.length-1)}):N();break;case"ArrowUp":e.preventDefault(),x(function(e){return Math.max(e-1,0)});break;case"Enter":case" ":e.preventDefault(),f?o[b]&&k(o[b]):N();break;case"Escape":j()}},children:null!=c?c:w}),f&&(0,B.jsx)("ul",{role:"menu",className:C,children:o.map(function(e,a){return(0,B.jsx)("li",{role:"none",children:(0,B.jsxs)("button",{type:"button",role:"menuitem",disabled:e.disabled,className:M(hi,a===b?fi:"",e.danger?bi:"",e.disabled?xi:""),onMouseEnter:function(){return x(a)},onClick:function(){return k(e)},children:[e.icon&&(0,B.jsx)(I,{className:pi,icon:e.icon}),(0,B.jsx)("span",{className:yi,children:e.label})]})},"".concat(e.label,"-").concat(a))})})]})};!function(e){e.primary="primary"}(gi||(gi={})),function(e){e.left="left",e.right="right"}(Ni||(Ni={}));var ki=function(e){e.theme;return gi.primary,""};const wi="KJlu3bfoW7aFxtsdynLR",Ci="qh6PIBH6JH6McFPpJslO",Ti="UYaNKPp7ukvzoUz3a7rz",Si="EAe4BYvP4jJp1qEH3RQE",zi="WxLvmW9HVq420LX1G5jJ",Ai="zWkpfZjiDdNdwpRuvv0b",Li="sozrqips8AZla5qXbAcU",Ei="CY3yslAxro0WOsWiPfro";var Oi,qi=function(e){var a,n,r=e.id,t=e.className,i=void 0===t?"":t,o=e.variant,c=void 0===o?Oi.iconTab:o,s=e.tabs,l=e.active,u=e.defaultActive,d=e.onChange,m=void 0===d?function(){}:d,v=(0,ua.useState)(null!==(n=null!=u?u:null===(a=s[0])||void 0===a?void 0:a.value)&&void 0!==n?n:""),h=v[0],f=v[1],p=void 0!==l?l:h,y=function(e){e.disabled||(void 0===l&&f(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,B.jsx)("div",{id:r,role:"tablist",className:M(wi,Bi({variant:c}),i),children:s.map(function(e,a){var n=e.value===p;return(0,B.jsxs)("button",{type:"button",role:"tab","aria-selected":n,tabIndex:n?0:-1,disabled:e.disabled,className:M(Ci,n?Li:"",e.disabled?Ti:""),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,B.jsx)(I,{className:zi,icon:e.icon}),(0,B.jsx)("span",{className:Ai,children:e.label})]},e.value)})})};!function(e){e.iconTab="iconTab",e.segmented="segmented"}(Oi||(Oi={}));var Bi=function(e){switch(e.variant){case Oi.iconTab:return Si;case Oi.segmented:return Ei;default:return""}};return a})());
@@ -0,0 +1,34 @@
1
+ import { FC } from 'react';
2
+ import { IconNames } from '@components';
3
+ import { AvatarThemes, AvatarSizes } from '..';
4
+ export type TAvatarProps = {
5
+ /**
6
+ * Is this the id of the avatar.
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 avatar
15
+ */
16
+ theme?: AvatarThemes;
17
+ /**
18
+ * Is this the size of the avatar
19
+ */
20
+ size?: AvatarSizes;
21
+ /**
22
+ * Is this the source url of the avatar image
23
+ */
24
+ src?: string;
25
+ /**
26
+ * Is this the alt text of the avatar image
27
+ */
28
+ alt?: string;
29
+ /**
30
+ * Is this the icon shown when there is no image (fallback)
31
+ */
32
+ fallbackIcon?: IconNames;
33
+ };
34
+ export declare const Avatar: FC<TAvatarProps>;
@@ -0,0 +1,15 @@
1
+ export declare enum AvatarThemes {
2
+ primary = "primary"
3
+ }
4
+ export declare enum AvatarSizes {
5
+ sm = "sm",
6
+ md = "md",
7
+ lg = "lg"
8
+ }
9
+ export declare const getAvatarThemeClass: ({ theme }: {
10
+ theme: AvatarThemes;
11
+ }) => string;
12
+ export declare const getAvatarSizeClass: ({ size }: {
13
+ size: AvatarSizes;
14
+ }) => string;
15
+ export * from './Avatar';
@@ -0,0 +1,26 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { IconNames } from '@components';
3
+ import { BadgeVariants } from '..';
4
+ export type TBadgeProps = {
5
+ /**
6
+ * Is this the id of the badge.
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Is this the classes that you want to add
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Is this the variant (status) of the badge
15
+ */
16
+ variant?: BadgeVariants;
17
+ /**
18
+ * Is this the icon shown at the left of the badge
19
+ */
20
+ icon?: IconNames;
21
+ /**
22
+ * Is this the content (label) of the badge
23
+ */
24
+ children?: ReactNode;
25
+ };
26
+ export declare const Badge: FC<TBadgeProps>;
@@ -0,0 +1,10 @@
1
+ export declare enum BadgeVariants {
2
+ success = "success",
3
+ progress = "progress",
4
+ pending = "pending",
5
+ info = "info"
6
+ }
7
+ export declare const getBadgeVariantClass: ({ variant }: {
8
+ variant: BadgeVariants;
9
+ }) => string;
10
+ export * from './Badge';
@@ -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,7 @@
1
+ export declare enum CarouselThemes {
2
+ primary = "primary"
3
+ }
4
+ export declare const getCarouselThemeClass: ({ theme }: {
5
+ theme: CarouselThemes;
6
+ }) => string;
7
+ export * from './Carousel';
@@ -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,46 @@
1
+ import { FC, MouseEventHandler } from 'react';
2
+ import { IconNames } from '@components';
3
+ import { IconButtonThemes, IconButtonSizes, IconButtonShapes, IconButtonTypes } from '..';
4
+ export type TIconButtonProps = {
5
+ /**
6
+ * Is this the id of the icon button.
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Is this the classes that you want to add
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Is this the icon shown inside the button
15
+ */
16
+ icon: IconNames;
17
+ /**
18
+ * Is this the accessible label of the button (required, used as aria-label)
19
+ */
20
+ ariaLabel: string;
21
+ /**
22
+ * Is this the theme you want to add to the icon button
23
+ */
24
+ theme?: IconButtonThemes;
25
+ /**
26
+ * Is this the size of the icon button
27
+ */
28
+ size?: IconButtonSizes;
29
+ /**
30
+ * Is this the shape of the icon button
31
+ */
32
+ shape?: IconButtonShapes;
33
+ /**
34
+ * Is this the disabled state of the icon button
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * Is this the type of the button.
39
+ */
40
+ type?: IconButtonTypes;
41
+ /**
42
+ * Is this the onClick event of the icon button.
43
+ */
44
+ onClick?: MouseEventHandler<HTMLButtonElement>;
45
+ };
46
+ export declare const IconButton: FC<TIconButtonProps>;
@@ -0,0 +1,31 @@
1
+ export declare enum IconButtonThemes {
2
+ primary = "primary",
3
+ secondary = "secondary",
4
+ outline = "outline",
5
+ ghost = "ghost",
6
+ soft = "soft"
7
+ }
8
+ export declare enum IconButtonSizes {
9
+ sm = "sm",
10
+ md = "md",
11
+ lg = "lg"
12
+ }
13
+ export declare enum IconButtonShapes {
14
+ circle = "circle",
15
+ square = "square"
16
+ }
17
+ export declare enum IconButtonTypes {
18
+ submit = "submit",
19
+ reset = "reset",
20
+ button = "button"
21
+ }
22
+ export declare const getIconButtonThemeClass: ({ theme }: {
23
+ theme: IconButtonThemes;
24
+ }) => string;
25
+ export declare const getIconButtonSizeClass: ({ size }: {
26
+ size: IconButtonSizes;
27
+ }) => string;
28
+ export declare const getIconButtonShapeClass: ({ shape }: {
29
+ shape: IconButtonShapes;
30
+ }) => string;
31
+ export * from './IconButton';
@@ -28,7 +28,8 @@ export declare enum IconNames {
28
28
  varios = "varios",
29
29
  menu = "menu",
30
30
  chevronDown = "chevronDown",
31
- check = "check"
31
+ check = "check",
32
+ star = "star"
32
33
  }
33
34
  export declare const getIconClass: ({ icon }: {
34
35
  icon: IconNames;
@@ -0,0 +1,37 @@
1
+ import { FC, MouseEventHandler, ReactNode } from 'react';
2
+ import { LinkThemes } from '..';
3
+ export type TLinkProps = {
4
+ /**
5
+ * Is this the id of the link.
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 link
14
+ */
15
+ theme?: LinkThemes;
16
+ /**
17
+ * react-router destination. Renders a <Link> when provided.
18
+ */
19
+ to?: string;
20
+ /**
21
+ * Plain href. Renders an <a> when provided (and `to` is not).
22
+ */
23
+ href?: string;
24
+ /**
25
+ * Is this the target of the anchor (only applies to href).
26
+ */
27
+ target?: string;
28
+ /**
29
+ * Is this the content of the link
30
+ */
31
+ children?: ReactNode;
32
+ /**
33
+ * Is this the onClick event of the link.
34
+ */
35
+ onClick?: MouseEventHandler<HTMLElement>;
36
+ };
37
+ export declare const Link: FC<TLinkProps>;
@@ -0,0 +1,8 @@
1
+ export declare enum LinkThemes {
2
+ primary = "primary",
3
+ muted = "muted"
4
+ }
5
+ export declare const getLinkThemeClass: ({ theme }: {
6
+ theme: LinkThemes;
7
+ }) => string;
8
+ export * from './Link';
@@ -0,0 +1,45 @@
1
+ import { FC } from 'react';
2
+ import { RatingThemes, RatingSizes } from '..';
3
+ export type TRatingProps = {
4
+ /**
5
+ * Is this the id of the rating.
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 rating
14
+ */
15
+ theme?: RatingThemes;
16
+ /**
17
+ * Is this the size of the rating stars
18
+ */
19
+ size?: RatingSizes;
20
+ /**
21
+ * Is this the rating value (controlled, supports halves)
22
+ */
23
+ value?: number;
24
+ /**
25
+ * Is this the initial rating value (uncontrolled)
26
+ */
27
+ defaultValue?: number;
28
+ /**
29
+ * Is this the maximum number of stars
30
+ */
31
+ max?: number;
32
+ /**
33
+ * Is this the read-only state (no interaction)
34
+ */
35
+ readOnly?: boolean;
36
+ /**
37
+ * Is this the disabled state of the rating
38
+ */
39
+ disabled?: boolean;
40
+ /**
41
+ * Is this the onChange event, called with the selected value
42
+ */
43
+ onChange?: (value: number) => void;
44
+ };
45
+ export declare const Rating: FC<TRatingProps>;
@@ -0,0 +1,15 @@
1
+ export declare enum RatingThemes {
2
+ primary = "primary"
3
+ }
4
+ export declare enum RatingSizes {
5
+ sm = "sm",
6
+ md = "md",
7
+ lg = "lg"
8
+ }
9
+ export declare const getRatingThemeClass: ({ theme }: {
10
+ theme: RatingThemes;
11
+ }) => string;
12
+ export declare const getRatingSizeClass: ({ size }: {
13
+ size: RatingSizes;
14
+ }) => string;
15
+ export * from './Rating';