@armoyu/ui 1.1.41 → 1.2.0

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.
Files changed (325) hide show
  1. package/dist/components/modules/auth/widgets/LoginWidget.d.ts.map +1 -1
  2. package/dist/components/modules/auth/widgets/LoginWidget.js +5 -2
  3. package/dist/components/modules/auth/widgets/LoginWidget.js.map +1 -1
  4. package/dist/components/modules/blog/pages/MyArticlesPage.d.ts.map +1 -1
  5. package/dist/components/modules/blog/pages/MyArticlesPage.js +8 -6
  6. package/dist/components/modules/blog/pages/MyArticlesPage.js.map +1 -1
  7. package/dist/components/modules/chat/ChatLayout.d.ts.map +1 -1
  8. package/dist/components/modules/chat/ChatLayout.js +14 -8
  9. package/dist/components/modules/chat/ChatLayout.js.map +1 -1
  10. package/dist/components/modules/chat/widgets/ChatInput.d.ts.map +1 -1
  11. package/dist/components/modules/chat/widgets/ChatInput.js +1 -2
  12. package/dist/components/modules/chat/widgets/ChatInput.js.map +1 -1
  13. package/dist/components/modules/chat/widgets/ChatList.d.ts.map +1 -1
  14. package/dist/components/modules/chat/widgets/ChatList.js +4 -3
  15. package/dist/components/modules/chat/widgets/ChatList.js.map +1 -1
  16. package/dist/components/modules/cloud/CloudModal.d.ts +2 -0
  17. package/dist/components/modules/cloud/CloudModal.d.ts.map +1 -1
  18. package/dist/components/modules/cloud/CloudModal.js +65 -8
  19. package/dist/components/modules/cloud/CloudModal.js.map +1 -1
  20. package/dist/components/modules/cloud/CloudWidget.d.ts +1 -1
  21. package/dist/components/modules/cloud/CloudWidget.d.ts.map +1 -1
  22. package/dist/components/modules/cloud/CloudWidget.js +8 -1
  23. package/dist/components/modules/cloud/CloudWidget.js.map +1 -1
  24. package/dist/components/modules/cloud/useCloudUsage.d.ts +13 -0
  25. package/dist/components/modules/cloud/useCloudUsage.d.ts.map +1 -0
  26. package/dist/components/modules/cloud/useCloudUsage.js +23 -0
  27. package/dist/components/modules/cloud/useCloudUsage.js.map +1 -0
  28. package/dist/components/modules/community/CommunityLayout.js +3 -3
  29. package/dist/components/modules/community/CommunityLayout.js.map +1 -1
  30. package/dist/components/modules/community/widgets/SurveyCard.d.ts +1 -1
  31. package/dist/components/modules/community/widgets/SurveyCard.d.ts.map +1 -1
  32. package/dist/components/modules/community/widgets/SurveyCard.js +8 -4
  33. package/dist/components/modules/community/widgets/SurveyCard.js.map +1 -1
  34. package/dist/components/modules/events/DetailPage.d.ts.map +1 -1
  35. package/dist/components/modules/events/DetailPage.js +271 -11
  36. package/dist/components/modules/events/DetailPage.js.map +1 -1
  37. package/dist/components/modules/forum/pages/ForumBoardPage.d.ts.map +1 -1
  38. package/dist/components/modules/forum/pages/ForumBoardPage.js +23 -4
  39. package/dist/components/modules/forum/pages/ForumBoardPage.js.map +1 -1
  40. package/dist/components/modules/forum/pages/ForumPage.d.ts.map +1 -1
  41. package/dist/components/modules/forum/pages/ForumPage.js +15 -2
  42. package/dist/components/modules/forum/pages/ForumPage.js.map +1 -1
  43. package/dist/components/modules/forum/pages/ForumTopicPage.d.ts.map +1 -1
  44. package/dist/components/modules/forum/pages/ForumTopicPage.js +48 -6
  45. package/dist/components/modules/forum/pages/ForumTopicPage.js.map +1 -1
  46. package/dist/components/modules/forum/widgets/NewTopicModal.d.ts +10 -1
  47. package/dist/components/modules/forum/widgets/NewTopicModal.d.ts.map +1 -1
  48. package/dist/components/modules/forum/widgets/NewTopicModal.js +46 -3
  49. package/dist/components/modules/forum/widgets/NewTopicModal.js.map +1 -1
  50. package/dist/components/modules/giveaways/pages/GiveawayDetailPage.d.ts.map +1 -1
  51. package/dist/components/modules/giveaways/pages/GiveawayDetailPage.js +39 -4
  52. package/dist/components/modules/giveaways/pages/GiveawayDetailPage.js.map +1 -1
  53. package/dist/components/modules/giveaways/pages/GiveawaysPage.d.ts.map +1 -1
  54. package/dist/components/modules/giveaways/pages/GiveawaysPage.js +16 -4
  55. package/dist/components/modules/giveaways/pages/GiveawaysPage.js.map +1 -1
  56. package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts +2 -1
  57. package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts.map +1 -1
  58. package/dist/components/modules/giveaways/widgets/GiveawayCard.js +4 -2
  59. package/dist/components/modules/giveaways/widgets/GiveawayCard.js.map +1 -1
  60. package/dist/components/modules/groups/widgets/CreateGroupModal.d.ts +15 -0
  61. package/dist/components/modules/groups/widgets/CreateGroupModal.d.ts.map +1 -0
  62. package/dist/components/modules/groups/widgets/CreateGroupModal.js +61 -0
  63. package/dist/components/modules/groups/widgets/CreateGroupModal.js.map +1 -0
  64. package/dist/components/modules/groups/widgets/GroupCard.js +1 -1
  65. package/dist/components/modules/groups/widgets/GroupCard.js.map +1 -1
  66. package/dist/components/modules/management/ManagementLayout.d.ts +1 -1
  67. package/dist/components/modules/management/ManagementLayout.js +1 -1
  68. package/dist/components/modules/management/ManagementLayout.js.map +1 -1
  69. package/dist/components/modules/management/ManagementSidebar.d.ts.map +1 -1
  70. package/dist/components/modules/management/ManagementSidebar.js +16 -5
  71. package/dist/components/modules/management/ManagementSidebar.js.map +1 -1
  72. package/dist/components/modules/management/layout/ARMOYUManagementLayout.d.ts +6 -0
  73. package/dist/components/modules/management/layout/ARMOYUManagementLayout.d.ts.map +1 -0
  74. package/dist/{app/management-panel/layout.js → components/modules/management/layout/ARMOYUManagementLayout.js} +13 -12
  75. package/dist/components/modules/management/layout/ARMOYUManagementLayout.js.map +1 -0
  76. package/dist/components/modules/management/pages/ManagementOverviewPage.d.ts +2 -0
  77. package/dist/components/modules/management/pages/ManagementOverviewPage.d.ts.map +1 -0
  78. package/dist/{app/management-panel/page.js → components/modules/management/pages/ManagementOverviewPage.js} +3 -3
  79. package/dist/components/modules/management/pages/ManagementOverviewPage.js.map +1 -0
  80. package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.d.ts.map +1 -1
  81. package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.js +351 -9
  82. package/dist/components/modules/management/widgets/dashboard/GameOfficialManagement.js.map +1 -1
  83. package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.d.ts.map +1 -1
  84. package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.js +8 -1
  85. package/dist/components/modules/management/widgets/dashboard/ManagementDashboard.js.map +1 -1
  86. package/dist/components/modules/management/widgets/events/EventManagement.d.ts +4 -0
  87. package/dist/components/modules/management/widgets/events/EventManagement.d.ts.map +1 -1
  88. package/dist/components/modules/management/widgets/events/EventManagement.js +243 -6
  89. package/dist/components/modules/management/widgets/events/EventManagement.js.map +1 -1
  90. package/dist/components/modules/mods/pages/ModsPage.d.ts.map +1 -1
  91. package/dist/components/modules/mods/pages/ModsPage.js +25 -1
  92. package/dist/components/modules/mods/pages/ModsPage.js.map +1 -1
  93. package/dist/components/modules/mods/widgets/AddModModal.d.ts +15 -0
  94. package/dist/components/modules/mods/widgets/AddModModal.d.ts.map +1 -0
  95. package/dist/components/modules/mods/widgets/AddModModal.js +54 -0
  96. package/dist/components/modules/mods/widgets/AddModModal.js.map +1 -0
  97. package/dist/components/modules/news/widgets/NewsComments.d.ts +3 -2
  98. package/dist/components/modules/news/widgets/NewsComments.d.ts.map +1 -1
  99. package/dist/components/modules/news/widgets/NewsComments.js +7 -5
  100. package/dist/components/modules/news/widgets/NewsComments.js.map +1 -1
  101. package/dist/components/modules/poll/pages/PollsPage.d.ts.map +1 -1
  102. package/dist/components/modules/poll/pages/PollsPage.js +9 -5
  103. package/dist/components/modules/poll/pages/PollsPage.js.map +1 -1
  104. package/dist/components/modules/posts/widgets/PostCard.js +7 -7
  105. package/dist/components/modules/posts/widgets/PostCard.js.map +1 -1
  106. package/dist/components/modules/posts/widgets/SocialFeed.d.ts +1 -0
  107. package/dist/components/modules/posts/widgets/SocialFeed.d.ts.map +1 -1
  108. package/dist/components/modules/posts/widgets/SocialFeed.js +31 -6
  109. package/dist/components/modules/posts/widgets/SocialFeed.js.map +1 -1
  110. package/dist/components/modules/profile/tabs/FriendsTab.js +1 -1
  111. package/dist/components/modules/profile/tabs/FriendsTab.js.map +1 -1
  112. package/dist/components/modules/profile/tabs/MediaTab.d.ts +2 -1
  113. package/dist/components/modules/profile/tabs/MediaTab.d.ts.map +1 -1
  114. package/dist/components/modules/profile/tabs/MediaTab.js +14 -8
  115. package/dist/components/modules/profile/tabs/MediaTab.js.map +1 -1
  116. package/dist/components/modules/profile/tabs/QuestionsTab.d.ts +3 -1
  117. package/dist/components/modules/profile/tabs/QuestionsTab.d.ts.map +1 -1
  118. package/dist/components/modules/profile/tabs/QuestionsTab.js +62 -11
  119. package/dist/components/modules/profile/tabs/QuestionsTab.js.map +1 -1
  120. package/dist/components/modules/profile/widgets/EditProfileModal.d.ts.map +1 -1
  121. package/dist/components/modules/profile/widgets/EditProfileModal.js +140 -12
  122. package/dist/components/modules/profile/widgets/EditProfileModal.js.map +1 -1
  123. package/dist/components/modules/profile/widgets/EducationEditor.d.ts +6 -0
  124. package/dist/components/modules/profile/widgets/EducationEditor.d.ts.map +1 -0
  125. package/dist/components/modules/profile/widgets/EducationEditor.js +55 -0
  126. package/dist/components/modules/profile/widgets/EducationEditor.js.map +1 -0
  127. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts.map +1 -1
  128. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js +1 -7
  129. package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js.map +1 -1
  130. package/dist/components/modules/profile/widgets/ProfileHeader.d.ts.map +1 -1
  131. package/dist/components/modules/profile/widgets/ProfileHeader.js +6 -3
  132. package/dist/components/modules/profile/widgets/ProfileHeader.js.map +1 -1
  133. package/dist/components/modules/profile/widgets/ProfileInfoWidget.js +1 -1
  134. package/dist/components/modules/profile/widgets/ProfileInfoWidget.js.map +1 -1
  135. package/dist/components/modules/profile/widgets/ProfileStats.d.ts +3 -1
  136. package/dist/components/modules/profile/widgets/ProfileStats.d.ts.map +1 -1
  137. package/dist/components/modules/profile/widgets/ProfileStats.js +21 -3
  138. package/dist/components/modules/profile/widgets/ProfileStats.js.map +1 -1
  139. package/dist/components/modules/profile/widgets/ProfileTabsArea.d.ts.map +1 -1
  140. package/dist/components/modules/profile/widgets/ProfileTabsArea.js +16 -5
  141. package/dist/components/modules/profile/widgets/ProfileTabsArea.js.map +1 -1
  142. package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts.map +1 -1
  143. package/dist/components/modules/profile/widgets/TeamSelectorModal.js +18 -4
  144. package/dist/components/modules/profile/widgets/TeamSelectorModal.js.map +1 -1
  145. package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts.map +1 -1
  146. package/dist/components/modules/shop/widgets/StoreProductGrid.js +1 -1
  147. package/dist/components/modules/shop/widgets/StoreProductGrid.js.map +1 -1
  148. package/dist/components/modules/social/widgets/RankingWidget.d.ts.map +1 -1
  149. package/dist/components/modules/social/widgets/RankingWidget.js +5 -18
  150. package/dist/components/modules/social/widgets/RankingWidget.js.map +1 -1
  151. package/dist/components/modules/stations/widgets/StationCard.js +3 -3
  152. package/dist/components/modules/stations/widgets/StationCard.js.map +1 -1
  153. package/dist/components/modules/stories/widgets/Stories.d.ts.map +1 -1
  154. package/dist/components/modules/stories/widgets/Stories.js +106 -50
  155. package/dist/components/modules/stories/widgets/Stories.js.map +1 -1
  156. package/dist/components/modules/stories/widgets/StoryOverlay.js +6 -6
  157. package/dist/components/modules/stories/widgets/StoryOverlay.js.map +1 -1
  158. package/dist/components/modules/support/pages/SupportDetailPage.d.ts +21 -0
  159. package/dist/components/modules/support/pages/SupportDetailPage.d.ts.map +1 -0
  160. package/dist/components/modules/support/pages/SupportDetailPage.js +15 -0
  161. package/dist/components/modules/support/pages/SupportDetailPage.js.map +1 -0
  162. package/dist/components/modules/support/pages/SupportPage.d.ts.map +1 -1
  163. package/dist/components/modules/support/pages/SupportPage.js +55 -1
  164. package/dist/components/modules/support/pages/SupportPage.js.map +1 -1
  165. package/dist/components/modules/support/widgets/CreateTicketModal.d.ts +13 -0
  166. package/dist/components/modules/support/widgets/CreateTicketModal.d.ts.map +1 -0
  167. package/dist/components/modules/support/widgets/CreateTicketModal.js +33 -0
  168. package/dist/components/modules/support/widgets/CreateTicketModal.js.map +1 -0
  169. package/dist/components/modules/support/widgets/SupportDetailModal.d.ts +20 -0
  170. package/dist/components/modules/support/widgets/SupportDetailModal.d.ts.map +1 -0
  171. package/dist/components/modules/support/widgets/SupportDetailModal.js +11 -0
  172. package/dist/components/modules/support/widgets/SupportDetailModal.js.map +1 -0
  173. package/dist/components/modules/support/widgets/TicketInfoWidget.d.ts +11 -0
  174. package/dist/components/modules/support/widgets/TicketInfoWidget.d.ts.map +1 -0
  175. package/dist/components/modules/support/widgets/TicketInfoWidget.js +7 -0
  176. package/dist/components/modules/support/widgets/TicketInfoWidget.js.map +1 -0
  177. package/dist/components/modules/support/widgets/TicketMessagesWidget.d.ts +14 -0
  178. package/dist/components/modules/support/widgets/TicketMessagesWidget.d.ts.map +1 -0
  179. package/dist/components/modules/support/widgets/TicketMessagesWidget.js +11 -0
  180. package/dist/components/modules/support/widgets/TicketMessagesWidget.js.map +1 -0
  181. package/dist/components/modules/support/widgets/TicketReplyWidget.d.ts +8 -0
  182. package/dist/components/modules/support/widgets/TicketReplyWidget.d.ts.map +1 -0
  183. package/dist/components/modules/support/widgets/TicketReplyWidget.js +14 -0
  184. package/dist/components/modules/support/widgets/TicketReplyWidget.js.map +1 -0
  185. package/dist/components/shared/Footer.d.ts.map +1 -1
  186. package/dist/components/shared/Footer.js +25 -5
  187. package/dist/components/shared/Footer.js.map +1 -1
  188. package/dist/components/shared/Header.d.ts +2 -1
  189. package/dist/components/shared/Header.d.ts.map +1 -1
  190. package/dist/components/shared/Header.js +17 -4
  191. package/dist/components/shared/Header.js.map +1 -1
  192. package/dist/components/shared/OfflineNotice.d.ts +6 -0
  193. package/dist/components/shared/OfflineNotice.d.ts.map +1 -0
  194. package/dist/components/shared/OfflineNotice.js +11 -0
  195. package/dist/components/shared/OfflineNotice.js.map +1 -0
  196. package/dist/components/shared/RateUsModal.d.ts +9 -0
  197. package/dist/components/shared/RateUsModal.d.ts.map +1 -0
  198. package/dist/components/shared/RateUsModal.js +38 -0
  199. package/dist/components/shared/RateUsModal.js.map +1 -0
  200. package/dist/components/shared/SearchSpotlight.d.ts.map +1 -1
  201. package/dist/components/shared/SearchSpotlight.js +13 -7
  202. package/dist/components/shared/SearchSpotlight.js.map +1 -1
  203. package/dist/components/shared/Skeleton.d.ts +7 -0
  204. package/dist/components/shared/Skeleton.d.ts.map +1 -0
  205. package/dist/components/shared/Skeleton.js +10 -0
  206. package/dist/components/shared/Skeleton.js.map +1 -0
  207. package/dist/components/shared/Toggle.d.ts +9 -0
  208. package/dist/components/shared/Toggle.d.ts.map +1 -0
  209. package/dist/components/shared/Toggle.js +25 -0
  210. package/dist/components/shared/Toggle.js.map +1 -0
  211. package/dist/components/shared/UserDrawer.d.ts +2 -1
  212. package/dist/components/shared/UserDrawer.d.ts.map +1 -1
  213. package/dist/components/shared/UserDrawer.js +6 -4
  214. package/dist/components/shared/UserDrawer.js.map +1 -1
  215. package/dist/components/showcase/GroupTab.d.ts.map +1 -1
  216. package/dist/components/showcase/GroupTab.js +20 -3
  217. package/dist/components/showcase/GroupTab.js.map +1 -1
  218. package/dist/components/showcase/MyPostsTab.d.ts.map +1 -1
  219. package/dist/components/showcase/MyPostsTab.js +4 -1
  220. package/dist/components/showcase/MyPostsTab.js.map +1 -1
  221. package/dist/components/showcase/ShowcaseNavigation.d.ts.map +1 -1
  222. package/dist/components/showcase/ShowcaseNavigation.js +3 -4
  223. package/dist/components/showcase/ShowcaseNavigation.js.map +1 -1
  224. package/dist/context/ArmoyuContext.js +2 -2
  225. package/dist/context/ArmoyuContext.js.map +1 -1
  226. package/dist/context/AuthContext.d.ts.map +1 -1
  227. package/dist/context/AuthContext.js +72 -5
  228. package/dist/context/AuthContext.js.map +1 -1
  229. package/dist/context/CartContext.d.ts.map +1 -1
  230. package/dist/context/CartContext.js +49 -3
  231. package/dist/context/CartContext.js.map +1 -1
  232. package/dist/context/ChatContext.d.ts +4 -2
  233. package/dist/context/ChatContext.d.ts.map +1 -1
  234. package/dist/context/ChatContext.js +64 -7
  235. package/dist/context/ChatContext.js.map +1 -1
  236. package/dist/index.d.ts +18 -0
  237. package/dist/index.d.ts.map +1 -1
  238. package/dist/index.js +17 -0
  239. package/dist/index.js.map +1 -1
  240. package/dist/lib/cache.d.ts +23 -0
  241. package/dist/lib/cache.d.ts.map +1 -0
  242. package/dist/lib/cache.js +89 -0
  243. package/dist/lib/cache.js.map +1 -0
  244. package/dist/lib/cache.test.d.ts +2 -0
  245. package/dist/lib/cache.test.d.ts.map +1 -0
  246. package/dist/lib/cache.test.js +56 -0
  247. package/dist/lib/cache.test.js.map +1 -0
  248. package/dist/lib/offline.d.ts +8 -0
  249. package/dist/lib/offline.d.ts.map +1 -0
  250. package/dist/lib/offline.js +17 -0
  251. package/dist/lib/offline.js.map +1 -0
  252. package/dist/lib/phone.d.ts +9 -0
  253. package/dist/lib/phone.d.ts.map +1 -0
  254. package/dist/lib/phone.js +30 -0
  255. package/dist/lib/phone.js.map +1 -0
  256. package/dist/lib/phone.test.d.ts +2 -0
  257. package/dist/lib/phone.test.d.ts.map +1 -0
  258. package/dist/lib/phone.test.js +16 -0
  259. package/dist/lib/phone.test.js.map +1 -0
  260. package/dist/models/auth/User.d.ts +9 -0
  261. package/dist/models/auth/User.d.ts.map +1 -1
  262. package/dist/models/auth/User.js +11 -5
  263. package/dist/models/auth/User.js.map +1 -1
  264. package/dist/models/community/Group.js +1 -1
  265. package/dist/models/community/Group.js.map +1 -1
  266. package/dist/models/community/Survey.d.ts.map +1 -1
  267. package/dist/models/community/Survey.js +4 -3
  268. package/dist/models/community/Survey.js.map +1 -1
  269. package/dist/models/content/News.js +1 -1
  270. package/dist/models/content/News.js.map +1 -1
  271. package/dist/models/shop/Product.d.ts +1 -0
  272. package/dist/models/shop/Product.d.ts.map +1 -1
  273. package/dist/models/shop/Product.js +3 -0
  274. package/dist/models/shop/Product.js.map +1 -1
  275. package/dist/models/social/feed/Post.d.ts.map +1 -1
  276. package/dist/models/social/feed/Post.js +7 -2
  277. package/dist/models/social/feed/Post.js.map +1 -1
  278. package/dist/models/social/feed/Story.d.ts.map +1 -1
  279. package/dist/models/social/feed/Story.js +3 -1
  280. package/dist/models/social/feed/Story.js.map +1 -1
  281. package/dist/models/social/feed/StoryAuthor.js +1 -1
  282. package/dist/models/social/feed/StoryAuthor.js.map +1 -1
  283. package/package.json +5 -4
  284. package/dist/app/Providers.d.ts +0 -6
  285. package/dist/app/Providers.d.ts.map +0 -1
  286. package/dist/app/Providers.js +0 -34
  287. package/dist/app/Providers.js.map +0 -1
  288. package/dist/app/api/proxy/[...path]/route.d.ts +0 -23
  289. package/dist/app/api/proxy/[...path]/route.d.ts.map +0 -1
  290. package/dist/app/api/proxy/[...path]/route.js +0 -127
  291. package/dist/app/api/proxy/[...path]/route.js.map +0 -1
  292. package/dist/app/egitim/[slug]/page.d.ts +0 -2
  293. package/dist/app/egitim/[slug]/page.d.ts.map +0 -1
  294. package/dist/app/egitim/[slug]/page.js +0 -7
  295. package/dist/app/egitim/[slug]/page.js.map +0 -1
  296. package/dist/app/etkinlikler/[eventId]/page.d.ts +0 -2
  297. package/dist/app/etkinlikler/[eventId]/page.d.ts.map +0 -1
  298. package/dist/app/etkinlikler/[eventId]/page.js +0 -12
  299. package/dist/app/etkinlikler/[eventId]/page.js.map +0 -1
  300. package/dist/app/etkinlikler/page.d.ts +0 -2
  301. package/dist/app/etkinlikler/page.d.ts.map +0 -1
  302. package/dist/app/etkinlikler/page.js +0 -32
  303. package/dist/app/etkinlikler/page.js.map +0 -1
  304. package/dist/app/gruplar/[groupId]/page.d.ts +0 -2
  305. package/dist/app/gruplar/[groupId]/page.d.ts.map +0 -1
  306. package/dist/app/gruplar/[groupId]/page.js +0 -11
  307. package/dist/app/gruplar/[groupId]/page.js.map +0 -1
  308. package/dist/app/layout.d.ts +0 -8
  309. package/dist/app/layout.d.ts.map +0 -1
  310. package/dist/app/layout.js +0 -29
  311. package/dist/app/layout.js.map +0 -1
  312. package/dist/app/management-panel/layout.d.ts +0 -5
  313. package/dist/app/management-panel/layout.d.ts.map +0 -1
  314. package/dist/app/management-panel/layout.js.map +0 -1
  315. package/dist/app/management-panel/page.d.ts +0 -2
  316. package/dist/app/management-panel/page.d.ts.map +0 -1
  317. package/dist/app/management-panel/page.js.map +0 -1
  318. package/dist/app/not-found.d.ts +0 -2
  319. package/dist/app/not-found.d.ts.map +0 -1
  320. package/dist/app/not-found.js +0 -7
  321. package/dist/app/not-found.js.map +0 -1
  322. package/dist/app/page.d.ts +0 -2
  323. package/dist/app/page.d.ts.map +0 -1
  324. package/dist/app/page.js +0 -59
  325. package/dist/app/page.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SurveyCard.js","sourceRoot":"","sources":["../../../../../src/components/modules/community/widgets/SurveyCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAOxF,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAmB;IAC5D,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IACrF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAC1E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC;IAEnE,0BAA0B;IAC1B,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,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UAAU,iBAAiB;IACxB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,iBAAiB,2CA0a7E;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"DetailPage.d.ts","sourceRoot":"","sources":["../../../../src/components/modules/events/DetailPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAyGpE,UAAU,iBAAiB;IACxB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,iBAAiB,2CAuzC7E;AAED,eAAe,UAAU,CAAC"}
@@ -1,12 +1,82 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { useRouter } from 'next/navigation';
5
5
  import { PageWidth } from '../../shared/PageWidth';
6
6
  import { ArmoyuEvent } from '../../../models/community/ArmoyuEvent';
7
- import { ChevronLeft, Calendar, MapPin, Users, Trophy, ShieldCheck, Gamepad2, Clock, AlertCircle, LayoutGrid, List } from 'lucide-react';
7
+ import { ChevronLeft, Calendar, MapPin, Users, Trophy, ShieldCheck, Gamepad2, Clock, AlertCircle, LayoutGrid, List, Award, Zap, Sword, Crown, ShieldAlert, ArrowUp, ArrowDown } from 'lucide-react';
8
8
  import { useArmoyu } from '../../../context/ArmoyuContext';
9
9
  import { eventList } from '../../../lib/constants/stationData';
10
+ // TURNUVA MOCK DATA
11
+ const tournamentTeams = [
12
+ { id: 1, name: 'Armada Esports', logo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 4, drawn: 1, lost: 0, gf: 14, ga: 4, gd: 10, points: 13 },
13
+ { id: 2, name: 'Göztepe Espor', logo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 3, drawn: 1, lost: 1, gf: 11, ga: 6, gd: 5, points: 10 },
14
+ { id: 3, name: 'Anatolia Warriors', logo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 2, drawn: 2, lost: 1, gf: 9, ga: 7, gd: 2, points: 8 },
15
+ { id: 4, name: 'Kadıköy United', logo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 2, drawn: 0, lost: 3, gf: 8, ga: 10, gd: -2, points: 6 },
16
+ { id: 5, name: 'Beşiktaş Cyber', logo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 1, drawn: 1, lost: 3, gf: 6, ga: 11, gd: -5, points: 4 },
17
+ { id: 6, name: 'Trakya FC', logo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 0, drawn: 1, lost: 4, gf: 3, ga: 13, gd: -10, points: 1 }
18
+ ];
19
+ const tournamentPlayers = [
20
+ { id: 1, name: 'Berkay Tiken', avatar: 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=80&h=80&q=80', team: 'Armada Esports', teamLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', goals: 8, assists: 4, yellowCards: 1, redCards: 0 },
21
+ { id: 2, name: 'Efe Çelik', avatar: 'https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?auto=format&fit=crop&w=80&h=80&q=80', team: 'Göztepe Espor', teamLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', goals: 6, assists: 2, yellowCards: 2, redCards: 0 },
22
+ { id: 3, name: 'Yiğit Yılmaz', avatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=80&h=80&q=80', team: 'Anatolia Warriors', teamLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', goals: 4, assists: 5, yellowCards: 0, redCards: 1 },
23
+ { id: 4, name: 'Can Demir', avatar: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=80&h=80&q=80', team: 'Armada Esports', teamLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', goals: 3, assists: 6, yellowCards: 1, redCards: 0 },
24
+ { id: 5, name: 'Mert Aksoy', avatar: 'https://images.unsplash.com/photo-1522075469751-3a6694fb2f61?auto=format&fit=crop&w=80&h=80&q=80', team: 'Kadıköy United', teamLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', goals: 5, assists: 1, yellowCards: 3, redCards: 0 },
25
+ { id: 6, name: 'Burak Kaya', avatar: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=80&h=80&q=80', team: 'Beşiktaş Cyber', teamLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', goals: 4, assists: 1, yellowCards: 1, redCards: 0 },
26
+ { id: 7, name: 'Emre Şahin', avatar: 'https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?auto=format&fit=crop&w=80&h=80&q=80', team: 'Anatolia Warriors', teamLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', goals: 2, assists: 3, yellowCards: 2, redCards: 0 },
27
+ { id: 8, name: 'Kaan Polat', avatar: 'https://images.unsplash.com/photo-1489980508314-941910ded1f4?auto=format&fit=crop&w=80&h=80&q=80', team: 'Trakya FC', teamLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', goals: 3, assists: 0, yellowCards: 0, redCards: 2 },
28
+ { id: 9, name: 'Arda Bulut', avatar: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=80&h=80&q=80', team: 'Beşiktaş Cyber', teamLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', goals: 1, assists: 4, yellowCards: 0, redCards: 0 },
29
+ { id: 10, name: 'Volkan Karaca', avatar: 'https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?auto=format&fit=crop&w=80&h=80&q=80', team: 'Kadıköy United', teamLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', goals: 2, assists: 2, yellowCards: 1, redCards: 1 }
30
+ ];
31
+ const tournamentMatches = [
32
+ // Hafta 1
33
+ { id: 1, week: 1, homeTeam: 'Armada Esports', homeLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Göztepe Espor', awayLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 3, awayScore: 1, status: 'played', date: '21.05.2026 20:00' },
34
+ { id: 2, week: 1, homeTeam: 'Anatolia Warriors', homeLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Kadıköy United', awayLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 2, awayScore: 1, status: 'played', date: '21.05.2026 21:00' },
35
+ { id: 3, week: 1, homeTeam: 'Beşiktaş Cyber', homeLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Trakya FC', awayLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 2, awayScore: 2, status: 'played', date: '21.05.2026 22:00' },
36
+ // Hafta 2
37
+ { id: 4, week: 2, homeTeam: 'Trakya FC', homeLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Armada Esports', awayLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 0, awayScore: 4, status: 'played', date: '22.05.2026 20:00' },
38
+ { id: 5, week: 2, homeTeam: 'Göztepe Espor', homeLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Anatolia Warriors', awayLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 2, awayScore: 2, status: 'played', date: '22.05.2026 21:00' },
39
+ { id: 6, week: 2, homeTeam: 'Kadıköy United', homeLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Beşiktaş Cyber', awayLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 3, awayScore: 1, status: 'played', date: '22.05.2026 22:00' },
40
+ // Hafta 3 (Canlı & Gelecek Program)
41
+ { id: 7, week: 3, homeTeam: 'Armada Esports', homeLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Anatolia Warriors', awayLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 2, awayScore: 1, status: 'live', date: 'Canlı Yayında' },
42
+ { id: 8, week: 3, homeTeam: 'Göztepe Espor', homeLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Beşiktaş Cyber', awayLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', status: 'upcoming', date: '23.05.2026 21:00' },
43
+ { id: 9, week: 3, homeTeam: 'Kadıköy United', homeLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Trakya FC', awayLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', status: 'upcoming', date: '23.05.2026 22:00' }
44
+ ];
45
+ // LEAGUE OF LEGENDS MOCK DATA
46
+ const lolTeams = [
47
+ { id: 1, name: 'SuperMassive', logo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 5, lost: 0, winRate: 100, kda: 3.4, fb: 4, streak: '5G' },
48
+ { id: 2, name: 'Fenerbahçe Espor', logo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 4, lost: 1, winRate: 80, kda: 2.8, fb: 3, streak: '2G' },
49
+ { id: 3, name: 'Galatasaray Esports', logo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 3, lost: 2, winRate: 60, kda: 2.1, fb: 3, streak: '1M' },
50
+ { id: 4, name: 'Dark Passage', logo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 2, lost: 3, winRate: 40, kda: 1.8, fb: 2, streak: '1G' },
51
+ { id: 5, name: 'Futbolist', logo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 1, lost: 4, winRate: 20, kda: 1.4, fb: 2, streak: '3M' },
52
+ { id: 6, name: '5 Ronin', logo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', played: 5, won: 0, lost: 5, winRate: 0, kda: 0.9, fb: 1, streak: '5M' }
53
+ ];
54
+ const lolPlayers = [
55
+ { id: 1, name: 'Berkay', avatar: 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=80&h=80&q=80', team: 'SuperMassive', teamLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', role: 'MID', kills: 42, deaths: 8, assists: 38, csMin: 8.9, kp: 72, champion: 'Ahri' },
56
+ { id: 2, name: 'MythX', avatar: 'https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?auto=format&fit=crop&w=80&h=80&q=80', team: 'SuperMassive', teamLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', role: 'ADC', kills: 38, deaths: 5, assists: 40, csMin: 9.2, kp: 70, champion: 'Ezreal' },
57
+ { id: 3, name: 'Thaldrin', avatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=80&h=80&q=80', team: 'Fenerbahçe Espor', teamLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', role: 'TOP', kills: 15, deaths: 12, assists: 35, csMin: 7.8, kp: 55, champion: 'Aatrox' },
58
+ { id: 4, name: 'Elwind', avatar: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=80&h=80&q=80', team: 'Galatasaray Esports', teamLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', role: 'TOP', kills: 22, deaths: 18, assists: 20, csMin: 8.1, kp: 51, champion: 'Jax' },
59
+ { id: 5, name: 'Naru', avatar: 'https://images.unsplash.com/photo-1522075469751-3a6694fb2f61?auto=format&fit=crop&w=80&h=80&q=80', team: 'Fenerbahçe Espor', teamLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', role: 'MID', kills: 30, deaths: 14, assists: 32, csMin: 8.5, kp: 68, champion: 'Azir' },
60
+ { id: 6, name: 'Dumbledoge', avatar: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=80&h=80&q=80', team: 'SuperMassive', teamLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', role: 'SUPPORT', kills: 4, deaths: 10, assists: 65, csMin: 1.2, kp: 75, champion: 'Thresh' },
61
+ { id: 7, name: 'Stomaged', avatar: 'https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?auto=format&fit=crop&w=80&h=80&q=80', team: 'SuperMassive', teamLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', role: 'JUNGLE', kills: 12, deaths: 9, assists: 48, csMin: 5.5, kp: 65, champion: 'Lee Sin' },
62
+ { id: 8, name: 'HolyPhoenix', avatar: 'https://images.unsplash.com/photo-1489980508314-941910ded1f4?auto=format&fit=crop&w=80&h=80&q=80', team: 'Dark Passage', teamLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', role: 'ADC', kills: 35, deaths: 15, assists: 22, csMin: 8.8, kp: 62, champion: 'Lucian' },
63
+ { id: 9, name: 'Zeitnot', avatar: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=80&h=80&q=80', team: 'Galatasaray Esports', teamLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', role: 'ADC', kills: 28, deaths: 16, assists: 24, csMin: 8.6, kp: 59, champion: 'Kai\'Sa' },
64
+ { id: 10, name: 'Rogu', avatar: 'https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?auto=format&fit=crop&w=80&h=80&q=80', team: 'Dark Passage', teamLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', role: 'MID', kills: 20, deaths: 19, assists: 25, csMin: 7.9, kp: 57, champion: 'Syndra' }
65
+ ];
66
+ const lolMatches = [
67
+ // Hafta 1
68
+ { id: 1, week: 1, homeTeam: 'SuperMassive', homeLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Fenerbahçe Espor', awayLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 1, awayScore: 0, status: 'played', date: '21.05.2026 20:00' },
69
+ { id: 2, week: 1, homeTeam: 'Galatasaray Esports', homeLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Dark Passage', awayLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 0, awayScore: 1, status: 'played', date: '21.05.2026 21:00' },
70
+ { id: 3, week: 1, homeTeam: 'Futbolist', homeLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: '5 Ronin', awayLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 1, awayScore: 0, status: 'played', date: '21.05.2026 22:00' },
71
+ // Hafta 2
72
+ { id: 4, week: 2, homeTeam: '5 Ronin', homeLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'SuperMassive', awayLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 0, awayScore: 1, status: 'played', date: '22.05.2026 20:00' },
73
+ { id: 5, week: 2, homeTeam: 'Fenerbahçe Espor', homeLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Galatasaray Esports', awayLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 1, awayScore: 0, status: 'played', date: '22.05.2026 21:00' },
74
+ { id: 6, week: 2, homeTeam: 'Dark Passage', homeLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Futbolist', awayLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 1, awayScore: 0, status: 'played', date: '22.05.2026 22:00' },
75
+ // Hafta 3
76
+ { id: 7, week: 3, homeTeam: 'SuperMassive', homeLogo: 'https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Galatasaray Esports', awayLogo: 'https://images.unsplash.com/photo-1541252260730-0412e8e2108e?auto=format&fit=crop&w=80&h=80&q=80', homeScore: 1, awayScore: 0, status: 'live', date: 'Canlı Yayında' },
77
+ { id: 8, week: 3, homeTeam: 'Fenerbahçe Espor', homeLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: 'Futbolist', awayLogo: 'https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=80&h=80&q=80', status: 'upcoming', date: '23.05.2026 21:00' },
78
+ { id: 9, week: 3, homeTeam: 'Dark Passage', homeLogo: 'https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=80&h=80&q=80', awayTeam: '5 Ronin', awayLogo: 'https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=80&h=80&q=80', status: 'upcoming', date: '23.05.2026 22:00' }
79
+ ];
10
80
  export function DetailPage({ eventId, initialData, onBack }) {
11
81
  const router = useRouter();
12
82
  const { api, apiKey } = useArmoyu();
@@ -17,6 +87,33 @@ export function DetailPage({ eventId, initialData, onBack }) {
17
87
  const [error, setError] = useState(null);
18
88
  const [showFullDescription, setShowFullDescription] = useState(false);
19
89
  const [showFullRules, setShowFullRules] = useState(false);
90
+ // DEV TEMPLATE STYLES
91
+ const [activeStyle, setActiveStyle] = useState('standard');
92
+ const [activeSubTab, setActiveSubTab] = useState('bracket');
93
+ const [selectedWeek, setSelectedWeek] = useState(null);
94
+ // SORTING STATES & HANDLERS
95
+ const [standingsSortKey, setStandingsSortKey] = useState('points');
96
+ const [standingsSortDir, setStandingsSortDir] = useState('desc');
97
+ const [playersSortKey, setPlayersSortKey] = useState('rating');
98
+ const [playersSortDir, setPlayersSortDir] = useState('desc');
99
+ const handleStandingsSort = (key) => {
100
+ if (standingsSortKey === key) {
101
+ setStandingsSortDir(standingsSortDir === 'asc' ? 'desc' : 'asc');
102
+ }
103
+ else {
104
+ setStandingsSortKey(key);
105
+ setStandingsSortDir('desc');
106
+ }
107
+ };
108
+ const handlePlayersSort = (key) => {
109
+ if (playersSortKey === key) {
110
+ setPlayersSortDir(playersSortDir === 'asc' ? 'desc' : 'asc');
111
+ }
112
+ else {
113
+ setPlayersSortKey(key);
114
+ setPlayersSortDir('desc');
115
+ }
116
+ };
20
117
  useEffect(() => {
21
118
  const fetchDetail = async () => {
22
119
  setIsLoading(true);
@@ -70,6 +167,35 @@ export function DetailPage({ eventId, initialData, onBack }) {
70
167
  };
71
168
  fetchDetail();
72
169
  }, [eventId, api]);
170
+ useEffect(() => {
171
+ if (event) {
172
+ const gName = (event.gameName || '').toLowerCase();
173
+ const isTournamentGame = gName.includes('counter-strike') ||
174
+ gName.includes('cs') ||
175
+ gName.includes('league of legends') ||
176
+ gName === 'lol' ||
177
+ gName.includes('assetto') ||
178
+ gName.includes('okey') ||
179
+ gName.includes('futbol') ||
180
+ gName.includes('football') ||
181
+ gName.includes('soccer');
182
+ const isSpecialGame = gName.includes('ets') ||
183
+ gName.includes('euro truck') ||
184
+ gName.includes('truck') ||
185
+ gName.includes('simulator') ||
186
+ gName.includes('minecraft') ||
187
+ gName.includes('mc');
188
+ if (isTournamentGame) {
189
+ setActiveStyle('tournament');
190
+ }
191
+ else if (isSpecialGame) {
192
+ setActiveStyle('game_special');
193
+ }
194
+ else {
195
+ setActiveStyle('standard');
196
+ }
197
+ }
198
+ }, [event]);
73
199
  if (isLoading) {
74
200
  return (_jsxs("div", { className: "flex flex-col items-center justify-center min-h-[400px] gap-4", children: [_jsx("div", { className: "w-12 h-12 border-4 border-armoyu-primary/20 border-t-armoyu-primary rounded-full animate-spin" }), _jsx("span", { className: "text-xs font-black uppercase tracking-widest text-armoyu-text-muted animate-pulse", children: "Etkinlik Y\u00FCkleniyor..." })] }));
75
201
  }
@@ -79,15 +205,149 @@ export function DetailPage({ eventId, initialData, onBack }) {
79
205
  const progressPercentage = event.participantLimit > 0
80
206
  ? Math.min(100, (event.currentParticipants / event.participantLimit) * 100)
81
207
  : 0;
82
- return (_jsxs("div", { className: "animate-in fade-in slide-in-from-bottom-4 duration-700 pb-10", children: [_jsxs("div", { className: "fixed inset-0 pointer-events-none overflow-hidden -z-10", children: [_jsx("div", { className: "absolute top-[-10%] left-[-10%] w-[40%] h-[40%] bg-armoyu-primary/5 blur-[100px] rounded-full" }), _jsx("div", { className: "absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] bg-indigo-600/5 blur-[100px] rounded-full" })] }), _jsx(PageWidth, { width: "max-w-[1280px]" }), _jsx("div", { className: "mx-auto mb-6 px-4", children: _jsxs("button", { onClick: onBack, className: "group flex items-center gap-3 text-armoyu-text-muted hover:text-white transition-all bg-white/5 hover:bg-white/10 px-5 py-2.5 rounded-2xl border border-white/5", children: [_jsx(ChevronLeft, { size: 18, className: "group-hover:-translate-x-1 transition-transform" }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-widest", children: "Geri D\u00F6n" })] }) }), _jsxs("div", { className: "mx-auto px-4 space-y-8", children: [_jsxs("div", { className: "relative aspect-[21/8] md:aspect-[21/6] rounded-[32px] overflow-hidden border border-white/10 shadow-2xl group", children: [_jsx("img", { src: event.image || event.thumbnail, className: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-1000", alt: event.name }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black via-black/30 to-transparent" }), _jsxs("div", { className: "absolute inset-0 p-6 md:p-8 flex flex-col justify-end gap-3", children: [_jsxs("div", { className: "flex flex-wrap gap-2 mb-1", children: [_jsx("span", { className: "bg-armoyu-primary text-white px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest shadow-lg", children: event.gameName }), _jsx("span", { className: "bg-white/10 backdrop-blur-md text-white px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest border border-white/10", children: event.type })] }), _jsx("h1", { className: "text-3xl md:text-5xl font-black text-white uppercase tracking-tighter italic drop-shadow-2xl", children: event.name }), _jsxs("div", { className: "flex items-center gap-6 mt-1 opacity-80", children: [_jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [_jsx(Calendar, { className: "text-armoyu-primary", size: 16 }), _jsx("span", { className: "text-xs font-black text-white uppercase tracking-wider", children: event.date })] }), _jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [_jsx(MapPin, { className: "text-armoyu-primary", size: 16 }), _jsx("span", { className: "text-xs font-black text-white uppercase tracking-wider", children: event.location })] })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-4", children: [_jsx("div", { className: "lg:col-span-3 grid grid-cols-2 md:grid-cols-4 gap-3", children: [
83
- { icon: _jsx(Clock, {}), label: 'Durum', value: event.status === 1 ? 'Aktif' : 'Tamamlandı', color: 'text-emerald-500' },
84
- { icon: _jsx(Users, {}), label: 'Katılım', value: event.getParticipantProgress(), color: 'text-armoyu-primary' },
85
- { icon: _jsx(Trophy, {}), label: 'Tür', value: event.type === 'bireysel' ? 'Bireysel' : 'Grup', color: 'text-purple-500' },
86
- { icon: _jsx(MapPin, {}), label: 'Konum', value: event.location || 'Online', color: 'text-orange-500' },
87
- ].map((stat, i) => (_jsxs("div", { className: "bg-armoyu-card-bg p-4 rounded-2xl border border-white/5 flex items-center gap-4 shadow-xl", children: [_jsx("div", { className: `w-8 h-8 rounded-xl bg-white/5 flex items-center justify-center ${stat.color} shrink-0`, children: React.cloneElement(stat.icon, { size: 16 }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("span", { className: "block text-[7px] font-black text-armoyu-text-muted uppercase tracking-widest mb-0.5", children: stat.label }), _jsx("span", { className: "text-[11px] font-black text-armoyu-text uppercase tracking-tighter truncate block", children: stat.value })] })] }, i))) }), _jsxs("div", { className: "bg-armoyu-card-bg rounded-2xl p-4 border border-white/5 shadow-2xl relative overflow-hidden group flex flex-col gap-4", children: [_jsx("div", { className: "absolute top-0 right-0 w-24 h-24 bg-armoyu-primary/5 blur-[40px] -mr-8 -mt-8" }), _jsx("div", { className: "h-1.5 w-full bg-black/20 rounded-full overflow-hidden border border-white/5", children: _jsx("div", { className: "h-full bg-armoyu-primary rounded-full transition-all duration-1000", style: { width: `${progressPercentage}%` } }) }), event.status === 1 ? (_jsxs("button", { className: "w-full py-3 bg-armoyu-primary hover:bg-armoyu-primary text-white rounded-xl font-black text-[10px] uppercase tracking-[0.2em] transition-all shadow-lg active:scale-95 flex items-center justify-center gap-2 relative z-10", children: [_jsx(ShieldCheck, { size: 14, strokeWidth: 3 }), _jsx("span", { children: "Hemen Kat\u0131l" }), event.minOdp > 0 && (_jsxs("span", { className: "text-[7px] opacity-70 bg-black/20 px-1.5 py-0.5 rounded-md font-bold", children: [event.minOdp, " ODP"] }))] })) : (_jsxs("div", { className: "w-full py-3 bg-white/5 border border-white/10 rounded-xl flex items-center justify-center gap-2 opacity-50", children: [_jsx(ShieldCheck, { size: 14, className: "text-armoyu-text-muted" }), _jsx("span", { className: "text-[9px] font-black uppercase tracking-widest text-armoyu-text-muted", children: "Etkinlik Tamamland\u0131" })] }))] })] }), _jsxs("div", { className: "space-y-4", children: [_jsx("h3", { className: "text-[10px] font-black text-white uppercase tracking-[0.3em] italic border-l-4 border-armoyu-primary pl-4", children: "ETK\u0130NL\u0130K SORUMLULARI" }), _jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3", children: event.organizers && event.organizers.length > 0 ? event.organizers.map((organizer) => (_jsxs("div", { onClick: () => router.push(`/oyuncu/${organizer.displayName}`), className: "flex items-center gap-3 p-3 bg-armoyu-card-bg rounded-2xl border border-white/5 hover:border-armoyu-primary/30 transition-all group cursor-pointer active:scale-95 shadow-lg", children: [_jsx("img", { src: organizer.avatar, className: "w-8 h-8 rounded-lg border border-white/10", alt: "" }), _jsxs("div", { className: "flex flex-col min-w-0", children: [_jsx("span", { className: "text-[10px] font-black text-armoyu-text uppercase tracking-tighter group-hover:text-armoyu-primary transition-colors truncate", children: organizer.displayName }), _jsx("span", { className: "text-[7px] font-black text-armoyu-text-muted uppercase tracking-widest italic opacity-60", children: "Y\u00F6netici" })] })] }, organizer.id))) : (_jsxs("div", { className: "flex items-center gap-3 p-3 bg-armoyu-card-bg rounded-2xl border border-white/5", children: [_jsx("div", { className: "w-8 h-8 rounded-lg bg-armoyu-primary/10 flex items-center justify-center text-armoyu-primary", children: _jsx(Gamepad2, { size: 16 }) }), _jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[10px] font-black text-armoyu-text uppercase tracking-tighter italic", children: "Platform Ekibi" }), _jsx("span", { className: "text-[7px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "ARMOYU" })] })] })) })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { className: "bg-armoyu-card-bg rounded-3xl p-6 border border-white/5 shadow-xl space-y-4", children: [_jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.2em] italic border-l-4 border-armoyu-primary pl-4", children: "HAKKINDA" }), _jsxs("div", { className: "relative", children: [_jsx("div", { className: `text-armoyu-text-muted text-xs leading-relaxed font-medium opacity-80 whitespace-pre-wrap transition-all duration-500 ${!showFullDescription ? 'max-h-[150px] overflow-hidden mask-fade-bottom' : 'max-h-[5000px]'}`, children: event.description || 'Bu etkinlik için henüz bir açıklama girilmemiş.' }), event.description && event.description.split(/\s+/).length > 30 && (_jsx("button", { onClick: () => setShowFullDescription(!showFullDescription), className: "mt-3 text-[8px] font-black text-armoyu-primary hover:text-white uppercase tracking-widest transition-all", children: showFullDescription ? '▲ DAHA AZ GÖR' : '▼ DEVAMINI GÖR' }))] })] }), _jsxs("div", { className: "bg-armoyu-card-bg rounded-3xl p-6 border border-white/5 shadow-xl space-y-4", children: [_jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.2em] italic border-l-4 border-red-600 pl-4", children: "KURALLAR" }), _jsxs("div", { className: "relative", children: [_jsx("div", { className: `text-armoyu-text-muted text-xs leading-relaxed font-medium opacity-80 whitespace-pre-wrap transition-all duration-500 ${!showFullRules ? 'max-h-[150px] overflow-hidden mask-fade-bottom' : 'max-h-[5000px]'}`, children: event.rules || 'Genel platform kuralları geçerlidir.' }), (event.rules || 'Genel platform kuralları geçerlidir.').split(/\s+/).length > 20 && (_jsx("button", { onClick: () => setShowFullRules(!showFullRules), className: "mt-3 text-[8px] font-black text-red-500 hover:text-white uppercase tracking-widest transition-all", children: showFullRules ? '▲ DAHA AZ GÖR' : '▼ DEVAMINI GÖR' }))] })] })] }), _jsxs("div", { className: "bg-armoyu-card-bg rounded-[32px] p-6 md:p-8 border border-white/5 shadow-2xl space-y-6", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx("h3", { className: "text-[12px] font-black text-white uppercase tracking-[0.3em] italic border-l-4 border-armoyu-primary pl-4", children: "KATILIMCILAR" }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsxs("div", { className: "hidden sm:flex items-center gap-2 px-3 py-1.5 bg-armoyu-primary/10 rounded-xl border border-armoyu-primary/20 text-armoyu-primary text-[8px] font-black uppercase tracking-widest italic", children: [_jsx(Users, { size: 12 }), participants.individuals.length + participants.groups.length, " KATILIM"] }), _jsxs("div", { className: "flex items-center gap-1 bg-black/40 p-1 rounded-xl border border-white/5 scale-90", children: [_jsx("button", { onClick: () => setViewMode('grid'), className: `p-1.5 rounded-lg transition-all ${viewMode === 'grid' ? 'bg-armoyu-primary text-white shadow-lg' : 'text-armoyu-text-muted'}`, children: _jsx(LayoutGrid, { size: 14 }) }), _jsx("button", { onClick: () => setViewMode('table'), className: `p-1.5 rounded-lg transition-all ${viewMode === 'table' ? 'bg-armoyu-primary text-white shadow-lg' : 'text-armoyu-text-muted'}`, children: _jsx(List, { size: 14 }) })] })] })] }), _jsxs("div", { className: "space-y-12", children: [participants.individuals.length > 0 && (_jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-[8px] font-black text-armoyu-text-muted uppercase tracking-[0.4em] opacity-60", children: "OYUNCULAR" }), viewMode === 'grid' ? (_jsx("div", { className: "grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-10 gap-3", children: participants.individuals.map((p) => (_jsxs("div", { onClick: () => router.push(`/oyuncu/${p.username}`), className: "flex flex-col items-center gap-2 p-3 bg-white/5 rounded-2xl border border-white/5 hover:border-armoyu-primary/30 transition-all group text-center cursor-pointer active:scale-95", children: [_jsx("img", { src: p.avatar, className: "w-10 h-10 rounded-xl border border-white/5", alt: "" }), _jsx("span", { className: "text-[9px] font-black text-armoyu-text uppercase tracking-tighter truncate w-full group-hover:text-armoyu-primary transition-colors", children: p.name || p.username })] }, p.id))) })) : (_jsx("div", { className: "bg-black/20 rounded-2xl border border-white/5 overflow-hidden shadow-xl", children: _jsxs("table", { className: "w-full text-left", children: [_jsx("thead", { children: _jsxs("tr", { className: "border-b border-white/5 bg-white/5", children: [_jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "Oyuncu" }), _jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic text-right", children: "Durum" })] }) }), _jsx("tbody", { className: "divide-y divide-white/5", children: participants.individuals.map((p) => (_jsxs("tr", { onClick: () => router.push(`/oyuncu/${p.username}`), className: "hover:bg-white/5 transition-all cursor-pointer group", children: [_jsx("td", { className: "px-4 py-2.5", children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("img", { src: p.avatar, className: "w-8 h-8 rounded-lg border border-white/5", alt: "" }), _jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[11px] font-black text-white uppercase tracking-tight group-hover:text-armoyu-primary transition-colors", children: p.name || p.username }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-text-muted uppercase tracking-widest opacity-60 italic", children: "Bireysel" })] })] }) }), _jsx("td", { className: "px-4 py-2.5 text-right", children: _jsx("span", { className: "text-[8px] font-black text-armoyu-primary uppercase tracking-widest italic bg-armoyu-primary/10 px-3 py-1 rounded-full border border-armoyu-primary/20", children: "KATILDI" }) })] }, p.id))) })] }) }))] })), participants.groups.length > 0 && (_jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-[8px] font-black text-armoyu-text-muted uppercase tracking-[0.4em] opacity-60", children: "GRUPLAR" }), viewMode === 'grid' ? (_jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: participants.groups.map((g) => (_jsxs("div", { onClick: () => router.push(`/grup/${g.shortName}`), className: "group bg-armoyu-card-bg rounded-2xl border border-white/5 overflow-hidden shadow-xl hover:border-armoyu-primary/30 transition-all cursor-pointer active:scale-[0.98]", children: [_jsxs("div", { className: "relative h-16 overflow-hidden", children: [g.banner ? _jsx("img", { src: g.banner, className: "w-full h-full object-cover opacity-20", alt: "" }) : _jsx("div", { className: "w-full h-full bg-gradient-to-r from-armoyu-primary/20 to-indigo-600/20" }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-armoyu-card-bg to-transparent" })] }), _jsxs("div", { className: "relative px-4 -mt-8 mb-3 flex items-end gap-3", children: [_jsx("img", { src: g.logo, className: "w-10 h-10 rounded-xl bg-armoyu-card-bg p-0.5 border border-white/10 shadow-xl", alt: "" }), _jsxs("div", { className: "pb-0.5 min-w-0", children: [_jsx("h5", { className: "text-[12px] font-black text-white uppercase italic tracking-tighter leading-none truncate group-hover:text-armoyu-primary transition-colors", children: g.name }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-primary uppercase tracking-widest italic", children: g.shortName })] })] }), _jsx("div", { className: "px-4 pb-4", children: _jsx("div", { className: "bg-black/20 rounded-xl border border-white/5 overflow-hidden", children: _jsx("table", { className: "w-full text-left", children: _jsx("tbody", { className: "divide-y divide-white/5", children: g.players.slice(0, 3).map((p) => (_jsxs("tr", { onClick: (e) => {
88
- e.stopPropagation();
89
- router.push(`/oyuncu/${p.username || p.name}`);
90
- }, className: "hover:bg-white/5 cursor-pointer transition-colors group/player", children: [_jsxs("td", { className: "px-3 py-1.5 flex items-center gap-2 text-[9px] font-black text-white/80 uppercase truncate", children: [_jsx("img", { src: p.avatar, className: "w-5 h-5 rounded-md border border-white/5 object-cover", alt: "" }), _jsx("span", { className: "truncate group-hover/player:text-armoyu-primary transition-colors", children: p.name })] }), _jsx("td", { className: "px-3 py-1.5 text-right text-[7px] font-black text-armoyu-text-muted uppercase italic opacity-60", children: p.role || 'Oyuncu' })] }, p.id))) }) }) }) })] }, g.id))) })) : (_jsx("div", { className: "bg-black/20 rounded-2xl border border-white/5 overflow-hidden shadow-xl", children: _jsxs("table", { className: "w-full text-left", children: [_jsx("thead", { children: _jsxs("tr", { className: "border-b border-white/5 bg-white/5", children: [_jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "Grup" }), _jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "K\u0131saltma" }), _jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic text-right", children: "Oyuncu Say\u0131s\u0131" })] }) }), _jsx("tbody", { className: "divide-y divide-white/5", children: participants.groups.map((g) => (_jsxs("tr", { onClick: () => router.push(`/grup/${g.shortName}`), className: "hover:bg-white/5 transition-all cursor-pointer group", children: [_jsx("td", { className: "px-4 py-2.5", children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("img", { src: g.logo, className: "w-8 h-8 rounded-lg border border-white/5", alt: "" }), _jsx("span", { className: "text-[11px] font-black text-white uppercase tracking-tight group-hover:text-armoyu-primary transition-colors truncate", children: g.name })] }) }), _jsx("td", { className: "px-4 py-2.5", children: _jsx("span", { className: "text-[9px] font-black text-armoyu-primary uppercase italic", children: g.shortName }) }), _jsx("td", { className: "px-4 py-2.5 text-right", children: _jsxs("span", { className: "text-[10px] font-black text-white uppercase tracking-tighter bg-white/5 px-3 py-1 rounded-full border border-white/5", children: [g.players.length, " OYUNCU"] }) })] }, g.id))) })] }) }))] }))] })] })] })] }));
208
+ const getParticipantTypeLabel = (type) => {
209
+ switch (type) {
210
+ case 'bireysel': return 'Bireysel';
211
+ case 'gruplu': return 'Gruplu';
212
+ case 'bireysel_gruplu': return 'Bireysel & Gruplu';
213
+ default: return 'Bireysel';
214
+ }
215
+ };
216
+ // RENDER: STANDARD VIEW (Original Elegancy)
217
+ const renderStandardView = () => {
218
+ return (_jsxs("div", { className: "mx-auto px-4 space-y-8 animate-in fade-in duration-500", children: [_jsxs("div", { className: "relative aspect-[21/8] md:aspect-[21/6] rounded-[32px] overflow-hidden border border-white/10 shadow-2xl group", children: [_jsx("img", { src: event.image || event.thumbnail, className: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-1000", alt: event.name }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black via-black/30 to-transparent" }), _jsxs("div", { className: "absolute inset-0 p-6 md:p-8 flex flex-col justify-end gap-3", children: [_jsxs("div", { className: "flex flex-wrap gap-2 mb-1", children: [_jsx("span", { className: "bg-armoyu-primary text-white px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest shadow-lg", children: event.gameName }), _jsx("span", { className: "bg-white/10 backdrop-blur-md text-white px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest border border-white/10", children: event.type })] }), _jsx("h1", { className: "text-3xl md:text-5xl font-black text-white uppercase tracking-tighter italic drop-shadow-2xl", children: event.name }), _jsxs("div", { className: "flex items-center gap-6 mt-1 opacity-80", children: [_jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [_jsx(Calendar, { className: "text-armoyu-primary", size: 16 }), _jsx("span", { className: "text-xs font-black text-white uppercase tracking-wider", children: event.date })] }), _jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [_jsx(MapPin, { className: "text-armoyu-primary", size: 16 }), _jsx("span", { className: "text-xs font-black text-white uppercase tracking-wider", children: event.location })] })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-4", children: [_jsx("div", { className: "lg:col-span-3 grid grid-cols-2 md:grid-cols-4 gap-3", children: [
219
+ { icon: _jsx(Clock, {}), label: 'Durum', value: event.status === 1 ? 'Aktif' : 'Tamamlandı', color: 'text-emerald-500' },
220
+ { icon: _jsx(Users, {}), label: 'Katılım', value: event.getParticipantProgress(), color: 'text-armoyu-primary' },
221
+ { icon: _jsx(Trophy, {}), label: 'Tür', value: getParticipantTypeLabel(event.type), color: 'text-purple-500' },
222
+ { icon: _jsx(MapPin, {}), label: 'Konum', value: event.location || 'Online', color: 'text-orange-500' },
223
+ ].map((stat, i) => (_jsxs("div", { className: "bg-armoyu-card-bg p-4 rounded-2xl border border-white/5 flex items-center gap-4 shadow-xl", children: [_jsx("div", { className: `w-8 h-8 rounded-xl bg-white/5 flex items-center justify-center ${stat.color} shrink-0`, children: React.cloneElement(stat.icon, { size: 16 }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("span", { className: "block text-[7px] font-black text-armoyu-text-muted uppercase tracking-widest mb-0.5", children: stat.label }), _jsx("span", { className: "text-[11px] font-black text-armoyu-text uppercase tracking-tighter truncate block", children: stat.value })] })] }, i))) }), _jsxs("div", { className: "bg-armoyu-card-bg rounded-2xl p-4 border border-white/5 shadow-2xl relative overflow-hidden group flex flex-col gap-4", children: [_jsx("div", { className: "absolute top-0 right-0 w-24 h-24 bg-armoyu-primary/5 blur-[40px] -mr-8 -mt-8" }), _jsx("div", { className: "h-1.5 w-full bg-black/20 rounded-full overflow-hidden border border-white/5", children: _jsx("div", { className: "h-full bg-armoyu-primary rounded-full transition-all duration-1000", style: { width: `${progressPercentage}%` } }) }), event.status === 1 ? (_jsxs("button", { className: "w-full py-3 bg-armoyu-primary hover:bg-armoyu-primary/90 text-white rounded-xl font-black text-[10px] uppercase tracking-[0.2em] transition-all shadow-lg active:scale-95 flex items-center justify-center gap-2 relative z-10", children: [_jsx(ShieldCheck, { size: 14, strokeWidth: 3 }), _jsx("span", { children: "Hemen Kat\u0131l" }), event.minOdp > 0 && (_jsxs("span", { className: "text-[7px] opacity-70 bg-black/20 px-1.5 py-0.5 rounded-md font-bold", children: [event.minOdp, " ODP"] }))] })) : (_jsxs("div", { className: "w-full py-3 bg-white/5 border border-white/10 rounded-xl flex items-center justify-center gap-2 opacity-50", children: [_jsx(ShieldCheck, { size: 14, className: "text-armoyu-text-muted" }), _jsx("span", { className: "text-[9px] font-black uppercase tracking-widest text-armoyu-text-muted", children: "Etkinlik Tamamland\u0131" })] }))] })] }), _jsxs("div", { className: "space-y-4", children: [_jsx("h3", { className: "text-[10px] font-black text-white uppercase tracking-[0.3em] italic border-l-4 border-armoyu-primary pl-4", children: "ETK\u0130NL\u0130K SORUMLULARI" }), _jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3", children: event.organizers && event.organizers.length > 0 ? event.organizers.map((organizer) => (_jsxs("div", { onClick: () => router.push(`/oyuncu/${organizer.displayName}`), className: "flex items-center gap-3 p-3 bg-armoyu-card-bg rounded-2xl border border-white/5 hover:border-armoyu-primary/30 transition-all group cursor-pointer active:scale-95 shadow-lg", children: [_jsx("img", { src: organizer.avatar, className: "w-8 h-8 rounded-lg border border-white/10", alt: "" }), _jsxs("div", { className: "flex flex-col min-w-0", children: [_jsx("span", { className: "text-[10px] font-black text-armoyu-text uppercase tracking-tighter group-hover:text-armoyu-primary transition-colors truncate", children: organizer.displayName }), _jsx("span", { className: "text-[7px] font-black text-armoyu-text-muted uppercase tracking-widest italic opacity-60", children: "Y\u00F6netici" })] })] }, organizer.id))) : (_jsxs("div", { className: "flex items-center gap-3 p-3 bg-armoyu-card-bg rounded-2xl border border-white/5", children: [_jsx("div", { className: "w-8 h-8 rounded-lg bg-armoyu-primary/10 flex items-center justify-center text-armoyu-primary", children: _jsx(Gamepad2, { size: 16 }) }), _jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[10px] font-black text-armoyu-text uppercase tracking-tighter italic", children: "Platform Ekibi" }), _jsx("span", { className: "text-[7px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "ARMOYU" })] })] })) })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { className: "bg-armoyu-card-bg rounded-3xl p-6 border border-white/5 shadow-xl space-y-4", children: [_jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.2em] italic border-l-4 border-armoyu-primary pl-4", children: "HAKKINDA" }), _jsxs("div", { className: "relative", children: [_jsx("div", { className: `text-armoyu-text-muted text-xs leading-relaxed font-medium opacity-80 whitespace-pre-wrap transition-all duration-500 ${!showFullDescription ? 'max-h-[150px] overflow-hidden mask-fade-bottom' : 'max-h-[5000px]'}`, children: event.description || 'Bu etkinlik için henüz bir açıklama girilmemiş.' }), event.description && event.description.split(/\s+/).length > 30 && (_jsx("button", { onClick: () => setShowFullDescription(!showFullDescription), className: "mt-3 text-[8px] font-black text-armoyu-primary hover:text-white uppercase tracking-widest transition-all", children: showFullDescription ? '▲ DAHA AZ GÖR' : '▼ DEVAMINI GÖR' }))] })] }), _jsxs("div", { className: "bg-armoyu-card-bg rounded-3xl p-6 border border-white/5 shadow-xl space-y-4", children: [_jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.2em] italic border-l-4 border-red-600 pl-4", children: "KURALLAR" }), _jsxs("div", { className: "relative", children: [_jsx("div", { className: `text-armoyu-text-muted text-xs leading-relaxed font-medium opacity-80 whitespace-pre-wrap transition-all duration-500 ${!showFullRules ? 'max-h-[150px] overflow-hidden mask-fade-bottom' : 'max-h-[5000px]'}`, children: event.rules || 'Genel platform kuralları geçerlidir.' }), (event.rules || 'Genel platform kuralları geçerlidir.').split(/\s+/).length > 20 && (_jsx("button", { onClick: () => setShowFullRules(!showFullRules), className: "mt-3 text-[8px] font-black text-red-500 hover:text-white uppercase tracking-widest transition-all", children: showFullRules ? '▲ DAHA AZ GÖR' : '▼ DEVAMINI GÖR' }))] })] })] })] }));
224
+ };
225
+ const renderTournamentView = () => {
226
+ const gName = (event?.gameName || '').toLowerCase();
227
+ const isTournamentGame = gName.includes('counter-strike') ||
228
+ gName.includes('cs') ||
229
+ gName.includes('league of legends') ||
230
+ gName === 'lol' ||
231
+ gName.includes('assetto') ||
232
+ gName.includes('okey') ||
233
+ gName.includes('futbol') ||
234
+ gName.includes('football') ||
235
+ gName.includes('soccer');
236
+ if (!isTournamentGame) {
237
+ return (_jsx("div", { className: "max-w-[1280px] mx-auto px-4", children: _jsxs("div", { className: "bg-armoyu-card-bg border border-white/5 rounded-[32px] p-8 md:p-12 text-center shadow-2xl relative overflow-hidden flex flex-col items-center justify-center min-h-[300px]", children: [_jsx("span", { className: "text-4xl mb-4", children: "\uD83D\uDEAB" }), _jsx("h3", { className: "text-md font-black text-white uppercase tracking-[0.2em] italic", children: "Turnuva \u015Eablonu Yoktur" }), _jsx("p", { className: "text-xs text-gray-400 mt-2 max-w-sm", children: "Bu etkinlik veya oyunda turnuva a\u011Fac\u0131 ya da lig \u015Fablonu kullan\u0131lmamaktad\u0131r." })] }) }));
238
+ }
239
+ const isLoL = gName.includes('league of legends') || gName === 'lol';
240
+ const teams = isLoL ? lolTeams : tournamentTeams;
241
+ const matches = isLoL ? lolMatches : tournamentMatches;
242
+ const players = isLoL ? lolPlayers : tournamentPlayers;
243
+ const renderSortHeader = (tab, key, label, center = false) => {
244
+ const currentKey = tab === 'standings' ? standingsSortKey : playersSortKey;
245
+ const currentDir = tab === 'standings' ? standingsSortDir : playersSortDir;
246
+ const handler = tab === 'standings' ? handleStandingsSort : handlePlayersSort;
247
+ const isActive = currentKey === key;
248
+ return (_jsx("th", { className: `px-3 py-3 text-[8px] font-black uppercase tracking-widest italic select-none ${center ? 'text-center' : 'text-left'}`, children: _jsxs("button", { onClick: () => handler(key), className: `inline-flex items-center gap-1 hover:text-white transition-all ${isActive ? 'text-amber-500 font-black' : 'text-gray-400'} ${center ? 'justify-center w-full' : ''}`, children: [_jsx("span", { children: label }), isActive && (currentDir === 'asc' ? _jsx(ArrowUp, { size: 8, className: "shrink-0" }) : _jsx(ArrowDown, { size: 8, className: "shrink-0" }))] }) }));
249
+ };
250
+ return (_jsxs("div", { className: "mx-auto px-4 space-y-8 animate-in zoom-in-95 duration-500 relative", children: [_jsx("div", { className: "absolute inset-0 bg-[linear-gradient(to_right,#80808008_1px,transparent_1px),linear-gradient(to_bottom,#80808008_1px,transparent_1px)] bg-[size:32px_32px] pointer-events-none -z-20" }), _jsxs("div", { className: "relative aspect-[21/8] md:aspect-[21/6] rounded-[32px] overflow-hidden border-2 border-amber-500/40 shadow-[0_0_40px_rgba(245,158,11,0.15)] group", children: [_jsx("img", { src: event.image || event.thumbnail, className: "w-full h-full object-cover saturate-120 group-hover:scale-105 transition-transform duration-1000", alt: event.name }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-[#050508] via-[#050508]/40 to-transparent" }), _jsx("div", { className: "absolute top-4 left-4 w-4 h-4 border-t-2 border-l-2 border-amber-500" }), _jsx("div", { className: "absolute top-4 right-4 w-4 h-4 border-t-2 border-r-2 border-amber-500" }), _jsx("div", { className: "absolute bottom-4 left-4 w-4 h-4 border-b-2 border-l-2 border-amber-500" }), _jsx("div", { className: "absolute bottom-4 right-4 w-4 h-4 border-b-2 border-r-2 border-amber-500" }), _jsxs("div", { className: "absolute inset-0 p-6 md:p-10 flex flex-col justify-end gap-3", children: [_jsxs("div", { className: "flex flex-wrap gap-2 mb-1", children: [_jsxs("span", { className: "bg-gradient-to-r from-amber-500 to-yellow-600 text-black px-4 py-1.5 rounded-xl text-[9px] font-black uppercase tracking-widest shadow-[0_0_15px_rgba(245,158,11,0.4)] flex items-center gap-1.5", children: [_jsx(Trophy, { size: 10 }), " TURNUVA ETK\u0130NL\u0130\u011E\u0130"] }), _jsx("span", { className: "bg-black/60 backdrop-blur-md text-amber-500 px-3 py-1 rounded-xl text-[8px] font-black uppercase tracking-widest border border-amber-500/20", children: event.gameName })] }), _jsx("h1", { className: "text-4xl md:text-6xl font-black text-white uppercase tracking-tighter italic drop-shadow-[0_4px_8px_rgba(0,0,0,0.8)] text-shadow-glow", children: event.name }), _jsxs("div", { className: "flex flex-wrap items-center gap-6 mt-1 text-gray-300", children: [_jsxs("div", { className: "flex items-center gap-2 shrink-0 bg-black/40 px-3 py-1.5 rounded-xl border border-white/5", children: [_jsx(Calendar, { className: "text-amber-500", size: 14 }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-wider", children: event.date })] }), _jsxs("div", { className: "flex items-center gap-2 shrink-0 bg-black/40 px-3 py-1.5 rounded-xl border border-white/5", children: [_jsx(MapPin, { className: "text-amber-500", size: 14 }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-wider", children: event.location || 'Discord Arenası' })] })] })] })] }), _jsxs("div", { className: "bg-gradient-to-r from-amber-500/10 via-yellow-500/5 to-transparent rounded-[32px] border border-amber-500/20 p-6 flex flex-col md:flex-row items-center justify-between gap-6 shadow-xl relative overflow-hidden", children: [_jsx("div", { className: "absolute -right-16 -bottom-16 w-48 h-48 bg-amber-500/5 blur-[50px] rounded-full" }), _jsxs("div", { className: "flex items-center gap-5 relative z-10", children: [_jsx("div", { className: "p-4 bg-amber-500/20 rounded-2xl border border-amber-500/30 text-amber-400 animate-bounce", children: _jsx(Trophy, { size: 32 }) }), _jsxs("div", { children: [_jsx("span", { className: "text-[9px] font-black text-amber-500 uppercase tracking-[0.2em]", children: "ETK\u0130NL\u0130K \u00D6D\u00DCL HAVUZU" }), _jsx("h2", { className: "text-2xl font-black text-white uppercase tracking-tight mt-0.5", children: "15,000 ODP + Discord Sponsor Rol\u00FC" })] })] }), _jsxs("div", { className: "flex gap-3 relative z-10 w-full md:w-auto", children: [_jsxs("div", { className: "bg-[#0b0b12] border border-amber-500/30 rounded-2xl p-4 text-center flex-1 md:flex-initial min-w-[100px] shadow-lg", children: [_jsx("span", { className: "block text-[8px] font-black text-amber-500 uppercase tracking-widest", children: "\uD83C\uDFC6 1. B\u0130R\u0130NC\u0130" }), _jsx("span", { className: "text-sm font-black text-white block mt-1", children: "8,000 ODP" })] }), _jsxs("div", { className: "bg-[#0b0b12] border border-white/10 rounded-2xl p-4 text-center flex-1 md:flex-initial min-w-[100px]", children: [_jsx("span", { className: "block text-[8px] font-black text-gray-400 uppercase tracking-widest", children: "\uD83E\uDD48 2. \u0130K\u0130NC\u0130" }), _jsx("span", { className: "text-sm font-black text-white block mt-1", children: "4,000 ODP" })] }), _jsxs("div", { className: "bg-[#0b0b12] border border-white/10 rounded-2xl p-4 text-center flex-1 md:flex-initial min-w-[100px]", children: [_jsx("span", { className: "block text-[8px] font-black text-amber-700 uppercase tracking-widest", children: "\uD83E\uDD49 3. \u00DC\u00C7\u00DCNC\u00DC" }), _jsx("span", { className: "text-sm font-black text-white block mt-1", children: "3,000 ODP" })] })] })] }), _jsx("div", { className: "flex flex-wrap gap-2 border-b border-white/5 pb-4", children: [
251
+ { id: 'bracket', label: 'Turnuva Ağacı (Düello)', icon: _jsx(Trophy, { size: 12 }) },
252
+ { id: 'fixtures', label: 'Fikstür & Maçlar', icon: _jsx(Calendar, { size: 12 }) },
253
+ { id: 'standings', label: 'Puan Durumu', icon: _jsx(List, { size: 12 }) },
254
+ { id: 'players', label: 'Oyuncu İstatistikleri', icon: _jsx(Users, { size: 12 }) },
255
+ ].map((tab) => (_jsxs("button", { onClick: () => setActiveSubTab(tab.id), className: `flex items-center gap-2 px-4 py-2 rounded-xl text-[10px] font-black uppercase tracking-wider transition-all ${activeSubTab === tab.id
256
+ ? 'bg-amber-500 text-black shadow-[0_0_15px_rgba(245,158,11,0.3)]'
257
+ : 'bg-white/5 text-gray-400 hover:bg-white/10 hover:text-white'}`, children: [tab.icon, _jsx("span", { children: tab.label })] }, tab.id))) }), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: [_jsxs("div", { className: "lg:col-span-3 space-y-6", children: [activeSubTab === 'bracket' && (
258
+ /* Bracket view */
259
+ _jsxs("div", { className: "bg-armoyu-card-bg border border-white/5 rounded-[32px] p-6 md:p-8 space-y-6 shadow-2xl relative overflow-hidden", children: [_jsx("div", { className: "absolute top-0 right-0 w-32 h-32 bg-amber-500/5 blur-[50px] -mr-10 -mt-10 rounded-full" }), _jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.3em] italic border-l-4 border-amber-500 pl-4", children: "D\u00DCELLO E\u015ELE\u015EMELER\u0130 (TURNUVA A\u011EACI)" }), _jsxs("div", { className: "flex flex-col lg:flex-row items-center justify-between gap-8 py-8 overflow-x-auto min-w-full", children: [_jsxs("div", { className: "flex flex-col gap-6 w-full lg:w-60 shrink-0", children: [_jsx("div", { className: "text-[8px] font-black text-gray-400 uppercase tracking-[0.25em] text-center border-b border-white/5 pb-2", children: "\u00C7EYREK F\u0130NAL" }), _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "bg-black/40 border border-white/10 p-3.5 rounded-2xl space-y-2 relative", children: [_jsxs("div", { className: "flex justify-between items-center text-[10px] font-black text-white", children: [_jsx("span", { className: "truncate", children: "Team Alpha" }), _jsx("span", { className: "text-amber-500", children: "2" })] }), _jsxs("div", { className: "flex justify-between items-center text-[10px] font-black text-gray-500", children: [_jsx("span", { className: "truncate", children: "Team Beta" }), _jsx("span", { children: "1" })] })] }), _jsxs("div", { className: "bg-black/40 border border-white/10 p-3.5 rounded-2xl space-y-2", children: [_jsxs("div", { className: "flex justify-between items-center text-[10px] font-black text-gray-500", children: [_jsx("span", { className: "truncate", children: "Team Delta" }), _jsx("span", { children: "0" })] }), _jsxs("div", { className: "flex justify-between items-center text-[10px] font-black text-white", children: [_jsx("span", { className: "truncate", children: "Team Gamma" }), _jsx("span", { className: "text-amber-500", children: "2" })] })] })] })] }), _jsxs("div", { className: "flex flex-col gap-12 w-full lg:w-60 shrink-0", children: [_jsx("div", { className: "text-[8px] font-black text-gray-400 uppercase tracking-[0.25em] text-center border-b border-white/5 pb-2", children: "YARI F\u0130NAL" }), _jsx("div", { className: "space-y-8", children: _jsxs("div", { className: "bg-black/40 border border-amber-500/20 p-3.5 rounded-2xl space-y-2 shadow-lg shadow-amber-500/5", children: [_jsxs("div", { className: "flex justify-between items-center text-[10px] font-black text-white", children: [_jsx("span", { className: "truncate", children: "Team Alpha" }), _jsx("span", { className: "text-amber-500", children: "3" })] }), _jsxs("div", { className: "flex justify-between items-center text-[10px] font-black text-gray-400", children: [_jsx("span", { className: "truncate", children: "Team Gamma" }), _jsx("span", { children: "2" })] })] }) })] }), _jsxs("div", { className: "flex flex-col gap-6 w-full lg:w-60 shrink-0 items-center justify-center", children: [_jsx("div", { className: "text-[8px] font-black text-amber-500 uppercase tracking-[0.25em] text-center border-b border-amber-500/20 pb-2 w-full", children: "B\u00DCY\u00DCK F\u0130NAL" }), _jsxs("div", { className: "bg-gradient-to-b from-amber-500/20 to-black/80 border-2 border-amber-500 p-6 rounded-3xl text-center w-full shadow-2xl shadow-amber-500/15 relative overflow-hidden", children: [_jsx(Crown, { className: "text-amber-500 mx-auto mb-2 animate-bounce", size: 36 }), _jsx("h4", { className: "text-[9px] font-black text-white uppercase tracking-widest", children: "\u015EAMP\u0130YONLUK MA\u00C7I" }), _jsxs("div", { className: "mt-4 space-y-1.5 text-center", children: [_jsx("span", { className: "block text-xs font-black text-amber-500 uppercase", children: "Team Alpha" }), _jsx("span", { className: "text-[8px] font-black text-gray-400 uppercase", children: "VS" }), _jsx("span", { className: "block text-[10px] font-black text-gray-300", children: "TBD (Yar\u0131 Final 2 Kazanan\u0131)" })] })] })] })] })] })), activeSubTab === 'fixtures' && (
260
+ /* Fixtures and Results view */
261
+ _jsxs("div", { className: "bg-armoyu-card-bg border border-white/5 rounded-[32px] p-6 md:p-8 space-y-6 shadow-2xl relative overflow-hidden", children: [_jsx("div", { className: "absolute top-0 right-0 w-32 h-32 bg-amber-500/5 blur-[50px] -mr-10 -mt-10 rounded-full" }), _jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-l-4 border-amber-500 pl-4", children: [_jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.3em] italic", children: "MA\u00C7 PROGRAMI VE SONU\u00C7LAR" }), _jsxs("div", { className: "flex items-center gap-1.5 bg-black/40 p-1 rounded-xl border border-white/5 self-start", children: [_jsx("button", { onClick: () => setSelectedWeek(null), className: `px-3 py-1.5 rounded-lg text-[9px] font-black uppercase transition-all ${selectedWeek === null
262
+ ? 'bg-amber-500 text-black font-bold'
263
+ : 'text-gray-400 hover:text-white hover:bg-white/5'}`, children: "T\u00DCM\u00DC" }), [1, 2, 3].map((weekNum) => (_jsxs("button", { onClick: () => setSelectedWeek(weekNum), className: `px-3 py-1.5 rounded-lg text-[9px] font-black uppercase transition-all ${selectedWeek === weekNum
264
+ ? 'bg-amber-500 text-black font-bold'
265
+ : 'text-gray-400 hover:text-white hover:bg-white/5'}`, children: [weekNum, ". Hafta"] }, weekNum)))] })] }), _jsx("div", { className: "space-y-3", children: matches.filter(m => selectedWeek === null || m.week === selectedWeek).map((match) => (_jsxs("div", { className: "bg-black/20 hover:bg-black/35 transition-all border border-white/5 rounded-2xl p-4 flex flex-col md:flex-row items-center justify-between gap-4", children: [_jsxs("div", { className: "flex items-center gap-2 font-mono text-[9px] text-gray-500 uppercase", children: [_jsx(Clock, { size: 12, className: "text-amber-500 shrink-0" }), _jsx("span", { children: match.date })] }), _jsxs("div", { className: "flex items-center justify-center gap-6 flex-1 w-full max-w-lg", children: [_jsxs("div", { className: "flex items-center justify-end gap-3 flex-1 text-right min-w-0", children: [_jsx("span", { className: "text-xs font-black text-white uppercase truncate", children: match.homeTeam }), _jsx("img", { src: match.homeLogo, alt: "", className: "w-8 h-8 rounded-lg border border-white/10 shrink-0 bg-white/5 object-cover" })] }), _jsx("div", { className: "flex items-center gap-2 bg-black/40 px-4 py-1.5 rounded-xl border border-white/5 font-mono text-sm font-black shrink-0", children: match.status === 'upcoming' ? (_jsx("span", { className: "text-xs text-gray-500 uppercase px-1", children: "VS" })) : (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("span", { className: match.homeScore > match.awayScore ? 'text-amber-400' : 'text-white', children: match.homeScore }), _jsx("span", { className: "text-gray-600 font-normal", children: "-" }), _jsx("span", { className: match.awayScore > match.homeScore ? 'text-amber-400' : 'text-white', children: match.awayScore })] })) }), _jsxs("div", { className: "flex items-center gap-3 flex-1 text-left min-w-0", children: [_jsx("img", { src: match.awayLogo, alt: "", className: "w-8 h-8 rounded-lg border border-white/10 shrink-0 bg-white/5 object-cover" }), _jsx("span", { className: "text-xs font-black text-white uppercase truncate", children: match.awayTeam })] })] }), _jsxs("div", { className: "shrink-0", children: [match.status === 'played' && (_jsx("span", { className: "bg-white/5 text-gray-400 px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest border border-white/5", children: "Oynand\u0131" })), match.status === 'live' && (_jsxs("span", { className: "bg-red-500/20 text-red-500 px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest border border-red-500/30 animate-pulse flex items-center gap-1", children: [_jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-red-500" }), " Canl\u0131"] })), match.status === 'upcoming' && (_jsx("span", { className: "bg-amber-500/10 text-amber-400 px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest border border-amber-500/20", children: "Gelecek Ma\u00E7" }))] })] }, match.id))) })] })), activeSubTab === 'standings' && (
266
+ /* Football League Standings View */
267
+ _jsxs("div", { className: "bg-armoyu-card-bg border border-white/5 rounded-[32px] p-6 md:p-8 space-y-6 shadow-2xl relative overflow-hidden", children: [_jsx("div", { className: "absolute top-0 right-0 w-32 h-32 bg-amber-500/5 blur-[50px] -mr-10 -mt-10 rounded-full" }), _jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.3em] italic border-l-4 border-amber-500 pl-4", children: "ETK\u0130NL\u0130K PUAN DURUMU" }), _jsx("div", { className: "overflow-x-auto", children: _jsxs("table", { className: "w-full text-left border-collapse min-w-[600px]", children: [_jsx("thead", { children: isLoL ? (_jsxs("tr", { className: "border-b border-white/5 bg-white/5 text-[8px] font-black text-gray-400 uppercase tracking-widest italic", children: [_jsx("th", { className: "px-4 py-3 text-center w-12 select-none text-gray-500", children: "S\u0131ra" }), renderSortHeader('standings', 'name', 'Takım'), renderSortHeader('standings', 'played', 'OM', true), renderSortHeader('standings', 'won', 'G', true), renderSortHeader('standings', 'lost', 'M', true), renderSortHeader('standings', 'winRate', 'WR%', true), renderSortHeader('standings', 'kda', 'KDA', true), renderSortHeader('standings', 'fb', 'FB', true), renderSortHeader('standings', 'streak', 'Seri', true)] })) : (_jsxs("tr", { className: "border-b border-white/5 bg-white/5 text-[8px] font-black text-gray-400 uppercase tracking-widest italic", children: [_jsx("th", { className: "px-4 py-3 text-center w-12 select-none text-gray-500", children: "S\u0131ra" }), renderSortHeader('standings', 'name', 'Takım'), renderSortHeader('standings', 'played', 'OM', true), renderSortHeader('standings', 'won', 'G', true), renderSortHeader('standings', 'drawn', 'B', true), renderSortHeader('standings', 'lost', 'M', true), renderSortHeader('standings', 'gf', 'AG', true), renderSortHeader('standings', 'ga', 'YG', true), renderSortHeader('standings', 'gd', 'AV', true), renderSortHeader('standings', 'points', 'Puan', true)] })) }), _jsx("tbody", { className: "divide-y divide-white/5", children: [...teams]
268
+ .sort((a, b) => {
269
+ let valA = a[standingsSortKey] ?? 0;
270
+ let valB = b[standingsSortKey] ?? 0;
271
+ if (typeof valA === 'string' && typeof valB === 'string') {
272
+ return standingsSortDir === 'asc'
273
+ ? valA.localeCompare(valB)
274
+ : valB.localeCompare(valA);
275
+ }
276
+ return standingsSortDir === 'asc'
277
+ ? Number(valA) - Number(valB)
278
+ : Number(valB) - Number(valA);
279
+ })
280
+ .map((team, idx) => {
281
+ const tAny = team;
282
+ return (_jsxs("tr", { className: "hover:bg-white/5 transition-all text-xs font-black text-white", children: [_jsx("td", { className: "px-4 py-3 text-center", children: _jsx("span", { className: `inline-flex items-center justify-center w-6 h-6 rounded-lg text-[10px] font-black ${idx === 0
283
+ ? 'bg-amber-500 text-black shadow-[0_0_10px_rgba(245,158,11,0.5)]'
284
+ : idx === 1
285
+ ? 'bg-gray-300 text-black'
286
+ : idx === 2
287
+ ? 'bg-amber-800 text-white border border-amber-700/50'
288
+ : 'bg-black/40 text-gray-400 border border-white/5'}`, children: idx + 1 }) }), _jsx("td", { className: "px-4 py-3", children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("img", { src: team.logo, alt: "", className: "w-8 h-8 rounded-lg border border-white/10 p-0.5 bg-white/5 object-cover" }), _jsx("span", { className: "uppercase tracking-tight", children: team.name })] }) }), isLoL ? (_jsxs(_Fragment, { children: [_jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.played }), _jsx("td", { className: "px-3 py-3 text-center text-emerald-400", children: tAny.won }), _jsx("td", { className: "px-3 py-3 text-center text-red-400", children: tAny.lost }), _jsxs("td", { className: "px-3 py-3 text-center text-amber-400 font-mono", children: ["%", tAny.winRate] }), _jsx("td", { className: "px-3 py-3 text-center text-gray-300 font-mono", children: tAny.kda }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.fb }), _jsx("td", { className: "px-4 py-3 text-center font-bold text-amber-500", children: tAny.streak })] })) : (_jsxs(_Fragment, { children: [_jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.played }), _jsx("td", { className: "px-3 py-3 text-center text-emerald-400", children: tAny.won }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.drawn }), _jsx("td", { className: "px-3 py-3 text-center text-red-400", children: tAny.lost }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.gf }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.ga }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: tAny.gd > 0 ? `+${tAny.gd}` : tAny.gd }), _jsx("td", { className: "px-4 py-3 text-center font-black text-amber-400 bg-amber-500/5", children: tAny.points })] }))] }, team.id));
289
+ }) })] }) })] })), activeSubTab === 'players' && (
290
+ /* Player Statistics View with Rating Formula and Medals */
291
+ _jsxs("div", { className: "bg-armoyu-card-bg border border-white/5 rounded-[32px] p-6 md:p-8 space-y-6 shadow-2xl relative overflow-hidden", children: [_jsx("div", { className: "absolute top-0 right-0 w-32 h-32 bg-amber-500/5 blur-[50px] -mr-10 -mt-10 rounded-full" }), _jsx("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-l-4 border-amber-500 pl-4", children: _jsxs("div", { children: [_jsx("h3", { className: "text-[11px] font-black text-white uppercase tracking-[0.3em] italic", children: "OYUNCU \u0130STAT\u0130ST\u0130KLER\u0130 & SIRALAMA" }), _jsx("p", { className: "text-[8px] font-bold text-gray-500 uppercase tracking-wider mt-1", children: isLoL
292
+ ? 'Yetenek Puanı = (Kills + Assists) / Deaths formülü (KDA) ile hesaplanır.'
293
+ : 'Yetenek Puanı = (Gol + Asist) / (Kırmızı Kart + 1) formülü ile hesaplanır.' })] }) }), _jsx("div", { className: "overflow-x-auto", children: _jsxs("table", { className: "w-full text-left border-collapse min-w-[600px]", children: [_jsx("thead", { children: isLoL ? (_jsxs("tr", { className: "border-b border-white/5 bg-white/5 text-[8px] font-black text-gray-400 uppercase tracking-widest italic", children: [_jsx("th", { className: "px-4 py-3 text-center w-12 select-none text-gray-500", children: "S\u0131ra" }), renderSortHeader('players', 'name', 'Oyuncu'), renderSortHeader('players', 'team', 'Takım'), renderSortHeader('players', 'role', 'Rol', true), renderSortHeader('players', 'kills', 'K', true), renderSortHeader('players', 'deaths', 'D', true), renderSortHeader('players', 'assists', 'A', true), renderSortHeader('players', 'csMin', 'CS/DK', true), renderSortHeader('players', 'kp', 'KP%', true), renderSortHeader('players', 'champion', 'Şampiyon'), renderSortHeader('players', 'rating', 'KDA', true)] })) : (_jsxs("tr", { className: "border-b border-white/5 bg-white/5 text-[8px] font-black text-gray-400 uppercase tracking-widest italic", children: [_jsx("th", { className: "px-4 py-3 text-center w-12 select-none text-gray-500", children: "S\u0131ra" }), renderSortHeader('players', 'name', 'Oyuncu'), renderSortHeader('players', 'team', 'Takım'), renderSortHeader('players', 'goals', 'Gol', true), renderSortHeader('players', 'assists', 'Asist', true), renderSortHeader('players', 'yellowCards', 'Sarı', true), renderSortHeader('players', 'redCards', 'Kırmızı', true), renderSortHeader('players', 'rating', 'Yetenek Puanı', true)] })) }), _jsx("tbody", { className: "divide-y divide-white/5", children: players
294
+ .map(p => ({
295
+ ...p,
296
+ rating: isLoL
297
+ ? Number(((p.kills + p.assists) / Math.max(1, p.deaths)).toFixed(2))
298
+ : Number(((p.goals + p.assists) / (p.redCards + 1)).toFixed(2))
299
+ }))
300
+ .sort((a, b) => {
301
+ let valA = a[playersSortKey] ?? 0;
302
+ let valB = b[playersSortKey] ?? 0;
303
+ if (typeof valA === 'string' && typeof valB === 'string') {
304
+ return playersSortDir === 'asc'
305
+ ? valA.localeCompare(valB)
306
+ : valB.localeCompare(valA);
307
+ }
308
+ return playersSortDir === 'asc'
309
+ ? Number(valA) - Number(valB)
310
+ : Number(valB) - Number(valA);
311
+ })
312
+ .map((player, idx) => {
313
+ const pAny = player;
314
+ return (_jsxs("tr", { className: `hover:bg-white/5 transition-all text-xs font-black text-white ${idx === 0
315
+ ? 'bg-amber-500/5 shadow-[inset_0_0_20px_rgba(245,158,11,0.05)] animate-pulse'
316
+ : ''}`, children: [_jsx("td", { className: "px-4 py-3 text-center", children: idx === 0 ? (_jsx("span", { className: "inline-block text-lg", title: "Alt\u0131n Ayakkab\u0131 / Lider", children: "\uD83D\uDC51" })) : idx === 1 ? (_jsx("span", { className: "inline-block text-lg", title: "G\u00FCm\u00FC\u015F", children: "\uD83E\uDD48" })) : idx === 2 ? (_jsx("span", { className: "inline-block text-lg", title: "Bronz", children: "\uD83E\uDD49" })) : (_jsx("span", { className: "text-gray-500 font-bold", children: idx + 1 })) }), _jsx("td", { className: "px-4 py-3", children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("img", { src: player.avatar, alt: "", className: "w-8 h-8 rounded-lg border border-white/10 object-cover" }), _jsx("span", { className: "uppercase tracking-tight", children: player.name })] }) }), _jsx("td", { className: "px-4 py-3", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: player.teamLogo, alt: "", className: "w-5 h-5 rounded-md border border-white/10 object-cover" }), _jsx("span", { className: "text-gray-400 uppercase text-[10px] tracking-tight", children: player.team })] }) }), isLoL ? (_jsxs(_Fragment, { children: [_jsx("td", { className: "px-3 py-3 text-center", children: _jsx("span", { className: `px-2 py-0.5 rounded text-[9px] font-bold ${pAny.role === 'MID' ? 'bg-purple-500/10 text-purple-400 border border-purple-500/20' :
317
+ pAny.role === 'ADC' ? 'bg-blue-500/10 text-blue-400 border border-blue-500/20' :
318
+ pAny.role === 'TOP' ? 'bg-red-500/10 text-red-400 border border-red-500/20' :
319
+ pAny.role === 'JUNGLE' ? 'bg-green-500/10 text-green-400 border border-green-500/20' :
320
+ 'bg-gray-500/10 text-gray-400 border border-gray-500/20'}`, children: pAny.role }) }), _jsx("td", { className: "px-3 py-3 text-center text-emerald-400 font-mono", children: pAny.kills }), _jsx("td", { className: "px-3 py-3 text-center text-red-400 font-mono", children: pAny.deaths }), _jsx("td", { className: "px-3 py-3 text-center text-blue-400 font-mono", children: pAny.assists }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400 font-mono", children: pAny.csMin }), _jsxs("td", { className: "px-3 py-3 text-center text-gray-400 font-mono", children: ["%", pAny.kp] }), _jsx("td", { className: "px-4 py-3", children: _jsx("span", { className: "text-gray-300 font-semibold", children: pAny.champion }) })] })) : (_jsxs(_Fragment, { children: [_jsx("td", { className: "px-3 py-3 text-center text-white", children: pAny.goals }), _jsx("td", { className: "px-3 py-3 text-center text-gray-400", children: pAny.assists }), _jsx("td", { className: "px-3 py-3 text-center text-yellow-500 bg-yellow-500/5", children: pAny.yellowCards }), _jsx("td", { className: "px-3 py-3 text-center text-red-500 bg-red-500/5", children: pAny.redCards })] })), _jsx("td", { className: "px-4 py-3 text-center", children: _jsx("span", { className: `inline-flex items-center justify-center px-3 py-1 rounded-full text-[10px] font-black ${idx === 0
321
+ ? 'bg-amber-500 text-black shadow-[0_0_10px_rgba(245,158,11,0.4)]'
322
+ : 'bg-black/40 text-amber-400 border border-amber-500/20'}`, children: player.rating }) })] }, player.id));
323
+ }) })] }) })] }))] }), _jsx("div", { className: "space-y-6", children: _jsxs("div", { className: "bg-[#0b0b12] border-2 border-amber-500/40 rounded-[32px] p-6 shadow-2xl space-y-6 relative overflow-hidden", children: [_jsx("div", { className: "absolute top-0 right-0 w-24 h-24 bg-amber-500/10 blur-[40px] rounded-full -mr-8 -mt-8" }), _jsx("span", { className: "text-[8px] font-black text-amber-500 bg-amber-500/10 border border-amber-500/20 px-3 py-1 rounded-full uppercase tracking-widest inline-block", children: "KAYIT A\u015EAMASI" }), _jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex justify-between items-center text-xs font-bold text-gray-400", children: [_jsx("span", { children: "Kay\u0131tl\u0131 Oyuncu" }), _jsxs("span", { children: [event.currentParticipants, " / ", event.participantLimit > 0 ? event.participantLimit : 'Sınırsız'] })] }), _jsx("div", { className: "h-2 bg-black/40 rounded-full overflow-hidden border border-white/5 p-0.5", children: _jsx("div", { className: "h-full bg-gradient-to-r from-amber-600 to-amber-400 rounded-full shadow-[0_0_10px_rgba(245,158,11,0.5)] transition-all duration-1000", style: { width: `${progressPercentage}%` } }) })] }), _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center gap-3 text-xs text-gray-300", children: [_jsx(Award, { className: "text-amber-500", size: 16 }), _jsxs("span", { children: ["Min ODP Gereksinimi: ", _jsxs("strong", { className: "text-white", children: [event.minOdp, "+"] })] })] }), _jsxs("div", { className: "flex items-center gap-3 text-xs text-gray-300", children: [_jsx(Zap, { className: "text-amber-500", size: 16 }), _jsxs("span", { children: ["Kat\u0131l\u0131mc\u0131 T\u00FCr\u00FC: ", _jsx("strong", { className: "text-white", children: getParticipantTypeLabel(event.type) })] })] })] }), event.status === 1 ? (_jsxs("button", { className: "w-full py-4 bg-gradient-to-r from-amber-500 to-yellow-600 hover:brightness-110 text-black font-black rounded-2xl text-[10px] uppercase tracking-[0.25em] transition-all shadow-[0_0_20px_rgba(245,158,11,0.2)] active:scale-95 flex items-center justify-center gap-2", children: [_jsx(Sword, { size: 14 }), " TURNUVAYA KAYDOL"] })) : (_jsxs("div", { className: "w-full py-4 bg-white/5 border border-white/10 rounded-2xl flex items-center justify-center gap-2 opacity-50", children: [_jsx(ShieldAlert, { size: 14, className: "text-gray-400" }), _jsx("span", { className: "text-[9px] font-black uppercase tracking-widest text-gray-400", children: "TURNUVA KAPANDI" })] }))] }) })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { className: "bg-armoyu-card-bg rounded-[32px] p-6 border border-white/5 shadow-2xl space-y-4", children: [_jsx("h3", { className: "text-[11px] font-black text-amber-500 uppercase tracking-[0.2em] italic border-l-4 border-amber-500 pl-4", children: "DETAYLAR & A\u00C7IKLAMA" }), _jsx("div", { className: "text-gray-300 text-xs leading-relaxed font-medium opacity-90 whitespace-pre-wrap", children: event.description || 'Turnuva detayları belirtilmedi.' })] }), _jsxs("div", { className: "bg-armoyu-card-bg rounded-[32px] p-6 border border-white/5 shadow-2xl space-y-4", children: [_jsx("h3", { className: "text-[11px] font-black text-red-500 uppercase tracking-[0.2em] italic border-l-4 border-red-500 pl-4", children: "TURNUVA KURALLARI" }), _jsx("div", { className: "text-gray-300 text-xs leading-relaxed font-medium opacity-90 whitespace-pre-wrap", children: event.rules || 'Genel rekabetçi turnuva kuralları geçerlidir.' })] })] })] }));
324
+ };
325
+ // RENDER: GAME SPECIAL VIEW (Immersive HUD matching Minecraft/CS2/ETS2)
326
+ const renderGameSpecialView = () => {
327
+ const gName = (event.gameName || '').toLowerCase();
328
+ // MINECRAFT SPECIAL LAYOUT (Green voxel style)
329
+ if (gName.includes('minecraft') || gName.includes('mc')) {
330
+ return (_jsxs("div", { className: "mx-auto px-4 space-y-8 animate-in fade-in duration-500 font-mono", children: [_jsxs("div", { className: "bg-[#3b2d1f] border-4 border-[#2d2116] p-6 rounded-none shadow-[0_0_0_4px_#5c4a37] relative overflow-hidden", children: [_jsx("div", { className: "absolute top-2 right-2 px-3 py-1 bg-green-700 text-white border-2 border-green-900 text-[10px] font-bold", children: "MINECRAFT SUNUCUSU" }), _jsxs("h1", { className: "text-2xl md:text-4xl font-bold text-yellow-400 drop-shadow-[2px_2px_0px_#000] uppercase tracking-wide", children: ["\u26CF\uFE0F ", event.name] }), _jsx("p", { className: "text-xs text-gray-300 mt-2", children: "Sunucu Bulu\u015Fmas\u0131 & Macera Etkinli\u011Fi" }), _jsxs("div", { className: "flex gap-4 mt-4 text-[10px] text-green-400", children: [_jsxs("span", { children: ["[Tarih]: ", event.date] }), _jsxs("span", { children: ["[Konum]: ", event.location || 'ARMOYU Hub'] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6", children: [_jsx("div", { className: "md:col-span-2 space-y-6", children: _jsxs("div", { className: "bg-[#2e2e2e] border-4 border-[#1c1c1c] p-6 text-xs text-gray-300 space-y-4", children: [_jsx("h3", { className: "text-yellow-400 font-bold uppercase border-b-2 border-[#1c1c1c] pb-2", children: "ETK\u0130NL\u0130K DETAYLARI" }), _jsxs("div", { className: "space-y-2", children: [_jsx("p", { children: _jsx("strong", { className: "text-white", children: "A\u00E7\u0131klama:" }) }), _jsx("p", { className: "bg-[#181818] p-3 border-2 border-[#101010] text-gray-400 whitespace-pre-wrap", children: event.description })] })] }) }), _jsxs("div", { className: "bg-[#382b26] border-4 border-[#1f1714] p-6 text-center space-y-4", children: [_jsx("span", { className: "text-yellow-400 text-xs font-bold block", children: "KATILIM DURUMU" }), _jsxs("div", { className: "bg-black/60 p-4 border-2 border-[#1f1714] text-xs", children: [_jsx("span", { className: "block text-gray-400 text-[10px]", children: "OYUNCU SAYISI" }), _jsxs("span", { className: "text-xl font-bold text-white mt-1 block", children: [event.currentParticipants, " / ", event.participantLimit > 0 ? event.participantLimit : 'Sınırsız'] })] }), _jsx("button", { className: "w-full py-3 bg-[#4c8c2b] hover:bg-[#3f7324] border-b-4 border-[#284e18] text-white font-bold text-xs uppercase tracking-widest transition-all active:translate-y-1 active:border-b-0", children: "ETK\u0130NL\u0130\u011EE KATIL" })] })] })] }));
331
+ }
332
+ // CS2 SPECIAL LAYOUT (Military Orange & Radar)
333
+ if (gName.includes('counter-strike') || gName.includes('cs')) {
334
+ return (_jsxs("div", { className: "mx-auto px-4 space-y-8 animate-in fade-in duration-500", children: [_jsxs("div", { className: "bg-zinc-950 border border-amber-500/40 p-8 rounded-3xl relative overflow-hidden shadow-2xl", children: [_jsx("div", { className: "absolute top-0 left-0 w-2 h-full bg-amber-500" }), _jsxs("div", { className: "flex flex-col md:flex-row md:items-center justify-between gap-6", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex items-center gap-2 mb-2", children: [_jsx("span", { className: "bg-amber-500 text-black px-2 py-0.5 rounded text-[8px] font-black tracking-widest", children: "TAC_EVENT" }), _jsx("span", { className: "text-gray-400 text-[9px] font-bold", children: "MATCHMAKING ACTIVE" })] }), _jsxs("h1", { className: "text-3xl md:text-5xl font-black text-white tracking-tighter uppercase italic text-shadow-glow", children: ["\uD83D\uDCA5 ", event.name] }), _jsxs("p", { className: "text-xs text-gray-400 mt-2 font-mono", children: ["BOMBSITE LOC: ", event.location || 'Discord Arenası'] })] }), _jsxs("div", { className: "bg-zinc-900 border border-white/5 px-6 py-4 rounded-2xl text-right", children: [_jsx("span", { className: "text-[8px] font-black text-gray-500 block uppercase", children: "MATCH_START" }), _jsx("span", { className: "text-sm font-black text-amber-500 block mt-1", children: event.date })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6", children: [_jsxs("div", { className: "md:col-span-2 space-y-6", children: [_jsxs("div", { className: "bg-zinc-900/60 border border-white/5 rounded-3xl p-6 space-y-4", children: [_jsx("h3", { className: "text-xs font-black text-amber-500 tracking-wider uppercase border-l-4 border-amber-500 pl-3", children: "TAKTIK TAL\u0130MATLAR (A\u00C7IKLAMA)" }), _jsx("p", { className: "text-xs text-gray-300 leading-relaxed whitespace-pre-wrap", children: event.description })] }), _jsxs("div", { className: "bg-zinc-900/60 border border-white/5 rounded-3xl p-6 space-y-4", children: [_jsx("h3", { className: "text-xs font-black text-red-500 tracking-wider uppercase border-l-4 border-red-500 pl-3", children: "ANGARYA KURALLARI" }), _jsx("p", { className: "text-xs text-gray-300 leading-relaxed whitespace-pre-wrap", children: event.rules })] })] }), _jsxs("div", { className: "bg-zinc-950 border border-white/5 rounded-3xl p-6 space-y-6", children: [_jsxs("div", { className: "text-center pb-4 border-b border-white/5", children: [_jsx("span", { className: "text-[9px] font-black text-gray-500 block uppercase", children: "LOBBY CAPACITY" }), _jsxs("span", { className: "text-2xl font-black text-white mt-1 block", children: [event.currentParticipants, " / ", event.participantLimit > 0 ? event.participantLimit : 'Sınırsız'] })] }), _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex justify-between items-center text-xs font-bold", children: [_jsx("span", { className: "text-gray-400", children: "Min ODP:" }), _jsx("span", { className: "text-amber-500", children: event.minOdp })] }), _jsxs("div", { className: "flex justify-between items-center text-xs font-bold", children: [_jsx("span", { className: "text-gray-400", children: "T\u00FCr:" }), _jsx("span", { className: "text-white", children: getParticipantTypeLabel(event.type) })] })] }), _jsx("button", { className: "w-full py-4 bg-amber-500 hover:bg-amber-600 text-black font-black rounded-2xl text-[10px] uppercase tracking-widest shadow-lg shadow-amber-500/10 active:scale-95 transition-all", children: "DEPLOY TO SERVER" })] })] })] }));
335
+ }
336
+ // RACING / ETS2 SPECIAL LAYOUT (Asphalt black & hazard stripes)
337
+ return (_jsxs("div", { className: "mx-auto px-4 space-y-8 animate-in fade-in duration-500", children: [_jsxs("div", { className: "bg-neutral-900 border-b-8 border-yellow-500 p-8 rounded-3xl shadow-2xl relative overflow-hidden", children: [_jsx("div", { className: "absolute inset-0 bg-repeat bg-[linear-gradient(45deg,#000_25%,transparent_25%,transparent_50%,#000_50%,#000_75%,transparent_75%,transparent)] bg-[size:10px_10px] opacity-5 pointer-events-none" }), _jsxs("div", { className: "flex flex-col md:flex-row md:items-center justify-between gap-6 relative z-10", children: [_jsxs("div", { children: [_jsx("span", { className: "px-3 py-1 bg-yellow-500 text-black text-[9px] font-black uppercase rounded-lg tracking-widest inline-block mb-3", children: "ETS 2 SEFER G\u00D6REV\u0130" }), _jsxs("h1", { className: "text-3xl md:text-5xl font-black text-white uppercase italic tracking-tighter", children: ["\uD83D\uDE9A ", event.name] }), _jsxs("div", { className: "flex gap-4 mt-3 text-xs text-gray-400 font-mono", children: [_jsxs("span", { children: ["[Ba\u015Flang\u0131\u00E7]: ", event.location || 'Duisburg'] }), _jsxs("span", { children: ["[Tarih]: ", event.date] })] })] }), _jsxs("div", { className: "w-24 h-24 rounded-full border-4 border-yellow-500/20 border-t-yellow-500 flex flex-col items-center justify-center text-center bg-black/40", children: [_jsx("span", { className: "text-[7px] text-gray-500 font-bold uppercase", children: "SPEED" }), _jsx("span", { className: "text-md font-black text-white font-mono", children: "90" }), _jsx("span", { className: "text-[7px] text-yellow-500 font-bold uppercase", children: "KM/S" })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6", children: [_jsx("div", { className: "md:col-span-2 space-y-6", children: _jsxs("div", { className: "bg-neutral-900/60 border border-white/5 rounded-3xl p-6 space-y-4", children: [_jsx("h3", { className: "text-xs font-black text-yellow-500 tracking-wider uppercase border-l-4 border-yellow-500 pl-3", children: "KONVOY ROTASI VE DETAYLARI" }), _jsx("p", { className: "text-xs text-gray-300 leading-relaxed whitespace-pre-wrap", children: event.description })] }) }), _jsxs("div", { className: "bg-neutral-950 border border-white/5 rounded-3xl p-6 space-y-6", children: [_jsxs("div", { className: "text-center pb-4 border-b border-white/5", children: [_jsx("span", { className: "text-[9px] font-black text-gray-500 block uppercase", children: "KONVOY KAPAS\u0130TES\u0130" }), _jsxs("span", { className: "text-2xl font-black text-white mt-1 block", children: [event.currentParticipants, " / ", event.participantLimit > 0 ? event.participantLimit : 'Sınırsız'] })] }), _jsx("button", { className: "w-full py-4 bg-yellow-500 hover:bg-yellow-600 text-black font-black rounded-2xl text-[10px] uppercase tracking-widest transition-all active:scale-95 shadow-lg shadow-yellow-500/10", children: "TELS\u0130ZE BA\u011ELAN & KATIL" })] })] })] }));
338
+ };
339
+ return (_jsxs("div", { className: "animate-in fade-in slide-in-from-bottom-4 duration-700 pb-10 relative", children: [_jsxs("div", { className: "fixed inset-0 pointer-events-none overflow-hidden -z-10", children: [_jsx("div", { className: "absolute top-[-10%] left-[-10%] w-[40%] h-[40%] bg-armoyu-primary/5 blur-[100px] rounded-full" }), _jsx("div", { className: "absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] bg-indigo-600/5 blur-[100px] rounded-full" })] }), _jsx(PageWidth, { width: "max-w-[1280px]" }), _jsx("div", { className: "mx-auto mb-6 px-4", children: _jsxs("button", { onClick: onBack, className: "group flex items-center gap-3 text-armoyu-text-muted hover:text-white transition-all bg-white/5 hover:bg-white/10 px-5 py-2.5 rounded-2xl border border-white/5", children: [_jsx(ChevronLeft, { size: 18, className: "group-hover:-translate-x-1 transition-transform" }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-widest", children: "Geri D\u00F6n" })] }) }), activeStyle === 'standard' && renderStandardView(), activeStyle === 'tournament' && renderTournamentView(), activeStyle === 'game_special' && renderGameSpecialView(), _jsx("div", { className: "max-w-[1280px] mx-auto px-4 mt-8", children: _jsxs("div", { className: "bg-armoyu-card-bg rounded-[32px] p-6 md:p-8 border border-white/5 shadow-2xl space-y-6", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx("h3", { className: "text-[12px] font-black text-white uppercase tracking-[0.3em] italic border-l-4 border-armoyu-primary pl-4", children: "KATILIMCILAR" }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsxs("div", { className: "hidden sm:flex items-center gap-2 px-3 py-1.5 bg-armoyu-primary/10 rounded-xl border border-armoyu-primary/20 text-armoyu-primary text-[8px] font-black uppercase tracking-widest italic", children: [_jsx(Users, { size: 12 }), participants.individuals.length + participants.groups.length, " KATILIM"] }), _jsxs("div", { className: "flex items-center gap-1 bg-black/40 p-1 rounded-xl border border-white/5 scale-90", children: [_jsx("button", { onClick: () => setViewMode('grid'), className: `p-1.5 rounded-lg transition-all ${viewMode === 'grid' ? 'bg-armoyu-primary text-white shadow-lg' : 'text-armoyu-text-muted'}`, children: _jsx(LayoutGrid, { size: 14 }) }), _jsx("button", { onClick: () => setViewMode('table'), className: `p-1.5 rounded-lg transition-all ${viewMode === 'table' ? 'bg-armoyu-primary text-white shadow-lg' : 'text-armoyu-text-muted'}`, children: _jsx(List, { size: 14 }) })] })] })] }), _jsxs("div", { className: "space-y-12", children: [participants.individuals.length > 0 && (_jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-[8px] font-black text-armoyu-text-muted uppercase tracking-[0.4em] opacity-60", children: "OYUNCULAR" }), viewMode === 'grid' ? (_jsx("div", { className: "grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-10 gap-3", children: participants.individuals.map((p) => (_jsxs("div", { onClick: () => router.push(`/oyuncu/${p.username}`), className: "flex flex-col items-center gap-2 p-3 bg-white/5 rounded-2xl border border-white/5 hover:border-armoyu-primary/30 transition-all group text-center cursor-pointer active:scale-95", children: [_jsx("img", { src: p.avatar, className: "w-10 h-10 rounded-xl border border-white/5", alt: "" }), _jsx("span", { className: "text-[9px] font-black text-armoyu-text uppercase tracking-tighter truncate w-full group-hover:text-armoyu-primary transition-colors", children: p.name || p.username })] }, p.id))) })) : (_jsx("div", { className: "bg-black/20 rounded-2xl border border-white/5 overflow-hidden shadow-xl", children: _jsxs("table", { className: "w-full text-left", children: [_jsx("thead", { children: _jsxs("tr", { className: "border-b border-white/5 bg-white/5", children: [_jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "Oyuncu" }), _jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic text-right", children: "Durum" })] }) }), _jsx("tbody", { className: "divide-y divide-white/5", children: participants.individuals.map((p) => (_jsxs("tr", { onClick: () => router.push(`/oyuncu/${p.username}`), className: "hover:bg-white/5 transition-all cursor-pointer group", children: [_jsx("td", { className: "px-4 py-2.5", children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("img", { src: p.avatar, className: "w-8 h-8 rounded-lg border border-white/5", alt: "" }), _jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[11px] font-black text-white uppercase tracking-tight group-hover:text-armoyu-primary transition-colors", children: p.name || p.username }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-text-muted uppercase tracking-widest opacity-60 italic", children: "Bireysel" })] })] }) }), _jsx("td", { className: "px-4 py-2.5 text-right", children: _jsx("span", { className: "text-[8px] font-black text-armoyu-primary uppercase tracking-widest italic bg-armoyu-primary/10 px-3 py-1 rounded-full border border-armoyu-primary/20", children: "KATILDI" }) })] }, p.id))) })] }) }))] })), participants.groups.length > 0 && (_jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-[8px] font-black text-armoyu-text-muted uppercase tracking-[0.4em] opacity-60", children: "GRUPLAR" }), viewMode === 'grid' ? (_jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: participants.groups.map((g) => (_jsxs("div", { onClick: () => router.push(`/grup/${g.shortName}`), className: "group bg-armoyu-card-bg rounded-2xl border border-white/5 overflow-hidden shadow-xl hover:border-armoyu-primary/30 transition-all cursor-pointer active:scale-[0.98]", children: [_jsxs("div", { className: "relative h-16 overflow-hidden", children: [g.banner ? _jsx("img", { src: g.banner, className: "w-full h-full object-cover opacity-20", alt: "" }) : _jsx("div", { className: "w-full h-full bg-gradient-to-r from-armoyu-primary/20 to-indigo-600/20" }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-armoyu-card-bg to-transparent" })] }), _jsxs("div", { className: "relative px-4 -mt-8 mb-3 flex items-end gap-3", children: [_jsx("img", { src: g.logo, className: "w-10 h-10 rounded-xl bg-armoyu-card-bg p-0.5 border border-white/10 shadow-xl", alt: "" }), _jsxs("div", { className: "pb-0.5 min-w-0", children: [_jsx("h5", { className: "text-[12px] font-black text-white uppercase italic tracking-tighter leading-none truncate group-hover:text-armoyu-primary transition-colors", children: g.name }), _jsx("span", { className: "text-[8px] font-bold text-armoyu-primary uppercase tracking-widest italic", children: g.shortName })] })] }), _jsx("div", { className: "px-4 pb-4", children: _jsx("div", { className: "bg-black/20 rounded-xl border border-white/5 overflow-hidden", children: _jsx("table", { className: "w-full text-left", children: _jsx("tbody", { className: "divide-y divide-white/5", children: g.players.slice(0, 3).map((p) => (_jsxs("tr", { onClick: (e) => {
340
+ e.stopPropagation();
341
+ router.push(`/oyuncu/${p.username || p.name}`);
342
+ }, className: "hover:bg-white/5 cursor-pointer transition-colors group/player", children: [_jsxs("td", { className: "px-3 py-1.5 flex items-center gap-2 text-[9px] font-black text-white/80 uppercase truncate", children: [_jsx("img", { src: p.avatar, className: "w-5 h-5 rounded-md border border-white/5 object-cover", alt: "" }), _jsx("span", { className: "truncate group-hover/player:text-armoyu-primary transition-colors", children: p.name })] }), _jsx("td", { className: "px-3 py-1.5 text-right text-[7px] font-black text-armoyu-text-muted uppercase italic opacity-60", children: p.role || 'Oyuncu' })] }, p.id))) }) }) }) })] }, g.id))) })) : (_jsx("div", { className: "bg-black/20 rounded-2xl border border-white/5 overflow-hidden shadow-xl", children: _jsxs("table", { className: "w-full text-left", children: [_jsx("thead", { children: _jsxs("tr", { className: "border-b border-white/5 bg-white/5", children: [_jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "Grup" }), _jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic", children: "K\u0131saltma" }), _jsx("th", { className: "px-4 py-3 text-[8px] font-black text-armoyu-text-muted uppercase tracking-widest italic text-right", children: "Oyuncu Say\u0131s\u0131" })] }) }), _jsx("tbody", { className: "divide-y divide-white/5", children: participants.groups.map((g) => (_jsxs("tr", { onClick: () => router.push(`/grup/${g.shortName}`), className: "hover:bg-white/5 transition-all cursor-pointer group", children: [_jsx("td", { className: "px-4 py-2.5", children: _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("img", { src: g.logo, className: "w-8 h-8 rounded-lg border border-white/5", alt: "" }), _jsx("span", { className: "text-[11px] font-black text-white uppercase tracking-tight group-hover:text-armoyu-primary transition-colors truncate", children: g.name })] }) }), _jsx("td", { className: "px-4 py-2.5", children: _jsx("span", { className: "text-[9px] font-black text-armoyu-primary uppercase italic", children: g.shortName }) }), _jsx("td", { className: "px-4 py-2.5 text-right", children: _jsxs("span", { className: "text-[10px] font-black text-white uppercase tracking-tighter bg-white/5 px-3 py-1 rounded-full border border-white/5", children: [g.players.length, " OYUNCU"] }) })] }, g.id))) })] }) }))] }))] })] }) }), _jsxs("div", { className: "fixed bottom-6 right-6 z-[500] bg-black/90 border border-white/20 p-4 rounded-3xl backdrop-blur-xl shadow-2xl flex flex-col gap-3", children: [_jsx("span", { className: "text-[9px] font-black text-amber-500 uppercase tracking-widest", children: "\uD83D\uDEE0\uFE0F GEL\u0130\u015ET\u0130R\u0130C\u0130 TASARIM SE\u00C7\u0130M\u0130" }), _jsxs("div", { className: "flex gap-2", children: [_jsx("button", { onClick: () => setActiveStyle('standard'), className: `px-3 py-1.5 rounded-xl text-[9px] font-black uppercase transition-all ${activeStyle === 'standard' ? 'bg-armoyu-primary text-white shadow-lg' : 'bg-white/5 text-gray-400 hover:bg-white/10'}`, children: "Standart" }), ((event?.gameName || '').toLowerCase().includes('counter-strike') ||
343
+ (event?.gameName || '').toLowerCase().includes('cs') ||
344
+ (event?.gameName || '').toLowerCase().includes('league of legends') ||
345
+ (event?.gameName || '').toLowerCase() === 'lol' ||
346
+ (event?.gameName || '').toLowerCase().includes('assetto') ||
347
+ (event?.gameName || '').toLowerCase().includes('okey') ||
348
+ (event?.gameName || '').toLowerCase().includes('futbol') ||
349
+ (event?.gameName || '').toLowerCase().includes('football') ||
350
+ (event?.gameName || '').toLowerCase().includes('soccer')) && (_jsx("button", { onClick: () => setActiveStyle('tournament'), className: `px-3 py-1.5 rounded-xl text-[9px] font-black uppercase transition-all ${activeStyle === 'tournament' ? 'bg-amber-500 text-black shadow-lg' : 'bg-white/5 text-gray-400 hover:bg-white/10'}`, children: "Turnuva" })), _jsx("button", { onClick: () => setActiveStyle('game_special'), className: `px-3 py-1.5 rounded-xl text-[9px] font-black uppercase transition-all ${activeStyle === 'game_special' ? 'bg-red-500 text-white shadow-lg' : 'bg-white/5 text-gray-400 hover:bg-white/10'}`, children: "Oyuna \u00D6zel" })] })] })] }));
91
351
  }
92
352
  ;
93
353
  export default DetailPage;