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AAS,EAAM,CAAC,E","sources":["webpack://ad_lite_mobile/./src/pages/home.vue?2602","webpack://ad_lite_mobile/./src/assets/images/tiktok-ads-black.svg","webpack://ad_lite_mobile/./src/pages/home.vue?c861","webpack://ad_lite_mobile/./src/pages/home.vue?558e","webpack://ad_lite_mobile/./src/pages/home.vue?b895","webpack://ad_lite_mobile/./src/pages/home.vue","webpack://ad_lite_mobile/./src/pages/home.vue?363c"],"sourcesContent":["// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../../.eden-mono/temp/node_modules/.pnpm/css-loader@6.7.1_webpack@5.74.0/node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../.eden-mono/temp/node_modules/.pnpm/css-loader@6.7.1_webpack@5.74.0/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"@keyframes fadeUp-data-v-4baf450e{0%{top:20px;opacity:0}100%{top:0;opacity:1}}#home[data-v-4baf450e]{overflow:auto;display:flex;flex-direction:column;justify-content:space-between;height:100vh;background:#fff}#home .home-header[data-v-4baf450e]{padding:48px 16px 24px}#home .title[data-v-4baf450e]{font-weight:500;font-size:16px;margin-top:8px}#home .content[data-v-4baf450e]{flex-grow:1}#home .content .byted-search[data-v-4baf450e]{overflow:auto;padding:0;margin-top:28px;margin-bottom:8px}#home .content .byted-search__icon[data-v-4baf450e]{width:24px;height:100%}#home[data-v-4baf450e] .account-list{height:initial}#home .logout[data-v-4baf450e]{padding:0 16px 40px}#home .line[data-v-4baf450e]::after{box-shadow:0px 1px 0px #eee}#home .user-mobile-logo img[data-v-4baf450e]{width:191px}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/pages/home.vue\"],\"names\":[],\"mappings\":\"AAAA,kCAAkC,GAAG,QAAQ,CAAC,SAAS,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC,uBAAuB,aAAa,CAAC,YAAY,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,YAAY,CAAC,eAAe,CAAC,oCAAoC,sBAAsB,CAAC,8BAA8B,eAAe,CAAC,cAAc,CAAC,cAAc,CAAC,gCAAgC,WAAW,CAAC,8CAA8C,aAAa,CAAC,SAAS,CAAC,eAAe,CAAC,iBAAiB,CAAC,oDAAoD,UAAU,CAAC,WAAW,CAAC,sCAAsC,cAAc,CAAC,+BAA+B,mBAAmB,CAAC,oCAAoC,2BAA2B,CAAC,6CAA6C,WAAW\",\"sourcesContent\":[\"@keyframes fadeUp-data-v-4baf450e{0%{top:20px;opacity:0}100%{top:0;opacity:1}}#home[data-v-4baf450e]{overflow:auto;display:flex;flex-direction:column;justify-content:space-between;height:100vh;background:#fff}#home .home-header[data-v-4baf450e]{padding:48px 16px 24px}#home .title[data-v-4baf450e]{font-weight:500;font-size:16px;margin-top:8px}#home .content[data-v-4baf450e]{flex-grow:1}#home .content .byted-search[data-v-4baf450e]{overflow:auto;padding:0;margin-top:28px;margin-bottom:8px}#home .content .byted-search__icon[data-v-4baf450e]{width:24px;height:100%}#home[data-v-4baf450e] .account-list{height:initial}#home .logout[data-v-4baf450e]{padding:0 16px 40px}#home .line[data-v-4baf450e]::after{box-shadow:0px 1px 0px #eee}#home .user-mobile-logo img[data-v-4baf450e]{width:191px}\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","module.exports = __webpack_public_path__ + \"static/images/4d606712.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.accountSelectVisible)?_c('div',{attrs:{\"id\":\"home\"}},[_c('section',{staticClass:\"home-header\"},[_c('div',{staticClass:\"user-mobile-logo user-content-section is-mobile\"},[_c('a',{attrs:{\"href\":_vm.xss.filterUrl(\"/wap/home\", null, { logType: \"js.href/src\", reportOnly: false})}},[_c('img',{attrs:{\"src\":_vm.xss.filterUrl(_vm.logoPath, null, { logType: \"js.href/src\", reportOnly: false})}})])]),_vm._v(\" \"),_c('p',{staticClass:\"title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('common_select_account'))+\"\\n \")])]),_vm._v(\" \"),_c('section',{staticClass:\"content\"},[_c('account-list',{on:{\"account-change\":_vm.changeAccount}})],1),_vm._v(\" \"),_c('section',{staticClass:\"logout\"},[_c('byted-button',{staticClass:\"logout-btn\",staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.logout()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('common_logout'))+\"\\n \")])],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component } from 'vue-property-decorator';\nimport store from './../store/index';\nimport logoPath from '@/assets/images/tiktok-ads-black.svg';\nimport { isLogin, isAdAccountSync, logout, liteForbidden } from './../utils/authUtil';\nimport { State, Getter, Action } from 'vuex-class';\nimport AccountList from '@/components/account-list.vue';\nimport { canVisitAdvertiser } from './../utils/authUtil';\nimport { accountRole, accountStatus } from './../const/state/account';\nimport accountState from './../store/state/account/index';\n\n// accountList接口返回的数据类型\ninterface IAccountItem {\n status: string;\n name: string;\n id: string;\n role: string;\n child: any[];\n email: string;\n}\n\ntype IAccountList = IAccountItem[];\n\n@Component({\n components: {\n AccountList,\n },\n})\nexport default class Home extends Vue {\n accountSelectVisible = false;\n logoPath = logoPath;\n logout = logout;\n\n @State('billingABTest') billingABTest: boolean;\n @State(state => state.account.coreUserInfo)\n coreUserInfo: any;\n\n @State(state => state.account.allAccountList)\n allAccountList: IAccountList;\n\n @Getter('account/accountInfo') accountInfo: any;\n @Getter('account/noneAccount') noneAccount: boolean;\n @Getter('account/singleAccount') singleAccount: boolean;\n @Getter('account/newSelf') newSelf: boolean;\n\n @Action('account/loadAccountInfo') loadAccountInfo: any;\n @Action('qualification/initQualificationForm') initQualificationForm: any;\n\n get isLogin(): boolean {\n return isLogin();\n }\n\n async beforeRouteEnter(to: any, from: any, next: any): Promise {\n await store.dispatch('account/loadAccountList');\n next();\n }\n\n created(): Promise {\n /**\n * 首页根据登录用户情况进行处理\n * 1. 如果未登录,直接跳转signup\n * 2. 如果没有 Ad Account 但是有 BM,跳出选择页供用户选择\n * 3. 如果只有一个 Ad Account,跳到该 Ad Account 上面\n * 4. 如果有多个 Ad Account,跳出 Ad Account 选择框\n */\n if (!this.isLogin) {\n this.$router.push({ name: 'signup' });\n return;\n }\n\n const coreUserInfo = this.coreUserInfo.core_user;\n const { aadvid = '' } = this.$route.query;\n if (coreUserInfo && Object.keys(coreUserInfo).length > 0) {\n if (aadvid) {\n this.entryLite(aadvid);\n return;\n }\n if (this.noneAccount) {\n // non account\n const { query } = this.$route;\n this.$router.push({ name: 'register', query });\n } else if (this.singleAccount) {\n // single account\n this.entryLite(this.allAccountList[0].id, this.allAccountList[0].promoteStatus);\n } else {\n // multi account\n this.accountSelectVisible = true;\n }\n }\n }\n\n // 进入移动端lite\n async entryLite(aadvid: string | number, promoteStatus?: number): Promise {\n this.$globalLoading.show();\n try {\n await this.loadAccountInfo({\n aadvid,\n });\n accountState.mutations.setAccountInfoStatus(true);\n } catch (e) {\n this.$toast(this.$t('fastcreation_media_upload_fail'));\n }\n const { status, role } = this.accountInfo;\n const canVisit = canVisitAdvertiser();\n if (!canVisit) {\n if (role === accountRole.ROLE_PRE_PROMOTE) {\n let getCurrentPromoteStatus = promoteStatus;\n if (!promoteStatus) {\n ({ data: { status: getCurrentPromoteStatus } } = await store.dispatch('account/getPromoteUpgradeStatus', { aadvid }));\n }\n if (getCurrentPromoteStatus === 2) {\n console.info(`%c promote 用户升级进行中`, 'color:blue;');\n this.$router.push({ name: 'upgrade', query: { aadvid: aadvid as string }})\n return;\n }\n }\n this.$globalLoading.hide();\n this.showToPcAlert();\n return;\n } else if (role === accountRole.ROLE_PROMOTE && status === accountStatus.STATUS_CONFIRM_FAIL) {\n this.$router.push({ name: 'account-pending', query: { aadvid: aadvid as string }})\n return;\n }\n if (liteForbidden(status) || !isAdAccountSync(this.accountInfo)) {\n this.$globalLoading.hide();\n this.showToPcAlert();\n return;\n }\n if (!this.newSelf) {\n this.$router.push({\n name: 'perf-dashboard-detail',\n query: { aadvid, is_from_login: '1' },\n });\n return;\n }\n // 自助用户且没有创建过ads需要去创编/资质补全\n this.$router.push({ name: 'objective', query: { aadvid, is_from_login: '1' } });\n }\n\n showToPcAlert(): void {\n this.$toast(this.$t('common_account_hint'));\n this.accountSelectVisible = true;\n }\n\n async changeAccount(id: string): Promise {\n await this.entryLite(id);\n }\n}\n","import mod from \"-!../../../../../.eden-mono/temp/node_modules/.pnpm/ts-loader@9.4.1_typescript@4.6.4+webpack@5.74.0/node_modules/ts-loader/index.js??clonedRuleSet-2[0].rules[0].use[0]!../../../../../.eden-mono/temp/node_modules/.pnpm/@byted+paths-resolve-loader@0.2.0/node_modules/@byted/paths-resolve-loader/dist/index.js??ruleSet[1].rules[2].use[1]!../../../../../.eden-mono/temp/node_modules/.pnpm/vue-loader@15.9.8_0932247f44a9d1df17d411c64f0999d0/node_modules/vue-loader/lib/index.js??vue-loader-options!./home.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../.eden-mono/temp/node_modules/.pnpm/ts-loader@9.4.1_typescript@4.6.4+webpack@5.74.0/node_modules/ts-loader/index.js??clonedRuleSet-2[0].rules[0].use[0]!../../../../../.eden-mono/temp/node_modules/.pnpm/@byted+paths-resolve-loader@0.2.0/node_modules/@byted/paths-resolve-loader/dist/index.js??ruleSet[1].rules[2].use[1]!../../../../../.eden-mono/temp/node_modules/.pnpm/vue-loader@15.9.8_0932247f44a9d1df17d411c64f0999d0/node_modules/vue-loader/lib/index.js??vue-loader-options!./home.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./home.vue?vue&type=template&id=4baf450e&scoped=true&\"\nimport script from \"./home.vue?vue&type=script&lang=ts&\"\nexport * from \"./home.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./home.vue?vue&type=style&index=0&id=4baf450e&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../.eden-mono/temp/node_modules/.pnpm/vue-loader@15.9.8_0932247f44a9d1df17d411c64f0999d0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4baf450e\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a