import r from"react";import t from"../../prop-types/index.js";import e from"../../classnames/index.js";import{tagPropType as a,mapToCssModules as n}from"./utils.js";var o=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function l(){return l=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}return r},l.apply(this,arguments)}function s(r,t){if(null==r)return{};var e,a,n=function(r,t){if(null==r)return{};var e,a,n={},o=Object.keys(r);for(a=0;a<o.length;a++)e=o[a],t.indexOf(e)>=0||(n[e]=r[e]);return n}(r,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(a=0;a<o.length;a++)e=o[a],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(r,e)&&(n[e]=r[e])}return n}var i={card:t.bool,className:t.string,cssModule:t.object,fill:t.bool,horizontal:t.oneOf(["center","end"]),justified:t.bool,navbar:t.bool,pills:t.bool,tabs:t.bool,tag:a,vertical:t.oneOfType([t.bool,t.string])};function c(t){var a=t.className,i=t.cssModule,c=t.tabs,f=t.pills,u=t.vertical,b=void 0!==u&&u,p=t.horizontal,v=t.justified,d=t.fill,m=t.navbar,j=t.card,y=t.tag,O=void 0===y?"ul":y,g=s(t,o),h=n(e(a,m?"navbar-nav":"nav",!!p&&"justify-content-".concat(p),function(r){return!1!==r&&(!0===r||"xs"===r?"flex-column":"flex-".concat(r,"-column"))}(b),{"nav-tabs":c,"card-header-tabs":j&&c,"nav-pills":f,"card-header-pills":j&&f,"nav-justified":v,"nav-fill":d}),i);return r.createElement(O,l({},g,{className:h}))}c.propTypes=i;export{c as default};
//# sourceMappingURL=Nav.js.map
