PageSourceSearch

https://www.24hrdoc.com/_next/static/chunks/pages/diagnosis/pharmacy_info-da7076e18ba7c124.js

js 24hrdoc.com collected 2026-10-07 20:18:56 UTC 29,834 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9806],{19924:function(e){"use strict";e.exports=function(e){var t=typeof e;if("string"===t||e instanceof String){if(!e.trim())return!1}else if("number"!==t&&!(e instanceof Number))return!1;return e-e+1>=0}},26401:function(e){var t=Object.prototype.toString;function r(e){return"function"===typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var a,n=typeof e;if("boolean"===n)return"boolean";if("string"===n)return"string";if("number"===n)return"number";if("symbol"===n)return"symbol";if("function"===n)return a=e,"GeneratorFunction"===r(a)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"===typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"===typeof e.length&&"function"===typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"===typeof e.toDateString&&"function"===typeof e.getDate&&"function"===typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"===typeof e.message&&e.constructor&&"number"===typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"===typeof e.flags&&"boolean"===typeof e.ignoreCase&&"boolean"===typeof e.multiline&&"boolean"===typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"===typeof e.throw&&"function"===typeof e.return&&"function"===typeof e.next}(e))return"generator";switch(n=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}},44210:function(e){e.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,a=r&&"function"===typeof r.getRandomValues;if(!(t&&a))return Math.random;var n=new Uint32Array(1),s=Math.pow(2,32);function i(){return r.getRandomValues(n),n[0]/s}return i.cryptographic=!0,i}("undefined"!==typeof self?self:window)},75164:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return A},default:function(){return F}});var a=r(59499),n=r(47533),s=r(25724),i=r(9198),o=r(82494),l=r(9008),c=r.n(l),d=r(11163),u=r(67294),m=r(36968),h=r(34051),p=r(31555),f=r(34289),w=r(87536),y=r(70148),x=r(74231),g=r(70441),v=r(5453),b=r(59551),j=r(729
118),N=r(7171),P=r(30443),S=r(4298),C=r.n(S),I=r(85893);function O(e){let{loaded:t=!1,value:r,onChange:a,onPick:n,zip:s,searchToken:i}=e;const[o,l]=u.useState(!1),[c,d]=u.useState(!1),[m,h]=u.useState([]),[p,f]=u.useState(!1),w=u.useRef(null),y=u.useRef(null);u.useEffect((()=>{var e,r;const a=async()=>{var e,r;if(!t||null===(e=window.google)||void 0===e||null===(r=e.maps)||void 0===r||!r.importLibrary)return;await window.google.maps.importLibrary("places");const{AutocompleteSessionToken:a}=await window.google.maps.importLibrary("places");y.current=new a,l(!0)};if(t&&null!==(e=window.google)&&void 0!==e&&null!==(r=e.maps)&&void 0!==r&&r.places)return void a();let n=0;const s=setInterval((async()=>{var e,t;n+=1,null!==(e=window.google)&&void 0!==e&&null!==(t=e.maps)&&void 0!==t&&t.places?(await a(),clearInterval(s)):n>25&&clearInterval(s)}),200);return()=>clearInterval(s)}),[t]),u.useEffect((()=>{const e=e=>{var t;null!==(t=w.current)&&void 0!==t&&t.contains(e.target)||d(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[]),u.useEffect((()=>{i>0&&(async()=>{if(!o)return;const e=(r||"").trim();if(!e)return h([]),void d(!1);f(!0);try{const{AutocompleteSuggestion:t}=await window.google.maps.importLibrary("places"),r=(s||"").replace(/\D/g,"").slice(0,5),a=r?`${e} ${r}`:e,{suggestions:n}=await t.fetchAutocompleteSuggestions({input:a,includedRegionCodes:["us"],includedPrimaryTypes:["pharmacy"],sessionToken:y.current});h((n||[]).slice(0,8)),d(!0)}catch(t){console.error("[Places] suggestions failed:",t),h([]),d(!1)}finally{f(!1)}})()}),[i,o]);const x=async e=>{try{var t;const{Place:s}=await window.google.maps.importLibrary("places"),i=e.placePrediction.toPlace();await i.fetchFields({fields:["id","displayName","formattedAddress","addressComponents","nationalPhoneNumber","types"],sessionToken:y.current});const o=(null===(t=i.displayName)||void 0===t?void 0:t.text)??i.displayName??"",l=i.types??[];if(!(l.includes("pharmacy")||o.toLowerCase().includes("pharmacy")||o.toLowerCase().includes("drug")||o.toLowerCase().includes("rx")))return void d(!1);let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e))return{street:"",city:"",state:"",zip:""};const t=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"long";const a=e.find((e=>Array.isArray(e.types)&&e.types.includes(t)));return a?"short"===r?a.shortText??a.short_name??"":a.longText??a.long_name??"":""},r=t("street_number"),a=t("route"),n=t("locality")||t("sublocality")||t("postal_town")||t("administrative_area_level_3"),s=t("administrative_area_level_1","short"),i=t("postal_code");return{street:[r,a].filter(Boolean).join(" "),city:n||"",state:s||"",zip:i||""}}(i.addressComponents||[]);if((!c.street||!c.city||!c.state||!c.zip)&&i.formattedAddress){const e=i.formattedAddress.split(",").map((e=>e.trim()));if(e.length>=3){var r,a;c.street=c.street||e[0]||"",c.city=c.city||e[1]||"";const t=(null===(r=e[2])||void 0===r?void 0:r.split(/\s+/))||[];!c.state&&(null===(a=t[0])||void 0===a?void 0:a.length)<=3&&(c.state=t[0]),!c.zip&&t[1]&&(c.zip=t[1].replace(/\D/g,"").slice(0,5))}}null===n||void 0===n||n({placeId:i.id,name:o||"",phone:i.nationalPhoneNumber||"",street:c.street,city:c.city,state:c.state,zip:c.zip}),d(!1)}catch(s){console.error("[Places] fetchFields failed:",s),d(!1)}};return(0,I.jsxs)("div",{ref:w,className:"tw-relative",children:[(0,I.jsxs)("div",{className:"tw-relative tw-group",children:[(0,I.jsx)("input",{className:"tw-w-full tw-rounded-xl tw-border tw-border-slate-300 tw-bg-white tw-px-4 tw-py-2.5 tw-text-slate-900 placeholder:tw-text-slate-400 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-blue-500/30 focus:tw-border-blue-500 tw-shadow-sm tw-transition tw-duration-150",value:r||"",onChange:e=>null===a||void 0===a?void 0:a(e.target.value),placeholder:"Start typing your pharmacy name\u2026",autoComplete:"off","aria-autocomplete":"list","aria-expanded":c,"aria-controls":"pharmacy-autocomplete-listbox",role:"combobox"}),(0,I.jsx)("div",{className:"tw-absolute tw-inset-y-0 tw-right-3 tw-flex tw-items-center tw-pointer-events-none",children:p?(0,I.jsxs)("svg",{className:"tw-h-4 tw-w-4 tw-animate-spin tw-text-slate-400",viewBox:"0 0 24 24",children:[(0,I.jsx)("circle",{className:"tw-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),(0,I.jsx)("path",{className:"tw-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}):(0,I.jsx)("svg",{className:"tw-h-4 tw-w-4 tw-text-slate-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,I.jsx)("path",{fillRule:"evenodd",d:"M14.293 15.707a1 1 0 001.414-1.414l-3.25-3.25A5.5 5.5 0 1013.5 11l3.25 3.293zM8.5 12a3.5 3.5 0 110-7 3.5 3.5 0 010 7z",clipRule:"evenodd"})})})]}),c&&(0,I.jsxs)("div",{id:"pharmacy-autocomplete-listbox",role:"listbox",className:"tw-absolute tw-z-50 tw-mt-2 tw-w-full tw-overflow-hidden tw-rounded-xl tw-border tw-border-slate-200 tw-bg-white tw-shadow-xl tw-ring-1 tw-ring-black/5",children:[!p&&0===m.length&&(0,I.jsx)("div",{className:"tw-px-4 tw-py-3 tw-text-sm tw-text-slate-500",children:"No matches yet. Adjust name/ZIP and press Search."}),!p&&m.length>0&&(0,I.jsx)("ul",{className:"tw-max-h-72 tw-overflow-y-auto tw-divide-y tw-divide-slate-100",children:m.map((e=>{var t,r,a;const n=e.placePrediction,s=(null===n||void 0===n||null===(t=n.mainText)||void 0===t?void 0:t.text)||(null===n||void 0===n||null===(r=n.text)||void 0===r?void 0:r.text)||"",i=(null===n||void 0===n||null===(a=n.secondaryText)||void 0===a?void 0:a.text)||"",o=(null===n||void 0===n?void 0:n.placeId)||s+i;return(0,I.jsx)("li",{role:"option","aria-selected":"false",className:"tw-cursor-pointer tw-select-none tw-bg-white hover:tw-bg-slate-50 tw-transition tw-duration-100",onMouseDown:t=>{t.preventDefault(),x(e)},onClick:()=>x(e),children:(0,I.jsxs)("div",{className:"tw-px-4 tw-py-2.5",children:[(0,I.jsx)("div",{className:"tw-text-sm tw-font-semibold tw-text-slate-900",children:s}),i&&(0,I.jsx)("div",{className:"tw-mt-0.5 tw-text-xs tw-text-slate-500",children:i})]})},o)}))}),p&&(0,I.jsx)("div",{className:"tw-px-4 tw-py-3 tw-text-sm tw-text-slate-500",children:"Searching\u2026"})]})]})}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?E(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Z=x.Ry().shape({PhoneNumber:x.Z_().matches(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,"Phone number is not valid, must be 10 digits only").required("Phone number is required"),Name:x.Z_().required("Pharmacy name is required"),Street:x.Z_().required("Pharmacy address is required"),PharmacyCity:x.Z_().required("City is required"),PharmacyState:x.Z_().required("State is required"),PharmacyZipode:x.Z_().matches(/^\d{5}$/,"Invalid ZIP code").required("ZIP is required")}),k=e=>(e||"").replace(/\D/g,"").slice(-10),D=e=>e&&10===e.length?e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):"";function T(e){let{user:t,setValue:r,eligible_states:a,normalizeUSPhoneDigits:n,prettyUSPhone:s,onUse:i,onChange:o}=e;return(0,I.jsxs)("div",{className:"tw-relative tw-overflow-hidden tw-bg-white tw-border tw-border-slate-200 tw-rounded-lg tw-px-3 tw-py-2 tw-mb-4",children:[(0,I.jsx)("div",{className:"tw-absolute tw-left-0 tw-top-0 tw-h-full tw-w-[3px] tw-bg-gradient-to-b tw-from-[#00C3A5] tw-to-[#2684FF]"}),(0,I.jsxs)("div",{className:"tw-ml-3",children:[(0,I.jsx)("div",{className:"tw-flex tw-items-center tw-justify-between",children:(0,I.jsx)("h3",{className:"tw-text-base tw-font-semibold tw-text-doc_blue tw-tracking-tight",children:"Use your saved pharmacy?"})}),(0,I.jsxs)("div",{className:"tw-mt-1 tw-space-y-0.5",children:[(0,I.jsx)("p",{className:"tw-text-[13px] tw-text-slate-700 tw-leading-tight tw-mb-0",children:t.pharmacies[0].Name}),(0,I.jsxs)("p",{className:"tw-text-[12px] tw-text-slate-600 tw-leading-tight",children:[t.pharmacies[0].Street," ",t.pharmacies[0].PharmacyCity,","," ",t.pharmacies[0].PharmacyState," ",t.pharmacies[0].PharmacyZipode]}),(0,I.jsx)("p",{className:"tw-text-[12px] tw-text-slate-700 tw-leading-tight",children:t.pharmacies[0].PhoneNumber})]}),(0,I.jsxs)("div",{className:"tw-mt-2 tw-flex tw-gap-2",children:[(0,I.jsx)("button",{type:"button",className:"tw-flex-1 tw-inline-flex tw-items-center tw-justify-center tw-bg-[#42cba2] tw-border-0 tw-text-white tw-font-semibold tw-rounded-md tw-py-2 tw-px-4 tw-text-sm tw-shadow-sm",onClick:async()=>{var e;const o=t.pharmacies[0],l=(null===(e=a.find((e=>e.abbreviation===o.PharmacyState)))||void 0===e?void 0:e.name)||o.PharmacyState,c=n(o.PhoneNumber),d=s(c)||o.PhoneNumber;r("Name",o.Name,{shouldDirty:!0,shouldValidate:!0}),r("Street",o.Street,{shouldDirty:!0,shouldValidate:!0}),r("PharmacyCity",o.PharmacyCity,{shouldDirty:!0,shouldValidate:!0}),r("PharmacyState",l,{shouldDirty:!0,shouldValidate:!0}),r("PharmacyZipode",o.PharmacyZipode,{shouldDirty:!0,shouldValidate:!0}),r("PhoneNumber",d,{shouldDirty:!0,shouldValidate:!0}),await i()},children:"Use this pharmacy"}),(0,I.jsx)("button",{type:"button",onClick:o,className:"tw-inline-flex tw-items-center tw-justify-center tw-border-0 tw-text-white tw-bg-doc_blue tw-rounded-md tw-py-2 tw-px-3 tw-text-sm",children:"Change"})]})]})]})}var A=!0,F=()=>{var e,t,r,a,l,x,S,E,A,F,L;(0,u.useEffect)((()=>{(0,s.j)(i.nS.PHARMACY_INFO,i.E_.VIEWED,(0,s.$k)())}),[]),(0,o.g)("pharmacy_info");const{user:M}=(0,b.cO)(),V=(0,d.useRouter)(),{0:z,1:U}=(0,u.useState)(null),{0:q,1:Q}=(0,u.useState)(null),{0:W,1:$}=(0,u.useState)(!1),B=Boolean(null===M||void 0===M||null===(e=M.pharmacies)||void 0===e?void 0:e[0]),{0:H,1:X}=(0,u.useState)(!1),{0:Y,1:J}=(0,u.useState)(!1),[G,K]=u.useState(!1),{0:ee,1:te}=(0,u.useState)(!1),{0:re,1:ae}=(0,u.useState)(0),{register:ne,handleSubmit:se,control:ie,setValue:oe,getValues:le,formState:{errors:ce}}=(0,w.cI)({resolver:(0,n.X)(Z)});(0,u.useEffect)((()=>{B&&!Y&&X(!0)}),[B,Y]),(0,u.useEffect)((()=>{var e,t;const r=null===M||void 0===M||null===(e=M.pharmacies)||void 0===e?void 0:e[0];if(!r)return;const a=(null===(t=g.find((e=>e.abbreviation===r.PharmacyState)))||void 0===t?void 0:t.name)||r.PharmacyState,n=k(r.PhoneNumber),s=D(n)||r.PhoneNumber;oe("PhoneNumber",s),oe("Name",r.Name),oe("Street",r.Street),oe("PharmacyCity",r.PharmacyCity),oe("PharmacyState",a),oe("PharmacyZipode",r.PharmacyZipode)}),[M,oe]),(0,u.useEffect)((()=>{{const e=localStorage.getItem("diseaseData");if(e){const t=JSON.parse(e);Q(t.questions)}const t=localStorage.getItem("diagnosisID");t&&(0,j.iw)(t).then((e=>{null!==e&&void 0!==e&&e.medicalData&&U(null===e||void 0===e?void 0:e.medicalData)}))}}),[]);const de=async e=>{(0,y.toast)("Submitting pharmacy details");const t=JSON.parse(sessionStorage.getItem("priority"));if(!z||!q)return y.toast.error("Your form was not submitted. Please try again."),void V.push("/diagnosis/medical_info");const r=(0,N.sX)(q,z);if(!r||0===r.length)return y.toast.error("Your form was not submitted. Please try again."),void V.push("/diagnosis/medical_info");if(e.Name&&e.Street&&e.PhoneNumber&&e.PharmacyCity&&e.PharmacyState&&e.PharmacyZipode)try{await(0,j.Rl)(M.objectId,{pharmacies:[e]});const a=await(0,j.a5)(localStorage.getItem("diagnosisID"),{price:ue(r),pharmacy:e,noteRequested:(0,N.Rf)(r),hasPriority:!(null===t||void 0===t||!t.first)});if(null===a||void 0===a||!a.updatedAt)return y.toast.error("Error in submitting form, redirecting to the form again"),void V.push("/diagnosis/medical_info");(0,s.j)(i.nS.PHARMACY_SUBMITTED,i.E_.COMPLETED,_(_({},(0,s.$k)()),{},{userId:(null===M||void 0===M?void 0:M.objectId)??null,diagnosisId:localStorage.getItem("diagnosisID"),note:H?"saved":"manual"})),V.push(`/diagnosis/checkout?diagnosisID=${localStorage.getItem("diagnosisID")}`)}catch(a){console.error("Submission error:",a),y.toast.error("Something went wrong. Please try again.")}else y.toast.error("Please fill in all required fields.")};function ue(e){let t=e.find((e=>"TREATMENT_QUESTION"==e.type));return void 0!==t?(0,P.af)(t.value.value):JSON.parse(localStorage.getItem("diseaseData")).Price}(0,u.useEffect)((()=>
1{if(!M){const e=setTimeout((()=>{y.toast.warning("User not logged in, redirecting",{position:"bottom-center"});let e=JSON.parse(localStorage.getItem("diseaseData"));void 0!==(null===e||void 0===e?void 0:e.objectId)?V.push(`/diagnosis?diseaseID=${e.objectId}`):V.push("/services")}),7500);return()=>clearTimeout(e)}}),[M,V]);const me=!B||Y||ee;return(0,I.jsxs)("div",{className:" d-flex flex-column align-center flex-grow-1 ",children:[(0,I.jsx)(c(),{children:(0,I.jsx)("meta",{name:"robots",content:"noindex,nofollow"})}),(Y||!B)&&(0,I.jsx)(C(),{src:"https://maps.googleapis.com/maps/api/js?key=AIzaSyBgxN4GaBaHQL4ilXcYwoX5WdeMHCEdkrQ&libraries=places&v=weekly",strategy:"afterInteractive",onLoad:()=>{var e,t;return K(!(null===(e=window.google)||void 0===e||null===(t=e.maps)||void 0===t||!t.places))},onError:e=>console.error("[Maps] failed to load",e)}),(0,I.jsx)(v.Z,{TOTALSCREENS:1,current_step:"Pharmacy",currentScreen:1}),void 0==M?(0,I.jsx)("div",{className:" tw-w-full tw-h-svh tw-grid tw-place-items-center",children:(0,I.jsx)(m.Z,{size:"xl",variant:"info"})}):(0,I.jsx)("div",{className:"flex-grow-1",style:{backgroundColor:"#f5f2f1"},children:(0,I.jsxs)("div",{className:"containerFlowStep",children:[(0,I.jsxs)("h2",{className:"flowHeading tw-mb-4",children:["Enter your ",(0,I.jsx)("span",{className:"gradientText",children:"pharmacy"})," ","information"]}),(0,I.jsx)("p",{className:"tw-text-[#5f5f5f] tw-text-sm lg:tw-text-base",children:"We're here to make it easy. Just pick up the prescription."}),B&&H&&(0,I.jsx)(T,{user:M,setValue:oe,eligible_states:g,normalizeUSPhoneDigits:k,prettyUSPhone:D,onUse:async()=>{y.toast.success("Using your saved pharmacy"),await se(de)()},onChange:()=>{X(!1),J(!0)}}),me&&(0,I.jsx)("form",{onSubmit:se(de),className:" my-4",children:(0,I.jsx)(h.Z,{children:ee?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(p.Z,{className:"flowField",xs:12,children:[(0,I.jsx)("label",{children:"Pharmacy name"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput",placeholder:"e.g. Walgreens, CVS"},ne("Name"))),(0,I.jsx)("p",{className:"error-text",children:null===(t=ce.Name)||void 0===t?void 0:t.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,children:[(0,I.jsx)("label",{children:"Pharmacy address"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput",placeholder:"Street address"},ne("Street"))),(0,I.jsx)("p",{className:"error-text",children:null===(r=ce.Street)||void 0===r?void 0:r.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"City"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput"},ne("PharmacyCity"))),(0,I.jsx)("p",{className:"error-text",children:null===(a=ce.PharmacyCity)||void 0===a?void 0:a.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"ZIP Code"}),(0,I.jsx)("input",_({inputMode:"numeric",maxLength:5,onInput:e=>e.target.value=e.target.value.replace(/\D/g,"").slice(0,5),className:"flowQuestionTextInput"},ne("PharmacyZipode"))),(0,I.jsx)("p",{className:"error-text",children:null===(l=ce.PharmacyZipode)||void 0===l?void 0:l.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"State"}),(0,I.jsx)(w.Qr,{control:ie,name:"PharmacyState",render:e=>{let{field:{onChange:t,value:r}}=e;return(0,I.jsxs)(f.Z.Select,{"aria-label":"Select state",onChange:t,value:r,children:[(0,I.jsx)("option",{value:"",children:"Select state"}),(g||[]).map((e=>(0,I.jsx)("option",{value:e.name,children:e.name},e.abbreviation)))]})}}),ce.PharmacyState&&(0,I.jsx)(f.Z.Text,{className:"text-muted error",children:ce.PharmacyState.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"Pharmacy phone"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput",placeholder:"(555) 555-5555"},ne("PhoneNumber"))),(0,I.jsx)("p",{className:"error-text",children:null===(x=ce.PhoneNumber)||void 0===x?void 0:x.message})]}),(0,I.jsx)(p.Z,{xs:12,className:"tw-mb-2",children:(0,I.jsx)("button",{type:"button",className:"tw-text-doc_blue tw-text-sm tw-bg-transparent tw-border-0 tw-underline tw-p-0",onClick:()=>{te(!1),$(!1),oe("Street",""),oe("PharmacyCity",""),oe("PharmacyState",""),oe("PharmacyZipode",""),oe("PhoneNumber","")},children:"\u2190 Search by name instead"})})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(p.Z,{className:"flowField",xs:12,children:[(0,I.jsx)("label",{children:"Pharmacy name"}),(0,I.jsx)(w.Qr,{control:ie,name:"Name",render:e=>{let{field:{value:t,onChange:r}}=e;return(0,I.jsx)(O,{loaded:G,value:t,onChange:r,zip:le("PharmacyZipode"),searchToken:re,onPick:e=>{var t;if(!e)return;$(!0);const{name:r,phone:a,street:n,city:s,state:i,zip:o}=e,l=(null===(t=g.find((e=>e.abbreviation===i)))||void 0===t?void 0:t.name)||i;oe("Name",r,{shouldValidate:!0,shouldDirty:!0}),n&&oe("Street",n,{shouldValidate:!0,shouldDirty:!0}),s&&oe("PharmacyCity",s,{shouldValidate:!0,shouldDirty:!0}),l&&oe("PharmacyState",l,{shouldValidate:!0,shouldDirty:!0}),o&&oe("PharmacyZipode",o,{shouldValidate:!0,shouldDirty:!0});const c=k(a),d=D(c);d&&oe("PhoneNumber",d,{shouldValidate:!0,shouldDirty:!0})}})}}),(0,I.jsx)("p",{className:"error-text",children:null===(S=ce.Name)||void 0===S?void 0:S.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:8,children:[(0,I.jsx)("label",{children:"ZIP Co
1de"}),(0,I.jsx)("input",_({inputMode:"numeric",maxLength:5,onInput:e=>e.target.value=e.target.value.replace(/\D/g,"").slice(0,5),className:"flowQuestionTextInput"},ne("PharmacyZipode"))),(0,I.jsx)("p",{className:"error-text",children:null===(E=ce.PharmacyZipode)||void 0===E?void 0:E.message})]}),(0,I.jsx)(p.Z,{className:"flowField d-flex align-items-end justify-content-center",xs:4,children:(0,I.jsx)("button",{type:"button",className:" tw-mt-2 tw-py-[11px] tw-px-6 tw-bg-doc_blue tw-text-white tw-rounded-md tw-font-medium tw-border-0 tw-w-full",onClick:()=>{var e;((null===(e=le("Name"))||void 0===e?void 0:e.trim())||"").length<2?y.toast.info("Type a pharmacy name first (e.g., Walgreens)"):ae((e=>e+1))},children:"Search"})}),(0,I.jsx)(p.Z,{xs:12,className:"tw-mb-2",children:(0,I.jsx)("button",{type:"button",className:"tw-text-doc_blue tw-text-sm tw-bg-transparent tw-border-0 tw-underline tw-p-0",onClick:()=>{te(!0),$(!1)},children:"Can't find your pharmacy? Enter details manually"})}),W&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(p.Z,{className:"flowField",xs:12,children:[(0,I.jsx)("label",{children:"Pharmacy address"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput"},ne("Street"))),(0,I.jsx)("p",{className:"error-text",children:null===(A=ce.Street)||void 0===A?void 0:A.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"Pharmacy phone"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput"},ne("PhoneNumber"))),(0,I.jsx)("p",{className:"error-text",children:null===(F=ce.PhoneNumber)||void 0===F?void 0:F.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"City"}),(0,I.jsx)("input",_({className:"flowQuestionTextInput"},ne("PharmacyCity"))),(0,I.jsx)("p",{className:"error-text",children:null===(L=ce.PharmacyCity)||void 0===L?void 0:L.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"State"}),(0,I.jsx)(w.Qr,{control:ie,name:"PharmacyState",render:e=>{let{field:{onChange:t,value:r}}=e;return(0,I.jsxs)(f.Z.Select,{"aria-label":"Select state",onChange:t,value:r,children:[(0,I.jsx)("option",{value:"",children:"Select state"}),(g||[]).map((e=>(0,I.jsx)("option",{value:e.name,children:e.name},e.abbreviation)))]})}}),ce.PharmacyState&&(0,I.jsx)(f.Z.Text,{className:"text-muted error",children:ce.PharmacyState.message})]}),(0,I.jsxs)(p.Z,{className:"flowField",xs:12,md:6,children:[(0,I.jsx)("label",{children:"Country"}),(0,I.jsx)("input",{className:"flowQuestionTextInput",value:"United States",disabled:!0})]})]})]})})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{className:"flowParaBold text-uppercase",children:(0,I.jsxs)("span",{children:[(0,I.jsx)(R,{}),"\xa0 IMPORTANT NOTICE"]})}),(0,I.jsx)("p",{className:"flowParaBold",style:{lineHeight:"1.4"},children:"Payment made to us only covers the consultation fee. You are not buying the medication. You still have to pay for the medication at your pharmacy."}),(0,I.jsx)("p",{className:" flowSubtext",style:{lineHeight:"1.4"},children:"You may pay cash or use your insurance at the pharmacy. We generally prescribe generic and low-cost treatment unless an alternative option is selected by you. If you get to the pharmacy and the medication is too high for you, DO NOT PANIC, simply ask your pharmacist if there are any cheaper alternatives for cash pay, or which medication is on the formulary list for your insurance"}),(0,I.jsxs)("p",{className:" flowSubtext",style:{lineHeight:"1.4"},children:["With the competitive market available to patients, there are different options for you to choose from. We can easily change the medication to an alternative drug unless the brand is necessary for your treatment. Notify us with any pharmacy-related questions or issues immediately at [email protected]."," ",(0,I.jsx)("strong",{children:"By clicking next, you acknowledge that you have read and accepted these terms."})]})]}),(0,I.jsxs)("div",{className:"flex flex-column  mt-4",children:[(0,I.jsx)("button",{className:"btnWelcome mt-3",style:{width:"100%"},onClick:se(de),type:"button",children:"Continue"}),(0,I.jsx)("button",{style:{marginTop:"1rem",background:"transparent",border:"none",alignSelf:"center",width:"100%",fontSize:"14px"},onClick:()=>V.push("/diagnosis/treatment_options"),type:"button",children:"Go back"})]})]})})]})};const R=()=>(0,I.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5984 6.99844C12.5984 10.0912 10.0912 12.5984 6.99844 12.5984C3.90564 12.5984 1.39844 10.0912 1.39844 6.99844C1.39844 3.90564 3.90564 1.39844 6.99844 1.39844C10.0912 1.39844 12.5984 3.90564 12.5984 6.99844ZM7.69844 4.19844C7.69844 4.58504 7.38504 4.89844 6.99844 4.89844C6.61184 4.89844 6.29844 4.58504 6.29844 4.19844C6.29844 3.81184 6.61184 3.49844 6.99844 3.49844C7.38504 3.49844 7.69844 3.81184 7.69844 4.19844ZM6.29844 6.29844C5.91184 6.29844 5.59844 6.61184 5.59844 6.99844C5.59844 7.38504 5.91184 7.69844 6.29844 7.69844V9.79844C6.29844 10.185 6.61184 10.4984 6.99844 10.4984H7.69844C8.08504 10.4984 8.39844 10.185 8.39844 9.79844C8.39844 9.41184 8.08504 9.09844 7.69844 9.09844V6.99844C7.69844 6.61184 7.38504 6.29844 6.99844 6.29844H6.29844Z",fill:"#0F0F0F"})})},82494:function(e,t,r){"use strict";r.d(t,{g:function(){return u},l:function(){return d}});var a=r(59499),n=r(67294),s=r(11163),i=r(25724),o=r(9198);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const s=(0,n.useRef)(t);s.current=t;const l=(0,n.useRef)(r);l.current=r,(0,n.useEffect)((()=>{if(!a)return;const t=s.current,r="function"===typeof t?t(e):null===t||void 0===t?void 0:t[e];null!==r&&void 0!==r&&r.key&&(0,i.j)(r.key,r.eventType||o.E_.VIEWED,c(c(c(c({},(0,i.$k)()),l.current),r.note?{note:r.note}:{}),{},{status:String(e)}))}),[e,a])}function u(e){const{events:t}=(0,s.useRouter)(),r=(0,n.useRef)(e);r.current=e,(0,n.useEffect)((()=>{let e=!1;const a=t=>{const a=String(t).split(/[?#]/)[0];a&&a!==window.location.pathname&&(e=!0,a.startsWith("/diagnosis")||(0,i.j)(o.nS.FLOW_EXIT,o.E_.COMPLETED,c(c({},(0,i.$k)()),{},{note:String(t).slice(0,120),status:r.current||void 0})))};t.on("routeChangeStart",a);const n=e=>a(String(e.detail||""));window.addEventListener("app:hard-navigation",n);let s=!1;const l=()=>{e||s||(s=!0,(0,i.j)(o.nS.FLOW_EXIT,o.E_.COMPLETED,c(c({},(0,i.$k)()),{},{note:"closed",status:r.current||void 0,beacon:!0})))};return window.addEventListener("pagehide",l),()=>{t.off("routeChangeStart",a),window.removeEventListener("app:hard-navigation",n),window.removeEventListener("pagehide",l)}}),[t])}},46787:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/diagnosis/pharmacy_info",function(){return r(75164)}])},71260:function(e,t,r){"use strict";var a=r(19924),n=r(26401),s=r(44210);e.exports=function(e,t,r){if("undefined"===typeof e)throw new Error("randomatic expects a string or number.");var o=!1;1===arguments.length&&("string"===typeof e?t=e.length:a(e)&&(r={},t=e,e="*"));"object"===n(t)&&t.hasOwnProperty("chars")&&(e=(r=t).chars,t=e.length,o=!0);var l=r||{},c="",d="";-1!==e.indexOf("?")&&(c+=l.chars);-1!==e.indexOf("a")&&(c+=i.lower);-1!==e.indexOf("A")&&(c+=i.upper);-1!==e.indexOf("0")&&(c+=i.number);-1!==e.indexOf("!")&&(c+=i.special);-1!==e.indexOf("*")&&(c+=i.all);o&&(c+=e);if(l.exclude){var u="string"===n(l.exclude)?l.exclude:l.exclude.join("");u=u.replace(new RegExp("[\\]]+","g"),""),c=c.replace(new RegExp("["+u+"]+","g"),""),-1!==l.exclude.indexOf("]")&&(c=c.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)d+=c.charAt(parseInt(s()*c.length,10));return d},e.exports.isCrypto=!!s.cryptographic;var i={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};i.all=i.lower+i.upper+i.number+i.special}},function(e){e.O(0,[3662,120,9638,7171,9774,2888,179],(function(){return t=46787,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=pharmacy_info-da7076e18ba7c124.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.