FitTrackee/fittrackee/dist/static/js/profile.d25975e2.js.map

1 line
6.1 KiB
Plaintext
Raw Normal View History

2022-02-05 11:47:55 +01:00
{"version":3,"sources":["webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/views/user/ProfileView.vue","webpack:///./src/views/user/UserView.vue?3b82","webpack:///./src/views/user/ProfileView.vue?f3d4","webpack:///./src/views/user/UserView.vue"],"names":["_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","key","id","class","_hoisted_2","_createElementVNode","_defineComponent","setup","__props","store","useStore","authUser","computed","getters","AUTH_USER_STORE","GETTERS","AUTH_USER_PROFILE","_ctx","_cache","_component_router_view","_resolveComponent","_unref","username","_openBlock","_createElementBlock","_createVNode","user","_createCommentVNode","__exports__","route","useRoute","USERS_STORE","USER","onBeforeMount","params","dispatch","ACTIONS","GET_USER","onBeforeUnmount","EMPTY_USER","UserHeader","UserInfos"],"mappings":"0JAGMA,EAAe,SAAAC,GAAC,OAAKC,yBAAa,mBAAmBD,EAAEA,IAAIE,0BAAcF,GACzEG,EAAa,CACjBC,IAAK,EACLC,GAAI,UACJC,MAAO,kBAEHC,EAA2BR,GAAa,kBAAmBS,gCAAoB,MAAO,CAAEH,GAAI,UAAY,MAAO,MASzFI,+BAAiB,CAC3CC,MAD2C,SACrCC,GAEN,IAAMC,EAAQC,iBAERC,EAAsCC,uBAC1C,kBAAMH,EAAMI,QAAQC,OAAgBC,QAAQC,sBAGhD,OAAO,SAACC,EAAUC,GAChB,IAAMC,EAAyBC,8BAAkB,eAEjD,OAAQC,mBAAOV,GAAUW,UACpBC,yBAAcC,gCAAoB,MAAOxB,EAAY,CACpDyB,yBAAaN,EAAwB,CAAEO,KAAML,mBAAOV,IAAa,KAAM,EAAG,CAAC,SAC3EP,KAEFuB,gCAAoB,IAAI,O,iCC7B9B,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB,oCCRf,W,kCCAA,W,4IHIM5B,EAAa,CACjBC,IAAK,EACLC,GAAI,OACJC,MAAO,QAEHC,EAAa,CAAED,MAAO,OAYAG,+BAAiB,CAC3CC,MAD2C,SACrCC,GAEN,IAAMqB,EAAQC,iBACRrB,EAAQC,iBAERgB,EAAkCd,uBACtC,kBAAMH,EAAMI,QAAQkB,OAAYhB,QAAQiB,SAa5C,OAVEC,4BAAc,WACRJ,EAAMK,OAAOZ,UAA6C,kBAA1BO,EAAMK,OAAOZ,UAC/Cb,EAAM0B,SAASJ,OAAYK,QAAQC,SAAUR,EAAMK,OAAOZ,aAI9DgB,8BAAgB,WACd7B,EAAM0B,SAASJ,OAAYK,QAAQG,eAGhC,SAACtB,EAAUC,GAChB,OAAQG,mBAAOK,GAAMJ,UAChBC,yBAAcC,gCAAoB,MAAOxB,EAAY,CACpDyB,yBAAae,OAAY,CAAEd,KAAML,mBAAOK,IAAS,KAAM,EAAG,CAAC,SAC3DrB,gCAAoB,MAAOD,EAAY,CACrCqB,yBAAagB,OAAW,CACtBf,KAAML,mBAAOK,GACb,cAAc,GACb,KAAM,EAAG,CAAC,cAGjBC,gCAAoB,IAAI,O,iCI9C9B,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, 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 scri