{"version":3,"sources":["webpack:///./src/services/SiteService.js","webpack:///./src/views/client-views/offers/offersComponent.vue?4c6f","webpack:///./src/views/client-views/offers/offersComponent.js","webpack:///./src/views/client-views/offers/offersComponent.js?646c","webpack:///./src/views/client-views/offers/offersComponent.vue"],"names":["siteServiceObj","getProoOffers","axios","get","getOrdersCount","postMessage","message","post","getPaymentUrl","data","setAccountToOrder","issuePolicy","errorHandle","getMyOrders","siteService","render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","offer","key","id","attrs","getRouteByCode","class","getImageByCode","domProps","_s","Title","IsActive","_e","_v","Description","staticRenderFns","name","components","props","offers","created","then","response","console","log","computed","methods","Prop","Code","CASCO","CMR","ROTr","path","component"],"mappings":"kHAAA,sCAAIA,EAAiB,CACjBC,cADiB,WAEb,OAAOC,MAAMC,IAAI,qBAGrBC,eALiB,WAMb,OAAOF,MAAMC,IAAI,0BAGrBE,YATiB,SASLC,GACR,OAAOJ,MAAMK,KAAK,uBAAwBD,IAG9CE,cAbiB,SAaHC,GACV,OAAOP,MAAMK,KAAK,yBAA0BE,IAEhDC,kBAhBiB,SAgBCD,GACd,OAAOP,MAAMK,KAAK,6BAA8BE,IAEpDE,YAnBiB,SAmBLF,GAER,OAAOP,MAAMK,KAAK,wBAAyBE,EAAM,CAAEG,aAAa,KAGpEC,YAxBiB,WA0Bb,OAAOX,MAAMC,IAAI,wBAGZW,EAAcd,G,yCC7B3B,IAAIe,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAaN,EAAIO,GAAIP,EAAU,QAAE,SAASQ,GAAO,OAAOJ,EAAG,MAAM,CAACK,IAAID,EAAME,GAAGJ,YAAY,6BAA6B,CAACF,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,cAAc,CAACO,MAAM,CAAC,GAAKX,EAAIY,eAAeJ,KAAS,CAACJ,EAAG,MAAM,CAACE,YAAY,iBAAiBO,MAAMb,EAAIc,eAAeN,IAAQ,CAACJ,EAAG,MAAM,CAACE,YAAY,sBAAsBS,SAAS,CAAC,UAAYf,EAAIgB,GAAGR,EAAMS,UAAYT,EAAMU,SAAoElB,EAAImB,KAA9Df,EAAG,MAAM,CAACE,YAAY,wCAAkDE,EAAc,SAAEJ,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACN,EAAIoB,GAAG,sBAAsBpB,EAAIgB,GAAGR,EAAMa,aAAa,oBAAoBrB,EAAImB,KAAOX,EAAMU,SAAqIlB,EAAImB,KAA/Hf,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACN,EAAIoB,GAAG,oEAA6E,QAAO,IACh4BE,EAAkB,G,YCCP,GACXC,KAAM,SAENC,WAAY,GAEZC,MAAO,GAEPhC,KAAM,WACF,MAAO,CACHiC,OAAQ,KAGhBC,QAZW,WAYD,WACN7B,OAAYb,gBAAgB2C,MAAK,SAAAC,GAC7B,EAAKH,OAASG,EAASpC,KACvBqC,QAAQC,IAAI,EAAKL,YAIzBM,SAAU,GAEVC,QAAS,CACLnB,eADK,SACUN,GACX,MAAO,CACH0B,KAAqB,SAAf1B,EAAM2B,KACZC,MAAsB,UAAf5B,EAAM2B,KACbE,IAAoB,QAAf7B,EAAM2B,KACXG,KAAqB,SAAf9B,EAAM2B,OAIpBvB,eAVK,SAUUJ,GACX,OAAQA,EAAM2B,MACV,IAAK,OACD,MAAO,CAAEI,KAAM,uBACnB,IAAK,QACD,MAAO,CAAEA,KAAM,uBACnB,IAAK,MACD,MAAO,CAAEA,KAAM,aACnB,IAAK,OACD,MAAO,CAAEA,KAAM,aACnB,QACI,MAAO,CAAEA,KAAM,iBC5CkN,I,YCOjPC,EAAY,eACd,EACAzC,EACAuB,GACA,EACA,KACA,KACA,MAIa,aAAAkB,E","file":"js/chunk-5cbc1369.fd48813b.js","sourcesContent":["var siteServiceObj = {\r\n getProoOffers() {\r\n return axios.get(\"/api/Site/Offers\");\r\n },\r\n\r\n getOrdersCount() {\r\n return axios.get(\"/api/Site/OrdersCount\");\r\n },\r\n\r\n postMessage(message) {\r\n return axios.post(\"api/Site/SendMessage\", message);\r\n },\r\n\r\n getPaymentUrl(data) {\r\n return axios.post(\"api/Site/GetPaymentUrl\", data);\r\n },\r\n setAccountToOrder(data) {\r\n return axios.post(\"api/Site/SetAccountToOrder\", data);\r\n },\r\n issuePolicy(data) {\r\n //\r\n return axios.post(\"/api/Site/IssuePolicy\", data, { errorHandle: true });\r\n },\r\n\r\n getMyOrders() {\r\n //\r\n return axios.get(\"/api/Site/MyOrders\");\r\n }\r\n};\r\nexport const siteService = siteServiceObj;\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"TT-offers\"},_vm._l((_vm.offers),function(offer){return _c('div',{key:offer.id,staticClass:\"TT-offers__card_container\"},[_c('div',{staticClass:\"TT-offers__card \"},[_c('router-link',{attrs:{\"to\":_vm.getRouteByCode(offer)}},[_c('div',{staticClass:\"TT-offers__img\",class:_vm.getImageByCode(offer)},[_c('div',{staticClass:\"TT-offers__text-img\",domProps:{\"innerHTML\":_vm._s(offer.Title)}}),(!offer.IsActive)?_c('div',{staticClass:\"TT-offers__img-unavailable_grey\"}):_vm._e()])]),(offer.IsActive)?_c('div',{staticClass:\"TT-offers__description\"},[_vm._v(\"\\n *\"+_vm._s(offer.Description)+\"\\n \")]):_vm._e(),(!offer.IsActive)?_c('div',{staticClass:\"TT-offers__description\"},[_vm._v(\"\\n Ofertă disponibilă în curând!\\n \")]):_vm._e()],1)])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { siteService } from \"../../../services/SiteService\";\r\n\r\nexport default {\r\n name: \"Offers\",\r\n\r\n components: {},\r\n\r\n props: {},\r\n\r\n data: () => {\r\n return {\r\n offers: []\r\n };\r\n },\r\n created() {\r\n siteService.getProoOffers().then(response => {\r\n this.offers = response.data;\r\n console.log(this.offers);\r\n });\r\n },\r\n\r\n computed: {},\r\n\r\n methods: {\r\n getImageByCode(offer) {\r\n return {\r\n Prop: offer.Code === \"Prop\",\r\n CASCO: offer.Code === \"CASCO\",\r\n CMR: offer.Code === \"CMR\",\r\n ROTr: offer.Code === \"ROTr\"\r\n };\r\n },\r\n\r\n getRouteByCode(offer) {\r\n switch (offer.Code) {\r\n case \"Prop\":\r\n return { path: \"/order/add/2?step=0\" };\r\n case \"CASCO\":\r\n return { path: \"/order/add/3?step=0\" };\r\n case \"CMR\":\r\n return { path: \"/#contact\" };\r\n case \"ROTr\":\r\n return { path: \"/#contact\" };\r\n default:\r\n return { path: \"/#contact\" };\r\n }\r\n }\r\n }\r\n};\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!./offersComponent.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!./offersComponent.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./offersComponent.vue?vue&type=template&id=91afd532&\"\nimport script from \"./offersComponent.js?vue&type=script&lang=js&\"\nexport * from \"./offersComponent.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":""}