PageSourceSearch

https://www.guidanceresources.com/groNg/default-src_app_components…n_question_component_ts.fd4434922b3e3fea.js

js guidanceresources.com collected 2026-10-03 21:50:38 UTC 27,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgro_frontend=self.webpackChunkgro_frontend||[]).push([["default-src_app_components_information_agc_question_question_component_ts"],{62648(v,_,m){m.r(_),m.d(_,{default:()=>ct});var p=m(46296),g=m(23806),E=m(50502),c=m(37222),F=m(76142),T=m(56610),b=m(83737),y=m(37204),R=m(90973),h=m(42121),C=m(96624),f=m(18794),I=m(34070),$=m(41171),t=m(56622);const x=()=>["/chat/landing"];function M(n,s){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span")(5,"a",40),t.EFF(6),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(),t.Lme("",t.bMT(2,5,"age.age.partial.seekingReferral")," ",t.bMT(3,7,"age.age.partial.contactUs")),t.R7$(4),t.Y8G("href",t.VkB("tel:",e.displayNumber),t.B4B),t.R7$(),t.SpI(" ",e.displayNumber)}}function q(n,s){1&n&&(t.nrm(0,"span",42),t.nI1(1,"translate")),2&n&&t.Y8G("innerHTML",t.bMT(1,1,"age.age.partial.seekingReferral"),t.npT)}function P(n,s){1&n&&(t.j41(0,"span"),t.EFF(1," or "),t.k0s())}function N(n,s){if(1&n&&t.nVh(0,q,2,3,"span",42)(1,P,2,0,"span"),2&n){const e=t.XpG(3);t.vxM(e.displayNumber?1:0)}}function G(n,s){if(1&n&&(t.j41(0,"span",39),t.nVh(1,N,2,1),t.j41(2,"a",41),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(),t.vxM(e.sessionDetail.chatAvailable?1:-1),t.R7$(),t.Y8G("routerLink",t.lJ4(5,x)),t.R7$(),t.JRh(t.bMT(4,3,"age.age.partial.clickChat"))}}function k(n,s){if(1&n&&t.nrm(0,"span",43),2&n){const e=t.XpG(3);t.Y8G("innerHTML",e.benefitClaimServiceText,t.npT)}}function O(n,s){if(1&n&&(t.j41(0,"a",41),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(3);t.Y8G("routerLink",e.UrlConstants.claimStatus),t.R7$(),t.JRh(t.bMT(2,2,"age.age.partial.claimStatus"))}}function D(n,s){if(1&n&&(t.j41(0,"div"),t.nVh(1,k,1,1,"span",43),t.nVh(2,O,3,4,"a",41),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.vxM(e.benefitClaimServiceText?1:-1),t.R7$(),t.vxM(e.serviceRequestsEnabled?2:-1)}}function S(n,s){if(1&n&&(t.j41(0,"div",6)(1,"div",9),t.nVh(2,M,7,9),t.nVh(3,G,5,6,"span",39),t.k0s(),t.nVh(4,D,3,2,"div"),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.vxM(e.displayNumber?2:-1),t.R7$(),t.vxM(e.chatFlag?3:-1),t.R7$(),t.vxM(e.benefitClaimServiceText||e.serviceRequestsEnabled?4:-1)}}function j(n,s){1&n&&(t.j41(0,"span",16),t.EFF(1,"*"),t.k0s())}function A(n,s){if(1&n&&(t.j41(0,"div",45),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI("",t.bMT(2,1,"age."+e.descriptionKey)," ")}}function Q(n,s){1&n&&(t.j41(0,"span",16),t.EFF(1,"*"),t.k0s())}function X(n,s){if(1&n&&(t.j41(0,"div")(1,"label",52),t.EFF(2),t.nI1(3,"translate"),t.nVh(4,Q,2,0,"span",16),t.k0s()()),2&n){const e=t.XpG(),o=e.$implicit,i=e.$index,a=t.XpG(),r=a.$implicit,l=a.$index;t.R7$(),t.Y8G("for","formInput"+l+"-"+i),t.R7$(),t.SpI("",t.bMT(3,3,"age."+o.propertyKey)," "),t.R7$(2),t.vxM(1!==r.questions.length&&o.required&&o.propertyKey?4:-1)}}function B(n,s){1&n&&(t.j41(0,"span",16),t.EFF(1,"*"),t.k0s())}function Y(n,s){if(1&n&&t.nrm(0,"input",46),2&n){const e=t.XpG().$index,o=t.XpG().$index;t.Y8G("formControlName",t.mNQ("formInput"+o+"-"+e))("id","formInput"+o+"-"+e)}}function L(n,s){if(1&n&&(t.j41(0,"textarea",47),t.EFF(1,"\t\t\t\t\t\t\t\t\t\t\t\t\t"),t.k0s()),2&n){const e=t.XpG().$index,o=t.XpG().$index;t.Y8G("formControlName",t.mNQ("formInput"+o+"-"+e))("id","formInput"+o+"-"+e)}}function V(n,s){if(1&n&&(t.j41(0,"div",26),t.nrm(1,"input",53),t.j41(2,"label",52),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&n){const e=s.$implicit,o=s.$index,i=t.XpG(2).$index,a=t.XpG().$index;t.R7$(),t.Y8G("id",t.VkB("option",a+"-"+o))("formControlName",t.mNQ("formInput"+a+"-"+i))("value",e.value),t.R7$(),t.Y8G("for",t.VkB("option",a+"-"+o)),t.R7$(),t.JRh(t.bMT(4,8,"age."+e.key))}}function w(n,s){if(1&n&&(t.j41(0,"div",48),t.Z7z(1,V,5,10,"div",26,t.fX1),t.k0s()),2&n){const e=t.XpG(),o=e.$implicit,i=e.$index,a=t.XpG().$index;t.Y8G("id","formInput"+a+"-"+i),t.R7$(),t.Dyx(o.options)}}function K(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",26)(1,"input",54),t.bIt("change",function(){const i=p.eBV(e),a=i.$implicit,r=i.$index,l=t.XpG(2).$index,u=t.XpG().$index,d=t.XpG();return p.Njj(d.checkboxClicked(a.value,"formInput"+u+"-"+l+"-"+r,u,l))}),t.k0s(),t.j41(2,"label",52),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const e=s.$implicit,o=s.$index,i=t.XpG(2).$index,a=t.XpG().$index;t.R7$(),t.Y8G("id",t.VkB("option",a+"-"+o))("formControlName",t.mNQ("formInput"+a+"-"+i+"-"+o))("value",e.value),t.R7$(),t.Y8G("for",t.VkB("option",a+"-"+o)),t.R7$(),t.JRh(t.bMT(4,8,"age."+e.key))}}function U(n,s){if(1&n&&(t.j41(0,"div",48),t.Z7z(1,K,5,10,"div",26,t.fX1),t.k0s()),2&n){const e=t.XpG(),o=e.$implicit,i=e.$index,a=t.XpG().$index;t.Y8G("id","formInput"+a+"-"+i),t.R7$(),t.Dyx(o.options)}}
1function W(n,s){if(1&n&&(t.nrm(0,"compsych-dropdown",49),t.nI1(1,"translate")),2&n){const e=t.XpG(),o=e.$implicit,i=e.$index,a=t.XpG(),r=a.$implicit,l=a.$index,u=t.XpG();t.Y8G("formControlName",t.mNQ("formInput"+l+"-"+i))("id","formInput"+l+"-"+i)("label",t.bMT(1,5,"age."+(o.propertyKey||r.propertyKey)))("options",u.dropdownOptions(o))}}function J(n,s){if(1&n&&t.nrm(0,"input",50),2&n){const e=t.XpG().$index,o=t.XpG().$index;t.Y8G("formControlName",t.mNQ("formInput"+o+"-"+e))("id","formInput"+o+"-"+e)}}function H(n,s){if(1&n&&(t.nrm(0,"compsych-dropdown",49),t.nI1(1,"translate")),2&n){const e=t.XpG(),o=e.$implicit,i=e.$index,a=t.XpG(),r=a.$implicit,l=a.$index,u=t.XpG();t.Y8G("formControlName",t.mNQ("formInput"+l+"-"+i))("id","formInput"+l+"-"+i)("label",t.bMT(1,5,"age."+(o.propertyKey||r.propertyKey)))("options",u.stateOptions)}}function z(n,s){if(1&n&&(t.j41(0,"span",51),t.EFF(1),t.k0s()),2&n){const e=t.XpG(),o=e.$implicit,i=e.$index,a=t.XpG().$index;t.Y8G("id","formInput"+a+"-"+i),t.R7$(),t.JRh(o.textValue)}}function Z(n,s){if(1&n&&(t.j41(0,"div",18)(1,"span",55),t.EFF(2,"i"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(3),t.SpI(" Please ",null!=e&&e.propertyKey?"enter "+t.bMT(4,1,"age."+e.propertyKey):"describe how we may help you")}}function tt(n,s){if(1&n&&(t.j41(0,"div",14),t.nVh(1,X,5,5,"div"),t.nVh(2,B,2,0,"span",16),t.nVh(3,Y,1,3,"input",46)(4,L,2,3,"textarea",47)(5,w,3,1,"div",48)(6,U,3,1,"div",48)(7,W,2,7,"compsych-dropdown",49)(8,J,1,3,"input",50)(9,H,2,7,"compsych-dropdown",49)(10,z,2,2,"span",51),t.nVh(11,Z,5,3,"div",18),t.k0s()),2&n){let e,o;const i=s.$implicit,a=s.$index,r=t.XpG(),l=r.$implicit,u=r.$index,d=t.XpG();t.R7$(),t.vxM(i.propertyKey?1:-1),t.R7$(),t.vxM(1!==l.questions.length&&i.required&&!i.propertyKey?2:-1),t.R7$(),t.vxM((e=i.propertyType)===d.constants.PROPERTY_TYPE_TEXT?3:e===d.constants.PROPERTY_TYPE_TEXT_AREA?4:e===d.constants.PROPERTY_TYPE_RADIO?5:e===d.constants.PROPERTY_TYPE_CHECKBOXES?6:e===d.constants.PROPERTY_TYPE_DROPDOWN?7:e===d.constants.PROPERTY_TYPE_DATE?8:e===d.constants.PROPRETY_TYPE_STATE?9:e===d.constants.PROPRETY_TYPE_DEFAULT?10:-1),t.R7$(8),t.vxM(null!=(o=d.questionForm.get("formInput"+u+"-"+a))&&o.valid||null==(o=d.questionForm.get("formInput"+u+"-"+a))||!o.touched?-1:11)}}function et(n,s){if(1&n&&(t.j41(0,"div",11)(1,"label",44),t.EFF(2),t.nI1(3,"translate"),t.nVh(4,j,2,0,"span",16),t.k0s(),t.nVh(5,A,3,3,"div",45),t.Z7z(6,tt,12,4,"div",14,t.fX1),t.k0s()),2&n){const e=s.$implicit,o=s.$index;t.R7$(),t.Y8G("for","formInput"+o+"-0"),t.R7$(),t.SpI("",t.bMT(3,4,"age."+e.propertyKey)," "),t.R7$(2),t.vxM(1===e.questions.length&&e.questions[0].required?4:-1),t.R7$(),t.vxM(e.descriptionKey?5:-1),t.R7$(),t.Dyx(e.questions)}}function nt(n,s){1&n&&(t.j41(0,"div",18)(1,"span",55),t.EFF(2,"i"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&n&&(t.R7$(3),t.SpI("",t.bMT(4,1,"age.age.contactInfo.name")," is required"))}function ot(n,s){1&n&&(t.j41(0,"div",18)(1,"span",55),t.EFF(2,"i"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&n&&(t.R7$(3),t.SpI("",t.bMT(4,1,"age.age.contactInfo.name")," is required"))}function it(n,s){if(1&n&&(t.j41(0,"div")(1,"div",14)(2,"label",56),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"textarea",57),t.k0s(),t.j41(6,"div",14)(7,"label",58),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.nrm(10,"input",59),t.k0s(),t.j41(11,"div",14),t.nrm(12,"compsych-dropdown",60),t.nI1(13,"translate"),t.k0s(),t.j41(14,"div",14)(15,"label",61),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.nrm(18,"input",62),t.k0s()()),2&n){const e=t.XpG();t.R7$(3),t.JRh(t.bMT(4,5,"age.age.contactInfo.address")),t.R7$(5),t.JRh(t.bMT(9,7,"age.age.contactInfo.city")),t.R7$(4),t.Y8G("label",t.bMT(13,9,"age.age.contactInfo.state"))("options",e.stateOptions),t.R7$(4),t.JRh(t.bMT(17,11,"age.age.contactInfo.postalCode"))}}function at(n,s){if(1&n&&(t.j41(0,"div",18)(1,"span",55),t.EFF(2,"i"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&n){let e;const o=t.XpG();t.R7$(3),t.Lme(" ",t.bMT(4,2,"age.age.contactInfo.email"),"",null!=(e=o.questionForm.get("contactEmail"))&&null!=e.errors&&e.errors.required?"is required":"is not val
1id"," ")}}function st(n,s){1&n&&(t.nrm(0,"span",34),t.nI1(1,"translate")),2&n&&t.Y8G("innerHTML",t.bMT(1,1,"age.age.behavioral.disclaimer"),t.npT)}function rt(n,s){1&n&&(t.nrm(0,"span",34),t.nI1(1,"translate")),2&n&&t.Y8G("innerHTML",t.bMT(1,1,"age.age.homeRepair.disclaimer"),t.npT)}function lt(n,s){1&n&&(t.nrm(0,"span",34),t.nI1(1,"translate")),2&n&&t.Y8G("innerHTML",t.bMT(1,1,"age.age.legal.disclaimer"),t.npT)}let ct=(()=>{class n{data=history.state.data;bean;category;sessionDetail;question;questionGroups;questionForm;benefitClaimServiceText=this.data.benefitClaimServiceText;serviceRequestsEnabled=this.data.serviceRequestsEnabled;emaildetails=new R.R;locale;chatView;partialGroup;genesysChat=!1;chatOnline;session;agc;chatFlag;constants=h.ty;displayNumber="";localConstants=C.K5;isCountryUsOrCa;getStatesUtill=new y.b;router=(0,p.WQX)(g.Ix);activatedRoute=(0,p.WQX)(g.nX);service=(0,p.WQX)(f.fH);utilityService=(0,p.WQX)(f.QY);translateService=(0,p.WQX)(F.c$);formBuilder=(0,p.WQX)(c.ok);scroller=(0,p.WQX)(T.Xr);chatService=(0,p.WQX)(f.mf);location=(0,p.WQX)(b.aZ);commonService=(0,p.WQX)(f.hf);UrlConstants=h.hP;get stateOptions(){return(this.bean?.states??[]).map(e=>({value:e,label:e}))}get bestTimeToCallOptions(){return[{value:"No Preference",label:this.translateService.instant("age.age.noPreference")},{value:"Morning",label:this.translateService.instant("age.age.morning")},{value:"Afternoon",label:this.translateService.instant("age.age.afternoon")},{value:"Evening",label:this.translateService.instant("age.age.evening")}]}dropdownOptions(e){return(e.options??[]).map(o=>({value:this.translateService.instant("age."+o.key),label:o.value}))}ngOnInit(){this.sessionDetail=this.utilityService.getSession(),this.locale=this.activatedRoute.snapshot.data.localeBean,this.category=this.data.category,this.bean=this.data.bean;const e=this.activatedRoute.snapshot.data.localeBean.selectedLocale.countryId;this.bean.states=this.getStatesUtill.getStates(e),this.bean.carriers=this.getStatesUtill.getCariers(e),this.question=this.data.question,this.questionGroups=this.data.questionGroup,this.inItForm(),this.bean.showLegalDisclaimerNodeIds=[358069,434415,358070,434417,358072,434419,358073,434422,358074,434424,358075,434427,358076,434429,358077,434431,7950,434413],this.partialGroup=this.utilityService.getGroup(),this.agc&&(this.agc.serviceViews=this.partialGroup?.askResponse,this.agc.serviceViews&&(this.chatView=this.agc.serviceViews.find(o=>null!=o&&o.id===C.Fb.CHAT))),this.chatService.checkAgentAvailability().subscribe(o=>{this.chatFlag=o[0],this.chatService.genesysChatEnabled.subscribe(i=>{this.genesysChat=i,this.genesysChat&&(this.partialGroup?.alwaysShowChat?(this.chatOnline=!0,this.chatFlag=this.chatView&&(this.genesysChat&&this.chatOnline||this.partialGroup.prospectiveGroup||this.chatView?.external)):this.chatService.chatOnline.subscribe(a=>{this.chatOnline=a,this.chatFlag=this.chatView&&(this.genesysChat&&this.chatOnline||this.partialGroup.prospectiveGroup||this.chatView?.external)}))})}),this.commonService.logEvent(h.sb.AGE_FORM_VIEW,"User views an AGE form",this.category.categoryName),this.displayNumber=this.getDisplayNumber(),this.isCountryUsOrCa=this.locale.selectedLocale.countryId===this.constants.ENGLISH_USA||this.locale.selectedLocale.countryId===this.constants.ENGLISH_CANADA}getDisplayNumber(){const e=this.sessionDetail;if(e.displayIntakePhoneNumber){if(e.intakePhoneNumber)return e?.intakePhoneNumber?e?.intakePhoneNumber:null;{const o=e.primaryPhones;if(o)return o[0]?.displayNumber?o[0]?.displayNumber:null}}}submitQuestion(){let e=!1;if(this.questionForm.markAllAsTouched(),this.emaildetails.longTitle=null!=this.question?this.question.longTitle:"",this.emaildetails.mailToMember=this.questionForm.get("contactEmail")?.value&&!this.bean.contact.carrier,this.questionForm.valid){this.generateEmailQuestion(),this.emaildetails.mailToMember&&this.generateEmailToMember(),this.bean.question=this.question;const o={state:{data:{bean:this.bean}}};this.emaildetails.contact=this.setContact(),this.service.submitQuestion(this.emaildetails).subscribe(i=>{i===this.constants.RESPONSE_SUCCESS_CODE?this.router.navigate([h.hP.agcthankyouurl],o):(this.inItForm(
1),this.scroller.scrollToAnchor("agcheader"))})}else{for(let o=0;this.questionGroups?.length>o;o++){if(this.questionGroups[o]?.questions)for(let i=0;this.questionGroups[o].questions?.length>i;i++)if(!this.questionForm.get("formInput"+o+"-"+i)?.valid){this.scroller.scrollToAnchor("formInput"+o+"-"+i),e=!0;break}if(e)break}e||(this.questionForm.get("firstName")?.valid&&this.questionForm.get("lastName")?.valid?this.questionForm.get("contactEmail")?.valid||this.scroller.scrollToAnchor("contactEmail"):this.scroller.scrollToAnchor("contactName"))}}checkboxClicked(e,o,i,a){this.questionForm.controls[`formInput${i}-${a}`].markAsTouched();let r=!0;this.questionForm.get(o)?.value?(this.questionForm.get(o)?.setValue(e),this.questionForm.get("formInput"+i+"-"+a)?.setValue(e)):(this.questionForm.get(o)?.setValue(""),this.questionGroups[i].questions[a].options.forEach((l,u)=>{this.questionForm.get("formInput"+i+"-"+a+"-"+u)?.value&&(r=!1)}),this.questionForm.get("formInput"+i+"-"+a)?.setValue(r?"":e))}showLegalDisclaimerNodeIdsFlag(e){return this.bean.showLegalDisclaimerNodeIds?.includes(e)}inItForm(){let e="",o="";if(this.bean.contact.name?.includes(",")){let i=this.bean.contact.name.split(",");e=i[0],o=i[1]}this.questionForm=this.formBuilder.group({}),this.questionForm.addControl("firstName",this.formBuilder.control(e||this.bean.contact.name,[c.k0.required])),this.questionForm.addControl("lastName",this.formBuilder.control(o||"",[c.k0.required])),this.questionForm.addControl("contactEmail",this.formBuilder.control(this.bean.contact.email,[c.k0.required,
1c.k0.email])),this.questionForm.addControl("contactPhone",this.formBuilder.control("")),this.questionForm.addControl("bestTimeToCallDropDown",this.formBuilder.control("No Preference")),this.questionForm.addControl("leaveMessage",this.formBuilder.control("No")),this.questionForm.addControl("contactAddress",this.formBuilder.control("")),this.questionForm.addControl("contactCity",this.formBuilder.control("")),this.questionForm.addControl("contactState",this.formBuilder.control(this.bean.states?.values().next()?.value)),this.questionForm.addControl("contactPostalCode",this.formBuilder.control("")),this.questionGroups?.forEach((i,a)=>{i?.questions?.forEach((r,l)=>{r.propertyType===this.constants.PROPRETY_TYPE_STATE?this.questionForm.addControl("formInput"+a+"-"+l,this.formBuilder.control(this.bean.states[0],r.required?[c.k0.required]:null)):r.propertyType===this.constants.PROPERTY_TYPE_DROPDOWN?this.questionForm.addControl("formInput"+a+"-"+l,this.formBuilder.control(r.options[0]?.value,r.required?[c.k0.required]:null)):r.propertyType===this.constants.PROPERTY_TYPE_CHECKBOXES?(this.questionForm.addControl("formInput"+a+"-"+l,this.formBuilder.control("",r.required?[c.k0.required]:null)),r.options.forEach((u,d)=>{this.questionForm.addControl("formInput"+a+"-"+l+"-"+d,this.formBuilder.control(""))})):this.questionForm.addControl("formInput"+a+"-"+l,this.formBuilder.control("",r.required?[c.k0.required]:null))})})}generateEmailQuestion(){let e;e=this.translateService.instant(this.isCountryUsOrCa?"age."+this.question.link:"age.globalAGEExpertEmail"),this.emaildetails.toEmail=e,this.generateEmail()}generateEmail(){let e;e="======= ",e+=new Intl.DateTimeFormat("en-US",this.constants.DATE_OPTIONS).format(new Date),e+=" =======\n\r",e+="Product, Subject and Topic information:\n",e+="\tProduct: ",e+=null!=this.category?this.category.productName:"EAP",e+="\n",e+="\tSubject: ",e+=null!=this.category?this.category.categoryName:"N/A",e+="\n",e+="\tTopic: ",e+=null!=this.question?this.question.longTitle:"N/A",e+="\n",e+="\tLocale: ",e+=this.locale.selectedLocaleString,e+="\n\r",e+="Customer Information:\n",e+="\tCompany: ",e+=this.sessionDetail.groupName,e+="\n",e+="\tCPP Account Number: ",e+=this.sessionDetail.cppAccountNumber?this.sessionDetail.cppAccountNumber:"",e+="\n\r",e+="Client Information:\n",e+="\tFirst Name: ",e+=this.questionForm.get("firstName")?.value,e+="\n",e+="\tLast Name: ",e+=this.questionForm.get("lastName")?.value,e+="\n",e+="\tE-mail: ",e+=this.questionForm.get("contactEmail")?.value,e+="\n",e+="\tPhone: ",e+=this.questionForm.get("contactPhone")?.value,e+="\n",e+="\tBest time to call: ",e+=this.questionForm.get("bestTimeToCallDropDown")?.value,e+="\n",e+="\tIs it OK to leave a message? ",e+=this.questionForm.get("leaveMessage")?.value,e+="\n",this.isCountryUsOrCa&&(e+="\tStreet Address: ",e+=this.questionForm.get("contactAddress")?.value,e+="\n",e+="\tCity: ",e+=this.questionForm.get("contactCity")?.value,e+="\n",e+="\tState: ",e+=this.questionForm.get("contactState")?.value,e+="\n"),e+="\tPostal Code: ",e+=this.questionForm.get("contactPostalCode")?.value,e+="\n",e+="\tLocale: ",e+=this.locale.selectedLocale.localeDescription,e+="\n\r",e+="==============================================\n",e+="Request Information:\n",null==this.questionGroups?(e+="Please describe the information you would like us to provide. \n",e+="\n"):e+=this.setPropertyKeyForms(),this.emaildetails.subject="Ask a Guidance Consultant - "+(null!=this.category?this.category.categoryName:this.locale.selectedLocale.countryDescription+" "+this.locale.selectedLocale.languageDescription),this.questionForm.get("contactEmail")?.value&&(this.emaildetails.fromEmail=this.questionForm.get("contactEmail")?.value),this.emaildetails.emailBody=e}setPropertyKeyForms(){let e="";return this.questionGroups.forEach((o,i)=>{e+=this.translateService.instant("age."+o.propertyKey),e+="\n",o.questions.forEach((a,r)=>{a.propertyKey&&(e+="\t",e+=this.translateService.instant("age."+a.propertyKey),e+="\n"),a.propertyType===this.constants.PROPERTY_TYPE_CHECKBOXES?a.options.forEach((l,u)=>{""!==this.questionForm.get("formInput"+i+"-"+r+"-"+u)?.value&&(e+="\t",e+=this.questionForm.get("formInput"+i+"-"+r+"-"+u)?.value,e+="\n")}):(e+="\t",e+=this.questionForm.get("formInput"+i+"-"+r)?.value,e+="\n")}),e+="\n\r"}),e}generateEmailToMember(){let e="";this.emaildetails.memberSubject=this.translateService.instant("age.age.email.subject");let a="expertResponseLetter";null!=this.category&&this.category.productId==this.constants.FAMILY_SOURCE&&this.isCountryUsOrCa&&this.bean.assetProductId>0&&(a+="_familyExpert"),e+=a,this.sessionDetail.localeId!=this.localConstants.AMERICA_REGION&&(e+="_",e+=this.locale.selectedLocale.language.toLowerCase()+"_"+this.locale.selectedLocale.country.toUpperCase()),e+=".html",this.emaildetails.memberToMail=this.questionForm.get("contactEmail")?.value,this.emaildetails.fileName=e}setContact(){const e=this.bean.contact;return e.name=this.questionForm.get("contactName")?.value,e.email=this.questionForm.get("contactEmail")?.value,e.leaveMessage=this.questionForm.get("leaveMessage")?.value,e.phone=this.questionForm.get("contactPhone")?.value,e.timeToCall=this.questionForm.get("bestTimeToCallDropDown")?.value,this.isCountryUsOrCa&&(e.address=this.questionForm.get("contactAddress")?.value,e.city=this.questionForm.get("contactCity")?.value,e.state=this.questionForm.get("contactState")?.value),e.zip=this.questionForm.get("contactPostalCode")?.value,e}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-question"]],decls:95,vars:62,consts:[[1,"narrowPage","narrowFormPage"],[1,"narrowPageContent"],["id","agcheader",1,"agcMain"],[1,"com-welcome-container"],[1,"com-welcome-title"],[1,"com-welcome-text","bold"],["
1id","referralBox",1,"agcCallout"],["id","questionForm",3,"ngSubmit","formGroup"],["id","question "],[1,"pb-2"],[1,"title","requiredText"],[1,"mb-2"],[1,"fw-bold","agcFormInputFields","mb-2"],[1,"agcFormInputFields","mb-2"],[1,"form-group","boxText"],["for","firstName",1,"required"],[1,"error"],["id","firstName","formControlName","firstName","type","text","size","30","autocomplete","given-name","required","",1,"agcFormInputFields"],[1,"errorBox"],["for","lastName",1,"required"],["id","lastName","formControlName","lastName","type","text","size","30","autocomplete","family-name","required","",1,"agcFormInputFields"],["for","contactPhone"],["type","text","label","contactPhone","id","contactPhone","formControlName","contactPhone","aria-describedby","phone-help-text","autocomplete","tel",1,"agcFormInputFields"],["id","phone-help-text",1,"fieldDescriptor"],["id","bestTimeToCallDropDown","formControlName","bestTimeToCallDropDown",3,"label","options"],[1,"agcFormInputFields","radioSetRow"],[1,"agcFormInputFields","radioSet"],["type","radio","value","Yes","id","leaveMessageYes","formControlName","leaveMessage",1,""],["for","leaveMessageYes",1,"fw-normal"],["type","radio","label","leaveMessageNo","value","No","id","leaveMessageNo","formControlName","leaveMessage",1,""],["for","leaveMessageNo",1,"fw-normal"],["for","contactEmail"],["id","contactEmail","type","text","formControlName","contactEmail","autocomplete","email",1,"agcFormInputFields"],[1,"com-disclaimer-text","normal-font-style"],[1,"agcFormInputFields","mb-2",3,"innerHTML"],[1,"btnSet"],["variant","filled","size","large","fullWidth","","type","submit",3,"label"],[1,"backBtn"],[3,"click"],["id","chatLink",1,"chatAvailable"],[1,"fw-bold","text-nowrap",3,"href"],[1,"fw-bold","text-decoration-underline",3,"routerLink"],[1,"agcFormInputFields",3,"innerHTML"],[3,"innerHTML"],[3,"for"],[1,"pb-3"],[1,"agcFormInputFields",3,"id","formControlName"],["rows","7","cols","70","maxlength","1000","required","",1,"agcFormInputFields","form-control",3,"id","formControlName"],[1,"agcFormInputFields",3,"id"],["hideLabel","",3,"id","formControlName","label","options"],["type","date","id","start","name","trip-start","dateFormat","mm/dd/yy",3,"formControlName","id"],[3,"id"],[1,"fw-normal",3,"for"],["type","radio",1,"agcFormInputFields",3,"value","id","formControlName"],["type","checkbox",1,"agcFormInputFields",3,"change","value","id","formControlName"],[1,"errorBoxI"],["for","contactAddress"],["id","contactAddress","formControlName","contactAddress","rows","7","cols","70","maxlength","1000","autocomplete","street-address",1,"agcFormInputFields","form-control"],["for","contactCity"],["id","contactCity","type","text","formControlName","contactCity","autocomplete","address-level1",1,"agcFormInputFields"],["id","contactState","formControlName","contactState",3,"label","options"],["for","contactPostalCode"],["id","contactPostalCode","type","text","formControlName","contactPostalCode","autocomplete","postal-code",1,"agcFormInputFields"]],template:function(o,i){if(1&o&&(t.j41(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h1"),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"sup"),t.EFF(10,"\xae"),t.k0s()()(),t.j41(11,"h2",5),t.EFF(12),t.k0s()(),t.nVh(13,S,5,3,"div",6),t.j41(14,"form",7),t.bIt("ngSubmit",function(){return i.submitQuestion()}),t.j41(15,"div")(16,"div",8)(17,"div",9)(18,"span",10),t.EFF(19),t.nI1(20,"translate"),t.k0s()(),t.Z7z(21,et,8,6,"div",11,t.fX1),t.k0s()(),t.j41(23,"span",12),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"span",13),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"span",13),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.j41(32,"div",14)(33,"label",15),t.EFF(34),t.nI1(35,"translate"),t.j41(36,"span",16),t.EFF(37," *"),t.k0s()(),t.nrm(38,"input",17),t.nVh(39,nt,5,3,"div",18),t.j41(40,"label",19),t.EFF(41),t.nI1(42,"translate"),t.j41(43,"span",16),t.EFF(44," *"),t.k0s()(),t.nrm(45,"input",20),t.nVh(46,ot,5,3,"div",18),t.k0s(),t.j41(47,"div",14)(48,"label",21),t.EFF(49),t.nI1(50,"translate"),t.k0s(),t.nrm(51,"input",22),t.j41(52,"span",23),t.EFF(53),t.nI1(54,"translate"),t.k0s()(),t.j41(55,"div",14),t.nrm(56,"compsych-dropdown",24),t.nI1(57,"translate"),t.k0s(),t.j41(58,"div",14)(59,"fieldset")(60,"legend"),t.EFF(61),t.nI1(62,"translate"),t.k0s(),t.j41(63,"div",25)(64,"div",26),t.nrm(65,"input",27),t.j41(66,"label",28),t.EFF(67),t.nI1(68,"translate"),t.k0s()(),t.j41(69,"div",26),t.nrm(70,"input",29),t.j41(71,"label",30),t.EFF(72),t.nI1(73,"translate"),t.k0s()()()()(),t.nVh(74,it,19,13,"div"),t.j41(75,"div",14)(76,"label",31),t.EFF(77),t.nI1(78,"translate"),t.j41(79,"span",16),t.EFF(80," *"),t.k0s()(),t.nrm(81,"input",32),t.nVh(82,at,5,4,"div",18),t.k0s(),t.j41(83,"div",33),t.nrm(84,"span",34),t.nI1(85,"translate"),t.nVh(86,st,2,3,"span",34),t.nVh(87,rt,2,3,"span",34),t.nVh(88,lt,2,3,"span",34),t.k0s(),t.j41(89,"div",35),t.nrm(90,"compsych-button",36),t.nI1(91,"translate"),t.k0s()()()()()(),t.j41(92,"div",37)(93,"button",38),t.nI1(94,"translate"),t.bIt("click",function(){return i.location.back()}),t.k0s()()),2&o){let a,r,l;t.R7$(7),t.JRh(t.bMT(8,28,"age.age.name")),t.R7$(5),t.SpI("",i.question.longTitle," "),t.R7$(),t.vxM(i.sessionDetail.localeId===i.localConstants.AMERICA_REGION&&i.category.categoryName.includes("Emotional")?13:-1),t.R7$(),t.Y8G("formGroup",i.questionForm),t.R7$(5),t.SpI("",t.bMT(20,30,"age.age.required")," *"),t.R7$(2),t.Dyx(i.questionGroups),t.R7$(3),t.JRh(t.bMT(25,32,"age.age.contactInfo.title")),t.R7$(3),t.JRh(t.bMT(28,34,"age.age.contactInfo.instructions.1")),t.R7$(3),t.JRh(t.bMT(31,36,"age.age.contactInfo.instructions.2")),t.R7$(4),t.JRh(t.bMT(35,38,"healthyGuidance.healthyGuidance.profile.firstName")),t.R7$(5),t.vxM(null!=(a=i.questionForm.get("firstName"))&&a.valid||null==(a=i.questionForm.get("firstName"))||
1!a.touched?-1:39),t.R7$(2),t.JRh(t.bMT(42,40,"healthyGuidance.healthyGuidance.profile.lastName")),t.R7$(5),t.vxM(null!=(r=i.questionForm.get("lastName"))&&r.valid||null==(r=i.questionForm.get("lastName"))||!r.touched?-1:46),t.R7$(3),t.JRh(t.bMT(50,42,"age.age.contactInfo.phone")),t.R7$(4),t.SpI("",t.bMT(54,44,"age.age.contactInfo.phone.help")," "),t.R7$(3),t.Y8G("label",t.bMT(57,46,"age.age.contactInfo.timeToCall"))("options",i.bestTimeToCallOptions),t.R7$(5),t.JRh(t.bMT(62,48,"age.age.contactInfo.leaveMessage")),t.R7$(6),t.JRh(t.bMT(68,50,"age.age.yes")),t.R7$(5),t.JRh(t.bMT(73,52,"age.age.no")),t.R7$(2),t.vxM((null==i.questionGroups[0]?null:i.questionGroups[0].questionGroupId)!=i.constants.CHILD_CARE?74:-1),t.R7$(3),t.JRh(t.bMT(78,54,"age.age.contactInfo.email")),t.R7$(5),t.vxM(null!=(l=i.questionForm.get("contactEmail"))&&l.valid||null==(l=i.questionForm.get("contactEmail"))||!l.touched?-1:82),t.R7$(2),t.Y8G("innerHTML",t.bMT(85,56,"age.age.disclaimer"),t.npT),t.R7$(2),t.vxM(i.question.productId===i.constants.EAP?86:-1),t.R7$(),t.vxM(i.question.nodeId===i.constants.QUESTION_NODE_ID_HOMEREPAIR?87:-1),t.R7$(),t.vxM(i.showLegalDisclaimerNodeIdsFlag(i.question.nodeId)?88:-1),t.R7$(2),t.Y8G("label",t.bMT(91,58,"age.age.submit")),t.R7$(3),t.BMQ("aria-label",t.bMT(94,60,"access.guideMe.back"))}},dependencies:[I.Q,$.P,F.h,E.Wk,c.X1,c.qT,c.me,c.Zm,c.Fm,c.BC,c.cb,c.YS,c.tU,c.j4,c.JD,F.D9],encapsulation:2})}return n})()},90973(v,_,m){m.d(_,{R:()=>p});class p{toEmail;fromEmail;subject;emailBody;mailToMember;longTitle;memberSubject;memberFromEmail;memberToMail;fileName;contact}}}]);

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.