{"version":3,"sources":["redux/menu/actions.js","redux/settings/actions.js","redux/actions.js","constants/defaultValues.js","index.js","assets/css/sass/themes lazy /^/gogo/..*/.scss$/ groupOptions: {} namespace object","redux-Sunset/reducer/index.js","redux/settings/reducer.js","redux/menu/reducer.js","redux/auth/reducer.js","redux/todo/reducer.js","redux/chat/reducer.js","redux/surveyList/reducer.js","redux/surveyDetail/reducer.js","redux/reducers.js","redux/store.js","reportWebVitals.js","AppRenderer.js","helpers/Utils.js"],"names":["changeSelectedMenuHasSubItems","payload","type","MENU_CHANGE_HAS_SUB_ITEM_STATUS","changeDefaultClassnames","strCurrentClasses","MENU_CHANGE_DEFAULT_CLASSES","addContainerClassname","classname","newClasses","indexOf","concat","MENU_CONTAINER_ADD_CLASSNAME","clickOnMobileMenu","currentClasses","split","filter","x","nextClasses","includes","join","MENU_CLICK_MOBILE_MENU","containerClassnames","menuClickCount","setContainerClassnames","clickIndex","selectedMenuHasSubItems","MENU_SET_CLASSNAMES","CHANGE_LOCALE","LOGIN_USER","LOGIN_USER_SUCCESS","LOGIN_USER_ERROR","REGISTER_USER","REGISTER_USER_SUCCESS","REGISTER_USER_ERROR","LOGOUT_USER","FORGOT_PASSWORD","FORGOT_PASSWORD_SUCCESS","FORGOT_PASSWORD_ERROR","RESET_PASSWORD","RESET_PASSWORD_SUCCESS","RESET_PASSWORD_ERROR","TODO_GET_LIST","TODO_GET_LIST_SUCCESS","TODO_GET_LIST_ERROR","TODO_GET_LIST_WITH_FILTER","TODO_GET_LIST_WITH_ORDER","TODO_GET_LIST_SEARCH","TODO_ADD_ITEM","TODO_ADD_ITEM_SUCCESS","TODO_ADD_ITEM_ERROR","TODO_SELECTED_ITEMS_CHANGE","CHAT_GET_CONTACTS","CHAT_GET_CONTACTS_SUCCESS","CHAT_GET_CONTACTS_ERROR","CHAT_GET_CONVERSATIONS","CHAT_GET_CONVERSATIONS_SUCCESS","CHAT_GET_CONVERSATIONS_ERROR","CHAT_ADD_MESSAGE_TO_CONVERSATION","CHAT_CREATE_CONVERSATION","CHAT_SEARCH_CONTACT","CHAT_CHANGE_CONVERSATION","SURVEY_LIST_GET_LIST","SURVEY_LIST_GET_LIST_SUCCESS","SURVEY_LIST_GET_LIST_ERROR","SURVEY_LIST_GET_LIST_WITH_FILTER","SURVEY_LIST_GET_LIST_WITH_ORDER","SURVEY_LIST_GET_LIST_SEARCH","SURVEY_LIST_ADD_ITEM","SURVEY_LIST_ADD_ITEM_SUCCESS","SURVEY_LIST_ADD_ITEM_ERROR","SURVEY_LIST_SELECTED_ITEMS_CHANGE","SURVEY_GET_DETAILS","SURVEY_GET_DETAILS_SUCCESS","SURVEY_GET_DETAILS_ERROR","SURVEY_DELETE_QUESTION","SURVEY_SAVE","defaultMenuType","subHiddenBreakpoint","menuHiddenBreakpoint","defaultLocale","localeOptions","id","name","direction","currentUser","title","img","date","role","adminRoot","themeColorStorageKey","isMultiColorActive","defaultColor","isDarkSwitchActive","defaultDirection","themeRadiusStorageKey","isAuthGuardActive","colors","color","getCurrentColor","setCurrentColor","then","require","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","e","Error","code","ids","t","keys","Object","module","exports","initialLoginState","response","source","expiretime","sitetoken","bank","identifier","pname","tc","phoneumber","ip","tcprice","gang","job","jobgrade","gangexpire","ganglevel","gangslot","token","ganggrade","isAuth","server","message","streamer","last_message","discord","tick","tick_all","sunRegister","steamHex","phoneNumber","phoneIsVerify","password","family","discordId","discordIsVerify","description","ts","textIs","INIT_STATE","locale","getCurrentLanguage","getCurrentUser","forgotUserMail","newPassword","resetPasswordCode","loading","error","allTodoItems","todoItems","searchKeyword","orderColumn","labels","label","orderColumns","column","categories","selectedItems","allContacts","contacts","conversations","loadingContacts","loadingConversations","selectedUser","selectedUserId","allSurveyItems","surveyItems","survey","reducers","combineReducers","menu","state","arguments","length","undefined","action","settings","authUser","todoApp","value","filteredItems","item","sortedItems","sort","a","b","find","keyword","toLowerCase","searchItems","detail","status","category","chatApp","searchedContacts","surveyListApp","surveyDetailApp","sunLoginReducer","searchReducer","middlewares","createSagaMiddleware","thunk","reportWebVitals","onPerfEntry","Function","_ref","getCLS","getFID","getFCP","getLCP","getTTFB","App","React","lazy","Main","_jsx","Provider","store","createStore","initialState","compose","applyMiddleware","children","Suspense","fallback","className","ReactDOM","render","document","getElementById","getDirection","localStorage","getItem","localValue","isRtl","currentColor","setItem","getCurrentRadius","currentRadius","setCurrentRadius","radius","language","setCurrentLanguage","user","JSON","parse"],"mappings":"mlEASO,MAAMA,EAAiCC,IACrC,CACLC,KAAMC,EACNF,YAISG,EAA2BC,IAC/B,CACLH,KAAMI,EACNL,QAASI,IAIAE,EAAwBA,CAACC,EAAWH,KAC/C,MAAMI,GACHJ,EAAkBK,QAAQF,IAAc,EAAC,GAAAG,OACnCN,EAAiB,KAAAM,OAAIH,GACxBH,EACN,MAAO,CACLH,KAAMU,EACNX,QAASQ,IAIAI,EAAqBR,IAChC,MAAMS,EAAiBT,EACnBA,EACGU,MAAM,KACNC,QAAQC,GAAY,KAANA,GAAkB,uBAANA,IAC7B,GACJ,IAAIC,EAAc,GAQlB,OANEA,EADEJ,EAAeK,SAAS,uBACZL,EACXE,QAAQC,GAAY,wBAANA,IACdG,KAAK,KAEG,GAAAT,OAAMG,EAAeM,KAAK,KAAI,wBAEpC,CACLlB,KAAMmB,EACNpB,QAAS,CAAEqB,oBAAqBJ,EAAaK,eAAgB,KAIpDC,EAAyBA,CACpCC,EACApB,EACAqB,KAEA,MAAMZ,EAAiBT,EACnBA,EAAkBU,MAAM,KAAKC,QAAQC,GAAY,KAANA,IAC3C,GACJ,IAAIC,EAAc,GA4ElB,OA3EKQ,KAEDZ,EAAeK,SAAS,iBACvBM,EAAa,IAAM,GAAKA,EAAa,IAAM,IAE5CA,EAAa,GAEXX,EAAeK,SAAS,oBAAsBM,EAAa,IAAM,IACnEA,EAAa,IAGbX,EAAeK,SAAS,gBACvBM,EAAa,IAAM,GAAKA,EAAa,IAAM,IAE5CA,EAAa,IAIbA,E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E2F,aAAaK,QAAQ,kBAAmBhG,GACxC,MAAOO,GACP,OAAO,OAIEL,EAAiBA,KAC5B,IAAIqG,EAAO,KACX,IACEA,EAC+C,MAA7CZ,aAAaC,QAAQ,qBACjBY,KAAKC,MAAMd,aAAaC,QAAQ,sBAChC,KACN,MAAOrF,GACPgG,EAAO,KAET,OAAOA,K","file":"static/js/main.a6b69d62.chunk.js","sourcesContent":["\r\nimport {\r\n MENU_SET_CLASSNAMES,\r\n MENU_CONTAINER_ADD_CLASSNAME,\r\n MENU_CLICK_MOBILE_MENU,\r\n MENU_CHANGE_DEFAULT_CLASSES,\r\n MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n} from '../actions';\r\n\r\nexport const changeSelectedMenuHasSubItems = (payload) => {\r\n return {\r\n type: MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n payload,\r\n };\r\n};\r\n\r\nexport const changeDefaultClassnames = (strCurrentClasses) => {\r\n return {\r\n type: MENU_CHANGE_DEFAULT_CLASSES,\r\n payload: strCurrentClasses,\r\n };\r\n};\r\n\r\nexport const addContainerClassname = (classname, strCurrentClasses) => {\r\n const newClasses =\r\n !strCurrentClasses.indexOf(classname) > -1\r\n ? `${strCurrentClasses} ${classname}`\r\n : strCurrentClasses;\r\n return {\r\n type: MENU_CONTAINER_ADD_CLASSNAME,\r\n payload: newClasses,\r\n };\r\n};\r\n\r\nexport const clickOnMobileMenu = (strCurrentClasses) => {\r\n const currentClasses = strCurrentClasses\r\n ? strCurrentClasses\r\n .split(' ')\r\n .filter((x) => x !== '' && x !== 'sub-show-temporary')\r\n : '';\r\n let nextClasses = '';\r\n if (currentClasses.includes('main-show-temporary')) {\r\n nextClasses = currentClasses\r\n .filter((x) => x !== 'main-show-temporary')\r\n .join(' ');\r\n } else {\r\n nextClasses = `${currentClasses.join(' ')} main-show-temporary`;\r\n }\r\n return {\r\n type: MENU_CLICK_MOBILE_MENU,\r\n payload: { containerClassnames: nextClasses, menuClickCount: 0 },\r\n };\r\n};\r\n\r\nexport const setContainerClassnames = (\r\n clickIndex,\r\n strCurrentClasses,\r\n selectedMenuHasSubItems\r\n) => {\r\n const currentClasses = strCurrentClasses\r\n ? strCurrentClasses.split(' ').filter((x) => x !== '')\r\n : '';\r\n let nextClasses = '';\r\n if (!selectedMenuHasSubItems) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n (clickIndex % 4 === 0 || clickIndex % 4 === 3)\r\n ) {\r\n clickIndex = 1;\r\n }\r\n if (currentClasses.includes('menu-sub-hidden') && clickIndex % 4 === 2) {\r\n clickIndex = 0;\r\n }\r\n if (\r\n currentClasses.includes('menu-hidden') &&\r\n (clickIndex % 4 === 2 || clickIndex % 4 === 3)\r\n ) {\r\n clickIndex = 0;\r\n }\r\n }\r\n\r\n if (clickIndex % 4 === 0) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden';\r\n }\r\n clickIndex = 0;\r\n } else if (clickIndex % 4 === 1) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden main-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default sub-hidden';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden main-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden main-show-temporary';\r\n }\r\n } else if (clickIndex % 4 === 2) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default main-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden main-show-temporary sub-show-temporary';\r\n }\r\n } else if (clickIndex % 4 === 3) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden sub-show-temporary';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default sub-hidden';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden sub-show-temporary';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden main-show-temporary';\r\n }\r\n }\r\n if (currentClasses.includes('menu-mobile')) {\r\n nextClasses += ' menu-mobile';\r\n }\r\n return {\r\n type: MENU_SET_CLASSNAMES,\r\n payload: { containerClassnames: nextClasses, menuClickCount: clickIndex },\r\n };\r\n};\r\n","import { setCurrentLanguage } from 'helpers/Utils';\r\nimport { CHANGE_LOCALE } from '../actions';\r\n\r\n\r\nexport const changeLocale = (locale) => {\r\n setCurrentLanguage(locale);\r\n return {\r\n type: CHANGE_LOCALE,\r\n payload: locale,\r\n };\r\n};\r\n","\r\n/* SETTINGS */\r\nexport const CHANGE_LOCALE = 'CHANGE_LOCALE';\r\n\r\n/* AUTH */\r\nexport const LOGIN_USER = 'LOGIN_USER';\r\nexport const LOGIN_USER_SUCCESS = 'LOGIN_USER_SUCCESS';\r\nexport const LOGIN_USER_ERROR = 'LOGIN_USER_ERROR';\r\nexport const REGISTER_USER = 'REGISTER_USER';\r\nexport const REGISTER_USER_SUCCESS = 'REGISTER_USER_SUCCESS';\r\nexport const REGISTER_USER_ERROR = 'REGISTER_USER_ERROR';\r\nexport const LOGOUT_USER = 'LOGOUT_USER';\r\nexport const FORGOT_PASSWORD = 'FORGOT_PASSWORD';\r\nexport const FORGOT_PASSWORD_SUCCESS = 'FORGOT_PASSWORD_SUCCESS';\r\nexport const FORGOT_PASSWORD_ERROR = 'FORGOT_PASSWORD_ERROR';\r\nexport const RESET_PASSWORD = 'RESET_PASSWORD';\r\nexport const RESET_PASSWORD_SUCCESS = 'RESET_PASSWORD_SUCCESS';\r\nexport const RESET_PASSWORD_ERROR = 'RESET_PASSWORD_ERROR';\r\n\r\n/* MENU */\r\nexport const MENU_SET_CLASSNAMES = 'MENU_SET_CLASSNAMES';\r\nexport const MENU_CONTAINER_ADD_CLASSNAME = 'MENU_CONTAINER_ADD_CLASSNAME';\r\nexport const MENU_CLICK_MOBILE_MENU = 'MENU_CLICK_MOBILE_MENU';\r\nexport const MENU_CHANGE_DEFAULT_CLASSES = 'MENU_CHANGE_DEFAULT_CLASSES';\r\nexport const MENU_CHANGE_HAS_SUB_ITEM_STATUS =\r\n 'MENU_CHANGE_HAS_SUB_ITEM_STATUS';\r\n\r\n/* TODOAPP */\r\nexport const TODO_GET_LIST = 'TODO_GET_LIST';\r\nexport const TODO_GET_LIST_SUCCESS = 'TODO_GET_LIST_SUCCESS';\r\nexport const TODO_GET_LIST_ERROR = 'TODO_GET_LIST_ERROR';\r\nexport const TODO_GET_LIST_WITH_FILTER = 'TODO_GET_LIST_WITH_FILTER';\r\nexport const TODO_GET_LIST_WITH_ORDER = 'TODO_GET_LIST_WITH_ORDER';\r\nexport const TODO_GET_LIST_SEARCH = 'TODO_GET_LIST_SEARCH';\r\nexport const TODO_ADD_ITEM = 'TODO_ADD_ITEM';\r\nexport const TODO_ADD_ITEM_SUCCESS = 'TODO_ADD_ITEM_SUCCESS';\r\nexport const TODO_ADD_ITEM_ERROR = 'TODO_ADD_ITEM_ERROR';\r\nexport const TODO_SELECTED_ITEMS_CHANGE = 'TODO_SELECTED_ITEMS_CHANGE';\r\n\r\n/* CHAT APP */\r\nexport const CHAT_GET_CONTACTS = 'CHAT_GET_CONTACTS';\r\nexport const CHAT_GET_CONTACTS_SUCCESS = 'CHAT_GET_CONTACTS_SUCCESS';\r\nexport const CHAT_GET_CONTACTS_ERROR = 'CHAT_GET_CONTACTS_ERROR';\r\nexport const CHAT_GET_CONVERSATIONS = 'CHAT_GET_CONVERSATIONS';\r\nexport const CHAT_GET_CONVERSATIONS_SUCCESS = 'CHAT_GET_CONVERSATIONS_SUCCESS';\r\nexport const CHAT_GET_CONVERSATIONS_ERROR = 'CHAT_GET_CONVERSATIONS_ERROR';\r\nexport const CHAT_ADD_MESSAGE_TO_CONVERSATION =\r\n 'CHAT_ADD_MESSAGE_TO_CONVERSATION';\r\nexport const CHAT_CREATE_CONVERSATION = 'CHAT_CREATE_CONVERSATION';\r\nexport const CHAT_SEARCH_CONTACT = 'CHAT_SEARCH_CONTACT';\r\nexport const CHAT_CHANGE_CONVERSATION = 'CHAT_CHANGE_CONVERSATION';\r\n\r\n/* SURVEY LIST APP */\r\nexport const SURVEY_LIST_GET_LIST = 'SURVEY_LIST_GET_LIST';\r\nexport const SURVEY_LIST_GET_LIST_SUCCESS = 'SURVEY_LIST_GET_LIST_SUCCESS';\r\nexport const SURVEY_LIST_GET_LIST_ERROR = 'SURVEY_LIST_GET_LIST_ERROR';\r\nexport const SURVEY_LIST_GET_LIST_WITH_FILTER =\r\n 'SURVEY_LIST_GET_LIST_WITH_FILTER';\r\nexport const SURVEY_LIST_GET_LIST_WITH_ORDER =\r\n 'SURVEY_LIST_GET_LIST_WITH_ORDER';\r\nexport const SURVEY_LIST_GET_LIST_SEARCH = 'SURVEY_LIST_GET_LIST_SEARCH';\r\nexport const SURVEY_LIST_ADD_ITEM = 'SURVEY_LIST_ADD_ITEM';\r\nexport const SURVEY_LIST_ADD_ITEM_SUCCESS = 'SURVEY_LIST_ADD_ITEM_SUCCESS';\r\nexport const SURVEY_LIST_ADD_ITEM_ERROR = 'SURVEY_LIST_ADD_ITEM_ERROR';\r\nexport const SURVEY_LIST_SELECTED_ITEMS_CHANGE =\r\n 'SURVEY_LIST_SELECTED_ITEMS_CHANGE';\r\n\r\n/* SURVEY DETAIL APP */\r\nexport const SURVEY_GET_DETAILS = 'SURVEY_GET_DETAILS';\r\nexport const SURVEY_GET_DETAILS_SUCCESS = 'SURVEY_GET_DETAILS_SUCCESS';\r\nexport const SURVEY_GET_DETAILS_ERROR = 'SURVEY_GET_DETAILS_ERROR';\r\nexport const SURVEY_DELETE_QUESTION = 'SURVEY_DELETE_QUESTION';\r\nexport const SURVEY_SAVE = 'SURVEY_SAVE';\r\n\r\nexport * from './menu/actions';\r\nexport * from './settings/actions';\r\nexport * from './auth/actions';\r\nexport * from './todo/actions';\r\nexport * from './chat/actions';\r\nexport * from './surveyList/actions';\r\nexport * from './surveyDetail/actions';\r\n","export const UserRole = {\r\n Admin: 0,\r\n Editor: 1,\r\n};\r\n\r\n/* \r\nMenu Types:\r\n\"menu-default\", \"menu-sub-hidden\", \"menu-hidden\"\r\n*/\r\nexport const defaultMenuType = 'menu-default';\r\n\r\nexport const subHiddenBreakpoint = 1440;\r\nexport const menuHiddenBreakpoint = 768;\r\nexport const defaultLocale = 'fa';\r\nexport const localeOptions = [\r\n { id: 'fa', name: 'Farsi - RTL', direction: 'rtl' },\r\n { id: 'en', name: 'English - LTR', direction: 'ltr' },\r\n { id: 'es', name: 'Español', direction: 'ltr' },\r\n { id: 'enrtl', name: 'English - RTL', direction: 'rtl' },\r\n];\r\n\r\nexport const firebaseConfig = {\r\n apiKey: 'AIzaSyBBksq-Asxq2M4Ot-75X19IyrEYJqNBPcg',\r\n authDomain: 'gogo-react-login.firebaseapp.com',\r\n databaseURL: 'https://gogo-react-login.firebaseio.com',\r\n projectId: 'gogo-react-login',\r\n storageBucket: 'gogo-react-login.appspot.com',\r\n messagingSenderId: '216495999563',\r\n};\r\n\r\nexport const currentUser = {\r\n id: 1,\r\n title: 'SunCollection',\r\n img: '/assets/img/profiles/l-1.jpg',\r\n date: 'sun',\r\n role: UserRole.Admin,\r\n};\r\n\r\nexport const araye = [];\r\nexport const adminRoot = '/suncollective';\r\n\r\nexport const buyUrl = 'https://www.rtl-theme.com/?p=94491';\r\nexport const searchPath = `${adminRoot}/pages/miscellaneous/search`;\r\n\r\nexport const servicePath = 'https://api.coloredstrategies.com';\r\n\r\nexport const themeColorStorageKey = '__theme_selected_color';\r\nexport const isMultiColorActive = true;\r\n// export const defaultColor = 'light.purplemonster';\r\nexport const defaultColor = 'dark.redruby';\r\nexport const isDarkSwitchActive = true;\r\nexport const defaultDirection = 'rtl';\r\nexport const themeRadiusStorageKey = '__theme_radius';\r\nexport const isAuthGuardActive = false;\r\nexport const colors = [\r\n 'bluenavy',\r\n 'blueyale',\r\n 'blueolympic',\r\n 'greenmoss',\r\n 'greenlime',\r\n 'purplemonster',\r\n 'orangecarrot',\r\n 'redruby',\r\n 'yellowgranola',\r\n 'greysteel',\r\n];\r\n","/* eslint-disable global-require */\r\nimport 'react-toastify/dist/ReactToastify.css';\r\nimport './assets/css/vendor/bootstrap.min.css';\r\nimport './assets/css/vendor/bootstrap.rtl.only.min.css';\r\nimport 'react-circular-progressbar/dist/styles.css';\r\nimport 'react-perfect-scrollbar/dist/css/styles.css';\r\nimport 'react-big-calendar/lib/css/react-big-calendar.css';\r\nimport 'react-image-lightbox/style.css';\r\nimport 'video.js/dist/video-js.css';\r\nimport './assets/css/app-rtl.css';\r\n// import 'slick-carousel/slick/slick.css';\r\n// import 'slick-carousel/slick/slick-theme.css';\r\n\r\nimport {\r\n isMultiColorActive,\r\n defaultColor,\r\n isDarkSwitchActive,\r\n} from './constants/defaultValues';\r\nimport { getCurrentColor, setCurrentColor } from './helpers/Utils';\r\n\r\nconst color =\r\n isMultiColorActive || isDarkSwitchActive ? getCurrentColor() : defaultColor;\r\nsetCurrentColor(color);\r\n\r\nconst render = () => {\r\n import(`./assets/css/sass/themes/gogo.${color}.scss`).then(() => {\r\n require('./AppRenderer');\r\n });\r\n};\r\nrender();\r\n","var map = {\n\t\"./gogo.dark.bluenavy.scss\": [\n\t\t40,\n\t\t21\n\t],\n\t\"./gogo.dark.blueolympic.scss\": [\n\t\t41,\n\t\t22\n\t],\n\t\"./gogo.dark.blueyale.scss\": [\n\t\t42,\n\t\t23\n\t],\n\t\"./gogo.dark.greenlime.scss\": [\n\t\t43,\n\t\t24\n\t],\n\t\"./gogo.dark.greenmoss.scss\": [\n\t\t44,\n\t\t25\n\t],\n\t\"./gogo.dark.greysteel.scss\": [\n\t\t45,\n\t\t26\n\t],\n\t\"./gogo.dark.orangecarrot.scss\": [\n\t\t46,\n\t\t27\n\t],\n\t\"./gogo.dark.purplemonster.scss\": [\n\t\t47,\n\t\t28\n\t],\n\t\"./gogo.dark.redruby.scss\": [\n\t\t48,\n\t\t29\n\t],\n\t\"./gogo.dark.yellowgranola.scss\": [\n\t\t49,\n\t\t30\n\t],\n\t\"./gogo.light.bluenavy.scss\": [\n\t\t50,\n\t\t31\n\t],\n\t\"./gogo.light.blueolympic.scss\": [\n\t\t51,\n\t\t32\n\t],\n\t\"./gogo.light.blueyale.scss\": [\n\t\t52,\n\t\t33\n\t],\n\t\"./gogo.light.greenlime.scss\": [\n\t\t53,\n\t\t34\n\t],\n\t\"./gogo.light.greenmoss.scss\": [\n\t\t54,\n\t\t35\n\t],\n\t\"./gogo.light.greysteel.scss\": [\n\t\t55,\n\t\t36\n\t],\n\t\"./gogo.light.orangecarrot.scss\": [\n\t\t56,\n\t\t37\n\t],\n\t\"./gogo.light.purplemonster.scss\": [\n\t\t57,\n\t\t38\n\t],\n\t\"./gogo.light.redruby.scss\": [\n\t\t58,\n\t\t39\n\t],\n\t\"./gogo.light.yellowgranola.scss\": [\n\t\t59,\n\t\t40\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 7);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 30;\nmodule.exports = webpackAsyncContext;","const initialLoginState = {\r\n response: null,\r\n source: '',\r\n expiretime: 0,\r\n sitetoken: '',\r\n bank: '',\r\n identifier: '',\r\n pname: '',\r\n tc: '',\r\n phoneumber: '',\r\n ip: '',\r\n tcprice: '',\r\n gang: '',\r\n job: '',\r\n jobgrade: '',\r\n gangexpire: '',\r\n ganglevel: '',\r\n gangslot: '',\r\n token: '',\r\n ganggrade: '',\r\n isAuth: false,\r\n server: '',\r\n message: 0,\r\n streamer: {\r\n id: '',\r\n last_message: '',\r\n discord: '',\r\n tick: '',\r\n tick_all: '',\r\n },\r\n sunRegister: {\r\n steamHex: '',\r\n phoneNumber: '',\r\n phoneIsVerify: false,\r\n password: '',\r\n name: '',\r\n family: '',\r\n discordId: '',\r\n discordIsVerify: false,\r\n description: '',\r\n },\r\n};\r\n\r\nconst ts = { textIs: '' };\r\nexport const sunLoginReducer = (state = initialLoginState, action) => {\r\n switch (action.type) {\r\n case 'SUNLOGIN': {\r\n return {\r\n ...state,\r\n ...action.payload,\r\n isAuth: true,\r\n };\r\n }\r\n case 'LOGINFAIL': {\r\n return { ...initialLoginState, error: action.payload };\r\n }\r\n default: {\r\n return { ...state };\r\n }\r\n }\r\n};\r\n\r\nexport const searchReducer = (state = ts, action) => {\r\n switch (action.type) {\r\n case 'SEARCHITEM': {\r\n return { ...ts, textIs: action.payload };\r\n }\r\n default: {\r\n return state;\r\n }\r\n }\r\n};\r\n","import { getCurrentLanguage } from 'helpers/Utils';\r\nimport { CHANGE_LOCALE } from '../actions';\r\n\r\nconst INIT_STATE = {\r\n locale: getCurrentLanguage(),\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case CHANGE_LOCALE:\r\n return { ...state, locale: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n defaultMenuType,\r\n subHiddenBreakpoint,\r\n menuHiddenBreakpoint,\r\n} from 'constants/defaultValues';\r\nimport {\r\n MENU_SET_CLASSNAMES,\r\n MENU_CONTAINER_ADD_CLASSNAME,\r\n MENU_CLICK_MOBILE_MENU,\r\n MENU_CHANGE_DEFAULT_CLASSES,\r\n MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n} from '../actions';\r\n\r\nconst INIT_STATE = {\r\n containerClassnames: defaultMenuType,\r\n subHiddenBreakpoint,\r\n menuHiddenBreakpoint,\r\n menuClickCount: 0,\r\n selectedMenuHasSubItems: defaultMenuType === 'menu-default', // if you use menu-sub-hidden as default menu type, set value of this variable to false\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case MENU_CHANGE_HAS_SUB_ITEM_STATUS:\r\n return { ...state, selectedMenuHasSubItems: action.payload };\r\n\r\n case MENU_SET_CLASSNAMES:\r\n return {\r\n ...state,\r\n containerClassnames: action.payload.containerClassnames,\r\n menuClickCount: action.payload.menuClickCount,\r\n };\r\n\r\n case MENU_CLICK_MOBILE_MENU:\r\n return {\r\n ...state,\r\n containerClassnames: action.payload.containerClassnames,\r\n menuClickCount: action.payload.menuClickCount,\r\n };\r\n\r\n case MENU_CONTAINER_ADD_CLASSNAME:\r\n return { ...state, containerClassnames: action.payload };\r\n\r\n case MENU_CHANGE_DEFAULT_CLASSES:\r\n return { ...state, containerClassnames: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import { getCurrentUser } from 'helpers/Utils';\r\nimport { isAuthGuardActive, currentUser } from 'constants/defaultValues';\r\nimport {\r\n LOGIN_USER,\r\n LOGIN_USER_SUCCESS,\r\n LOGIN_USER_ERROR,\r\n REGISTER_USER,\r\n REGISTER_USER_SUCCESS,\r\n REGISTER_USER_ERROR,\r\n LOGOUT_USER,\r\n FORGOT_PASSWORD,\r\n FORGOT_PASSWORD_SUCCESS,\r\n FORGOT_PASSWORD_ERROR,\r\n RESET_PASSWORD,\r\n RESET_PASSWORD_SUCCESS,\r\n RESET_PASSWORD_ERROR,\r\n} from '../actions';\r\n\r\nconst INIT_STATE = {\r\n currentUser: isAuthGuardActive ? currentUser : getCurrentUser(),\r\n forgotUserMail: '',\r\n newPassword: '',\r\n resetPasswordCode: '',\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case LOGIN_USER:\r\n return { ...state, loading: true, error: '' };\r\n case LOGIN_USER_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: action.payload,\r\n error: '',\r\n };\r\n case LOGIN_USER_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: null,\r\n error: action.payload.message,\r\n };\r\n case FORGOT_PASSWORD:\r\n return { ...state, loading: true, error: '' };\r\n case FORGOT_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n forgotUserMail: action.payload,\r\n error: '',\r\n };\r\n case FORGOT_PASSWORD_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n forgotUserMail: '',\r\n error: action.payload.message,\r\n };\r\n case RESET_PASSWORD:\r\n return { ...state, loading: true, error: '' };\r\n case RESET_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n newPassword: action.payload,\r\n resetPasswordCode: '',\r\n error: '',\r\n };\r\n case RESET_PASSWORD_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n newPassword: '',\r\n resetPasswordCode: '',\r\n error: action.payload.message,\r\n };\r\n case REGISTER_USER:\r\n return { ...state, loading: true, error: '' };\r\n case REGISTER_USER_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: action.payload,\r\n error: '',\r\n };\r\n case REGISTER_USER_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: null,\r\n error: action.payload.message,\r\n };\r\n case LOGOUT_USER:\r\n return { ...state, currentUser: null, error: '' };\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n TODO_GET_LIST,\r\n TODO_GET_LIST_SUCCESS,\r\n TODO_GET_LIST_ERROR,\r\n TODO_GET_LIST_WITH_FILTER,\r\n TODO_GET_LIST_WITH_ORDER,\r\n TODO_GET_LIST_SEARCH,\r\n TODO_ADD_ITEM,\r\n TODO_ADD_ITEM_SUCCESS,\r\n TODO_ADD_ITEM_ERROR,\r\n TODO_SELECTED_ITEMS_CHANGE,\r\n} from '../actions';\r\n\r\nconst INIT_STATE = {\r\n allTodoItems: null,\r\n todoItems: null,\r\n error: '',\r\n filter: null,\r\n searchKeyword: '',\r\n orderColumn: null,\r\n loading: false,\r\n labels: [\r\n { label: 'آموزشی', color: 'secondary' },\r\n { label: 'شخصی', color: 'primary' },\r\n { label: 'خیلی فوری', color: 'info' },\r\n ],\r\n orderColumns: [\r\n { column: 'title', label: 'Title' },\r\n { column: 'category', label: 'Category' },\r\n { column: 'status', label: 'Status' },\r\n { column: 'label', label: 'Label' },\r\n ],\r\n categories: ['Flexbox', 'Sass', 'React'],\r\n selectedItems: [],\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case TODO_GET_LIST:\r\n return { ...state, loading: false };\r\n\r\n case TODO_GET_LIST_SUCCESS:\r\n return {\r\n ...state,\r\n loading: true,\r\n allTodoItems: action.payload,\r\n todoItems: action.payload,\r\n };\r\n\r\n case TODO_GET_LIST_ERROR:\r\n return { ...state, loading: true, error: action.payload };\r\n\r\n case TODO_GET_LIST_WITH_FILTER:\r\n if (action.payload.column === '' || action.payload.value === '') {\r\n return {\r\n ...state,\r\n loading: true,\r\n todoItems: state.allTodoItems,\r\n filter: null,\r\n };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const filteredItems = state.allTodoItems.filter(\r\n (item) => item[action.payload.column] === action.payload.value\r\n );\r\n return {\r\n ...state,\r\n loading: true,\r\n todoItems: filteredItems,\r\n filter: {\r\n column: action.payload.column,\r\n value: action.payload.value,\r\n },\r\n };\r\n\r\n case TODO_GET_LIST_WITH_ORDER:\r\n if (action.payload === '') {\r\n return {\r\n ...state,\r\n loading: true,\r\n todoItems: state.todoItems,\r\n orderColumn: null,\r\n };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const sortedItems = state.todoItems.sort((a, b) => {\r\n if (a[action.payload] < b[action.payload]) return -1;\r\n if (a[action.payload] > b[action.payload]) return 1;\r\n return 0;\r\n });\r\n return {\r\n ...state,\r\n loading: true,\r\n todoItems: sortedItems,\r\n orderColumn: state.orderColumns.find(\r\n (x) => x.column === action.payload\r\n ),\r\n };\r\n\r\n case TODO_GET_LIST_SEARCH:\r\n if (action.payload === '') {\r\n return { ...state, todoItems: state.allTodoItems };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const keyword = action.payload.toLowerCase();\r\n // eslint-disable-next-line no-case-declarations\r\n const searchItems = state.allTodoItems.filter(\r\n (item) =>\r\n item.title.toLowerCase().indexOf(keyword) > -1 ||\r\n item.detail.toLowerCase().indexOf(keyword) > -1 ||\r\n item.status.toLowerCase().indexOf(keyword) > -1 ||\r\n item.category.toLowerCase().indexOf(keyword) > -1 ||\r\n item.label.toLowerCase().indexOf(keyword) > -1\r\n );\r\n return {\r\n ...state,\r\n loading: true,\r\n todoItems: searchItems,\r\n searchKeyword: action.payload,\r\n };\r\n\r\n case TODO_ADD_ITEM:\r\n return { ...state, loading: false };\r\n\r\n case TODO_ADD_ITEM_SUCCESS:\r\n return {\r\n ...state,\r\n loading: true,\r\n allTodoItems: action.payload,\r\n todoItems: action.payload,\r\n };\r\n\r\n case TODO_ADD_ITEM_ERROR:\r\n return { ...state, loading: true, error: action.payload };\r\n\r\n case TODO_SELECTED_ITEMS_CHANGE:\r\n return { ...state, loading: true, selectedItems: action.payload };\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n CHAT_GET_CONTACTS,\r\n CHAT_GET_CONTACTS_SUCCESS,\r\n CHAT_GET_CONTACTS_ERROR,\r\n CHAT_GET_CONVERSATIONS,\r\n CHAT_GET_CONVERSATIONS_SUCCESS,\r\n CHAT_GET_CONVERSATIONS_ERROR,\r\n CHAT_ADD_MESSAGE_TO_CONVERSATION,\r\n CHAT_CREATE_CONVERSATION,\r\n CHAT_SEARCH_CONTACT,\r\n CHAT_CHANGE_CONVERSATION,\r\n} from '../actions';\r\n\r\nconst INIT_STATE = {\r\n allContacts: null,\r\n contacts: null,\r\n conversations: null,\r\n error: '',\r\n searchKeyword: '',\r\n loadingContacts: false,\r\n loadingConversations: false,\r\n currentUser: null,\r\n selectedUser: null,\r\n selectedUserId: null,\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case CHAT_GET_CONTACTS:\r\n return { ...state, loadingContacts: false };\r\n\r\n case CHAT_GET_CONTACTS_SUCCESS:\r\n return {\r\n ...state,\r\n loadingContacts: true,\r\n allContacts: action.payload.contacts,\r\n contacts: action.payload.contacts,\r\n currentUser: action.payload.currentUser,\r\n };\r\n\r\n case CHAT_GET_CONTACTS_ERROR:\r\n return { ...state, loadingContacts: false, error: action.payload };\r\n\r\n case CHAT_GET_CONVERSATIONS:\r\n return { ...state, loadingConversations: false };\r\n\r\n case CHAT_GET_CONVERSATIONS_SUCCESS:\r\n return {\r\n ...state,\r\n loadingConversations: true,\r\n conversations: action.payload.conversations,\r\n selectedUserId: action.payload.selectedUser,\r\n };\r\n\r\n case CHAT_GET_CONVERSATIONS_ERROR:\r\n return { ...state, loadingConversations: false, error: action.payload };\r\n\r\n case CHAT_CHANGE_CONVERSATION:\r\n return {\r\n ...state,\r\n selectedUser: state.allContacts.find((x) => x.id === action.payload),\r\n };\r\n\r\n case CHAT_ADD_MESSAGE_TO_CONVERSATION:\r\n return { ...state };\r\n\r\n case CHAT_CREATE_CONVERSATION:\r\n return { ...state };\r\n\r\n case CHAT_SEARCH_CONTACT:\r\n if (action.payload === '') {\r\n return { ...state, contacts: state.allContacts };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const keyword = action.payload.toLowerCase();\r\n // eslint-disable-next-line no-case-declarations\r\n const searchedContacts = state.allContacts.filter(\r\n (item) => item.name.toLowerCase().indexOf(keyword) > -1\r\n );\r\n return { ...state, contacts: searchedContacts };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n SURVEY_LIST_GET_LIST,\r\n SURVEY_LIST_GET_LIST_SUCCESS,\r\n SURVEY_LIST_GET_LIST_ERROR,\r\n SURVEY_LIST_GET_LIST_WITH_FILTER,\r\n SURVEY_LIST_GET_LIST_WITH_ORDER,\r\n SURVEY_LIST_GET_LIST_SEARCH,\r\n SURVEY_LIST_ADD_ITEM,\r\n SURVEY_LIST_ADD_ITEM_SUCCESS,\r\n SURVEY_LIST_ADD_ITEM_ERROR,\r\n SURVEY_LIST_SELECTED_ITEMS_CHANGE,\r\n} from '../actions';\r\n\r\nconst INIT_STATE = {\r\n allSurveyItems: null,\r\n surveyItems: null,\r\n error: '',\r\n filter: null,\r\n searchKeyword: '',\r\n orderColumn: null,\r\n loading: false,\r\n labels: [\r\n { label: 'آموزشی', color: 'secondary' },\r\n { label: 'شخصی', color: 'primary' },\r\n { label: 'خیلی فوری', color: 'info' },\r\n ],\r\n orderColumns: [\r\n { column: 'title', label: 'عنوان' },\r\n { column: 'category', label: 'مجموعه' },\r\n { column: 'status', label: 'وضعیت' },\r\n { column: 'label', label: 'برچسب' },\r\n ],\r\n categories: ['مسافرت', 'مطالعه', 'محصولات'],\r\n selectedItems: [],\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case SURVEY_LIST_GET_LIST:\r\n return { ...state, loading: false };\r\n\r\n case SURVEY_LIST_GET_LIST_SUCCESS:\r\n return {\r\n ...state,\r\n loading: true,\r\n allSurveyItems: action.payload,\r\n surveyItems: action.payload,\r\n };\r\n\r\n case SURVEY_LIST_GET_LIST_ERROR:\r\n return { ...state, loading: true, error: action.payload };\r\n\r\n case SURVEY_LIST_GET_LIST_WITH_FILTER:\r\n if (action.payload.column === '' || action.payload.value === '') {\r\n return {\r\n ...state,\r\n loading: true,\r\n surveyItems: state.allSurveyItems,\r\n filter: null,\r\n };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const filteredItems = state.allSurveyItems.filter(\r\n (item) => item[action.payload.column] === action.payload.value\r\n );\r\n return {\r\n ...state,\r\n loading: true,\r\n surveyItems: filteredItems,\r\n filter: {\r\n column: action.payload.column,\r\n value: action.payload.value,\r\n },\r\n };\r\n\r\n case SURVEY_LIST_GET_LIST_WITH_ORDER:\r\n if (action.payload === '') {\r\n return {\r\n ...state,\r\n loading: true,\r\n surveyItems: state.surveyItems,\r\n orderColumn: null,\r\n };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const sortedItems = state.surveyItems.sort((a, b) => {\r\n if (a[action.payload] < b[action.payload]) return -1;\r\n if (a[action.payload] > b[action.payload]) return 1;\r\n return 0;\r\n });\r\n return {\r\n ...state,\r\n loading: true,\r\n surveyItems: sortedItems,\r\n orderColumn: state.orderColumns.find(\r\n (x) => x.column === action.payload\r\n ),\r\n };\r\n\r\n case SURVEY_LIST_GET_LIST_SEARCH:\r\n if (action.payload === '') {\r\n return { ...state, surveyItems: state.allSurveyItems };\r\n }\r\n // eslint-disable-next-line no-case-declarations\r\n const keyword = action.payload.toLowerCase();\r\n // eslint-disable-next-line no-case-declarations\r\n const searchItems = state.allSurveyItems.filter(\r\n (item) =>\r\n item.title.toLowerCase().indexOf(keyword) > -1 ||\r\n item.detail.toLowerCase().indexOf(keyword) > -1 ||\r\n item.status.toLowerCase().indexOf(keyword) > -1 ||\r\n item.category.toLowerCase().indexOf(keyword) > -1 ||\r\n item.label.toLowerCase().indexOf(keyword) > -1\r\n );\r\n return {\r\n ...state,\r\n loading: true,\r\n surveyItems: searchItems,\r\n searchKeyword: action.payload,\r\n };\r\n\r\n case SURVEY_LIST_ADD_ITEM:\r\n return { ...state, loading: false };\r\n\r\n case SURVEY_LIST_ADD_ITEM_SUCCESS:\r\n return {\r\n ...state,\r\n loading: true,\r\n allSurveyItems: action.payload,\r\n surveyItems: action.payload,\r\n };\r\n\r\n case SURVEY_LIST_ADD_ITEM_ERROR:\r\n return { ...state, loading: true, error: action.payload };\r\n\r\n case SURVEY_LIST_SELECTED_ITEMS_CHANGE:\r\n return { ...state, loading: true, selectedItems: action.payload };\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n SURVEY_GET_DETAILS,\r\n SURVEY_GET_DETAILS_SUCCESS,\r\n SURVEY_GET_DETAILS_ERROR,\r\n SURVEY_DELETE_QUESTION,\r\n SURVEY_SAVE,\r\n} from '../actions';\r\n\r\nconst INIT_STATE = {\r\n survey: null,\r\n loading: false,\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case SURVEY_GET_DETAILS:\r\n return { ...state, loading: false };\r\n\r\n case SURVEY_GET_DETAILS_SUCCESS:\r\n return { ...state, loading: true, survey: action.payload };\r\n\r\n case SURVEY_GET_DETAILS_ERROR:\r\n return { ...state, loading: true, error: action.payload };\r\n\r\n case SURVEY_DELETE_QUESTION:\r\n return { ...state, loading: false };\r\n\r\n case SURVEY_SAVE:\r\n return { ...state, loading: true, survey: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import { combineReducers } from 'redux';\r\nimport { sunLoginReducer,searchReducer } from 'redux-Sunset/reducer';\r\nimport settings from './settings/reducer';\r\nimport menu from './menu/reducer';\r\nimport authUser from './auth/reducer';\r\nimport todoApp from './todo/reducer';\r\nimport chatApp from './chat/reducer';\r\nimport surveyListApp from './surveyList/reducer';\r\nimport surveyDetailApp from './surveyDetail/reducer';\r\n\r\nconst reducers = combineReducers({\r\n menu,\r\n settings,\r\n authUser,\r\n todoApp,\r\n chatApp,\r\n surveyListApp,\r\n surveyDetailApp,\r\n sunLoginReducer,\r\n searchReducer\r\n});\r\n\r\nexport default reducers;\r\n","import { createStore, applyMiddleware, compose } from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport thunk from 'redux-thunk';\r\nimport reducers from './reducers';\r\n// import sagas from './sagas';\r\n\r\nconst sagaMiddleware = createSagaMiddleware();\r\n\r\nconst middlewares = [sagaMiddleware, thunk];\r\n\r\n\r\nexport function configureStore(initialState) {\r\n const store = createStore(\r\n reducers,\r\n initialState,\r\n compose(applyMiddleware(...middlewares))\r\n );\r\n\r\n // sagaMiddleware.run(sagas);\r\n\r\n if (module.hot) {\r\n module.hot.accept('./reducers', () => {\r\n // eslint-disable-next-line global-require\r\n const nextRootReducer = require('./reducers');\r\n store.replaceReducer(nextRootReducer);\r\n });\r\n }\r\n\r\n return store;\r\n}\r\n","const reportWebVitals = (onPerfEntry) => {\r\n if (onPerfEntry && onPerfEntry instanceof Function) {\r\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\r\n getCLS(onPerfEntry);\r\n getFID(onPerfEntry);\r\n getFCP(onPerfEntry);\r\n getLCP(onPerfEntry);\r\n getTTFB(onPerfEntry);\r\n });\r\n }\r\n};\r\n\r\nexport default reportWebVitals;\r\n","import React, { Suspense } from 'react';\r\nimport ReactDOM from 'react-dom';\r\n// import storeSun from 'redux-Sunset/store';\r\nimport { Provider } from 'react-redux';\r\nimport { configureStore } from './redux/store';\r\nimport reportWebVitals from './reportWebVitals';\r\n\r\nconst App = React.lazy(() => import(/* webpackChunkName: \"App\" */ './App'));\r\n\r\nconst Main = () => {\r\n return (\r\n // \r\n\r\n \r\n }>\r\n \r\n \r\n \r\n\r\n // \r\n );\r\n};\r\n\r\nReactDOM.render(
, document.getElementById('root'));\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(!!))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\nreportWebVitals();\r\n","import {\r\n defaultDirection,\r\n defaultLocale,\r\n defaultColor,\r\n localeOptions,\r\n themeColorStorageKey,\r\n themeRadiusStorageKey,\r\n} from 'constants/defaultValues';\r\n\r\nexport const mapOrder = (array, order, key) => {\r\n // eslint-disable-next-line func-names\r\n array.sort(function (a, b) {\r\n const A = a[key];\r\n const B = b[key];\r\n if (order.indexOf(`${A}`) > order.indexOf(`${B}`)) {\r\n return 1;\r\n }\r\n return -1;\r\n });\r\n return array;\r\n};\r\n\r\nexport const getDateWithFormat = () => {\r\n const today = new Date();\r\n let dd = today.getDate();\r\n let mm = today.getMonth() + 1; // January is 0!\r\n\r\n const yyyy = today.getFullYear();\r\n if (dd < 10) {\r\n dd = `0${dd}`;\r\n }\r\n if (mm < 10) {\r\n mm = `0${mm}`;\r\n }\r\n return `${dd}.${mm}.${yyyy}`;\r\n};\r\n\r\nexport const getCurrentTime = () => {\r\n const now = new Date();\r\n return `${now.getHours()}:${now.getMinutes()}`;\r\n};\r\n\r\nexport const getDirection = () => {\r\n let direction = defaultDirection;\r\n\r\n try {\r\n if (localStorage.getItem('direction')) {\r\n const localValue = localStorage.getItem('direction');\r\n if (localValue === 'rtl' || localValue === 'ltr') {\r\n direction = localValue;\r\n }\r\n }\r\n } catch (error) {\r\n direction = defaultDirection;\r\n }\r\n return {\r\n direction,\r\n isRtl: direction === 'rtl',\r\n };\r\n};\r\nexport const setDirection = (localValue) => {\r\n let direction = 'ltr';\r\n if (localValue === 'rtl' || localValue === 'ltr') {\r\n direction = localValue;\r\n }\r\n try {\r\n localStorage.setItem('direction', direction);\r\n } catch (error) {\r\n return null;\r\n }\r\n};\r\n\r\nexport const getCurrentColor = () => {\r\n let currentColor = defaultColor;\r\n try {\r\n if (localStorage.getItem(themeColorStorageKey)) {\r\n currentColor = localStorage.getItem(themeColorStorageKey);\r\n }\r\n } catch (error) {\r\n currentColor = defaultColor;\r\n }\r\n return currentColor;\r\n};\r\n\r\n// export const setCurrentColor = (color) => {\r\n// try {\r\n// localStorage.setItem(themeColorStorageKey, color);\r\n// } catch (error) {\r\n// return null;\r\n// }\r\n// };\r\n\r\nexport const setCurrentColor = (color) => {\r\n try {\r\n localStorage.setItem(themeColorStorageKey, color);\r\n } catch (error) {\r\n return null;\r\n }\r\n};\r\n\r\nexport const getCurrentRadius = () => {\r\n let currentRadius = 'rounded';\r\n try {\r\n if (localStorage.getItem(themeRadiusStorageKey)) {\r\n currentRadius = localStorage.getItem(themeRadiusStorageKey);\r\n }\r\n } catch (error) {\r\n currentRadius = 'rounded';\r\n }\r\n return currentRadius;\r\n};\r\nexport const setCurrentRadius = (radius) => {\r\n try {\r\n localStorage.setItem(themeRadiusStorageKey, radius);\r\n } catch (error) {\r\n return null;\r\n }\r\n};\r\n\r\nexport const getCurrentLanguage = () => {\r\n let language = defaultLocale;\r\n try {\r\n language =\r\n localStorage.getItem('currentLanguage') &&\r\n localeOptions.filter(\r\n (x) => x.id === localStorage.getItem('currentLanguage')\r\n ).length > 0\r\n ? localStorage.getItem('currentLanguage')\r\n : defaultLocale;\r\n } catch (error) {\r\n language = defaultLocale;\r\n }\r\n return language;\r\n};\r\nexport const setCurrentLanguage = (locale) => {\r\n try {\r\n localStorage.setItem('currentLanguage', locale);\r\n } catch (error) {\r\n return null;\r\n }\r\n};\r\n\r\nexport const getCurrentUser = () => {\r\n let user = null;\r\n try {\r\n user =\r\n localStorage.getItem('gogo_current_user') != null\r\n ? JSON.parse(localStorage.getItem('gogo_current_user'))\r\n : null;\r\n } catch (error) {\r\n user = null;\r\n }\r\n return user;\r\n};\r\n\r\nexport const setCurrentUser = (user) => {\r\n try {\r\n if (user) {\r\n localStorage.setItem('gogo_current_user', JSON.stringify(user));\r\n } else {\r\n localStorage.removeItem('gogo_current_user');\r\n }\r\n } catch (error) {\r\n return null;\r\n }\r\n};\r\n"],"sourceRoot":""}