import{q as o,n as e,w as lt,v as ot,L as k}from"./vendor-react-DfNOgXDS.js";import{c6 as v,i as De,B as Oe,cb as it,c7 as ct,cO as T,b8 as dt,aP as ut,aG as ht,Q as mt,c4 as G,cH as pt,o as Be,av as fe,bP as xt,al as gt,P as me,M as E,aD as ft,r as D,bb as Ve,bw as R,bE as C,h as yt,a0 as qe,a6 as Te,H as bt,a2 as He,a4 as Fe,a5 as Ke,bs as vt,a3 as Ue,bl as jt,br as wt,bn as kt,bp as Nt,bq as Ct,bo as Mt,bm as F}from"./index-CRANE7wv.js";import"./vendor-dayjs-BrZ9gQN4.js";import{e as At}from"./vendor-query-CutdBoCI.js";import{Z as Ae}from"./zap-DLo9YKtg.js";import{G as J}from"./globe-CZMJX-ig.js";import{u as St}from"./vendor-i18n-BWzZRYJm.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 Et=[["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"}]],Rt=v("book-open",Et);/**
* @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 It=[["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"}]],_t=v("bookmark",It);/**
* @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 $t=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],zt=v("building-2",$t);/**
* @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 Lt=[["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"}]],Q=v("calculator",Lt);/**
* @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 Pt=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Se=v("chart-column",Pt);/**
* @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 Dt=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Ee=v("clipboard-list",Dt);/**
* @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 Ot=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Bt=v("file-text",Ot);/**
* @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 Vt=[["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"}]],qt=v("house",Vt);/**
* @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 Tt=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ht=v("layout-dashboard",Tt);/**
* @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 Ft=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Re=v("mail",Ft);/**
* @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 Kt=[["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"}]],Ut=v("map-pin",Kt);/**
* @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 Gt=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Yt=v("menu",Gt);/**
* @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 Wt=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Zt=v("package",Wt);/**
* @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 Jt=[["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"}]],Qt=v("panels-top-left",Jt);/**
* @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 Xt=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],pe=v("phone",Xt);/**
* @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 er=[["path",{d:"M12 17V7",key:"pyj7ub"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8",key:"1elt7d"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]],tr=v("receipt",er);/**
* @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 rr=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ye=v("search",rr);/**
* @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 ar=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],nr=v("send",ar);/**
* @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 sr=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lr=v("settings",sr);/**
* @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 or=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ie=v("shield-check",or);/**
* @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 ir=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Ge=v("user-round",ir);/**
* @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 cr=[["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"}]],dr=v("users-round",cr);/**
* @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 ur=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],hr=v("users",ur);/**
* @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 mr=[["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"}]],pr=v("warehouse",mr),xr=6e4;function gr(){const t=o.useContext(De);return t!=null&&t.isAuthenticated?e.jsx(fr,{}):null}function fr(){const n=At({queryKey:["exchange","chat","unread-counts"],queryFn:()=>it.unreadCounts(),refetchInterval:xr,staleTime:3e4}).data??{},r=Object.values(n).reduce((l,a)=>l+(a??0),0);return r<=0?null:e.jsx(Oe,{variant:"error",className:"ml-1.5 h-5 min-w-[1.25rem] justify-center px-1 text-[10px] leading-none","aria-label":`Непрочитанных сообщений РЅР° Р±РёСЂР¶Рµ: ${r}`,children:r>99?"99+":r})}var _e=1,yr=.9,br=.8,vr=.17,ce=.1,de=.999,jr=.9999,wr=.99,kr=/[\\\/_+.#"@\[\(\{&]/,Nr=/[\\\/_+.#"@\[\(\{&]/g,Cr=/[\s-]/,Ye=/[\s-]/g;function xe(t,n,r,l,a,i,d){if(i===n.length)return a===t.length?_e:wr;var m=`${a},${i}`;if(d[m]!==void 0)return d[m];for(var b=l.charAt(i),u=r.indexOf(b,a),x=0,y,g,M,I;u>=0;)y=xe(t,n,r,l,u+1,i+1,d),y>x&&(u===a?y*=_e:kr.test(t.charAt(u-1))?(y*=br,M=t.slice(a,u-1).match(Nr),M&&a>0&&(y*=Math.pow(de,M.length))):Cr.test(t.charAt(u-1))?(y*=yr,I=t.slice(a,u-1).match(Ye),I&&a>0&&(y*=Math.pow(de,I.length))):(y*=vr,a>0&&(y*=Math.pow(de,u-a))),t.charAt(u)!==n.charAt(i)&&(y*=jr)),(y<ce&&r.charAt(u-1)===l.charAt(i+1)||l.charAt(i+1)===l.charAt(i)&&r.charAt(u-1)!==l.charAt(i))&&(g=xe(t,n,r,l,u+1,i+2,d),g*ce>y&&(y=g*ce)),y>x&&(x=y),u=r.indexOf(b,u+1);return d[m]=x,x}function $e(t){return t.toLowerCase().replace(Ye," ")}function Mr(t,n,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,xe(t,n,$e(t),$e(n),0,0,{})}var Ar=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Ar.reduce((t,n)=>{const r=ct(`Primitive.${n}`),l=o.forwardRef((a,i)=>{const{asChild:d,...m}=a,b=d?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(b,{...m,ref:i})});return l.displayName=`Primitive.${n}`,{...t,[n]:l}},{}),K='[cmdk-group=""]',ue='[cmdk-group-items=""]',Sr='[cmdk-group-heading=""]',We='[cmdk-item=""]',ze=`${We}:not([aria-disabled="true"])`,ge="cmdk-item-select",V="data-value",Er=(t,n,r)=>Mr(t,n,r),Ze=o.createContext(void 0),Y=()=>o.useContext(Ze),Je=o.createContext(void 0),be=()=>o.useContext(Je),Qe=o.createContext(void 0),Xe=o.forwardRef((t,n)=>{let r=q(()=>{var s,h;return{search:"",value:(h=(s=t.value)!=null?s:t.defaultValue)!=null?h:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),l=q(()=>new Set),a=q(()=>new Map),i=q(()=>new Map),d=q(()=>new Set),m=et(t),{label:b,children:u,value:x,onValueChange:y,filter:g,shouldFilter:M,loop:I,disablePointerSelection:ee=!1,vimBindings:L=!0,...W}=t,te=T(),ve=T(),re=T(),P=o.useRef(null),w=Vr();O(()=>{if(x!==void 0){let s=x.trim();r.current.value=s,A.emit()}},[x]),O(()=>{w(6,we)},[]);let A=o.useMemo(()=>({subscribe:s=>(d.current.add(s),()=>d.current.delete(s)),snapshot:()=>r.current,setState:(s,h,p)=>{var c,f,j,S;if(!Object.is(r.current[s],h)){if(r.current[s]=h,s==="search")le(),ne(),w(1,se);else if(s==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let N=document.getElementById(re);N?N.focus():(c=document.getElementById(te))==null||c.focus()}if(w(7,()=>{var N;r.current.selectedItemId=(N=B())==null?void 0:N.id,A.emit()}),p||w(5,we),((f=m.current)==null?void 0:f.value)!==void 0){let N=h??"";(S=(j=m.current).onValueChange)==null||S.call(j,N);return}}A.emit()}},emit:()=>{d.current.forEach(s=>s())}}),[]),ae=o.useMemo(()=>({value:(s,h,p)=>{var c;h!==((c=i.current.get(s))==null?void 0:c.value)&&(i.current.set(s,{value:h,keywords:p}),r.current.filtered.items.set(s,je(h,p)),w(2,()=>{ne(),A.emit()}))},item:(s,h)=>(l.current.add(s),h&&(a.current.has(h)?a.current.get(h).add(s):a.current.set(h,new Set([s]))),w(3,()=>{le(),ne(),r.current.value||se(),A.emit()}),()=>{i.current.delete(s),l.current.delete(s),r.current.filtered.items.delete(s);let p=B();w(4,()=>{le(),(p==null?void 0:p.getAttribute("id"))===s&&se(),A.emit()})}),group:s=>(a.current.has(s)||a.current.set(s,new Set),()=>{i.current.delete(s),a.current.delete(s)}),filter:()=>m.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:te,inputId:re,labelId:ve,listInnerRef:P}),[]);function je(s,h){var p,c;let f=(c=(p=m.current)==null?void 0:p.filter)!=null?c:Er;return s?f(s,r.current.search,h):0}function ne(){if(!r.current.search||m.current.shouldFilter===!1)return;let s=r.current.filtered.items,h=[];r.current.filtered.groups.forEach(c=>{let f=a.current.get(c),j=0;f.forEach(S=>{let N=s.get(S);j=Math.max(N,j)}),h.push([c,j])});let p=P.current;H().sort((c,f)=>{var j,S;let N=c.getAttribute("id"),Z=f.getAttribute("id");return((j=s.get(Z))!=null?j:0)-((S=s.get(N))!=null?S:0)}).forEach(c=>{let f=c.closest(ue);f?f.appendChild(c.parentElement===f?c:c.closest(`${ue} > *`)):p.appendChild(c.parentElement===p?c:c.closest(`${ue} > *`))}),h.sort((c,f)=>f[1]-c[1]).forEach(c=>{var f;let j=(f=P.current)==null?void 0:f.querySelector(`${K}[${V}="${encodeURIComponent(c[0])}"]`);j==null||j.parentElement.appendChild(j)})}function se(){let s=H().find(p=>p.getAttribute("aria-disabled")!=="true"),h=s==null?void 0:s.getAttribute(V);A.setState("value",h||void 0)}function le(){var s,h,p,c;if(!r.current.search||m.current.shouldFilter===!1){r.current.filtered.count=l.current.size;return}r.current.filtered.groups=new Set;let f=0;for(let j of l.current){let S=(h=(s=i.current.get(j))==null?void 0:s.value)!=null?h:"",N=(c=(p=i.current.get(j))==null?void 0:p.keywords)!=null?c:[],Z=je(S,N);r.current.filtered.items.set(j,Z),Z>0&&f++}for(let[j,S]of a.current)for(let N of S)if(r.current.filtered.items.get(N)>0){r.current.filtered.groups.add(j);break}r.current.filtered.count=f}function we(){var s,h,p;let c=B();c&&(((s=c.parentElement)==null?void 0:s.firstChild)===c&&((p=(h=c.closest(K))==null?void 0:h.querySelector(Sr))==null||p.scrollIntoView({block:"nearest"})),c.scrollIntoView({block:"nearest"}))}function B(){var s;return(s=P.current)==null?void 0:s.querySelector(`${We}[aria-selected="true"]`)}function H(){var s;return Array.from(((s=P.current)==null?void 0:s.querySelectorAll(ze))||[])}function oe(s){let h=H()[s];h&&A.setState("value",h.getAttribute(V))}function ie(s){var h;let p=B(),c=H(),f=c.findIndex(S=>S===p),j=c[f+s];(h=m.current)!=null&&h.loop&&(j=f+s<0?c[c.length-1]:f+s===c.length?c[0]:c[f+s]),j&&A.setState("value",j.getAttribute(V))}function ke(s){let h=B(),p=h==null?void 0:h.closest(K),c;for(;p&&!c;)p=s>0?Or(p,K):Br(p,K),c=p==null?void 0:p.querySelector(ze);c?A.setState("value",c.getAttribute(V)):ie(s)}let Ne=()=>oe(H().length-1),Ce=s=>{s.preventDefault(),s.metaKey?Ne():s.altKey?ke(1):ie(1)},Me=s=>{s.preventDefault(),s.metaKey?oe(0):s.altKey?ke(-1):ie(-1)};return o.createElement(z.div,{ref:n,tabIndex:-1,...W,"cmdk-root":"",onKeyDown:s=>{var h;(h=W.onKeyDown)==null||h.call(W,s);let p=s.nativeEvent.isComposing||s.keyCode===229;if(!(s.defaultPrevented||p))switch(s.key){case"n":case"j":{L&&s.ctrlKey&&Ce(s);break}case"ArrowDown":{Ce(s);break}case"p":case"k":{L&&s.ctrlKey&&Me(s);break}case"ArrowUp":{Me(s);break}case"Home":{s.preventDefault(),oe(0);break}case"End":{s.preventDefault(),Ne();break}case"Enter":{s.preventDefault();let c=B();if(c){let f=new Event(ge);c.dispatchEvent(f)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:ae.inputId,id:ae.labelId,style:Tr},b),X(t,s=>o.createElement(Je.Provider,{value:A},o.createElement(Ze.Provider,{value:ae},s))))}),Rr=o.forwardRef((t,n)=>{var r,l;let a=T(),i=o.useRef(null),d=o.useContext(Qe),m=Y(),b=et(t),u=(l=(r=b.current)==null?void 0:r.forceMount)!=null?l:d==null?void 0:d.forceMount;O(()=>{if(!u)return m.item(a,d==null?void 0:d.id)},[u]);let x=tt(a,i,[t.value,t.children,i],t.keywords),y=be(),g=$(w=>w.value&&w.value===x.current),M=$(w=>u||m.filter()===!1?!0:w.search?w.filtered.items.get(a)>0:!0);o.useEffect(()=>{let w=i.current;if(!(!w||t.disabled))return w.addEventListener(ge,I),()=>w.removeEventListener(ge,I)},[M,t.onSelect,t.disabled]);function I(){var w,A;ee(),(A=(w=b.current).onSelect)==null||A.call(w,x.current)}function ee(){y.setState("value",x.current,!0)}if(!M)return null;let{disabled:L,value:W,onSelect:te,forceMount:ve,keywords:re,...P}=t;return o.createElement(z.div,{ref:G(i,n),...P,id:a,"cmdk-item":"",role:"option","aria-disabled":!!L,"aria-selected":!!g,"data-disabled":!!L,"data-selected":!!g,onPointerMove:L||m.getDisablePointerSelection()?void 0:ee,onClick:L?void 0:I},t.children)}),Ir=o.forwardRef((t,n)=>{let{heading:r,children:l,forceMount:a,...i}=t,d=T(),m=o.useRef(null),b=o.useRef(null),u=T(),x=Y(),y=$(M=>a||x.filter()===!1?!0:M.search?M.filtered.groups.has(d):!0);O(()=>x.group(d),[]),tt(d,m,[t.value,t.heading,b]);let g=o.useMemo(()=>({id:d,forceMount:a}),[a]);return o.createElement(z.div,{ref:G(m,n),...i,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},r&&o.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),X(t,M=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},o.createElement(Qe.Provider,{value:g},M))))}),_r=o.forwardRef((t,n)=>{let{alwaysRender:r,...l}=t,a=o.useRef(null),i=$(d=>!d.search);return!r&&!i?null:o.createElement(z.div,{ref:G(a,n),...l,"cmdk-separator":"",role:"separator"})}),$r=o.forwardRef((t,n)=>{let{onValueChange:r,...l}=t,a=t.value!=null,i=be(),d=$(u=>u.search),m=$(u=>u.selectedItemId),b=Y();return o.useEffect(()=>{t.value!=null&&i.setState("search",t.value)},[t.value]),o.createElement(z.input,{ref:n,...l,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":m,id:b.inputId,type:"text",value:a?t.value:d,onChange:u=>{a||i.setState("search",u.target.value),r==null||r(u.target.value)}})}),zr=o.forwardRef((t,n)=>{let{children:r,label:l="Suggestions",...a}=t,i=o.useRef(null),d=o.useRef(null),m=$(u=>u.selectedItemId),b=Y();return o.useEffect(()=>{if(d.current&&i.current){let u=d.current,x=i.current,y,g=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let M=u.offsetHeight;x.style.setProperty("--cmdk-list-height",M.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(y),g.unobserve(u)}}},[]),o.createElement(z.div,{ref:G(i,n),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":l,id:b.listId},X(t,u=>o.createElement("div",{ref:G(d,b.listInnerRef),"cmdk-list-sizer":""},u)))}),Lr=o.forwardRef((t,n)=>{let{open:r,onOpenChange:l,overlayClassName:a,contentClassName:i,container:d,...m}=t;return o.createElement(dt,{open:r,onOpenChange:l},o.createElement(ut,{container:d},o.createElement(ht,{"cmdk-overlay":"",className:a}),o.createElement(mt,{"aria-label":t.label,"cmdk-dialog":"",className:i},o.createElement(Xe,{ref:n,...m}))))}),Pr=o.forwardRef((t,n)=>$(r=>r.filtered.count===0)?o.createElement(z.div,{ref:n,...t,"cmdk-empty":"",role:"presentation"}):null),Dr=o.forwardRef((t,n)=>{let{progress:r,children:l,label:a="Loading...",...i}=t;return o.createElement(z.div,{ref:n,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},X(t,d=>o.createElement("div",{"aria-hidden":!0},d)))}),_=Object.assign(Xe,{List:zr,Item:Rr,Input:$r,Group:Ir,Separator:_r,Dialog:Lr,Empty:Pr,Loading:Dr});function Or(t,n){let r=t.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function Br(t,n){let r=t.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function et(t){let n=o.useRef(t);return O(()=>{n.current=t}),n}var O=typeof window>"u"?o.useEffect:o.useLayoutEffect;function q(t){let n=o.useRef();return n.current===void 0&&(n.current=t()),n}function $(t){let n=be(),r=()=>t(n.snapshot());return o.useSyncExternalStore(n.subscribe,r,r)}function tt(t,n,r,l=[]){let a=o.useRef(),i=Y();return O(()=>{var d;let m=(()=>{var u;for(let x of r){if(typeof x=="string")return x.trim();if(typeof x=="object"&&"current"in x)return x.current?(u=x.current.textContent)==null?void 0:u.trim():a.current}})(),b=l.map(u=>u.trim());i.value(t,m,b),(d=n.current)==null||d.setAttribute(V,m),a.current=m}),a}var Vr=()=>{let[t,n]=o.useState(),r=q(()=>new Map);return O(()=>{r.current.forEach(l=>l()),r.current=new Map},[t]),(l,a)=>{r.current.set(l,a),n({})}};function qr(t){let n=t.type;return typeof n=="function"?n(t.props):"render"in n?n.render(t.props):t}function X({asChild:t,children:n},r){return t&&o.isValidElement(n)?o.cloneElement(qr(n),{ref:n.ref},r(n.props.children)):r(n)}var Tr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Le=[{id:"home",label:"Главная",icon:qt,href:"/m",group:"navigation"},{id:"calc",label:"Калькулятор",description:"Рассчитать стоимость перевозки",icon:Q,href:"/m/calc",group:"navigation",keywords:["расчёт","calculate","calc"]},{id:"results",label:"Результаты РїРѕРёСЃРєР°",icon:ye,href:"/m/results",group:"navigation"},{id:"exchange",label:"Биржа",description:"Тендеры РЅР° перевозку",icon:Ae,href:"/m/exchange",group:"navigation",keywords:["tender","тендер","auction"]},{id:"exchange-about",label:"Рћ Р±РёСЂР¶Рµ",icon:J,href:"/m/exchange/about",group:"navigation"},{id:"plans",label:"Тарифные планы",description:"Pricing & plans",icon:Ie,href:"/m/plans",group:"navigation",keywords:["pricing","price","цены","план"]},{id:"resources",label:"Ресурсы",description:"Глоссарий, гайды, инструменты",icon:Rt,href:"/resources",group:"navigation"},{id:"dashboard",label:"Личный кабинет",icon:Ht,href:"/m/dashboard",group:"navigation",keywords:["лк","кабинет"]},{id:"settings",label:"Настройки профиля",icon:lr,href:"/m/dashboard/settings",group:"navigation",keywords:["профиль","profile","company","компания"]},{id:"orders",label:"РњРѕРё заявки",icon:Ee,href:"/m/dashboard/orders",group:"navigation",keywords:["заявки","orders"]},{id:"saved",label:"Сохранённые расчёты",icon:_t,href:"/m/dashboard/saved",group:"navigation"},{id:"notifications",label:"Уведомления",icon:Be,href:"/m/notifications",group:"navigation"},{id:"auth",label:"Войти / Зарегистрироваться",icon:fe,href:"/m/auth",group:"navigation"},{id:"supplier",label:"Портал поставщика",icon:xt,href:"/m/supplier",group:"navigation",keywords:["supplier","поставщик"]},{id:"supplier-auctions",label:"Аукционы для поставщика",icon:Ae,href:"/m/supplier/auctions",group:"navigation"},{id:"supplier-bids",label:"РњРѕРё ставки",icon:Ee,href:"/m/supplier/bids",group:"navigation"},{id:"admin-overview",label:"Admin — РћР±Р·РѕСЂ (KPI)",description:"Recharts dashboard — РїРѕРёСЃРєРё, заявки, статистика",icon:Se,href:"/m/admin",group:"admin",adminOnly:!0,keywords:["kpi","overview","РѕР±Р·РѕСЂ","dashboard"]},{id:"admin-exchange-stats",label:"Admin — Статистика Р±РёСЂР¶Рё",icon:Se,href:"/m/admin/exchange/stats",group:"admin",adminOnly:!0},{id:"admin-chat-mod",label:"Admin — Модерация чата",icon:Ie,href:"/m/admin/exchange/chat-moderation",group:"admin",adminOnly:!0},{id:"admin-orders",label:"Admin — Заявки",icon:Zt,href:"/admin/orders",group:"admin",adminOnly:!0,keywords:["orders","applications"]},{id:"admin-contracts",label:"Admin — Договоры",icon:Bt,href:"/admin/contracts",group:"admin",adminOnly:!0},{id:"admin-invoices",label:"Admin — Счета",icon:tr,href:"/admin/invoices",group:"admin",adminOnly:!0},{id:"admin-users",label:"Admin — Пользователи",icon:hr,href:"/admin/users",group:"admin",adminOnly:!0},{id:"admin-routes",label:"Admin — Маршруты",icon:Ut,href:"/admin/routes",group:"admin",adminOnly:!0,keywords:["routes","cities"]},{id:"admin-amocrm",label:"Admin — AmoCRM",icon:Qt,href:"/admin/amocrm",group:"admin",adminOnly:!0},{id:"admin-preview",label:"Design preview tour",description:"Полный СЃРїРёСЃРѕРє /m/* страниц",icon:J,href:"/m/preview",group:"admin",adminOnly:!0}],rt=o.createContext({open:!1,setOpen:()=>{}});function Hr(){return o.useContext(rt)}function Fr({children:t}){const[n,r]=o.useState(!1);return o.useEffect(()=>{function l(a){(a.metaKey||a.ctrlKey)&&a.key==="k"&&(a.preventDefault(),r(i=>!i)),a.key==="Escape"&&r(!1)}return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[]),e.jsxs(rt.Provider,{value:{open:n,setOpen:r},children:[t,e.jsx(Kr,{open:n,setOpen:r})]})}function Kr({open:t,setOpen:n}){var u,x,y;const r=lt(),{user:l}=pt()??{},a=((u=l==null?void 0:l.roles)==null?void 0:u.includes("ADMIN"))||((x=l==null?void 0:l.roles)==null?void 0:x.includes("SUPER_ADMIN"))||((y=l==null?void 0:l.roles)==null?void 0:y.includes("MANAGER")),i=a?Le:Le.filter(g=>!g.adminOnly),d=i.filter(g=>g.group==="navigation"),m=i.filter(g=>g.group==="admin"),b=o.useCallback(g=>{n(!1),r(g.href)},[r,n]);return e.jsxs(_.Dialog,{open:t,onOpenChange:n,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-white 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(ye,{className:"h-4 w-4 text-muted flex-shrink-0"}),e.jsx(_.Input,{placeholder:"РџРѕРёСЃРє страниц Рё действий...",className:"flex-1 bg-transparent outline-none text-sm text-text placeholder:text-muted"}),e.jsx("kbd",{className:"text-[10px] font-mono text-muted border border-border rounded px-1.5 py-0.5",children:"ESC"})]}),e.jsxs(_.List,{className:"max-h-[360px] overflow-y-auto py-2",children:[e.jsx(_.Empty,{className:"py-8 text-center text-sm text-muted",children:"Ничего РЅРµ найдено"}),d.length>0&&e.jsx(_.Group,{heading:"Навигация",className:"px-2",children:d.map(g=>e.jsx(Pe,{item:g,onSelect:()=>b(g)},g.id))}),a&&m.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(_.Separator,{className:"my-1 h-px bg-border"}),e.jsx(_.Group,{heading:"Администрирование",className:"px-2",children:m.map(g=>e.jsx(Pe,{item:g,onSelect:()=>b(g)},g.id))})]})]}),e.jsxs("div",{className:"border-t border-border px-4 py-2 flex items-center gap-4 text-[11px] 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 Pe({item:t,onSelect:n}){const r=t.icon;return e.jsxs(_.Item,{value:[t.label,t.description,...t.keywords??[]].filter(Boolean).join(" "),onSelect:n,className:"flex items-center gap-3 px-2 py-2 rounded-md cursor-pointer text-sm aria-selected:bg-surface group",children:[e.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-border bg-white text-text group-aria-selected:border-primary/30 group-aria-selected:bg-primary/5 flex-shrink-0",children:e.jsx(r,{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:t.label}),t.description&&e.jsx("span",{className:"block text-muted text-xs truncate",children:t.description})]}),e.jsx("span",{className:"text-xs text-muted font-mono opacity-0 group-aria-selected:opacity-100 transition-opacity truncate max-w-[120px]",children:t.href})]},t.id)}function Ur(t=24){const[n,r]=o.useState(!1);return o.useEffect(()=>{if(typeof window>"u")return;let l=0;const a=()=>{l||(l=window.requestAnimationFrame(()=>{l=0,r(window.scrollY>t)}))};return a(),window.addEventListener("scroll",a,{passive:!0}),()=>{window.removeEventListener("scroll",a),l&&window.cancelAnimationFrame(l)}},[t]),n}const Gr=["/","/m/calc","/m/results"];function Yr(){const{pathname:t}=ot(),[n,r]=o.useState(!0);return o.useEffect(()=>{if(typeof window>"u")return;let l=window.scrollY,a=0;const i=()=>{a||(a=window.requestAnimationFrame(()=>{a=0;const d=window.scrollY,m=d-l;Math.abs(m)>=4&&(m>0&&d>200?r(!1):m<0&&r(!0),l=d)}))};return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),a&&window.cancelAnimationFrame(a)}},[]),Gr.includes(t)?null:e.jsxs(k,{to:"/m/calc","aria-label":"Открыть калькулятор",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(Q,{className:"h-4 w-4"}),"Рассчитать"]})}const U="https://avalog.ru";function Wr(){const t={"@context":"https://schema.org","@type":["Organization","LocalBusiness"],name:"Avalog",url:U,logo:`${U}/Logo.svg`,image:`${U}/og-image.jpg`,description:"Avalog — B2B-платформа доступной международной логистики. Онлайн-калькулятор доставки РёР· Китая, РРЅРґРёРё, Турции Р·Р° 15 секунд. 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"}},n={"@context":"https://schema.org","@type":"WebSite",name:"Avalog В· Доступная логистика",url:U,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${U}/m/calc?q={search_term_string}`},"query-input":"required name=search_term_string"},inLanguage:["ru-RU","en-US"]};return e.jsxs(gt,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]})}function at(){return o.useContext(De)}const nt=[{key:"calculator",label:"Калькулятор",to:"/"},{key:"services",label:"Услуги",to:"/services"},{key:"pricing",label:"Тарифы",to:"/plans"},{key:"blog",label:"База знаний",to:"/resources"},{key:"exchange",label:"Биржа",to:"/exchange"}],st=[{slug:"importer",label:"Рмпортёрам",desc:"Регулярный B2B-РёРјРїРѕСЂС‚",icon:pr},{slug:"exporter",label:"Ркспортёрам",desc:"РЎРќР“ В· РђР·РёСЏ В· ЕС",icon:vt},{slug:"forwarder",label:"Форвардерам",desc:"Партнёрский API",icon:zt},{slug:"carrier",label:"Перевозчикам",desc:"Биржа Avalog",icon:dr}],he=[{code:"ru",label:"Р СѓСЃСЃРєРёР№",short:"RU"},{code:"en",label:"English",short:"EN"},{code:"zho",label:"дёж–‡",short:"дёж–‡"}];function Zr(){var l;const{i18n:t}=St(),n=((l=t.language)==null?void 0:l.split("-")[0])??"ru",r=he.find(a=>a.code===n)??he[0];return e.jsxs(qe,{children:[e.jsx(Te,{asChild:!0,children:e.jsxs("button",{type:"button","aria-label":"Сменить язык",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(J,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:r.short})]})}),e.jsxs(He,{align:"end",children:[e.jsx(Fe,{children:"Язык интерфейса"}),e.jsx(Ke,{}),he.map(a=>e.jsxs(Ue,{onSelect:()=>{t.changeLanguage(a.code)},className:a.code===n?"font-semibold text-primary":"",children:[e.jsx("span",{className:"w-10 font-mono text-xs text-text-muted",children:a.short}),e.jsx("span",{children:a.label})]},a.code))]})]})}function Jr({active:t}){const n=t==="solutions";return e.jsxs(qe,{children:[e.jsx(Te,{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:["Решения",e.jsx(bt,{className:"h-3.5 w-3.5"})]})}),e.jsxs(He,{align:"start",className:"w-72",children:[e.jsx(Fe,{children:"Решения для бизнеса"}),e.jsx(Ke,{}),st.map(r=>{const l=r.icon;return e.jsx(Ue,{asChild:!0,children:e.jsxs(k,{to:`/solutions/${r.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(l,{className:"h-4 w-4 text-primary"})}),e.jsxs(R,{gap:0,children:[e.jsx(C,{weight:"semibold",className:"text-sm",children:r.label}),e.jsx(C,{variant:"muted",className:"text-xs",children:r.desc})]})]})},r.slug)})]})]})}function Qr(){const t=at(),n=(t==null?void 0:t.isAuthenticated)??!1,r=n?"/m/profile":"/m/auth",l=n?"Личный кабинет":"Войти",a=n?Ge:fe;return e.jsx(D,{variant:"outline",size:"sm",asChild:!0,children:e.jsxs(k,{to:r,children:[e.jsx(a,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden lg:inline",children:l})]})})}function Xr({active:t}){const[n,r]=o.useState(!1),l=at(),a=(l==null?void 0:l.isAuthenticated)??!1;return e.jsxs(jt,{open:n,onOpenChange:r,children:[e.jsx(wt,{asChild:!0,children:e.jsx("button",{type:"button","aria-label":"Открыть меню",className:"lg:hidden h-9 w-9 rounded-md hover:bg-bg-surface flex items-center justify-center text-text",children:e.jsx(Yt,{className:"h-5 w-5"})})}),e.jsxs(kt,{side:"right",className:"w-full sm:max-w-sm flex flex-col",children:[e.jsxs(Nt,{children:[e.jsx(Ct,{children:e.jsxs(E,{gap:2,align:"center",children:[e.jsx("div",{className:"h-7 w-7 rounded-md bg-primary flex items-center justify-center text-primary-foreground font-bold text-xs",children:"A"}),e.jsx("span",{className:"font-display font-bold",children:"Avalog"})]})}),e.jsx(Mt,{className:"sr-only",children:"Главное меню Avalog — навигация РїРѕ сайту"})]}),e.jsx("nav",{className:"flex-1 overflow-y-auto py-6",children:e.jsxs(R,{gap:1,children:[nt.map(i=>e.jsx(F,{asChild:!0,children:e.jsx(k,{to:i.to,className:`block px-2 py-3 rounded-md text-base ${t===i.key?"text-primary font-semibold bg-primary-light/40":"text-text hover:bg-bg-surface"}`,children:i.label})},i.key)),e.jsx("div",{className:"pt-2 pb-1 px-2",children:e.jsx(C,{variant:"caption",children:"Решения для бизнеса"})}),st.map(i=>{const d=i.icon;return e.jsx(F,{asChild:!0,children:e.jsxs(k,{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(d,{className:"h-4 w-4 text-primary"})}),e.jsxs(R,{gap:0,children:[e.jsx(C,{className:"text-sm font-medium",children:i.label}),e.jsx(C,{variant:"muted",className:"text-xs",children:i.desc})]})]})},i.slug)})]})}),e.jsx("div",{className:"pt-4 border-t border-border",children:e.jsxs(R,{gap:3,children:[e.jsx(F,{asChild:!0,children:e.jsx(D,{asChild:!0,children:e.jsxs(k,{to:"/",children:[e.jsx(Q,{className:"h-4 w-4"}),"Рассчитать"]})})}),e.jsx(F,{asChild:!0,children:e.jsx(D,{variant:"outline",asChild:!0,children:e.jsxs(k,{to:a?"/m/profile":"/m/auth",children:[a?e.jsx(Ge,{className:"h-4 w-4"}):e.jsx(fe,{className:"h-4 w-4"}),a?"Личный кабинет":"Войти"]})})}),a&&e.jsx(F,{asChild:!0,children:e.jsx(D,{variant:"ghost",asChild:!0,children:e.jsxs(k,{to:"/m/notifications",children:[e.jsx(Be,{className:"h-4 w-4"}),"Уведомления"]})})}),e.jsxs("a",{href:"tel:+74999488801",className:"flex items-center justify-center gap-2 text-sm text-text-muted py-2",children:[e.jsx(pe,{className:"h-3.5 w-3.5"}),"+7 499 948-88-01"]})]})})]})]})}function ea(){const{setOpen:t}=Hr();return e.jsxs("button",{onClick:()=>t(!0),"aria-label":"Открыть РїРѕРёСЃРє (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(ye,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"text-xs",children:"РџРѕРёСЃРє"}),e.jsx("kbd",{className:"text-[10px] font-mono border border-border rounded px-1 py-0.5 bg-bg-base",children:"вЊK"})]})}function ia({children:t,active:n=null,containerSize:r="base"}){const l=Ur(24);return e.jsxs(Fr,{children:[e.jsx(Wr,{}),e.jsxs("div",{className:"min-h-screen bg-bg-base text-text font-body flex flex-col",children:[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",l?"border-border shadow-sm":"border-transparent"].join(" "),children:e.jsx(me,{size:r,children:e.jsxs(E,{justify:"between",align:"center",className:["transition-[height] duration-200",l?"h-12":"h-16"].join(" "),children:[e.jsxs(E,{gap:8,align:"center",children:[e.jsxs(k,{to:"/",className:"flex items-center gap-2 group",children:[e.jsx("div",{className:["rounded-md bg-primary flex items-center justify-center text-primary-foreground font-bold transition-[height,width] duration-200",l?"h-7 w-7 text-xs":"h-8 w-8 text-sm"].join(" "),children:"A"}),e.jsx("span",{className:"font-display font-bold text-lg tracking-tight",children:"Avalog"}),e.jsx(Oe,{variant:"success",className:l?"hidden":"hidden xl:inline-flex",children:"Доступная логистика"})]}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-5 lg:gap-6",children:[nt.map(a=>e.jsxs(k,{to:a.to,className:n===a.key?"text-primary font-semibold inline-flex items-center":"text-text-muted hover:text-text transition-colors inline-flex items-center",children:[a.label,a.key==="exchange"&&e.jsx(gr,{})]},a.key)),e.jsx(Jr,{active:n})]})]}),e.jsxs(E,{gap:2,align:"center",children:[e.jsxs("a",{href:"tel:+74999488801",className:"hidden xl:flex items-center gap-1.5 text-sm text-text-muted hover:text-text",children:[e.jsx(pe,{className:"h-3.5 w-3.5"}),"+7 499 948-88-01"]}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(Zr,{})}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(ft,{})}),e.jsx("span",{className:"hidden md:inline-flex",children:e.jsx(Qr,{})}),e.jsx(ea,{}),e.jsx(D,{asChild:!0,size:"sm",children:e.jsxs(k,{to:"/",children:[e.jsx(Q,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Рассчитать"})]})}),e.jsx(Xr,{active:n})]})]})})}),e.jsx("main",{className:"flex-1",children:t}),e.jsx(Ve,{bg:"navy",py:"md",className:"mt-auto",children:e.jsx(me,{size:r,children:e.jsxs(R,{gap:8,children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8",children:[e.jsxs(R,{gap:3,className:"col-span-2 lg:col-span-2 max-w-md",children:[e.jsxs(E,{gap:2,align:"center",children:[e.jsx("div",{className:"h-7 w-7 rounded-md bg-primary flex items-center justify-center text-primary-foreground font-bold text-xs",children:"A"}),e.jsx(C,{weight:"semibold",className:"text-accent-navy-foreground",children:"Avalog В· Доступная логистика"})]}),e.jsx(C,{className:"text-accent-navy-foreground/70 text-sm",children:"Прозрачные тарифы. Маршрут есть. Ответ Р·Р° 15 секунд."}),e.jsxs(E,{gap:3,align:"center",className:"pt-2",children:[e.jsx("a",{href:"tel:+74999488801","aria-label":"Позвонить",className:"h-9 w-9 rounded-md bg-accent-navy-foreground/10 hover:bg-primary flex items-center justify-center text-accent-navy-foreground/80 hover:text-primary-foreground transition-colors",children:e.jsx(pe,{className:"h-4 w-4"})}),e.jsx("a",{href:"mailto:info@avalog.ru","aria-label":"Написать РЅР° email",className:"h-9 w-9 rounded-md bg-accent-navy-foreground/10 hover:bg-primary flex items-center justify-center text-accent-navy-foreground/80 hover:text-primary-foreground transition-colors",children:e.jsx(Re,{className:"h-4 w-4"})})]})]}),e.jsxs(R,{gap:2,children:[e.jsx(C,{variant:"caption",className:"text-accent-navy-foreground/60",children:"Услуги"}),[{to:"/services/marine",label:"РњРѕСЂСЃРєРёРµ"},{to:"/services/railway",label:"Р–/Р”"},{to:"/services/auto",label:"Авто"},{to:"/services/air",label:"РђРІРёР°"},{to:"/services/groupage",label:"Сборные"},{to:"/services/customs",label:"Таможня"}].map(a=>e.jsx(k,{to:a.to,className:"text-accent-navy-foreground/80 hover:text-accent-navy-foreground text-sm",children:a.label},a.to))]}),e.jsxs(R,{gap:2,children:[e.jsx(C,{variant:"caption",className:"text-accent-navy-foreground/60",children:"Компания"}),[{to:"/about-company",label:"Рћ компании"},{to:"/plans",label:"Тарифы"},{to:"/contacts",label:"Контакты"},{to:"/vacancies",label:"Вакансии"},{to:"/reviews",label:"Отзывы"}].map(a=>e.jsx(k,{to:a.to,className:"text-accent-navy-foreground/80 hover:text-accent-navy-foreground text-sm",children:a.label},a.to))]}),e.jsxs(R,{gap:2,children:[e.jsx(C,{variant:"caption",className:"text-accent-navy-foreground/60",children:"Ресурсы"}),[{to:"/resources",label:"База знаний"},{to:"/resources/guides",label:"Гайды"},{to:"/resources/glossary",label:"Глоссарий"},{to:"/tools",label:"Рнструменты"},{to:"/blog",label:"Блог"}].map(a=>e.jsx(k,{to:a.to,className:"text-accent-navy-foreground/80 hover:text-accent-navy-foreground text-sm",children:a.label},a.to))]})]}),e.jsx("div",{className:"pt-6 border-t border-accent-navy-foreground/10",children:e.jsxs(E,{justify:"between",wrap:!0,gap:6,align:"center",children:[e.jsxs(R,{gap:1,className:"max-w-md",children:[e.jsxs(E,{gap:2,align:"center",children:[e.jsx(nr,{className:"h-4 w-4 text-primary"}),e.jsx(C,{weight:"semibold",className:"text-accent-navy-foreground",children:"Маркет-апдейты раз РІ 2 недели"})]}),e.jsx(C,{className:"text-accent-navy-foreground/70 text-sm",children:"Ставки, изменения Сѓ линий, новые гайды. Без спама."})]}),e.jsx(D,{asChild:!0,variant:"outline",children:e.jsxs("a",{href:"mailto:info@avalog.ru?subject=Маркет-апдейты%20-%20РїРѕРґРїРёСЃРєР°",children:[e.jsx(Re,{className:"h-4 w-4"}),"Подписаться"]})})]})}),e.jsx("div",{className:"pt-6 border-t border-accent-navy-foreground/10",children:e.jsxs(E,{justify:"between",wrap:!0,gap:3,children:[e.jsxs(E,{gap:4,wrap:!0,children:[e.jsxs(C,{variant:"muted",className:"text-accent-navy-foreground/50 text-xs",children:["В© ",new Date().getFullYear()," Avalog. Р’СЃРµ права защищены."]}),e.jsxs(E,{gap:2,align:"center",className:"text-accent-navy-foreground/50 text-xs",children:[e.jsx(J,{className:"h-3 w-3"})," RU В· EN В· дёж–‡"]})]}),e.jsxs(E,{gap:4,children:[e.jsx(k,{to:"/privacy-policy",className:"text-accent-navy-foreground/60 hover:text-accent-navy-foreground/90 text-xs",children:"Политика конфиденциальности"}),e.jsx(k,{to:"/contacts",className:"text-accent-navy-foreground/60 hover:text-accent-navy-foreground/90 text-xs",children:"Контакты"})]})]})})]})})}),e.jsx(Yr,{})]})]})}function ca({title:t="Рассчитайте СЃРІРѕР№ маршрут Р·Р° 15 секунд",description:n="2490 РіРѕСЂРѕРґРѕРІ В· 60 000 контейнеров В· 100 000 маршрутов В· РѕС‚ перевозчика напрямую",ctaLabel:r="Рассчитать",ctaTo:l="/"}){return e.jsx(Ve,{bg:"primary-light",py:"md",children:e.jsx(me,{size:"base",children:e.jsxs(E,{justify:"between",align:"center",wrap:!0,gap:6,children:[e.jsxs(R,{gap:1,children:[e.jsx(C,{weight:"bold",className:"text-xl text-text",children:t}),e.jsx(C,{className:"text-text-muted",children:n})]}),e.jsx(D,{size:"lg",asChild:!0,children:e.jsxs(k,{to:l,children:[r,e.jsx(yt,{className:"h-4 w-4"})]})})]})})})}export{Rt as B,Q as C,Bt as F,qt as H,Ht as L,Re as M,Zt as P,tr as R,ye as S,hr as U,pr as W,_t as a,zt as b,Se as c,Ee as d,Ut as e,ca as f,ia as g,pe as h,nr as i,lr as j,Ie as k,dr as l};