fansunited-frontend-components 0.0.31-RC5 → 0.0.31-RC7

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 (369) hide show
  1. package/ClassicQuizPlay.js +4846 -3
  2. package/CollectLead.js +1252 -3
  3. package/EventGamePlay.js +7594 -3
  4. package/MatchQuizPlay.js +11001 -3
  5. package/PersonalityQuizPlay.js +39512 -3
  6. package/PollVote.js +4165 -3
  7. package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
  8. package/chunks/Error-BurPfBJw.js +1739 -0
  9. package/chunks/OverlayLeadAfterCollection-Bjh1xAB5.js +898 -0
  10. package/chunks/OverlayScoreStateSkeleton-Cha5KeNi.js +146 -0
  11. package/chunks/Portal-DegkUXpU.js +21877 -0
  12. package/chunks/Tabs-leN3Fb8D.js +1079 -0
  13. package/chunks/index-DUQ2LFod.js +5492 -0
  14. package/index.d.ts.map +1 -1
  15. package/package.json +1 -1
  16. package/_virtual/_commonjsHelpers.js +0 -6
  17. package/_virtual/index.js +0 -4
  18. package/_virtual/index2.js +0 -4
  19. package/_virtual/index3.js +0 -4
  20. package/_virtual/jsx-runtime.js +0 -4
  21. package/_virtual/react-is.development.js +0 -4
  22. package/_virtual/react-is.development2.js +0 -4
  23. package/_virtual/react-is.production.min.js +0 -4
  24. package/_virtual/react-is.production.min2.js +0 -4
  25. package/_virtual/react-jsx-runtime.development.js +0 -4
  26. package/_virtual/react-jsx-runtime.production.js +0 -4
  27. package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  28. package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
  29. package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +0 -4
  30. package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +0 -4
  31. package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +0 -4
  32. package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +0 -4
  33. package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +0 -4
  34. package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +0 -4
  35. package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +0 -4
  36. package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +0 -4
  37. package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +0 -4
  38. package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +0 -4
  39. package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +0 -4
  40. package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +0 -4
  41. package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +0 -4
  42. package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +0 -4
  43. package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +0 -4
  44. package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +0 -4
  45. package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +0 -4
  46. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +0 -4
  47. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +0 -4
  48. package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +0 -4
  49. package/packages/classic-quiz-play/src/assets/info.svg.js +0 -4
  50. package/packages/classic-quiz-play/src/assets/school.svg.js +0 -4
  51. package/packages/classic-quiz-play/src/assets/sports_score.svg.js +0 -4
  52. package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +0 -23
  53. package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +0 -353
  54. package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
  55. package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +0 -93
  56. package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +0 -80
  57. package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +0 -130
  58. package/packages/classic-quiz-play/src/components/Shared/Button.js +0 -67
  59. package/packages/classic-quiz-play/src/components/Shared/MainCard.js +0 -34
  60. package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +0 -122
  61. package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +0 -443
  62. package/packages/classic-quiz-play/src/components/Shared/Stepper.js +0 -59
  63. package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +0 -109
  64. package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +0 -45
  65. package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
  66. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +0 -170
  67. package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +0 -190
  68. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +0 -177
  69. package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +0 -373
  70. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +0 -120
  71. package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +0 -42
  72. package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +0 -42
  73. package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
  74. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +0 -231
  75. package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +0 -353
  76. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +0 -118
  77. package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +0 -52
  78. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +0 -183
  79. package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +0 -145
  80. package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +0 -43
  81. package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
  82. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +0 -220
  83. package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +0 -347
  84. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +0 -117
  85. package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +0 -52
  86. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +0 -209
  87. package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +0 -182
  88. package/packages/classic-quiz-play/src/constants/constants.js +0 -4
  89. package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +0 -18
  90. package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +0 -30
  91. package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +0 -40
  92. package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +0 -117
  93. package/packages/classic-quiz-play/src/index.js +0 -4
  94. package/packages/classic-quiz-play/src/main.js +0 -7
  95. package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  96. package/packages/collect-lead/src/assets/default-quiz-bg.png.js +0 -4
  97. package/packages/collect-lead/src/components/CollectLead.js +0 -18
  98. package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +0 -63
  99. package/packages/collect-lead/src/components/Shared/MainCard.js +0 -31
  100. package/packages/collect-lead/src/components/Shared/PresentedBy.js +0 -118
  101. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +0 -72
  102. package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +0 -187
  103. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +0 -81
  104. package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +0 -338
  105. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +0 -82
  106. package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +0 -313
  107. package/packages/collect-lead/src/index.js +0 -4
  108. package/packages/collect-lead/src/main.js +0 -39
  109. package/packages/collect-lead/src/providers/ConfigurationProvider.js +0 -50
  110. package/packages/common/src/components/AdditionalCTA.js +0 -24
  111. package/packages/common/src/components/AlertMessage.js +0 -88
  112. package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +0 -111
  113. package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +0 -103
  114. package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +0 -101
  115. package/packages/common/src/components/Leads/CollectLeadForm.js +0 -72
  116. package/packages/common/src/components/Leads/ConsentsCheckboxes.js +0 -82
  117. package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +0 -104
  118. package/packages/common/src/components/Leads/LeadForm.js +0 -498
  119. package/packages/common/src/components/Portal.js +0 -62
  120. package/packages/common/src/components/Rules.js +0 -299
  121. package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +0 -83
  122. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +0 -80
  123. package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +0 -190
  124. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +0 -68
  125. package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +0 -100
  126. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +0 -65
  127. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +0 -90
  128. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +0 -34
  129. package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +0 -55
  130. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +0 -58
  131. package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +0 -105
  132. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +0 -98
  133. package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +0 -167
  134. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +0 -64
  135. package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +0 -107
  136. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +0 -55
  137. package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +0 -94
  138. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +0 -186
  139. package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +0 -181
  140. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +0 -173
  141. package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +0 -275
  142. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +0 -23
  143. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +0 -40
  144. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +0 -142
  145. package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +0 -203
  146. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +0 -157
  147. package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +0 -194
  148. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +0 -238
  149. package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +0 -211
  150. package/packages/common/src/components/Spinner.js +0 -36
  151. package/packages/common/src/constants/constants.js +0 -457
  152. package/packages/common/src/enums/enums.js +0 -4
  153. package/packages/common/src/functions/helpers.js +0 -58
  154. package/packages/common/src/functions/i18n.js +0 -69
  155. package/packages/common/src/functions/theme.js +0 -301
  156. package/packages/common/src/hooks/useConstantContext.js +0 -10
  157. package/packages/common/src/hooks/useImageUrl.js +0 -8
  158. package/packages/common/src/hooks/useImageVariant.js +0 -11
  159. package/packages/common/src/hooks/useLeadForm.js +0 -129
  160. package/packages/common/src/hooks/useThemeMode.js +0 -30
  161. package/packages/common/src/locales/bg.json.js +0 -363
  162. package/packages/common/src/locales/de.json.js +0 -362
  163. package/packages/common/src/locales/el.json.js +0 -362
  164. package/packages/common/src/locales/en.json.js +0 -368
  165. package/packages/common/src/locales/es.json.js +0 -362
  166. package/packages/common/src/locales/fr-be.json.js +0 -362
  167. package/packages/common/src/locales/fr.json.js +0 -362
  168. package/packages/common/src/locales/it.json.js +0 -362
  169. package/packages/common/src/locales/pl.json.js +0 -362
  170. package/packages/common/src/locales/pt-br.json.js +0 -362
  171. package/packages/common/src/locales/pt.json.js +0 -362
  172. package/packages/common/src/locales/ro.json.js +0 -362
  173. package/packages/common/src/locales/sk.json.js +0 -362
  174. package/packages/common/src/locales/sr.json.js +0 -362
  175. package/packages/common/src/providers/ConstantsProvider.js +0 -29
  176. package/packages/common/src/providers/ContainerProvider.js +0 -35
  177. package/packages/common/src/providers/FontProvider.js +0 -25
  178. package/packages/common/src/providers/ThemeProvider.js +0 -80
  179. package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  180. package/packages/event-game-play/src/assets/default-quiz-bg.png.js +0 -4
  181. package/packages/event-game-play/src/assets/school.svg.js +0 -4
  182. package/packages/event-game-play/src/assets/sports_score.svg.js +0 -4
  183. package/packages/event-game-play/src/components/EventGameNotFound.js +0 -23
  184. package/packages/event-game-play/src/components/EventGamePlay.js +0 -318
  185. package/packages/event-game-play/src/components/Shared/AlertMessage.js +0 -93
  186. package/packages/event-game-play/src/components/Shared/Countdown.js +0 -125
  187. package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -574
  188. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +0 -60
  189. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +0 -29
  190. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +0 -108
  191. package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +0 -44
  192. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +0 -70
  193. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +0 -37
  194. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +0 -82
  195. package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +0 -64
  196. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -70
  197. package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
  198. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +0 -62
  199. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +0 -29
  200. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +0 -344
  201. package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +0 -70
  202. package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
  203. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
  204. package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +0 -88
  205. package/packages/event-game-play/src/components/Shared/MainCard.js +0 -34
  206. package/packages/event-game-play/src/components/Shared/Notification.js +0 -67
  207. package/packages/event-game-play/src/components/Shared/Stepper.js +0 -151
  208. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +0 -163
  209. package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -110
  210. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +0 -118
  211. package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -180
  212. package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +0 -30
  213. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +0 -348
  214. package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +0 -213
  215. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +0 -130
  216. package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +0 -712
  217. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +0 -141
  218. package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +0 -156
  219. package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +0 -28
  220. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +0 -347
  221. package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +0 -149
  222. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +0 -119
  223. package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +0 -230
  224. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +0 -139
  225. package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +0 -45
  226. package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +0 -29
  227. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +0 -329
  228. package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +0 -373
  229. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +0 -219
  230. package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +0 -548
  231. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +0 -117
  232. package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +0 -259
  233. package/packages/event-game-play/src/helpers/helpers.js +0 -11
  234. package/packages/event-game-play/src/hooks/useEventGameById.js +0 -27
  235. package/packages/event-game-play/src/hooks/useEventGamePrediction.js +0 -54
  236. package/packages/event-game-play/src/hooks/useEventRankings.js +0 -61
  237. package/packages/event-game-play/src/index.js +0 -4
  238. package/packages/event-game-play/src/main.js +0 -7
  239. package/packages/event-game-play/src/providers/ConstantsProvider.js +0 -17
  240. package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  241. package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +0 -4
  242. package/packages/match-quiz-play/src/assets/school.svg.js +0 -4
  243. package/packages/match-quiz-play/src/assets/sports_score.svg.js +0 -4
  244. package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +0 -65
  245. package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +0 -23
  246. package/packages/match-quiz-play/src/components/MatchQuizPlay.js +0 -490
  247. package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +0 -93
  248. package/packages/match-quiz-play/src/components/Shared/Countdown.js +0 -125
  249. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +0 -64
  250. package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +0 -854
  251. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +0 -63
  252. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +0 -29
  253. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +0 -143
  254. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +0 -101
  255. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +0 -97
  256. package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +0 -77
  257. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +0 -61
  258. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +0 -29
  259. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +0 -63
  260. package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +0 -41
  261. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +0 -72
  262. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +0 -30
  263. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +0 -179
  264. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +0 -163
  265. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +0 -103
  266. package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +0 -86
  267. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +0 -79
  268. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +0 -29
  269. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +0 -213
  270. package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +0 -293
  271. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +0 -116
  272. package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +0 -98
  273. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +0 -72
  274. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +0 -29
  275. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +0 -108
  276. package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +0 -44
  277. package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +0 -63
  278. package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +0 -220
  279. package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +0 -207
  280. package/packages/match-quiz-play/src/components/Shared/MainCard.js +0 -34
  281. package/packages/match-quiz-play/src/components/Shared/Notification.js +0 -67
  282. package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +0 -118
  283. package/packages/match-quiz-play/src/components/Shared/Stepper.js +0 -151
  284. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +0 -172
  285. package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +0 -109
  286. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +0 -235
  287. package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +0 -219
  288. package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +0 -45
  289. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +0 -157
  290. package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +0 -710
  291. package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -35
  292. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +0 -499
  293. package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +0 -213
  294. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +0 -178
  295. package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +0 -128
  296. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +0 -120
  297. package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +0 -42
  298. package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +0 -42
  299. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +0 -185
  300. package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +0 -233
  301. package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -37
  302. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +0 -511
  303. package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +0 -149
  304. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +0 -164
  305. package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +0 -27
  306. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +0 -118
  307. package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +0 -52
  308. package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +0 -43
  309. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +0 -234
  310. package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +0 -548
  311. package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -35
  312. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +0 -513
  313. package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +0 -376
  314. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +0 -135
  315. package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +0 -259
  316. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +0 -129
  317. package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +0 -239
  318. package/packages/match-quiz-play/src/helpers/helpers.js +0 -9
  319. package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +0 -42
  320. package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +0 -53
  321. package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +0 -29
  322. package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +0 -38
  323. package/packages/match-quiz-play/src/index.js +0 -4
  324. package/packages/match-quiz-play/src/main.js +0 -7
  325. package/packages/match-quiz-play/src/providers/ConstantsProvider.js +0 -26
  326. package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +0 -39513
  327. package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +0 -4
  328. package/packages/poll-vote/src/assets/default-quiz-bg.png.js +0 -4
  329. package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +0 -65
  330. package/packages/poll-vote/src/components/PollNotFound.js +0 -23
  331. package/packages/poll-vote/src/components/PollVote.js +0 -270
  332. package/packages/poll-vote/src/components/Shared/AlertMessage.js +0 -93
  333. package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +0 -132
  334. package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +0 -82
  335. package/packages/poll-vote/src/components/Shared/Button.js +0 -76
  336. package/packages/poll-vote/src/components/Shared/MainCard.js +0 -36
  337. package/packages/poll-vote/src/components/Shared/PresentedBy.js +0 -118
  338. package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +0 -257
  339. package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +0 -232
  340. package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +0 -45
  341. package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +0 -34
  342. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +0 -137
  343. package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +0 -105
  344. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +0 -107
  345. package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +0 -178
  346. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +0 -120
  347. package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +0 -42
  348. package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +0 -42
  349. package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +0 -36
  350. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +0 -231
  351. package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +0 -332
  352. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +0 -155
  353. package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +0 -156
  354. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +0 -117
  355. package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +0 -52
  356. package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +0 -43
  357. package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +0 -34
  358. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +0 -138
  359. package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +0 -92
  360. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +0 -146
  361. package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +0 -164
  362. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +0 -129
  363. package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +0 -248
  364. package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +0 -30
  365. package/packages/poll-vote/src/hooks/useMyPollVote.js +0 -43
  366. package/packages/poll-vote/src/hooks/usePollById.js +0 -16
  367. package/packages/poll-vote/src/hooks/usePollOptionsImages.js +0 -19
  368. package/packages/poll-vote/src/index.js +0 -4
  369. package/packages/poll-vote/src/main.js +0 -7
@@ -0,0 +1,1079 @@
1
+ import { n as Q, o as G, _ as p, C as w, p as q, q as H, r as K, v as Z, L as ee, w as oe, x as te, y as ne, z as ae, A as se, D as ie, E as re, F as N, G as D, H as E, S as le, I as U, R as ce, J as j, K as B, M as de, N as e, O, Q as J, U as ue, V as pe, X as be, Y as fe, Z as A } from "./Portal-DegkUXpU.js";
2
+ import * as l from "react";
3
+ import { jsx as C } from "react/jsx-runtime";
4
+ function ve(o) {
5
+ const {
6
+ value: t,
7
+ defaultValue: a,
8
+ onChange: n,
9
+ orientation: s = "horizontal",
10
+ direction: r = "ltr",
11
+ selectionFollowsFocus: i = !1
12
+ } = o, [d, u] = Q({
13
+ controlled: t,
14
+ default: a,
15
+ name: "Tabs",
16
+ state: "value"
17
+ }), c = l.useCallback((g, y) => {
18
+ u(y), n == null || n(g, y);
19
+ }, [n, u]), {
20
+ subitems: f,
21
+ contextValue: b
22
+ } = G(), v = l.useRef(() => {
23
+ }), m = l.useCallback((g) => {
24
+ var y;
25
+ return (y = f.get(g)) == null ? void 0 : y.id;
26
+ }, [f]), h = l.useCallback((g) => v.current(g), []), T = l.useCallback((g) => {
27
+ v.current = g;
28
+ }, []);
29
+ return {
30
+ contextValue: p({
31
+ direction: r,
32
+ getTabId: h,
33
+ getTabPanelId: m,
34
+ onSelected: c,
35
+ orientation: s,
36
+ registerTabIdLookup: T,
37
+ selectionFollowsFocus: i,
38
+ value: d
39
+ }, b)
40
+ };
41
+ }
42
+ const Y = /* @__PURE__ */ l.createContext(null);
43
+ process.env.NODE_ENV !== "production" && (Y.displayName = "TabsContext");
44
+ function S() {
45
+ const o = l.useContext(Y);
46
+ if (o == null)
47
+ throw new Error("No TabsContext provided");
48
+ return o;
49
+ }
50
+ function ge(o) {
51
+ const {
52
+ value: t,
53
+ children: a
54
+ } = o, {
55
+ direction: n,
56
+ getItemIndex: s,
57
+ onSelected: r,
58
+ orientation: i,
59
+ registerItem: d,
60
+ registerTabIdLookup: u,
61
+ selectionFollowsFocus: c,
62
+ totalSubitemCount: f,
63
+ value: b,
64
+ getTabId: v,
65
+ getTabPanelId: m
66
+ } = t, h = l.useMemo(() => ({
67
+ getItemIndex: s,
68
+ registerItem: d,
69
+ totalSubitemCount: f
70
+ }), [d, s, f]), T = l.useMemo(() => ({
71
+ direction: n,
72
+ getTabId: v,
73
+ getTabPanelId: m,
74
+ onSelected: r,
75
+ orientation: i,
76
+ registerTabIdLookup: u,
77
+ selectionFollowsFocus: c,
78
+ value: b
79
+ }), [n, v, m, r, i, u, c, b]);
80
+ return /* @__PURE__ */ C(w.Provider, {
81
+ value: h,
82
+ children: /* @__PURE__ */ C(Y.Provider, {
83
+ value: T,
84
+ children: a
85
+ })
86
+ });
87
+ }
88
+ function me(o) {
89
+ return o.size;
90
+ }
91
+ function Te(o) {
92
+ const {
93
+ value: t,
94
+ id: a,
95
+ rootRef: n
96
+ } = o, s = S();
97
+ if (s === null)
98
+ throw new Error("No TabContext provided");
99
+ const {
100
+ value: r,
101
+ getTabId: i
102
+ } = s, d = q(a), u = l.useRef(null), c = H(u, n), f = l.useMemo(() => ({
103
+ id: d,
104
+ ref: u
105
+ }), [d]), {
106
+ id: b
107
+ } = K(t ?? me, f), v = b !== r, m = b !== void 0 ? i(b) : void 0;
108
+ return {
109
+ hidden: v,
110
+ getRootProps: (T = {}) => p({
111
+ "aria-labelledby": m ?? void 0,
112
+ hidden: v,
113
+ id: d ?? void 0
114
+ }, T, {
115
+ ref: c
116
+ }),
117
+ rootRef: c
118
+ };
119
+ }
120
+ const X = {
121
+ valueChange: "valueChange"
122
+ };
123
+ function he(o, t) {
124
+ if (t.type === X.valueChange)
125
+ return p({}, o, {
126
+ highlightedValue: t.value
127
+ });
128
+ const a = Z(o, t), {
129
+ context: {
130
+ selectionFollowsFocus: n
131
+ }
132
+ } = t;
133
+ if (t.type === ee.itemsChange) {
134
+ if (a.selectedValues.length > 0)
135
+ return p({}, a, {
136
+ highlightedValue: a.selectedValues[0]
137
+ });
138
+ oe(null, "reset", t.context);
139
+ }
140
+ return n && a.highlightedValue != null ? p({}, a, {
141
+ selectedValues: [a.highlightedValue]
142
+ }) : a;
143
+ }
144
+ function ye(o) {
145
+ var t;
146
+ const {
147
+ rootRef: a
148
+ } = o, {
149
+ direction: n = "ltr",
150
+ onSelected: s,
151
+ orientation: r = "horizontal",
152
+ value: i,
153
+ registerTabIdLookup: d,
154
+ selectionFollowsFocus: u
155
+ } = S(), {
156
+ subitems: c,
157
+ contextValue: f
158
+ } = G(), b = l.useCallback((P) => {
159
+ var z;
160
+ return (z = c.get(P)) == null ? void 0 : z.id;
161
+ }, [c]);
162
+ d(b);
163
+ const v = l.useMemo(() => Array.from(c.keys()), [c]), m = l.useCallback((P) => {
164
+ var z, _;
165
+ return P == null ? null : (z = (_ = c.get(P)) == null ? void 0 : _.ref.current) != null ? z : null;
166
+ }, [c]), h = n === "rtl";
167
+ let T;
168
+ r === "vertical" ? T = "vertical" : T = h ? "horizontal-rtl" : "horizontal-ltr";
169
+ const g = l.useCallback((P, z) => {
170
+ var _;
171
+ s(P, (_ = z[0]) != null ? _ : null);
172
+ }, [s]), y = l.useMemo(() => i === void 0 ? {} : i != null ? {
173
+ selectedValues: [i]
174
+ } : {
175
+ selectedValues: []
176
+ }, [i]), I = l.useCallback((P) => {
177
+ var z, _;
178
+ return (z = (_ = c.get(P)) == null ? void 0 : _.disabled) != null ? z : !1;
179
+ }, [c]), {
180
+ contextValue: R,
181
+ dispatch: L,
182
+ getRootProps: k,
183
+ state: {
184
+ highlightedValue: x,
185
+ selectedValues: V
186
+ },
187
+ rootRef: F
188
+ } = te({
189
+ controlledProps: y,
190
+ disabledItemsFocusable: !u,
191
+ focusManagement: "DOM",
192
+ getItemDomElement: m,
193
+ isItemDisabled: I,
194
+ items: v,
195
+ rootRef: a,
196
+ onChange: g,
197
+ orientation: T,
198
+ reducerActionContext: l.useMemo(() => ({
199
+ selectionFollowsFocus: u || !1
200
+ }), [u]),
201
+ selectionMode: "single",
202
+ stateReducer: he
203
+ });
204
+ l.useEffect(() => {
205
+ i !== void 0 && i != null && L({
206
+ type: X.valueChange,
207
+ value: i
208
+ });
209
+ }, [L, i]);
210
+ const $ = (P = {}) => p({}, P, k(P), {
211
+ "aria-orientation": r === "vertical" ? "vertical" : void 0,
212
+ role: "tablist"
213
+ });
214
+ return {
215
+ contextValue: l.useMemo(() => p({}, f, R), [f, R]),
216
+ dispatch: L,
217
+ getRootProps: $,
218
+ highlightedValue: x,
219
+ isRtl: h,
220
+ orientation: r,
221
+ rootRef: F,
222
+ selectedValue: (t = V[0]) != null ? t : null
223
+ };
224
+ }
225
+ function xe(o) {
226
+ const {
227
+ value: t,
228
+ children: a
229
+ } = o, {
230
+ dispatch: n,
231
+ getItemIndex: s,
232
+ getItemState: r,
233
+ registerItem: i,
234
+ totalSubitemCount: d
235
+ } = t, u = l.useMemo(() => ({
236
+ dispatch: n,
237
+ getItemState: r,
238
+ getItemIndex: s
239
+ }), [n, s, r]), c = l.useMemo(() => ({
240
+ getItemIndex: s,
241
+ registerItem: i,
242
+ totalSubitemCount: d
243
+ }), [i, s, d]);
244
+ return /* @__PURE__ */ C(w.Provider, {
245
+ value: c,
246
+ children: /* @__PURE__ */ C(ne.Provider, {
247
+ value: u,
248
+ children: a
249
+ })
250
+ });
251
+ }
252
+ function Pe(o) {
253
+ return o.size;
254
+ }
255
+ function Ce(o) {
256
+ const {
257
+ value: t,
258
+ rootRef: a,
259
+ disabled: n = !1,
260
+ id: s
261
+ } = o, r = l.useRef(null), i = q(s), {
262
+ value: d,
263
+ selectionFollowsFocus: u,
264
+ getTabPanelId: c
265
+ } = S(), f = l.useMemo(() => ({
266
+ disabled: n,
267
+ ref: r,
268
+ id: i
269
+ }), [n, r, i]), {
270
+ id: b,
271
+ index: v,
272
+ totalItemCount: m
273
+ } = K(t ?? Pe, f), {
274
+ getRootProps: h,
275
+ highlighted: T,
276
+ selected: g
277
+ } = ae({
278
+ item: b
279
+ }), {
280
+ getRootProps: y,
281
+ rootRef: I,
282
+ active: R,
283
+ focusVisible: L,
284
+ setFocusVisible: k
285
+ } = se({
286
+ disabled: n,
287
+ focusableWhenDisabled: !u,
288
+ type: "button"
289
+ }), x = H(r, a, I), V = b !== void 0 ? c(b) : void 0;
290
+ return {
291
+ getRootProps: ($ = {}) => {
292
+ const M = ie($), P = re(h, y);
293
+ return p({}, $, P(M), {
294
+ role: "tab",
295
+ "aria-controls": V,
296
+ "aria-selected": g,
297
+ id: i,
298
+ ref: x
299
+ });
300
+ },
301
+ active: R,
302
+ focusVisible: L,
303
+ highlighted: T,
304
+ index: v,
305
+ rootRef: x,
306
+ // the `selected` state isn't set on the server (it relies on effects to be calculated),
307
+ // so we fall back to checking the `value` prop with the selectedValue from the TabsContext
308
+ selected: g || b === d,
309
+ setFocusVisible: k,
310
+ totalTabsCount: m
311
+ };
312
+ }
313
+ function Re(o) {
314
+ return D("MuiTab", o);
315
+ }
316
+ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), Ie = ["action", "children", "value", "disabled", "onChange", "onClick", "onFocus", "component", "orientation", "variant", "color", "disableIndicator", "indicatorPlacement", "indicatorInset", "slots", "slotProps"], ze = (o) => {
317
+ const {
318
+ selected: t,
319
+ disabled: a,
320
+ focusVisible: n,
321
+ variant: s,
322
+ color: r,
323
+ orientation: i
324
+ } = o, d = {
325
+ root: ["root", i, a && "disabled", n && "focusVisible", t && "selected", s && `variant${O(s)}`, r && `color${O(r)}`]
326
+ };
327
+ return J(d, Re, {});
328
+ }, Oe = E(le, {
329
+ name: "JoyTab",
330
+ slot: "Root",
331
+ overridesResolver: (o, t) => t.root
332
+ })(({
333
+ ownerState: o
334
+ }) => [
335
+ {
336
+ flex: "initial",
337
+ justifyContent: o.row ? "center" : "initial",
338
+ "--unstable_ListItemDecorator-alignItems": "center",
339
+ "--unstable_offset": "min(calc(-1 * var(--variant-borderWidth, 0px)), -1px)"
340
+ },
341
+ !o.disableIndicator && {
342
+ '&[aria-selected="true"]': {
343
+ "--Tab-indicatorColor": "currentColor",
344
+ zIndex: 1
345
+ // to stay above other tab elements
346
+ },
347
+ // using pseudo element for showing active indicator is best for controlling the size and customization.
348
+ // for example, developers can customize the radius, width or background.
349
+ // (border and box-shadow are not flexible when it comes to customization).
350
+ "&::after": {
351
+ content: '""',
352
+ display: "block",
353
+ position: "absolute",
354
+ margin: "auto",
355
+ background: "var(--Tab-indicatorColor)",
356
+ borderRadius: "var(--Tab-indicatorRadius)"
357
+ }
358
+ },
359
+ // the padding is to account for the indicator's thickness to make the text proportional.
360
+ !o.disableIndicator && o.indicatorPlacement === "bottom" && {
361
+ paddingBottom: "calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)",
362
+ "&::after": {
363
+ height: "var(--Tab-indicatorThickness)",
364
+ width: "var(--Tab-indicatorSize)",
365
+ left: o.indicatorInset ? "var(--ListItem-paddingLeft)" : "var(--unstable_offset)",
366
+ right: o.indicatorInset ? "var(--ListItem-paddingRight)" : "var(--unstable_offset)",
367
+ bottom: "calc(-1px - var(--unstable_TabList-underlineBottom, 0px))"
368
+ }
369
+ },
370
+ !o.disableIndicator && o.indicatorPlacement === "top" && {
371
+ paddingTop: "calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)",
372
+ "&::after": {
373
+ height: "var(--Tab-indicatorThickness)",
374
+ width: "var(--Tab-indicatorSize)",
375
+ left: o.indicatorInset ? "var(--ListItem-paddingLeft)" : "var(--unstable_offset)",
376
+ right: o.indicatorInset ? "var(--ListItem-paddingRight)" : "var(--unstable_offset)",
377
+ top: "calc(-1px - var(--unstable_TabList-underlineTop, 0px))"
378
+ }
379
+ },
380
+ !o.disableIndicator && o.indicatorPlacement === "right" && {
381
+ paddingRight: "calc(var(--ListItem-paddingRight) + var(--Tab-indicatorThickness) - 1px)",
382
+ "&::after": {
383
+ height: "var(--Tab-indicatorSize)",
384
+ width: "var(--Tab-indicatorThickness)",
385
+ top: o.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
386
+ bottom: o.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
387
+ right: "calc(-1px - var(--unstable_TabList-underlineRight, 0px))"
388
+ }
389
+ },
390
+ !o.disableIndicator && o.indicatorPlacement === "left" && {
391
+ paddingLeft: "calc(var(--ListItem-paddingLeft) + var(--Tab-indicatorThickness) - 1px)",
392
+ "&::after": {
393
+ height: "var(--Tab-indicatorSize)",
394
+ width: "var(--Tab-indicatorThickness)",
395
+ top: o.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
396
+ bottom: o.indicatorInset ? "var(--ListItem-paddingY)" : "var(--unstable_offset)",
397
+ left: "calc(-1px - var(--unstable_TabList-underlineLeft, 0px))"
398
+ }
399
+ }
400
+ ]), ke = /* @__PURE__ */ l.forwardRef(function(t, a) {
401
+ const n = U({
402
+ props: t,
403
+ name: "JoyTab"
404
+ }), s = l.useContext(ce), {
405
+ action: r,
406
+ children: i,
407
+ disabled: d = !1,
408
+ component: u = "button",
409
+ orientation: c = "horizontal",
410
+ variant: f = "plain",
411
+ color: b = "neutral",
412
+ disableIndicator: v = !1,
413
+ indicatorPlacement: m = s ? "bottom" : "right",
414
+ indicatorInset: h = !1,
415
+ slots: T = {},
416
+ slotProps: g = {}
417
+ } = n, y = j(n, Ie), I = l.useRef(), R = H(I, a), {
418
+ active: L,
419
+ focusVisible: k,
420
+ setFocusVisible: x,
421
+ selected: V,
422
+ getRootProps: F
423
+ } = Ce(p({}, n, {
424
+ rootRef: R
425
+ }));
426
+ l.useImperativeHandle(r, () => ({
427
+ focusVisible: () => {
428
+ x(!0), I.current.focus();
429
+ }
430
+ }), [x]);
431
+ const $ = p({}, n, {
432
+ disableIndicator: v,
433
+ indicatorPlacement: m,
434
+ indicatorInset: h,
435
+ orientation: c,
436
+ row: s,
437
+ active: L,
438
+ focusVisible: k,
439
+ disabled: d,
440
+ selected: V,
441
+ variant: f,
442
+ color: b
443
+ }), M = ze($), P = p({}, y, {
444
+ component: u,
445
+ slots: T,
446
+ slotProps: g
447
+ }), [z, _] = B("root", {
448
+ ref: a,
449
+ elementType: Oe,
450
+ getSlotProps: F,
451
+ externalForwardedProps: P,
452
+ ownerState: $,
453
+ className: M.root
454
+ });
455
+ return /* @__PURE__ */ C(de.Provider, {
456
+ value: c,
457
+ children: /* @__PURE__ */ C(z, p({}, _, {
458
+ children: i
459
+ }))
460
+ });
461
+ });
462
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
463
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
464
+ // │ These PropTypes are generated from the TypeScript type definitions. │
465
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
466
+ // └─────────────────────────────────────────────────────────────────────┘
467
+ /**
468
+ * A ref for imperative actions. It currently only supports `focusVisible()` action.
469
+ */
470
+ action: e.oneOfType([e.func, e.shape({
471
+ current: e.shape({
472
+ focusVisible: e.func.isRequired
473
+ })
474
+ })]),
475
+ /**
476
+ * @ignore
477
+ */
478
+ children: e.node,
479
+ /**
480
+ * The color of the component. It supports those theme colors that make sense for this component.
481
+ * @default 'neutral'
482
+ */
483
+ color: e.oneOfType([e.oneOf(["danger", "neutral", "primary", "success", "warning"]), e.string]),
484
+ /**
485
+ * The component used for the root node.
486
+ * Either a string to use a HTML element or a component.
487
+ */
488
+ component: e.elementType,
489
+ /**
490
+ * If `true`, the component is disabled.
491
+ * @default false
492
+ */
493
+ disabled: e.bool,
494
+ /**
495
+ * If `true`, the pseudo element indicator is hidden.
496
+ * @default false
497
+ */
498
+ disableIndicator: e.bool,
499
+ /**
500
+ * If `true`, the indicator stay within the padding based on the `Tabs` orientation.
501
+ * @default false
502
+ */
503
+ indicatorInset: e.bool,
504
+ /**
505
+ * The indicator's position when the Tab is selected.
506
+ * @default row ? 'bottom' : 'right'
507
+ */
508
+ indicatorPlacement: e.oneOf(["bottom", "left", "right", "top"]),
509
+ /**
510
+ * Callback invoked when new value is being set.
511
+ */
512
+ onChange: e.func,
513
+ /**
514
+ * @ignore
515
+ */
516
+ onClick: e.func,
517
+ /**
518
+ * @ignore
519
+ */
520
+ onFocus: e.func,
521
+ /**
522
+ * The content direction flow.
523
+ * @default 'horizontal'
524
+ */
525
+ orientation: e.oneOf(["horizontal", "vertical"]),
526
+ /**
527
+ * The props used for each slot inside.
528
+ * @default {}
529
+ */
530
+ slotProps: e.shape({
531
+ root: e.oneOfType([e.func, e.object])
532
+ }),
533
+ /**
534
+ * The components used for each slot inside.
535
+ * @default {}
536
+ */
537
+ slots: e.shape({
538
+ root: e.elementType
539
+ }),
540
+ /**
541
+ * The system prop that allows defining system overrides as well as additional CSS styles.
542
+ */
543
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
544
+ /**
545
+ * You can provide your own value. Otherwise, it falls back to the child position index.
546
+ */
547
+ value: e.oneOfType([e.number, e.string]),
548
+ /**
549
+ * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
550
+ * @default 'plain'
551
+ */
552
+ variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
553
+ });
554
+ const W = /* @__PURE__ */ l.createContext("md");
555
+ process.env.NODE_ENV !== "production" && (W.displayName = "SizeTabsContext");
556
+ function Ve(o) {
557
+ return D("MuiTabList", o);
558
+ }
559
+ N("MuiTabList", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
560
+ const _e = ["component", "children", "variant", "color", "size", "disableUnderline", "underlinePlacement", "tabFlex", "sticky", "slots", "slotProps"], $e = (o) => {
561
+ const {
562
+ orientation: t,
563
+ size: a,
564
+ variant: n,
565
+ color: s
566
+ } = o, r = {
567
+ root: ["root", t, n && `variant${O(n)}`, s && `color${O(s)}`, a && `size${O(a)}`]
568
+ };
569
+ return J(r, Ve, {});
570
+ }, Fe = E(ue, {
571
+ name: "JoyTabList",
572
+ slot: "Root",
573
+ overridesResolver: (o, t) => t.root
574
+ })(({
575
+ theme: o,
576
+ ownerState: t
577
+ }) => {
578
+ var a;
579
+ const n = (a = o.variants[t.variant]) == null ? void 0 : a[t.color];
580
+ return p({
581
+ "--List-gap": "0px",
582
+ "--ListDivider-gap": "0px",
583
+ "--ListItem-paddingX": "var(--Tabs-spacing)",
584
+ "--ListItem-gap": "0.375rem",
585
+ // the `var(--unknown,)` is a workaround because emotion does not support space toggle.
586
+ "--unstable_TabList-hasUnderline": t.disableUnderline ? "var(--unknown,)" : "initial"
587
+ }, pe, {
588
+ flexGrow: "initial",
589
+ flexDirection: t.orientation === "vertical" ? "column" : "row",
590
+ borderRadius: "var(--List-radius, 0px)",
591
+ padding: "var(--List-padding, 0px)",
592
+ zIndex: 1
593
+ }, t.sticky && {
594
+ // sticky in list item can be found in grouped options
595
+ position: "sticky",
596
+ top: t.sticky === "top" ? "calc(-1 * var(--Tabs-padding, 0px))" : "initial",
597
+ bottom: t.sticky === "bottom" ? "calc(-1 * var(--Tabs-padding, 0px))" : "initial",
598
+ backgroundColor: (n == null ? void 0 : n.backgroundColor) || `var(--TabList-stickyBackground, ${o.vars.palette.background.body})`
599
+ }, !t.disableUnderline && p({}, t.underlinePlacement === "bottom" && {
600
+ "--unstable_TabList-underlineBottom": "1px",
601
+ paddingBottom: 1,
602
+ boxShadow: `inset 0 -1px ${o.vars.palette.divider}`
603
+ }, t.underlinePlacement === "top" && {
604
+ "--unstable_TabList-underlineTop": "1px",
605
+ paddingTop: 1,
606
+ boxShadow: `inset 0 1px ${o.vars.palette.divider}`
607
+ }, t.underlinePlacement === "right" && {
608
+ "--unstable_TabList-underlineRight": "1px",
609
+ paddingRight: 1,
610
+ boxShadow: `inset -1px 0 ${o.vars.palette.divider}`
611
+ }, t.underlinePlacement === "left" && {
612
+ "--unstable_TabList-underlineLeft": "1px",
613
+ paddingLeft: 1,
614
+ boxShadow: `inset 1px 0 ${o.vars.palette.divider}`
615
+ }), t.tabFlex && {
616
+ [`& .${Le.root}`]: {
617
+ flex: t.tabFlex
618
+ }
619
+ });
620
+ }), Me = /* @__PURE__ */ l.forwardRef(function(t, a) {
621
+ const n = U({
622
+ props: t,
623
+ name: "JoyTabList"
624
+ }), s = l.useContext(W), {
625
+ isRtl: r,
626
+ orientation: i,
627
+ getRootProps: d,
628
+ contextValue: u
629
+ } = ye({
630
+ rootRef: a
631
+ }), {
632
+ component: c = "div",
633
+ children: f,
634
+ variant: b = "plain",
635
+ color: v = "neutral",
636
+ size: m,
637
+ disableUnderline: h = !1,
638
+ underlinePlacement: T = i === "horizontal" ? "bottom" : "right",
639
+ tabFlex: g,
640
+ sticky: y,
641
+ slots: I = {},
642
+ slotProps: R = {}
643
+ } = n, L = j(n, _e), x = p({}, n, {
644
+ isRtl: r,
645
+ orientation: i,
646
+ variant: b,
647
+ color: v,
648
+ size: m ?? s,
649
+ sticky: y,
650
+ tabFlex: g,
651
+ nesting: !1,
652
+ disableUnderline: h,
653
+ underlinePlacement: T
654
+ }), V = $e(x), F = p({}, L, {
655
+ component: c,
656
+ slots: I,
657
+ slotProps: R
658
+ }), [$, M] = B("root", {
659
+ ref: a,
660
+ elementType: Fe,
661
+ getSlotProps: d,
662
+ externalForwardedProps: F,
663
+ ownerState: x,
664
+ className: V.root
665
+ });
666
+ return (
667
+ // @ts-ignore conflicted ref types
668
+ /* @__PURE__ */ C($, p({}, M, {
669
+ children: /* @__PURE__ */ C(xe, {
670
+ value: u,
671
+ children: /* @__PURE__ */ C(be, {
672
+ row: i === "horizontal",
673
+ nested: !0,
674
+ children: f
675
+ })
676
+ })
677
+ }))
678
+ );
679
+ });
680
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
681
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
682
+ // │ These PropTypes are generated from the TypeScript type definitions. │
683
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
684
+ // └─────────────────────────────────────────────────────────────────────┘
685
+ /**
686
+ * Used to render icon or text elements inside the TabList if `src` is not set.
687
+ * This can be an element, or just a string.
688
+ */
689
+ children: e.node,
690
+ /**
691
+ * The color of the component. It supports those theme colors that make sense for this component.
692
+ * @default 'neutral'
693
+ */
694
+ color: e.oneOfType([e.oneOf(["danger", "neutral", "primary", "success", "warning"]), e.string]),
695
+ /**
696
+ * The component used for the root node.
697
+ * Either a string to use a HTML element or a component.
698
+ */
699
+ component: e.elementType,
700
+ /**
701
+ * If `true`, the TabList's underline will disappear.
702
+ * @default false
703
+ */
704
+ disableUnderline: e.bool,
705
+ /**
706
+ * The size of the component.
707
+ */
708
+ size: e.oneOfType([e.oneOf(["sm", "md", "lg"]), e.string]),
709
+ /**
710
+ * The props used for each slot inside.
711
+ * @default {}
712
+ */
713
+ slotProps: e.shape({
714
+ root: e.oneOfType([e.func, e.object])
715
+ }),
716
+ /**
717
+ * The components used for each slot inside.
718
+ * @default {}
719
+ */
720
+ slots: e.shape({
721
+ root: e.elementType
722
+ }),
723
+ /**
724
+ * If provided, the TabList will have postion `sticky`.
725
+ */
726
+ sticky: e.oneOf(["bottom", "top"]),
727
+ /**
728
+ * The system prop that allows defining system overrides as well as additional CSS styles.
729
+ */
730
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
731
+ /**
732
+ * The flex value of the Tab.
733
+ * @example tabFlex={1} will set flex: '1 1 auto' on each tab (stretch the tab to equally fill the available space).
734
+ */
735
+ tabFlex: e.oneOfType([e.number, e.string]),
736
+ /**
737
+ * The placement of the TabList's underline.
738
+ * @default orientation === 'horizontal' ? 'bottom' : 'right'
739
+ */
740
+ underlinePlacement: e.oneOf(["bottom", "left", "right", "top"]),
741
+ /**
742
+ * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
743
+ * @default 'plain'
744
+ */
745
+ variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
746
+ });
747
+ function Ne(o) {
748
+ return D("MuiTabPanel", o);
749
+ }
750
+ N("MuiTabPanel", ["root", "hidden", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
751
+ const De = ["children", "value", "component", "color", "variant", "size", "slots", "slotProps", "keepMounted"], Ee = (o) => {
752
+ const {
753
+ hidden: t,
754
+ size: a,
755
+ variant: n,
756
+ color: s,
757
+ orientation: r
758
+ } = o, i = {
759
+ root: ["root", t && "hidden", a && `size${O(a)}`, r, n && `variant${O(n)}`, s && `color${O(s)}`, a && `size${O(a)}`]
760
+ };
761
+ return J(i, Ne, {});
762
+ }, Ue = E("div", {
763
+ name: "JoyTabPanel",
764
+ slot: "Root",
765
+ overridesResolver: (o, t) => t.root
766
+ })(({
767
+ theme: o,
768
+ ownerState: t
769
+ }) => {
770
+ var a;
771
+ return p({
772
+ display: t.hidden ? "none" : "block",
773
+ padding: "var(--Tabs-spacing)",
774
+ flexGrow: 1,
775
+ fontFamily: o.vars.fontFamily.body
776
+ }, o.typography[`body-${t.size}`], (a = o.variants[t.variant]) == null ? void 0 : a[t.color]);
777
+ }), je = /* @__PURE__ */ l.forwardRef(function(t, a) {
778
+ const n = U({
779
+ props: t,
780
+ name: "JoyTabPanel"
781
+ }), {
782
+ orientation: s
783
+ } = S() || {
784
+ orientation: "horizontal"
785
+ }, r = l.useContext(W), {
786
+ children: i,
787
+ value: d = 0,
788
+ component: u,
789
+ color: c = "neutral",
790
+ variant: f = "plain",
791
+ size: b,
792
+ slots: v = {},
793
+ slotProps: m = {},
794
+ keepMounted: h = !1
795
+ } = n, T = j(n, De), {
796
+ hidden: g,
797
+ getRootProps: y
798
+ } = Te(p({}, n, {
799
+ value: d
800
+ })), R = p({}, n, {
801
+ orientation: s,
802
+ hidden: g,
803
+ size: b ?? r,
804
+ color: c,
805
+ variant: f
806
+ }), L = Ee(R), k = p({}, T, {
807
+ component: u,
808
+ slots: v,
809
+ slotProps: m
810
+ }), [x, V] = B("root", {
811
+ ref: a,
812
+ elementType: Ue,
813
+ getSlotProps: y,
814
+ externalForwardedProps: k,
815
+ additionalProps: {
816
+ role: "tabpanel",
817
+ ref: a,
818
+ as: u
819
+ },
820
+ ownerState: R,
821
+ className: L.root
822
+ });
823
+ return h ? /* @__PURE__ */ C(x, p({}, V, {
824
+ children: i
825
+ })) : /* @__PURE__ */ C(x, p({}, V, {
826
+ children: !g && i
827
+ }));
828
+ });
829
+ process.env.NODE_ENV !== "production" && (je.propTypes = {
830
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
831
+ // │ These PropTypes are generated from the TypeScript type definitions. │
832
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
833
+ // └─────────────────────────────────────────────────────────────────────┘
834
+ /**
835
+ * The content of the component.
836
+ */
837
+ children: e.node,
838
+ /**
839
+ * The color of the component. It supports those theme colors that make sense for this component.
840
+ * @default 'neutral'
841
+ */
842
+ color: e.oneOfType([e.oneOf(["danger", "neutral", "primary", "success", "warning"]), e.string]),
843
+ /**
844
+ * The component used for the root node.
845
+ * Either a string to use a HTML element or a component.
846
+ */
847
+ component: e.elementType,
848
+ /**
849
+ * Always keep the children in the DOM.
850
+ * @default false
851
+ */
852
+ keepMounted: e.bool,
853
+ /**
854
+ * The size of the component.
855
+ */
856
+ size: e.oneOfType([e.oneOf(["sm", "md", "lg"]), e.string]),
857
+ /**
858
+ * The props used for each slot inside.
859
+ * @default {}
860
+ */
861
+ slotProps: e.shape({
862
+ root: e.oneOfType([e.func, e.object])
863
+ }),
864
+ /**
865
+ * The components used for each slot inside.
866
+ * @default {}
867
+ */
868
+ slots: e.shape({
869
+ root: e.elementType
870
+ }),
871
+ /**
872
+ * The system prop that allows defining system overrides as well as additional CSS styles.
873
+ */
874
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
875
+ /**
876
+ * The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
877
+ * @default 0
878
+ */
879
+ value: e.oneOfType([e.number, e.string]),
880
+ /**
881
+ * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
882
+ * @default 'plain'
883
+ */
884
+ variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
885
+ });
886
+ function Be(o) {
887
+ return D("MuiTabs", o);
888
+ }
889
+ N("MuiTabs", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg"]);
890
+ const Je = ["children", "value", "defaultValue", "orientation", "direction", "component", "onChange", "selectionFollowsFocus", "variant", "color", "size", "slots", "slotProps"], Se = (o) => {
891
+ const {
892
+ orientation: t,
893
+ variant: a,
894
+ color: n,
895
+ size: s
896
+ } = o, r = {
897
+ root: ["root", t, a && `variant${O(a)}`, n && `color${O(n)}`, s && `size${O(s)}`]
898
+ };
899
+ return J(r, Be, {});
900
+ }, We = E("div", {
901
+ name: "JoyTabs",
902
+ slot: "Root",
903
+ overridesResolver: (o, t) => t.root
904
+ })(({
905
+ ownerState: o,
906
+ theme: t
907
+ }) => {
908
+ var a, n;
909
+ const s = (a = t.variants[o.variant]) == null ? void 0 : a[o.color], {
910
+ bgcolor: r,
911
+ backgroundColor: i,
912
+ background: d,
913
+ p: u,
914
+ padding: c
915
+ } = fe({
916
+ theme: t,
917
+ ownerState: o
918
+ }, ["bgcolor", "backgroundColor", "background", "p", "padding"]), f = A(t, `palette.${r}`) || r || A(t, `palette.${i}`) || i || d || (s == null ? void 0 : s.backgroundColor) || (s == null ? void 0 : s.background) || t.vars.palette.background.surface;
919
+ return p({}, o.size === "sm" && {
920
+ "--Tabs-spacing": "0.75rem"
921
+ }, o.size === "md" && {
922
+ "--Tabs-spacing": "1rem"
923
+ }, o.size === "lg" && {
924
+ "--Tabs-spacing": "1.25rem"
925
+ }, {
926
+ "--Tab-indicatorThickness": "2px",
927
+ "--Icon-color": o.color !== "neutral" || o.variant === "solid" ? "currentColor" : t.vars.palette.text.icon,
928
+ "--TabList-stickyBackground": f === "transparent" ? "initial" : f,
929
+ // for sticky TabList
930
+ display: "flex",
931
+ flexDirection: "column"
932
+ }, o.orientation === "vertical" && {
933
+ flexDirection: "row"
934
+ }, {
935
+ backgroundColor: t.vars.palette.background.surface,
936
+ position: "relative"
937
+ }, t.typography[`body-${o.size}`], (n = t.variants[o.variant]) == null ? void 0 : n[o.color], u !== void 0 && {
938
+ "--Tabs-padding": u
939
+ }, c !== void 0 && {
940
+ "--Tabs-padding": c
941
+ });
942
+ }), He = /* @__PURE__ */ l.forwardRef(function(t, a) {
943
+ const n = U({
944
+ props: t,
945
+ name: "JoyTabs"
946
+ }), {
947
+ children: s,
948
+ value: r,
949
+ defaultValue: i,
950
+ orientation: d = "horizontal",
951
+ direction: u = "ltr",
952
+ component: c,
953
+ variant: f = "plain",
954
+ color: b = "neutral",
955
+ size: v = "md",
956
+ slots: m = {},
957
+ slotProps: h = {}
958
+ } = n, T = j(n, Je), g = i || (r === void 0 ? 0 : void 0), {
959
+ contextValue: y
960
+ } = ve(p({}, n, {
961
+ orientation: d,
962
+ defaultValue: g
963
+ })), I = p({}, n, {
964
+ orientation: d,
965
+ direction: u,
966
+ variant: f,
967
+ color: b,
968
+ size: v
969
+ }), R = Se(I), L = p({}, T, {
970
+ component: c,
971
+ slots: m,
972
+ slotProps: h
973
+ }), [k, x] = B("root", {
974
+ ref: a,
975
+ elementType: We,
976
+ externalForwardedProps: L,
977
+ additionalProps: {
978
+ ref: a,
979
+ as: c
980
+ },
981
+ ownerState: I,
982
+ className: R.root
983
+ });
984
+ return (
985
+ // @ts-ignore `defaultValue` between HTMLDiv and TabsProps is conflicted.
986
+ /* @__PURE__ */ C(k, p({}, x, {
987
+ children: /* @__PURE__ */ C(ge, {
988
+ value: y,
989
+ children: /* @__PURE__ */ C(W.Provider, {
990
+ value: v,
991
+ children: s
992
+ })
993
+ })
994
+ }))
995
+ );
996
+ });
997
+ process.env.NODE_ENV !== "production" && (He.propTypes = {
998
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
999
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1000
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1001
+ // └─────────────────────────────────────────────────────────────────────┘
1002
+ /**
1003
+ * The content of the component.
1004
+ */
1005
+ children: e.node,
1006
+ /**
1007
+ * The color of the component. It supports those theme colors that make sense for this component.
1008
+ * @default 'neutral'
1009
+ */
1010
+ color: e.oneOfType([e.oneOf(["danger", "neutral", "primary", "success", "warning"]), e.string]),
1011
+ /**
1012
+ * The component used for the root node.
1013
+ * Either a string to use a HTML element or a component.
1014
+ */
1015
+ component: e.elementType,
1016
+ /**
1017
+ * The default value. Use when the component is not controlled.
1018
+ */
1019
+ defaultValue: e.oneOfType([e.number, e.string]),
1020
+ /**
1021
+ * The direction of the text.
1022
+ * @default 'ltr'
1023
+ */
1024
+ direction: e.oneOf(["ltr", "rtl"]),
1025
+ /**
1026
+ * Callback invoked when new value is being set.
1027
+ */
1028
+ onChange: e.func,
1029
+ /**
1030
+ * The component orientation (layout flow direction).
1031
+ * @default 'horizontal'
1032
+ */
1033
+ orientation: e.oneOf(["horizontal", "vertical"]),
1034
+ /**
1035
+ * If `true` the selected tab changes on focus. Otherwise it only
1036
+ * changes on activation.
1037
+ */
1038
+ selectionFollowsFocus: e.bool,
1039
+ /**
1040
+ * The size of the component.
1041
+ * @default 'md'
1042
+ */
1043
+ size: e.oneOfType([e.oneOf(["sm", "md", "lg"]), e.string]),
1044
+ /**
1045
+ * The props used for each slot inside.
1046
+ * @default {}
1047
+ */
1048
+ slotProps: e.shape({
1049
+ root: e.oneOfType([e.func, e.object])
1050
+ }),
1051
+ /**
1052
+ * The components used for each slot inside.
1053
+ * @default {}
1054
+ */
1055
+ slots: e.shape({
1056
+ root: e.elementType
1057
+ }),
1058
+ /**
1059
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1060
+ */
1061
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1062
+ /**
1063
+ * The value of the currently selected `Tab`.
1064
+ * If you don't want any selected `Tab`, you can set this prop to `null`.
1065
+ */
1066
+ value: e.oneOfType([e.number, e.string]),
1067
+ /**
1068
+ * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
1069
+ * @default 'plain'
1070
+ */
1071
+ variant: e.oneOfType([e.oneOf(["outlined", "plain", "soft", "solid"]), e.string])
1072
+ });
1073
+ export {
1074
+ He as T,
1075
+ Me as a,
1076
+ ke as b,
1077
+ je as c,
1078
+ Le as t
1079
+ };