(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46d31728"],{"17ef":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("LayoutOnboarding",{attrs:{isLogo:!0,isColor:!1}},[e("template",{slot:"back-left"},[e("router-link",{attrs:{to:"/iniciar-sesion"}},[e("img",{attrs:{src:"/images/onboarding/back-icon.svg",alt:"back-icon"}})])],1),e("div",{staticClass:"container cls-register-email"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-8 col-12 mt-4"},[e("div",{staticClass:"steps-time-line p-line"},[e("div",{staticClass:"steps-time-line__item active"}),e("div",{staticClass:"steps-time-line__item active"}),e("div",{staticClass:"steps-time-line__item active"})])])]),t.messageSent?e("div",{staticClass:"text-center mt-5"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-5 col-sm-7 col-12 text-center"},[e("div",{staticClass:"title-board"},[t._v("\n            Verificar código\n          ")]),e("div",{staticClass:"board-text mt-2 mb-3"},[t._v("\n            Envíaremos un código de verificación a tu número celular para\n            validar que eres tu.\n          ")]),e("div",{staticClass:"container card"},[e("form",{attrs:{id:"formCode"},on:{submit:function(e){return e.preventDefault(),t.validateCodeLogin.apply(null,arguments)}}},[e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-12 col-12 order-1 order-md-1 board-form"},[e("div",{staticClass:"row text-left"},[e("div",{staticClass:"col-12 frm-font mt-4"},[e("div",{staticClass:"form-group mb-0 pb-0"},[e("label",{attrs:{for:""}},[t._v("Escribe tu código")]),e("div",{staticClass:"input-group",class:{"is-invalid":t.errorCode}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.otp,expression:"otp"}],staticClass:"form-control text-center",attrs:{type:"number",placeholder:"Ej: 522 2276",required:""},domProps:{value:t.otp},on:{input:function(e){e.target.composing||(t.otp=e.target.value)}}})]),t.errorCode?e("div",{staticClass:"invalid-feedback"},[t._v("\n                          "+t._s(t.errorCode)+"\n                        ")]):t._e()])])])])]),e("div",{staticClass:"form-group mt-2"},[e("button",{staticClass:"btn btn-register-lg",attrs:{type:"submit",disabled:t.validCodeString}},[e("div",{staticClass:"btn-register-lg__txt"},[t._v("\n                    Validar código\n                  ")])])]),t.canResend?e("div",{staticClass:"form-group mt-2"},[e("a",{staticClass:"text-decoration-none",attrs:{href:"#"},on:{click:t.sendCode}},[t._v("\n                  Reenviar\n                ")])]):t._e(),"01:00"!=t.counter_regressive&&"00:00"!=t.counter_regressive?e("div",{staticClass:"pt-1 pb-1"},[t._v("\n                Tu código vence en: "),e("b",[t._v(t._s(t.counter_regressive))])]):t._e()])])])])]):e("div",{staticClass:"text-center mt-5"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-5 col-sm-7 col-12 text-center"},[e("div",{staticClass:"title-board"},[t._v("\n            Iniciar sesión\n          ")]),e("div",{staticClass:"board-text mt-2 mb-3"},[t._v("\n            Envíaremos un código de verificación a tu número celular para\n            validar que eres tu.\n          ")]),e("div",{staticClass:"container card"},[e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-12 col-12 order-1 order-md-1 board-form"},[e("div",{staticClass:"row text-left"},[e("div",{staticClass:"col-12 frm-font mt-4"},[e("div",{staticClass:"form-group mb-0 pb-0"},[e("label",{attrs:{for:""}},[t._v("¿Cuál es tu celular?")]),e("div",{staticClass:"input-group",class:{"is-invalid":t.errorPhone}},[e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("div",[e("img",{attrs:{src:t.maskCountry.flag,alt:"manzana verde",height:"25"}})])])]),e("input",{directives:[{name:"mask",rawName:"v-mask",value:t.maskPhone,expression:"maskPhone"},{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],staticClass:"form-control text-center",attrs:{type:"text",placeholder:t.maskCountry.placeholder,required:""},domProps:{value:t.phone},on:{input:function(e){e.target.composing||(t.phone=e.target.value)}}})]),t.errorPhone?e("div",{staticClass:"invalid-feedback"},[t._v("\n                        "+t._s(t.errorPhone)+"\n                      ")]):t._e()])])])])]),this.getConfigCountryCode.enableWhatsappCode?e("div",{staticClass:"form-group mt-2"},[e("button",{staticClass:"btn btn-register-lg btn-wsp",on:{click:function(e){return t.formPhone(2)}}},[e("div",{staticClass:"btn-register-lg__txt"},[e("img",{staticClass:"mr-2",attrs:{src:"/img/icons/wsp.svg",alt:"manzana verde",height:"18"}}),t._v("\n                  Envíar por Whatsapp\n                ")])])]):t._e()]),e("div",{staticClass:"mt-4 text-center"},[e("label",[e("span",{staticClass:"check-custom-board"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isAcept,expression:"isAcept"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isAcept)?t._i(t.isAcept,null)>-1:t.isAcept},on:{change:function(e){var s=t.isAcept,a=e.target,i=!!a.checked;if(Array.isArray(s)){var n=null,r=t._i(s,n);a.checked?r<0&&(t.isAcept=s.concat([n])):r>-1&&(t.isAcept=s.slice(0,r).concat(s.slice(r+1)))}else t.isAcept=i}}}),e("span",{staticClass:"check-custom-board__box"},[e("i",{staticClass:"icon-checked"})])]),e("span",{staticClass:"txt-term"},[t._v("\n                Acepto los\n                "),e("a",{staticClass:"txt-term",attrs:{href:"https://manzanaverde.la/terminos-y-condiciones",target:"_blank"}},[t._v("términos y condiciones y políticas de privacidad\n                ")])])]),t.errorAcept?e("div",{staticClass:"color-danger"},[t._v("\n              "+t._s(t.errorAcept)+"\n            ")]):t._e()])])])])]),t.loadingCapcha?e("ScreenLoading"):t._e()],2)},i=[],n=(s("8e6e"),s("ac6a"),s("456d"),s("bd86")),r=s("c13e"),o=s("7c59"),c=s("bc3a"),l=s.n(c),d=s("3a60"),C=s("5077"),p=s("1e7f"),v=s("2f62");function u(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function m(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?u(Object(s),!0).forEach((function(e){Object(n["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var g={components:{LayoutOnboarding:r["a"],ScreenLoading:C["a"]},mixins:[p["a"]],directives:{mask:d["mask"]},data:function(){return{}},computed:m(m({},Object(v["c"])("setting",["getConfigCountryCode"])),{},{maskCountry:function(){var t=localStorage.getItem("country_id");switch(t){case"1":return{flag:"/img/icons/flagp.svg",placeholder:"Ej: 979 606 456"};case"2":return{flag:"/img/icons/flagm.svg",placeholder:"Ej: 12 2276 4785"};case"3":return{flag:"/img/icons/flagc.jpg",placeholder:"Ej: 32 2357 2523"};default:return{flag:"/img/icons/flagp.svg",placeholder:"Ej: 979 606 456"}}},maskPhone:function(){return"1"===o["a"].getId()?"#########":"##########"},getCodePhone:function(){return o["a"].getCodePhone()}}),methods:{formPhone:function(t){var e=this;this.loadingCapcha=!0,this.errorAcept=null,this.errorPhone=null;var s="1"===o["a"].getId()?this.phone.length>=9:this.phone.length>=10;return this.isAcept?s?(l.a.get("phones/login/"+this.phone).then((function(s){s.data?e.sendCode(!1,t):(e.errorPhone="El número no se encuentra registrado",e.loadingCapcha=!1)})).catch((function(t){e.loadingCapcha=!1,e.errorPhone=t})),void this.$gtm.trackEvent({event:"boton_login_con_telefono",category:"loign",action:"click",label:"boton_login_con_telefono",value:1})):(this.errorPhone="Teléfono inválido",this.loadingCapcha=!1,!1):(this.loadingCapcha=!1,this.errorAcept="Debes aceptar los términos y condiciones para continuar",!1)}}},f=g,h=(s("8e78"),s("2877")),b=Object(h["a"])(f,a,i,!1,null,null,null);e["default"]=b.exports},"38da":function(t,e,s){"use strict";s("dbe3")},5077:function(t,e,s){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"loading-screen"},[e("div",[e("Loading"),t.message?e("div",{staticClass:"loading-screen__message"},[t._v("\n      "+t._s(t.message)+"\n    ")]):t._e()],1)])},i=[],n=s("730d"),r={props:{message:{type:String,default:""}},components:{Loading:n["a"]}},o=r,c=(s("8d73"),s("2877")),l=Object(c["a"])(o,a,i,!1,null,null,null);e["a"]=l.exports},"6a35":function(t,e,s){},"8d73":function(t,e,s){"use strict";s("d9ec")},"8e78":function(t,e,s){"use strict";s("6a35")},9803:function(t,e,s){"use strict";s("b54a");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-breadcrumb d-flex justify-content-between align-items-center",class:{"w-response":t.response,"home-c":t.home}},[e("div",{staticClass:"ui-breadcrumb__1 d-flex justify-content-between align-items-center",class:{"d-none d-sm-none d-md-block":t.response}},[t.home?t._e():e("span",{staticClass:"d-none d-sm-none d-md-block"},[e("svg",{attrs:{width:"44",height:"48",viewBox:"0 0 44 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M21.0758 10.3464C21.0758 10.3464 16.8436 4.59014 22.5117 0C22.5117 0 25.616 4.69422 21.0758 10.3464Z",fill:"#E7C539"}}),e("path",{attrs:{d:"M35.2096 46.3371C35.7481 45.7934 36.2356 45.2485 36.6976 44.7037C39.6859 41.2252 41.797 37.0811 42.8542 32.6187C43.9566 27.6144 43.4946 22.9998 41.4969 19.3177C39.4823 15.6032 36.018 12.89 31.929 11.824C30.7699 11.4917 29.5695 11.3258 28.3637 11.3312C26.0389 11.3453 23.7547 11.9427 21.7207 13.0687C19.6843 11.9419 17.3974 11.3448 15.0702 11.3322C13.8644 11.3268 12.664 11.4927 11.5049 11.825C7.41764 12.8919 3.95514 15.6046 1.9412 19.3177C-0.0596887 23.0264 -0.517429 27.6155 0.584971 32.6198C1.6554 37.1082 3.79246 41.2723 6.81491 44.7589C6.9689 44.9395 7.30238 45.3293 7.71233 45.77C8.55406 47.2086 10.1319 48.0532 11.7959 47.9557C13.4605 47.8507 14.9262 46.8226 15.5916 45.2932C16.2653 43.7581 16.0365 41.9766 14.9969 40.6616L14.8949 40.5575C14.7542 40.3891 14.5997 40.2328 14.4329 40.0902C11.8722 37.4931 10.0483 34.2617 9.14821 30.7272C8.45576 27.5645 8.14777 22.0153 13.8966 20.3819C14.2815 20.2791 14.6781 20.2266 15.0765 20.2258C16.4979 20.3066 17.848 20.8744 18.8999 21.8337L21.7207 24.2445L24.5425 21.8337C25.5938 20.8749 26.9431 20.3071 28.3637 20.2258C28.7631 20.2258 29.1603 20.2778 29.5447 20.3819C35.2904 22.0153 34.9824 27.5645 34.292 30.7272C33.4588 34.1035 31.7617 37.205 29.3674 39.727C28.8627 40.0558 28.4343 40.4889 28.111 40.9972L28.0334 41.0758L28.0589 41.1013C26.942 42.8782 27.193 45.1898 28.6653 46.6855C30.1294 48.1725 32.4358 48.4283 34.1901 47.2983L34.2411 47.3514C34.3696 47.2473 34.4726 47.1177 34.6011 47.0137C34.8178 46.8013 35.0206 46.5761 35.2096 46.3382V46.3371Z",fill:"#27884D"}}),e("path",{attrs:{d:"M20.998 10.3198C23.6659 10.4558 26.3078 9.7386 28.5407 8.27221C30.6191 6.5742 32.1017 4.25747 32.7729 1.65888C32.7729 1.65888 28.4897 1.32221 25.2568 3.70862C23.1657 5.39929 21.6728 7.71681 20.998 10.3198H20.998Z",fill:"#1B703D"}}),e("path",{attrs:{opacity:"0.3",d:"M27.0522 8.86776C27.2409 8.87167 27.4296 8.86316 27.6172 8.84227C25.6056 9.87214 23.3586 10.3549 21.1016 10.242C21.3933 9.12529 21.8334 8.05265 22.41 7.05273C23.6725 8.22259 25.331 8.87139 27.0522 8.86883V8.86776Z",fill:"#709352"}}),e("path",{attrs:{d:"M41.4189 19.3187C39.404 15.604 35.9394 12.8907 31.8499 11.8249C30.6909 11.4927 29.4904 11.3267 28.2847 11.3322C25.9599 11.346 23.6758 11.943 21.6416 13.0686V24.1935L24.4634 21.7816C25.5148 20.8227 26.8641 20.255 28.2847 20.1737C28.684 20.1726 29.0812 20.2246 29.4657 20.3298C35.2113 21.9632 34.9033 27.5113 34.213 30.6751C33.3798 34.0514 31.6826 37.1528 29.2883 39.6749C28.7836 40.0037 28.3552 40.4368 28.0319 40.9451L27.9544 41.0226L27.9799 41.0481C26.8703 42.824 27.1237 45.1292 28.5927 46.6217C30.0523 48.105 32.351 48.3646 34.1047 47.244L34.1567 47.2961C34.2841 47.192 34.3872 47.0624 34.5157 46.9594C34.7493 46.7629 34.9628 46.5452 35.1571 46.3116C35.6956 45.7667 36.1831 45.2219 36.644 44.6771C39.6323 41.1985 41.7435 37.0545 42.8007 32.5921C43.8808 27.6164 43.4188 22.9997 41.4179 19.3177L41.4189 19.3187Z",fill:"#1B703D"}})])]),t.response||t.home?t._e():e("a",{staticClass:"color-base arrow-back",attrs:{href:"#"},on:{click:t.$backRoute}},[e("svg",{attrs:{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M11.8089 1.00884C11.9624 1.17068 12.0845 1.36308 12.1681 1.57505C12.2517 1.78702 12.2951 2.01441 12.296 2.24423C12.2968 2.47406 12.2551 2.7018 12.1731 2.91448C12.0911 3.12715 11.9705 3.32058 11.8181 3.48371L6.43311 9.2504L20.1818 9.2504C20.6185 9.2504 21.0374 9.43476 21.3462 9.76291C21.6551 10.0911 21.8286 10.5361 21.8286 11.0002C21.8286 11.4643 21.6551 11.9093 21.3462 12.2375C21.0374 12.5657 20.6185 12.75 20.1818 12.75L6.43311 12.75L11.8181 18.5167C12.1258 18.8465 12.2975 19.2926 12.2956 19.7569C12.2937 20.2213 12.1182 20.6658 11.8078 20.9927C11.4975 21.3195 11.0776 21.502 10.6406 21.5C10.2036 21.4979 9.78526 21.3115 9.47762 20.9817L1.30643 12.2327C1.00034 11.905 0.82858 11.4619 0.82858 11.0002C0.82858 10.5385 1.00034 10.0954 1.30643 9.76768L9.47762 1.01868C9.62998 0.855177 9.81118 0.725206 10.0109 0.636206C10.2105 0.547206 10.4248 0.500925 10.6413 0.500011C10.8579 0.499097 11.0724 0.543567 11.2728 0.630878C11.4731 0.718189 11.6553 0.846625 11.8089 1.00884Z",fill:"#D3D3D3"}})])])]),e("div",{staticClass:"ui-breadcrumb__2 d-flex"},[e("ul",{staticClass:"bre-mobile",class:{"w-response":t.response}},t._l(t.links,(function(s,a){return e("li",{key:a,staticClass:"d-flex align-items-center",class:{active:s.active}},[s.completed?e("span",{staticClass:"number",class:{active:s.active}},[e("svg",{attrs:{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M6.722 13.4668L0.554688 8.65901L2.30828 6.40705L6.09549 9.35935L12.346 0.333984L14.6914 1.95983L6.722 13.4668Z",fill:"white"}})])]):e("span",{staticClass:"number",class:{active:s.active}},[t._v(t._s(a+1))]),e("span",{staticClass:"d-none d-md-block"},[t._v(t._s(s.link))]),s.completed?e("span",{staticClass:"d-block d-md-none"},[e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("rect",{attrs:{width:"20",height:"20",rx:"10",fill:"#27884D"}}),e("path",{attrs:{d:"M9.62549 14.8496L5 11.2438L6.31519 9.5548L9.1556 11.769L13.8435 5L15.6025 6.21939L9.62549 14.8496Z",fill:"white"}})])]):s.active?e("span",{staticClass:"d-block d-md-none"},[t._v(t._s(s.link)+"\n        ")]):e("span",{staticClass:"d-block d-md-none"},[e("span",{staticClass:"d-none d-sm-none d-md-block"},[t._v(t._s(s.link))]),e("span",{staticClass:"d-block d-sm-block d-md-none"},[e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("rect",{attrs:{width:"20",height:"20",rx:"10",fill:"#A0A0A9"}}),e("path",{attrs:{d:"M9.62549 14.8496L5 11.2438L6.31519 9.5548L9.1556 11.769L13.8435 5L15.6025 6.21939L9.62549 14.8496Z",fill:"white"}})])])]),2!=a?e("div",{staticClass:"divider"}):t._e()])})),0)])])},i=[],n={props:{links:{type:Array},response:{type:Boolean,default:!1},home:{type:Boolean,default:!1}}},r=n,o=(s("38da"),s("2877")),c=Object(o["a"])(r,a,i,!1,null,"1dc16275",null);e["a"]=c.exports},a19c:function(t,e,s){"use strict";s("c066")},c066:function(t,e,s){},c13e:function(t,e,s){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"onboarding"},[e("div",{staticClass:"board"},[t.breadcrumb?e("NewBreadcrumb",{attrs:{links:t.links}}):t._e(),e("div",{staticClass:"card-board",class:t.show_color},[e("div",{staticClass:"card-board__banners"},[e("ReferCode"),e("BannerCampaign")],1),e("div",{staticClass:"card-board__content"},[e("div",{staticClass:"card-board__header"},[e("div",{staticClass:"btn-back"},[t._t("back-left")],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isLogo,expression:"isLogo"}]},[e("img",{staticClass:"page-brand",attrs:{src:"/images/brand/logo-manzana-verde.svg",alt:"Manzana verde"}})])]),e("div",[t._t("default")],2)]),e("div",{staticClass:"card-board__fixed"},[t._t("footer")],2)])],1)])},i=[],n=s("82ce"),r=s("4aa0"),o=s("9803"),c={components:{ReferCode:n["a"],BannerCampaign:r["a"],NewBreadcrumb:o["a"]},props:{isBack:Boolean,isLogo:Boolean,isFooter:Boolean,isColor:Boolean,breadcrumb:Boolean,links:Array},computed:{show_color:function(){return this.isColor?"b-color-green":"b-color-white"}}},l=c,d=(s("a19c"),s("2877")),C=Object(d["a"])(l,a,i,!1,null,"fa017134",null);e["a"]=C.exports},d9ec:function(t,e,s){},dbe3:function(t,e,s){}}]);