%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/account/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/account/settings.js.map

{"version":3,"file":"pages/account/settings.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:///./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/settings/AccountPersonal.vue?f984","webpack:///./components/blocks/Account/settings/AccountPersonal.vue","webpack:///./components/blocks/Account/settings/AccountPersonal.vue?6ef8","webpack:///./components/blocks/Account/settings/AccountPersonal.vue?20d3","webpack:///./components/blocks/Account/settings/AccountBusiness.vue?9202","webpack:///./components/blocks/Account/settings/AccountBusiness.vue","webpack:///./components/blocks/Account/settings/AccountBusiness.vue?8b19","webpack:///./components/blocks/Account/settings/AccountBusiness.vue?6258","webpack:///./components/blocks/Account/settings/AccountLocations.vue?5d81","webpack:///./components/blocks/Account/settings/AccountLocations.vue","webpack:///./components/blocks/Account/settings/AccountLocations.vue?2ad7","webpack:///./components/blocks/Account/settings/AccountLocations.vue?ad6f","webpack:///./components/blocks/Account/settings/AccountSecurity.vue?99f6","webpack:///./components/blocks/Account/settings/AccountSecurity.vue","webpack:///./components/blocks/Account/settings/AccountSecurity.vue?5d99","webpack:///./components/blocks/Account/settings/AccountSecurity.vue?06d3","webpack:///./pages/account/settings.vue?edcd","webpack:///./pages/account/settings.vue","webpack:///./pages/account/settings.vue?d161","webpack:///./pages/account/settings.vue?be36"],"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","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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Block',{attrs:{\"title\":\"Personal Details\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.saveDetails($event)}}},[_c('t-input-group',{attrs:{\"label\":\"First Name\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.first_name),expression:\"first_name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"first_name\",\"name\":\"first_name\"},domProps:{\"value\":(_vm.first_name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.first_name=$event.target.value}}}),_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\":\"Surname\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.last_name),expression:\"last_name\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"last_name\",\"name\":\"last_name\"},domProps:{\"value\":(_vm.last_name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.last_name=$event.target.value}}}),_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 Address\"}},[_c('ValidationProvider',{attrs:{\"name\":\"email\",\"rules\":\"required|email\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.email),expression:\"email\"}],staticClass:\"form-control\",attrs:{\"type\":\"email\",\"id\":\"email\",\"name\":\"email\"},domProps:{\"value\":(_vm.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.email=$event.target.value}}}),_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\":\"Phone Number\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required|phone_number\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.phone),expression:\"phone\"}],staticClass:\"form-control\",attrs:{\"type\":\"tel\",\"id\":\"phone\",\"name\":\"phone\",\"placeholder\":\"+44\"},domProps:{\"value\":(_vm.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.phone=$event.target.value}}}),_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\":\"Home Address\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.address),expression:\"address.address\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"address\",\"name\":\"address\"},domProps:{\"value\":(_vm.address.address)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"address\", $event.target.value)}}}),_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\":\"Town/City\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.town_city),expression:\"address.town_city\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"town\",\"name\":\"town\"},domProps:{\"value\":(_vm.address.town_city)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"town_city\", $event.target.value)}}}),_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\":\"Postcode\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.postcode),expression:\"address.postcode\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"Postcode\",\"name\":\"Postcode\"},domProps:{\"value\":(_vm.address.postcode)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"postcode\", $event.target.value)}}}),_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\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Changes\")]):_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(\"Saving\")])])])])],1)])],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//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n  data() {\n    return {\n      working: false,\n      first_name: '',\n      last_name: '',\n      email: '',\n      phone: '',\n      address: {\n        address: '',\n        town_city: '',\n        postcode: ''\n      }\n    }\n  },\n\n  async fetch() {\n    const { data } = await this.$axios.$get('/account/details/personal')\n    \n    for (const [key, value] of Object.entries(data)) {\n      if(value !== null) {\n        this[key] = value;\n      } else if(Array.isArray(value) && value !== null) {\n        this[key].push(value);\n      }\n    }\n  },\n\n  methods: {\n    async saveDetails() {\n      this.$refs.form.validate().then(success => {\n        if (!success) {\n          return;\n        }\n        \n        this.working = true;\n        this.$axios.$post('/account/details/personal/update', {\n          first_name: this.first_name,\n          last_name: this.last_name,\n          email: this.email,\n          phone: this.phone,\n          address: this.address\n        }).then((response) => {\n          this.working = false;\n          this.$store.dispatch('account/progress/get', { slug: 'settings' })\n          this.$toast.success(response).goAway(1500);\n        }).catch(error => {\n          this.working = false;\n          this.$refs.form.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!./AccountPersonal.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!./AccountPersonal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountPersonal.vue?vue&type=template&id=3b967854&\"\nimport script from \"./AccountPersonal.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountPersonal.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  \"435253d8\"\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\":\"Business Details\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.saveDetails($event)}}},[_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"business_type\"}},[_vm._v(\"Business Type\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.business_type),expression:\"business_type\"}],staticClass:\"form-select\",attrs:{\"name\":\"business_type\",\"id\":\"business_type\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.business_type=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"option\":\"Sole Trader\"}},[_vm._v(\"Sole Trader\")]),_vm._v(\" \"),_c('option',{attrs:{\"option\":\"Limited Business\"}},[_vm._v(\"Limited Business\")])])]),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"same_as_personal_address\"}},[_vm._v(\"Business Address\")]),_vm._v(\" \"),_c('label',{staticClass:\"flex items-center px-3\"},[_c('t-checkbox',{attrs:{\"name\":\"same_as_personal_address\",\"checked\":\"\"},model:{value:(_vm.is_personal_same),callback:function ($$v) {_vm.is_personal_same=$$v},expression:\"is_personal_same\"}}),_vm._v(\" \"),_c('span',{staticClass:\"block pl-2.5\"},[_vm._v(\"Same as personal address\")])],1),_vm._v(\" \"),(_vm.is_personal_same == false)?[_c('div',{staticClass:\"relative mb-4 mt-6\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"business_address\"}},[_vm._v(\"Address\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.address),expression:\"address.address\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"business_address\",\"name\":\"address\"},domProps:{\"value\":(_vm.address.address)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"address\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,2068738674)})],1),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"business_town\"}},[_vm._v(\"Town/City\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.town_city),expression:\"address.town_city\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"business_town\",\"name\":\"town\"},domProps:{\"value\":(_vm.address.town_city)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"town_city\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,4086114514)})],1),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"business_postcode\"}},[_vm._v(\"Postcode\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.address.postcode),expression:\"address.postcode\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":\"business_postcode\",\"name\":\"Postcode\"},domProps:{\"value\":(_vm.address.postcode)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.address, \"postcode\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,3636352082)})],1)]:_vm._e()],2),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Changes\")]):_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(\"Saving\")])])])])])])],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\nexport default {\n  data() {\n    return {\n      working: false,\n      business_type: 'Sole Trader',\n      is_personal_same: true,\n      address: {\n        address: '',\n        town_city: '',\n        postcode: ''\n      }\n    }\n  },\n\n  async mounted() {\n    await this.$axios.$get('/account/details/business').then((response) => {\n      this.business_type = response.business_type;\n      this.is_personal_same = response.is_personal_same;\n      if(response.address !== null) {\n        this.address = response.address;\n      }\n    })\n  },\n\n  methods: {\n    async saveDetails() {\n      this.$refs.form.validate().then(success => {\n        if (!success) {\n          return;\n        }\n        \n        this.working = true;\n        this.$axios.$post('/account/details/business', {\n          business_type: this.business_type,\n          is_personal_same: this.is_personal_same,\n          address: this.address\n        }).then(() => {\n          this.working = false;\n          this.$store.dispatch('account/progress/get', { slug: 'settings' })\n          this.$toast.success('Successfully updated your business settings').goAway(3000);\n        }).catch(error => {\n          this.working = false;\n          this.$refs.form.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!./AccountBusiness.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!./AccountBusiness.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountBusiness.vue?vue&type=template&id=7123b343&\"\nimport script from \"./AccountBusiness.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountBusiness.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  \"74aea0d8\"\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\":\"Practice Locations\",\"description\":\"If you offer therapy session at specific locations such as a rented office, you should add them here.\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.saveAddresses($event)}}},[_vm._l((_vm.addresses),function(address,key){return _c('div',{key:key,staticClass:\"mb-8\"},[_c('h2',{staticClass:\"px-3 text-xl font-bold mb-3\"},[_vm._v(\"Address \"+_vm._s((key + 1)))]),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":'address-'+key}},[_vm._v(\"Address\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.addresses[key].address),expression:\"addresses[key].address\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'address-'+key,\"name\":\"address\"},domProps:{\"value\":(_vm.addresses[key].address)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.addresses[key], \"address\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":'town-'+key}},[_vm._v(\"Town/City\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.addresses[key].town_city),expression:\"addresses[key].town_city\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'town-'+key,\"name\":\"town\"},domProps:{\"value\":(_vm.addresses[key].town_city)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.addresses[key], \"town_city\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-4\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":'postcode-'+key}},[_vm._v(\"Postcode\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":{ required: true, regex: /^(([gG][iI][rR] {0,}0[aA]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$/ }},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.addresses[key].postcode),expression:\"addresses[key].postcode\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"id\":'postcode-'+key,\"name\":\"Postcode\"},domProps:{\"value\":(_vm.addresses[key].postcode)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.addresses[key], \"postcode\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)})],1),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"flex items-center\"},[_c('t-radio',{attrs:{\"name\":\"default_address\"},on:{\"change\":function($event){return _vm.changeDefaultRadioButtons(key)}},model:{value:(_vm.addresses[key].is_default),callback:function ($$v) {_vm.$set(_vm.addresses[key], \"is_default\", $$v)},expression:\"addresses[key].is_default\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-2 text-sm\"},[_vm._v(\"Default Address\")])],1),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center my-4\"},[_c('button',{staticClass:\"uppercase text-red text-sm focus:outline-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.remove(key)}}},[_vm._v(\"Remove\")])])],1)}),_vm._v(\" \"),(_vm.addresses.length > 0)?_c('div',{staticClass:\"flex items-center justify-center my-6\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Save Addresses\")]):_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(\"Saving\")])])])]):_vm._e()],2)]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center\"},[_c('button',{staticClass:\"uppercase text-blue-light focus:outline-none\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.add}},[_vm._v(\"Add Practice Location\")])])],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      addresses: []\n    }\n  },\n\n  async mounted() {\n    await this.$axios.$get('/account/details/addresses').then((response) => {\n      this.addresses = response.data;\n    })\n  },\n  \n  methods: {\n    add() {\n      this.addresses.push({\n        address: '',\n        town_city: '',\n        postcode: '',\n        is_default: false\n      });\n    },\n\n    remove(key) {\n      this.addresses.splice(key, 1);\n    },\n\n    changeDefaultRadioButtons(key) {\n      this.addresses.forEach(function (item, index) {\n        if(index == key) {\n          this.addresses[index].is_default = true;\n        } else {\n          this.addresses[index].is_default = false;\n        }\n      }.bind(this));\n    },\n\n    async saveAddresses() {\n      this.$refs.form.validate().then(success => {\n        if (!success) {\n          return;\n        }\n        \n        this.working = true;\n        this.$axios.$post('/account/details/addresses/update', {\n          addresses: this.addresses\n        }).then((response) => {\n          this.addresses = response.data;\n          this.working = false;\n          this.$store.dispatch('account/progress/get', { slug: 'settings' })\n          this.$toast.success('Succesfully updated your practice locations').goAway(1500);\n        }).catch(error => {\n          this.working = false;\n          this.$refs.form.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!./AccountLocations.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!./AccountLocations.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountLocations.vue?vue&type=template&id=0b488374&\"\nimport script from \"./AccountLocations.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountLocations.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  \"6274b53a\"\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\":\"Security\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.save($event)}}},[_c('div',{staticClass:\"relative mb-6\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"password\"}},[_vm._v(\"Password\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required|password:@confirm\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.password),expression:\"password\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"id\":\"password\",\"placeholder\":\"Enter a new strong password\"},domProps:{\"value\":(_vm.password)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.password=$event.target.value}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e(),_vm._v(\" \"),_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}})]}}])})],1),_vm._v(\" \"),_c('div',{staticClass:\"relative mb-10\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"password_confirmation\"}},[_vm._v(\"Password Confirmation\")]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"name\":\"confirm\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.password_confirmation),expression:\"password_confirmation\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"id\":\"password_confirmation\",\"placeholder\":\"Enter your new password again\"},domProps:{\"value\":(_vm.password_confirmation)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.password_confirmation=$event.target.value}}}),_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\"},[_c('button',{staticClass:\"btn btn-small btn-primary rounded-full\",attrs:{\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Change Password\")]):_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(\"Saving\")])])])])])])],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\nexport default {\n  data() {\n    return {\n      working: false,\n      password: '',\n      password_confirmation: ''\n    }\n  },\n\n  methods: {\n    async save() {\n      this.$refs.form.validate().then(success => {\n        if (!success) {\n          return;\n        }\n        \n        this.working = true;\n        this.$axios.$post('/account/change-password', {\n          password: this.password,\n          password_confirmation: this.password_confirmation\n        }).then((response) => {\n          this.working = false;\n          this.$store.dispatch('account/progress/get', { slug: 'settings' })\n          this.$toast.success(response).goAway(1500);\n        }).catch(error => {\n          this.working = false;\n          this.$refs.form.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!./AccountSecurity.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!./AccountSecurity.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountSecurity.vue?vue&type=template&id=0cae1884&\"\nimport script from \"./AccountSecurity.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountSecurity.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  \"1deea714\"\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(\"Settings\")]),_vm._v(\" \"),_c('AccountProgressBar',{attrs:{\"slug\":\"settings\"}}),_vm._v(\" \"),_c('div',{staticClass:\"page-header-bottom\"},[_c('AccountNav')],1)],1),_vm._ssrNode(\" \"),_c('Block',{attrs:{\"title\":\"Communication\",\"description\":\"Please select the preferred channels take a seat can communicate with you. These preferences can be updated at any time.\"}},[_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.submit($event)}}},[_c('t-input-group',{attrs:{\"label\":\"Receive Communications Via:\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"px-3 my-3 flex items-center\"},[_c('t-checkbox',{attrs:{\"name\":\"communication\"},on:{\"change\":_vm.submit},model:{value:(_vm.communication_settings.is_emailed_allowed),callback:function ($$v) {_vm.$set(_vm.communication_settings, \"is_emailed_allowed\", $$v)},expression:\"communication_settings.is_emailed_allowed\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-2 text-sm\"},[_vm._v(\"Email\")])],1),_vm._v(\" \"),_c('label',{staticClass:\"px-3 my-3 flex items-center\"},[_c('t-checkbox',{attrs:{\"name\":\"communication\"},on:{\"change\":_vm.submit},model:{value:(_vm.communication_settings.is_phone_allowed),callback:function ($$v) {_vm.$set(_vm.communication_settings, \"is_phone_allowed\", $$v)},expression:\"communication_settings.is_phone_allowed\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-2 text-sm\"},[_vm._v(\"Phone\")])],1),_vm._v(\" \"),_c('label',{staticClass:\"px-3 my-3 flex items-center\"},[_c('t-checkbox',{attrs:{\"name\":\"communication\"},on:{\"change\":_vm.submit},model:{value:(_vm.communication_settings.is_post_allowed),callback:function ($$v) {_vm.$set(_vm.communication_settings, \"is_post_allowed\", $$v)},expression:\"communication_settings.is_post_allowed\"}}),_vm._v(\" \"),_c('span',{staticClass:\"ml-2 text-sm\"},[_vm._v(\"Post\")])],1),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1)],1)])],1),_vm._ssrNode(\" \"),_c('AccountPersonal'),_vm._ssrNode(\" \"),(_vm.is_therapist)?_c('AccountBusiness'):_vm._e(),_vm._ssrNode(\" \"),(_vm.is_therapist)?_c('AccountLocations'):_vm._e(),_vm._ssrNode(\" \"),_c('AccountSecurity')],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\nexport default {\n  middleware: ['auth'],\n\n  head () {\n    return {\n      titleTemplate: 'Settings | %s',\n    }\n  },\n\n  data() {\n    return {\n      working: false,\n      communication_settings: {\n        is_emailed_allowed: false,\n        is_phone_allowed: false,\n        is_post_allowed: false,\n      }\n    }\n  },\n\n  computed: {\n    is_therapist() {\n      return this.$auth.user.data.role.name == 'therapist';\n    }\n  },\n\n  async asyncData ({ app }) {\n    const communication_settings = await app.$axios.$get('/account/settings')\n\n    return { communication_settings }\n  },\n\n  methods: {\n    async submit() {\n      this.$refs.form.validate().then(success => {\n        if (!success) {\n          return;\n        }\n\n        this.working = true;\n        this.$axios.post('/account/settings', {\n          communication_settings: this.communication_settings\n        }).then((res) => {\n          if (res.status === 200) {\n            this.working = false;\n            this.$store.dispatch('account/progress/get', { slug: 'settings' })\n            this.$toast.success('Successfully updated your settings').goAway(1000);\n          }\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!./settings.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!./settings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./settings.vue?vue&type=template&id=ef5508aa&\"\nimport script from \"./settings.vue?vue&type=script&lang=js&\"\nexport * from \"./settings.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  \"e49bb1de\"\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,Block: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/slots/Block.vue').default,AccountPersonal: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/settings/AccountPersonal.vue').default,AccountBusiness: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/settings/AccountBusiness.vue').default,AccountLocations: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/settings/AccountLocations.vue').default,AccountSecurity: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/blocks/Account/settings/AccountSecurity.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;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;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AAHA;AANA;AAYA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAxBA;AA5BA;;ACjGA;;;;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAJA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtBA;AAxBA;;AChFA;;;;;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;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AAFA;AAIA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5CA;AAdA;;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;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArBA;AATA;;ACvDA;;;;;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;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AAHA;AAFA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AACA;AAKA;AAAA;AAAA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAnBA;AAhCA;;ACrDA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}

Zerion Mini Shell 1.0