be-components 7.6.3 → 7.6.5

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 (309) hide show
  1. package/lib/commonjs/Components/Spring.js +9 -52
  2. package/lib/commonjs/Components/Spring.js.map +1 -1
  3. package/lib/commonjs/NotificationManager/NotificationManagerTabs.js +188 -0
  4. package/lib/commonjs/NotificationManager/NotificationManagerTabs.js.map +1 -0
  5. package/lib/commonjs/NotificationManager/api/index.js +237 -7
  6. package/lib/commonjs/NotificationManager/api/index.js.map +1 -1
  7. package/lib/commonjs/NotificationManager/components/GroupManagement.js +1038 -0
  8. package/lib/commonjs/NotificationManager/components/GroupManagement.js.map +1 -0
  9. package/lib/commonjs/NotificationManager/components/JobManagement.js +783 -0
  10. package/lib/commonjs/NotificationManager/components/JobManagement.js.map +1 -0
  11. package/lib/commonjs/NotificationManager/components/ScheduleNotification.js +407 -0
  12. package/lib/commonjs/NotificationManager/components/ScheduleNotification.js.map +1 -0
  13. package/lib/commonjs/NotificationManager/components/index.js +56 -0
  14. package/lib/commonjs/NotificationManager/components/index.js.map +1 -0
  15. package/lib/commonjs/NotificationManager/components/shared/DateTimePicker.js +113 -0
  16. package/lib/commonjs/NotificationManager/components/shared/DateTimePicker.js.map +1 -0
  17. package/lib/commonjs/NotificationManager/components/shared/GroupSelector.js +191 -0
  18. package/lib/commonjs/NotificationManager/components/shared/GroupSelector.js.map +1 -0
  19. package/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.js +509 -0
  20. package/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.js.map +1 -0
  21. package/lib/commonjs/NotificationManager/components/shared/StatusBadge.js +69 -0
  22. package/lib/commonjs/NotificationManager/components/shared/StatusBadge.js.map +1 -0
  23. package/lib/commonjs/NotificationManager/index.js +38 -23
  24. package/lib/commonjs/NotificationManager/index.js.map +1 -1
  25. package/lib/commonjs/Notifications/index.js +2 -2
  26. package/lib/commonjs/Notifications/index.js.map +1 -1
  27. package/lib/commonjs/ProfileManager/Components/BettorVouch.js +1 -1
  28. package/lib/commonjs/ProfileManager/Components/BettorVouch.js.map +1 -1
  29. package/lib/commonjs/SocialComponents/PostCard/index.js +1 -1
  30. package/lib/commonjs/SocialComponents/PostCard/index.js.map +1 -1
  31. package/lib/commonjs/index.js +7 -0
  32. package/lib/commonjs/index.js.map +1 -1
  33. package/lib/commonjs/types.d.js +2 -0
  34. package/lib/commonjs/types.d.js.map +1 -1
  35. package/lib/module/Components/Spring.js +10 -53
  36. package/lib/module/Components/Spring.js.map +1 -1
  37. package/lib/module/NotificationManager/NotificationManagerTabs.js +180 -0
  38. package/lib/module/NotificationManager/NotificationManagerTabs.js.map +1 -0
  39. package/lib/module/NotificationManager/api/index.js +237 -7
  40. package/lib/module/NotificationManager/api/index.js.map +1 -1
  41. package/lib/module/NotificationManager/components/GroupManagement.js +1030 -0
  42. package/lib/module/NotificationManager/components/GroupManagement.js.map +1 -0
  43. package/lib/module/NotificationManager/components/JobManagement.js +775 -0
  44. package/lib/module/NotificationManager/components/JobManagement.js.map +1 -0
  45. package/lib/module/NotificationManager/components/ScheduleNotification.js +399 -0
  46. package/lib/module/NotificationManager/components/ScheduleNotification.js.map +1 -0
  47. package/lib/module/NotificationManager/components/index.js +8 -0
  48. package/lib/module/NotificationManager/components/index.js.map +1 -0
  49. package/lib/module/NotificationManager/components/shared/DateTimePicker.js +106 -0
  50. package/lib/module/NotificationManager/components/shared/DateTimePicker.js.map +1 -0
  51. package/lib/module/NotificationManager/components/shared/GroupSelector.js +184 -0
  52. package/lib/module/NotificationManager/components/shared/GroupSelector.js.map +1 -0
  53. package/lib/module/NotificationManager/components/shared/NotificationBuilderForm.js +501 -0
  54. package/lib/module/NotificationManager/components/shared/NotificationBuilderForm.js.map +1 -0
  55. package/lib/module/NotificationManager/components/shared/StatusBadge.js +62 -0
  56. package/lib/module/NotificationManager/components/shared/StatusBadge.js.map +1 -0
  57. package/lib/module/NotificationManager/index.js +32 -23
  58. package/lib/module/NotificationManager/index.js.map +1 -1
  59. package/lib/module/Notifications/index.js +2 -2
  60. package/lib/module/Notifications/index.js.map +1 -1
  61. package/lib/module/ProfileManager/Components/BettorVouch.js +1 -1
  62. package/lib/module/ProfileManager/Components/BettorVouch.js.map +1 -1
  63. package/lib/module/SocialComponents/PostCard/index.js +1 -1
  64. package/lib/module/SocialComponents/PostCard/index.js.map +1 -1
  65. package/lib/module/index.js +2 -1
  66. package/lib/module/index.js.map +1 -1
  67. package/lib/module/types.d.js +2 -0
  68. package/lib/module/types.d.js.map +1 -1
  69. package/lib/typescript/lib/commonjs/Components/Spring.d.ts +1 -5
  70. package/lib/typescript/lib/commonjs/Components/Spring.d.ts.map +1 -1
  71. package/lib/typescript/lib/commonjs/NotificationManager/NotificationManagerTabs.d.ts +17 -0
  72. package/lib/typescript/lib/commonjs/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
  73. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts +75 -2
  74. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts.map +1 -1
  75. package/lib/typescript/lib/commonjs/NotificationManager/components/GroupManagement.d.ts +6 -0
  76. package/lib/typescript/lib/commonjs/NotificationManager/components/GroupManagement.d.ts.map +1 -0
  77. package/lib/typescript/lib/commonjs/NotificationManager/components/JobManagement.d.ts +7 -0
  78. package/lib/typescript/lib/commonjs/NotificationManager/components/JobManagement.d.ts.map +1 -0
  79. package/lib/typescript/lib/commonjs/NotificationManager/components/ScheduleNotification.d.ts +8 -0
  80. package/lib/typescript/lib/commonjs/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
  81. package/lib/typescript/lib/commonjs/NotificationManager/components/index.d.ts +9 -0
  82. package/lib/typescript/lib/commonjs/NotificationManager/components/index.d.ts.map +1 -0
  83. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/DateTimePicker.d.ts +9 -0
  84. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
  85. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/GroupSelector.d.ts +13 -0
  86. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
  87. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.d.ts +10 -0
  88. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
  89. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/StatusBadge.d.ts +6 -0
  90. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
  91. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts +76 -2
  92. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts.map +1 -1
  93. package/lib/typescript/lib/commonjs/index.d.ts +76 -2
  94. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  95. package/lib/typescript/lib/module/AdServer/index.d.ts +1 -3
  96. package/lib/typescript/lib/module/AdServer/index.d.ts.map +1 -1
  97. package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts +1 -3
  98. package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  99. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +1 -3
  100. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
  101. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +1 -3
  102. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  103. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +1 -3
  104. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -1
  105. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +1 -3
  106. package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -1
  107. package/lib/typescript/lib/module/BetRouter/index.d.ts +1 -3
  108. package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -1
  109. package/lib/typescript/lib/module/Bracket/components/BracketCompetitionCard.d.ts +1 -3
  110. package/lib/typescript/lib/module/Bracket/components/BracketCompetitionCard.d.ts.map +1 -1
  111. package/lib/typescript/lib/module/Bracket/components/BracketCompetitionSelector.d.ts +1 -3
  112. package/lib/typescript/lib/module/Bracket/components/BracketCompetitionSelector.d.ts.map +1 -1
  113. package/lib/typescript/lib/module/Bracket/components/EditPlayerBracket.d.ts +1 -3
  114. package/lib/typescript/lib/module/Bracket/components/EditPlayerBracket.d.ts.map +1 -1
  115. package/lib/typescript/lib/module/Bracket/components/Navigator.d.ts +1 -3
  116. package/lib/typescript/lib/module/Bracket/components/Navigator.d.ts.map +1 -1
  117. package/lib/typescript/lib/module/Bracket/components/PlayerBracketManager.d.ts +1 -3
  118. package/lib/typescript/lib/module/Bracket/components/PlayerBracketManager.d.ts.map +1 -1
  119. package/lib/typescript/lib/module/Bracket/components/RoomHome.d.ts +1 -3
  120. package/lib/typescript/lib/module/Bracket/components/RoomHome.d.ts.map +1 -1
  121. package/lib/typescript/lib/module/Campaign/components/AutoManager.d.ts +1 -3
  122. package/lib/typescript/lib/module/Campaign/components/AutoManager.d.ts.map +1 -1
  123. package/lib/typescript/lib/module/Campaign/components/ProgressTimer.d.ts +1 -3
  124. package/lib/typescript/lib/module/Campaign/components/ProgressTimer.d.ts.map +1 -1
  125. package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -3
  126. package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  127. package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -3
  128. package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
  129. package/lib/typescript/lib/module/Competition/components/CompetitionCard.d.ts +1 -3
  130. package/lib/typescript/lib/module/Competition/components/CompetitionCard.d.ts.map +1 -1
  131. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -3
  132. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  133. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +1 -3
  134. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  135. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -3
  136. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
  137. package/lib/typescript/lib/module/Competition/components/CompetitionTypeCard.d.ts +1 -3
  138. package/lib/typescript/lib/module/Competition/components/CompetitionTypeCard.d.ts.map +1 -1
  139. package/lib/typescript/lib/module/Competition/components/MatchMarketCard.d.ts +1 -3
  140. package/lib/typescript/lib/module/Competition/components/MatchMarketCard.d.ts.map +1 -1
  141. package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -3
  142. package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
  143. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -3
  144. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  145. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.d.ts +1 -3
  146. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.d.ts.map +1 -1
  147. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -3
  148. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  149. package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts +1 -3
  150. package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  151. package/lib/typescript/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +1 -3
  152. package/lib/typescript/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -1
  153. package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +1 -3
  154. package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -1
  155. package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +1 -3
  156. package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -1
  157. package/lib/typescript/lib/module/Components/Spring.d.ts +3 -1126
  158. package/lib/typescript/lib/module/Components/Spring.d.ts.map +1 -1
  159. package/lib/typescript/lib/module/EventComponents/TeamProfile/index.d.ts +1 -3
  160. package/lib/typescript/lib/module/EventComponents/TeamProfile/index.d.ts.map +1 -1
  161. package/lib/typescript/lib/module/FlashMarket/components/MarketTimer.d.ts +1 -3
  162. package/lib/typescript/lib/module/FlashMarket/components/MarketTimer.d.ts.map +1 -1
  163. package/lib/typescript/lib/module/FlashMarket/components/ProgressTimer.d.ts +1 -3
  164. package/lib/typescript/lib/module/FlashMarket/components/ProgressTimer.d.ts.map +1 -1
  165. package/lib/typescript/lib/module/FlashMarket/index.d.ts +1 -3
  166. package/lib/typescript/lib/module/FlashMarket/index.d.ts.map +1 -1
  167. package/lib/typescript/lib/module/Guide/index.d.ts +1 -3
  168. package/lib/typescript/lib/module/Guide/index.d.ts.map +1 -1
  169. package/lib/typescript/lib/module/Leaders/components/LeaderboardCard.d.ts +1 -3
  170. package/lib/typescript/lib/module/Leaders/components/LeaderboardCard.d.ts.map +1 -1
  171. package/lib/typescript/lib/module/MarketComponents/components/BetScopeIndicator.d.ts +1 -3
  172. package/lib/typescript/lib/module/MarketComponents/components/BetScopeIndicator.d.ts.map +1 -1
  173. package/lib/typescript/lib/module/MarketComponents/components/EventScoringCard.d.ts +1 -3
  174. package/lib/typescript/lib/module/MarketComponents/components/EventScoringCard.d.ts.map +1 -1
  175. package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +1 -3
  176. package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
  177. package/lib/typescript/lib/module/MarketComponents/components/OrderGradeBar.d.ts +1 -3
  178. package/lib/typescript/lib/module/MarketComponents/components/OrderGradeBar.d.ts.map +1 -1
  179. package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +1 -3
  180. package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
  181. package/lib/typescript/lib/module/MarketMaker/components/ManageFundForm.d.ts +1 -3
  182. package/lib/typescript/lib/module/MarketMaker/components/ManageFundForm.d.ts.map +1 -1
  183. package/lib/typescript/lib/module/MarketMaker/components/OrderForm.d.ts +1 -3
  184. package/lib/typescript/lib/module/MarketMaker/components/OrderForm.d.ts.map +1 -1
  185. package/lib/typescript/lib/module/MarketMaker/components/SetMarketForm.d.ts +1 -3
  186. package/lib/typescript/lib/module/MarketMaker/components/SetMarketForm.d.ts.map +1 -1
  187. package/lib/typescript/lib/module/NotificationManager/NotificationManagerTabs.d.ts +17 -0
  188. package/lib/typescript/lib/module/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
  189. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts +75 -2
  190. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts.map +1 -1
  191. package/lib/typescript/lib/module/NotificationManager/components/GroupManagement.d.ts +6 -0
  192. package/lib/typescript/lib/module/NotificationManager/components/GroupManagement.d.ts.map +1 -0
  193. package/lib/typescript/lib/module/NotificationManager/components/JobManagement.d.ts +7 -0
  194. package/lib/typescript/lib/module/NotificationManager/components/JobManagement.d.ts.map +1 -0
  195. package/lib/typescript/lib/module/NotificationManager/components/ScheduleNotification.d.ts +8 -0
  196. package/lib/typescript/lib/module/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
  197. package/lib/typescript/lib/module/NotificationManager/components/index.d.ts +8 -0
  198. package/lib/typescript/lib/module/NotificationManager/components/index.d.ts.map +1 -0
  199. package/lib/typescript/lib/module/NotificationManager/components/shared/DateTimePicker.d.ts +9 -0
  200. package/lib/typescript/lib/module/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
  201. package/lib/typescript/lib/module/NotificationManager/components/shared/GroupSelector.d.ts +13 -0
  202. package/lib/typescript/lib/module/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
  203. package/lib/typescript/lib/module/NotificationManager/components/shared/NotificationBuilderForm.d.ts +10 -0
  204. package/lib/typescript/lib/module/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
  205. package/lib/typescript/lib/module/NotificationManager/components/shared/StatusBadge.d.ts +6 -0
  206. package/lib/typescript/lib/module/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
  207. package/lib/typescript/lib/module/NotificationManager/index.d.ts +1 -0
  208. package/lib/typescript/lib/module/NotificationManager/index.d.ts.map +1 -1
  209. package/lib/typescript/lib/module/Observer/Observer.d.ts +1 -3
  210. package/lib/typescript/lib/module/Observer/Observer.d.ts.map +1 -1
  211. package/lib/typescript/lib/module/PlayerRecommender/components/ContactsSelector.d.ts +1 -3
  212. package/lib/typescript/lib/module/PlayerRecommender/components/ContactsSelector.d.ts.map +1 -1
  213. package/lib/typescript/lib/module/Premium/components/ALaCartePremium.d.ts +1 -3
  214. package/lib/typescript/lib/module/Premium/components/ALaCartePremium.d.ts.map +1 -1
  215. package/lib/typescript/lib/module/RankingsCard/index.d.ts +1 -3
  216. package/lib/typescript/lib/module/RankingsCard/index.d.ts.map +1 -1
  217. package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.d.ts +1 -3
  218. package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.d.ts.map +1 -1
  219. package/lib/typescript/lib/module/SocialComponents/GifSelector/WebSelector.d.ts +1 -3
  220. package/lib/typescript/lib/module/SocialComponents/GifSelector/WebSelector.d.ts.map +1 -1
  221. package/lib/typescript/lib/module/SocialComponents/PlayerFollowButton.d.ts +1 -3
  222. package/lib/typescript/lib/module/SocialComponents/PlayerFollowButton.d.ts.map +1 -1
  223. package/lib/typescript/lib/module/SocialComponents/PlayerProfile/components/PostsList.d.ts +1 -3
  224. package/lib/typescript/lib/module/SocialComponents/PlayerProfile/components/PostsList.d.ts.map +1 -1
  225. package/lib/typescript/lib/module/SocialComponents/PostCard/components/DraftTextViewer.d.ts +1 -3
  226. package/lib/typescript/lib/module/SocialComponents/PostCard/components/DraftTextViewer.d.ts.map +1 -1
  227. package/lib/typescript/lib/module/SocialComponents/Poster/index.d.ts +1 -3
  228. package/lib/typescript/lib/module/SocialComponents/Poster/index.d.ts.map +1 -1
  229. package/lib/typescript/lib/module/Socket/index.d.ts +1 -3
  230. package/lib/typescript/lib/module/Socket/index.d.ts.map +1 -1
  231. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -3
  232. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
  233. package/lib/typescript/lib/module/Squares/components/Countdown.d.ts +1 -3
  234. package/lib/typescript/lib/module/Squares/components/Countdown.d.ts.map +1 -1
  235. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -3
  236. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
  237. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -3
  238. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
  239. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +1 -3
  240. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
  241. package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -3
  242. package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
  243. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -3
  244. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
  245. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -3
  246. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
  247. package/lib/typescript/lib/module/Squares/components/SquareOfferCard.d.ts +1 -3
  248. package/lib/typescript/lib/module/Squares/components/SquareOfferCard.d.ts.map +1 -1
  249. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -3
  250. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
  251. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -3
  252. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
  253. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -3
  254. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
  255. package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts +1 -3
  256. package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  257. package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts +1 -3
  258. package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
  259. package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts +1 -3
  260. package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts.map +1 -1
  261. package/lib/typescript/lib/module/index.d.ts +2 -1
  262. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  263. package/lib/typescript/src/Components/AutoPageFlatList.d.ts +1 -1
  264. package/lib/typescript/src/Components/AutoPageFlatList.d.ts.map +1 -1
  265. package/lib/typescript/src/Components/Spring.d.ts +1 -1
  266. package/lib/typescript/src/Components/Spring.d.ts.map +1 -1
  267. package/lib/typescript/src/NotificationManager/NotificationManagerTabs.d.ts +20 -0
  268. package/lib/typescript/src/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
  269. package/lib/typescript/src/NotificationManager/api/index.d.ts +132 -3
  270. package/lib/typescript/src/NotificationManager/api/index.d.ts.map +1 -1
  271. package/lib/typescript/src/NotificationManager/components/GroupManagement.d.ts +8 -0
  272. package/lib/typescript/src/NotificationManager/components/GroupManagement.d.ts.map +1 -0
  273. package/lib/typescript/src/NotificationManager/components/JobManagement.d.ts +9 -0
  274. package/lib/typescript/src/NotificationManager/components/JobManagement.d.ts.map +1 -0
  275. package/lib/typescript/src/NotificationManager/components/ScheduleNotification.d.ts +10 -0
  276. package/lib/typescript/src/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
  277. package/lib/typescript/src/NotificationManager/components/index.d.ts +8 -0
  278. package/lib/typescript/src/NotificationManager/components/index.d.ts.map +1 -0
  279. package/lib/typescript/src/NotificationManager/components/shared/DateTimePicker.d.ts +12 -0
  280. package/lib/typescript/src/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
  281. package/lib/typescript/src/NotificationManager/components/shared/GroupSelector.d.ts +16 -0
  282. package/lib/typescript/src/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
  283. package/lib/typescript/src/NotificationManager/components/shared/NotificationBuilderForm.d.ts +12 -0
  284. package/lib/typescript/src/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
  285. package/lib/typescript/src/NotificationManager/components/shared/StatusBadge.d.ts +8 -0
  286. package/lib/typescript/src/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
  287. package/lib/typescript/src/NotificationManager/index.d.ts +1 -0
  288. package/lib/typescript/src/NotificationManager/index.d.ts.map +1 -1
  289. package/lib/typescript/src/index.d.ts +2 -1
  290. package/lib/typescript/src/index.d.ts.map +1 -1
  291. package/package.json +36 -35
  292. package/src/Components/AutoPageFlatList.tsx +1 -1
  293. package/src/Components/Spring.tsx +13 -44
  294. package/src/NotificationManager/NotificationManagerTabs.tsx +178 -0
  295. package/src/NotificationManager/api/index.ts +240 -7
  296. package/src/NotificationManager/components/GroupManagement.tsx +854 -0
  297. package/src/NotificationManager/components/JobManagement.tsx +569 -0
  298. package/src/NotificationManager/components/ScheduleNotification.tsx +388 -0
  299. package/src/NotificationManager/components/index.ts +7 -0
  300. package/src/NotificationManager/components/shared/DateTimePicker.tsx +94 -0
  301. package/src/NotificationManager/components/shared/GroupSelector.tsx +130 -0
  302. package/src/NotificationManager/components/shared/NotificationBuilderForm.tsx +364 -0
  303. package/src/NotificationManager/components/shared/StatusBadge.tsx +72 -0
  304. package/src/NotificationManager/index.tsx +43 -24
  305. package/src/Notifications/index.tsx +2 -2
  306. package/src/ProfileManager/Components/BettorVouch.tsx +1 -1
  307. package/src/SocialComponents/PostCard/index.tsx +1 -1
  308. package/src/index.tsx +2 -0
  309. package/src/types.d.ts +38 -3
@@ -0,0 +1,509 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _Themed = require("../../../Components/Themed");
10
+ var _useColors = require("../../../constants/useColors");
11
+ var _api = require("../../api");
12
+ var _Components = require("../../../Components");
13
+ var _Dropdown = _interopRequireDefault(require("../../../Components/Dropdown"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
+ const notification_types = [{
17
+ label: 'Order Notifications',
18
+ value: 'order_notifications'
19
+ }, {
20
+ label: 'Competition Notifications',
21
+ value: 'competition_notifications'
22
+ }, {
23
+ label: 'Social Notifications',
24
+ value: 'social_notifications'
25
+ }];
26
+ const NotificationBuilderForm = ({
27
+ notification,
28
+ onChange,
29
+ onFocusPosition,
30
+ showPreview = true,
31
+ showType = true
32
+ }) => {
33
+ const Colors = (0, _useColors.useColors)();
34
+ const [pathSearch, setPathSearch] = (0, _react.useState)('');
35
+ const [selectedPath, setSelectedPath] = (0, _react.useState)(_api.NotificationHelpers.app_paths[0]);
36
+ const [pathParams, setPathParams] = (0, _react.useState)({});
37
+ (0, _react.useEffect)(() => {
38
+ // Initialize selectedPath from notification options if exists
39
+ if (notification.options?.data?.path_name) {
40
+ const path = _api.NotificationHelpers.app_paths.find(p => p.path_name === notification.options?.data?.path_name);
41
+ if (path) {
42
+ setSelectedPath(path);
43
+ setPathParams(notification.options?.data?.params || {});
44
+ }
45
+ }
46
+ }, []);
47
+ (0, _react.useEffect)(() => {
48
+ // Update notification options when path or params change
49
+ if (selectedPath) {
50
+ const newOptions = {
51
+ ...(notification.options || {}),
52
+ id: notification.options?.id || Date.now().toString(),
53
+ body: notification.body || '',
54
+ icon: 'default',
55
+ type: notification.type || 'order_notifications',
56
+ data: {
57
+ ...(notification.options?.data || {}),
58
+ id: notification.options?.data?.id || Date.now().toString(),
59
+ player_id: notification.options?.data?.player_id || '',
60
+ pageStack: 'MainStack',
61
+ page: selectedPath.path_name,
62
+ pageParams: pathParams,
63
+ path_name: selectedPath.path_name === 'custom' ? '' : selectedPath.path_name,
64
+ params: pathParams
65
+ }
66
+ };
67
+ onChange({
68
+ ...notification,
69
+ options: newOptions
70
+ });
71
+ }
72
+ }, [selectedPath, pathParams]);
73
+ const filteredPaths = (0, _react.useMemo)(() => {
74
+ if (!pathSearch) return [];
75
+ const search = pathSearch.toLowerCase();
76
+ return _api.NotificationHelpers.app_paths.filter(path => path.label.toLowerCase().includes(search) || path.path_name.toLowerCase().includes(search));
77
+ }, [pathSearch]);
78
+ return /*#__PURE__*/_react.default.createElement(_Themed.View, {
79
+ transparent: true,
80
+ style: {
81
+ flex: 1
82
+ }
83
+ }, showPreview && /*#__PURE__*/_react.default.createElement(_Themed.View, {
84
+ float: true,
85
+ style: {
86
+ margin: 5
87
+ }
88
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
89
+ type: "header",
90
+ style: {
91
+ flexDirection: 'row',
92
+ alignItems: 'center',
93
+ padding: 10,
94
+ borderTopRightRadius: 8,
95
+ borderTopLeftRadius: 8
96
+ }
97
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
98
+ transparent: true,
99
+ style: {
100
+ flex: 1
101
+ }
102
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
103
+ theme: "h1"
104
+ }, "Preview"), /*#__PURE__*/_react.default.createElement(_Themed.Text, {
105
+ theme: "description",
106
+ style: {
107
+ marginTop: 3
108
+ }
109
+ }, "What will this notification look like?"))), /*#__PURE__*/_react.default.createElement(_Themed.View, {
110
+ float: true,
111
+ style: {
112
+ padding: 15,
113
+ margin: 10,
114
+ borderRadius: 8,
115
+ borderWidth: 1,
116
+ borderColor: Colors.borders.light
117
+ }
118
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
119
+ transparent: true,
120
+ style: {
121
+ flexDirection: 'row',
122
+ alignItems: 'center'
123
+ }
124
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
125
+ style: {
126
+ width: 40,
127
+ height: 40,
128
+ borderRadius: 8,
129
+ justifyContent: 'center',
130
+ alignItems: 'center',
131
+ marginRight: 12
132
+ }
133
+ }, /*#__PURE__*/_react.default.createElement(_Components.Icons.NotificationIcon, {
134
+ size: 20,
135
+ color: Colors.text.h1
136
+ })), /*#__PURE__*/_react.default.createElement(_Themed.View, {
137
+ transparent: true,
138
+ style: {
139
+ flex: 1
140
+ }
141
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
142
+ theme: "h1"
143
+ }, notification.title || 'Notification Title'), /*#__PURE__*/_react.default.createElement(_Themed.Text, {
144
+ theme: "description",
145
+ style: {
146
+ marginTop: 4
147
+ }
148
+ }, notification.body || 'Notification message will appear here'))))), /*#__PURE__*/_react.default.createElement(_Themed.View, {
149
+ style: {
150
+ flexDirection: 'row',
151
+ flexWrap: 'wrap'
152
+ }
153
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
154
+ float: true,
155
+ style: {
156
+ minWidth: 300,
157
+ flexGrow: 1,
158
+ margin: 5
159
+ }
160
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
161
+ type: "header",
162
+ style: {
163
+ flexDirection: 'row',
164
+ alignItems: 'center',
165
+ padding: 10,
166
+ borderTopRightRadius: 8,
167
+ borderTopLeftRadius: 8
168
+ }
169
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
170
+ transparent: true,
171
+ style: {
172
+ flex: 1
173
+ }
174
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
175
+ theme: "h1"
176
+ }, "Notification Message"), /*#__PURE__*/_react.default.createElement(_Themed.Text, {
177
+ theme: "description",
178
+ style: {
179
+ marginTop: 3
180
+ }
181
+ }, "Update notification message below"))), /*#__PURE__*/_react.default.createElement(_Themed.View, {
182
+ transparent: true,
183
+ type: "body"
184
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
185
+ transparent: true,
186
+ style: {
187
+ padding: 10
188
+ }
189
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
190
+ theme: "h2",
191
+ style: {
192
+ marginBottom: 10
193
+ }
194
+ }, "Notification Title"), /*#__PURE__*/_react.default.createElement(_Themed.TextInput, {
195
+ value: notification.title,
196
+ onFocusPosition: onFocusPosition,
197
+ placeholder: "Enter notification title",
198
+ onChangeText: title => onChange({
199
+ ...notification,
200
+ title
201
+ })
202
+ })), /*#__PURE__*/_react.default.createElement(_Themed.View, {
203
+ transparent: true,
204
+ style: {
205
+ padding: 10
206
+ }
207
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
208
+ theme: "h2",
209
+ style: {
210
+ marginBottom: 10
211
+ }
212
+ }, "Notification Body"), /*#__PURE__*/_react.default.createElement(_Themed.TextInput, {
213
+ value: notification.body,
214
+ onFocusPosition: onFocusPosition,
215
+ placeholder: "Enter notification message",
216
+ onChangeText: body => onChange({
217
+ ...notification,
218
+ body
219
+ }),
220
+ multiline: true,
221
+ numberOfLines: 6,
222
+ style: {
223
+ padding: 12,
224
+ borderRadius: 8,
225
+ minHeight: 120
226
+ }
227
+ })))), /*#__PURE__*/_react.default.createElement(_Themed.View, {
228
+ float: true,
229
+ style: {
230
+ flexGrow: 1,
231
+ minWidth: 300,
232
+ margin: 5
233
+ }
234
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
235
+ type: "header",
236
+ style: {
237
+ flexDirection: 'row',
238
+ alignItems: 'center',
239
+ padding: 10,
240
+ borderTopRightRadius: 8,
241
+ borderTopLeftRadius: 8
242
+ }
243
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
244
+ transparent: true,
245
+ style: {
246
+ flex: 1
247
+ }
248
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
249
+ theme: "h1"
250
+ }, "Notification Settings"), /*#__PURE__*/_react.default.createElement(_Themed.Text, {
251
+ theme: "description",
252
+ style: {
253
+ marginTop: 3
254
+ }
255
+ }, "Manage settings below"))), /*#__PURE__*/_react.default.createElement(_Themed.View, {
256
+ transparent: true,
257
+ type: "body"
258
+ }, showType === true && /*#__PURE__*/_react.default.createElement(_Themed.View, {
259
+ type: "row",
260
+ style: {
261
+ padding: 10
262
+ }
263
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
264
+ theme: "h2",
265
+ style: {
266
+ flex: 1
267
+ }
268
+ }, "Notification Type"), /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
269
+ selected_value: notification_types.find(t => t.value === notification.type)?.label ?? '',
270
+ dropdown_options: [{
271
+ value: 'type',
272
+ eligible_options: notification_types.map(t => t.label)
273
+ }],
274
+ onOptionSelect: selected => {
275
+ const type = notification_types.find(t => t.label === selected)?.value;
276
+ onChange({
277
+ ...notification,
278
+ type: type
279
+ });
280
+ }
281
+ })), /*#__PURE__*/_react.default.createElement(_Themed.View, {
282
+ transparent: true,
283
+ style: {
284
+ padding: 10
285
+ }
286
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
287
+ theme: "h2",
288
+ style: {
289
+ marginBottom: 10
290
+ }
291
+ }, "Link Override (Optional)"), /*#__PURE__*/_react.default.createElement(_Themed.TextInput, {
292
+ value: notification.link_override || '',
293
+ onFocusPosition: onFocusPosition,
294
+ placeholder: "https://example.com",
295
+ onChangeText: link_override => onChange({
296
+ ...notification,
297
+ link_override
298
+ }),
299
+ style: {
300
+ padding: 12,
301
+ borderRadius: 8
302
+ }
303
+ })), /*#__PURE__*/_react.default.createElement(_Themed.View, {
304
+ transparent: true,
305
+ style: {
306
+ padding: 10
307
+ }
308
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
309
+ theme: "h2",
310
+ style: {
311
+ marginBottom: 10
312
+ }
313
+ }, "Deep Link Path"), /*#__PURE__*/_react.default.createElement(_Themed.View, {
314
+ type: "header",
315
+ style: {
316
+ padding: 12,
317
+ borderRadius: 8,
318
+ marginBottom: 8,
319
+ flexDirection: 'row',
320
+ alignItems: 'center',
321
+ justifyContent: 'space-between'
322
+ }
323
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
324
+ transparent: true,
325
+ style: {
326
+ flex: 1
327
+ }
328
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
329
+ theme: "h1",
330
+ style: {
331
+ marginBottom: 2
332
+ }
333
+ }, selectedPath?.label), /*#__PURE__*/_react.default.createElement(_Themed.Text, {
334
+ theme: "description",
335
+ style: {
336
+ fontSize: 12
337
+ }
338
+ }, selectedPath?.path_name)), selectedPath?.primary === true && /*#__PURE__*/_react.default.createElement(_Themed.View, {
339
+ transparent: true,
340
+ style: {
341
+ paddingHorizontal: 8,
342
+ paddingVertical: 4,
343
+ borderRadius: 4
344
+ }
345
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
346
+ theme: "description",
347
+ color: Colors.text.white,
348
+ style: {
349
+ fontSize: 10
350
+ }
351
+ }, "Primary"))), /*#__PURE__*/_react.default.createElement(_Themed.TextInput, {
352
+ value: pathSearch,
353
+ placeholder: "Search paths to change...",
354
+ onFocusPosition: onFocusPosition,
355
+ onChangeText: setPathSearch,
356
+ style: {
357
+ padding: 12,
358
+ borderRadius: 8,
359
+ marginBottom: 8
360
+ }
361
+ }), pathSearch ? /*#__PURE__*/_react.default.createElement(_Themed.View, {
362
+ float: true,
363
+ style: {
364
+ maxHeight: 300,
365
+ borderRadius: 8,
366
+ borderWidth: 1,
367
+ borderColor: Colors.borders.light
368
+ }
369
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
370
+ data: filteredPaths,
371
+ keyExtractor: item => item.path_name,
372
+ renderItem: ({
373
+ item
374
+ }) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
375
+ onPress: () => {
376
+ setSelectedPath(item);
377
+ setPathParams(item.params);
378
+ setPathSearch('');
379
+ },
380
+ style: {
381
+ padding: 12,
382
+ borderBottomWidth: 1,
383
+ borderColor: Colors.borders.light
384
+ }
385
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
386
+ transparent: true,
387
+ style: {
388
+ flexDirection: 'row',
389
+ alignItems: 'center',
390
+ justifyContent: 'space-between'
391
+ }
392
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
393
+ transparent: true,
394
+ style: {
395
+ flex: 1
396
+ }
397
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
398
+ theme: "h2",
399
+ style: {
400
+ marginBottom: 2
401
+ }
402
+ }, item.label), /*#__PURE__*/_react.default.createElement(_Themed.Text, {
403
+ theme: "description",
404
+ style: {
405
+ fontSize: 11
406
+ }
407
+ }, item.path_name)), item.primary === true && /*#__PURE__*/_react.default.createElement(_Themed.View, {
408
+ transparent: true,
409
+ style: {
410
+ paddingHorizontal: 6,
411
+ paddingVertical: 2,
412
+ borderRadius: 4,
413
+ marginLeft: 8
414
+ }
415
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
416
+ theme: "description",
417
+ color: Colors.text.white,
418
+ style: {
419
+ fontSize: 9
420
+ }
421
+ }, "Primary")))),
422
+ ListEmptyComponent: /*#__PURE__*/_react.default.createElement(_Themed.View, {
423
+ style: {
424
+ padding: 20,
425
+ alignItems: 'center'
426
+ }
427
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
428
+ theme: "description"
429
+ }, "No paths found"))
430
+ })) : null), Object.keys(selectedPath?.params ?? {}).length > 0 ? /*#__PURE__*/_react.default.createElement(_Themed.View, {
431
+ style: {
432
+ padding: 10
433
+ }
434
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
435
+ theme: "h2",
436
+ style: {
437
+ marginBottom: 8
438
+ }
439
+ }, "Path Parameters"), /*#__PURE__*/_react.default.createElement(_Themed.View, {
440
+ type: "header",
441
+ style: {
442
+ padding: 12,
443
+ borderRadius: 8
444
+ }
445
+ }, Object.keys(selectedPath?.params ?? {}).map(paramKey => {
446
+ const isRequired = selectedPath?.requiredParams.includes(paramKey);
447
+ return /*#__PURE__*/_react.default.createElement(_Themed.View, {
448
+ key: paramKey,
449
+ transparent: true,
450
+ style: {
451
+ marginBottom: 12
452
+ }
453
+ }, /*#__PURE__*/_react.default.createElement(_Themed.View, {
454
+ transparent: true,
455
+ style: {
456
+ flexDirection: 'row',
457
+ alignItems: 'center',
458
+ marginBottom: 4
459
+ }
460
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
461
+ theme: "description"
462
+ }, paramKey), isRequired ? /*#__PURE__*/_react.default.createElement(_Themed.View, {
463
+ transparent: true,
464
+ style: {
465
+ marginLeft: 4,
466
+ paddingHorizontal: 6,
467
+ paddingVertical: 2,
468
+ backgroundColor: Colors.text.error,
469
+ borderRadius: 4
470
+ }
471
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
472
+ theme: "description",
473
+ color: Colors.text.white,
474
+ style: {
475
+ fontSize: 10
476
+ }
477
+ }, "Required")) : /*#__PURE__*/_react.default.createElement(_Themed.View, {
478
+ transparent: true,
479
+ style: {
480
+ marginLeft: 4,
481
+ paddingHorizontal: 6,
482
+ paddingVertical: 2,
483
+ backgroundColor: Colors.borders.light,
484
+ borderRadius: 4
485
+ }
486
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
487
+ theme: "description",
488
+ style: {
489
+ fontSize: 10
490
+ }
491
+ }, "Optional"))), /*#__PURE__*/_react.default.createElement(_Themed.TextInput, {
492
+ value: pathParams[paramKey] || '',
493
+ onFocusPosition: onFocusPosition,
494
+ placeholder: `Enter ${paramKey}${isRequired ? ' (required)' : ' (optional)'}`,
495
+ onChangeText: value => setPathParams({
496
+ ...pathParams,
497
+ [paramKey]: value
498
+ }),
499
+ style: {
500
+ padding: 10,
501
+ borderRadius: 8,
502
+ borderWidth: isRequired ? 1 : 0,
503
+ borderColor: isRequired ? Colors.text.error : 'transparent'
504
+ }
505
+ }));
506
+ }))) : null))));
507
+ };
508
+ var _default = exports.default = NotificationBuilderForm;
509
+ //# sourceMappingURL=NotificationBuilderForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Themed","_useColors","_api","_Components","_Dropdown","_interopRequireDefault","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","notification_types","label","value","NotificationBuilderForm","notification","onChange","onFocusPosition","showPreview","showType","Colors","useColors","pathSearch","setPathSearch","useState","selectedPath","setSelectedPath","NotificationHelpers","app_paths","pathParams","setPathParams","useEffect","options","data","path_name","path","find","p","params","newOptions","id","Date","now","toString","body","icon","type","player_id","pageStack","page","pageParams","filteredPaths","useMemo","search","toLowerCase","filter","includes","createElement","View","transparent","style","flex","float","margin","flexDirection","alignItems","padding","borderTopRightRadius","borderTopLeftRadius","Text","theme","marginTop","borderRadius","borderWidth","borderColor","borders","light","width","height","justifyContent","marginRight","Icons","NotificationIcon","size","color","text","h1","title","flexWrap","minWidth","flexGrow","marginBottom","TextInput","placeholder","onChangeText","multiline","numberOfLines","minHeight","selected_value","dropdown_options","eligible_options","map","onOptionSelect","selected","link_override","fontSize","primary","paddingHorizontal","paddingVertical","white","maxHeight","FlatList","keyExtractor","item","renderItem","TouchableOpacity","onPress","borderBottomWidth","marginLeft","ListEmptyComponent","keys","length","paramKey","isRequired","requiredParams","key","backgroundColor","error","_default","exports"],"sourceRoot":"../../../../../src","sources":["NotificationManager/components/shared/NotificationBuilderForm.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAC,sBAAA,CAAAP,OAAA;AAAoD,SAAAO,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA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CAAC;AAEf,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvI,OAAA,GAEaoB,uBAAuB","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _Themed = require("../../../Components/Themed");
9
+ var _useColors = require("../../../constants/useColors");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const StatusBadge = ({
12
+ status
13
+ }) => {
14
+ const Colors = (0, _useColors.useColors)();
15
+ const getStatusColor = () => {
16
+ switch (status) {
17
+ case 'pending':
18
+ return Colors.borders.light;
19
+ case 'ready':
20
+ return Colors.text.action;
21
+ case 'processing':
22
+ return Colors.text.warning;
23
+ case 'sent':
24
+ return Colors.text.success;
25
+ case 'failed':
26
+ return Colors.text.error;
27
+ case 'cancelled':
28
+ return Colors.text.h2;
29
+ default:
30
+ return Colors.borders.light;
31
+ }
32
+ };
33
+ const getStatusLabel = () => {
34
+ switch (status) {
35
+ case 'pending':
36
+ return 'Draft';
37
+ case 'ready':
38
+ return 'Scheduled';
39
+ case 'processing':
40
+ return 'Sending';
41
+ case 'sent':
42
+ return 'Sent';
43
+ case 'failed':
44
+ return 'Failed';
45
+ case 'cancelled':
46
+ return 'Cancelled';
47
+ default:
48
+ return status;
49
+ }
50
+ };
51
+ return /*#__PURE__*/_react.default.createElement(_Themed.View, {
52
+ transparent: true,
53
+ style: {
54
+ paddingHorizontal: 8,
55
+ paddingVertical: 4,
56
+ backgroundColor: getStatusColor(),
57
+ borderRadius: 4
58
+ }
59
+ }, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
60
+ theme: "description",
61
+ color: Colors.text.white,
62
+ style: {
63
+ fontSize: 11,
64
+ fontWeight: '600'
65
+ }
66
+ }, getStatusLabel()));
67
+ };
68
+ var _default = exports.default = StatusBadge;
69
+ //# sourceMappingURL=StatusBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_Themed","_useColors","e","__esModule","default","StatusBadge","status","Colors","useColors","getStatusColor","borders","light","text","action","warning","success","error","h2","getStatusLabel","createElement","View","transparent","style","paddingHorizontal","paddingVertical","backgroundColor","borderRadius","Text","theme","color","white","fontSize","fontWeight","_default","exports"],"sourceRoot":"../../../../../src","sources":["NotificationManager/components/shared/StatusBadge.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAyD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOzD,MAAMG,WAAW,GAAGA,CAAC;EAAEC;AAAyB,CAAC,KAAK;EAClD,MAAMC,MAAM,GAAG,IAAAC,oBAAS,EAAC,CAAC;EAE1B,MAAMC,cAAc,GAAGA,CAAA,KAAM;IACzB,QAAQH,MAAM;MACV,KAAK,SAAS;QACV,OAAOC,MAAM,CAACG,OAAO,CAACC,KAAK;MAC/B,KAAK,OAAO;QACR,OAAOJ,MAAM,CAACK,IAAI,CAACC,MAAM;MAC7B,KAAK,YAAY;QACb,OAAON,MAAM,CAACK,IAAI,CAACE,OAAO;MAC9B,KAAK,MAAM;QACP,OAAOP,MAAM,CAACK,IAAI,CAACG,OAAO;MAC9B,KAAK,QAAQ;QACT,OAAOR,MAAM,CAACK,IAAI,CAACI,KAAK;MAC5B,KAAK,WAAW;QACZ,OAAOT,MAAM,CAACK,IAAI,CAACK,EAAE;MACzB;QACI,OAAOV,MAAM,CAACG,OAAO,CAACC,KAAK;IACnC;EACJ,CAAC;EAED,MAAMO,cAAc,GAAGA,CAAA,KAAM;IACzB,QAAQZ,MAAM;MACV,KAAK,SAAS;QACV,OAAO,OAAO;MAClB,KAAK,OAAO;QACR,O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