PageSourceSearch

https://www.famasi.africa/assets/chunks/chunk-kI4SRilI.js

js famasi.africa collected 2026-09-24 11:42:34 UTC 29,557 bytes, 1 lines download raw bytes

1import{R as x,j as e,r as l,a as U,e as me,m as xe,O as R}from"./chunk-DTTAq8le.js";import{f as ue,p as he,t as H,M as Y,u as Z,k as fe,C as ge,F as be,R as we}from"./chunk-DgK-84Bn.js";import{A as ve,m as f}from"./chunk-DrYkULPN.js";const je=1800*1e3,T={version:1,med:{medList:[],prescription:null,recurringSettings:null},delivery:{orderFor:""},offers:{orderId:void 0,bids:[],selectedOfferId:void 0},discount:{pendingCode:null,appliedDiscount:null},orderMeta:{},ui:{currentStep:"MED",isSaving:!1,pendingOrderSubmit:!1,pendingOrderSubmitAt:null},analytics:{stepEnteredAt:{},stepDurations:{}}};function ye(t){return t?{name:t.name,mimeType:t.mimeType,size:t.size}:null}const P=ue()(he((t,s)=>({...T,setMedList:r=>t(a=>({med:{...a.med,medList:r}})),setPrescription:r=>t(a=>({med:{...a.med,prescription:r}})),setDelivery:r=>t(a=>({delivery:{...a.delivery,...r}})),setOffers:r=>t(a=>({offers:{...a.offers,...r}})),setDiscount:r=>t(a=>({discount:{...a.discount,appliedDiscount:r}})),setDiscountCode:r=>t(a=>({discount:{...a.discount,pendingCode:r}})),setOrderMeta:r=>t(a=>({orderMeta:{...a.orderMeta,...r}})),startNewOrderOfferSession:r=>t(a=>({offers:{orderId:r.orderId?String(r.orderId):void 0,bids:[],selectedOfferId:void 0},discount:{pendingCode:null,appliedDiscount:null},orderMeta:{...r},ui:{...a.ui,currentStep:"OFFERS",pendingOrderSubmit:!1,pendingOrderSubmitAt:null}})),clearOfferSession:()=>t(r=>({offers:{orderId:void 0,bids:[],selectedOfferId:void 0},discount:{pendingCode:null,appliedDiscount:null},orderMeta:{},ui:{...r.ui,currentStep:"MED",pendingOrderSubmit:!1,pendingOrderSubmitAt:null}})),setUi:r=>t(a=>({ui:{...a.ui,...r}})),markStepEntered:r=>{const a=Date.now();t(n=>({analytics:{...n.analytics,stepEnteredAt:{...n.analytics.stepEnteredAt,[r]:a}}}))},markStepExited:r=>{const a=Date.now(),n=s().analytics.stepEnteredAt[r],i=n?a-n:0;t(o=>({analytics:{...o.analytics,stepDurations:{...o.analytics.stepDurations,[r]:i}}}))},setRecurringSettings:r=>t(a=>({med:{...a.med,recurringSettings:r}})),setPendingOrderSubmit:r=>t(a=>({ui:{...a.ui,pendingOrderSubmit:r,pendingOrderSubmitAt:r?Date.now():null}})),reset:()=>t(()=>({...T}))}),{name:"order-flow-storage-v1",partialize:t=>({...t,med:{...t.med,prescription:ye(t.med.prescription??null)}}),migrate:t=>t}));function Qe(){const{pendingOrderSubmit:t,pendingOrderSubmitAt:s}=P.getState().ui;return!t||!s?!0:Date.now()-s>je}var Q={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},W=x.createContext&&x.createContext(Q),Ne=["attr","size","title"];function _e(t,s){if(t==null)return{};var r=Le(t,s),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)a=i[n],!(s.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function Le(t,s){if(t==null)return{};var r={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){if(s.indexOf(a)>=0)continue;r[a]=t[a]}return r}function L(){return L=Object.assign?Object.assign.bind():function(t){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},L.apply(this,arguments)}function $(t,s){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);s&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function C(t){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?$(Object(r),!0).forEach(function(a){Ce(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function Ce(t,s,r){return s=Oe(s),s in t?Object.defineProperty(t,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[s]=r,t}function Oe(t){var s=ke(t,"string");return typeof s=="symbol"?s:s+""}function ke(t,s){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(t)}function q(t){return t&&t.map((s,r)=>x.createElement(s.tag,C({key:r},s.attr),q(s.child)))}function u(t){return s=>x.createElement(Fe,L({attr:C({},t.attr)},s),q(t.child))}function Fe(t){var s=r=>{var{attr:a,size:n,title:i}=t,o=_e(t,Ne),h=n||r.size||"1em",m;return r.className&&(m=r.className),t.className&&(m=(m?m+" ":"")+t.className),x.createElement("svg",L({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},r.attr,a,o,{className:m,style:C(C({color:t.color||r.color},r.style),t.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),i&&x.createElement("title",null,i),t.children)};return W!==void 0?x.createElement(W.Consumer,null,r=>s(r)):s(Q)}function G(t){return u({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(t)}function V(t){return u({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z"},child:[]}]})(t)}function qe(t){return u({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function Ke(t){return u({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function Xe(t){return u({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(t)}function Je(t){return u({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(t)}const Se="/assets/static/logotrial-1.DgurLEkD.svg",Pe=({href:t,onClick:s,buttonClassName:r="",className:a="",variant:n="default"})=>n==="compact"?e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"flex justify-center",children:e.jsxs("div",{className:"group relative h-[48px] w-[280px] sm:w-[260px] lg:w-[320px]",children:[e.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",onClick:s,className:`absolute inset-0 inline-flex items-center overflow-hidden rounded-full border border-[#D5E3F0] bg-[#EEF4FB] text-center shadow-[0_8px_18px_rgba(0,26,76,0.05)] ${r}`.trim(),children:[e.jsx("span",{className:"flex min-w-0 flex-[1.1] items-center justify-center px-3 text-[11px] font-semibold text-[#486683]",children:e.jsx("span",{className:"truncate",children:"Get the app"})}),e.jsx("span",{className:"h-5 w-px bg-[#D5E3F0]"}),e.jsxs("span",{className:"app-store-btn relative flex min-w-0 flex-1 items-center justify-center gap-1.5 px-2.5 text-[11px] font-semibold text-[#486683] cursor-pointer hover:text-[#0D78F2]",children:[e.jsx(G,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"truncate",children:"App Store"})]}),e.jsx("span",{className:"h-5 w-px bg-[#D5E3F0]"}),e.jsxs("span",{className:"play-store-btn relative flex min-w-0 flex-1 items-center justify-center gap-1.5 px-2.5 text-[11px] font-semibold text-[#486683] cursor-pointer hover:text-[#0D78F2]",children:[e.jsx(V,{className:"h-3 w-3"}),e.jsx("span",{className:"truncate",children:"Play Store"})]})]}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-40 hidden bg-black/20 backdrop-blur-sm transition-all duration-300 lg:group-hover:block"}),e.jsx("div",{className:"absolute bottom-full left-1/2 z-50 mb-2 hidden -translate-x-1/2 lg:group-hover:flex hover:flex",children:e.jsxs("div",{className:"relative rounded-[20px] border border-[#
1E1EAF5] bg-white p-4 shadow-[0_20px_50px_rgba(0,26,76,0.25)]",children:[e.jsx("img",{src:H,alt:"Famasi app download QR code",className:"h-[160px] w-[160px]"}),e.jsx("div",{className:"absolute left-1/2 top-1/2 flex h-10 w-10 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-[10px] bg-white shadow-[0_4px_12px_rgba(0,26,76,0.16)]",children:e.jsx("img",{src:Y,alt:"","aria-hidden":"true",className:"h-5 w-5"})}),e.jsx("p",{className:"mt-2 text-center text-[12px] font-semibold text-[#546687]",children:"Scan to install"})]})})]})})}):e.jsx("div",{className:`group w-full ${a}`.trim(),children:e.jsxs("div",{className:"relative overflow-hidden rounded-[28px] border border-[#D7E3F4] bg-white text-left shadow-[0_20px_50px_rgba(0,26,76,0.08)] transition-transform duration-200 hover:-translate-y-0.5",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(135deg,rgba(248,251,255,0.95)_0%,rgba(240,246,255,0.92)_45%,rgba(232,242,251,0.98)_100%)]"}),e.jsx("div",{className:"absolute inset-y-0 right-0 hidden w-[180px] bg-[radial-gradient(circle_at_center,rgba(13,120,242,0.08),transparent_68%)] lg:block"}),e.jsxs("div",{className:"relative flex flex-col gap-5 p-5 lg:flex-row lg:items-center",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"font-bricolage text-[28px] font-semibold leading-[1] tracking-[-0.03em] text-[#001A4C]",children:"Order, refill, and track faster in the app"}),e.jsx("p",{className:"mt-2 max-w-[40ch] text-[15px] leading-6 text-[#546687]",children:"Get quicker reorders, live order tracking, and smoother checkout on iPhone and Android."}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-2.5",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#D8E5F6] bg-[#F8FBFF] px-3 py-2 text-sm font-semibold text-[#001A4C]",children:[e.jsx(G,{className:"h-4 w-4 text-[#001A4C]"}),"App Store"]}),e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#D8E5F6] bg-[#F8FBFF] px-3 py-2 text-sm font-semibold text-[#001A4C]",children:[e.jsx(V,{className:"h-3.5 w-3.5 text-[#0D78F2]"}),"Google Play"]})]}),e.jsx("div",{className:"mt-4",children:e.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",onClick:s,className:`primarybuttonxl inline-flex w-full items-center justify-center text-center md:w-fit ${r}`.trim(),children:"Get the app"})})]}),e.jsx("div",{className:"hidden lg:block lg:flex-shrink-0",children:e.jsx("div",{className:"max-w-0 overflow-hidden opacity-0 translate-x-2 transition-all duration-300 ease-out group-hover:max-w-[152px] group-hover:translate-x-0 group-hover:opacity-100",children:e.jsxs("div",{className:"rounded-[22px] border border-[#D7E3F4] bg-white/95 p-3 shadow-[0_16px_34px_rgba(0,26,76,0.08)]",children:[e.jsx("img",{src:H,alt:"Famasi app download QR code",className:"h-[124px] w-[124px]"}),e.jsx("p",{className:"mt-2 text-center text-[11px] font-semibold tracking-[0.02em] text-[#546687]",children:"Scan to install"})]})})})]})]})}),Ee="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.65503%207.35938L14.8576%207.35937L14.8576%2012.562'%20stroke='black'%20stroke-width='1.09091'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.57227%2014.6406L14.7848%207.42814'%20stroke='black'%20stroke-width='1.09091'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Me="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.9667%2010.0516L15.8417%2011.3682C15.6334%2011.6182%2015.4584%2012.0849%2015.4584%2012.4182V13.8349C15.4584%2014.7182%2014.7334%2015.4432%2013.8501%2015.4432H12.4334C12.1001%2015.4432%2011.6251%2015.6182%2011.3751%2015.8266L10.0584%2016.9516C9.4834%2017.4432%208.54173%2017.4432%207.96673%2016.9516L6.6334%2015.8266C6.3834%2015.6182%205.91673%2015.4432%205.5834%2015.4432H4.14173C3.2584%2015.4432%202.5334%2014.7182%202.5334%2013.8349V12.4182C2.5334%2012.0932%202.36673%2011.6266%202.1584%2011.3766L1.0334%2010.0516C0.550065%209.46823%200.550065%208.5349%2
101.0334%207.96823L2.1584%206.64323C2.36673%206.40156%202.5334%205.92656%202.5334%205.60156V4.17656C2.5334%203.29323%203.2584%202.56823%204.14173%202.56823H5.59173C5.91673%202.56823%206.39173%202.39323%206.64173%202.18489L7.9584%201.05989C8.5334%200.568228%209.47507%200.568228%2010.0501%201.05989L11.3667%202.18489C11.6167%202.39323%2012.0834%202.56823%2012.4167%202.56823H13.8334C14.7167%202.56823%2015.4417%203.29323%2015.4417%204.17656V5.59323C15.4417%205.92656%2015.6167%206.39323%2015.8251%206.64323L16.9501%207.9599C17.4584%208.52656%2017.4584%209.46823%2016.9667%2010.0516ZM8.37506%2012.2266C8.37506%2012.5682%208.6584%2012.8516%209.00006%2012.8516C9.34173%2012.8516%209.62506%2012.5682%209.62506%2012.2266V8.20156C9.62506%207.8599%209.34173%207.57656%209.00006%207.57656C8.6584%207.57656%208.37506%207.8599%208.37506%208.20156V12.2266ZM9.00006%204.94323C8.54173%204.94323%208.16673%205.31823%208.16673%205.77656C8.16673%206.2349%208.5334%206.6099%209.00006%206.6099C9.4584%206.6099%209.8334%206.2349%209.8334%205.77656C9.8334%205.31823%209.46673%204.94323%209.00006%204.94323Z'%20fill='white'/%3e%3c/svg%3e",Ae="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5544%206.54311L4.34836%2010.8886C3.92412%2011.1431%203.37866%2010.8401%203.37866%2010.3431V5.49462C3.37866%203.37947%205.66351%202.05826%207.49987%203.11281L10.2817%204.71281L11.5484%205.44008C11.9665%205.68856%2011.9726%206.29463%2011.5544%206.54311Z'%20fill='%23001A4C'/%3e%3cpath%20d='M12.3721%207.50977C12.5304%207.41478%2012.7111%207.51491%2012.7344%207.66113H12.7354C12.8652%208.46599%2012.5329%209.3224%2011.7373%209.7793H11.7363L9.28223%2011.1973L6.83301%2012.6094C6.08295%2013.0381%205.24181%2012.9498%204.63086%2012.5186L4.62793%2012.5166L4.58887%2012.4814C4.55608%2012.4424%204.53999%2012.3907%204.54395%2012.3311C4.54942%2012.2492%204.59323%2012.1724%204.66699%2012.1289L4.66895%2012.1279L12.3721%207.50977Z'%20fill='%23001A4C'%20stroke='%23001A4C'%20stroke-width='0.727273'/%3e%3c/svg%3e",De=()=>{const[t,s]=l.useState(!1),r=l.useRef(null);l.useEffect(()=>{if(!t)return;const n=i=>{r.current&&!r.current.contains(i.target)&&s(!1)};return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[t]);const a=[{href:"https://api.whatsapp.com/send/?phone=2349155791554",label:"Text a Care Specialist",icon:Ee,iconAlt:"Open WhatsApp"},{href:"https://www.instagram.com/reel/DLCrLzMor_t/?igsh=Y2F2bmZ0NnpxNTNr",label:"Watch demo",icon:Ae,iconAlt:"Play demo"}];return e.jsxs("div",{ref:r,className:"fixed bottom-5 right-4 z-[70] flex flex-col items-end md:bottom-6 md:right-6 msd:bottom-20",children:[e.jsx(ve,{children:t&&e.jsxs(f.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"mb-3 w-[min(280px,calc(100vw-2rem))] space-y-2 rounded-[20px] border border-[#E4ECF6] bg-white p-3 shadow-[0_24px_54px_rgba(0,26,76,0.2)] msd:w-[320px]",children:[e.jsx("p",{className:"px-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-[#6E8298]",children:"Need help fast?"}),a.map((n,i)=>e.jsxs("div",{children:[i>0?e.jsx("hr",{className:"border-t border-gray-200"}):null,e.jsxs("a",{href:n.href,className:"flex w-full items-center justify-between gap-4 rounded-2xl px-3 py-3 text-sm font-semibold text-[#1D3557] no-underline transition-colors hover:bg-[#F5F9FF]",target:"_blank",rel:"noopener noreferrer",children:[e.jsx("span",{children:n.label}),e.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-[#EAF2FB]",children:e.jsx("img",{src:n.icon,alt:n.iconAlt,width:16,height:16})})]})]},n.label))]})}),e.jsxs(f.button,{onClick:()=>s(n=>!n),whileTap:{scale:.9},className:"flex h-12 w-12 items-center justify-center rounded-full border border-white/40 bg-[#3D93F5] shadow-[0_18px_40px_rgba(13,120,242,0.36)] msd:h-12 msd:w-auto msd:min-w-[114px] msd:gap-2 msd:px-3.5","aria-label":t?"Close help menu":"Open help menu",children:[e.jsx(f.img,{src:Me,alt:"",width:24,height:24,animate:{rotate:t?45:0},transition:{duration:.2}}),e.jsx("span",{className:"hidden text-[13px] font-semibold text-white msd:inline",children:"Help"})]})]})},Ie=[{href:"https://www.famasi.me/",label:"Learn more",external:!0},{href:"/blog",label:"Blog"},{href:"https://forms.zohopublic.com/famasiafrica/form/ReferaPharmacyForm/formperma/QeKcH0NF0iK-IvnW1YQUGGGHSa32U0-aju-W1zNgmeM",label:"Refer a Pharmacy",external:!0},{href:"/legal/terms-of-use",label:"Legal"}],K=({className:t="",tone:s="default",showDividers:r=!0})=>e.jsx("div",{className:`flex w-full items-center gap-3 my-2 md:mt-0 md:gap-5 ${t}`,"data-oid":"51v-7s0",children:Ie.map((a,n)=>e.jsxs(x.Fragment,{children:[n>0&&r?e.jsx("span",{className:`text-[18px] font-black leading-none ${s==="inverse"?"text-white":"text-[#001A4C]"} mx-0.5 md:mx-1`,children:"•"}):null,e.jsx("a",{href:a.href,target:a.external?"_blank":void 0,rel:a.external?"noopener noreferrer":void 0,className:`whitespace-nowrap text-[13px] font-semibold underline decoration-2 underline-offset-[5px] transition-colors sm:text-[15px] ${s==="inverse"?"text-white/92 decoration-white/75 hover:text-white":"text-[#6E8298] decoration-[#6E8298] hover:text-[#001A4C] hover:decoration-[#001A4C]"} px-0.5`,children:a.label})]},a.label))}),ze=()=>e.jsx("div",{className:"msd:hidden absolute bottom-6 left-0 right-0 z-40 flex w-full justify-center px-6",children:e.jsx(K,{className:"my-0 justify-center",tone
1:"inverse",showDividers:!0})}),Be=({openLogin:t})=>{const{token:s}=Z(),r=U(),[a,n]=l.useState(!1);l.useEffect(()=>{l.startTransition(()=>n(!0))},[]);const i=()=>{r("/dashboard",{replace:!0})};return e.jsx("div",{"data-oid":"yi49b75",children:a&&s?e.jsxs("div",{className:"text-white md:text-white  text-sm font-body font-normal cursor-pointer bg-white bg-opacity-30 px-5 py-2.5 rounded-3xl backdrop-blur-md",onClick:i,"data-oid":"e6xx99l",children:[" ","Dashboard"]}):e.jsxs("div",{className:"text-white md:text-white  text-sm font-body font-normal cursor-pointer bg-white bg-opacity-30 px-5 py-2.5 rounded-3xl backdrop-blur-md",onClick:()=>t(),"data-oid":"wc9btu6",children:[" ","Login"]})})};function Re(t){return u({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"},child:[]}]})(t)}function et(t){return u({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216.4 163.7c5.1 5 5.1 13.3.1 18.4L155.8 243h231.3c7.1 0 12.9 5.8 12.9 13s-5.8 13-12.9 13H155.8l60.8 60.9c5 5.1 4.9 13.3-.1 18.4-5.1 5-13.2 5-18.3-.1l-82.4-83c-1.1-1.2-2-2.5-2.7-4.1-.7-1.6-1-3.3-1-5 0-3.4 1.3-6.6 3.7-9.1l82.4-83c4.9-5.2 13.1-5.3 18.2-.3z"},child:[]}]})(t)}const He="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.97533%204.94141L2.91699%209.99974L7.97533%2015.0581'%20stroke='%23495766'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.0836%2010H3.05859'%20stroke='%23495766'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",S=[{key:"MED",label:"Medication details",path:"/"},{key:"DELIVERY",label:"Delivery details",path:"/delivery-details"},{key:"OFFERS",label:"Confirm price",path:"/offers"}],p={title:"Your medications, delivered today and every month",subtitle:"Never run out of your medications with free follow-ups and best prices across 1000+ pharmacies."},Te="https://onelink.to/w7bjdv";function We({medNameFromRoute:t,locationContext:s}){const r=fe(),a=me(),n=U(),i=a.pathname.replace(/\/+$/,""),o=(()=>{const d=S.findIndex(c=>c.path===i||c.path!=="/"&&i.startsWith(c.path));return d===-1?0:d})(),h=P(d=>d.med.medList),m=P(d=>d.setMedList),[O,w]=l.useState(()=>t||s?"Find best prices for":p.title),[k,v]=l.useState(()=>t||(s?`medications in ${s}`:"")),[X,j]=l.useState(()=>t?"Across 1000+ pharmacies.":s?"Delivered in 1 hour.":p.subtitle),[E,M]=l.useState(!1),[$e,A]=l.useState(!1),[J,y]=l.useState(!1),[ee,N]=l.useState(!1),[te,_]=l.useState(!1),g=()=>{y(!0),N(!1),_(!1)},re=()=>{y(!1)},ae=()=>{N(!0),y(!1),_(!1)},se=()=>{N(!1)},D=()=>{_(!0),N(!1),y(!1)},ne=()=>{_(!1)},I=o>0?S[o-1].path:"/",{refreshProfile:z,profile:B}=Z();l.useEffect(()=>{B?.id||z().catch(()=>{})},[B?.id,z]),l.useEffect(()=>{const d=t,c=d?{params:{medName:d}}:xe("/find/:medName",a.pathname);if(c&&c.params&&c.params.medName&&!E){const de=c.params.medName;A(!0),(async()=>{try{const F=(await(await fetch(`https://dispensaryapi.famasi.africa/api/v1/patients/products?page=1&search=${encodeURIComponent(de)}`)).json())?.data||[];if(Array.isArray(F)&&F.length>0){const b=F[0];h.findIndex(pe=>pe.id===b.id)===-1&&m([...h,{id:b.id,Product_Name:b.Product_Name,quantity:1,Selling_Price:b.Selling_Price??void 0}]),w("Find best prices for"),v(b.Product_Name),j("Across 1000+ pharmacies.")}else w(p.title),v(""),j(p.subtitle)}catch{w(p.title),v(""),j(p.subtitle)}finally{A(!1),M(!0)}})()}else c||(M(!1),!t&&!s&&(w(p.title),v(""),j(p.subtitle)))},[a.pathname,E,t,h,m]);const ie="inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -12px 22px rgba(13,120,242,0.14), 0 14px 36px rgba(13,120,242,0.14)",le=o<2?"max-w-[620px]":"max-w-[920px]",oe=`${(o+1)/S.length*100}%`;return e.jsx("div",{className:"relative min-h-screen overflow-x-hidden bg-[#EAF2FB]",children:e.jsxs("main",{className:"relative min-h-screen overflow-x-hidden bg-cover bg-center bg-no-repeat text-white",style:{backgroundImage:"url('https://www.artic.edu/iiif/2/3ef69544-a84c-dfa4-df6a-346b4b59c351/full/843,/0/default.jpg')"},children:[e.jsx("div",{className:"absolute inset-0 bg-[rgba(5,18,44,0.08)] backdrop-blur-[2.5px]"}),e.jsx("div",{className:"absolute inset-x-0 top-0 h-[260px] bg-[linear-gradient(180deg,rgba(5,18,44,0.14)_0%,rgba(5,18,44,0.05)_58%,transparent_100%)]"}),e.jsx("div",{className:"absolute left-0 right-0 top-4 z-50 px-4 sm:top-5 sm:px-6 lg:top-6 lg:px-8",children:e.jsxs("div",{className:"mx-auto grid max-w-7xl grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 lg:gap-6",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2 sm:gap-3 lg:gap-4",children:[e.jsxs("a",{href:"/","aria-label":"Famasi home",className:"flex items-center",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-white/95 shadow-[0_10px_24px_rgba(0,26,76,0.18)] msd:hidden",children:e.jsx("img",{src:Y,alt:"Famasi",className:"h-5 w-5 object-contain"})}),e.jsx("img",{src:Se,alt:"Famasi",className:"hidden h-8 w-auto object-contain drop-shadow-[0_12px_28px_rgba(0,18,48,0.28)] msd:block"})]}),o!==0&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>n(I),className:"flex h-10 w-10 items-center justify-center rounded-full bg-white/92 shadow-[0_10px_24px_rgba(0,26,76,0.18)] lg:hidden",children:e.jsx("img",{src:He,alt:"Back",className:"h-5 w-5"})}),e.jsxs("button",{onClick:()=>n(I),className:"hidden items-center gap-2 rounded-full bg-white/12 px-4 py-2 text-sm font-medium text-white backdrop-blur-md lg:flex",children:[e.jsx(Re,{}),"Back"]})]})]}),e.jsx("div",{className:"flex min-w-0 items-center justify-center px-1",children:e.jsxs("a",{href:"https://dub.sh/How-We-Cared",target:"_blank",rel:"noopener noreferrer",className:"group relative inline-flex max-w-full items-center justify-center overflow-hidden rounded-full px-3.5 py-2.5 text-center text-[12px] font-extrabold leading-none text-[#F8FBFF] backdrop-blur-[18px] sm:px-4 sm:text-[13px] lg:min-w-[360px] lg:px-6 lg:py-3 lg:text-[15px]",style:{background:"linear-gradient(135deg, rgba(231,242,254,0.34) 0%, rgba(245,248,255,0.26) 40%, rgba(93,165,246,0.22) 100%)",boxShadow:ie},children:[e.jsx("span",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top,rgba(255,255,255,0.22),transparent_58%)] opacity-95"}),e.jsx("span",{className:"absolute inset-0 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.02)]"}),e.jsx("span",{className:"absolute inset-0 bg-[linear-gradient(90deg,rgba(255,255,255,0.08),transparent_32%,rgba(93,165,246,0.12)_100%)]"}),e.jsx("span",{className:"order-flow-pill-shimmer absolute inset-y-0 -left-1/3 w-1/3 bg-[linear-gradient(90deg,transparent_0%,rgba(255,255,255,0.08)_36%,rgba(255,255,255,0.26)_50%,rgba(255,255,255,0.08)_64%,transparent_100%)]"}),e.jsx("span",{className:"relative z-10 hidden whitespace-nowrap lg:block",children:'See our annual "How We Cared" for 2025'}),e.jsx("span",{className:"relative z-10 whitespace-nowrap lg:hidden",children:"How We Cared 2025"})]})}),e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(Be,{openLogin:g})})]})}),e.jsxs("div",{className:"relative z-10 mx-auto flex min-h-screen w-full max-w-7xl flex-col px-4 pb-10 pt-[108px] sm:px-6 sm:pt-[124px] lg:px-8 lg:pb-14 lg:pt-[152px]",children:[e.jsxs("div",{className:"mx-auto w-full max-w-[980px]",children:[e.jsxs("div",{className:"relative mx-auto max-w-[760px] text-center",children:[k?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mx-auto inline-flex items-center rounded-full border border-white/15 bg-white/10 px-5 py-2.5 font-bodymedium text-[12px] font-semibold uppercase tracking-[0.22em] text-[#EAF3FE] shadow-[0_12px_30px_rgba(0,26,76,0.14)] backdrop-blur-xl sm:text-[13px]",children:O}),e.jsx("h1",{className:"mx-auto mt-4 max-w-[12ch] font-bricolage text-[42px] font-semibold leading-[0.98] tracking-[-0.04em] whitespace-pre-line text-white drop-shadow-[0_18px_40px_rgba(0,24,60,0.22)] sm:text-[54px] lg:text-[68px]",title:k,children:k})]}):e.jsx("h1",{className:"mx-auto max-w-[15ch] text-[38px] font-extrabold leading-[0.98] tracking-[-0.04em] text-white drop-shadow-[0_18px_40px_rgba(0,24,60,0.22)] sm:max-w-[18ch] sm:text-[44px] lg:max-w-[28ch] lg:text-[56px]",style:{fontFamily:'"Bricolage Grotesque", sans-serif',fontWeight:800},children:O===p.title?e.jsxs(e.Fragment,{children:["Your medications,",e.jsx("br",{}),"delivered today & every month"]}):O}),e.jsx("p",{className:"mx-auto mt-5 max-w-[800px] text-center font-body text-[15px] leading-7 text-[#EAF2FB] sm:text-[17px] sm:whitespace-nowrap lg:text-[18px]",children:X})]}),e.jsx("div",{className:"mt-8 lg:mt-10",children:e.jsxs("div",{className:`mx-auto w-full ${le}`,children:[o<2?e.jsxs("div",{className:"overflow-hidden rounded-[26px] border border-[#
1E1EAF5] bg-white shadow-[0_28px_70px_rgba(0,26,76,0.22)] md:rounded-[34px]",children:[e.jsx("div",{className:"relative h-[6px] w-full bg-[#DCE7F5]",children:e.jsx(f.div,{className:"absolute inset-y-0 left-0 rounded-r-full bg-gradient-to-r from-crayolablue-500 to-crayolablue-300 shadow-[0_0_18px_rgba(13,120,242,0.28)]",animate:{width:oe},transition:{duration:.28,ease:"easeOut"}})}),e.jsx("div",{className:"max-w-full px-6 py-6 md:px-8 md:py-8",children:e.jsx(f.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.18},children:e.jsx(R,{context:{openLoginModal:g}})},i)})]}):e.jsx(f.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.18},children:e.jsx(R,{context:{openLoginModal:g}})},i),o===0&&e.jsx("div",{className:"mt-4 flex justify-center lg:mt-5",children:e.jsx(Pe,{href:Te,variant:"compact",className:"max-w-[540px]",onClick:()=>{r.capture("clicked_download_app_via_home_order_flow")}})})]})})]}),e.jsx("div",{className:"mt-auto hidden lg:block",children:e.jsx("div",{className:"mx-auto flex max-w-[980px] justify-center",children:e.jsx("div",{className:"px-5 py-4",children:e.jsx(K,{className:"my-0 justify-center",tone:"inverse",showDividers:!0})})})})]}),e.jsx(ze,{}),e.jsx(De,{}),e.jsx(ge,{isOpen:J,onClose:re,openForgotPassword:ae}),e.jsx(be,{isOpen:ee,onClose:se,openLoginModal:g,openResetPasswordModal:D}),e.jsx(we,{isOpen:te,onClose:ne,openLoginModal:g,openResetModal:D})]})})}const tt=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));export{Ee as A,Je as F,u as G,et as I,K as L,We as O,Xe as a,Ke as b,qe as c,tt as d,Qe as i,P as u};

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.