import{r as m,j as e}from"./vendor-react-BwKDLVNL.js";import{s}from"./Blog.module-B4xROx4L.js";import{o as x}from"./index-C1ye5P3I.js";import{f as u}from"./formApi-DeOfwCqo.js";import{u as j}from"./vendor-i18n-C6wqqoou.js";import{F as N}from"./Footer-DT26RKSu.js";import"./vendor-query-D-sr233n.js";import"./vendor-dayjs-5tvLiZdS.js";import"./vendor-sentry-B6ofghpF.js";import"./vendor-antd-core-4y2ghozH.js";import"./SiteFooter-CMa-vyJL.js";import"./globe-C6LFgqFt.js";import"./send-BPZS28JS.js";const d="/phoneNews.webp",r="/shipNews.png",v=()=>{const{t:i}=j(),{user:c}=x(),[a,o]=m.useState({name:"",phone:"",email:"",comment:""});m.useEffect(()=>{c&&o(l=>({...l,name:l.name||c.fullName||"",email:l.email||c.email||"",phone:l.phone||c.phone||""}))},[c]);const n=l=>{const{name:t,value:g}=l.target;o(p=>({...p,[t]:g}))},h=async l=>{if(l.preventDefault(),!a.name||!a.phone||!a.email){alert("Пожалуйста, заполните имя, телефон и почту");return}try{await u.submit({formType:"questions",name:(c&&c.fullName||a.name).trim(),phone:(c&&c.phone||a.phone).trim(),email:(c&&c.email||a.email).trim(),message:a.comment||'Вопрос с секции "Остались вопросы?"'}),o({name:"",phone:"",email:"",comment:""}),alert(i("servicePages.contactForm.successMessage","Заявка успешно отправлена! Наш менеджер свяжется с Вами в ближайшее время."))}catch(t){console.error("Ошибка:",t),alert(i("servicePages.contactForm.errorMessage","Произошла ошибка при отправке формы"))}};return e.jsx("section",{className:"questions-section",children:e.jsxs("div",{className:"questions-container",children:[e.jsx("h2",{className:"questions-title",children:i("servicePages.contactForm.title")}),e.jsx("p",{className:"questions-description",children:i("servicePages.contactForm.description")}),e.jsxs("form",{onSubmit:h,className:"questions-form",children:[e.jsx("input",{type:"text",name:"name",value:a.name,onChange:n,placeholder:i("servicePages.contactForm.namePlaceholder"),className:"questions-input",required:!0}),e.jsx("input",{type:"tel",name:"phone",value:a.phone,onChange:n,placeholder:i("servicePages.contactForm.phonePlaceholder"),className:"questions-input",required:!0}),e.jsx("input",{type:"email",name:"email",value:a.email,onChange:n,placeholder:i("servicePages.contactForm.emailPlaceholder","Почта"),className:"questions-input",required:!0}),e.jsx("textarea",{name:"comment",value:a.comment,onChange:n,placeholder:i("servicePages.contactForm.commentPlaceholder","Комментарий"),className:"questions-input questions-input-comment",rows:1,"aria-label":"Комментарий"}),e.jsx("button",{type:"submit",className:"questions-button",children:i("servicePages.contactForm.submitButton","Отправить").toUpperCase()})]})]})})};function E(){return e.jsxs("div",{className:s["blog-container"],children:[e.jsx("h1",{className:s["blog-title"],children:"БЛОГ"}),e.jsxs("div",{className:s["blog-content"],children:[e.jsxs("div",{className:`${s["blog-row"]} ${s.two}`,children:[e.jsxs("div",{className:s["blog-card"],children:[e.jsxs("div",{className:s["blog-card-image"],children:[e.jsx("img",{src:d,alt:"Phone News",loading:"lazy",decoding:"async"}),e.jsx("div",{className:s["blog-category"],children:"Логистика"})]}),e.jsxs("div",{className:s["blog-card-content"],children:[e.jsx("h3",{children:"Как организовать склад для товаров для дома и ремонта: лучшие практики и инновации от Avalog для бизнеса любых масштабов"}),e.jsx("div",{className:s["blog-date"],children:"02.07.2025"})]})]}),e.jsxs("div",{className:s["blog-card"],children:[e.jsxs("div",{className:s["blog-card-image"],children:[e.jsx("img",{src:d,alt:"Phone News",loading:"lazy",decoding:"async"}),e.jsx("div",{className:s["blog-category"],children:"Технологии"})]}),e.jsxs("div",{className:s["blog-card-content"],children:[e.jsx("h3",{children:"Современные технологии в логистике: как ИИ и автоматизация меняют отрасль"}),e.jsx("div",{className:s["blog-date"],children:"01.07.2025"})]})]})]}),e.jsxs("div",{className:`${s["blog-row"]} ${s.three}`,children:[e.jsxs("div",{className:s["blog-card"],children:[e.jsxs("div",{className:s["blog-card-image"],children:[e.jsx("img",{src:r,alt:"Ship News",loading:"lazy",decoding:"async"}),e.jsx("div",{className:s["blog-category"],children:"Морские перевозки"})]}),e.jsxs("div",{className:s["blog-card-content"],children:[e.jsx("h3",{children:"Особенности морской логистики и перевозок"}),e.jsx("div",{className:s["blog-date"],children:"30.06.2025"})]})]}),e.jsxs("div",{className:s["blog-card"],children:[e.jsxs("div",{className:s["blog-card-image"],children:[e.jsx("img",{src:r,alt:"Ship News",loading:"lazy",decoding:"async"}),e.jsx("div",{className:s["blog-category"],children:"Контейнеры"})]}),e.jsxs("div",{className:s["blog-card-content"],children:[e.jsx("h3",{children:"Эффективные решения для контейнерной логистики"}),e.jsx("div",{className:s["blog-date"],children:"29.06.2025"})]})]}),e.jsxs("div",{className:s["blog-card"],children:[e.jsxs("div",{className:s["blog-card-image"],children:[e.jsx("img",{src:r,alt:"Ship News",loading:"lazy",decoding:"async"}),e.jsx("div",{className:s["blog-category"],children:"Торговля"})]}),e.jsxs("div",{className:s["blog-card-content"],children:[e.jsx("h3",{children:"Тренды и перспективы международной торговли"}),e.jsx("div",{className:s["blog-date"],children:"28.06.2025"})]})]})]})]}),e.jsx(v,{}),e.jsx("div",{className:s.whiteDivider,children:e.jsx("div",{className:s.whiteLine})}),e.jsx(N,{})]})}export{E as default};