{"version":3,"sources":["webpack:///./src/views/OfferManagement/OfferManagement.vue","webpack:///src/views/OfferManagement/OfferManagement.vue","webpack:///./src/views/OfferManagement/OfferManagement.vue?999a","webpack:///./src/views/OfferManagement/OfferManagement.vue?5ca6"],"names":["render","_vm","this","_c","_self","attrs","_v","_s","uniTranslation","directives","name","rawName","value","fromAddToOffer","expression","on","createNewOffer","setActiveOffer","staticClass","items","$event","showSearchPanel","model","offerNumberToSearch","callback","$$v","offerDescriptionToSearch","companyNameToSearch","attentionToSearch","_e","itemsFiltered","fields","selectOffer","scopedSlots","_u","key","fn","row","item","pubblica","rowEditOffer","rowDeleteOffer","deleteOffer","showDelete","delete_to_offer","showOfferActivated","staticRenderFns","data","offerToDelete","ricordaIdSelectedOffer","label","sortable","computed","isAdmin","$store","getters","isLoggedUserAdmin","isUnilab","isLoggedUserUnilab","watch","newVal","oldVal","String","trim","filterItems","mounted","readOffers","props","type","Boolean","default","methods","commit","offerta","id","$emit","e","offerDescription","offerNumber","that","offerteservice","then","retCode","getUserOffers","$router","push","params","idOfferta","filter","x","bAdd","companyName","attention","toLowerCase","includes","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,UAAU,QAAQ,UAAU,WAAW,CAACF,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACF,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,eAAe,eAAeL,EAAG,QAAQ,CAACA,EAAG,WAAW,CAACM,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,OAAQX,EAAIY,eAAgBC,WAAW,oBAAoBT,MAAM,CAAC,QAAU,WAAWU,GAAG,CAAC,MAAQd,EAAIe,iBAAiB,CAACf,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,eAAe,YAAYP,EAAIK,GAAG,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EAAAX,cAAAW,EAAAX,YAAA,KAEAW,EAAAZ,mBAAAY,EAAAZ,iBAAA,KAEAa,GAAAX,EAAApD,sBACA+D,EACAA,GAAAD,EAAAE,YAAAE,cAAAC,SAAAf,EAAApD,oBAAAkE,gBAEAH,GAAAX,EAAAnD,oBACA8D,KAAAD,EAAAG,UAAAC,cAAAC,SAAAf,EAAAnD,kBAAAiE,gBAEAH,GAAAX,EAAAxD,sBACAmE,KAAAD,EAAAX,YAAAe,cAAAC,SAAAf,EAAAxD,oBAAAsE,gBAEAH,GAAAX,EAAArD,2BACAgE,KAAAD,EAAAZ,iBAAAgB,cAAAC,SAAAf,EAAArD,yBAAAmE,gBAEAH,KA1BAX,EAAAjD,cAAAiD,EAAA5D,SClQwW,I,YCOpW4E,EAAY,eACd,EACA/F,EACA8C,GACA,EACA,KACA,KACA,MAIa,aAAAiD,E","file":"js/chunk-2d22c2f3.d3c3b0c6.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('b-container',{attrs:{\"fluid\":\"\"}},[_c('b-row',{attrs:{\"align-h\":\"start\",\"align-v\":\"center\"}},[_c('b-col',[_c('h2',[_vm._v(_vm._s(_vm.uniTranslation(\"GON94\")))])]),_c('b-col',[_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.fromAddToOffer),expression:\"!fromAddToOffer\"}],attrs:{\"variant\":\"success\"},on:{\"click\":_vm.createNewOffer}},[_vm._v(_vm._s(_vm.uniTranslation(\"GO61\")))]),_vm._v(\" \\n \"),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.fromAddToOffer),expression:\"!fromAddToOffer\"}],attrs:{\"variant\":\"success\"},on:{\"click\":_vm.setActiveOffer}},[_vm._v(_vm._s(_vm.uniTranslation(\"GON104\")))]),_vm._v(\" \\n \"),_c('download-csv',{staticClass:\"btn btn-success\",attrs:{\"data\":_vm.items,\"name\":\"export.csv\",\"separator-excel\":\"\"}},[_vm._v(_vm._s(_vm.uniTranslation(\"GON95\")))]),_vm._v(\" \\n \"),_c('b-button',{attrs:{\"variant\":\"success\"},on:{\"click\":function($event){_vm.showSearchPanel = !_vm.showSearchPanel}}},[_vm._v(_vm._s(_vm.uniTranslation(\"GON96\")))])],1)],1),(_vm.showSearchPanel)?_c('div',[_c('b-row',[_c('div',{staticClass:\"col-12\"},[_c('hr')])]),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('h3',[_vm._v(_vm._s(_vm.uniTranslation(\"GCN36\")))])]),_c('b-col',[_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label\":_vm.uniTranslation('GO032'),\"label-for\":\"txtOfferNumber\"}},[_c('b-form-input',{attrs:{\"id\":\"txtOfferNumber\"},model:{value:(_vm.offerNumberToSearch),callback:function ($$v) {_vm.offerNumberToSearch=$$v},expression:\"offerNumberToSearch\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label\":_vm.uniTranslation('GO034'),\"label-for\":\"txtOfferDescriptionT\"}},[_c('b-form-input',{attrs:{\"id\":\"txtOfferDescriptionT\"},model:{value:(_vm.offerDescriptionToSearch),callback:function ($$v) {_vm.offerDescriptionToSearch=$$v},expression:\"offerDescriptionToSearch\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label\":_vm.uniTranslation('PHE611'),\"label-for\":\"txtCompanyname\"}},[_c('b-form-input',{attrs:{\"id\":\"txtCompanyname\"},model:{value:(_vm.companyNameToSearch),callback:function ($$v) {_vm.companyNameToSearch=$$v},expression:\"companyNameToSearch\"}})],1),_c('b-form-group',{attrs:{\"label-cols\":\"4\",\"label-cols-lg\":\"2\",\"label\":_vm.uniTranslation('S1102'),\"label-for\":\"txtAttention\"}},[_c('b-form-input',{attrs:{\"id\":\"txtAttention\"},model:{value:(_vm.attentionToSearch),callback:function ($$v) {_vm.attentionToSearch=$$v},expression:\"attentionToSearch\"}})],1)],1)],1)],1):_vm._e(),_c('b-row',[_c('div',{staticClass:\"col-12\"},[_c('hr')])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('b-table',{attrs:{\"striped\":\"\",\"hover\":\"\",\"items\":_vm.itemsFiltered,\"fields\":_vm.fields,\"small\":true,\"sticky-header\":true},on:{\"row-clicked\":_vm.selectOffer},scopedSlots:_vm._u([{key:\"pubblica\",fn:function(row){return [(row.item.pubblica)?_c('i',{staticClass:\"fa fa-check\"}):_vm._e(),(!row.item.pubblica)?_c('i',{}):_vm._e()]}},{key:\"edit\",fn:function(row){return [_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.fromAddToOffer),expression:\"!fromAddToOffer\"}],staticClass:\"fa fa-pencil\",attrs:{\"size\":\"sm\"},on:{\"click\":function($event){return _vm.rowEditOffer(row.item)}}})]}},{key:\"delete\",fn:function(row){return [_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.fromAddToOffer),expression:\"!fromAddToOffer\"}],staticClass:\"fa fa-trash\",attrs:{\"size\":\"sm\"},on:{\"click\":function($event){return _vm.rowDeleteOffer(row.item)}}})]}}])})],1)]),_c('b-modal',{attrs:{\"title\":_vm.uniTranslation('GCN39')},on:{\"ok\":_vm.deleteOffer},model:{value:(_vm.showDelete),callback:function ($$v) {_vm.showDelete=$$v},expression:\"showDelete\"}},[_c('p',{staticClass:\"my-4\"},[_vm._v(_vm._s(_vm.uniTranslation(\"GCN40\"))+\" \"+_vm._s(_vm.delete_to_offer)+\" ?\")])]),_c('b-modal',{attrs:{\"title\":_vm.uniTranslation('GCN39')},on:{\"ok\":_vm.deleteOffer},model:{value:(_vm.showDelete),callback:function ($$v) {_vm.showDelete=$$v},expression:\"showDelete\"}},[_c('p',{staticClass:\"my-4\"},[_vm._v(_vm._s(_vm.uniTranslation(\"GCN40\"))+\" \"+_vm._s(_vm.delete_to_offer)+\" ?\")])]),_c('b-modal',{attrs:{\"hide-footer\":\"\"},model:{value:(_vm.showOfferActivated),callback:function ($$v) {_vm.showOfferActivated=$$v},expression:\"showOfferActivated\"}},[_c('div',{staticClass:\"d-block text-center\"},[_c('h3',[_vm._v(_vm._s(_vm.uniTranslation(\"GON105\")))])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfferManagement.vue?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!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfferManagement.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OfferManagement.vue?vue&type=template&id=0b2a4554&\"\nimport script from \"./OfferManagement.vue?vue&type=script&lang=js&\"\nexport * from \"./OfferManagement.vue?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":""}