PageSourceSearch

https://cd.xyz/assets/MobileMenu-CV3kIcmn.js

js cd.xyz collected 2026-10-04 01:07:40 UTC 5,030 bytes, 1 lines download raw bytes

1import{u as O,k as T,i as E,p as z,r as v,j as e,R as a,C as l,L as o,l as A,m as M,n as W,o as D,c as P,b as G}from"./index-DZzw4Xdy.js";const F=[{path:a.home,labelKey:"nav.home"},{path:a.services,labelKey:"nav.services"},{path:a.results,labelKey:"nav.results"},{path:a.contact,labelKey:"nav.contact"}];function B({isOpen:S,onClose:k}){const{t:s,localize:c,isRtl:N,alternatePath:I,otherLang:u}=O(),{theme:L,toggleTheme:R}=T(),[x]=E(),{path:t}=z(x),[p,g]=v.useState(!0),[$,y]=v.useState({});v.useEffect(()=>{g(!0),y({})},[x]);const C=n=>n===a.home?t==="/":t.startsWith(n),w={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:7,minHeight:44,boxSizing:"border-box",padding:"7px 14px",borderRadius:999,background:"transparent",border:"1.5px solid var(--fg-30)",color:"var(--sec-fg)",cursor:"pointer",fontFamily:"inherit",fontSize:12.5,fontWeight:600,whiteSpace:"nowrap"},K={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:44,height:44,padding:"0 10px",borderRadius:999,background:"transparent",border:"1px solid var(--ln-16)",color:"var(--fg-85)",cursor:"pointer",fontFamily:"inherit",fontSize:13,fontWeight:600};return e.jsx("div",{className:`mobile-menu ${S?"open":"closed"}`,style:{background:"var(--menu-bg)",borderTop:"1px solid var(--ln-08)"},children:e.jsxs("nav",{"aria-label":s("nav.menu"),style:{maxWidth:1200,margin:"0 auto",padding:"20px 20px 32px",display:"flex",flexDirection:"column",gap:20},children:[e.jsx("div",{className:"mobile-menu-entries",children:F.map(n=>{const d=C(n.path);return e.jsxs("div",{children:[e.jsx("div",{className:"mobile-menu-entry",children:n.path===a.services?e.jsxs("button",{type:"button","aria-expanded":p,"aria-controls":"mobile-service-groups",onClick:()=>g(r=>!r),className:"mobile-nav-link mobile-menu-primary mobile-menu-services-trigger","data-active":d,style:{borderInlineStart:d?`3px solid ${l.amber}`:void 0},children:[e.jsx("span",{className:"mobile-nav-label",children:s(n.labelKey)}),e.jsx("span",{"aria-hidden":"true",style:{transform:p?"rotate(180deg)":void 0},children:"▼"})]}):e.jsx(o,{href:c(n.path),"aria-current":d?"page":void 0,className:"mobile-nav-link mobile-menu-primary",style:{borderInlineStart:d?`3px solid ${l.amber}`:void 0},children:e.jsx("span",{className:"mobile-nav-label",children:s(n.labelKey)})})}),n.path===a.services&&e.jsxs("div",{id:"mobile-service-groups",hidden:!p,className:"mobile-service-groups",children:[A.map(r=>{const f=M(r),m=f.some(i=>t===`/services/${i.slug}`),b=$[r]??m,j=`mobile-services-${r}`;return e.jsxs("div",{children:[e.jsxs("button",{type:"button","aria-expanded":b,"aria-controls":j,onClick:()=>y(i=>({...i,[r]:!(i[r]??m)})),className:`mobile-nav-link mobile-service-group${m?" current":""}`,style:{textAlign:N?"right":"left",borderInlineStart:m?`3px solid ${l.amber}`:void 0},children:[e.jsx("span",{children:s(W(r))}),e.jsx("span",{"aria-hidden":"true",style:{transform:b?"rotate(180deg)":void 0},children:"▼"})]}),e.jsx("div",{id:j,hidden:!b,className:"mobile-service-links",children:f.map(i=>{const h=t===`/services/${i.slug}`;return e.jsxs(o,{href:c(`/services/${i.slug}`),"aria-current":h?"page":void 0,className:"mobile-nav-link mobile-service-link",style:{borderInlineStart:h?`3px solid ${l.amber}`:void 0},children:[e.jsx("span",{"aria-hidden":"true",className:"mobile-service-icon",style:{width:i.slug==="location-listings"?64:void 0,background:i.bg,color:i.color},children:e.jsx(D,{service:i,size:19,branded:!0})}),e.jsxs("span",{className:"mobile-service-copy",children:[e.jsx("span",{className:"mobile-nav-label",style:{color:h?"var(--link-hover)":void 0},children:s(P(i.slug))}),e.jsx("span",{className:"mobile-service-description",children:s(G(i.slug))})]})]},i.slug)})})]},r)}),e.jsx(o,{href:c(a.services),"aria-current":t===a.services?"page":void 0,className:"mobile-nav-link mobile-service-link",style:{borderInlineStart:t===a.services?`3px solid ${l.amber}`:void 0},children:s("nav.viewAllServices")})]})]},n.path)})}),e.jsx("div",{style:{padding:"0 12px",marginTop:4},children:e.jsx(o,{href:c(a.audit),className:"hover-amber-btn",style:{display:"flex",alignItems:"center",justifyContent:"center",background:l.amber,color:l.ink,textDecoration:"none",fontWeight:600,fontSize:15,padding:"14px 20px",borderRadius:8,fontFamily:"inherit",width:"100%",boxSizing:"border-box"},children:s("cta.audit")})}),e.jsxs("div",{className:"drawer-utilities",style:{gap:10,marginTop:4,padding:"0 12px"},children:[e.jsxs("button",{type:"button",onClick:R,className:"hover-theme-pill",style:{...w,flex:1},children:[e.jsx("span",{"aria-hidden":"true",style:{width:8,height:8,borderRadius:"50%",background:l.amber,display:"inline-block",flex:"0 0 auto"}}),e.jsx("span",{className:"theme-pill-label",children:s(L==="dark"?"ui.themeToLight":"ui.themeToDark")})]}),e.jsx(o,{href:I,"aria-label":s("ui.langSwitchLabel"),hrefLang:u,lang:u,onClick:k,className:"hover-icon-btn",style:{...K,flex:1,textDecoration:"none"},children:s("ui.langSwitchLabel")})]})]})})}export{B 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.