(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e06afe0"],{"23c63":function(e,t,s){"use strict";var a=s("66ba"),r=s.n(a);r.a},5311:function(e,t,s){"use strict";var a=s("5607"),r=s("2b0e");t["a"]=r["default"].extend({name:"rippleable",directives:{ripple:a["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(e.staticClass="v-input--selection-controls__ripple",e.directives=e.directives||[],e.directives.push({name:"ripple",value:{center:!0}}),e.on=Object.assign({click:this.onChange},this.$listeners),this.$createElement("div",e)):null},onChange:function(){}}})},"62f9":function(e,t,s){"use strict";var a=s("9533"),r=s.n(a);r.a},"66ba":function(e,t,s){},"6ca7":function(e,t,s){},8547:function(e,t,s){"use strict";var a=s("2b0e"),r=s("80d2");t["a"]=a["default"].extend({name:"comparable",props:{valueComparator:{type:Function,default:r["j"]}}})},9533:function(e,t,s){},ac7c:function(e,t,s){"use strict";s("d3b7"),s("25f0");var a=s("5530"),r=(s("6ca7"),s("ec29"),s("9d26")),i=s("c37a"),n=s("fe09");t["a"]=n["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data:function(){return{inputIndeterminate:this.indeterminate}},computed:{classes:function(){return Object(a["a"])({},i["a"].options.computed.classes.call(this),{"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate})},computedIcon:function(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState:function(){if(!this.disabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate:function(e){var t=this;this.$nextTick((function(){return t.inputIndeterminate=e}))},inputIndeterminate:function(e){this.$emit("update:indeterminate",e)},isActive:function(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox:function(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(r["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",Object(a["a"])({},this.attrs$,{"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()})),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot:function(){return[this.genCheckbox(),this.genLabel()]}}})},e4b4:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-container",{staticClass:"global--container-contet",style:e.$vuetify.breakpoint.mdAndDown?e.PRE_AUTH_VIEW_STYLE_MOBILE:e.PRE_AUTH_VIEW_STYLE_DESKTOP,attrs:{id:"signup-container",fluid:""}},[s("v-row",{attrs:{align:"center",justify:"center","no-gutters":"",wrap:""}},[s("v-col",{style:{maxWidth:"540px"},attrs:{id:"guest-self-sign-up-form-wrapper"}},[s("GroupLogo"),s("div",{staticClass:"mt-2 mb-2",style:{minHeight:"10px"}},[e.messages.error?s("v-alert",{staticClass:"laas-body-2 text-center mt-10 mb-8",style:e.alertStyles,attrs:{id:"guest-self-sign-up-error",color:"error"}},[e._v(" "+e._s(e.messages.error)+" ")]):e._e(),e.messages.success?s("v-alert",{staticClass:"laas-body-2 text-center mt-10 mb-8",style:e.alertStyles,attrs:{id:"guest-self-sign-up-success",color:"success"}},[e._v(" "+e._s(e.messages.success)+" ")]):e._e()],1),s("v-row",{attrs:{align:"center",justify:"center","no-gutters":"",wrap:""}},[s("v-col",{attrs:{col:"12"}},[s("v-card",{staticClass:"mx-auto",style:e.formCardStyles,attrs:{id:"form-card",align:"center",justify:"center",color:e.STYLE_CONFIG.accentBackgroundColor}},[e.signUpComplete?s("div",{ref:e.refLabels.signUpCompleteContainer,staticClass:"my-3"},[s("div",{staticClass:"laas-title mb-3",style:{fontFamily:e.STYLIZED_FONT,textTransform:"uppercase"},attrs:{id:"signup-header"}},[e._v(" "+e._s(e.copy.almostThere)+" ")]),s("div",{staticClass:"laas-subtitle-1"},[s("span",[e._v(e._s(e.copy.beforeYouExit))]),s("br"),s("span",[e._v(e._s(e.copy.didntReceiveAnEmail)+" ")]),s("span",[s("a",{attrs:{"data-test-id":"resendVerification",href:""},on:{click:function(t){return t.preventDefault(),e.resendVerification(t)}}},[e._v(e._s(e.copy.sendAgain))])]),s("span",[e._v(" or ")]),s("span",[s("a",{attrs:{target:"new",href:e.FAQ_URL_SUPPORT}},[e._v(e._s(e.copy.contactSupport))])])])]):e._e(),e.signUpComplete?e._e():s("div",{ref:e.refLabels.signUpIncompleteContainer},[s("div",{staticClass:"mb-4"},[s("div",{staticClass:"laas-subtitle-1",style:{color:e.STYLE_CONFIG.accentBackgroundTextColor}},[e._v(" "+e._s(e.signupHeadlinePart1)+" ")]),s("div",{staticClass:"laas-display-3",style:{fontFamily:e.STYLIZED_FONT,color:e.STYLE_CONFIG.accentBackgroundTextColor},attrs:{id:"signup-header"}},[e._v(" "+e._s(e.signupHeadlinePart2)+" ")])]),e.signUpComplete?e._e():s("v-form",{ref:e.refLabels.form,staticClass:"global--custom-vuetify-form form-with-text-details-mobile",attrs:{id:"guest-self-sign-up-form"},on:{submit:function(t){return t.preventDefault(),e.validate(t)}},model:{value:e.form.isValid,callback:function(t){e.$set(e.form,"isValid",t)},expression:"form.isValid"}},[s("v-row",{attrs:{id:"name-container","no-gutters":""}},[s("v-col",{staticClass:"pr-md-2 pr-sm-0",attrs:{cols:"12",md:"6"}},[s("span",{staticClass:"global--text-field-details-offset-right-10"},[s("v-text-field",{staticClass:"laas-body-1",style:e.inputFieldStyles,attrs:{label:e.form.labels.firstName,rules:e.rules.firstName,required:"",filled:"","data-test-id":"firstNameInput"},model:{value:e.form.values.firstName,callback:function(t){e.$set(e.form.values,"firstName","string"===typeof t?t.trim():t)},expression:"form.values.firstName"}})],1)]),s("v-col",{staticClass:"pl-md-2 pl-sm-0",attrs:{cols:"12",md:"6"}},[s("span",{staticClass:"global--text-field-details-offset-right-10"},[s("v-text-field",{staticClass:"laas-body-1",style:e.inputFieldStyles,attrs:{label:e.form.labels.lastName,rules:e.rules.lastName,required:"",filled:"","data-test-id":"lastNameInput"},model:{value:e.form.values.lastName,callback:function(t){e.$set(e.form.values,"lastName","string"===typeof t?t.trim():t)},expression:"form.values.lastName"}})],1)])],1),s("v-row",{attrs:{"no-guttersalign":"center"}},[s("v-col",{staticClass:"my-0 py-0 subtitle-2",style:{color:"rgba(255, 255, 255, 0.7)"},attrs:{align:"right"}})],1),s("span",{staticClass:"global--text-field-details-offset-right-10"},[s("v-text-field",{staticClass:"laas-body-1",style:e.inputFieldStyles,attrs:{label:e.form.labels.email,rules:e.rules.email,required:"",filled:"","data-test-id":"emailInput"},model:{value:e.form.values.email,callback:function(t){e.$set(e.form.values,"email","string"===typeof t?t.trim():t)},expression:"form.values.email"}})],1),s("div",{ref:e.refLabels.passwordContainer,attrs:{id:"password-container"}},[s("v-text-field",{staticClass:"laas-body-1 mb-0",style:e.inputFieldStyles,attrs:{label:e.form.labels.password,rules:e.rules.password,type:e.form.showPassword?"text":"password","append-icon":e.form.showPassword?"mdi-eye":"mdi-eye-off",required:"",filled:"","data-test-id":"passwordInput"},on:{"click:append":function(t){e.form.showPassword=!e.form.showPassword}},model:{value:e.form.values.password,callback:function(t){e.$set(e.form.values,"password",t)},expression:"form.values.password"}})],1),s("v-text-field",{staticClass:"laas-body-1 mb-0",style:e.inputFieldStyles,attrs:{label:e.form.labels.confirmPassword,rules:e.confirmPasswordRules,type:e.form.showConfirmPassword?"text":"password","append-icon":e.form.showConfirmPassword?"mdi-eye":"mdi-eye-off",required:"",filled:"","data-test-id":"confirmPasswordInput"},on:{"click:append":function(t){e.form.showConfirmPassword=!e.form.showConfirmPassword}},model:{value:e.form.values.confirmPassword,callback:function(t){e.$set(e.form.values,"confirmPassword",t)},expression:"form.values.confirmPassword"}}),e.requireZipCode?s("v-text-field",{staticClass:"laas-body-1 mb-0",style:e.inputFieldStyles,attrs:{label:e.form.labels.zipCode,rules:e.rules.zipCode,type:"text",required:"",filled:"","data-test-id":"zipcodeInput",maxlength:"10"},on:{input:e.handleZipCodeInput},model:{value:e.form.values.zipCode,callback:function(t){e.$set(e.form.values,"zipCode",t)},expression:"form.values.zipCode"}}):e._e(),s("v-checkbox",{staticClass:"laas-subtitle-1 global--background-transparent mt-0",style:{color:e.STYLE_CONFIG.accentBackgroundTextColor},attrs:{id:"citizen-checkbox",rules:e.rules.resident,value:!0,"hide-details":!0,color:e.STYLE_CONFIG.accentBackgroundTextColor,"data-test-id":"citizenCheckbox"},scopedSlots:e._u([{key:"label",fn:function(){return[s("div",{style:{color:e.STYLE_CONFIG.accentBackgroundTextColor},attrs:{id:"first-agreement-label"},domProps:{innerHTML:e._s(e.firstAgreementHtml)}})]},proxy:!0}],null,!1,3756145598),model:{value:e.form.values.isResident,callback:function(t){e.$set(e.form.values,"isResident",t)},expression:"form.values.isResident"}}),s("v-checkbox",{staticClass:"laas-subtitle-1 mt-0 mb-2",style:{color:e.STYLE_CONFIG.accentBackgroundTextColor},attrs:{id:"agree-checkbox",rules:e.rules.agreePolicy,value:!0,"hide-details":!0,color:e.STYLE_CONFIG.accentBackgroundTextColor,"data-test-id":"agreeCheckbox"},scopedSlots:e._u([{key:"label",fn:function(){return[s("div",{style:{color:e.STYLE_CONFIG.accentBackgroundTextColor},attrs:{id:"second-agreement-label"},domProps:{innerHTML:e._s(e.secondAgreementHtml)},on:{click:function(e){e.stopPropagation()}}})]},proxy:!0}],null,!1,1464891412),model:{value:e.form.values.agreePolicy,callback:function(t){e.$set(e.form.values,"agreePolicy",t)},expression:"form.values.agreePolicy"}}),s("v-btn",{ref:e.refLabels.submitBtn,staticClass:"laas-button-1 text-uppercase mt-2",style:{color:e.STYLE_CONFIG.buttonTextColor,borderRadius:e.STYLE_CONFIG.roundedCorners?"4px":"0px"},attrs:{type:"submit",block:"",depressed:"","x-large":"",color:e.STYLE_CONFIG.buttonBackgroundColor,"data-test-id":"submit"}},[e._v(" "+e._s(e.copy.submit)+" ")])],1),s("div",{staticClass:"laas-subtitle-2 text-center",attrs:{id:"already-have-an-account"}},[s("span",{style:e.footerStyles},[e._v(" "+e._s(e.copy.alreadyHaveAnAccount)+" ")]),s("a",{staticClass:"underlined",style:e.footerStyles,on:{click:e.navToLogin}},[e._v(" "+e._s(e.copy.signIn)+" ")])])],1)])],1)],1)],1)],1)],1)},r=[],i=(s("99af"),s("fb6a"),s("d3b7"),s("ac1f"),s("5319"),s("ddb0"),s("96cf"),s("1da1")),n=s("5530"),o=s("2b0e"),l=s("2f62"),c=s("a469"),u=s("e8c1"),d=s("f04f"),m=s("c787"),p=s("db31"),f=s("2ef0"),h=s("04d1"),v=s("a3a2"),g=s("2241"),y=s("89bd"),b=o["default"],C=b.extend({name:"SignUp",components:{GroupLogo:d["a"]},data:function(){return{termsAndConditions:"terms-and-conditions",signUpComplete:!1,refLabels:{form:"form",submitBtn:"submit-btn",passwordContainer:"password-container",signUpCompleteContainer:"sign-up-complete-container",signUpIncompleteContainer:"sign-up-incomplete-container"},form:{isValid:!1,showPassword:!1,showConfirmPassword:!1,values:{email:"",password:"",confirmPassword:"",firstName:"",lastName:"",zipCode:"",isResident:!1,agreePolicy:!1},labels:{email:"Email",password:"Password",confirmPassword:"Confirm Password",firstName:"First Name",lastName:"Last Name",isResident:"Yes, I am a US resident and 21 years or older.",zipCode:"Zipcode"}},copy:{submit:"Sign Up",required:"Required",emailMustBeValid:"Email must be valid.",zipcodeMustBeValid:"Zipcode must be 5 or 9 digits.",passwordHint:"At least 8 characters and include a symbol",passwordsMustMatch:"Passwords must match",yesIamUsResident:"Yes, I am a US resident.",privacyPolicyPart1:"Yes, I agree to ",privacyPolicyPart2:"Privacy Policy",privacyPolicyPart3:"and",privacyPolicyPart4:"Terms and Conditions",privacyPolicyPart5:".",youMustBe:"You must be a US resident and over 21 to join our program.",signUpSuccess:"Verification email sent. Please click the link in your email to continue.",almostThere:"Almost there!",pleaseCorrect:"Please correct the fields below.",beforeYouExit:"Before you exit this window, check your email to continue.",didntReceiveAnEmail:"Didn't receive an email?",sendAgain:"Send again",contactSupport:"contact support.",successfulResend:"We have successfully sent another confirmation email.",failedResend:"We could not resend your confirmation email. Please contact support.",alreadyHaveAnAccount:"Already have an account?",signIn:"Sign In",defaultPrivacyAppName:"your"},messages:{error:"",success:""}}},computed:Object(n["a"])({},Object(l["c"])([c["jb"],c["kb"],c["v"],c["U"],c["V"],c["r"],c["d"],c["w"],c["nb"],c["ob"],c["mb"],c["h"],c["s"],c["bb"],c["X"]]),{},Object(l["e"])(["template"]),{requireZipCode:function(){return Boolean(this.template.portalMeta.requireZipCode)},signupHeadlinePart1:function(){return this.$store.getters.COPY_CONFIG.signupHeadlinePart1},signupHeadlinePart2:function(){return this.$store.getters.COPY_CONFIG.signupHeadlinePart2},firstAgreementHtml:function(){if(!this.FIRST_AGREEMENT_MARKDOWN)return this.form.labels.isResident;var e=this.replaceVariables(this.FIRST_AGREEMENT_MARKDOWN);return h["a"].parse(e)},secondAgreementHtml:function(){if(!this.SECOND_AGREEMENT_MARKDOWN)return'Yes, I agree to your <a target="_blank" rel="noopener noreferrer" href="'.concat(this.PRIVACY_POLICY_URL,'" style="color: inherit" onclick="event.stopPropagation()">').concat(this.COPY_CONFIG.privacyPolicyTerm,'</a> and <a target="new" href="').concat(this.termsLink,'" style="color: inherit" onclick="event.stopPropagation()">Terms and Conditions</a>.');var e=this.replaceVariables(this.SECOND_AGREEMENT_MARKDOWN);return h["a"].parse(e)},termsLink:function(){return this.showLinkWithTermsUrl?this.TERMS_URL:"/".concat(this.termsAndConditions)},vuetifyForm:function(){var e=this.$refs.form,t=Array.isArray(e)?e[0]:e;return t},passwordContainerEl:function(){return this.$refs[this.refLabels.passwordContainer]},rules:function(){var e=this;return{zipCode:[function(t){return u["a"].isRequired.validate(t)||e.copy.required},function(t){return u["a"].isValidZipCode.validate(t)||e.copy.zipcodeMustBeValid}],email:[function(t){return u["a"].isRequired.validate(t)||e.copy.required},function(t){return u["a"].isValidEmail.validate(t)||e.copy.emailMustBeValid}],firstName:[function(t){return u["a"].isRequired.validate(t)||e.copy.required}],lastName:[function(t){return u["a"].isRequired.validate(t)||e.copy.required}],password:[function(t){return u["a"].isRequired.validate(t)||e.copy.required},function(t){return u["a"].isValidPassword.validate(t)||e.copy.passwordHint}],resident:[function(e){return u["a"].isTrue.validate(e)||"invalid"}],agreePolicy:[function(e){return u["a"].isTrue.validate(e)||"invalid"}]}},confirmPasswordRules:function(){return[this.form.values.password===this.form.values.confirmPassword||this.copy.passwordsMustMatch]},privacyAppName:function(){return this.COMPONENT_CONFIG.displayAppNameSignup?"the ".concat(this.$store.getters.CLIENT_APP_NAME):this.copy.defaultPrivacyAppName},showLinkWithTermsUrl:function(){return!this.TERMS_PAGE&&!this.TERMS_AND_CONDITIONS_MARKDOWN_CONTENT},footerStyles:function(){return{color:this.STYLE_CONFIG.signUpSignInFooterTextColor?this.STYLE_CONFIG.signUpSignInFooterTextColor:this.STYLE_CONFIG.accentBackgroundTextColor}},formStyles:function(){return Object(y["c"])(this.STYLE_CONFIG)},formCardStyles:function(){return Object(n["a"])({},this.formStyles.formCardStyles,{padding:this.$vuetify.breakpoint.mdAndUp?"40px 40px 12px":"30px 30px 12px"})},inputFieldStyles:function(){return this.formStyles.inputFieldStyles},alertStyles:function(){return this.formStyles.alertStyles}}),methods:{throttledResendConfirmation:Object(f["throttle"])((function(){return this.$store.dispatch("auth/resendConfirmation",{username:this.form.values.email})}),3e5),resendVerification:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.clearErrorMessage(),e.clearSuccessMessage(),e.throttledResendConfirmation().then((function(t){e.setSuccessMessage(e.copy.successfulResend)})).catch((function(t){e.setErrorMessage(e.copy.failedResend)}));case 3:case"end":return t.stop()}}),t)})))()},validate:function(){this.clearErrorMessage(),this.vuetifyForm.validate()?(this.clearErrorMessage(),this.submit()):this.messages.error=this.copy.pleaseCorrect},submit:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var s,a,r,i,n,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.clearErrorMessage(),e.clearSuccessMessage(),t.next=5,v["a"].customerExists(e.form.values.email);case 5:if(s=t.sent,!s.data||s.data.result){t.next=36;break}return t.prev=7,t.next=10,e.signUp();case 10:if(e.setSuccessMessage(e.copy.signUpSuccess),e.signUpComplete=!0,a=e.$store.state.cognitoDynamoDbTableName,!a){t.next=28;break}return r=e.$store.state.cognitoRegion,i=e.form.values.email,n=e.form.values.password,o=e.$store.state.groupUUID,t.prev=18,t.next=21,v["a"].cognitoFailoverSignupUser(a,r,i,n,o);case 21:t.next=28;break;case 24:t.prev=24,t.t0=t["catch"](18),g["a"].capture(t.t0);case 28:t.next=34;break;case 30:t.prev=30,t.t1=t["catch"](7),l=t.t1,m["j"].check(l.message).isMatch?(c="login",e.$router.push({name:c,query:{usernameExistsRedirect:"true"}})):(u="",u=m["g"].check(l.message).isMatch?m["g"].friendlyMessage:m["h"].check(l.message).isMatch?m["h"].friendlyMessage:l.message,e.setErrorMessage(u));case 34:t.next=38;break;case 36:d="login",e.$router.push({name:d,query:{usernameExistsRedirect:"true"}});case 38:t.next=43;break;case 40:t.prev=40,t.t2=t["catch"](0);case 43:case"end":return t.stop()}}),t,null,[[0,40],[7,30],[18,24]])})))()},handleZipCodeInput:function(e){if(6===e.length){if("-"===e.charAt(5))return void(this.form.values.zipCode=e.slice(0,5));e="".concat(e.slice(0,5),"-").concat(e.charAt(5))}this.form.values.zipCode=e},signUp:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var s,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.$store.getters[c["R"]](e.form.values.email,e.form.values.password,e.form.values.firstName,e.form.values.lastName,e.form.values.zipCode),t.next=3,e.$store.dispatch("auth/registerUser",s);case 3:return a=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)})))()},navToLogin:function(){var e="login";this.$router.push({name:e})},clearErrorMessage:function(){this.messages.error=""},setErrorMessage:function(e){this.messages.error=e},setSuccessMessage:function(e){this.messages.success=e},clearSuccessMessage:function(){this.messages.success=""},parseLaasieFormDataQueryParam:function(e){var t={first_name:"",last_name:"",email:""};try{return JSON.parse(atob(e))}catch(s){return t}},replaceVariables:function(e){var t=e+"";return t.replace(/{{privacy_policy}}/g,this.PRIVACY_POLICY_URL).replace(/{{terms}}/g,this.termsLink)}},mounted:function(){var e="first_name",t="last_name",s="email",a="laas_fd",r=Object(p["b"])(this.$route),i=r.get(a);if(null!==i){var n=this.parseLaasieFormDataQueryParam(i);this.form.values.firstName=n.first_name,this.form.values.lastName=n.last_name,this.form.values.email=n.email}else this.form.values.firstName=r.get(e)||"",this.form.values.lastName=r.get(t)||"",this.form.values.email=r.get(s)||""}}),_=C,x=(s("62f9"),s("23c63"),s("2877")),w=s("6544"),S=s.n(w),k=s("0798"),P=s("8336"),I=s("b0af"),N=s("ac7c"),E=s("62ad"),T=s("a523"),O=s("4bd4"),A=s("0fd9"),R=s("8654"),V=Object(x["a"])(_,a,r,!1,null,"6e686476",null);t["default"]=V.exports;S()(V,{VAlert:k["a"],VBtn:P["a"],VCard:I["a"],VCheckbox:N["a"],VCol:E["a"],VContainer:T["a"],VForm:O["a"],VRow:A["a"],VTextField:R["a"]})},ec29:function(e,t,s){},fe09:function(e,t,s){"use strict";s("4de4"),s("45fc"),s("d3b7"),s("25f0");var a=s("c37a"),r=s("5311"),i=s("8547"),n=s("58df");t["a"]=Object(n["a"])(a["a"],r["a"],i["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor:function(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var e=this,t=this.value,s=this.internalValue;return this.isMultiple?!!Array.isArray(s)&&s.some((function(s){return e.valueComparator(s,t)})):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,s):Boolean(s):this.valueComparator(s,this.trueValue)},isDirty:function(){return this.isActive},rippleState:function(){return this.disabled||this.validationState?this.validationState:"primary"}},watch:{inputValue:function(e){this.lazyValue=e,this.hasColor=e}},methods:{genLabel:function(){var e=this,t=a["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:function(t){t.preventDefault(),e.onChange()}},t):t},genInput:function(e,t){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:e,type:e},t),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown},ref:"input"})},onBlur:function(){this.isFocused=!1},onChange:function(){var e=this;if(!this.isDisabled){var t=this.value,s=this.internalValue;if(this.isMultiple){Array.isArray(s)||(s=[]);var a=s.length;s=s.filter((function(s){return!e.valueComparator(s,t)})),s.length===a&&s.push(t)}else s=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(s,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(s,t)?null:t:!s;this.validate(!0,s),this.internalValue=s,this.hasColor=s}},onFocus:function(){this.isFocused=!0},onKeydown:function(e){}}})}}]);
//# sourceMappingURL=chunk-2e06afe0.23238838.js.map