PageSourceSearch

https://www.directmeds.com.au/assets/quick-links-wKBadfZp.js

js directmeds.com.au collected 2026-10-04 02:56:19 UTC 4,085 bytes, 1 lines download raw bytes

1import{u as h,j as e}from"./vendor-framework-Dk7zq_Wq.js";import{u as g,W as m,h as p,c as u,j as f,S as k,X as y,L as x}from"./index-Ti_iaIEA.js";import{S as o}from"./skeleton-CNeStBxV.js";import{C as j}from"./vendor-icons-DDRqfAiY.js";const b=["/api/public/hub-directory"],N=["mens-health","skin"];function S({column:s}){const t=y(s.hub),a="text-[24px] sm:text-[26px] lg:text-[28px] leading-[1.2] tracking-[-0.5px] text-[#1f3128]",l={fontFamily:"'Instrument Serif', serif"};return e.jsxs("div",{className:"flex flex-col gap-5","data-testid":`quick-links-category-${s.hub}`,children:[t?e.jsx(x,{href:t,className:`${a} hover:underline transition-colors`,style:l,"data-testid":`quick-links-category-heading-${s.hub}`,children:e.jsx("h2",{className:"inline",children:s.label})}):e.jsx("h2",{className:a,style:l,"data-testid":`quick-links-category-heading-${s.hub}`,children:s.label}),e.jsx("ul",{className:"flex flex-col gap-3",children:s.links.map(i=>e.jsx("li",{children:e.jsx(x,{href:i.href,className:"group inline-flex items-center text-[14px] sm:text-[15px] text-[rgba(31,49,40,0.85)] hover:text-[#1f3128] transition-colors",style:{fontFamily:"'Instrument Sans', sans-serif"},"data-testid":`quick-links-link-${s.hub}-${i.key}`,children:e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx("span",{children:i.label}),e.jsx(j,{className:"h-3.5 w-3.5 shrink-0 text-[rgba(31,49,40,0.55)] group-hover:text-[#1f3128] group-hover:translate-x-0.5 transition-all",strokeWidth:2})]})})},i.key))})]})}function v({index:s}){return e.jsxs("div",{className:"flex flex-col gap-5","data-testid":`quick-links-skeleton-${s}`,children:[e.jsx(o,{className:"h-7 w-40"}),e.jsx("ul",{className:"flex flex-col gap-3",children:Array.from({length:6}).map((t,a)=>e.jsx("li",{children:e.jsx(o,{className:"h-5 w-56"})},a))})]})}function L({title:s,subtitle:t}){const a=s.indexOf(" "),l=a===-1?s:s.slice(0,a),i=a===-1?"":s.slice(a+1);return e.jsxs("header",{className:"flex flex-col items-start text-left lg:items-center lg:text-center gap-3 sm:gap-4 max-w-[640px] lg:mx-auto",children:[e.jsxs("h1",{className:"text-[40px] sm:text-[56px] lg:text-[72px] leading-[1.02] tracking-[-1.5px] text-[#1f3128]",style:{fontFamily:"'Instrument Serif', serif"},"data-testid":"quick-links-heading",children:[e.jsx("span",{className:"font-normal not-italic",style:{fontFamily:"'Cetary', cursive"},children:l}),i?e.jsxs(e.Fragment,{children:[" ",i]}):null]}),e.jsx("p",{className:"text-[14px] sm:text-[15px] lg:text-[16px] leading-[1.4] text-[rgba(31,49,40,0.7)] lg:max-w-[500px] max-w-[350px]",style:{fontFamily:"'Instrument Sans', sans-serif",fontWeight:500},children:t})]})}const F=m("/quick-links");function w(){const[s]=g(),t=m(s.split("?")[0])??F,{data:a,isLoading:l,error:i}=h({queryKey:b}),d=t.hubs==="all-visible"?N:t.hubs,r=(a??[]).filter(n=>d.includes(n.hub));return e.jsxs(e.Fragment,{children:[e.jsx(p,{children:e.jsx("title",{children:t.seoTitle})}),e.jsx(u,{forceDark:!0,navLinks:f}),e.jsx("main",{id:"main-content",className:"min-h-screen w-full bg-[#f9f8f4]","data-testid":"page-quick-links",children:e.jsxs("section",{className:"mx-auto max-w-[1280px] px-4 sm:px-6 lg:px-12 pt-[7rem] sm:pt-16 lg:pt-[12rem] pb-16 sm:pb-20 lg:pb-24",children:[e.jsx(L,{title:t.title,subtitle:t.subtitle}),e.jsx("div",{className:"mt-12 sm:mt-16 lg:mt-20 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-10 lg:gap-x-16 gap-y-12 lg:gap-y-16","data-testid":"quick-links-grid",children:i?e.jsx("p",{className:"text-[14px] sm:text-[15px] text-[rgba(31,49,40,0.7)]",style:{fontFamily:"'Instrument Sans', sans-serif"},"data-testid":"quick-links-error",children:"We couldn't load these links right now. Please try again shortly."}):l&&r.length===0?Array.from({length:3}).map((n,c)=>e.jsx(v,{index:c},c)):r.length===0?e.jsx("p",{className:"text-[14px] sm:text-[15px] text-[rgba(31,49,40,0.7)]",style:{fontFamily:"'Instrument Sans', sans-serif"},"data-testid":"quick-links-empty",children:"No directory links are available yet."}):r.map(n=>e.jsx(S,{column:n},n.hub))})]})}),e.jsx(k,{})]})}export{w 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.