@mohamed-karawia/library 0.1.20 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +27 -27
- package/dist/stories/Chat/Chat.js +24 -31
- package/dist/stories/Community/Community.js +54 -34
- package/dist/stories/Events/Event/Event.js +13 -6
- package/dist/stories/Events/EventsList/EventsList.js +14 -11
- package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
- package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
- package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
- package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
- package/dist/stories/Library/Folders/Folders.js +27 -21
- package/dist/stories/Library/Notes/Notes.js +29 -18
- package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
- package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
- package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
- package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
- package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
- package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
- package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
- package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
- package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
- package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
- package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
- package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
- package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
- package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
- package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
- package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
- package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
- package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
- package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +9 -46
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +57 -37
- package/dist/stories/Pages/Chat/Chat.js +1 -1
- package/dist/stories/Pages/Events/Event/Event.js +1 -1
- package/dist/stories/Pages/Events/Events/Events.js +1 -1
- package/dist/stories/Pages/Library/Folders/Library.js +2 -2
- package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
- package/dist/stories/Pages/Photos/Album/Album.js +2 -2
- package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
- package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
- package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +26 -16
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +11 -4
- package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +7 -5
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +7 -5
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +7 -5
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +7 -5
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +8 -7
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +7 -5
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +7 -5
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +7 -5
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +7 -5
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +7 -5
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +7 -5
- package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
- package/dist/stories/Reusable Components/Community/Community.js +13 -36
- package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
- package/dist/stories/Spaces/Chat/Chat.js +103 -0
- package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
- package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
- package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
- package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
- package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
- package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
- package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
- package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
- package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
- package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
- package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
- package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
- package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +11 -4
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +17 -6
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +24 -25
- package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
- package/dist/stories/helpers/util.js +24 -24
- package/dist/stories/store/actions/actions.js +16 -0
- package/dist/stories/store/communities.js +27 -29
- package/dist/stories/store/community.js +941 -0
- package/dist/stories/store/store.js +9 -4
- package/package.json +1 -1
- package/src/index.js +16 -16
- package/src/stories/Community/Community.jsx +31 -32
- package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
- package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
- package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
- package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
- package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
- package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
- package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
- package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
- package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
- package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
- package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
- package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
- package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
- package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
- package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
- package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
- package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
- package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
- package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
- package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
- package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
- package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
- package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
- package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
- package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
- package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
- package/src/stories/Pages/Chat/Chat.jsx +1 -1
- package/src/stories/Pages/Events/Event/Event.jsx +1 -1
- package/src/stories/Pages/Events/Events/Events.jsx +1 -1
- package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
- package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
- package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
- package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
- package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
- package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
- package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +7 -5
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +8 -6
- package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
- package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
- package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +36 -34
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +18 -16
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +7 -5
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +8 -6
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +10 -8
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +7 -5
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +7 -5
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +7 -5
- package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
- package/src/stories/Reusable Components/Community/Community.jsx +10 -33
- package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
- package/src/stories/Spaces/Chat/Chat.jsx +77 -0
- package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
- package/src/stories/Spaces/NotesList/NotesList.jsx +125 -0
- package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
- package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +17 -73
- package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
- package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
- package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
- package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
- package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +48 -134
- package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +22 -54
- package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +21 -47
- package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +31 -78
- package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +20 -51
- package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
- package/src/stories/helpers/util.js +13 -13
- package/src/stories/store/actions/actions.js +7 -0
- package/src/stories/store/{communities.js → community.js} +27 -29
- package/src/stories/store/store.js +3 -4
- package/src/stories/Chat/Chat.jsx +0 -148
- package/src/stories/Events/EventsList/EventsList.jsx +0 -180
- package/src/stories/Library/Folders/Folders.jsx +0 -187
- package/src/stories/Library/Notes/Notes.jsx +0 -161
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -216
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -152
@@ -0,0 +1,87 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _ViewMusicAlbums = _interopRequireDefault(require("../../Spaces/ViewMusicAlbums/ViewMusicAlbums"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
21
|
+
|
22
|
+
var _MusicAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview"));
|
23
|
+
|
24
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "albums", "community"];
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
32
|
+
var MusicAlbumsConfigModal = function MusicAlbumsConfigModal(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
albums = _ref.albums,
|
36
|
+
community = _ref.community,
|
37
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
38
|
+
|
39
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewMusicAlbums.default, {
|
40
|
+
preview: true,
|
41
|
+
albums: albums
|
42
|
+
})),
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
44
|
+
centerContext = _useState2[0],
|
45
|
+
setCenterContext = _useState2[1];
|
46
|
+
|
47
|
+
var formChanged = function formChanged(values) {
|
48
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewMusicAlbums.default, Object.assign({
|
49
|
+
preview: true,
|
50
|
+
albums: albums
|
51
|
+
}, values)));
|
52
|
+
};
|
53
|
+
|
54
|
+
var tabs = [{
|
55
|
+
title: "New",
|
56
|
+
id: "preview"
|
57
|
+
}, {
|
58
|
+
title: "Context",
|
59
|
+
id: "community"
|
60
|
+
}];
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
62
|
+
modalIsOpen: showConfigModal,
|
63
|
+
closeModal: cancelConfig,
|
64
|
+
exitModalButton: function exitModalButton(e) {
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
66
|
+
}
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
68
|
+
title: "Albums Config",
|
69
|
+
tabs: tabs
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_MusicAlbumsPreview.default, {
|
71
|
+
componentProps: {
|
72
|
+
albums: albums,
|
73
|
+
title: "Music Albums",
|
74
|
+
preview: true
|
75
|
+
},
|
76
|
+
formChanged: formChanged,
|
77
|
+
id: "preview"
|
78
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
79
|
+
center: centerContext,
|
80
|
+
community: community,
|
81
|
+
id: "community"
|
82
|
+
})));
|
83
|
+
};
|
84
|
+
|
85
|
+
MusicAlbumsConfigModal.defaultProps = {};
|
86
|
+
var _default = MusicAlbumsConfigModal;
|
87
|
+
exports.default = _default;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _NotesList = _interopRequireDefault(require("../../Spaces/NotesList/NotesList"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _NotesPreview = _interopRequireDefault(require("../../PreviewComponents/NotesPreview/NotesPreview"));
|
21
|
+
|
22
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
23
|
+
|
24
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "notes", "community"];
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
32
|
+
var NotesConfigModal = function NotesConfigModal(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
notes = _ref.notes,
|
36
|
+
community = _ref.community,
|
37
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
38
|
+
|
39
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_NotesList.default, {
|
40
|
+
preview: true,
|
41
|
+
notes: notes
|
42
|
+
})),
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
44
|
+
centerContext = _useState2[0],
|
45
|
+
setCenterContext = _useState2[1];
|
46
|
+
|
47
|
+
var formChanged = function formChanged(values) {
|
48
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_NotesList.default, Object.assign({
|
49
|
+
preview: true,
|
50
|
+
notes: notes
|
51
|
+
}, values)));
|
52
|
+
};
|
53
|
+
|
54
|
+
var tabs = [{
|
55
|
+
title: 'New',
|
56
|
+
id: 'preview'
|
57
|
+
}, {
|
58
|
+
title: 'Context',
|
59
|
+
id: 'community'
|
60
|
+
}];
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
62
|
+
modalIsOpen: showConfigModal,
|
63
|
+
closeModal: cancelConfig,
|
64
|
+
exitModalButton: function exitModalButton(e) {
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
66
|
+
}
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
68
|
+
title: "Notes Config",
|
69
|
+
tabs: tabs
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_NotesPreview.default, {
|
71
|
+
componentProps: {
|
72
|
+
notes: notes,
|
73
|
+
title: props.title || "Your Notes",
|
74
|
+
preview: true
|
75
|
+
},
|
76
|
+
formChanged: formChanged,
|
77
|
+
id: "preview"
|
78
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
79
|
+
center: centerContext,
|
80
|
+
community: community,
|
81
|
+
id: "community"
|
82
|
+
})));
|
83
|
+
};
|
84
|
+
|
85
|
+
NotesConfigModal.defaultProps = {};
|
86
|
+
var _default = NotesConfigModal;
|
87
|
+
exports.default = _default;
|
@@ -0,0 +1,88 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _ViewPhotoAlbumList = _interopRequireDefault(require("../../Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _PhotoAlbumPreview = _interopRequireDefault(require("../../PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview"));
|
21
|
+
|
22
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
23
|
+
|
24
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "album", "community"];
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
32
|
+
var PhotoAlbumConfigModal = function PhotoAlbumConfigModal(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
album = _ref.album,
|
36
|
+
community = _ref.community,
|
37
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
38
|
+
|
39
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbumList.default, {
|
40
|
+
preview: true,
|
41
|
+
album: album
|
42
|
+
})),
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
44
|
+
centerContext = _useState2[0],
|
45
|
+
setCenterContext = _useState2[1];
|
46
|
+
|
47
|
+
var formChanged = function formChanged(values) {
|
48
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbumList.default, Object.assign({
|
49
|
+
preview: true,
|
50
|
+
album: album
|
51
|
+
}, values)));
|
52
|
+
};
|
53
|
+
|
54
|
+
var tabs = [{
|
55
|
+
title: 'New',
|
56
|
+
id: 'preview'
|
57
|
+
}, {
|
58
|
+
title: 'Context',
|
59
|
+
id: 'community'
|
60
|
+
}];
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
62
|
+
modalIsOpen: showConfigModal,
|
63
|
+
closeModal: cancelConfig,
|
64
|
+
exitModalButton: function exitModalButton(e) {
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
66
|
+
}
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
68
|
+
title: "Photo Album Config",
|
69
|
+
tabs: tabs,
|
70
|
+
id: "styling"
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_PhotoAlbumPreview.default, {
|
72
|
+
componentProps: {
|
73
|
+
album: album,
|
74
|
+
title: props.title || 'Photo Album',
|
75
|
+
preview: true
|
76
|
+
},
|
77
|
+
formChanged: formChanged,
|
78
|
+
id: "preview"
|
79
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
80
|
+
center: centerContext,
|
81
|
+
community: community,
|
82
|
+
id: "community"
|
83
|
+
})));
|
84
|
+
};
|
85
|
+
|
86
|
+
PhotoAlbumConfigModal.defaultProps = {};
|
87
|
+
var _default = PhotoAlbumConfigModal;
|
88
|
+
exports.default = _default;
|
@@ -0,0 +1,88 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _ViewPhotoAlbums = _interopRequireDefault(require("../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _PhotoAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview"));
|
21
|
+
|
22
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
23
|
+
|
24
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "albums", "community"];
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
32
|
+
var PhotoAlbumsConfigModal = function PhotoAlbumsConfigModal(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
albums = _ref.albums,
|
36
|
+
community = _ref.community,
|
37
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
38
|
+
|
39
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, {
|
40
|
+
preview: true,
|
41
|
+
albums: albums
|
42
|
+
})),
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
44
|
+
centerContext = _useState2[0],
|
45
|
+
setCenterContext = _useState2[1];
|
46
|
+
|
47
|
+
var formChanged = function formChanged(values) {
|
48
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, Object.assign({
|
49
|
+
preview: true,
|
50
|
+
albums: albums
|
51
|
+
}, values)));
|
52
|
+
};
|
53
|
+
|
54
|
+
var tabs = [{
|
55
|
+
title: 'New',
|
56
|
+
id: 'preview'
|
57
|
+
}, {
|
58
|
+
title: 'Context',
|
59
|
+
id: 'community'
|
60
|
+
}];
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
62
|
+
modalIsOpen: showConfigModal,
|
63
|
+
closeModal: cancelConfig,
|
64
|
+
exitModalButton: function exitModalButton(e) {
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
66
|
+
}
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
68
|
+
title: "Photo Albums Config",
|
69
|
+
tabs: tabs,
|
70
|
+
id: "styling"
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_PhotoAlbumsPreview.default, {
|
72
|
+
componentProps: {
|
73
|
+
albums: albums,
|
74
|
+
title: props.title || 'Photo Albums',
|
75
|
+
preview: true
|
76
|
+
},
|
77
|
+
formChanged: formChanged,
|
78
|
+
id: "preview"
|
79
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
80
|
+
center: centerContext,
|
81
|
+
community: community,
|
82
|
+
id: "community"
|
83
|
+
})));
|
84
|
+
};
|
85
|
+
|
86
|
+
PhotoAlbumsConfigModal.defaultProps = {};
|
87
|
+
var _default = PhotoAlbumsConfigModal;
|
88
|
+
exports.default = _default;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
15
|
+
|
16
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
17
|
+
|
18
|
+
var _ai = require("react-icons/ai");
|
19
|
+
|
20
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
21
|
+
|
22
|
+
var _ViewDetailedPhoto = _interopRequireDefault(require("../../Spaces/ViewDetailedPhoto/ViewDetailedPhoto"));
|
23
|
+
|
24
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
25
|
+
|
26
|
+
var _excluded = ["showImgModal", "closeModal", "prevPhoto", "nextPhoto", "openedImg"];
|
27
|
+
|
28
|
+
var ShowImgModal = function ShowImgModal(_ref) {
|
29
|
+
var showImgModal = _ref.showImgModal,
|
30
|
+
closeModal = _ref.closeModal,
|
31
|
+
prevPhoto = _ref.prevPhoto,
|
32
|
+
nextPhoto = _ref.nextPhoto,
|
33
|
+
openedImg = _ref.openedImg,
|
34
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
36
|
+
modalIsOpen: showImgModal,
|
37
|
+
closeModal: closeModal,
|
38
|
+
exitModalButton: function exitModalButton(e) {
|
39
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
40
|
+
},
|
41
|
+
width: "70vw",
|
42
|
+
height: "90vh"
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(CloseIconContainer, {
|
44
|
+
onClick: closeModal
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineClose, null)), /*#__PURE__*/_react.default.createElement(LeftIconContainer, {
|
46
|
+
onClick: prevPhoto
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineArrowLeft, null)), /*#__PURE__*/_react.default.createElement(_ViewDetailedPhoto.default, {
|
48
|
+
cardClicked: nextPhoto,
|
49
|
+
img: openedImg
|
50
|
+
}), /*#__PURE__*/_react.default.createElement(RightIconContainer, {
|
51
|
+
onClick: nextPhoto
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineArrowRight, null)));
|
53
|
+
};
|
54
|
+
|
55
|
+
var IconContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 30px;\n height: 30px;\n background-color: #757575;\n position: absolute;\n transform: translateY(-50%);\n top: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50rem;\n z-index: 999;\n cursor: pointer;\n opacity: .4;\n transition: all .2s;\n\n &:hover{\n opacity: 1;\n transform: scale(1.1) translateY(-50%);\n }\n\n svg{\n color: white;\n }\n \n"])));
|
56
|
+
|
57
|
+
var CloseIconContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n z-index: 999;\n right: 10px;\n top: 10px;\n cursor: pointer;\n\n svg{\n color: white;\n }\n"])));
|
58
|
+
|
59
|
+
var LeftIconContainer = (0, _styledComponents.default)(IconContainer)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n left: 10px;\n"])));
|
60
|
+
var RightIconContainer = (0, _styledComponents.default)(IconContainer)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n right: 10px;\n"])));
|
61
|
+
var _default = ShowImgModal;
|
62
|
+
exports.default = _default;
|
@@ -0,0 +1,88 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _ViewVideoAlbumList = _interopRequireDefault(require("../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
21
|
+
|
22
|
+
var _VideoAlbumPreview = _interopRequireDefault(require("../../PreviewComponents/VideoAlbumPreview/VideoAlbumPreview"));
|
23
|
+
|
24
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
25
|
+
|
26
|
+
var _excluded = ["showConfigModal", "cancelConfig", "album", "community"];
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
32
|
+
var VideoAlbumConfig = function VideoAlbumConfig(_ref) {
|
33
|
+
var showConfigModal = _ref.showConfigModal,
|
34
|
+
cancelConfig = _ref.cancelConfig,
|
35
|
+
album = _ref.album,
|
36
|
+
community = _ref.community,
|
37
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
38
|
+
|
39
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, {
|
40
|
+
preview: true,
|
41
|
+
album: album
|
42
|
+
})),
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
44
|
+
centerContext = _useState2[0],
|
45
|
+
setCenterContext = _useState2[1];
|
46
|
+
|
47
|
+
var formChanged = function formChanged(values) {
|
48
|
+
console.log('context changed');
|
49
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, Object.assign({
|
50
|
+
preview: true,
|
51
|
+
album: album
|
52
|
+
}, values)));
|
53
|
+
};
|
54
|
+
|
55
|
+
var tabs = [{
|
56
|
+
title: 'New',
|
57
|
+
id: 'preview'
|
58
|
+
}, {
|
59
|
+
title: 'Context',
|
60
|
+
id: 'community'
|
61
|
+
}];
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
63
|
+
modalIsOpen: showConfigModal,
|
64
|
+
closeModal: cancelConfig,
|
65
|
+
exitModalButton: function exitModalButton(e) {
|
66
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
67
|
+
}
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
69
|
+
title: "Video Album Config",
|
70
|
+
tabs: tabs,
|
71
|
+
id: "styling"
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_VideoAlbumPreview.default, {
|
73
|
+
componentProps: {
|
74
|
+
album: album,
|
75
|
+
preview: true
|
76
|
+
},
|
77
|
+
formChanged: formChanged,
|
78
|
+
id: "preview"
|
79
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
80
|
+
center: centerContext,
|
81
|
+
community: community,
|
82
|
+
id: "community"
|
83
|
+
})));
|
84
|
+
};
|
85
|
+
|
86
|
+
VideoAlbumConfig.defaultProps = {};
|
87
|
+
var _default = VideoAlbumConfig;
|
88
|
+
exports.default = _default;
|
@@ -0,0 +1,89 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
15
|
+
|
16
|
+
var _ViewVideoAlbums = _interopRequireDefault(require("../../Spaces/ViewVideoAlbums/ViewVideoAlbums"));
|
17
|
+
|
18
|
+
var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
|
19
|
+
|
20
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
21
|
+
|
22
|
+
var _Sections = _interopRequireDefault(require("../../Reusable Components/Sections/Sections"));
|
23
|
+
|
24
|
+
var _VideoAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview"));
|
25
|
+
|
26
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
27
|
+
|
28
|
+
var _excluded = ["showConfigModal", "cancelConfig", "videoAlbums", "community"];
|
29
|
+
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
31
|
+
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
33
|
+
|
34
|
+
var VideoAlbumsConfigModal = function VideoAlbumsConfigModal(_ref) {
|
35
|
+
var showConfigModal = _ref.showConfigModal,
|
36
|
+
cancelConfig = _ref.cancelConfig,
|
37
|
+
videoAlbums = _ref.videoAlbums,
|
38
|
+
community = _ref.community,
|
39
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
40
|
+
|
41
|
+
var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, {
|
42
|
+
preview: true,
|
43
|
+
videoAlbums: videoAlbums
|
44
|
+
})),
|
45
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
46
|
+
centerContext = _useState2[0],
|
47
|
+
setCenterContext = _useState2[1];
|
48
|
+
|
49
|
+
var formChanged = function formChanged(values) {
|
50
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, Object.assign({
|
51
|
+
preview: true,
|
52
|
+
videoAlbums: videoAlbums
|
53
|
+
}, values)));
|
54
|
+
};
|
55
|
+
|
56
|
+
var tabs = [{
|
57
|
+
title: 'New',
|
58
|
+
id: 'preview'
|
59
|
+
}, {
|
60
|
+
title: 'Context',
|
61
|
+
id: 'community'
|
62
|
+
}];
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
64
|
+
modalIsOpen: showConfigModal,
|
65
|
+
closeModal: cancelConfig,
|
66
|
+
exitModalButton: function exitModalButton(e) {
|
67
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
68
|
+
}
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
70
|
+
title: "Video Gallery Config",
|
71
|
+
tabs: tabs,
|
72
|
+
id: "styling"
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_VideoAlbumsPreview.default, {
|
74
|
+
componentProps: {
|
75
|
+
videoAlbums: videoAlbums,
|
76
|
+
preview: true
|
77
|
+
},
|
78
|
+
formChanged: formChanged,
|
79
|
+
id: "preview"
|
80
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
81
|
+
center: centerContext,
|
82
|
+
community: community,
|
83
|
+
id: "community"
|
84
|
+
})));
|
85
|
+
};
|
86
|
+
|
87
|
+
VideoAlbumsConfigModal.defaultProps = {};
|
88
|
+
var _default = VideoAlbumsConfigModal;
|
89
|
+
exports.default = _default;
|