{"version":3,"sources":["webpack:///./src/views/Auth/helpers/checkReferral.ts","webpack:///./src/components/LocaleSwitcher.vue?d4db","webpack:///./node_modules/element-ui/src/mixins/migrating.js","webpack:///./node_modules/element-ui/packages/dialog/src/component.vue","webpack:///node_modules/element-ui/packages/dialog/src/component.vue","webpack:///./node_modules/element-ui/packages/dialog/src/component.vue?7b65","webpack:///./node_modules/element-ui/packages/dialog/src/component.vue?0b5b","webpack:///./node_modules/element-ui/packages/dialog/index.js","webpack:///./src/plugins/element-ui/ElDialog/index.js","webpack:///./src/views/Auth/index.vue","webpack:///./src/views/Auth/helpers/setRegistrationParams.ts","webpack:///./src/views/Auth/templates/AuthLogin.vue","webpack:///./src/views/Auth/components/AuthInfo.vue","webpack:///./src/views/Auth/router/routes.ts","webpack:///./src/views/Auth/router/index.ts","webpack:///src/views/Auth/components/AuthInfo.vue","webpack:///./src/views/Auth/components/AuthInfo.vue?b892","webpack:///./src/views/Auth/components/AuthInfo.vue?4612","webpack:///src/views/Auth/templates/AuthLogin.vue","webpack:///./src/views/Auth/templates/AuthLogin.vue?d590","webpack:///./src/views/Auth/templates/AuthLogin.vue?9f13","webpack:///src/views/Auth/index.vue","webpack:///./src/views/Auth/index.vue?0717","webpack:///./src/views/Auth/index.vue?7903","webpack:///./src/views/Auth/templates/AuthLogin.vue?c04e","webpack:///./src/components/LocaleSwitcher.vue?bbb9","webpack:///./src/views/Auth/index.vue?40bd","webpack:///./src/views/Auth/components/AuthInfo.vue?b277","webpack:///./node_modules/element-ui/src/mixins/emitter.js","webpack:///./src/components/LocaleSwitcher.vue","webpack:///./src/components/LocaleSwitcher.vue?1eb8","webpack:///./src/components/LocaleSwitcher.vue?e656","webpack:///./src/components/LocaleSwitcher.vue?6b21"],"names":["REFERRAL","checkExpired","referral","createdAt","week","passedTime","Date","getTime","removeToken","localStorage","removeItem","setReferral","value","partnerId","setItem","JSON","stringify","Object","assign","getReferral","referralStr","getItem","parse","token","methods","props","events","render","_vm","this","_c","_self","attrs","on","afterEnter","afterLeave","directives","name","rawName","visible","expression","staticClass","$event","target","currentTarget","handleWrapperClick","apply","arguments","key","ref","class","fullscreen","center","customClass","style","title","_t","_v","_s","showClose","handleClose","_e","rendered","$slots","footer","staticRenderFns","mixins","Popup","emitter","Migrating","type","String","default","modal","Boolean","modalAppendToBody","appendToBody","lockScroll","closeOnClickModal","closeOnPressEscape","width","top","beforeClose","Function","destroyOnClose","data","closed","watch","val","$emit","$el","addEventListener","updatePopper","$nextTick","$refs","dialog","scrollTop","document","body","appendChild","removeEventListener","computed","marginTop","getMigratingConfig","hide","cancel","broadcast","mounted","open","destroyed","parentNode","removeChild","component","ElDialog","install","Vue","Dialog","query","params","keys","forEach","includes","showAbout","$t","locale","phrases","terms","privacy","help","partnerLogin","domProps","info","block1","linkHref","linkText","dialogVisible","block2","block3","path","redirect","meta","template","children","router","createRouter","routes","components","TextLink","_ref","$rootLocale","error","_ref2","$route","LocaleSwitcher","UplifyLogo","AuthInfo","test","$locale","_ref3","AuthLogin","setRegistrationParams","checkReferralToken","checkStreamerFilling","Promise","resolve","setTimeout","length","checkReferral","utm_campaign","$router","push","$store","isNotFilled","state","auth","user","getters","isNotSettings","replace","componentName","eventName","$children","child","$options","concat","parent","$parent","$root","call","_setup","_setupProxy","ElSelect","i18nLocale","scopedSlots","_u","fn","proxy","model","callback","$$v","_l","locales","item","ElOption","id","_defineComponent","__name","setup","__props","useRootLocale","vm","get","$i18n","set","$setElementUILocale","dispatch","setLocale","checkLocale","userLocale","localeId","__awaiter","onMounted","deep","__sfc"],"mappings":"kHAKA,wCAAMA,EAAW,WAEXC,EAAgBC,IACpB,MAAM,UAAEC,GAAcD,EAChBE,EAAO,OACPC,GAAa,IAAIC,MAAOC,UAAYJ,EAE1C,OAAOE,EAAaD,GAGhBI,EAAcA,KAClBC,aAAaC,WAAWV,IAGpBW,EAAcA,CAACC,EAAeC,KAClCJ,aAAaK,QAAQd,EAAUe,KAAKC,UAASC,OAAAC,OAAC,CAC5Cf,W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BAAU,KACRX,QAAGI,oBAAoB1F,EAAOhH,OAC1BmK,EAAKnK,OACP6M,MAIJlI,mBAAMwF,EAAM,KACNA,EAAKnK,OACP6M,KAED,CAAEK,MAAM,IAEJ,CAAEC,OAAO,EAAK/B,aAAYjB,OAAM0B,UAAS7E,SAAQ6F,cAAaD,YAAWb,gBAAUZ,oBCnE0T,I,kCCShZ/E,EAAY,eACd,EACArF,EACAsC,GACA,EACA,KACA,WACA,MAIa,OAAA+C,E","file":"js/chunk-c604a932.39ca4b7b.js","sourcesContent":["interface Referral {\n createdAt: number\n value: string\n}\n\nconst REFERRAL = 'referral'\n\nconst checkExpired = (referral: Referral): boolean => {\n const { createdAt } = referral\n const week = 1000 * 60 * 60 * 24 * 7 // 7 days\n const passedTime = new Date().getTime() - createdAt\n\n return passedTime > week\n}\n\nconst removeToken = () => {\n localStorage.removeItem(REFERRAL)\n}\n\nconst setReferral = (value: string, partnerId: string) => {\n localStorage.setItem(REFERRAL, JSON.stringify({\n createdAt: new Date().getTime(),\n value,\n ...(partnerId ? { partnerId } : {}),\n }))\n}\n\nexport const getReferral = () => {\n const referralStr = localStorage.getItem(REFERRAL)\n if (!referralStr) return null\n\n const referral = JSON.parse(referralStr) as Referral\n if (checkExpired(referral)) {\n removeToken()\n return null\n }\n\n return referral\n}\n\nexport default (token: string, partnerId: string) => {\n const referral = getReferral()\n if (referral) return\n\n setReferral(token, partnerId)\n}\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LocaleSwitcher.vue?vue&type=style&index=1&id=4207066a&prod&lang=scss&scoped=true&\"","import { kebabCase } from 'element-ui/src/utils/util';\n/**\n * Show migrating guide in browser console.\n *\n * Usage:\n * import Migrating from 'element-ui/src/mixins/migrating';\n *\n * mixins: [Migrating]\n *\n * add getMigratingConfig method for your component.\n * getMigratingConfig() {\n * return {\n * props: {\n * 'allow-no-selection': 'allow-no-selection is removed.',\n * 'selection-mode': 'selection-mode is removed.'\n * },\n * events: {\n * selectionchange: 'selectionchange is renamed to selection-change.'\n * }\n * };\n * },\n */\nexport default {\n mounted() {\n if (process.env.NODE_ENV === 'production') return;\n if (!this.$vnode) return;\n const { props = {}, events = {} } = this.getMigratingConfig();\n const { data, componentOptions } = this.$vnode;\n const definedProps = data.attrs || {};\n const definedEvents = componentOptions.listeners || {};\n\n for (let propName in definedProps) {\n propName = kebabCase(propName); // compatible with camel case\n if (props[propName]) {\n console.warn(`[Element Migrating][${this.$options.name}][Attribute]: ${props[propName]}`);\n }\n }\n\n for (let eventName in definedEvents) {\n eventName = kebabCase(eventName); // compatible with camel case\n if (events[eventName]) {\n console.warn(`[Element Migrating][${this.$options.name}][Event]: ${events[eventName]}`);\n }\n }\n },\n methods: {\n getMigratingConfig() {\n return {\n props: {},\n events: {}\n };\n }\n }\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{\"name\":\"dialog-fade\"},on:{\"after-enter\":_vm.afterEnter,\"after-leave\":_vm.afterLeave}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.visible),expression:\"visible\"}],staticClass:\"el-dialog__wrapper\",on:{\"click\":function($event){if($event.target !== $event.currentTarget)return null;return _vm.handleWrapperClick.apply(null, arguments)}}},[_c('div',{key:_vm.key,ref:\"dialog\",class:['el-dialog', { 'is-fullscreen': _vm.fullscreen, 'el-dialog--center': _vm.center }, _vm.customClass],style:(_vm.style),attrs:{\"role\":\"dialog\",\"aria-modal\":\"true\",\"aria-label\":_vm.title || 'dialog'}},[_c('div',{staticClass:\"el-dialog__header\"},[_vm._t(\"title\",function(){return [_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.title))])]}),(_vm.showClose)?_c('button',{staticClass:\"el-dialog__headerbtn\",attrs:{\"type\":\"button\",\"aria-label\":\"Close\"},on:{\"click\":_vm.handleClose}},[_c('i',{staticClass:\"el-dialog__close el-icon el-icon-close\"})]):_vm._e()],2),(_vm.rendered)?_c('div',{staticClass:\"el-dialog__body\"},[_vm._t(\"default\")],2):_vm._e(),(_vm.$slots.footer)?_c('div',{staticClass:\"el-dialog__footer\"},[_vm._t(\"footer\")],2):_vm._e()])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--13-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--1-0!../../../../vue-loader/lib/index.js??vue-loader-options!./component.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--13-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--1-0!../../../../vue-loader/lib/index.js??vue-loader-options!./component.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./component.vue?vue&type=template&id=0e1c79c5&\"\nimport script from \"./component.vue?vue&type=script&lang=js&\"\nexport * from \"./component.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ElDialog from './src/component';\n\n/* istanbul ignore next */\nElDialog.install = function(Vue) {\n Vue.component(ElDialog.name, ElDialog);\n};\n\nexport default ElDialog;\n","import 'element/css/dialog.scss'\n\nimport Dialog from 'element-ui/packages/dialog'\n\nexport default Dialog\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AuthLogin')\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Route } from \"vue-router\"\n\ninterface Query {\n [propName: string]: string\n}\n\nexport default (query: Route['query']): void => {\n let params = {} as Route['query']\n\n // if (typeof query === 'string') {\n // params = query\n // }\n\n Object.keys(query).forEach(key => {\n if (key === 'promo') {\n params[key] = query[key]\n }\n\n if (key.includes('utm_')) {\n params[key] = query[key]\n }\n\n localStorage.setItem('registration-params', JSON.stringify(params))\n })\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"auth\"},[_c('div',{staticClass:\"auth__side auth__content\"},[_c('div',{staticClass:\"auth__logo\"},[_c('UplifyLogo')],1),_c('div',{staticClass:\"auth__inner\"},[_c('router-view')],1),_c('div',{staticClass:\"auth__footer text-s-regular\"},[_c('LocaleSwitcher'),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAbout),expression:\"showAbout\"}],staticClass:\"auth__footer-links\"},[_c('a',{attrs:{\"href\":_vm.$t('links.terms')}},[_vm._v(_vm._s(_vm.locale.phrases.terms))]),_c('a',{attrs:{\"href\":_vm.$t('links.privacy')}},[_vm._v(_vm._s(_vm.locale.phrases.privacy))]),_c('a',{attrs:{\"href\":_vm.$t('links.discord')}},[_vm._v(_vm._s(_vm.locale.phrases.help))])]),_c('router-link',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAbout),expression:\"showAbout\"}],staticClass:\"auth__partner-link\",attrs:{\"to\":{name: 'auth-partner-signin'}}},[_vm._v(\" \"+_vm._s(_vm.locale.partnerLogin)+\" \")])],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showAbout),expression:\"showAbout\"}],staticClass:\"auth__side\"},[_c('AuthInfo')],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"auth-info\"},[_c('div',{staticClass:\"auth-info__wrap\"},[_c('div',{staticClass:\"auth-info__block _1\"},[_c('h2',{domProps:{\"innerHTML\":_vm._s(_vm.locale.info.block1.title)}}),_c('TextLink',{attrs:{\"href\":_vm.locale.info.block1.linkHref,\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(_vm.locale.info.block1.linkText)+\" \")]),_c('button',{staticClass:\"auth-info__video-trigger\",on:{\"click\":function($event){_vm.dialogVisible = true}}},[_c('SvgIcon',{staticClass:\"auth-info__play-btn\",attrs:{\"name\":\"circle-video-btn\"}})],1)],1),_c('div',{staticClass:\"auth-info__block _2\"},[_c('h2',{domProps:{\"innerHTML\":_vm._s(_vm.locale.info.block2.title)}}),_c('TextLink',{attrs:{\"href\":_vm.locale.info.block2.linkHref,\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(_vm.locale.info.block2.linkText)+\" \")])],1),_c('div',{staticClass:\"auth-info__block _3\"},[_c('h2',{domProps:{\"innerHTML\":_vm._s(_vm.locale.info.block3.title)}}),_c('TextLink',{attrs:{\"href\":_vm.locale.info.block3.linkHref,\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(_vm.locale.info.block3.linkText)+\" \")])],1)]),_c('ElDialog',{attrs:{\"visible\":_vm.dialogVisible},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('div',{staticClass:\"auth-info__video\"},[(_vm.dialogVisible)?_c('iframe',{attrs:{\"src\":\"https://www.youtube-nocookie.com/embed/YwVVjHJ_Ii0?rel=0&controls=0&showinfo=0&autoplay=1&modestbranding=1&version=3&hl=en_US&autohide=1\",\"title\":\"YouTube video player\",\"frameborder\":\"0\",\"allow\":\"accelerometer; autoplay; gyroscope\",\"allowfullscreen\":\"\"}}):_vm._e()])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default [\n {\n path: '/',\n redirect: { name: 'auth' },\n },\n {\n path: '/ref/:token',\n name: 'referral-token',\n component: () => import('views/Auth/AuthStreamer.vue'),\n meta: { locale: 'streamerSignin', title: 'Creator Log In - Uplify' },\n },\n {\n path: '/partner/ref/:token',\n name: 'partner-referral-token',\n component: () => import('views/Auth/AuthStreamer.vue'),\n meta: { locale: 'streamerSignin', title: 'Creator Log In - Uplify' },\n },\n {\n path: '/auth',\n name: 'auth',\n redirect: { name: 'auth-streamer' },\n component: { template: '' },\n children: [\n {\n path: 'streamer',\n name: 'auth-streamer',\n component: () => import('views/Auth/AuthStreamer.vue'),\n meta: { locale: 'streamerSignin', title: 'Creator Log In - Uplify' },\n },\n {\n path: 'streamer/settings',\n name: 'auth-streamer-settings',\n component: () => import('views/Auth/AuthStreamerSettings.vue'),\n meta: { locale: 'streamerSettings', title: 'Creator Setup Log In - Uplify' },\n },\n\n {\n path: 'partner',\n name: 'auth-partner-signin',\n component: () => import('views/Auth/AuthPartnerSignin.vue'),\n meta: { locale: 'partnerSignin', title: 'Partner Log In - Uplify' },\n },\n {\n path: 'partner/request',\n name: 'auth-partner-request',\n component: () => import('views/Auth/AuthPartnerRequest.vue'),\n meta: { locale: 'partnerRequest', title: 'Partner Request - Uplify' },\n },\n\n {\n path: 'partner/password/restore',\n name: 'auth-reset-password',\n component: () => import('views/Auth/AuthResetPassword.vue'),\n meta: { locale: 'resetPassword', title: 'Password Recovery - Uplify' },\n },\n {\n path: 'partner/password/new',\n name: 'auth-new-password',\n component: () => import('views/Auth/AuthNewPassword.vue'),\n meta: { locale: 'newPassword', title: 'New Password - Uplify' },\n },\n ],\n },\n {\n path: '*',\n redirect: { name: 'auth' },\n },\n]\n","import createRouter from 'lib/helpers/createRouter'\nimport routes from 'Auth/router/routes'\n\nexport const router = createRouter(routes)\n","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthInfo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthInfo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AuthInfo.vue?vue&type=template&id=9fc6c448&scoped=true&\"\nimport script from \"./AuthInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./AuthInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AuthInfo.vue?vue&type=style&index=0&id=9fc6c448&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9fc6c448\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthLogin.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthLogin.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AuthLogin.vue?vue&type=template&id=69e182df&scoped=true&\"\nimport script from \"./AuthLogin.vue?vue&type=script&lang=js&\"\nexport * from \"./AuthLogin.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AuthLogin.vue?vue&type=style&index=0&id=69e182df&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"69e182df\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=185937ad&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=185937ad&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"185937ad\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthLogin.vue?vue&type=style&index=0&id=69e182df&prod&lang=scss&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LocaleSwitcher.vue?vue&type=style&index=0&id=4207066a&prod&lang=scss&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=185937ad&prod&lang=scss&scoped=true&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthInfo.vue?vue&type=style&index=0&id=9fc6c448&prod&lang=scss&scoped=true&\"","function broadcast(componentName, eventName, params) {\n this.$children.forEach(child => {\n var name = child.$options.componentName;\n\n if (name === componentName) {\n child.$emit.apply(child, [eventName].concat(params));\n } else {\n broadcast.apply(child, [componentName, eventName].concat([params]));\n }\n });\n}\nexport default {\n methods: {\n dispatch(componentName, eventName, params) {\n var parent = this.$parent || this.$root;\n var name = parent.$options.componentName;\n\n while (parent && (!name || name !== componentName)) {\n parent = parent.$parent;\n\n if (parent) {\n name = parent.$options.componentName;\n }\n }\n if (parent) {\n parent.$emit.apply(parent, [eventName].concat(params));\n }\n },\n broadcast(componentName, eventName, params) {\n broadcast.call(this, componentName, eventName, params);\n }\n }\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_setup.ElSelect,{staticClass:\"locale-switcher\",attrs:{\"popper-class\":\"locale-switcher-popper\",\"placeholder\":_setup.i18nLocale},scopedSlots:_vm._u([{key:\"prefix\",fn:function(){return [_c('SvgIcon',{staticClass:\"el-input__earth-icon\",attrs:{\"name\":\"earth\",\"width\":\"16\",\"height\":\"16\"}})]},proxy:true}]),model:{value:(_setup.locale),callback:function ($$v) {_setup.locale=$$v},expression:\"locale\"}},_vm._l((_setup.locales),function(item){return _c(_setup.ElOption,{key:item.id,attrs:{\"label\":item.title,\"value\":item.id}})}),1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { defineComponent as _defineComponent } from 'vue'\nimport ElOption from 'element/ElOption'\nimport ElSelect from 'element/ElSelect'\nimport { useRootLocale } from 'lib/helpers/useLocale'\nimport { LocaleIdType } from 'lib/types/locale'\nimport { computed, onMounted, watch, WritableComputedRef } from 'vue'\n\nimport { vm } from '@/main'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LocaleSwitcher',\n setup(__props) {\n\nconst i18nLocale = computed(() => useRootLocale('placeholder.translationLanguage'))\n\nconst user = computed(() => vm.$store.getters['auth/user'])\nconst locales = computed(() => vm.$store.getters['dictionaries/locales'])\nconst locale: WritableComputedRef = computed({\n get () {\n return vm.$root.$i18n.locale as LocaleIdType\n },\n async set (value: LocaleIdType) {\n vm.$root.$i18n.locale = value\n localStorage.setItem('locale', value)\n vm.$setElementUILocale(value)\n await vm.$store.dispatch('dictionaries/fetchDictionaries')\n\n if (user.value) {\n await setLocale(value)\n\n if (localStorage.getItem('uplify-user-role') === 'partner') {\n await vm.$store.dispatch('dictionaries/fetchCampaignDictionaries')\n }\n }\n },\n})\n\nconst checkLocale = () => {\n const userLocale = user.value.locale\n\n if (userLocale !== locale.value) {\n setLocale(userLocale)\n }\n}\n\nconst setLocale = async (localeId: LocaleIdType) => {\n if (locale.value !== localeId && vm.$store.getters['auth/isFilled']) {\n locale.value = localeId\n }\n\n await vm.$store.dispatch('auth/SET_LOCALE', { locale: locale.value })\n}\n\nonMounted(() => {\n vm.$setElementUILocale(locale.value)\n if (user.value) {\n checkLocale()\n }\n})\n\nwatch(user, () => {\n if (user.value) {\n checkLocale()\n }\n}, { deep: true })\n\nreturn { __sfc: true,i18nLocale, user, locales, locale, checkLocale, setLocale, ElOption, ElSelect }\n}\n\n})","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LocaleSwitcher.vue?vue&type=script&setup=true&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LocaleSwitcher.vue?vue&type=script&setup=true&lang=ts&\"","import { render, staticRenderFns } from \"./LocaleSwitcher.vue?vue&type=template&id=4207066a&scoped=true&\"\nimport script from \"./LocaleSwitcher.vue?vue&type=script&setup=true&lang=ts&\"\nexport * from \"./LocaleSwitcher.vue?vue&type=script&setup=true&lang=ts&\"\nimport style0 from \"./LocaleSwitcher.vue?vue&type=style&index=0&id=4207066a&prod&lang=scss&\"\nimport style1 from \"./LocaleSwitcher.vue?vue&type=style&index=1&id=4207066a&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4207066a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}