%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/8929afe.js |
(window.webpackJsonp=window.webpackJsonp||[]).push([[28,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})},425:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(3),{name:"ProfileSessionTypes",data:function(){return{working:!1,form:{session_types:[]}}},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("/profile/session-types").then((function(e){t.form.session_types=e}));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("/profile/session-types/update",{session_types:t.form.session_types}).then((function(e){t.working=!1,t.$store.dispatch("account/progress/get",{slug:"profile"}),t.$toast.success(e).goAway(1500)})))}));case 1:case"end":return e.stop()}}),e)})))()}}}),l=r(10),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Block",{attrs:{title:"Session Types",description:"Please select all of the therapy session types you currently provide.."}},[r("ValidationObserver",{ref:"form"},[r("form",{attrs:{role:"form",method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[r("t-input-group",{attrs:{label:"Sessions Available Via:"}},[r("ValidationProvider",{attrs:{rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-checkbox-group",{attrs:{name:"session_types",textAttribute:"name",valueAttribute:"id",options:t.session_types},model:{value:t.form.session_types,callback:function(e){t.$set(t.form,"session_types",e)},expression:"form.session_types"}}),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e()]}}])})],1),t._v(" "),r("div",{staticClass:"flex items-center justify-center"},[r("button",{staticClass:"btn btn-small btn-primary rounded-full",attrs:{type:"submit"}},[0==t.working?r("span",[t._v("Save Sessions")]):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)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Block:r(377).default})}}]);