{"version":3,"sources":["webpack:///./src/views/Documents/Index.vue","webpack:///src/views/Documents/Index.vue","webpack:///./src/views/Documents/Index.vue?4fc6","webpack:///./src/views/Documents/Index.vue?4908"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","ref","request","columns","scopedSlots","_u","key","fn","_ref","row","_s","name","dateFormatted","_ref2","signs","signsOut","_ref3","index","proxy","published","on","$event","sendit","_e","createLink","concat","id","deleteDocument","slot","sending","signedDocuments","creatingLink","document","staticRenderFns","components","DropDown","GenerateLink","Icon","Popup","SendSign","XTable","data","loading","email","phoneNumber","ipAddress","documentId","url","title","sort","methods","$set","$this","axios","method","then","response","$refs","documentTable","refresh","catch","error","console","component"],"mappings":"+HAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,KAAK,CAACE,YAAY,eAAe,CAACJ,EAAIK,GAAG,eAAeH,EAAG,MAAM,CAACA,EAAG,cAAc,CAACE,YAAY,6CAA6CE,MAAM,CAAC,GAAK,sBAAsB,CAACN,EAAIK,GAAG,mBAAmBH,EAAG,OAAO,CAACI,MAAM,CAAC,KAAO,WAAW,IAAI,KAAKJ,EAAG,SAAS,CAACK,IAAI,gBAAgBD,MAAM,CAAC,QAAUN,EAAIQ,QAAQ,QAAUR,EAAIS,SAASC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,WAAWC,GAAG,SAAAC,GAAe,IAALC,EAAGD,EAAHC,IAAM,MAAO,CAACf,EAAIK,GAAG,IAAIL,EAAIgB,GAAGD,EAAIE,MAAM,MAAMjB,EAAIgB,GAAGD,EAAIG,eAAe,QAAQ,CAACN,IAAI,QAAQC,GAAG,SAAAM,GAAe,IAALJ,EAAGI,EAAHJ,IAAM,MAAO,CAACf,EAAIK,GAAG,IAAIL,EAAIgB,GAAGD,EAAIK,OAAO,IAAIpB,E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AAAF,gBAAA,GAAAgB,WAAAd,EAAAN,IAEAC,eAAA,SAAAK,GAEA,IAAAoB,EAAA,KACAC,MAAA,CACAN,IAAA,kBAAAf,EAAAN,GACA4B,OAAA,WACAC,MAAA,SAAAC,GAEAJ,EAAAK,MAAAC,cAAAC,aAEAC,OAAA,SAAAC,GAEAC,QAAAD,eCjI8V,I,YCO1VE,EAAY,eACd,EACAtE,EACAwC,GACA,EACA,KACA,KACA,MAIa,aAAA8B,E","file":"js/document.0ec83c8e.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"p-2\"},[_c('div',{staticClass:\"d-flex mt-1\"},[_c('h1',{staticClass:\"flex-grow-1\"},[_vm._v(\"Contracts\")]),_c('div',[_c('router-link',{staticClass:\"btn btn-primary btn-display-icon-sm d-flex\",attrs:{\"to\":\"/contracts/upload\"}},[_vm._v(\"Upload Contract\"),_c('Icon',{attrs:{\"icon\":\"plus\"}})],1)],1)]),_c('XTable',{ref:\"documentTable\",attrs:{\"request\":_vm.request,\"columns\":_vm.columns},scopedSlots:_vm._u([{key:\"contract\",fn:function({row}){return [_vm._v(\" \"+_vm._s(row.name)+\" - \"+_vm._s(row.dateFormatted)+\" \")]}},{key:\"signs\",fn:function({row}){return [_vm._v(\" \"+_vm._s(row.signs)+\"/\"+_vm._s(row.signsOut)+\" \")]}},{key:\"actions\",fn:function({row, index}){return [_c('DropDown',{scopedSlots:_vm._u([{key:\"toggle\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary btn-sm\",attrs:{\"type\":\"button\"}},[_vm._v(\" Manage \")])]},proxy:true},{key:\"dropdown\",fn:function(){return [_c('div',{staticClass:\"bg-light\"},[(row.published)?_c('button',{staticClass:\"btn btn-light rounded-0 d-block w-100\",on:{\"click\":function($event){return _vm.sendit(row)}}},[_vm._v(\"Send Link\")]):_vm._e(),(row.published)?_c('button',{staticClass:\"btn btn-light rounded-0 d-block w-100\",on:{\"click\":function($event){return _vm.createLink(row)}}},[_vm._v(\"Create Link\")]):_vm._e(),(!row.published)?_c('router-link',{staticClass:\"btn btn-light rounded-0 d-block w-100\",attrs:{\"to\":`contracts/builder/${row.id}`}},[_vm._v(\"Edit\")]):_vm._e(),((!row.published&&row.signsOut==0)||row.signsOut==0)?_c('button',{staticClass:\"btn btn-light rounded-0 d-block w-100\",on:{\"click\":function($event){return _vm.deleteDocument(row)}}},[_vm._v(\"Delete\")]):_vm._e()],1)]},proxy:true}],null,true)})]}}])},[_c('template',{slot:\"empty\"},[_vm._v(\" You have no documents try creating one now. \")])],2),_c('Popup',{attrs:{\"visible\":_vm.sending},on:{\"update:visible\":function($event){_vm.sending=$event}}},[_c('div',{staticClass:\"bg-primary p-2\"},[_c('h4',{staticClass:\"text-white m-0\"},[_vm._v(\"Add Recipient's\")])]),_c('div',{staticClass:\"p-2\"},[_c('SendSign',{attrs:{\"signedDocuments\":_vm.signedDocuments},on:{\"send\":function($event){_vm.sending=false}}})],1)]),_c('Popup',{attrs:{\"visible\":_vm.creatingLink},on:{\"update:visible\":function($event){_vm.creatingLink=$event}}},[_c('div',{staticClass:\"bg-primary p-2\"},[_c('h4',{staticClass:\"text-white m-0\"},[_vm._v(\"Set Link Permissions\")])]),_c('div',{staticClass:\"p-2\"},[_c('GenerateLink',{attrs:{\"document\":_vm.document}})],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=337a862c&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.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":""}