%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/new-card-modal.js.map

{"version":3,"file":"components/new-card-modal.js","sources":["webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue?11e2","webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue?09ea","webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue?df86","webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue?ced9","webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue","webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue?4be0","webpack:///./components/blocks/Account/financial/Modals/NewCardModal.vue?1295"],"sourcesContent":["// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@nuxt/postcss8/node_modules/css-loader/dist/cjs.js??ref--4-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/@nuxt/postcss8/node_modules/postcss-loader/dist/cjs.js??ref--4-oneOf-1-2!../../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewCardModal.vue?vue&type=style&index=0&id=7219ff7f&lang=postcss&scoped=true&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add CSS to SSR context\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesServer.js\").default\nmodule.exports.__inject__ = function (context) {\n  add(\"5984fed3\", content, true, context)\n};","export * from \"-!../../../../../node_modules/vue-style-loader/index.js??ref--4-oneOf-1-0!../../../../../node_modules/@nuxt/postcss8/node_modules/css-loader/dist/cjs.js??ref--4-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/@nuxt/postcss8/node_modules/postcss-loader/dist/cjs.js??ref--4-oneOf-1-2!../../../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewCardModal.vue?vue&type=style&index=0&id=7219ff7f&lang=postcss&scoped=true&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/@nuxt/postcss8/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".modal[data-v-7219ff7f]{padding-top:20vh}\", \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value == true),expression:\"value == true\"}],staticClass:\"modal fixed z-50 bottom-0 left-0 w-full h-screen\"},[_vm._ssrNode(\"<div\"+(_vm._ssrClass(\"absolute z-10 top-0 left-0 w-full h-full bg-black bg-opacity-25 cursor-pointer transition duration-100\",_vm.isActive == true ? 'opacity-100' : 'opacity-0'))+\" data-v-7219ff7f></div> \"),_vm._ssrNode(\"<div\"+(_vm._ssrClass(\"relative z-20 h-full bg-white shadow-lg p-10 pt-16 transition transform duration-100\",_vm.isActive == true ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0'))+\" data-v-7219ff7f>\",\"</div>\",[_vm._ssrNode(\"<button type=\\\"button\\\" class=\\\"absolute top-6 right-10 uppercase hover:text-blue-light focus:outline-none transition\\\" data-v-7219ff7f>Close</button> \"),_vm._ssrNode(\"<div class=\\\"relative h-full bg-gray p-8 overflow-y-auto\\\" data-v-7219ff7f>\",\"</div>\",[_vm._ssrNode(\"<div class=\\\"max-w-lg w-full mx-auto\\\" data-v-7219ff7f>\",\"</div>\",[_vm._ssrNode(\"<h2 class=\\\"mb-8 text-center text-4xl font-bold\\\" data-v-7219ff7f>Add new card</h2> \"),_c('ValidationObserver',{ref:\"paymentForm\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.submitForm($event)}}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input-group',{attrs:{\"label\":\"Name on Card\"}},[_c('t-input',{attrs:{\"type\":\"text\",\"placeholder\":\"Name on Card\"},model:{value:(_vm.card_name),callback:function ($$v) {_vm.card_name=$$v},expression:\"card_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\":\"Card Information\"}},[_c('div',{staticClass:\"px-4 py-4 bg-white border border-black border-opacity-20 rounded-xl\",attrs:{\"id\":\"new-card-element\"}})]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center px-10\"},[_c('button',{staticClass:\"w-full btn btn-primary btn-small rounded-full\",attrs:{\"disabled\":_vm.working == true,\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Submit\")]):_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\")])])])]),_vm._v(\" \"),_c('p',{staticClass:\"text-sm text-center mt-6 text-black text-opacity-75\"},[_vm._v(\"By subscribing to Take a Seat you are agreeing to all site \"),_c('NuxtLink',{staticClass:\"text-blue-light hover:underline\",attrs:{\"to\":\"/terms-conditions\",\"target\":\"_blank\"}},[_vm._v(\"Terms and Conditions\")]),_vm._v(\". Please read carefully before continuing.\")],1)],1)])],2)])],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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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  props: {\n    value: {\n      required: true\n    }\n  },\n\n  data() {\n    return {\n      isActive: false,\n      working: false,\n      card: {},\n      card_name: null\n    }\n  },\n\n  computed: {\n    setup_intent() {\n      return this.$store.state.account.billing.setupIntent\n    }\n  },\n\n  mounted() {\n    const elements = this.$stripe.elements();\n\n    this.$store.dispatch('account/billing/setupIntent');\n    this.card = elements.create('card', {\n      style: {\n        base: {\n          fontSize: '15px',\n          fontFamily: 'Poppins, sans-serif'\n        }\n      }\n    });\n    this.card.mount('#new-card-element');\n  },\n\n  methods: {\n    closeModal: function () {\n      this.$emit(\"input\", !this.value);\n    },\n\n    submitForm() {\n      this.$refs.paymentForm.validate().then(success => {\n        if (!success) {\n          return;\n        }\n\n        this.saveCard();\n      });\n    },\n\n    async saveCard() {\n      if(this.setup_intent !== null) {\n        this.working = true;\n        const { setupIntent, error } = await this.$stripe.confirmCardSetup(\n          this.setup_intent, {\n            payment_method: {\n              card: this.card,\n              billing_details: {\n                name: this.card_name\n              }\n            }\n          });\n\n        if (error) {\n          this.$toast.error(error.message).goAway(3000);\n          this.$store.dispatch('account/billing/setupIntent')\n          this.working = false;\n        } else {\n          this.$store.dispatch('account/billing/savePaymentMethod', setupIntent.payment_method).then(() => {\n            this.$store.dispatch('account/progress/get', { slug: 'financial'})\n            this.$emit(\"input\", false);\n            this.working = false;\n          })\n        }\n      }\n    },\n  },\n\n  watch: {\n    value: function () {\n      if(this.value == true) {\n        setTimeout(() => {\n          this.isActive = true;\n        }, 100)\n      } else {\n        setTimeout(() => {\n          this.isActive = false;\n        }, 100)\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!./NewCardModal.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!./NewCardModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NewCardModal.vue?vue&type=template&id=7219ff7f&scoped=true&\"\nimport script from \"./NewCardModal.vue?vue&type=script&lang=js&\"\nexport * from \"./NewCardModal.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n  \n  var style0 = require(\"./NewCardModal.vue?vue&type=style&index=0&id=7219ff7f&lang=postcss&scoped=true&\")\nif (style0.__inject__) style0.__inject__(context)\n\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  injectStyles,\n  \"7219ff7f\",\n  \"6717c23d\"\n  \n)\n\nexport default component.exports"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AAAA;AAAA;AAAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACNA;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;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AADA;AADA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AACA;AAKA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAFA;AADA;AADA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AADA;AAFA;AADA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzCA;AA2CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA;AAhFA;;ACzDA;;;;;ACAA;AACA;AACA;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