PageSourceSearch

https://www.blinkhealth.com/_next/static/chunks/pages/checkout/verify-rx-0c450cadd0ba01cb.js

js blinkhealth.com collected 2026-09-25 15:22:15 UTC 23,332 bytes, 1 lines download raw bytes

1(self.webpackChunkhost=self.webpackChunkhost||[]).push([[3333],{30176:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/verify-rx",function(){return t(66925)}])},53930:function(e,i,t){"use strict";var s=t(68081),n=t(83205),l=t.n(n),r=t(28435),a=t(33854),o=t(75975),c=t(18665),d=t(59399),m=t(14633),u=t(9253),h=t(3729),p=t(43024),x=t.n(p);i.Z=e=>{let{name:i,placeholder:t,className:p,style:v,options:y=[],value:f,error:b,disabled:g=!1,onChange:j,user1stId:k}=e,[C,N]=(0,n.useState)(!1),Z=(0,n.useRef)(null),I=y.find(e=>String(e.value)===String(f)),S=C?t:I?I.label:t,onOptionsSwitch=()=>{g||N(!C)},onOptionClick=e=>{j({name:i,value:e.value}),N(!1)};return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)(m.Z,{onClick:()=>N(!1),style:{zIndex:999},visible:C}),(0,s.jsxs)("div",{ref:Z,id:"select-".concat(i),"data-user1st-id":k,tabIndex:0,role:"button",className:(0,c.Z)(x().wrapper,p),style:{...v,zIndex:C?999:"auto"},onClick:onOptionsSwitch,onKeyDown:(0,d.Z)(onOptionsSwitch),onBlur:e=>{Z.current&&Z.current.contains(e.relatedTarget)||N(!1)},children:[(0,s.jsx)(h.Z,{as:"div",name:i,placeholder:S,icon:r.default,iconAlignment:"right",iconProps:{style:{zIndex:20,pointerEvents:"none",transition:"transform 250ms ease",transform:C?"rotate(180deg)":"rotate(0deg)"}},inputStyle:{zIndex:10,borderRadius:C?"4px 4px 0px 0px":"4px",cursor:"pointer"},error:b,disabled:g}),C&&(0,s.jsx)("ul",{className:x().options,children:y.map(e=>!1!==e.visible&&(0,s.jsx)(u.Z,{id:"option-".concat(e.label),el:"li",type:"body2-blinkui",className:x().option,onMouseDown:()=>onOptionClick(e),children:(0,s.jsxs)("div",{className:"d-sm-flex justify-content-sm-between align-items-center",children:[e.label,I&&e.value===I.value&&(0,s.jsx)(a.default,{color:o.I.success100})]})},e.value))})]})]})}},35621:function(e,i,t){"use strict";t.d(i,{Z:function(){return checkout_screen}});var s=t(68081),n=t(83205),l=t.n(n),r=t(2664),a=t(21801),o=t(72988),c=t(74923),d=t(43152),m=t.n(d),u=t(9253),h=t(75975),p=t(18665),step_header=e=>{let{title:i,description:t,banner:n,className:r}=e,a=!!t;return(0,s.jsxs)(l().Fragment,{children:[n&&(0,s.jsx)("div",{className:"".concat(n.className?n.className:"px-sm-20"," px-md-0 mt-sm-n24 mt-md-0"),children:(0,s.jsxs)("div",{className:"d-sm-flex justify-content-sm-start align-items-sm-center p-sm-24 mb-sm-24",style:{background:h.I.link10},"data-user1st-id":"cf-banner-desc",children:[(0,s.jsx)(m(),{style:{backgroundColor:h.I.white100,borderRadius:30,width:60,height:60,padding:10},src:n.image,alt:n.title}),(0,s.jsxs)("div",{className:"ml-sm-24 pl-sm-4 d-sm-flex flex-sm-column",children:[(0,s.jsx)(u.Z,{type:"title3-blinkui",children:n.title}),n.description&&(0,s.jsx)(u.Z,{type:"body2-blinkui",style:{textTransform:"capitalize"},children:n.description})]})]})}),(0,s.jsxs)("div",{className:(0,p.Z)(r,"px-sm-20 px-md-0"),"data-user1st-id":"cf-step-title",children:[(0,s.jsx)(u.Z,{className:(0,p.Z)({"mb-sm-8":a,"mb-sm-24":!a}),el:"h1",type:"title3-blinkui",children:i}),t&&(0,s.jsx)(u.Z,{className:"mb-sm-24",el:"p",type:"body2-blinkui",children:t})]})]})},x=t(59711);let v=0;var step_header_progress_bar=e=>{let{className:i}=e,{step:t,totalSteps:l}=(0,x.Z)(),[r,a]=(0,n.useState)(v);return(0,n.useEffect)(()=>{let e=t/l*100;return a(e),()=>{v=e}},[]),(0,s.jsx)("div",{className:(0,p.Z)(i,"px-sm-20 px-md-0"),"data-user1st-id":"cf-progress-bar",children:(0,s.jsx)("div",{className:"mb-sm-24",style:{height:8,width:"auto",backgroundColor:h.I.link10,borderRadius:4},children:(0,s.jsx)("div",{style:{width:"".concat(r,"%"),borderRadius:4,backgroundColor:h.I.link100,transition:"width 200ms",height:"100%"}})})})},y=t(86425),f=t(81141),b=t(59362),g=t(15625),j=t(27173),k=t(56623),checkout_screen=e=>{let{pageName:i,headerTitle:t,headerDescription:n,headerBanner:l,withProgressBar:d=!0,withCart:m=!0,loading:u,children:h}=e,p=(0,r.v9)(c.tq),x=(0,o.Z)();return((0,a.Z)({enabled:m,loading:u}),u)?(0,s.jsx)(g.Z,{}):(0,s.jsxs)(j.ZP,{pageName:i,pageCategory:"Checkout-V2",headerType:"lock",children:[(0,s.jsx)("div",{className:"container px-sm-0 px-md-60 px-lg-120 py-sm-24 py-md-36 py-lg-48",children:(0,s.jsxs)("div",{className:"row d-sm-flex justify-content-sm-center","data-user1st-id":"checkout-screen",children:[(0,s.jsxs)("div",{className:"col-sm-12 col-md-7 col
1-lg-6",children:[d&&(0,s.jsx)(step_header_progress_bar,{}),(0,s.jsxs)(y.Z,{animation:"slideInRight",children:[!!(t||n)&&(0,s.jsx)(step_header,{title:t,description:n,banner:l}),h]})]}),m&&!p?(0,s.jsx)("div",{className:"d-sm-none d-md-block col-md-5 col-lg-4",children:(0,s.jsx)(k.Z,{editable:!x})}):null]})}),(0,s.jsx)(b.Z,{}),(0,s.jsx)(f.Z,{theme:"secure"})]})}},11027:function(e,i,t){"use strict";var s=t(2664);i.Z=e=>(0,s.v9)(i=>i.header.loadingPath.includes(e))},30750:function(e,i,t){"use strict";t.d(i,{a:function(){return TelemedRestrictionsModal}});var s=t(68081),n=t(83205);t(86425);var l=t(33403);t(81141);var r=t(51387);t(27173);var a=t(70355),o=t(9253),c=t(75975),d=t(3741),m=t(18665),u=t(79074);let h=["Online provider visits are provided by independent licensed physicians from our third-party partner, Broadway Provider Group, P.A., and Blink assumes no responsibility for this service.","Telemedicine services are not intended for use during an emergency. If this is an emergency, seek immediate in-person medical attention or call 911.","Prescriptions are subject to provider’s independent medical judgment. You may not be prescribed a medication. Medications cannot be delivered to you without a valid prescription."];function RestrictionSection(e,i){let{maxAge:t,minAge:n,eligibleStates:l,maleEligible:r,femaleEligible:a,consultationType:c}=e,d=99===t?"".concat(n," and over"):"between the ages of ".concat(n," and ").concat(t),h=u.$7.filter(e=>l.includes(e.value)).map(e=>e.label).join(", ");return(0,s.jsxs)("div",{className:(0,m.Z)({"mt-sm-12":i>0}),children:[(0,s.jsx)(o.Z,{type:"title4-blinkui",el:"div",children:c}),(0,s.jsxs)(o.Z,{type:"body2-blinkui",el:"div",children:["Online provider visits for ",c.toLowerCase()," are available for ",r&&a&&"men and women"||r&&"men"||a&&"female"," ",d," in the following states: ",h,"."]})]},c)}function TelemedRestrictions(){let[e,i]=(0,n.useState)([]),[t,l]=(0,n.useState)(!1),[u,p]=(0,n.useState)("");return(0,n.useEffect)(()=>
1{l(!0),d.Yw.get("/v2/telemed/eligibility/requirements").then(e=>e.data).then(e=>e.result).then(e=>{l(!1),p(""),i(e)}).catch(e=>{l(!1),p(null==e?void 0:e.message)})},[]),(0,s.jsxs)(r.$,{background:c.I.white100,children:[(0,s.jsx)(o.Z,{className:"mb-sm-12",type:"title4-blinkui",el:"div",children:"Telemedicine Restrictions"}),(0,s.jsx)("div",{className:"mb-sm-12",children:h.map((e,i)=>(0,s.jsxs)(o.Z,{type:"body2-blinkui",el:"div",className:(0,m.Z)({"mt-sm-8":i>0}),children:[i+1,". ",e]},"telemed-terms-".concat(i)))}),t?(0,s.jsx)("div",{className:"d-sm-flex justify-content-sm-center",children:(0,s.jsx)(a.Z,{size:36,strokeWidth:3})}):e.map(RestrictionSection),u&&(0,s.jsx)(o.Z,{el:"p",type:"body3-blinkui",className:"mt-sm-24",style:{color:c.I.alert100},children:u})]})}function TelemedRestrictionsModal(){return(0,s.jsx)(l.Z,{name:"telemed-restrictions",dismissible:!0,children:(0,s.jsx)(TelemedRestrictions,{})})}},66925:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return verify_rx}});var s=t(68081),n=t(6041),l=t(11594),r=t(83205),a=t.n(r),o=t(2664),c=t(66786),d=t(43182),m=t(33403),u=t(35621),h=t(9253),p=t(39812),x=t(59711),v=t(11027),y=t(26452),f=t(74923),b=t(69698),g=t(45793),j=t(17698),k=t(30750),C=t(25842),N=t(25042),prescription_confirmation_form=e=>{let{medNameId:i,checked:t,onChange:l}=e;return(0,s.jsxs)("form",{onChange:l,onSubmit:e=>e.preventDefault(),autoComplete:"off","data-user1st-id":"cf-pres-confirm-form",children:[(0,s.jsx)(N.Z,{name:"prescriptionConfirmation-".concat(i),value:"yes",checked:!0===t,className:"mb-sm-16",children:(0,s.jsx)(h.Z,{type:"body2-blinkui",children:n._f?"Yes, I have":"Yes, I already have"})}),(0,s.jsx)(N.Z,{name:"prescriptionConfirmation-".concat(i),value:"no",checked:!1===t,children:(0,s.jsx)(h.Z,{type:"body2-blinkui",children:n._f?"No, I have not":"No, not yet"})})]})},Z=t(33854),I=t(64591),S=t(64696),_=t(53930),w=t(27812),E=t(70355),P=t(95757),R=t(75975),T=t(79074);let M='We will not mail you medication unless we get a prescription from your doctor. When you receive a prescription from your doctor, tell them your pharmacy is "Blink Pharmacy U.S. (314) 356-2943".';var prescription_confirmation_telemed=e=>{let{consultChecked:i,id:t,isTelemedEligible:n,hasEligibleAccount:l,hasEligibleStateCode:r,onChangeConsultCheckbox:d,onChangeStateCode:m,name:u,medId:x,medNameId:v,singleItem:y,stateCode:j,isRemoving:k,onRemove:C}=e,N=(0,o.I0)(),B=(0,P.Z)(),O=(0,o.v9)(f.nI),F=null==r&&j,A=n&&p.EO,onClickLearnMore=e=>{e.preventDefault(),N((0,b.h7)("telemed-restrictions"))};return(0,s.jsxs)("div",{className:"mt-sm-16",children:[A&&l&&(0,s.jsxs)("div",{"data-user1st-id":"cf-pres-confirm-telemed",children:[(0,s.jsx)(h.Z,{className:"mb-sm-8",el:"div",type:"title4-blinkui",children:"Get prescribed after checkout"}),(0,s.jsxs)(h.Z,{className:"mb-sm-16",el:"div",type:"body2-blinkui",children:["If you don’t have an Rx, an online medical consultation may be available for $",g.YZ,"."]}),(0,s.jsx)(h.Z,{className:"mb-sm-8",el:"div",type:"headline-blinkui",children:"Choose your current state to check eligibility"}),(0,s.jsxs)("div",{className:"d-sm-flex align-items-sm-center mb-sm-16","data-user1st-id":"cf-state-eligibility",children:[(0,s.jsx)(_.Z,{name:"state",options:T.$7,placeholder:"Select State",value:j,className:"d-sm-inline-block",style:{width:O?"180px":"100%"},onChange:e=>{let{value:i}=e;return m(v,x,i)},user1stId:"select-current-state"}),(0,s.jsx)("div",{className:"d-sm-inline-flex ml-sm-n60",style:{zIndex:999},children:F?(0,s.jsx)(E.Z,{size:24}):!0===r?(0,s.jsx)(Z.default,{color:R.I.success100}):!1===r?(0,s.jsx)(I.default,{color:R.I.alert100}):null})]}),r&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsxs)(h.Z,{className:"mt-sm-16",el:"div",type:"body2-blinkui",user1stId:"cf-state-eligiblity-success",children:["You are eligible for an online provider's visit. If appropriate, you may receive a prescription after answering a few medical questions reviewed by a licensed provider."," "]}),(0,s.jsx)(c.Z,{qa:"more-info",type:"link",className:"d-sm-block mt-sm-8 mb-sm-16",eventName:"get more info",onClick:onCl
1ickLearnMore,text:"More info and availability"}),(0,s.jsx)(S.Z,{name:"consult-checkbox-".concat(v),checked:i,onChange:e=>d(v,e.target.checked),controlled:!0,children:"Include ".concat(p.DO?"$10.00":"$5.00"," online provider visit. Necessary to get a prescription for ").concat(u)})]}),!1===r&&(0,s.jsxs)("div",{className:"mb-sm-16","data-user1st-id":"cf-state-eligibility-error",children:[(0,s.jsx)(h.Z,{color:R.I.alert100,el:"div",type:"body2-blinkui",children:"Sorry, you are not eligible for an online provider's visit. This service is only available in certain states."}),(0,s.jsx)(c.Z,{qa:"more-info",type:"link",className:"d-sm-block mt-sm-8",eventName:"get more info",onClick:onClickLearnMore,text:"More info and availability"})]})]}),A&&!1===l&&(0,s.jsxs)("div",{"data-user1st-id":"cf-need-valid-pres",children:[(0,s.jsxs)(h.Z,{el:"div",color:R.I.alert100,type:"body2-blinkui",children:["To use Blink, you need a valid prescription from your doctor. Based on the information you provided, an online provider’s visit is not available right now."," ",(0,s.jsx)(c.Z,{type:"link",eventName:"get more info",onClick:onClickLearnMore,text:"More info on eligibility."})]}),B&&(0,s.jsx)(h.Z,{className:"mt-sm-16",el:"div",type:"body2-blinkui",style:{color:R.I.alert100},isPii:!1,user1stId:"cf-no-script-error-delivery",children:M})]}),!F&&(!n||j&&!r)&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsxs)(w.kW,{children:[(0,s.jsx)(h.Z,{el:"div",type:"body2-blinkui",style:{color:R.I.alert100},isPii:!1,user1stId:"cf-not-eligible-pickup",children:"To use Blink, you need a valid prescription from your doctor. Blink does not currently prescribe this medication."}),B&&(0,s.jsx)(h.Z,{className:"mt-sm-16",el:"div",type:"body2-blinkui",style:{color:R.I.alert100},isPii:!1,user1stId:"cf-not-eligible-delivery",children:M})]}),!y&&(0,s.jsx)("div",{className:"mt-sm-16","data-user1st-id":"cf-remove-item",children:k?(0,s.jsx)(E.Z,{}):(0,s.jsxs)(h.Z,{type:"body2-blinkui",children:["To continue,"," ",(0,s.jsx)(c.Z,{type:"link",eventName:"remove med",onClick:C(t),text:"remove ".concat(u),user1stId:"remove-med-".concat(u)})]})})]})]})},prescription_confirmation_items=e=>{let{cartItems:i,isSeamlessRefills:t,consult:n,onConsultChange:l,selections:c,onSelectionChange:d,eligibility:m,onEligibilityChange:u}=e,x=(0,o.I0)(),v=(0,o.v9)(e=>{var i;return null==e?void 0:null===(i=e.telemed)||void 0===i?void 0:i.selectedFunnelSource}),[f,b]=(0,r.useState)({}),[j,k]=(0,r.useState)([]),N=v&&"cold-sores"===v.telemedCondition,hasEligibleStateCode=e=>m[e]&&m[e].hasEligibleStateCode,hasEligibleAccount=e=>m[e]&&m[e].hasEligibleAccount,onChangeRadioButton=e=>i=>{i.persist(),d(e,"yes"===i.target.value)},onChangeStateCode=(e,i,t)=>{b(i=>({...i,[e]:t})),u(e,"state",null),x((0,C.Ey)(t)),x((0,g.Nt)(e,i,t)).then(()=>{u(e,"state",!0),l(e,!0)}).catch(()=>{u(e,"state",!1),l(e,!1)})},onRemove=e=>()=>{k(i=>[...i,e]),x((0,y.cl)(e)).then(()=>{k(i=>i.filter(i=>i!==e))})};return(0,s.jsx)(a().Fragment,{children:i.map((e,r)=>{let{id:a,name:o,medNameId:d,medId:m,isTelemedEligible:u}=e;return(0,s.jsxs)("div",{className:r>0?"mt-sm-24":null,"data-user1st-id":"cf-pres-confirm-".concat(d),children:[1!==i.length&&!t&&(0,s.jsxs)(h.Z,{className:"mb-sm-20",el:"div",type:"headline-blinkui",isPii:!1,children:[r+1,". ",o]}),t&&(0,s.jsxs)(h.Z,{className:"mb-sm-20",el:"div",type:"headline-blinkui",isPii:!1,children:["Have you been prescribed ",o," yet?"]}),!N&&(0,s.jsx)(prescription_confirmation_form,{medNameId:d,checked:c[d],onChange:onChangeRadioButton(d)}),!1===c[d]&&(0,s.jsx)(prescription_confirmation_telemed,{consultChecked:n[d],id:a,isTelemedEligible:u&&p.EO,hasEligibleAccount:hasEligibleAccount(d),hasEligibleStateCode:hasEligibleStateCode(d),onChangeConsultCheckbox:l,onChangeStateCode:onChangeStateCode,name:o,medId:m,medNameId:d,stateCode:f[d],singleItem:1===i.length,isRemoving:j.includes(a),onRemove:onRemove})]},d)})})},prescription_list=e=>{let{cartItems:i}=e,t=i.filter(e=>e.prescription&&e.prescription.hasCloudPharmacyPrescription).map(e=>e.slug),n={textTransform:"capitalize"};return 0===t.length?null:(0,s.jsxs)(h.Z,{el:"div",type:"title2-blinkui",className:"mb-sm-20",children:["We have your prescription for"," ",1===t.length?(0,s.jsx)("span",{style:n,children:t[0]}):(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("span",{style:n,children:t.slice(0,-1).join(", ")})," and"," ",(0,s.jsx)("span",{style:n,children:t.slice(-1).join("")})]}),"."]})},prescription_confirmation=e=>{let{cartItems:i,consult:t,isSeamlessRefills:n,onConsultChange:l,selections:r,onSelectionChange:o,eligibility:c,onEligibilityChange:d}=e;return(0,s.jsxs)(a().Fragment,{children:[n&&(0,s.jsx)(prescription_list,{c
1artItems:i}),(0,s.jsx)(prescription_confirmation_items,{cartItems:i,isSeamlessRefills:n,consult:t,onConsultChange:l,selections:r,onSelectionChange:o,eligibility:c,onEligibilityChange:d})]})},B=t(85070),telemed_formulation_option=e=>{let{idx:i,formPrice:t}=e,{formattedName:n,formattedDescription:l,priceDisplayValue:r,defaultFormulation:a}=t;return(0,s.jsx)("div",{className:"d-sm-inline-flex justify-content-sm-between",style:O,"data-user1st-id":"formulation-option",children:(0,s.jsx)(N.Z,{name:"formulation",value:i,defaultChecked:a,children:(0,s.jsxs)("div",{style:{borderBottom:"1px solid ".concat(R.I.tertiary20)},children:[(0,s.jsx)("div",{className:"mb-sm-16",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(h.Z,{className:"mb-sm-4",el:"h3",type:"title4-blinkui",children:n}),a&&(0,s.jsx)(h.Z,{el:"div",type:"body2-blinkui",children:"most popular"}),(0,s.jsx)(h.Z,{className:"m-sm-0",el:"div",type:"body1-blinkui",children:l})]})}),(0,s.jsx)(h.Z,{el:"div",className:"ml-sm-12",type:"title4-blinkui",children:r})]})})})};let O={background:R.I.tertiary10,border:"1px solid ".concat(R.I.tertiary20),borderRadius:3,padding:"18px 18px 0",marginBottom:15,width:"100%"};var telemed_formulation_modal=e=>{let{loading:i,name:t,updateCartFormulation:n,ineligibleCartItem:l}=e,a=(0,o.v9)(f.tq),[d,u]=(0,r.useState)(0),{currentCartItem:p,eligibleFormPrices:x}=l,{slug:v,formulation:y,price:b}=p;return(0,s.jsx)(m.Z,{name:t,dismissible:!0,children:(0,s.jsxs)("section",{className:"pt-sm-0","data-user1st-id":"cf-telemed-form-modal",children:[(0,s.jsx)(h.Z,{el:"div",type:"title1-blinkui",isPii:!1,children:"Please update quantity and dosage"}),(0,s.jsx)(h.Z,{className:"mt-sm-8",el:"div",type:"body2-blinkui",children:"The option you selected is not available for online provider's visits"}),(0,s.jsx)(h.Z,{className:"mt-sm-36 mb-sm-12",el:"div",type:"title1-blinkui",children:"You Selected:"}),(0,s.jsxs)("div",{className:"d-sm-inline-flex justify-content-sm-between",style:O,children:[(0,s.jsx)(B.PC,{className:"mr-sm-16"}),(0,s.jsxs)("div",{className:"mb-sm-16","data-user1st-id":"cf-telemed-slug-form",children:[(0,s.jsx)(h.Z,{className:"mb-sm-4",el:"h3",type:"title2-blinkui",children:v}),(0,s.jsx)(h.Z,{className:"m-sm-0",el:"div",type:"body1-blinkui",children:y})]}),(0,s.jsx)(h.Z,{el:"div",type:"title2-blinkui",className:"ml-sm-12",children:b})]}),(0,s.jsx)(h.Z,{className:"mt-sm-48 mb-sm-12",el:"div",type:"title2-blinkui",children:"Available Options:"}),(0,s.jsx)("div",{children:(0,s.jsx)("form",{onChange:e=>u(parseInt(e.target.value,10)),children:x&&x.map((e,i)=>(0,s.jsx)(telemed_formulation_option,{idx:i,formPrice:e},"telemed-form-".concat(i+1)))})}),(0,s.jsx)("div",{className:"my-sm-12",children:(0,s.jsx)("div",{className:"d-sm-flex justify-content-sm-center justify-content-md-end",children:(0,s.jsx)(c.Z,{className:"mt-sm-24",fullWidth:a,eventName:"Continue",processing:i,onClick:()=>{let{eligibleFormPrices:e,currentCartItem:i,medNameId:t}=l,s=i.id,r=e[d],{medId:a,medNameId:o,priceId:c,quantity:m}=r,u=parseInt(m,10);n({medId:a,priceId:c,quantity:u},t,o,s)},style:a?{}:{minWidth:"150px"},text:"Continue",user1stId:"telemed-formulation-continue"})})})]})})};let F="formulation-eligibility.telemedicine-modal",MultipleTelemedDrugsErrorModal=()=>{let e=(0,l.useRouter)(),i=(0,o.I0)();return(0,s.jsx)(m.Z,{name:"multiple-telemed-drugs-error",dismissible:!0,title:"Remove a doctor’s visit",children:(0,s.jsxs)("div",{className:"d-sm-flex flex-sm-column","data-user1st-id":"cf-mul-drugs-error",children:[(0,s.jsx)(h.Z,{type:"body2-blinkui",children:"You can only order one medication without a prescription at a time. If you need multiple medications along with providers’ visits, please purchase them separately."}),(0,s.jsx)(c.Z,{text:"Edit my cart",onClick:()=>{i((0,b.Mr)()),e.push("/cart")},eventName:"go-to-cart",className:"mt-sm-24 col-md-3",user1stId:"cf-mul-drug-edit-my-cart"})]})})};var verify_rx=()=>{var e,i;let t=(0,o.v9)(e=>e.cart),l=(0,o.I0)(),a=(0,o.v9)(f.tq),m=(0,y.WB)((0,o.v9)(e=>e)),h=(0,o.v9)(e=>{var i;return null==e?void 0:null===(i=e.telemed)||void 0===i?void 0:i.selectedFunnelSource}),C=m?t.items.filter(e=>e.prescription&&!e.prescription.hasCloudPharmacyPrescription):t.items,[N,Z]=(0,r.useState)({}),[I,S]=(0,r.useState)(!0),_=(0,o.v9)(j.J);(0,r.useEffect)(()=>
1{l((0,g.gf)()).then(()=>S(!1))},[]);let[w,E]=(0,r.useState)({}),[P,R]=(0,r.useState)({}),[T,M]=(0,r.useState)(),[B,O]=(0,r.useState)(!1),[A,W]=(0,r.useState)(!1),{navigateToNextStep:q}=(0,x.Z)(),Y=(0,v.Z)("/checkout/"),z=h&&"cold-sores"===h.telemedCondition,D=n._f?"Have you already been prescribed ".concat(null===(e=C[0])||void 0===e?void 0:e.name,"?"):"Do you have a prescription for ".concat(null===(i=C[0])||void 0===i?void 0:i.name," yet?"),$=m?"Your Prescriptions":1===C.length?(null==h?void 0:h.telemedCondition)==="cold-sores"?"Check eligibility for online provider visit":D:"Have you already been prescribed these medications?",hasEligibleStateCode=e=>w[e]&&w[e].hasEligibleStateCode,onSubmit=()=>{let e=C.filter(e=>!0===N[e.medNameId]),i=C.filter(e=>!N[e.medNameId]).map(e=>({itemId:e.id,rxSrcType:"consultation"})),t=e.filter(e=>"consultation"===e.rxSrcType).map(e=>({itemId:e.id,rxSrcType:null}));if(i.length>1){l((0,b.h7)("multiple-telemed-drugs-error"));return}if(0===i.length)return patchCartAndContinueCheckout(C,[...i,...t]);let s=i[0],n=C.filter(e=>e.id===s.itemId)[0],r=n.medNameId;O(!0),l((0,g.LI)(r)).then(e=>{O(!1),e.length>0?(M({medNameId:r,currentCartItem:n,eligibleFormPrices:e}),l((0,b.h7)(F))):patchCartAndContinueCheckout(C,[...i,...t])})},L=t.items.every(e=>{let{medNameId:i,isTelemedEligible:t}=e;return!0===N[i]||!1===N[i]&&p.EO&&t&&hasEligibleStateCode(i)&&P[i]}),patchCartAndContinueCheckout=async(e,i)=>{W(!0),await l((0,y.Hj)(e,N)),await l((0,y.N8)(i,{withSetFetching:!1})),W(!1),q()},onConsultChange=async function(e,i){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(R(t=>({...t,[e]:i})),s){let{id:s}=t.items.find(i=>i.medNameId===e),r=i?"consultation":null;W(!0),n._f&&!i?await l((0,y.N8)([{itemId:s,rxSrcPharmacyId:n.fP,rxSrcType:r}],{withSetFetching:!1})):await l((0,y.N8)([{itemId:s,rxSrcType:r}],{withSetFetching:!1})),W(!1)}},onEligibilityChange=(e,i,t)=>{switch(i){case"account":return E(i=>({...i,[e]:{...i[e],hasEligibleAccount:t}}));case"state":return E(i=>({...i,[e]:{...i[e],hasEligibleStateCode:t}}));default:return}},onSelectionChange=(e,i)=>{i&&onConsultChange(e,!1),Z(t=>({...t,[e]:i}))};return(0,r.useEffect)(()=>{if(t.items.length){let resolve=async()=>{t.items.filter(e=>e.isTelemedEligible).forEach(e=>{let i="consultation"===e.rxSrcType;onConsultChange(e.medNameId,i,!1),z&&i&&onSelectionChange(e.medNameId,!1)}),m&&t.items.filter(e=>e.prescription.hasCloudPharmacyPrescription&&N[e.medNameId]).map(e=>{let{medNameId:i}=e;return onSelectionChange(i,!0)})};resolve()}},[t.items.length]),(0,r.useEffect)(()=>{Object.keys(_).forEach(e=>{onEligibilityChange(e,"account",_[e])})},[_]),(0,s.jsxs)(u.Z,{pageName:"Rx Verification",headerTitle:$,loading:I,children:[(0,s.jsx)(MultipleTelemedDrugsErrorModal,{}),(0,s.jsx)(d.Z,{children:(0,s.jsx)(prescription_confirmation,{cartItems:C,isSeamlessRefills:m,consult:P,onConsultChange:onConsultChange,selections:N,onSelectionChange:onSelectionChange,eligibility:w,onEligibilityChange:onEligibilityChange})}),(0,s.jsx)("div",{className:"d-sm-flex justify-content-md-end px-sm-20 px-md-0",children:(0,s.jsx)(c.Z,{qa:"continue",className:"mt-sm-24",eventName:"checkout-basic-patient-info",fullWidth:a,onClick:onSubmit,disabled:!L,style:a?{}:{minWidth:"150px"},processing:A||Y,text:"Continue",user1stId:"verify-rx-continue"})}),T&&(0,s.jsx)(telemed_formulation_modal,{name:F,ineligibleCartItem:T,updateCartFormulation:(e,i,t,s)=>{l((0,y.$)({items:[e]})).then(()=>t!==i?l((0,y.cl)(s)):Promise.resolve()).then(()=>{E({...w,[t]:w[i]}),l((0,b.Mr)())}).then(()=>onSubmit())},loading:B}),p.EO&&(0,s.jsx)(k.a,{})]})}},43024:function(e){e.exports={wrapper:"select_wrapper__PsYBS",options:"select_options__sl73n",option:"select_option__W8_Ze"}}},function(e){e.x(),_N_E=Promise.all([e.f.consumes||function(e,i){},e.f.remotes||function(e,i){}].reduce(function(e,i){return i("3333",e),e},[])).then(function(){return e.X(0,[672,2888,9774,179],function(){return e(e.s=30176)})})}]);

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.