@ludo.ninja/components 2.0.9 → 2.0.11

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 (339) hide show
  1. package/build/api/graphql/index.js +3 -7
  2. package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
  3. package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
  4. package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
  5. package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
  6. package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
  7. package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
  8. package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
  9. package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
  10. package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
  11. package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
  12. package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
  13. package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
  14. package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
  15. package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
  16. package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
  17. package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
  18. package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
  19. package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
  20. package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
  21. package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
  22. package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
  23. package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
  24. package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
  25. package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
  26. package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
  27. package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
  28. package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
  29. package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
  30. package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
  31. package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
  32. package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
  33. package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
  34. package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
  35. package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
  36. package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
  37. package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
  38. package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
  39. package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
  40. package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
  41. package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
  42. package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
  43. package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
  44. package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
  45. package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
  46. package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
  47. package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
  48. package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
  49. package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
  50. package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
  51. package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
  52. package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
  53. package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
  54. package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
  55. package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
  56. package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
  57. package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
  58. package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
  59. package/build/api/server-search/queries/useFindCreations/index.js +20 -28
  60. package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
  61. package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
  62. package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
  63. package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
  64. package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
  65. package/build/components/assetPage/assetLikes/index.js +25 -30
  66. package/build/components/assetPage/assetNft/index.js +14 -21
  67. package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
  68. package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
  69. package/build/components/assetPage/category/index.js +18 -25
  70. package/build/components/assetPage/description/index.js +17 -24
  71. package/build/components/assetPage/index.js +11 -25
  72. package/build/components/assetPage/information/index.js +43 -50
  73. package/build/components/assetPage/marketPlaces/index.js +26 -33
  74. package/build/components/assetPage/media/AssetImage/index.js +52 -80
  75. package/build/components/assetPage/moreDropDown/index.js +47 -77
  76. package/build/components/assetPage/participants/index.js +64 -71
  77. package/build/components/assetPage/priceRank/index.js +38 -45
  78. package/build/components/assetPage/properties/index.js +19 -26
  79. package/build/components/assetPage/slider/index.js +44 -51
  80. package/build/components/assetPage/slider/slideItem.js +14 -21
  81. package/build/components/assetPage/slider/store.js +2 -5
  82. package/build/components/assetPage/tittle/index.js +32 -39
  83. package/build/components/assetPage/viewer3D/index.js +50 -58
  84. package/build/components/base/Meta/index.js +6 -11
  85. package/build/components/base/NoSSR/index.js +4 -9
  86. package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
  87. package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
  88. package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
  89. package/build/components/headers/components/headerUserPic/index.js +11 -16
  90. package/build/components/headers/header/index.js +17 -22
  91. package/build/components/headers/headerSearch/index.js +21 -26
  92. package/build/components/headers/headerSimple/index.js +14 -19
  93. package/build/components/linkTabs/index.js +14 -19
  94. package/build/components/linkTabs/linkTab/index.js +22 -27
  95. package/build/components/profile/profileSkeleton/index.js +10 -18
  96. package/build/components/search/SearchInputContainer.js +61 -91
  97. package/build/components/search/searchCloseMoreButtons/index.js +20 -25
  98. package/build/components/search/searchSimpleInput/index.js +37 -65
  99. package/build/components/search/searchSuggestions/index.js +32 -37
  100. package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
  101. package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
  102. package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
  103. package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
  104. package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
  105. package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
  106. package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
  107. package/build/components/searchFiltersConnector/filters/index.js +38 -43
  108. package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
  109. package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
  110. package/build/components/searchFiltersConnector/index.js +12 -19
  111. package/build/components/sidebar/data.js +18 -26
  112. package/build/components/sidebar/index.js +59 -87
  113. package/build/components/sidebar/initializer.js +4 -34
  114. package/build/components/sidebar/sidebarFilters/index.js +8 -13
  115. package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
  116. package/build/components/toTopBtn/index.js +32 -39
  117. package/build/dto/AssetEntity/index.js +19 -24
  118. package/build/dto/AssetEntity/interface.js +1 -2
  119. package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
  120. package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
  121. package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
  122. package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
  123. package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
  124. package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
  125. package/build/dto/AssetEntity/views/index.js +6 -16
  126. package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
  127. package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
  128. package/build/dto/Collection/CollectionEntity/index.js +5 -7
  129. package/build/dto/Collection/CollectionEntity/interface.js +1 -2
  130. package/build/dto/CreationEntity/index.js +19 -24
  131. package/build/dto/CreationEntity/interface.js +1 -2
  132. package/build/dto/GalleryEntityV2/index.js +5 -10
  133. package/build/dto/GalleryEntityV2/interface.js +1 -2
  134. package/build/dto/Theme/interface.js +1 -5
  135. package/build/dto/common/ItemType/data.js +26 -28
  136. package/build/dto/common/ItemType/index.js +5 -7
  137. package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
  138. package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
  139. package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
  140. package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
  141. package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
  142. package/build/dto/common/Media/Audio/index.js +9 -14
  143. package/build/dto/common/Media/Image/index.js +10 -15
  144. package/build/dto/common/Media/Object/index.js +9 -14
  145. package/build/dto/common/Media/Other/index.js +14 -19
  146. package/build/dto/common/Media/Screenshot/index.js +10 -15
  147. package/build/dto/common/Media/Urls/index.js +23 -38
  148. package/build/dto/common/Media/Video/index.js +9 -14
  149. package/build/dto/common/Media/index.js +3 -5
  150. package/build/dto/common/Media/interface.js +1 -2
  151. package/build/entities/user/type.js +1 -2
  152. package/build/fonts/FontsInitializeLayout.js +13 -16
  153. package/build/fonts/vars.js +1 -6
  154. package/build/hooks/apollo/index.js +8 -11
  155. package/build/hooks/audio/useMultiAudio/index.js +10 -12
  156. package/build/hooks/extension/useExtension/index.js +8 -10
  157. package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
  158. package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
  159. package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
  160. package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
  161. package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
  162. package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
  163. package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
  164. package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
  165. package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
  166. package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
  167. package/build/hooks/likes/index.js +27 -32
  168. package/build/hooks/likes/useGetLikesAsset.js +20 -24
  169. package/build/layouts/GlobalLayout.js +24 -31
  170. package/build/layouts/base/LWithRegularHeader/index.js +7 -12
  171. package/build/layouts/base/LWithRegularHeader/type.js +1 -2
  172. package/build/layouts/base/LWithSearchHeader/index.js +5 -10
  173. package/build/layouts/base/LWithSearchHeader/type.js +1 -2
  174. package/build/layouts/custom/mainLayout/index.js +8 -13
  175. package/build/layouts/custom/styles.js +15 -21
  176. package/build/layouts/pageTransitionLayout.js +6 -8
  177. package/build/layouts/pageWithLayout.js +1 -2
  178. package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
  179. package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
  180. package/build/modules/gallery/store.js +10 -16
  181. package/build/modules/gallery/ui/AllResults.js +7 -11
  182. package/build/modules/gallery/ui/Description.js +24 -31
  183. package/build/modules/gallery/ui/EditGallery.js +15 -22
  184. package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
  185. package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
  186. package/build/modules/gallery/ui/STopSections.js +10 -16
  187. package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
  188. package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
  189. package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
  190. package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
  191. package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
  192. package/build/modules/gallery/useToGalleryAsset.js +15 -23
  193. package/build/modules/notifications/CreatorNotifications.js +10 -40
  194. package/build/modules/notifications/index.js +3 -6
  195. package/build/modules/opportunity/OpportunityCard.js +81 -88
  196. package/build/modules/opportunity/OpportunityDropDown.js +11 -18
  197. package/build/modules/opportunity/ShareIcon.js +2 -6
  198. package/build/modules/opportunity/encodeQuery.js +4 -10
  199. package/build/modules/opportunity/popup/CopyIcon.js +3 -5
  200. package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
  201. package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
  202. package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
  203. package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
  204. package/build/modules/opportunity/type.js +1 -2
  205. package/build/modules/sessionScroll/globalTabs.js +1 -4
  206. package/build/modules/sessionScroll/index.js +16 -23
  207. package/build/modules/sessionScroll/type.js +1 -2
  208. package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
  209. package/build/modules/user/auth/useAuthVerification.js +10 -37
  210. package/build/modules/user/auth/useSignIn.js +7 -11
  211. package/build/modules/user/auth/useSignOut.js +11 -18
  212. package/build/modules/user/profileData/profileDataInitialization.js +14 -18
  213. package/build/modules/user/store.js +9 -12
  214. package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
  215. package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
  216. package/build/modules/virtuoso/types.js +1 -2
  217. package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
  218. package/build/modules/virtuoso/useVirtuosoData.js +6 -10
  219. package/build/store/env/index.js +4 -7
  220. package/build/store/index.js +4 -7
  221. package/build/store/media/index.js +4 -7
  222. package/build/store/media/types.js +1 -2
  223. package/build/store/ui/index.js +21 -24
  224. package/build/store/ui/types.js +1 -2
  225. package/build/store/ui/utils.js +4 -8
  226. package/build/styles/ScreenWidth.js +3 -6
  227. package/build/styles/animations/index.js +3 -6
  228. package/build/styles/colors/index.js +1 -38
  229. package/build/styles/globalStyles.js +5 -7
  230. package/build/styles/mixins/boxShadow.js +3 -5
  231. package/build/styles/mixins/boxTransform.js +3 -5
  232. package/build/styles/mixins/z-indexes.js +10 -13
  233. package/build/styles/typography/index.js +1 -13
  234. package/build/system/ActiveLink/ActiveLink.test.js +14 -19
  235. package/build/system/ActiveLink/index.js +10 -38
  236. package/build/system/Alert/index.js +6 -11
  237. package/build/system/Alert/type.js +1 -8
  238. package/build/system/BasicOverlay/index.js +5 -10
  239. package/build/system/Buttons/IconButton/index.js +2 -7
  240. package/build/system/Buttons/IconWithButton/index.js +2 -7
  241. package/build/system/Buttons/MainButton/index.js +2 -7
  242. package/build/system/Buttons/SecondaryButton/index.js +2 -7
  243. package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
  244. package/build/system/Cards/CardCheckbox/index.js +19 -24
  245. package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
  246. package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
  247. package/build/system/Cards/CardContent/CardContent.test.js +31 -36
  248. package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
  249. package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
  250. package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
  251. package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
  252. package/build/system/Cards/CardContent/index.js +32 -37
  253. package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
  254. package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
  255. package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
  256. package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
  257. package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
  258. package/build/system/Cards/CardRank/index.js +32 -37
  259. package/build/system/Cards/CreationCard/CardHead.js +35 -42
  260. package/build/system/Cards/CreationCard/index.js +45 -76
  261. package/build/system/Cards/MultiMediaCard/index.js +30 -35
  262. package/build/system/Cards/Styles/Content.js +9 -14
  263. package/build/system/Cards/Styles/Head.js +8 -13
  264. package/build/system/Cards/Styles/Headicons.js +23 -28
  265. package/build/system/Cards/Styles/Image.js +8 -13
  266. package/build/system/Cards/Styles/Likes.js +14 -19
  267. package/build/system/Cards/Styles/MultiHead.js +11 -16
  268. package/build/system/Cards/Styles/Video.js +3 -8
  269. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
  270. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
  271. package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
  272. package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
  273. package/build/system/DropDown/DropDown.test.js +14 -19
  274. package/build/system/DropDown/index.js +12 -17
  275. package/build/system/Filters/helpers.js +1 -5
  276. package/build/system/Filters/type.js +2 -5
  277. package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
  278. package/build/system/Forms/Checkbox/index.js +16 -21
  279. package/build/system/Forms/DatePicker/index.js +46 -51
  280. package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
  281. package/build/system/Forms/ErrorLabel/index.js +10 -15
  282. package/build/system/Forms/Input/Input.test.js +13 -18
  283. package/build/system/Forms/Input/index.js +29 -35
  284. package/build/system/Forms/Input/type.js +1 -2
  285. package/build/system/Forms/Messages/index.js +1 -3
  286. package/build/system/Forms/RadioInput/index.js +12 -17
  287. package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
  288. package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
  289. package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
  290. package/build/system/Forms/TextArea/TextArea.test.js +13 -18
  291. package/build/system/Forms/TextArea/index.js +26 -31
  292. package/build/system/Forms/index.js +5 -14
  293. package/build/system/Img/ExternalImage/index.js +11 -17
  294. package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
  295. package/build/system/Img/ImageInterceptor/index.js +10 -40
  296. package/build/system/Img/Profilepic/index.js +12 -19
  297. package/build/system/Img/Userpic/UserPic.test.js +15 -20
  298. package/build/system/Img/Userpic/index.js +28 -33
  299. package/build/system/Img/index.js +3 -19
  300. package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
  301. package/build/system/Labels/ExperienceLabel/index.js +27 -32
  302. package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
  303. package/build/system/Labels/InviteLabel/index.js +14 -19
  304. package/build/system/Labels/SkeletonLabel/index.js +2 -7
  305. package/build/system/Modals/Modal/Modal.test.js +11 -16
  306. package/build/system/Modals/Modal/index.js +24 -29
  307. package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
  308. package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
  309. package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
  310. package/build/system/Modals/ModalSidebar/index.js +23 -29
  311. package/build/system/Overlay/Overlay.test.js +11 -16
  312. package/build/system/Overlay/index.js +11 -16
  313. package/build/system/PageLoader/index.js +2 -7
  314. package/build/system/Palete/index.js +2 -7
  315. package/build/system/ShareIconResize.js +14 -21
  316. package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
  317. package/build/system/Tabs/TabNavLink/index.js +17 -23
  318. package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
  319. package/build/system/Tabs/TabsNav/index.js +7 -13
  320. package/build/system/Tabs/TabsNav/type.js +1 -2
  321. package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
  322. package/build/system/Tabs/TabsPanel/index.js +5 -10
  323. package/build/system/index.js +6 -22
  324. package/build/system/theme.js +1 -7
  325. package/build/utils/3d.js +1 -5
  326. package/build/utils/adaptive/check4k.js +5 -9
  327. package/build/utils/adaptive/scale.js +5 -9
  328. package/build/utils/auth/index.js +3 -7
  329. package/build/utils/copyBtn/index.js +23 -30
  330. package/build/utils/env/index.js +1 -5
  331. package/build/utils/extractItemIds.js +3 -9
  332. package/build/utils/getDimensionsImage.js +1 -5
  333. package/build/utils/getPageSizeAssets.js +4 -8
  334. package/build/utils/imageProportionsSize/index.js +1 -5
  335. package/build/utils/screen/index.js +24 -30
  336. package/build/utils/seacrhTabs.js +1 -4
  337. package/build/utils/ssrFunctions/index.js +9 -15
  338. package/build/utils/ui/index.js +1 -5
  339. package/package.json +2 -3
@@ -1,15 +1,9 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SlideItem = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const styled_components_1 = __importDefault(require("styled-components"));
9
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
10
- const audioVideoPlayer_1 = require("../audioVideoPlayer");
11
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
12
- const SlideWrapper = styled_components_1.default.div `
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
4
+ import { ReactPlayerWrapper } from "../audioVideoPlayer";
5
+ import { mediaQuery } from "../../../styles/ScreenWidth";
6
+ const SlideWrapper = styled.div `
13
7
  display: flex;
14
8
  flex-direction: column;
15
9
  align-items: center;
@@ -22,16 +16,16 @@ const SlideWrapper = styled_components_1.default.div `
22
16
  background-repeat: no-repeat;
23
17
  margin: 0 auto;
24
18
 
25
- ${audioVideoPlayer_1.ReactPlayerWrapper} {
19
+ ${ReactPlayerWrapper} {
26
20
  margin-right: 0;
27
21
  }
28
22
 
29
- ${ScreenWidth_1.mediaQuery.desktop} {
23
+ ${mediaQuery.desktop} {
30
24
  width: 280px;
31
25
  height: 280px;
32
26
  }
33
27
 
34
- ${ScreenWidth_1.mediaQuery.tablet} {
28
+ ${mediaQuery.tablet} {
35
29
  width: 240px;
36
30
  height: 240px;
37
31
  }
@@ -39,15 +33,14 @@ const SlideWrapper = styled_components_1.default.div `
39
33
  & > div {
40
34
  width: 100%;
41
35
 
42
- /* ${ScreenWidth_1.mediaQuery.desktop} {
36
+ /* ${mediaQuery.desktop} {
43
37
  width:100%;
44
38
  } */
45
39
  }
46
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
47
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(16)};
40
+ ${mediaQuery.minWidthFourK} {
41
+ border-radius: ${adaptiveValueCalc(16)};
48
42
  }
49
43
  `;
50
- const SlideItem = ({ item, key }) => {
51
- return (0, jsx_runtime_1.jsx)(SlideWrapper, { children: item.displayLinkedMedia() }, key);
44
+ export const SlideItem = ({ item, key }) => {
45
+ return _jsx(SlideWrapper, { children: item.displayLinkedMedia() }, key);
52
46
  };
53
- exports.SlideItem = SlideItem;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useSliderStore = void 0;
4
- const zustand_1 = require("zustand");
5
- exports.useSliderStore = (0, zustand_1.create)()((setState, getState) => ({
1
+ import { create } from 'zustand';
2
+ export const useSliderStore = create()((setState, getState) => ({
6
3
  isActiveSlider: false,
7
4
  setIsActiveSlider: (isActiveSlider) => {
8
5
  setState({ isActiveSlider });
@@ -1,21 +1,15 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Title = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const react_1 = require("react");
9
- const link_1 = __importDefault(require("next/link"));
10
- const styled_components_1 = __importDefault(require("styled-components"));
11
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
12
- const Urls_1 = require("../../../dto/common/Media/Urls");
13
- const env_1 = require("../../../store/env");
14
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
15
- const colors_1 = require("../../../styles/colors");
16
- const index_1 = require("../../../system/index");
17
- const ImageInterceptor_1 = require("../../../system/Img/ImageInterceptor");
18
- const SCollection = (0, styled_components_1.default)(index_1.Flex) `
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import Link from 'next/link';
4
+ import styled from 'styled-components';
5
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
6
+ import { getAssetImage, mediaSizes } from "../../../dto/common/Media/Urls";
7
+ import { useEnvStore } from "../../../store/env";
8
+ import { mediaQuery } from "../../../styles/ScreenWidth";
9
+ import { AccentColor, BlackColor } from "../../../styles/colors";
10
+ import { ExternalImage, Flex, H1 } from "../../../system/index";
11
+ import { ImageInterceptor } from "../../../system/Img/ImageInterceptor";
12
+ const SCollection = styled(Flex) `
19
13
  margin-bottom: 8px;
20
14
 
21
15
  img {
@@ -28,26 +22,26 @@ const SCollection = (0, styled_components_1.default)(index_1.Flex) `
28
22
  a {
29
23
  font-size: 18px;
30
24
  font-weight: 600;
31
- color: ${colors_1.AccentColor};
25
+ color: ${AccentColor};
32
26
  }
33
27
 
34
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
35
- margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(8)};
28
+ ${mediaQuery.minWidthFourK} {
29
+ margin-bottom: ${adaptiveValueCalc(8)};
36
30
 
37
31
  img {
38
- margin-right: ${(0, _4k_1.adaptiveValueCalc)(8)};
39
- width: ${(0, _4k_1.adaptiveValueCalc)(28)};
40
- height: ${(0, _4k_1.adaptiveValueCalc)(28)};
41
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(2)};
32
+ margin-right: ${adaptiveValueCalc(8)};
33
+ width: ${adaptiveValueCalc(28)};
34
+ height: ${adaptiveValueCalc(28)};
35
+ border-radius: ${adaptiveValueCalc(2)};
42
36
  }
43
37
 
44
38
  a {
45
- font-size: ${(0, _4k_1.adaptiveValueCalc)(18)};
39
+ font-size: ${adaptiveValueCalc(18)};
46
40
  }
47
41
  }
48
42
  `;
49
- const SH1 = (0, styled_components_1.default)(index_1.H1) `
50
- color: ${colors_1.BlackColor};
43
+ const SH1 = styled(H1) `
44
+ color: ${BlackColor};
51
45
  line-height: 42px;
52
46
  word-break: break-word;
53
47
 
@@ -57,24 +51,24 @@ const SH1 = (0, styled_components_1.default)(index_1.H1) `
57
51
  cursor: pointer;
58
52
  }
59
53
 
60
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
61
- line-height: ${(0, _4k_1.adaptiveValueCalc)(42)};
54
+ ${mediaQuery.minWidthFourK} {
55
+ line-height: ${adaptiveValueCalc(42)};
62
56
 
63
57
  span {
64
- padding-left: ${(0, _4k_1.adaptiveValueCalc)(5)};
58
+ padding-left: ${adaptiveValueCalc(5)};
65
59
  }
66
60
  }
67
61
  `;
68
62
  const Collection = (props) => {
69
- const NEXT_PUBLIC_STATIC_DOMAIN = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_STATIC_DOMAIN);
63
+ const NEXT_PUBLIC_STATIC_DOMAIN = useEnvStore((state) => state.NEXT_PUBLIC_STATIC_DOMAIN);
70
64
  if (!props.collectionTitle || !props.collectionId)
71
65
  return null;
72
- return ((0, jsx_runtime_1.jsxs)(SCollection, { alignItems: "center", children: [!!props.collectionMedias && ((0, jsx_runtime_1.jsx)(ImageInterceptor_1.ImageInterceptor, { children: (0, jsx_runtime_1.jsx)(index_1.ExternalImage, { src: (0, Urls_1.getAssetImage)(props.collectionMedias[0]?.url, '/noContent/noContent.svg', Urls_1.mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN), alt: "collection_img", width: 28, height: 28, borderRadius: 2 }) })), (0, jsx_runtime_1.jsx)(link_1.default, { href: `/collection/${props?.collectionId}`, children: props.collectionTitle })] }));
66
+ return (_jsxs(SCollection, { alignItems: "center", children: [!!props.collectionMedias && (_jsx(ImageInterceptor, { children: _jsx(ExternalImage, { src: getAssetImage(props.collectionMedias[0]?.url, '/noContent/noContent.svg', mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN), alt: "collection_img", width: 28, height: 28, borderRadius: 2 }) })), _jsx(Link, { href: `/collection/${props?.collectionId}`, children: props.collectionTitle })] }));
73
67
  };
74
- const Title = ({ name, collectionTitle, collectionMedias, collectionId, }) => {
75
- const [cuttedString, setCuttedString] = (0, react_1.useState)(name);
76
- const [isNeedReadMore, setNeedReadMore] = (0, react_1.useState)(false);
77
- (0, react_1.useEffect)(() => {
68
+ export const Title = ({ name, collectionTitle, collectionMedias, collectionId, }) => {
69
+ const [cuttedString, setCuttedString] = useState(name);
70
+ const [isNeedReadMore, setNeedReadMore] = useState(false);
71
+ useEffect(() => {
78
72
  if (name && name.length > 35) {
79
73
  setCuttedString(name.slice(0, 35));
80
74
  setNeedReadMore(true);
@@ -84,6 +78,5 @@ const Title = ({ name, collectionTitle, collectionMedias, collectionId, }) => {
84
78
  setCuttedString(name);
85
79
  setNeedReadMore(false);
86
80
  };
87
- return ((0, jsx_runtime_1.jsxs)(index_1.Flex, { flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(Collection, { collectionId: collectionId, collectionTitle: collectionTitle, collectionMedias: collectionMedias }), (0, jsx_runtime_1.jsxs)(SH1, { children: [cuttedString, isNeedReadMore && (0, jsx_runtime_1.jsx)("span", { onClick: handleReadMore, children: "..." })] })] }));
81
+ return (_jsxs(Flex, { flexDirection: "column", children: [_jsx(Collection, { collectionId: collectionId, collectionTitle: collectionTitle, collectionMedias: collectionMedias }), _jsxs(SH1, { children: [cuttedString, isNeedReadMore && _jsx("span", { onClick: handleReadMore, children: "..." })] })] }));
88
82
  };
89
- exports.Title = Title;
@@ -1,56 +1,50 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Viewer3D = exports.ScenePreview = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const react_1 = require("react");
9
- const drei_1 = require("@react-three/drei");
10
- const fiber_1 = require("@react-three/fiber");
11
- const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
12
- const styled_components_1 = __importDefault(require("styled-components"));
13
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
14
- const AssetImage_1 = __importDefault(require("../media/AssetImage"));
15
- const store_1 = require("../slider/store");
16
- const NoSSR_1 = __importDefault(require("../../base/NoSSR"));
17
- const ScreenWidth_1 = require("../../../styles/ScreenWidth");
18
- const colors_1 = require("../../../styles/colors");
19
- const index_1 = require("../../../system/index");
20
- const Togler = (0, styled_components_1.default)(index_1.Flex) `
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Suspense, useEffect, useState } from 'react';
3
+ import { Center, ContactShadows, OrbitControls, Stage, useGLTF, } from '@react-three/drei';
4
+ import { Canvas, useFrame } from '@react-three/fiber';
5
+ import Skeleton from 'react-loading-skeleton';
6
+ import styled from 'styled-components';
7
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
8
+ import AssetImage from "../media/AssetImage";
9
+ import { useSliderStore } from "../slider/store";
10
+ import NoSsr from "../../base/NoSSR";
11
+ import { mediaQuery } from "../../../styles/ScreenWidth";
12
+ import { BlackColor, InactiveButtonColor, TextGrayColor, WhiteColor, } from "../../../styles/colors";
13
+ import { Flex } from "../../../system/index";
14
+ const Togler = styled(Flex) `
21
15
  border-radius: 8px;
22
16
  position: absolute;
23
17
  top: 16px;
24
18
  right: 16px;
25
19
  overflow: hidden;
26
20
  z-index: 1;
27
- border: 1px solid ${colors_1.BlackColor};
21
+ border: 1px solid ${BlackColor};
28
22
 
29
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
30
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(8)};
31
- top: ${(0, _4k_1.adaptiveValueCalc)(16)};
32
- right: ${(0, _4k_1.adaptiveValueCalc)(16)};
33
- border: ${(0, _4k_1.adaptiveValueCalc)(1)} solid ${colors_1.BlackColor};
23
+ ${mediaQuery.minWidthFourK} {
24
+ border-radius: ${adaptiveValueCalc(8)};
25
+ top: ${adaptiveValueCalc(16)};
26
+ right: ${adaptiveValueCalc(16)};
27
+ border: ${adaptiveValueCalc(1)} solid ${BlackColor};
34
28
  }
35
29
  `;
36
- const ButtonTogler = styled_components_1.default.button `
30
+ const ButtonTogler = styled.button `
37
31
  border: none;
38
32
  cursor: pointer;
39
- background: ${(props) => (props.isActive ? colors_1.InactiveButtonColor : colors_1.WhiteColor)};
33
+ background: ${(props) => (props.isActive ? InactiveButtonColor : WhiteColor)};
40
34
  padding: 0;
41
35
  width: 36px;
42
36
  height: 36px;
43
37
  font-size: 13px;
44
38
  font-weight: 40;
45
- color: ${(props) => (props.isActive ? colors_1.BlackColor : colors_1.TextGrayColor)};
39
+ color: ${(props) => (props.isActive ? BlackColor : TextGrayColor)};
46
40
 
47
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
48
- width: ${(0, _4k_1.adaptiveValueCalc)(36)};
49
- height: ${(0, _4k_1.adaptiveValueCalc)(36)};
50
- font-size: ${(0, _4k_1.adaptiveValueCalc)(13)};
41
+ ${mediaQuery.minWidthFourK} {
42
+ width: ${adaptiveValueCalc(36)};
43
+ height: ${adaptiveValueCalc(36)};
44
+ font-size: ${adaptiveValueCalc(13)};
51
45
  }
52
46
  `;
53
- const StyledAsset = styled_components_1.default.div `
47
+ const StyledAsset = styled.div `
54
48
  max-height: 100%;
55
49
  max-width: 100%;
56
50
  width: 510px;
@@ -59,65 +53,63 @@ const StyledAsset = styled_components_1.default.div `
59
53
  position: relative;
60
54
  overflow: hidden;
61
55
  border-radius: 16px;
62
- background-color: ${colors_1.WhiteColor};
56
+ background-color: ${WhiteColor};
63
57
  display: flex;
64
58
  align-items: center;
65
59
  justify-content: center;
66
60
 
67
61
  //border: 2px solid rgba(0, 0, 0, 0.5);
68
62
 
69
- ${ScreenWidth_1.mediaQuery.desktop} {
63
+ ${mediaQuery.desktop} {
70
64
  width: 335px;
71
65
  margin-right: 30px;
72
66
  }
73
67
 
74
- ${ScreenWidth_1.mediaQuery.tablet} {
68
+ ${mediaQuery.tablet} {
75
69
  align-items: flex-start;
76
70
  width: 320px;
77
71
  margin-right: 0;
78
72
  }
79
73
 
80
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
81
- width: ${(0, _4k_1.adaptiveValueCalc)(510)};
82
- height: ${(0, _4k_1.adaptiveValueCalc)(510)};
83
- margin-right: ${(0, _4k_1.adaptiveValueCalc)(60)};
84
- border-radius: ${(0, _4k_1.adaptiveValueCalc)(16)};
74
+ ${mediaQuery.minWidthFourK} {
75
+ width: ${adaptiveValueCalc(510)};
76
+ height: ${adaptiveValueCalc(510)};
77
+ margin-right: ${adaptiveValueCalc(60)};
78
+ border-radius: ${adaptiveValueCalc(16)};
85
79
  }
86
80
  `;
87
81
  const ModelPreview = ({ file3D }) => {
88
- const gltf = (0, drei_1.useGLTF)(file3D);
89
- (0, fiber_1.useFrame)(() => {
82
+ const gltf = useGLTF(file3D);
83
+ useFrame(() => {
90
84
  gltf.scene.rotateY(0.002);
91
85
  });
92
- (0, react_1.useEffect)(() => {
86
+ useEffect(() => {
93
87
  return () => {
94
88
  gltf.scene.rotation.set(0, 0, 0);
95
89
  };
96
90
  }, [gltf]);
97
- return (0, jsx_runtime_1.jsx)("primitive", { object: gltf.scene });
91
+ return _jsx("primitive", { object: gltf.scene });
98
92
  };
99
- const ScenePreview = ({ file3D }) => {
93
+ export const ScenePreview = ({ file3D }) => {
100
94
  if (typeof window === 'undefined' || !file3D)
101
95
  return null;
102
- return ((0, jsx_runtime_1.jsx)(NoSSR_1.default, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { style: { position: 'absolute', left: 0, top: 0 }, height: "100%", width: "100%" }), children: (0, jsx_runtime_1.jsxs)(fiber_1.Canvas, { resize: { scroll: false }, children: [(0, jsx_runtime_1.jsx)(drei_1.ContactShadows, { opacity: 1, scale: 1000, blur: 0.5, far: 100, resolution: 2048, color: "#003366" }), (0, jsx_runtime_1.jsx)(drei_1.Stage, { environment: "city", preset: "rembrandt", children: (0, jsx_runtime_1.jsx)(drei_1.Center, { children: (0, jsx_runtime_1.jsx)(ModelPreview, { file3D: file3D }) }) }), (0, jsx_runtime_1.jsx)(drei_1.OrbitControls, {})] }) }) }));
96
+ return (_jsx(NoSsr, { children: _jsx(Suspense, { fallback: _jsx(Skeleton, { style: { position: 'absolute', left: 0, top: 0 }, height: "100%", width: "100%" }), children: _jsxs(Canvas, { resize: { scroll: false }, children: [_jsx(ContactShadows, { opacity: 1, scale: 1000, blur: 0.5, far: 100, resolution: 2048, color: "#003366" }), _jsx(Stage, { environment: "city", preset: "rembrandt", children: _jsx(Center, { children: _jsx(ModelPreview, { file3D: file3D }) }) }), _jsx(OrbitControls, {})] }) }) }));
103
97
  };
104
- exports.ScenePreview = ScenePreview;
105
- const Viewer3D = ({ file3D, file2D }) => {
106
- const [activeTab, setActiveTab] = (0, react_1.useState)('2D');
107
- const setIsDisabledSlider = (0, store_1.useSliderStore)((state) => state.setIsDisabled);
108
- return ((0, jsx_runtime_1.jsx)("div", { style: {
98
+ export const Viewer3D = ({ file3D, file2D }) => {
99
+ const [activeTab, setActiveTab] = useState('2D');
100
+ const setIsDisabledSlider = useSliderStore((state) => state.setIsDisabled);
101
+ return (_jsx("div", { style: {
109
102
  width: '100%',
110
103
  height: '100%',
111
- }, children: (0, jsx_runtime_1.jsxs)(StyledAsset, { is3D: activeTab === '3D', children: [(0, jsx_runtime_1.jsxs)(Togler, { children: [(0, jsx_runtime_1.jsx)(ButtonTogler, { isActive: activeTab === '2D', onClick: () => {
104
+ }, children: _jsxs(StyledAsset, { is3D: activeTab === '3D', children: [_jsxs(Togler, { children: [_jsx(ButtonTogler, { isActive: activeTab === '2D', onClick: () => {
112
105
  setActiveTab('2D');
113
106
  setIsDisabledSlider(false);
114
- }, children: "2D" }), (0, jsx_runtime_1.jsx)(ButtonTogler, { isActive: activeTab === '3D', onClick: () => {
107
+ }, children: "2D" }), _jsx(ButtonTogler, { isActive: activeTab === '3D', onClick: () => {
115
108
  setActiveTab('3D');
116
109
  setIsDisabledSlider(true);
117
- }, children: "3D" })] }), activeTab === '3D' && file3D ? ((0, jsx_runtime_1.jsx)("div", { style: {
110
+ }, children: "3D" })] }), activeTab === '3D' && file3D ? (_jsx("div", { style: {
118
111
  cursor: 'pointer',
119
112
  width: '100%',
120
113
  height: '100%',
121
- }, children: (0, jsx_runtime_1.jsx)(exports.ScenePreview, { file3D: file3D }) })) : ((0, jsx_runtime_1.jsx)(AssetImage_1.default, { alt: "fallback", imageUrl: file2D || '/noContent/noContentObject.svg', errorImg: '/noContent/noContentObject.svg' }))] }) }));
114
+ }, children: _jsx(ScenePreview, { file3D: file3D }) })) : (_jsx(AssetImage, { alt: "fallback", imageUrl: file2D || '/noContent/noContentObject.svg', errorImg: '/noContent/noContentObject.svg' }))] }) }));
122
115
  };
123
- exports.Viewer3D = Viewer3D;
@@ -1,14 +1,9 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const head_1 = __importDefault(require("next/head"));
8
- const env_1 = require("../../../store/env");
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import Head from 'next/head';
3
+ import { useEnvStore } from "../../../store/env";
9
4
  // Component
10
5
  const Meta = () => {
11
- const { NEXT_PUBLIC_STATIC_DOMAIN, NEXT_PUBLIC_ENV_DOMAIN, getMediaDomain, getStaticDomain, } = (0, env_1.useEnvStore)((state) => ({
6
+ const { NEXT_PUBLIC_STATIC_DOMAIN, NEXT_PUBLIC_ENV_DOMAIN, getMediaDomain, getStaticDomain, } = useEnvStore((state) => ({
12
7
  NEXT_PUBLIC_STATIC_DOMAIN: state.NEXT_PUBLIC_STATIC_DOMAIN,
13
8
  NEXT_PUBLIC_ENV_DOMAIN: state.NEXT_PUBLIC_ENV_DOMAIN,
14
9
  getMediaDomain: state.getMediaDomain,
@@ -33,7 +28,7 @@ const Meta = () => {
33
28
  cardType: 'summary_large_image',
34
29
  },
35
30
  };
36
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(head_1.default, { children: [(0, jsx_runtime_1.jsx)("title", { children: DEFAULT_SEO.title }), (0, jsx_runtime_1.jsx)("link", { rel: "preconnect", href: getMediaDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "preconnect", href: getStaticDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "dns-prefetch", href: getMediaDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "dns-prefetch", href: getStaticDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", type: "image/svg+xml", href: `${getStaticDomain()}/favicon/favicon.svg`, sizes: "any" }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", type: "image/x-icon", href: `${getStaticDomain()}/favicon/fav64.ico`, sizes: "any" }), (0, jsx_runtime_1.jsx)("link", { rel: "apple-touch-icon", href: `${getStaticDomain()}/favicon/favicon128.png` }), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: DEFAULT_SEO.description }, "description"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:card", content: DEFAULT_SEO.twitter.cardType }, "twitter:card"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:site", content: DEFAULT_SEO.twitter.handle }, "twitter:site"), (0, jsx_runtime_1.jsx)("meta", { property: "og:url", content: DEFAULT_SEO.openGraph.url }, "og:url"), (0, jsx_runtime_1.jsx)("meta", { property: "og:type", content: DEFAULT_SEO.openGraph.type }, "og:type"), (0, jsx_runtime_1.jsx)("meta", { property: "og:title", content: DEFAULT_SEO.openGraph.title }, "og:title"), (0, jsx_runtime_1.jsx)("meta", { property: "og:description", content: DEFAULT_SEO.openGraph.description }, "og:description"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image", content: DEFAULT_SEO.openGraph.image }, "og:image"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:width", content: DEFAULT_SEO.openGraph.imageWidth }, "og:image:width"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:height", content: DEFAULT_SEO.openGraph.imageHeight }, "og:image:height"), (0, jsx_runtime_1.jsx)("meta", { property: "og:locale", content: DEFAULT_SEO.openGraph.locale }, "og:locale"), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), (0, jsx_runtime_1.jsx)("meta", { charSet: "utf-8" }), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" })] }) }));
31
+ return (_jsx(_Fragment, { children: _jsxs(Head, { children: [_jsx("title", { children: DEFAULT_SEO.title }), _jsx("link", { rel: "preconnect", href: getMediaDomain() }), _jsx("link", { rel: "preconnect", href: getStaticDomain() }), _jsx("link", { rel: "dns-prefetch", href: getMediaDomain() }), _jsx("link", { rel: "dns-prefetch", href: getStaticDomain() }), _jsx("link", { rel: "icon", type: "image/svg+xml", href: `${getStaticDomain()}/favicon/favicon.svg`, sizes: "any" }), _jsx("link", { rel: "icon", type: "image/x-icon", href: `${getStaticDomain()}/favicon/fav64.ico`, sizes: "any" }), _jsx("link", { rel: "apple-touch-icon", href: `${getStaticDomain()}/favicon/favicon128.png` }), _jsx("meta", { name: "description", content: DEFAULT_SEO.description }, "description"), _jsx("meta", { name: "twitter:card", content: DEFAULT_SEO.twitter.cardType }, "twitter:card"), _jsx("meta", { name: "twitter:site", content: DEFAULT_SEO.twitter.handle }, "twitter:site"), _jsx("meta", { property: "og:url", content: DEFAULT_SEO.openGraph.url }, "og:url"), _jsx("meta", { property: "og:type", content: DEFAULT_SEO.openGraph.type }, "og:type"), _jsx("meta", { property: "og:title", content: DEFAULT_SEO.openGraph.title }, "og:title"), _jsx("meta", { property: "og:description", content: DEFAULT_SEO.openGraph.description }, "og:description"), _jsx("meta", { property: "og:image", content: DEFAULT_SEO.openGraph.image }, "og:image"), _jsx("meta", { property: "og:image:width", content: DEFAULT_SEO.openGraph.imageWidth }, "og:image:width"), _jsx("meta", { property: "og:image:height", content: DEFAULT_SEO.openGraph.imageHeight }, "og:image:height"), _jsx("meta", { property: "og:locale", content: DEFAULT_SEO.openGraph.locale }, "og:locale"), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), _jsx("meta", { charSet: "utf-8" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" })] }) }));
37
32
  };
38
33
  // Export
39
- exports.default = Meta;
34
+ export default Meta;
@@ -1,11 +1,6 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const dynamic_1 = __importDefault(require("next/dynamic"));
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import dynamic from 'next/dynamic';
8
3
  // Component
9
- const NoSsr = (props) => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.children });
4
+ const NoSsr = (props) => _jsx(_Fragment, { children: props.children });
10
5
  // Export
11
- exports.default = (0, dynamic_1.default)(() => Promise.resolve(NoSsr), { ssr: false });
6
+ export default dynamic(() => Promise.resolve(NoSsr), { ssr: false });
@@ -1,28 +1,23 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_1 = require("react");
8
- const chooseGalleryItems_1 = __importDefault(require("../../../../modules/gallery/ui/chooseGalleryItems"));
9
- const createGalleryForm_1 = __importDefault(require("../../../../modules/gallery/ui/createGalleryForm"));
10
- const ui_1 = require("../../../../store/ui");
11
- const useAddCreationsToGallery_1 = require("../../../../api/server-galleries/mutations/useAddCreationsToGallery");
12
- const useCreateFavorites_1 = require("../../../../api/server-galleries/mutations/useCreateFavorites");
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import ChooseGalleryItems from "../../../../modules/gallery/ui/chooseGalleryItems";
4
+ import CreateGalleryForm from "../../../../modules/gallery/ui/createGalleryForm";
5
+ import { useUiStore } from "../../../../store/ui";
6
+ import { useAddCreationsToGalleryV2 } from "../../../../api/server-galleries/mutations/useAddCreationsToGallery";
7
+ import { useCreateFavoriteListV2 } from "../../../../api/server-galleries/mutations/useCreateFavorites";
13
8
  // Component
14
9
  const AddCreationToFavoriteList = ({ ids, currentMyGalleryId, }) => {
15
- const [isNeedAddFavList, setAddFavList] = (0, react_1.useState)(false);
16
- const closeModalSidebarPortal = (0, ui_1.useUiStore)((state) => state.closeModalSidebarPortal);
17
- const { createFavorites, errorCreateFavorites } = (0, useCreateFavorites_1.useCreateFavoriteListV2)();
18
- const { addCreationsToGallery, isAdded, error } = (0, useAddCreationsToGallery_1.useAddCreationsToGalleryV2)();
10
+ const [isNeedAddFavList, setAddFavList] = useState(false);
11
+ const closeModalSidebarPortal = useUiStore((state) => state.closeModalSidebarPortal);
12
+ const { createFavorites, errorCreateFavorites } = useCreateFavoriteListV2();
13
+ const { addCreationsToGallery, isAdded, error } = useAddCreationsToGalleryV2();
19
14
  const addMethod = async (galleryId, ids) => {
20
15
  await addCreationsToGallery({ galleryId, creationIds: ids });
21
16
  setTimeout(() => closeModalSidebarPortal(), 900);
22
17
  };
23
- return ((0, jsx_runtime_1.jsx)("div", { children: isNeedAddFavList ? ((0, jsx_runtime_1.jsx)(createGalleryForm_1.default, { setAddGallery: setAddFavList, title: 'Create Favourite List', inputPlaceHolderText: 'List Name',
18
+ return (_jsx("div", { children: isNeedAddFavList ? (_jsx(CreateGalleryForm, { setAddGallery: setAddFavList, title: 'Create Favourite List', inputPlaceHolderText: 'List Name',
24
19
  // ids={ids}
25
- createMethod: createFavorites, error: errorCreateFavorites })) : ((0, jsx_runtime_1.jsx)(chooseGalleryItems_1.default, { setAddGallery: setAddFavList, title: 'Add to Favourite List', titleBtn: '+ New Favourite List', ids: ids, addMethod: addMethod, isAdded: isAdded, error: error, currentMyGalleryId: currentMyGalleryId })) }));
20
+ createMethod: createFavorites, error: errorCreateFavorites })) : (_jsx(ChooseGalleryItems, { setAddGallery: setAddFavList, title: 'Add to Favourite List', titleBtn: '+ New Favourite List', ids: ids, addMethod: addMethod, isAdded: isAdded, error: error, currentMyGalleryId: currentMyGalleryId })) }));
26
21
  };
27
22
  // Export
28
- exports.default = AddCreationToFavoriteList;
23
+ export default AddCreationToFavoriteList;
@@ -1,20 +1,15 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_1 = require("react");
8
- const styled_components_1 = __importDefault(require("styled-components"));
9
- const chooseGalleryItems_1 = __importDefault(require("../../../../modules/gallery/ui/chooseGalleryItems"));
10
- const createGalleryForm_1 = __importDefault(require("../../../../modules/gallery/ui/createGalleryForm"));
11
- const itemsPreview_1 = __importDefault(require("../../../../modules/gallery/ui/itemsPreview"));
12
- const useToGalleryAsset_1 = require("../../../../modules/gallery/useToGalleryAsset");
13
- const ui_1 = require("../../../../store/ui");
14
- const useAddCreationsToGallery_1 = require("../../../../api/server-galleries/mutations/useAddCreationsToGallery");
15
- const useCreateGallery_1 = require("../../../../api/server-galleries/mutations/useCreateGallery");
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import styled from 'styled-components';
4
+ import ChooseGalleryItems from "../../../../modules/gallery/ui/chooseGalleryItems";
5
+ import CreateGalleryForm from "../../../../modules/gallery/ui/createGalleryForm";
6
+ import ItemsPreview from "../../../../modules/gallery/ui/itemsPreview";
7
+ import { useToGalleryStore } from "../../../../modules/gallery/useToGalleryAsset";
8
+ import { useUiStore } from "../../../../store/ui";
9
+ import { useAddCreationsToGalleryV2 } from "../../../../api/server-galleries/mutations/useAddCreationsToGallery";
10
+ import { useCreateGalleryV2 } from "../../../../api/server-galleries/mutations/useCreateGallery";
16
11
  // Styles
17
- const StyledAddGallery = styled_components_1.default.div `
12
+ const StyledAddGallery = styled.div `
18
13
  display: flex;
19
14
 
20
15
  @media (max-width: 767px) {
@@ -23,26 +18,26 @@ const StyledAddGallery = styled_components_1.default.div `
23
18
  `;
24
19
  // Component
25
20
  const AddCreationToGallery = () => {
26
- const { removeCreationFromGalleryWithCallback, creationsToGallery, resetCreationsInGallery: actionResetCheckboxes, } = (0, useToGalleryAsset_1.useToGalleryStore)((state) => ({
21
+ const { removeCreationFromGalleryWithCallback, creationsToGallery, resetCreationsInGallery: actionResetCheckboxes, } = useToGalleryStore((state) => ({
27
22
  resetCreationsInGallery: state.resetCreationsInGallery,
28
23
  creationsToGallery: state.creationsToGallery,
29
24
  removeCreationFromGalleryWithCallback: state.removeCreationFromGalleryWithCallback,
30
25
  }));
31
- const { createGallery, errorCreateGallery } = (0, useCreateGallery_1.useCreateGalleryV2)();
32
- const closeModalSidebarPortal = (0, ui_1.useUiStore)((state) => state.closeModalSidebarPortal);
33
- const [isNeedAddGallery, setAddGallery] = (0, react_1.useState)(false);
34
- const { addCreationsToGallery, isAdded, error } = (0, useAddCreationsToGallery_1.useAddCreationsToGalleryV2)();
26
+ const { createGallery, errorCreateGallery } = useCreateGalleryV2();
27
+ const closeModalSidebarPortal = useUiStore((state) => state.closeModalSidebarPortal);
28
+ const [isNeedAddGallery, setAddGallery] = useState(false);
29
+ const { addCreationsToGallery, isAdded, error } = useAddCreationsToGalleryV2();
35
30
  const addMethod = async (galleryId, ids) => {
36
31
  await addCreationsToGallery({ galleryId, creationIds: ids });
37
32
  actionResetCheckboxes();
38
33
  closeModalSidebarPortal();
39
34
  };
40
35
  const ids = creationsToGallery.map((creations) => creations.getCreationId());
41
- return ((0, jsx_runtime_1.jsxs)(StyledAddGallery, { children: [(0, jsx_runtime_1.jsx)(itemsPreview_1.default, { creations: creationsToGallery, title: 'Add to Gallery', deleteMethod: (itemId) => {
36
+ return (_jsxs(StyledAddGallery, { children: [_jsx(ItemsPreview, { creations: creationsToGallery, title: 'Add to Gallery', deleteMethod: (itemId) => {
42
37
  removeCreationFromGalleryWithCallback(itemId, closeModalSidebarPortal);
43
- } }), isNeedAddGallery ? ((0, jsx_runtime_1.jsx)(createGalleryForm_1.default, { setAddGallery: setAddGallery,
38
+ } }), isNeedAddGallery ? (_jsx(CreateGalleryForm, { setAddGallery: setAddGallery,
44
39
  // ids={ids as string[]}
45
- title: 'Create Gallery', createMethod: createGallery, inputPlaceHolderText: 'Gallery Name', error: errorCreateGallery })) : ((0, jsx_runtime_1.jsx)(chooseGalleryItems_1.default, { setAddGallery: setAddGallery, title: 'Choose Gallery', titleBtn: '+ New Gallery', ids: ids, addMethod: addMethod, isAdded: isAdded, error: error, isGetMyGalleries: true }))] }));
40
+ title: 'Create Gallery', createMethod: createGallery, inputPlaceHolderText: 'Gallery Name', error: errorCreateGallery })) : (_jsx(ChooseGalleryItems, { setAddGallery: setAddGallery, title: 'Choose Gallery', titleBtn: '+ New Gallery', ids: ids, addMethod: addMethod, isAdded: isAdded, error: error, isGetMyGalleries: true }))] }));
46
41
  };
47
42
  // Export
48
- exports.default = AddCreationToGallery;
43
+ export default AddCreationToGallery;
@@ -1,31 +1,26 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const styled_components_1 = __importDefault(require("styled-components"));
8
- const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
9
- const store_1 = require("../../../../modules/user/store");
10
- const ScreenWidth_1 = require("../../../../styles/ScreenWidth");
11
- const ExperienceLabel_1 = __importDefault(require("../../../../system/Labels/ExperienceLabel"));
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styled from 'styled-components';
3
+ import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
4
+ import { useUserStore } from "../../../../modules/user/store";
5
+ import { mediaQuery } from "../../../../styles/ScreenWidth";
6
+ import ExperienceLabel from "../../../../system/Labels/ExperienceLabel";
12
7
  // Styles
13
- const StyledHeaderExperienceLabel = styled_components_1.default.div `
8
+ const StyledHeaderExperienceLabel = styled.div `
14
9
  margin-right: 20px;
15
- ${ScreenWidth_1.mediaQuery.minWidthFourK} {
16
- margin-right: ${(0, _4k_1.adaptiveValueCalc)(20)};
10
+ ${mediaQuery.minWidthFourK} {
11
+ margin-right: ${adaptiveValueCalc(20)};
17
12
  }
18
13
  `;
19
14
  // Component
20
15
  const HeaderExperienceLabel = ({ userId }) => {
21
- const { userExp, isLoadingExp, errorExp } = (0, store_1.useUserStore)((state) => ({
16
+ const { userExp, isLoadingExp, errorExp } = useUserStore((state) => ({
22
17
  userExp: state.userExp,
23
18
  isLoadingExp: state.isLoadingExp,
24
19
  errorExp: state.errorExp,
25
20
  }));
26
21
  if (!userId)
27
22
  return null;
28
- return ((0, jsx_runtime_1.jsx)(StyledHeaderExperienceLabel, { children: (0, jsx_runtime_1.jsx)(ExperienceLabel_1.default, { value: userExp.xps, link: `/rewards/${userId}`, loading: isLoadingExp || !!errorExp }) }));
23
+ return (_jsx(StyledHeaderExperienceLabel, { children: _jsx(ExperienceLabel, { value: userExp.xps, link: `/rewards/${userId}`, loading: isLoadingExp || !!errorExp }) }));
29
24
  };
30
25
  // Export
31
- exports.default = HeaderExperienceLabel;
26
+ export default HeaderExperienceLabel;