{"version":3,"sources":["webpack:///./src/views/project/components/invite-2-bid/respond-to-invitation.vue?4fa9","webpack:///./src/views/project/components/invite-2-bid/respond-to-invitation.vue?b647","webpack:///src/views/project/components/invite-2-bid/respond-to-invitation.vue","webpack:///./src/views/project/components/invite-2-bid/respond-to-invitation.vue?dc23","webpack:///./src/views/project/components/invite-2-bid/respond-to-invitation.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","response","tradeType","ocaaNumber","title","staticRenderFns","name","data","isDataLoading","isSuccessful","mounted","id","status","component"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAAEJ,EAAiB,cAAEI,EAAG,MAAM,CAACE,YAAY,sBAAsBC,MAAM,CAAC,KAAO,UAAU,CAACP,EAAIQ,GAAG,8CAA8CJ,EAAG,MAAM,CAACE,YAAY,yBAAyBF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAAEN,EAAgB,aAAEI,EAAG,MAAM,CAACA,EAAG,IAAI,CAACJ,EAAIQ,GAAG,oEAAoEJ,EAAG,SAAS,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,SAASC,cAAcX,EAAIQ,GAAG,iBAAiBJ,EAAG,SAAS,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,SAASE,YAAY,IAAIZ,EAAIS,GAAGT,EAAIU,SAASG,UAAUb,EAAIQ,GAAG,yCAAyCJ,EAAG,cAAc,CAACE,YAAY,0CAA0CC,MAAM,CAAC,GAAK,SAAS,KAAO,WAAW,CAACH,EAAG,OAAO,CAACJ,EAAIQ,GAAG,cAAc,GAAGJ,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACN,EAAIQ,GAAG,+EAC11BM,EAAkB,G,YC+CtB,GACEC,KAAM,iBACNC,KAAM,WACJ,MAAO,CACLN,SAAU,GACVO,eAAe,EACfC,cAAc,IAGlBC,QATF,WASA,WACA,6BACA,iCAESC,GAAOC,EAKZ,EAAJ,8BACA,kBACM,EAAN,gBACM,EAAN,iBACM,EAAN,mBAEA,kBACM,EAAN,oBAXMpB,KAAKgB,eAAgB,IC9DiX,I,wBCQxYK,EAAY,eACd,EACAvB,EACAe,GACA,EACA,KACA,WACA,MAIa,aAAAQ,E","file":"js/chunk-1336298f.3039c635.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./respond-to-invitation.vue?vue&type=style&index=0&id=a838a588&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fragment',[(_vm.isDataLoading)?_c('div',{staticClass:\"alert alert-warning\",attrs:{\"role\":\"alert\"}},[_vm._v(\" Processing response - One moment please. \"),_c('div',{staticClass:\"ld ld-ring ld-spin\"})]):_c('div',{staticClass:\"mb-3 mb-md-5\"},[(_vm.isSuccessful)?_c('div',[_c('p',[_vm._v(\" Thank you for responding to the invitation to bid on providing \"),_c('strong',[_vm._v(_vm._s(_vm.response.tradeType))]),_vm._v(\" for Project \"),_c('strong',[_vm._v(_vm._s(_vm.response.ocaaNumber)+\" \"+_vm._s(_vm.response.title))]),_vm._v(\". Your response has been received. \")]),_c('router-link',{staticClass:\"btn btn-success invitation-response-btn\",attrs:{\"to\":\"/login\",\"role\":\"button\"}},[_c('span',[_vm._v(\"Login\")])])],1):_c('div',{staticClass:\"alert alert-danger\"},[_vm._v(\" Unable to process your response - please contact an administrator. \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <fragment>\r\n    <div class=\"alert alert-warning\" role=\"alert\" v-if=\"isDataLoading\">\r\n      Processing response - One moment please.\r\n      <div class=\"ld ld-ring ld-spin\"></div>\r\n    </div>\r\n    <div v-else class=\"mb-3 mb-md-5\">\r\n      <div v-if=\"isSuccessful\">\r\n        <p>\r\n          Thank you for responding to the invitation to bid on providing\r\n          <strong>{{response.tradeType}}</strong> for Project\r\n          <strong>{{response.ocaaNumber}} {{response.title}}</strong>. Your response has been received.\r\n        </p>\r\n        <router-link class=\"btn btn-success invitation-response-btn\" to=\"/login\" role=\"button\">\r\n          <span>Login</span>\r\n        </router-link>\r\n      </div>\r\n      <div class=\"alert alert-danger\" v-else>\r\n        Unable to process your response - please contact an administrator.\r\n      </div>\r\n    </div>\r\n  </fragment>\r\n</template>\r\n\r\n<style lang=\"scss\" scoped>\r\n.invitation-response-btn {\r\n  -webkit-appearance: none;\r\n  -moz-appearance: none;\r\n  appearance: none;\r\n  border: none;\r\n  width: 145px;\r\n  height: 45px;\r\n  margin: 36px auto;\r\n  display: block;\r\n  font-size: 14px;\r\n  cursor: pointer;\r\n\r\n  span {\r\n    display: inline-block;\r\n    vertical-align: middle;\r\n    margin-top: 5px;\r\n  }\r\n}\r\n</style>\r\n\r\n<script>\r\nimport { BidInvitationService } from \"@/services/\";\r\n\r\nexport default {\r\n  name: \"respond-to-bid\",\r\n  data: function() {\r\n    return {\r\n      response: {},\r\n      isDataLoading: true,\r\n      isSuccessful: false\r\n    };\r\n  },\r\n  mounted() {\r\n    let id = this.$route.query.id || null;\r\n    let status = this.$route.query.status || null;\r\n\r\n    if (!id || !status) {\r\n      this.isDataLoading = false;\r\n      return;\r\n    }\r\n\r\n    BidInvitationService.respondToInvitation(id, status)\r\n      .then(result => {\r\n        this.response = result.data;\r\n        this.isDataLoading = false;\r\n        this.isSuccessful = true;\r\n      })\r\n      .catch(() => {\r\n        this.isDataLoading = false;\r\n      });\r\n  }\r\n};\r\n</script>\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!./respond-to-invitation.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!./respond-to-invitation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./respond-to-invitation.vue?vue&type=template&id=a838a588&scoped=true&\"\nimport script from \"./respond-to-invitation.vue?vue&type=script&lang=js&\"\nexport * from \"./respond-to-invitation.vue?vue&type=script&lang=js&\"\nimport style0 from \"./respond-to-invitation.vue?vue&type=style&index=0&id=a838a588&lang=scss&scoped=true&\"\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  \"a838a588\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}