(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["toast"],{"0c60":function(s,t,e){"use strict";e("943d")},"943d":function(s,t,e){},b943:function(s,t,e){"use strict";e.r(t);var r=function(){var s=this,t=s.$createElement,e=s._self._c||t;return s.showToast()?e("div",{staticClass:"toast-wrapper",class:s.toastType},[e("div",{staticClass:"toast-wrapper__toast",class:s.toastType},[e("div",{staticClass:"toast-wrapper__toast__icon"},[s.showIconSend?s._e():e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2ZM0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20C4.477 20 0 15.523 0 10Z",fill:"white"}}),e("path",{attrs:{d:"M10 12C9.73478 12 9.48043 11.8946 9.29289 11.7071C9.10536 11.5196 9 11.2652 9 11V5C9 4.73478 9.10536 4.48043 9.29289 4.29289C9.48043 4.10536 9.73478 4 10 4C10.2652 4 10.5196 4.10536 10.7071 4.29289C10.8946 4.48043 11 4.73478 11 5V11C11 11.2652 10.8946 11.5196 10.7071 11.7071C10.5196 11.8946 10.2652 12 10 12Z",fill:"white"}}),e("path",{attrs:{d:"M8.5 14.5C8.5 14.1022 8.65804 13.7206 8.93934 13.4393C9.22064 13.158 9.60218 13 10 13C10.3978 13 10.7794 13.158 11.0607 13.4393C11.342 13.7206 11.5 14.1022 11.5 14.5C11.5 14.8978 11.342 15.2794 11.0607 15.5607C10.7794 15.842 10.3978 16 10 16C9.60218 16 9.22064 15.842 8.93934 15.5607C8.65804 15.2794 8.5 14.8978 8.5 14.5Z",fill:"white"}})]),s.showIconSend?e("coda-icon-send"):s._e()],1),e("div",{staticClass:"toast-wrapper__toast__message"},[s._v(s._s(s.message))]),e("div",{staticClass:"toast-wrapper__toast__close",on:{click:function(t){return s.closeToast()}}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{opacity:"0.4",d:"M16.34 1.99979H7.67C4.28 1.99979 2 4.37979 2 7.91979V16.0898C2 19.6198 4.28 21.9998 7.67 21.9998H16.34C19.73 21.9998 22 19.6198 22 16.0898V7.91979C22 4.37979 19.73 1.99979 16.34 1.99979Z",fill:"white"}}),e("path",{attrs:{d:"M15.0163 13.7703L13.2373 11.9923L15.0153 10.2143C15.3573 9.87329 15.3573 9.31829 15.0153 8.97729C14.6733 8.63329 14.1203 8.63429 13.7783 8.97629L11.9993 10.7543L10.2203 8.97429C9.87831 8.63229 9.32431 8.63429 8.98231 8.97429C8.64131 9.31629 8.64131 9.87129 8.98231 10.2123L10.7623 11.9923L8.98631 13.7673C8.64431 14.1093 8.64431 14.6643 8.98631 15.0043C9.15731 15.1763 9.38031 15.2613 9.60431 15.2613C9.82931 15.2613 10.0523 15.1763 10.2233 15.0053L11.9993 13.2293L13.7793 15.0083C13.9503 15.1793 14.1733 15.2643 14.3973 15.2643C14.6213 15.2643 14.8453 15.1783 15.0163 15.0083C15.3583 14.6663 15.3583 14.1123 15.0163 13.7703Z",fill:"white"}})])])])]):s._e()},o=[],i={components:{CodaIconSend:function(){return e.e("iconSend").then(e.bind(null,"cb8e"))}},data:function(){return{message:"",showIconSend:!1}},computed:{toastType:function(){return this.authError?(this.setMessage(this.authError,"auth"),"error visible"):this.authSuccess?(this.setMessage(this.authSuccess,"auth"),"success visible"):this.commonError?(this.setMessage(this.commonError,"common"),"error visible"):this.cashError?(this.setMessage(this.cashError,"common",!1),"error visible"):this.cashSuccess?(this.setMessage(this.cashSuccess,"common",!0),"success visible"):this.commonSuccess?(this.setMessage(this.commonSuccess,"common",!0),"success visible"):this.messageAlert?(this.setMessage(this.messageAlert,"common",!1),"message visible"):""},authError:function(){return this.$store.getters["user/error"]},authSuccess:function(){return this.$store.getters["user/success"]},commonError:function(){var s=this.$store.getters["error/error"];return s.code>=400||"networkError.other"===s.message?s:""},cashError:function(){return this.$store.getters["cash/error"]},cashSuccess:function(){return this.$store.getters["cash/success"]},commonSuccess:function(){return this.$store.getters["toast/success"]},messageAlert:function(){return this.$store.getters["toast/message"]}},watch:{$route:function(s,t){var e=this;setTimeout((function(){e.clearToast()}),6e3)}},methods:{showToast:function(){var s=!0;switch(this.$route.name){case"VerifySignup":s=!1;break}return s},timeOutMessage:function(){var s=this;setTimeout((function(){s.closeToast()}),6e3)},setMessage:function(s,t,e){s&&(this.message="auth"===t?this.getTranslatedAwsMessage(s)||s.message:this.$t(s.message),this.showIconSend=e,this.timeOutMessage())},closeToast:function(){this.clearToast(),this.$root.$emit("resetOauthCode",!1)},clearToast:function(){this.$store.dispatch("user/resetError"),this.$store.dispatch("user/resetSuccess"),this.$store.dispatch("cash/resetError"),this.$store.dispatch("cash/resetSuccess"),this.commonError&&this.$store.dispatch("error/clear"),this.$store.dispatch("toast/clear")}}},a=i,c=(e("0c60"),e("2877")),n=Object(c["a"])(a,r,o,!1,null,"f5639d82",null);t["default"]=n.exports}}]);