"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _Page = _interopRequireDefault(require("./Page"));
var _SegmentPage = _interopRequireDefault(require("./SegmentPage"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var FullPage = function FullPage(_ref) {
  var path = _ref.path,
    config = _ref.config,
    location = _ref.location,
    match = _ref.match,
    modulePrependPath = _ref.modulePrependPath,
    _ref$isVisible = _ref.isVisible,
    isVisible = _ref$isVisible === void 0 ? true : _ref$isVisible;
  var component = config.component,
    _config$routerCompone = config.routerComponent,
    routerComponent = _config$routerCompone === void 0 ? null : _config$routerCompone,
    componentProps = config.componentProps,
    _config$pages = config.pages,
    pages = _config$pages === void 0 ? {} : _config$pages,
    segments = config.segments,
    subpages = config.subpages,
    entityIdResolver = config.entityIdResolver;
  if (segments) {
    return /*#__PURE__*/_react.default.createElement(_SegmentPage.default, {
      path: path,
      component: component,
      componentProps: componentProps != null ? componentProps : {},
      segments: segments,
      location: location,
      match: match,
      modulePrependPath: modulePrependPath,
      entityIdResolver: entityIdResolver
    });
  }
  return /*#__PURE__*/_react.default.createElement(_Page.default, {
    path: path,
    component: component != null ? component : routerComponent,
    pages: pages,
    subpages: subpages,
    location: location,
    match: match,
    isVisible: isVisible === true || routerComponent != null,
    modulePrependPath: modulePrependPath
  });
};
var _default = FullPage;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(FullPage, "FullPage", "/home/vsts/work/1/s/src/components/Routing/FullPage.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Routing/FullPage.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(FullPage, "FullPage", "/home/vsts/work/1/s/src/components/Routing/FullPage.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Routing/FullPage.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();