{"version":3,"sources":["webpack:///./src/views/sessions/components/SessionsToggle.vue?ba11","webpack:///./src/views/sessions/components/SessionsToggle.vue","webpack:///./src/views/sessions/components/SessionsToggle.vue?d4d4","webpack:///./src/views/sessions/components/SessionsToggle.vue?58d3","webpack:///./src/views/sessions/components/SessionsToggle.vue?d943"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","class","selectedTab","on","$event","changeTab","_v","_s","$t","staticRenderFns","SessionsToggle","path","$router","currentRoute","fullPath","endsWith","newPath","replace","push","index","isOtherUser","$emit","changeRoute","$route","Vue","__decorate","Prop","default","Watch","immediate","Component","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACF,EAAG,MAAM,CAACE,YAAY,mBAAmBC,MAAyB,GAAnBP,EAAIQ,YAAmB,OAAS,UAAUJ,EAAG,MAAM,CAACE,YAAY,OAAOC,MAAyB,GAAnBP,EAAIQ,YAC3Q,uBACA,8BAA8BC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,UAAU,MAAM,CAACP,EAAG,OAAO,CAACJ,EAAIY,GAAGZ,EAAIa,GAAGb,EAAIc,GAAG,uDAAuDV,EAAG,MAAM,CAACE,YAAY,OAAOC,MAAyB,GAAnBP,EAAIQ,YACrN,uBACA,8BAA8BC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,UAAU,MAAM,CAACP,EAAG,OAAO,CAACJ,EAAIY,GAAG,IAAIZ,EAAIa,GAAGb,EAAIc,GAAG,0DAA0D,YAC3LC,EAAkB,G,oHCiCDC,EAAc,wDAAnC,mBAGkB,OAHlB,uB,0BAGE,EAAAR,YAAc,EAAE,EAyBf,OACF,2CAzBC,WACE,IAAMS,EAAOhB,KAAKiB,QAAQC,aAAaC,SACvC,GAAyB,IAArBnB,KAAKO,aAAsBS,EAAKI,SAAS,aAGtC,GAAyB,IAArBpB,KAAKO,cAAsBS,EAAKI,SAAS,SAAU,CAC5D,IAAMC,EAAUL,EAAKM,QAAQ,WAAY,QACzCtB,KAAKiB,QAAQM,KAAKF,QALsC,CACxD,IAAMA,EAAUL,EAAKM,QAAQ,OAAQ,YACrCtB,KAAKiB,QAAQK,QAAQD,MAKxB,uBACD,SAAUG,GACRxB,KAAKO,YAAciB,EACdxB,KAAKyB,YACLzB,KAAK0B,MAAM,SAAUF,GADHxB,KAAK2B,gBAE7B,qBAGD,WACM3B,KAAK4B,OAAOZ,KAAKI,SAAS,QAASpB,KAAKU,UAAU,GAC7CV,KAAK4B,OAAOZ,KAAKI,SAAS,aAAapB,KAAKU,UAAU,KAChE,wBAED,WACEV,KAAK0B,MAAM,SAAU1B,KAAKO,iBAC3B,EA5BgC,CAASsB,cACVC,gBAA/BC,eAAK,CAAEC,QAAS,kBAAM,MAAQ,kCAoB/BF,gBADCG,eAAM,SAAU,CAAEC,WAAW,KAAO,4BAMrCJ,gBADCG,eAAM,cAAe,CAAEC,WAAW,KAAO,+BAzBvBnB,EAAc,gBADlCoB,QACoBpB,WCtCwZ,I,wBCQzaqB,EAAY,eACd,EACAtC,EACAgB,GACA,EACA,KACA,WACA,MAIa,aAAAsB,E,oECnBf","file":"assets/js/chunk-5e406758.ed1e7818.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"sessions-toggle lightgray2\"},[_c('div',{staticClass:\"selector primary\",class:_vm.selectedTab == 0 ? 'left' : 'right'}),_c('div',{staticClass:\"side\",class:_vm.selectedTab == 0\n ? 'selected other--text'\n : 'main--text font-weight-bold',on:{\"click\":function($event){return _vm.changeTab(0)}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"sessionsPage.sessionsListSection.sessionsList\")))])]),_c('div',{staticClass:\"side\",class:_vm.selectedTab == 1\n ? 'selected other--text'\n : 'main--text font-weight-bold',on:{\"click\":function($event){return _vm.changeTab(1)}}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t(\"sessionsPage.sessionsProgressSection.sessionsProgress\"))+\" \")])])])}\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\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Component, Prop, Watch } from \"vue-property-decorator\";\r\n\r\n@Component\r\nexport default class SessionsToggle extends Vue {\r\n @Prop({ default: () => false }) isOtherUser!: boolean;\r\n\r\n selectedTab = 0;\r\n changeRoute() {\r\n const path = this.$router.currentRoute.fullPath;\r\n if (this.selectedTab === 1 && !path.endsWith(\"progress\")) {\r\n const newPath = path.replace(\"list\", \"progress\");\r\n this.$router.replace(newPath);\r\n } else if (this.selectedTab === 0 && !path.endsWith(\"/list\")) {\r\n const newPath = path.replace(\"progress\", \"list\");\r\n this.$router.push(newPath);\r\n }\r\n }\r\n changeTab(index: number) {\r\n this.selectedTab = index;\r\n if (!this.isOtherUser) this.changeRoute();\r\n else this.$emit(\"change\", index);\r\n }\r\n\r\n @Watch(\"$route\", { immediate: true })\r\n loadTab() {\r\n if (this.$route.path.endsWith(\"list\")) this.changeTab(0);\r\n else if (this.$route.path.endsWith(\"progress\")) this.changeTab(1);\r\n }\r\n @Watch(\"selectedTab\", { immediate: true })\r\n tabChanged() {\r\n this.$emit(\"change\", this.selectedTab);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SessionsToggle.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SessionsToggle.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SessionsToggle.vue?vue&type=template&id=026a35d5&scoped=true&\"\nimport script from \"./SessionsToggle.vue?vue&type=script&lang=ts&\"\nexport * from \"./SessionsToggle.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SessionsToggle.vue?vue&type=style&index=0&id=026a35d5&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 \"026a35d5\",\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!./SessionsToggle.vue?vue&type=style&index=0&id=026a35d5&prod&lang=scss&scoped=true&\""],"sourceRoot":""}