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,OAASvJ,EAAKuJ,MAAM7Q,OAC3BgE,KAAK0G,QAAQC,KAAK,CAAE1K,KAAMwI,EAAAA,EAAUwI,WAAWW,aAGjD5N,KAAK0G,QAAQC,KAAK,CAAE1K,KAAMwI,EAAAA,EAAUwI,WAAWC,gBAAiB,GAEtE,EACA/G,WAAAA,GACE,MAAM0H,EAAY1B,SAAS2B,cAAc,yBACpCD,IACLA,EAAUE,UAAYF,EAAUG,aAClC,G,wEChGGpS,MAAM,wB,GACJA,MAAM,2B,wHADbD,EAAAA,EAAAA,IAKM,MALNc,EAKM,EAJJQ,EAAAA,EAAAA,IAGM,MAHNO,EAGM,CAF2Bd,EAAAC,gBAAa,WAA5CC,EAAAA,EAAAA,IAAgDC,EAAA,CAHtDC,IAAA,MAAAC,EAAAA,EAAAA,IAAA,oBAAAC,EAAAA,EAAAA,QAIMK,EAAAA,EAAAA,IAAuB4Q,M,iDAW7B,SACEhS,KAAM,cACNwD,WAAY,CACVyO,oBAAmB,IACnB5G,wBAAuBA,EAAAA,GAEzBpC,OAAQ,CAACqC,EAAAA,EAAqBC,EAAAA,GAC9BlH,OAAAA,GACEN,KAAKyH,WAAU,KACbzH,KAAK0H,YAAY,GAErB,G,eCrBF,MAAMnL,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,G","sources":["webpack://app/./src/components/widgets/TextSeparator.vue","webpack://app/./src/components/widgets/TextSeparator.vue?3ae4","webpack://app/./src/components/pages/authentication/Login.vue","webpack://app/./src/components/elements/authentication/LoginForm.vue","webpack://app/./src/components/elements/EmailField.vue","webpack://app/./src/components/elements/EmailField.vue?b6c8","webpack://app/./src/components/elements/ProviderLoginButton.vue","webpack://app/./src/components/elements/ProviderLoginButton.vue?cad4","webpack://app/./src/utilities/loginWithAuthProvider.js","webpack://app/./src/utilities/composables/useProviderLogin.ts","webpack://app/./src/components/elements/authentication/LoginForm.vue?1a5d","webpack://app/./src/components/pages/authentication/Login.vue?2442","webpack://app/./src/types/login.ts","webpack://app/./src/components/elements/SmallLogo.vue","webpack://app/./src/components/elements/SmallLogo.vue?3433","webpack://app/./src/components/elements/authentication/VerifyEmailCodeForm.vue","webpack://app/./src/components/elements/forms/ErrorMessage.vue","webpack://app/./src/components/elements/forms/ErrorMessage.vue?c461","webpack://app/./src/components/elements/authentication/VerifyEmailCodeForm.vue?c277","webpack://app/./src/components/widgets/ElectronInvisibleHeader.vue","webpack://app/./src/components/widgets/ElectronInvisibleHeader.vue?9199","webpack://app/./src/components/pages/authentication/StJoin.vue","webpack://app/./src/components/pages/authentication/StJoin.vue?4e7b","webpack://app/./src/mixins/preloadAppResources.js","webpack://app/./src/mixins/loginMixin.js","webpack://app/./src/components/pages/authentication/VerifyEmail.vue","webpack://app/./src/components/pages/authentication/VerifyEmail.vue?0c79"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./TextSeparator.vue?vue&type=template&id=78c7a6fc\"\nimport script from \"./TextSeparator.vue?vue&type=script&lang=js\"\nexport * from \"./TextSeparator.vue?vue&type=script&lang=js\"\n\nimport \"./TextSeparator.vue?vue&type=style&index=0&id=78c7a6fc&lang=scss\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","\n\n\n","\n\n\n","import { render } from \"./EmailField.vue?vue&type=template&id=08cd4b22\"\nimport script from \"./EmailField.vue?vue&type=script&lang=js\"\nexport * from \"./EmailField.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./ProviderLoginButton.vue?vue&type=template&id=2d617642\"\nimport script from \"./ProviderLoginButton.vue?vue&type=script&lang=js\"\nexport * from \"./ProviderLoginButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { nanoid } from 'nanoid';\nimport { browserStorageSetItem } from './browser-storage.util';\n\n/**\n * Log-in user with google account\n * @param {string} baseUrl - endpoints base url\n * @param {string} redirectUrl - url to redirect to after successful login\n * @param {string} provider - provider to log-in with, default is 'google'\n */\nconst loginWithAuthProvider = (baseUrl, redirectUrl, provider = 'google') => {\n const encodedRedirectUrl = encodeURIComponent(redirectUrl);\n const url = `${baseUrl}/v1/auth/idp/${provider}?redirect=${encodedRedirectUrl}`;\n localStorage.setItem('login', 'authProvider');\n window.location.href = url;\n};\n\n/**\n * Log-in user app with google account for the electron app\n * @param {string} redirectUrl - url to redirect to after successful login\n * @param {function} redirectToElectronFn - function that passes the url to electron (main) process via auth-redirect-channel to open the url in the default browser\n */\nconst electronLoginWithAuthProvider = (redirectUrl, redirectToElectronFn) => {\n // used to protect against csrf attacks, we pass the random value and check it when we get response back after successful login\n const authStateParam = nanoid(15);\n\n // we hit /logout endpoint which clears cognito cookies that prevent account select\n // due to pressence of redirect_uri we are redirected to /login endoint where we must select 'sing in with google'\n // becouse cookies were cleared we are presented with account select screen, after which we are redirected to redirect_uri\n // * we only get account select screen if we are logged in with multiple google accounts in a browser\n const base = `${process.env.VUE_APP_AUTH_HOST}/logout`;\n const queryParams = `response_type=code&client_id=${process.env.VUE_APP_AUTH_CLIENT_ID}&redirect_uri=${redirectUrl}&scope=openid+email+profile&state=${authStateParam}`;\n const url = `${base}?${queryParams}`;\n\n browserStorageSetItem('login', 'authProvider');\n browserStorageSetItem('authStateParam', authStateParam);\n\n redirectToElectronFn(url);\n};\n\nexport { loginWithAuthProvider, electronLoginWithAuthProvider };\n","import { computed } from 'vue';\nimport { useStore } from 'vuex';\nimport { browserStorageSetItem, browserStorageRemoveItem } from '@/utilities/browser-storage.util';\nimport useIsElectronApp from '@/utilities/composables/useIsElectronApp';\nimport {\n loginWithAuthProvider,\n electronLoginWithAuthProvider,\n} from '@/utilities/loginWithAuthProvider';\nimport constants from '@/utilities/constants';\nimport { loggedOutGoogleAccountKey, loggedOutAppleAccountKey } from '@/types/login';\n\ndeclare global {\n interface Window {\n electron: any;\n }\n}\n\nexport default function useProviderLogin() {\n const store = useStore();\n const { isElectronApp } = useIsElectronApp();\n\n const user = computed(() => {\n return store.getters.getUser || {};\n });\n\n const origin = computed(() => {\n return window.location.origin;\n });\n\n const redirectRoute = computed(() => {\n return store.getters.getRedirectRouteAfterLogin;\n });\n\n const redirectPath = computed(() => {\n return Object.keys(redirectRoute.value).length ? redirectRoute.value.fullPath : '';\n });\n\n const clickHandler = async (providerId: string) => {\n browserStorageRemoveItem('redirectRouteAfterLogin');\n if (user.value.id) {\n logOut(providerId);\n return;\n }\n\n logIn(providerId);\n };\n\n const logOut = async (providerId: string) => {\n await store.dispatch('logOut');\n if (providerId === 'google') {\n browserStorageSetItem(loggedOutGoogleAccountKey, true);\n } else if (providerId === 'apple') {\n browserStorageSetItem(loggedOutAppleAccountKey, true);\n }\n };\n\n const logIn = async (providerId: string) => {\n const { electron } = window;\n if (isElectronApp.value && electron?.send) {\n const vueAppEnv = process.env.VUE_APP_ENV as string;\n if (vueAppEnv in constants.desktopRedirectRoutes) {\n electronLoginWithAuthProvider(\n constants.desktopRedirectRoutes[\n vueAppEnv as keyof typeof constants.desktopRedirectRoutes\n ],\n (url: any) => electron.send('auth-redirect-channel', url)\n );\n }\n } else {\n loginWithAuthProvider(\n store.getters.getRoutes.users,\n `${origin.value}${redirectPath.value}`,\n providerId\n );\n }\n };\n\n return {\n clickHandler,\n logOut,\n logIn,\n };\n}\n","import { render } from \"./LoginForm.vue?vue&type=template&id=7c466300\"\nimport script from \"./LoginForm.vue?vue&type=script&lang=js\"\nexport * from \"./LoginForm.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Login.vue?vue&type=template&id=8627866c\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export const loggedOutGoogleAccountKey = 'logged-out-google-account';\nexport const loggingInDifferentEmailKey = 'logging-in-different-email';\nexport const loggedOutAppleAccountKey = 'logged-out-apple-account';\n","\n\n\n","import { render } from \"./SmallLogo.vue?vue&type=template&id=24c7db06\"\nimport script from \"./SmallLogo.vue?vue&type=script&lang=js\"\nexport * from \"./SmallLogo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","\n\n\n","import { render } from \"./ErrorMessage.vue?vue&type=template&id=1edfa06c\"\nimport script from \"./ErrorMessage.vue?vue&type=script&lang=js\"\nexport * from \"./ErrorMessage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./VerifyEmailCodeForm.vue?vue&type=template&id=2deda505\"\nimport script from \"./VerifyEmailCodeForm.vue?vue&type=script&lang=js\"\nexport * from \"./VerifyEmailCodeForm.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./ElectronInvisibleHeader.vue?vue&type=template&id=0597d82e\"\nimport script from \"./ElectronInvisibleHeader.vue?vue&type=script&lang=js\"\nexport * from \"./ElectronInvisibleHeader.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./StJoin.vue?vue&type=template&id=f8dc70f6\"\nimport script from \"./StJoin.vue?vue&type=script&lang=js\"\nexport * from \"./StJoin.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export default {\n mounted() {\n window.onload = () => this.preloadAppResources();\n },\n methods: {\n projectPages: () =>\n import(\n /* webpackChunkName: \"projectPages\" */ '@/components/sections/ProjectContentColumn.vue'\n ),\n createFontElement(className) {\n this.$nextTick(() => {\n const element = document.createElement('div');\n element.innerHTML = '.';\n element.className = `${className} hidden`;\n document.body.appendChild(element);\n });\n },\n preloadAppResources() {\n this.projectPages();\n this.createFontElement('primary-font');\n },\n },\n};\n","import constants from '@/utilities/constants';\nimport { browserStorageSetItem } from '@/utilities/browser-storage.util';\n\nexport default {\n computed: {\n defaultTabName() {\n return this.$store.getters.getDefaultTabName;\n },\n redirectRoute() {\n return this.$store.getters.getRedirectRouteAfterLogin;\n },\n },\n\n methods: {\n tryFetchingUser() {\n return this.$store.dispatch('loadUser').then(({ user }) => {\n this.setUser(user);\n const localCurrentTeamId = localStorage.getItem('currentTeamId');\n const teamIndex = user.teams.findIndex((t) => t.id === localCurrentTeamId);\n const route = { ...this.redirectRoute };\n\n if (Object.keys(route).length) {\n if (route.trusted) {\n browserStorageSetItem('redirectRouteAfterLogin', route);\n // Check if the user has any workspaces\n if (user.teams.length === 0) {\n this.$router.push({ name: constants.routeNames.onboardingInfo });\n return;\n }\n this.clearPostLoginState();\n this.$router.push(route.fullPath);\n return;\n }\n const redirectTeam = user.teams.find((t) => t.sub_domain === route.params.team_subdomain);\n if (redirectTeam) {\n this.setTeam(redirectTeam);\n this.$router.push(route);\n } else {\n this.getPendingInvities(user);\n }\n } else if (teamIndex !== -1) {\n if (user.teams[teamIndex]) {\n this.setTeam(user.teams[teamIndex]);\n this.$router.push(this.defaultTabName);\n } else {\n this.getPendingInvities(user);\n }\n } else {\n this.getPendingInvities(user);\n }\n this.clearPostLoginState();\n });\n },\n clearPostLoginState() {\n this.$store.dispatch('setOnboardingErrorMessage', '');\n this.$store.dispatch('setRedirectRouteAfterLogin', {});\n },\n setUser(user) {\n this.$store.dispatch('setLoggedIn');\n this.$store.dispatch('setUser', user);\n this.$store.dispatch('setOnboardingUserID', user.id);\n },\n setTeam(team) {\n this.$store.dispatch('setCurrentTeamId', team.id);\n this.$store.dispatch('setTeamSubDomain', team.sub_domain);\n const key = `${team.id}-currentProjectId`;\n const currentProjectId = localStorage.getItem(key);\n if (currentProjectId) {\n this.$store.dispatch('setCurrentProjectId', currentProjectId);\n }\n },\n getPendingInvities(user) {\n this.$store\n .dispatch('getPendingInvities')\n .then((data) => {\n if (data.pending_invites.length === 0 && user.teams.length === 1) {\n this.setTeam(user.teams[0]);\n this.$router.push(this.defaultTabName);\n } else if (data.pending_invites.length || user.teams.length) {\n this.$router.push({ name: constants.routeNames.workspaces });\n } else {\n this.$store.dispatch('setOnboardingErrorMessage', '');\n this.$router.push({ name: constants.routeNames.onboardingInfo });\n }\n })\n .catch(() => {\n if (user.teams && user.teams.length) {\n this.$router.push({ name: constants.routeNames.workspaces });\n return;\n }\n this.$router.push({ name: constants.routeNames.onboardingInfo });\n });\n },\n scrollToBtm() {\n const container = document.querySelector('.onboarding_container');\n if (!container) return;\n container.scrollTop = container.scrollHeight;\n },\n },\n};\n","\n\n\n","import { render } from \"./VerifyEmail.vue?vue&type=template&id=67e34614\"\nimport script from \"./VerifyEmail.vue?vue&type=script&lang=js\"\nexport * from \"./VerifyEmail.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createElementBlock","class","_normalizeClass","$props","text","length","name","props","type","String","required","default","__exports__","render","_hoisted_1","_ctx","isElectronApp","_createBlock","_component_ElectronInvisibleHeader","key","_createCommentVNode","_createTextVNode","_createElementVNode","hidden","$options","getIsBeingRedirected","_createVNode","_component_LoginForm","_component_SmallLogo","_hoisted_2","_toDisplayString","translate","_hoisted_3","_Fragment","_renderList","loginButtons","button","_component_ProviderLoginButton","id","logo","label","onLoginClick","handleProviderLoginClick","_component_TextSeparator","_hoisted_4","_component_EmailField","ref","onEnterKey","loginProcedure","$data","loading","_component_ButtonCustom","onClick","_component_StInput","value","email","onInput","_cache","$event","onValidate","validate","handleEnter","components","StInput","foucusField","Boolean","emits","computed","set","this","setEmail","get","$store","getters","getEmail","mounted","focusInput","EventBus","$on","methods","dispatch","_this$$refs$email","validateEmail","$refs","handleValidation","undefined","$emit","clickHandler","arguments","logoName","style","_normalizeStyle","logoStyle","buttonLabel","providerId","defineEmits","setup","iconPath","getCustomIconStyle","useCustomIcon","loginWithAuthProvider","baseUrl","redirectUrl","provider","encodedRedirectUrl","encodeURIComponent","url","localStorage","setItem","window","location","href","electronLoginWithAuthProvider","redirectToElectronFn","authStateParam","nanoid","base","queryParams","browserStorageSetItem","useProviderLogin","store","useStore","useIsElectronApp","user","getUser","origin","redirectRoute","getRedirectRouteAfterLogin","redirectPath","Object","keys","fullPath","async","browserStorageRemoveItem","logOut","logIn","loggedOutGoogleAccountKey","loggedOutAppleAccountKey","electron","send","vueAppEnv","process","constants","desktopRedirectRoutes","getRoutes","users","SmallLogo","EmailField","ButtonCustom","ProviderLoginButton","TextSeparator","mixins","loginMixin","providerLogIn","data","rememberMe","appleLogoName","getTheme","getProviderLoginButtonLabel","beforeCreate","$route","params","team_subdomain","created","loggedOutGoogleAccount","browserStorageGetItem","loggedOutAppleAccount","addEventListener","scrollToBtm","loggingInDifferentEmailKey","login","setRedirectRouteAfterLogin","unmounted","removeEventListener","loginFormEmail","$router","push","path","getTeamSlug","route","getRouteAfterLogin","then","catch","error","toggleRememberMe","focusEmail","LoginForm","ElectronInvisibleHeader","preloadAppResources","electronHelpersMixin","$nextTick","onPageLoad","width","height","src","getImgPath","imgName","alt","theme","image","require","isUpdateEmailPopup","onSendLoginCode","_hoisted_5","_hoisted_6","inputs","maxlength","placeholder","verifyEmail","_hoisted_7","showErrorMessage","_component_ErrorMessage","_hoisted_8","_hoisted_9","backStep","disabled","onboardingErrorMessage","ErrorMessage","customIconsMixin","newEmail","isLoginCodeResent","getShowUpdateEmailPopup","defaultTabName","getDefaultTabName","popupMessageNotEmpty","getPopUpMessage","completeEmailCode","resetInput","displayUiNotification","message","status","$constants","uiNotificationStatuses","code","err","response","tryFetchingUser","team_id","invitation_code","e","_e$response","silentLogin","setTimeout","resend","codeinput","focus","Number","displayButton","linkTitle","resendCode","goToLogin","inviteId","showButton","storeQueryString","query","invite_id","link_code","project_id","errMsg","onload","projectPages","createFontElement","className","element","document","createElement","innerHTML","body","appendChild","_ref","setUser","localCurrentTeamId","getItem","teamIndex","teams","findIndex","t","trusted","routeNames","onboardingInfo","clearPostLoginState","redirectTeam","find","sub_domain","setTeam","getPendingInvities","team","currentProjectId","pending_invites","workspaces","container","querySelector","scrollTop","scrollHeight","_component_VerifyEmailCodeForm","VerifyEmailCodeForm"],"sourceRoot":""}