text: "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[471],{7627:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,"html{background:url(/img/onboarding_bg_white.png) no-repeat 50% fixed;background-size:cover}#app{align-items:center;display:flex;height:100vh;justify-content:center}h1{margin:5rem 0}",""]);const a=o},3645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(o[s]=!0)}for(var i=0;i<e.length;i++){var c=[].concat(e[i]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},3379:(e,t,r)=>{var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function i(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function c(e,t){for(var r={},n=[],o=0;o<e.length;o++){var a=e[o],c=t.base?a[0]+t.base:a[0],l=r[c]||0,u="".concat(c," ").concat(l);r[c]=l+1;var d=i(u),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(s[d].references++,s[d].updater(f)):s.push({identifier:u,updater:_(f,t),references:1}),n.push(u)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=a(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function p(e,t,r){var n=r.css,o=r.media,a=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var m=null,h=0;function _(e,t){var r,n,o;if(t.singleton){var a=h++;r=m||(m=l(t)),n=f.bind(null,r,a,!1),o=f.bind(null,r,a,!0)}else r=l(t),n=p.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=i(r[n]);s[o].references--}for(var a=c(e,t),l=0;l<r.length;l++){var u=i(r[l]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}r=a}}}},3471:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var n=r(5166),o={class:"container container-md"},a=(0,n._)("div",{class:"container__row"},[(0,n._)("div",{class:"container__col-12 flex justify-center"},[(0,n._)("img",{src:"/img/onboarding_logo.svg"})])],-1),s={class:"container__row"},i={class:"container__col-12 flex justify-center"},c={class:"text-center font-bold-xl"},l=(0,n._)("br",null,null,-1),u=(0,n.Uk)(" Welcome to the "),d=(0,n._)("span",{class:"text-lilac"},"Plot Your Way.",-1),f=(0,n._)("div",{class:"container__row"},[(0,n._)("div",{class:"container__col-12 flex justify-center"},[(0,n._)("p",{class:"text-center font-regular-lg"}," This process takes about 10 minutes to fill out, and don’t worry, you can come back to this page at any time and we’ll save all your answers, if you don’t have time to finish off. ")])],-1),p={class:"container__row"},m={class:"container__col-6 plot-form__input-group-col"},h=(0,n._)("label",{for:"password",class:"plot-form__input-label"},"Password",-1),_={class:"font-bold-xs plot-form__input-helper--error"},v={class:"container__col-6 plot-form__input-group-col"},b=(0,n._)("label",{for:"passwordConfirmation",class:"plot-form__input-label"},"Password Confirmation",-1),g={class:"font-bold-xs plot-form__input-helper--error"},w=(0,n._)("div",{class:"container__row"},[(0,n._)("div",{class:"container__col-12 flex justify-center"},[(0,n._)("button",{type:"submit",class:"btn btn--pink btn--lg"},"Let's get started")])],-1);var y=r(894),j=r(9669),O=r.n(j);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const P={name:"landing_index",computed:x(x({},(0,y.rn)({token:function(e){return e.token}})),{},{errorMessages:function(){return this.errors}}),data:function(){return{show:!1,errors:{},name:"",form:{token:this.$route.params.id,password:"",password_confirmation:""}}},methods:{hasError:function(e){for(var t in this.errors)if(e===t)return this.errors[t][0]},submitForm:function(){var e=this;this.errors={};var t=this;O().post("/api/password/store",this.form).then((function(r){if("success"===r.data.status)e.$store.commit("login",[r.data.data.user.id,r.data.data.token,r.data.data.resources]),e.$store.commit("setFestivalId",r.data.data.festival_id),t.$router.push({name:r.data.data.redirectTo});else for(var n in r.data.messages)t.$set(t.errors,n,r.data.messages[n])})).catch((function(e){for(var r in e.response.data.messages)t.errors[r]=e.response.data.messages[r]}))},getData:function(){this.errors={};var e=this;O().get("/api/password/create?token="+this.$route.params.id,{}).then((function(t){"success"===t.data.status?(e.name=t.data.data.name,e.show=!0):e.show=!1})).catch((function(t){for(var r in t.response.data.messages)e.errors[r]=t.response.data.messages[r]}))}},created:function(){this.getData()}};var M=r(3379),S=r.n(M),E=r(7627),T={insert:"head",singleton:!1};S()(E.Z,T);E.Z.locals;P.render=function(e,t,r,y,j,O){return(0,n.wg)(),(0,n.iD)("div",o,[a,(0,n._)("div",s,[(0,n._)("div",i,[(0,n._)("h1",c,[(0,n.Uk)(" Oh hi there "+(0,n.zw)(j.name)+"!",1),l,u,d])])]),f,(0,n._)("form",{id:"set_password_form",onSubmit:t[2]||(t[2]=(0,n.iM)((function(e){return O.submitForm()}),["prevent"])),class:"plot-form"},[(0,n._)("div",p,[(0,n._)("div",m,[h,(0,n.wy)((0,n._)("input",{type:"password",class:(0,n.C_)(["plot-form__input",[O.errorMessages.password?"plot-form__input-error":""]]),id:"password","onUpdate:modelValue":t[0]||(t[0]=function(e){return j.form.password=e}),placeholder:"Password"},null,2),[[n.nr,j.form.password]]),(0,n._)("span",_,(0,n.zw)(O.hasError("password")),1)]),(0,n._)("div",v,[b,(0,n.wy)((0,n._)("input",{type:"password",class:(0,n.C_)(["plot-form__input",[O.errorMessages.password_confirmation?"plot-form__input-error":""]]),id:"passwordConfirmation","onUpdate:modelValue":t[1]||(t[1]=function(e){return j.form.password_confirmation=e}),placeholder:"Password Confirmation"},null,2),[[n.nr,j.form.password_confirmation]]),(0,n._)("span",g,(0,n.zw)(O.hasError("password_confirmation")),1)])]),w],32)])};const D=P}}]);