@gamepark/react-game 7.0.0-beta.0 → 7.0.0-beta.3

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 (685) hide show
  1. package/dist/components/Avatar/Avatar.js +37 -60
  2. package/dist/components/Avatar/Avatar.js.map +1 -1
  3. package/dist/components/Avatar/ChatSpeechBubble.js +25 -67
  4. package/dist/components/Avatar/ChatSpeechBubble.js.map +1 -1
  5. package/dist/components/Avatar/SpeechBubble.js +86 -49
  6. package/dist/components/Avatar/SpeechBubble.js.map +1 -1
  7. package/dist/components/Avatar/index.js +3 -19
  8. package/dist/components/Avatar/index.js.map +1 -1
  9. package/dist/components/GamePoints/GamePointIcon.js +7 -24
  10. package/dist/components/GamePoints/GamePointIcon.js.map +1 -1
  11. package/dist/components/GamePoints/GamePoints.js +20 -63
  12. package/dist/components/GamePoints/GamePoints.js.map +1 -1
  13. package/dist/components/GamePoints/index.js +2 -18
  14. package/dist/components/GamePoints/index.js.map +1 -1
  15. package/dist/components/GameProvider/GameContext.js +7 -14
  16. package/dist/components/GameProvider/GameContext.js.map +1 -1
  17. package/dist/components/GameProvider/GameProvider.js +91 -136
  18. package/dist/components/GameProvider/GameProvider.js.map +1 -1
  19. package/dist/components/GameProvider/index.js +2 -18
  20. package/dist/components/GameProvider/index.js.map +1 -1
  21. package/dist/components/Header/Header.js +34 -43
  22. package/dist/components/Header/Header.js.map +1 -1
  23. package/dist/components/Header/HeaderText.js +15 -31
  24. package/dist/components/Header/HeaderText.js.map +1 -1
  25. package/dist/components/Header/MaterialHeader.js +42 -90
  26. package/dist/components/Header/MaterialHeader.js.map +1 -1
  27. package/dist/components/Header/index.js +3 -19
  28. package/dist/components/Header/index.js.map +1 -1
  29. package/dist/components/ImagesLoader/ImagesLoader.js +9 -14
  30. package/dist/components/ImagesLoader/ImagesLoader.js.map +1 -1
  31. package/dist/components/ImagesLoader/index.js +1 -17
  32. package/dist/components/ImagesLoader/index.js.map +1 -1
  33. package/dist/components/JournalTabs/Chat/Chat.js +7 -33
  34. package/dist/components/JournalTabs/Chat/Chat.js.map +1 -1
  35. package/dist/components/JournalTabs/Chat/ChatMessage.js +12 -17
  36. package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -1
  37. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +19 -35
  38. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -1
  39. package/dist/components/JournalTabs/Chat/ChatTextInput.js +58 -60
  40. package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -1
  41. package/dist/components/JournalTabs/Chat/CommonChat.d.ts +1 -1
  42. package/dist/components/JournalTabs/Chat/CommonChat.js +43 -48
  43. package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -1
  44. package/dist/components/JournalTabs/Chat/LocalChat.js +10 -61
  45. package/dist/components/JournalTabs/Chat/LocalChat.js.map +1 -1
  46. package/dist/components/JournalTabs/Chat/RemoteChat.js +15 -43
  47. package/dist/components/JournalTabs/Chat/RemoteChat.js.map +1 -1
  48. package/dist/components/JournalTabs/Chat/SignInToChat.js +36 -22
  49. package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -1
  50. package/dist/components/JournalTabs/Chat/index.js +5 -21
  51. package/dist/components/JournalTabs/Chat/index.js.map +1 -1
  52. package/dist/components/JournalTabs/History/GameOverHistory.js +14 -20
  53. package/dist/components/JournalTabs/History/GameOverHistory.js.map +1 -1
  54. package/dist/components/JournalTabs/History/History.d.ts +1 -1
  55. package/dist/components/JournalTabs/History/History.js +59 -54
  56. package/dist/components/JournalTabs/History/History.js.map +1 -1
  57. package/dist/components/JournalTabs/History/HistoryEntry.js +37 -43
  58. package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -1
  59. package/dist/components/JournalTabs/History/StartGameHistory.js +12 -17
  60. package/dist/components/JournalTabs/History/StartGameHistory.js.map +1 -1
  61. package/dist/components/JournalTabs/History/index.js +2 -18
  62. package/dist/components/JournalTabs/History/index.js.map +1 -1
  63. package/dist/components/JournalTabs/JournalTabs.js +122 -68
  64. package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
  65. package/dist/components/JournalTabs/index.js +1 -17
  66. package/dist/components/JournalTabs/index.js.map +1 -1
  67. package/dist/components/Letterbox/Letterbox.js +29 -41
  68. package/dist/components/Letterbox/Letterbox.js.map +1 -1
  69. package/dist/components/Letterbox/index.js +1 -17
  70. package/dist/components/Letterbox/index.js.map +1 -1
  71. package/dist/components/LoadingScreen/LoadingScreen.js +83 -89
  72. package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
  73. package/dist/components/LoadingScreen/index.js +1 -17
  74. package/dist/components/LoadingScreen/index.js.map +1 -1
  75. package/dist/components/Log/InternalLiveLogContainer.js +73 -83
  76. package/dist/components/Log/InternalLiveLogContainer.js.map +1 -1
  77. package/dist/components/Log/LiveLogButton.js +14 -19
  78. package/dist/components/Log/LiveLogButton.js.map +1 -1
  79. package/dist/components/Log/LiveLogContainer.js +6 -21
  80. package/dist/components/Log/LiveLogContainer.js.map +1 -1
  81. package/dist/components/Log/LogDescription.js +1 -2
  82. package/dist/components/Log/LogItem.js +42 -42
  83. package/dist/components/Log/LogItem.js.map +1 -1
  84. package/dist/components/Log/index.js +3 -19
  85. package/dist/components/Log/index.js.map +1 -1
  86. package/dist/components/Picture/Picture.js +6 -32
  87. package/dist/components/Picture/Picture.js.map +1 -1
  88. package/dist/components/Picture/index.js +1 -17
  89. package/dist/components/Picture/index.js.map +1 -1
  90. package/dist/components/PlayerPanel/Counters.d.ts +2 -1
  91. package/dist/components/PlayerPanel/Counters.js +82 -39
  92. package/dist/components/PlayerPanel/Counters.js.map +1 -1
  93. package/dist/components/PlayerPanel/PlayerPanel.js +83 -53
  94. package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
  95. package/dist/components/PlayerPanel/StyledPlayerPanel.js +145 -80
  96. package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
  97. package/dist/components/PlayerPanel/index.js +3 -19
  98. package/dist/components/PlayerPanel/index.js.map +1 -1
  99. package/dist/components/PlayerTimer/PlayerTimer.d.ts +1 -1
  100. package/dist/components/PlayerTimer/PlayerTimer.js +32 -61
  101. package/dist/components/PlayerTimer/PlayerTimer.js.map +1 -1
  102. package/dist/components/PlayerTimer/index.js +1 -17
  103. package/dist/components/PlayerTimer/index.js.map +1 -1
  104. package/dist/components/Scoring/ScoringDescription.js +1 -2
  105. package/dist/components/Scoring/index.js +1 -17
  106. package/dist/components/Scoring/index.js.map +1 -1
  107. package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +82 -105
  108. package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
  109. package/dist/components/buttons/PlayMoveButton/index.js +1 -17
  110. package/dist/components/buttons/PlayMoveButton/index.js.map +1 -1
  111. package/dist/components/buttons/ThemeButton/ThemeButton.js +5 -20
  112. package/dist/components/buttons/ThemeButton/ThemeButton.js.map +1 -1
  113. package/dist/components/buttons/ThemeButton/index.js +1 -17
  114. package/dist/components/buttons/ThemeButton/index.js.map +1 -1
  115. package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js +17 -59
  116. package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js.map +1 -1
  117. package/dist/components/buttons/UndoMovesButton/index.js +1 -17
  118. package/dist/components/buttons/UndoMovesButton/index.js.map +1 -1
  119. package/dist/components/buttons/index.js +3 -19
  120. package/dist/components/buttons/index.js.map +1 -1
  121. package/dist/components/dialogs/Dialog.js +57 -67
  122. package/dist/components/dialogs/Dialog.js.map +1 -1
  123. package/dist/components/dialogs/FailuresDialog.js +39 -73
  124. package/dist/components/dialogs/FailuresDialog.js.map +1 -1
  125. package/dist/components/dialogs/ResultDialog/RematchDisplay.js +55 -52
  126. package/dist/components/dialogs/ResultDialog/RematchDisplay.js.map +1 -1
  127. package/dist/components/dialogs/ResultDialog/RematchSection.js +17 -27
  128. package/dist/components/dialogs/ResultDialog/RematchSection.js.map +1 -1
  129. package/dist/components/dialogs/ResultDialog/ResultDialog.js +130 -99
  130. package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
  131. package/dist/components/dialogs/ResultDialog/index.js +2 -18
  132. package/dist/components/dialogs/ResultDialog/index.js.map +1 -1
  133. package/dist/components/dialogs/ResultDialog/useScoringTable.js +20 -27
  134. package/dist/components/dialogs/ResultDialog/useScoringTable.js.map +1 -1
  135. package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js +32 -31
  136. package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js.map +1 -1
  137. package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js +22 -36
  138. package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js.map +1 -1
  139. package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +121 -117
  140. package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
  141. package/dist/components/dialogs/RulesDialog/RulesDialog.js +23 -42
  142. package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
  143. package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.d.ts +1 -1
  144. package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js +36 -27
  145. package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js.map +1 -1
  146. package/dist/components/dialogs/RulesDialog/index.js +2 -18
  147. package/dist/components/dialogs/RulesDialog/index.js.map +1 -1
  148. package/dist/components/dialogs/index.js +4 -20
  149. package/dist/components/dialogs/index.js.map +1 -1
  150. package/dist/components/index.js +17 -33
  151. package/dist/components/index.js.map +1 -1
  152. package/dist/components/material/ComponentDescription.js +32 -18
  153. package/dist/components/material/ComponentDescription.js.map +1 -1
  154. package/dist/components/material/Dices/CubicDiceDescription.js +58 -102
  155. package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
  156. package/dist/components/material/Dices/index.js +1 -17
  157. package/dist/components/material/Dices/index.js.map +1 -1
  158. package/dist/components/material/DraggableMaterial.js +121 -198
  159. package/dist/components/material/DraggableMaterial.js.map +1 -1
  160. package/dist/components/material/FlatMaterial/BoardDescription.js +3 -27
  161. package/dist/components/material/FlatMaterial/BoardDescription.js.map +1 -1
  162. package/dist/components/material/FlatMaterial/CardDescription.js +6 -56
  163. package/dist/components/material/FlatMaterial/CardDescription.js.map +1 -1
  164. package/dist/components/material/FlatMaterial/FlatMaterial.js +88 -133
  165. package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
  166. package/dist/components/material/FlatMaterial/MoneyDescription.js +10 -34
  167. package/dist/components/material/FlatMaterial/MoneyDescription.js.map +1 -1
  168. package/dist/components/material/FlatMaterial/PolyhexDescription.js +12 -63
  169. package/dist/components/material/FlatMaterial/PolyhexDescription.js.map +1 -1
  170. package/dist/components/material/FlatMaterial/TokenDescription.js +10 -66
  171. package/dist/components/material/FlatMaterial/TokenDescription.js.map +1 -1
  172. package/dist/components/material/FlatMaterial/index.js +6 -22
  173. package/dist/components/material/FlatMaterial/index.js.map +1 -1
  174. package/dist/components/material/GameTable/DropPreview.js +31 -66
  175. package/dist/components/material/GameTable/DropPreview.js.map +1 -1
  176. package/dist/components/material/GameTable/DynamicItemsDisplay.js +22 -81
  177. package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -1
  178. package/dist/components/material/GameTable/GameMaterialDisplay.js +25 -30
  179. package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
  180. package/dist/components/material/GameTable/GameTable.js +78 -125
  181. package/dist/components/material/GameTable/GameTable.js.map +1 -1
  182. package/dist/components/material/GameTable/GameTableNavigation.js +58 -67
  183. package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
  184. package/dist/components/material/GameTable/ItemDisplay.js +88 -153
  185. package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
  186. package/dist/components/material/GameTable/StaticItemsDisplay.js +23 -83
  187. package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -1
  188. package/dist/components/material/GameTable/StaticLocationsDisplay.js +11 -28
  189. package/dist/components/material/GameTable/StaticLocationsDisplay.js.map +1 -1
  190. package/dist/components/material/GameTable/focus/FocusProvider.js +28 -53
  191. package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
  192. package/dist/components/material/GameTable/focus/MaterialFocus.js +1 -2
  193. package/dist/components/material/GameTable/focus/index.js +2 -18
  194. package/dist/components/material/GameTable/focus/index.js.map +1 -1
  195. package/dist/components/material/GameTable/index.js +3 -19
  196. package/dist/components/material/GameTable/index.js.map +1 -1
  197. package/dist/components/material/ImageLoader/MaterialImageLoader.js +17 -89
  198. package/dist/components/material/ImageLoader/MaterialImageLoader.js.map +1 -1
  199. package/dist/components/material/ImageLoader/index.js +1 -17
  200. package/dist/components/material/ImageLoader/index.js.map +1 -1
  201. package/dist/components/material/ItemMenuButton.js +41 -69
  202. package/dist/components/material/ItemMenuButton.js.map +1 -1
  203. package/dist/components/material/ItemMenuWrapper.js +16 -66
  204. package/dist/components/material/ItemMenuWrapper.js.map +1 -1
  205. package/dist/components/material/MaterialComponent.d.ts +2 -2
  206. package/dist/components/material/MaterialComponent.js +22 -44
  207. package/dist/components/material/MaterialComponent.js.map +1 -1
  208. package/dist/components/material/MaterialComponentType.js +2 -5
  209. package/dist/components/material/MaterialComponentType.js.map +1 -1
  210. package/dist/components/material/MaterialDescription.d.ts +2 -2
  211. package/dist/components/material/MaterialDescription.js +125 -164
  212. package/dist/components/material/MaterialDescription.js.map +1 -1
  213. package/dist/components/material/MobileMaterialDescription.js +21 -83
  214. package/dist/components/material/MobileMaterialDescription.js.map +1 -1
  215. package/dist/components/material/Wheel/WheelContent.js +26 -29
  216. package/dist/components/material/Wheel/WheelContent.js.map +1 -1
  217. package/dist/components/material/Wheel/WheelDescription.js +46 -105
  218. package/dist/components/material/Wheel/WheelDescription.js.map +1 -1
  219. package/dist/components/material/Wheel/WheelItem.js +43 -42
  220. package/dist/components/material/Wheel/WheelItem.js.map +1 -1
  221. package/dist/components/material/Wheel/index.js +1 -17
  222. package/dist/components/material/Wheel/index.js.map +1 -1
  223. package/dist/components/material/Writing/WritingDescription.js +44 -91
  224. package/dist/components/material/Writing/WritingDescription.js.map +1 -1
  225. package/dist/components/material/Writing/index.js +1 -17
  226. package/dist/components/material/Writing/index.js.map +1 -1
  227. package/dist/components/material/animations/CreateItemAnimations.d.ts +6 -1
  228. package/dist/components/material/animations/CreateItemAnimations.js +43 -67
  229. package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
  230. package/dist/components/material/animations/DeleteItemAnimations.d.ts +6 -1
  231. package/dist/components/material/animations/DeleteItemAnimations.js +44 -63
  232. package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
  233. package/dist/components/material/animations/DeleteItemAtOnceAnimations.js +30 -53
  234. package/dist/components/material/animations/DeleteItemAtOnceAnimations.js.map +1 -1
  235. package/dist/components/material/animations/ItemAnimations.d.ts +6 -1
  236. package/dist/components/material/animations/ItemAnimations.js +21 -55
  237. package/dist/components/material/animations/ItemAnimations.js.map +1 -1
  238. package/dist/components/material/animations/MaterialAnimations.js +30 -56
  239. package/dist/components/material/animations/MaterialAnimations.js.map +1 -1
  240. package/dist/components/material/animations/MaterialGameAnimations.js +53 -131
  241. package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
  242. package/dist/components/material/animations/MoveItemAnimations.js +62 -100
  243. package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
  244. package/dist/components/material/animations/MoveItemAtOnceAnimations.js +31 -66
  245. package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
  246. package/dist/components/material/animations/RollItemAnimations.js +28 -76
  247. package/dist/components/material/animations/RollItemAnimations.js.map +1 -1
  248. package/dist/components/material/animations/ShuffleAnimations.js +9 -31
  249. package/dist/components/material/animations/ShuffleAnimations.js.map +1 -1
  250. package/dist/components/material/animations/getFirstStockItemTransforms.util.js +9 -24
  251. package/dist/components/material/animations/getFirstStockItemTransforms.util.js.map +1 -1
  252. package/dist/components/material/animations/index.js +8 -26
  253. package/dist/components/material/animations/index.js.map +1 -1
  254. package/dist/components/material/animations/rotations.utils.js +50 -83
  255. package/dist/components/material/animations/rotations.utils.js.map +1 -1
  256. package/dist/components/material/animations/transformItem.util.js +6 -35
  257. package/dist/components/material/animations/transformItem.util.js.map +1 -1
  258. package/dist/components/material/index.js +15 -31
  259. package/dist/components/material/index.js.map +1 -1
  260. package/dist/components/material/locations/DropAreaDescription.js +20 -80
  261. package/dist/components/material/locations/DropAreaDescription.js.map +1 -1
  262. package/dist/components/material/locations/HexGridDropAreaDescription.js +34 -101
  263. package/dist/components/material/locations/HexGridDropAreaDescription.js.map +1 -1
  264. package/dist/components/material/locations/LocationComponent.js +53 -88
  265. package/dist/components/material/locations/LocationComponent.js.map +1 -1
  266. package/dist/components/material/locations/LocationDescription.js +58 -113
  267. package/dist/components/material/locations/LocationDescription.js.map +1 -1
  268. package/dist/components/material/locations/LocationDisplay.js +25 -79
  269. package/dist/components/material/locations/LocationDisplay.js.map +1 -1
  270. package/dist/components/material/locations/LocationsMask.js +16 -23
  271. package/dist/components/material/locations/LocationsMask.js.map +1 -1
  272. package/dist/components/material/locations/SimpleDropArea.js +42 -90
  273. package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
  274. package/dist/components/material/locations/index.js +5 -21
  275. package/dist/components/material/locations/index.js.map +1 -1
  276. package/dist/components/material/sound/AudioLoader.js +43 -92
  277. package/dist/components/material/sound/AudioLoader.js.map +1 -1
  278. package/dist/components/material/sound/MaterialGameSounds.js +42 -76
  279. package/dist/components/material/sound/MaterialGameSounds.js.map +1 -1
  280. package/dist/components/material/sound/MaterialSoundConfig.js +11 -8
  281. package/dist/components/material/sound/MaterialSoundConfig.js.map +1 -1
  282. package/dist/components/material/sound/MaterialSoundLoader.js +16 -69
  283. package/dist/components/material/sound/MaterialSoundLoader.js.map +1 -1
  284. package/dist/components/material/sound/index.js +2 -18
  285. package/dist/components/material/sound/index.js.map +1 -1
  286. package/dist/components/material/sound/sound.utils.js +1 -5
  287. package/dist/components/material/sound/sound.utils.js.map +1 -1
  288. package/dist/components/material/utils/IsLocationSubset.js +4 -8
  289. package/dist/components/material/utils/IsLocationSubset.js.map +1 -1
  290. package/dist/components/material/utils/getBestDropMove.d.ts +1 -1
  291. package/dist/components/material/utils/getBestDropMove.js +12 -26
  292. package/dist/components/material/utils/getBestDropMove.js.map +1 -1
  293. package/dist/components/material/utils/index.js +1 -17
  294. package/dist/components/material/utils/index.js.map +1 -1
  295. package/dist/components/material/utils/isDroppedItem.js +7 -24
  296. package/dist/components/material/utils/isDroppedItem.js.map +1 -1
  297. package/dist/components/material/utils/isPlacedOnItem.js +5 -9
  298. package/dist/components/material/utils/isPlacedOnItem.js.map +1 -1
  299. package/dist/components/material/utils/isRotationMove.js +5 -20
  300. package/dist/components/material/utils/isRotationMove.js.map +1 -1
  301. package/dist/components/material/utils/useIsAnimatingPlayerAction.js +4 -10
  302. package/dist/components/material/utils/useIsAnimatingPlayerAction.js.map +1 -1
  303. package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +30 -32
  304. package/dist/components/menus/EjectPlayer/EjectPlayerButton.js.map +1 -1
  305. package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +47 -66
  306. package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
  307. package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +25 -50
  308. package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js.map +1 -1
  309. package/dist/components/menus/EjectPlayer/index.js +3 -19
  310. package/dist/components/menus/EjectPlayer/index.js.map +1 -1
  311. package/dist/components/menus/Fullscreen/FullscreenButton.js +11 -15
  312. package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
  313. package/dist/components/menus/Fullscreen/FullscreenDialog.js +36 -60
  314. package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
  315. package/dist/components/menus/Fullscreen/FullscreenPopButton.js +28 -42
  316. package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
  317. package/dist/components/menus/Fullscreen/index.js +3 -19
  318. package/dist/components/menus/Fullscreen/index.js.map +1 -1
  319. package/dist/components/menus/GiveUpButton/GiveUpButton.js +49 -60
  320. package/dist/components/menus/GiveUpButton/GiveUpButton.js.map +1 -1
  321. package/dist/components/menus/GiveUpButton/index.js +1 -17
  322. package/dist/components/menus/GiveUpButton/index.js.map +1 -1
  323. package/dist/components/menus/Menu/LogoIcon.js +2 -17
  324. package/dist/components/menus/Menu/LogoIcon.js.map +1 -1
  325. package/dist/components/menus/Menu/Menu.d.ts +2 -2
  326. package/dist/components/menus/Menu/Menu.js +117 -93
  327. package/dist/components/menus/Menu/Menu.js.map +1 -1
  328. package/dist/components/menus/Menu/MenuPopButton.js +21 -60
  329. package/dist/components/menus/Menu/MenuPopButton.js.map +1 -1
  330. package/dist/components/menus/Menu/NavButton.js +3 -32
  331. package/dist/components/menus/Menu/NavButton.js.map +1 -1
  332. package/dist/components/menus/Menu/index.js +1 -17
  333. package/dist/components/menus/Menu/index.js.map +1 -1
  334. package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js +20 -42
  335. package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js.map +1 -1
  336. package/dist/components/menus/PlayerQuit/index.js +1 -17
  337. package/dist/components/menus/PlayerQuit/index.js.map +1 -1
  338. package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +12 -17
  339. package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
  340. package/dist/components/menus/RestartTutorialButton/index.js +1 -17
  341. package/dist/components/menus/RestartTutorialButton/index.js.map +1 -1
  342. package/dist/components/menus/Result/Medal.js +8 -35
  343. package/dist/components/menus/Result/Medal.js.map +1 -1
  344. package/dist/components/menus/Result/MedalBronze.js +2 -17
  345. package/dist/components/menus/Result/MedalBronze.js.map +1 -1
  346. package/dist/components/menus/Result/MedalGold.js +2 -17
  347. package/dist/components/menus/Result/MedalGold.js.map +1 -1
  348. package/dist/components/menus/Result/MedalSilver.js +2 -17
  349. package/dist/components/menus/Result/MedalSilver.js.map +1 -1
  350. package/dist/components/menus/Result/ResultButton.js +8 -23
  351. package/dist/components/menus/Result/ResultButton.js.map +1 -1
  352. package/dist/components/menus/Result/ResultPopButton.js +46 -35
  353. package/dist/components/menus/Result/ResultPopButton.js.map +1 -1
  354. package/dist/components/menus/Result/index.js +3 -19
  355. package/dist/components/menus/Result/index.js.map +1 -1
  356. package/dist/components/menus/SoundButton/SoundButton.js +11 -15
  357. package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
  358. package/dist/components/menus/SoundButton/index.js +1 -17
  359. package/dist/components/menus/SoundButton/index.js.map +1 -1
  360. package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +68 -70
  361. package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
  362. package/dist/components/menus/TimeStatsButton/index.js +1 -17
  363. package/dist/components/menus/TimeStatsButton/index.js.map +1 -1
  364. package/dist/components/menus/UndoButton/UndoButton.js +11 -31
  365. package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
  366. package/dist/components/menus/UndoButton/UndoPopButton.js +24 -38
  367. package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
  368. package/dist/components/menus/UndoButton/index.js +2 -18
  369. package/dist/components/menus/UndoButton/index.js.map +1 -1
  370. package/dist/components/menus/index.js +6 -22
  371. package/dist/components/menus/index.js.map +1 -1
  372. package/dist/components/menus/menuCss.d.ts +9 -9
  373. package/dist/components/menus/menuCss.js +102 -19
  374. package/dist/components/menus/menuCss.js.map +1 -1
  375. package/dist/components/tutorial/MaterialTutorial.js +19 -27
  376. package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
  377. package/dist/components/tutorial/MaterialTutorialDisplay.js +84 -95
  378. package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
  379. package/dist/components/tutorial/TutorialRulesWrapper.js +54 -63
  380. package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
  381. package/dist/components/tutorial/index.js +1 -17
  382. package/dist/components/tutorial/index.js.map +1 -1
  383. package/dist/css/GameTheme.js +4 -7
  384. package/dist/css/GameTheme.js.map +1 -1
  385. package/dist/css/addStylesheetUrl.js +2 -6
  386. package/dist/css/addStylesheetUrl.js.map +1 -1
  387. package/dist/css/backgroundCss.d.ts +1 -1
  388. package/dist/css/backgroundCss.js +5 -11
  389. package/dist/css/backgroundCss.js.map +1 -1
  390. package/dist/css/buttonCss.d.ts +3 -3
  391. package/dist/css/buttonCss.js +45 -13
  392. package/dist/css/buttonCss.js.map +1 -1
  393. package/dist/css/componentSizeCss.d.ts +5 -5
  394. package/dist/css/componentSizeCss.js +17 -22
  395. package/dist/css/componentSizeCss.js.map +1 -1
  396. package/dist/css/cursorCss.d.ts +3 -3
  397. package/dist/css/cursorCss.js +10 -12
  398. package/dist/css/cursorCss.js.map +1 -1
  399. package/dist/css/fadeIn.d.ts +1 -1
  400. package/dist/css/fadeIn.js +9 -12
  401. package/dist/css/fadeIn.js.map +1 -1
  402. package/dist/css/index.js +10 -26
  403. package/dist/css/index.js.map +1 -1
  404. package/dist/css/shadowEffect.d.ts +1 -1
  405. package/dist/css/shadowEffect.js +15 -10
  406. package/dist/css/shadowEffect.js.map +1 -1
  407. package/dist/css/shineEffect.d.ts +1 -1
  408. package/dist/css/shineEffect.js +31 -11
  409. package/dist/css/shineEffect.js.map +1 -1
  410. package/dist/css/transformCss.d.ts +2 -2
  411. package/dist/css/transformCss.js +7 -18
  412. package/dist/css/transformCss.js.map +1 -1
  413. package/dist/hooks/index.d.ts +0 -1
  414. package/dist/hooks/index.js +26 -43
  415. package/dist/hooks/index.js.map +1 -1
  416. package/dist/hooks/useActions.js +2 -8
  417. package/dist/hooks/useActions.js.map +1 -1
  418. package/dist/hooks/useAnimations.js +18 -52
  419. package/dist/hooks/useAnimations.js.map +1 -1
  420. package/dist/hooks/useDraggedItem.js +9 -28
  421. package/dist/hooks/useDraggedItem.js.map +1 -1
  422. package/dist/hooks/useFailures.d.ts +1 -1
  423. package/dist/hooks/useFailures.js +10 -10
  424. package/dist/hooks/useFailures.js.map +1 -1
  425. package/dist/hooks/useFlatHistory.js +60 -128
  426. package/dist/hooks/useFlatHistory.js.map +1 -1
  427. package/dist/hooks/useFullscreen.js +19 -42
  428. package/dist/hooks/useFullscreen.js.map +1 -1
  429. package/dist/hooks/useGame.js +3 -6
  430. package/dist/hooks/useGame.js.map +1 -1
  431. package/dist/hooks/useGiveUp.js +10 -15
  432. package/dist/hooks/useGiveUp.js.map +1 -1
  433. package/dist/hooks/useItemLocations.js +31 -102
  434. package/dist/hooks/useItemLocations.js.map +1 -1
  435. package/dist/hooks/useItemLocator.js +3 -7
  436. package/dist/hooks/useItemLocator.js.map +1 -1
  437. package/dist/hooks/useKeyDown.js +5 -9
  438. package/dist/hooks/useKeyDown.js.map +1 -1
  439. package/dist/hooks/useLegalMoves.js +8 -12
  440. package/dist/hooks/useLegalMoves.js.map +1 -1
  441. package/dist/hooks/useLocators.js +3 -7
  442. package/dist/hooks/useLocators.js.map +1 -1
  443. package/dist/hooks/useMaterialContext.js +11 -15
  444. package/dist/hooks/useMaterialContext.js.map +1 -1
  445. package/dist/hooks/useMaterialDescription.js +4 -8
  446. package/dist/hooks/useMaterialDescription.js.map +1 -1
  447. package/dist/hooks/useNow.js +9 -30
  448. package/dist/hooks/useNow.js.map +1 -1
  449. package/dist/hooks/useNumberOfPlayers.js +2 -6
  450. package/dist/hooks/useNumberOfPlayers.js.map +1 -1
  451. package/dist/hooks/useOpponentWithMaxTime.js +17 -39
  452. package/dist/hooks/useOpponentWithMaxTime.js.map +1 -1
  453. package/dist/hooks/usePlay.js +5 -21
  454. package/dist/hooks/usePlay.js.map +1 -1
  455. package/dist/hooks/usePlayerId.js +4 -10
  456. package/dist/hooks/usePlayerId.js.map +1 -1
  457. package/dist/hooks/usePlayerName.js +14 -19
  458. package/dist/hooks/usePlayerName.js.map +1 -1
  459. package/dist/hooks/usePlayerTime.js +16 -37
  460. package/dist/hooks/usePlayerTime.js.map +1 -1
  461. package/dist/hooks/usePlayers.js +35 -69
  462. package/dist/hooks/usePlayers.js.map +1 -1
  463. package/dist/hooks/useRankedPlayers.js +15 -20
  464. package/dist/hooks/useRankedPlayers.js.map +1 -1
  465. package/dist/hooks/useResultText.js +23 -27
  466. package/dist/hooks/useResultText.js.map +1 -1
  467. package/dist/hooks/useRules.js +10 -13
  468. package/dist/hooks/useRules.js.map +1 -1
  469. package/dist/hooks/useSound.js +8 -28
  470. package/dist/hooks/useSound.js.map +1 -1
  471. package/dist/hooks/useStaticLocations.js +21 -84
  472. package/dist/hooks/useStaticLocations.js.map +1 -1
  473. package/dist/hooks/useTutorialStep.js +7 -10
  474. package/dist/hooks/useTutorialStep.js.map +1 -1
  475. package/dist/hooks/useUndo.d.ts +1 -1
  476. package/dist/hooks/useUndo.js +29 -64
  477. package/dist/hooks/useUndo.js.map +1 -1
  478. package/dist/hooks/useWebP.js +10 -77
  479. package/dist/hooks/useWebP.js.map +1 -1
  480. package/dist/hooks/useZoomToElements.js +43 -75
  481. package/dist/hooks/useZoomToElements.js.map +1 -1
  482. package/dist/index.js +5 -23
  483. package/dist/index.js.map +1 -1
  484. package/dist/locators/DeckLocator.js +8 -30
  485. package/dist/locators/DeckLocator.js.map +1 -1
  486. package/dist/locators/FlexLocator.js +57 -70
  487. package/dist/locators/FlexLocator.js.map +1 -1
  488. package/dist/locators/HandLocator.js +74 -99
  489. package/dist/locators/HandLocator.js.map +1 -1
  490. package/dist/locators/HexagonalGridLocator.js +105 -158
  491. package/dist/locators/HexagonalGridLocator.js.map +1 -1
  492. package/dist/locators/ListLocator.js +59 -73
  493. package/dist/locators/ListLocator.js.map +1 -1
  494. package/dist/locators/Locator.js +149 -190
  495. package/dist/locators/Locator.js.map +1 -1
  496. package/dist/locators/PileLocator.js +65 -126
  497. package/dist/locators/PileLocator.js.map +1 -1
  498. package/dist/locators/index.js +8 -24
  499. package/dist/locators/index.js.map +1 -1
  500. package/dist/locators/utils/getRelativePlayerIndex.util.js +2 -7
  501. package/dist/locators/utils/getRelativePlayerIndex.util.js.map +1 -1
  502. package/dist/locators/utils/index.js +1 -17
  503. package/dist/locators/utils/index.js.map +1 -1
  504. package/dist/utilities/DeepPartial.js +1 -2
  505. package/dist/utilities/combineEventListeners.js +5 -38
  506. package/dist/utilities/combineEventListeners.js.map +1 -1
  507. package/dist/utilities/findIfUnique.util.js +4 -7
  508. package/dist/utilities/findIfUnique.util.js.map +1 -1
  509. package/dist/utilities/index.js +4 -20
  510. package/dist/utilities/index.js.map +1 -1
  511. package/dist/utilities/translation.util.js +21 -31
  512. package/dist/utilities/translation.util.js.map +1 -1
  513. package/dist/utilities/zoom-pan-pinch/animations.constants.js +29 -32
  514. package/dist/utilities/zoom-pan-pinch/animations.constants.js.map +1 -1
  515. package/dist/utilities/zoom-pan-pinch/animations.util.js +24 -30
  516. package/dist/utilities/zoom-pan-pinch/animations.util.js.map +1 -1
  517. package/dist/utilities/zoom-pan-pinch/bounds.util.js +43 -52
  518. package/dist/utilities/zoom-pan-pinch/bounds.util.js.map +1 -1
  519. package/dist/utilities/zoom-pan-pinch/calculation.util.js +2 -7
  520. package/dist/utilities/zoom-pan-pinch/calculation.util.js.map +1 -1
  521. package/dist/utilities/zoom-pan-pinch/index.js +5 -21
  522. package/dist/utilities/zoom-pan-pinch/index.js.map +1 -1
  523. package/dist/utilities/zoom-pan-pinch/zoom.util.js +3 -6
  524. package/dist/utilities/zoom-pan-pinch/zoom.util.js.map +1 -1
  525. package/package.json +83 -77
  526. package/dist/components/Chat/Chat.d.ts +0 -3
  527. package/dist/components/Chat/Chat.js +0 -80
  528. package/dist/components/Chat/Chat.js.map +0 -1
  529. package/dist/components/Chat/ChatMessage.d.ts +0 -7
  530. package/dist/components/Chat/ChatMessage.js +0 -29
  531. package/dist/components/Chat/ChatMessage.js.map +0 -1
  532. package/dist/components/Chat/ChatMessageAuthor.d.ts +0 -3
  533. package/dist/components/Chat/ChatMessageAuthor.js +0 -34
  534. package/dist/components/Chat/ChatMessageAuthor.js.map +0 -1
  535. package/dist/components/Chat/ChatTextInput.d.ts +0 -7
  536. package/dist/components/Chat/ChatTextInput.js +0 -44
  537. package/dist/components/Chat/ChatTextInput.js.map +0 -1
  538. package/dist/components/Chat/SignInToChat.d.ts +0 -1
  539. package/dist/components/Chat/SignInToChat.js +0 -35
  540. package/dist/components/Chat/SignInToChat.js.map +0 -1
  541. package/dist/components/Chat/index.d.ts +0 -5
  542. package/dist/components/Chat/index.js +0 -22
  543. package/dist/components/Chat/index.js.map +0 -1
  544. package/dist/components/Header/PlayerTurnHeader.d.ts +0 -11
  545. package/dist/components/Header/PlayerTurnHeader.js +0 -37
  546. package/dist/components/Header/PlayerTurnHeader.js.map +0 -1
  547. package/dist/components/Header/SimultaneousHeader.d.ts +0 -8
  548. package/dist/components/Header/SimultaneousHeader.js +0 -35
  549. package/dist/components/Header/SimultaneousHeader.js.map +0 -1
  550. package/dist/components/JournalTabs/History/ActionHistoryEntry.d.ts +0 -12
  551. package/dist/components/JournalTabs/History/ActionHistoryEntry.js +0 -62
  552. package/dist/components/JournalTabs/History/ActionHistoryEntry.js.map +0 -1
  553. package/dist/components/JournalTabs/History/MaterialHistory.d.ts +0 -10
  554. package/dist/components/JournalTabs/History/MaterialHistory.js +0 -3
  555. package/dist/components/JournalTabs/History/MaterialHistory.js.map +0 -1
  556. package/dist/components/JournalTabs/History/PlayerActionHistory.d.ts +0 -8
  557. package/dist/components/JournalTabs/History/PlayerActionHistory.js +0 -42
  558. package/dist/components/JournalTabs/History/PlayerActionHistory.js.map +0 -1
  559. package/dist/components/JournalTabs/History/PlayerHistoryEntry.d.ts +0 -8
  560. package/dist/components/JournalTabs/History/PlayerHistoryEntry.js +0 -44
  561. package/dist/components/JournalTabs/History/PlayerHistoryEntry.js.map +0 -1
  562. package/dist/components/JournalTabs/History/StartHistory.d.ts +0 -2
  563. package/dist/components/JournalTabs/History/StartHistory.js +0 -30
  564. package/dist/components/JournalTabs/History/StartHistory.js.map +0 -1
  565. package/dist/components/material/Dices/DiceDescription.d.ts +0 -10
  566. package/dist/components/material/Dices/DiceDescription.js +0 -56
  567. package/dist/components/material/Dices/DiceDescription.js.map +0 -1
  568. package/dist/components/material/GameTable/DraggableStockItem.d.ts +0 -4
  569. package/dist/components/material/GameTable/DraggableStockItem.js +0 -82
  570. package/dist/components/material/GameTable/DraggableStockItem.js.map +0 -1
  571. package/dist/components/material/GameTable/FocusableElement.d.ts +0 -13
  572. package/dist/components/material/GameTable/FocusableElement.js +0 -63
  573. package/dist/components/material/GameTable/FocusableElement.js.map +0 -1
  574. package/dist/components/material/GameTable/FocusableLocation.d.ts +0 -8
  575. package/dist/components/material/GameTable/FocusableLocation.js +0 -37
  576. package/dist/components/material/GameTable/FocusableLocation.js.map +0 -1
  577. package/dist/components/material/GameTable/FocusableLocations.d.ts +0 -0
  578. package/dist/components/material/GameTable/FocusableLocations.js +0 -2
  579. package/dist/components/material/GameTable/FocusableLocations.js.map +0 -1
  580. package/dist/components/material/GameTable/GameTableContent.d.ts +0 -18
  581. package/dist/components/material/GameTable/GameTableContent.js +0 -63
  582. package/dist/components/material/GameTable/GameTableContent.js.map +0 -1
  583. package/dist/components/material/GameTable/focus/FocusableElement.d.ts +0 -13
  584. package/dist/components/material/GameTable/focus/FocusableElement.js +0 -63
  585. package/dist/components/material/GameTable/focus/FocusableElement.js.map +0 -1
  586. package/dist/components/material/GameTable/focus/FocusableLocation.d.ts +0 -8
  587. package/dist/components/material/GameTable/focus/FocusableLocation.js +0 -38
  588. package/dist/components/material/GameTable/focus/FocusableLocation.js.map +0 -1
  589. package/dist/components/material/GameTable/focus/LocationsWithFocus.d.ts +0 -9
  590. package/dist/components/material/GameTable/focus/LocationsWithFocus.js +0 -45
  591. package/dist/components/material/GameTable/focus/LocationsWithFocus.js.map +0 -1
  592. package/dist/components/material/GameTable/locations.utils.d.ts +0 -0
  593. package/dist/components/material/GameTable/locations.utils.js +0 -2
  594. package/dist/components/material/GameTable/locations.utils.js.map +0 -1
  595. package/dist/components/material/ItemMenu.js.map +0 -1
  596. package/dist/components/material/MaterialAnimations.d.ts +0 -25
  597. package/dist/components/material/MaterialAnimations.js +0 -219
  598. package/dist/components/material/MaterialAnimations.js.map +0 -1
  599. package/dist/components/material/MaterialGameAnimations.d.ts +0 -10
  600. package/dist/components/material/MaterialGameAnimations.js +0 -47
  601. package/dist/components/material/MaterialGameAnimations.js.map +0 -1
  602. package/dist/components/material/animations/adjustRotation.d.ts +0 -1
  603. package/dist/components/material/animations/adjustRotation.js +0 -67
  604. package/dist/components/material/animations/adjustRotation.js.map +0 -1
  605. package/dist/components/material/animations/isMovedOrDeletedItem.util.d.ts +0 -3
  606. package/dist/components/material/animations/isMovedOrDeletedItem.util.js +0 -26
  607. package/dist/components/material/animations/isMovedOrDeletedItem.util.js.map +0 -1
  608. package/dist/components/material/animations/itemMovementCss.util.d.ts +0 -2
  609. package/dist/components/material/animations/itemMovementCss.util.js +0 -13
  610. package/dist/components/material/animations/itemMovementCss.util.js.map +0 -1
  611. package/dist/components/material/locations/HexGridDropArea.d.ts +0 -11
  612. package/dist/components/material/locations/HexGridDropArea.js +0 -74
  613. package/dist/components/material/locations/HexGridDropArea.js.map +0 -1
  614. package/dist/components/material/utils/IsMoveOnItem.d.ts +0 -2
  615. package/dist/components/material/utils/IsMoveOnItem.js +0 -12
  616. package/dist/components/material/utils/IsMoveOnItem.js.map +0 -1
  617. package/dist/components/material/utils/getItemFromContext.d.ts +0 -3
  618. package/dist/components/material/utils/getItemFromContext.js +0 -10
  619. package/dist/components/material/utils/getItemFromContext.js.map +0 -1
  620. package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.d.ts +0 -4
  621. package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js +0 -27
  622. package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js.map +0 -1
  623. package/dist/components/menus/ContrastThemeButton/index.d.ts +0 -1
  624. package/dist/components/menus/ContrastThemeButton/index.js +0 -18
  625. package/dist/components/menus/ContrastThemeButton/index.js.map +0 -1
  626. package/dist/components/tutorial/FocusableElement.d.ts +0 -0
  627. package/dist/components/tutorial/FocusableElement.js +0 -2
  628. package/dist/components/tutorial/FocusableElement.js.map +0 -1
  629. package/dist/hooks/useCloseHelpDialog.d.ts +0 -1
  630. package/dist/hooks/useCloseHelpDialog.js +0 -14
  631. package/dist/hooks/useCloseHelpDialog.js.map +0 -1
  632. package/dist/hooks/useContrastTheme.d.ts +0 -7
  633. package/dist/hooks/useContrastTheme.js +0 -27
  634. package/dist/hooks/useContrastTheme.js.map +0 -1
  635. package/dist/hooks/useGameHistory.d.ts +0 -1
  636. package/dist/hooks/useGameHistory.js +0 -13
  637. package/dist/hooks/useGameHistory.js.map +0 -1
  638. package/dist/hooks/useHistory.d.ts +0 -6
  639. package/dist/hooks/useHistory.js +0 -85
  640. package/dist/hooks/useHistory.js.map +0 -1
  641. package/dist/hooks/useMaterialAnimations.d.ts +0 -2
  642. package/dist/hooks/useMaterialAnimations.js +0 -17
  643. package/dist/hooks/useMaterialAnimations.js.map +0 -1
  644. package/dist/hooks/useMaterials.d.ts +0 -2
  645. package/dist/hooks/useMaterials.js +0 -10
  646. package/dist/hooks/useMaterials.js.map +0 -1
  647. package/dist/hooks/useRulesStep.d.ts +0 -2
  648. package/dist/hooks/useRulesStep.js +0 -10
  649. package/dist/hooks/useRulesStep.js.map +0 -1
  650. package/dist/hooks/useScale.d.ts +0 -1
  651. package/dist/hooks/useScale.js +0 -16
  652. package/dist/hooks/useScale.js.map +0 -1
  653. package/dist/locators/GridLocator.d.ts +0 -13
  654. package/dist/locators/GridLocator.js +0 -59
  655. package/dist/locators/GridLocator.js.map +0 -1
  656. package/dist/locators/ItemLocator.d.ts +0 -49
  657. package/dist/locators/ItemLocator.js +0 -144
  658. package/dist/locators/ItemLocator.js.map +0 -1
  659. package/dist/locators/LineLocator.d.ts +0 -12
  660. package/dist/locators/LineLocator.js +0 -77
  661. package/dist/locators/LineLocator.js.map +0 -1
  662. package/dist/translation/index.d.ts +0 -1
  663. package/dist/translation/index.js +0 -18
  664. package/dist/translation/index.js.map +0 -1
  665. package/dist/translation/setupTranslation.d.ts +0 -5
  666. package/dist/translation/setupTranslation.js +0 -33
  667. package/dist/translation/setupTranslation.js.map +0 -1
  668. package/dist/utilities/animations.constants.d.ts +0 -16
  669. package/dist/utilities/animations.constants.js +0 -62
  670. package/dist/utilities/animations.constants.js.map +0 -1
  671. package/dist/utilities/animations.util.d.ts +0 -4
  672. package/dist/utilities/animations.util.js +0 -71
  673. package/dist/utilities/animations.util.js.map +0 -1
  674. package/dist/utilities/bounds.util.d.ts +0 -7
  675. package/dist/utilities/bounds.util.js +0 -77
  676. package/dist/utilities/bounds.util.js.map +0 -1
  677. package/dist/utilities/calculation.util.d.ts +0 -2
  678. package/dist/utilities/calculation.util.js +0 -12
  679. package/dist/utilities/calculation.util.js.map +0 -1
  680. package/dist/utilities/pusher.d.ts +0 -2
  681. package/dist/utilities/pusher.js +0 -16
  682. package/dist/utilities/pusher.js.map +0 -1
  683. package/dist/utilities/zoom.util.d.ts +0 -1
  684. package/dist/utilities/zoom.util.js +0 -14
  685. package/dist/utilities/zoom.util.js.map +0 -1
@@ -1,88 +1,40 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __read = (this && this.__read) || function (o, n) {
18
- var m = typeof Symbol === "function" && o[Symbol.iterator];
19
- if (!m) return o;
20
- var i = m.call(o), r, ar = [], e;
21
- try {
22
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1
+ import { ItemAnimations } from './ItemAnimations';
2
+ import { transformItem } from './transformItem.util';
3
+ export class RollItemAnimations extends ItemAnimations {
4
+ duration;
5
+ constructor(duration = 1) {
6
+ super();
7
+ this.duration = duration;
23
8
  }
24
- catch (error) { e = { error: error }; }
25
- finally {
26
- try {
27
- if (r && !r.done && (m = i["return"])) m.call(i);
28
- }
29
- finally { if (e) throw e.error; }
30
- }
31
- return ar;
32
- };
33
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
34
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
35
- if (ar || !(i in from)) {
36
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
37
- ar[i] = from[i];
38
- }
39
- }
40
- return to.concat(ar || Array.prototype.slice.call(from));
41
- };
42
- Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.RollItemAnimations = void 0;
44
- var ItemAnimations_1 = require("./ItemAnimations");
45
- var transformItem_util_1 = require("./transformItem.util");
46
- var RollItemAnimations = /** @class */ (function (_super) {
47
- __extends(RollItemAnimations, _super);
48
- function RollItemAnimations(duration) {
49
- if (duration === void 0) { duration = 1; }
50
- var _this = _super.call(this) || this;
51
- _this.duration = duration;
52
- return _this;
53
- }
54
- RollItemAnimations.prototype.getPreDuration = function (_move, _context) {
9
+ getPreDuration(_move, _context) {
55
10
  return this.duration;
56
- };
57
- RollItemAnimations.prototype.getItemAnimation = function (context, animation) {
11
+ }
12
+ getItemAnimation(context, animation) {
58
13
  if (animation.move.itemType === context.type && animation.move.itemIndex === context.index) {
59
14
  return this.getRolledItemAnimation(context, animation);
60
15
  }
61
- };
62
- RollItemAnimations.prototype.getRolledItemAnimation = function (context, animation) {
63
- var _a;
64
- var type = context.type, rules = context.rules, material = context.material, player = context.player, index = context.index;
65
- var description = material[type];
66
- var Rules = rules.constructor;
67
- var futureRules = new Rules(JSON.parse(JSON.stringify(rules.game)), { player: player });
16
+ }
17
+ getRolledItemAnimation(context, animation) {
18
+ const { type, rules, material, player, index } = context;
19
+ const description = material[type];
20
+ const Rules = rules.constructor;
21
+ const futureRules = new Rules(JSON.parse(JSON.stringify(rules.game)), { player });
68
22
  futureRules.mutator(type).applyMove(animation.move);
69
- var futureItem = futureRules.material(type).getItem(index);
70
- var sourceTransforms = (0, transformItem_util_1.transformItem)(context);
71
- var futureTransforms = (_a = description === null || description === void 0 ? void 0 : description.getItemTransform(futureItem, context)) !== null && _a !== void 0 ? _a : [];
23
+ const futureItem = futureRules.material(type).getItem(index);
24
+ const sourceTransforms = transformItem(context);
25
+ const futureTransforms = description?.getItemTransform(futureItem, context) ?? [];
72
26
  addMissingOperations(sourceTransforms, futureTransforms);
73
- var sourceTransform = __spreadArray(__spreadArray([], __read(sourceTransforms), false), ['rotate3d(-1, -1, 0, 0)'], false).join(' ');
74
- var futureTransform = __spreadArray(__spreadArray([], __read(futureTransforms), false), ['rotate3d(-1, -1, 0, 1800deg)'], false).join(' ');
75
- var animationKeyframes = this.getTransformKeyframes(sourceTransform, futureTransform, animation, context);
76
- return description === null || description === void 0 ? void 0 : description.getAnimationCss(animationKeyframes, animation.duration);
77
- };
78
- return RollItemAnimations;
79
- }(ItemAnimations_1.ItemAnimations));
80
- exports.RollItemAnimations = RollItemAnimations;
27
+ const sourceTransform = [...sourceTransforms, 'rotate3d(-1, -1, 0, 0)'].join(' ');
28
+ const futureTransform = [...futureTransforms, 'rotate3d(-1, -1, 0, 1800deg)'].join(' ');
29
+ const animationKeyframes = this.getTransformKeyframes(sourceTransform, futureTransform, animation, context);
30
+ return description?.getAnimationCss(animationKeyframes, animation.duration);
31
+ }
32
+ }
81
33
  /**
82
34
  * For dice to rotate multiple time, the transform before and after must have exactly the same number of operations in the same order
83
35
  */
84
36
  function addMissingOperations(transforms1, transforms2) {
85
- var i = 0;
37
+ let i = 0;
86
38
  while (i < transforms1.length || i < transforms2.length) {
87
39
  if (!transforms1[i]) {
88
40
  transforms1.push(getNeutralTransform(transforms2[i]));
@@ -112,11 +64,11 @@ function getNeutralTransform(transform) {
112
64
  return 'scale(0)';
113
65
  }
114
66
  else {
115
- console.warn("Unexpected operation to get neutral transform from: ".concat(transform));
67
+ console.warn(`Unexpected operation to get neutral transform from: ${transform}`);
116
68
  return '';
117
69
  }
118
70
  }
119
71
  function isSimilarTransform(transform1, transform2) {
120
- return ['rotate', 'translate', 'scale'].some(function (instruction) { return transform1.startsWith(instruction) && transform2.startsWith(instruction); });
72
+ return ['rotate', 'translate', 'scale'].some(instruction => transform1.startsWith(instruction) && transform2.startsWith(instruction));
121
73
  }
122
74
  //# sourceMappingURL=RollItemAnimations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RollItemAnimations.js","sourceRoot":"","sources":["../../../../src/components/material/animations/RollItemAnimations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mDAAiD;AAEjD,2DAAoD;AAEpD;IACU,sCAAuB;IAE/B,4BAAoB,QAAY;QAAZ,yBAAA,EAAA,YAAY;QAC9B,YAAA,MAAK,WAAE,SAAA;QADW,cAAQ,GAAR,QAAQ,CAAI;;IAEhC,CAAC;IAEQ,2CAAc,GAAvB,UAAwB,KAA0B,EAAE,QAA+C;QACjG,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAED,6CAAgB,GAAhB,UAAiB,OAA6B,EAAE,SAAuC;QACrF,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,KAAK,EAAE,CAAC;YAC3F,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;QACxD,CAAC;IACH,CAAC;IAED,mDAAsB,GAAtB,UAAuB,OAA6B,EAAE,SAAuC;;QACnF,IAAA,IAAI,GAAqC,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C,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7C,OAAO,cAAc,CAAA;IACvB,CAAC;SAAM,IAAI,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,UAAU,CAAA;IACnB,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,IAAI,CAAC,8DAAuD,SAAS,CAAE,CAAC,CAAA;QAChF,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,UAAkB,EAAE,UAAkB;IAChE,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,UAAA,WAAW,IAAI,OAAA,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,EAAxE,CAAwE,CAAC,CAAA;AACvI,CAAC"}
1
+ {"version":3,"file":"RollItemAnimations.js","sourceRoot":"","sources":["../../../../src/components/material/animations/RollItemAnimations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,OAAO,kBACX,SAAQ,cAAuB;IAEX;IAApB,YAAoB,WAAW,CAAC;QAC9B,KAAK,EAAE,CAAA;QADW,aAAQ,GAAR,QAAQ,CAAI;IAEhC,CAAC;IAEQ,cAAc,CAAC,KAA0B,EAAE,QAA+C;QACjG,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAED,gBAAgB,CAAC,OAA6B,EAAE,SAAuC;QACrF,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,KAAK,EAAE,CAAC;YAC3F,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;QACxD,C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AC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,UAAU,CAAA;IACnB,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,IAAI,CAAC,uDAAuD,SAAS,EAAE,CAAC,CAAA;QAChF,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,UAAkB,EAAE,UAAkB;IAChE,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAA;AACvI,CAAC"}
@@ -1,34 +1,12 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ShuffleAnimations = void 0;
19
- var ItemAnimations_1 = require("./ItemAnimations");
20
- var ShuffleAnimations = /** @class */ (function (_super) {
21
- __extends(ShuffleAnimations, _super);
22
- function ShuffleAnimations(duration) {
23
- if (duration === void 0) { duration = 1; }
24
- var _this = _super.call(this) || this;
25
- _this.duration = duration;
26
- return _this;
1
+ import { ItemAnimations } from './ItemAnimations';
2
+ export class ShuffleAnimations extends ItemAnimations {
3
+ duration;
4
+ constructor(duration = 1) {
5
+ super();
6
+ this.duration = duration;
27
7
  }
28
- ShuffleAnimations.prototype.getPostDuration = function (_move, _context) {
8
+ getPostDuration(_move, _context) {
29
9
  return this.duration;
30
- };
31
- return ShuffleAnimations;
32
- }(ItemAnimations_1.ItemAnimations));
33
- exports.ShuffleAnimations = ShuffleAnimations;
10
+ }
11
+ }
34
12
  //# sourceMappingURL=ShuffleAnimations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShuffleAnimations.js","sourceRoot":"","sources":["../../../../src/components/material/animations/ShuffleAnimations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,mDAAiD;AAGjD;IACU,qCAAuB;IAE/B,2BAAoB,QAAY;QAAZ,yBAAA,EAAA,YAAY;QAC9B,YAAA,MAAK,WAAE,SAAA;QADW,cAAQ,GAAR,QAAQ,CAAI;;IAEhC,CAAC;IAEQ,2CAAe,GAAxB,UAAyB,KAA0B,EAAE,QAA+C;QAClG,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAGH,wBAAC;AAAD,CAAC,AAZD,CACU,+BAAc,GAWvB;AAZY,8CAAiB"}
1
+ {"version":3,"file":"ShuffleAnimations.js","sourceRoot":"","sources":["../../../../src/components/material/animations/ShuffleAnimations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,MAAM,OAAO,iBACX,SAAQ,cAAuB;IAEX;IAApB,YAAoB,WAAW,CAAC;QAC9B,KAAK,EAAE,CAAA;QADW,aAAQ,GAAR,QAAQ,CAAI;IAEhC,CAAC;IAEQ,eAAe,CAAC,KAA0B,EAAE,QAA+C;QAClG,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;CAGF"}
@@ -1,28 +1,13 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.getFirstStockItemTransforms = void 0;
15
- var es_toolkit_1 = require("es-toolkit");
16
- var locators_1 = require("../../../locators");
17
- var getFirstStockItemTransforms = function (context) {
18
- var description = context.material[context.type];
19
- var item = (0, locators_1.getItemFromContext)(context);
20
- var stockLocation = description === null || description === void 0 ? void 0 : description.getStockLocation(item, context);
1
+ import { isEqual } from 'es-toolkit';
2
+ import { getItemFromContext } from '../../../locators';
3
+ export const getFirstStockItemTransforms = (context) => {
4
+ const description = context.material[context.type];
5
+ const item = getItemFromContext(context);
6
+ const stockLocation = description?.getStockLocation(item, context);
21
7
  if (!description || !stockLocation)
22
8
  return [];
23
- var stockItem = description === null || description === void 0 ? void 0 : description.getStaticItems(context).find(function (item) { return (0, es_toolkit_1.isEqual)(item.location, stockLocation); });
24
- var displayIndex = (stockItem === null || stockItem === void 0 ? void 0 : stockItem.quantity) ? stockItem.quantity - 1 : 0;
25
- return description.getItemTransform(stockItem !== null && stockItem !== void 0 ? stockItem : { location: stockLocation }, __assign(__assign({}, context), { index: 0, displayIndex: displayIndex }));
9
+ const stockItem = description?.getStaticItems(context).find(item => isEqual(item.location, stockLocation));
10
+ const displayIndex = stockItem?.quantity ? stockItem.quantity - 1 : 0;
11
+ return description.getItemTransform(stockItem ?? { location: stockLocation }, { ...context, index: 0, displayIndex });
26
12
  };
27
- exports.getFirstStockItemTransforms = getFirstStockItemTransforms;
28
13
  //# sourceMappingURL=getFirstStockItemTransforms.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFirstStockItemTransforms.util.js","sourceRoot":"","sources":["../../../../src/components/material/animations/getFirstStockItemTransforms.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,8CAAmE;AAE5D,IAAM,2BAA2B,GAAG,UACzC,OAA6B;IAE7B,IAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,IAAM,IAAI,GAAG,IAAA,6BAAkB,EAAC,OAAO,CAAC,CAAA;IACxC,IAAM,aAAa,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAClE,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAA;IAC7C,IAAM,SAAS,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,UAAA,IAAI,IAAI,OAAA,IAAA,oBAAO,EAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,EAArC,CAAqC,CAAC,CAAA;IAC1G,IAAM,YAAY,GAAG,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,EAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACrE,OAAO,WAAW,CAAC,gBAAgB,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,wBAAO,OAAO,KAAE,KAAK,EAAE,CAAC,EAAE,YAAY,cAAA,IAAG,CAAA;AACvH,CAAC,CAAA;AAVY,QAAA,2BAA2B,+BAUvC"}
1
+ {"version":3,"file":"getFirstStockItemTransforms.util.js","sourceRoot":"","sources":["../../../../src/components/material/animations/getFirstStockItemTransforms.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAe,MAAM,mBAAmB,CAAA;AAEnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,OAA6B,EACnB,EAAE;IACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,aAAa,GAAG,WAAW,EAAE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAClE,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAA;IAC7C,MAAM,SAAS,GAAG,WAAW,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAA;IAC1G,MAAM,YAAY,GAAG,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACrE,OAAO,WAAW,CAAC,gBAAgB,CAAC,SAAS,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,CAAA;AACvH,CAAC,CAAA"}
@@ -1,27 +1,9 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.transformItem = void 0;
18
- __exportStar(require("./CreateItemAnimations"), exports);
19
- __exportStar(require("./DeleteItemAnimations"), exports);
20
- __exportStar(require("./ItemAnimations"), exports);
21
- __exportStar(require("./MaterialAnimations"), exports);
22
- __exportStar(require("./MaterialGameAnimations"), exports);
23
- __exportStar(require("./MoveItemAnimations"), exports);
24
- __exportStar(require("./ShuffleAnimations"), exports);
25
- var transformItem_util_1 = require("./transformItem.util");
26
- Object.defineProperty(exports, "transformItem", { enumerable: true, get: function () { return transformItem_util_1.transformItem; } });
1
+ export * from './CreateItemAnimations';
2
+ export * from './DeleteItemAnimations';
3
+ export * from './ItemAnimations';
4
+ export * from './MaterialAnimations';
5
+ export * from './MaterialGameAnimations';
6
+ export * from './MoveItemAnimations';
7
+ export * from './ShuffleAnimations';
8
+ export { transformItem } from './transformItem.util';
27
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/material/animations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,yDAAsC;AACtC,mDAAgC;AAChC,uDAAoC;AACpC,2DAAwC;AACxC,uDAAoC;AACpC,sDAAmC;AACnC,2DAAoD;AAA3C,mHAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/material/animations/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,127 +1,94 @@
1
- "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
1
+ export const toSingleRotation = (transforms) => {
2
+ const result = [];
3
+ let rotateZ = 0;
4
+ const radTurn = angleUnitValue['rad'];
5
+ for (const transform of transforms) {
6
+ const rotateZMatch = transform.match(/rotateZ?\((-?\d+\.?\d*)([^)]*)\)/);
7
+ if (rotateZMatch) {
8
+ rotateZ += convertAngle(parseFloat(rotateZMatch[1]), rotateZMatch[2]);
9
9
  }
10
- };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
- };
13
- var _a;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.removeRotations = exports.toClosestRotations = exports.toSingleRotation = void 0;
16
- var toSingleRotation = function (transforms) {
17
- var e_1, _a;
18
- var result = [];
19
- var rotateZ = 0;
20
- var radTurn = angleUnitValue['rad'];
21
- try {
22
- for (var transforms_1 = __values(transforms), transforms_1_1 = transforms_1.next(); !transforms_1_1.done; transforms_1_1 = transforms_1.next()) {
23
- var transform = transforms_1_1.value;
24
- var rotateZMatch = transform.match(/rotateZ?\((-?\d+\.?\d*)([^)]*)\)/);
25
- if (rotateZMatch) {
26
- rotateZ += convertAngle(parseFloat(rotateZMatch[1]), rotateZMatch[2]);
27
- }
28
- else if (!transform.startsWith('translate')) {
29
- var applyRotate = ((rotateZ % radTurn) + radTurn) % radTurn;
30
- if (applyRotate)
31
- result.push("rotateZ(".concat(applyRotate, "rad)"));
32
- rotateZ = 0;
33
- result.push(transform);
34
- }
35
- else if (Math.abs(rotateZ) % radTurn === 0) {
10
+ else if (!transform.startsWith('translate')) {
11
+ const applyRotate = ((rotateZ % radTurn) + radTurn) % radTurn;
12
+ if (applyRotate)
13
+ result.push(`rotateZ(${applyRotate}rad)`);
14
+ rotateZ = 0;
15
+ result.push(transform);
16
+ }
17
+ else if (Math.abs(rotateZ) % radTurn === 0) {
18
+ result.push(transform);
19
+ }
20
+ else {
21
+ const values = getTranslateValues(transform);
22
+ if (!values)
36
23
  result.push(transform);
37
- }
38
24
  else {
39
- var values = getTranslateValues(transform);
40
- if (!values)
41
- result.push(transform);
42
- else {
43
- var x = values.x, y = values.y, z = values.z;
44
- var cos = Math.cos(rotateZ);
45
- var sin = Math.sin(rotateZ);
46
- result.push("translate3d(".concat(cos * x - sin * y, "em, ").concat(cos * y + sin * x, "em, ").concat(z, "em)"));
47
- }
25
+ const { x, y, z } = values;
26
+ const cos = Math.cos(rotateZ);
27
+ const sin = Math.sin(rotateZ);
28
+ result.push(`translate3d(${cos * x - sin * y}em, ${cos * y + sin * x}em, ${z}em)`);
48
29
  }
49
30
  }
50
31
  }
51
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
52
- finally {
53
- try {
54
- if (transforms_1_1 && !transforms_1_1.done && (_a = transforms_1.return)) _a.call(transforms_1);
55
- }
56
- finally { if (e_1) throw e_1.error; }
57
- }
58
- var finalRotate = ((rotateZ % radTurn) + radTurn) % radTurn;
32
+ const finalRotate = ((rotateZ % radTurn) + radTurn) % radTurn;
59
33
  if (finalRotate)
60
- result.push("rotateZ(".concat(finalRotate, "rad)"));
34
+ result.push(`rotateZ(${finalRotate}rad)`);
61
35
  return result;
62
36
  };
63
- exports.toSingleRotation = toSingleRotation;
64
37
  function getTranslateValues(transform) {
65
- var translate3d = transform.match(/translate3d\((-?\d+\.?\d*)em, (-?\d+\.?\d*)em, (-?\d+\.?\d*)em\)/);
38
+ const translate3d = transform.match(/translate3d\((-?\d+\.?\d*)em, (-?\d+\.?\d*)em, (-?\d+\.?\d*)em\)/);
66
39
  if (translate3d) {
67
40
  return { x: parseFloat(translate3d[1]), y: parseFloat(translate3d[2]), z: parseFloat(translate3d[3]) };
68
41
  }
69
- var translate = transform.match(/translate\((-?\d+\.?\d*)em, (-?\d+\.?\d*)em\)/);
42
+ const translate = transform.match(/translate\((-?\d+\.?\d*)em, (-?\d+\.?\d*)em\)/);
70
43
  if (translate) {
71
44
  return { x: parseFloat(translate[1]), y: parseFloat(translate[2]), z: 0 };
72
45
  }
73
- var translateX = transform.match(/translateX?\((-?\d+\.?\d*)em\)/);
46
+ const translateX = transform.match(/translateX?\((-?\d+\.?\d*)em\)/);
74
47
  if (translateX) {
75
48
  return { x: parseFloat(translateX[1]), y: 0, z: 0 };
76
49
  }
77
- var translateY = transform.match(/translateY\((-?\d+\.?\d*)em\)/);
50
+ const translateY = transform.match(/translateY\((-?\d+\.?\d*)em\)/);
78
51
  if (translateY) {
79
52
  return { x: 0, y: parseFloat(translateY[1]), z: 0 };
80
53
  }
81
54
  return;
82
55
  }
83
- var angleUnitValue = (_a = {},
84
- _a['deg'] = 360,
85
- _a['grad'] = 400,
86
- _a['rad'] = 2 * Math.PI,
87
- _a['turn'] = 1,
88
- _a);
89
- var convertAngle = function (value, unit, targetUnit) {
90
- if (targetUnit === void 0) { targetUnit = 'rad'; }
91
- return unit === targetUnit ? value : value * angleUnitValue[targetUnit] / angleUnitValue[unit];
56
+ const angleUnitValue = {
57
+ ['deg']: 360,
58
+ ['grad']: 400,
59
+ ['rad']: 2 * Math.PI,
60
+ ['turn']: 1
92
61
  };
93
- var toClosestRotations = function (originTransforms, targetTransforms) {
94
- var _a, _b;
95
- var lastOriginAngle = 0;
96
- var lastTargetAngle = 0;
97
- for (var i = 0; i < Math.max(originTransforms.length, targetTransforms.length); i++) {
98
- var originMatch = (_a = originTransforms[i]) === null || _a === void 0 ? void 0 : _a.match(/rotateZ?\((-?\d+\.?\d*)([^)]*)\)/);
62
+ const convertAngle = (value, unit, targetUnit = 'rad') => unit === targetUnit ? value : value * angleUnitValue[targetUnit] / angleUnitValue[unit];
63
+ export const toClosestRotations = (originTransforms, targetTransforms) => {
64
+ let lastOriginAngle = 0;
65
+ let lastTargetAngle = 0;
66
+ for (let i = 0; i < Math.max(originTransforms.length, targetTransforms.length); i++) {
67
+ const originMatch = originTransforms[i]?.match(/rotateZ?\((-?\d+\.?\d*)([^)]*)\)/);
99
68
  if (originMatch) {
100
- var originAngle = convertAngle(parseFloat(originMatch[1]), originMatch[2]);
101
- var delta = Math.round((lastTargetAngle - originAngle) / (2 * Math.PI));
69
+ const originAngle = convertAngle(parseFloat(originMatch[1]), originMatch[2]);
70
+ const delta = Math.round((lastTargetAngle - originAngle) / (2 * Math.PI));
102
71
  if (delta === 0) {
103
72
  lastOriginAngle = originAngle;
104
73
  }
105
74
  else {
106
75
  lastOriginAngle = originAngle + delta * 2 * Math.PI;
107
- originTransforms[i] = "rotateZ(".concat(lastOriginAngle, "rad)");
76
+ originTransforms[i] = `rotateZ(${lastOriginAngle}rad)`;
108
77
  }
109
78
  }
110
- var targetMatch = (_b = targetTransforms[i]) === null || _b === void 0 ? void 0 : _b.match(/rotateZ?\((-?\d+\.?\d*)([^)]*)\)/);
79
+ const targetMatch = targetTransforms[i]?.match(/rotateZ?\((-?\d+\.?\d*)([^)]*)\)/);
111
80
  if (targetMatch) {
112
- var targetAngle = convertAngle(parseFloat(targetMatch[1]), targetMatch[2]);
113
- var delta = Math.round((lastOriginAngle - targetAngle) / (2 * Math.PI));
81
+ const targetAngle = convertAngle(parseFloat(targetMatch[1]), targetMatch[2]);
82
+ const delta = Math.round((lastOriginAngle - targetAngle) / (2 * Math.PI));
114
83
  if (delta === 0) {
115
84
  lastTargetAngle = targetAngle;
116
85
  }
117
86
  else {
118
87
  lastTargetAngle = targetAngle + delta * 2 * Math.PI;
119
- targetTransforms[i] = "rotateZ(".concat(lastTargetAngle, "rad)");
88
+ targetTransforms[i] = `rotateZ(${lastTargetAngle}rad)`;
120
89
  }
121
90
  }
122
91
  }
123
92
  };
124
- exports.toClosestRotations = toClosestRotations;
125
- var removeRotations = function (transforms) { return (0, exports.toSingleRotation)(transforms).filter(function (transform) { return !transform.startsWith('rotate'); }); };
126
- exports.removeRotations = removeRotations;
93
+ export const removeRotations = (transforms) => toSingleRotation(transforms).filter(transform => !transform.startsWith('rotate'));
127
94
  //# sourceMappingURL=rotations.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rotations.utils.js","sourceRoot":"","sources":["../../../../src/components/material/animations/rotations.utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAO,IAAM,gBA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Ae,SAAM,CAAA;YACxD,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAA;AA3BY,QAAA,kBAAkB,sBA2B9B;AAEM,IAAM,eAAe,GAAG,UAAC,UAAoB,IAAe,OAAA,IAAA,wBAAgB,EAAC,UAAU,CAAC,CAAC,MAAM,CAAC,UAAA,SAAS,IAAI,OAAA,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,EAA/B,CAA+B,CAAC,EAAjF,CAAiF,CAAA;AAAvI,QAAA,eAAe,mBAAwH"}
1
+ {"version":3,"file":"rotations.utils.js","sourceRoot":"","sources":["../../../../src/components/material/animations/rotations.utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAoB,EAAY,EAAE;IACjE,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,OAAO,GAAG,CAAC,CAAA;IACf,MAAM,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;IACrC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAA;QACxE,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;QACvE,CAAC;aAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YAC9C,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,GAAG,OAAO,CAAA;YAC7D,IAAI,WAAW;gBAAE,MAAM,CAAC,IAAI,CAAC,WAAW,WAAW,MAAM,CAAC,CAAA;YAC1D,OAAO,GAAG,CAAC,CAAA;YACX,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QACxB,CAAC;aAAM,IAAI,I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KAAK,CAAC,CAAC,eAAe,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;YACzE,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBAChB,eAAe,GAAG,WAAW,CAAA;YAC/B,CAAC;iBAAM,CAAC;gBACN,eAAe,GAAG,WAAW,GAAG,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAA;gBACnD,gBAAgB,CAAC,CAAC,CAAC,GAAG,WAAW,eAAe,MAAM,CAAA;YACxD,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,UAAoB,EAAY,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAA"}
@@ -1,37 +1,8 @@
1
- "use strict";
2
- var __read = (this && this.__read) || function (o, n) {
3
- var m = typeof Symbol === "function" && o[Symbol.iterator];
4
- if (!m) return o;
5
- var i = m.call(o), r, ar = [], e;
6
- try {
7
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8
- }
9
- catch (error) { e = { error: error }; }
10
- finally {
11
- try {
12
- if (r && !r.done && (m = i["return"])) m.call(i);
13
- }
14
- finally { if (e) throw e.error; }
15
- }
16
- return ar;
17
- };
18
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
20
- if (ar || !(i in from)) {
21
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
22
- ar[i] = from[i];
23
- }
24
- }
25
- return to.concat(ar || Array.prototype.slice.call(from));
26
- };
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.transformItem = transformItem;
29
- var locators_1 = require("../../../locators");
30
- function transformItem(context) {
31
- var _a;
32
- var description = context.material[context.type];
33
- var currentItem = (0, locators_1.getItemFromContext)(context);
34
- var locatorTransforms = (_a = description === null || description === void 0 ? void 0 : description.getItemTransform(currentItem, context)) !== null && _a !== void 0 ? _a : [];
35
- return context.dragTransform ? __spreadArray([context.dragTransform], __read(locatorTransforms), false) : locatorTransforms;
1
+ import { getItemFromContext } from '../../../locators';
2
+ export function transformItem(context) {
3
+ const description = context.material[context.type];
4
+ const currentItem = getItemFromContext(context);
5
+ const locatorTransforms = description?.getItemTransform(currentItem, context) ?? [];
6
+ return context.dragTransform ? [context.dragTransform, ...locatorTransforms] : locatorTransforms;
36
7
  }
37
8
  //# sourceMappingURL=transformItem.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformItem.util.js","sourceRoot":"","sources":["../../../../src/components/material/animations/transformItem.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sCAKC;AAPD,8CAAmE;AAEnE,SAAgB,aAAa,CAAkF,OAA6B;;IAC1I,IAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,IAAM,WAAW,GAAG,IAAA,6BAAkB,EAAC,OAAO,CAAC,CAAA;IAC/C,IAAM,iBAAiB,GAAG,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,mCAAI,EAAE,CAAA;IACnF,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC,gBAAE,OAAO,CAAC,aAAa,UAAK,iBAAiB,UAAE,CAAC,CAAC,iBAAiB,CAAA;AAClG,CAAC"}
1
+ {"version":3,"file":"transformItem.util.js","sourceRoot":"","sources":["../../../../src/components/material/animations/transformItem.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAe,MAAM,mBAAmB,CAAA;AAEnE,MAAM,UAAU,aAAa,CAAkF,OAA6B;IAC1I,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAC/C,MAAM,iBAAiB,GAAG,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;IACnF,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAA;AAClG,CAAC"}
@@ -1,32 +1,16 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./animations"), exports);
18
- __exportStar(require("./locations"), exports);
19
- __exportStar(require("./ComponentDescription"), exports);
20
- __exportStar(require("./Dices"), exports);
21
- __exportStar(require("./Wheel"), exports);
22
- __exportStar(require("./Writing"), exports);
23
- __exportStar(require("./FlatMaterial"), exports);
24
- __exportStar(require("./GameTable"), exports);
25
- __exportStar(require("./ItemMenuButton"), exports);
26
- __exportStar(require("./MaterialComponent"), exports);
27
- __exportStar(require("./MaterialComponentType"), exports);
28
- __exportStar(require("./MaterialDescription"), exports);
29
- __exportStar(require("./ImageLoader"), exports);
30
- __exportStar(require("./utils"), exports);
31
- __exportStar(require("./sound"), exports);
1
+ export * from './animations';
2
+ export * from './locations';
3
+ export * from './ComponentDescription';
4
+ export * from './Dices';
5
+ export * from './Wheel';
6
+ export * from './Writing';
7
+ export * from './FlatMaterial';
8
+ export * from './GameTable';
9
+ export * from './ItemMenuButton';
10
+ export * from './MaterialComponent';
11
+ export * from './MaterialComponentType';
12
+ export * from './MaterialDescription';
13
+ export * from './ImageLoader';
14
+ export * from './utils';
15
+ export * from './sound';
32
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/material/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B;AAC3B,yDAAsC;AACtC,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,iDAA8B;AAC9B,8CAA2B;AAC3B,mDAAgC;AAChC,sDAAmC;AACnC,0DAAuC;AACvC,wDAAqC;AACrC,gDAA6B;AAC7B,0CAAuB;AACvB,0CAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/material/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}