{"version":3,"sources":["store/api.js","store/memes.js","store/users.js","store/entities.js","store/reducer.js","store/middleware/api.js","store/middleware/toast.js","components/Meme.jsx","components/MemeList.jsx","images/originals/pingvini1.jpg","images/originals/pingvini2.jpg","images/originals/jdoba.jpg","images/originals/stiklici.jpg","images/podcast.jpg","pages/HomePage.jsx","pages/SignUpPage.jsx","pages/LoginPage.jsx","images/photo-video.svg","pages/SubmitPage.jsx","pages/MemePage.jsx","images/wv-logo.png","components/Header.jsx","images/wv-logo-text.png","components/Footer.jsx","App.js","store/configureStore.js","reportWebVitals.js","index.js"],"names":["apiCallBegan","createAction","apiCallSuccess","apiCallFailed","slice","createSlice","name","initialState","list","selectedMeme","loading","hasMore","lastMemeId","reducers","memesLoadingStart","state","action","memesLoadingEnd","selectedMemeReceived","payload","memesReceived","memes","memesReceivedMore","memeCreated","memesReceivedRandom","actions","loadMemes","dispatch","url","onStart","type","onSuccess","onError","currentUser","loadingStart","loadingEnd","loginSuccess","signUpSuccess","signOutSuccess","setAuthToken","createSelector","entities","users","token","rememberMe","axios","headers","common","sessionStorage","setItem","localStorage","combineReducers","memesReducer","usersReducer","entitiesReducer","api","_ref","next","async","dispatchAll","Array","isArray","i","length","method","data","request","baseURL","then","response","catch","error","errorPayload","status","toast","store","message","toastify","dismiss","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","progress","undefined","theme","Meme","props","playContent","setPlayContent","useState","moment","locale","meme","_jsxs","className","children","sensitiveContent","format","_jsx","cover","_Fragment","controls","autoPlay","playsInline","src","content","onClick","alt","description","avatar","username","utc","dateCreated","local","fromNow","MemeList","orderBy","setOrderBy","useDispatch","useSelector","useEffect","orderByLatestClicked","orderByRandomClicked","console","log","map","id","loadMoreMemesClicked","arguments","loadMoreMemes","HomePage","style","maxWidth","Row","Col","sm","href","target","rel","PodcastBanner","width","marginBottom","Link","to","OriginalsPingvini","OriginalsPingvini2","OriginalsJebenoDoba","OriginalsStiklici","HomePageRoute","SignUpPage","_errors$username","_errors$email","passwordVisible","setPasswordVisible","passwordHasMinLength","setPasswordHasMinLength","passwordContainsUppercase","setPasswordContainsUppercase","passwordContainsLowercase","setPasswordContainsLowercase","passwordContainsNumber","setPasswordContainsNumber","passwordContainsSpecialChar","setPasswordContainsSpecialChar","navigate","useNavigate","validation","yup","required","email","password","min","register","handleSubmit","formState","errors","useForm","resolver","yupResolver","Container","LoginPageRoute","Form","onSubmit","signUp","confirmPassword","FloatingLabel","controlId","label","Control","autoFocus","placeholder","Text","InputGroup","onChange","e","value","containsNumber","test","containsLowercase","toUpperCase","containsUppercase","toLowerCase","specialChars","specialCharFound","forEach","c","includes","Button","variant","onTogglePasswordVisible","disabled","SignUpPageRoute","LoginPage","_errors$usernameOrEma","_errors$password","usernameOrEmail","getValues","login","Check","size","SubmitPage","_errors$description","progressVisible","setProgressVisible","mediaContainerVisible","setMediaContainerVisible","setProgress","dragActive","setDragActive","mediaContainerId","setMediaContainerId","mediaContainerFormat","setMediaContainerFormat","hiddenFileInput","React","useRef","handleDrag","preventDefault","stopPropagation","upload","file","formData","FormData","append","onUploadProgress","progressEvent","Math","floor","loaded","total","success","_errorPayload$data","startsWith","onDragEnter","onDragLeave","onDragOver","onDrop","dataTransfer","files","PhotoVideoIcon","event","current","click","ref","display","ProgressBar","animated","now","Group","SubmitPageRoute","MemePage","searchParams","useSearchParams","memeId","get","str","code","len","charCodeAt","isValidMemeId","loadMeme","md","Header","Navbar","bg","expand","Brand","WVLogo","height","Toggle","Collapse","Nav","window","location","Item","onSignOut","Footer","setLocale","mixed","default","string","max","configureStore","reducer","middleware","getDefaultMiddleware","authToken","getItem","App","Provider","BrowserRouter","Routes","Route","path","element","exact","ToastContainer","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"mNAEO,MAAMA,EAAeC,YAAa,iBAC5BC,EAAiBD,YAAa,mBAC9BE,EAAgBF,YAAa,kBCCpCG,EAAQC,YAAY,CACxB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AACgC,GAAQ,IAAKyL,OAAK,IAGxDzN,cAACsN,IAAK,CAACC,KAAMrI,GAAgBsI,QAASxN,cAACkH,GAAS,IAAKuG,OAAK,IAC1DzN,cAACsN,IAAK,CAACC,KAAMtG,GAAkBuG,QAASxN,cAACmD,GAAU,IAAKsK,OAAK,IAG7DzN,cAACsN,IAAK,CAACC,KAAM5C,GAAkB6C,QAASxN,cAAC0H,GAAU,IAAK+F,OAAK,IAC7DzN,cAACsN,IAAK,CAACC,KLEY,QKFUC,QAASxN,cAAC4K,GAAQ,IAAK6C,OAAK,OAE3DzN,cAACsM,GAAM,IACPtM,cAAC0N,IAAc,QAIvB,EE1EeC,OAZSC,IAClBA,GAAeA,aAAuBC,UACxC,8BAAqB9P,MAAKZ,IAAkD,IAAjD,OAAE2Q,EAAM,OAAEC,EAAM,OAAEC,EAAM,OAAEC,EAAM,QAAEC,GAAS/Q,EACpE2Q,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,EAAY,GAExB,ECJFO,IAASC,OACPpO,cAACwI,IAAM6F,WAAU,CAAAxO,SACfG,cAACkN,GAAG,MAENoB,SAASC,eAAe,SAM1BZ,I","file":"static/js/main.86a20c37.chunk.js","sourcesContent":["import { createAction } from \"@reduxjs/toolkit\";\n\nexport const apiCallBegan = createAction(\"api/callBegan\");\nexport const apiCallSuccess = createAction(\"api/callSuccess\");\nexport const apiCallFailed = createAction(\"api/callFailed\");\n","\n// import { useSelector } from \"react-redux\";\nimport { createSlice } from \"@reduxjs/toolkit\";\nimport { apiCallBegan } from \"./api\";\n\nconst slice = createSlice({\n name: \"memes\", // Entity name\n initialState: {\n list: [],\n selectedMeme: null,\n loading: false,\n hasMore: false,\n lastMemeId: null,\n },\n reducers: { // Event Handlers\n memesLoadingStart: (state, action) => {\n state.loading = true;\n },\n\n memesLoadingEnd: (state, action) => {\n state.loading = false;\n },\n\n selectedMemeReceived: (state, action) => {\n state.selectedMeme = action.payload;\n state.loading = false;\n },\n\n memesReceived: (state, action) => {\n state.list = action.payload.memes;\n state.hasMore = action.payload.hasMore;\n state.lastMemeId = action.payload.lastMemeId;\n state.loading = false;\n },\n\n memesReceivedMore: (state, action) => {\n state.list = [...state.list, ...action.payload.memes];\n state.hasMore = action.payload.hasMore;\n state.lastMemeId = action.payload.lastMemeId;\n state.loading = false;\n },\n\n memeCreated: (state, action) => {\n state.loading = false;\n },\n\n memesReceivedRandom: (state, action) => {\n state.list = action.payload.memes;\n state.hasMore = true;\n state.lastMemeId = 'random';\n state.loading = false;\n }\n }\n});\n\nexport const {\n memesLoadingStart,\n memesLoadingEnd,\n selectedMemeReceived,\n memesReceived,\n memesReceivedMore,\n memeCreated,\n memesReceivedRandom,\n} = slice.actions;\nexport default slice.reducer;\n\n// Action Creators (Events)\n\nexport const loadMemes = () => (dispatch) => {\n return dispatch(\n apiCallBegan({\n url: \"/memes\",\n onStart: memesLoadingStart.type,\n onSuccess: memesReceived.type,\n onError: memesLoadingEnd.type\n })\n );\n};\n\nexport const loadMoreMemes = (lastMemeId = \"\") => (dispatch) => {\n console.log(\"load more\");\n return dispatch(\n apiCallBegan({\n url: \"/memes?lastMemeId=\" + lastMemeId,\n onStart: memesLoadingStart.type,\n onSuccess: memesReceivedMore.type,\n onError: memesLoadingEnd.type\n })\n );\n};\n\nexport const loadRandomMemes = () => (dispatch) => {\n console.log(\"load random\");\n return dispatch(\n apiCallBegan({\n url: \"/memes?lastMemeId=random\",\n onStart: memesLoadingStart.type,\n onSuccess: memesReceivedRandom.type,\n onError: memesLoadingEnd.type\n })\n );\n}\n\nexport const loadMeme = (memeId) => (dispatch) => {\n return dispatch(\n apiCallBegan({\n url: \"/memes/\" + memeId,\n onStart: memesLoadingStart.type,\n onSuccess: selectedMemeReceived.type,\n onError: memesLoadingEnd.type\n })\n );\n};\n\n","import { createSlice } from \"@reduxjs/toolkit\";\nimport { createSelector } from \"reselect\";\nimport { apiCallBegan } from \"./api\";\nimport * as axios from 'axios';\n\nconst slice = createSlice({\n name: \"users\", // Entity name\n initialState: {\n currentUser: null,\n loading: false\n },\n reducers: { // Event Handlers\n loadingStart: (state, action) => {\n state.loading = true;\n },\n\n loadingEnd: (state, action) => {\n state.loading = false;\n },\n\n loginSuccess: (state, action) => {\n state.currentUser = action.payload;\n state.loading = false;\n },\n\n signUpSuccess: (state, action) => {\n state.currentUser = action.payload;\n state.loading = false;\n },\n\n signOutSuccess: (state, action) => {\n setAuthToken('', false);\n \n state.currentUser = null;\n state.loading = false;\n },\n }\n});\n\nexport const {\n loadingStart,\n loadingEnd,\n loginSuccess,\n signUpSuccess,\n signOutSuccess,\n} = slice.actions;\nexport default slice.reducer;\n\n// Action Creators (Events)\n\nexport const getCurrentUser = createSelector(\n state => state.entities.users,\n users => users.currentUser\n);\n\nexport const login = (usernameOrEmail, password) => (dispatch) => {\n return dispatch(\n apiCallBegan({\n url: \"/users/signin\",\n method: \"POST\",\n data: {\n username: usernameOrEmail,\n password: password,\n },\n onStart: loadingStart.type,\n onSuccess: loginSuccess.type,\n onError: loadingEnd.type\n })\n );\n};\n\nexport const signUp = (username, email, password) => (dispatch) => {\n return dispatch(\n apiCallBegan({\n url: \"/users/signup\",\n method: \"POST\",\n data: {\n username: username,\n email: email,\n password: password,\n confirmPassword: password\n },\n onStart: loadingStart.type,\n onSuccess: signUpSuccess.type,\n onError: loadingEnd.type\n })\n );\n}\n\nexport const signOut = () => (dispatch) => {\n return dispatch(\n apiCallBegan({\n url: \"/users/signout\",\n method: \"POST\",\n data: null,\n onStart: loadingStart.type,\n onSuccess: signOutSuccess.type,\n onError: loadingEnd.type\n })\n );\n}\n\nexport const setAuthToken = (token, rememberMe) => {\n axios.defaults.headers.common['Authorization'] = (token === null || token === '') ? '' : 'Bearer ' + token;\n\n sessionStorage.setItem('authToken', token);\n\n if (rememberMe) {\n localStorage.setItem('authToken', token);\n } else {\n localStorage.setItem('authToken', '');\n }\n};","import { combineReducers } from \"redux\";\nimport memesReducer from \"./memes\";\nimport usersReducer from \"./users\";\n\nexport default combineReducers({\n memes: memesReducer,\n users: usersReducer,\n});\n","import { combineReducers } from \"redux\";\nimport entitiesReducer from \"./entities\";\n\nexport default combineReducers({\n entities: entitiesReducer\n});\n","import axios from \"axios\";\nimport * as actions from \"../api\";\n\nconst api = ({ dispatch }) => next => async action => {\n \n if (action.type !== actions.apiCallBegan.type) return next(action);\n\n\n const dispatchAll = (reducers, payload) => {\n if (Array.isArray(reducers)) {\n for (var i = 0; i < reducers.length; i++) {\n dispatch({ type: reducers[i], payload });\n }\n } else {\n dispatch({ type: reducers, payload });\n }\n }\n\n const { url, method, data, onStart, onSuccess, onError } = action.payload;\n\n if (onStart) {\n dispatchAll(onStart);\n }\n\n await axios.request({\n baseURL: \"https://api.wrbavorks.com/v1\",\n url,\n method,\n data\n }).then(function (response) {\n // General\n dispatch(actions.apiCallSuccess(response.data));\n // Specific\n if (onSuccess) {\n dispatchAll(onSuccess, response.data);\n }\n }).catch(function (error) {\n const errorPayload = error.response ? { status: error.response.status, data: error.response.data } : { status: null, data: null };\n // General\n dispatch(actions.apiCallFailed(errorPayload));\n // Specific\n if (onError) {\n dispatchAll(onError, errorPayload);\n }\n });\n\n next(action);\n};\n\nexport default api;\n","import { toast as toastify } from 'react-toastify';\nimport * as actions from \"../api\";\n\nconst toast = store => next => action => {\n if (action.type === actions.apiCallFailed.type && action.payload && action.payload.data && action.payload.data.message) {\n toastify.dismiss();\n toastify.error(action.payload.data.message, {\n position: \"top-center\",\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n progress: undefined,\n theme: \"colored\"\n });\n }\n \n return next(action);\n};\n\nexport default toast;\n","import React, { useState } from \"react\";\nimport moment from 'moment';\nimport 'moment/locale/hr';\n\nconst Meme = (props) => {\n const [playContent, setPlayContent] = useState(false);\n moment().locale('hr');\n\n var meme = props.meme;\n\n return (\n