(window.webpackJsonp=window.webpackJsonp||[]).push([[218,43,70,145],{1112:function(t,e,n){"use strict";n.r(e);var r=n(1113),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e.default=o.a},1113:function(t,e,n){"use strict";var r=n(86);n(12),n(28);var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=o(n(1)),d=n(301),l=o(n(718)),f=o(n(646));e.default=c.default.extend({components:{DtypeEmail:f.default,AuthCodeForm:l.default},layout:"signUpLayout",asyncData:d.createAsyncData((function(t){var e=t.route,n=t.$cookies,data={userName:"",status:1,isBeforeSignIn:!0},r=e.query.email||"";return data.userName=r,r&&n.get("ANSWER_SESSION")&&(data.status=2,data.isBeforeSignIn=!1),data})),data:function(){return{userName:"",isAgree:!1,isBeforeSignIn:!0,answer:"",signUpError:"",codeError:"",status:1}},head:function(){return{title:"".concat(this.title)}},computed:{inValidSignUp:function(){return!this.isAgree},title:function(){return 1===this.status?"新規会員登録":2===this.status?"認証コード入力":""},spaPageLocation:function(){var path=this.$route.path;return 1===this.status?path:2===this.status?"".concat(path,"/certification"):path}},watch:{status:function(){this.$meta().refresh(),this.$gtm.push({event:"spaPageView",spaPageLocation:this.spaPageLocation})}},mounted:function(){this.$nuxt.$emit("showSignUpHeaderLink")},methods:{signUp:function(){var t=this;return r(regeneratorRuntime.mark((function e(){var data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$nuxt.$emit("showLoading"),t.signUpError="",t.codeError="",data={userName:t.userName},e.next=6,t.$axios.post("/api/auth/sign-up",data).then((function(){t.doSignIn()})).catch((function(e){var n=d.extractErrorMsg(e);t.$nuxt.$emit("hideLoading"),n?t.signUpError=n:t.$nuxt.error(e)}));case 6:case"end":return e.stop()}}),e)})))()},doSignIn:function(){var t=this;return r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.signIn();case 2:t.$nuxt.$emit("hideSignUpHeaderLink"),t.signUpError="",t.status=2;case 5:case"end":return e.stop()}}),e)})))()},signIn:function(){var t=this;return r(regeneratorRuntime.mark((function e(){var data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return data={userName:t.userName},e.next=3,t.$axios.post("/api/auth/sign-in",data).then((function(){t.isBeforeSignIn=!1,t.codeError=""})).finally((function(){t.$nuxt.$emit("hideLoading")}));case 3:case"end":return e.stop()}}),e)})))()},authAnswer:function(){var t=this;return r(regeneratorRuntime.mark((function e(){var data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.codeError="",data={userName:t.userName,answer:t.answer},t.$nuxt.$emit("showLoading"),e.next=5,t.$accessor.answer(data).then((function(){t.$router.push("/registration")})).catch((function(e){var n=d.extractErrorMsg(e);n?t.codeError=n:t.$nuxt.error(e)})).finally((function(){t.$nuxt.$emit("hideLoading")}));case 5:case"end":return e.stop()}}),e)})))()},back:function(){this.$nuxt.$emit("showSignUpHeaderLink"),this.isBeforeSignIn=!0,this.answer="",this.codeError="",this.status--}}})},1339:function(t,e,n){var content=n(1473);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(58).default)("9a3e00bc",content,!0,{sourceMap:!1})},1472:function(t,e,n){"use strict";n(1339)},1473:function(t,e,n){var r=n(57)((function(i){return i[1]}));r.push([t.i,"@media only screen and (min-width:901px){.agreement[data-v-979e2de0]{margin-top:72px}}@media only screen and (max-width:900px){.agreement[data-v-979e2de0]{margin:56px auto 0}}",""]),r.locals={},t.exports=r},1555:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));n(42),n(44);var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("div",{staticClass:"page-heading"},[e("h1",{staticClass:"page-heading__title"},[t._v(t._s(t.title))])]),t._v(" "),e("div",{staticClass:"main-content",attrs:{role:"main"}},[e("div",{staticClass:"contents main-width"},[1===t.status?e("div",{staticClass:"register-form"},[e("div",{staticClass:"register-form__heading"},[e("h2",{staticClass:"register-form__title"},[t._v("\n            登録するメールアドレスを入力してください\n          ")]),t._v(" "),t.signUpError?e("p",{staticClass:"error error-message"},[t._v("\n            "+t._s(t.signUpError)+"\n          ")]):t._e(),t._v(" "),t._m(0)]),t._v(" "),e("dtype-email",{attrs:{"_error-message":t.signUpError},model:{value:t.userName,callback:function(e){t.userName=e},expression:"userName"}}),t._v(" "),e("div",{staticClass:"agreement"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isAgree,expression:"isAgree"}],attrs:{id:"agree",type:"checkbox"},domProps:{checked:Array.isArray(t.isAgree)?t._i(t.isAgree,null)>-1:t.isAgree},on:{change:function(e){var n=t.isAgree,r=e.target,o=!!r.checked;if(Array.isArray(n)){var c=t._i(n,null);r.checked?c<0&&(t.isAgree=n.concat([null])):c>-1&&(t.isAgree=n.slice(0,c).concat(n.slice(c+1)))}else t.isAgree=o}}}),t._v(" "),e("label",{attrs:{for:"agree"}},[e("nuxt-link",{attrs:{to:"/privacy",target:"_blank"}},[t._v("\n              プライバシーポリシー\n            ")]),t._v("\n            および\n            "),e("nuxt-link",{attrs:{to:"/policy",target:"_blank"}},[t._v("利用規約")]),t._v("\n            に同意する\n          ")],1)]),t._v(" "),e("div",{staticClass:"btn-wrapper"},[e("button",{staticClass:"primary-btn btn--next",attrs:{type:"button",disabled:t.inValidSignUp},on:{click:t.signUp}},[t._v("\n            次へ\n          ")])])],1):2!==t.status||t.isBeforeSignIn?t._e():e("auth-code-form",{attrs:{"_retry-code":t.signUp,_email:t.userName,_submit:t.authAnswer,_back:t.back,"_code-error":t.codeError,_answer:t.answer},on:{"update:_answer":function(e){t.answer=e}}})],1)])])},o=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("p",{staticClass:"register-form__lead"},[t._v("\n            登録のための認証コードをお送りいたします。"),e("br",{staticClass:"sp-none"}),t._v("\n            今後、ログイン情報として用いるほか、スカウトのお知らせなどをご案内します。"),e("br",{staticClass:"sp-none"}),t._v("\n            なお、メールアドレスの変更や受信内容の設定はいつでも行えます。\n          ")])}]},1614:function(t,e,n){"use strict";n.r(e);var r=n(1555),o=n(1112);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n(1472);var d=n(6),component=Object(d.a)(o.default,r.a,r.b,!1,null,"979e2de0",null);e.default=component.exports},456:function(t,e,n){"use strict";n.r(e);var r=n(457),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e.default=o.a},457:function(t,e,n){"use strict";var r=n(86);n(28);var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=o(n(1));e.default=c.default.extend({props:{_click:{type:Function,required:!0},_label:{type:String,required:!0},_disabled:{type:Boolean,default:!1}},data:function(){return{processing:!1}},computed:{isDisabled:function(){return this._disabled||this.processing}},methods:{onClick:function(){var t=this;return r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.processStart(),e.next=3,t._click();case 3:t.processEnd();case 4:case"end":return e.stop()}}),e)})))()},processStart:function(){this.processing=!0},processEnd:function(){this.processing=!1}}})},484:function(t,e,n){"use strict";n.r(e);var r=n(491),o=n(456);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);var d=n(6),component=Object(d.a)(o.default,r.a,r.b,!1,null,null,null);e.default=component.exports},491:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("button",{attrs:{type:"button",disabled:t.isDisabled},on:{click:t.onClick}},[t._v("\n  "+t._s(t._label)+"\n")])},o=[]},512:function(t,e,n){"use strict";n.r(e);var r=n(513),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e.default=o.a},513:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(1)),c=n(301);e.default=o.default.extend({props:{value:{type:String,required:!1,default:""},_errorMessage:{type:String,required:!1,default:""}},computed:{email:{get:function(){return this.value},set:function(t){this.$emit("input",c.stringToHalfWidth(t))}},hasError:function(){return this._errorMessage.length>0}}})},553:function(t,e,n){"use strict";n.r(e);var r=n(554),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e.default=o.a},554:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(1)),c=n(301),d=r(n(484));e.default=o.default.extend({components:{DtypeSingleSubmitButton:d.default},props:{_answer:{type:String,required:!0},_email:{type:String,required:!0},_codeError:{type:String,required:!0},_back:{type:Function,required:!0},_submit:{type:Function,required:!0},_retryCode:{type:Function,required:!0}},computed:{answer:{get:function(){return this._answer},set:function(t){this.$emit("update:_answer",c.stringToHalfWidth(t))}},inValidAnswer:function(){return 6!==this.answer.length||!c.isHalfWidthNumber(this.answer)},hasError:function(){return this._codeError.length>0}}})},606:function(t,e,n){var content=n(678);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(58).default)("fde7fcfe",content,!0,{sourceMap:!1})},645:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{error:t.hasError},attrs:{type:"text",placeholder:"半角英数記号"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])},o=[]},646:function(t,e,n){"use strict";n.r(e);var r=n(645),o=n(512);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);var d=n(6),component=Object(d.a)(o.default,r.a,r.b,!1,null,null,null);e.default=component.exports},677:function(t,e,n){"use strict";n(606)},678:function(t,e,n){var r=n(57)((function(i){return i[1]}));r.push([t.i,".auth-code-form__input[data-v-5a7d14bb]{display:block;margin:0 auto}@media only screen and (min-width:641px){.auth-code-form__input[data-v-5a7d14bb]{max-width:264px}}@media only screen and (max-width:640px){.auth-code-form__input[data-v-5a7d14bb]{max-width:100%}}.auth-code-form__links[data-v-5a7d14bb]{display:flex;margin-top:16px}@media only screen and (min-width:641px){.auth-code-form__links[data-v-5a7d14bb]{justify-content:center}.auth-code-form__links+.btn-wrapper[data-v-5a7d14bb]{margin-top:32px}}@media only screen and (max-width:640px){.auth-code-form__links+.btn-wrapper[data-v-5a7d14bb]{margin-top:48px}}.auth-code-form__link[data-v-5a7d14bb]{color:#ff5a5f}.auth-code-form__link+.auth-code-form__link[data-v-5a7d14bb]{margin-left:1em}.auth-code-form__link>a[data-v-5a7d14bb],.auth-code-form__link>button[data-v-5a7d14bb]{color:#ff5a5f;font-size:.6875rem}@media only screen and (min-width:901px){.auth-code-form__link>a[data-v-5a7d14bb]:hover,.auth-code-form__link>button[data-v-5a7d14bb]:hover{-webkit-text-decoration:underline;text-decoration:underline}}@media only screen and (max-width:350px){.auth-code-form__link>a[data-v-5a7d14bb],.auth-code-form__link>button[data-v-5a7d14bb]{font-size:.625rem}}",""]),r.locals={},t.exports=r},714:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"auth-code-form"},[e("div",{staticClass:"auth-code-form__heading"},[e("h2",{staticClass:"auth-code-form__title"},[t._v("6桁の認証コードを入力してください")]),t._v(" "),t._codeError?e("p",{staticClass:"error error-message"},[t._v(t._s(t._codeError))]):t._e(),t._v(" "),e("p",{staticClass:"auth-code-form__lead"},[t._v("\n      "+t._s(t._email)+" に認証コードを送りました。\n    ")])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.answer,expression:"answer"}],staticClass:"auth-code-form__input",class:{error:t.hasError},attrs:{type:"text",maxlength:"6",placeholder:"コード入力"},domProps:{value:t.answer},on:{input:function(e){e.target.composing||(t.answer=e.target.value)}}}),t._v(" "),e("ul",{staticClass:"auth-code-form__links"},[e("li",{staticClass:"auth-code-form__link"},[e("button",{on:{click:t._retryCode}},[t._v("\n        認証コードを再送信する\n      ")])]),t._v(" "),e("li",{staticClass:"auth-code-form__link"},[e("nuxt-link",{attrs:{to:"/help?id=4",target:"_blank"}},[t._v("認証コードが届かない場合\n      ")])],1)]),t._v(" "),e("div",{staticClass:"btn-wrapper"},[e("dtype-single-submit-button",{staticClass:"primary-btn btn--next",attrs:{type:"button",_disabled:t.inValidAnswer,_label:"次へ",_click:t._submit}})],1),t._v(" "),e("button",{staticClass:"text-link text-link--prev",on:{click:t._back}},[t._v("\n    前の画面へ戻る\n  ")])])},o=[]},718:function(t,e,n){"use strict";n.r(e);var r=n(714),o=n(553);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n(677);var d=n(6),component=Object(d.a)(o.default,r.a,r.b,!1,null,"5a7d14bb",null);e.default=component.exports}}]);