%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/c9c29bc.js |
(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{419:function(t,e,r){var content=r(456);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(34).default)("3dbf1bd7",content,!0,{sourceMap:!1})},455:function(t,e,r){"use strict";r(419)},456:function(t,e,r){var n=r(33)((function(i){return i[1]}));n.push([t.i,".Password[data-v-182b6408]{width:100%;max-width:100%;padding-left:0.75rem;padding-right:0.75rem}.Password__strength-meter[data-v-182b6408]{margin:10px 0}",""]),t.exports=n},488:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(3),{auth:"guest",head:function(){return{titleTemplate:"Therapist Registration | %s"}},data:function(){return{working:!1,form:{business_type:null,first_name:null,last_name:null,email:null,password:null,password_confirmation:null}}},methods:{userRegister: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("/auth/therapist/register",t.form).then((function(e){200==e.status&&t.$auth.loginWith("laravelJWT",{data:{email:t.form.email,password:t.form.password}}).then((function(e){t.$router.push({path:"/therapist"})}))})).catch((function(e){t.$refs.form.setErrors(e.response.data.errors),t.working=!1})))}));case 1:case"end":return e.stop()}}),e)})))()}}}),l=(r(455),r(10)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-wrapper"},[r("section",{staticClass:"bg-gray py-10 md:py-20 px-6 md:px-8"},[r("div",{staticClass:"max-w-2xl mx-auto w-full"},[r("header",{staticClass:"text-center mb-10"},[r("h1",{staticClass:"text-3xl md:text-5xl font-bold mb-6"},[t._v("Therapist Registration")]),t._v(" "),r("div",{staticClass:"mt-6 flex flex-col items-center justify-center"},[r("NuxtLink",{staticClass:"flex items-center suppercase text-blue-light",attrs:{to:"/register"}},[r("svg",{staticClass:"w-5 h-5 mr-2",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[r("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}})]),t._v(" "),r("span",[t._v("I am not a Therapist")])])],1)]),t._v(" "),r("ValidationObserver",{ref:"form"},[r("form",{attrs:{role:"form",method:"POST"},on:{submit:function(e){return e.preventDefault(),t.userRegister(e)}}},[r("ValidationProvider",{attrs:{rules:"required",name:"business_type"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Business Type"}},[r("t-select",{attrs:{wrapped:"",placeholder:"Select an option",options:["Sole Trader","Limited Business"]},model:{value:t.form.business_type,callback:function(e){t.$set(t.form,"business_type",e)},expression:"form.business_type"}}),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e()],1)]}}])}),t._v(" "),r("div",{staticClass:"grid grid-cols-1 md:grid-cols-2 gap-4"},[r("ValidationProvider",{attrs:{rules:"required",name:"first_name"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"First Name"}},[r("t-input",{attrs:{type:"text",id:"first_name",placeholder:"Enter your first name"},model:{value:t.form.first_name,callback:function(e){t.$set(t.form,"first_name",e)},expression:"form.first_name"}}),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",name:"last_name"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Last Name"}},[r("t-input",{attrs:{type:"text",id:"last_name",placeholder:"Enter your last name"},model:{value:t.form.last_name,callback:function(e){t.$set(t.form,"last_name",e)},expression:"form.last_name"}}),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e()],1)]}}])})],1),t._v(" "),r("ValidationProvider",{attrs:{name:"email",rules:"required|email"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Email"}},[r("t-input",{attrs:{type:"email",id:"email",placeholder:"Enter your email address"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):r("span",{staticClass:"block px-3 mt-2 text-sm text-black text-opacity-75"},[t._v("Use this as your login, and we will also contact you at this address")])],1)]}}])}),t._v(" "),r("ValidationProvider",{attrs:{rules:"required|password:@password_confirmation",name:"password"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Password"}},[r("t-input",{attrs:{type:"password",id:"password",placeholder:"Enter a strong password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e(),t._v(" "),r("password",{attrs:{"strength-meter-only":!0},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)]}}])}),t._v(" "),r("ValidationProvider",{attrs:{name:"password_confirmation",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("t-input-group",{attrs:{label:"Password Confirmation"}},[r("t-input",{attrs:{type:"password",id:"password_confirmation",placeholder:"Enter your password again"},model:{value:t.form.password_confirmation,callback:function(e){t.$set(t.form,"password_confirmation",e)},expression:"form.password_confirmation"}}),t._v(" "),n[0]?r("span",{staticClass:"field-invalid"},[t._v(t._s(n[0]))]):t._e()],1)]}}])}),t._v(" "),r("button",{staticClass:"w-full btn btn-primary rounded-full mb-6",attrs:{disabled:1==t.working,type:"submit"}},[0==t.working?r("span",[t._v("Register")]):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("Processing")])])]),t._v(" "),r("p",{staticClass:"text-sm text-center mt-6 text-black text-opacity-75"},[t._v("By subscribing to Take a Seat you are agreeing to all site "),r("NuxtLink",{staticClass:"text-blue-light hover:underline",attrs:{to:"/terms-conditions",target:"_blank"}},[t._v("Terms and Conditions")]),t._v(". Please read carefully before continuing.")],1)],1)])],1)])])}),[],!1,null,"182b6408",null);e.default=component.exports;installComponents(component,{Header:r(101).default})}}]);