{"version":3,"sources":["webpack:///./src/views/DrugGroup.vue?23fc","webpack:///./src/views/DrugGroup.vue","webpack:///./src/views/DrugGroup.vue?11f2","webpack:///./src/views/DrugGroup.vue?65b7"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","directives","name","rawName","staticClass","_l","contentItem","key","contentItems","length","contentItemId","_v","staticRenderFns","extend","components","ContentItemSummary","metaInfo","link","rel","href","$route","path","props","String","data","isLoading","mounted","loadItems","methods","contentsClient","getDrugContentItemsByName","component","VCol","VContainer","VRow","VSkeletonLoader"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAAEN,EAAa,UAAEI,EAAG,QAAQ,CAACG,WAAW,CAAC,CAACC,KAAK,eAAeC,QAAQ,mBAAmBC,YAAY,OAAOJ,MAAM,CAAC,sBAAsB,MAAMN,EAAIW,GAAG,IAAK,SAASC,GAAa,OAAOR,EAAG,QAAQ,CAACS,IAAID,EAAYF,YAAY,OAAOJ,MAAM,CAAC,KAAO,KAAK,GAAK,IAAI,GAAK,IAAI,GAAK,MAAM,CAACF,EAAG,oBAAoB,CAACE,MAAM,CAAC,KAAO,YAAY,MAAK,GAAGF,EAAG,MAAM,CAA8B,IAA5BJ,EAAIc,aAAaC,OAAcX,EAAG,QAAQ,CAACG,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,cAAcC,YAAY,OAAOJ,MAAM,CAAC,GAAK,UAAU,sBAAsB,MAAMN,EAAIW,GAAIX,EAAgB,cAAE,SAASY,GAAa,OAAOR,EAAG,QAAQ,CAACS,IAAID,EAAYI,cAAcN,YAAY,OAAOJ,MAAM,CAAC,KAAO,KAAK,GAAK,IAAI,GAAK,IAAI,GAAK,MAAM,CAACF,EAAG,uBAAuB,CAACE,MAAM,CAAC,OAAS,OAAO,mBAAqBM,MAAgB,MAAK,GAAGR,EAAG,QAAQ,CAACM,YAAY,QAAQ,CAACN,EAAG,QAAQ,CAACM,YAAY,eAAe,CAACV,EAAIiB,GAAG,4BAA4B,IAAI,IAAI,IACz/BC,EAAkB,G,gFC0BP,eAAIC,OAAO,CACxBC,WAAY,CAAEC,qBAAA,MACdC,SAFwB,WAGtB,MAAO,CACLC,KAAM,CAAC,CAAEC,IAAK,YAAaC,KAAM,GAAF,OAAK,oBAAL,OAAoCxB,KAAKyB,OAAOC,UAInFC,MAAO,CACLpB,KAAMqB,QAGRC,KAZwB,WAatB,MAAO,CACLhB,aAAc,GACdiB,WAAW,IAITC,QAnBkB,WAmBX,+JACX,EAAKD,WAAY,EADN,SAEa,EAAKE,YAFlB,cAGX,EAAKF,WAAY,EAHN,8CAMbG,QAAS,CAKDD,UALC,WAKQ,qKACPE,EAAiB,IAAI,OADd,SAEaA,EAAeC,0BAA0B,EAAK5B,MAF3D,cAEb,EAAKM,aAFQ,yBAGN,EAAKA,aAAaC,QAHZ,iDCzDiX,I,iFCOhYsB,EAAY,eACd,EACAtC,EACAmB,GACA,EACA,KACA,WACA,MAIa,aAAAmB,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,aAAA,KAAWC,OAAA,KAAKC,kBAAA","file":"js/chunk-2d0aec6b.df77c5fd.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.isLoading)?_c('v-row',{directives:[{name:\"masonry-tile\",rawName:\"v-masonry-tile\"}],staticClass:\"ma-9\",attrs:{\"transition-duration\":\"0\"}},_vm._l((10),function(contentItem){return _c('v-col',{key:contentItem,staticClass:\"pa-5\",attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('v-skeleton-loader',{attrs:{\"type\":\"image\"}})],1)}),1):_c('div',[(_vm.contentItems.length !== 0)?_c('v-row',{directives:[{name:\"masonry\",rawName:\"v-masonry\"}],staticClass:\"ma-9\",attrs:{\"id\":\"masonry\",\"transition-duration\":\"0\"}},_vm._l((_vm.contentItems),function(contentItem){return _c('v-col',{key:contentItem.contentItemId,staticClass:\"pa-5\",attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('content-item-summary',{attrs:{\"height\":\"100%\",\"contentItemSummary\":contentItem}})],1)}),1):_c('v-row',{staticClass:\"pt-9\"},[_c('v-col',{staticClass:\"text-center\"},[_vm._v(\"No results were found\")])],1)],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\r\nimport { ContentItemSummaryResult, ContentsClient } from \"@/api/DoceoApi\";\r\nimport ContentItemSummary from \"@/components/contentItems/ContentItemSummary.vue\";\r\nimport Vue from \"vue\";\r\n\r\nexport default Vue.extend({\r\n components: { ContentItemSummary },\r\n metaInfo() {\r\n return {\r\n link: [{ rel: \"canonical\", href: `${process.env.VUE_APP_BASE_URL}${this.$route.path}` }],\r\n };\r\n },\r\n\r\n props: {\r\n name: String,\r\n },\r\n\r\n data() {\r\n return {\r\n contentItems: [] as ContentItemSummaryResult[],\r\n isLoading: false,\r\n };\r\n },\r\n\r\n async mounted() {\r\n this.isLoading = true;\r\n let itemsLoaded = await this.loadItems();\r\n this.isLoading = false;\r\n },\r\n\r\n methods: {\r\n /**\r\n * Loads drug results with the given name\r\n * Returns how many results were loaded\r\n */\r\n async loadItems(): Promise {\r\n const contentsClient = new ContentsClient();\r\n this.contentItems = await contentsClient.getDrugContentItemsByName(this.name);\r\n return this.contentItems.length;\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DrugGroup.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DrugGroup.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DrugGroup.vue?vue&type=template&id=3750ab8d&scoped=true&\"\nimport script from \"./DrugGroup.vue?vue&type=script&lang=ts&\"\nexport * from \"./DrugGroup.vue?vue&type=script&lang=ts&\"\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 \"3750ab8d\",\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSkeletonLoader } from 'vuetify/lib/components/VSkeletonLoader';\ninstallComponents(component, {VCol,VContainer,VRow,VSkeletonLoader})\n"],"sourceRoot":""}