import{x as R,n as e,a as A,L as c,q as y}from"./vendor-react-DfNOgXDS.js";import{al as I,bb as m,P as h,bw as r,M as l,bE as t,B as O,Z as M,r as f,ak as x,aj as g,aK as U,bP as D,bN as H,bs as K,v as j,w as b,am as V,cg as q,c0 as G}from"./index-BOsmuAFH.js";import"./vendor-dayjs-BrZ9gQN4.js";import{g as J,e as $,C as Y,P as Z,F as T,f as Q}from"./MarketingShell-Do4HKVb1.js";import{a as L}from"./dostavka-C8FDUgjJ.js";import{u as P,t as C,a as _}from"./formAnalytics-BI6nVQtJ.js";import{E as W}from"./earth-CkPqFVXJ.js";import{C as X}from"./circle-check-DyKL7cKh.js";import"./vendor-query-CutdBoCI.js";import"./vendor-antd-core-R0BvUBa1.js";import"./vendor-i18n-BWzZRYJm.js";import"./vendor-sentry-BlaL7Aw0.js";import"./zap-BQh_Z_ty.js";import"./globe-C0_ytgWh.js";const E={sea:{label:"Море",icon:K,bg:"bg-blue-100 text-blue-800"},rail:{label:"Ж/Д",icon:H,bg:"bg-violet-100 text-violet-800"},road:{label:"Авто",icon:D,bg:"bg-orange-100 text-orange-800"},air:{label:"Авиа",icon:U,bg:"bg-cyan-100 text-cyan-800"}},ee={china:"Китая",turkey:"Турции",india:"Индии"};function se(s){return{"@context":"https://schema.org","@type":"Service",name:`Доставка из ${s.name} в Россию`,description:s.tagline,url:`https://avalog.ru/dostavka/${s.country}/${s.slug}`,provider:{"@type":"Organization",name:"Avalog",url:"https://avalog.ru"},areaServed:[{"@type":"City",name:s.nameEn},{"@type":"Country",name:"Russia"}],serviceType:"Freight Forwarding",offers:s.transports.map(n=>{var d;return{"@type":"Offer",name:((d=E[n.type])==null?void 0:d.label)??n.type,description:`${n.days}, ${n.notes}`,priceSpecification:{"@type":"PriceSpecification",priceCurrency:"RUB",minPrice:n.from.replace(/[^\d]/g,"")}}})}}function ae({cityName:s}){const[n,d]=y.useState(""),[o,a]=y.useState(""),[i,p]=y.useState("idle"),[k,N]=y.useState(null),S=P("name","city_lead"),F=P("phone","city_lead");async function B(u){u.preventDefault();const z=n.trim(),w=o.trim();let v=0;if(z||(N("Введите имя"),_("name","city_lead","Введите имя"),v++),(!w||w.length<7)&&(N("Введите номер телефона"),_("phone","city_lead","Введите номер телефона"),v++),v>0){C("city_lead",!1,v);return}N(null),p("submitting");try{await q.submit({formType:"city_landing",name:z,phone:w,email:"",cityFrom:s}),p("done"),G("city_lead_captured",{cityFrom:s}),C("city_lead",!0)}catch{p("idle"),N("Не удалось отправить. Попробуйте ещё раз."),C("city_lead",!1,0)}}return i==="done"?e.jsxs(l,{gap:4,align:"center",className:"py-2",children:[e.jsx(X,{className:"h-6 w-6 text-success shrink-0"}),e.jsxs(r,{gap:0,children:[e.jsx(t,{weight:"semibold",children:"Заявка принята!"}),e.jsx(t,{variant:"muted",className:"text-sm",children:"Менеджер свяжется с вами в течение 15 минут в рабочее время."})]})]}):e.jsxs("form",{onSubmit:B,className:"flex flex-col sm:flex-row gap-3",children:[e.jsx("input",{type:"text",value:n,onChange:u=>d(u.target.value),onFocus:S.onFocus,onBlur:S.onBlur,placeholder:"Ваше имя",disabled:i==="submitting",className:"flex h-10 rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 flex-1 min-w-0",autoComplete:"name"}),e.jsx("input",{type:"tel",value:o,onChange:u=>a(u.target.value),onFocus:F.onFocus,onBlur:F.onBlur,placeholder:"+7 999 123-45-67",disabled:i==="submitting",className:"flex h-10 rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 flex-1 min-w-0",autoComplete:"tel"}),e.jsx(f,{type:"submit",disabled:i==="submitting",className:"shrink-0",children:i==="submitting"?"Отправка...":"Получить расчёт"}),k&&e.jsx(t,{className:"text-xs text-destructive self-center",children:k})]})}function te({city:s}){var o;const n=ee[s.country],d=se(s);return e.jsxs(J,{active:null,children:[e.jsxs(I,{children:[e.jsxs("title",{children:["Доставка из ",s.name," в Россию — Avalog"]}),e.jsx("meta",{name:"description",content:`Доставка из ${s.name} (${s.nameEn}) в РФ: морские контейнеры FCL/LCL, ж/д, авиа. От ${((o=s.transports[0])==null?void 0:o.from)??"195 000 ₽"} за FCL. Маршруты, документы, тарифы.`}),e.jsx("link",{rel:"canonical",href:`https://avalog.ru/dostavka/${s.country}/${s.slug}`}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(d)}})]}),e.jsx(m,{py:"lg",bg:"surface",children:e.jsx(h,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(l,{gap:2,align:"center",children:[e.jsx(c,{to:"/",className:"text-sm text-text-muted hover:text-text",children:"Главная"}),e.jsx("span",{className:"text-text-subtle",children:"/"}),e.jsx(c,{to:"/dostavka",className:"text-sm text-text-muted hover:text-text",children:"Доставка"}),e.jsx("span",{className:"text-text-subtle",children:"/"}),e.jsx(c,{to:`/dostavka/${s.country}`,className:"text-sm text-text-muted hover:text-text",children:n}),e.jsx("span",{className:"text-text-subtle",children:"/"}),e.jsx(t,{className:"text-sm font-medium text-text",children:s.name})]}),e.jsxs(r,{gap:4,className:"max-w-3xl",children:[e.jsxs(O,{variant:"default",children:[e.jsx($,{className:"h-3.5 w-3.5 mr-1"}),s.region]}),e.jsxs(M,{size:"lg",children:["Доставка из ",s.name," в Россию"]}),e.jsx(t,{variant:"lead",className:"text-text-muted",children:s.tagline}),e.jsx(t,{variant:"muted",className:"leading-relaxed",children:s.description}),e.jsxs(l,{gap:3,wrap:!0,children:[e.jsx(f,{size:"lg",asChild:!0,children:e.jsxs(c,{to:`/?from=${encodeURIComponent(s.name)}`,children:[e.jsx(Y,{className:"h-4 w-4"}),"Рассчитать из ",s.name]})}),e.jsx(f,{size:"lg",variant:"outline",asChild:!0,children:e.jsx(c,{to:"/contacts",children:"Поговорить с менеджером"})})]})]})]})})}),e.jsx(m,{py:"lg",bg:"base",children:e.jsx(h,{size:"base",children:e.jsxs(r,{gap:8,children:[e.jsxs(r,{gap:2,children:[e.jsx(x,{size:"h2",as:"h2",children:"Доступные виды транспорта"}),e.jsx(t,{variant:"lead",className:"text-text-muted",children:"Сравните срок и стоимость по каждому варианту."})]}),e.jsx(g,{cols:4,gap:6,children:s.transports.map(a=>{const i=E[a.type],p=i.icon;return e.jsx(j,{className:"h-full",children:e.jsx(b,{className:"pt-5",children:e.jsxs(r,{gap:3,children:[e.jsxs(l,{gap:3,align:"center",children:[e.jsx("div",{className:`h-10 w-10 rounded-lg flex items-center justify-center ${i.bg}`,children:e.jsx(p,{className:"h-5 w-5"})}),e.jsx(x,{size:"h4",as:"h3",children:i.label})]}),e.jsxs(r,{gap:1,children:[e.jsx(t,{variant:"caption",className:"text-text-muted",children:"Срок"}),e.jsx(t,{weight:"semibold",children:a.days})]}),e.jsxs(r,{gap:1,children:[e.jsx(t,{variant:"caption",className:"text-text-muted",children:"Цена"}),e.jsxs(t,{weight:"bold",className:"text-primary tabular-nums",children:["от ",a.from]})]}),e.jsx(t,{variant:"muted",className:"text-xs",children:a.notes})]})})},a.type)})})]})})}),e.jsx(m,{py:"lg",bg:"surface",children:e.jsx(h,{size:"base",children:e.jsxs(r,{gap:8,children:[e.jsxs(r,{gap:2,children:[e.jsxs(x,{size:"h2",as:"h2",children:["Топ-направления из ",s.name]}),e.jsx(t,{variant:"lead",className:"text-text-muted",children:"Самые востребованные маршруты с типовыми ставками."})]}),e.jsx(g,{cols:3,gap:6,children:s.topRoutes.map(a=>e.jsx(j,{className:"h-full hover:shadow-md transition-shadow",children:e.jsx(b,{className:"pt-5",children:e.jsxs(r,{gap:3,children:[e.jsxs(l,{gap:2,align:"center",children:[e.jsx($,{className:"h-4 w-4 text-primary"}),e.jsxs(t,{weight:"semibold",children:[s.name," → ",a.to]})]}),e.jsxs(l,{justify:"between",align:"baseline",children:[e.jsxs(r,{gap:0,children:[e.jsx(t,{variant:"caption",className:"text-text-muted",children:"Срок"}),e.jsx(t,{className:"text-sm",children:a.days})]}),e.jsxs(r,{gap:0,align:"end",children:[e.jsx(t,{variant:"caption",className:"text-text-muted",children:"от"}),e.jsxs(t,{weight:"bold",className:"text-primary tabular-nums",children:[a.priceFrom.toLocaleString("ru-RU")," ₽"]})]})]}),e.jsx(t,{variant:"muted",className:"text-xs pt-2 border-t border-border/60",children:a.unit})]})})},a.to))})]})})}),e.jsx(m,{py:"lg",bg:"base",children:e.jsx(h,{size:"base",children:e.jsxs(g,{cols:2,gap:10,children:[e.jsxs(r,{gap:4,children:[e.jsxs(l,{gap:3,align:"center",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary-light flex items-center justify-center",children:e.jsx(Z,{className:"h-5 w-5 text-primary"})}),e.jsxs(x,{size:"h3",as:"h2",children:["Что обычно везут из ",s.name]})]}),e.jsx("ul",{className:"space-y-3",children:s.typicalCargo.map(a=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-primary mt-2 shrink-0"}),e.jsx(t,{className:"leading-relaxed",children:a})]},a))})]}),e.jsxs(r,{gap:4,children:[e.jsxs(l,{gap:3,align:"center",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary-light flex items-center justify-center",children:e.jsx(V,{className:"h-5 w-5 text-primary"})}),e.jsx(x,{size:"h3",as:"h2",children:"Особенности"})]}),e.jsx("ul",{className:"space-y-3",children:s.specifics.map(a=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-primary mt-2 shrink-0"}),e.jsx(t,{className:"leading-relaxed",children:a})]},a))})]})]})})}),e.jsx(m,{py:"lg",bg:"surface",children:e.jsx(h,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(l,{gap:3,align:"center",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary-light flex items-center justify-center",children:e.jsx(T,{className:"h-5 w-5 text-primary"})}),e.jsx(x,{size:"h2",as:"h2",children:"Документы для импорта"})]}),e.jsxs(t,{variant:"lead",className:"text-text-muted max-w-2xl",children:["Минимальный пакет для оформления отгрузки из ",s.name,". Для разных категорий грузов перечень может расширяться (CN: фитосан / ветконтроль)."]}),e.jsx(g,{cols:2,gap:4,children:s.documents.map((a,i)=>e.jsx(j,{className:"h-full",children:e.jsx(b,{className:"pt-4 pb-4",children:e.jsxs(l,{gap:3,align:"start",children:[e.jsx(t,{className:"font-mono text-xs font-bold text-primary/60","aria-hidden":!0,children:String(i+1).padStart(2,"0")}),e.jsx(t,{className:"text-sm leading-relaxed",children:a})]})})},a))}),e.jsxs(l,{gap:3,className:"pt-2",children:[e.jsx(f,{variant:"outline",asChild:!0,children:e.jsxs(c,{to:"/tools/docs-check",children:[e.jsx(T,{className:"h-4 w-4"}),"Чеклист документов"]})}),e.jsx(f,{variant:"outline",asChild:!0,children:e.jsx(c,{to:"/documents",children:"Шаблоны"})})]})]})})}),e.jsx(m,{py:"lg",bg:"base",children:e.jsx(h,{size:"base",children:e.jsx(j,{className:"border-primary/20 bg-primary/[0.03]",children:e.jsx(b,{className:"pt-8 pb-8",children:e.jsxs(r,{gap:6,children:[e.jsxs(r,{gap:2,className:"max-w-xl",children:[e.jsx(x,{size:"h2",as:"h2",children:"Получить расчёт за 15 минут"}),e.jsxs(t,{variant:"lead",className:"text-text-muted",children:["Оставьте имя и телефон — менеджер перезвонит, уточнит параметры груза и пришлёт ставки по всем видам транспорта из ",s.name,"."]})]}),e.jsx(ae,{cityName:s.name}),e.jsxs(t,{variant:"muted",className:"text-xs",children:["Нажимая «Получить расчёт», вы соглашаетесь с"," ",e.jsx(c,{to:"/privacy",className:"underline underline-offset-2 hover:text-text",children:"политикой обработки данных"}),". Без спама."]})]})})})})}),e.jsx(m,{py:"lg",bg:"surface",children:e.jsx(h,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(x,{size:"h3",as:"h2",children:["Другие города ",n]}),e.jsx(g,{cols:4,gap:4,children:Object.values(L).filter(a=>a.country===s.country&&a.slug!==s.slug).slice(0,4).map(a=>e.jsx(c,{to:`/dostavka/${a.country}/${a.slug}`,className:"group block",children:e.jsx(j,{className:"h-full hover:shadow-md hover:border-primary/40 transition-all",children:e.jsx(b,{className:"pt-5 pb-5",children:e.jsxs(r,{gap:2,children:[e.jsxs(l,{gap:2,align:"center",children:[e.jsx(W,{className:"h-4 w-4 text-primary"}),e.jsx(t,{weight:"semibold",children:a.name})]}),e.jsx(t,{variant:"muted",className:"text-xs",children:a.region})]})})})},a.slug))})]})})}),e.jsx(Q,{title:`Рассчитайте доставку из ${s.name} за 15 секунд`,description:"Все варианты транспорта в одном расчёте — без переписки и звонков.",ctaLabel:"Рассчитать",ctaTo:`/?from=${encodeURIComponent(s.name)}`})]})}function be(){const{country:s,city:n}=R(),d=`${s}/${n}`,o=L[d];return o?e.jsx(te,{city:o}):e.jsx(A,{to:"/",replace:!0})}export{be as default};