%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/4953a6d.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[6,11],{377:function(t,e,r){"use strict";r.r(e);var n={props:{title:{type:String,required:!0},description:{type:String,required:!1},width:{type:String,required:!1}}},c=r(10),component=Object(c.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("section",{staticClass:"bg-gray py-8 md:py-20 px-4 md:px-8 mb-8"},[r("div",{staticClass:"max-w-xl mx-auto w-full"},[r("header",{staticClass:"text-center mb-10"},[r("h2",{staticClass:"text-2xl sm:text-3xl font-bold",class:t.description?"mb-8":""},[t._v(t._s(t.title))]),t._v(" "),t.description?r("p",{staticClass:"text-sm sm:text-base"},[t._v(t._s(t.description))]):t._e()])]),t._v(" "),r("div",{staticClass:"mx-auto w-full",class:t.width?t.width:"max-w-xl"},[t._t("default")],2)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Header:r(101).default})},400:function(t,e,r){t.exports=r.p+"img/icon-stripe.7b66af1.svg"},428:function(t,e,r){"use strict";r.r(e);var n=r(0),c=(r(3),{data:function(){return{loading:!0,working:!1,is_complete:!1,showModal:!1}},mounted:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.$get("/stripe/account").then((function(e){t.loading=!1,t.is_complete=e,0==t.is_complete&&(t.showModal=!0)})).catch((function(e){t.loading=!1,t.$toast.error(e).goAway(3e3)}));case 2:case"end":return e.stop()}}),e)})))()},methods:{createStripeAccountLink:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.working=!0,e.next=3,t.$axios.$get("/stripe/account-link").then((function(t){window.location.href=t.url})).catch((function(e){t.$toast.error(e).goAway(3e3)}));case 3:case"end":return e.stop()}}),e)})))()},createStripeLoginLink:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.working=!0,e.next=3,t.$axios.$get("/stripe/login-link").then((function(t){window.location.href=t.url})).catch((function(e){t.$toast.error(e).goAway(3e3)}));case 3:case"end":return e.stop()}}),e)})))()}}}),o=r(10),component=Object(o.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Block",{attrs:{title:"Bank Details",description:"Manage your payouts on Stripe"}},[0==t.loading?n("div",[0==t.is_complete?n("div",{staticClass:"flex items-center justify-center"},[n("button",{staticClass:"btn btn-small btn-primary rounded-full",attrs:{type:"button"},on:{click:t.createStripeAccountLink}},[0==t.working?n("span",{staticClass:"flex items-center justify-center"},[t._v("Connect to "),n("img",{staticClass:"ml-1",attrs:{src:r(400),alt:"Stripe"}})]):n("span",{staticClass:"flex items-center justify-center"},[n("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"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),n("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"}})]),t._v(" "),n("span",[t._v("Redirecting")])])])]):n("div",{staticClass:"flex items-center justify-center"},[n("button",{staticClass:"btn btn-small btn-primary rounded-full",attrs:{type:"button"},on:{click:t.createStripeLoginLink}},[0==t.working?n("span",{staticClass:"flex items-center justify-center"},[t._v("View "),n("img",{staticClass:"mx-1",attrs:{src:r(400),alt:"Stripe"}}),t._v(" Dashboard")]):n("span",{staticClass:"flex items-center justify-center"},[n("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"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),n("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"}})]),t._v(" "),n("span",[t._v("Redirecting")])])]),t._v(" "),n("t-modal",{attrs:{header:"Setup your stripe account"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("div",{staticClass:"flex justify-between"},[n("button",{staticClass:"btn btn-primary btn-small",attrs:{type:"button"},on:{click:function(e){t.showModal=!1}}},[t._v("Not Now")]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-small",attrs:{type:"button"},on:{click:t.createStripeLoginLink}},[0==t.working?n("span",{staticClass:"flex items-center justify-center"},[t._v("Visit "),n("img",{staticClass:"mx-1",attrs:{src:r(400),alt:"Stripe"}})]):n("span",{staticClass:"flex items-center justify-center"},[n("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"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),n("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"}})]),t._v(" "),n("span",[t._v("Redirecting")])])])])]},proxy:!0}],null,!1,28807270),model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[n("p",[t._v("You need to finish setting up your stripe account in order to recieve payments.")])])],1)]):n("div",{staticClass:"flex items-center justify-center"},[n("span",{staticClass:"flex items-center justify-center"},[n("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"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),n("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"}})]),t._v(" "),n("span",[t._v("Fetching Stripe Account")])])])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Block:r(377).default})}}]);

Zerion Mini Shell 1.0