FitTrackee/fittrackee/dist/static/js/profile.d25975e2.js.map
2021-11-29 11:23:26 +01:00

1 line
7.3 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/user/ProfileView.vue","webpack:///./src/views/user/ProfileView.vue?6e93","webpack:///./src/views/user/UserView.vue?3b82","webpack:///./src/views/user/ProfileView.vue?f3d4","webpack:///./src/views/user/UserView.vue","webpack:///./src/views/user/UserView.vue?abfb"],"names":["n","_hoisted_1","key","id","class","_hoisted_2","setup","__props","store","useStore","authUser","getters","GETTERS","AUTH_USER_PROFILE","_ctx","_cache","_component_router_view","username","user","__exports__","route","USER","params","dispatch","ACTIONS","GET_USER","EMPTY_USER","UserHeader","UserInfos"],"mappings":"0JAGM,EAAe,SAAAA,GAAC,OAAK,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CACjBC,IAAK,EACLC,GAAI,UACJC,MAAO,kBAEHC,EAA2B,GAAa,kBAAmB,gCAAoB,MAAO,CAAEF,GAAI,UAAY,MAAO,MASzF,+BAAiB,CAC3CG,MAD2C,SACrCC,GAEN,IAAMC,EAAQ,OAAAC,EAAA,QAERC,EAAsC,uBAC1C,kBAAMF,EAAMG,QAAQ,OAAgBC,QAAQC,sBAGhD,OAAO,SAACC,EAAUC,GAChB,IAAMC,EAAyB,8BAAkB,eAEjD,OAAQ,mBAAON,GAAUO,UACpB,yBAAc,gCAAoB,MAAOhB,EAAY,CACpD,yBAAae,EAAwB,CAAEE,KAAM,mBAAOR,IAAa,KAAM,EAAG,CAAC,SAC3EL,KAEF,gCAAoB,IAAI,O,iCC7B9B,MAAMc,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB,oCCRf,W,kCCAA,W,4ICIMlB,EAAa,CACjBC,IAAK,EACLC,GAAI,OACJC,MAAO,QAEHC,EAAa,CAAED,MAAO,OAYA,+BAAiB,CAC3CE,MAD2C,SACrCC,GAEN,IAAMa,EAAQ,iBACRZ,EAAQ,OAAAC,EAAA,QAERS,EAAkC,uBACtC,kBAAMV,EAAMG,QAAQ,OAAYC,QAAQS,SAa5C,OAVE,4BAAc,WACRD,EAAME,OAAOL,UAA6C,kBAA1BG,EAAME,OAAOL,UAC/CT,EAAMe,SAAS,OAAYC,QAAQC,SAAUL,EAAME,OAAOL,aAI9D,8BAAgB,WACdT,EAAMe,SAAS,OAAYC,QAAQE,eAGhC,SAACZ,EAAUC,GAChB,OAAQ,mBAAOG,GAAMD,UAChB,yBAAc,gCAAoB,MAAOhB,EAAY,CACpD,yBAAa0B,EAAA,KAAY,CAAET,KAAM,mBAAOA,IAAS,KAAM,EAAG,CAAC,SAC3D,gCAAoB,MAAOb,EAAY,CACrC,yBAAauB,EAAA,KAAW,CACtBV,KAAM,mBAAOA,GACb,cAAc,GACb,KAAM,EAAG,CAAC,cAGjB,gCAAoB,IAAI,O,iCC9C9B,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB","file":"static/js/profile.d25975e2.js","sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-163d82f7\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n id: \"profile\",\n class: \"container view\"\n}\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { id: \"bottom\" }, null, -1))\n\nimport { ComputedRef, computed } from 'vue'\n\n import { AUTH_USER_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n \nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\n const store = useStore()\n\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[AUTH_USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_unref(authUser).username)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_router_view, { user: _unref(authUser) }, null, 8, [\"user\"]),\n _hoisted_2\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./ProfileView.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ProfileView.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./ProfileView.vue?vue&type=style&index=0&id=163d82f7&lang=scss&scoped=true\"\n\nimport exportComponent from \"/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-163d82f7\"]])\n\nexport default __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-v16/dist/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-v16/dist/index.js??ref--1-1!./UserView.vue?vue&type=style&index=0&id=10e7b479&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-v16/dist/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-v16/dist/index.js??ref--1-1!./ProfileView.vue?vue&type=style&index=0&id=163d82f7&lang=scss&scoped=true\"","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-10e7b479\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n id: \"user\",\n class: \"view\"\n}\nconst _hoisted_2 = { class: \"box\" }\n\nimport { ComputedRef, computed, onBeforeMount, onBeforeUnmount } from 'vue'\n import { useRoute } from 'vue-router'\n\n import UserHeader from '@/components/User/ProfileDisplay/UserHeader.vue'\n import UserInfos from '@/components/User/ProfileDisplay/UserInfos.vue'\n import { USERS_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n \nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\n const route = useRoute()\n const store = useStore()\n\n const user: ComputedRef<IUserProfile> = computed(\n () => store.getters[USERS_STORE.GETTERS.USER]\n )\n\n onBeforeMount(() => {\n if (route.params.username && typeof route.params.username === 'string') {\n store.dispatch(USERS_STORE.ACTIONS.GET_USER, route.params.username)\n }\n })\n\n onBeforeUnmount(() => {\n store.dispatch(USERS_STORE.ACTIONS.EMPTY_USER)\n })\n\nreturn (_ctx: any,_cache: any) => {\n return (_unref(user).username)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(UserHeader, { user: _unref(user) }, null, 8, [\"user\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(UserInfos, {\n user: _unref(user),\n \"from-admin\": true\n }, null, 8, [\"user\"])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./UserView.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./UserView.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./UserView.vue?vue&type=style&index=0&id=10e7b479&lang=scss&scoped=true\"\n\nimport exportComponent from \"/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-10e7b479\"]])\n\nexport default __exports__"],"sourceRoot":""}