1(self.webpackChunkhost=self.webpackChunkhost||[]).push([[8846,4096],{84638:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/select-pharmacy",function(){return s(40557)}])},84096:function(e,t,s){"use strict";s.r(t);var r=s(68081);s(83205),t.default=e=>{let{size:t=24,color:s="#31465A",onClick:n,style:i,className:a}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t,height:t,viewBox:"0 0 24 24",style:i,className:a,onClick:n,children:[(0,r.jsx)("defs",{children:(0,r.jsx)("path",{id:"location-icon-a",d:"M2.784 10.895l-.08.047c-.317.228-.26.743.134.877l6.53 2.236 2.237 6.531c.145.423.73.458.924.054l8.346-17.424c.204-.426-.241-.87-.667-.667L2.784 10.895zM19.36 4.063l-7.206 15.042-1.919-5.605-.037-.084c-.06-.106-.157-.187-.274-.227l-5.606-1.92L19.36 4.063z"})}),(0,r.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,r.jsx)("mask",{id:"location-icon-b",fill:"#fff",children:(0,r.jsx)("use",{xlinkHref:"#location-icon-a"})}),(0,r.jsx)("use",{fill:s,fillRule:"nonzero",xlinkHref:"location-icon-a"}),(0,r.jsx)("g",{fill:s,mask:"url(#location-icon-b)",children:(0,r.jsx)("path",{d:"M0 0H24V24H0z"})}),(0,r.jsx)("path",{d:"M0 0H24V24H0z"})]})]})}},35621:function(e,t,s){"use strict";s.d(t,{Z:function(){return checkout_screen}});var r=s(68081),n=s(83205),i=s.n(n),a=s(2664),c=s(21801),l=s(72988),o=s(74923),d=s(43152),m=s.n(d),u=s(9253),h=s(75975),p=s(18665),step_header=e=>{let{title:t,description:s,banner:n,className:a}=e,c=!!s;return(0,r.jsxs)(i().Fragment,{children:[n&&(0,r.jsx)("div",{className:"".concat(n.className?n.className:"px-sm-20"," px-md-0 mt-sm-n24 mt-md-0"),children:(0,r.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,r.jsx)(m(),{style:{backgroundColor:h.I.white100,borderRadius:30,width:60,height:60,padding:10},src:n.image,alt:n.title}),(0,r.jsxs)("div",{className:"ml-sm-24 pl-sm-4 d-sm-flex flex-sm-column",children:[(0,r.jsx)(u.Z,{type:"title3-blinkui",children:n.title}),n.description&&(0,r.jsx)(u.Z,{type:"body2-blinkui",style:{textTransform:"capitalize"},children:n.description})]})]})}),(0,r.jsxs)("div",{className:(0,p.Z)(a,"px-sm-20 px-md-0"),"data-user1st-id":"cf-step-title",children:[(0,r.jsx)(u.Z,{className:(0,p.Z)({"mb-sm-8":c,"mb-sm-24":!c}),el:"h1",type:"title3-blinkui",children:t}),s&&(0,r.jsx)(u.Z,{className:"mb-sm-24",el:"p",type:"body2-blinkui",children:s})]})]})},x=s(59711);let y=0;var step_header_progress_bar=e=>{let{className:t}=e,{step:s,totalSteps:i}=(0,x.Z)(),[a,c]=(0,n.useState)(y);return(0,n.useEffect)(()=>{let e=s/i*100;return c(e),()=>{y=e}},[]),(0,r.jsx)("div",{className:(0,p.Z)(t,"px-sm-20 px-md-0"),"data-user1st-id":"cf-progress-bar",children:(0,r.jsx)("div",{className:"mb-sm-24",style:{height:8,width:"auto",backgroundColor:h.I.link10,borderRadius:4},children:(0,r.jsx)("div",{style:{width:"".concat(a,"%"),borderRadius:4,backgroundColor:h.I.link100,transition:"width 200ms",height:"100%"}})})})},f=s(86425),g=s(81141),j=s(59362),b=s(15625),v=s(27173),k=s(56623),checkout_screen=e=>{let{pageName:t,headerTitle:s,headerDescription:n,headerBanner:i,withProgressBar:d=!0,withCart:m=!0,loading:u,children:h}=e,p=(0,a.v9)(o.tq),x=(0,l.Z)();return((0,c.Z)({enabled:m,loading:u}),u)?(0,r.jsx)(b.Z,{}):(0,r.jsxs)(v.ZP,{pageName:t,pageCategory:"Checkout-V2",headerType:"lock",children:[(0,r.jsx)("div",{className:"container px-sm-0 px-md-60 px-lg-120 py-sm-24 py-md-36 py-lg-48",children:(0,r.jsxs)("div",{className:"row d-sm-flex justify-content-sm-center","data-user1st-id":"checkout-screen",children:[(0,r.jsxs)("div",{className:"col-sm-12 col-md-7 col-lg-6",children:[d&&(0,r.jsx)(step_header_progress_bar,{}),(0,r.jsxs)(f.Z,{animation:"slideInRight",children:[!!(s||n)&&(0,r.jsx)(step_header,{title:s,description:n,banner:i}),h]})]}),m&&!p?(0,r.jsx)("div",{className:"d-sm-none d-md-block col-md-5 col-lg-4",children:(0,r.jsx)(k.Z,{editable:!x})}):null]})}),(0,r.jsx)(j.Z,{}),(0,r.jsx)(g.Z,{theme:"secure"})]})}},34979:function(e,t,s){"use strict";s.d(t,{Hi:function(){return a},Kr:function(){return c},Px:function(){return i},R:function(){return r},l7:function(){return n}});let r={PHARMACY_SEARCH:"Transfer prescription from current pharmacy",PROVIDER_SEARCH:"Transfer prescription from your current doctor"},n={PHARMACY_SEARCH:"Search by zipcode",PROVIDER_SEARCH:"Search by doctor name or zipcode"},i={PHARMACY_SEARCH:"See more pharmacies",PROVIDER_SEARCH:"See more providers"},a={PHARMACY_SEARCH:{title:"Tell us where your current pharmacy is",description:"Find your current pharmacy by entering your zipcode in the search f
1ield above."},PROVIDER_SEARCH:{title:"Tell us who your current provider is",description:"Find your current provider by entering the doctorâs name or zipcode in the search field above."}},c={PHARMACY_SEARCH:{id:"npi",title:"name",address:"location.address"},PROVIDER_SEARCH:{id:"providerId",title:"fullName",address:""}}},40422:function(e,t,s){"use strict";s.d(t,{Z:function(){return search_form}});var r=s(68081),n=s(27361),i=s.n(n),a=s(43152),c=s.n(a),l=s(83205),o=s.n(l),d=s(2664),m=s(84096),u={src:"/_next/static/media/map-man.8bbb3716.svg",height:120,width:160,blurWidth:0,blurHeight:0},h=s(95869),p=s(75975),x=s(85727),y=s(59399),f=s(66786),g=s(3729),j=s(25042),b=s(64241),v=s(35359),k=s(33049),C=s(9253),R=s(34979),search_form=e=>{let{searchView:t,onSubmit:s,onSelection:n,allowSearchByLocation:a,allowOutOfNetwork:_,onlyMagic:w,hideShowMore:S,modalView:Z}=e,N=(0,d.I0)(),I=(0,d.v9)(e=>e.availablePricingTiers),[A,H]=(0,l.useState)(""),[P,E]=(0,l.useState)(),[M,z]=(0,l.useState)(!1),[T,D]=(0,l.useState)(""),[F,V]=(0,l.useState)(!1),[Y,O]=(0,l.useState)(""),L=t.replace("_SEARCH","").toLowerCase(),resetState=()=>{H(""),z(!1),O("")},onQueryChange=e=>{e.stopPropagation(),O("");let t=e.target.value,s=/^\d\d?\d?\d?\d?$/.test(t);t.length>2&&(s?5===t.length&&(H(""),E({zipCode:t})):H(t))},onShowMore=()=>{z(!0)},onResultClick=e=>{D(e),n&&n(e)},handleSubmit=e=>{e.preventDefault(),s&&s(T),resetState()},onGeolocationInit=()=>{H(""),O(""),V(!0),navigator.geolocation.getCurrentPosition(e=>{let{coords:t}=e;V(!1),E({lat:t.latitude,lng:t.longitude}),D("")},e=>{console.error(e),O("Failed to fetch your location."),V(!1)})},q=(0,l.useMemo)(()=>a?{icon:m.default,iconAlignment:"right",iconProps:{color:p.I.tertiary100,style:{cursor:"pointer"},onClick:onGeolocationInit}}:{},[a]),K="PHARMACY_SEARCH"===t?5:void 0;return(0,r.jsx)(k.Z,{query:A,additionalParameters:P,search:(e,s)=>{let r=s||{},n=e;return"PHARMACY_SEARCH"===t&&(n=""),w&&(r.networkIds=I.map(e=>e.pharmacyNetworkId).join(",")),_&&(r.allowOutOfNetwork=1),N((0,h.yC)(n,t,r))},debounce:!P,children:(e,a,l)=>{let d=!!(e&&e.length),m=!S&&!!(d&&e.length>3&&!M);return(0,r.jsxs)(o().Fragment,{children:[(0,r.jsx)(g.Z,{name:"search",placeholder:R.l7[t],loading:l||F,error:a||Y||(A||P)&&!l&&!d&&"No results found.",onChange:onQueryChange,maxLength:K,...q,user1stId:"select-pharmacy-input"}),(0,r.jsx)(b.Z,{className:"mt-sm-24",color:p.I.tertiary20}),(0,r.jsxs)("form",{onChange:e=>e.preventDefault(),onSubmit:handleSubmit,"data-user1st-id":"pharmacy-search-form",children:[d&&e.slice(0,M?e.length:3).map(e=>{let{id:a,title:c,address:l}=R.Kr[t],ItemRow=()=>(0,r.jsxs)(o().Fragment,{children:[e.isPreferred&&(0,r.jsx)(v.cp,{pharmacy:e,showInfoButton:!Z}),(0,r.jsx)(C.Z,{el:"div",type:"title4-blinkui",user1stId:"search-pharmacy-name",children:i()(e,c)}),(0,r.jsx)(C.Z,{el:"div",type:"body2-blinkui",user1stId:"search-pharmacy-address",children:(0,x.Tg)(i()(e,l,e))})]});return(0,r.jsxs)(o().Fragment,{children:[(0,r.jsxs)("div",{tabIndex:0,role:"button",className:"py-sm-20",onClick:()=>onResultClick(e),onKeyDown:(0,y.Z)(()=>onResultClick(e)),"data-user1st-id":"select-pharmacy-radio-wrapper",children:[!n&&!s&&(0,r.jsx)(ItemRow,{}),(n||s)&&(0,r.jsx)(j.Z,{name:L,value:i()(e,a),checked:i()(e,a)===i()(T,a),inputStyle:{pointerEvents:"none"},children:(0,r.jsx)(ItemRow,{})})]}),(0,r.jsx)(b.Z,{className:"my-sm-0",color:p.I.tertiary20})]},i()(e,a))}),m&&(0,r.jsx)(o().Fragment,{children:(0,r.jsx)("div",{id:"see-more-pharmacies",tabIndex:0,role:"button",className:"mt-sm-20",onClick:onShowMore,onKeyDown:(0,y.Z)(onShowMore),style:{cursor:"pointer"},"data-user1st-id":"see-more-pharmacies",children:(0,r.jsx)(C.Z,{type:"body2-blinkui",style:{color:p.I.link100},children:R.Px[t]})})}),d&&s&&(0,r.jsxs)(o().Fragment,{children:[(0,r.jsx)(b.Z,{className:"mt-sm-20 mb-sm-24",color:p.I.tertiary20}),(0,r.jsx)("div",{className:"d-sm-flex justify-content-md-end",children:(0,r.jsx)(f.Z,{eventName:"confirm search modal",type:"primary",text:"Continue",disabled:!T,user1stId:"confirm-pharmacy-search"})})]}),!d&&(0,r.jsxs)("div",{className:"d-sm-flex flex-sm-column align-items-sm-center mt-sm-24 mb-sm-24","data-user1st-id":"pharmacy-not-found",children:[(0,r.jsx)(c(),{className:"mb-sm-24",src:u,alt:"map man"}),(0,r.jsx)(C.Z,{className:"mb-sm-8",el:"div",type:"title4-blinkui",align:"center",children:R.Hi[t].title}),(0,r.jsx)(C.Z,{type:"body2-blinkui",el:"p",align:"center",children:R.Hi[t].description})]})]})]})}})}},11027:function(e,t,s){"use strict";var r=s(2664);t.Z=e=>(0,r.v9)(t=>t.header.loadingPath.includes(e))},40557:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return checkout_select_pharmacy}});var r=s(68081),n=s(83205),i=s(2664),a=s(66786),c=s(43182),l=s(35621),o=s(40422),d=s(59711),m=s(11027),use_is_magic_cart=()=>{let e=(0,i.v9)(e=>e.cart.items);return e.some(e=>"magic"===e.priceCategory)}
1,u=s(74923),h=s(63405),p=s(67364),checkout_select_pharmacy=()=>{let e=(0,i.I0)(),t=(0,i.v9)(u.tq),s=(0,i.v9)(u.nI),x=use_is_magic_cart(),{navigateToNextStep:y}=(0,d.Z)(),f=(0,m.Z)("/checkout/"),[g,j]=(0,n.useState)(),[b,v]=(0,n.useState)(!1),[k,C]=(0,n.useState)(!1);(0,n.useEffect)(()=>{g&&C(!0)},[g]);let onContinue=async()=>{v(!0),await Promise.all([e((0,p.ob)("Selected pharmacy","select",{...g})),e((0,h.r2)(g)),e((0,h.NJ)(g))]).then(()=>{v(!1),y()})};return(0,r.jsxs)(l.Z,{pageName:"Select Pharmacy",headerTitle:"Enter your zip code to see pharmacies near you.",children:[(0,r.jsx)(c.Z,{children:(0,r.jsx)(o.Z,{searchView:"PHARMACY_SEARCH",onSelection:e=>{j(e)},allowSearchByLocation:!0,onlyMagic:x})}),(0,r.jsx)("div",{className:"d-sm-flex justify-content-md-end px-sm-20 px-md-0",children:(0,r.jsx)(a.Z,{qa:"continue",style:{minWidth:s?240:null},className:"mt-sm-24",type:"primary",text:"Continue",eventName:"checkout-select-pharmacy",onClick:onContinue,disabled:!k,processing:b||f,fullWidth:t,user1stId:"cf-select-pharmacy-continue"})})]})}}},function(e){e.x(),_N_E=Promise.all([e.f.consumes||function(e,t){},e.f.remotes||function(e,t){}].reduce(function(e,t){return t("8846",e),e},[])).then(function(){return e.X(0,[672,2888,9774,179],function(){return e(e.s=84638)})})}]);
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.