@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.
- package/build/api/graphql/index.js +3 -7
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
- package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
- package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
- package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
- package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
- package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
- package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
- package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
- package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
- package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
- package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
- package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
- package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
- package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
- package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
- package/build/api/server-search/queries/useFindCreations/index.js +20 -28
- package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
- package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
- package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
- package/build/components/assetPage/assetLikes/index.js +25 -30
- package/build/components/assetPage/assetNft/index.js +14 -21
- package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
- package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
- package/build/components/assetPage/category/index.js +18 -25
- package/build/components/assetPage/description/index.js +17 -24
- package/build/components/assetPage/index.js +11 -25
- package/build/components/assetPage/information/index.js +43 -50
- package/build/components/assetPage/marketPlaces/index.js +26 -33
- package/build/components/assetPage/media/AssetImage/index.js +52 -80
- package/build/components/assetPage/moreDropDown/index.js +47 -77
- package/build/components/assetPage/participants/index.js +64 -71
- package/build/components/assetPage/priceRank/index.js +38 -45
- package/build/components/assetPage/properties/index.js +19 -26
- package/build/components/assetPage/slider/index.js +44 -51
- package/build/components/assetPage/slider/slideItem.js +14 -21
- package/build/components/assetPage/slider/store.js +2 -5
- package/build/components/assetPage/tittle/index.js +32 -39
- package/build/components/assetPage/viewer3D/index.js +50 -58
- package/build/components/base/Meta/index.js +6 -11
- package/build/components/base/NoSSR/index.js +4 -9
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
- package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
- package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
- package/build/components/headers/components/headerUserPic/index.js +11 -16
- package/build/components/headers/header/index.js +17 -22
- package/build/components/headers/headerSearch/index.js +21 -26
- package/build/components/headers/headerSimple/index.js +14 -19
- package/build/components/linkTabs/index.js +14 -19
- package/build/components/linkTabs/linkTab/index.js +22 -27
- package/build/components/profile/profileSkeleton/index.js +10 -18
- package/build/components/search/SearchInputContainer.js +61 -91
- package/build/components/search/searchCloseMoreButtons/index.js +20 -25
- package/build/components/search/searchSimpleInput/index.js +37 -65
- package/build/components/search/searchSuggestions/index.js +32 -37
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
- package/build/components/searchFiltersConnector/filters/index.js +38 -43
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
- package/build/components/searchFiltersConnector/index.js +12 -19
- package/build/components/sidebar/data.js +18 -26
- package/build/components/sidebar/index.js +59 -87
- package/build/components/sidebar/initializer.js +4 -34
- package/build/components/sidebar/sidebarFilters/index.js +8 -13
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
- package/build/components/toTopBtn/index.js +32 -39
- package/build/dto/AssetEntity/index.js +19 -24
- package/build/dto/AssetEntity/interface.js +1 -2
- package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
- package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
- package/build/dto/AssetEntity/views/index.js +6 -16
- package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
- package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
- package/build/dto/Collection/CollectionEntity/index.js +5 -7
- package/build/dto/Collection/CollectionEntity/interface.js +1 -2
- package/build/dto/CreationEntity/index.js +19 -24
- package/build/dto/CreationEntity/interface.js +1 -2
- package/build/dto/GalleryEntityV2/index.js +5 -10
- package/build/dto/GalleryEntityV2/interface.js +1 -2
- package/build/dto/Theme/interface.js +1 -5
- package/build/dto/common/ItemType/data.js +26 -28
- package/build/dto/common/ItemType/index.js +5 -7
- package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
- package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
- package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
- package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
- package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
- package/build/dto/common/Media/Audio/index.js +9 -14
- package/build/dto/common/Media/Image/index.js +10 -15
- package/build/dto/common/Media/Object/index.js +9 -14
- package/build/dto/common/Media/Other/index.js +14 -19
- package/build/dto/common/Media/Screenshot/index.js +10 -15
- package/build/dto/common/Media/Urls/index.js +23 -38
- package/build/dto/common/Media/Video/index.js +9 -14
- package/build/dto/common/Media/index.js +3 -5
- package/build/dto/common/Media/interface.js +1 -2
- package/build/entities/user/type.js +1 -2
- package/build/fonts/FontsInitializeLayout.js +13 -16
- package/build/fonts/vars.js +1 -6
- package/build/hooks/apollo/index.js +8 -11
- package/build/hooks/audio/useMultiAudio/index.js +10 -12
- package/build/hooks/extension/useExtension/index.js +8 -10
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
- package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
- package/build/hooks/likes/index.js +27 -32
- package/build/hooks/likes/useGetLikesAsset.js +20 -24
- package/build/layouts/GlobalLayout.js +24 -31
- package/build/layouts/base/LWithRegularHeader/index.js +7 -12
- package/build/layouts/base/LWithRegularHeader/type.js +1 -2
- package/build/layouts/base/LWithSearchHeader/index.js +5 -10
- package/build/layouts/base/LWithSearchHeader/type.js +1 -2
- package/build/layouts/custom/mainLayout/index.js +8 -13
- package/build/layouts/custom/styles.js +15 -21
- package/build/layouts/pageTransitionLayout.js +6 -8
- package/build/layouts/pageWithLayout.js +1 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
- package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
- package/build/modules/gallery/store.js +10 -16
- package/build/modules/gallery/ui/AllResults.js +7 -11
- package/build/modules/gallery/ui/Description.js +24 -31
- package/build/modules/gallery/ui/EditGallery.js +15 -22
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
- package/build/modules/gallery/ui/STopSections.js +10 -16
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
- package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
- package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
- package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
- package/build/modules/gallery/useToGalleryAsset.js +15 -23
- package/build/modules/notifications/CreatorNotifications.js +10 -40
- package/build/modules/notifications/index.js +3 -6
- package/build/modules/opportunity/OpportunityCard.js +81 -88
- package/build/modules/opportunity/OpportunityDropDown.js +11 -18
- package/build/modules/opportunity/ShareIcon.js +2 -6
- package/build/modules/opportunity/encodeQuery.js +4 -10
- package/build/modules/opportunity/popup/CopyIcon.js +3 -5
- package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
- package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
- package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
- package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
- package/build/modules/opportunity/type.js +1 -2
- package/build/modules/sessionScroll/globalTabs.js +1 -4
- package/build/modules/sessionScroll/index.js +16 -23
- package/build/modules/sessionScroll/type.js +1 -2
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
- package/build/modules/user/auth/useAuthVerification.js +10 -37
- package/build/modules/user/auth/useSignIn.js +7 -11
- package/build/modules/user/auth/useSignOut.js +11 -18
- package/build/modules/user/profileData/profileDataInitialization.js +14 -18
- package/build/modules/user/store.js +9 -12
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
- package/build/modules/virtuoso/types.js +1 -2
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
- package/build/modules/virtuoso/useVirtuosoData.js +6 -10
- package/build/store/env/index.js +4 -7
- package/build/store/index.js +4 -7
- package/build/store/media/index.js +4 -7
- package/build/store/media/types.js +1 -2
- package/build/store/ui/index.js +21 -24
- package/build/store/ui/types.js +1 -2
- package/build/store/ui/utils.js +4 -8
- package/build/styles/ScreenWidth.js +3 -6
- package/build/styles/animations/index.js +3 -6
- package/build/styles/colors/index.js +1 -38
- package/build/styles/globalStyles.js +5 -7
- package/build/styles/mixins/boxShadow.js +3 -5
- package/build/styles/mixins/boxTransform.js +3 -5
- package/build/styles/mixins/z-indexes.js +10 -13
- package/build/styles/typography/index.js +1 -13
- package/build/system/ActiveLink/ActiveLink.test.js +14 -19
- package/build/system/ActiveLink/index.js +10 -38
- package/build/system/Alert/index.js +6 -11
- package/build/system/Alert/type.js +1 -8
- package/build/system/BasicOverlay/index.js +5 -10
- package/build/system/Buttons/IconButton/index.js +2 -7
- package/build/system/Buttons/IconWithButton/index.js +2 -7
- package/build/system/Buttons/MainButton/index.js +2 -7
- package/build/system/Buttons/SecondaryButton/index.js +2 -7
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
- package/build/system/Cards/CardCheckbox/index.js +19 -24
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
- package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
- package/build/system/Cards/CardContent/CardContent.test.js +31 -36
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
- package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
- package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
- package/build/system/Cards/CardContent/index.js +32 -37
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
- package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
- package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
- package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
- package/build/system/Cards/CardRank/index.js +32 -37
- package/build/system/Cards/CreationCard/CardHead.js +35 -42
- package/build/system/Cards/CreationCard/index.js +45 -76
- package/build/system/Cards/MultiMediaCard/index.js +30 -35
- package/build/system/Cards/Styles/Content.js +9 -14
- package/build/system/Cards/Styles/Head.js +8 -13
- package/build/system/Cards/Styles/Headicons.js +23 -28
- package/build/system/Cards/Styles/Image.js +8 -13
- package/build/system/Cards/Styles/Likes.js +14 -19
- package/build/system/Cards/Styles/MultiHead.js +11 -16
- package/build/system/Cards/Styles/Video.js +3 -8
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
- package/build/system/DropDown/DropDown.test.js +14 -19
- package/build/system/DropDown/index.js +12 -17
- package/build/system/Filters/helpers.js +1 -5
- package/build/system/Filters/type.js +2 -5
- package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
- package/build/system/Forms/Checkbox/index.js +16 -21
- package/build/system/Forms/DatePicker/index.js +46 -51
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
- package/build/system/Forms/ErrorLabel/index.js +10 -15
- package/build/system/Forms/Input/Input.test.js +13 -18
- package/build/system/Forms/Input/index.js +29 -35
- package/build/system/Forms/Input/type.js +1 -2
- package/build/system/Forms/Messages/index.js +1 -3
- package/build/system/Forms/RadioInput/index.js +12 -17
- package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
- package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
- package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
- package/build/system/Forms/TextArea/TextArea.test.js +13 -18
- package/build/system/Forms/TextArea/index.js +26 -31
- package/build/system/Forms/index.js +5 -14
- package/build/system/Img/ExternalImage/index.js +11 -17
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
- package/build/system/Img/ImageInterceptor/index.js +10 -40
- package/build/system/Img/Profilepic/index.js +12 -19
- package/build/system/Img/Userpic/UserPic.test.js +15 -20
- package/build/system/Img/Userpic/index.js +28 -33
- package/build/system/Img/index.js +3 -19
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
- package/build/system/Labels/ExperienceLabel/index.js +27 -32
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
- package/build/system/Labels/InviteLabel/index.js +14 -19
- package/build/system/Labels/SkeletonLabel/index.js +2 -7
- package/build/system/Modals/Modal/Modal.test.js +11 -16
- package/build/system/Modals/Modal/index.js +24 -29
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
- package/build/system/Modals/ModalSidebar/index.js +23 -29
- package/build/system/Overlay/Overlay.test.js +11 -16
- package/build/system/Overlay/index.js +11 -16
- package/build/system/PageLoader/index.js +2 -7
- package/build/system/Palete/index.js +2 -7
- package/build/system/ShareIconResize.js +14 -21
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
- package/build/system/Tabs/TabNavLink/index.js +17 -23
- package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
- package/build/system/Tabs/TabsNav/index.js +7 -13
- package/build/system/Tabs/TabsNav/type.js +1 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
- package/build/system/Tabs/TabsPanel/index.js +5 -10
- package/build/system/index.js +6 -22
- package/build/system/theme.js +1 -7
- package/build/utils/3d.js +1 -5
- package/build/utils/adaptive/check4k.js +5 -9
- package/build/utils/adaptive/scale.js +5 -9
- package/build/utils/auth/index.js +3 -7
- package/build/utils/copyBtn/index.js +23 -30
- package/build/utils/env/index.js +1 -5
- package/build/utils/extractItemIds.js +3 -9
- package/build/utils/getDimensionsImage.js +1 -5
- package/build/utils/getPageSizeAssets.js +4 -8
- package/build/utils/imageProportionsSize/index.js +1 -5
- package/build/utils/screen/index.js +24 -30
- package/build/utils/seacrhTabs.js +1 -4
- package/build/utils/ssrFunctions/index.js +9 -15
- package/build/utils/ui/index.js +1 -5
- package/package.json +2 -3
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
${
|
|
19
|
+
${ReactPlayerWrapper} {
|
|
26
20
|
margin-right: 0;
|
|
27
21
|
}
|
|
28
22
|
|
|
29
|
-
${
|
|
23
|
+
${mediaQuery.desktop} {
|
|
30
24
|
width: 280px;
|
|
31
25
|
height: 280px;
|
|
32
26
|
}
|
|
33
27
|
|
|
34
|
-
${
|
|
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
|
-
/* ${
|
|
36
|
+
/* ${mediaQuery.desktop} {
|
|
43
37
|
width:100%;
|
|
44
38
|
} */
|
|
45
39
|
}
|
|
46
|
-
${
|
|
47
|
-
border-radius: ${
|
|
40
|
+
${mediaQuery.minWidthFourK} {
|
|
41
|
+
border-radius: ${adaptiveValueCalc(16)};
|
|
48
42
|
}
|
|
49
43
|
`;
|
|
50
|
-
const SlideItem = ({ item, key }) => {
|
|
51
|
-
return (
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
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: ${
|
|
25
|
+
color: ${AccentColor};
|
|
32
26
|
}
|
|
33
27
|
|
|
34
|
-
${
|
|
35
|
-
margin-bottom: ${
|
|
28
|
+
${mediaQuery.minWidthFourK} {
|
|
29
|
+
margin-bottom: ${adaptiveValueCalc(8)};
|
|
36
30
|
|
|
37
31
|
img {
|
|
38
|
-
margin-right: ${
|
|
39
|
-
width: ${
|
|
40
|
-
height: ${
|
|
41
|
-
border-radius: ${
|
|
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: ${
|
|
39
|
+
font-size: ${adaptiveValueCalc(18)};
|
|
46
40
|
}
|
|
47
41
|
}
|
|
48
42
|
`;
|
|
49
|
-
const SH1 = (
|
|
50
|
-
color: ${
|
|
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
|
-
${
|
|
61
|
-
line-height: ${
|
|
54
|
+
${mediaQuery.minWidthFourK} {
|
|
55
|
+
line-height: ${adaptiveValueCalc(42)};
|
|
62
56
|
|
|
63
57
|
span {
|
|
64
|
-
padding-left: ${
|
|
58
|
+
padding-left: ${adaptiveValueCalc(5)};
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
61
|
`;
|
|
68
62
|
const Collection = (props) => {
|
|
69
|
-
const 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 ((
|
|
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] =
|
|
76
|
-
const [isNeedReadMore, setNeedReadMore] =
|
|
77
|
-
|
|
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 ((
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
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 ${
|
|
21
|
+
border: 1px solid ${BlackColor};
|
|
28
22
|
|
|
29
|
-
${
|
|
30
|
-
border-radius: ${
|
|
31
|
-
top: ${
|
|
32
|
-
right: ${
|
|
33
|
-
border: ${
|
|
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 =
|
|
30
|
+
const ButtonTogler = styled.button `
|
|
37
31
|
border: none;
|
|
38
32
|
cursor: pointer;
|
|
39
|
-
background: ${(props) => (props.isActive ?
|
|
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 ?
|
|
39
|
+
color: ${(props) => (props.isActive ? BlackColor : TextGrayColor)};
|
|
46
40
|
|
|
47
|
-
${
|
|
48
|
-
width: ${
|
|
49
|
-
height: ${
|
|
50
|
-
font-size: ${
|
|
41
|
+
${mediaQuery.minWidthFourK} {
|
|
42
|
+
width: ${adaptiveValueCalc(36)};
|
|
43
|
+
height: ${adaptiveValueCalc(36)};
|
|
44
|
+
font-size: ${adaptiveValueCalc(13)};
|
|
51
45
|
}
|
|
52
46
|
`;
|
|
53
|
-
const StyledAsset =
|
|
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: ${
|
|
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
|
-
${
|
|
63
|
+
${mediaQuery.desktop} {
|
|
70
64
|
width: 335px;
|
|
71
65
|
margin-right: 30px;
|
|
72
66
|
}
|
|
73
67
|
|
|
74
|
-
${
|
|
68
|
+
${mediaQuery.tablet} {
|
|
75
69
|
align-items: flex-start;
|
|
76
70
|
width: 320px;
|
|
77
71
|
margin-right: 0;
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
${
|
|
81
|
-
width: ${
|
|
82
|
-
height: ${
|
|
83
|
-
margin-right: ${
|
|
84
|
-
border-radius: ${
|
|
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 =
|
|
89
|
-
|
|
82
|
+
const gltf = useGLTF(file3D);
|
|
83
|
+
useFrame(() => {
|
|
90
84
|
gltf.scene.rotateY(0.002);
|
|
91
85
|
});
|
|
92
|
-
|
|
86
|
+
useEffect(() => {
|
|
93
87
|
return () => {
|
|
94
88
|
gltf.scene.rotation.set(0, 0, 0);
|
|
95
89
|
};
|
|
96
90
|
}, [gltf]);
|
|
97
|
-
return (
|
|
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 ((
|
|
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
|
-
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
|
|
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: (
|
|
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" }), (
|
|
107
|
+
}, children: "2D" }), _jsx(ButtonTogler, { isActive: activeTab === '3D', onClick: () => {
|
|
115
108
|
setActiveTab('3D');
|
|
116
109
|
setIsDisabledSlider(true);
|
|
117
|
-
}, children: "3D" })] }), activeTab === '3D' && file3D ? ((
|
|
110
|
+
}, children: "3D" })] }), activeTab === '3D' && file3D ? (_jsx("div", { style: {
|
|
118
111
|
cursor: 'pointer',
|
|
119
112
|
width: '100%',
|
|
120
113
|
height: '100%',
|
|
121
|
-
}, children: (
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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, } =
|
|
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 ((
|
|
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
|
-
|
|
34
|
+
export default Meta;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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) => (
|
|
4
|
+
const NoSsr = (props) => _jsx(_Fragment, { children: props.children });
|
|
10
5
|
// Export
|
|
11
|
-
|
|
6
|
+
export default dynamic(() => Promise.resolve(NoSsr), { ssr: false });
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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] =
|
|
16
|
-
const closeModalSidebarPortal =
|
|
17
|
-
const { createFavorites, errorCreateFavorites } =
|
|
18
|
-
const { addCreationsToGallery, isAdded, error } =
|
|
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 ((
|
|
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 })) : ((
|
|
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
|
-
|
|
23
|
+
export default AddCreationToFavoriteList;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 =
|
|
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, } =
|
|
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 } =
|
|
32
|
-
const closeModalSidebarPortal =
|
|
33
|
-
const [isNeedAddGallery, setAddGallery] =
|
|
34
|
-
const { addCreationsToGallery, isAdded, error } =
|
|
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 ((
|
|
36
|
+
return (_jsxs(StyledAddGallery, { children: [_jsx(ItemsPreview, { creations: creationsToGallery, title: 'Add to Gallery', deleteMethod: (itemId) => {
|
|
42
37
|
removeCreationFromGalleryWithCallback(itemId, closeModalSidebarPortal);
|
|
43
|
-
} }), isNeedAddGallery ? ((
|
|
38
|
+
} }), isNeedAddGallery ? (_jsx(CreateGalleryForm, { setAddGallery: setAddGallery,
|
|
44
39
|
// ids={ids as string[]}
|
|
45
|
-
title: 'Create Gallery', createMethod: createGallery, inputPlaceHolderText: 'Gallery Name', error: errorCreateGallery })) : ((
|
|
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
|
-
|
|
43
|
+
export default AddCreationToGallery;
|
|
@@ -1,31 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
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 =
|
|
8
|
+
const StyledHeaderExperienceLabel = styled.div `
|
|
14
9
|
margin-right: 20px;
|
|
15
|
-
${
|
|
16
|
-
margin-right: ${
|
|
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 } =
|
|
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 ((
|
|
23
|
+
return (_jsx(StyledHeaderExperienceLabel, { children: _jsx(ExperienceLabel, { value: userExp.xps, link: `/rewards/${userId}`, loading: isLoadingExp || !!errorExp }) }));
|
|
29
24
|
};
|
|
30
25
|
// Export
|
|
31
|
-
|
|
26
|
+
export default HeaderExperienceLabel;
|