PageSourceSearch

https://inhome.zeel.com/static/js/106.11976a98.chunk.js

js zeel.com collected 2026-09-24 08:56:31 UTC 15,122 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkin_home_react=self.webpackChunkin_home_react||[]).push([[106],{15273:function(e,n,t){t.r(n),t.d(n,{default:function(){return Q}});var r=t(74165),i=t(15861),s=t(29439),a=t(47313),o=t(58467),u=t(70261),l=t(23856),c=t(74459),d=t(68495),p=t(73560),f=t(15027),h=t(94146),_=t(3077),v=t(1413),m=t(43579),R=t(99792),x=t(70100),I={qid:null,srid:null,flowAuthor:null,prerequisitesChecked:!1,questionnaireTemplates:null,questionnaireAnswers:null,questionnaireResponseId:null,errorCode:null,_hasHydrated:!1},q=(0,m.U)()((0,R.tJ)((function(e,n){return(0,v.Z)((0,v.Z)({},I),{},{setHasHydrated:function(n){return e({_hasHydrated:n})},setParams:function(t){var r=t.qid,i=t.srid,s=n(),a=null!==r&&void 0!==r?r:s.qid,o=null!==i&&void 0!==i?i:s.srid,u=a!==s.qid||o!==s.srid;e((0,v.Z)({qid:a,srid:o},u?{prerequisitesChecked:!1,questionnaireTemplates:null,questionnaireAnswers:null,questionnaireResponseId:null,errorCode:null}:{}))},setFlowAuthor:function(n){e({flowAuthor:n})},setPrerequisitesChecked:function(n){e((0,v.Z)({prerequisitesChecked:n},n?{}:{questionnaireTemplates:null,questionnaireAnswers:null,questionnaireResponseId:null}))},setQuestionnaireData:function(n){var t=n.templates,r=n.answers,i=n.questionnaireResponseId;e({questionnaireTemplates:t,questionnaireAnswers:r,questionnaireResponseId:i})},setError:function(n){e({errorCode:n})},reset:function(){var t=n()._hasHydrated;e((0,v.Z)((0,v.Z)({},I),{},{_hasHydrated:t}))}})}),{name:"questionnaire-flow",version:(0,x.versionHash)(I),partialize:function(e){return{qid:e.qid,srid:e.srid,flowAuthor:e.flowAuthor,prerequisitesChecked:e.prerequisitesChecked}},onRehydrateStorage:function(e){return function(){e.setHasHydrated(!0)}}})),b="style_header__Ux9mb",E="style_icon__iEgix",N="style_button__naEqC",w=t(46417),k={missing_params:{title:"Invalid link",description:"This questionnaire link is missing required information. Please use the original link you received."},not_patient:{title:"Account not found",description:"This account does not match a patient account in our system."},account_type:{title:"Account type not supported",description:"This questionnaire is only available for VA patient accounts."},user_not_flow_author:{title:"Different user detected",description:"This questionnaire link is tied to a different user. Please sign in with the account that received the link."},sr_no_match:{title:"Referral not found",description:"We could not find a matching referral for this questionnaire. Please confirm your link or contact support."},questionnaire_doesnt_exist:{title:"Questionnaire not available",description:"The questionnaire associated with this link could not be found."},response_already_filled:{title:"Questionnaire already completed",description:"It looks like this questionnaire has already been submitted. If you would like to share additional information, please contact our support team."},failed_to_create_response:{title:"Unable to start questionnaire",description:"We were unable to create a questionnaire session for you. Please try again later or contact support if this continues."},failed_to_transform_questionnaire:{title:"Unable to load questionnaire",description:"We ran into a technical issue preparing this questionnaire. Please try again later."},failed_to_submit_response:{title:"Unable to submit questionnaire",description:"We were unable to submit your responses. Please try again later."}},O=function(){var e=(0,p.s0h)(),n=q(),t=n.errorCode,r=n.reset,i=function(){r(),e("/",{replace:!0})},s=t?k[t]:void 0;return(0,w.jsx)(_.Z,{loading:!1,skeleton:!1,completionBar:0,tags:{title:"Questionnaire - Error"},small:!0,step:"error",navProps:{hideBackArrow:!0},backAction:i,children:(0,w.jsxs)("div",{className:(0,h.Z)("flow-header",b),children:[(0,w.jsx)(f.ez,{className:E,name:"exclamation-circle",color:"error",size:48}),(0,w.jsx)("h1",{children:(null===s||void 0===s?void 0:s.title)||"Something went wrong"}),(0,w.jsx)("h3",{children:(null===s||void 0===s?void 0:s.description)||"We were unable to display this questionnaire. Please try again later."}),(0,w.jsx)(f.zx,{onClick:i,className:N,children:"Close"})]})})},A="style_header__RlglL",j="style_icon__LYJUA",g=function(){var e=(0,p.s0h)(),n=q().reset;return(0,a.useEffect)((function(){return function(){n()}}),[n]),(0,w.jsx)(_.Z,{loading:!1,skeleton:!1,completionBar:0,tags:{title:"Questionnaire - Completed"},small:!0,step:"final",navProps:{hideBackArrow:!0},backAction:function(){return e("/")},children:(0,w.jsxs)("div",{className:(0,h.Z)("flow-header",A),children:[(0,w.jsx)(f.ez,{className:j,name:"checkmark-circle",color:"dusty-blue",size:48}
1),(0,w.jsx)("h1",{children:"Thank you for completing this questionnaire."}),(0,w.jsx)("h3",{children:"Your responses help us better understand your needs and support your care."})]})})},Z=t(38504),y=t.n(Z),S=t(60184),F=t(83716),T=t(50631),L=function(){var e,n,t=(0,p.s0h)(),o=(0,l.lr)(),c=q(),f=c.qid,h=c.srid,m=c.flowAuthor,R=c.questionnaireTemplates,x=c.questionnaireAnswers,I=c.questionnaireResponseId,b=c.prerequisitesChecked,E=c._hasHydrated,N=c.setFlowAuthor,k=c.setPrerequisitesChecked,O=c.setQuestionnaireData,A=c.setError,j=(0,a.useRef)({qid:null,srid:null});j.current={qid:null!==(e=null!==f&&void 0!==f?f:null===o||void 0===o?void 0:o.qid)&&void 0!==e?e:null,srid:null!==(n=null!==h&&void 0!==h?h:null===o||void 0===o?void 0:o.srid)&&void 0!==n?n:null};var g=(0,d._y)(),Z=(0,s.Z)(g,1)[0],L=(0,S.KU)(),U=(0,s.Z)(L,1)[0],W=(0,S.C3)(),Q=(0,s.Z)(W,1)[0],C=(0,S.fU)(),P=(0,s.Z)(C,1)[0],B=(0,S.PE)(),H=(0,s.Z)(B,1)[0],z=(0,F.us)().data,G=(0,a.useState)(0),D=(0,s.Z)(G,2),M=D[0],J=D[1],V=(0,a.useMemo)((function(){return.8*M+.1}),[M]),Y=(0,a.useRef)(Promise.resolve()),K=(0,l.qt)(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var i,s,a,o,l,c,d,p,f,h,_,R,x,I,q,E,w,g,F,T,L;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n._patient,s=n._isVa,a=n._isAuthenticated,o=n._tokenDetails,l=j.current.qid,c=j.current.srid,l&&c){e.next=7;break}return A("missing_params"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 7:if(A(null),b&&k(!1),a){e.next=12;break}return t(u._j.QUESTIONNAIRE_FLOW.SIGN_IN(),{replace:!0}),e.abrupt("return");case 12:if(i){e.next=16;break}return A("not_patient"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 16:if(s){e.next=20;break}return A("account_type"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 20:if(d=(null===o||void 0===o?void 0:o.memberId)||(null===o||void 0===o?void 0:o.accessingAdminId),!m&&d&&N(String(d)),!m||!d||String(d)===String(m)){e.next=33;break}return e.prev=23,e.next=26,Z().unwrap();case 26:e.next=30;break;case 28:e.prev=28,e.t0=e.catch(23);case 30:return k(!1),t(u._j.QUESTIONNAIRE_FLOW.SIGN_IN(),{replace:!0}),e.abrupt("return");case 33:if(null!==(p=(null===i||void 0===i?void 0:i.referrals)||[])&&void 0!==p&&p.length){e.next=38;break}return A("sr_no_match"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 38:if(p.some((function(e){var n=(null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.service_request_id)||(null===e||void 0===e?void 0:e.serviceRequestId);return String(n)===String(c)}))){e.next=43;break}return A("sr_no_match"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 43:return f=[],e.prev=44,e.next=47,U({identifier:l}).unwrap();case 47:h=e.sent,f=(h||[]).filter(Boolean),e.next=56;break;case 51:return e.prev=51,e.t1=e.catch(44),A("questionnaire_doesnt_exist"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 56:if(f.length){e.next=60;break}return A("questionnaire_doesnt_exist"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 60:if(_=f[0],R="".concat("https://api.zeel-tech.com","/medical_massage/v1/questionnaire/").concat(_.id),x=null===i||void 0===i?void 0:i.id){e.next=67;break}return A("not_patient"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 67:return I=[],e.prev=68,e.next=71,Q({questionnaire:R,patient:String(x),basedOn:"ServiceRequest/".concat(c)}).unwrap();case 71:I=e.sent,e.next=77;break;case 74:e.prev=74,e.t2=e.catch(68),I=[];case 77:if(!(q=(I||[])[0])||"preliminary"===q.status){e.next=82;break}return A("response_already_filled"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 82:if(E=q||null){e.next=94;break}return e.prev=84,e.next=87,P({questionnaire:R,subject:{reference:"Patient/".concat(x),type:"Patient"},based_on:["ServiceRequest/".concat(c)],status:"preliminary",item:[]}).unwrap();case 87:w=e.sent,E=w||null,e.next=94;break;case 91:e.prev=91,e.t3=e.catch(84),E=null;case 94:if(E&&E.id){e.next=98;break}return A("failed_to_create_response"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 98:e.prev=98,g=[],F=y()(_),T=F.items||F.item||[],(T||[]).some((function(e){return(null===e||void 0===e?void 0:e.type)===S.Nl.GROUP}))||(F.item=[{item:T,type:S.Nl.GROUP,prefix:"Select the option that best describes you",link_
1id:"fs_group"}]),g.push(F),L=[(0,v.Z)((0,v.Z)({},E),{},{item:E.item||[]})],O({templates:g,answers:L,questionnaireResponseId:E.id}),e.next=114;break;case 109:return e.prev=109,e.t4=e.catch(98),A("failed_to_transform_questionnaire"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0}),e.abrupt("return");case 114:k(!0);case 115:case"end":return e.stop()}}),e,null,[[23,28],[44,51],[68,74],[84,91],[98,109]])})));return function(n){return e.apply(this,arguments)}}(),{include:["patient","tokenDetails"],hold:!E}),X=K.isLoading,$=(0,a.useCallback)(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var t,i,s,a,o,u,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(s=n||{}).values,o=s.progress,J(o),u=(0,v.Z)((0,v.Z)({},(null===x||void 0===x?void 0:x[0])||{}),{},{item:a||[]}),O({templates:R||[],answers:[u],questionnaireResponseId:I||(null===x||void 0===x||null===(t=x[0])||void 0===t?void 0:t.id)}),l=H({id:I||(null===x||void 0===x||null===(i=x[0])||void 0===i?void 0:i.id),questionnaireResponse:{item:u.item,submitted_by:((null===z||void 0===z?void 0:z.accessingAdminId)||(null===z||void 0===z?void 0:z.memberId)||"")+""}}).unwrap().then((function(){})),Y.current=l,e.next=8,l;case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[x,I,R,z,O,H]),ee=(0,a.useCallback)(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var i,s,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Y.current;case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:return i=(n||{}).answers,s=(i||[])[0]||[],e.prev=9,e.next=12,H({id:I||(null===x||void 0===x||null===(a=x[0])||void 0===a?void 0:a.id),questionnaireResponse:{item:s,status:"submitted"}}).unwrap();case 12:t(u._j.QUESTIONNAIRE_FLOW.FINAL(),{replace:!0}),e.next=20;break;case 15:e.prev=15,e.t1=e.catch(9),console.error(e.t1),A("failed_to_submit_response"),t(u._j.QUESTIONNAIRE_FLOW.ERROR(),{replace:!0});case 20:case"end":return e.stop()}}),e,null,[[0,5],[9,15]])})));return function(n){return e.apply(this,arguments)}}(),[x,I,t,A,H]);return(0,w.jsx)(_.Z,{loading:X,skeleton:X,completionBar:V,tags:{title:"Questionnaire"},full:!0,step:"questionnaire",backAction:function(){return t(u._j.QUESTIONNAIRE_FLOW.SIGN_IN())},children:!X&&R&&x&&(0,w.jsx)(T.Z,{templates:R,answers:x,onAnswer:$,onSubmit:ee,buttonText:"Submit Form & Finish",theme:"medical"})})},U=t(66982),W=function(){var e=(0,l.TH)(),n=(0,p.s0h)(),t=q(),s=t.flowAuthor,a=t.setFlowAuthor,o=((null===e||void 0===e?void 0:e.state)||{}).email,c=function(){n(u._j.QUESTIONNAIRE_FLOW.FORM(),{replace:!0})},d=(0,l.qt)((function(e){var n=e._isAuthenticated,t=e._tokenDetails,r=(null===t||void 0===t?void 0:t.memberId)||(null===t||void 0===t?void 0:t.accessingAdminId);!s&&r&&a(String(r)),n&&c()}),{include:["tokenDetails"]}).isLoading,f=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,w.jsx)(_.Z,{loading:d,skeleton:d,tags:{title:"Questionnaire - Sign In"},step:"account",navProps:{hideBackArrow:!0},narrow:!0,children:(0,w.jsx)(U.AF,{title:"Let's get Started",defaultEmail:o,onSuccess:f})})},Q=function(){var e=(0,d._y)(),n=(0,s.Z)(e,1)[0],t=(0,p.s0h)(),h=(0,l.lr)(),_=h||{},v=_.fromZcc,m=_.email,R="1"===v||"true"===v,x=q(),I=x.qid,b=x.srid,E=x.setParams,N=x.setError,k=x.errorCode,A=x._hasHydrated;(0,l.qt)((0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!R){e.next=6;break}return e.next=3,n().unwrap();case 3:return e.next=5,u.BM.waitFor(2e3);case 5:t(u._j.QUESTIONNAIRE_FLOW.SIGN_IN(),{replace:!0,state:{email:m}});case 6:case"end":return e.stop()}}),e)})))),(0,a.useLayoutEffect)((function(){if(A){var e=null===h||void 0===h?void 0:h.qid,n=null===h||void 0===h?void 0:h.srid;e&&n?e===I&&n===b||E({qid:e,srid:n}):I&&b||N("missing_params")}}),[h,I,b,E,N,A]);return(0,w.jsxs)(c.f6,{value:c.np.medical,children:[(0,w.jsx)(f.fz,{visible:false}),(0,w.jsxs)(o.Z5,{children:[(0,w.jsx)(o.AW,{path:u._j.QUESTIONNAIRE_FLOW.SIGN_IN({leaf:!0}),element:(0,w.jsx)(W,{})}),(0,w.jsx)(o.AW,{path:u._j.QUESTIONNAIRE_FLOW.FORM({leaf:!0}),element:(0,w.jsx)(L,{})}),(0,w.jsx)(o.AW,{path:u._j.QUESTIONNAIRE_FLOW.FINAL({leaf:!0}),element:(0,w.jsx)(g,{})}),(0,w.jsx)(o.AW,{path:u._j.QUESTIONNAIRE_FLOW.ERROR({leaf:!0}),element:(0,w.jsx)(O,{})}),(0,w.jsx)(o.AW,{path:"/*",element:k?(0,w.jsx)(o.Fg,{to:u._j.QUESTIONNAIRE_FLOW.ERROR(),replace:!0}):(0,w.jsx)(o.Fg,{to:u._j.QUESTIONNAIRE_FLOW.SIGN_IN(),replace:!0})})]})]})}},3077:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(1413),i=t(45987),s=t(98310),a="style_navLogo__3qfqq",o=t(46417),u=["children","navProps","completionBar"],l=function(e){var n=e.children,t=e.navProps,l=e.completionBar,c=(0,i.Z)(e,u);return(0,o.jsx)(s.Z,(0,r.Z)((0,r.Z)({showLoader:!1,navProps:(0,r.Z)((0,r.Z)({},t||{}),{},{completionBar:l,helpIconOpensChat:!0,logoClassName:a})},c),{},{children:n}))}},35666:function(e,n,t){t.d(n,{P:function(){return c},n:function(){return l}});var r=t(1413),i=t(45987),s=t(46417),a=t(67264),o=(t(47313),["size","style"]),u=["indeterminate"];function l(e){var n=e.size,t=e.style,u=(0,i.Z)(e,o),l=void 0!==n?(0,r.Z)({width:(0,a.h)(n),height:(0,a.h)(n)},t):t;return(0,s.jsx)("svg",(0,r.Z)((0,r.Z)({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:l,"aria-hidden":!0},u),{},{children:(0,s.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"
1currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}function c(e){var n=e.indeterminate,t=(0,i.Z)(e,u);return n?(0,s.jsx)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0},t),{},{children:(0,s.jsx)("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})})):(0,s.jsx)(l,(0,r.Z)({},t))}},49573:function(e,n,t){function r(e){return e?parseInt(e,10):0}t.d(n,{H:function(){return r}})}}]);

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.