\n\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!./DataViewer.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!./DataViewer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DataViewer.vue?vue&type=template&id=46bf96fe&\"\nimport script from \"./DataViewer.vue?vue&type=script&lang=js&\"\nexport * from \"./DataViewer.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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TheContract.vue?vue&type=style&index=1&id=290cc66d&prod&scoped=true&lang=css&\"","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\nvar URLSearchParamsPrototype = URLSearchParams.prototype;\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {\n defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n get: function size() {\n var count = 0;\n forEach(this, function () { count++; });\n return count;\n },\n configurable: true,\n enumerable: true\n });\n}\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar append = uncurryThis(URLSearchParamsPrototype.append);\nvar $delete = uncurryThis(URLSearchParamsPrototype['delete']);\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\nvar push = uncurryThis([].push);\nvar params = new $URLSearchParams('a=1&a=2&b=3');\n\nparams['delete']('a', 1);\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nparams['delete']('b', undefined);\n\nif (params + '' !== 'a=2') {\n defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $delete(this, name);\n var entries = [];\n forEach(this, function (v, k) { // also validates `this`\n push(entries, { key: k, value: v });\n });\n validateArgumentsLength(length, 1);\n var key = toString(name);\n var value = toString($value);\n var index = 0;\n var dindex = 0;\n var found = false;\n var entriesLength = entries.length;\n var entry;\n while (index < entriesLength) {\n entry = entries[index++];\n if (found || entry.key === key) {\n found = true;\n $delete(this, entry.key);\n } else dindex++;\n }\n while (dindex < entriesLength) {\n entry = entries[dindex++];\n if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);\n }\n }, { enumerable: true, unsafe: true });\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('Layout',[_c('PageHeader',{attrs:{\"title\":_vm.title,\"items\":_vm.items}}),_c('DataViewer',{attrs:{\"data\":_vm.contractData,\"title\":_vm.$t('contract_information')}}),(this.data?.contractData?.ContractStatus >= 2)?_c('TheContract',{attrs:{\"conract-id\":_vm.$route.params.id,\"contract-url\":this.data?.contractData?.contractUrl,\"contract-date\":this.data?.contractData?.contractDate},on:{\"contractChanged\":_vm.contractChanged,\"sendToWhatsApp\":function($event){return _vm.$bvModal.show('modal-backdrop-send-to-whatsApp')}}}):_vm._e(),_c('DataViewer',{attrs:{\"title\":_vm.$t('client_information'),\"data\":_vm.clientData}}),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-4\"},[_c('div',{staticClass:\"card\"},[_c('b-button',{attrs:{\"variant\":'warning',\"disabled\":_vm.data?.contractData?.ContractStatus >= 2},on:{\"click\":function($event){return _vm.$bvModal.show('modal-backdrop-set_a_price')}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"set_a_price\"))+\" \")]),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"id\":\"modal-backdrop-set_a_price\",\"title\":_vm.$t('set_a_price'),\"centered\":\"\",\"title-class\":\"font-18\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('div')]},proxy:true}])},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.editPrice.apply(null, arguments)}}},[_c('b-row',{staticClass:\"set-price-input\"},[_c('b-col',{attrs:{\"cols\":\"6\",\"md\":\"6\"}},[_c('label',{attrs:{\"for\":\"price\"}},[_vm._v(\"price\")]),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.price),expression:\"price\"}],staticClass:\"form-control\",attrs:{\"id\":\"price\",\"type\":\"number\",\"required\":\"\",\"placeholder\":_vm.$t('price')},domProps:{\"value\":(_vm.price)},on:{\"input\":function($event){if($event.target.composing)return;_vm.price=$event.target.value}}}),_c('div',{staticClass:\"input-group-append\"},[_c('span',{staticClass:\"input-group-text\"},[_vm._v(_vm._s(_vm.$t(\"KWD\")))])])])]),_c('b-col',{attrs:{\"cols\":\"6\",\"md\":\"6\"}},[_c('label',{attrs:{\"for\":\"estimatedTime\"}},[_vm._v(_vm._s(_vm.$t(\"estimatedTiming\")))]),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim.number\",value:(_vm.estimatedTiming),expression:\"estimatedTiming\",modifiers:{\"trim\":true,\"number\":true}}],staticClass:\"form-control\",attrs:{\"id\":\"estimatedTime\",\"type\":\"number\",\"min\":\"0\",\"required\":\"\",\"placeholder\":_vm.$t('estimatedTiming')},domProps:{\"value\":(_vm.estimatedTiming)},on:{\"input\":function($event){if($event.target.composing)return;_vm.estimatedTiming=_vm._n($event.target.value.trim())},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('div',{staticClass:\"input-group-append\"},[_c('span',{staticClass:\"input-group-text\"},[_vm._v(_vm._s(_vm.estimatedTiming > 1 ? _vm.$t(\"days\") : _vm.$t(\"day\")))])])])])],1),_c('b-form-textarea',{staticClass:\"form-control set-price-input text-area-note\",attrs:{\"id\":\"textarea-large\",\"size\":\"lg\",\"placeholder\":_vm.$t('note')},model:{value:(_vm.note),callback:function ($$v) {_vm.note=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"note\"}}),_c('b-row',{staticStyle:{\"margin-top\":\"10px\"}},[_c('b-col',{attrs:{\"cols\":\"8\"}}),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-button',{on:{\"click\":function($event){return _vm.$bvModal.hide('modal-backdrop-set_a_price')}}},[_vm._v(_vm._s(_vm.$t(\"cancel\"))+\" \")])],1),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-overlay',{staticClass:\"d-inline-block\",attrs:{\"show\":_vm.loadingSetPrice,\"rounded\":\"\",\"opacity\":\"0.6\",\"spinner-small\":\"\",\"spinner-variant\":\"primary\"}},[_c('b-button',{attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_vm._v(_vm._s(_vm.$t(\"ok\"))+\" \")])],1)],1)],1)],1)])],1)]),_c('div',{staticClass:\"col-4\"},[_c('div',{staticClass:\"card\"},[_c('b-button',{attrs:{\"variant\":'info',\"disabled\":_vm.data?.contractData?.ContractStatus !== 1},on:{\"click\":function($event){return _vm.$bvModal.show('modal-backdrop-payment-recevied')}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"payment_recevied\"))+\" \")]),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"id\":\"modal-backdrop-payment-recevied\",\"title\":_vm.$t('payment_recevied'),\"centered\":\"\",\"title-class\":\"font-18\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('div')]},proxy:true}])},[_vm._v(\" \"+_vm._s(_vm.$t(\"Are_you_Sure_Want_to_Mark_This_Contract_As_Payment_Recevied\"))+\" \"),_c('b-row',{staticStyle:{\"margin-top\":\"10px\"}},[_c('b-col',{attrs:{\"cols\":\"8\"}}),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-button',{on:{\"click\":function($event){return _vm.$bvModal.hide('modal-backdrop-payment-recevied')}}},[_vm._v(_vm._s(_vm.$t(\"cancel\"))+\" \")])],1),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.markPaid()}}},[_vm._v(_vm._s(_vm.$t(\"ok\"))+\" \")])],1)],1)],1)],1)]),_c('div',{staticClass:\"col-4\"},[_c('div',{staticClass:\"card\"},[_c('b-button',{attrs:{\"variant\":'success',\"disabled\":_vm.data?.contractData?.ContractStatus !== 2},on:{\"click\":function($event){return _vm.$bvModal.show('modal-backdrop-mark_as_closed')}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"mark_as_closed\"))+\" \")]),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"id\":\"modal-backdrop-mark_as_closed\",\"title\":\"Edit Price\",\"centered\":\"\",\"title-class\":\"font-18\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('div')]},proxy:true}])},[_vm._v(\" \"+_vm._s(_vm.$t(\"Are_you_Sure_Want_to_Mark_This_Contract_As_Closed\"))+\" \"),_c('b-row',{staticStyle:{\"margin-top\":\"10px\"}},[_c('b-col',{attrs:{\"cols\":\"8\"}}),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-button',{on:{\"click\":function($event){return _vm.$bvModal.hide('modal-backdrop-mark_as_closed')}}},[_vm._v(_vm._s(_vm.$t(\"cancel\"))+\" \")])],1),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.markClosed()}}},[_vm._v(_vm._s(_vm.$t(\"ok\"))+\" \")])],1)],1)],1)],1)]),_c('b-modal',{attrs:{\"no-close-on-backdrop\":\"\",\"id\":\"modal-backdrop-send-to-whatsApp\",\"title\":_vm.$t('sendContractToWhatsApp'),\"centered\":\"\",\"title-class\":\"font-18\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('div')]},proxy:true}])},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.sendToWhatsApp.apply(null, arguments)}}},[_c('label',{staticClass:\"d-block\"},[_c('span',{staticClass:\"mb-2 d-block\"},[_vm._v(_vm._s(_vm.$t(\"customerWhatsApp\")))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.phoneReciver),expression:\"phoneReciver\",modifiers:{\"trim\":true}}],staticClass:\"form-control\",attrs:{\"type\":\"tel\",\"required\":\"\",\"placeholder\":_vm.$t('customerWhatsApp')},domProps:{\"value\":(_vm.phoneReciver)},on:{\"input\":function($event){if($event.target.composing)return;_vm.phoneReciver=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_c('b-form-textarea',{staticClass:\"form-control set-price-input text-area-note\",attrs:{\"id\":\"textarea-large\",\"size\":\"lg\",\"placeholder\":_vm.$t('note')},model:{value:(_vm.whatsAppNote),callback:function ($$v) {_vm.whatsAppNote=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"whatsAppNote\"}}),_c('b-row',{staticStyle:{\"margin-top\":\"10px\"}},[_c('b-col',{attrs:{\"cols\":\"8\"}}),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-button',{on:{\"click\":function($event){return _vm.$bvModal.hide('modal-backdrop-send-to-whatsApp')}}},[_vm._v(_vm._s(_vm.$t(\"cancel\"))+\" \")])],1),_c('b-col',{attrs:{\"cols\":\"2\"}},[_c('b-overlay',{staticClass:\"d-inline-block\",attrs:{\"show\":_vm.loadingSendToWhatsapp,\"rounded\":\"\",\"opacity\":\"0.6\",\"spinner-small\":\"\",\"spinner-variant\":\"primary\"}},[_c('b-button',{attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_vm._v(_vm._s(_vm.$t(\"send\")))])],1)],1)],1)],1)])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('h4',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('ylawContract')))]),_c('hr'),(!_vm.contractUrl?.length)?[_c('b-overlay',{attrs:{\"show\":_vm.loadingFile,\"rounded\":\"\",\"opacity\":\"0.6\",\"spinner-variant\":\"teal\"}},[_c('label',{staticClass:\"uploadFile\"},[_c('i',{staticClass:\"ri-upload-cloud-2-line\"}),_c('span',[_vm._v(_vm._s(_vm.$t('dropContract')))]),_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":_vm.uploadFile}})])])]:[_c('b-overlay',{attrs:{\"show\":_vm.loadingFile,\"rounded\":\"\",\"opacity\":\"0.6\",\"spinner-variant\":\"teal\"}},[_c('div',{staticClass:\"file-container\"},[_c('div',{attrs:{\"dir\":\"ltr\"}},[_c('svg',{attrs:{\"height\":\"64px\",\"width\":\"64px\",\"version\":\"1.1\",\"id\":\"Layer_1\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",\"viewBox\":\"0 0 512 512\",\"xml:space\":\"preserve\"}},[_c('path',{staticStyle:{\"fill\":\"#E2E5E7\"},attrs:{\"d\":\"M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z\"}}),_c('path',{staticStyle:{\"fill\":\"#B0B7BD\"},attrs:{\"d\":\"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z\"}}),_c('polygon',{staticStyle:{\"fill\":\"#CAD1D8\"},attrs:{\"points\":\"480,224 384,128 480,128 \"}}),_c('path',{staticStyle:{\"fill\":\"#F15642\"},attrs:{\"d\":\"M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16\\n\\tV416z\"}}),_c('g',[_c('text',{staticClass:\"text\",attrs:{\"x\":\"125\",\"y\":\"365\",\"fill\":\"#fff\"}},[_vm._v(_vm._s(_vm.fileExtension))])]),_c('path',{staticStyle:{\"fill\":\"#CAD1D8\"},attrs:{\"d\":\"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z\"}})])]),_c('h6',{staticClass:\"file-name\"},[_c('bdi',[_vm._v(_vm._s(_vm.fileName))])])]),_c('hr'),_c('div',{staticClass:\"info\"},[_c('div',{staticClass:\"date-modify\"},[_vm._v(\" \"+_vm._s(_vm.contractDate)+\" \")]),_c('div',{staticClass:\"actions\"},[_c('i',{staticClass:\"ri-download-2-line\",on:{\"click\":_vm.downloadFile}}),_c('label',{staticClass:\"update-file\"},[_c('i',{staticClass:\"ri-edit-2-line\"}),_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":_vm.updateFile}})]),_c('i',{staticClass:\"ri-delete-bin-7-line\",on:{\"click\":_vm.deleteFile}}),_c('i',{staticClass:\"ri-whatsapp-fill whatsapp-icon\",on:{\"click\":function($event){return _vm.$emit('sendToWhatsApp')}}})])])])]],2)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function HandleUploadError(err) {\n switch (err.code) {\n case 'storage/unknown':\n this.message = 'An unknown error occurred.'\n break\n case 'storage/object-not-found':\n this.message = 'No object exists at the desired reference.'\n break\n case 'storage/bucket-not-found':\n this.message = 'No bucket is configured for Cloud Storage'\n break\n case 'storage/project-not-found':\n this.message = 'No project is configured for Cloud Storage'\n break\n case 'storage/quota-exceeded':\n this.message = \"Quota on your Cloud Storage bucket has been exceeded. If you're on the no-cost tier, upgrade to a paid plan. If you're on a paid plan, reach out to Firebase support.\"\n break\n case 'storage/unauthenticated':\n this.message = \"User is unauthenticated, please authenticate and try again.\"\n break\n case 'storage/unauthorized':\n this.message = \"User is not authorized to perform the desired action, check your security rules to ensure they are correct.\"\n break\n case 'storage/retry-limit-exceeded':\n this.message = \"The maximum time limit on an operation (upload, download, delete, etc.) has been excceded. Try uploading again.\"\n break\n case 'storage/invalid-checksum':\n this.message = \"File on the client does not match the checksum of the file received by the server. Try uploading again.\"\n break\n case 'storage/canceled':\n this.message = \"User canceled the operation.\"\n break\n case 'storage/invalid-event-name':\n this.message = \"Invalid event name provided. Must be one of [`running`, `progress`, `pause`]\"\n break\n case 'storage/invalid-url':\n this.message = `Invalid URL provided to refFromURL().`\n break\n case 'storage/invalid-argument':\n this.message = \"The argument passed to put() must be `File`, `Blob`, or `UInt8` Array. The argument passed to putString() must be a raw, `Base64`, or `Base64URL` string.\"\n break\n case 'storage/no-default-bucket':\n this.message = \"No bucket has been set in your config's storageBucket property.\"\n break\n case 'storage/cannot-slice-blob':\n this.message = \"Commonly occurs when the local file has changed (deleted, saved again, etc.). Try uploading again after verifying that the file hasn't changed.\"\n break\n case 'storage/server-file-wrong-size':\n this.message = \"File on the client does not match the size of the file received by the server. Try uploading again.\\n\"\n break\n default:\n this.message = null\n\n }\n}","\n
\n
\n
\n
\n \n
{{ $t('ylawContract') }}
\n \n \n \n \n \n \n \n \n
\n
\n \n
\n
{{ fileName }}
\n
\n \n
\n
\n {{contractDate}}\n
\n
\n \n\n \n \n \n
\n
\n \n \n
\n
\n
\n \n
\n\n\n\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!./TheContract.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!./TheContract.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheContract.vue?vue&type=template&id=290cc66d&scoped=true&\"\nimport script from \"./TheContract.vue?vue&type=script&lang=js&\"\nexport * from \"./TheContract.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TheContract.vue?vue&type=style&index=0&id=290cc66d&prod&scoped=true&lang=css&\"\nimport style1 from \"./TheContract.vue?vue&type=style&index=1&id=290cc66d&prod&scoped=true&lang=css&\"\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 \"290cc66d\",\n null\n \n)\n\nexport default component.exports","\n\n\n \n \n \n = 2\"\n @contractChanged=\"contractChanged\"\n @sendToWhatsApp=\"$bvModal.show('modal-backdrop-send-to-whatsApp')\"\n />\n \n