import{q as c,n as e,w as de,v as M,L as u,N as $}from"./vendor-react-Br0ZiotI.js";import{b_ as m,t as L,B as U,c0 as he,cs as ue,b4 as _,z as E,aH as K,bK as me,bN as g,bM as xe,az as pe,bn as F,S as ge,bZ as q,a2 as G,U as w,bB as H,aN as be,D as f,ad as V,aj as W,O as fe,af as Y,ah as Z,ai as Q,ag as J,br as v,by as b,bf as ye,bm as je,bh as ke,bk as ve,bl as we,bi as Ne,bg as j,b5 as Ce,s as Se}from"./index-BbbmkSoI.js";import"./vendor-dayjs-CbzZgysf.js";import{e as Ae}from"./vendor-query-9i1Av1pr.js";import{u as h}from"./vendor-i18n-C54Hc0CQ.js";import{Z as C}from"./zap-DLCMdwLs.js";import{G as S}from"./globe-Cyu9G2kL.js";import{S as z}from"./shield-check-CcqDJV0q.js";import{L as X,S as ee,a as I,C as B,P as ae,R as Me,U as A,F as Le,T as _e}from"./users-D4A-s7ug.js";import{F as te}from"./file-text-C_TvGVqN.js";import{M as Ee}from"./message-circle-BUhQn8q5.js";import{B as se,P as ne,a as Ke}from"./SiteFooter-NP6eO3yH.js";import{B as Re}from"./building-2-BQRN0LCw.js";/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Te=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ze=m("book-open",Te);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ie=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Be=m("bookmark",Ie);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pe=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],y=m("calculator",Pe);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oe=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],De=m("calendar-days",Oe);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $e=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],Ue=m("gift",$e);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fe=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],qe=m("house",Fe);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ge=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],He=m("map-pin",Ge);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ve=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],We=m("menu",Ve);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ye=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Ze=m("panels-top-left",Ye);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qe=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],re=m("user-round",Qe);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Je=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Xe=m("users-round",Je);/**
* @license lucide-react v1.16.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ea=[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]],aa=m("warehouse",ea),ta=6e4;function sa(){const a=c.useContext(L);return a!=null&&a.isAuthenticated?e.jsx(na,{}):null}function na(){const{t:a}=h(),n=Ae({queryKey:["exchange","chat","unread-counts"],queryFn:()=>he.unreadCounts(),refetchInterval:ta,staleTime:3e4}).data??{},t=Object.values(n).reduce((r,o)=>r+(o??0),0);return t<=0?null:e.jsx(U,{variant:"error",className:"ml-1.5 h-5 min-w-[1.25rem] justify-center px-1 text-[10px] leading-none","aria-label":a("exchangeUnread.aria","Непрочитанных сообщений РЅР° Р±РёСЂР¶Рµ: {{count}}",{count:t}),children:t>99?"99+":t})}const P=[{id:"home",label:"Главная",icon:qe,href:"/",group:"navigation"},{id:"calc",label:"Калькулятор",description:"Рассчитать стоимость перевозки",icon:y,href:"/calculator",group:"navigation",keywords:["расчёт","calculate","calc"]},{id:"results",label:"Результаты РїРѕРёСЃРєР°",icon:_,href:"/search",group:"navigation"},{id:"exchange",label:"Биржа",description:"Тендеры РЅР° перевозку",icon:C,href:"/exchange",group:"navigation",keywords:["tender","тендер","auction"]},{id:"exchange-about",label:"Рћ Р±РёСЂР¶Рµ",icon:S,href:"/exchange/about",group:"navigation"},{id:"plans",label:"Тарифные планы",description:"Pricing & plans",icon:z,href:"/plans",group:"navigation",keywords:["pricing","price","цены","план"]},{id:"resources",label:"Ресурсы",description:"Глоссарий, гайды, инструменты",icon:ze,href:"/resources",group:"navigation"},{id:"dashboard",label:"Личный кабинет",icon:X,href:"/lk",group:"navigation",keywords:["лк","кабинет"]},{id:"settings",label:"Настройки профиля",icon:ee,href:"/dashboard/settings",group:"navigation",keywords:["профиль","profile","company","компания"]},{id:"orders",label:"РњРѕРё заявки",icon:I,href:"/dashboard/orders",group:"navigation",keywords:["заявки","orders"]},{id:"saved",label:"Сохранённые расчёты",icon:Be,href:"/dashboard/saved",group:"navigation"},{id:"notifications",label:"Уведомления",icon:E,href:"/notifications",group:"navigation"},{id:"auth",label:"Войти / Зарегистрироваться",icon:K,href:"/login",group:"navigation"},{id:"supplier",label:"Портал поставщика",icon:me,href:"/exchange/supplier",group:"navigation",keywords:["supplier","поставщик"]},{id:"supplier-auctions",label:"Аукционы для поставщика",icon:C,href:"/exchange/supplier/auctions",group:"navigation"},{id:"supplier-bids",label:"РњРѕРё ставки",icon:I,href:"/exchange/supplier/bids",group:"navigation"},{id:"admin-overview",label:"Admin — РћР±Р·РѕСЂ (KPI)",description:"Recharts dashboard — РїРѕРёСЃРєРё, заявки, статистика",icon:B,href:"/m/admin",group:"admin",adminOnly:!0,keywords:["kpi","overview","РѕР±Р·РѕСЂ","dashboard"]},{id:"admin-exchange-stats",label:"Admin — Статистика Р±РёСЂР¶Рё",icon:B,href:"/m/admin/exchange/stats",group:"admin",adminOnly:!0},{id:"admin-chat-mod",label:"Admin — Модерация чата",icon:z,href:"/m/admin/exchange/chat-moderation",group:"admin",adminOnly:!0},{id:"admin-orders",label:"Admin — Заявки",icon:ae,href:"/admin/orders",group:"admin",adminOnly:!0,keywords:["orders","applications"]},{id:"admin-contracts",label:"Admin — Договоры",icon:te,href:"/admin/contracts",group:"admin",adminOnly:!0},{id:"admin-invoices",label:"Admin — Счета",icon:Me,href:"/admin/invoices",group:"admin",adminOnly:!0},{id:"admin-users",label:"Admin — Пользователи",icon:A,href:"/admin/users",group:"admin",adminOnly:!0},{id:"admin-routes",label:"Admin — Маршруты",icon:He,href:"/admin/routes",group:"admin",adminOnly:!0,keywords:["routes","cities"]},{id:"admin-amocrm",label:"Admin — AmoCRM",icon:Ze,href:"/admin/amocrm",group:"admin",adminOnly:!0},{id:"admin-preview",label:"Design preview tour",description:"Полный СЃРїРёСЃРѕРє /m/* страниц",icon:S,href:"/preview",group:"admin",adminOnly:!0}],le=c.createContext({open:!1,setOpen:()=>{}});function ra(){return c.useContext(le)}function la({children:a}){const[s,n]=c.useState(!1);return c.useEffect(()=>{function t(r){(r.metaKey||r.ctrlKey)&&r.key==="k"&&(r.preventDefault(),n(o=>!o)),r.key==="Escape"&&n(!1)}return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[]),e.jsxs(le.Provider,{value:{open:s,setOpen:n},children:[a,e.jsx(oa,{open:s,setOpen:n})]})}function oa({open:a,setOpen:s}){var p,R,T;const n=de(),{user:t}=ue()??{},r=((p=t==null?void 0:t.roles)==null?void 0:p.includes("ADMIN"))||((R=t==null?void 0:t.roles)==null?void 0:R.includes("SUPER_ADMIN"))||((T=t==null?void 0:t.roles)==null?void 0:T.includes("MANAGER")),o=r?P:P.filter(d=>!d.adminOnly),i=o.filter(d=>d.group==="navigation"),l=o.filter(d=>d.group==="admin"),x=c.useCallback(d=>{s(!1),n(d.href)},[n,s]);return e.jsxs(g.Dialog,{open:a,onOpenChange:s,label:"РџРѕРёСЃРє РїРѕ сайту",overlayClassName:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",className:"fixed left-1/2 top-[20vh] z-50 w-full max-w-xl -translate-x-1/2 rounded-xl border border-border bg-bg-base text-text shadow-2xl overflow-hidden",children:[e.jsxs("div",{className:"flex items-center border-b border-border px-4 py-3 gap-3",children:[e.jsx(_,{className:"h-4 w-4 text-text-muted flex-shrink-0"}),e.jsx(g.Input,{placeholder:"РџРѕРёСЃРє страниц Рё действий...",className:"flex-1 bg-transparent outline-none text-sm text-text placeholder:text-text-muted"}),e.jsx("kbd",{className:"text-[10px] font-mono text-text-muted border border-border rounded px-1.5 py-0.5",children:"ESC"})]}),e.jsxs(g.List,{className:"max-h-[360px] overflow-y-auto py-2 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pt-2 [&_[cmdk-group-heading]]:pb-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wide [&_[cmdk-group-heading]]:text-text-muted",children:[e.jsx(g.Empty,{className:"py-8 text-center text-sm text-text-muted",children:"Ничего РЅРµ найдено"}),i.length>0&&e.jsx(g.Group,{heading:"Навигация",className:"px-2",children:i.map(d=>e.jsx(O,{item:d,onSelect:()=>x(d)},d.id))}),r&&l.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(g.Separator,{className:"my-1 h-px bg-border"}),e.jsx(g.Group,{heading:"Администрирование",className:"px-2",children:l.map(d=>e.jsx(O,{item:d,onSelect:()=>x(d)},d.id))})]})]}),e.jsxs("div",{className:"border-t border-border px-4 py-2 flex items-center gap-4 text-[11px] text-text-muted",children:[e.jsxs("span",{children:[e.jsx("kbd",{className:"font-mono border border-border rounded px-1 py-0.5 mr-1",children:"↑↓"}),"выбрать"]}),e.jsxs("span",{children:[e.jsx("kbd",{className:"font-mono border border-border rounded px-1 py-0.5 mr-1",children:"↵"}),"перейти"]}),e.jsxs("span",{children:[e.jsx("kbd",{className:"font-mono border border-border rounded px-1 py-0.5 mr-1",children:"Ctrl K"}),"закрыть"]})]})]})}function O({item:a,onSelect:s}){const n=a.icon;return e.jsxs(g.Item,{value:[a.label,a.description,...a.keywords??[]].filter(Boolean).join(" "),onSelect:s,className:"flex items-center gap-3 px-2 py-2 rounded-md cursor-pointer text-sm text-text aria-selected:bg-bg-surface group",children:[e.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-border bg-bg-surface text-text group-aria-selected:border-primary/30 group-aria-selected:bg-primary/5 flex-shrink-0",children:e.jsx(n,{className:"h-4 w-4"})}),e.jsxs("span",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"block text-text font-medium truncate",children:a.label}),a.description&&e.jsx("span",{className:"block text-text-muted text-xs truncate",children:a.description})]}),e.jsx("span",{className:"text-xs text-text-muted font-mono opacity-0 group-aria-selected:opacity-100 transition-opacity truncate max-w-[120px]",children:a.href})]},a.id)}function ia(a=24){const[s,n]=c.useState(!1);return c.useEffect(()=>{if(typeof window>"u")return;let t=0;const r=()=>{t||(t=window.requestAnimationFrame(()=>{t=0,n(window.scrollY>a)}))};return r(),window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r),t&&window.cancelAnimationFrame(t)}},[a]),s}const ca="https://wa.me/74999488801",da="https://t.me/avalog_support";function ha({className:a}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a,"aria-hidden":"true",children:e.jsx("path",{d:"M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.87 9.87 0 0 0 4.79 1.22h.01c5.46 0 9.9-4.45 9.9-9.91a9.85 9.85 0 0 0-2.9-7.01A9.85 9.85 0 0 0 12.04 2zm0 18.15h-.01a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.2 8.2 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.24-8.24 2.2 0 4.27.86 5.82 2.42a8.18 8.18 0 0 1 2.41 5.83c0 4.54-3.7 8.23-8.23 8.23zm4.52-6.16c-.25-.12-1.47-.72-1.7-.8-.22-.09-.39-.13-.55.12-.17.25-.64.8-.78.97-.15.16-.29.18-.54.06-.25-.12-1.05-.39-2-1.23-.73-.66-1.23-1.47-1.38-1.72-.14-.25-.01-.38.11-.51.11-.11.25-.29.37-.43.12-.14.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.13-.55-1.34-.76-1.84-.2-.48-.4-.42-.55-.42h-.48c-.17 0-.43.06-.66.31-.22.25-.86.85-.86 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.67-1.18.21-.58.21-1.07.15-1.18-.06-.1-.23-.16-.48-.27z"})})}function ua({className:a}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a,"aria-hidden":"true",children:e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.64 6.8-1.63 7.7c-.12.55-.45.68-.91.42l-2.51-1.85-1.21 1.17c-.13.13-.25.25-.5.25l.18-2.55 4.63-4.18c.2-.18-.05-.28-.31-.1l-5.73 3.6-2.47-.77c-.54-.17-.55-.54.11-.8l9.65-3.72c.45-.16.84.11.7.83z"})})}function ma(){const{t:a}=h(),{pathname:s}=M(),[n,t]=c.useState(!1),r=c.useRef(null);c.useEffect(()=>{if(!n)return;const l=p=>{r.current&&!r.current.contains(p.target)&&t(!1)},x=p=>{p.key==="Escape"&&t(!1)};return document.addEventListener("mousedown",l),document.addEventListener("touchstart",l),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l),document.removeEventListener("keydown",x)}},[n]);const o=[{id:"whatsapp",label:"WhatsApp",href:ca,icon:e.jsx(ha,{className:"h-5 w-5"}),bg:"bg-[#25D366]"},{id:"telegram",label:"Telegram",href:da,icon:e.jsx(ua,{className:"h-5 w-5"}),bg:"bg-[#229ED9]"}],i=s.startsWith("/search");return e.jsxs("div",{ref:r,"data-testid":"contact-channels-fab",className:["fixed left-4 z-40 flex flex-col items-start gap-2",i?"max-lg:mb-16":""].join(" "),style:{bottom:"calc(env(safe-area-inset-bottom, 0px) + 16px)"},children:[n?o.map(l=>e.jsxs("a",{href:l.href,target:"_blank",rel:"noopener noreferrer","data-testid":`contact-channel-${l.id}`,className:["inline-flex items-center gap-2 h-11 pl-3 pr-4 rounded-full text-white","font-medium text-sm shadow-lg active:scale-95 transition-transform",l.bg].join(" "),children:[l.icon,l.label]},l.id)):null,e.jsx("button",{type:"button",onClick:()=>t(l=>!l),"aria-expanded":n,"aria-label":n?a("ui.contactFab.closeAria","Свернуть РєРЅРѕРїРєРё СЃРІСЏР·Рё"):a("ui.contactFab.openAria","Связаться СЃ нами РІ мессенджере"),className:["inline-flex h-12 w-12 items-center justify-center rounded-full","bg-primary text-primary-foreground shadow-primary-strong","active:scale-95 transition-all duration-200"].join(" "),children:n?e.jsx(xe,{className:"h-5 w-5"}):e.jsx(Ee,{className:"h-5 w-5"})})]})}const xa=["/","/calculator","/search"];function pa(){const{t:a}=h(),{pathname:s}=M(),[n,t]=c.useState(!0);return c.useEffect(()=>{if(typeof window>"u")return;let r=window.scrollY,o=0;const i=()=>{o||(o=window.requestAnimationFrame(()=>{o=0;const l=window.scrollY,x=l-r;Math.abs(x)>=4&&(x>0&&l>200?t(!1):x<0&&t(!0),r=l)}))};return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),o&&window.cancelAnimationFrame(o)}},[]),xa.includes(s)?null:e.jsxs(u,{to:"/calculator","aria-label":a("ui.mobileCalcFab.openAria","Открыть калькулятор"),className:["md:hidden fixed right-4 z-40 inline-flex items-center gap-2","h-12 px-5 rounded-full bg-primary text-primary-foreground font-semibold text-sm","shadow-primary-strong active:scale-95 transition-all duration-200",n?"translate-y-0 opacity-100":"translate-y-24 opacity-0 pointer-events-none"].join(" "),style:{bottom:"calc(env(safe-area-inset-bottom, 0px) + 16px)"},children:[e.jsx(y,{className:"h-4 w-4"}),a("ui.mobileCalcFab.cta","Рассчитать")]})}const k="https://avalog.ru";function ga(){const a={"@context":"https://schema.org","@type":["Organization","LocalBusiness"],name:"Avalog",url:k,logo:`${k}/brand/avalog-logo.png`,image:`${k}/og-image.jpg`,description:"Avalog — B2B-платформа доступной международной логистики. Онлайн-калькулятор доставки РёР· Китая, РРЅРґРёРё, Турции Р·Р° 5 секунд. 60+ перевозчиков-партнёров, 200+ бесплатных инструментов Р’РР”.",priceRange:"в‚Ѕв‚Ѕ",currenciesAccepted:"RUB",paymentAccepted:"Invoice, Bank transfer, Card",openingHours:"Mo-Fr 09:00-18:00",areaServed:[{"@type":"Country",name:"Russia"},{"@type":"Country",name:"Belarus"},{"@type":"Country",name:"Kazakhstan"},{"@type":"Country",name:"China"},{"@type":"Country",name:"India"},{"@type":"Country",name:"Turkey"}],aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"124",bestRating:"5",worstRating:"1"},sameAs:["https://t.me/avalog_news","https://t.me/avalog_support","https://dzen.ru/avalog"],contactPoint:[{"@type":"ContactPoint",telephone:"+7-499-948-88-01",contactType:"customer service",areaServed:["RU","BY","KZ","AM","UZ","CN","TR"],availableLanguage:["Russian","English","Chinese"]},{"@type":"ContactPoint",email:"support@avalog.ru",contactType:"customer support"},{"@type":"ContactPoint",email:"partners@avalog.ru",contactType:"partnership"}],address:{"@type":"PostalAddress",streetAddress:"С€. Варшавское, Рґ. 1Рђ, РїРѕРј. Р—Рљ/ІП",addressLocality:"РњРѕСЃРєРІР°",postalCode:"117105",addressCountry:"RU"},geo:{"@type":"GeoCoordinates",latitude:"55.6785",longitude:"37.6180"}},s={"@context":"https://schema.org","@type":"WebSite",name:"Avalog В· Доступная логистика",url:k,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${k}/calculator?q={search_term_string}`},"query-input":"required name=search_term_string"},inLanguage:["ru-RU","en-US"]};return e.jsxs(pe,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(s)})]})}const ba=[{id:"client",tier:"client",items:[{to:"/lk",labelKey:"lkSidebar.overview",label:"РћР±Р·РѕСЂ",icon:X,end:!0},{to:"/lk/calc",labelKey:"lkSidebar.calc",label:"Калькулятор",icon:y},{to:"/lk/shipments",labelKey:"lkSidebar.shipments",label:"РњРѕРё РіСЂСѓР·С‹",icon:F},{to:"/lk/calendar",labelKey:"lkSidebar.calendar",label:"Календарь",icon:De},{to:"/lk/applications",labelKey:"lkSidebar.applications",label:"Заявки",icon:ae},{to:"/lk/documents",labelKey:"lkSidebar.documents",label:"Документы",icon:te},{to:"/lk/saved-calcs",labelKey:"lkSidebar.savedCalcs",label:"Сохранённые расчёты",icon:y},{to:"/lk/contracts",labelKey:"lkSidebar.contracts",label:"Договоры",icon:Le},{to:"/lk/team",labelKey:"lkSidebar.team",label:"Команда",icon:A},{to:"/lk/notifications",labelKey:"lkSidebar.notifications",label:"Уведомления",icon:E},{to:"/lk/referral",labelKey:"lkSidebar.referral",label:"Реферальная программа",icon:Ue},{to:"/lk/help",labelKey:"lkSidebar.help",label:"Помощь",icon:ge},{to:"/lk/settings",labelKey:"lkSidebar.settings",label:"Настройки",icon:ee}]},{id:"sales",labelKey:"lkSidebar.groupSales",label:"Продажи",tier:"sales",items:[{to:"/lk/sales/fast-quote",labelKey:"lkSidebar.fastQuote",label:"Быстрый расчёт",icon:C},{to:"/lk/sales/leads",labelKey:"lkSidebar.leads",label:"Лиды",icon:_e}]},{id:"admin",labelKey:"lkSidebar.groupAdmin",label:"Администрирование",tier:"admin",items:[{to:"/lk/admin/customers",labelKey:"lkSidebar.customers",label:"Клиенты",icon:A}]}];function D(a,...s){return a!=null&&a.length?a.some(n=>s.some(t=>n.toUpperCase().includes(t))):!1}function fa({isActive:a}){return q("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",a?"bg-emerald-50 text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-300":"text-gray-600 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white")}function ya({groups:a}){const{t:s}=h();return e.jsx(e.Fragment,{children:a.map(n=>e.jsxs("div",{className:"space-y-1",children:[n.label&&e.jsx("p",{className:"px-3 pt-4 pb-1 text-xs font-semibold uppercase tracking-wide text-gray-400 dark:text-gray-500",children:n.labelKey?s(n.labelKey,n.label):n.label}),n.items.map(t=>{const r=t.icon;return e.jsxs($,{to:t.to,end:t.end,className:fa,children:[e.jsx(r,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{className:"truncate",children:s(t.labelKey,t.label)})]},t.to)})]},n.id))})}function ja(){var i;const{t:a}=h(),s=c.useContext(L),n=(i=s==null?void 0:s.user)==null?void 0:i.roles,t=D(n,"SALES"),r=D(n,"ADMIN","MANAGER"),o=ba.filter(l=>l.tier==="sales"?t||r:l.tier==="admin"?r:!0);return e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:"hidden lg:block w-60 shrink-0 border-r border-gray-200 dark:border-gray-800",children:e.jsx("nav",{className:"sticky top-16 max-h-[calc(100vh-4rem)] overflow-y-auto p-3 space-y-1",children:e.jsx(ya,{groups:o})})}),e.jsx("nav",{className:"lg:hidden flex gap-2 overflow-x-auto border-b border-gray-200 dark:border-gray-800 px-3 py-2",children:o.flatMap(l=>l.items).map(l=>{const x=l.icon;return e.jsxs($,{to:l.to,end:l.end,className:({isActive:p})=>q("flex items-center gap-1.5 whitespace-nowrap rounded-full px-3 py-1.5 text-sm font-medium transition-colors",p?"bg-emerald-600 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300"),children:[e.jsx(x,{className:"h-3.5 w-3.5 shrink-0"}),a(l.labelKey,l.label)]},l.to)})})]})}function oe(){return c.useContext(L)}const ie=[{key:"calculator",label:"Калькулятор",to:"/"},{key:"services",label:"Услуги",to:"/services"},{key:"pricing",label:"Тарифы",to:"/plans"},{key:"blog",label:"База знаний",to:"/resources"},{key:"exchange",label:"Биржа",to:"/exchange"}],ka=new Set(["calculator","exchange"]),ce=[{slug:"importer",label:"Рмпортёрам",desc:"Регулярный B2B-РёРјРїРѕСЂС‚",icon:aa},{slug:"exporter",label:"Ркспортёрам",desc:"РЎРќР“ В· РђР·РёСЏ В· ЕС",icon:F},{slug:"forwarder",label:"Форвардерам",desc:"Партнёрский API",icon:Re},{slug:"carrier",label:"Перевозчикам",desc:"Биржа Avalog",icon:Xe}],N=[{code:"ru",label:"Р СѓСЃСЃРєРёР№",short:"RU"},{code:"en",label:"English",short:"EN"},{code:"zho",label:"дёж–‡",short:"дёж–‡"},{code:"tr",label:"TГјrkГ§e",short:"TR"},{code:"hi",label:"हिन्दी",short:"HI"}];function va(){var r;const{i18n:a,t:s}=h(),n=((r=a.language)==null?void 0:r.split("-")[0])??"ru",t=N.find(o=>o.code===n)??N[0];return e.jsxs(V,{children:[e.jsx(W,{asChild:!0,children:e.jsxs("button",{type:"button","aria-label":s("shell.lang.switch","Сменить язык"),className:"h-9 px-2.5 rounded-md hover:bg-bg-surface flex items-center gap-1.5 text-sm text-text-muted hover:text-text transition-colors",children:[e.jsx(S,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.short})]})}),e.jsxs(Y,{align:"end",children:[e.jsx(Z,{children:s("shell.lang.menuLabel","Язык интерфейса")}),e.jsx(Q,{}),N.map(o=>e.jsxs(J,{onSelect:()=>{a.changeLanguage(o.code)},className:o.code===n?"font-semibold text-primary":"",children:[e.jsx("span",{className:"w-10 font-mono text-xs text-text-muted",children:o.short}),e.jsx("span",{children:o.label})]},o.code))]})]})}function wa(){var t;const{i18n:a,t:s}=h(),n=((t=a.language)==null?void 0:t.split("-")[0])??"ru";return e.jsxs("div",{className:"py-1",children:[e.jsx("span",{className:"text-sm text-text-muted",children:s("shell.mobile.language","Язык интерфейса")}),e.jsx("div",{className:"mt-2 grid grid-cols-5 gap-1.5",children:N.map(r=>{const o=r.code===n;return e.jsx("button",{type:"button",onClick:()=>void a.changeLanguage(r.code),"aria-pressed":o,"aria-label":r.label,className:`h-10 rounded-md text-sm font-medium transition-colors flex items-center justify-center ${o?"bg-primary text-white":"bg-bg-surface text-text-muted hover:text-text"}`,children:r.short},r.code)})})]})}function Na({active:a}){const{t:s}=h(),n=a==="solutions";return e.jsxs(V,{children:[e.jsx(W,{asChild:!0,children:e.jsxs("button",{type:"button",className:`flex items-center gap-1 transition-colors ${n?"text-primary font-semibold":"text-text-muted hover:text-text"}`,children:[s("shell.nav.solutions","Решения"),e.jsx(fe,{className:"h-3.5 w-3.5"})]})}),e.jsxs(Y,{align:"start",className:"w-72",children:[e.jsx(Z,{children:s("shell.solutions.menuLabel","Решения для бизнеса")}),e.jsx(Q,{}),ce.map(t=>{const r=t.icon;return e.jsx(J,{asChild:!0,children:e.jsxs(u,{to:`/solutions/${t.slug}`,className:"flex items-start gap-3 py-2",children:[e.jsx("div",{className:"h-8 w-8 rounded-md bg-primary-light flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(r,{className:"h-4 w-4 text-primary"})}),e.jsxs(v,{gap:0,children:[e.jsx(b,{weight:"semibold",className:"text-sm",children:s(`shell.personas.${t.slug}.label`,t.label)}),e.jsx(b,{variant:"muted",className:"text-xs",children:s(`shell.personas.${t.slug}.desc`,t.desc)})]})]})},t.slug)})]})]})}function Ca(a){var t,r;if(!a)return null;const s=(t=a.fullName)==null?void 0:t.trim(),n=(r=a.email)==null?void 0:r.trim();return s&&s!==n?s:n?n.split("@")[0]:null}function Sa(){const{t:a}=h(),s=oe(),n=(s==null?void 0:s.isAuthenticated)??!1,t=n?"/lk":"/login",r=Ca(s==null?void 0:s.user),o=n?r??a("shell.auth.account","Личный кабинет"):a("shell.auth.login","Войти"),i=n?re:K;return e.jsx(f,{variant:"outline",size:"sm",asChild:!0,children:e.jsxs(u,{to:t,children:[e.jsx(i,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden xl:inline max-w-[12rem] truncate",children:o})]})})}function Aa({active:a}){const{t:s}=h(),[n,t]=c.useState(!1),r=oe(),o=(r==null?void 0:r.isAuthenticated)??!1;return e.jsxs(ye,{open:n,onOpenChange:t,children:[e.jsx(je,{asChild:!0,children:e.jsx("button",{type:"button","aria-label":s("shell.mobile.openMenu","Открыть меню"),className:"lg:hidden h-9 w-9 rounded-md hover:bg-bg-surface flex items-center justify-center text-text",children:e.jsx(We,{className:"h-5 w-5"})})}),e.jsxs(ke,{side:"right",className:"w-full sm:max-w-sm flex flex-col",children:[e.jsxs(ve,{children:[e.jsx(we,{children:e.jsx(se,{variant:"full",height:26})}),e.jsx(Ne,{className:"sr-only",children:s("shell.mobile.menuDesc","Главное меню Avalog — навигация РїРѕ сайту")})]}),e.jsx("nav",{className:"flex-1 overflow-y-auto py-6",children:e.jsxs(v,{gap:1,children:[ie.map(i=>e.jsx(j,{asChild:!0,children:e.jsx(u,{to:i.to,className:`block px-2 py-3 rounded-md text-base ${a===i.key?"text-primary font-semibold bg-primary-light/40":"text-text hover:bg-bg-surface"}`,children:s(`shell.nav.${i.key}`,i.label)})},i.key)),e.jsx("div",{className:"pt-2 pb-1 px-2",children:e.jsx(b,{variant:"caption",children:s("shell.solutions.menuLabel","Решения для бизнеса")})}),ce.map(i=>{const l=i.icon;return e.jsx(j,{asChild:!0,children:e.jsxs(u,{to:`/solutions/${i.slug}`,className:"flex items-center gap-3 px-2 py-2.5 rounded-md hover:bg-bg-surface",children:[e.jsx("div",{className:"h-8 w-8 rounded-md bg-primary-light flex items-center justify-center shrink-0",children:e.jsx(l,{className:"h-4 w-4 text-primary"})}),e.jsxs(v,{gap:0,children:[e.jsx(b,{className:"text-sm font-medium",children:s(`shell.personas.${i.slug}.label`,i.label)}),e.jsx(b,{variant:"muted",className:"text-xs",children:s(`shell.personas.${i.slug}.desc`,i.desc)})]})]})},i.slug)})]})}),e.jsx("div",{className:"pt-4 border-t border-border",children:e.jsxs(v,{gap:3,children:[e.jsx(j,{asChild:!0,children:e.jsx(f,{asChild:!0,children:e.jsxs(u,{to:"/calculator",children:[e.jsx(y,{className:"h-4 w-4"}),s("shell.cta.calculate","Рассчитать")]})})}),e.jsx(j,{asChild:!0,children:e.jsx(f,{variant:"outline",asChild:!0,children:e.jsxs(u,{to:o?"/lk":"/login",children:[o?e.jsx(re,{className:"h-4 w-4"}):e.jsx(K,{className:"h-4 w-4"}),o?s("shell.auth.account","Личный кабинет"):s("shell.auth.login","Войти")]})})}),o&&e.jsx(j,{asChild:!0,children:e.jsx(f,{variant:"ghost",asChild:!0,children:e.jsxs(u,{to:"/notifications",children:[e.jsx(E,{className:"h-4 w-4"}),s("shell.mobile.notifications","Уведомления")]})})}),e.jsxs("div",{className:"flex items-center justify-between gap-2 py-1",children:[e.jsx("span",{className:"text-sm text-text-muted",children:s("shell.mobile.theme","Тема оформления")}),e.jsx(H,{className:"marketing-theme-toggle"})]}),e.jsx(wa,{}),e.jsxs("a",{href:"tel:+74999488801",className:"flex items-center justify-center gap-2 text-sm text-text-muted py-2",children:[e.jsx(ne,{className:"h-3.5 w-3.5"}),"+7 499 948-88-01"]})]})})]})]})}function Ma(){const{t:a}=h(),{setOpen:s}=ra();return e.jsxs("button",{onClick:()=>s(!0),"aria-label":a("shell.search.open","Открыть РїРѕРёСЃРє (Ctrl+K)"),className:"hidden md:flex items-center gap-2 px-3 py-1.5 rounded-md border border-border bg-surface text-text-muted hover:bg-bg-base hover:border-primary/40 hover:text-text transition-colors text-sm",children:[e.jsx(_,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"text-xs",children:a("shell.search.label","РџРѕРёСЃРє")}),e.jsx("kbd",{className:"text-[10px] font-mono border border-border rounded px-1 py-0.5 bg-bg-base",children:"вЊK"})]})}function Ua({children:a,active:s=null,containerSize:n="base"}){const{t}=h(),r=ia(24),{pathname:o}=M(),i=o==="/lk"||o.startsWith("/lk/");return e.jsxs(la,{children:[e.jsx(ga,{}),e.jsxs("div",{className:"min-h-screen bg-bg-base text-text font-body flex flex-col",children:[e.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:px-4 focus:py-2 focus:bg-primary focus:text-primary-foreground focus:rounded-md focus:shadow-lg focus:outline-none",children:t("shell.skipToContent","Перейти Рє содержимому")}),e.jsx("header",{className:["sticky top-0 z-50 border-b bg-bg-base/95 backdrop-blur supports-[backdrop-filter]:bg-bg-base/85 transition-shadow duration-200",r?"border-border shadow-sm":"border-transparent"].join(" "),children:e.jsx(G,{size:n,className:"2xl:max-w-[1600px]",children:e.jsxs(w,{justify:"between",align:"center",wrap:!1,className:["transition-[height] duration-200 gap-3",r?"h-12":"h-16"].join(" "),children:[e.jsxs(w,{gap:4,align:"center",wrap:!1,children:[e.jsxs(u,{to:"/",className:"flex items-center gap-2 group","aria-label":"Avalog",children:[e.jsx(se,{variant:"full",height:r?26:32,priority:!0,className:"transition-[height] duration-200"}),e.jsx(U,{variant:"success",className:r?"hidden":"hidden 2xl:inline-flex whitespace-nowrap",children:t("shell.badge.tagline","Доступная логистика")})]}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-5 whitespace-nowrap text-sm",children:[ie.filter(l=>ka.has(l.key)).map(l=>e.jsxs(u,{to:l.to,className:s===l.key?"text-primary font-semibold inline-flex items-center":"text-text-muted hover:text-text transition-colors inline-flex items-center",children:[t(`shell.nav.${l.key}`,l.label),l.key==="exchange"&&e.jsx(sa,{})]},l.key)),e.jsx(Na,{active:s})]})]}),e.jsxs(w,{gap:2,align:"center",wrap:!1,className:"shrink-0",children:[e.jsxs("a",{href:"tel:+74999488801",className:"hidden 2xl:flex items-center gap-1.5 text-sm text-text-muted hover:text-text whitespace-nowrap",children:[e.jsx(ne,{className:"h-3.5 w-3.5"}),"+7 499 948-88-01"]}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(va,{})}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(H,{className:"marketing-theme-toggle"})}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(be,{})}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(Sa,{})}),e.jsx(Ma,{}),e.jsx(f,{asChild:!0,size:"sm",children:e.jsxs(u,{to:"/calculator",children:[e.jsx(y,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:t("shell.cta.calculate","Рассчитать")})]})}),e.jsx(Aa,{active:s})]})]})})}),i?e.jsxs("div",{className:"flex-1 flex flex-col lg:flex-row",children:[e.jsx(ja,{}),e.jsx("main",{id:"main-content",className:"flex-1 min-w-0",children:a})]}):e.jsx("main",{id:"main-content",className:"flex-1",children:a}),e.jsx(Ke,{containerSize:n}),e.jsx(pa,{}),e.jsx(ma,{})]})]})}function Fa({title:a,description:s,ctaLabel:n,ctaTo:t="/calculator"}){const{t:r}=h(),o=a??r("shell.ctaBar.title","Рассчитайте СЃРІРѕР№ маршрут Р·Р° 5 секунд"),i=s??r("shell.ctaBar.description","2490 РіРѕСЂРѕРґРѕРІ В· 60 000 контейнеров В· 100 000 маршрутов В· РѕС‚ перевозчика напрямую"),l=n??r("shell.cta.calculate","Рассчитать");return e.jsx(Ce,{bg:"primary-light",py:"md",children:e.jsx(G,{size:"base",children:e.jsxs(w,{justify:"between",align:"center",wrap:!0,gap:6,children:[e.jsxs(v,{gap:1,children:[e.jsx(b,{weight:"bold",className:"text-xl text-text",children:o}),e.jsx(b,{className:"text-text-muted",children:i})]}),e.jsx(f,{size:"lg",asChild:!0,children:e.jsxs(u,{to:t,children:[l,e.jsx(Se,{className:"h-4 w-4"})]})})]})})})}export{ze as B,y as C,Ue as G,qe as H,He as M,Xe as U,aa as W,Be as a,De as b,Fa as c,Ua as d,Ca as u};