1"use strict";(self.webpackChunkoda_web_front=self.webpackChunkoda_web_front||[]).push([[876],{25974:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=g(a(25602)),r=a(8174),i=a(28895),o=a(55007),l=a(38399),c=a(6320),s=a(91044),d=g(a(75388)),u=a(50189),p=a(36867),h=a(5673),f=a(71585);function g(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return(g=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o})(e,t)}const m=(0,o.connect)(null,(e=>(0,i.bindActionCreators)({setBreadcrumbOverrides:p.setBreadcrumbOverrides},e)))((e=>{let{setBreadcrumbOverrides:t}=e;const a=(0,r.useNavigate)();(0,r.useBlocker)((()=>((0,f.removeFromSessionStorage)(f.sessionStorageKeysClearedInOrganizationChange.expiredAssessmentTitle),!1))),n.useEffect((()=>{const e=(0,f.loadFromSessionStorage)(f.sessionStorageKeysClearedInOrganizationChange.expiredAssessmentTitle);return t([{...h.replacedBreadcrumbTexts.symptomAssessment,text:e},{...h.replacedBreadcrumbTexts.careAssessment,text:e}]),function(){t([])}}),[t]);return n.createElement(s.Content,{$withHorizontalPadding:!0,role:"region","aria-labelledby":"assessment-has-expired-title","data-testid":"assessment-has-expired"},n.createElement(l.Typography,{variant:"h1",color:"primary",id:"assessment-has-expired-title"},d.t("assessment_hasExpired_title")),n.createElement(l.Typography,{component:"p",variant:"bodyLarge"},d.t("assessment_hasExpired_description")),n.createElement(u.ButtonFilled,{onClick:()=>{a(c.paths.frontPage,{replace:!0})},dataTestId:"assessment-hasExpired-goToFrontPageButton",ariaLabel:d.t("assessment_hasExpired_goToFrontPageButton_ariaLabel")},d.t("assessment_hasExpired_goToFrontPageButton")))}));t.default=m},26871:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(8174),o=a(6320),l=n(a(3420)),c=n(a(25974));t.default=()=>r.createElement(i.Routes,null,r.createElement(i.Route,{path:`:questionnaireId${o.paths.assessmentResult}`,element:r.createElement(l.default,null)}),r.createElement(i.Route,{path:`:questionnaireId${o.paths.assessmentExpired}`,element:r.createElement(c.default,null)}),r.createElement(i.Route,{path:":questionnaireId",element:r.createElement(l.default,null)}))},72067:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(a(25602)),i=a(62958),o=a(6320),l=_(a(75388)),c=a(34921),s=a(7928),d=a(39983),u=n(a(78779)),p=n(a(42075)),h=a(28733),f=a(99723),g=a(49918),m=a(378),y=a(55814);function _(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return(_=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}
1)(e,t)}class E extends r.Component{state={careAssessments:[],isFetchingCareAssessments:!0,errorWhenFetchingCareAssessments:!1};componentDidMount(){this.init()}init=async()=>{try{const{language:e,featureFlags:t}=this.props,a=await(new c.ServiceActivityQuery).listServiceActivities((0,s.OdaLocaleToLanguage)(e)),n=(0,h.sortByTitle)((0,h.filterQuestionnaires)(a,i.ServiceActivityType.SOCIAL_SERVICE_REQUEST,t));this.setState({careAssessments:n,isFetchingCareAssessments:!1})}catch(e){this.setState({isFetchingCareAssessments:!1,errorWhenFetchingCareAssessments:!0})}};render(){const{careAssessments:e,isFetchingCareAssessments:t,errorWhenFetchingCareAssessments:a}=this.state,{featureFlags:n,language:c}=this.props,s=(0,f.getCodeFromServiceActivityType)(i.ServiceActivityType.SOCIAL_SERVICE_REQUEST),h=(0,f.getHasIncompleteContent)(s,c,n)&&!t&&!a;return r.createElement(r.Fragment,null,r.createElement(u.default,null,r.createElement(d.GridSheet,null,r.createElement(d.GridRowMargin,{size:2}),r.createElement(m.ListPageHeaderInGrid,{header:l.t("navigation_careAssessments"),description:l.t("citizenServices_descriptionForCareAssessments"),extraDescription:l.t("citizenServices_formFillingEstimate"),accordionId:"careAssessmentList-accordion",accordionHeader:l.t("citizenServices_details_careAssessments_title"),accordionDescription:l.t("citizenServices_details_careAssessments_text")}),r.createElement(d.GridRowMargin,{size:4}),t&&r.createElement(d.GridRow,null,r.createElement(m.CitizenServicesSkeletonInGrid,null)),r.createElement(d.GridRow,{dataTestId:"care-assessments-"+(t?"loading":"loaded")},e.map((e=>r.createElement(m.ListPageCardInGrid,{cardContent:e,dataTestIdPart:"care-assessment",buttonText:l.t("assessmentList_check"),url:o.paths.getCareAssessment(e.identifier.code),key:e.identifier.code})))),h&&(0,g.isEmpty)(e)&&r.createElement(m.ListPageInfoPanelInGrid,{text:l.t("serviceList_careAssessments_notAvailable")}),h&&!(0,g.isEmpty)(e)&&r.createElement(m.ListPageIncompleteContentCardInGrid,{header:l.t("serviceList_careAssessments_incompleteContent"),description:l.t("serviceList_careAssessments_incompleteContent_description")}),a&&r.createElement(p.default,{error:!0}),r.createElement(d.GridRowMargin,{size:8}))),r.createElement(y.GreyBox,null,r.createElement(u.default,null,r.createElement(d.GridRowMargin,{size:4}),r.createElement(d.GridRow,null,r.createElement(d.GridColumnThreeInRow,null,r.createElement(m.OtherContactCardForCitizenServices,null))))))}}t.default=E},34113:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(55007),i=n(a(72067));t.default=(0,r.connect)((e=>({language:e.i18n.language,featureFlags:e.app.featureFlags})))(i.default)},55814:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.StyledLink=t.GreyBox=void 0;var n=a(8174),r=a(38399),i=a(19535);t.GreyBox=(0,i.styled)(r.Box)((e=>{let{theme:t}=e;return{backgroundColor:t.palette.grey.alabaster}})),t.StyledLink=(0,i.styled)(n.Link)((e=>{let{theme:t}=e;return{color:t.palette.primary.main,fontWeight:600,textDecoration:"none","&:hover":{textDecoration:"underline"}}}))},45793:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(8174),o=a(55007),l=a(6320),c=n(a(26871)),s=n(a(28529)),d=n(a(83991)),u=n(a(34113)),p=n(a(82464)),h=n(a(44094)),f=n(a(45001)),g=n(a(77147));const m=(0,o.connect)((e=>({user:e.app.user})))((e=>{let{user:t}=e;return t.isPractitioner?r.createElement(i.Navigate,{to:l.paths.practitionerServices}):r.createElement(i.Routes,null,r.createElement(i.Route,{path:(0,l.splitSubPath)(l.paths.symptomAssessments),element:r.createElement(h.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPath)(l.paths.careAssessments),element:r.createElement(u.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPath)(l.paths.healthCheck),element:r.createElement(p.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPath)(l.paths.coachings),element:r.createElement(f.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPathWithSplat)(l.paths.symptomAssessments),element:r.createElement(c.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPathWithSplat)(l.paths.careAssessments),element:r.createElement(c.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPathWithSplat)(l.paths.healthCheck),element:r.createElement(c.default,null)}),r.createElement(i.Route,{path:`${(0,l.splitSubPath)(l.paths.coachings)}/:coachingPlanDefinitionId`,element:r.createElement(g.default,null)}),r.createElement(i.Route,{path:(0,l.splitSubPath)(l.paths.otherContact),element:r.createElement(d.default,null)}),r.createElement(i.Route,{index:!0,element:r.createElement(i.Navigate,{to:l.paths.symptomAssessments})}),r.createElement(i.Route,{path:"*",element:r.createElement(s.default,null)}))}));t.default=m}
1,99723:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.splitDetailsText=t.getHasIncompleteContent=t.getCodeFromServiceActivityType=void 0;var n=a(62958),r=a(62993),i=a(97577);t.splitDetailsText=e=>e.split("|").map((e=>e.trim()));t.getHasIncompleteContent=(e,t,a)=>{const n=(0,i.findFeature)(i.features.getIncompleteServicesFeature(t),a);return n&&(0,i.hasFeatureId)(n,e)};t.getCodeFromServiceActivityType=e=>{switch(e){case n.ServiceActivityType.SYMPTOM_CHECK:return r.fhirQuestionnaireCategories.symptom;case n.ServiceActivityType.HEALTH_CHECK:return r.fhirQuestionnaireCategories.healthCheck;case n.ServiceActivityType.SOCIAL_SERVICE_REQUEST:return r.fhirQuestionnaireCategories.social;default:throw new Error(`No code available for type ${e}`)}}},66651:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(a(25602)),i=a(6320),o=m(a(75388)),l=a(34921),c=a(7928),s=n(a(78779)),d=a(39983),u=n(a(42075)),p=a(28733),h=a(99723),f=a(49918),g=a(378);function m(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}
1)(e,t)}class y extends r.Component{state={coachings:[],isFetchingCoachings:!0,errorWhenFetchingCoachings:!1};componentDidMount(){this.init()}init=async()=>{try{const{language:e,featureFlags:t}=this.props,a=await(new l.ServiceActivityQuery).listServiceActivities((0,c.OdaLocaleToLanguage)(e)),n=(0,p.sortByTitle)((0,p.filterCoaching)(a,t));this.setState({coachings:n,isFetchingCoachings:!1})}catch(e){this.setState({isFetchingCoachings:!1,errorWhenFetchingCoachings:!0})}};render(){const{coachings:e,isFetchingCoachings:t,errorWhenFetchingCoachings:a}=this.state,{featureFlags:n,language:l}=this.props,c=(0,h.getHasIncompleteContent)("coaching",l,n)&&!t&&!a;return r.createElement(s.default,null,r.createElement(d.GridSheet,null,r.createElement(d.GridRowMargin,{size:2}),r.createElement(g.ListPageHeaderInGrid,{header:o.t("navigation_coachings"),description:o.t("citizenServices_descriptionForCoachings"),accordionId:"coachingList-accordion",accordionHeader:o.t("citizenServices_details_coachings_title"),accordionDescription:o.t("citizenServices_details_coachings_text")}),r.createElement(d.GridRowMargin,{size:4}),t&&r.createElement(d.GridRow,null,r.createElement(g.CitizenServicesSkeletonInGrid,null)),r.createElement(d.GridRow,{dataTestId:"coachings-list-"+(t?"loading":"loaded")},e.map((e=>r.createElement(g.ListPageCardInGrid,{cardContent:e,dataTestIdPart:"coaching",buttonText:o.t("coachingList_startButton"),url:i.paths.getCoaching(e.identifier.code),key:e.identifier.code})))),c&&(0,f.isEmpty)(e)&&r.createElement(g.ListPageInfoPanelInGrid,{text:o.t("serviceList_coachings_notAvailable")}),c&&!(0,f.isEmpty)(e)&&r.createElement(g.ListPageIncompleteContentCardInGrid,{header:o.t("serviceList_coachings_incompleteContent"),description:o.t("serviceList_coachings_incompleteContent_description")}),a&&r.createElement(u.default,{error:!0}),r.createElement(d.GridRowMargin,{size:8})))}}t.default=y},45001:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(55007),i=n(a(66651));const o=(0,r.connect)((e=>({featureFlags:e.app.featureFlags,language:e.i18n.language})))(i.default);t.default=o},73800:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=S(a(25602)),i=a(38399),o=a(62958),l=a(6320),c=S(a(75388)),s=a(34921),d=a(7928),u=a(81694),p=a(63232),h=n(a(4566)),f=n(a(21328)),g=n(a(20166)),m=n(a(78779)),y=a(39983),_=n(a(42075)),E=a(28733),C=a(99723),v=a(49918),T=a(378);function S(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return(S=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}
1)(e,t)}class O extends r.Component{state={healthChecks:[],isFetchingHealthChecks:!0,errorWhenFetchingHealthChecks:!1};componentDidMount(){this.init()}init=async()=>{try{const{language:e,featureFlags:t}=this.props,a=await(new s.ServiceActivityQuery).listServiceActivities((0,d.OdaLocaleToLanguage)(e)),n=(0,E.sortByTitle)((0,E.filterQuestionnaires)(a,o.ServiceActivityType.HEALTH_CHECK,t));this.setState({healthChecks:n,isFetchingHealthChecks:!1})}catch(e){this.setState({isFetchingHealthChecks:!1,errorWhenFetchingHealthChecks:!0})}};render(){const{healthChecks:e,isFetchingHealthChecks:t,errorWhenFetchingHealthChecks:a}=this.state,{featureFlags:n,language:s}=this.props,d=(0,C.getCodeFromServiceActivityType)(o.ServiceActivityType.HEALTH_CHECK),E=(0,C.getHasIncompleteContent)(d,s,n)&&!t&&!a&&(0,v.isEmpty)(e);return r.createElement(m.default,null,r.createElement(y.GridSheet,null,r.createElement(y.GridRowMargin,{size:2}),r.createElement(T.ListPageHeaderInGrid,{header:c.t("navigation_healthCheck"),description:c.t("citizenServices_descriptionForHealthChecks"),accordionId:"heathChecks-accordion",accordionHeader:c.t("citizenServices_details_healthChecks_title"),accordionDescription:c.t("citizenServices_details_healthChecks_text")}),r.createElement(y.GridRowMargin,{size:4}),t&&r.createElement(y.GridRow,null,r.createElement(T.ListPageNarrowerContentInGrid,null,r.createElement(T.CitizenServicesSkeletonRectangle,null))),r.createElement(y.GridRow,{justifyContent:"center",dataTestId:"health-checks-"+(t?"loading":"loaded")},e.map((e=>r.createElement(T.ListPageNarrowerContentInGrid,{key:e.identifier.code},r.createElement(p.Card,{header:r.createElement(g.default,{headerText:e.title,as:"h2"}),key:e.identifier.code,dataTestId:`health-check-${e.identifier.code}`,footer:r.createElement(f.default,{actions:[{text:c.t("healthCheck_begin"),type:"outlined",to:`${(0,u.addTrailingSlash)(l.paths.healthCheck)}${e.identifier.code}`,ariaLabel:`${c.t("healthCheck_begin")} ${e.title}`}]}),paperStyle:"outlined"},r.createElement(h.default,null,r.createElement(i.Typography,{dangerouslySetInnerHTML:(0,v.getDangerousHTML)(e.description.dangerousHtml)}))))))),a&&r.createElement(_.default,{error:!0}),E&&r.createElement(T.ListPageInfoPanelInGrid,{text:c.t("serviceList_healthChecks_notAvailable")}),r.createElement(y.GridRowMargin,{size:8})))}}t.default=O},82464:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(55007),i=n(a(73800));t.default=(0,r.connect)((e=>({language:e.i18n.language,featureFlags:e.app.featureFlags})))(i.default)},378:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.OtherContactCardForCitizenServices=t.ListPageNarrowerContentInGrid=t.ListPageInfoPanelInGrid=t.ListPageIncompleteContentCardInGrid=t.ListPageHeaderInGrid=t.ListPageCardInGrid=t.CitizenServicesSkeletonRectangle=t.CitizenServicesSkeletonInGrid=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=a(63232),l=n(a(20166)),c=n(a(75388)),s=n(a(21328)),d=a(6320),u=n(a(4566)),p=a(39983),h=n(a(23414)),f=a(91044),g=a(49918);t.OtherContactCardForCitizenServices=()=>r.createElement(o.Card,{header:r.createElement(l.default,{headerText:c.default.t("otherContact_serviceListCard_title"),as:"h2"}),footer:r.createElement(s.default,{actions:[{text:c.default.t("otherContact_fillOtherContact"),type:"outlined",to:d.paths.otherContact}]}),paperStyle:"outlined",dataTestId:"other-contact-service-list-card"},r.createElement(u.default,null,r.createElement(i.Typography,null,c.default.t("otherContact_serviceListCard_description")),r.createElement(i.Typography,null,c.default.t("otherContact_serviceListCard_keywords"))));const m=()=>r.createElement(i.Skeleton,{variant:"rectangular",height:170});t.CitizenServicesSkeletonRectangle=m;t.CitizenServicesSkeletonInGrid=()=>r.createElement(r.Fragment,null,r.createElement(p.GridColumnThreeInRow,null,r.createElement(m,null)),r.createElement(p.GridColumnThreeInRow,null,r.createElement(m,null)),r.createElement(p.GridColumnThreeInRow,null,r.createElement(m,null)),r.createElement(p.GridColumnThreeInRow,null,r.createElement(m,null)),r.createElement(p.GridColumnThreeInRow,null,r.createElement(m,null)));const y=e=>{let{children:t}=e;return r.createElement(i.Grid,{size:{xs:4,md:8,lg:10}},t)};
1t.ListPageNarrowerContentInGrid=y;t.ListPageHeaderInGrid=e=>{let{header:t,description:a,extraDescription:n,accordionId:o,accordionHeader:l,accordionDescription:c}=e;return r.createElement(r.Fragment,null,r.createElement(p.GridRow,{justifyContent:"center"},r.createElement(y,null,r.createElement(i.Typography,{variant:"h1"},t),r.createElement(i.Typography,{component:"p",variant:"bodyLarge"},a),n&&r.createElement(i.Typography,{component:"p",variant:"bodyLarge"},n))),r.createElement(p.GridRowMargin,{size:2}),r.createElement(p.GridRow,{justifyContent:"center"},r.createElement(y,null,r.createElement(h.default,{options:[{id:o,header:l,description:c}],shouldSplitDescription:!0}))))};t.ListPageInfoPanelInGrid=e=>{let{text:t}=e;return r.createElement(r.Fragment,null,r.createElement(p.GridRowMargin,{size:4}),r.createElement(p.GridRow,{justifyContent:"center"},r.createElement(y,null,r.createElement(f.InfoPanel,{small:!0,narrow:!0,horizontal:"left"},t))))};t.ListPageIncompleteContentCardInGrid=e=>{let{header:t,description:a}=e;return r.createElement(r.Fragment,null,r.createElement(p.GridRowMargin,{size:4}),r.createElement(p.GridRow,null,r.createElement(p.GridColumnThreeInRow,null,r.createElement(o.Card,{header:r.createElement(l.default,{headerText:t}),paperStyle:"outlined"},r.createElement(u.default,null,r.createElement(i.Typography,null,a))))))};t.ListPageCardInGrid=e=>{let{cardContent:t,dataTestIdPart:a,buttonText:n,url:c,useFilledPaperStyle:d}=e;return r.createElement(p.GridColumnThreeInRow,null,r.createElement(o.Card,{header:r.createElement(l.default,{headerText:t.title,as:"h2"}),key:t.identifier.code,dataTestId:`${a}-${t.identifier.code}`,footer:r.createElement(s.default,{actions:[{text:n,type:"outlined",to:c,ariaLabel:`${n} ${t.title}`,dataTestId:`open-${a}-${t.identifier.code}`}]}),paperStyle:d?"filled":"outlined"},r.createElement(u.default,null,r.createElement(i.Typography,{dangerouslySetInnerHTML:(0,g.getDangerousHTML)(t.description.dangerousHtml)}))))}},25178:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=O(a(25602)),i=a(38399),o=a(62958),l=a(6320),c=O(a(75388)),s=a(34921),d=a(7928),u=a(81694),p=a(39983),h=n(a(78779)),f=n(a(42075)),g=a(28733),m=a(79833),y=a(91044),_=a(99723),E=a(49918),C=a(378),v=a(20344),T=n(a(22682)),S=a(55814);function O(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return(O=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}
1)(e,t)}class M extends r.Component{state={symptomAssessments:[],generalSymptomAssessment:void 0,isFetchingSymptomAssessments:!0,errorWhenFetchingSymptomAssessments:!1,highlightedAssessmentIds:[],isOpen:!1};componentDidMount(){this.init()}init=async()=>{try{const{language:e,featureFlags:t}=this.props,a=await(new s.ServiceActivityQuery).listServiceActivities((0,d.OdaLocaleToLanguage)(e)),n=a.find((e=>e.identifier.code===m.generalSymptomCheckId)),r=a.filter((e=>e.identifier.code!==m.generalSymptomCheckId)),i=(0,g.sortByTitle)([...(0,g.filterQuestionnaires)(r,o.ServiceActivityType.SYMPTOM_CHECK,t),...(0,g.filterQuestionnaires)(r,o.ServiceActivityType.THERAPY_NAVIGATOR,t)]);let l=[];try{const e=await(0,v.getHighlights)();l=e.announcements.map((e=>e.href)).map((e=>{const t=e.split("/");return t[t.length-1]}))}catch(e){}this.setState({symptomAssessments:i,generalSymptomAssessment:n,isFetchingSymptomAssessments:!1,highlightedAssessmentIds:l})}catch(e){this.setState({isFetchingSymptomAssessments:!1,errorWhenFetchingSymptomAssessments:!0})}};render(){const{symptomAssessments:e,isFetchingSymptomAssessments:t,errorWhenFetchingSymptomAssessments:a,generalSymptomAssessment:n,highlightedAssessmentIds:s}=this.state,{featureFlags:d,language:g}=this.props,m=(0,_.getCodeFromServiceActivityType)(o.ServiceActivityType.SYMPTOM_CHECK),v=(0,_.getHasIncompleteContent)(m,g,d)&&!t&&!a;return r.createElement(r.Fragment,null,r.createElement(h.default,null,r.createElement(p.GridSheet,null,r.createElement(p.GridRowMargin,{size:2}),r.createElement(C.ListPageHeaderInGrid,{header:c.t("navigation_symptomAssessments"),description:c.t("citizenServices_descriptionForSymptomAssessments"),extraDescription:c.t("citizenServices_formFillingEstimate"),accordionId:"assessmentList-accordion",accordionHeader:c.t("citizenServices_details_symptomAssessments_title"),accordionDescription:c.t("citizenServices_details_symptomAssessments_text")}),r.createElement(p.GridRowMargin,{size:4}),r.createElement(p.GridRow,{justifyContent:"center"},r.createElement(i.Grid,{size:{xs:4,md:8,lg:6}},r.createElement(T.default,{isOpen:this.state.isOpen,setIsOpen:e=>this.state.isOpen!==e&&this.setState({isOpen:e})}))),r.createElement(p.GridRowMargin,{size:4}),r.createElement(p.GridRow,{justifyContent:"center"},r.createElement(C.ListPageNarrowerContentInGrid,null,r.createElement(y.InfoPanel,{small:!0,narrow:!0},r.createElement("strong",null,c.t("citizenServices_NB"))," ",c.t("citizenServices_info")))),r.createElement(p.GridRowMargin,{size:4}),t&&r.createElement(p.GridRow,null,r.createElement(C.CitizenServicesSkeletonInGrid,null)),r.createElement(p.GridRow,{dataTestId:"symptom-assessments-"+(t?"loading":"loaded")},e.map((e=>r.createElement(C.ListPageCardInGrid,{cardContent:e,dataTestIdPart:"assessment",buttonText:c.t("assessmentList_check"),url:e.type===o.ServiceActivityType.THERAPY_NAVIGATOR?l.paths.therapyNavigator:l.paths.getSymptomAssessment(e.identifier.code),key:e.identifier.code,useFilledPaperStyle:s.includes(e.identifier.code)})))),v&&(0,E.isEmpty)(e)&&r.createElement(C.ListPageInfoPanelInGrid,{text:c.t("serviceList_symptomAssessments_notAvailable")}),v&&!(0,E.isEmpty)(e)&&r.createElement(C.ListPageIncompleteContentCardInGrid,{header:c.t("serviceList_symptomAssessments_incompleteContent"),description:c.t("serviceList_symptomAssessments_incompleteContent_description")}),n&&r.createElement(r.Fragment,null,r.createElement(p.GridRowMargin,{size:4}),r.createElement(p.GridRow,{justifyContent:"center",dataTestId:"general-symptom-assessment"},r.createElement(p.GridColumnFullWidth,null,r.createElement(i.Stack,{alignItems:"center"},r.createElement(i.Typography,{margin:0},c.t("assessmentList_cannotFindAQuestionnaire")),r.createElement(i.Stack,{direction:"row",spacing:.5,alignItems:"center"},r.createElement(i.Typography,{margin:0},c.t("assessmentList_fillQuestionnaire")," "),r.createElement(S.StyledLink,{to:`${(0,u.addTrailingSlash)(l.paths.symptomAssessments)}${n.identifier.code}`,"data-testid":`open-assessment-${n.identifier.code}`},n.title)))))),a&&r.createElement(f.default,{error:!0}),r.createElement(p.GridRowMargin,{size:8}))),r.createElement(S.GreyBox,null,r.createElement(h.default,null,r.createElement(p.GridRowMargin,{size:4}),r.createElement(p.GridRow,null,r.createElement(p.GridColumnThreeInRow,null,r.createElement(C.OtherContactCardForCitizenServices,null))))))}}t.default=M},44094:function(e,t,a){var n=a(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(55007),i=n(a(25178));t.default=(0,r.connect)((e=>({language:e.i18n.language,featureFlags:e.app.featureFlags})))(i.default)},77147:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(55007),o=a(28895),l=a(8174),c=a(45324),s=a(11629),d=n(a(42075)),u=a(92253),p=n(a(37533)),h=a(60964),f=a(71585),g=n(a(91858)),m=a(50572),y=n(a(48509));const _=(0,i.connect)((e=>({language:e.i18n.language})),(e=>(0,o.bindActionCreators)({receiveStartCoaching:s.receiveStartCoaching,toastSuccess:c.toastSuccess},e)))((e=>{const[t,a]=r.useState(void 0),n=(0,l.useParams)(),{coachingPlanDefinitionId:i,mainCarePlanId:o}=n,c=(0,h.useCoachingPreview)(n,location,e.toastSuccess,e.receiveStartCoaching),{value:s,setValue:_}=(0,m.useGetValueSafelyFromSessionStorage)(f.sessionStorageKeysClearedInOrganizationChange.coachingPlanDefinitionId);if(c.redirectTo)return r.createElement(l.Navigate,{to:c.redirectTo,replace:!0});if(!c.coaching)return r.createElement(d.default,{loading:!0});if(s&&s===i)return _(void 0),c.setShouldStartCoaching(!0),r.createElement(d.default,{loading:!0});const E=(0,u.mapPlanDefinitionActionsToCoachingActivities)(c.coaching.actions);return r.createElement(r.Fragment,null,r.createElement(y.default,{resourceLanguages:t?[t]:void 0}),r.createElement(p.default,{coaching:c.coaching,coachingActivities:E,startCoaching:t=>{var a;t?((0,f.saveToSessionStorage)(f.sessionStorageKeysClearedInOrganizationChange.coachingPlanDefinitionId,null===(a=c.coaching)||void 0===a?void 0:a.identifier),window.location.replace(g.default.auth.getPatientLoginUrl(location.pathname+location.search,e.language))):c.setShouldStartCoaching(!0)},mainCarePlanId:o,isReadOnly:!0,setCoachingLanguage:a}))}));t.default=_},95271:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=a(8174),l=n(a(91858)),c=n(a(75388)),s=a(63232),d=a(81694),u=n(a(20166)),p=n(a(4566)),h=n(a(21328));t.default=e=>{let{language:t}=e;const a=(0,o.useLocation)(),n=(0,d.removePrependingSlash)(a.pathname+a.search),f=`${l.default.auth.getPatientLoginUrl(n,t)}`;return r.createElement(i.Box,{"aria-live":"polite"},r.createElement(s.Card,{header:r.createElement(u.default,{headerText:c.default.t("login")}),footer:r.createElement(h.default,{actions:[{text:c.default.t("login"),type:"filled",href:f,ariaLabel:c.default.t("otherContactRequest_loginButton_ariaLabelText"),dataTestId:"other-contact-login-button"}]}),paperStyle:"filled",dataTestId:"other-contact-login-card",centered:!0},r.createElement(p.default,null,r.createElement(i.Typography,null,c.default.t("otherContactRequest_loginDescription")))))}},55934:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(55007),o=a(38399),l=n(a(29251)),c=n(a(75388)),s=a(50189),d=a(86136),u=a(24658),p=a(57422),h=a(71994);const f=(0,i.connect)((e=>({language:e.i18n.language})))((e=>{let{showMedicationTopicConfirmationAlert:t,handleMedicationTopicSelection:a,closeAlert:n,closeAllDialogs:i,language:f}=e;return r.createElement(u.Alert,{titleText:c.default.t("otherContact_confirmMedicationTopic_title"),isOpen:t,dataTestId:"other-contact-medication-topic-confirmation-alert",footerButtons:[r.createElement(s.ButtonFilled,{key:"notRenewing",onClick:a,dataTestId:"other-contact-medication-topic-confirm-not-renewing",ariaLabel:c.default.t("otherContact_confirmMedicationTopic_notRenewingReceipt_ariaLabel")},c.default.t("otherContact_confirmMedicationTopic_notRenewingReceipt")),r.createElement(d.ButtonText,{key:"goToOmakanta",onClick:()=>{(0,h.openLinkInNewTab)(p.kantaUrls[f]),i()},endIcon:r.createElement(l.default,null),ariaLabel:`${c.default.t("otherContact_confirmMedicationTopic_goToOmakanta_ariaLabel")} ${c.default.t("link_opensInNewTab")}`},c.default.t("otherContact_confirmMedicationTopic_goToOmakanta")),r.createElement(d.ButtonText,{key:"cancel",onClick:n,dataTestId:"other-contact-medication-topic-cancel-selection",ariaLabel:c.default.t("otherContact_confirmMedicationTopic_cancel_ariaLabel")},c.default.t("cancel"))]},r.createElement(o.Typography,null,c.default.t("otherContact_confirmMedicationTopic_description")))}));t.default=f},30057:function(e,t,a){var n=a(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=n(a(75388)),l=a(11369),c=n(a(64939));t.default=e=>{let{onMessageChange:t,initialValue:a,hasInvalidInputError:n,dataTestId:s}=e;return r.createElement("form",null,r.createElement(i.Stack,{spacing:1},r.createElement(i.Typography,{variant:"label",component:"label",htmlFor:"other-contact-message"},o.default.t("otherContactRequest_message_title")),r.createElement(l.TextField,{id:"other-contact-message",initialValue:a,onChange:t,isMultiline:!0,maxCharacterCount:5e3,maxCharacterCountMessage:o.default.t("messageMaxLength_characters",{characters:5e3}),hasError:n,dataTestId:s,placeholder:o.default.t("otherContact_messagePlaceholder")}),n&&r.createElement(c.default,null)))}},64093:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(55007),o=a(38399),l=n(a(75388)),c=a(13680),s=n(a(36828)),d=a(2728),u=a(9886),p=a(72325),h=n(a(42075)),f=a(33514),g=n(a(58938)),m=n(a(1612)),y=a(68021),_=a(17683);const E=(0,i.connect)((e=>({language:e.i18n.language})));t.default=E((e=>{let{language:t,municipalities:a,selectedMunicipality:n,selectMunicipality:i,error:E,isLoading:C,retryFetching:v,isFetchingServiceGuidances:T}=e;const S=(0,d.useMunicipalityList)(t,a),[O,M]=r.useState(!1),I=()=>{S.clearFiltering(),M(!1)},b=()=>n?(0,_.getMunicipalityName)(n,t):"";return r.createElement("form",null,r.createElement(o.Stack,{"data-testid":"municipality-selection",spacing:1},r.createElement(o.Typography,{variant:"label",component:"label",id:"other-contact-location-selection"},l.default.t("otherContactRequest_location")),r.createElement(o.Box,null,r.createElement(p.ButtonTonal,{onClick:()=>{M(!0)},dataTestId:"location-button",dataLoading:!1,startIcon:r.createElement(g.default,{color:"primary"}),endIcon:r.createElement(m.default,{color:"primary"}),ariaLabel:n?l.default.t("otherContactRequest_changeLocation_ariaLabelText",{municipality:b()}):l.default.t("otherContactRequest_selectLocation_ariaLabelText"),disabled:T},n?b():l.default.t("municipalitySelection_select")))),r.createElement(f.Dialog,{isOpen:O,cancelButtonText:l.default.t("cancel"),cancelButtonAriaLabel:l.default.t("municipalityList_return_ariaLabelText"),titleText:l.default.t("municipalityList_title"),onClose:I,dataTestId:"municipality-selection-dialog",$fixedHeight:!0,isCancelable:!0,autoFocusToInput:!0,noScroll:!0},r.createElement(o.Box,null,r.createElement(c.SearchDefaultWithClear,{ariaControls:"search-for-municipality",key:"municipality-list-search",placeholder:l.default.t("municipalityList_search_placeholder"),dataTestId:"municipality-list-search",onChange:S.filterMunicipalities,onClear:S.clearFiltering,searchLabel:l.default.t("municipalityList_search_label"),searchAriaLabel:l.default.t("municipalityList_search_ariaLabelText"),clearButtonAriaLabelText:l.default.t("municipalityList_search_clearInput"),disabled:Boolean(E),ariaLiveText:S.municipalityCount>0?l.default.t("municipalityList_searchResults_ariaLiveText",{resultCount:S.municipalityCount}):l.default.t("municipalityList_noSearchResults_ariaLiveText")})),r.createElement(u.SearchResultsContainer,null,C&&r.createElement(h.default,{loading:!0,dataTestId:"municipality-selection-loading"}),E&&r.createElement(s.default,{retry:v,isLoading:C,titleKey:"municipalityList_fetchError_title",ariaLabelKey:"municipalityList_fetchError_tryAgain_ariaLabelText",descriptionKey:"municipalityList_fetchError_description"}),r.createElement(y.ListItems,{listItems:S.listOfMunicipalities,selectedMunicipality:n,onSelect:e=>{i(e),I()},role:"region",id:"search-for-municipality"}))))}))},50858:function(e,t,a){var n=a(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(38399),i=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),o=a(51027),l=a(19535),c=n(a(75388)),s=a(49918),d=a(63232),u=n(a(4566)),p=n(a(29251));const h=(0,l.styled)(r.Typography)((e=>{let{theme:t}=e;return{fontSize:"0.875rem",color:t.palette.checkbox.borders}}));t.default=e=>{let{guidances:t}=e;const a=t.filter((e=>"free_text"===e.type)),n=t.filter((e=>"external_link"===e.type)),l=t.some((e=>e.nationalGuidance));return i.createElement(r.Box,{"aria-live":"polite","data-testid":"other-contact-result-guidances-"+(l?"national":"local")},i.createElement(r.Typography,{variant:"label"},c.default.t("otherContactRequest_localResults_title")),a.map(((e,t)=>i.createElement(r.Typography,{key:t,dangerouslySetInnerHTML:(0,s.getDangerousHTML)(e.description),"data-testid":`other-contact-free-text-${t}`}))),n.map(((e,t)=>((e,t)=>i.createElement(r.Box,{pt:2,mb:1},i.createElement(d.Card,{dataTestId:`other-contact-external-link-${t}`},i.createElement(u.default,null,i.createElement(r.Typography,{variant:"h3"},e.title),i.createElement(r.Typography,{mb:3,dangerouslySetInnerHTML:(0,s.getDangerousHTML)(e.description)}),i.createElement(o.ButtonOutlined,{key:t,href:e.url,target:"_blank",className:"no-target-blank-icon",endIcon:i.createElement(p.default,{color:"primary"}),ariaLabel:`${c.default.t("open")} ${e.title} ${c.default.t("link_opensInNewTab")}`,dataTestId:`other-contact-external-link-button-${t}`},c.default.t("otherContact_openExternalLink"))))))(e,t))),l&&i.createElement(h,{key:"national-guidance-note","data-testid":"other-contact-national-guidance-note"},c.default.t("otherContact_nationalGuidance_note")))}},59754:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=n(a(75388)),l=a(24658),c=a(49918),s=a(50189),d=a(86136);t.default=e=>{let{isOpen:t,isSending:a,retrySending:n,cancelSending:u}=e;return r.createElement(l.Alert,{id:"other-contact-sending-failed-dialog",dataTestId:"other-contact-sending-failed-dialog",titleText:o.default.t("otherContact_sendingFailed_title"),isOpen:t,footerButtons:[r.createElement(s.ButtonFilled,{key:"retry",ariaLabel:o.default.t("otherContact_sendingFailed_tryAgain_ariaLabelText"),onClick:n,dataTestId:"other-contact-sending-failed-retry",disabled:a,loading:a},o.default.t("try-again")),r.createElement(d.ButtonText,{key:"cancel",ariaLabel:o.default.t("otherContact_sendingFailed_cancelSending_ariaLabelText"),onClick:u,dataTestId:"other-contact-sending-failed-cancel",disabled:a},o.default.t("close"))]},r.createElement(i.Typography,{dangerouslySetInnerHTML:(0,c.getDangerousHTML)(o.default.t("otherContact_sendingFailed_description"))}))}},1438:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=n(a(75388)),l=a(78417),c=a(49918);t.default=e=>{let{guidances:t}=e;const a=t[0];return r.createElement(i.Stack,{"data-testid":"other-contact-sending-guidance",spacing:2,"aria-live":"polite"},r.createElement(i.Stack,{"data-testid":"other-contact-sending-guidance-organization",spacing:1,alignItems:"flex-start"},r.createElement(i.Typography,{variant:"label"},o.default.t("otherContactRequest_recipientOrganization")),r.createElement(l.ChipAction,{label:a.organizationName})),a.description&&r.createElement(i.Stack,{"data-testid":"other-contact-sending-guidance-description",spacing:1},r.createElement(i.Typography,{variant:"label"},o.default.t("otherContactRequest_localResults_title")),r.createElement(i.Typography,{dangerouslySetInnerHTML:(0,c.getDangerousHTML)(a.description)})))}},52213:function(e,t,a){var n=a(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=n(a(38646)),l=a(1929);t.default=e=>{let{activePhaseId:t,isCompleted:a,selectedTopic:n}=e;return a?r.createElement(i.Typography,{variant:"h1",textAlign:"center"},o.default.t("otherContactRequest_successfullySent_title")):t===l.OtherContactPhaseId.FILL_OTHER_CONTACT&&n?r.createElement(r.Fragment,null,r.createElement(i.Typography,{variant:"label",component:"h1"},o.default.t("otherContactRequest_welcome_title")),r.createElement(i.Typography,{variant:"h1",component:"h2"},n.label)):r.createElement(i.Typography,{variant:"h1"},o.default.t("otherContactRequest_welcome_title"))}},70702:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=n(a(38646)),o=a(83578),l=a(19620),c=a(33514),s=a(19535),d=a(38399),u=a(23139),p=n(a(84558));i.default.noop("otherContact_topicFetchError_title"),i.default.noop("otherContact_topicFetchError_tryAgain_ariaLabelText"),i.default.noop("otherContact_topicFetchError_description");const h=(0,s.styled)(d.Box)((e=>{let{theme:t}=e;return{color:t.palette.grey.doveGray}}));t.default=e=>{let{isOpen:t,closeDialog:a,topics:n,onTopicSelect:s,topicFetchError:f,retryFetchingTopics:g,isLoadingTopics:m}=e;return r.createElement(c.Dialog,{isOpen:t,id:"otherContact-topicSelection-dialog",titleText:i.default.t("otherContactRequest_topicSelection_title"),cancelButtonAriaLabel:i.default.t("otherContactRequest_topicSelection_return_ariaLabelText"),onClose:a,dataTestId:"other-contact-topic-selection-dialog",isCancelable:!0},f&&g&&void 0!==m&&r.createElement(d.Box,{pt:2},r.createElement(p.default,{retry:g,isLoading:m,titleKey:"otherContact_topicFetchError_title",ariaLabelKey:"otherContact_topicFetchError_tryAgain_ariaLabelText",descriptionKey:"otherContact_topicFetchError_description",dataTestId:"other-contact-topic-fetch-error-retry-fetching"})),r.createElement(o.ListWithoutBorder,null,n.map(((e,t)=>r.createElement(l.ListItem,{key:e.id,onClick:()=>s(e),text:e.label,showDivider:t<n.length-1,isCompact:!0,startIcon:r.createElement(h,null,(0,u.getTopicIcon)(e.id)),dataTestId:`topic-${e.id}`})))))}},62670:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(38399),i=n(a(1612)),o=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),l=n(a(75388)),c=a(72325),s=n(a(70702)),d=a(23139),u=n(a(55934)),p=a(17606);t.default=e=>{let{topics:t,onTopicSelect:a,selectedTopic:n,isFetchingServiceGuidances:h,isDialogOpen:f,isDialogExternallyControlled:g,toggleDialog:m,topicFetchError:y,retryFetchingTopics:_,isLoadingTopics:E}=e;const[C,v]=o.useState(!1),[T,S]=o.useState(!1),O=()=>{g&&m?m():v(!1)},M=()=>S(!1);return o.createElement("form",null,!g&&n&&o.createElement(r.Stack,{"data-testid":"topic-selection",spacing:1},o.createElement(r.Typography,{variant:"label",component:"label",id:"other-contact-topic-selection"},l.default.t("otherContactRequest_topic")),o.createElement(r.Box,null,o.createElement(c.ButtonTonal,{onClick:()=>v(!0),dataTestId:"topic-button",dataLoading:!1,endIcon:o.createElement(i.default,{color:"primary"}),startIcon:(0,d.getTopicIcon)(n.id),ariaLabel:l.default.t("otherContactRequest_changeTopic_ariaLabelText",{topic:n.label}),disabled:h},n.label))),o.createElement(s.default,{isOpen:C||Boolean(g&&f),topics:t,onTopicSelect:e=>{if(e.id===(null==n?void 0:n.id))O();else{e.id===p.medicationTopicToConfirm?S(!0):(a(e),O())}},closeDialog:O,topicFetchError:y,retryFetchingTopics:_,isLoadingTopics:E}),o.createElement(u.default,{showMedicationTopicConfirmationAlert:T,handleMedicationTopicSelection:()=>{const e=t.find((e=>e.id===p.medicationTopicToConfirm));e&&(a(e),M(),O())},closeAlert:M,closeAllDialogs:()=>{M(),O()}}))}},84558:function(e,t,a){var n=a(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(38399),i=p(a(25602)),o=p(a(75388)),l=a(63232),c=n(a(21328)),s=n(a(4566)),d=n(a(20166)),u=a(49918);function p(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return(p=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o})(e,t)}t.default=e=>{let{retry:t,isLoading:a,titleKey:n,ariaLabelKey:p,descriptionKey:h,dataTestId:f}=e;return i.createElement(l.Card,{header:i.createElement(d.default,{headerText:o.t(n)}),footer:i.createElement(c.default,{actions:[{text:o.t("try-again"),type:"filled",onClick:t,ariaLabel:o.t(p),dataTestId:f,isLoading:a}]})},i.createElement(s.default,null,i.createElement(r.Typography,{dangerouslySetInnerHTML:(0,u.getDangerousHTML)(o.t(h))})))}},1929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.OtherContactPhaseId=void 0;t.OtherContactPhaseId=function(e){return e[e.WELCOME=1]="WELCOME",e[e.FILL_OTHER_CONTACT=2]="FILL_OTHER_CONTACT",e[e.FEEDBACK=3]="FEEDBACK",e}({})},81307:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=n(a(38646)),o=a(38399),l=n(a(8243)),c=n(a(51511)),s=n(a(33018)),d=n(a(69190)),u=n(a(58938)),p=n(a(99532)),h=n(a(78779)),f=a(39983),g=a(54175),m=a(83578),y=a(19620),_=a(49918),E=a(33514),C=a(19535),v=a(23139);const T=(0,C.styled)(o.Box)((e=>{let{theme:t}=e;return{backgroundColor:t.palette.grey.alabaster}})),S=(0,C.styled)(s.default)((e=>{let{theme:t}=e;return{color:t.palette.grey.doveGray}})),O=(0,C.styled)(d.default)((e=>{let{theme:t}=e;return{color:t.palette.grey.doveGray}})),M=(0,C.styled)(u.default)((e=>{let{theme:t}=e;return{color:t.palette.grey.doveGray}})),I=(0,C.styled)(p.default)((e=>{let{theme:t}=e;return{color:t.palette.grey.doveGray}}));t.default=e=>{let{featureFlags:t,language:a}=e;const[n,s]=r.useState(!1),[d,u]=r.useState(!1),p=(0,g.getFeedbackUrlFromFeatureFlag)(t),C=(0,v.getAdditionalInfoListItems)(p,a);return r.createElement(r.Fragment,null,r.createElement(T,null,r.createElement(h.default,null,r.createElement(f.GridSheet,null,r.createElement(f.GridRowMargin,{size:4}),r.createElement(f.GridRow,null,r.createElement(o.Grid,{size:{sm:4,md:6,lg:8}},r.createElement(o.Typography,{variant:"h2"},i.default.t("otherContactRequest_additionalInformation_title")),r.createElement(m.ListWithBorder,null,C.map(((e,t)=>r.createElement(y.ListItem,{key:e.id,text:i.default.t(e.textKey),externalUrl:e.url,endIcon:e.url?r.createElement(c.default,{color:"primary"}):r.createElement(l.default,null),showDivider:t<C.length-1,onClick:()=>{return"answeringInstructions"===(t=e.id)&&s(!0),void("howOtherContactWorks"===t&&u(!0));var t}})))))),r.createElement(f.GridRowMargin,{size:8})))),r.createElement(E.Dialog,{isOpen:n,titleText:i.default.t("otherContact_howToAnswer_title"),dataTestId:"other-contact-answering-instructions-dialog",isCancelable:!0,onClose:()=>s(!1),cancelButtonText:i.default.t("close"),cancelButtonAriaLabel:i.default.t("otherContact_howToAnswer_closeDialog_ariaLabelText"),isCancelableOnBackdropClick:!0},r.createElement(y.ListItem,{text:i.default.t("otherContact_howToAnswer_selectTopic_title"),secondaryText:i.default.t("otherContact_howToAnswer_selectTopic_description"),startIcon:r.createElement(S,null),isCompact:!0}),r.createElement(y.ListItem,{text:i.default.t("otherContact_howToAnswer_writeMessage_title"),secondaryText:i.default.t("otherContact_howToAnswer_writeMessage_description"),startIcon:r.createElement(O,null),isCompact:!0})),r.createElement(E.Dialog,{isOpen:d,titleText:i.default.t("otherContact_howDoesWork_title"),dataTestId:"other-contact-how-does-work-dialog",isCancelable:!0,onClose:()=>
1u(!1),cancelButtonText:i.default.t("close"),cancelButtonAriaLabel:i.default.t("otherContact_howDoesWork_closeDialog_ariaLabelText"),isCancelableOnBackdropClick:!0},r.createElement(o.Typography,{dangerouslySetInnerHTML:(0,_.getDangerousHTML)(i.default.t("otherContact_howDoesWork_topicSelection"))}),r.createElement(o.Typography,{dangerouslySetInnerHTML:(0,_.getDangerousHTML)(i.default.t("otherContact_howDoesWork_responseFromProfessional"))}),r.createElement(o.Typography,{component:"h3",variant:"subtitle2"},i.default.t("otherContact_howDoesWork_factors")),r.createElement(y.ListItem,{text:i.default.t("otherContact_howDoesWork_selectedMunicipality_title"),secondaryText:i.default.t("otherContact_howDoesWork_selectedMunicipality_description"),startIcon:r.createElement(M,null),isCompact:!0}),r.createElement(y.ListItem,{text:i.default.t("otherContact_howDoesWork_selectTopic_title"),secondaryText:i.default.t("otherContact_howDoesWork_selectTopic_description"),startIcon:r.createElement(S,null),isCompact:!0}),r.createElement(y.ListItem,{text:i.default.t("otherContact_howDoesWork_languageSupport_title"),secondaryText:i.default.t("otherContact_howDoesWork_languageSupport_description"),startIcon:r.createElement(I,null),isCompact:!0})))}},71558:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=n(a(38646)),l=a(6320),c=a(50189),s=a(19535),d=a(51027),u=a(49918),p=a(86136);const h=(0,s.styled)(i.Stack)((()=>({".MuiButton-root":{marginLeft:0,marginRight:"16px",marginBottom:"16px"}})));t.default=e=>{let{createdPlanId:t,returnToBeginning:a,completedDescription:n}=e;return r.createElement(i.Stack,{spacing:3},r.createElement(i.Box,{component:"img",src:"/static/visualizations/success2.svg","aria-hidden":!0,maxHeight:"250px"}),r.createElement(i.Typography,{"data-testid":"other-contact-feedback-completed-description",dangerouslySetInnerHTML:(0,u.getDangerousHTML)(n)}),r.createElement(i.Stack,{spacing:1},r.createElement(h,{direction:"row",sx:{flexWrap:"wrap"}},r.createElement(c.ButtonFilled,{to:l.paths.getMyPlansCareplan(t),ariaLabel:o.default.t("otherContact_feedback_toPlan_ariaLabelText"),dataTestId:"other-contact-feedback-to-plan"},o.default.t("continueToSummary")),r.createElement(d.ButtonOutlined,{to:l.paths.frontPage,ariaLabel:o.default.t("otherContact_feedback_toFrontPage_ariaLabelText"),dataTestId:"other-contact-feedback-to-front-page"},o.default.t("otherContact_feedback_toFrontPage"))),r.createElement(i.Stack,null,r.createElement(i.Typography,{mt:0,mb:0},o.default.t("otherContact_feedback_fillAnother_description")),r.createElement(i.Box,null,r.createElement(p.ButtonText,{onClick:a,ariaLabel:o.default.t("otherContactRequest_feedback_fillAnother_ariaLabelText"),dataTestId:"other-contact-feedback-fill-another",aligned:!0},o.default.t("otherContactRequest_feedback_fillAnother"))))))}},78640:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=n(a(38646)),o=n(a(85149)),l=a(27291),c=a(1929),s=a(54246),d=a(8174);const u=[{id:c.OtherContactPhaseId.WELCOME,ariaLabel:i.default.noop("otherContactRequest_phases_welcome_ariaLabelText"),dataTestId:"welcome"},{id:c.OtherContactPhaseId.FILL_OTHER_CONTACT,ariaLabel:i.default.noop("otherContactRequest_phases_fillOtherContactRequest_ariaLabelText"),dataTestId:"fillOtherContact"}];t.default=e=>{let{activePhase:t,previousPhase:a,selectPhaseAsActive:n}=e;const p=r.useRef(null),h=(0,d.useBlocker)((e=>{let{nextLocation:a,historyAction:n}=e;return t!==c.OtherContactPhaseId.WELCOME&&"POP"===n&&!a.hash&&(window.history.forward(),!0)}));r.useEffect((()=>{"blocked"===h.state&&n(c.OtherContactPhaseId.WELCOME)}),[h]),r.useEffect((()=>{var e;(a||t!==c.OtherContactPhaseId.WELCOME)&&(null===(e=p.current)||void 0===e||e.focus())}),[a,t]);const f=(0,s.getOtherContactPhaseStatuses)(t);return r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:-1,ref:p}),r.createElement(o.default,{dataTestId:"other-contact-phases"},u.map(((e,t)=>{const a=e.id,o=f[a].active,c=f[a].completed,s=`other-contact-phase-${e.dataTestId}${o?"-active":""}${c?"-completed":""}`;return r.createElement(l.StepperButton,{key:a,onClick:n,id:a,disabled:f[a].disabled,index:t+1,ariaLabel:i.default.t(e.ariaLabel),isActive:o,isCompleted:c,dataTestId:s})}))))}}
1,54246:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getOtherContactPhaseStatuses=void 0;var n=a(55500),r=a(1929);t.getOtherContactPhaseStatuses=e=>{switch(e){case r.OtherContactPhaseId.WELCOME:return{[r.OtherContactPhaseId.WELCOME]:n.activePhase,[r.OtherContactPhaseId.FILL_OTHER_CONTACT]:n.disabledPhase};case r.OtherContactPhaseId.FILL_OTHER_CONTACT:return{[r.OtherContactPhaseId.WELCOME]:n.completedPhase,[r.OtherContactPhaseId.FILL_OTHER_CONTACT]:n.activePhase};default:return{[r.OtherContactPhaseId.WELCOME]:n.completedPhase,[r.OtherContactPhaseId.FILL_OTHER_CONTACT]:n.completedPhase}}}},21121:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.OtherContactQuestionnaire=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(8174),o=a(38399),l=a(6320),c=a(1929),s=n(a(64093)),d=n(a(62670)),u=a(34921),p=a(7928),h=n(a(50858)),f=a(23139),g=n(a(95271)),m=a(82640),y=n(a(75388)),_=n(a(30057)),E=a(71585),C=a(81694),v=n(a(84558)),T=n(a(59754)),S=n(a(52723)),O=a(97577),M=n(a(1438)),I=n(a(27791)),b=a(34181);y.default.noop("otherContactRequest_retryServiceGuidanceFetchTitle"),y.default.noop("otherContactRequest_retryServiceGuidanceFetchText"),y.default.noop("otherContactRequest_retryServiceGuidanceFetchButtonAriaLabel");class P extends r.Component{state={isFetchingServiceGuidances:!1,serviceGuidances:[],errorWhenFetchingGuidances:!1,redirectToFrontPage:!1,isSendingOtherContact:!1,showSendingFailedDialog:!1,message:"",valueFromSessionStorage:"",isValidatingMessage:!1,errorWhenValidatingMessage:!1,validationState:{showNoMunicipalitySelectedError:!1,showNoMessageError:!1,showInvalidInputError:!1,showMessageLengthExceededError:!1,showAttachmentStateError:!1},showConsentDialog:!1,attachments:[],isLoadingAttachments:!1};componentDidMount(){this.init()}componentDidUpdate(e){const{selectedMunicipality:t,selectedTopic:a}=this.props,n=e.selectedMunicipality!==t,r=e.selectedTopic!==a;t&&(n||r)&&this.getServiceGuidances(t),this.state.validationState.showNoMunicipalitySelectedError&&t&&this.setState({validationState:{...this.state.validationState,showNoMunicipalitySelectedError:!1}})}init=()=>{const{selectedMunicipality:e}=this.props,t=(0,E.loadFromSessionStorage)(E.sessionStorageKeysClearedInOrganizationChange.otherContactMessage);t&&this.setState({message:t,valueFromSessionStorage:t}),e&&this.getServiceGuidances(e)};sendOtherContact=async e=>{const{changePhase:t,clearQueryParameters:a,setCreatedPlanResponse:n,language:r,selectedTopic:i,selectedMunicipality:o}=this.props,{attachments:l,message:s}=this.state;if(o&&s)try{this.setState({isSendingOtherContact:!0});const d=await(new u.OtherContactCommand).sendOtherContact({attachments:l,municipalityCode:o.code,category:i.id,message:s,language:(0,p.OdaLocaleToLanguage)(r),consentGiven:e});(0,E.removeFromSessionStorage)(E.sessionStorageKeysClearedInOrganizationChange.otherContactMessage),a(),t(c.OtherContactPhaseId.FEEDBACK),n(d),this.setState({showSendingFailedDialog:!1,isSendingOtherContact:!1})}catch(e){this.setState({showSendingFailedDialog:!0,isSendingOtherContact:!1})}};getServiceGuidances=async e=>{const{language:t,selectedTopic:a}=this.props;try{this.setState({isFetchingServiceGuidances:!0});const n=await(new u.OtherContactQuery).getServiceGuidances((0,p.OdaLocaleToLanguage)(t),a.id,e.code);this.setState({serviceGuidances:n,errorWhenFetchingGuidances:!1,isFetchingServiceGuidances:!1})}catch(e){this.setState({errorWhenFetchingGuidances:!0,isFetchingServiceGuidances:!1,serviceGuidances:[]})}};validateOtherContactMessage=async e=>{try{this.setState({isValidatingMessage:!0}),await(new u.OtherContactCommand).validateOtherContactMessage({message:e}),this.setState({isValidatingMessage:!1,validationState:{...this.state.validationState,showInvalidInputError:!1,showNoMessageError:!1,showMessageLengthExceededError:!1},errorWhenValidatingMessage:!1,showConsentDialog:!0})}catch(e){(0,C.isInvalidInputError)(e)?this.setState({isValidatingMessage:!1,validationState:{...this.state.validationState,showInvalidInputError:"HtmlInputNotAllowed"===e.message,showNo
1MessageError:"TextInputIsEmptyException"===e.message,showMessageLengthExceededError:"MessageLengthExceededException"===e.message}}):this.setState({errorWhenValidatingMessage:!0,isValidatingMessage:!1})}};handleTextInput=e=>{this.setState({message:e},(()=>{e.trim().length>0&&this.setState({validationState:{...this.state.validationState,showNoMessageError:!1}})})),(0,E.saveToSessionStorage)(E.sessionStorageKeysClearedInOrganizationChange.otherContactMessage,e)};onContinueClicked=()=>{const{selectedMunicipality:e,user:t}=this.props,{attachments:a,message:n,serviceGuidances:r}=this.state,i=(0,b.checkAttachmentsInErrorState)(a);this.setState({validationState:{...this.state.validationState,showNoMunicipalitySelectedError:!e,showAttachmentStateError:i}});const o=r.some((e=>"send_service_request"===e.type));e&&t.patientId&&o&&!i&&this.validateOtherContactMessage(n)};onReturnClicked=()=>{this.props.changePhase(c.OtherContactPhaseId.WELCOME),this.props.clearQueryParameters()};onConsentConfirm=()=>{this.sendOtherContact(!0)};onConsentReject=()=>{this.setState({showConsentDialog:!1})};onGoToFrontPageClicked=()=>{this.setState({redirectToFrontPage:!0})};closeSendingFailedDialog=()=>{this.setState({showSendingFailedDialog:!1,showConsentDialog:!1})};retryFetchingServiceGuidances=()=>{const{selectedMunicipality:e}=this.props;e&&this.getServiceGuidances(e)};updateAttachments=e=>{const{showAttachmentStateError:t}=this.state.validationState;if(this.setState({attachments:e}),t){const t=(0,b.checkAttachmentsInErrorState)(e);this.setState({validationState:{...this.state.validationState,showAttachmentStateError:t}})}};updateAttachmentBusyState=e=>{this.setState({isLoadingAttachments:e})};render(){const{language:e,municipalities:t,selectedMunicipality:a,isLoadingMunicipalities:n,errorWhenLoadingMunicipalities:c,featureFlags:u,onMunicipalitySelect:p,onTopicSelect:E,topics:C,selectedTopic:b,user:P,retryLoadingMunicipalities:L}=this.props,{errorWhenFetchingGuidances:w,showSendingFailedDialog:k,isFetchingServiceGuidances:A,isSendingOtherContact:x,isValidatingMessage:F,redirectToFrontPage:R,serviceGuidances:G,showConsentDialog:W,validationState:D,valueFromSessionStorage:j,isLoadingAttachments:B,message:H}=this.state,z=G.some((e=>"free_text"===e.type||"external_link"===e.type)),N=G.some((e=>"send_service_request"===e.type)),q=P.isAnonymous&&N,Q=(0,O.isAllowlisted)(O.features.attachmentsEnabled,u);if(R)return r.createElement(i.Navigate,{to:l.paths.frontPage,replace:!0});const K=(0,f.getQuestionnairePhaseButtons)(z,x,F,!q,this.onReturnClicked,this.onContinueClicked,this.onGoToFrontPageClicked,Boolean(w),B);return r.createElement(o.Stack,{spacing:5,"data-testid":"other-contact-questionnaire-"+(n?"loading":"loaded")},r.createElement(o.Stack,{spacing:2},r.createElement(d.default,{topics:C,onTopicSelect:E,selectedTopic:b,isFetchingServiceGuidances:A}),r.createElement(r.Fragment,null,r.createElement(s.default,{municipalities:t,selectedMunicipality:a,selectMunicipality:p,error:c,isLoading:n,retryFetching:L,isFetchingServiceGuidances:A}),r.createElement("div",{"aria-live":"polite"},D.showNoMunicipalitySelectedError&&r.createElement(m.Banner,{variant:"alert",dataTestId:"other-contact-banner-municipality-selection-missing"},y.default.t("otherContactRequest_municipalityMustBeSelected")))),w&&r.createElement(v.default,{retry:this.retryFetchingServiceGuidances,titleKey:"otherContactRequest_retryServiceGuidanceFetchTitle",descriptionKey:"otherContactRequest_retryServiceGuidanceFetchText",ariaLabelKey:"otherContactRequest_retryServiceGuidanceFetchButtonAriaLabel",isLoading:A,dataTestId:"other-contact-service-guidance-error"}),q&&!w&&r.createElement(g.default,{language:e}),N&&!w&&!q&&r.createElement(r.Fragment,null,r.createElement(M.default,{guidances:G}),r.createElement(_.default,{dataTestId:"other-contact-message-"+(""!=H?"ready":"missing"),onMessageChange:this.handleTextInput,initialValue:j,hasInvalidInputError:D.showInvalidInputError}),r.createElement("div",{"aria-live":"polite"},D.showNoMessageError&&r.createElement(m.Banner,{variant:"alert",dataTestId:"other-contact-banner-message-missing"},y.default.t("otherContactRequest_messageMustBeWritten")),D.showMessageLengthExceededError&&r.createElement(m.Banner,{variant:"alert",dataTestId:"other-contact-banner-message-too-long"},y.default.t("otherContactRequest_messageLengthExceeded"))),Q&&r.createElement(r.Fragment,null,r.createElement(o.Typography,{variant:"label"},y.default.t("otherContact_attachments_label")),r.createElement(I.default,{isDisabled:x,handleAttachmentsUpdate:this.updateAttachments,handleBusyState:this.updateAttachmentBusyState}),r.createElement("div",{"aria-live":"polite"},D.showAttachmentStateError&&r.createElement(m.Banner,{variant:"alert",dataTestId:"other-contact-banner-attachments-in-error"},y.default.t("otherContactRequest_attachmentsInErrorState"))))),z&&!w&&r.createElement(h.default,{guidances:G})),r.createElement(o.Stack,{direction:"row",spacing:2},K),r.createElement(S.default,{isOpen:W,onConfirm:this.onConsentConfirm,onReject:this.onConsentReject,contactInformationStepTitle:y.default.t("otherContactConsent_contactInformationStep_title"),consentStepTitle:y.default.t("otherContactConsent_consentStep_title"),cancelButtonAriaLabelText:y.default.t("otherContactConsent_cancelSendAndConfirm_ariaLabelText"),continueButtonAriaLabelText:y.default.t("otherContactConsent_saveContactInformationAndContinue_ariaLabelText"),continueTryAgainButtonAriaLabelText:y.default.t("otherContactConsent_saveContactInformationAndContinue_tryAgain_ariaLabelText"),confirmButtonAriaLabelText:y.default.t("otherContactConsent_sendAndConfirm_ariaLabelText"),consentText:y.default.t("otherContactConsent_consent"),dialogDataTestId:"otherContact-information-and-consent-dialog",isCreatingPlan:x,shouldResetOnClose:!0}),r.createElement(T.default,{isOpen:k,isSending:x,retrySending:this.onConsentConfirm,cancelSending:this.closeSendingFailedDialog}))}}t.OtherContactQuestionnaire=P}
1,4973:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connector=void 0;var n=a(55007),r=a(21121);const i=t.connector=(0,n.connect)((e=>({featureFlags:e.app.featureFlags})),null);t.default=i(r.OtherContactQuestionnaire)},17197:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=a(38399),o=a(34921),l=n(a(78779)),c=a(39983),s=n(a(17606)),d=n(a(78640)),u=n(a(52213)),p=a(1929),h=n(a(71558)),f=n(a(4973)),g=a(81694),m=a(83023),y=a(71585),_=a(23139),E=a(17683),C=n(a(4304)),v=n(a(81307));const T=(0,a(19535).styled)(i.Stack)((()=>({paddingBottom:"0 !important"}))),S="topicId",O="municipalityCode";class M extends r.Component{state=(()=>({activePhaseId:p.OtherContactPhaseId.WELCOME,previousPhaseId:void 0,isInitializing:!0,isLoadingTopics:!0,selectedTopic:void 0,topics:[],topicError:!1,errorWhenLoadingMunicipalities:!1,isLoadingMunicipalities:!1,municipalities:[],selectedMunicipality:void 0,feedbackDescription:void 0,createdPlanId:void 0}))();searchParameters=(()=>new URLSearchParams(this.props.location.search))();componentDidMount(){this.init()}componentDidUpdate(e,t){(""!==e.location.search&&""===this.props.location.search&&this.state.activePhaseId!==p.OtherContactPhaseId.FEEDBACK||t.activePhaseId!==p.OtherContactPhaseId.WELCOME&&this.state.activePhaseId===p.OtherContactPhaseId.WELCOME)&&this.onReturnToBeginning()}init=()=>{this.setState({isInitializing:!0});const{location:{search:e}}=this.props,t=(0,g.parseSearchQuery)(e);if(Object.entries(t).length>0){const e=t[S],a=t[O],n=[{key:S,value:e},{key:O,value:a}];this.updateQueryParameters(n),this.updateUrl()}this.fetchTopics().then((()=>{this.getMunicipalities().then((()=>{this.setState({isInitializing:!1})}))}))};updateQueryParameters=e=>{e.map((e=>{void 0!==e.value?this.searchParameters.has(e.key)?this.searchParameters.set(e.key,e.value):this.searchParameters.append(e.key,e.value):this.searchParameters.delete(e.key)}))};updateUrl=()=>{const{setSearchParams:e}=this.props;e(this.searchParameters.toString(),{replace:!0})};updateQuery=e=>{this.updateQueryParameters(e),this.updateUrl()};clearQueryParameters=()=>{const e=[{key:S,value:void 0},{key:O,value:void 0}];this.updateQuery(e)};getMunicipalities=async()=>{const{user:e}=this.props;try{this.setState({isLoadingMunicipalities:!0,errorWhenLoadingMunicipalities:!1});const t=await(new o.MunicipalityQuery).getMunicipalities();let a;if(e.patientId){const n=await(0,m.getPatientProfileDto)(e.patientId);n.preferredMunicipalityCode&&(a=(0,E.findSelectedMunicipality)(t,n.preferredMunicipalityCode))}const n=(0,y.loadFromSessionStorage)(y.sessionStorageKeysClearedInOrganizationChange.selectedMunicipality);n&&n.code&&(a=(0,E.findSelectedMunicipality)(t,n.code));const r=this.searchParameters.get(O);if(r){const e=(0,E.findSelectedMunicipality)(t,r);e&&(a=e)}this.setState({municipalities:t,selectedMunicipality:a,isLoadingMunicipalities:!1})}catch(e){this.setState({errorWhenLoadingMunicipalities:!0,isLoadingMunicipalities:!1})}};fetchTopics=async()=>{try{this.setState({isLoadingTopics:!0,topics:[]});const e=(await(new o.OtherContactQuery).getOtherContactCategories()).map((e=>({id:e.category,label:e.localizedNames[this.props.language]}))),t=(0,_.sortByTopicLabel)(e);let a,n=p.OtherContactPhaseId.WELCOME;if(e.length>0){const t=this.searchParameters.get(S);t&&(a=e.find((e=>e.id===t)),n=p.OtherContactPhaseId.FILL_OTHER_CONTACT)}this.setState({topics:t,topicError:!1,isLoadingTopics:!1,selectedTopic:a,activePhaseId:n})}catch(e){this.setState({topicError:!0,isLoadingTopics:!1})}};onTopicSelect=e=>{var t;const a=[{key:S,value:e.id},{key:O,value:null===(t=this.state.selectedMunicipality)||void 0===t?void 0:t.code}];this.setState({activePhaseId:p.OtherContactPhaseId.FILL_OTHER_CONTACT,selectedTopic:e}),this.updateQuery(a),window.scrollTo(0,0)};onMunicipalitySelect=async e=>{const{user:t}=this.props,a=(0,E.findSelectedMunicipality)(this.state.municipalities,e.code),n=[{key:O,value:null==a?void 0:a.code}];if(this.setState({selectedMunicipality:a}),this.updateQuery(n),a)if(t.patientId)try{await(new o.OdaPatientCommand).setPatientPreferredMunicipalityCode(t.patientId,{preferredMunicipalityCode:a.code})}catch(e){}else(0,y.saveToSessionStorage)(y.sessionStorageKeysClearedInOrganizationChange.selectedMunicipality,a)};changePhase=e=>{this.setState({previousPhaseId:this.state.activePhaseId}),e===p.OtherContactPhaseId.WELCOME?this.onReturnToBeginning():(this.setState({activePhaseId:e}),window.scrollTo(0,0))};onReturnToBeginning=()=>{this.setState({selectedTopic:void 0,activePhaseId:p.OtherContactPhaseId.WELCOME,feedbackDescription:void 0}),this.clearQueryParameters(),window.scrollTo(0,0)};setCreatedPlanResponse=e=>{const t=C.default.id(e.createdPlanId);this.setState({feedbackDescription:e.completedDescription,createdPlanId:t})};render(){const{language:e,user:t,featureFlags:a}=this.props,{activePhaseId:n,previousPhaseId:o,selectedTopic:g,isInitializing:m,topics:y,isLoadingTopics:_,topicError:E,municipalities:C,selectedMunicipality:S,isLoadingMunicipalities:O,errorWhenLoadingMunicipalities:M,feedbackDescription:I,createdPlanId:b}=this.state;if(m)return r.createElement(T,null,r.createElement(l.default,null,r.createElement(c.GridSheet,null,r.createElement(c.GridRow,null,r.createElement(i.Grid,{size:{xs:4,md:6,lg:8}},r.createElement(i.Stack,{spacing:2,mb:4},r.createElement(i.Skeleton,{variant:"text",sx:{fontSize:"3.5rem"}}),r.createElement(i.Box,null,r.createElement(i.Skeleton,{variant:"text"}),r.createElement(i.Skeleton,{variant:"text"}),r.createElement(i.Skeleton,{variant:"text"}),r.createElement(i.Skeleton,{variant:"text"}),r.createElement(i.Skeleton,{variant:"text"}),r.createElement(i.Skeleton,{variant:"text"}))))))));const P=void 0!==g;return r.createElement(T,null,r.createElement(l.default,null,r.createElement(c.GridSheet,null,r.createElement(c.GridRowMargin,{size:4}),n!==p.OtherContactPhaseId.FEEDBACK&&r.createElement(c.GridRow,null,r.createElement(i.Grid,{size:{xs:4,md:6,lg:8}},r.createElement(d.default,{activePhase:n,previousPhase:o,selectPhaseAsActive:this.changePhase}))),r.createElement(c.GridRow,null,r.createElement(i.Grid,{size:{xs:4,md:6,lg:8}},r.createElement(u.default,{activePhaseId:n,selectedTopic:g,isCompleted:n===p.OtherContactPhaseId.FEEDBACK}))),n===p.OtherContactPhaseId.WELCOME&&r.createElement(c.GridRow,null,r.createElement(i.Grid,{size:{xs:4,md:6,lg:8}},r.createElement(s.default,{topics:y,onTopicSelect:this.onTopicSelect,topicFetchError:E,retryFetchingTopics:this.fetchTopics,isLoadingTopics:_}))),n===p.OtherContactPhaseId.FILL_OTHER_CONTACT&&P&&r.createElement(c.GridRow,null,r.createElement(i.Grid,{size:{xs:4,md:6,lg:8}},r.createElement(f.default,{changePhase:this.changePhase,user:t,language:e,topics:y,onTopicSelect:this.onTopicSelect,selectedTopic:g,municipalities:C,selectedMunicipality:S,isLoadingMunicipalities:O,errorWhenLoadingMunicipalities:M,clearQueryParameters:this.clearQueryParameters,retryLoadingMunicipalities:this.getMunicipalities,onMunicipalitySelect:this.onMunicipalitySelect,setCreatedPlanResponse:this.setCreatedPlanResponse}))),n===p.OtherContactPhaseId.FEEDBACK&&r.createElement(c.GridRow,null,r.createElement(i.Grid,{size:{xs:4,md:6,lg:8}},r.createElement(h.default,{createdPlanId:b,returnToBeginning:this.onReturnToBeginning,completedDescription:I}))),r.createElement(c.GridRowMargin,{size:n===p.OtherContactPhaseId.WELCOME?3:12}))),n===p.OtherContactPhaseId.WELCOME&&r.createElement(v.default,{featureFlags:a,language:e}))}}t.default=M},83991:function(e,t,a){var n=a(24994);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(55007),i=a(37882),o=n(a(17197));t.default=(0,i.withRouter)((0,r.connect)((e=>({user:e.app.user,language:e.i18n.language,featureFlags:e.app.featureFlags})))(o.default))},23139:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.sortByTopicLabel=t.getTopicIcon=t.getQuestionnairePhaseButtons=t.getAdditionalInfoListItems=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=n(a(75388)),o=a(50189),l=a(51027),c=a(62958),s=n(a(76876)),d=n(a(46712)),u=n(a(87274)),p=n(a(58259)),h=n(a(80535)),f=n(a(47490)),g=n(a(81252)),m=n(a(12802)),y=n(a(1095)),_=n(a(51797)),E=n(a(45386)),C=n(a(13413)),v=n(a(73847));const T=e=>r.createElement(l.ButtonOutlined,{onClick:e,ariaLabel:i.default.t("otherContactRequest_button_return_ariaLabelText"),key:"return",dataTestId:"other-contact-return"},i.default.t("otherContactRequest_button_return"));t.getQuestionnairePhaseButtons=(e,t,a,n,l,c,s,d,u)=>{const p=[T(l)];if(n){if(e)return p.concat(r.createElement(o.ButtonFilled,{onClick:s,ariaLabel:i.default.t("otherContactRequest_button_ready_ariaLabelText"),key:"ready",dataTestId:"other-contact-ready"},i.default.t("otherContactRequest_button_ready")));const n=t||d||u;return p.concat(r.createElement(o.ButtonFilled,{onClick:c,ariaLabel:i.default.t("otherContactRequest_button_continue_ariaLabelText"),key:"continue",dataTestId:"other-contact-continue",loading:t||a,disabled:n},i.default.t("otherContactRequest_button_continue")))}return p};t.getTopicIcon=e=>{switch(e){case c.OtherContactCategory.CONTRACEPTION:return r.createElement(s.default,null);case c.OtherContactCategory.COPING_WITH_EVERYDAY_LIFE:return r.createElement(d.default,null);case c.OtherContactCategory.FAMILY_OR_CUSTODY_MATTER:return r.createElement(u.default,null);case c.OtherContactCategory.FINANCIAL_MATTER:return r.createElement(p.default,null);case c.OtherContactCategory.FINDING_EMPLOYMENT_OR_STUDY_PLACE:return r.createElement(h.default,null);case c.OtherContactCategory.HOUSING:return r.createElement(f.default,null);case c.OtherContactCategory.INTOXICANTS_OR_ADDICTION:return r.createElement(g.default,null);case c.OtherContactCategory.LONELINESS:return r.createElement(m.default,null);case c.OtherContactCategory.MEDICATION:return r.createElement(y.default,null);case c.OtherContactCategory.MENTAL_WELL_BEING:return r.createElement(_.default,null);case c.OtherContactCategory.OTHER_NON_URGENT_HEALTH_MATTER:return r.createElement(E.default,null);case c.OtherContactCategory.PREGNANCY_OR_CHILD_DEVELOPMENT:return r.createElement(C.default,null);case c.OtherContactCategory.VIOLENCE_OR_ABUSE:return r.createElement(v.default,null);default:return r.createElement(E.default,null)}};t.sortByTopicLabel=e=>{const t=c.OtherContactCategory.OTHER_NON_URGENT_HEALTH_MATTER,a=e.find((e=>e.id===t));let n=e;if(a){n=e.filter((e=>e.id!==t))}const r=n.sort(((e,t)=>e.label.toUpperCase()<t.label.toUpperCase()?-1:e.label.toUpperCase()>t.label.toUpperCase()?1:0));return a?[...r,a]:r};t.getAdditionalInfoListItems=(e,t)=>[{textKey:i.default.noop("otherContactRequest_additionalInformation_howToAnswer"),id:"answeringInstructions"},{textKey:i.default.noop("otherContactRequest_additionalInformation_howDoesContactRequestWork"),id:"howOtherContactWorks"},{textKey:i.default.noop("otherContactRequest_additionalInformation_giveFeedback"),id:"feedback",url:e[t]}]},17606:function(e,t,a){var n=a(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.medicationTopicToConfirm=t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),i=n(a(38646)),o=a(38399),l=a(50189),c=a(49918),s=a(62958),d=n(a(62670));t.medicationTopicToConfirm=s.OtherContactCategory.MEDICATION;t.default=e=>{let{topics:t,onTopicSelect:a,topicFetchError:n,retryFetchingTopics:s,isLoadingTopics:u}=e;const[p,h]=r.useState(!1);return r.createElement(r.Fragment,null,r.createElement(o.Stack,{spacing:4},r.createElement(o.Box,null,r.createElement(o.Typography,{dangerouslySetInnerHTML:(0,c.getDangerousHTML)(i.default.t("otherContactRequest_welcome_description"))}),r.createElement(o.Typography,null,i.default.t("otherContactRequest_welcome_keywords"))),r.createElement(o.Box,null,r.createElement(l.ButtonFilled,{onClick:()=>h(!0),ariaLabel:i.default.t("otherContactRequest_beginQuestionnaire_ariaLabelText"),dataTestId:"other-contact-begin-questionnaire"},i.default.t("otherContactRequest_beginQuestionnaire")))),r.createElement(d.default,{topics:t,onTopicSelect:a,isDialogOpen:p,isDialogExternallyControlled:!0,toggleDialog:()=>h(!1),topicFetchError:n,retryFetchingTopics:s,isLoadingTopics:u}))}}
1,83578:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ListWithoutBorder=t.ListWithBorder=void 0;var n=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:a){if(r.has(e))return r.get(e);r.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(o,t,i):o[t]=e[t]);return o}(e,t)}(a(25602)),r=a(38399),i=a(19535);const o=(0,i.styled)(r.List)((e=>{let{theme:t}=e;return{background:t.palette.white,border:`1px solid ${t.palette.grey.mystic}`,borderRadius:"16px",padding:"16px 0px"}}));t.ListWithBorder=e=>{let{children:t}=e;return n.createElement(o,null,t)};const l=(0,i.styled)(r.List)((e=>{let{theme:t}=e;return{background:t.palette.white,padding:"16px 0px"}}));t.ListWithoutBorder=e=>{let{children:t}=e;return n.createElement(l,null,t)}}}]); 2//# sourceMappingURL=chunk-CitizenServicesRoute-876-5d0e63aa733ecf9fceae.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.