1!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"2.2.531"}}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!=i)for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:funnel-rootpage-code":!0})}catch(e){}}();try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="821e003d-1c7c-4ed9-8d76-0fdd0736b8da",e._sentryDebugIdIdentifier="sentry-dbid-821e003d-1c7c-4ed9-8d76-0fdd0736b8da")}()}catch(e){}(self.webpackChunkrootpage=self.webpackChunkrootpage||[]).push([[74958],{31212(e,t,i){i.d(t,{A:()=>d});var n=i(20641),r=i(53751),s=i(90033),o={key:0},a={class:"social-tooltip-img-container"},l=["src"],u={class:"social-tooltip-content"};const h={props:{message:{type:String,required:!0},status:{type:Boolean,required:!0,default:!1}},data:function(){var e,t;return{callMobile:("health"===window.sessionData.product||"medicare"===window.sessionData.product)&&1===window.sessionData.mobile,socialProofImg:"static/img/light-bulb.svg",HelpIconHealthQ2Test:null===(e=window.tests)||void 0===e?void 0:e.HelpIconHealthQ2Test,DesignRefreshQ2Test:null===(t=window.tests)||void 0===t?void 0:t.DesignRefreshQ2Test}},watch:{},methods:{}};const d=(0,i(66262).A)(h,[["render",function(e,t,i,h,d,g){return e.DesignRefreshQ2Test||!i.status||e.HelpIconHealthQ2Test?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("div",o,[(0,n.bF)(r.eB,{name:"fade"},{default:(0,n.k6)(function(){return[(0,n.Lk)("div",{class:(0,s.C4)(["social-tooltip-container",{hide:e.callMobile}])},[(0,n.Lk)("div",a,[t[0]||(t[0]=(0,n.Lk)("div",{class:"social-img--top-circle"},null,-1)),(0,n.Lk)("img",{class:"social-tooltip-img",src:e.socialProofImg},null,8,l)]),(0,n.Lk)("div",u,(0,s.v_)(i.message),1)],2)]}),_:1})]))}]])},91868(e,t,i){i.r(t),i.d(t,{default:()=>W});var n=i(20641),r=i(53751),s=i(90033);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}var l={class:"page"},u={class:"wrapper"},h={key:0,class:"innerWrapper"},d={class:"elementWrap"},g={class:"height-validation-container"},c={class:"halfWrap"},f=["value"],p={class:"halfWrap"},v=["value"],w={class:"input-validation-container"},y={key:4,class:"buttonWithError"};var b=i(99647),m=i(82870),_=i(31212),T=i(26136),k=i(80423),H=i(95913),E=i(92263),M=i(64394),C=i(70763),D="Please enter a valid height",x="Please enter a valid weight";const F={components:{Tooltip:_.A,NavigationFooter:m.A,ValidationErr:T.A,ValidationMark:b.A,StepHeader:k.A,QWInput:H.A,SelectInput:E.A,TextInput:M.A},data:function(){var e;return{height_inches:"default",height_feet:"default",weight:"",inches:[],feet:[],errorMsg:"",errorMsgHeight:"",errorMsgWeight:"",show:!1,submit:!1,slideName:"HeightWeight",heightFieldsTouched:{feet:!1,inches:!1},DesignRefreshQ2Test:null===(e=window.tests)||void 0===e?void 0:e.DesignRefreshQ2Test}},created:function(){this.getData(),this.init(),console.log("Loading: HeightWeight"),window.slideCreated()},mounted:function(){var e;this.show=!0,null===(e=document.getElementById("height_feet"))||void 0===e||e.focus()}
1,computed:{hasInput:function(){return!!this.weight&&this.height_feet&&this.height_inches&&"default"!==this.height_feet&&"default"!==this.height_inches},isHeightFeetError:function(){return!!this.errorMsgHeight&&"default"===this.height_feet},isHeightInchesError:function(){return!!this.errorMsgHeight&&"default"===this.height_inches}},methods:{getData:function(){for(var e=0;e<12;e++)this.inches.push({value:String(e),name:this.DesignRefreshQ2Test?String(e):e+"'"});for(var t=3;t<8;t++)this.feet.push({value:String(t),name:this.DesignRefreshQ2Test?String(t):t+"'"})},onHeightChange:function(){"default"!==this.height_feet&&"default"!==this.height_inches&&(this.errorMsg="",this.errorMsgHeight="")},onHeightBlur:function(e){this.heightFieldsTouched[e]=!0,this.heightFieldsTouched.feet&&this.heightFieldsTouched.inches&&this.validateHeight(!0)},onHeightSelect:function(e,t){this["feet"===e?"height_feet":"height_inches"]=t||"default",this.onHeightChange()},onHeightBlurBoth:function(){this.heightFieldsTouched.feet=!0,this.heightFieldsTouched.inches=!0,this.validateHeight(!0)},onWeightFocusToggle:function(e){e||this.validateWeight(!0)},validateHeight:function(e){return"default"===this.height_feet||"default"===this.height_inches?(this.errorMsg=D,this.errorMsgHeight=D,!1):(this.errorMsg="",this.errorMsgHeight="",!0)},validateWeight:function(e){if(!this.weight)return this.errorMsg=x,this.errorMsgWeight=x,!1;var t=parseFloat(this.weight);return isNaN(t)||t<4||t>500?(this.errorMsg=x,this.errorMsgWeight=x,!1):(this.errorMsg="",this.errorMsgWeight="",!0)},validate:function(){this.errorMsg="",this.errorMsgHeight="",this.errorMsgWeight="";var e=!0;return this.validateHeight(!1)||(e=!1),this.validateWeight(!1)||(e=!1),e},updateProp:(0,C.Hg)(function(){if(!this.submit&&this.validate()){this.errorMsg="",this.errorMsgHeight="",this.errorMsgWeight="";var e={height_feet:this.height_feet,height_inches:this.height_inches,weight:Math.round(this.weight)};this.show=!1,this.submit=!0,nextSlide(e)}}),init:function(){if(!sessionData.height_feet||!sessionData.height_inches||!sessionData.weight)return this.show=!0,!1;var e=["3","4","5","6","7"].includes(sessionData.height_feet),t=["0","1","2","3","4","5","6","7","8","9","10","11"].includes(sessionData.height_inches),i=!isNaN(sessionData.weight)&&sessionData.weight>=4&&sessionData.weight<=500;e&&(this.height_feet=sessionData.height_feet),t&&(this.height_inches=sessionData.height_inches),i&&(this.weight=sessionData.weight),this.show=!0},previous:function(){sessionData.height_feet=null,sessionData.height_inches=null,sessionData.weight=null},complete:function(e){e&&(sessionData.height_feet=e.height_feet,sessionData.height_inches=e.height_inches,sessionData.weight=e.weight)}}};const I=(0,i(66262).A)(F,[["render",function(e,t,i,a,b,m){var _=(0,n.g2)("StepHeader"),T=(0,n.g2)("SelectInput"),k=(0,n.g2)("TextInput"),H=(0,n.g2)("ValidationMark"),E=(0,n.g2)("ValidationErr"),M=(0,n.g2)("QWInput"),C=(0,n.g2)("NavigationFooter");return(0,n.uX)(),(0,n.CE)("div",l,[(0,n.Lk)("div",u,[(0,n.bF)(r.eB,{name:"slide-fade"},{default:(0,n.k6)(function(){return[e.show?((0,n.uX)(),(0,n.CE)("div",h,[e.DesignRefreshQ2Test?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(_,{key:0,text:"Your Height"})),(0,n.Q3)(" DesignRefreshQ2Test -- start "),e.DesignRefreshQ2Test?((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.bF)(T,{label:"Height","select-options":e.feet,"select-options-two":e.inches,input
1:"default"===e.height_feet?null:e.height_feet,"input-two":"default"===e.height_inches?null:e.height_inches,"num-fields":2,units:"ft.","units-two":"in.","is-error":e.isHeightFeetError,"is-error-two":e.isHeightInchesError,"error-text":e.errorMsgHeight,"error-text-two":e.errorMsgHeight,hidePlaceholderText:!0,"onUpdate:input":t[0]||(t[0]=function(t){return e.onHeightSelect("feet",t)}),"onUpdate:inputTwo":t[1]||(t[1]=function(t){return e.onHeightSelect("inches",t)}),onBlur:e.onHeightBlurBoth},null,8,["select-options","select-options-two","input","input-two","is-error","is-error-two","error-text","error-text-two","onBlur"]),(0,n.bF)(k,{ref:"weight",input:e.weight,"onUpdate:input":t[2]||(t[2]=function(t){return e.weight=t}),label:"Weight",type:"number",name:"weight",units:"lbs.","is-error":!!e.errorMsgWeight,"error-text":e.errorMsgWeight,onBlur:t[3]||(t[3]=function(t){return e.validateWeight(!0)}),onKeyup:(0,r.jR)(e.updateProp,["enter"])},null,8,["input","is-error","error-text","onKeyup"])],64)):((0,n.uX)(),(0,n.CE)(n.FK,{key:2},[(0,n.Q3)(" DesignRefreshQ2Test -- end "),(0,n.Lk)("div",d,[(0,n.Lk)("div",g,[(0,n.Lk)("div",c,[(0,n.Q3)(' <label for="height_feet" aria-valuetext="Feet"></label> '),(0,n.bo)((0,n.Lk)("select",{id:"height_feet","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.height_feet=t}),tabindex:"1",class:(0,s.C4)(["height_select",{"error-highlight":e.errorMsgHeight&&e.errorMsgHeight.length>0}]),onChange:t[5]||(t[5]=function(){return e.onHeightChange&&e.onHeightChange.apply(e,arguments)}),onBlur:t[6]||(t[6]=function(t){return e.onHeightBlur("feet")})},[t[13]||(t[13]=(0,n.Lk)("option",{value:"default"},"ft.",-1)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.feet,function(e){return(0,n.uX)(),(0,n.CE)("option",{key:e.value,value:e.value},(0,s.v_)(e.name),9,f)}),128))],34),[[r.u1,e.height_feet]])]),(0,n.Lk)("div",p,[(0,n.Q3)(' <label for="height_inches" aria-valuetext="Inches"></label> '),(0,n.bo)((0,n.Lk)("select",{id:"height_inches","onUpdate:modelValue":t[7]||(t[7]=function(t){return e.height_inches=t}),tabindex:"2",class:(0,s.C4)(["height_select",{"error-highlight":e.errorMsgHeight&&e.errorMsgHeight.length>0}]),onChange:t[8]||(t[8]=function(){return e.onHeightChange&&e.onHeightChange.apply(e,arguments)}),onBlur:t[9]||(t[9]=function(t){return e.onHeightBlur("inches")})},[t[14]||(t[14]=(0,n.Lk)("option",{value:"default"},"in.",-1)),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.inches,function(e){return(0,n.uX)(),(0,n.CE)("option",{key:e.value,value:e.value},(0,s.v_)(e.name),9,v)}),128))],34),[[r.u1,e.height_inches]])]),(0,n.bF)(H,{"error-msg":e.errorMsgHeight},null,8,["error-msg"])]),(0,n.bF)(E,{"error-msg":e.errorMsgHeight},null,8,["error-msg"]),(0,n.Q3)(' <div class="elementWrap"> '),(0,n.Lk)("div",w,[(0,n.bF)(M,{id:"weight",ref:"weight",modelValue:e.weight,"onUpdate:modelValue":t[10]||(t[10]=function(t){return e.weight=t}),tabindex:"3",type:"number",pattern:"[0-9]*",maxlength:"3",placeholder:"LBS.","error-msg":e.errorMsgWeight,onFocus:t[11]||(t[11]=function(t){return e.onWeightFocusToggle(!0)}),onBlur:t[12]||(t[12]=function(t){return e.onWeightFocusToggle(!1)}),onKeyup:(0,r.jR)(e.updateProp,["enter"])},{default:(0,n.k6)(function(){return o(t[15]||(t[15]=[(0,n.eW)(" And Weight ",-1)]))}),_:1},8,["modelValue","error-msg","onKeyup"]),t[16]||(t[16]=(0,n.Lk)("span",{id:"weight-unit"},"Lbs",-1)),(0,n.bF)(E,{"error-msg":e.errorMsgWeight},null,8,["error-msg"])])])],64)),(0,n.Q3)(" </div> "),e.DesignRefreshQ2Test?((0,n.uX)(),(0,n.Wv)(C,{key:3,"continue-fn":e.updateProp,"continue-disabled":!e.hasInput||e.submit},null,8,["continue-fn","continue-disabled"])):((0,n.uX)(),(0,n.CE)("div",y,[(0,n.bF)(C,{"continue-fn":e.updateProp,"continue-disabled":!e.hasInput||e.submit},null,8,["continue-fn","continue-disabled"])]))])):(0,n.Q3)("v-if",!0)]}),_:1})])])}]]),W=I},92263(e,t,i){i.d(t,{A:()=>b});var n=i(20641),r=i(90033),s=i(53751),o=["for"],a={class:"text-label-bold"},l=["onClick"],u={class:"text-body-m-regular input-select-display","aria-hidden":"true"},h={class:"input-units-container"},d={key:0,class:"text-body-m-regular"},g=["id","value","disabled","onChange","onKeydown"],c={key:0,value:"",disabled:""},f=["value"],p={class:"input-icon-container"},v={key:0,class:"text-body-xs-regular input-error-text"},w={key:1,class:"text-body-xs-regular input-helper-text"};const y={components:{Icon:i(34477).A},inheritAttrs:!1,props:{label:{type:String,required:!0},size:{type:String,default:"large",validator:function(e){return["small","medium","large"].includes(e)}},input:{type:String,default:null},inputTwo:{type:String,default:null},selectOptions:{type:Array,default:function(){return[]}},selectOptionsTwo:{type:Array,default:function(){return[]}},units:{type:String,default:null},unitsTwo:{type:String,default:null},numFields:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}},helperText:{type:String,default:null},errorText:{type:String,default:"Please select an option"},errorTextTwo:{type:String,default:"Please select an option"},isDisabled:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},isErrorTwo:{type:Boolean,default:!1},hidePlaceholderText:{type:Boolean,default:!1}},emits:["update:input","update:inputTwo"],computed:{fields:function(){var e=[{id:this.label+"-select",value:this.input,selectOptions:this.selectOptions,units:this.units,isError:this.isError,errorText:this.errorText,emit:"update:input"}];return 2===this.numFields&&e.push({id:this.label+"-select-two",value:this.inputTwo,selectOptions:this.selectOptionsTwo,units:this.unitsTwo,isError:this.isErrorTwo,errorText:this.errorTextTwo,emit:"update:inputTwo"}),e},hasError:function(){return this.fields.some(function(e){return e.isError})},displayErrorText:function(){var e,t;return null!==(e=null===(t=this.fields.find(function(e){return e.isError}))||void 0===t?void 0:t.errorText)&&void 0!==e?e:""}},created:function(){this.inputRefs=[]},methods:{setInputRef:function(e){var t=this;return function(i){t.inputRefs[e]=i}},selectedLabel:function(e){if(!e.value)return this.isDisabled||this.hidePlaceholderText?"":"Choose...";var t=e.selectOptions.find(function(t){return t.value===e.value});return t?t.name:e.value},focusField:function(e,t){var i=this.inputRefs[e];t.target!==i&&i.focus()},openPicker:function(e,t){var i=this.inputRefs[e];"function"==typeof i.showPicker&&(t.preventDefault(),i.showPicker())},handleInput:function(e,t){this.$emit(this.fields[e].emit,t.target.value)}}};const b=(0,i(66262).A)(y,[["render",function(e,t,i,y,b,m){var _=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",{class:(0,r.C4)(["general-input-container",["input-".concat(i.size),{"input-danger":m.hasError,"input-disabled":i.isDisabled}]])},[(0,n.Lk)("label",{for:m.fields[0].id},[(0,n.Lk)("span",a,(0,r.v_)(i.label),1)],8,o),(0,n.Lk)("div",{class:(0,r.C4)(["input-fields-container",{"input-fields-row":2===m.fields.length}])},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(m.fields,function(t,o){return(0,n.uX)(),(0,n.CE)("div",{key:t.id,class:(0,r.C4)(["input-field-wrapper",{"input-field-error":t.isError}]),onClick:function(e){return m.focusField(o,e)}},[(0,n.Lk)("span",u,(0,r.v_)(m.selectedLabel(t)),1),(0,n.Lk)("div",h,[t.units?((0,n.uX)(),(0,n.CE)("span",d,(0,r.v_)(t.units),1)):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("select",(0,n.v6)({id:t.id,ref_for:!0,ref:m.setInputRef(o),class:"text-body-m-regular input-field input-select-overlay",value:t.value,disabled:i.isDisabled},{ref_for:!0},e.$attrs,{onChange:function(e){return m.handleInput(o,e)},onKeydown:(0,s.jR)(function(e){return m.openPicker(o,e)},["enter"])}),[i.hidePlaceholderText?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("option",c," Choose... ")),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(t.selectOptions,function(e){return(0,n.uX)(),(0,n.CE)("option",{key:e.value,value:e.value},(0,r.v_)(e.name),9,f)}),128))],16,g),(0,n.Lk)("div",p,[t.isError?((0,n.uX)(),(0,n.Wv)(_,{key:0,icon:"exclamationCircle",size:16,class:"input-error-icon"})):(0,n.Q3)("v-if",!0),(0,n.bF)(_,{icon:"chevronDown",size:16})])],10,l)}),128))],2),m.hasError?((0,n.uX)(),(0,n.CE)("span",v,(0,r.v_)(m.displayErrorText),1)):i.helperText?((0,n.uX)(),(0,n.CE)("span",w,(0,r.v_)(i.helperText),1)):(0,n.Q3)("v-if",!0)],2)}]])}}]); 2//# sourceMappingURL=HeightWeight.aa8544fb9890fcb1a20c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.