PageSourceSearch

https://zuri.health/_next/static/chunks/pages/dashboard/drug-refill-d409d4b2e09cee20.js

js zuri.health collected 2026-10-01 15:28:47 UTC 19,373 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4996],{38178:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/drug-refill",function(){return t(78528)}])},78528:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return drug_refill}});var s=t(85893),l=t(67294),n=t(99429),r=t(25675),i=t.n(r),c=t(9473),o=t(55678),d=t(57822),u=t(96249),m=t(46676);let errorMessage=(e,a)=>"string"==typeof e?e:(null==e?void 0:e.message)||a;var ContinuousCare_BasketCard=e=>{let{saved:a,item_type:t,basket_type:n}=e,r=(0,c.I0)(),h=(0,c.v9)(e=>e.auth.user),{basket:x,loading:f}=(0,c.v9)(e=>e.basket),[p,b]=(0,l.useState)(!1),handleDelete=async()=>{if(null==h?void 0:h._id)try{await r((0,d.pX)({item_type:t,patient_id:h._id,item_id:a.product_id})).unwrap(),o.Am.success("Saved item removed.")}catch(e){o.Am.error(errorMessage(e,"Failed to remove the saved item."))}},handleAddToBasket=async e=>{try{await r((0,d.mk)({basket_type:n,patient_id:h._id,basket_id:e,payload:{product:[{id:a.product_id,source:a.source}]}})).unwrap(),o.Am.success("Item added to basket"),b(!1)}catch(e){o.Am.error(errorMessage(e,"Failed to add the item to the basket."))}};return(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 py-4",children:[(0,s.jsx)(i(),{src:"/assets/ccpDahsboard/drug.png",alt:"",width:60,height:60,className:"h-12 w-12 shrink-0 object-contain sm:h-14 sm:w-14"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-y-1",children:[(0,s.jsx)("p",{className:"line-clamp-2 break-words font-nunito text-sm font-semibold text-black",children:a.name}),(0,s.jsxs)("p",{className:"font-nunito text-sm font-bold text-zuri-teal-800",children:[a.currency," ",a.price]})]}),(0,s.jsxs)("div",{className:"flex w-full shrink-0 items-center justify-end gap-1 sm:w-auto",children:[(0,s.jsx)("button",{type:"button",className:u.Kt,onClick:()=>{(null==h?void 0:h._id)&&r((0,d.br)({basket_type:n,patient_id:h._id})),b(!0)},children:"Move to Basket"}),(0,s.jsx)("button",{type:"button","aria-label":"Remove ".concat(a.name," from saved items"),className:"".concat(u.yS," text-zuri-pink-600"),onClick:handleDelete,children:(0,s.jsxs)("svg",{"aria-hidden":"true",focusable:"false",width:"13",height:"15",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M15.8203 2.34375H12.8906V1.75781C12.8906 0.788555 12.1021 0 11.1328 0H6.44531C5.47605 0 4.6875 0.788555 4.6875 1.75781V2.34375H1.75781C0.788555 2.34375 0 3.1323 0 4.10156C0 4.88 0.508789 5.54145 1.21113 5.77191L2.25625 18.3881C2.33152 19.292 3.10098 20 4.00797 20H13.5702C14.4772 20 15.2466 19.292 15.322 18.3879L16.367 5.77187C17.0693 5.54145 17.5781 4.88 17.5781 4.10156C17.5781 3.1323 16.7896 2.34375 15.8203 2.34375ZM5.85938 1.75781C5.85938 1.43473 6.12223 1.17188 6.44531 1.17188H11.1328C11.4559 1.17188 11.7188 1.43473 11.7188 1.75781V2.34375H5.85938V1.75781ZM14.1541 18.2909C14.1289 18.5921 13.8725 18.8281 13.5702 18.8281H4.00797C3.70566 18.8281 3.44918 18.5921 3.42414 18.2911L2.3943 5.85938H15.1838L14.1541 18.2909ZM15.8203 4.6875H1.75781C1.43473 4.6875 1.17188 4.42465 1.17188 4.10156C1.17188 3.77848 1.43473 3.51562 1.75781 3.51562H15.8203C16.1434 3.51562 16.4062 3.77848 16.4062 4.10156C16.4062 4.42465 16.1434 4.6875 15.8203 4.6875Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M6.44422 17.0341L5.85829 7.58096C5.83825 7.25795 5.55868 7.01229 5.23723 7.0324C4.91423 7.05244 4.66864 7.33049 4.68864 7.65346L5.27458 17.1066C5.29383 17.4173 5.5518 17.6563 5.85883 17.6563C6.19817 17.6563 6.46504 17.3705 6.44422 17.0341Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M8.78906 7.03125C8.46547 7.03125 8.20312 7.29359 8.20312 7.61719V17.0703C8.20312 17.3939 8.46547 17.6562 8.78906 17.6562C9.11266 17.6562 9.375 17.3939 9.375 17.0703V7.61719C9.375 7.29359 9.11266 7.03125 8.78906 7.03125Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12.3409 7.03239C12.0187 7.01236 11.7399 7.25794 11.7199 7.58095L11.1339 17.0341C11.114 17.357 11.3596 17.6351 11.6825 17.6551C12.0057 17.6751 12.2836 17.4294 12.3036 17.1066L12.8895 7.65345C12.9095 7.33044 12.6639 7.05239 12.3409 7.03239Z",fill:"currentColor"})]})})]}),p?(0,s.jsxs)(m.Z,{title:"Select Basket",onClose:()=>b(!1),panelClassName:"max-h-[80vh] overflow-y-auto",children:[f&&0===x.length?(0,s.jsx)("p",{role:"status",className:"mt-2 ".concat(u.j_),children:"Loading baskets…"}):0===x.length?(0,s.jsx)("p",{className:"mt-2 ".concat(u.j_),children:"No baskets yet. Create one from the Create Basket tab."}):(0,s.jsx)("ul",{className:"mt-3 divide-y divide-zuri-grey-100",children:x.map(e=>(0,s.jsxs)("li",{className:"flex items-center justify-between gap-3 py-2",children:[(0,s.jsx)("span",{className:"min-w-0 truncate font-nunito text-sm font-semibold text-black",children:e.name}),(0,s.jsx)("button",{type:"button",onClick:()=>handleAddToBasket(e._id),className:u.Kt,"aria-label":"Add to ".concat(e.name),children:"Add"})]},e._id))}),(0,s.jsx)("div",{className:"mt-5 flex justify-end",children:(0,s.jsx)("button",{type:"button",onClick:()=>b(!1),className:u.nr,children:"Close"})})]}):null]})},h=t(39332),x=t(87536),f=t(71459),p=t(56312);let b=f.Ryn({name:f.Z_8().min(1,"Please provide a basket name."),refillFrequency:f.KmV(["monthly","3 months","6 months","yearly"],"Please select a valid refill option.")});var ContinuousCare_CreateBasket=e=>{let{basket_type:a}=e,t=(0,c.I0)(),l=(0,c.v9)(e=>e.auth.user),{register:n,handleSubmit:r,reset:i,formState:{errors:m,isSubmitting:h}}=(0,x.cI)({resolver:(0,p.F)(b),defaultValues:{name:"",refillFrequency:""}}),onSubmit=async e=>{try{let s=await t((0,d.Y6)({basket_type:a,patient_id:l._id,payload:{name:e.name,refil_frequency:e.refillFrequency}})).unwrap();o.Am.success(s.message),i()}catch(e){o.Am.error(e)}};return(0,s.jsx)("form",{onSubmit:r(onSubmit),noValidate:!0,children:(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-md flex-col gap-6 py-6",children:[(0,s.jsx)("h2",{className:"text-center ".concat(u.Z7),children:"Create Basket"}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("label",{htmlFor:"create-basket-name",className:u.L,children:"Basket Name"}),(0,s.jsx)("input",{id:"create-basket-name",...n("name"),placeholder:"Enter a name","aria-invalid":m.name?"true":"false","aria-describedby":m.name?"create-basket-name-error":void 0,className:"".concat(u.mg," ").concat((0,u.qn)(m.name))}),m.name?(0,s.jsx)("span",{id:"create-basket-name-error",className:u.YQ,children:m.name.message}):null]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("label",{htmlFor:"create-basket-frequency",className:u.L,children:"Refill Frequency"}),(0,s.jsxs)("select",{id:"create-basket-frequency",...n("refillFrequency"),"aria-invalid":m.refillFrequency?"true":"false","aria-describedby":m.refillFrequency?"create-basket-frequency-error":void 0,className:"".concat(u.mg," ").concat((0,u.qn)(m.refillFrequency)),children:[(0,s.jsx)("option",{value:"",children:"Select frequency"}),(0,s.jsx)("option",{value:"monthly",children:"Monthly"}),(0,s.jsx)("option",{value:"3 months",children:"3 months"}),(0,s.jsx)("option",{value:"6 months",children:"6 months"}),(0,s.jsx)("option",{value:"yearly",children:"Yearly"})]}),m.refillFrequency?(0,s.jsx)("span",{id:"create-basket-frequency-error",className:u.YQ,children:m.refillFrequency.message}):null]}),(0,s.jsx)("button",{type:"submit",className:"w-full ".concat(u.xh),disabled:h,children:h?"Saving...":"Save Basket"})]})})},y=t(32233),C=t(11163),j=t(78153),v=t(36281),ContinuousCare_EditBasket=e=>{let{basket_type:a,basket:t,onBack:n}=e,r=(0,c.I0)(),i=(0,h.useRouter)(),m=(0,c.v9)(e=>e.auth.user),[x,f]=(0,l.useState)(""),[p,b]=(0,l.useState)("");(0,l.useEffect)(()=>{f(t.name),b(t.refil_frequency)},[t]),(0,l.useEffect)(()=>{m||i.push("/signin")},[m,i]);let handleSubmit=async e=>{if(e.preventDefault(),!x||!p){o.Am.error("Name and refill frequency are required");return}try{await r((0,d.B6)({basket_type:a,patient_id:m._id,basket_id:t._id,payload:{name:x,refil_frequency:p}})).unwrap(),o.Am.success("Basket updated successfully"),n()}catch(e){o.Am.error(e)}};return(0,s.jsx)("form",{onSubmit:handleSubmit,children:(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-md flex-col gap-6 py-6",children:[(0,s.jsx)("h2",{className:"text-center ".concat(u.Z7),children:"Edit Basket"}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("label",{htmlFor:"edit-basket-name",className:u.L,children:"Basket Name"}),(0,s.jsx)("input",{id:"edit-basket-name",className:"".concat(u.mg," ").concat((0,u.qn)(!1)),placeholder:"Enter a name",value:x,onChange:e=>f(e.target.value)})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("label",{htmlFor:"edit-basket-frequency",className:u.L,children:"Refill Frequency"}),(0,s.jsxs)("select",{id:"edit-basket-frequency",className:"".concat(u.mg," ").concat((0,u.qn)(!1)),value:p,onChange:e=>b(e.target.value),children:[(0,s.jsx)("option",{value:"",children:"Select frequency"}),(0,s.jsx)("option",{value:"monthly",children:"Monthly"}),(0,s.jsx)("option",{value:"3 months",children:"3 months"}),(0,s.jsx)("option",{value:"6 months",children:"6 months"}),(0,s.jsx)("option",{value:"yearly",children:"Yearly"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col-reverse gap-3 sm:flex-row",children:[(0,s.jsx)("button",{type:"button",onClick:n,className:"w-full sm:flex-1 ".concat(u.nr),children:"Cancel"}),(0,s.jsx)("button",{type:"submit",className:"w-full sm:flex-1 ".concat(u.xh),children:"Update Basket"})]})]})})};let DrugBasketDetail_errorMessage=(e,a)=>"string"==typeof e?e:(null==e?void 0:e.message)||a;var ContinuousCare_DrugBasketDetail=e=>{let{basket_type:a}=e,t=(0,C.useRouter)(),[n,r]=(0,l.useState)(!1),[h,x]=(0,l.useState)(null),[f,p]=(0,l.useState)(null),[b,k]=(0,l.useState)(null),g=(0,c.I0)(),_=(0,y._)(),N=(0,c.v9)(e=>e.auth.user),{basket:w,addedSuccessfully:B}=(0,c.v9)(e=>e.basket);(0,l.useEffect)(()=>{(null==N?void 0:N._id)&&g((0,d.br)({basket_type:a,patient_id:N._id}))},[null==N?void 0:N._id,a,g]),(0,l.useEffect)(()=>{B&&(_.start({scale:[1,1.4,1],transition:{duration:.4,ease:"easeOut"}}),g((0,d.iU)()))},[B,_,g]);let handleShowEditBasket=e=>{x(e),r(!0)},handleDeleteConfirmed=async()=>
1{if(p(null),null==N?void 0:N._id)try{await g((0,d.c)({basket_type:a,patient_id:N._id,basket_id:f})).unwrap(),o.Am.success("Basket deleted successfully")}catch(e){o.Am.error(DrugBasketDetail_errorMessage(e,"Failed to delete basket"))}},handleCheckout=async e=>{if(null==N?void 0:N._id){k(e);try{await g((0,d.nU)({basket_type:a,patient_id:N._id,basket_id:e})).unwrap(),"pharmacy_basket"===a?(await g((0,j.uE)({userId:N._id,source:"pharmacy"})).unwrap(),o.Am.success("Pharmacy basket checked out successfully!"),t.push("/newer-cart")):(await g((0,v.PF)({userId:N._id})).unwrap(),o.Am.success("Lab basket checked out successfully!"),t.push("/new-lab-cart"))}catch(e){o.Am.error(DrugBasketDetail_errorMessage(e,"Checkout failed. Please try again later."))}finally{k(null)}}};return w&&0!==w.length?(0,s.jsxs)("section",{className:"overflow-y-auto",children:[f?(0,s.jsx)(m.Q,{title:"Delete Basket",confirmLabel:"Delete",onConfirm:handleDeleteConfirmed,onCancel:()=>p(null),children:"This removes the basket and its items. This can't be undone."}):null,!n&&(0,s.jsx)("div",{className:"flex flex-col divide-y divide-zuri-grey-100",children:w.map(e=>{var a,t;let l=e.name.charAt(0).toUpperCase()+e.name.slice(1),n=null!==(t=null===(a=e.product)||void 0===a?void 0:a.length)&&void 0!==t?t:0;return(0,s.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-x-3 gap-y-2 py-4",children:[(0,s.jsx)(i(),{src:"/assets/ccpDahsboard/drug.png",alt:"",width:50,height:50,className:"h-10 w-10 shrink-0 object-contain sm:h-12 sm:w-12"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start gap-1",children:[(0,s.jsx)("p",{className:"w-full truncate font-nunito text-sm font-semibold text-black",children:l}),(0,s.jsxs)("span",{className:"rounded-full bg-zuri-teal-50 px-2 py-0.5 font-nunito text-xs font-bold text-zuri-teal-800",children:[n," item",1!==n?"s":""]})]}),(0,s.jsxs)("div",{className:"flex w-full shrink-0 items-center justify-end gap-1 sm:w-auto",children:[(0,s.jsx)("button",{type:"button",className:"mr-2 ".concat(u.Kt),onClick:()=>handleCheckout(e._id),disabled:null!==b,children:b===e._id?"Processing...":"Order"}),(0,s.jsx)("button",{type:"button","aria-label":"Edit ".concat(l),onClick:()=>handleShowEditBasket(e),className:"".concat(u.yS," text-zuri-teal-800"),children:(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false",width:"15",height:"15",viewBox:"0 0 22 22",fill:"none",children:(0,s.jsx)("path",{d:"M11.2657 5.60162L1 15.8672V21L6.13286 21L16.3986 10.7344M11.2657 5.60162L14.9468 1.92057L14.949 1.91838C15.4557 1.41167 15.7095 1.15787 16.0021 1.0628C16.2598 0.979065 16.5375 0.979065 16.7952 1.0628C17.0876 1.1578 17.3411 1.41132 17.8471 1.91731L20.0796 4.14982C20.5878 4.65798 20.842 4.91218 20.9372 5.20517C21.0209 5.4629 21.0209 5.74051 20.9372 5.99823C20.842 6.29101 20.5882 6.54483 20.0808 7.05227L20.0797 7.05336L16.3986 10.7344M11.2657 5.60162L16.3986 10.7344",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)("button",{type:"button","aria-label":"Delete ".concat(l),onClick:()=>p(e._id),className:"".concat(u.yS," text-zuri-pink-600"),children:(0,s.jsxs)("svg",{"aria-hidden":"true",focusable:"false",width:"13",height:"15",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M15.8203 2.34375H12.8906V1.75781C12.8906 0.788555 12.1021 0 11.1328 0H6.44531C5.47605 0 4.6875 0.788555 4.6875 1.75781V2.34375H1.75781C0.788555 2.34375 0 3.1323 0 4.10156C0 4.88 0.508789 5.54145 1.21113 5.77191L2.25625 18.3881C2.33152 19.292 3.10098 20 4.00797 20H13.5702C14.4772 20 15.2466 19.292 15.322 18.3879L16.367 5.77187C17.0693 5.54145 17.5781 4.88 17.5781 4.10156C17.5781 3.1323 16.7896 2.34375 15.8203 2.34375ZM5.85938 1.75781C5.85938 1.43473 6.12223 1.17188 6.44531 1.17188H11.1328C11.4559 1.17188 11.7188 1.43473 11.7188 1.75781V2.34375H5.85938V1.75781ZM14.1541 18.2909C14.1289 18.5921 13.8725 18.8281 13.5702 18.8281H4.00797C3.70566 18.8281 3.44918 18.5921 3.42414 18.2911L2.3943 5.85938H15.1838L14.1541 18.2909ZM15.8203 4.6875H1.75781C1.43473 4.6875 1.17188 4.42465 1.17188 4.10156C1.17188 3.77848 1.43473 3.51562 1.75781 3.51562H15.8203C16.1434 3.51562 16.4062 3.77848 16.4062 4.10156C16.4062 4.42465 16.1434 4.6875 15.8203 4.6875Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M6.44422 17.0341L5.85829 7.58096C5.83825 7.25795 5.55868 7.01229 5.23723 7.0324C4.91423 7.05244 4.66864 7.33049 4.68864 7.65346L5.27458 17.1066C5.29383 17.4173 5.5518 17.6563 5.85883 17.6563C6.19817 17.6563 6.46504 17.3705 6.44422 17.0341Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M8.78906 7.03125C8.46547 7.03125 8.20312 7.29359 8.20312 7.61719V17.0703C8.20312 17.3939 8.46547 17.6562 8.78906 17.6562C9.11266 17.6562 9.375 17.3939 9.375 17.0703V7.61719C9.375 7.29359 9.11266 7.03125 8.78906 7.03125Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M12.3409 7.03239C12.0187 7.01236 11.7399 7.25794 11.7199 7.58095L11.1339 17.0341C11.114 17.357 11.3596 17.6351 11.6825 17.6551C12.0057 17.6751 12.2836 17.4294 12.3036 17.1066L12.8895 7.65345C12.9095 7.33044 12.6639 7.05239 12.3409 7.03239Z",fill:"currentColor"})]})})]})]},e._id)})}),n&&h?(0,s.jsx)("div",{className:"flex w-full flex-col gap-y-4 px-4",children:(0,s.jsx)(ContinuousCare_EditBasket,{basket_type:a,basket:h,onBack:()=>{r(!1),x(null)}})}):null]}):(0,s.jsx)("div",{className:"flex flex-col items-center gap-3 py-12 text-center",children:(0,s.jsx)("p",{className:u.j_,children:"No baskets yet. Create one to get started."})})}
1,k=t(41664),g=t.n(k),ContinuousCare_Baskets=e=>{var a;let{basket_type:t,item_type:n}=e,[r,i]=(0,l.useState)(!0),[o,m]=(0,l.useState)(!1),[h,x]=(0,l.useState)(!1),f=(0,c.I0)(),p=(0,c.v9)(e=>e.auth.user),{loading:b,error:y}=(0,c.v9)(e=>e.basket),C=(0,c.v9)((0,d.IO)(n));return(0,l.useEffect)(()=>{(null==p?void 0:p._id)&&f((0,d.pC)({item_type:n,patient_id:p._id}))},[null==p?void 0:p._id,t,f]),(0,s.jsxs)("div",{className:"mt-8 flex w-full flex-col rounded-2xl border border-zuri-grey-100 bg-white py-px shadow-sm md:mt-0",children:[(0,s.jsxs)("header",{className:"flex justify-around gap-1 border-b border-zuri-grey-100 px-2 py-2",children:[(0,s.jsxs)("button",{type:"button","aria-pressed":r,onClick:()=>{i(!0),m(!1),x(!1)},className:(0,u.vF)(r,!0),children:["Saved",(0,s.jsx)("span",{className:"hidden sm:inline",children:" Items"})," (",null!==(a=null==C?void 0:C.length)&&void 0!==a?a:0,")"]}),(0,s.jsx)("button",{type:"button","aria-pressed":o,onClick:()=>{i(!1),m(!0),x(!1)},className:(0,u.vF)(o,!0),children:"My Baskets"}),(0,s.jsxs)("button",{type:"button","aria-pressed":h,onClick:()=>{i(!1),m(!1),x(!0)},className:(0,u.vF)(h,!0),children:["+ Create",(0,s.jsx)("span",{className:"hidden sm:inline",children:" Basket"})]})]}),!0===r&&(0,s.jsx)("section",{className:"flex flex-col",children:(0,s.jsx)("div",{className:"flex w-full flex-col divide-y divide-zuri-grey-100 px-3 sm:px-4",children:(null==C?void 0:C.length)>0?null==C?void 0:C.map(e=>(0,s.jsx)(ContinuousCare_BasketCard,{saved:e,item_type:n,basket_type:t},e._id)):(0,s.jsx)("div",{className:"flex w-full flex-col items-center justify-center gap-y-4 px-4 py-6",children:(0,s.jsxs)("p",{className:"text-center ".concat(u.j_),children:["No saved items found. ",(0,s.jsx)("br",{}),"Saved items will show up here once you add them from the"," ",(0,s.jsx)(g(),{href:"/pharmacy",className:"font-bold text-zuri-teal-800 hover:underline ".concat(u.kN),children:"pharmacy"})," ","or"," ",(0,s.jsx)(g(),{href:"/lab",className:"font-bold text-zuri-teal-800 hover:underline ".concat(u.kN),children:"lab"}),"."]})})})}),!0===o&&(0,s.jsx)("section",{className:"flex flex-col",children:(0,s.jsx)("div",{className:"flex w-full flex-col gap-y-4 px-3 sm:px-4",children:(0,s.jsx)(ContinuousCare_DrugBasketDetail,{basket_type:t})})}),!0===h&&(0,s.jsx)("section",{className:"flex flex-col",children:(0,s.jsx)("div",{className:"flex w-full flex-col gap-y-4 px-3 sm:px-4",children:(0,s.jsx)(ContinuousCare_CreateBasket,{basket_type:t})})})]})},drug_refill=()=>{let e="Drug Refills",[a,t]=(0,l.useState)("tab1");return(0,s.jsx)(n.Z,{title:e,requiresSubscription:!0,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"sr-only",children:e}),(0,s.jsxs)("div",{className:"mt-8 flex w-full justify-center gap-12 md:gap-20",children:[(0,s.jsx)("button",{type:"button","aria-pressed":"tab1"===a,className:(0,u.vF)("tab1"===a),onClick:()=>t("tab1"),children:"Pharmacy"}),(0,s.jsx)("button",{type:"button","aria-pressed":"tab2"===a,className:(0,u.vF)("tab2"===a),onClick:()=>t("tab2"),children:"Lab"})]}),(0,s.jsxs)("div",{children:["tab1"===a&&(0,s.jsx)(PharmacyBasket,{}),"tab2"===a&&(0,s.jsx)(LabBasket,{})]})]})})};function PharmacyBasket(){return(0,s.jsx)("section",{className:"mt-4 h-full w-full gap-4 rounded-2xl sm:px-4 md:flex",children:(0,s.jsx)(ContinuousCare_Baskets,{basket_type:"pharmacy_basket",item_type:"pharmacy"})})}function LabBasket(){return(0,s.jsx)("section",{className:"mt-4 h-full w-full gap-4 rounded-2xl sm:px-4 md:flex",children:(0,s.jsx)(ContinuousCare_Baskets,{basket_type:"labs_basket",item_type:"labs"})})}}},function(e){e.O(0,[6323,7876,9429,9774,2888,179],function(){return e(e.s=38178)}),_N_E=e.O()}]);

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.