{"version":3,"sources":["webpack:///./src/views/Settings/Settings.vue?79f7","webpack:///./src/views/Settings/CommonSettings.vue?8483","webpack:///./src/services/locale.js","webpack:///src/views/Settings/CommonSettings.vue","webpack:///./src/views/Settings/CommonSettings.vue?c031","webpack:///./src/views/Settings/CommonSettings.vue","webpack:///src/views/Settings/Settings.vue","webpack:///./src/views/Settings/Settings.vue?8286","webpack:///./src/views/Settings/Settings.vue","webpack:///./src/services/profile.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticRenderFns","attrs","$t","staticClass","on","$event","beginEdit","_v","_s","edit","directives","name","rawName","value","expression","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","_l","locale","key","domProps","save","endEdit","_e","getBundle","axios","get","getSupportedLanguages","data","$i18n","locales","created","methods","$store","getters","localStorage","setItem","JSON","stringify","messages","$cookies","set","dispatch","document","title","profile","component","components","CommonSettings","fetch","put","setPassword","pwd","old_pwd","password","old_password","getApps","sessions","getSessionApps","sid","setUserLang","lang","savePhone","phone","removePhone","getLastLogins","query","headers"],"mappings":"+GAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,mBAAmB,IAC5HE,EAAkB,GCDlB,EAAS,WAAa,IAAIN,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,cAAc,CAACG,MAAM,CAAC,MAAQP,EAAIQ,GAAG,+BAA+B,CAACJ,EAAG,IAAI,CAACK,YAAY,mBAAmBF,MAAM,CAAC,aAAa,iBAAiB,CAAEP,EAAQ,KAAEI,EAAG,WAAW,CAACG,MAAM,CAAC,KAAO,gBAAgBH,EAAG,IAAI,CAACM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,eAAe,CAACZ,EAAIa,GA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MC,IAAN,qCAEdL,EAAO,SAACO,GAAD,OAAUH,IAAMyB,IAAN,2BAAsCtB,IAEvDuB,EAAc,SAACC,EAAKC,GAAN,OAAkB5B,IAAMyB,IAAN,wCAAmD,CAAEI,SAAUF,EAAKG,aAAcF,KAElHG,EAAU,kBAAM/B,IAAMC,IAAN,kCAEhB+B,EAAW,kBAAMhC,IAAMC,IAAN,sCAEjBgC,EAAiB,SAAAC,GAAG,OAAIlC,IAAMC,IAAN,oCAAuCiC,EAAvC,WAExBC,EAAc,SAACC,GAAD,OAAUpC,IAAMyB,IAAN,oCAA+C,CAAEW,KAAMA,KAE/EC,EAAY,SAACC,GAAD,OAAWtC,IAAMyB,IAAN,sCAAiD,CAAEa,MAAOA,KAEjFC,EAAc,kBAAMvC,IAAMyB,IAAN,0CAEpBe,EAAgB,SAAAC,GAAK,OAAIzC,IAAMC,IAAI,8BAA+B,CACpEyC,QAAS,kBACJ,UAAY9B,KAAKC,UAAU4B,OAIrB,QACbjB,QACA5B,OACA8B,cACAK,UACAC,WACAC,iBACAE,cACAE,YACAG,gBACAD","file":"js/apps.781dfa9c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('CommonSettings')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('card',[_c('card-header',{attrs:{\"title\":_vm.$t('settings.general_settings')}},[_c('p',{staticClass:\"card-header-icon\",attrs:{\"aria-label\":\"more options\"}},[(_vm.edit)?_c('mat-icon',{attrs:{\"icon\":\"mdi-pencil\"}}):_c('a',{on:{\"click\":function($event){return _vm.beginEdit()}}},[_vm._v(_vm._s(_vm.$t('editing.edit')))])],1)]),_c('card-content',[_c('form',[_c('fieldset',{attrs:{\"disabled\":!_vm.edit}},[_c('div',{staticClass:\"field\"},[_c('label',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('settings.lang')))]),_c('div',{staticClass:\"control\"},[_c('div',{staticClass:\"control has-icons-left\"},[_c('div',{staticClass:\"select\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selected),expression:\"selected\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selected=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.locales),function(locale,key){return _c('option',{key:key,domProps:{\"value\":key}},[_vm._v(_vm._s(locale))])}),0)]),_c('span',{staticClass:\"icon is-left\"},[_c('i',{staticClass:\"mdi mdi-web mdi-24px\"})])])])])])])]),(_vm.edit)?_c('card-footer',[_c('a',{staticClass:\"card-footer-item\",on:{\"click\":function($event){return _vm.save()}}},[_vm._v(_vm._s(_vm.$t('editing.save')))]),_c('a',{staticClass:\"card-footer-item\",on:{\"click\":function($event){return _vm.endEdit()}}},[_vm._v(_vm._s(_vm.$t('editing.cancel')))])]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import axios from \"axios\";\n\nconst getBundle = (locale) => axios.get(`/personal/api/v1/languages/${locale}`);\n\nconst getSupportedLanguages = () => axios.get(`/personal/api/v1/languages`);\n\nexport default {\n getBundle,\n getSupportedLanguages\n}","\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommonSettings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommonSettings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CommonSettings.vue?vue&type=template&id=0cf64e95&\"\nimport script from \"./CommonSettings.vue?vue&type=script&lang=js&\"\nexport * from \"./CommonSettings.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports","\n \n \n
\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Settings.vue?vue&type=template&id=ae5ca0b2&\"\nimport script from \"./Settings.vue?vue&type=script&lang=js&\"\nexport * from \"./Settings.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports","import axios from \"axios\";\n\nconst fetch = () => axios.get(`/personal/api/v1/profile/details`);\n\nconst save = (data) => axios.put(`/personal/api/v1/profile`, data);\n\nconst setPassword = (pwd, old_pwd) => axios.put(`/personal/api/v1/profile/set_password`, { password: pwd, old_password: old_pwd });\n\nconst getApps = () => axios.get(`/personal/api/v1/profile/apps`);\n\nconst sessions = () => axios.get(`/personal/api/v1/profile/sessions`);\n\nconst getSessionApps = sid => axios.get(`/personal/api/v1/sessions/${sid}/apps`);\n\nconst setUserLang = (lang) => axios.put(`/personal/api/v1/profile/set_lang`, { lang: lang });\n\nconst savePhone = (phone) => axios.put(`/personal/api/v1/profile/save_phone`, { phone: phone });\n\nconst removePhone = () => axios.put(`/personal/api/v1/profile/remove_phone`);\n\nconst getLastLogins = query => axios.get(\"/personal/api/v1/lastlogins\", {\n headers: {\n [\"X-Query\"]: JSON.stringify(query),\n }\n});\n\nexport default {\n fetch,\n save,\n setPassword,\n getApps,\n sessions,\n getSessionApps,\n setUserLang,\n savePhone,\n getLastLogins,\n removePhone\n};\n"],"sourceRoot":""}