PageSourceSearch

https://www.letsgetchecked.com/pwui-patient-dashboard-2-30-16-59/957.54df6a13ca8064b6.js

js letsgetchecked.com collected 2026-10-03 21:19:59 UTC 57,637 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpatient_dashboard=self.webpackChunkpatient_dashboard||[]).push([[957],{60957(ni,be,o){o.d(be,{PrescriptionPurchaseModule:()=>ii});var _=o(49769),R=o(93049),e=o(35547),g=o(73357),z=o(34663);let Se=(()=>{class i{constructor(t,r){this.route=t,this.router=r,this.title="There was an error continuing the assessment.",this.message="There was an error continuing the assessment. We apologize for the inconvenience."}ngOnInit(){const t=this.route.snapshot.queryParamMap.get("custom-title"),r=this.route.snapshot.queryParamMap.get("custom-message");this.title=t??this.title,this.message=r??this.message}redirectToDashboard(){this.router.navigate([""])}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(g.nX),e.rXU(g.Ix))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-prescription-error"]],standalone:!1,decls:13,vars:0,consts:[[1,"app-portal","p-4","container","col-lg-8"],[1,"d-flex","flex-column","h-100","align-items-center","justify-content-center"],[1,"title"],[1,"image"],[1,"text"],[1,"message-and-button","d-flex","flex-column","align-items-center","justify-content-center"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(r,n){1&r&&(e.j41(0,"div",0),e.nrm(1,"app-empty-header"),e.j41(2,"div",1)(3,"div",2)(4,"h1"),e.EFF(5,"There was an error continuing the assessment."),e.k0s()(),e.nrm(6,"div",3)(7,"div",4),e.j41(8,"div",5)(9,"p"),e.EFF(10,"Please, click the button below to return to our dashboard."),e.k0s(),e.j41(11,"button",6),e.bIt("click",function(){return n.redirectToDashboard()}),e.EFF(12," Return to your dashboard "),e.k0s()()()())},dependencies:[z.e],encapsulation:2})}}return i})();var Fe=o(70152),$e=o(23294),T=o(5964),f=o(96354),p=o(25558),d=o(88141),l=o(89417);const ye={Alaska:"AK",Alabama:"AL","Alaska/Hawaii":"AK",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE","District of Columbia":"DC",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA",Wisconsin:"WI",Wyoming:"WY","United Kingdom":"GB"};var m=o(84412),Ae=o(27468),C=o(7673),I=o(87630),c=o(85802),k=o(91413);const B=I.$9.api;let K=(()=>{class i{constructor(t){this.http=t,this.addresses=new m.t(null),this.firstName=new m.t(null),this.lastName=new m.t(null),this.unsupportedStates=[],this.currentSelectedAddress$=new m.t(null)}get currentAddress(){return this.currentSelectedAddress$.getValue()}set currentAddress(t){this.currentSelectedAddress$.next(t)}getStatesAndAddressesForPrescription(t){return(0,Ae.p)([this.http.get(`${B}address/country/US/areas/eprescription`),this.http.get(`${B}customer?includeAddresses=true`)]).pipe((0,f.T)(([r,n])=>{const s=n.deliveryAddresses,u=new Set,h=s.filter(b=>{const $="US"===b.countryIsoAlpha2&&r.items.map(E=>E.name).includes(b.area);return $||u.add(ye[b.area]??b.countryIsoAlpha2),$});return this.unsupportedStates=Array.from(u),this.addresses.next(h),this.firstName.next(n.firstName),this.lastName.next(n.lastName),{addresses:h,areas:r.items,addressesHidden:h.length<s.length}}))}loadStatesForEPrescription(t){return(0,C.of)(null)}loadAddresses(){return(0,C.of)(null)}addAddress(t){return this.http.post(`${B}customer/address/delivery`,t)}static{this.\u0275fac=function(r){return new(r||i)(c.KVO(k.Qq))}}static{this.\u0275prov=c.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Z=o(21413),Ie=o(57786),P=o(94217),U=o(14839),J=o(94583),Me=o(49462),X=o(15952),D=o(93297);const xe=["supportedAddresses"],Pe=["areaInstance"],je=["addressRefs"],Re=["addressLine2"],N=i=>({"is-invalid":i});function Te(i,a){if(1&i&&(e.j41(0,"div",10)(1,"div",16),e.nrm(2,"i",17),e.k0s(),e.j41(3,"div",18)(4,"span"),e.EFF(5),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(5),e.Lme("",null==t.prescription?null:t.prescription.ePrescriptionName," is not permitted for use in ",t.unsupportedStates.join(", ")," due to restrictions")}}function ke(i,a){if(1&i){const t=e.RV6();e.j41(0,"label",19),e.bIt("click",function(){const n=c.eBV(t).$implicit,s=e.XpG(2);return c.Njj(s.setCurrentAddress(n))}),e.j41(1,"div",20),e.nrm(2,"input",21),e.j41(3,"label",22)(4,"b"),e.EFF(5),e.k0s(),e.nrm(6,"br"),e.EFF(7),e.nrm(8,"br"),e.EFF(9),e.k0s()()()}if(2&i){const t=a.$implicit,r=a.$index,n=e.XpG(2);e.Y8G("for","savedAddress"+r),e.R7$(2),e.Y8G("id","savedAddress"+r)("checked",r===n.primaryAddressIndex),e.R7$(),e.Y8G("for","savedAddress"+r),e.R7$(2),e.JRh(t.fullName),e.R7$(2),e.SpI(" ",t.area),e.R7$(2),e.Lme(" ",t.area,", ",t.postalCode," ")}}function Ne(i,a){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3);e.SpI(" ",t.validationErroMessage("addressLine1","address line 1",35)," ")}}function we(i,a){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3);e.SpI(" ",t.validationErroMessage("addressLine2","address line 2",35)," ")}}function Ee(i,a){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3);e.SpI(" ",t.validationErroMessage("city","town / city",29)," ")}}function Ue(i,a){1&i&&e.EFF(0," Please select an area from the list ")}function Ge(i,a){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3);e.SpI(" ",t.validationErroMessage("postalCode","zip / postal code",8)," ")}}function Ve(i,a){if(1&i){const t=e.RV6();e.j41(0,"form",23),e.bIt("ngSubmit",function(){c.eBV(t);const n=e.XpG(2);return c.Njj(n.submit())}),e.j41(1,"div",24),e.nrm(2,"input",25),e.j41(3,"label",26),e.EFF(4,"Address Line 1"),e.k0s(),e.j41(5,"p",27),e.nVh(6,Ne,1,1),e.k0s()(),e.j41(7,"div",24),e.nrm(8,"input",28,1),e.j41(10,"label",29),e.EFF(11,"Address Line 2"),e.k0s(),e.j41(12,"p",27),e.nVh(13,we,1,1),e.k0s()(),e.j41(14,"div",24),e.nrm(15,"input",30),e.j41(16,"label",31),e.EFF(17,"Town / City"),e.k0s(),e.j41(18,"p",27),e.nVh(19,Ee,1,1),e.k0s()(),e.j41(20,"div",32)(21,"div",33)(22,"div",24)(23,"input",34,2),e.bIt("selectItem",function(n){c.eBV(t);const s=e.XpG(2);return c.Njj(s.selectArea(n))})("focus",function(n){c.eBV(t);const s=e.XpG(2);return c.Njj(s.setAreaValue(n))})("click",function(n){c.eBV(t);const s=e.XpG(2);return c.Njj(s.areaClick$.next(n.target.value))})("blur",function(n){c.eBV(t);const s=e.XpG(2);return c.Njj(s.checkAreaValue(n))}),e.k0s(),e.j41(25,"label",35),e.EFF(26),e.k0s(),e.j41(27,"p",27),e.nVh(28,Ue,1,0),e.k0s()()(),e.j41(29,"div",36)(30,"div",24),e.nrm(31,"input",37),e.j41(32,"label",38),e.EFF(33,"Zip / Postal Code"),e.k0s(),e.j41(34,"p",27),e.nVh(35,Ge,1,1),e.k0s()()()(),e.j41(36,"div",24),e.nrm(37,"input",39),e.j41(38,"label",40),e.EFF(39,"Country"),e.k0s()(),e.j41(40,"div",32)(41,"div",41)(42,"div",42)(43,"button",43),e.EFF(44," Continue "),e.k0s()()()()()}if(2&i){const t=e.sdS(24),r=e.XpG(2);e.Y8G("formGroup",r.addressForm),e.R7$(2),e.Y8G("autocomplete","address-line1")("ngClass",e.eq3(35,N,r.addressForm.get("addressLine1").touched&&r.addressForm.get("addressLine1").invalid)),e.BMQ("aria-describedby","addressLine1-error-"+r.uniqueId),e.R7$(3),e.Y8G("id","addressLine1-error-"+r.uniqueId),e.R7$(),e.vxM(r.addressForm.get("addressLine1").touched&&r.addressForm.get("addressLine1").invalid?6:-1),e.R7$(2),e.Y8G("autocomplete","address-line2")("ngClass",e.eq3(37,N,r.addressForm.get("addressLine2").touched&&r.addressForm.get("addressLine2").invalid)),e.BMQ("aria-describedby","addressLine2-error-"+r.uniqueId),e.R7$(4),e.Y8G("id","addressLine2-error-"+r.uniqueId),e.R7$(),e.vxM(r.addressForm.get("addressLine2").touched&&r.addressForm.get("addressLine2").invalid?13:-1),e.R7$(2),e.Y8G("autocomplete","address-level2")("ngClass",e.eq3(39,N,r.addressForm.get("city").touched&&r.addressForm.get("city").invalid)),e.BMQ("aria-describedby","city-error-"+r.uniqueId),e.R7$(3),e.Y8G("id","city-error-"+r.uniqueId),e.R7$(),e.vxM(r.addressForm.get("city").touched&&r.addressForm.get("city").invalid?19:-1),e.R7$(4),e.Y8G("ngClass",e.eq3(41,N,r.addressForm.get("area").touched&&r.addressForm.get("area").invalid&&!t.isPopupOpen()))("ngbTypeahead",r.areasSearch)("resultFormatter",r.areasFormatter)("inputFormatter",r.areasFormatter)("editable",!1)("autocomplete",r.uniqueId+"-a")("placement","bottom-left"),e.BMQ("aria-describedby","area-error-"+r.uniqueId),e.R7$(3),e.JRh(r.areaLabel),e.R7$(),e.Y8G("id","area-error-"+r.uniqueId),e.R7$(),e.vxM(r.addressForm.get("area").touched&&r.addressForm.get("area").invalid?28:-1),e.R7$(3),e.Y8G("autocomplete","postal-code")("ngClass",e.eq3(43,N,r.addressForm.get("postalCode").touched&&r.addressForm.get("postalCode").invalid)),e.BMQ("aria-describedby","postalCode-error-"+r.uniqueId),e.R7$(3),e.Y8G("id","postalCode-error-"+r.uniqueId),e.R7$(),e.vxM(r.addressForm.get("postalCode").touched&&r.addressForm.get("postalCode").invalid?35:-1),e.R7$(2),e.Y8G("disabled",!0),e.R7$(6),e.Y8G("disabled",r.addressForm.invali
1d)("lgcAmplitudeButton","select state")}}function Le(i,a){if(1&i){const t=e.RV6();e.j41(0,"section",4)(1,"div",5)(2,"div",6,0)(4,"div",7)(5,"h2",8),e.EFF(6,"Address Confirmation"),e.k0s(),e.j41(7,"p",9),e.EFF(8," We need to verify your details so our nursing team can contact you for support and updates on your results. "),e.k0s()(),e.nVh(9,Te,6,2,"div",10),e.Z7z(10,ke,10,8,"label",11,e.fX1),e.j41(12,"div",12)(13,"a",13),e.bIt("click",function(){c.eBV(t);const n=e.XpG();return c.Njj(n.addNewAddress())}),e.nrm(14,"i",14),e.EFF(15,"\xa0Ship to a new address"),e.k0s()(),e.nVh(16,Ve,45,45,"form",15),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(9),e.vxM(t.addressesFiltered?9:-1),e.R7$(),e.Dyx(t.addresses),e.R7$(6),e.vxM(t.showAddressForm?16:-1)}}let Be=(()=>{class i{constructor(t,r,n,s,u,h){this.fb=t,this.service=r,this.router=n,this.activatedRoute=s,this.userService=u,this.prescriptionService=h,this.areas=[],this.areaLabel="State",this.isLoading$=new m.t(!0),this.addresses=[],this.addressesFiltered=!1,this.showAddressForm=!1,this.isNewAddress=!1,this.primaryAddressIndex=-1,this.prescription=null,this.unsupportedStates=[],this.currentAddress=null,this.areaFocus$=new Z.B,this.areaClick$=new Z.B,this.areaJustSelected=!1,this.addressForm=this.fb.group({addressLine1:["",[l.k0.required,l.k0.maxLength(35)]],addressLine2:["",l.k0.maxLength(35)],city:["",[l.k0.required,l.k0.maxLength(29)]],postalCode:["",[l.k0.maxLength(8),l.k0.required]],countryIsoAlpha2:["US",l.k0.required],area:["",l.k0.required],supportedAddresses:[[[]],l.k0.required]}),this.nextRoute=[],this.userFullName="",this.areasFormatter=b=>{const $=this.areas.length>0?this.areas.find(E=>E.id===b):void 0;return $?$.name:void 0},this.areasSearch=b=>{const $=b.pipe((0,Fe.B)(200),(0,$e.F)()),E=this.areaClick$.pipe((0,T.p)(()=>!this.areaInstance.isPopupOpen())),ri=this.areaFocus$.pipe((0,T.p)(()=>{const y=!this.areaJustSelected;return this.areaJustSelected=!1,y}),(0,f.T)(y=>y.target.value));return(0,Ie.h)($,ri,E).pipe((0,f.T)(y=>this.areas.sort((A,x)=>{const he=!!A&&A.name.toLowerCase()===y.toLowerCase(),me=!!A&&0===A.name.toLowerCase().indexOf(y.toLowerCase()),fe=!!A&&A.name.toLowerCase().indexOf(y.toLowerCase())>-1,ve=!!x&&x.name.toLowerCase()===y.toLowerCase(),ge=!!x&&0===x.name.toLowerCase().indexOf(y.toLowerCase()),Ce=!!x&&x.name.toLowerCase().indexOf(y.toLowerCase())>-1;return he&&!ve?-1:ve&&!he?1:me&&!ge?-1:ge&&!me?1:fe&&!Ce?-1:Ce&&!fe?1:A.name<x.name?-1:A.name>x.name?1:0}).map(A=>A.id)))}}ngOnInit(){this.activatedRoute.params.pipe((0,f.T)(t=>t.customerEPrescriptionId),(0,p.n)(t=>(this.prescriptionService.prescriptionId=t,this.service.getStatesAndAddressesForPrescription(t))),(0,d.M)(t=>{this.addresses=t.addresses,this.addressesFiltered=t.addressesHidden,this.areas=t.areas,this.unsupportedStates=this.service.unsupportedStates}),(0,p.n)(()=>this.prescriptionService.getPrescription()),(0,d.M)(t=>{this.prescription=t,this.prescriptionService.ePrescription=t}),(0,p.n)(()=>this.userService.user$),(0,d.M)(t=>{t&&(this.primaryAddressIndex=this.getPrimaryAddressIndex(this.addresses),-1!==this.primaryAddressIndex&&this.setCurrentAddress(this.addresses[this.primaryAddressIndex]),this.userFullName=t.fullName,t.phoneNumber.phoneNumber&&(this.hasValidPhoneNumber=!0),(!t.primaryAddress||t.deliveryAddresses.length<=0)&&(this.isNewAddress=!0))})).subscribe({next:t=>{this.isLoading$.next(!1)},complete:()=>this.isLoading$.next(!1),error:t=>{this.isLoading$.next(!1)}}),this.addressForm.get("addressLine1").valueChanges.subscribe(t=>{null!=t&&t.length>35&&(this.addressForm.get("addressLine1").setValue(t.substring(0,35)),this.addressLine2&&this.addressLine2.nativeElement.focus())})}submit(){if(this.isNewAddress){const t={...this.addressForm.value,fullName:this.userFullName,isDefault:!1};this.userService.addDeliveryAddress(t).pipe((0,p.n)(()=>this.userService.getDeliveryAddresses()),(0,d.M)(r=>{if(!r)return null;const n=r.pop();this.currentAddress=n,this.prescriptionService.address=n,this.prescriptionService.addressId=n.id}),(0,d.M)(()=>{this.prescriptionService.assignAddressToEPrescription(this.prescription,this.currentAddress.id).subscribe(()=>{this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescriptionStatus())})})).subscribe(()=>{this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescriptionStatus())})}else this.prescriptionService.assignAddressToEPrescription(this.prescription,this.currentAddress.id).subscribe(()=>{this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescriptionStatus())})}checkAreaValue(t){if(!this.addressForm.get("area").value){const r=t.target.value,n=this.areas.filter(s=>s.name.toLowerCase().indexOf(r.toLowerCase())>-1);1===n.length?(this.addressForm.get("area").setValue(n[0].id),this.backUpAreaValue=n[0]):this.backUpAreaValue&&this.addressForm.get("area").setValue(this.backUpAreaValue.id)}}setAreaValue(t){this.backUpAreaValue=this.areas.find(r=>r.id===this.addressForm.get("area").value),this.areaFocus$.next(t)}selectArea(t){t&&t.item&&(this.backUpAreaValue=this.areas.find(r=>r.id===t.item)),this.areaJustSelected=!0}validationErroMessage(t,r,n){const s=this.addressForm.get(t).errors??{};return s.required?`Please enter your ${r}`:s.maxlength?`${this.capitalizeFirstLetter(r)} should be at most ${n.toString()} characters long`:null}capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}setCurrentAddress(t){this.currentAddress=t,this.isNewAddress=!1,this.showAddressForm=!0,this.service.currentAddress=t,this.prescriptionService.address=t,this.prescriptionService.addressId=t.id,this.addressForm.setValue({area:this.areas.find(r=>r.name===t.area).id,countryIsoAlpha2:t.countryIsoAlpha2,postalCode:t.postalCode,city:t.city,addressLine2:t.addressLine2,addressLine1:t.addressLine1,supportedAddresses:[]})}addNewAddress(){this.isNewAddress=!0,this.showAddressForm=!0,this.clearSelectedAddress(),Object.keys(this.addressForm.controls).forEac
1h(t=>{const r=this.addressForm.get(t);"countryIsoAlpha2"!==t&&r.reset()})}clearSelectedAddress(){this.addressRefs.nativeElement.querySelectorAll('input[type="radio"]').forEach(t=>t.checked=!1)}getPrimaryAddressIndex(t){for(let r=0;r<t.length;r++)if(t[r].isDefault)return r;return-1}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(l.ok),e.rXU(K),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(U.D),e.rXU(P.Z))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-add-prescription-address"]],viewQuery:function(r,n){if(1&r&&e.GBs(xe,5)(Pe,5)(je,5)(Re,7),2&r){let s;e.mGM(s=e.lsd())&&(n.supportedAddresses=s.first),e.mGM(s=e.lsd())&&(n.areaInstance=s.first),e.mGM(s=e.lsd())&&(n.addressRefs=s.first),e.mGM(s=e.lsd())&&(n.addressLine2=s.first)}},standalone:!1,decls:4,vars:6,consts:[["addressRefs",""],["addressLine2",""],["areaInstance","ngbTypeahead"],[3,"isLoading"],[1,"cmp__prescription-activation__address"],[1,"row","justify-content-center"],[1,"col-12","col-lg-10","col-xl-8"],[1,"header"],[1,"title"],[1,"subtitle"],[1,"panel","info","row","m-0","font-size-small"],[1,"address-card",3,"for"],[1,"my-4"],["id","newAddressButton","href","javascript:void(0)",1,"new-address-link","pl-1",3,"click"],[1,"lgc-icon-plus"],[3,"formGroup"],[1,"col-1","d-flex","justify-content-center","align-content-center"],[1,"lgc-icon-info"],[1,"col"],[1,"address-card",3,"click","for"],[1,"custom-control","custom-radio"],["data-val","true","data-val-number","The field Delivery Address must be a number.","name","SelectedDeliveryAddressId","type","radio","value","100417336",1,"custom-control-input",3,"id","checked"],[1,"custom-control-label",3,"for"],[3,"ngSubmit","formGroup"],[1,"form-group-listener","form-group"],["type","text","name","addressLine1","id","addressLine1","formControlName","addressLine1","FormControlState","",1,"form-control",3,"autocomplete","ngClass"],["for","addressLine1"],["aria-live","polite","aria-atomic","true",1,"invalid-feedback",3,"id"],["type","text","name","addressLine2","id","addressLine2","formControlName","addressLine2","FormControlState","",1,"form-control",3,"autocomplete","ngClass"],["for","addressLine2"],["type","text","name","city","id","city","formControlName","city","FormControlState","",1,"form-control",3,"autocomplete","ngClass"],["for","city"],[1,"row"],[1,"col-12","col-sm-6","pr-sm-2"],["type","text","name","area","id","area","formControlName","area","FormControlState","",1,"form-control","dropdown-toggle",3,"selectItem","focus","click","blur","ngClass","ngbTypeahead","resultFormatter","inputFormatter","editable","autocomplete","placement"],["for","area"],[1,"col-12","col-sm-6","pl-sm-2"],["type","text","name","postalCode","id","postalCode","formControlName","postalCode","FormControlState","",1,"form-control",3,"autocomplete","ngClass"],["for","postalCode"],["type","text","name","countryIsoAlpha2","id","countryIsoAlpha2","formControlName","countryIsoAlpha2","FormControlState","",1,"form-control","dropdown-toggle",3,"disabled"],["for","countryIsoAlpha2"],[1,"col-12","col-md-6"],[1,"pt-2"],["type","submit",1,"btn","btn-primary","btn-lg","btn-block","font-size-normal",3,"disabled","lgcAmplitudeButton"]],template:function(r,n){1&r&&(e.nrm(0,"app-loading",3),e.nI1(1,"async"),e.nVh(2,Le,17,2,"section",4),e.nI1(3,"async")),2&r&&(e.Y8G("isLoading",e.bMT(1,2,n.isLoading$)),e.R7$(2),e.vxM(e.bMT(3,4,n.isLoading$)?-1:2))},dependencies:[_.YU,J.U,l.qT,l.me,l.BC,l.cb,Me.$n,l.j4,l.JD,X.D,D.q,_.Jj],encapsulation:2,changeDetection:0})}}return i})();var Xe=o(53623),F=o(99437),De=o(33103),Oe=o(70980),Ye=o(45187),Qe=o(49584),qe=o(8967),He=o(60562);const We=["verificationCode"],ze=i=>({collapsed:i}),Ke=i=>({"is-invalid":i});function Ze(i,a){1&i&&e.EFF(0," Please enter the verification code sent to your phone number. ")}function Je(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",11)(1,"div",13),e.nrm(2,"input",14,0),e.j41(4,"label",15),e.EFF(5,"6 Digit Verification Code"),e.k0s(),e.j41(6,"p",16),e.nVh(7,Ze,1,0),e.k0s()(),e.j41(8,"p"),e.EFF(9," Didn't receive your code? "),e.j41(10,"button",17),e.bIt("click",function(n){c.eBV(t);const s=e.XpG(2);return c.Njj(s.resendCode(n))}),e.EFF(11," Resend "),e.k0s()()()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass",e.eq3(7,ze,!t.showCodeForm)),e.R7$(2),e.Y8G("ngClass",e.eq3(9,Ke,t.phoneForm.get("verificationCode").touched&&t.phoneForm.get("verificationCode").invalid))("autocomplete",t.uniqueId+"-verification"),e.BMQ("aria-describedby","verificationCode-error-"+t.uniqueId),e.R7$(4),e.Y8G("id","verificationCode-error-"+t.uniqueId),e.R7$(),e.vxM(t.phoneForm.get("verificationCode").touched&&t.phoneForm.get("verificationCode").invalid?7:-1),e.R7$(3),e.Y8G("lgcAmplitudeButton","click resend verification code")}}function et(i,a){if(1&i&&(e.j41(0,"button",12),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);
1e.Y8G("disabled",t.phoneForm.invalid||t.isSendingVerificationCode)("lgcAmplitudeButton","click send verification code"),e.R7$(),e.SpI(" ",t.isSendingVerificationCode?"Sending Code...":"Send Verification Code"," ")}}function tt(i,a){if(1&i&&(e.j41(0,"button",12,1),e.EFF(2," Submit Code "),e.k0s()),2&i){const t=e.XpG(2);e.Y8G("disabled",t.phoneForm.invalid)("lgcAmplitudeButton","complete phone verification")}}function it(i,a){if(1&i){const t=e.RV6();e.j41(0,"section",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h1"),e.EFF(5),e.k0s(),e.j41(6,"p",6),e.EFF(7),e.k0s(),e.nrm(8,"app-phone-verification-error"),e.j41(9,"form",7),e.bIt("ngSubmit",function(){c.eBV(t);const n=e.XpG();return c.Njj(n.phoneSubmit())}),e.j41(10,"div",8)(11,"div",9),e.nrm(12,"app-phone-number-input",10),e.k0s(),e.nVh(13,Je,12,11,"div",11),e.k0s(),e.nVh(14,et,2,3,"button",12),e.nVh(15,tt,3,2,"button",12),e.k0s()()()()()}if(2&i){const t=e.XpG();e.R7$(5),e.JRh(t.isDependentActive?"Guardian phone number":"Validate Number"),e.R7$(2),e.SpI(" For security reasons, we will send a text message containing a code to verify your ",t.mobileText," number. "),e.R7$(2),e.Y8G("formGroup",t.phoneForm),e.R7$(3),e.Y8G("countryCodes",t.countryCodes),e.R7$(),e.vxM(t.codeSent?13:-1),e.R7$(),e.vxM(t.showCodeForm?-1:14),e.R7$(),e.vxM(t.showCodeForm?15:-1)}}let rt=(()=>{class i{constructor(t,r,n,s,u,h,b){this.fb=t,this.service=r,this.navigationService=n,this.router=s,this.activatedRoute=u,this.prescriptionService=h,this.userService=b,this.countryCodes=[{phonePrefix:"1",isoAlpha2Code:"US",name:"United States"}],this.codeSent=!1,this.showCodeForm=!1,this.showSkip=!1,this.isLoading$=new m.t(!0),this.mobileText=I.$9.isNorthAmerica?"cell phone":"mobile",this.isSendingVerificationCode=!1,this.phoneForm=this.fb.group({phone:[null,l.k0.required],verificationCode:[""]}),this.validationForm=this.fb.group({code:["",l.k0.required]})}ngOnInit(){this.activatedRoute.paramMap.pipe((0,p.n)(t=>{const r=t.get("customerEPrescriptionId");return this.prescriptionService.prescriptionId=r,this.prescriptionService.getPrescription(r)}),(0,d.M)(t=>this.prescriptionService.ePrescription=t),(0,p.n)(()=>this.userService.activeUser$.pipe((0,d.M)(t=>{"+1"===t?.phoneNumber?.phoneCountryCode&&(this.prescriptionService.phoneNumber={phoneNumber:t.phoneNumber.phoneNumber,countryCode:{isoAlpha2Code:"US",name:"United States",phonePrefix:"1"}})}),(0,d.M)(()=>{this.prescriptionService.phoneNumber&&this.service.sendVerificationCode({countryCode:{isoAlpha2Code:"US",name:"United States",phonePrefix:"1"},phoneNumber:this.prescriptionService.phoneNumber.phoneNumber},!1)}))),(0,F.W)(t=>t)).subscribe(()=>{this.isLoading$.next(!1)}),this.uniqueId=Math.random().toString(36).substring(7),this.phoneForm.get("phone").setValue({phoneNumber:null,countryCode:{isoAlpha2Code:"US",name:null,phonePrefix:"+1"}}),this.uniqueId=Math.random().toString(36).substring(7),this.phoneForm.get("phone").setValue({phoneNumber:null,countryCode:{isoAlpha2Code:"US",name:null,phonePrefix:"+1"}}),this.userService.dependentActive().subscribe(t=>this.isDependentActive=t)}resendCode(t){this.isSendingVerificationCode||(this.isSendingVerificationCode=!0,this.phoneForm.get("verificationCode").setValue(""),this.phoneForm.get("verificationCode").markAsUntouched(),this.phoneSubmit(!0))}updateNumber(t){if(!this.showCodeForm)return!1;this.showCodeForm=!1,this.phoneForm.get("verificationCode").setValue(""),this.clearValidation("verificationCode"),setTimeout(()=>{this.codeSent=!1},400)}verifyPhone(){this.prescriptionService.phoneNumber.phoneNumber=this.phoneForm.get("phone").value.phoneNumber,this.prescriptionService.phoneNumber.countryCode={isoAlpha2Code:"US",name:"United States",phonePrefix:"1"},this.prescriptionService.phoneNumber.verificationCode=this.phoneForm.get("verificationCode").value,this.prescriptionService.assignPhoneToEPrescription().subscribe(()=>{this.navigationService.setAnimationValue("a2"),this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescriptionStatus(),{relativeTo:this.activatedRoute}),this.isLoading$.next(!1)},t=>{this.service.handleError(t),this.isLoading$.next(!1)})}phoneSubmit(t=!1){(this.phoneForm.valid||t)&&(this.showCodeForm=!1,this.isSendingVerificationCode=!0,this.isLoading$.next(!0),this.codeSent&&!t?this.verifyPhone():this.service.sendVerificationCode({...this.phoneForm.get("phone").value,verificationCode:this.phoneForm.get("verificationCode").value},t).pipe((0,F.W)(r=>r)).subscribe(r=>{this.service.clearError(),this.codeSent=!0,this.setValidation("verificationCode",[l.k0.required,l.k0.maxLength(6),l.k0.minLength(6)]),(0,C.of)(!0).pipe((0,De.c)(0),(0,d.M)(()=>{this.showCodeForm=!0}),(0,Oe.j)(()=>{this.showSkip=!0})).subscribe(),this.isLoading$.next(!1),this.isSendingVerificationCode=!1})),this.isLoading$.next(!1)}setValidation(t,r){this.phoneForm.controls[t].setValidators(r)}clearValidation(t){this.phoneForm.controls[t].clearValidators(),this.phoneForm.controls[t].reset()}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(l.ok),e.rXU(Xe.L),e.rXU(Ye.o),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(P.Z),e.rXU(U.D))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-add-prescription-phone"]],viewQuery:function(r,n){if(1&r&&e.GBs(We,5),2&r){let s;e.mGM(s=e.lsd())&&(n.verificationCode=s.first)}},standalone:!1,decls:2,vars:3,consts:[["verificationCode",""],["submitButton",""],[1,"cmp__prescription-activation__phone"],[1,"container"],[1,"row","justify-content-center","pt-3"],[1,"col-12","col-sm-10","col-md-8","col-lg-6","col-xl-5"],[1,"mb-4"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12"],["formControlName","phone",3,"countryCodes"],[1,"col-12","collapsable",3,"ngClass"],["type","submit",1,"btn","btn-primary","btn-lg","btn-block","font-size-normal",3,"disabled","lgcAmplitudeButton"],[1,"form-group-listener","form-group"],["type","text","name","verificationCode","id","verificationCode","formControlName","verificationCode","type","tel","Form
1ControlState","","appVerificationCodeMask","",1,"form-control",3,"ngClass","autocomplete"],["for","verificationCode"],["aria-live","polite","aria-atomic","true",1,"invalid-feedback",3,"id"],["type","button",1,"btn","btn-link",3,"click","lgcAmplitudeButton"]],template:function(r,n){1&r&&(e.nVh(0,it,16,7,"section",2),e.nI1(1,"async")),2&r&&e.vxM(e.bMT(1,1,n.isLoading$)?-1:0)},dependencies:[_.YU,J.U,l.qT,l.me,l.BC,l.cb,Qe.D,l.j4,l.JD,qe.c,X.D,He.$,_.Jj],encapsulation:2})}}return i})();var G=o(65542),ee=o(35060);const te=I.$9.api;let O=(()=>{class i{constructor(t,r,n){this.router=t,this.http=r,this.service=n}resolve(t,r){let n;const s=t.params.ePrescriptionProductId;return this.initiatePrescription(s).pipe((0,d.M)(u=>{this.service.ePrescription=u,this.service.ePrescription.status=G.C.Created,n=u.id}),(0,p.n)(()=>this.checkPreviousConsent()),(0,d.M)(u=>{this.router.navigate(u?[this.parseUrl(r.url,`../../${n}/address`)]:[this.parseUrl(r.url,`../../${n}/treatment-consent`)])}),(0,F.W)(()=>(this.router.navigate([this.parseUrl(r.url,`../../${s}/not-found`)]),ee.t)),(0,p.n)(()=>ee.t))}checkPreviousConsent(){return this.http.get(`${te}customer/consent/treatment-consent`).pipe((0,f.T)(t=>t.given))}initiatePrescription(t){return this.http.post(`${te}customer/eprescription`,{ePrescriptionMarketPricingId:t}).pipe((0,f.T)(r=>r))}parseUrl(t,r){const n=t.split("/"),s=r.split("/");let u=s.shift();for(;u;){if("."!==u&&".."!==u){s.unshift(u);break}".."===u&&n.pop(),u=s.shift()}return[...n,...s].join("/")}static{this.\u0275fac=function(r){return new(r||i)(c.KVO(g.Ix),c.KVO(k.Qq),c.KVO(P.Z))}}static{this.\u0275prov=c.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ie=o(51487),nt=o(96697),S=function(i){return i[i.None=0]="None",i[i.ApprovedVerified=1]="ApprovedVerified",i[i.DeniedFraud=2]="DeniedFraud",i[i.DeniedUnsupportedIdType=3]="DeniedUnsupportedIdType",i[i.DeniedUnsupportedIdCountry=4]="DeniedUnsupportedIdCountry",i[i.ErrorNotReadableId=5]="ErrorNotReadableId",i[i.NoIdUploaded=6]="NoIdUploaded",i[i.NameMisMatched=7]="NameMisMatched",i[i.VerificationFailed=20]="VerificationFailed",i}(S||{}),v=function(i){return i.notLoaded="notLoaded",i.loading="loading",i.loaded="loaded",i.processing="processing",i.complete="complete",i.error="error",i.errorMod
1al="errorModal",i}(v||{}),w=function(i){return i[i.NameMisMatched=7]="NameMisMatched",i[i.JumioServer=9100]="JumioServer",i[i.Token=9200]="Token",i[i.SessionExpired=9210]="SessionExpired",i[i.ImageTransmissionFailed=9300]="ImageTransmissionFailed",i[i.VerificationFailed=9400]="VerificationFailed",i[i.NoNetwork=9800]="NoNetwork",i[i.UnexpectedClient=9801]="UnexpectedClient",i[i.ServerCommunicationFailed=9810]="ServerCommunicationFailed",i[i.NoCamera=9820]="NoCamera",i[i.FaceCaptureFailed=9821]="FaceCaptureFailed",i[i.BrowserNoSupportCamera=9822]="BrowserNoSupportCamera",i[i.ThreeFailedAttempts=9835]="ThreeFailedAttempts",i}(w||{}),V=o(42474),re=o(67363),M=function(i){return i[i.notLoaded=0]="notLoaded",i[i.loading=1]="loading",i[i.loaded=2]="loaded",i[i.error=-1]="error",i}(M||{}),st=o(11966),ot=o(31618),at=o(97647),ct=o(1807),ne=o(84572),dt=o(33726),Y=o(47638);const L=I.$9.api;let se=(()=>{class i{constructor(t,r){this.http=t,this.window=r,this._customerInternalReference=new m.t(null),this._eRxId=new m.t(null),this._verificationStatus=new m.t(null),this._verificationDate=new m.t(null),this._errorCode=new m.t(null),this._errorDataArray=new m.t(null)}generateIFrameUrl(){return this._customerInternalReference.asObservable().pipe((0,p.n)(t=>this.http.post(`${L}jumio/id-verification`,{callbackUrl:`${location.origin}${L}jumio/eprescription/callback`,entityId:t})),(0,f.T)(t=>t.redirectUrl),(0,F.W)(t=>(0,Y.H)(t)))}waitForStatusUpdate(){this._statusObservable=this._customerInternalReference.pipe((0,f.T)(t=>{if(!t)throw t;return t}),(0,p.n)(t=>this.http.get(`${L}jumio/eprescription/${t}`)),(0,f.T)(({verificationStatus:t,verificationDate:r,correctedFirstName:n,correctedLastName:s})=>{if(this._verificationStatus.next(t),this._verificationDate.next(new Date(r)),t===S.None)throw t;return t===S.NameMisMatched?(this._errorDataArray.next([{correctedFirstName:n,correctedLastName:s}]),this._errorCode.next(w.NameMisMatched)):[S.DeniedFraud,S.DeniedUnsupportedIdCountry,S.DeniedUnsupportedIdType,S.ErrorNotReadableId,S.NoIdUploaded,S.VerificationFailed].includes(t)&&this._errorCode.next(w.VerificationFailed),this._statusObservable.unsubscribe(),t}),(0,st.l)(t=>t.pipe((0,ot.o)(()=>(0,ct.O)(5e3))))).subscribe()}clearERxStatus$(){return this._customerInternalReference.pipe((0,f.T)(t=>{if(!t)throw t;return t}),(0,p.n)(t=>this.http.delete(`${L}jumio/eprescription/${t}`)),(0,d.M)(()=>{this.clearVerificaionStatus(),this.clearError(),this.waitForStatusUpdate()}),(0,F.W)(t=>(0,Y.H)(t)))}get verificationStatus$(){return this._verificationStatus.asObservable().pipe((0,at.u)())}clearVerificaionStatus(){this._verificationStatus.next(null),this._verificationDate.next(null)}set customerReference(t){this._customerInternalReference.next(t)}set eRxId(t){this._eRxId.next(t)}get error$(){return(0,ne.z)([this._errorCode.asObservable(),this._errorDataArray.asObservable()]).pipe((0,f.T)(([t,r])=>({code:t,data:r})))}get errorData$(){return this._errorDataArray.asObservable()}get jumioEvents$(){return(0,dt.R)(this.window,"message").pipe((0,f.T)(t=>({...t,data:this.safeParseJSON(t.data)})),(0,d.M)(({data:t})=>{"error"===t?.payload?.value&&this.handleJumioErrorCode(t.payload.metainfo.code)}))}clearError(){this._errorCode.next(null),this._errorDataArray.next(null)}handleJumioErrorCode(t){!t||"number"!=typeof t||this._errorCode.next(t)}safeParseJSON(t){let r;try{r=JSON.parse(t)}catch{r=t}return r}static{this.\u0275fac=function(r){return new(r||i)(c.KVO(k.Qq),c.KVO(Window))}}static{this.\u0275prov=c.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var lt=o(88326),ut=o(36458),oe=o(48410);const pt=["errorModal"],ht=["iframe"];function mt(i,a){if(1&i&&e.eu8(0,7),2&i){e.XpG();const t=e.sdS(10);e.Y8G("ngTemplateOutlet",t)}}function ft(i,a){if(1&i&&e.eu8(0,7),2&i){e.XpG();const t=e.sdS(12);e.Y8G("ngTemplateOutlet",t)}}function vt(i,a){if(1&i&&e.eu8(0,7),2&i){e.XpG();const t=e.sdS(14);e.Y8G("ngTemplateOutlet",t)}}function gt(i,a){if(1&i&&e.eu8(0,7),2&i){e.XpG();const t=e.sdS(8);e.Y8G("ngTemplateOutlet",t)}}function Ct(i,a){}function bt(i,a){}function St(i,a){if(1&i&&(e.j41(0,"div",8)(1,"div",12)(2,"picture"),e.nrm(3,"source",13)(4,"source",14)(5,"img",15),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(3),e.Y8G("srcset",t.jumioError.image.webpSrc),e.R7$(),e.Y8G("srcset",t.jumioError.image.pngSrc),e.R7$(),e.Y8G("src",t.jumioError.image.src,e.B4B)}}function Ft(i,a){if(1&i&&(e.nrm(0,"p",11),e.nI1(1,"safe")),2&i){const t=e.XpG(2);e.Y8G("innerHTML",e.i5U(1,1,t.jumioError.message,"html"),e.npT)}}function $t(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"button",18),e.bIt("click",function(){const n=c.eBV(t).$implicit;return c.Njj(n.action())}),e.EFF(3),e.nrm(4,"div",19),e.k0s()()()}if(2&i){const t=a.$implicit,r=a.$index;e.R7$(2),e.Y8G("ngClass",0===r?"btn-primary":"btn-outline-primary"),e.R7$(),e.SpI(" ",t.text," ")}}function yt(i,a){if(1&i&&e.Z7z(0,$t,5,2,"div",16,e.fX1),2&i){const t=e.XpG(2);e.Dyx(t.jumioError.ctas)}}function At(i,a){if(1&i&&(e.nVh(0,St,6,3,"div",8),e.j41(1,"div",9),e.nrm(2,"h2",10),e.nI1(3,"safe"),e.nV
1h(4,Ft,2,4,"p",11),e.k0s(),e.nVh(5,yt,2,0)),2&i){const t=e.XpG();e.vxM(t.jumioError.image.src?0:-1),e.R7$(2),e.Y8G("innerHTML",e.i5U(3,4,t.jumioError.title,"html"),e.npT),e.R7$(2),e.vxM(t.jumioError.message?4:-1),e.R7$(),e.vxM(t.jumioError.ctas?5:-1)}}function _t(i,a){if(1&i&&(e.j41(0,"div"),e.nrm(1,"iframe",20,5),e.nI1(3,"safe"),e.k0s()),2&i){const t=e.XpG();e.HbH(e.VkB("iframe-container-",t.headerHeight)),e.R7$(),e.Y8G("src",e.i5U(3,4,t.iFrameUrl,"resourceUrl"),e.f$h)}}function It(i,a){if(1&i&&(e.j41(0,"div")(1,"div",21)(2,"div",22)(3,"picture"),e.nrm(4,"source",13)(5,"source",14)(6,"img",15),e.k0s()()(),e.j41(7,"div",23)(8,"h2",24),e.EFF(9,"Processing ID..."),e.k0s(),e.j41(10,"p"),e.EFF(11,"Your ID is being verified."),e.k0s()()()),2&i){const t=e.XpG();e.HbH(e.VkB("iframe-container-",t.headerHeight," d-flex flex-column justify-content-center")),e.R7$(4),e.Y8G("srcset",t.processingImage.webpSrc),e.R7$(),e.Y8G("srcset",t.processingImage.pngSrc),e.R7$(),e.Y8G("src",t.processingImage.src,e.B4B)}}function Mt(i,a){if(1&i&&(e.j41(0,"div")(1,"div",21)(2,"div",22)(3,"picture"),e.nrm(4,"source",13)(5,"source",14)(6,"img",15),e.k0s()()(),e.j41(7,"div",23)(8,"h2",24),e.EFF(9,"ID Verification Complete"),e.k0s(),e.j41(10,"p"),e.EFF(11,"Your ID has been verified."),e.k0s()()()),2&i){const t=e.XpG();e.HbH(e.VkB("iframe-container-",t.headerHeight," d-flex flex-column justify-content-center")),e.R7$(4),e.Y8G("srcset",t.completeImage.webpSrc),e.R7$(),e.Y8G("srcset",t.completeImage.pngSrc),e.R7$(),e.Y8G("src",t.completeImage.src,e.B4B)}}function xt(i,a){1&i&&e.eu8(0)}function Pt(i,a){if(1&i&&(e.j41(0,"div",25),e.DNE(1,xt,1,0,"ng-container",26),e.k0s()),2&i){e.XpG();const t=e.sdS(8);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}let jt=(()=>{class i{constructor(t,r,n,s,u,h,b,$){this.userService=t,this.idService=r,this.rXService=n,this.router=s,this.modalService=u,this.window=h,this.document=b,this.amplitude=$,this.iFrameUrl=null,this.iframeLoadingStatus=M.notLoaded,this.uiStatus=v.notLoaded,this.resourceUrl=`${re.$9.resourceBaseUrl}images/`,this.headerHeight=0,this.prescriptionId=this.router.url.split("/")[2]}ngOnInit(){this.idService.clearError(),this.idService.customerReference=this.prescriptionId,this.rXService.getPrescription(this.prescriptionId).pipe((0,d.M)(t=>{t.status===G.C.IdRejected&&this.idService.clearERxStatus$().subscribe()}),(0,d.M)(()=>this.idService.waitForStatusUpdate()),(0,F.W)(({error:t,status:r})=>(406===r&&this.router.navigate(["/"]),t))).subscribe(),this._verificationServiceSubscription=this.idService.verificationStatus$.pipe((0,p.n)(t=>null==t?(0,C.of)(null):t===S.NameMisMatched?(this.uiStatus=v.error,(0,C.of)(null)):t===S.ApprovedVerified?(this.uiStatus=v.complete,this.amplitude.logEvent("complete id verification"),this.addToCartAndNavigate$()):this.iframeLoadingStatus===M.notLoaded?(this.iframeLoadingStatus=M.loading,this.loadIFrame$):(0,C.of)(null))).subscribe(),this._jumioEventSubscription=this.messageParser$.subscribe(),this._jumioErrorSubscription=this.jumioErrorMessage$.subscribe()}ngOnChanges(){this.setJumioHeight()}ngOnDestroy(){this.idService.clearError(),this._jumioEventSubscription&&this._jumioEventSubscription.unsubscribe(),this._verificationServiceSubscription&&this._verificationServiceSubscription.unsubscribe(),this._jumioErrorSubscription&&this._jumioErrorSubscription.unsubscribe()}setJumioHeight(){const t=parseFloat(getComputedStyle(this.document?.documentElement)?.fontSize)||16,r=this.document?.querySelector(".navbar")?.clientHeight||0;this.headerHeight=Math.ceil(r/t)+1||0}reloadIFrame(){this.modalService.dismissAll(),this.idService.clearError(),this.iframeLoadingStatus=M.loading,this.uiStatus=v.loading,this.loadIFrame$.subscribe()}get isIFrameLoading(){return this.iframeLoadingStatus===M.loading}get jumioErrorMessage$(){return this.idService.error$.pipe((0,T.p)(t=>!!t?.code),(0,d.M)(({code:t,data:r})=>{if(t===w.NoNetwork)this.jumioError=(0,V.pq)(this.reloadIFrame.bind(this)),this.uiStatus=v.errorModal;else if(t===w.NameMisMatched){const{correctedFirstName:n,correctedLastName:s}=r&&r[0]||{};this.jumioError=(0,V.Ge)(this.updateName.bind(this),()=>this.clearStatusAndReload$().subscribe(),n,s),this.uiStatus=v.errorMod
1al}else this.jumioError=(0,V.ej)(()=>this.clearStatusAndReload$().subscribe()),this.uiStatus=v.error;this.openErrorModal()}))}updateName(){this.idService.errorData$.pipe((0,nt.s)(1),(0,T.p)(t=>!!t),(0,f.T)(t=>t[0]),(0,p.n)(({correctedFirstName:t,correctedLastName:r})=>this.userService.updateName({firstName:t||void 0,lastName:r||void 0})),(0,p.n)(this.clearStatusAndReload$.bind(this))).subscribe()}clearStatusAndReload$(){return this.idService.clearERxStatus$().pipe((0,d.M)(()=>this.reloadIFrame()))}openErrorModal(){this.modalService.open(this.errorModal,{size:"md",centered:!0,backdrop:"static"})}get messageParser$(){return this.idService.jumioEvents$.pipe((0,T.p)(t=>!!t),(0,d.M)(({data:t})=>{this.uiStatus===v.error||this.uiStatus===v.errorModal||t?.payload?.value&&("success"===t.payload.value?(this.uiStatus=v.processing,this.successfulCheck()):v[t.payload.value]&&(this.uiStatus=v[t.payload.value]))}))}get loadIFrame$(){return this.idService.generateIFrameUrl().pipe((0,d.M)(t=>{this.iframeLoadingStatus=M.loaded,this.uiStatus=v.loaded,this.iFrameUrl=t,this._verificationServiceSubscription&&this._verificationServiceSubscription.unsubscribe(),this.setJumioHeight()}),(0,F.W)(t=>(this.uiStatus=v.error,this.jumioError=(0,V.ej)(this.reloadIFrame.bind(this)),this.iframeLoadingStatus=M.error,this._verificationServiceSubscription&&this._verificationServiceSubscription.unsubscribe(),(0,C.of)(null))))}addToCartAndNavigate$(){return this.prescriptionId?this.rXService.addEPrescriptionToCart(this.prescriptionId).pipe((0,d.M)(()=>{this.window.location.href="/cart"})):(0,C.of)(Error("Prescription ID not set"))}successfulCheck(){this.idService.verificationStatus$.pipe((0,p.n)(t=>t===S.ApprovedVerified?(this.uiStatus=v.complete,this.addToCartAndNavigate$()):(t===S.NameMisMatched&&(this.uiStatus=v.errorModal),(0,C.of)(null)))).subscribe()}get processingImage(){return(0,ie.ib)("illustrations/woman-man-plant")}get completeImage(){return(0,ie.ib)("illustrations/woman-man-plant")}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(U.D),e.rXU(se),e.rXU(P.Z),e.rXU(g.Ix),e.rXU(ut.Bq),e.rXU(Window),e.rXU(Document),e.rXU(lt.r))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-id-verification"]],viewQuery:function(r,n){if(1&r&&e.GBs(pt,5)(ht,5),2&r){let s;e.mGM(s=e.lsd())&&(n.errorModal=s.first),e.mGM(s=e.lsd())&&(n.iframe=s.first)}},standalone:!1,features:[e.OA$],decls:17,vars:2,consts:[["error",""],["jumio",""],["processing",""],["complete",""],["errorModal",""],["iframe",""],[1,"h-100",3,"isLoading"],[3,"ngTemplateOutlet"],[1,"image-row","my-4"],[1,"text-center","mt-2"],[1,"h4",3,"innerHTML"],[3,"innerHTML"],[1,"image-col","d-flex","justify-content-center"],["type","image/webp",3,"srcset"],["type","image/png",3,"srcset"],[3,"src"],[1,"row","justify-content-center","my-4"],[1,"col-12","col-sm-8"],["type","button","ngbAutofocus","",1,"btn","btn-block",3,"click","ngClass"],[1,"loading-icon"],["id","jumio-iframe","width","100%","height","100%","allow","camera;fullscreen;accelerometer;gyroscope;magnetometer","allowfullscreen","",1,"embed-responsive-item",3,"src"],[1,"row","my-4","my-sm-5","mx-0","justify-content-center","align-items-center"],[1,"col-12","col-sm-11","col-md-8","col-lg-7","col-xl-6","justify-content-center","align-items-center"],[1,"text-center","mt-3","mt-sm-5"],[1,"h4"],[1,"modal-body","p-5"],[4,"ngTemplateOutlet"]],template:function(r,n){if(1&r&&(e.j41(0,"app-loading",6),e.nVh(1,mt,1,1,"ng-container",7)(2,ft,1,1,"ng-container",7)(3,vt,1,1,"ng-container",7)(4,gt,1,1,"ng-container",7)(5,Ct,0,0)(6,bt,0,0),e.k0s(),e.DNE(7,At,6,7,"ng-template",null,0,e.C5r)(9,_t,4,7,"ng-template",null,1,e.C5r)(11,It,12,6,"ng-template",null,2,e.C5r)(13,Mt,12,6,"ng-template",null,3,e.C5r)(15,Pt,2,1,"ng-template",null,4,e.C5r)),2&r){let s;e.Y8G("isLoading",n.isIFrameLoading),e.R7$(),e.vxM("loaded"===(s=n.uiStatus)?1:"processing"===s?2:"complete"===s?3:"error"===s?4:"errorModal"===s?5:6)}},dependencies:[_.YU,_.T3,D.q,oe.m],encapsulation:2})}}return i})();const Rt=()=>["/"];let Tt=(()=>{class i{constructor(){}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-not-found"]],standalone:!1,decls:5,vars:2,consts:[[3,"routerLink"]],template:function(r,n){1&r&&(e.j41(0,"p"),e.EFF(1,"Unable to find that product - TODO style and content"),e.k0s(),e.j41(2,"p")(3,"a",0),e.EFF(4,"Go to account"),e.k0s()()),2&r&&(e.R7$(3),e.Y8G("routerLink",e.lJ4(1,Rt)))},dependencies:[R.Wk],encapsulation:2})}}return i})();var Q=o(59322);let q=(()=>{class i{close(){this.modalService.close()}primaryButtonClick(){this.close(),window.location.href=`https://${window.location.host}/erx/`}constructor(t){this.modalService=t,this.resourceBaseUrl=re.$9.resourceBaseUrl+"images/illustrations",this.errorMessage=this.modalService.errorMessage,this.buttonClickNavigateUrl=["/"],this.pngSrc="",this.webpSrcSet=this.resourceBaseUrl+"/[email protected]",this.pngSrcSet=this.resourceBaseUrl+"/[email protected]"}ngOnInit(){}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(Q.B))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-error-modal"]],standalone:!1,decls:16,vars:4,consts:[[1,"consent-backdrop"],[1,"consent-container"],[1,"consent-header","border-0"],[1,"consent-message","text-center"],[1,"consent-image"],["type","image/webp",3,"srcset"],["type","image/png",3,"srcset"],["alt","Family walking",3,"src"],[1,"consent-content","my-3","d-flex","align-items-center","flex-column"],[1,"mb-3"],[1,"btn","btn-primary",3,"click"]],template:function(r,n){1&r&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",2),e.j41(3,"div",3)(4,"div",4)(5,"picture"),e.nrm(6,"source",5)(7,"source",6)(8,"img",7),e.k0s()(),e.j41(9,"div",8)(10,"h1",9),e.EFF(11,"Prescription unavailable"),e.k0s(),e.j41(12,"h2"),e.EFF(13),e.k0s()(),e.j41(14,"button",10),e.bIt("click",function(){return n.primaryButtonClick()}),e.EFF(15,"Back to pharmacy page"),e.k0s()()()()),2&r&&(e.R7$(6),e.Y8G("srcset",n.webpSrcSet),e.R7$(),e.Y8G("srcset",n.pngSrcSet),e.R7$(),e.Y8G("src",n.pngSrc,e.B4B),e.R7$(5),e.JRh(n.errorMessage))},encapsulation:2})}}return i})();var kt=o(36619),ae=o(41385),ce=o(22240);const Nt=()=>["./../.."],wt=()=>["..","id-verification"];let Et=(()=>{class i{constructor(t,r,n,s,u,h){this.service=t,this.userService=r,this.router=n,this.activedRoute=s,this.prescriptionService=u,this.modalService=h,this.questionnaireProgress=0,this.question=null,this.answer=null,this.submitting=!1,this.isFirstQuestion=!1,this.questionId="",this.previousQuestion=null}ngOnInit(){this.activedRoute.paramMap.pipe((0,d.M)(t=>{this.service.setRegistrationId(t.get("customerEPrescriptionId")),this.submitting=!1}),(0,p.n)(()=>this.userService.user$),(0,p.n)(t=>{if(t.gender)throw this.prescriptionService.ePrescription.status=G.C.Gender
1Set,`Gender already assigned as ${t.gender}`;return this.service.fetchEPrescriptionGenderQuestion()}),(0,d.M)(t=>{this.question=t}),(0,p.n)(()=>this.service.getPreviousQuestion()),(0,d.M)(t=>this.previousQuestion=t),(0,F.W)(t=>(this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescriptionStatus()),(0,C.of)(t)))).subscribe()}getPreviousRoute(){return this.previousQuestion?["../",this.previousQuestion.id]:[]}getLogoSrc(){}questionAnswered(t){this.submitting=!0,this.service.answerEPrescriptionQuestion(t,this.question).pipe((0,d.M)(()=>{this.prescriptionService.ePrescription.status=G.C.GenderSet,this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescriptionStatus())}),(0,p.n)(()=>this.userService.activeUser$),(0,F.W)(r=>(this.modalService.errorMessage=r?.error?.errorMessage,this.modalService.open(q),r))).subscribe()}goBack(){}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(kt.h),e.rXU(U.D),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(P.Z),e.rXU(Q.B))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-prescription-gender"]],standalone:!1,decls:14,vars:11,consts:[[1,"questionnaire-container"],[3,"title","parentRoute","previousRoute","progress"],[1,"questionnaire-question"],[1,"container","pt-4"],[1,"row"],[1,"col-12","col-sm-8","offset-sm-2","offset-lg-3","col-lg-6","col-xl-4","offset-xl-4"],[1,"questionnaire-image"],[3,"src"],[1,"position-relative"],[1,"questionnaire-active-question"],[3,"answered","question","answer","readonly"],[3,"routerLink"]],template:function(r,n){1&r&&(e.j41(0,"div",0),e.nrm(1,"app-questionnaire-header",1),e.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"img",7),e.k0s(),e.j41(8,"div",8)(9,"div",9)(10,"app-questionnaire-question",10),e.bIt("answered",function(u){return n.questionAnswered(u)}),e.k0s()()()()()()()(),e.j41(11,"p")(12,"a",11),e.EFF(13,"Go to ID verification"),e.k0s()()),2&r&&(e.R7$(),e.Y8G("title","Personal Health")("parentRoute",e.lJ4(9,Nt))("previousRoute",n.getPreviousRoute())("progress",n.questionnaireProgress),e.R7$(6),e.Y8G("src",n.getLogoSrc(),e.B4B),e.R7$(3),e.Y8G("question",n.question)("answer",n.answer)("readonly",n.submitting),e.R7$(2),e.Y8G("routerLink",e.lJ4(10,wt)))},dependencies:[ae.E,ce.n,R.Wk],encapsulation:2})}}return i})(),Ut=(()=>{class i{constructor(){}ngOnInit(){}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-prescription-purchase-base"]],standalone:!1,decls:7,vars:0,consts:[["id","content"],[1,"cmp__prescription-activation"],[1,"container","container-hd"],[1,"row","justify-content-center"],[1,"col-12","col-lg-10"]],template:function(r,n){1&r&&(e.nrm(0,"app-empty-header"),e.j41(1,"main",0)(2,"section",1)(3,"div",2)(4,"div",3)(5,"div",4),e.nrm(6,"router-outlet"),e.k0s()()()()())},dependencies:[z.e,g.n3],encapsulation:2})}}return i})();const H=I.$9.api;let Gt=(()=>{class i{constructor(t){this.client=t,this.questionnaire$=new m.t(null),this.currentQuestion$=new m.t(null),this.previousQuestion$=new m.t(null),this.hasFinished$=new m.t(!1),this.isUnqualified$=new m.t(!1),this.questionnaireFlow$=new m.t([]),this.isFirstQuestion$=this.currentQuestion$.pipe((0,f.T)(r=>this.questionnaire$.value?.firstQuestionId===r?.id))}fetchEPrescriptionQuestionnaire$(t){return this.client.post(`${H}customer/eprescription/${t}/questionnaire`,{}).pipe((0,d.M)(r=>{this.questionnaire$.next(r),this.currentQuestion$.next(r.questions.find(n=>n.id===r.firstQuestionId))}))}setAnswerEPrescriptionQuestion(t,r){return this.client.put(`${H}customer/eprescription/${t}/questionnaire/answer`,r).pipe((0,d.M)(({nextQuestionId:n,questionnaireResult:s})=>{this.questionnaireFlow$.next([...this.questionnaireFlow$.value,this.currentQuestion$.value]),this.isUnqualified$.next(!!s),this.hasFinished$.next(!n),this.previousQuestion$.next(this.currentQuestion$.value),this.currentQuestion$.next(this.questionnaire$.value.questions.find(u=>u.id===n)||this.currentQuestion$.value)}))}finializeEPrescriptionQuestionnaire$(t){return this.client.post(`${H}customer/eprescription/${t}/questionnaire/finalize`,{})}gotoPreviousQuestion(){this.currentQuestion$.next(this.questionnaireFlow$.value.pop()),this.previousQuestion$.next(this.questionnaireFlow$.value[this.questionnaireFlow$.value.length-1])}static{this.\u0275fac=function(r){return new(r||i)(c.KVO(k.Qq))}}static{this.\u0275prov=c.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var W=function(i){return i[i.UNKNOWN=0]="UNKNOWN",i}(W||{});const Vt={[W.UNKNOWN]:["/","e-prescription","error"]},Lt=()=>["./../../../../"],Bt=()=>["..","id-verification"];function Xt(i,a){if(1&i&&(e.EFF(0),e.nI1(1,"async")),2&i){const t=e.XpG(2);e.SpI("\n",e.bMT(1,1,t.finialize$),"\n")}}function Dt(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",0),e.nrm(1,"app-questionnaire-header",1),e.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"img",7),e.k0s(),e.j41(8,"div",8)(9,"div",9)(10,"app-questionnaire-question",10),e.bIt("answered",function(n){c.eBV(t);const s=e.XpG();return c.Njj(s.answerQuestion(n))}),e.k0s()()()()()()()(),e.j41(11,"p")(12,"a",11),e.EFF(13,"Go to ID verification"),e.k0s()(),e.nVh(14,Xt,2,3),e.nI1(15,"async")}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("title","Test Suitability Questions")("parentRoute",e.lJ4(11,Lt))("previousRoute",t.getPreviousRoute())("progress",t.questionnaireProgress),e.R7$(6),e.Y8G("src",t.getLogoSrc(),e.B4B),e.R7$(3),e.Y8G("question",a)("readonly",t.submitting),e.R7$(2),e.Y8G("routerLink",e.lJ4(12,Bt)),e.R7$(2),e.vxM(e.bMT(15,9,t.newQuestionnaireService.hasFinished$)?14:-1)}}let de=(()=>{class i{constructor(t,r,n,s,u){this.newQuestionnaireService=t,this.router=r,this.activatedRoute=n,this.prescriptionService=s,this.modalService=u,this.questionnaireProgress=0,this.submitting=!1,this.hasError=!1,this.isFirstQuestion$=this.newQuestionnaireService.isFirstQuestion$,this.isLoading$=new m.t(!0),this.currentQuestion$=this.newQuestionnaireService.currentQuestion$.asObservable(),this.previousQuestion$=this.newQuestionnaireService.previousQuestion$.asObservable(),this.prescriptionId$=this.activatedRoute.params.pipe((0,f.T)(h=>h.customerEPrescriptionId)),this.finialize$=this.prescriptionId$.pipe((0,p.n)(h=>(0,ne.z)([this.newQuestionnaireService.hasFinished$,(0,C.of)(h)])),(0,p.n)(({0:h,1:b})=>h?this.newQuestionnaireService.finializeEPrescriptionQuestionnaire$(b).pipe((0,d.M)(({status:$})=>{this.router.navigate(this.prescriptionService.getRouteOfCurrentEPrescription(b,$))})):(0,C.of)(null))),this.questionnaire$=this.prescriptionId$.pipe((0,p.n)(h=>this.newQuestionnaireService.fetchEPrescriptionQuestionnaire$(h)),(0,d.M)(()=>{this.isLoading$.next(!1)}),(0,F.W)(h=>(this.router.navigate(["../../","error"],{relativeTo:this.activatedRoute}),h)))}ngOnInit(){this.newQuestionnaireService.isUnqualified$.pipe((0,d.M)(t=>{t&&this.router.navigate(["../","unqualified"],{relativeTo:this.activatedRoute})})).subscribe()}getPreviousRoute(){return[]}gotoPreviousQuestion(){this.newQuestionnaireService.gotoPreviousQuestion()}getLogoSrc(){}resolveError(t){let r=Vt[W.UNKNOWN],n=!0;return 403===t.status&&(n=!1,this.launchErrorModal(t)),n&&this.router.navigate(r,{relativeTo:this.activatedRoute}),(0,C.of)(t)}launchErrorModal(t){this.modalService.errorMessage=t?.error?.errorMessage,this.modalService.open(q)}answerQuestion(t){this.activatedRoute.params.pipe((0,f.T)(r=>(this.newQuestionnaireService.currentQuestion$.value.answers.push(t.selections.reverse()[0]),this.newQuestionnaireService.setAnswerEPrescriptionQuestion(r.customerEPrescriptionId,t).pi
1pe((0,F.W)(({error:n,status:s})=>(403===s&&(this.modalService.errorMessage=n.errorMessage,this.modalService.open(q)),(0,C.of)(n)))).subscribe()))).subscribe()}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(Gt),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(P.Z),e.rXU(Q.B))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-prescription-questionnaire"]],standalone:!1,decls:3,vars:5,consts:[[1,"questionnaire-container"],[3,"title","parentRoute","previousRoute","progress"],[1,"questionnaire-question"],[1,"container","pt-4"],[1,"row"],[1,"col-12","col-sm-8","offset-sm-2","offset-lg-3","col-lg-6","col-xl-4","offset-xl-4"],[1,"questionnaire-image"],[3,"src"],[1,"position-relative"],[1,"questionnaire-active-question"],[3,"answered","question","readonly"],[3,"routerLink"]],template:function(r,n){if(1&r&&(e.nVh(0,Dt,16,13),e.nI1(1,"async"),e.nI1(2,"async")),2&r){let s;e.vxM((s=e.bMT(1,1,n.questionnaire$)&&e.bMT(2,3,n.newQuestionnaireService.currentQuestion$))?0:-1,s)}},dependencies:[ae.E,ce.n,R.Wk,_.Jj],encapsulation:2})}}return i})();const Ot=I.$9.api;let ue=(()=>{class i{constructor(t){this.http=t,this.errorMessage=new m.t(null)}getConsentContent(){return this.http.get("/mobile/treatment-consent/?partial=1",{responseType:"text"})}setConsent(){return this.http.post(`${Ot}customer/consent`,{consentType:"treatment-consent"}).pipe((0,f.T)(()=>!0),(0,F.W)(t=>((0,Y.H)(t,this.errorMessage),(0,C.of)(t))))}static{this.\u0275fac=function(r){return new(r||i)(c.KVO(k.Qq))}}static{this.\u0275prov=c.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Yt(i,a){if(1&i&&(e.nrm(0,"div",3),e.nI1(1,"safe")),2&i){const t=e.XpG();e.Y8G("innerHTML",e.i5U(1,1,t.consentContent,"html"),e.npT)}}function Qt(i,a){1&i&&(e.j41(0,"div",4),e.nrm(1,"div",7),e.j41(2,"p"),e.EFF(3,"Loading..."),e.k0s()())}let qt=(()=>{class i{constructor(t,r,n){this.service=t,this.router=r,this.activatedRoute=n,this.submitting=!1,this.initializing=!1}ngOnInit(){this.initializing=!0,this.service.getConsentContent().pipe((0,d.M)(t=>{this.initializing=!1,this.consentContent=t})).subscribe()}giveConsent(){this.submitting=!0,this.service.setConsent().pipe((0,d.M)(()=>{this.router.navigate(["..","address"],{relativeTo:this.activatedRoute})})).subscribe(()=>{},t=>{this.submitting=!1,this.errorMessage=t})}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(ue),e.rXU(g.Ix),e.rXU(g.nX))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-treatment-consent"]],standalone:!1,decls:8,vars:4,consts:[[1,"consent-backdrop"],[1,"consent-container","d-flex","flex-column","align-items-center"],[1,"consent-message","p-0"],[3,"innerHTML"],[1,"div-spinner","text-center"],[1,"consent-button-container"],[1,"btn","btn-primary","py-2","px-4",3,"click","disabled","lgcAmplitudeButton"],[1,"loading-icon"]],template:function(r,n){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nVh(3,Yt,2,4,"div",3),e.nVh(4,Qt,4,0,"div",4),e.k0s(),e.j41(5,"div",5)(6,"button",6),e.bIt("click",function(){return n.giveConsent()}),e.EFF(7," I accept "),e.k0s()()()()),2&r&&(e.R7$(3),e.vxM(n.initializing?-1:3),e.R7$(),e.vxM(n.initializing?4:-1),e.R7$(2),e.Y8G("disabled",n.submitting||n.initializing)("lgcAmplitudeButton","submit ePrescription consent"))},dependencies:[X.D,oe.m],encapsulation:2})}}return i})(),Ht=(()=>{class i{constructor(t){this.router=t,this.resourceBaseUrl=I.$9.resourceBaseUrl+"images/illustrations",this.errorMessage="We're sorry",this.pngSrc=this.resourceBaseUrl+"/purple-trees.png"}ngOnInit(){}close(){}primaryButtonClick(){this.router.navigate(["/"])}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(g.Ix))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-unqualified"]],standalone:!1,decls:16,vars:4,consts:[[1,""],[1,"d-flex","justify-content-center"],[1,"consent-message","text-center","w-50"],[1,"consent-image"],["type","image/webp",3,"srcset"],["type","image/png",3,"srcset"],["alt","Family walking",3,"src"],[1,"h2"],[1,"font-weight-light"],[1,"btn","btn-primary",3,"click"]],template:function(r,n){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"picture"),e.nrm(5,"source",4)(6,"source",5)(7,"img",6),e.k0s()(),e.j41(8,"h1"),e.EFF(9),e.k0s(),e.j41(10,"h2",7),e.EFF(11," You questionnaire responses indicate this medication may not be suitable for you. Your safety is our priority at all times. "),e.k0s(),e.j41(12,"p",8),e.EFF(13,"Your local physician can recommend the best options for you."),e.k0s(),e.j41(14,"button",9),e.bIt("click",function(){return n.primaryButtonClick()}),e.EFF(15,"Close assessment"),e.k0s()()()()),2&r&&(e.R7$(5),e.Y8G("srcset",n.webpSrcSet),e.R7$(),e.Y8G("srcset",n.pngSrcSet),e.R7$(),e.Y8G("src",n.pngSrc,e.B4B),e.R7$(2),e.JRh(n.errorMessage))},encapsulation:2})}}return i})();var Wt=o(70044),zt=o(28089),pe=o(85867);const Kt=[{path:"",component:Ut,canActivate:[pe.pq],children:[{path:":ePrescriptionProductId/start",resolve:{redirecting:O},component:O},{path:":ePrescriptionProductId/not-found",component:Tt},{path:":customerEPrescriptionId/treatment-consent",component:qt},{path:":customerEPrescriptionId/address",component:Be},{path:":customerEPrescriptionId/phone",component:rt},{path:":customerEPrescriptionId/questionnaire",component:de},{path:":customerEPrescriptionId/questionnaire/:questionId",component:de},{path:":customerEPrescriptionId/id-verification",component:jt},{path:":customerEPrescriptionId/gender",component:Et},{path:":customerEPrescriptionId/unqualified",component:Ht},{path:"error",component:Se},{path:"**",component:Wt.r,resolve:{redirecting:zt.j},canLoad:[pe.pq]}]}];let Zt=(()=>
1{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=c.G2t({imports:[R.iI.forChild(Kt),R.iI]})}}return i})();var Jt=o(93061),ei=o(3920),ti=o(81527);let ii=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=c.G2t({providers:[K,O,ue,se],imports:[_.MD,Jt.G,Zt,ei.PortalModule,ti.ActivationModule,D.H]})}}return i})()}}]);

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.