%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/account/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/account/verification.js.map |
{"version":3,"file":"pages/account/verification.js","sources":["webpack:///./components/slots/Block.vue?a39f","webpack:///./components/slots/Block.vue","webpack:///./components/slots/Block.vue?8d1a","webpack:///./components/slots/Block.vue?1f5b","webpack:///./assets/images/icons/pdf-icon.svg","webpack:///./components/blocks/Account/AccountProgressBar.vue?b794","webpack:///./components/blocks/Account/AccountProgressBar.vue","webpack:///./components/blocks/Account/AccountProgressBar.vue?f744","webpack:///./components/blocks/Account/AccountProgressBar.vue?5447","webpack:///./components/blocks/Account/AccountNav.vue?2db9","webpack:///./components/blocks/Account/AccountNav.vue","webpack:///./components/blocks/Account/AccountNav.vue?0d75","webpack:///./components/blocks/Account/AccountNav.vue?0790","webpack:///./components/blocks/Account/verification/Qualifications.vue","webpack:///./components/blocks/Account/verification/Insurance.vue","webpack:///./components/blocks/Account/verification/Memberships.vue?53fa","webpack:///./components/blocks/Account/verification/Memberships.vue","webpack:///./components/blocks/Account/verification/Memberships.vue?b553","webpack:///./components/blocks/Account/verification/Memberships.vue?295b","webpack:///./components/blocks/Account/verification/Qualifications.vue?ec8e","webpack:///./components/blocks/Account/verification/Qualifications.vue?bc08","webpack:///./components/blocks/Account/verification/Qualifications.vue?387b","webpack:///./components/blocks/Account/verification/Insurance.vue?7a90","webpack:///./components/blocks/Account/verification/Insurance.vue?7c93","webpack:///./components/blocks/Account/verification/Insurance.vue?61d1","webpack:///./pages/account/verification.vue?0d0d","webpack:///./pages/account/verification.vue","webpack:///./pages/account/verification.vue?ea7d","webpack:///./pages/account/verification.vue?cda2"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"bg-gray py-8 md:py-20 px-4 md:px-8 mb-8\"},[_vm._ssrNode(\"<div class=\\\"max-w-xl mx-auto w-full\\\"><header class=\\\"text-center mb-10\\\"><h2\"+(_vm._ssrClass(\"text-2xl sm:text-3xl font-bold\",_vm.description ? 'mb-8' : ''))+\">\"+_vm._ssrEscape(_vm._s(_vm.title))+\"</h2> \"+((_vm.description)?(\"<p class=\\\"text-sm sm:text-base\\\">\"+_vm._ssrEscape(_vm._s(_vm.description))+\"</p>\"):\"<!---->\")+\"</header></div> \"),_vm._ssrNode(\"<div\"+(_vm._ssrClass(\"mx-auto w-full\",_vm.width ? _vm.width : 'max-w-xl'))+\">\",\"</div>\",[_vm._t(\"default\")],2)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n props: {\n title: {\n type: String,\n required: true\n },\n description: {\n type: String,\n required: false\n },\n width: {\n type: String,\n required: false,\n }\n }\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Block.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Block.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Block.vue?vue&type=template&id=0e972406&\"\nimport script from \"./Block.vue?vue&type=script&lang=js&\"\nexport * from \"./Block.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 \"127f880a\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {Header: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/layout/Header.vue').default})\n","module.exports = __webpack_public_path__ + \"img/pdf-icon.c2fee35.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"relative z-20 max-w-md w-full mt-8 text-center\"},[_vm._ssrNode(\"<div class=\\\"w-full bg-black bg-opacity-25 h-1 rounded-lg overflow-hidden mb-6\\\"><div class=\\\"bg-white h-1 transition-width duration-500\\\"\"+(_vm._ssrStyle(null,'width:'+_vm.progress+'%', null))+\"></div></div> <span class=\\\"uppercase text-lg\\\">\"+_vm._ssrEscape(_vm._s(_vm.progress)+\"% Complete\")+\"</span>\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n props: {\n slug: {\n type: String,\n required: false,\n default: null\n },\n },\n\n computed: {\n progress() {\n return this.$store.state.account.progress.total\n },\n },\n\n async mounted() {\n await this.$store.dispatch('account/progress/get', {\n slug: this.slug\n })\n }\n}\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountProgressBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountProgressBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountProgressBar.vue?vue&type=template&id=7467445a&\"\nimport script from \"./AccountProgressBar.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountProgressBar.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 \"6bf5e32c\"\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:\"relative\"},[_vm._ssrNode(\"<button class=\\\"flex md:hidden items-center justify-center w-full focus:outline-none\\\"><div class=\\\"relative w-8\\\"><span\"+(_vm._ssrClass(\"block mb-1.5 h-1 w-full bg-black rounded transform transition duration-100\",_vm.menuOpen ? 'rotate-45 translate-y-2' : ''))+\"></span> <span\"+(_vm._ssrClass(\"block my-1.5 h-1 w-full bg-black rounded transform transition duration-100\",_vm.menuOpen ? 'opacity-0' : ''))+\"></span> <span\"+(_vm._ssrClass(\"block mt-1.5 h-1 w-full bg-black rounded transform transition duration-100\",_vm.menuOpen ? '-rotate-45 -translate-y-3' : ''))+\"></span></div> <span class=\\\"block ml-3 font-bold\\\">Menu</span></button> \"),_vm._ssrNode(\"<div class=\\\"hidden md:flex flex-wrap items-center justify-center\\\">\",\"</div>\",[_vm._l((_vm.links),function(link,key){return _vm._ssrNode(\"<div>\",\"</div>\",[(link.role == 'all' || _vm.role == link.role)?_c('NuxtLink',{staticClass:\"account-nav-link\",attrs:{\"to\":link.url}},[_vm._v(_vm._s(link.name))]):_vm._e()],1)}),_vm._ssrNode(\" <button type=\\\"button\\\" class=\\\"account-nav-link\\\">Log Out</button>\")],2),_vm._ssrNode(\" \"+((_vm.menuOpen == true)?(\"<div class=\\\"fixed z-40 top-0 left-0 w-full h-full\\\"></div>\"):\"<!---->\")+\" \"),(_vm.menuOpen == true)?_vm._ssrNode(\"<div class=\\\"fixed z-50 bottom-0 left-0 w-full p-3 rounded-t-xl bg-white block overflow-hidden md:hidden\\\">\",\"</div>\",[_vm._l((_vm.links),function(link,key){return _vm._ssrNode(\"<div>\",\"</div>\",[(link.role == 'all' || _vm.role == link.role)?_c('NuxtLink',{staticClass:\"block w-full py-2 p-3 rounded-lg font-bold hover:bg-yellow\",attrs:{\"to\":link.url}},[_vm._v(_vm._s(link.name))]):_vm._e()],1)}),_vm._ssrNode(\" <button type=\\\"button\\\" class=\\\"block w-full py-2 p-3 rounded-lg font-bold hover:bg-yellow\\\">Log Out</button>\")],2):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n data() {\n return {\n menuOpen: false,\n \n links: [\n {\n role: 'therapist',\n name: 'Profile',\n url: '/account'\n },\n {\n role: 'therapist',\n name: 'Availability',\n url: '/account/availability'\n },\n {\n role: 'therapist',\n name: 'Verification',\n url: '/account/verification'\n },\n {\n role: 'all',\n name: 'Financial',\n url: '/account/financial'\n },\n {\n role: 'all',\n name: 'Settings',\n url: '/account/settings'\n },\n ]\n }\n },\n\n computed: {\n role() {\n if(this.$auth.loggedIn == true) { \n return this.$auth.user.data.role.name;\n }\n\n return 'all';\n }\n },\n\n methods: {\n async logout() {\n await this.$auth.logout()\n }\n }\n}\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountNav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountNav.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountNav.vue?vue&type=template&id=37a7f59d&\"\nimport script from \"./AccountNav.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountNav.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 \"6f6d45ae\"\n \n)\n\nexport default component.exports","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n data() {\n return {\n working: false,\n qualifications: [{\n file_preview: {\n name: null,\n type: null,\n url: null\n },\n file: null,\n name: '',\n result: '',\n year: ''\n }]\n }\n },\n\n async mounted() {\n this.$axios.$post('/account/verification/qualifications').then((response) => {\n if(response.data.length) {\n this.qualifications = response.data;\n }\n })\n },\n\n methods: {\n async handleFileInput(key) {\n let fileInputRef = 'qualification-file-'+key;\n let fileData = this.$refs[fileInputRef][0].files[0];\n\n this.qualifications[key].file_preview.name = fileData.name;\n this.qualifications[key].file_preview.type = fileData.type;\n this.qualifications[key].file_preview.url = URL.createObjectURL(fileData);\n this.qualifications[key].file = fileData;\n },\n\n add() {\n this.qualifications.push({\n file_preview: {\n name: null,\n type: null,\n url: null\n },\n file: null,\n name: '',\n result: '',\n year: ''\n });\n },\n\n remove(key) {\n this.qualifications.splice(key, 1);\n },\n\n async submit() {\n this.$refs.form.validate().then(success => {\n if (!success) {\n return;\n }\n\n this.working = true;\n\n let formData = new FormData();\n\n this.qualifications.forEach((value, index) => {\n formData.append('qualifications['+index+'][file]', value.file);\n formData.append('qualifications['+index+'][existing_file]', JSON.stringify(value.file_preview));\n formData.append('qualifications['+index+'][name]', value.name);\n formData.append('qualifications['+index+'][result]', value.result);\n formData.append('qualifications['+index+'][year]', value.year);\n });\n\n this.$axios.$post('/account/verification/qualifications/create', formData, {\n headers: { 'Content-Type': 'multipart/form-data' }\n }).then((response) => {\n this.qualifications = response.data;\n this.$toast.success('Successfully saved your qualifications').goAway(1500);\n this.working = false;\n }).catch(error => {\n this.working = false;\n this.$refs.form.setErrors(error.response.data.errors);\n })\n })\n }\n }\n}\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n data() {\n return {\n working: false,\n\n insurance: {\n name: '',\n renewal_date: '',\n file: '',\n file_preview: {\n name: null,\n type: null,\n url: null\n }\n }\n }\n },\n\n async mounted() {\n this.$axios.$post('/account/verification/insurance').then((response) => {\n this.insurance = response.data;\n })\n },\n\n methods: {\n handleFileInput(e) {\n let fileData = this.$refs.insurancefile.files[0];\n\n this.insurance.file = fileData;\n this.insurance.file_preview.name = fileData.name;\n this.insurance.file_preview.type = fileData.type;\n this.insurance.file_preview.url = URL.createObjectURL(fileData);\n },\n\n async saveInsurance() {\n this.$refs.form.validate().then(success => {\n if (!success) {\n return;\n }\n \n this.working = true;\n\n let formData = new FormData();\n formData.append('file', this.insurance.file);\n formData.append('existing_file', JSON.stringify(this.insurance.file_preview));\n formData.append('name', this.insurance.name);\n formData.append('date', this.insurance.renewal_date);\n\n this.$axios.$post('/account/verification/insurance/create', formData, {\n headers: { 'Content-Type': 'multipart/form-data' }\n }).then((response) => {\n this.insurance = response.data;\n this.$toast.success('Successfully saved your insurance').goAway(1500);\n this.working = false;\n }).catch(error => {\n this.working = false;\n this.$refs.form.setErrors(error.response.data.errors);\n })\n })\n },\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Block',{attrs:{\"title\":\"Memberships\",\"description\":\"Please provide valid details of your governing body below.\",\"width\":\"max-w-3xl\"}},[_c('ValidationObserver',{ref:\"membershipsForm\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.saveMemberships($event)}}},[_vm._l((_vm.memberships),function(membership,key){return _c('div',{key:key,staticClass:\"mb-4 relative\",class:key !== 0 ? 'border-t-2 border-black border-opacity-10 pt-10' : ''},[_c('div',{staticClass:\"relative\"},[_c('div',{staticClass:\"absolute right-full pr-5 font-bold\"},[_vm._v(_vm._s((key + 1)))]),_vm._v(\" \"),(key !== 0)?_c('button',{staticClass:\"absolute top-0 right-0 z-30 uppercase text-red text-xs focus:outline-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.removeMembership(key)}}},[_vm._v(\"Remove\")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-2 gap-x-8\"},[_c('t-input-group',{attrs:{\"label\":\"Governing body\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-select',{attrs:{\"placeholder\":\"Select...\",\"options\":['BACP', 'UKCP', 'UPCA', 'IACP', 'HCPC', 'COSCA', 'COSRT', 'BPC', 'ACC', 'NCP', 'NACHP', 'IFPP', 'ICP', 'APPI', 'ACCPH', 'NCS', 'FDAP']},model:{value:(membership.name),callback:function ($$v) {_vm.$set(membership, \"name\", $$v)},expression:\"membership.name\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Membership Number\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required|numeric\",\"name\":\"membership number\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":'number-'+key,\"id\":'number-'+key,\"placeholder\":\"Membership Number\"},model:{value:(membership.number),callback:function ($$v) {_vm.$set(membership, \"number\", $$v)},expression:\"membership.number\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1)],1)]),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Expiry Date\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-datepicker',{model:{value:(membership.expiry_date),callback:function ($$v) {_vm.$set(membership, \"expiry_date\", $$v)},expression:\"membership.expiry_date\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1),_vm._v(\" \"),_c('label',{staticClass:\"flex items-center ml-2 mb-6\"},[_c('t-checkbox',{attrs:{\"name\":'accredited-'+key},model:{value:(membership.is_accredited),callback:function ($$v) {_vm.$set(membership, \"is_accredited\", $$v)},expression:\"membership.is_accredited\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-2 text-sm\"},[_vm._v(\"I am accredited\")])],1)],1)}),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center mb-10\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"disabled\":_vm.working == true,\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Details\")]):_c('span',{staticClass:\"flex items-center justify-center\"},[_c('svg',{staticClass:\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\"}},[_c('circle',{staticClass:\"opacity-25\",attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\",\"stroke\":\"currentColor\",\"stroke-width\":\"4\"}}),_vm._v(\" \"),_c('path',{staticClass:\"opacity-75\",attrs:{\"fill\":\"currentColor\",\"d\":\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Processing\")])])])])],2)]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center\"},[_c('button',{staticClass:\"w-full flex items-center justify-center p-4 border border-dashed border-black border-opacity-20 rounded-md uppercase text-blue-light focus:outline-none hover:bg-black hover:bg-opacity-10 hover:text-black transition\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.addMembership}},[_c('svg',{staticClass:\"w-4 h-4 mr-1\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\",\"stroke\":\"currentColor\"}},[_c('path',{attrs:{\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-width\":\"2\",\"d\":\"M12 6v6m0 0v6m0-6h6m-6 0H6\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Add Membership\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n data() {\n return {\n working: false,\n\n memberships: [{\n name: '',\n number: '',\n expiry_date: '',\n is_accredited: false,\n }]\n }\n },\n\n async mounted() {\n this.$axios.$post('/account/verification/memberships').then((response) => {\n if(response.data.length) {\n this.memberships = response.data;\n }\n })\n },\n\n methods: {\n addMembership() {\n this.memberships.push({\n name: '',\n number: '',\n expiry_date: '',\n is_accredited: false\n });\n },\n\n removeMembership(key) {\n this.memberships.splice(key, 1);\n },\n\n async saveMemberships() {\n this.$refs.membershipsForm.validate().then(success => {\n if (!success) {\n return;\n }\n\n this.working = true;\n this.$axios.$post('/account/verification/memberships/create', {\n memberships: this.memberships\n }).then((response) => {\n this.memberships = response.data;\n this.$toast.success('Successfully saved your memberships').goAway(1500);\n this.working = false;\n }).catch(error => {\n this.working = false;\n this.$refs.membershipsForm.setErrors(error.response.data.errors);\n })\n })\n },\n }\n}\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Memberships.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Memberships.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Memberships.vue?vue&type=template&id=2cbf1a39&\"\nimport script from \"./Memberships.vue?vue&type=script&lang=js&\"\nexport * from \"./Memberships.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 \"8b7ee448\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {Block: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/slots/Block.vue').default})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Block',{attrs:{\"title\":\"Qualifications\",\"description\":\"Please select your highest qualification from the drop down and upload by using the 'choose file button' or dragging the file into the box. You have the option to upload multiple qualifications.\",\"width\":\"max-w-3xl\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.submit($event)}}},[_vm._l((_vm.qualifications),function(qualification,key){return _c('div',{key:key,staticClass:\"mb-4 relative\",class:key !== 0 ? 'border-t-2 border-black border-opacity-10 pt-10' : ''},[_c('ValidationProvider',{attrs:{\"rules\":\"\",\"vid\":'file_url-'+(key+1)},scopedSlots:_vm._u([{key:\"default\",fn:function(x){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(qualification.file_preview.name),expression:\"qualification.file_preview.name\"}],attrs:{\"type\":\"hidden\",\"name\":\"file_url\"},domProps:{\"value\":(qualification.file_preview.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(qualification.file_preview, \"name\", $event.target.value)}}})]}}],null,true)}),_vm._v(\" \"),_c('ValidationProvider',{ref:'provider-'+key,refInFor:true,attrs:{\"rules\":'required_if:file_url-'+(key+1)+',null|size:10000',\"name\":'file-'+(key+1)},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar validate = ref.validate;\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"mb-6\"},[(qualification.file_preview.name)?_c('div',{staticClass:\"flex items-center\"},[(qualification.file_preview.type == 'application/pdf' || qualification.file_preview.type == 'pdf')?_c('img',{staticClass:\"w-12 mr-5\",attrs:{\"src\":require(\"assets/images/icons/pdf-icon.svg\"),\"alt\":\"PDF\"}}):_c('img',{staticClass:\"w-12 mr-5\",attrs:{\"src\":require(\"assets/images/icons/pdf-icon.svg\"),\"alt\":\"Other\"}}),_vm._v(\" \"),_c('div',{staticClass:\"relative\"},[_c('span',{staticClass:\"block text-md font-medium\"},[_vm._v(_vm._s(qualification.file_preview.name))]),_vm._v(\" \"),_c('label',{staticClass:\"uppercase text-blue-light text-sm cursor-pointer\",attrs:{\"for\":'file-'+key}},[_vm._v(\"\\n Replace\\n \"),_c('input',{ref:'qualification-file-'+key,refInFor:true,staticClass:\"hidden\",attrs:{\"type\":\"file\",\"id\":'file-'+key,\"accept\":\"image/jpeg,image/gif,image/png,application/pdf,image/x-eps\"},on:{\"change\":function($event){return _vm.handleFileInput(key)}}})])])]):_c('div',[_c('label',{staticClass:\"block w-full p-4 border border-dashed border-black border-opacity-20 rounded-md hover:bg-black hover:bg-opacity-10 hover:text-black transition cursor-pointer text-center\",attrs:{\"for\":'file-'+key}},[_c('input',{ref:'qualification-file-'+key,refInFor:true,staticClass:\"hidden\",attrs:{\"type\":\"file\",\"id\":'file-'+key},on:{\"change\":function($event){return _vm.handleFileInput(key)}}}),_vm._v(\" \"),_c('span',{staticClass:\"text-sm text-black\"},[_vm._v(\"Click here to choose file\")])])]),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()])]}}],null,true)}),_vm._v(\" \"),_c('div',{staticClass:\"relative\"},[_c('div',{staticClass:\"absolute right-full pr-5 font-bold\"},[_vm._v(_vm._s((key + 1)))]),_vm._v(\" \"),(key !== 0)?_c('button',{staticClass:\"absolute top-0 right-0 z-30 uppercase text-red text-xs focus:outline-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.remove(key)}}},[_vm._v(\"Remove\")]):_vm._e(),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Qualification\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-select',{attrs:{\"placeholder\":\"Select...\",\"options\":['PHD', 'Masters', 'Post Grad', 'BA/BSC', 'Diploma', 'Foundation Degree']},model:{value:(qualification.name),callback:function ($$v) {_vm.$set(qualification, \"name\", $$v)},expression:\"qualification.name\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-2 gap-x-8\"},[_c('t-input-group',{attrs:{\"label\":\"Result\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":'result-'+key,\"id\":'result-'+key,\"placeholder\":\"Qualification Result\"},model:{value:(qualification.result),callback:function ($$v) {_vm.$set(qualification, \"result\", $$v)},expression:\"qualification.result\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Year\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required|numeric\",\"name\":\"year\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":'year-'+key,\"id\":'year-'+key,\"placeholder\":\"Qualification Year\"},model:{value:(qualification.year),callback:function ($$v) {_vm.$set(qualification, \"year\", $$v)},expression:\"qualification.year\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1)],1)],1)}),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center mb-10\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"disabled\":_vm.working == true,\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Details\")]):_c('span',{staticClass:\"flex items-center justify-center\"},[_c('svg',{staticClass:\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\"}},[_c('circle',{staticClass:\"opacity-25\",attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\",\"stroke\":\"currentColor\",\"stroke-width\":\"4\"}}),_vm._v(\" \"),_c('path',{staticClass:\"opacity-75\",attrs:{\"fill\":\"currentColor\",\"d\":\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Processing\")])])])])],2)]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center\"},[_c('button',{staticClass:\"w-full flex items-center justify-center p-4 border border-dashed border-black border-opacity-20 rounded-md uppercase text-blue-light focus:outline-none hover:bg-black hover:bg-opacity-10 hover:text-black transition\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.add}},[_c('svg',{staticClass:\"w-4 h-4 mr-1\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\",\"stroke\":\"currentColor\"}},[_c('path',{attrs:{\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-width\":\"2\",\"d\":\"M12 6v6m0 0v6m0-6h6m-6 0H6\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Add Qualification\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Qualifications.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Qualifications.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Qualifications.vue?vue&type=template&id=339bac8b&\"\nimport script from \"./Qualifications.vue?vue&type=script&lang=js&\"\nexport * from \"./Qualifications.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 \"e1449596\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {Block: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/slots/Block.vue').default})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Block',{attrs:{\"title\":\"Insurance\",\"description\":\"Please provide valid details of professional insurance. Please upload a copy by using the choose file button\",\"width\":\"max-w-3xl\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.saveInsurance($event)}}},[_c('div',{staticClass:\"grid grid-cols-2 gap-x-8\"},[_c('t-input-group',{attrs:{\"label\":\"Insurer\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\",\"name\":\"insurer\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":\"insurance-name\",\"id\":\"'insurance-name\",\"placeholder\":\"e.g. Premierline\"},model:{value:(_vm.insurance.name),callback:function ($$v) {_vm.$set(_vm.insurance, \"name\", $$v)},expression:\"insurance.name\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Renewal Date\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\",\"name\":\"date\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-datepicker',{model:{value:(_vm.insurance.renewal_date),callback:function ($$v) {_vm.$set(_vm.insurance, \"renewal_date\", $$v)},expression:\"insurance.renewal_date\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1)],1),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"\",\"vid\":\"file_url\"},scopedSlots:_vm._u([{key:\"default\",fn:function(x){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.insurance.file_preview.name),expression:\"insurance.file_preview.name\"}],attrs:{\"type\":\"hidden\",\"name\":\"file_url\"},domProps:{\"value\":(_vm.insurance.file_preview.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.insurance.file_preview, \"name\", $event.target.value)}}})]}}])}),_vm._v(\" \"),_c('ValidationProvider',{ref:\"fileProvider\",attrs:{\"rules\":\"required_if:file_url,null|size:10000\",\"name\":\"file\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar validate = ref.validate;\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"mb-6\"},[(_vm.insurance.file_preview.name)?_c('div',{staticClass:\"flex items-center\"},[(_vm.insurance.file_preview.type == 'application/pdf' || _vm.insurance.file_preview.type == 'pdf')?_c('img',{staticClass:\"w-12 mr-5\",attrs:{\"src\":require(\"assets/images/icons/pdf-icon.svg\"),\"alt\":\"PDF\"}}):_c('img',{staticClass:\"w-12 mr-5\",attrs:{\"src\":require(\"assets/images/icons/pdf-icon.svg\"),\"alt\":\"PDF\"}}),_vm._v(\" \"),_c('div',{staticClass:\"relative\"},[_c('span',{staticClass:\"block text-md font-medium\"},[_vm._v(_vm._s(_vm.insurance.file_preview.name))]),_vm._v(\" \"),_c('label',{staticClass:\"uppercase text-blue-light text-sm cursor-pointer\",attrs:{\"for\":\"insurancefile\"}},[_vm._v(\"\\n Replace\\n \"),_c('input',{ref:\"insurancefile\",staticClass:\"hidden\",attrs:{\"type\":\"file\",\"id\":\"insurancefile\"},on:{\"change\":function($event){return _vm.handleFileInput()}}})])])]):_c('div',[_c('label',{staticClass:\"block w-full p-4 border border-dashed border-black border-opacity-20 rounded-md hover:bg-black hover:bg-opacity-10 hover:text-black transition cursor-pointer text-center\",attrs:{\"for\":\"insurancefile\"}},[_c('input',{ref:\"insurancefile\",staticClass:\"hidden\",attrs:{\"type\":\"file\",\"id\":\"insurancefile\"},on:{\"change\":function($event){return _vm.handleFileInput()}}}),_vm._v(\" \"),_c('span',{staticClass:\"text-sm text-black\"},[_vm._v(\"Click here to choose file\")])])]),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()])]}}])}),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center mb-10\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"disabled\":_vm.working == true,\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Details\")]):_c('span',{staticClass:\"flex items-center justify-center\"},[_c('svg',{staticClass:\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\"}},[_c('circle',{staticClass:\"opacity-25\",attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\",\"stroke\":\"currentColor\",\"stroke-width\":\"4\"}}),_vm._v(\" \"),_c('path',{staticClass:\"opacity-75\",attrs:{\"fill\":\"currentColor\",\"d\":\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Processing\")])])])])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Insurance.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Insurance.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Insurance.vue?vue&type=template&id=6cd2752c&\"\nimport script from \"./Insurance.vue?vue&type=script&lang=js&\"\nexport * from \"./Insurance.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 \"60da2899\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {Block: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/slots/Block.vue').default})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page-wrapper\"},[_c('PageHeader',{attrs:{\"classObject\":\"bg-pink\"}},[_c('img',{staticClass:\"relative z-20 mb-8\",attrs:{\"src\":require(\"assets/images/logo-white-small.svg\"),\"alt\":\"Takeaseat\"}}),_vm._v(\" \"),_c('span',{staticClass:\"font-bold uppercase text-xl\"},[_vm._v(\"Account\")]),_vm._v(\" \"),_c('h1',{staticClass:\"relative z-20 text-5xl lg:text-7xl font-bold m-0\"},[_vm._v(\"Verification\")]),_vm._v(\" \"),_c('AccountProgressBar',{attrs:{\"slug\":\"verification\"}}),_vm._v(\" \"),_c('div',{staticClass:\"page-header-bottom\"},[_c('AccountNav')],1)],1),_vm._ssrNode(\" \"),_c('Qualifications'),_vm._ssrNode(\" \"),_c('Memberships'),_vm._ssrNode(\" \"),_c('Insurance'),_vm._ssrNode(\" \"),_c('Block',{attrs:{\"title\":\"Supervisor\",\"description\":\"We require contact details of your supervisor to ensure you undertake regular supervision. Please ensure the supervisor is happy for us to contact them\",\"width\":\"max-w-3xl\"}},[_c('ValidationObserver',{ref:\"supervisorForm\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.saveSupervisor($event)}}},[_c('div',{staticClass:\"grid grid-cols-2 gap-x-8\"},[_c('t-input-group',{attrs:{\"label\":\"Name\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"placeholder\":\"e.g. John Doe\"},model:{value:(_vm.supervisor.name),callback:function ($$v) {_vm.$set(_vm.supervisor, \"name\", $$v)},expression:\"supervisor.name\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Email\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required|email\",\"name\":\"email\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"type\":\"email\",\"placeholder\":\"e.g. jdoe@gmail.com\"},model:{value:(_vm.supervisor.email),callback:function ($$v) {_vm.$set(_vm.supervisor, \"email\", $$v)},expression:\"supervisor.email\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1)],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Phone\"}},[_c('ValidationProvider',{attrs:{\"name\":\"phone\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"type\":\"tel\"},model:{value:(_vm.supervisor.phone),callback:function ($$v) {_vm.$set(_vm.supervisor, \"phone\", $$v)},expression:\"supervisor.phone\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center mb-10\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"disabled\":_vm.working == true,\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Details\")]):_c('span',{staticClass:\"flex items-center justify-center\"},[_c('svg',{staticClass:\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\"}},[_c('circle',{staticClass:\"opacity-25\",attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\",\"stroke\":\"currentColor\",\"stroke-width\":\"4\"}}),_vm._v(\" \"),_c('path',{staticClass:\"opacity-75\",attrs:{\"fill\":\"currentColor\",\"d\":\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Processing\")])])])])],1)])],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n middleware: ['auth', 'therapist'],\n \n head () {\n return {\n titleTemplate: 'Verification | %s',\n }\n },\n\n data() {\n return {\n working: false,\n\n supervisor: {\n name: '',\n email: '',\n phone: ''\n }\n }\n },\n\n async mounted() {\n this.$axios.$post('/account/verification/supervisor').then((response) => {\n this.supervisor = response.data;\n })\n },\n\n methods: {\n async saveSupervisor() {\n this.$refs.supervisorForm.validate().then(success => {\n if (!success) {\n return;\n }\n \n this.working = true;\n this.$axios.$post('/account/verification/supervisor/create', {\n name: this.supervisor.name,\n email: this.supervisor.email,\n phone: this.supervisor.phone\n }).then((response) => {\n this.supervisor = response.data;\n this.$toast.success('Successfully saved your supervisor').goAway(1500);\n this.working = false;\n }).catch(error => {\n this.working = false;\n this.$refs.supervisorForm.setErrors(error.response.data.errors);\n })\n })\n }\n }\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./verification.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./verification.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./verification.vue?vue&type=template&id=71160006&\"\nimport script from \"./verification.vue?vue&type=script&lang=js&\"\nexport * from \"./verification.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 \"c572abee\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {AccountProgressBar: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/AccountProgressBar.vue').default,AccountNav: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/AccountNav.vue').default,PageHeader: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/layout/PageHeader.vue').default,Qualifications: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/verification/Qualifications.vue').default,Memberships: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/verification/Memberships.vue').default,Insurance: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/verification/Insurance.vue').default,Block: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/slots/Block.vue').default})\n"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AATA;AADA;;AClBA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;;;;;;;;;;;;ACAA;AACA;AACA;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAHA;AADA;AAQA;AACA;AACA;AACA;AACA;AAJA;AACA;AAKA;AACA;AACA;AADA;AAGA;AACA;AApBA;;ACXA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AClBA;AACA;AACA;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAMA;AACA;AACA;AAHA;AAxBA;AA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AAUA;AACA;AACA;AACA;AACA;AAJA;AA7CA;;AClDA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AATA;AAFA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AATA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3DA;AA1BA;;;;;;;;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAJA;AAHA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AApCA;AAxBA;;;;;;;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAJA;AAHA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjCA;AAtBA;;ACxFA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACTA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAHA;AAHA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtBA;AA3BA;;ACvEA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}