PageSourceSearch

https://app.aarpdriversafety.org/assets/milestone-JHxtSubw.js

js aarpdriversafety.org collected 2026-09-24 19:45:27 UTC 1,829 bytes, 2 lines download raw bytes

1import{ag as p,y as s,dO as f,ce as h,dP as y,dQ as i,dR as g,dS as E,aq as I,dT as R,dU as b}from"./index-DW7v_Ckm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d9a2436-f044-4d32-a2ac-9ea9e0273a20",e._sentryDebugIdIdentifier="sentry-dbid-9d9a2436-f044-4d32-a2ac-9ea9e0273a20")}catch{}})();const m=e=>!!e.is?.purchaseRequired,A=(e,t)=>{const o=e.action??"",c=e.milestoneData??{},d=c.productList??[];if(o==="PURCHASE"){if(t==="EXAM")return s.dispatch(i("remotetest.purchase")),!0;const r=d.filter(m);return d.length>0&&d.length===r.length?(d.forEach(a=>{s.dispatch(g(a))}),s.dispatch(i("purchase.payment.flow",{flow:"timely"}))):s.dispatch(i("purchase")),!0}else if(o==="TIMELY"){const r=c.timelyProductId??"",a=c.timelyVariantId??"",n=d.find(u=>u._id===r),{upsellsShown:l}=s.getState().upsell;return n&&!n.is.purchased&&!l.includes(a)&&(s.dispatch({type:E,payload:{upsell:n}}),s.dispatch(I(a,n,"TIMELY"))),!1}else if(o==="PROFILER"){const r=e.blockingActionList??[];if(r.length){const a=R.find(n=>n.type===r[0].type);return a?(s.dispatch(i(a.clientRoute,{callingFromPosition:"DASHBOARD",layoutStyle:"fullscreen",stateId:b(a.type),blockerId:r[0]._id})),!0):(console.error("No blocker route mapped for type:",r[0].type),!1)}return!1}else if(o===""&&t==="EXAM")return s.dispatch(i("remotetest.ready")),!0;return!1},w=async e=>{try{const t=p(s.getState()),o=await f({progressId:t,from:e});return A(o,e)}catch(t){return h(t)?(s.dispatch({type:y,payload:{message:t.message}}),!0):(console.error("Milestone check failed:",t),!1)}};export{w as checkMilestoneAndHandle};
2//# sourceMappingURL=milestone-JHxtSubw.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.