{"version":3,"sources":["webpack:///./src/views/post/Detail.vue?b2ee","webpack:///./src/services/postService.js","webpack:///./src/views/post/Detail.vue","webpack:///src/views/post/Detail.vue","webpack:///./src/views/post/Detail.vue?a27b","webpack:///./src/views/post/Detail.vue?ec27"],"names":["postService","aliasUrl","httpHelper","get","data","render","_vm","this","_c","_self","staticClass","loading","error","attrs","errorMessage","on","$event","loadPost","label","$t","click","$router","push","name","_v","_s","post","title","game","getWebFileUrl","iconUrl","_e","toDateTimeString","createdAt","domProps","content","relatedPosts","length","_l","p","i","key","staticRenderFns","components","PostCard","created","methods","response","detail","$route","params","message","$setPageTitle","seo","component"],"mappings":"kHAAA,Y,oCCAA,gBAEA,MAAMA,EAAc,CAChB,aAAaC,GACT,aAAaC,OAAWC,IAAI,sBAAuB,CAACF,cAExD,WAAWG,GACP,aAAaF,OAAWC,IAAI,oBAAqBC,KAI1CJ,U,yDCXXK,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,QAAQ,CAACE,YAAY,QAAQ,CAAEJ,EAAIK,QAASH,EAAG,gBAAiBF,EAAIM,MAAOJ,EAAG,aAAa,CAACK,MAAM,CAAC,QAAUP,EAAIQ,cAAcC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,eAAgBX,EAAIQ,aAAcN,EAAG,gBAAgB,CAACK,MAAM,CAAC,QAAUP,EAAIQ,gBAAgBN,EAAG,MAAM,CAACA,EAAG,aAAa,CAACK,MAAM,CAAC,MAAQ,CAAC,CAACK,MAAOZ,EAAIa,GAAG,QAASC,MAAOA,IAAMd,EAAIe,QAAQC,KAAK,CAACC,KAAM,WAAY,CAACL,MAAOZ,EAAIa,GAAG,oBAAoBX,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACF,EAAIkB,GAAGlB,EAAImB,GAAGnB,EAAIoB,KAAKC,UAAUn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AAA5B,YAEA6B,QAAA,CACA,iBACA,KAAAnC,SAAA,EACA,KAAAC,OAAA,EACA,KAAAE,aAAA,KACA,MAAAiC,QAAA/C,OAAAgD,OAAA,KAAAC,OAAAC,OAAA,aAEA,GADA,KAAAvC,SAAA,GACAoC,EAGA,OAFA,KAAAnC,OAAA,OACA,KAAAE,aAAA,KAAAK,GAAA,oEAIA4B,EAAAnC,MACA,KAAAE,aAAAiC,EAAAI,SAIA,KAAAzB,KAAAqB,EAAA3C,KACA,KAAAgD,cAAA,KAAA1B,KAAA2B,IAAA1B,WC3E8V,I,wBCQ1V2B,EAAY,eACd,EACAjD,EACAqC,GACA,EACA,KACA,KACA,MAIa,aAAAY,E","file":"js/chunk-2b4fcaf2.a4593e57.js","sourcesContent":["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!./Detail.vue?vue&type=style&index=0&id=2a5fa591&prod&lang=scss\"","import httpHelper from \"@/helpers/httpHelper\";\n\nconst postService = {\n async detail(aliasUrl) {\n return await httpHelper.get(\"/WebApi/Post/Detail\", {aliasUrl});\n },\n async list(data) {\n return await httpHelper.get(\"/WebApi/Post/List\", data);\n }\n};\n\nexport default postService;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"page page-post-detail\"},[_c('b-col',{staticClass:\"py-3\"},[(_vm.loading)?_c('LoadingPanel'):(_vm.error)?_c('ErrorPanel',{attrs:{\"message\":_vm.errorMessage},on:{\"retry\":function($event){return _vm.loadPost()}}}):(_vm.errorMessage)?_c('NotFoundPanel',{attrs:{\"message\":_vm.errorMessage}}):_c('div',[_c('Breadcrumb',{attrs:{\"items\":[{label: _vm.$t('News'), click: () => _vm.$router.push({name: 'Posts'})}, {label: _vm.$t('Post detail')}]}}),_c('div',{staticClass:\"post-header\"},[_c('h1',[_vm._v(_vm._s(_vm.post.title))]),_c('div',{staticClass:\"post-info\"},[(_vm.post.game)?_c('span',{staticClass:\"post-game\"},[_c('img',{attrs:{\"src\":_vm.getWebFileUrl(_vm.post.game.iconUrl),\"alt\":_vm.post.game.name}}),_vm._v(\" \"+_vm._s(_vm.post.game.name)+\" | \")]):_vm._e(),_c('span',{staticClass:\"post-time\"},[_vm._v(_vm._s(_vm.toDateTimeString(_vm.post.createdAt)))])])]),_c('div',{staticClass:\"post-content\",domProps:{\"innerHTML\":_vm._s(_vm.post.content)}}),_c('b-row',{staticClass:\"mt-5 mb-4\"},[_c('div',{staticClass:\"w-100\"},[_c('hr')])]),(_vm.post.relatedPosts.length > 0)?_c('div',{staticClass:\"related-posts\"},[_c('div',{staticClass:\"header d-flex justify-content-between align-items-center\"},[_c('h3',[_vm._v(_vm._s(_vm.$t(\"Other posts\")))]),_c('a',{attrs:{\"href\":\"#\"}},[_vm._v(_vm._s(_vm.$t(\"View all\")))])]),_c('div',{staticClass:\"body\"},_vm._l((_vm.post.relatedPosts),function(p,i){return _c('PostCard',{key:i,attrs:{\"post\":p}})}),1)]):_vm._e()],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n \n \n \n
$router.push({name: 'Posts'})}, {label: $t('Post detail')}]\"/>\n \n\n \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--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Detail.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Detail.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Detail.vue?vue&type=template&id=2a5fa591\"\nimport script from \"./Detail.vue?vue&type=script&lang=js\"\nexport * from \"./Detail.vue?vue&type=script&lang=js\"\nimport style0 from \"./Detail.vue?vue&type=style&index=0&id=2a5fa591&prod&lang=scss\"\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"],"sourceRoot":""}