{"version":3,"sources":["webpack:///./src/modules/news/views/NewsDetail.vue?5730","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/news/views/NewsDetail.vue?6fd4","webpack:///./src/modules/news/views/NewsDetail.vue","webpack:///./src/modules/news/views/NewsDetail.vue?5518","webpack:///./src/modules/news/views/NewsDetail.vue?d2eb"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","go_back","scopedSlots","_u","key","fn","_v","proxy","class","$style","title","_s","news_detail","staticClass","date","_f","published_date","on","copy_url","ref","_g","image_path","detail_text","domProps","handle_click_link","staticRenderFns","state","news_store","actions","mutations","NewsDetail","upd_stats_debounced","debounce","id","$route","params","send_stats_by_id","get_news_by_id","CLEAR_NEWS_DETAIL","name","News","Pages","NEWS","url","window","location","href","SET_TYPE_STATS","StatsType","SHARED_LINK","navigator","clipboard","writeText","console","error","event","FOLLOWING_LINK","preventDefault","target","closest","open","Vue","Component","components","PageTitle","BackBtn","injectStyles","context","locals","component","VBtn","VCol","VIcon","VRow","VTooltip","module","exports"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,MAAM,CAAC,MAAQN,EAAIO,SAASC,YAAYR,EAAIS,GAAG,CAAC,CAACC,IAAI,WAAWC,GAAG,WAAW,MAAO,CAACX,EAAIY,GAAG,yBAAyBC,OAAM,OAAUT,EAAG,MAAM,CAACU,MAAM,CAACd,EAAIe,OAAOC,MAAO,SAAS,CAAChB,EAAIY,GAAGZ,EAAIiB,GAAGjB,EAAIkB,YAAYF,UAAUZ,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,MAAM,CAACF,EAAG,MAAM,CAACe,YAAY,oCAAoCL,MAAMd,EAAIe,OAAOK,MAAM,CAAChB,EAAG,MAAM,CAACe,YAAY,uBAAuB,CAAC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AW7B,WACE,OAAOZ,EAAMd,cAZc,mBAe7B,WACE,MAAO,CAAE2B,KAAMC,UAAKC,MAAMC,QAhBC,+EAmB7B,2GACQC,EAAMC,OAAOC,SAASC,KAE5BjB,EAAUkB,eAAeC,QAAUC,aAHrC,kBAMUC,UAAUC,UAAUC,UAAUT,GANxC,OAOIhD,KAAKoC,sBAPT,mDASIsB,QAAQC,MAAR,MATJ,yDAnB6B,iJAgC7B,WAAwBC,GAAxB,uFAME,GALA1B,EAAUkB,eAAeC,QAAUQ,gBACnCD,EAAME,iBAEAC,EAAUH,EAAMG,OAAuBC,QAAQ,KAEjDD,EACF,IACE/D,KAAKoC,sBACLa,OAAOgB,KAAMF,EAA6BZ,KAAM,UAChD,MAAOQ,GACPD,QAAQC,MAAMA,GAXpB,gDAhC6B,+DAASO,QAAnB/B,EAAU,gBAN9BgC,eAAU,CACTC,WAAY,CACVC,iBACAC,mBAGiBnC,WCtEoZ,I,yGCQza,SAASoC,EAAcC,GAErBxE,KAAK,UAAa,aAAOyE,QAAU,aAMrC,IAAIC,EAAY,eACd,EACA5E,EACAgC,GACA,EACAyC,EACA,KACA,MAIa,aAAAG,EAAiB,QAShC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA,KAAKC,QAAA,KAAMC,OAAA,KAAKC,WAAA,Q,qBCnCnDC,EAAOC,QAAU,CAAC,gBAAgB,iCAAiC,UAAU,2BAA2B,UAAU,2BAA2B,MAAQ,yBAAyB,KAAO,wBAAwB,YAAc,iC,kCCD3N","file":"js/home762.ff0b0f80.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('BackBtn',{attrs:{\"go_to\":_vm.go_back},scopedSlots:_vm._u([{key:\"btn-text\",fn:function(){return [_vm._v(\" К списку новостей \")]},proxy:true}])}),_c('div',{class:[_vm.$style.title, 'mb-6']},[_vm._v(_vm._s(_vm.news_detail.title))]),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('div',{staticClass:\"d-flex justify-space-between mb-6\",class:_vm.$style.date},[_c('div',{staticClass:\"d-flex align-center\"},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\" mdi-calendar-blank-outline \")]),_c('div',[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.news_detail.published_date))+\" \")])],1),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.copy_url}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-share-variant-outline\")]),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({},on),[_vm._v(\"Поделиться\")])]}}])},[_c('span',[_vm._v(\"Нажмите, чтобы скопировать URL\")])])],1)],1),_c('img',{attrs:{\"src\":_vm.news_detail.image_path,\"width\":\"100%\",\"height\":\"auto\"}}),_c('div',{class:_vm.$style.detail_text,domProps:{\"innerHTML\":_vm._s(_vm.news_detail.detail_text)},on:{\"click\":_vm.handle_click_link}})])],1)],1)}\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport { PageTitle, BackBtn } from '@/components';\nimport { news_store } from '@/store';\nimport { News } from '@/modules/news/types';\nimport { debounce } from '@/utils';\nimport { StatsType } from '@/enums';\n\nconst { state, actions, mutations } = news_store;\n\n@Component({\n components: {\n PageTitle,\n BackBtn,\n },\n})\nexport default class NewsDetail extends Vue {\n async mounted() {\n const { id } = this.$route.params;\n\n await actions.get_news_by_id(id);\n }\n\n destroyed() {\n mutations.CLEAR_NEWS_DETAIL();\n }\n\n get news_detail() {\n return state.news_detail;\n }\n\n get go_back() {\n return { name: News.Pages.NEWS };\n }\n\n async copy_url() {\n const url = window.location.href;\n\n mutations.SET_TYPE_STATS(StatsType.SHARED_LINK);\n\n try {\n await navigator.clipboard.writeText(url);\n this.upd_stats_debounced();\n } catch (err) {\n console.error(err);\n }\n }\n\n async handle_click_link(event: MouseEvent) {\n mutations.SET_TYPE_STATS(StatsType.FOLLOWING_LINK);\n event.preventDefault();\n\n const target = (event.target as HTMLElement).closest('a');\n\n if (target) {\n try {\n this.upd_stats_debounced();\n window.open((target as HTMLAnchorElement).href, '_blank');\n } catch (error) {\n console.error(error);\n }\n }\n }\n\n upd_stats_debounced = debounce(async () => {\n const { id } = this.$route.params;\n\n await actions.send_stats_by_id(id);\n }, 1000);\n}\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!./NewsDetail.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!./NewsDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NewsDetail.vue?vue&type=template&id=d58584be&\"\nimport script from \"./NewsDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./NewsDetail.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./NewsDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\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 injectStyles,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCol,VIcon,VRow,VTooltip})\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"NewsDetail_v-application_38NC7\",\"text-h1\":\"NewsDetail_text-h1_3N0-m\",\"text-h2\":\"NewsDetail_text-h2_121fu\",\"title\":\"NewsDetail_title_3mic_\",\"date\":\"NewsDetail_date_11yRq\",\"detail_text\":\"NewsDetail_detail_text_1iS3I\"};","export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewsDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewsDetail.vue?vue&type=style&index=0&module=true&lang=scss&\""],"sourceRoot":""}