PageSourceSearch

https://thefilipinodoctor.com/assets/PatientProfileComponent-CNkSKTj-.js

js thefilipinodoctor.com collected 2026-10-03 22:15:52 UTC 4,097 bytes, 1 lines download raw bytes

1import{b8 as f,aN as y,aG as d,av as g,hi as m,aH as e,aJ as c,aI as r,aQ as p,aO as x,aP as h,hj as j,aa as v,aS as _,bY as C,aM as b,hk as w,hl as P,hm as H}from"./index-C9osrjqo.js";import{P as k,D as A}from"./DependentComponent-BnhDgj48.js";const O=()=>{const s=f(),{isFeaturedArticlesLoading:l,featuredArticles:t,searchParams:n,articleLink:i,onClickArticleItem:o}=y();d.useEffect(()=>{(!t||t&&t.length!==3)&&s(g.featuredArticlesRequest({type:m.Healthcare,limit:3}))},[s,t]);const u=d.useMemo(()=>(n.set("type",m.Healthcare),`/search/article/result?${n.toString()}`),[n]);return l?e.jsx("div",{className:"patient-featured-stories-component load-data",children:e.jsxs("div",{className:"featured",children:[e.jsx("span",{className:"w-40 flex text-xl"}),c(3,a=>e.jsxs("div",{className:"article-item",children:[e.jsx("span",{className:"h-10 w-10 !rounded-full"}),e.jsxs("div",{className:"article-item__details flex-grow",children:[e.jsx("span",{className:"flex text-base"}),c(2,N=>e.jsx("span",{className:"flex text-sm",style:{width:`${r(70,30)}%`}},N))]})]},a))]})}):e.jsxs("div",{className:"patient-featured-stories-component",children:[e.jsxs("div",{className:"featured",children:[e.jsx("p",{className:"title",children:"Featured Stories"}),p(t,a=>e.jsx(x,{to:i(a.slug),onClick:()=>o(a.title),children:e.jsxs("div",{className:"article-item",children:[e.jsx("img",{src:a.thumbnail}),e.jsxs("div",{className:"article-item__details",children:[e.jsx("p",{className:"article-title",children:a.title}),e.jsxs("div",{className:"article-description",children:[e.jsxs("p",{className:"article-description__category",children:[e.jsx("span",{children:"in"}),e.jsx("span",{className:"article-description__category name",children:` ${a.category_name}`})]}),e.jsx("button",{children:"Continue Reading"})]})]})]})},a.id))]}),e.jsx(x,{to:u,children:e.jsx(h,{type:"outline",label:"View all Featured Stories"})})]})},S=()=>c(3,s=>e.jsxs("div",{className:"border rounded-md load-data w-full !p-0",children:[e.jsxs("div",{className:"flex justify-between p-2",children:[e.jsx("span",{className:"flex text-sm",style:{width:`${r(30,20)}%`}}),e.jsx("span",{className:"flex text-sm",style:{width:`${r(50,40)}%`}})]}),e.jsx("div",{className:"border-t"}),e.jsxs("div",{className:"p-2 space-y-2",children:[e.jsx("span",{className:"flex text-sm w-1/3"}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"flex text-sm",style:{width:`${r(30,20)}%`}}),e.jsx("span",{className:"flex text-sm",style:{width:`${r(20,10)}%`}})]})]})]},s)),$=()=>{const{patientProfile:s,isOrderHistoryLoading:l,orderHistory:t}=j(),n=()=>{s&&window.open(s.order_history_endpoint,"_blank")};return e.jsxs("div",{className:"patient-order-history-component",children:[e.jsx("p",{className:"patient-order-history-component__title",children:"Order History"}),v(t)&&!l?e.jsx(_,{image:C("empty-states","shopping-bag.svg"),imageClass:"w-14 h-14 text-gray-500",containerClass:"bg-gray-100 rounded-md px-4 min-h-48",subContainerClass:"space-y-1",subtitle:"You have no recent orders.",subtitleClass:"text-sm"}):l?e.jsx(S,{}):e.jsxs("div",{className:"order-history",children:[p(t,(i,o)=>e.jsxs("div",{className:"order-history__item",children:[e.jsxs("div",{className:"heading",children:[e.jsx("p",{children:i.date_ordered}),e.jsxs("p",{children:["Order no. ",i.order_ref]})]}),e.jsx("div",{className:"divider"}),e.jsxs("div",{className:"content",children:[e.jsx(b,{text:i.payment_method,size:"small"}),e.jsxs("div",{className:"content__total",children:[e.jsx("p",{children:"Grand total"}),e.jsx("p",{children:i.grand_total})]})]})]},o)),e.jsx(h,{label:"View Order History",type:"outline",onClick:n})]})]})},D=()=>{const{patientProfile:s}=j();return e.jsxs("div",{className:"profile-component",children:[e.jsxs("div",{className:"profile-component__col",children:[s&&e.jsx(w,{avatar:s.avatar,name:s.full_name,gender:s.gender,age:s.age,patient_code:s.patient_code}),e.jsx(k,{}),e.jsx(A,{}),e.jsx(O,{})]}),e.jsx(P,{}),e.jsxs("div",{className:"profile-component__col right",children:[e.jsx(H,{}),e.jsx($,{})]})]})};export{D as default};

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.