%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/8127b39.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[27,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}}},o=r(10),component=Object(o.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})},424:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(3),{name:"ProfileRates",data:function(){return{working:!1,products:{individuals_price:0,couples_price:0},money:{decimal:",",thousands:",",prefix:"£ ",suffix:"",precision:0,masked:!1}}},computed:{session_types:function(){return this.$store.state.session_types.list}},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("/account/profile/products").then((function(e){e.data.data.length&&(t.products.individuals_price=e.data.data[0].price,t.products.couples_price=e.data.data[1].price)})).catch((function(e){t.$toast.error(e).goAway(1e3)}));case 2:case"end":return e.stop()}}),e)})))()},methods:{submit: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:t.$refs.form.validate().then((function(e){e&&(t.working=!0,t.$axios.post("/account/profile/products/create",{individuals_price:t.products.individuals_price,couples_price:t.products.couples_price}).then((function(e){t.working=!1,t.$store.dispatch("account/progress/get",{slug:"profile"}),t.$toast.success("Successfully updated your rates!").goAway(3e3)})).catch((function(e){t.working=!1,t.$toast.error(e).goAway(3e3)})))}));case 1:case"end":return e.stop()}}),e)})))()}}}),c=r(10),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Block",{attrs:{title:"Rates",description:"Please set your session prices. We don’t want you to devalue your services so have set rates for individual or couples only.",width:"max-w-3xl"}},[r("ValidationObserver",{ref:"form"},[r("form",{attrs:{role:"form",method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[r("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-0"},[r("ValidationProvider",{attrs:{rules:"required|integer"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Individual Price"}},[r("money",t._b({model:{value:t.products.individuals_price,callback:function(e){t.$set(t.products,"individuals_price",e)},expression:"products.individuals_price"}},"money",t.money,!1)),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e()],1)]}}])}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required|integer"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Couples Price"}},[r("money",t._b({model:{value:t.products.couples_price,callback:function(e){t.$set(t.products,"couples_price",e)},expression:"products.couples_price"}},"money",t.money,!1)),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e()],1)]}}])})],1),t._v(" "),r("div",{staticClass:"mt-6 flex items-center justify-center"},[r("button",{staticClass:"btn btn-primary btn-small",attrs:{type:"submit"}},[0==t.working?r("span",[t._v("Save Changes")]):r("span",{staticClass:"flex items-center justify-center"},[r("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"}},[r("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),r("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(" "),r("span",[t._v("Saving")])])])])])])],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Block:r(377).default})}}]);

Zerion Mini Shell 1.0