PageSourceSearch

https://my.ambetterhealth.com/s/persona-homepage-route/_next/static/chunks/pages/index-9518a21bfe74aac5.js

js ambetterhealth.com collected 2026-09-24 09:54:33 UTC 3,727 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{786:(e,o,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(53574)}])},53574:(e,o,n)=>{"use strict";n.r(o),n.d(o,{default:()=>x});var r=n(23798),l=n(21462),t=n(30278),i=n(98651),a=n(74378),s=n(41196);let c=function(){return(0,r.jsx)(s.so,{justifyContent:"center",p:6,children:(0,r.jsx)(s.PB,{})})},u=function(e){let{brandConfig:o,platformConfig:n,isLoading:l}=e;if(!l){var t;let e=(null==o||null==(t=o.plan)?void 0:t.publicUrl)||(null==n?void 0:n.urls.pageNotFound)||"/s/error/404";window.location.replace(e)}return(0,r.jsx)(c,{})},p=function(e){let{brandConfig:o,isLoadingBrandConfig:n}=(0,a.X)(),{platformConfig:l,isFetchingPlatformConfig:t}=(0,i.n)();return(0,r.jsx)(u,{...e,brandConfig:o,platformConfig:l,isLoading:n||t})};var d=n(71649),f=n(3878);let w=function(){let{attemptProfileSelection:e}=(0,t.xc)(),{data:o,isError:n}=(0,f.I)({queryKey:["persona-homepage-route","attempt-profile-selection"],queryFn:e});return{attemptProfileSelectionSuccess:o,isErrorAttemptProfileSelection:n}},m=function(e){let{enabled:o}=e,{getProfiles:n}=(0,t.xc)(),{data:r,isError:l}=(0,f.I)({queryKey:["persona-homepage-route","get-profiles"],queryFn:n,enabled:o});return{profiles:r,isErrorGetProfiles:l}};function g(e,o){if(e&&o){let n=e.urls.homePages,r=e.urls.pageNotFound;o.persona&&n[o.persona]?window.location.replace(n[o.persona]):window.location.replace(r)}}let h=function(){let{attemptProfileSelectionSuccess:e,isErrorAttemptProfileSelection:o}=w(),{isFetchingUserPolicy:n,isErrorUserPolicy:r,policy:a}=(0,d.dq)(void 0,{enabled:void 0!==e}),{platformConfig:s,isFetchingPlatformConfig:c,isErrorPlatformConfig:u}=(0,i.n)(),{data:p,isFetchingOrganization:f}=(0,t.Nj)(),h=n||c||f,{profiles:y,isErrorGetProfiles:j}=m({enabled:!0}),P=null==s?void 0:s.webPlanId,v=(0,l.useMemo)(()=>!!y&&!!P&&y.filter(e=>{let{webPlanId:o,profileSource:n,profileType:r}=e;return(Array.isArray(P)?P:[P]).map(String).includes(String(o))&&"legacy"===n&&"member"===r}).length>0,[y,P]),b=r||u||o||j;(0,l.useEffect)(()=>{if(!h){if(b&&s){let e=s.urls.internalServerError;window.location.replace(e)}if(!1===e){if(v){if(s){let e=s.urls.homePages,o=s.urls.pageNotFound;e.member?window.location.replace(e.member):window.location.replace(o)}}else if(s){let e=s.urls.noMemberProfiles,o=s.urls.pageNotFound,n=s.urls.homePages;if(a&&("employee"===a.persona&&n.employee||"provider"===a.persona&&n.provider))if(n.employee){let e=n.employee;window.location.replace(e)}else if(n.provider){let e=n.provider;window.location.replace(e)}else window.location.replace(o);else e?window.location.search?window.location.replace("".concat(e).concat(window.location.search)):window.location.replace(e):window.location.replace(o)}}else if(a){var o;let e=null!=(o=a.persona)?o:"";if(p&&"object"==typeof p&&"homePageURLs"in p&&p.homePageURLs&&"object"==typeof p.homePageURLs&&e){let o=p.homePageURLs[e];o&&""!==o.trim()?window.location.replace(o):g(s,a)}else g(s,a)}}},[e,b,h,s,a,v,y,p])},y=function(){return(0,r.jsx)(c,{})},j=function(){return h(),(0,r.jsx)(y,{})};var P=n(5575);let v=function(e){let{children:o,isLoading:n,analyticsProviderProps:l}=e;return n?(0,r.jsx)(c,{}):(0,r.jsx)(P.yP,{...l,children:o})},b=function(e){let{isInitializingAuth:o}=(0,t.As)(),{accessToken:n}=(0,t.nM)();return(0,r.jsx)(v,{...e,isLoading:o,analyticsProviderProps:{accessToken:n}})},x=function(){let{platformConfig:e,isErrorPlatformConfig:o,isFetchingPlatformConfig:n}=(0,i.n)();return n?(0,r.jsx)(c,{}):!o&&e&&e.featureFlags.auth.personaHomepageRoute?(0,r.jsx)(b,{children:(0,r.jsx)(t.vW,{tokenType:"identity",children:(0,r.jsx)(j,{})})}):(0,r.jsx)(p,{})}}},e=>{e.O(0,[329,585,636,593,792],()=>e(e.s=786)),_N_E=e.O()}]);

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.