@armoyu/ui 1.1.31 → 1.1.32
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.
- package/dist/components/modules/auth/widgets/LoginWidget.d.ts.map +1 -1
- package/dist/components/modules/auth/widgets/LoginWidget.js +1 -1
- package/dist/components/modules/auth/widgets/LoginWidget.js.map +1 -1
- package/dist/components/modules/auth/widgets/RegisterWidget.js +1 -1
- package/dist/components/modules/auth/widgets/RegisterWidget.js.map +1 -1
- package/dist/components/shared/Header.js +1 -1
- package/dist/components/shared/Header.js.map +1 -1
- package/dist/components/shared/LoginModal.d.ts.map +1 -1
- package/dist/components/shared/LoginModal.js +1 -1
- package/dist/components/shared/LoginModal.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/globals.css +1 -1
- package/dist/app/Providers.js +0 -34
- package/dist/app/Providers.js.map +0 -1
- package/dist/app/education/[slug]/page.d.ts +0 -2
- package/dist/app/education/[slug]/page.d.ts.map +0 -1
- package/dist/app/education/[slug]/page.js +0 -7
- package/dist/app/education/[slug]/page.js.map +0 -1
- package/dist/app/egitim/[slug]/page.d.ts +0 -2
- package/dist/app/egitim/[slug]/page.d.ts.map +0 -1
- package/dist/app/egitim/[slug]/page.js +0 -7
- package/dist/app/egitim/[slug]/page.js.map +0 -1
- package/dist/app/etkinlikler/[eventId]/page.d.ts +0 -2
- package/dist/app/etkinlikler/[eventId]/page.d.ts.map +0 -1
- package/dist/app/etkinlikler/[eventId]/page.js +0 -12
- package/dist/app/etkinlikler/[eventId]/page.js.map +0 -1
- package/dist/app/etkinlikler/page.d.ts +0 -2
- package/dist/app/etkinlikler/page.d.ts.map +0 -1
- package/dist/app/etkinlikler/page.js +0 -32
- package/dist/app/etkinlikler/page.js.map +0 -1
- package/dist/app/events/[eventId]/page.d.ts +0 -2
- package/dist/app/events/[eventId]/page.d.ts.map +0 -1
- package/dist/app/events/[eventId]/page.js +0 -12
- package/dist/app/events/[eventId]/page.js.map +0 -1
- package/dist/app/events/page.d.ts +0 -2
- package/dist/app/events/page.d.ts.map +0 -1
- package/dist/app/events/page.js +0 -32
- package/dist/app/events/page.js.map +0 -1
- package/dist/app/groups/[groupId]/page.d.ts +0 -2
- package/dist/app/groups/[groupId]/page.d.ts.map +0 -1
- package/dist/app/groups/[groupId]/page.js +0 -10
- package/dist/app/groups/[groupId]/page.js.map +0 -1
- package/dist/app/gruplar/[groupId]/page.js +0 -11
- package/dist/app/gruplar/[groupId]/page.js.map +0 -1
- package/dist/app/layout.js +0 -29
- package/dist/app/layout.js.map +0 -1
- package/dist/app/management-panel/layout.js +0 -67
- package/dist/app/management-panel/layout.js.map +0 -1
- package/dist/app/management-panel/page.js +0 -151
- package/dist/app/management-panel/page.js.map +0 -1
- package/dist/app/not-found.d.ts +0 -2
- package/dist/app/not-found.d.ts.map +0 -1
- package/dist/app/page.js +0 -59
- package/dist/app/page.js.map +0 -1
- package/dist/components/Button.d.ts +0 -8
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Button.js +0 -16
- package/dist/components/Button.js.map +0 -1
- package/dist/components/GenderStatsBar.d.ts +0 -6
- package/dist/components/GenderStatsBar.d.ts.map +0 -1
- package/dist/components/GenderStatsBar.js +0 -8
- package/dist/components/GenderStatsBar.js.map +0 -1
- package/dist/components/RollingNumber.d.ts +0 -8
- package/dist/components/RollingNumber.d.ts.map +0 -1
- package/dist/components/RollingNumber.js +0 -28
- package/dist/components/RollingNumber.js.map +0 -1
- package/dist/components/Slider.d.ts +0 -11
- package/dist/components/Slider.d.ts.map +0 -1
- package/dist/components/Slider.js +0 -36
- package/dist/components/Slider.js.map +0 -1
- package/dist/components/StatsGrid.d.ts +0 -6
- package/dist/components/StatsGrid.d.ts.map +0 -1
- package/dist/components/StatsGrid.js +0 -14
- package/dist/components/StatsGrid.js.map +0 -1
- package/dist/components/ViewModeToggle.d.ts +0 -8
- package/dist/components/ViewModeToggle.d.ts.map +0 -1
- package/dist/components/ViewModeToggle.js +0 -10
- package/dist/components/ViewModeToggle.js.map +0 -1
- package/dist/components/common/Mentions/HashtagLink.d.ts +0 -7
- package/dist/components/common/Mentions/HashtagLink.d.ts.map +0 -1
- package/dist/components/common/Mentions/HashtagLink.js +0 -7
- package/dist/components/common/Mentions/HashtagLink.js.map +0 -1
- package/dist/components/common/Mentions/MentionLink.d.ts +0 -7
- package/dist/components/common/Mentions/MentionLink.d.ts.map +0 -1
- package/dist/components/common/Mentions/MentionLink.js +0 -33
- package/dist/components/common/Mentions/MentionLink.js.map +0 -1
- package/dist/components/common/Mentions/MentionText.d.ts +0 -8
- package/dist/components/common/Mentions/MentionText.d.ts.map +0 -1
- package/dist/components/common/Mentions/MentionText.js +0 -23
- package/dist/components/common/Mentions/MentionText.js.map +0 -1
- package/dist/components/modules/auth/widgets/AuthJoinCard.d.ts +0 -2
- package/dist/components/modules/auth/widgets/AuthJoinCard.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/AuthJoinCard.js +0 -16
- package/dist/components/modules/auth/widgets/AuthJoinCard.js.map +0 -1
- package/dist/components/modules/auth/widgets/InviteWidget.d.ts +0 -6
- package/dist/components/modules/auth/widgets/InviteWidget.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/InviteWidget.js +0 -68
- package/dist/components/modules/auth/widgets/InviteWidget.js.map +0 -1
- package/dist/components/modules/blog/pages/MyArticlesPage.d.ts +0 -2
- package/dist/components/modules/blog/pages/MyArticlesPage.d.ts.map +0 -1
- package/dist/components/modules/blog/pages/MyArticlesPage.js +0 -229
- package/dist/components/modules/blog/pages/MyArticlesPage.js.map +0 -1
- package/dist/components/modules/chat/ChatLayout.js +0 -208
- package/dist/components/modules/chat/ChatLayout.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatInput.d.ts +0 -5
- package/dist/components/modules/chat/widgets/ChatInput.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatInput.js +0 -31
- package/dist/components/modules/chat/widgets/ChatInput.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatList.d.ts +0 -7
- package/dist/components/modules/chat/widgets/ChatList.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatList.js +0 -74
- package/dist/components/modules/chat/widgets/ChatList.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatMessage.d.ts +0 -12
- package/dist/components/modules/chat/widgets/ChatMessage.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatMessage.js +0 -31
- package/dist/components/modules/chat/widgets/ChatMessage.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatNotes.d.ts +0 -2
- package/dist/components/modules/chat/widgets/ChatNotes.d.ts.map +0 -1
- package/dist/components/modules/cloud/CloudModal.d.ts +0 -12
- package/dist/components/modules/cloud/CloudModal.d.ts.map +0 -1
- package/dist/components/modules/cloud/CloudModal.js +0 -251
- package/dist/components/modules/cloud/CloudModal.js.map +0 -1
- package/dist/components/modules/cloud/CloudWidget.d.ts +0 -9
- package/dist/components/modules/cloud/CloudWidget.d.ts.map +0 -1
- package/dist/components/modules/cloud/CloudWidget.js +0 -7
- package/dist/components/modules/cloud/CloudWidget.js.map +0 -1
- package/dist/components/modules/community/CommunityLayout.js +0 -136
- package/dist/components/modules/community/CommunityLayout.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupAboutCard.d.ts +0 -6
- package/dist/components/modules/community/widgets/GroupAboutCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupAboutCard.js +0 -7
- package/dist/components/modules/community/widgets/GroupAboutCard.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupFeedSection.d.ts +0 -9
- package/dist/components/modules/community/widgets/GroupFeedSection.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupFeedSection.js +0 -8
- package/dist/components/modules/community/widgets/GroupFeedSection.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupHeader.d.ts +0 -11
- package/dist/components/modules/community/widgets/GroupHeader.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupHeader.js +0 -18
- package/dist/components/modules/community/widgets/GroupHeader.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupMenu.d.ts +0 -10
- package/dist/components/modules/community/widgets/GroupMenu.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupMenu.js +0 -17
- package/dist/components/modules/community/widgets/GroupMenu.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupPermissions.d.ts +0 -6
- package/dist/components/modules/community/widgets/GroupPermissions.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupPermissions.js +0 -7
- package/dist/components/modules/community/widgets/GroupPermissions.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts +0 -11
- package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupStatsGrid.js +0 -13
- package/dist/components/modules/community/widgets/GroupStatsGrid.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupTopMembers.d.ts +0 -7
- package/dist/components/modules/community/widgets/GroupTopMembers.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupTopMembers.js +0 -8
- package/dist/components/modules/community/widgets/GroupTopMembers.js.map +0 -1
- package/dist/components/modules/community/widgets/SchoolCard.d.ts +0 -7
- package/dist/components/modules/community/widgets/SchoolCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SchoolCard.js +0 -11
- package/dist/components/modules/community/widgets/SchoolCard.js.map +0 -1
- package/dist/components/modules/community/widgets/SchoolJoinModal.d.ts +0 -8
- package/dist/components/modules/community/widgets/SchoolJoinModal.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SchoolJoinModal.js +0 -36
- package/dist/components/modules/community/widgets/SchoolJoinModal.js.map +0 -1
- package/dist/components/modules/community/widgets/SurveyCard.d.ts +0 -8
- package/dist/components/modules/community/widgets/SurveyCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SurveyCard.js +0 -28
- package/dist/components/modules/community/widgets/SurveyCard.js.map +0 -1
- package/dist/components/modules/education/pages/EducationPage.d.ts +0 -2
- package/dist/components/modules/education/pages/EducationPage.d.ts.map +0 -1
- package/dist/components/modules/education/pages/EducationPage.js +0 -56
- package/dist/components/modules/education/pages/EducationPage.js.map +0 -1
- package/dist/components/modules/education/pages/SchoolDetailPage.d.ts +0 -2
- package/dist/components/modules/education/pages/SchoolDetailPage.d.ts.map +0 -1
- package/dist/components/modules/education/pages/SchoolDetailPage.js +0 -79
- package/dist/components/modules/education/pages/SchoolDetailPage.js.map +0 -1
- package/dist/components/modules/events/DetailPage.d.ts +0 -9
- package/dist/components/modules/events/DetailPage.d.ts.map +0 -1
- package/dist/components/modules/events/DetailPage.js +0 -94
- package/dist/components/modules/events/DetailPage.js.map +0 -1
- package/dist/components/modules/events/EventsLayout.d.ts +0 -8
- package/dist/components/modules/events/EventsLayout.d.ts.map +0 -1
- package/dist/components/modules/events/EventsLayout.js +0 -7
- package/dist/components/modules/events/EventsLayout.js.map +0 -1
- package/dist/components/modules/events/EventsPage.d.ts +0 -11
- package/dist/components/modules/events/EventsPage.d.ts.map +0 -1
- package/dist/components/modules/events/EventsPage.js +0 -91
- package/dist/components/modules/events/EventsPage.js.map +0 -1
- package/dist/components/modules/events/index.d.ts +0 -7
- package/dist/components/modules/events/index.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventCard.d.ts +0 -12
- package/dist/components/modules/events/widgets/EventCard.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventCard.js +0 -12
- package/dist/components/modules/events/widgets/EventCard.js.map +0 -1
- package/dist/components/modules/events/widgets/EventFormModal.d.ts +0 -9
- package/dist/components/modules/events/widgets/EventFormModal.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventFormModal.js +0 -24
- package/dist/components/modules/events/widgets/EventFormModal.js.map +0 -1
- package/dist/components/modules/events/widgets/EventList.d.ts +0 -12
- package/dist/components/modules/events/widgets/EventList.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventList.js +0 -30
- package/dist/components/modules/events/widgets/EventList.js.map +0 -1
- package/dist/components/modules/events/widgets/EventShowcase.d.ts +0 -6
- package/dist/components/modules/events/widgets/EventShowcase.d.ts.map +0 -1
- package/dist/components/modules/events/widgets/EventShowcase.js +0 -80
- package/dist/components/modules/events/widgets/EventShowcase.js.map +0 -1
- package/dist/components/modules/forum/pages/ForumBoardPage.d.ts +0 -8
- package/dist/components/modules/forum/pages/ForumBoardPage.d.ts.map +0 -1
- package/dist/components/modules/forum/pages/ForumBoardPage.js +0 -18
- package/dist/components/modules/forum/pages/ForumBoardPage.js.map +0 -1
- package/dist/components/modules/forum/pages/ForumPage.d.ts +0 -2
- package/dist/components/modules/forum/pages/ForumPage.d.ts.map +0 -1
- package/dist/components/modules/forum/pages/ForumPage.js +0 -14
- package/dist/components/modules/forum/pages/ForumPage.js.map +0 -1
- package/dist/components/modules/forum/pages/ForumTopicPage.d.ts +0 -8
- package/dist/components/modules/forum/pages/ForumTopicPage.d.ts.map +0 -1
- package/dist/components/modules/forum/pages/ForumTopicPage.js +0 -55
- package/dist/components/modules/forum/pages/ForumTopicPage.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumBoard.d.ts +0 -17
- package/dist/components/modules/forum/widgets/ForumBoard.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumBoard.js +0 -7
- package/dist/components/modules/forum/widgets/ForumBoard.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts +0 -6
- package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumCategoryList.js +0 -7
- package/dist/components/modules/forum/widgets/ForumCategoryList.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts +0 -6
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.js +0 -6
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumPost.d.ts +0 -14
- package/dist/components/modules/forum/widgets/ForumPost.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumPost.js +0 -6
- package/dist/components/modules/forum/widgets/ForumPost.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumSidebar.d.ts +0 -2
- package/dist/components/modules/forum/widgets/ForumSidebar.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumSidebar.js +0 -6
- package/dist/components/modules/forum/widgets/ForumSidebar.js.map +0 -1
- package/dist/components/modules/forum/widgets/NewTopicModal.d.ts +0 -8
- package/dist/components/modules/forum/widgets/NewTopicModal.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/NewTopicModal.js +0 -27
- package/dist/components/modules/forum/widgets/NewTopicModal.js.map +0 -1
- package/dist/components/modules/forum/widgets/TopicItem.d.ts +0 -16
- package/dist/components/modules/forum/widgets/TopicItem.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/TopicItem.js +0 -7
- package/dist/components/modules/forum/widgets/TopicItem.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryCard.d.ts +0 -10
- package/dist/components/modules/galleries/widgets/GalleryCard.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryCard.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryCard.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts +0 -8
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts +0 -2
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts +0 -7
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.d.ts +0 -6
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.d.ts.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.js +0 -42
- package/dist/components/modules/giveaways/pages/GiveawayDetailPage.js.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawaysPage.d.ts +0 -2
- package/dist/components/modules/giveaways/pages/GiveawaysPage.d.ts.map +0 -1
- package/dist/components/modules/giveaways/pages/GiveawaysPage.js +0 -60
- package/dist/components/modules/giveaways/pages/GiveawaysPage.js.map +0 -1
- package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts +0 -10
- package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts.map +0 -1
- package/dist/components/modules/giveaways/widgets/GiveawayCard.js +0 -7
- package/dist/components/modules/giveaways/widgets/GiveawayCard.js.map +0 -1
- package/dist/components/modules/groups/widgets/ApplicationModal.d.ts +0 -8
- package/dist/components/modules/groups/widgets/ApplicationModal.d.ts.map +0 -1
- package/dist/components/modules/groups/widgets/ApplicationModal.js +0 -28
- package/dist/components/modules/groups/widgets/ApplicationModal.js.map +0 -1
- package/dist/components/modules/groups/widgets/GroupCard.d.ts +0 -14
- package/dist/components/modules/groups/widgets/GroupCard.d.ts.map +0 -1
- package/dist/components/modules/groups/widgets/GroupCard.js +0 -8
- package/dist/components/modules/groups/widgets/GroupCard.js.map +0 -1
- package/dist/components/modules/guest/widgets/Introduction.d.ts +0 -2
- package/dist/components/modules/guest/widgets/Introduction.d.ts.map +0 -1
- package/dist/components/modules/guest/widgets/Introduction.js +0 -15
- package/dist/components/modules/guest/widgets/Introduction.js.map +0 -1
- package/dist/components/modules/management/ManagementAccessDenied.d.ts +0 -7
- package/dist/components/modules/management/ManagementAccessDenied.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementAccessDenied.js +0 -7
- package/dist/components/modules/management/ManagementAccessDenied.js.map +0 -1
- package/dist/components/modules/management/ManagementLayout.d.ts +0 -14
- package/dist/components/modules/management/ManagementLayout.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementSidebar.d.ts +0 -23
- package/dist/components/modules/management/ManagementSidebar.d.ts.map +0 -1
- package/dist/components/modules/management/ManagementSidebar.js +0 -48
- package/dist/components/modules/management/ManagementSidebar.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementCharts.d.ts +0 -15
- package/dist/components/modules/management/widgets/ManagementCharts.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementCharts.js +0 -10
- package/dist/components/modules/management/widgets/ManagementCharts.js.map +0 -1
- package/dist/components/modules/management/widgets/ManagementDashboard.d.ts +0 -36
- package/dist/components/modules/management/widgets/ManagementDashboard.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/ManagementDashboard.js +0 -20
- package/dist/components/modules/management/widgets/ManagementDashboard.js.map +0 -1
- package/dist/components/modules/management/widgets/MemberManagement.d.ts +0 -16
- package/dist/components/modules/management/widgets/MemberManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/MemberManagement.js +0 -25
- package/dist/components/modules/management/widgets/MemberManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/SystemSettings.d.ts +0 -2
- package/dist/components/modules/management/widgets/SystemSettings.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/SystemSettings.js +0 -7
- package/dist/components/modules/management/widgets/SystemSettings.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.d.ts +0 -6
- package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.js +0 -16
- package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementActivityFeed.d.ts +0 -18
- package/dist/components/modules/management/widgets/dashboard/ManagementActivityFeed.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementActivityFeed.js +0 -7
- package/dist/components/modules/management/widgets/dashboard/ManagementActivityFeed.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementCharts.d.ts +0 -15
- package/dist/components/modules/management/widgets/dashboard/ManagementCharts.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementCharts.js +0 -10
- package/dist/components/modules/management/widgets/dashboard/ManagementCharts.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.d.ts +0 -36
- package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.js +0 -14
- package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementHeader.d.ts +0 -8
- package/dist/components/modules/management/widgets/dashboard/ManagementHeader.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementHeader.js +0 -5
- package/dist/components/modules/management/widgets/dashboard/ManagementHeader.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementOverview.d.ts +0 -27
- package/dist/components/modules/management/widgets/dashboard/ManagementOverview.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementOverview.js +0 -11
- package/dist/components/modules/management/widgets/dashboard/ManagementOverview.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementQuickActions.d.ts +0 -10
- package/dist/components/modules/management/widgets/dashboard/ManagementQuickActions.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementQuickActions.js +0 -7
- package/dist/components/modules/management/widgets/dashboard/ManagementQuickActions.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementStatsGrid.d.ts +0 -14
- package/dist/components/modules/management/widgets/dashboard/ManagementStatsGrid.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementStatsGrid.js +0 -7
- package/dist/components/modules/management/widgets/dashboard/ManagementStatsGrid.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementWidgetCreator.d.ts +0 -4
- package/dist/components/modules/management/widgets/dashboard/ManagementWidgetCreator.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/ManagementWidgetCreator.js +0 -23
- package/dist/components/modules/management/widgets/dashboard/ManagementWidgetCreator.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/RegistryManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/dashboard/RegistryManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/RegistryManagement.js +0 -36
- package/dist/components/modules/management/widgets/dashboard/RegistryManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/StatisticsManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/dashboard/StatisticsManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/StatisticsManagement.js +0 -74
- package/dist/components/modules/management/widgets/dashboard/StatisticsManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/SystemSettings.d.ts +0 -2
- package/dist/components/modules/management/widgets/dashboard/SystemSettings.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/dashboard/SystemSettings.js +0 -20
- package/dist/components/modules/management/widgets/dashboard/SystemSettings.js.map +0 -1
- package/dist/components/modules/management/widgets/editor/GiveawaysManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/editor/GiveawaysManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/editor/GiveawaysManagement.js +0 -12
- package/dist/components/modules/management/widgets/editor/GiveawaysManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/editor/GroupsManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/editor/GroupsManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/editor/GroupsManagement.js +0 -12
- package/dist/components/modules/management/widgets/editor/GroupsManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/editor/NewsManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/editor/NewsManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/editor/NewsManagement.js +0 -13
- package/dist/components/modules/management/widgets/editor/NewsManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/editor/SchoolsManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/editor/SchoolsManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/editor/SchoolsManagement.js +0 -12
- package/dist/components/modules/management/widgets/editor/SchoolsManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/editor/StationsManagement.d.ts +0 -2
- package/dist/components/modules/management/widgets/editor/StationsManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/editor/StationsManagement.js +0 -15
- package/dist/components/modules/management/widgets/editor/StationsManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/events/EventManagement.d.ts +0 -13
- package/dist/components/modules/management/widgets/events/EventManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/events/EventManagement.js +0 -13
- package/dist/components/modules/management/widgets/events/EventManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/events/EventSummaryWidget.d.ts +0 -2
- package/dist/components/modules/management/widgets/events/EventSummaryWidget.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/events/EventSummaryWidget.js +0 -11
- package/dist/components/modules/management/widgets/events/EventSummaryWidget.js.map +0 -1
- package/dist/components/modules/management/widgets/support/SupportManagement.d.ts +0 -14
- package/dist/components/modules/management/widgets/support/SupportManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/support/SupportManagement.js +0 -17
- package/dist/components/modules/management/widgets/support/SupportManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/support/SupportSummaryWidget.d.ts +0 -2
- package/dist/components/modules/management/widgets/support/SupportSummaryWidget.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/support/SupportSummaryWidget.js +0 -11
- package/dist/components/modules/management/widgets/support/SupportSummaryWidget.js.map +0 -1
- package/dist/components/modules/management/widgets/users/MemberManagement.d.ts +0 -16
- package/dist/components/modules/management/widgets/users/MemberManagement.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/users/MemberManagement.js +0 -37
- package/dist/components/modules/management/widgets/users/MemberManagement.js.map +0 -1
- package/dist/components/modules/management/widgets/users/MemberSummaryWidget.d.ts +0 -2
- package/dist/components/modules/management/widgets/users/MemberSummaryWidget.d.ts.map +0 -1
- package/dist/components/modules/management/widgets/users/MemberSummaryWidget.js +0 -12
- package/dist/components/modules/management/widgets/users/MemberSummaryWidget.js.map +0 -1
- package/dist/components/modules/mods/pages/ModDetailPage.d.ts +0 -7
- package/dist/components/modules/mods/pages/ModDetailPage.d.ts.map +0 -1
- package/dist/components/modules/mods/pages/ModDetailPage.js +0 -24
- package/dist/components/modules/mods/pages/ModDetailPage.js.map +0 -1
- package/dist/components/modules/mods/pages/ModsPage.d.ts +0 -20
- package/dist/components/modules/mods/pages/ModsPage.d.ts.map +0 -1
- package/dist/components/modules/mods/pages/ModsPage.js +0 -46
- package/dist/components/modules/mods/pages/ModsPage.js.map +0 -1
- package/dist/components/modules/news/index.d.ts +0 -6
- package/dist/components/modules/news/index.d.ts.map +0 -1
- package/dist/components/modules/news/pages/NewsDetailPage.d.ts +0 -7
- package/dist/components/modules/news/pages/NewsDetailPage.d.ts.map +0 -1
- package/dist/components/modules/news/pages/NewsDetailPage.js +0 -56
- package/dist/components/modules/news/pages/NewsDetailPage.js.map +0 -1
- package/dist/components/modules/news/pages/NewsPage.d.ts +0 -2
- package/dist/components/modules/news/pages/NewsPage.d.ts.map +0 -1
- package/dist/components/modules/news/pages/NewsPage.js +0 -69
- package/dist/components/modules/news/pages/NewsPage.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsCard.d.ts +0 -13
- package/dist/components/modules/news/widgets/NewsCard.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsCard.js +0 -7
- package/dist/components/modules/news/widgets/NewsCard.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsComments.d.ts +0 -4
- package/dist/components/modules/news/widgets/NewsComments.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsComments.js +0 -7
- package/dist/components/modules/news/widgets/NewsComments.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailAuthor.d.ts +0 -8
- package/dist/components/modules/news/widgets/NewsDetailAuthor.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailAuthor.js +0 -6
- package/dist/components/modules/news/widgets/NewsDetailAuthor.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailHero.d.ts +0 -9
- package/dist/components/modules/news/widgets/NewsDetailHero.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailHero.js +0 -6
- package/dist/components/modules/news/widgets/NewsDetailHero.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailSidebar.d.ts +0 -8
- package/dist/components/modules/news/widgets/NewsDetailSidebar.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsDetailSidebar.js +0 -6
- package/dist/components/modules/news/widgets/NewsDetailSidebar.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsHero.d.ts +0 -2
- package/dist/components/modules/news/widgets/NewsHero.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsHero.js +0 -7
- package/dist/components/modules/news/widgets/NewsHero.js.map +0 -1
- package/dist/components/modules/poll/pages/PollsPage.d.ts +0 -2
- package/dist/components/modules/poll/pages/PollsPage.d.ts.map +0 -1
- package/dist/components/modules/poll/pages/PollsPage.js +0 -57
- package/dist/components/modules/poll/pages/PollsPage.js.map +0 -1
- package/dist/components/modules/posts/widgets/MediaLightbox.d.ts +0 -28
- package/dist/components/modules/posts/widgets/MediaLightbox.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/MediaLightbox.js +0 -90
- package/dist/components/modules/posts/widgets/MediaLightbox.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostCard.d.ts +0 -39
- package/dist/components/modules/posts/widgets/PostCard.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostCard.js +0 -260
- package/dist/components/modules/posts/widgets/PostCard.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts +0 -15
- package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostInteractionsModal.js +0 -13
- package/dist/components/modules/posts/widgets/PostInteractionsModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostShareModal.d.ts +0 -9
- package/dist/components/modules/posts/widgets/PostShareModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostShareModal.js +0 -45
- package/dist/components/modules/posts/widgets/PostShareModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/RepostModal.d.ts +0 -22
- package/dist/components/modules/posts/widgets/RepostModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/RepostModal.js +0 -76
- package/dist/components/modules/posts/widgets/RepostModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/SocialFeed.d.ts +0 -23
- package/dist/components/modules/posts/widgets/SocialFeed.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/SocialFeed.js +0 -123
- package/dist/components/modules/posts/widgets/SocialFeed.js.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts +0 -16
- package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelCard.js +0 -55
- package/dist/components/modules/posts/widgets/reels/ReelCard.js.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts +0 -7
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileLayout.js +0 -70
- package/dist/components/modules/profile/ProfileLayout.js.map +0 -1
- package/dist/components/modules/profile/tabs/AboutTab.d.ts +0 -10
- package/dist/components/modules/profile/tabs/AboutTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/AboutTab.js +0 -9
- package/dist/components/modules/profile/tabs/AboutTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/CareerTab.d.ts +0 -8
- package/dist/components/modules/profile/tabs/CareerTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/CareerTab.js +0 -57
- package/dist/components/modules/profile/tabs/CareerTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/FriendsTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/FriendsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/FriendsTab.js +0 -46
- package/dist/components/modules/profile/tabs/FriendsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/GamesTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/GamesTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/GamesTab.js +0 -24
- package/dist/components/modules/profile/tabs/GamesTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/GroupsTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/GroupsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/GroupsTab.js +0 -9
- package/dist/components/modules/profile/tabs/GroupsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/MediaTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/MediaTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/MediaTab.js +0 -81
- package/dist/components/modules/profile/tabs/MediaTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/PostsTab.js +0 -34
- package/dist/components/modules/profile/tabs/PostsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/QuestionsTab.d.ts +0 -6
- package/dist/components/modules/profile/tabs/QuestionsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/QuestionsTab.js +0 -39
- package/dist/components/modules/profile/tabs/QuestionsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/WallTab.js +0 -40
- package/dist/components/modules/profile/tabs/WallTab.js.map +0 -1
- package/dist/components/modules/profile/widgets/EditProfileModal.d.ts +0 -9
- package/dist/components/modules/profile/widgets/EditProfileModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/EditProfileModal.js +0 -78
- package/dist/components/modules/profile/widgets/EditProfileModal.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts +0 -2
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js +0 -14
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts +0 -8
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js +0 -12
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.d.ts +0 -7
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.js +0 -11
- package/dist/components/modules/profile/widgets/ProfileGamesWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.d.ts +0 -7
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.js +0 -11
- package/dist/components/modules/profile/widgets/ProfileGroupsWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileHeader.d.ts +0 -9
- package/dist/components/modules/profile/widgets/ProfileHeader.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileHeader.js +0 -44
- package/dist/components/modules/profile/widgets/ProfileHeader.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.d.ts +0 -10
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.js +0 -41
- package/dist/components/modules/profile/widgets/ProfileInfoWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileStats.d.ts +0 -9
- package/dist/components/modules/profile/widgets/ProfileStats.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileStats.js +0 -26
- package/dist/components/modules/profile/widgets/ProfileStats.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileTabsArea.js +0 -61
- package/dist/components/modules/profile/widgets/ProfileTabsArea.js.map +0 -1
- package/dist/components/modules/profile/widgets/SoulmateSelectorModal.d.ts +0 -10
- package/dist/components/modules/profile/widgets/SoulmateSelectorModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts +0 -11
- package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/TeamSelectorModal.js +0 -18
- package/dist/components/modules/profile/widgets/TeamSelectorModal.js.map +0 -1
- package/dist/components/modules/shop/CartLayout.d.ts +0 -12
- package/dist/components/modules/shop/CartLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/CartLayout.js +0 -14
- package/dist/components/modules/shop/CartLayout.js.map +0 -1
- package/dist/components/modules/shop/CheckoutLayout.d.ts +0 -8
- package/dist/components/modules/shop/CheckoutLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/CheckoutLayout.js +0 -23
- package/dist/components/modules/shop/CheckoutLayout.js.map +0 -1
- package/dist/components/modules/shop/DetailLayout.d.ts +0 -8
- package/dist/components/modules/shop/DetailLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/DetailLayout.js +0 -24
- package/dist/components/modules/shop/DetailLayout.js.map +0 -1
- package/dist/components/modules/shop/OrdersLayout.d.ts +0 -15
- package/dist/components/modules/shop/OrdersLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/OrdersLayout.js +0 -8
- package/dist/components/modules/shop/OrdersLayout.js.map +0 -1
- package/dist/components/modules/shop/widgets/BackToStore.d.ts +0 -2
- package/dist/components/modules/shop/widgets/BackToStore.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/BackToStore.js +0 -13
- package/dist/components/modules/shop/widgets/BackToStore.js.map +0 -1
- package/dist/components/modules/shop/widgets/CategoryWidget.d.ts +0 -8
- package/dist/components/modules/shop/widgets/CategoryWidget.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/CategoryWidget.js +0 -23
- package/dist/components/modules/shop/widgets/CategoryWidget.js.map +0 -1
- package/dist/components/modules/shop/widgets/ProductCard.d.ts +0 -8
- package/dist/components/modules/shop/widgets/ProductCard.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/ProductCard.js +0 -10
- package/dist/components/modules/shop/widgets/ProductCard.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreHeader.d.ts +0 -6
- package/dist/components/modules/shop/widgets/StoreHeader.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreHeader.js +0 -9
- package/dist/components/modules/shop/widgets/StoreHeader.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts +0 -7
- package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreProductGrid.js +0 -13
- package/dist/components/modules/shop/widgets/StoreProductGrid.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSearchBar.d.ts +0 -9
- package/dist/components/modules/shop/widgets/StoreSearchBar.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSearchBar.js +0 -9
- package/dist/components/modules/shop/widgets/StoreSearchBar.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSidebar.d.ts +0 -8
- package/dist/components/modules/shop/widgets/StoreSidebar.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSidebar.js +0 -8
- package/dist/components/modules/shop/widgets/StoreSidebar.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts +0 -2
- package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreTrustBadges.js +0 -29
- package/dist/components/modules/shop/widgets/StoreTrustBadges.js.map +0 -1
- package/dist/components/modules/social/SocialLayout.js +0 -113
- package/dist/components/modules/social/SocialLayout.js.map +0 -1
- package/dist/components/modules/social/widgets/EconomyWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/EconomyWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/EconomyWidget.js +0 -55
- package/dist/components/modules/social/widgets/EconomyWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/LeagueWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/LeagueWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/LeagueWidget.js +0 -50
- package/dist/components/modules/social/widgets/LeagueWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/MinecraftWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/MinecraftWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/MinecraftWidget.js +0 -53
- package/dist/components/modules/social/widgets/MinecraftWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/NewMembersWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/NewMembersWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/NewMembersWidget.js +0 -36
- package/dist/components/modules/social/widgets/NewMembersWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/PostComposer.d.ts +0 -15
- package/dist/components/modules/social/widgets/PostComposer.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/PostComposer.js +0 -164
- package/dist/components/modules/social/widgets/PostComposer.js.map +0 -1
- package/dist/components/modules/social/widgets/RankingWidget.d.ts +0 -5
- package/dist/components/modules/social/widgets/RankingWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/RankingWidget.js +0 -78
- package/dist/components/modules/social/widgets/RankingWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/SocialSidebar.d.ts +0 -2
- package/dist/components/modules/social/widgets/SocialSidebar.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/TrendingWidget.d.ts +0 -3
- package/dist/components/modules/social/widgets/TrendingWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/TrendingWidget.js +0 -34
- package/dist/components/modules/social/widgets/TrendingWidget.js.map +0 -1
- package/dist/components/modules/stations/widgets/StationCard.d.ts +0 -3
- package/dist/components/modules/stations/widgets/StationCard.d.ts.map +0 -1
- package/dist/components/modules/stations/widgets/StationCard.js +0 -26
- package/dist/components/modules/stations/widgets/StationCard.js.map +0 -1
- package/dist/components/modules/stations/widgets/StationQRModal.d.ts +0 -10
- package/dist/components/modules/stations/widgets/StationQRModal.d.ts.map +0 -1
- package/dist/components/modules/stations/widgets/StationQRModal.js +0 -13
- package/dist/components/modules/stations/widgets/StationQRModal.js.map +0 -1
- package/dist/components/modules/stories/widgets/AddStoryModal.d.ts +0 -13
- package/dist/components/modules/stories/widgets/AddStoryModal.d.ts.map +0 -1
- package/dist/components/modules/stories/widgets/AddStoryModal.js +0 -11
- package/dist/components/modules/stories/widgets/AddStoryModal.js.map +0 -1
- package/dist/components/modules/stories/widgets/Stories.d.ts +0 -2
- package/dist/components/modules/stories/widgets/Stories.d.ts.map +0 -1
- package/dist/components/modules/stories/widgets/Stories.js +0 -151
- package/dist/components/modules/stories/widgets/Stories.js.map +0 -1
- package/dist/components/modules/stories/widgets/StoryOverlay.d.ts +0 -10
- package/dist/components/modules/stories/widgets/StoryOverlay.d.ts.map +0 -1
- package/dist/components/modules/stories/widgets/StoryOverlay.js +0 -205
- package/dist/components/modules/stories/widgets/StoryOverlay.js.map +0 -1
- package/dist/components/modules/support/pages/SupportPage.d.ts +0 -2
- package/dist/components/modules/support/pages/SupportPage.d.ts.map +0 -1
- package/dist/components/modules/support/pages/SupportPage.js +0 -47
- package/dist/components/modules/support/pages/SupportPage.js.map +0 -1
- package/dist/components/shared/AnimatedStat.d.ts +0 -13
- package/dist/components/shared/AnimatedStat.d.ts.map +0 -1
- package/dist/components/shared/AnimatedStat.js +0 -20
- package/dist/components/shared/AnimatedStat.js.map +0 -1
- package/dist/components/shared/DevTools.d.ts +0 -2
- package/dist/components/shared/DevTools.d.ts.map +0 -1
- package/dist/components/shared/DevTools.js +0 -32
- package/dist/components/shared/DevTools.js.map +0 -1
- package/dist/components/shared/FilterTabs.d.ts +0 -16
- package/dist/components/shared/FilterTabs.d.ts.map +0 -1
- package/dist/components/shared/FilterTabs.js +0 -18
- package/dist/components/shared/FilterTabs.js.map +0 -1
- package/dist/components/shared/FloatingChatButton.js +0 -21
- package/dist/components/shared/FloatingChatButton.js.map +0 -1
- package/dist/components/shared/Footer.d.ts +0 -2
- package/dist/components/shared/Footer.d.ts.map +0 -1
- package/dist/components/shared/Footer.js +0 -10
- package/dist/components/shared/Footer.js.map +0 -1
- package/dist/components/shared/ListToolbar.d.ts +0 -32
- package/dist/components/shared/ListToolbar.d.ts.map +0 -1
- package/dist/components/shared/ListToolbar.js +0 -13
- package/dist/components/shared/ListToolbar.js.map +0 -1
- package/dist/components/shared/MainLayoutWrapper.d.ts +0 -5
- package/dist/components/shared/MainLayoutWrapper.d.ts.map +0 -1
- package/dist/components/shared/MainLayoutWrapper.js +0 -8
- package/dist/components/shared/MainLayoutWrapper.js.map +0 -1
- package/dist/components/shared/NotFound.d.ts +0 -21
- package/dist/components/shared/NotFound.d.ts.map +0 -1
- package/dist/components/shared/NotFound.js +0 -7
- package/dist/components/shared/NotFound.js.map +0 -1
- package/dist/components/shared/PageWidth.d.ts +0 -6
- package/dist/components/shared/PageWidth.d.ts.map +0 -1
- package/dist/components/shared/PageWidth.js +0 -14
- package/dist/components/shared/PageWidth.js.map +0 -1
- package/dist/components/shared/RegisterModal.d.ts +0 -7
- package/dist/components/shared/RegisterModal.d.ts.map +0 -1
- package/dist/components/shared/SearchBar.d.ts +0 -14
- package/dist/components/shared/SearchBar.d.ts.map +0 -1
- package/dist/components/shared/SearchBar.js +0 -21
- package/dist/components/shared/SearchBar.js.map +0 -1
- package/dist/components/shared/UserDrawer.d.ts +0 -23
- package/dist/components/shared/UserDrawer.d.ts.map +0 -1
- package/dist/components/shared/UserDrawer.js +0 -47
- package/dist/components/shared/UserDrawer.js.map +0 -1
- package/dist/components/showcase/AuthTab.js +0 -14
- package/dist/components/showcase/AuthTab.js.map +0 -1
- package/dist/components/showcase/CommunityTab.js +0 -6
- package/dist/components/showcase/CommunityTab.js.map +0 -1
- package/dist/components/showcase/CorporateTab.js +0 -20
- package/dist/components/showcase/CorporateTab.js.map +0 -1
- package/dist/components/showcase/GeneralTab.js +0 -6
- package/dist/components/showcase/GeneralTab.js.map +0 -1
- package/dist/components/showcase/GroupTab.d.ts +0 -2
- package/dist/components/showcase/GroupTab.d.ts.map +0 -1
- package/dist/components/showcase/GroupTab.js +0 -111
- package/dist/components/showcase/GroupTab.js.map +0 -1
- package/dist/components/showcase/MessagesTab.js +0 -25
- package/dist/components/showcase/MessagesTab.js.map +0 -1
- package/dist/components/showcase/MyPostsTab.js +0 -12
- package/dist/components/showcase/MyPostsTab.js.map +0 -1
- package/dist/components/showcase/ReelsTab.d.ts +0 -2
- package/dist/components/showcase/ReelsTab.d.ts.map +0 -1
- package/dist/components/showcase/ReelsTab.js +0 -97
- package/dist/components/showcase/ReelsTab.js.map +0 -1
- package/dist/components/showcase/RulesTab.d.ts +0 -2
- package/dist/components/showcase/RulesTab.d.ts.map +0 -1
- package/dist/components/showcase/RulesTab.js +0 -18
- package/dist/components/showcase/RulesTab.js.map +0 -1
- package/dist/components/showcase/ShopTab.js +0 -63
- package/dist/components/showcase/ShopTab.js.map +0 -1
- package/dist/components/showcase/ShowcaseNavigation.d.ts +0 -2
- package/dist/components/showcase/ShowcaseNavigation.d.ts.map +0 -1
- package/dist/components/showcase/ShowcaseNavigation.js +0 -129
- package/dist/components/showcase/ShowcaseNavigation.js.map +0 -1
- package/dist/components/showcase/SocialTab.js +0 -61
- package/dist/components/showcase/SocialTab.js.map +0 -1
- package/dist/components/showcase/StoriesTab.js +0 -7
- package/dist/components/showcase/StoriesTab.js.map +0 -1
- package/dist/context/ArmoyuContext.d.ts +0 -45
- package/dist/context/ArmoyuContext.d.ts.map +0 -1
- package/dist/context/ArmoyuContext.js +0 -92
- package/dist/context/ArmoyuContext.js.map +0 -1
- package/dist/context/AuthContext.d.ts +0 -23
- package/dist/context/AuthContext.d.ts.map +0 -1
- package/dist/context/AuthContext.js +0 -154
- package/dist/context/AuthContext.js.map +0 -1
- package/dist/context/CartContext.d.ts +0 -18
- package/dist/context/CartContext.d.ts.map +0 -1
- package/dist/context/CartContext.js +0 -63
- package/dist/context/CartContext.js.map +0 -1
- package/dist/context/ChatContext.d.ts +0 -27
- package/dist/context/ChatContext.d.ts.map +0 -1
- package/dist/context/ChatContext.js +0 -170
- package/dist/context/ChatContext.js.map +0 -1
- package/dist/context/LayoutContext.d.ts +0 -11
- package/dist/context/LayoutContext.d.ts.map +0 -1
- package/dist/context/LayoutContext.js +0 -17
- package/dist/context/LayoutContext.js.map +0 -1
- package/dist/context/SocketContext.d.ts +0 -13
- package/dist/context/SocketContext.d.ts.map +0 -1
- package/dist/context/SocketContext.js +0 -32
- package/dist/context/SocketContext.js.map +0 -1
- package/dist/context/ThemeContext.d.ts +0 -14
- package/dist/context/ThemeContext.d.ts.map +0 -1
- package/dist/context/ThemeContext.js +0 -52
- package/dist/context/ThemeContext.js.map +0 -1
- package/dist/lib/ArmoyuUI.d.ts +0 -18
- package/dist/lib/ArmoyuUI.d.ts.map +0 -1
- package/dist/lib/constants/educationData.d.ts +0 -11
- package/dist/lib/constants/educationData.d.ts.map +0 -1
- package/dist/lib/constants/educationData.js +0 -121
- package/dist/lib/constants/educationData.js.map +0 -1
- package/dist/lib/constants/punishmentData.d.ts +0 -30
- package/dist/lib/constants/punishmentData.d.ts.map +0 -1
- package/dist/lib/constants/punishmentData.js +0 -184
- package/dist/lib/constants/punishmentData.js.map +0 -1
- package/dist/lib/constants/seedData.d.ts +0 -182
- package/dist/lib/constants/seedData.d.ts.map +0 -1
- package/dist/lib/constants/seedData.js +0 -743
- package/dist/lib/constants/seedData.js.map +0 -1
- package/dist/lib/constants/stationData.d.ts +0 -16
- package/dist/lib/constants/stationData.d.ts.map +0 -1
- package/dist/lib/constants/stationData.js +0 -206
- package/dist/lib/constants/stationData.js.map +0 -1
- package/dist/lib/constants/surveyData.d.ts +0 -3
- package/dist/lib/constants/surveyData.d.ts.map +0 -1
- package/dist/lib/constants/surveyData.js +0 -51
- package/dist/lib/constants/surveyData.js.map +0 -1
- package/dist/lib/constants/teamData.d.ts +0 -19
- package/dist/lib/constants/teamData.d.ts.map +0 -1
- package/dist/lib/constants/teamData.js +0 -56
- package/dist/lib/constants/teamData.js.map +0 -1
- package/dist/lib/utils/numberFormat.d.ts +0 -10
- package/dist/lib/utils/numberFormat.d.ts.map +0 -1
- package/dist/lib/utils/numberFormat.js +0 -17
- package/dist/lib/utils/numberFormat.js.map +0 -1
- package/dist/lib/utils/odpUtils.d.ts +0 -16
- package/dist/lib/utils/odpUtils.d.ts.map +0 -1
- package/dist/lib/utils/odpUtils.js +0 -44
- package/dist/lib/utils/odpUtils.js.map +0 -1
- package/dist/lib/utils/postUtils.d.ts +0 -7
- package/dist/lib/utils/postUtils.d.ts.map +0 -1
- package/dist/lib/utils/postUtils.js +0 -40
- package/dist/lib/utils/postUtils.js.map +0 -1
- package/dist/models/auth/Session.d.ts +0 -24
- package/dist/models/auth/Session.d.ts.map +0 -1
- package/dist/models/auth/User.d.ts +0 -99
- package/dist/models/auth/User.d.ts.map +0 -1
- package/dist/models/auth/User.js +0 -236
- package/dist/models/auth/User.js.map +0 -1
- package/dist/models/community/ArmoyuEvent.d.ts +0 -62
- package/dist/models/community/ArmoyuEvent.d.ts.map +0 -1
- package/dist/models/community/ArmoyuEvent.js +0 -149
- package/dist/models/community/ArmoyuEvent.js.map +0 -1
- package/dist/models/community/Classroom.d.ts +0 -24
- package/dist/models/community/Classroom.d.ts.map +0 -1
- package/dist/models/community/Faculty.d.ts +0 -22
- package/dist/models/community/Faculty.d.ts.map +0 -1
- package/dist/models/community/Group.d.ts +0 -38
- package/dist/models/community/Group.d.ts.map +0 -1
- package/dist/models/community/School.d.ts +0 -28
- package/dist/models/community/School.d.ts.map +0 -1
- package/dist/models/community/SchoolTeam.d.ts +0 -27
- package/dist/models/community/SchoolTeam.d.ts.map +0 -1
- package/dist/models/community/Station.d.ts +0 -81
- package/dist/models/community/Station.d.ts.map +0 -1
- package/dist/models/community/Survey.d.ts +0 -27
- package/dist/models/community/Survey.d.ts.map +0 -1
- package/dist/models/community/Team.d.ts +0 -22
- package/dist/models/community/Team.d.ts.map +0 -1
- package/dist/models/community/Team.js +0 -60
- package/dist/models/community/Team.js.map +0 -1
- package/dist/models/content/Mod.d.ts +0 -21
- package/dist/models/content/Mod.d.ts.map +0 -1
- package/dist/models/content/News.d.ts +0 -41
- package/dist/models/content/News.d.ts.map +0 -1
- package/dist/models/content/Project.d.ts +0 -27
- package/dist/models/content/Project.d.ts.map +0 -1
- package/dist/models/core/PlatformStats.d.ts +0 -46
- package/dist/models/core/PlatformStats.d.ts.map +0 -1
- package/dist/models/core/PlatformStats.js +0 -88
- package/dist/models/core/PlatformStats.js.map +0 -1
- package/dist/models/core/SystemSettings.d.ts +0 -38
- package/dist/models/core/SystemSettings.d.ts.map +0 -1
- package/dist/models/core/SystemSettings.js +0 -64
- package/dist/models/core/SystemSettings.js.map +0 -1
- package/dist/models/index.d.ts +0 -58
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/social/chat/Chat.d.ts +0 -26
- package/dist/models/social/chat/Chat.d.ts.map +0 -1
- package/dist/models/social/chat/Message.d.ts +0 -18
- package/dist/models/social/chat/Message.d.ts.map +0 -1
- package/dist/models/social/feed/Comment.d.ts +0 -21
- package/dist/models/social/feed/Comment.d.ts.map +0 -1
- package/dist/models/social/feed/Post.d.ts +0 -29
- package/dist/models/social/feed/Post.d.ts.map +0 -1
- package/dist/models/social/feed/Post.js +0 -57
- package/dist/models/social/feed/Post.js.map +0 -1
- package/dist/models/social/stats/Leaderboard.d.ts +0 -29
- package/dist/models/social/stats/Leaderboard.d.ts.map +0 -1
- package/dist/models/social/user/BlockedUser.d.ts +0 -15
- package/dist/models/social/user/BlockedUser.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -4
- package/dist/types/index.js.map +0 -1
- package/dist/types/stats.d.ts +0 -18
- package/dist/types/stats.d.ts.map +0 -1
- package/dist/types/stats.js +0 -2
- package/dist/types/stats.js.map +0 -1
- package/dist/utils/text/MentionUtils.d.ts +0 -8
- package/dist/utils/text/MentionUtils.d.ts.map +0 -1
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useRouter, useSearchParams } from 'next/navigation';
|
|
4
|
-
import { useState, useEffect, useRef } from 'react';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import { Users, MessageSquare, Newspaper, ShoppingBag, ChevronDown, GraduationCap, Zap, LayoutGrid, UserCircle, Image as ImageIcon, Info, Scale, Trophy, MessageCircle, FileText, Gift, Calendar, Camera, Menu, X } from 'lucide-react';
|
|
7
|
-
import { useAuth } from '../../context/AuthContext';
|
|
8
|
-
import { useArmoyu } from '../../context/ArmoyuContext';
|
|
9
|
-
import { useTheme } from '../../context/ThemeContext';
|
|
10
|
-
import { UserDrawer } from '../shared/UserDrawer';
|
|
11
|
-
export function ShowcaseNavigation() {
|
|
12
|
-
const { user, logout, isLoading } = useAuth();
|
|
13
|
-
const router = useRouter();
|
|
14
|
-
const searchParams = useSearchParams();
|
|
15
|
-
const initialTab = searchParams.get('tab') || 'sosyal';
|
|
16
|
-
const [activeTab, setActiveTab] = useState(initialTab);
|
|
17
|
-
const [activeMenu, setActiveMenu] = useState(null);
|
|
18
|
-
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
19
|
-
const menuTimeoutRef = useRef(null);
|
|
20
|
-
const { api, navigation } = useArmoyu();
|
|
21
|
-
const { theme, toggleTheme } = useTheme();
|
|
22
|
-
const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);
|
|
23
|
-
const [userGroups, setUserGroups] = useState([]);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
const currentTab = searchParams.get('tab') || 'sosyal';
|
|
26
|
-
setActiveTab(currentTab);
|
|
27
|
-
}, [searchParams]);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
if (user) {
|
|
30
|
-
const fetchGroups = async () => {
|
|
31
|
-
try {
|
|
32
|
-
const response = await api.groups.getUserGroups();
|
|
33
|
-
if (response.durum === 1 && response.icerik) {
|
|
34
|
-
setUserGroups(Array.isArray(response.icerik) ? response.icerik : []);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.error("[ShowcaseNav] Fetch Groups Error:", error);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
fetchGroups();
|
|
42
|
-
}
|
|
43
|
-
}, [user, api]);
|
|
44
|
-
const goToMyProfile = () => {
|
|
45
|
-
if (user) {
|
|
46
|
-
handleTabChange('profil');
|
|
47
|
-
setIsUserMenuOpen(false);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const categories = [
|
|
51
|
-
{
|
|
52
|
-
id: 'social',
|
|
53
|
-
label: 'SOSYAL',
|
|
54
|
-
icon: _jsx(MessageSquare, { size: 16 }),
|
|
55
|
-
items: [
|
|
56
|
-
{ id: 'sosyal', label: 'AKIŞ', icon: _jsx(Newspaper, { size: 16 }), desc: 'Sosyal medya akışı ve paylaşımlar' },
|
|
57
|
-
{ id: 'hikayeler', label: 'HİKAYELER', icon: _jsx(ImageIcon, { size: 16 }), desc: 'Kullanıcı hikayeleri ve etkileşim' },
|
|
58
|
-
{ id: 'profil', label: 'PROFİL', icon: _jsx(UserCircle, { size: 16 }), desc: 'Kullanıcı profili ve istatistikler' },
|
|
59
|
-
{ id: 'sohbet', label: 'SOHBET', icon: _jsx(MessageCircle, { size: 16 }), desc: 'Anlık mesajlaşma ve arkadaşlar' },
|
|
60
|
-
{ id: 'reels', label: 'REELS', icon: _jsx(Camera, { size: 16 }), desc: 'Kısa videolar ve hikayeler' },
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: 'community',
|
|
65
|
-
label: 'TOPLULUK',
|
|
66
|
-
icon: _jsx(Users, { size: 16 }),
|
|
67
|
-
items: [
|
|
68
|
-
{ id: 'haberler', label: 'HABERLER', icon: _jsx(Newspaper, { size: 16 }), desc: 'Platform duyuruları ve güncel haberler' },
|
|
69
|
-
{ id: 'gruplar', label: 'GRUPLAR', icon: _jsx(Users, { size: 16 }), desc: 'Klanlar ve sosyal topluluklar' },
|
|
70
|
-
{ id: 'forum', label: 'FORUM', icon: _jsx(FileText, { size: 16 }), desc: 'Tartışma konuları ve rehberler' },
|
|
71
|
-
{ id: 'egitim', label: 'EĞİTİM', icon: _jsx(GraduationCap, { size: 16 }), desc: 'Okullar ve akademik hayat' },
|
|
72
|
-
{ id: 'anketler', label: 'ANKETLER', icon: _jsx(Zap, { size: 16 }), desc: 'Topluluk kararları ve oylamalar' },
|
|
73
|
-
{ id: 'cekilisler', label: 'ÇEKİLİŞLER', icon: _jsx(Gift, { size: 16 }), desc: 'Ödüllü etkinlikler ve şans' },
|
|
74
|
-
{ id: 'etkinlikler', label: 'ETKİNLİKLER', icon: _jsx(Calendar, { size: 16 }), desc: 'Turnuvalar ve topluluk buluşmaları' },
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 'services',
|
|
79
|
-
label: 'HİZMETLER',
|
|
80
|
-
icon: _jsx(LayoutGrid, { size: 16 }),
|
|
81
|
-
items: [
|
|
82
|
-
{ id: 'magaza', label: 'MAĞAZA', icon: _jsx(ShoppingBag, { size: 16 }), desc: 'Dijital ürünler ve market' },
|
|
83
|
-
{ id: 'kurumsal', label: 'KURUMSAL', icon: _jsx(Info, { size: 16 }), desc: 'Kurumsal sayfalar ve navigasyon' },
|
|
84
|
-
{ id: 'kurallar', label: 'KURALLAR', icon: _jsx(Scale, { size: 16 }), desc: 'Platform kuralları ve ilkeler' },
|
|
85
|
-
{ id: 'genel', label: 'BİLEŞENLER', icon: _jsx(LayoutGrid, { size: 16 }), desc: 'Temel bileşenler ve atomlar' },
|
|
86
|
-
{ id: 'modlar', label: 'MODLAR', icon: _jsx(Trophy, { size: 16 }), desc: 'Sunucu modları ve eklentiler' },
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
];
|
|
90
|
-
const handleTabChange = (id) => {
|
|
91
|
-
if (id === 'management-panel') {
|
|
92
|
-
router.push('/management-panel');
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
setActiveTab(id);
|
|
96
|
-
setActiveMenu(null);
|
|
97
|
-
router.push(`/?tab=${id}`);
|
|
98
|
-
};
|
|
99
|
-
const handleMenuEnter = (id) => {
|
|
100
|
-
if (menuTimeoutRef.current)
|
|
101
|
-
clearTimeout(menuTimeoutRef.current);
|
|
102
|
-
setActiveMenu(id);
|
|
103
|
-
};
|
|
104
|
-
const handleMenuLeave = () => {
|
|
105
|
-
menuTimeoutRef.current = setTimeout(() => {
|
|
106
|
-
setActiveMenu(null);
|
|
107
|
-
}, 150);
|
|
108
|
-
};
|
|
109
|
-
return (_jsxs("nav", { className: "sticky top-0 z-[200] w-full border-b border-armoyu-header-border bg-armoyu-header-bg transition-colors duration-300 shadow-sm shadow-primary/5", children: [_jsxs("div", { className: "w-full px-4 md:px-8 h-16 flex items-center justify-between gap-8", children: [_jsxs(Link, { href: "/", className: "flex items-center gap-4 shrink-0 group", children: [_jsx("div", { className: "w-10 h-10 rounded-2xl bg-armoyu-primary flex items-center justify-center shadow-lg shadow-primary/20 group-hover:scale-105 transition-all duration-500", children: _jsx("span", { className: "text-white font-black text-xs italic", children: "UI" }) }), _jsxs("div", { className: "hidden sm:block", children: [_jsxs("h2", { className: "text-sm font-black text-armoyu-text uppercase tracking-tighter italic leading-none", children: ["ARMOYU ", _jsx("span", { className: "text-armoyu-primary", children: "VITRINI" })] }), _jsx("p", { className: "text-[9px] font-bold text-armoyu-text-muted uppercase tracking-[0.2em] opacity-50 mt-1", children: "Design System V3" })] })] }), _jsx("div", { className: "hidden lg:flex flex-1 items-center gap-2", children: categories.map((cat) => (_jsxs("div", { className: "relative", onMouseEnter: () => handleMenuEnter(cat.id), onMouseLeave: handleMenuLeave, children: [_jsxs("button", { className: `flex items-center gap-2 px-5 py-2.5 rounded-xl text-[10px] font-black uppercase tracking-[0.1em] transition-all ${cat.items.some(i => i.id === activeTab)
|
|
110
|
-
? 'text-armoyu-primary bg-armoyu-primary/10'
|
|
111
|
-
: 'text-armoyu-text-muted hover:text-armoyu-text hover:bg-black/5 dark:hover:bg-white/5'}`, children: [cat.label, _jsx(ChevronDown, { size: 12, className: `transition-transform duration-300 ${activeMenu === cat.id ? 'rotate-180' : ''}` })] }), activeMenu === cat.id && (_jsx("div", { className: "absolute top-full left-0 mt-2 w-64 rounded-3xl border border-armoyu-header-border bg-white dark:bg-[#12121a] shadow-2xl overflow-hidden p-3 animate-in fade-in zoom-in duration-200", children: _jsx("div", { className: "grid gap-1", children: cat.items.map((item) => (_jsxs("button", { onClick: () => handleTabChange(item.id), className: `flex items-start gap-4 p-3 rounded-2xl text-left transition-all group ${activeTab === item.id
|
|
112
|
-
? 'bg-armoyu-primary text-white'
|
|
113
|
-
: 'hover:bg-black/5 dark:hover:bg-white/5 text-armoyu-text-muted hover:text-armoyu-text'}`, children: [_jsx("div", { className: `mt-1 p-2 rounded-lg ${activeTab === item.id ? 'bg-white/20' : 'bg-black/5 dark:bg-white/5 group-hover:bg-armoyu-primary/20 group-hover:text-armoyu-primary'} transition-colors`, children: item.icon }), _jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[10px] font-black uppercase tracking-widest", children: item.label }), _jsx("span", { className: `text-[8px] font-bold opacity-60 leading-tight mt-1 ${activeTab === item.id ? 'text-white' : 'text-armoyu-text-muted group-hover:text-armoyu-text'}`, children: item.desc })] })] }, item.id))) }) }))] }, cat.id))) }), _jsxs("div", { className: "flex items-center gap-2 md:gap-4", children: [_jsx("button", { onClick: () => setIsMobileMenuOpen(true), className: "lg:hidden p-2.5 rounded-xl text-armoyu-text-muted hover:text-armoyu-text hover:bg-black/5 dark:hover:bg-white/5 transition-all", children: _jsx(Menu, { size: 24 }) }), isLoading ? (_jsx("div", { className: "w-10 h-10 sm:w-32 rounded-2xl bg-black/5 dark:bg-white/5 animate-pulse border border-armoyu-header-border" })) : user ? (_jsxs("div", { className: "flex items-center gap-3 sm:pl-4 sm:border-l border-armoyu-header-border group relative", children: [_jsxs("div", { className: "flex flex-col items-end hidden sm:flex", children: [_jsx("span", { className: "text-[10px] font-black text-armoyu-text uppercase tracking-tighter italic", children: user.displayName || user.username }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-primary uppercase tracking-widest opacity-80", children: "Online" })] }), _jsx("button", { onClick: () => setIsUserMenuOpen(true), className: "w-10 h-10 rounded-2xl bg-black/5 dark:bg-white/5 border border-armoyu-header-border overflow-hidden hover:border-armoyu-primary/50 transition-all active:scale-95", children: _jsx("img", { src: user.avatar || `https://api.dicebear.com/7.x/avataaars/svg?seed=${user.username}`, alt: "Profile", className: "w-full h-full object-cover" }) })] })) : (_jsxs("button", { onClick: () => handleTabChange('auth'), className: `flex items-center gap-3 px-4 sm:px-6 py-2.5 sm:py-3 rounded-2xl text-[10px] font-black uppercase tracking-[0.1em] transition-all ${activeTab === 'auth'
|
|
114
|
-
? 'bg-armoyu-text text-armoyu-bg shadow-xl shadow-black/10'
|
|
115
|
-
: 'bg-armoyu-primary text-white hover:opacity-90 shadow-xl shadow-primary/20'}`, children: [_jsx(UserCircle, { size: 16, strokeWidth: 2.5 }), _jsx("span", { className: "hidden xs:block", children: "Giri\u015F Yap" })] }))] })] }), isMobileMenuOpen && (_jsxs("div", { className: "fixed inset-0 z-[250] lg:hidden animate-in fade-in duration-300", children: [_jsx("div", { className: "absolute inset-0 bg-black/60 backdrop-blur-md", onClick: () => setIsMobileMenuOpen(false) }), _jsxs("div", { className: "absolute inset-y-0 left-0 w-[300px] bg-armoyu-header-bg border-r border-armoyu-header-border shadow-2xl flex flex-col animate-in slide-in-from-left duration-500", children: [_jsxs("div", { className: "p-6 border-b border-armoyu-header-border flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "w-8 h-8 rounded-xl bg-armoyu-primary flex items-center justify-center", children: _jsx("span", { className: "text-white font-black text-[10px] italic", children: "UI" }) }), _jsx("span", { className: "text-sm font-black text-armoyu-text italic uppercase", children: "MEN\u00DC" })] }), _jsx("button", { onClick: () => setIsMobileMenuOpen(false), className: "p-2 rounded-xl hover:bg-black/5 dark:hover:bg-white/5 text-armoyu-text-muted", children: _jsx(X, { size: 20 }) })] }), _jsx("div", { className: "flex-1 overflow-y-auto p-4 space-y-6", children: categories.map((cat) => (_jsxs("div", { className: "space-y-3", children: [_jsxs("h4", { className: "text-[10px] font-black text-armoyu-text-muted uppercase tracking-[0.2em] px-3 flex items-center gap-2 opacity-50", children: [cat.icon, " ", cat.label] }), _jsx("div", { className: "grid gap-1", children: cat.items.map((item) => (_jsxs("button", { onClick: () => {
|
|
116
|
-
handleTabChange(item.id);
|
|
117
|
-
setIsMobileMenuOpen(false);
|
|
118
|
-
}, className: `flex items-center gap-4 p-3.5 rounded-xl text-left transition-all ${activeTab === item.id
|
|
119
|
-
? 'bg-armoyu-primary text-white shadow-lg shadow-armoyu-primary/20'
|
|
120
|
-
: 'text-armoyu-text-muted hover:text-armoyu-text hover:bg-black/5 dark:hover:bg-white/5'}`, children: [_jsx("div", { className: `p-2 rounded-lg ${activeTab === item.id ? 'bg-white/20' : 'bg-black/5 dark:bg-white/5'}`, children: item.icon }), _jsx("span", { className: "text-[11px] font-black uppercase tracking-widest", children: item.label })] }, item.id))) })] }, cat.id))) }), _jsx("div", { className: "p-6 border-t border-armoyu-header-border", children: _jsxs("button", { onClick: toggleTheme, className: "w-full flex items-center justify-between p-4 rounded-2xl bg-black/5 dark:bg-white/5 text-armoyu-text-muted font-bold text-xs", children: [_jsx("span", { children: "G\u00F6r\u00FCn\u00FCm" }), theme === 'dark' ? _jsx(Zap, { size: 16, className: "text-yellow-500" }) : _jsx(Zap, { size: 16 })] }) })] })] })), _jsx(UserDrawer, { isOpen: isUserMenuOpen, onClose: () => setIsUserMenuOpen(false), user: user, logout: logout, userGroups: userGroups, navigation: navigation, theme: theme, toggleTheme: toggleTheme, goToMyProfile: goToMyProfile, links: {
|
|
121
|
-
posts: '/?tab=yazilarim',
|
|
122
|
-
comments: '/?tab=yazilarim',
|
|
123
|
-
polls: '/?tab=anketler',
|
|
124
|
-
giveaways: '/?tab=cekilisler',
|
|
125
|
-
education: '/?tab=egitim',
|
|
126
|
-
support: '/?tab=destek'
|
|
127
|
-
} })] }));
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=ShowcaseNavigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShowcaseNavigation.js","sourceRoot":"","sources":["../../../src/components/showcase/ShowcaseNavigation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAC5C,WAAW,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,EAC3C,UAAU,EAAE,KAAK,IAAI,SAAS,EAAE,IAAI,EAAE,KAAK,EAC3C,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,IA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ime";
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import { SocialSidebar, NewMembersWidget, Stories, PostCard, postList, SocialFeed, PostComposer, CloudModal, useAuth } from '../../index';
|
|
5
|
-
import { TrendingWidget } from '../modules/social/widgets/TrendingWidget';
|
|
6
|
-
import { useArmoyu } from '../../context/ArmoyuContext';
|
|
7
|
-
export function SocialTab() {
|
|
8
|
-
const { apiKey, api, isMockEnabled, setMockEnabled } = useArmoyu();
|
|
9
|
-
const { user } = useAuth();
|
|
10
|
-
const [isPosting, setIsPosting] = useState(false);
|
|
11
|
-
const [isCloudOpen, setIsCloudOpen] = useState(false);
|
|
12
|
-
const [attachments, setAttachments] = useState([]);
|
|
13
|
-
const feedRef = React.useRef(null);
|
|
14
|
-
// useLive is inverse of isMockEnabled
|
|
15
|
-
const useLive = !isMockEnabled;
|
|
16
|
-
const handleToggleMode = () => {
|
|
17
|
-
if (isMockEnabled && (!apiKey || apiKey === 'armoyu_showcase_key')) {
|
|
18
|
-
alert("Canlı akış verilerini çekebilmek için lütfen Dev Tools panelinden geçerli bir API Anahtarı giriniz.");
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
setMockEnabled(!isMockEnabled);
|
|
22
|
-
// If we just switched to live, trigger a refresh
|
|
23
|
-
if (isMockEnabled) {
|
|
24
|
-
setTimeout(() => feedRef.current?.refresh(), 100);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const displayPosts = useLive ? [] : postList.slice(0, 3);
|
|
28
|
-
return (_jsxs("div", { className: "space-y-8 animate-in fade-in duration-700", children: [_jsx(CloudModal, { isOpen: isCloudOpen, onClose: () => setIsCloudOpen(false), isSelectionMode: true, onSelectMedia: (media) => {
|
|
29
|
-
setAttachments(prev => [...prev, media]);
|
|
30
|
-
setIsCloudOpen(false);
|
|
31
|
-
} }), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-8", children: [_jsx("aside", { className: "lg:col-span-3 hidden lg:block", children: _jsx(SocialSidebar, {}) }), _jsx("div", { className: "lg:col-span-6", children: _jsxs("div", { className: "max-w-3xl mx-auto space-y-8", children: [_jsx(Stories, {}), _jsx(PostComposer, { user: user, isPosting: isPosting, onOpenCloudGallery: () => setIsCloudOpen(true), attachments: attachments, onRemoveAttachment: (index) => setAttachments(prev => prev.filter((_, i) => i !== index)), onPost: async (content, mediaUrls) => {
|
|
32
|
-
if (useLive) {
|
|
33
|
-
setIsPosting(true);
|
|
34
|
-
try {
|
|
35
|
-
const result = await api.social.createPost(content, []);
|
|
36
|
-
if (result.durum === 1) {
|
|
37
|
-
setAttachments([]);
|
|
38
|
-
feedRef.current?.refresh();
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
alert(result.aciklama || "Paylaşım başarısız.");
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
catch (err) {
|
|
45
|
-
console.error("Post error:", err);
|
|
46
|
-
alert("Canlı paylaşım hatası!");
|
|
47
|
-
}
|
|
48
|
-
finally {
|
|
49
|
-
setIsPosting(false);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
console.log("Mock Post Created:", content, mediaUrls);
|
|
54
|
-
alert("Showcase (Mock): " + content + (mediaUrls?.length ? ` [${mediaUrls.length} Medya]` : ''));
|
|
55
|
-
}
|
|
56
|
-
} }), _jsx("div", { className: "space-y-6", children: useLive ? (_jsx(SocialFeed, { ref: feedRef, emptyMessage: "Hen\u00FCz yay\u0131nlanm\u0131\u015F bir g\u00F6nderi yok." })) : (_jsx("div", { className: "flex flex-col gap-6", children: displayPosts.map((post) => (_jsx(PostCard, { ...post, author: post.owner || post.author }, post.id))) })) })] }) }), _jsxs("aside", { className: "lg:col-span-3 hidden lg:flex flex-col gap-6", children: [_jsx(NewMembersWidget, {}), _jsx(TrendingWidget, {})] })] })] }));
|
|
57
|
-
}
|
|
58
|
-
function cn(...classes) {
|
|
59
|
-
return classes.filter(Boolean).join(' ');
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=SocialTab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialTab.js","sourceRoot":"","sources":["../../../src/components/showcase/SocialTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAe,MAAM,OAAO,CAAC;AAChE,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,OAAO,EAER,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGxD,MAAM,UAAU,SAAS;IACvB,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,SAAS,EAAE,CAAC;IACnE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAuD,EAAE,CAAC,CAAC;IACzG,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAgB,IAAI,CAAC,CAAC;IAElD,sCAAsC;IACtC,MAAM,OAAO,GAAG,CAAC,aAAa,CAAC;IAE/B,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC5B,IAAI,aAAa,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,qBAAqB,CAAC,EAAE,CAAC;YACnE,KAAK,CAAC,qGAAqG,CAAC,CAAC;YAC7G,OAAO;QACT,CAAC;QACD,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC;QAE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AE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,IAF5B,IAAI,CAAC,EAAE,CAGZ,CACH,CAAC,GACE,CACP,GACG,IACF,GACF,EACN,iBAAO,SAAS,EAAC,6CAA6C,aAC3D,KAAC,gBAAgB,KAAG,EACpB,KAAC,cAAc,KAAG,IACb,IACJ,IACF,CACP,CAAC;AACJ,CAAC;AAED,SAAS,EAAE,CAAC,GAAG,OAAc;IAC3B,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Stories } from '../../index';
|
|
4
|
-
export function StoriesTab() {
|
|
5
|
-
return (_jsxs("div", { className: "max-w-2xl mx-auto space-y-8 animate-in fade-in duration-700", children: [_jsxs("div", { className: "bg-white/5 backdrop-blur-md p-8 rounded-[2.5rem] border border-white/5", children: [_jsx("h2", { className: "text-2xl font-black text-white uppercase tracking-tight italic mb-2", children: "H\u0130KAYE MOD\u00DCL\u00DC" }), _jsx("p", { className: "text-xs font-bold text-armoyu-text-muted uppercase tracking-widest opacity-60", children: "Kullan\u0131c\u0131 hikayelerini, ge\u00E7i\u015F efektlerini ve etkile\u015Fimleri test et." })] }), _jsx("div", { className: "glass-panel p-1 rounded-[2.5rem] overflow-hidden", children: _jsx(Stories, {}) }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { className: "bg-black/20 p-6 rounded-3xl border border-white/5", children: [_jsx("h4", { className: "text-[10px] font-black text-armoyu-primary uppercase tracking-widest mb-3", children: "H\u0130KAYE OLU\u015ETURMA" }), _jsx("p", { className: "text-xs text-armoyu-text-muted leading-relaxed", children: "API entegrasyonu tamamland\u0131\u011F\u0131nda buradan yeni hikaye payla\u015F\u0131m\u0131 yap\u0131labilecek." })] }), _jsxs("div", { className: "bg-black/20 p-6 rounded-3xl border border-white/5", children: [_jsx("h4", { className: "text-[10px] font-black text-emerald-500 uppercase tracking-widest mb-3", children: "\u0130STAT\u0130ST\u0130KLER" }), _jsx("p", { className: "text-xs text-armoyu-text-muted leading-relaxed", children: "Hikaye izlenme ve etkile\u015Fim verileri burada g\u00F6r\u00FCnt\u00FClenecek." })] })] })] }));
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=StoriesTab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoriesTab.js","sourceRoot":"","sources":["../../../src/components/showcase/StoriesTab.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,eAAK,SAAS,EAAC,6DAA6D,aAC1E,eAAK,SAAS,EAAC,wEAAwE,aACrF,aAAI,SAAS,EAAC,qEAAqE,6CAAmB,EACtG,YAAG,SAAS,EAAC,+EAA+E,6GAExF,IACA,EAEN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,OAAO,KAAG,GACP,EAEN,eAAK,SAAS,EAAC,uCAAuC,aACpD,eAAK,SAAS,EAAC,mDAAmD,aAChE,aAAI,SAAS,EAAC,2EAA2E,2CAAsB,EAC/G,YAAG,SAAS,EAAC,gDAAgD,iIAEzD,IACA,EACN,eAAK,SAAS,EAAC,mDAAmD,aAChE,aAAI,SAAS,EAAC,wEAAwE,6CAAmB,EACzG,YAAG,SAAS,EAAC,gDAAgD,gGAEzD,IACA,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ArmoyuUI } from '../lib/ArmoyuUI';
|
|
3
|
-
import { ArmoyuApi } from '@armoyu/core';
|
|
4
|
-
export interface ArmoyuNavigationConfig {
|
|
5
|
-
profilePrefix?: string;
|
|
6
|
-
groupPrefix?: string;
|
|
7
|
-
forumPrefix?: string;
|
|
8
|
-
educationPrefix?: string;
|
|
9
|
-
newsPrefix?: string;
|
|
10
|
-
galleryPrefix?: string;
|
|
11
|
-
giveawayPrefix?: string;
|
|
12
|
-
projectPrefix?: string;
|
|
13
|
-
storePrefix?: string;
|
|
14
|
-
managementPrefix?: string;
|
|
15
|
-
myArticlesPrefix?: string;
|
|
16
|
-
pollPrefix?: string;
|
|
17
|
-
supportPrefix?: string;
|
|
18
|
-
}
|
|
19
|
-
interface ArmoyuContextType {
|
|
20
|
-
ui: ArmoyuUI;
|
|
21
|
-
api: ArmoyuApi;
|
|
22
|
-
apiKey: string;
|
|
23
|
-
token: string;
|
|
24
|
-
isMockEnabled: boolean;
|
|
25
|
-
navigation: Required<ArmoyuNavigationConfig>;
|
|
26
|
-
setGlobalApiKey: (key: string) => void;
|
|
27
|
-
setGlobalToken: (token: string) => void;
|
|
28
|
-
setMockEnabled: (enabled: boolean) => void;
|
|
29
|
-
}
|
|
30
|
-
export interface ArmoyuProviderProps {
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
ui: ArmoyuUI;
|
|
33
|
-
navigation?: ArmoyuNavigationConfig;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
|
|
37
|
-
* This is required for any component that interacts with the ARMOYU backend.
|
|
38
|
-
*/
|
|
39
|
-
export declare function ArmoyuProvider({ children, ui, navigation }: ArmoyuProviderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
-
/**
|
|
41
|
-
* Custom hook to access the ArmoyuApi instance.
|
|
42
|
-
*/
|
|
43
|
-
export declare function useArmoyu(): ArmoyuContextType;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=ArmoyuContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArmoyuContext.d.ts","sourceRoot":"","sources":["../../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C;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,mBAAmB,kDAoF/E;AAED;;GAEG;AACH,wBAAgB,SAAS,sBAMxB"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useCallback, useEffect } from 'react';
|
|
4
|
-
const ArmoyuContext = createContext(undefined);
|
|
5
|
-
/**
|
|
6
|
-
* ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
|
|
7
|
-
* This is required for any component that interacts with the ARMOYU backend.
|
|
8
|
-
*/
|
|
9
|
-
export function ArmoyuProvider({ children, ui, navigation }) {
|
|
10
|
-
const [apiKey, setApiKey] = useState(ui.api.apiKey || 'armoyu_showcase_key');
|
|
11
|
-
const [token, setToken] = useState(ui.api.token || '');
|
|
12
|
-
const [isMockEnabled, setIsMockEnabled] = useState(false);
|
|
13
|
-
const [isMounted, setIsMounted] = useState(false);
|
|
14
|
-
// Sadece istemci tarafında localStorage'dan yükle
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setIsMounted(true);
|
|
17
|
-
const savedApiKey = localStorage.getItem('armoyu_showcase_apiKey');
|
|
18
|
-
const savedToken = localStorage.getItem('armoyu_token');
|
|
19
|
-
const savedMock = localStorage.getItem('armoyu_use_mock');
|
|
20
|
-
if (savedApiKey) {
|
|
21
|
-
setApiKey(savedApiKey);
|
|
22
|
-
ui.api.setApiKey(savedApiKey);
|
|
23
|
-
}
|
|
24
|
-
if (savedToken) {
|
|
25
|
-
setToken(savedToken);
|
|
26
|
-
ui.api.setToken(savedToken);
|
|
27
|
-
}
|
|
28
|
-
// Force mock mode to false if we have a real API key (anything other than showcase)
|
|
29
|
-
if (ui.api.apiKey !== 'armoyu_showcase_key') {
|
|
30
|
-
setIsMockEnabled(false);
|
|
31
|
-
localStorage.setItem('armoyu_use_mock', 'false');
|
|
32
|
-
}
|
|
33
|
-
else if (savedMock !== null) {
|
|
34
|
-
setIsMockEnabled(savedMock === 'true');
|
|
35
|
-
}
|
|
36
|
-
}, [ui]);
|
|
37
|
-
const setGlobalApiKey = useCallback((key) => {
|
|
38
|
-
setApiKey(key);
|
|
39
|
-
ui.api.setApiKey(key);
|
|
40
|
-
localStorage.setItem('armoyu_showcase_apiKey', key);
|
|
41
|
-
}, [ui]);
|
|
42
|
-
const setGlobalToken = useCallback((t) => {
|
|
43
|
-
setToken(t);
|
|
44
|
-
ui.api.setToken(t);
|
|
45
|
-
localStorage.setItem('armoyu_token', t);
|
|
46
|
-
}, [ui]);
|
|
47
|
-
const setMockEnabled = useCallback((enabled) => {
|
|
48
|
-
setIsMockEnabled(enabled);
|
|
49
|
-
localStorage.setItem('armoyu_use_mock', enabled ? 'true' : 'false');
|
|
50
|
-
}, []);
|
|
51
|
-
if (!isMounted || !ui) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
const defaultNavigation = {
|
|
55
|
-
profilePrefix: '/players',
|
|
56
|
-
groupPrefix: '/groups',
|
|
57
|
-
forumPrefix: '/forum',
|
|
58
|
-
educationPrefix: '/education',
|
|
59
|
-
newsPrefix: '/news',
|
|
60
|
-
galleryPrefix: '/galleries',
|
|
61
|
-
giveawayPrefix: '/giveaways',
|
|
62
|
-
projectPrefix: '/projects',
|
|
63
|
-
storePrefix: '/store',
|
|
64
|
-
managementPrefix: '/management-panel',
|
|
65
|
-
myArticlesPrefix: '/my-articles',
|
|
66
|
-
pollPrefix: '/polls',
|
|
67
|
-
supportPrefix: '/support',
|
|
68
|
-
...navigation
|
|
69
|
-
};
|
|
70
|
-
return (_jsx(ArmoyuContext.Provider, { value: {
|
|
71
|
-
ui,
|
|
72
|
-
api: ui.api,
|
|
73
|
-
apiKey,
|
|
74
|
-
token,
|
|
75
|
-
isMockEnabled,
|
|
76
|
-
navigation: defaultNavigation,
|
|
77
|
-
setGlobalApiKey,
|
|
78
|
-
setGlobalToken,
|
|
79
|
-
setMockEnabled
|
|
80
|
-
}, children: children }));
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Custom hook to access the ArmoyuApi instance.
|
|
84
|
-
*/
|
|
85
|
-
export function useArmoyu() {
|
|
86
|
-
const context = useContext(ArmoyuContext);
|
|
87
|
-
if (context === undefined) {
|
|
88
|
-
throw new Error('useArmoyu must be used within an ArmoyuProvider');
|
|
89
|
-
}
|
|
90
|
-
return context;
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=ArmoyuContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArmoyuContext.js","sourceRoot":"","sources":["../../src/context/ArmoyuContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAa,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgCtG,MAAM,aAAa,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAQ9E;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAuB;IAC9E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAE,EAAE,CAAC,GAAW,CAAC,MAAM,IAAI,qBAAqB,CAAC,CAAC;IACtF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAE,EAAE,CAAC,GAAW,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAChE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,kDAAkD;IAClD,SAAS,CAAC,GAAG,EAAE;QACb,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,WAAW,G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,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { User } from '../models/auth/User';
|
|
3
|
-
import { Session } from '../models/auth/Session';
|
|
4
|
-
interface AuthContextType {
|
|
5
|
-
user: User | null;
|
|
6
|
-
session: Session | null;
|
|
7
|
-
login: (username: string, password: string) => Promise<void>;
|
|
8
|
-
register: (data: any) => Promise<void>;
|
|
9
|
-
logout: () => void;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
isLoginModalOpen: boolean;
|
|
12
|
-
setIsLoginModalOpen: (open: boolean) => void;
|
|
13
|
-
isRegisterModalOpen: boolean;
|
|
14
|
-
setIsRegisterModalOpen: (open: boolean) => void;
|
|
15
|
-
updateUser: (updatedUser: User) => void;
|
|
16
|
-
updateSession: (updatedSession: Session) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare function AuthProvider({ children }: {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare function useAuth(): AuthContextType;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=AuthContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,CAAC,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;IACxC,aAAa,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAMD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA+JvE;AAED,wBAAgB,OAAO,oBAMtB"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useContext, useState, useEffect } from 'react';
|
|
3
|
-
import { User } from '../models/auth/User';
|
|
4
|
-
import { Session } from '../models/auth/Session';
|
|
5
|
-
import { useArmoyu } from './ArmoyuContext';
|
|
6
|
-
const AuthContext = createContext(undefined);
|
|
7
|
-
import { MOCK_SESSION } from '../lib/constants/seedData';
|
|
8
|
-
export function AuthProvider({ children }) {
|
|
9
|
-
const { api, setGlobalToken, apiKey, isMockEnabled } = useArmoyu();
|
|
10
|
-
const [user, setUser] = useState(null);
|
|
11
|
-
const [session, setSession] = useState(null);
|
|
12
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
13
|
-
const [isLoginModalOpen, setIsLoginModalOpen] = useState(false);
|
|
14
|
-
const [isRegisterModalOpen, setIsRegisterModalOpen] = useState(false);
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
async function restoreSession() {
|
|
17
|
-
// Check local storage for persistent token
|
|
18
|
-
const token = typeof window !== 'undefined' ? localStorage.getItem('armoyu_token') : null;
|
|
19
|
-
if (token) {
|
|
20
|
-
try {
|
|
21
|
-
// Set token in core API client
|
|
22
|
-
api.setToken(token);
|
|
23
|
-
// Request current user profile from real API
|
|
24
|
-
const response = await api.auth.me();
|
|
25
|
-
if (response.durum === 1 && response.icerik) {
|
|
26
|
-
const richUser = User.fromAPI(response.icerik);
|
|
27
|
-
setUser(richUser);
|
|
28
|
-
setSession(new Session({ user: richUser, token }));
|
|
29
|
-
console.log('[AuthContext] Session restored for:', richUser.username);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
throw new Error(response.aciklama || 'Geçersiz oturum verisi.');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
console.warn('[AuthContext] Session restoration failed:', e.message);
|
|
37
|
-
if (typeof window !== 'undefined') {
|
|
38
|
-
localStorage.removeItem('armoyu_token');
|
|
39
|
-
}
|
|
40
|
-
api.setToken(null);
|
|
41
|
-
setUser(null);
|
|
42
|
-
setSession(null);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else if (isMockEnabled) {
|
|
46
|
-
// FALLBACK TO MOCK SESSION ONLY IF EXPLICITLY ENABLED
|
|
47
|
-
console.log('[AuthContext] Loading Mock Session...');
|
|
48
|
-
setUser(MOCK_SESSION.user);
|
|
49
|
-
setSession(MOCK_SESSION);
|
|
50
|
-
}
|
|
51
|
-
setIsLoading(false);
|
|
52
|
-
}
|
|
53
|
-
restoreSession();
|
|
54
|
-
}, [api, apiKey]);
|
|
55
|
-
const login = async (username, password) => {
|
|
56
|
-
try {
|
|
57
|
-
// Real API login via core library
|
|
58
|
-
const response = await api.auth.login(username, password);
|
|
59
|
-
console.log('[AuthContext] API Cevabı:', response);
|
|
60
|
-
if (Number(response.durum) !== 1 || !response.icerik) {
|
|
61
|
-
console.error('[AuthContext] Giriş başarısız, cevap durum 1 değil veya içerik yok!');
|
|
62
|
-
throw new Error(response.aciklama || 'Giriş başarısız. Lütfen bilgilerinizi kontrol edin.');
|
|
63
|
-
}
|
|
64
|
-
const { user: userResponse, token: sessionToken } = response.icerik;
|
|
65
|
-
const richUser = User.fromAPI(userResponse);
|
|
66
|
-
if (!richUser.id || Number(richUser.id) === 0) {
|
|
67
|
-
console.error('[AuthContext] Geçersiz kullanıcı verisi (ID 0):', richUser);
|
|
68
|
-
throw new Error('Kullanıcı adı veya şifre hatalı! (Eşleşme sağlanamadı)');
|
|
69
|
-
}
|
|
70
|
-
const newSession = new Session({ user: richUser, token: sessionToken });
|
|
71
|
-
setUser(richUser);
|
|
72
|
-
setSession(newSession);
|
|
73
|
-
// Store token in localStorage and sync with ArmoyuContext
|
|
74
|
-
if (sessionToken) {
|
|
75
|
-
setGlobalToken(sessionToken);
|
|
76
|
-
}
|
|
77
|
-
console.log('[AuthContext] Login successful for:', richUser.username);
|
|
78
|
-
setIsLoginModalOpen(false);
|
|
79
|
-
}
|
|
80
|
-
catch (error) {
|
|
81
|
-
console.error('[AuthContext] Login failed:', error);
|
|
82
|
-
setUser(null);
|
|
83
|
-
setSession(null);
|
|
84
|
-
throw error;
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const register = async (data) => {
|
|
88
|
-
try {
|
|
89
|
-
// Real API registration via core library
|
|
90
|
-
const response = await api.auth.register({
|
|
91
|
-
username: data.username,
|
|
92
|
-
password: data.password,
|
|
93
|
-
email: data.email,
|
|
94
|
-
firstName: data.firstName,
|
|
95
|
-
lastName: data.lastName,
|
|
96
|
-
inviteCode: data.inviteCode
|
|
97
|
-
});
|
|
98
|
-
if (response.durum !== 1) {
|
|
99
|
-
throw new Error(response.aciklama || 'Kayıt başarısız.');
|
|
100
|
-
}
|
|
101
|
-
// Automatically login after successful registration
|
|
102
|
-
await login(data.username, data.password);
|
|
103
|
-
setIsRegisterModalOpen(false);
|
|
104
|
-
}
|
|
105
|
-
catch (error) {
|
|
106
|
-
console.error('[AuthContext] Registration failed:', error);
|
|
107
|
-
throw error;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
const logout = () => {
|
|
111
|
-
api.auth.logout();
|
|
112
|
-
setGlobalToken('');
|
|
113
|
-
setUser(null);
|
|
114
|
-
setSession(null);
|
|
115
|
-
};
|
|
116
|
-
const updateUser = (updatedUser) => {
|
|
117
|
-
if (!updatedUser)
|
|
118
|
-
return;
|
|
119
|
-
setUser(updatedUser);
|
|
120
|
-
if (session) {
|
|
121
|
-
setSession(new Session({ ...session, user: updatedUser }));
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
const updateSession = (updatedSession) => {
|
|
125
|
-
if (!updatedSession)
|
|
126
|
-
return;
|
|
127
|
-
setSession(updatedSession);
|
|
128
|
-
if (updatedSession.token) {
|
|
129
|
-
setGlobalToken(updatedSession.token);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
return (_jsx(AuthContext.Provider, { value: {
|
|
133
|
-
user,
|
|
134
|
-
session,
|
|
135
|
-
login,
|
|
136
|
-
register,
|
|
137
|
-
logout,
|
|
138
|
-
isLoading,
|
|
139
|
-
isLoginModalOpen,
|
|
140
|
-
setIsLoginModalOpen,
|
|
141
|
-
isRegisterModalOpen,
|
|
142
|
-
setIsRegisterModalOpen,
|
|
143
|
-
updateUser,
|
|
144
|
-
updateSession
|
|
145
|
-
}, children: children }));
|
|
146
|
-
}
|
|
147
|
-
export function useAuth() {
|
|
148
|
-
const context = useContext(AuthContext);
|
|
149
|
-
if (context === undefined) {
|
|
150
|
-
throw new Error('useAuth must be used within an AuthProvider');
|
|
151
|
-
}
|
|
152
|
-
return context;
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=AuthContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.js","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UA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
|
3
|
-
import { CartItem } from '../models/shop/CartItem';
|
|
4
|
-
interface CartContextType {
|
|
5
|
-
cart: CartItem[];
|
|
6
|
-
addToCart: (product: Product, quantity?: number) => void;
|
|
7
|
-
removeFromCart: (productId: string) => void;
|
|
8
|
-
updateQuantity: (productId: string, quantity: number) => void;
|
|
9
|
-
clearCart: () => void;
|
|
10
|
-
totalItems: number;
|
|
11
|
-
totalPrice: number;
|
|
12
|
-
}
|
|
13
|
-
export declare function CartProvider({ children }: {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function useCart(): CartContextType;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=CartContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartContext.d.ts","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiEvE;AAED,wBAAgB,OAAO,oBAMtB"}
|