1 | "use strict";
|
2 | "use client";
|
3 |
|
4 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
5 | exports.__esModule = true;
|
6 | exports.default = void 0;
|
7 | var React = _interopRequireWildcard(require("react"));
|
8 | var _Offcanvas = _interopRequireDefault(require("./Offcanvas"));
|
9 | var _NavbarContext = _interopRequireDefault(require("./NavbarContext"));
|
10 | var _jsxRuntime = require("react/jsx-runtime");
|
11 | function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
12 | function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
13 | const NavbarOffcanvas = React.forwardRef((props, ref) => {
|
14 | const context = (0, React.useContext)(_NavbarContext.default);
|
15 | return (0, _jsxRuntime.jsx)(_Offcanvas.default, {
|
16 | ref: ref,
|
17 | show: !!(context != null && context.expanded),
|
18 | ...props,
|
19 | renderStaticNode: true
|
20 | });
|
21 | });
|
22 | NavbarOffcanvas.displayName = 'NavbarOffcanvas';
|
23 | var _default = NavbarOffcanvas;
|
24 | exports.default = _default;
|
25 | module.exports = exports.default; |
\ | No newline at end of file |