<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["compte/inscription","chunk-cf3b71a8","chunk-4018ace1"],{"0f80":function(e,t,s){"use strict";s.r(t);var o=function(){var e=this,t=e._self._c;return t("input",{directives:[{name:"model",rawName:"v-model",value:e.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:e.classname,attrs:{type:"text",id:e.id,placeholder:e.placeholder},domProps:{value:e.autocompleteText},on:{focus:function(t){return e.onFocus()},blur:function(t){return e.onBlur()},keypress:e.onKeyPress,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.autocompleteText=t.target.value)}}})},r=[],a={name:"AddressAutocomplete",props:{id:{type:String,required:!0},classname:String,placeholder:{type:String,default:"adresse ou code postal"},types:{type:String,default:"address"},setLocation:{type:Boolean,default:!1}},data(){return{fields:["address_components","adr_address","alt_id","formatted_address","geometry","icon","id","name","business_status","photo","place_id","scope","type","url","utc_offset_minutes","vicinity"],autocomplete:null,autocompleteText:"",geolocation:{geocoder:null,loc:null,position:null}}},watch:{autocompleteText:function(e,t){this.$emit("inputChange",{newVal:e,oldVal:t},this.id)}},mounted:function(){const e={componentRestrictions:{country:["fr","ch","be"]},fields:["address_components","geometry"]};this.autocomplete=new google.maps.places.Autocomplete(document.getElementById(this.id),e),this.autocomplete.setFields(this.fields),this.autocomplete.addListener("place_changed",this.onPlaceChanged)},methods:{onPlaceChanged:function(){let e=this.autocomplete.getPlace();if(e.geometry){if(void 0!==e.address_components){const t=this.formatResult(e);this.setLocation&amp;&amp;this.$store.dispatch("auth/setLocation",t),this.$emit("placechanged",t,e,this.id),this.autocompleteText=document.getElementById(this.id).value,this.onChange()}}else this.$emit("no-results-found",e,this.id)},formatResult(e){const t={subpremise:{type:"short_name",name:"subpremise"},street_number:{type:"short_name",name:"street_number"},route:{type:"long_name",name:"route"},street:{type:"long_name",name:"streetg"},colloquial_area:{type:"long_name",name:"colloquial_area"},locality:{type:"long_name",name:"city"},administrative_area_level_1:{type:"short_name",name:"administrative_area_level_1"},administrative_area_level_2:{type:"long_name",name:"administrative_area_level_2"},country:{type:"short_name",name:"country"},postal_code:{type:"short_name",name:"zip"}};let s={};for(let o=0;o&lt;e.address_components.length;o++){let r=e.address_components[o].types[0];if(t[r]&amp;&amp;t[r].type){let a=e.address_components[o][t[r].type];s[t[r].name]=a}}return s["route"]?s["street"]=s["street_number"]?s["street_number"]+" "+s["route"]:s["route"]:s["streetg"]?s["street"]=s["street_number"]?s["street_number"]+" "+s["streetg"]:s["streetg"]:s["colloquial_area"]&amp;&amp;(s["street"]=s["colloquial_area"]),s["latitude"]=e.geometry.location.lat(),s["longitude"]=e.geometry.location.lng(),s},onFocus(){this.$emit("focus")},onBlur(){this.$emit("blur")},onChange(){this.$emit("change",this.autocompleteText)},onKeyPress(e){this.$emit("keypress",e)},onKeyUp(e){this.$emit("keyup",e)},clear(){this.autocompleteText=""},focus(){this.$refs.autocomplete.focus()},blur(){this.$refs.autocomplete.blur(),this.$emit("blur")},update(e){this.autocompleteText=e}}},i=a,n=(s("ab92"),s("2877")),l=Object(n["a"])(i,o,r,!1,null,null,null);t["default"]=l.exports},"12a6":function(e,t,s){},2375:function(e,t,s){"use strict";s.r(t);var o=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"spinner",style:e.spinner_style}),e.message.length&gt;0?t("div",{staticClass:"spinner-text",style:e.text_style},[e._v(e._s(e.message))]):e._e()])},r=[],a={name:"Spinner",props:{size:{default:32},speed:{type:Number,default:.8},spacing:{type:Number,default:4},message:{type:String,default:""},"font-size":{type:Number,default:13}},computed:{size_px(){switch(this.size){case"tiny":return 12;case"small":return 16;case"medium":return 32;case"large":return 48;case"big":return 64;case"huge":return 96;case"massive":return 128}return this.isNumber(this.size)?this.size:32},text_font_size(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(.4*this.size_px),11),32)}return this.isNumber(this.fontSize)?this.fontSize:13},spinner_style(){return{margin:"0 auto","border-radius":"100%",border:"3px solid #2e5576","border-top":"3px solid #ae7935",width:this.size_px+"px",height:this.size_px+"px",animation:"spinner-spin "+this.speed+"s linear infinite"}},text_style(){return{"margin-top":"4px",color:"#555","font-size":this.text_font_size+"px","text-align":"center"}}},methods:{isNumber:function(e){return!isNaN(parseFloat(e))&amp;&amp;isFinite(e)}}},i=a,n=(s("d4b1"),s("2877")),l=Object(n["a"])(i,o,r,!1,null,null,null);t["default"]=l.exports},"81f4":function(e,t,s){},"8d7c":function(e,t,s){"use strict";s.r(t);var o=function(){var e=this,t=e._self._c;return t("main",[t("h2",[e._v("Identifiez-vous ou crÃ©ez un compte")]),e.stateLoading?t("div",{staticClass:"spinner_container"},[t("Spinner")],1):t("div",{staticClass:"card__wrapper"},[t("article",{staticClass:"card login"},[t("h3",[e._v("J'ai dÃ©jÃ&nbsp; un compte")]),t("div",{staticClass:"error",staticStyle:{display:"none"},attrs:{id:"error-login"}},[t("p",[e._v(e._s(e.error))])]),t("form",{attrs:{id:"login-form"},on:{submit:function(t){return t.preventDefault(),e.validateForm.apply(null,arguments)}}},[t("div",{staticClass:"form__row"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.loginForm.email,expression:"loginForm.email"}],staticClass:"input",attrs:{type:"email",name:"login-email",autocomplete:"off",placeholder:"E-mail",required:""},domProps:{value:e.loginForm.email},on:{input:function(t){t.target.composing||e.$set(e.loginForm,"email",t.target.value)}}})]),t("div",{staticClass:"form__row"},["checkbox"===[e.showLogPassword?"text":"password"]?t("input",{directives:[{name:"model",rawName:"v-model",value:e.loginForm.password,expression:"loginForm.password"}],staticClass:"input",attrs:{name:"login-password",autocomplete:"off",placeholder:"Mot de passe",required:"",type:"checkbox"},domProps:{checked:Array.isArray(e.loginForm.password)?e._i(e.loginForm.password,null)&gt;-1:e.loginForm.password},on:{change:function(t){var s=e.loginForm.password,o=t.target,r=!!o.checked;if(Array.isArray(s)){var a=null,i=e._i(s,a);o.checked?i&lt;0&amp;&amp;e.$set(e.loginForm,"password",s.concat([a])):i&gt;-1&amp;&amp;e.$set(e.loginForm,"password",s.slice(0,i).concat(s.slice(i+1)))}else e.$set(e.loginForm,"password",r)}}}):"radio"===[e.showLogPassword?"text":"password"]?t("input",{directives:[{name:"model",rawName:"v-model",value:e.loginForm.password,expression:"loginForm.password"}],staticClass:"input",attrs:{name:"login-password",autocomplete:"off",placeholder:"Mot de passe",required:"",type:"radio"},domProps:{checked:e._q(e.loginForm.password,null)},on:{change:function(t){return e.$set(e.loginForm,"password",null)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.loginForm.password,expression:"loginForm.password"}],staticClass:"input",attrs:{name:"login-password",autocomplete:"off",placeholder:"Mot de passe",required:"",type:[e.showLogPassword?"text":"password"]},domProps:{value:e.loginForm.password},on:{input:function(t){t.target.composing||e.$set(e.loginForm,"password",t.target.value)}}}),t("button",{staticClass:"button show-password",attrs:{"aria-label":"show",type:"button"},on:{click:e.pwdLogShow}},[e.showLogPassword?t("font-awesome-icon",{attrs:{icon:"fa-solid fa-eye-slash"}}):t("font-awesome-icon",{attrs:{icon:"fa-solid fa-eye"}})],1)]),t("div",{staticClass:"form__row"},[t("router-link",{staticClass:"inactive-link",attrs:{"exact-active-class":"active-link",to:{name:"PasswordReset"}}},[e._v("Mot de passe oubliÃ© ? ")])],1),t("div",{staticClass:"form__row"},[t("button",{staticClass:"button full width",attrs:{"aria-label":"login",type:"submit"},on:{click:e.login}},[t("span",[e._v("Connexion")])])])])]),t("article",{staticClass:"card signup"},[t("div",{staticClass:"cover"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.IMG_8961,expression:"IMG_8961"}],attrs:{alt:"oyster"}})]),t("h3",[e._v("Je n'ai pas encore de compte")]),e._m(0),t("form",{attrs:{id:"registration-form"},on:{submit:function(t){return t.preventDefault(),e.validateForm.apply(null,arguments)}}},[t("div",{staticClass:"form__row"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.registrationForm.first_name,expression:"registrationForm.first_name"}],staticClass:"input",attrs:{type:"text",id:"first-name",name:"first-name",placeholder:"PrÃ©nom",autocomplete:"off",required:""},domProps:{value:e.registrationForm.first_name},on:{input:function(t){t.target.composing||e.$set(e.registrationForm,"first_name",t.target.value)}}}),t("input",{directives:[{name:"model",rawName:"v-model",value:e.registrationForm.last_name,expression:"registrationForm.last_name"}],staticClass:"input",attrs:{type:"text",id:"last-name",name:"last-name",placeholder:"Nom",autocomplete:"off",required:""},domProps:{value:e.registrationForm.last_name},on:{input:function(t){t.target.composing||e.$set(e.registrationForm,"last_name",t.target.value)}}})]),t("div",{staticClass:"form__row"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.registrationForm.email,expression:"registrationForm.email"}],staticClass:"input",attrs:{type:"email",name:"signup-email",placeholder:"E-mail",autocomplete:"new-email",required:""},domProps:{value:e.registrationForm.email},on:{input:function(t){t.target.composing||e.$set(e.registrationForm,"email",t.target.value)}}})]),t("div",{staticClass:"form__row"},["checkbox"===[e.showRegPassword?"text":"password"]?t("input",{directives:[{name:"model",rawName:"v-model",value:e.registrationForm.password,expression:"registrationForm.password"}],staticClass:"input",attrs:{name:"signup-password",autocomplete:"new-password",placeholder:"Mot de passe",required:"",type:"checkbox"},domProps:{checked:Array.isArray(e.registrationForm.password)?e._i(e.registrationForm.password,null)&gt;-1:e.registrationForm.password},on:{change:function(t){var s=e.registrationForm.password,o=t.target,r=!!o.checked;if(Array.isArray(s)){var a=null,i=e._i(s,a);o.checked?i&lt;0&amp;&amp;e.$set(e.registrationForm,"password",s.concat([a])):i&gt;-1&amp;&amp;e.$set(e.registrationForm,"password",s.slice(0,i).concat(s.slice(i+1)))}else e.$set(e.registrationForm,"password",r)}}}):"radio"===[e.showRegPassword?"text":"password"]?t("input",{directives:[{name:"model",rawName:"v-model",value:e.registrationForm.password,expression:"registrationForm.password"}],staticClass:"input",attrs:{name:"signup-password",autocomplete:"new-password",placeholder:"Mot de passe",required:"",type:"radio"},domProps:{checked:e._q(e.registrationForm.password,null)},on:{change:function(t){return e.$set(e.registrationForm,"password",null)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.registrationForm.password,expression:"registrationForm.password"}],staticClass:"input",attrs:{name:"signup-password",autocomplete:"new-password",placeholder:"Mot de passe",required:"",type:[e.showRegPassword?"text":"password"]},domProps:{value:e.registrationForm.password},on:{input:function(t){t.target.composing||e.$set(e.registrationForm,"password",t.target.value)}}}),t("button",{staticClass:"button show-password white",attrs:{"aria-label":"show",type:"button"},on:{click:e.pwdRegShow}},[e.showRegPassword?t("font-awesome-icon",{attrs:{icon:"fa-solid fa-eye-slash"}}):t("font-awesome-icon",{attrs:{icon:"fa-solid fa-eye"}})],1)]),t("div",{staticStyle:{color:"gray"},attrs:{id:"zipElement"}},[t("label",{staticStyle:{color:"whitesmoke"}},[e._v("OÃ¹ souhaitez-vous Ãªtre livrÃ© ?")]),t("AddressAutocomplete",{attrs:{id:"street",classname:"input","set-location":!0,required:""},on:{placechanged:e.getAddressData}})],1),t("div",{staticClass:"form__row"},[t("button",{staticClass:"button full width",attrs:{id:"createbtn","aria-label":"registration",type:"submit"},on:{click:e.registration}},[t("span",[e._v("CrÃ©er un compte")])])])])])])])},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"error",staticStyle:{display:"none"},attrs:{id:"error-registration"}},[t("p",[e._v("Vous disposez dÃ©jÃ&nbsp; d'un compte avec cette adresse mail. "),t("br"),e._v(" Veuillez vous authentifier ou cliquer sur mot de passe oubliÃ© ")])])}],a=s("2f62"),i=s("2375"),n=s("0f80"),l=s("ad3d"),c=s("be33"),m=s("11ca"),u=s("b1d6"),d=s.n(u);c["d"].add(m["a"],m["b"]);var p={name:"Registration",components:{"font-awesome-icon":l["a"],Spinner:i["default"],AddressAutocomplete:n["default"]},computed:{...Object(a["c"])(["stateLoading"]),...Object(a["c"])("auth",["getLocation"]),...Object(a["c"])("error",["getErrorMessage"])},mounted(){},data(){return{IMG_8961:d.a,showRegPassword:!1,showLogPassword:!1,error:null,registrationForm:{email:null,password:null,longitude:null,latitude:null,first_name:null,last_name:null,street:null,zip:null,country:null,city:null},loginForm:{email:"",password:""}}},methods:{getAddressData:function(e){null!=e|"undefined"!=e&amp;&amp;(null!=e.longitude&amp;&amp;(this.registrationForm.longitude=e.longitude),null!=e.latitude&amp;&amp;(this.registrationForm.latitude=e.latitude),null!=e.city&amp;&amp;(this.registrationForm.city=e.city),null!=e.country&amp;&amp;(this.registrationForm.country=e.country),null!=e.zip&amp;&amp;(this.registrationForm.zip=e.zip),null!=e.street&amp;&amp;(this.registrationForm.street=e.street))},pwdLogShow(){this.showLogPassword=!this.showLogPassword},pwdRegShow(){this.showRegPassword=!this.showRegPassword},validateForm(){},registration:async function(){if(document.getElementById("error-registration").style.display="none",null!=this.getLocation.longitude&amp;&amp;(this.registrationForm.longitude=this.getLocation.longitude),null!=this.getLocation.latitude&amp;&amp;(this.registrationForm.latitude=this.getLocation.latitude),null!=this.getLocation.city&amp;&amp;(this.registrationForm.city=this.getLocation.city),null!=this.getLocation.country&amp;&amp;(this.registrationForm.country=this.getLocation.country),null!=this.getLocation.zip&amp;&amp;(this.registrationForm.zip=this.getLocation.zip),null!=this.getLocation.street&amp;&amp;(this.registrationForm.street=this.getLocation.street),null!=this.registrationForm.longitude){this.registrationForm.email=this.registrationForm.email.toLowerCase(),this.registrationForm.last_name=this.registrationForm.last_name.toUpperCase(),this.registrationForm.first_name=this.registrationForm.first_name[0].toUpperCase()+this.registrationForm.first_name.slice(1);const e=this.registrationForm;e["cache_key"]=localStorage.getItem("cache_key"),await this.$store.dispatch("auth/registration",e).catch(e=&gt;{console.log("err",e),this.error=e,document.getElementById("error-registration").style.display="block"}).finally(()=&gt;{this.$store.dispatch("changeStateLoading",!1),null===this.getErrorMessage&amp;&amp;this.$router.push({name:"EmailVerifySend",params:{email:e.email}})})}else this.$store.dispatch("error/setError",{message:"Echec crÃ©ation compte",details:"votre compte n'a pas Ã©tÃ© crÃ©Ã©, veuillez rÃ©essayer ou nous contacter"})},login:async function(){document.getElementById("error-login").style.display="none",this.loginForm.email=this.loginForm.email.toLowerCase();const e=this.loginForm;await this.$store.dispatch("auth/login",e).catch(e=&gt;{this.error=e,document.getElementById("error-login").style.display="block"}).finally(()=&gt;{null===this.getErrorMessage&amp;&amp;("cart"===this.$route.params.fromPage&amp;&amp;this.$router.push({name:"Order"}),"gift"===this.$route.params.fromPage&amp;&amp;this.$router.push({name:"Gift"}),this.$route.params.fromPage||this.$router.push({name:"Home"}))})}}},g=p,h=(s("9f39"),s("2877")),f=Object(h["a"])(g,o,r,!1,null,"659605e6",null);t["default"]=f.exports},"90a5":function(e,t,s){},"9f39":function(e,t,s){"use strict";s("81f4")},ab92:function(e,t,s){"use strict";s("90a5")},d4b1:function(e,t,s){"use strict";s("12a6")}}]);
//# sourceMappingURL=inscription.2b11a1c0.js.map</pre></body></html>