{"version":3,"sources":["webpack:///./src/views/Ads/attrs/mounted.js","webpack:///./src/views/Ads/attrs/data.js","webpack:///./src/views/Ads/Index.vue?b0ac","webpack:///./src/views/Ads/attrs/methods.js","webpack:///./src/views/Ads/Index.vue?a2ee","webpack:///./src/views/Ads/index.js","webpack:///./src/views/Ads","webpack:///./src/views/Ads/Index.vue"],"names":["this","loadProducts","$route","params","tripId","products","render","_vm","_h","$createElement","_c","_self","_v","_l","product","staticClass","attrs","_s","name","domProps","description","staticRenderFns","self","api","getApiClient","$store","commit","get","then","response","data","catch","finally","methods","mounted","component"],"mappings":"kHAAA,OAAe,wBACbA,KAAKC,eAEDD,KAAKE,OAAOC,OAAOC,SACrBJ,KAAKI,OAASJ,KAAKE,OAAOC,OAAOC,U,kCCJrC,OAAe,wBACb,MAAO,CACLC,SAAU,GACVD,OAAQ,Q,oCCHZ,kGAAIE,EAAS,WAAa,IAAIC,EAAIP,KAASQ,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACA,EAAG,YAAY,CAACA,EAAG,KAAK,CAACH,EAAIK,GAAG,iBAAiBF,EAAG,MAAMA,EAAG,OAAOH,EAAIM,GAAIN,EAAY,UAAE,SAASO,GAAS,OAAOJ,EAAG,OAAO,CAACK,YAAY,OAAOC,MAAM,CAAC,IAAM,KAAK,GAAK,IAAI,GAAK,MAAM,CAACN,EAAG,QAAQ,CAACK,YAAY,SAAS,CAACL,EAAG,cAAc,CAACK,YAAY,iBAAiBC,MAAM,CAAC,MAAQ,SAAS,CAACT,EAAIK,GAAGL,EAAIU,GAAGH,EAAQI,SAASR,EAAG,YAAY,CAACA,EAAG,MAAM,CAACS,SAAS,CAAC,UAAYZ,EAAIU,GAAGH,EAAQM,kBAAkBV,EAAG,cAAc,CAACA,EAAG,UAAU,CAACM,MAAM,CAAC,KAAQ,eAAkBF,EAAU,GAAI,KAAOP,EAAIH,OAASG,EAAIH,OAAS,IAAK,MAAQ,OAAO,MAAQ,KAAK,CAACM,EAAG,QAAQ,CAACM,MAAM,CAAC,KAAO,aAAaT,EAAIK,GAAG,gBAAgB,IAAI,IAAI,IAAI,MAAK,IAAI,IAAI,IACnuBS,EAAkB,I,kCCDtB,uBAEe,cACbpB,aAAc,WACZ,IAAMqB,EAAOtB,KACXuB,EAAMC,qBAAaF,EAAKG,QAE1BH,EAAKG,OAAOC,OAAO,gBACnBH,EAAII,IAAI,kBACLC,MAAK,SAAAC,GACJP,EAAKjB,SAAWwB,EAASC,KAAK,mBAE/BC,OAAM,eACNC,SAAQ,WACPV,EAAKG,OAAOC,OAAO,qB,kCCd3B,yG,kCCAA,+CAIe,cACbR,KAAM,MACNY,kBACAG,qBACAC,uB,kCCRF,wGAAkL,2B,kCCAlL,oIAOIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MAIa,aAAAA,E","file":"js/chunk-789a9d7c.983fb71d.js","sourcesContent":["export default function () {\n this.loadProducts()\n\n if (this.$route.params.tripId) {\n this.tripId = this.$route.params.tripId\n }\n}\n","export default function () {\n return {\n products: [],\n tripId: null\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardBody',[_c('h1',[_vm._v(\"Impulsionar\")]),_c('hr'),_c('CRow',_vm._l((_vm.products),function(product){return _c('CCol',{staticClass:\"mb-2\",attrs:{\"col\":\"12\",\"md\":\"6\",\"lg\":\"3\"}},[_c('CCard',{staticClass:\"h-100\"},[_c('CCardHeader',{staticClass:\"text-uppercase\",attrs:{\"color\":\"info\"}},[_vm._v(_vm._s(product.name))]),_c('CCardBody',[_c('div',{domProps:{\"innerHTML\":_vm._s(product.description)}})]),_c('CCardFooter',[_c('CButton',{attrs:{\"href\":(\"/#/purchase/\" + (product.id) + \"/\" + (_vm.tripId ? _vm.tripId : '')),\"color\":\"info\",\"block\":\"\"}},[_c('CIcon',{attrs:{\"name\":\"cilCart\"}}),_vm._v(\" Contratar \")],1)],1)],1)],1)}),1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import getApiClient from '@/plugins/api'\n\nexport default {\n loadProducts: function() {\n const self = this,\n api = getApiClient(self.$store)\n\n self.$store.commit('startLoading')\n api.get('boost_products')\n .then(response => {\n self.products = response.data['hydra:member']\n })\n .catch(() => {})\n .finally(() => {\n self.$store.commit('stopLoading')\n })\n }\n}\n","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"4727515f-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=b875d1a8&\"","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'Ads',\n data,\n methods,\n mounted\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/babel-loader/lib/index.js!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=b875d1a8&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?vue&type=script&lang=js&\"\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":""}