{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/store/index.js","webpack:///./src/router/index.js","webpack:///./src/services/init-facebook-sdk.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","Vuex","Store","plugins","createPersistedState","state","refresh_token","access_token","loggedInUser","isAuthenticated","mutations","setRefreshToken","refreshToken","setAccessToken","accessToken","setLoggedInUser","user","clearUserData","storeCode","addToCart","product","cart","getCookieObject","total","products","forEach","parseFloat","toFixed","setCookieObject","setCart","clearCart","deleteCookie","actions","login","payload","commit","jwtToken","store","dispatch","login2","logout","router","refreshUrl","axios","post","then","response","status","console","log","routeUser","setCompletedOrder","completeOrder","setStoreCode","getters","currentUserDetail","hasRunningEvent","runningEventId","runningEventStateDate","runningEventStartDate","runningEventEndDate","routes","path","component","Help","About","BrochureForm","Home","NewEvent","MobileLogin","OrganizerEvents","ParticipantStores","RunningEvent","OpenStore","DashboardOptions","EventDetail","DraftEvent","EventDetailEnded","SignupParticipant","PublicStore","PublicEvent","StoreDetail","Cart","Checkout","Settings","ForgotPassword","ResetPassword","OrderComplete","TermsOfUse","PrivacyPolicy","VirtualFundraising","createRouter","history","createWebHistory","scrollBehavior","element","document","getElementById","headerOffset","elementPosition","getBoundingClientRect","top","offsetPosition","scrollTo","behavior","facebookAppId","initFacebookSdk","Promise","resolve","fbAsyncInit","FB","init","appId","cookie","xfbml","version","getLoginStatus","authResponse","id","js","fjs","getElementsByTagName","createElement","src","parentNode","insertBefore"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EA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LE,SAAU,cAKP/D,U,6HCtNTgE,EAAgB,gBAEf,SAASC,IACZ,OAAO,IAAIC,SAAQ,SAAAC,GAGf9G,OAAO+G,YAAc,WACjB/G,OAAOgH,GAAGC,KAAK,CACXC,MAAOP,EACPQ,QAAQ,EACRC,OAAO,EACPC,QAAS,UAIbrH,OAAOgH,GAAGM,eAAV,yDAAyB,wGAASC,EAAT,EAASA,cAC1BA,EADiB,gCAEX1E,IAAMC,KAAK,mCAAoC,CAAE9B,YAAauG,EAAavG,cAFhE,OAGjB8F,IAHiB,sBAKjBA,IALiB,2CAAzB,wDAWH,SAAUrI,EAAGP,EAAGsJ,GACb,IAAIC,EAAIC,EAAMjJ,EAAEkJ,qBAAqBzJ,GAAG,GACpCO,EAAE0H,eAAeqB,KACrBC,EAAKhJ,EAAEmJ,cAAc1J,GAAIuJ,EAAGD,GAAKA,EAEjCC,EAAGI,IAAM,0DACTH,EAAII,WAAWC,aAAaN,EAAIC,IANnC,CAOCxB,SAAU,SAAU","file":"js/app~c714bc7b.2b74faef.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app~c714bc7b\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors~0f485567\",\"chunk-vendors~b4721254\",\"chunk-vendors~0eba4586\",\"chunk-vendors~0b7f43b9\",\"chunk-vendors~cd01edf3\",\"chunk-vendors~6b632478\",\"chunk-vendors~d4a33901\",\"chunk-vendors~1774b48a\",\"chunk-vendors~7f3f6916\",\"chunk-vendors~1eae9cd0\",\"chunk-vendors~519c10bf\",\"chunk-vendors~544a4ec4\",\"chunk-vendors~e4173fa2\",\"chunk-vendors~06709b62\",\"chunk-vendors~f53b26b4\",\"chunk-vendors~b2ed013a\",\"chunk-vendors~fc2f81ef\",\"chunk-vendors~5b06e479\",\"chunk-vendors~6484b8ce\",\"chunk-vendors~2f5952e0\",\"chunk-vendors~70aa9518\",\"chunk-vendors~a828baaf\",\"chunk-vendors~e3f8acb7\",\"chunk-vendors~2548b2ba\",\"chunk-vendors~6a907873\",\"chunk-vendors~00cb062a\",\"chunk-vendors~2930ad93\",\"chunk-vendors~77bf5e45\",\"chunk-vendors~9c5b28f6\",\"chunk-vendors~acda4ad0\",\"chunk-vendors~e258e298\",\"chunk-vendors~cc99a214\",\"chunk-vendors~b58f7129\",\"chunk-vendors~e2386067\",\"app~d0ae3f07\",\"app~21833f8f\",\"app~e73b60ec\",\"app~32ab1a8b\",\"app~fde2bf1c\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import Vuex from \"vuex\";\r\nimport axios from \"axios\";\r\nimport createPersistedState from \"vuex-persistedstate\";\r\nimport router from \"../router\"; // our vue router instance\r\nimport store from \"@/store\"\r\nimport { deleteCookie, getCookieObject, setCookieObject } from \"../assets/js/app.js\";\r\n\r\nexport default new Vuex.Store({\r\n plugins: [createPersistedState()],\r\n state: {\r\n refresh_token: \"\",\r\n access_token: \"\",\r\n loggedInUser: {},\r\n isAuthenticated: false\r\n },\r\n mutations: {\r\n setRefreshToken: function (state, refreshToken) {\r\n state.refresh_token = refreshToken;\r\n },\r\n setAccessToken: function (state, accessToken) {\r\n state.access_token = accessToken;\r\n },\r\n // sets state with user information and toggles \r\n // isAuthenticated from false to true\r\n setLoggedInUser: function (state, user) {\r\n state.loggedInUser = user;\r\n state.isAuthenticated = true;\r\n },\r\n // delete all auth and user information from the state\r\n clearUserData: function (state) {\r\n state.refresh_token = \"\";\r\n state.access_token = \"\";\r\n state.loggedInUser = {};\r\n state.isAuthenticated = false;\r\n state.storeCode = \"\";\r\n },\r\n addToCart: function (state, product) {\r\n product.storeCode = state.storeCode;\r\n let cart = getCookieObject('ct');\r\n if (cart == null)\r\n cart = { total: 0, products: [] };\r\n else\r\n cart.total = 0;\r\n //if product selected before then increment it\r\n //let existProduct = cart.products.filter(p => p.id == product.id);\r\n //if (existProduct.length > 0) {\r\n // existProduct = existProduct[0];\r\n // existProduct.price = parseFloat(existProduct.price);\r\n // existProduct.count = parseInt(existProduct.count);\r\n // existProduct.count += parseInt(product.count);\r\n // existProduct.total = existProduct.count * existProduct.price;\r\n // //loop over bags in the product and increment what is exist\r\n // product.bags.forEach(bag => {\r\n // let existBag = existProduct.bags.filter(b => b.id == bag.id);\r\n // if (existBag.length == 0) {\r\n // existProduct.bags.push(bag);\r\n // }\r\n // else {\r\n // existBag[0].count = existBag[0].count + bag.count;\r\n // existBag[0].total = existBag[0].total + bag.total;\r\n // }\r\n // });\r\n //}\r\n //else\r\n cart.products.push(product); \r\n\r\n cart.products.forEach(p => {\r\n cart.total += parseFloat(p.total);\r\n });\r\n cart.total = cart.total.toFixed(2);\r\n setCookieObject('ct', cart);\r\n state.cart = cart;\r\n },\r\n setCart: function(state,cart){\r\n setCookieObject('ct', cart);\r\n state.cart = cart;\r\n },\r\n clearCart: function (state) {\r\n deleteCookie('ct');\r\n state.cart = null;\r\n }\r\n },\r\n actions: {\r\n login: async ({ commit }, payload) => {\r\n commit(\"setRefreshToken\", payload.data.refreshToken);\r\n commit(\"setAccessToken\", payload.data.jwtToken);\r\n commit(\"setLoggedInUser\", payload.data.user);\r\n store.dispatch(\"routeUser\");\r\n },\r\n login2: async ({ commit }, payload) => {\r\n commit(\"setRefreshToken\", payload.data.refreshToken);\r\n commit(\"setAccessToken\", payload.data.jwtToken);\r\n commit(\"setLoggedInUser\", payload.data.user);\r\n },\r\n logout: ({ commit }) => {\r\n commit(\"clearUserData\");\r\n router.push(\"/login\");\r\n },\r\n refreshToken: async ({ state, commit }) => {\r\n const refreshUrl = \"/api/users/refresh-token/\";\r\n try {\r\n await axios\r\n .post(refreshUrl, { refreshToken: state.refresh_token })\r\n .then(response => {\r\n if (response.status === 200) {\r\n commit(\"setAccessToken\", response.data.jwtToken);\r\n commit(\"setRefreshToken\", response.data.refreshToken);\r\n }\r\n });\r\n } catch (e) {\r\n console.log(e.response);\r\n }\r\n },\r\n routeUser: ({ state,commit }) => {\r\n if (state.isAuthenticated===true) {\r\n //if (state.loggedInUser.status === \"o/e\")\r\n // router.push(\"/o/dashboard\");\r\n //else if (state.loggedInUser.status === \"p/s\")\r\n // router.push(\"/p/dashboard\");\r\n //else\r\n router.push(\"/dashboard/options\");\r\n }\r\n else\r\n router.push(\"/\");\r\n },\r\n setCompletedOrder: ({ state }, payload) => {\r\n state.completeOrder = payload;\r\n router.push(\"/ordercomplete\");\r\n },\r\n addToCart: ({ commit }, payload) => {\r\n commit(\"addToCart\", payload);\r\n router.push(\"/Cart\");\r\n },\r\n setCart: ({ commit }, payload) => {\r\n commit(\"setCart\", payload); \r\n },\r\n clearCart: ({ commit }, payload) => {\r\n commit(\"clearCart\"); \r\n },\r\n setStoreCode: ({ state }, payload) => {\r\n state.storeCode = payload;\r\n }\r\n },\r\n getters: {\r\n loggedInUser: state => state.loggedInUser,\r\n currentUserDetail: state => state.loggedInUser,\r\n hasRunningEvent: state => state.loggedInUser.runningEventId != null,\r\n runningEventStateDate: state => state.loggedInUser.runningEventStartDate,\r\n runningEventEndDate: state => state.loggedInUser.runningEventEndDate,\r\n isAuthenticated: state => state.isAuthenticated,\r\n accessToken: state => state.access_token,\r\n refreshToken: state => state.refresh_token,\r\n cart: state => state.cart,\r\n storeCode: state => state.storeCode,\r\n completeOrder: state => state.completeOrder\r\n }\r\n});\r\n","import { createWebHistory, createRouter } from \"vue-router\";\r\nimport About from \"@/components/About.vue\";\r\nimport BrochureForm from \"@/components/BrochureForm.vue\";\r\nimport Home from \"@/components/Home.vue\";\r\n//import Signup from \"@/components/Signup.vue\"\r\nimport NewEvent from \"@/components/NewEvent.vue\"\r\nimport OrganizerEvents from \"@/components/OrganizerEvents.vue\"\r\nimport ParticipantStores from \"@/components/ParticipantStores.vue\"\r\nimport RunningEvent from \"@/components/RunningEvent.vue\"\r\nimport OpenStore from \"@/components/OpenStore.vue\"\r\nimport PublicStore from \"@/components/PublicStore.vue\"\r\nimport PublicEvent from \"@/components/PublicEvent.vue\"\r\nimport DashboardOptions from \"@/components/DashboardOptions.vue\"\r\nimport SignupParticipant from \"@/components/SignupParticipant.vue\"\r\nimport EventDetail from \"@/components/EventDetail.vue\"\r\nimport EventDetailEnded from \"@/components/EventDetailEnded.vue\"\r\nimport StoreDetail from \"@/components/StoreDetail.vue\"\r\nimport Login from \"@/components/Login.vue\"\r\nimport MobileLogin from \"@/components/MobileLogin.vue\"\r\nimport Cart from \"@/components/Cart.vue\"\r\nimport Settings from \"@/components/Settings.vue\"\r\nimport ForgotPassword from \"@/components/ForgotPassword.vue\"\r\nimport ResetPassword from \"@/components/ResetPassword.vue\"\r\nimport Checkout from \"@/components/Checkout.vue\"\r\nimport OrderComplete from \"@/components/OrderComplete.vue\"\r\nimport TermsOfUse from \"@/components/TermsOfUse.vue\"\r\nimport PrivacyPolicy from \"@/components/PrivacyPolicy.vue\"\r\nimport VirtualFundraising from \"@/components/VirtualFundraising.vue\"\r\nimport Help from \"@/components/Help.vue\"\r\nimport DraftEvent from \"@/components/DraftEvent.vue\"\r\n\r\nconst routes = [\r\n {\r\n path: \"/Help\",\r\n name: \"Help\",\r\n component: Help,\r\n },\r\n {\r\n path: \"/About\",\r\n name: \"About\",\r\n component: About,\r\n },\r\n {\r\n path: \"/BrochureForm\",\r\n name: \"BrochureForm\",\r\n component: BrochureForm,\r\n },\r\n {\r\n path: \"/\",\r\n name: \"Home\",\r\n component: Home,\r\n }, \r\n //{\r\n // path: \"/Signup\",\r\n // name: \"Signup\",\r\n // component: Signup,\r\n //}, \r\n {\r\n path: \"/NewEvent\",\r\n name: \"NewEvent\",\r\n component: NewEvent,\r\n }, \r\n //{\r\n // path: \"/Login\",\r\n // name: \"Login\",\r\n // component: MobileLogin,\r\n //},\r\n {\r\n path: \"/Login/:signup\",\r\n name: \"Login\",\r\n component: MobileLogin,\r\n },\r\n {\r\n path: \"/o/dashboard\",\r\n name: \"OrganizerEvents\",\r\n component: OrganizerEvents,\r\n },\r\n {\r\n path: \"/p/dashboard\",\r\n name: \"ParticipantStores\",\r\n component: ParticipantStores,\r\n },\r\n {\r\n path: \"/o/re\",\r\n name: \"RunningEventDasboard\",\r\n component: RunningEvent,\r\n },\r\n {\r\n path: \"/p/os\",\r\n name: \"OpenStoreDasboard\",\r\n component: OpenStore,\r\n },\r\n {\r\n path: \"/dashboard/options\",\r\n name: \"DashboardOptions\",\r\n component: DashboardOptions,\r\n },\r\n {\r\n path: \"/event/detail/:id\",\r\n name: \"EventDetail\",\r\n component: EventDetail,\r\n },\r\n {\r\n path: \"/event/draft/:id\",\r\n name: \"DraftEvent\",\r\n component: DraftEvent,\r\n },\r\n {\r\n path: \"/event/ended/:id\",\r\n name: \"EventDetailEnded\",\r\n component: EventDetailEnded,\r\n },\r\n {\r\n path: \"/event/running/\",\r\n name: \"RunningEvent\",\r\n component: RunningEvent,\r\n },\r\n {\r\n path: \"/store/open/:id\",\r\n name: \"OpenStore\",\r\n component: OpenStore,\r\n },\r\n {\r\n path: \"/p/signup/:code\",\r\n name: \"SignupParticipant\",\r\n component: SignupParticipant,\r\n },\r\n {\r\n path: \"/p/signup/:mobile\",\r\n name: \"SignupParticipant\",\r\n component: SignupParticipant,\r\n },\r\n {\r\n path: \"/store/public/:code\",\r\n name: \"PublicStore\",\r\n component: PublicStore,\r\n },\r\n {\r\n path: \"/event/public/:code\",\r\n name: \"PublicEvent\",\r\n component: PublicEvent,\r\n },\r\n {\r\n path: \"/store/detail/:id\",\r\n name: \"StoreDetail\",\r\n component: StoreDetail,\r\n },\r\n {\r\n path: \"/cart\",\r\n name: \"Cart\",\r\n component: Cart, \r\n },\r\n {\r\n path: \"/checkout\",\r\n name: \"Checkout\",\r\n component: Checkout, \r\n },\r\n {\r\n path: \"/settings\",\r\n name: \"Settings\",\r\n component: Settings,\r\n },\r\n {\r\n path: \"/forgorpassword\",\r\n name: \"ForgotPassword\",\r\n component: ForgotPassword,\r\n },\r\n {\r\n path: \"/resetpassword\",\r\n name: \"ResetPassword\",\r\n component: ResetPassword,\r\n },\r\n {\r\n path: \"/ordercomplete\",\r\n name: \"OrderComplete\",\r\n component: OrderComplete,\r\n },\r\n {\r\n path: \"/termsofuse\",\r\n name: \"TermsOfUse\",\r\n component: TermsOfUse,\r\n },\r\n {\r\n path: \"/privacypolicy\",\r\n name: \"PrivacyPolicy\",\r\n component: PrivacyPolicy,\r\n },\r\n {\r\n path: \"/VirtualFundraising\",\r\n name: \"VirtualFundraising\",\r\n component: VirtualFundraising,\r\n },\r\n {\r\n path: \"/:pathMatch(.*)*\",\r\n name: \"Home\",\r\n component: () => import (\"@/components/Home.vue\"),\r\n }, \r\n];\r\n\r\nconst router = createRouter({\r\n history: createWebHistory(),\r\n routes,\r\n scrollBehavior() {\r\n // document.getElementById('app').scrollIntoView({ behavior: 'smooth' });\r\n var element = document.getElementById('app');\r\n var headerOffset = 50;\r\n var elementPosition = element.getBoundingClientRect().top;\r\n var offsetPosition = elementPosition - headerOffset;\r\n\r\n window.scrollTo({\r\n top: offsetPosition,\r\n behavior: \"smooth\"\r\n });\r\n }\r\n});\r\n\r\nexport default router;","import axios from \"axios\"\r\n\r\nconst facebookAppId = 413828523668223;\r\n\r\nexport function initFacebookSdk() {\r\n return new Promise(resolve => {\r\n\r\n // wait for facebook sdk to initialize before starting the vue app\r\n window.fbAsyncInit = function () {\r\n window.FB.init({\r\n appId: facebookAppId,\r\n cookie: true,\r\n xfbml: true,\r\n version: 'v12.0' // this is facebook graph api version v12.0 is currently the highest..\r\n });\r\n \r\n // auto authenticate with the api if already logged in with facebook\r\n window.FB.getLoginStatus(async ({ authResponse }) => {\r\n if (authResponse) {\r\n await axios.post(\"/api/users/facebook-authenticate\", { accessToken: authResponse.accessToken });\r\n resolve();\r\n } else {\r\n resolve();\r\n }\r\n });\r\n };\r\n\r\n // load facebook sdk script\r\n (function (d, s, id) {\r\n var js, fjs = d.getElementsByTagName(s)[0];\r\n if (d.getElementById(id)) { return; }\r\n js = d.createElement(s); js.id = id;\r\n //js.src = \"https://connect.facebook.net/en_US/all.js\";\r\n js.src = \"https://connect.facebook.net/en_US/sdk.js#version=v12.0\";\r\n fjs.parentNode.insertBefore(js, fjs);\r\n }(document, 'script', 'facebook-jssdk'));\r\n \r\n });\r\n}"],"sourceRoot":""}