"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = AmitySocialUIKitV4Navigator;
var _native = require("@react-navigation/native");
var _navigation = require("./navigation");
var _nativeStack = require("@react-navigation/native-stack");
var _useAuth = _interopRequireDefault(require("../hooks/useAuth"));
var _SocialHomePage = _interopRequireDefault(require("../../social/screens/SocialHomePage"));
var _PostDetail = _interopRequireDefault(require("../../social/screens/PostDetail"));
var _CreatePost = _interopRequireDefault(require("../../social/screens/CreatePost"));
var _CreateCommunity = _interopRequireDefault(require("../../social/screens/CreateCommunity"));
var _reactNativePaper = require("react-native-paper");
var _PostTypeChoiceModal = _interopRequireDefault(require("../../social/components/legacy/PostTypeChoiceModal/PostTypeChoiceModal"));
var _CreateStoryScreen = _interopRequireDefault(require("../../social/screens/CreateStory/CreateStoryScreen"));
var _Toast = _interopRequireDefault(require("../../social/components/legacy/Toast/Toast"));
var _SocialGlobalSearch = _interopRequireDefault(require("../../social/screens/SocialGlobalSearch"));
var _MyCommunitiesSearch = _interopRequireDefault(require("../../social/screens/MyCommunitiesSearch"));
var _CreateLivestream = _interopRequireDefault(require("../../social/screens/CreateLivestream"));
var _PostTargetSelection = _interopRequireDefault(require("../../social/screens/PostTargetSelection"));
var _TargetSelection = _interopRequireDefault(require("../../social/features/story/TargetSelection/TargetSelection"));
var _LivestreamPostTargetSelection = _interopRequireDefault(require("../../social/screens/LivestreamPostTargetSelection"));
var _AllCategories = _interopRequireDefault(require("../../social/screens/AllCategories"));
var _CommunitiesByCategory = _interopRequireDefault(require("../../social/screens/CommunitiesByCategory"));
var _CommunityProfile = _interopRequireDefault(require("../../social/screens/CommunityProfile"));
var _EditPost = _interopRequireDefault(require("../../social/screens/EditPost/EditPost"));
var _LivestreamPlayer = _interopRequireDefault(require("../../social/screens/LivestreamPlayer"));
var _LivestreamTerminated = _interopRequireDefault(require("../../social/screens/LivestreamTerminated"));
var _PollTargetSelection = _interopRequireDefault(require("../../social/screens/PollTargetSelection"));
var _PollPostComposer = _interopRequireDefault(require("../../social/screens/PollPostComposer"));
var _CommunityAddCategory = _interopRequireDefault(require("../../social/screens/CommunityAddCategory"));
var _CommunityAddMember = _interopRequireDefault(require("../../social/screens/CommunityAddMember"));
var _EditCommunity = _interopRequireDefault(require("../../social/screens/EditCommunity"));
var _CommunitySetting = _interopRequireDefault(require("../../social/screens/CommunitySetting"));
var _CommunityMembership = _interopRequireDefault(require("../../social/screens/CommunityMembership"));
var _CommunityPostPermission = _interopRequireDefault(require("../../social/screens/CommunityPostPermission"));
var _CommunityStorySetting = _interopRequireDefault(require("../../social/screens/CommunityStorySetting"));
var _CommunityNotificationSetting = require("../../social/screens/CommunityNotificationSetting");
var _CommunityPostsNotificationSetting = require("../../social/screens/CommunityPostsNotificationSetting");
var _CommunityCommentsNotificationSetting = require("../../social/screens/CommunityCommentsNotificationSetting");
var _CommunityStoriesNotificationSetting = require("../../social/screens/CommunityStoriesNotificationSetting");
var _CommunityLivestreamsNotificationSetting = require("../../social/screens/CommunityLivestreamsNotificationSetting");
var _CommunityPendingRequest = _interopRequireDefault(require("../../social/screens/CommunityPendingRequest"));
var _GlobalBan = require("../../social/screens/GlobalBan");
var _screens = require("../../social/screens");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Stack = (0, _nativeStack.createNativeStackNavigator)();
function AmitySocialUIKitV4Navigator() {
  const theme = (0, _reactNativePaper.useTheme)();
  const {
    isGlobalBan
  } = (0, _useAuth.default)();
  if (isGlobalBan) return /*#__PURE__*/React.createElement(_GlobalBan.GlobalBan, null);
  return /*#__PURE__*/React.createElement(_native.NavigationIndependentTree, null, /*#__PURE__*/React.createElement(_native.NavigationContainer, {
    ref: _navigation.navigationRef,
    onReady: _navigation.onNavigationReady
  }, /*#__PURE__*/React.createElement(Stack.Navigator, {
    id: "AmitySocialUIKit",
    screenOptions: {
      headerShown: false,
      headerShadowVisible: false,
      contentStyle: {
        backgroundColor: theme.colors.background
      },
      headerStyle: {
        backgroundColor: theme.colors.background
      },
      headerTitleStyle: {
        color: theme.colors.base
      }
    }
  }, /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "AmitySocialHomePage",
    component: _SocialHomePage.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "AmitySocialGlobalSearchPage",
    component: _SocialGlobalSearch.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "AmityMyCommunitiesSearchPage",
    component: _MyCommunitiesSearch.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "AllCategoriesPage",
    component: _AllCategories.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunitiesByCategoryPage",
    component: _CommunitiesByCategory.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CreateCommunity",
    component: _CreateCommunity.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityAddCategory",
    component: _CommunityAddCategory.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityAddMember",
    component: _CommunityAddMember.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityProfilePage",
    component: _CommunityProfile.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityPendingRequest",
    component: _CommunityPendingRequest.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunitySetting",
    component: _CommunitySetting.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "EditCommunity",
    component: _EditCommunity.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityMembership",
    component: _CommunityMembership.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityPostPermission",
    component: _CommunityPostPermission.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityStorySetting",
    component: _CommunityStorySetting.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityNotificationSetting",
    component: _CommunityNotificationSetting.CommunityNotificationSettingScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityPostsNotificationSetting",
    component: _CommunityPostsNotificationSetting.CommunityPostsNotificationSettingScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityCommentsNotificationSetting",
    component: _CommunityCommentsNotificationSetting.CommunityCommentsNotificationSettingScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityStoriesNotificationSetting",
    component: _CommunityStoriesNotificationSetting.CommunityStoriesNotificationSettingScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CommunityLivestreamsNotificationSetting",
    component: _CommunityLivestreamsNotificationSetting.CommunityLivestreamsNotificationSettingScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "PostTargetSelection",
    component: _PostTargetSelection.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CreatePost",
    component: _CreatePost.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "EditPost",
    component: _EditPost.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "PostDetail",
    component: _PostDetail.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "PollTargetSelection",
    component: _PollTargetSelection.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "PollPostComposer",
    component: _PollPostComposer.default
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "UserProfile",
    component: _screens.UserProfileScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "EditUser",
    component: _screens.EditUserScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "UserRelationship",
    component: _screens.UserRelationshipScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "BlockedUsers",
    component: _screens.BlockedUsersScreen
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "UserPendingFollowRequests",
    component: _screens.UserPendingFollowRequests
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "StoryTargetSelection",
    component: _TargetSelection.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CreateStory",
    component: _CreateStoryScreen.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "LivestreamPostTargetSelection",
    component: _LivestreamPostTargetSelection.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "CreateLivestream",
    component: _CreateLivestream.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "LivestreamPlayer",
    component: _LivestreamPlayer.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "LivestreamTerminated",
    component: _LivestreamTerminated.default,
    options: {
      animation: 'slide_from_bottom'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "ImageViewer",
    component: _screens.ImageViewerScreen,
    options: {
      animation: 'none',
      presentation: 'transparentModal'
    }
  }), /*#__PURE__*/React.createElement(Stack.Screen, {
    name: "VideoPlayer",
    component: _screens.VideoPlayerScreen,
    options: {
      animation: 'slide_from_bottom',
      presentation: 'transparentModal'
    }
  })), /*#__PURE__*/React.createElement(_PostTypeChoiceModal.default, null), /*#__PURE__*/React.createElement(_Toast.default, null)));
}
//# sourceMappingURL=AmityUIKitNavigator.js.map