PageSourceSearch

https://rxmanager.ai/assets/Start-BQ0shf2d.js

js rxmanager.ai collected 2026-10-05 12:33:55 UTC 9,692 bytes, 1 lines download raw bytes

1import{v as M,r as a,n as e,L as x,s as T}from"./index-Dj5YwE_8.js";import{R as _}from"./RegulatoryNote-BY1VvfHS.js";import{c as E}from"./intake-capture-qH6EhBZu.js";function P(r){return!r||r<=0?"":r<100?"Under 100":r<=500?"100–500":r<=1e3?"500–1,000":r<=5e3?"1,000–5,000":"5,000+"}function I(r){return r==="self_funded"?"self":r==="level_funded"?"level":r==="fully_insured"?"fully":""}const O=["Under 100","100–500","500–1,000","1,000–5,000","5,000+"],g=[{v:"self",label:"Self-funded",note:"You carry the claims risk."},{v:"level",label:"Level-funded",note:"Fixed monthly, with a true-up."},{v:"fully",label:"Fully insured",note:"The carrier carries the risk."},{v:"unsure",label:"Not sure yet",note:"We will help you find out."}],W=["CVS Caremark","Express Scripts","OptumRx","Navitus","Capital Rx","Other / in-house","Not sure"],Y=["January","February","March","April","May","June","July","August","September","October","November","December","Not sure"],$=["Lower our pharmacy spend","Renewal is coming up","Considering an RFP","Preparing for an audit","Fiduciary / compliance","Just exploring"],j=["Your organization","Funding model","Your PBM","What matters now","Your plan file"],u=j.length;function q(){const r=M(),[i,h]=a.useState(0),[n,o]=a.useState(()=>{try{const t=sessionStorage.getItem("rxm_claim_seed");if(t){const s=JSON.parse(t);if(s&&typeof s.employer=="string"&&s.employer)return{employer:s.employer,headcount:s.headcount||"",funding:s.funding||"",pbm:"",renewal:"",priorities:[],state:s.state,city:s.city,industry:s.industry,fromRecord:!!s.fromRecord}}}catch{}return{employer:"",headcount:"",funding:"",pbm:"",renewal:"",priorities:[]}});a.useEffect(()=>{try{sessionStorage.removeItem("rxm_claim_seed")}catch{}},[]);const[m,c]=a.useState([]),[N,f]=a.useState(!1),p=a.useRef(void 0),b=t=>{if(o(s=>({...s,employer:t,fromRecord:!1})),p.current&&window.clearTimeout(p.current),t.trim().length<2){c([]);return}p.current=window.setTimeout(async()=>{f(!0);try{const s=await T(t.trim());c((s.results||[]).slice(0,6))}catch{c([])}finally{f(!1)}},350)},w=t=>{const s=t;o(l=>({...l,employer:t.name,state:t.state||void 0,city:t.city||void 0,industry:t.industry||void 0,headcount:P(s.employee_count)||l.headcount,funding:I(s.funding_model)||l.funding,fromRecord:!0})),c([])},k=Math.round((i+1)/u*100),v=t=>o(s=>({...s,priorities:s.priorities.includes(t)?s.priorities.filter(l=>l!==t):[...s.priorities,t]})),S=()=>h(t=>Math.min(t+1,u-1)),C=()=>h(t=>Math.max(t-1,0)),F=()=>{try{sessionStorage.setItem("rxm_premiere_intake",JSON.stringify(n))}catch{}E({employer:n.employer,city:n.city,state:n.state,headcount:n.headcount,funding:n.funding,pbm:n.pbm,renewal:n.renewal,priorities:n.priorities,company_matched:!!n.fromRecord}),r("/premiere/plan")},y=a.useMemo(()=>n.funding==="self"||n.funding==="level"?"Good news: plans like yours control most of the pharmacy spend, which is exactly where the savings live.":n.funding==="fully"?"Fully insured plans have less direct control, but reading your contract still pays off at renewal.":n.funding==="unsure"?"No problem. Your readiness checklist will start with confirming how the plan is funded.":"",[n.funding]),d=a.useMemo(()=>[n.headcount,n.funding,n.pbm].filter(Boolean).length,[n.headcount,n.funding,n.pbm]),R=a.useMemo(()=>{var t;return[["Organization",n.employer||"Not set"],["Headcount",n.headcount||"Not set"],["Funding",((t=g.find(s=>s.v===n.funding))==null?void 0:t.label)||"Not set"],["PBM",n.pbm||"Not set"],["Renewal",n.renewal||"Not set"],["Focus",n.priorities.length?n.priorities.join(", "):"Not set"]]},[n]);return e.jsx("div",{className:"premiere",children:e.jsx("main",{className:"pr-intake",children:e.jsxs("div",{className:"pr-intake-shell",children:[e.jsxs("div",{className:"pr-intake-top",children:[e.jsx(x,{to:"/premiere",className:"pr-intake-exit","aria-label":"Back to site",children:"RxManager"}),e.jsxs("span",{className:"pr-intake-step",children:["Step ",i+1," of ",u," · ",j[i]]})]}),e.jsx("div",{className:"pr-intake-bar","aria-hidden":"true",children:e.jsx("i",{style:{width:`${k}%`}})}),e.jsxs("div",{className:"pr-intake-body",children:[i===0&&e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"Let’s build your plan file."}),e.jsx("p",{className:"pr-intake-lead",children:"Five quick questions, about a minute, and it is free. We will tailor everything that follows to your plan."}),e.jsxs("label",{className:"pr-field pr-field-search",children:[e.jsx("span",{children:"Employer or plan name"}),e.jsx("input",{type:"text",value:n.employer,onChange:t=>b(t.target.value),placeholder:"Start typing your company name",autoComplete:"off",autoFocus:!0}),N&&e.jsx("span",{className:"pr-search-hint",children:"Looking up your company…"}),m.length>0&&!n.fromRecord&&e.jsx("ul",{className:"pr-search-results",children:m.map(t=>e.jsx("li",{children:e.jsxs("button",{type:"button",onClick:()=>w(t),children:[e.jsx("span",{className:"pr-sr-name",children:t.name}),e.jsxs("span",{className:"pr-sr-meta",children:[[t.city,t.state].filter(
1Boolean).join(", "),t.industry?` · ${t.industry}`:""]})]})},`${t.name}-${t.city}`))}),n.fromRecord&&e.jsxs("span",{className:"pr-search-found",children:["We pre-filled a few details below",n.state?` for ${n.city?n.city+", ":""}${n.state}`:"",". Edit anything that looks off."]})]}),e.jsx("p",{className:"pr-field-label",children:"How many people does the plan cover?"}),e.jsx("div",{className:"pr-choices",children:O.map(t=>e.jsx("button",{type:"button",className:`pr-choice${n.headcount===t?" is-on":""}`,onClick:()=>o({...n,headcount:t}),children:t},t))}),e.jsxs("p",{className:"pr-tip",children:[e.jsx("span",{children:"Tip"}),"Start typing your company name and we fill in what we can, so you are not starting from a blank form."]})]}),i===1&&e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"How is your plan funded?"}),e.jsx("p",{className:"pr-intake-lead",children:"It decides how much of the pharmacy spend you actually control."}),e.jsx("div",{className:"pr-cards",children:g.map(t=>e.jsxs("button",{type:"button",className:`pr-card-opt${n.funding===t.v?" is-on":""}`,onClick:()=>o({...n,funding:t.v}),children:[e.jsx("span",{className:"pr-card-opt-label",children:t.label}),e.jsx("span",{className:"pr-card-opt-note",children:t.note})]},t.v))}),y&&e.jsx("p",{className:"pr-suggestion",children:y})]}),i===2&&e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"Who is your PBM?"}),e.jsx("p",{className:"pr-intake-lead",children:"We will line your contract up against the public record."}),e.jsx("div",{className:"pr-choices",children:W.map(t=>e.jsx("button",{type:"button",className:`pr-choice${n.pbm===t?" is-on":""}`,onClick:()=>o({...n,pbm:t}),children:t},t))}),e.jsxs("label",{className:"pr-field",style:{marginTop:"26px"},children:[e.jsx("span",{children:"When does your plan renew?"}),e.jsxs("select",{value:n.renewal,onChange:t=>o({...n,renewal:t.target.value}),children:[e.jsx("option",{value:"",children:"Select a month"}),Y.map(t=>e.jsx("option",{value:t,children:t},t))]})]}),e.jsxs("p",{className:"pr-tip",children:[e.jsx("span",{children:"Tip"}),"Most renewal leverage is won three to six months out. Your renewal month sets the clock."]})]}),i===3&&e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"What are you working on?"}),e.jsx("p",{className:"pr-intake-lead",children:"Pick any that apply. We tailor your checklist and first letters to it."}),e.jsx("div",{className:"pr-choices pr-choices-wrap",children:$.map(t=>e.jsx("button",{type:"button",className:`pr-choice${n.priorities.includes(t)?" is-on":""}`,onClick:()=>v(t),children:t},t))}),n.priorities.length>0&&e.jsxs("p",{className:"pr-suggestion",children:["We will put ",n.priorities.length===1?"that":"those"," at the top of your readiness checklist."]})]}),i===4&&e.jsxs(e.Fragment,{children:[d===3?e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"Your plan file is ready."}),e.jsx("p",{className:"pr-intake-lead",children:"See it in full next: your readiness, your tailored first moves, and what to ask before renewal. Creating your free account saves it and generates the letters."})]}):d>0?e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"Your plan file is started."}),e.jsxs("p",{className:"pr-intake-lead",children:["You have set ",d," of the 3 basics it is tailored from — the rest show as “Not set” below. Go back to add them (30 seconds, no company name needed), or continue and fill them in your workspace."]})]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{children:"This is an empty template so far."}),e.jsx("p",{className:"pr-intake-lead",children:"You skipped the questions, so there is nothing to tailor yet. Go back and set the three basics — plan size, funding, PBM; no company name needed — or continue and add them in your workspace."})]}),e.jsx("dl",{className:"pr-intake-summary",children:R.map(([t,s])=>e.jsxs("div",{children:[e.jsx("dt",{children:t}),e.jsx("dd",{children:s})]},t))}),e.jsxs("ul",{className:"pr-intake-get",children:[e.jsx("li",{children:"Readiness score and what is missing"}),e.jsx("li",{children:"Document-request letters, ready to send"}),e.jsx("li",{children:"A defensible record you own"})]}),e.jsx(_,{context:{priorities:n.priorities,funding:n.funding}})]})]},i),e.jsxs("div",{className:"pr-intake-nav",children:[i>0?e.jsx("button",{type:"button",className:"quiet-button",onClick:C,children:"Back"}):e.jsx(x,{className:"quiet-button",to:"/premiere",children:"Cancel"}),i<u-1?e.jsx("button",{type:"button",className:"gold-button",onClick:S,children:"Continue"}):e.jsx("button",{type:"button",className:"gold-button",onClick:F,children:d===0?"Continue with an empty template":"See my plan file"})]})]})})})}export{q as default};

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.