PageSourceSearch

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

js letsgetchecked.com collected 2026-10-03 21:19:55 UTC 14,539 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpatient_dashboard=self.webpackChunkpatient_dashboard||[]).push([[385],{41385(y,f,s){s.d(f,{E:()=>b});var m=s(36619),e=s(35547),I=s(85802),P=s(73357),w=s(45187);let n=(()=>{class u{constructor(){this.progress=0,this.cssPercentage="0%"}ngOnChanges(){this.cssPercentage=`${this.progress.toString()}%`}static{this.\u0275fac=function(r){return new(r||u)}}static{this.\u0275cmp=e.VBU({type:u,selectors:[["app-questionnaire-progress-indicator"]],inputs:{progress:"progress"},standalone:!1,features:[e.OA$],decls:2,vars:2,consts:[[1,"questionnaire-progress-indicator-bg"],[1,"questionnaire-progress-indicator-progress"]],template:function(r,a){1&r&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.k0s()),2&r&&(e.R7$(),e.xc7("width",a.cssPercentage))},encapsulation:2})}}return u})();function S(u,_){if(1&u){const l=e.RV6();e.j41(0,"a",7),e.bIt("click",function(){I.eBV(l);const a=e.XpG();return I.Njj(a.goToPreviousRoute())}),e.j41(1,"i",8)(2,"span",5),e.EFF(3,"Go to previous question"),e.k0s()()()}}let b=(()=>{class u{constructor(l,r,a,h){this.router=l,this.navigationService=r,this.service=a,this.activatedRoute=h,this.progress=0}goToPreviousRoute(){this.service.setPreviousQuestion(null),this.service.setPreviousQuestionAnswer(null),this.navigationService.setAnimationValue("b1"),this.router.navigate(this.previousRoute,{relativeTo:this.activatedRoute})}goToParentRoute(){this.navigationService.setAnimationValue("a2"),this.router.navigate(this.parentRoute,{relativeTo:this.activatedRoute})}static{this.\u0275fac=function(r){return new(r||u)(e.rXU(P.Ix),e.rXU(w.o),e.rXU(m.h),e.rXU(P.nX))}}static{this.\u0275cmp=e.VBU({type:u,selectors:[["app-questionnaire-header"]],inputs:{parentRoute:"parentRoute",previousRoute:"previousRoute",title:"title",progress:"progress"},standalone:!1,decls:9,vars:3,consts:[[1,"questionnaire-header"],["href","javascript:void(0)","title","Go to previous question"],[1,"h2"],["href","javascript:void(0)","title","Close questionnaire",3,"click"],[1,"lgc-icon-close"],[1,"sr-only"],[3,"progress"],["href","javascript:void(0)","title","Go to previous question",3,"click"],[1,"lgc-icon-arrow-back"]],template:function(r,a){1&r&&(e.j41(0,"div",0),e.nVh(1,S,4,0,"a",1),e.j41(2,"h2",2),e.EFF(3),e.k0s(),e.j41(4,"a",3),e.bIt("click",function(){return a.goToParentRoute()}),e.j41(5,"i",4)(6,"span",5),e.EFF(7,"Close questionnaire"),e.k0s()()()(),e.nrm(8,"app-questionnaire-progress-indicator",6)),2&r&&(e.R7$(),e.vxM(a.previousRoute?1:-1),e.R7$(2),e.JRh(a.title),e.R7$(5),e.Y8G("progress",a.progress))},dependencies:[n],encapsulation:2})}}return u})()},36619(y,f,s){s.d(f,{h:()=>U});var w=s(21413),n=s(84412),S=s(27468),b=s(7673),u=s(18810),_=s(1807),l=s(87630),r=s(99437),a=s(31618),h=s(96354),x=s(11966),E=s(25558),c=s(88141),C=s(14161),M=s(64843),v=s(85802),A=s(91413),O=s(73357);const d=l.$9.api;let U=(()=>{class Q{constructor(t,i,o,p){this.http=t,this.statusService=i,this.questionService=o,this.router=p,this.noInstructionKitCodes=["BIOM","BION","BIOM2","BION2","BIOM3","BION3","BVCVTV","BIOM4","OBIOMPF"],this.noInstructionsFITResellerIds=["0a993a75-d307-4653-a340-be85666428ae","0b2f46ac-c2f7-46ba-9aba-f16a0d54aa82"],this.errorMessage=new w.B,this.firstPhrQuestionId=new n.t(""),this.activePhrQuestionId=new n.t(""),this.firstTestSuitabilityQuestionId=new n.t(""),this.activeTestSuitabilityQuestionId=new n.t(""),this.canSkipPhr=new n.t(!1),this.canSkipTestSuitability=new n.t(!1),this.phrCompletedTime=new n.t(null),this.hasTestSuitability=new n.t(!0),this.firstUnansweredQuestion=new n.t(null),this.isFirstQuestion=new n.t(!0),this.previousQuestion=new n.t(null),this.lastAnsweredQuestion=new n.t(null),this.previousQuestionAnswer=new n.t(null),this.questionnaireProgress=new n.t(0),this.confirmationQuestionId=new n.t(null),this.requiresObservation=new n.t(!1),this.observationVideoMeetingUrl=new n.t(null),this.testKitInfo=new n.t(null),this.setLastAnsweredAsPrevious=!1,this._questionnaire=new n.t(null),this.reminderSent=!1,this.sampleCollectionNow=!1,this.collectionUrl=new n.t(null),this.selfIsolationUrl=new n.t(null),this.shippingInfo=new n.t(null),this.sampleType=new n.t(null),this.pendingQCount=0,this.statusService.getRegistrationId().subscribe(g=>{this.registrationId=g}),this.statusService.getTestKitInfo().subscribe(g=>{this.testKitInfo.next(g)})}get questionnaire(){return this._questionnaire.value}set questionnaire(t){this._questionnaire.next(t)}fetchEPrescription(){return this.questionnaire?this._questionnaire:this.http.post(`${d}customer/eprescription/${this.registrationId}/questionnaire`,{})}answerEPrescriptionQuestion(t,i){return++this.pendingQCount,this.http.put(`${d}customer/eprescription/${this.registrationId}/questionnaire/answer`,t).pipe((0,c.M)(o=>{this.pendingQCount--}))}finalizeEPrescription(){return(0,b.of)(!0).pipe((0,c.M)(()=>
1{if(this.pendingQCount)throw`There are ${this.pendingQCount} unanswered questions. waiting for answers to be submitted`}),(0,E.n)(()=>this.http.post(`${d}customer/eprescription/${this.registrationId}/questionnaire/finalize`,{})),(0,x.l)(i=>i.pipe((0,a.o)(()=>(0,_.O)(5e3)))))}fetchQuestionnaire(){return this.http.get(`${d}questionnaire/generic/11c05a4c-a68a-4b6f-96b5-461e78122066/flow`)}getQuestions(){return this.questionnaire.questions}getFirstQuestion(){return this.getQuestion(this.questionnaire.lastAnsweredQuestionId?this.questionnaire.lastAnsweredQuestionId:this.questionnaire.firstQuestionId)}getNextQuestion(t){const i=this.currentQuestion.answers.pop(),p=this.currentQuestion.choices.find(T=>T.index===i.choiceIndex).next[t.toLowerCase()];if(!p)throw new Error(`Not suitable for gender ${t.toLowerCase()}`);const g=p.nextQuestionId;return this.questionnaire.questions.find(T=>T.id===g)}getQuestion(t){return this.questionnaire.questions.find(i=>i.id===t)}getPhrQuestions(){return this.questionnaire.questions.filter(t=>t.isPhrQuestion)}getNonPhrQuestions(){return this.questionnaire.questions.filter(t=>!t.isPhrQuestion)}getQuestionnaireProgress(){return this.questionnaireProgress}getRegistrationId(){return this.registrationId}setRegistrationId(t){this.statusService.setRegistrationId(t)}getPreviousQuestion(){return this.previousQuestion}setPreviousQuestion(t){this.previousQuestion.next(t)}getPreviousQuestionAnswer(){return this.previousQuestionAnswer}setPreviousQuestionAnswer(t){this.previousQuestionAnswer.next(t)}getIsFirstQuestion(){return this.isFirstQuestion}getActivePhrQuestionId(){return this.activePhrQuestionId}setActivePhrQuestionId(t){this.activePhrQuestionId.next(t)}getFirstPhrQuestionId(){return this.firstPhrQuestionId}setFirstPhrQuestionId(t){this.firstPhrQuestionId.next(t)}getActiveTestSuitabilityQuestionId(){return this.activeTestSuitabilityQuestionId}setActiveTestSuitabilityQuestionId(t){this.activeTestSuitabilityQuestionId.next(t)}getFirstTestSuitabilityQuestionId(){return this.firstTestSuitabilityQuestionId}setFirstTestSuitabilityQuestionId(t){this.firstTestSuitabilityQuestionId.next(t)}getCanSkipPhr(){return this.canSkipPhr}getCanSkipTestSuitability(){return this.canSkipTestSuitability}getPhrCompletedTime(){return this.phrCompletedTime.asObservable()}getHasTestSuitability(){return this.hasTestSuitability}getFirstUnansweredQuestion$(){return this.firstUnansweredQuestion.asObservable()}setConfirmationQuestionId(t){this.confirmationQuestionId.next(t)}getConfirmationQuestionId(){return this.confirmationQuestionId}getTestKitInfo$(){return this.testKitInfo.asObservable()}getRequiresObservation$(){return this.requiresObservation.asObservable()}getObservationVideoMeetingUrl$(){return this.observationVideoMeetingUrl.asObservable()}finalisePhrQuestionnaire(t){this.statusService.updatePersonalHealthRecordComplete(!0),null!=t&&(this.setFirstTestSuitabilityQuestionId(t.id),this.setActivePhrQuestionId(null))}get hideInstructionsForKit$(){return this.getTestKitInfo$().pipe((0,h.T)(t=>typeof t.showSampleInstructions<"u"?!t.showSampleInstructions:this.noInstructionKitCodes.includes(t.code)||!!t.resellerExternalId&&"FIT"===t.code&&this.noInstructionsFITResellerIds.includes(t.resellerExternalId)))}finaliseTestSuitabilityQuestionnaire(t){this.statusService.updatePersonalHealthRecordComplete(!0),this.statusService.updateTestSuitabilityComplete(!0),this.setConfirmationQuestionId(t.id),this.setActiveTestSuitabilityQuestionId(null),this.setActivePhrQuestionId(null)}getError(){return this.errorMessage}handleError(t){let i="There was a problem connecting with the server.";return t.error&&!(t.error instanceof ErrorEvent)&&(403===t.error.errorCode&&t.error.errorMessage.includes("questionnaire")&&t.error.errorMessage.includes("already")&&t.error.errorMessage.includes("finalized")?this.router.navigate(["/"]):i="string"==typeof t.error?t.error:"string"==typeof t.error.errorMessage?t.error.errorMessage:"There was a problem connecting with the server."),this.errorMessage.next(i),(0,u.$)(i)}clearError(){this.errorMessage.next("")}silentlyHandleError(t){let i="There was a problem connecting with the server.";return t.error instanceof ErrorEvent||(i="string"==typeof t.error?t.error:"string"==typeof t.error.errorMessage?t.error.errorMessage:"There was a problem connecting with the server."),(0,u.$)(i)}getConfirmationQuestion(){return this.questionService.getQuestionById(this.registrationId,this.confirmationQuestionId.getValue()).pipe((0,h.T)(t=>t),(0,r.W)(this.handleError.bind(this)))}finalizeQuestionnaire(){return this.http.post(`${d}questionnaire/${this.registrationId}/finalize`,{}).pipe((0,h.T)(({sampleType:t,selfIsolationUrl:i,shippingInfo:o,sampleInstructionsUrl:p})=>(this.statusService.updateActivationComplete(!0),this.collectionUrl.next(p),this.selfIsolationUrl.next(i),this.shippingInfo.next(o),this.sampleType.next(t),p)),(0,r.W)(this.handleError.bind(this)))}setReminder(t){return typeof window.dataLayer<"u"&&window.dataLayer.push({event:"sampleReminder",reminderTime:new Date(t).toUTCString()}),this.http.post(`${d}customer/phone/sms/samplereminder`,{registrationId:this.registrationId,reminderDateTimeUtc:t}).pipe((0,c.M)(()=>{this.reminderSent=!0}),(0,r.W)(this.handleError.bind(this)))}loadFirstQuestion(){return this.http.get(`${d}questionnaire/${this.registrationId}/question/first`).pipe((0,c.M)(t=>{this.firstPhrQuestionId.next(t.firstQuestion.id),this.testKitInfo.next(t.testKitInfo),this.canSkipPhr.
1next(t.firstNonPhrQuestion&&t.firstUnanswered&&!t.firstUnanswered.isPhrQuestion),this.phrCompletedTime.next(t.completedAt),this.requiresObservation.next(t.requiresObservation),this.observationVideoMeetingUrl.next(t.observationVideoMeetingUrl),this.firstUnansweredQuestion.next(t.firstUnanswered||t.firstQuestion),this.setFirstTestSuitabilityQuestionId(t.firstNonPhrQuestion?t.firstNonPhrQuestion.id:null),t.firstUnanswered&&t.firstUnanswered.isPhrQuestion?(this.activePhrQuestionId.next(t.firstUnanswered.id),this.activeTestSuitabilityQuestionId.next(null)):!t.firstUnanswered||t.firstUnanswered.key&&"sampledatetime"===t.firstUnanswered.key.toLowerCase()?(this.activeTestSuitabilityQuestionId.next(null),this.activePhrQuestionId.next(null),t.firstUnanswered&&t.firstUnanswered.key&&"sampledatetime"===t.firstUnanswered.key.toLowerCase()&&(this.canSkipTestSuitability.next(!0),this.sampleCollectionQuestion=t.firstUnanswered,this.setConfirmationQuestionId(this.sampleCollectionQuestion.id)),t.firstNonPhrQuestion&&t.firstNonPhrQuestion.key&&"sampledatetime"===t.firstNonPhrQuestion.key.toLowerCase()&&(this.hasTestSuitability.next(!1),this.sampleCollectionQuestion=t.firstNonPhrQuestion,this.setConfirmationQuestionId(this.sampleCollectionQuestion.id))):(this.activeTestSuitabilityQuestionId.next(t.firstUnanswered.id),this.activePhrQuestionId.next(null)),t.lastAnswered&&(this.lastAnsweredQuestion.next(t.lastAnswered),this.setLastAnsweredAsPrevious&&(t.lastAnswered.isPhrQuestion&&null!=this.activePhrQuestionId.getValue()||!t.lastAnswered.isPhrQuestion&&null!=this.activeTestSuitabilityQuestionId.getValue())&&(this.previousQuestion.next(t.lastAnswered),this.setLastAnsweredAsPrevious=!1))}),(0,h.T)(()=>!0),(0,r.W)(this.handleError.bind(this)))}getQuestionById(t){return this.isFirstQuestion.next(t===this.firstPhrQuestionId.getValue()||t===this.firstTestSuitabilityQuestionId.getValue()),this.isFirstQuestion.getValue()&&(this.previousQuestion.next(null),this.previousQuestionAnswer.next(null)),(0,S.p)(this.questionService.getQuestionById(this.registrationId,t).pi
1pe((0,c.M)(i=>{i.isPhrQuestion?(this.activePhrQuestionId.next(i.id),this.activeTestSuitabilityQuestionId.next(null)):i.key&&"sampledatetime"!==i.key.toLowerCase()?(this.activePhrQuestionId.next(null),this.activeTestSuitabilityQuestionId.next(i.id)):(this.activePhrQuestionId.next(null),this.activeTestSuitabilityQuestionId.next(null)),this.questionnaireProgress.next(i.progressIndicatorPct)}),(0,h.T)(i=>i),(0,r.W)(this.handleError.bind(this))),this.questionService.getAnswerById(this.registrationId,t).pipe((0,c.M)(i=>{i&&!this.isFirstQuestion.getValue()?this.http.get(`${d}questionnaire/${this.registrationId}/answer/${t}/previous`).pipe((0,c.M)(o=>{!this.isFirstQuestion.getValue()&&(null!=o.question||null==this.previousQuestion.getValue())&&this.previousQuestion.next(o.question),!this.isFirstQuestion.getValue()&&(null!=o.answer||null==this.previousQuestionAnswer.getValue())&&this.previousQuestionAnswer.next(o.answer)}),(0,r.W)(o=>404===o.status&&null!=this.activePhrQuestionId.getValue()?(this.firstPhrQuestionId.next(t),this.isFirstQuestion.next(!0),this.previousQuestion.next(null),this.silentlyHandleError.bind(this)(o)):this.handleError.bind(this)(o))).subscribe():!this.previousQuestion.getValue()&&!this.isFirstQuestion.getValue()&&(this.lastAnsweredQuestion.getValue()?this.previousQuestion.next(this.lastAnsweredQuestion.getValue()):this.setLastAnsweredAsPrevious=!0)}),(0,h.T)(i=>i),(0,r.W)(this.silentlyHandleError.bind(this))))}answerQuestion(t,i){return this.questionService.answerQuestion(this.registrationId,t).pi
1pe((0,h.T)(o=>(""===o.nextQuestionId?(this.statusService.updatePersonalHealthRecordComplete(!0),this.statusService.updateTestSuitabilityComplete(!0),this.statusService.updateActivationComplete(!0)):(this.previousQuestion.next(i),this.previousQuestionAnswer.next(t)),o)),(0,r.W)(this.handleError.bind(this)))}fetchEPrescriptionGenderQuestion(){return this.http.get(`${d}customer/eprescription/${this.registrationId}/questionnaire/gender`)}static{this.\u0275fac=function(i){return new(i||Q)(v.KVO(A.Qq),v.KVO(M.K),v.KVO(C.w),v.KVO(O.Ix))}}static{this.\u0275prov=v.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"})}}return Q})()}}]);

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.