build
This commit is contained in:
parent
3bcc31fe8b
commit
38fd208f81
|
|
@ -1 +1 @@
|
||||||
import{u as t,j as s,g as e,C as u,L as n,A as r,h as i,k as x,l,m}from"./ui-library-D_5HaVyj.js";import"./react-vendor-OnsDvTPE.js";import{u as j}from"./use-scroll-top-ByehxtTO.js";function g(){j();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(l,{}),s.jsx(m,{})]})}export{g as default};
|
import{u as t,j as s,g as e,C as u,L as n,A as r,h as i,k as x,l,m}from"./ui-library-SS_r3a4p.js";import"./react-vendor-OnsDvTPE.js";import{u as j}from"./use-scroll-top-ByehxtTO.js";function g(){j();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(l,{}),s.jsx(m,{})]})}export{g as default};
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
import{z as t,u as h,x as _,j as e,C as g,L as y,D as f,y as S,o as v,v as l,p as o,q as F,r as c,s as i,t as p,B as N,w,E as C,K as L,G as R}from"./ui-library-D_5HaVyj.js";import{a as B}from"./react-vendor-OnsDvTPE.js";import{R as V,a as j}from"./radio-group-lL0Eg9Ux.js";import{u as D}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-Dr6usuZY.js";const E=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),G={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function z(){D();const a=h(n=>n.lang),[x,b]=B.useState(!1),s=_({resolver:R(E),defaultValues:G}),d=async n=>{try{await L(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===y.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(f,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(V,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{z as default};
|
import{z as t,u as h,x as _,j as e,C as g,L as y,D as f,y as S,o as v,v as l,p as o,q as F,r as c,s as i,t as p,B as N,w,E as C,K as L,G as R}from"./ui-library-SS_r3a4p.js";import{a as B}from"./react-vendor-OnsDvTPE.js";import{R as V,a as j}from"./radio-group-C5pxhYmY.js";import{u as D}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-Dr6usuZY.js";const E=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),G={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function z(){D();const a=h(n=>n.lang),[x,b]=B.useState(!1),s=_({resolver:R(E),defaultValues:G}),d=async n=>{try{await L(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===y.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(f,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(V,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{z as default};
|
||||||
|
|
@ -1,215 +0,0 @@
|
||||||
import {
|
|
||||||
z as t,
|
|
||||||
Y as m,
|
|
||||||
x as h,
|
|
||||||
j as s,
|
|
||||||
g as u,
|
|
||||||
y as p,
|
|
||||||
v as n,
|
|
||||||
B as g,
|
|
||||||
Z as j,
|
|
||||||
G as f,
|
|
||||||
_ as b,
|
|
||||||
$ as N,
|
|
||||||
} from "./ui-library-D_5HaVyj.js";
|
|
||||||
import { a as v } from "./react-vendor-OnsDvTPE.js";
|
|
||||||
import { u as C } from "./use-scroll-top-ByehxtTO.js";
|
|
||||||
const w = t.object({
|
|
||||||
name: t.string().min(2, "error"),
|
|
||||||
email: t.string().email(),
|
|
||||||
phone: t.string().min(8, "error"),
|
|
||||||
company: t.string().min(2, "error"),
|
|
||||||
msg: t.string().min(5, "error"),
|
|
||||||
}),
|
|
||||||
y = { name: "", email: "", phone: "", company: "", msg: "" },
|
|
||||||
L = ({ className: r }) => {
|
|
||||||
const { t: a } = m("contacts"),
|
|
||||||
[c, i] = v.useState(!1),
|
|
||||||
e = h({ resolver: f(w), defaultValues: y });
|
|
||||||
async function x(d) {
|
|
||||||
try {
|
|
||||||
const o = await b(d);
|
|
||||||
i(o);
|
|
||||||
} catch (o) {
|
|
||||||
console.error("POST contact", o);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const { errors: l } = e.formState;
|
|
||||||
return s.jsx("div", {
|
|
||||||
className: u("bg-primary rounded-[8px] py-8 px-6 ", r),
|
|
||||||
children: s.jsx(p, {
|
|
||||||
...e,
|
|
||||||
children: s.jsxs("form", {
|
|
||||||
onSubmit: e.handleSubmit(x),
|
|
||||||
children: [
|
|
||||||
s.jsx("h2", {
|
|
||||||
className: "h2 !text-on_primary lg:mb-8 mb-6",
|
|
||||||
children: a("title"),
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "flex flex-col gap-8",
|
|
||||||
children: [
|
|
||||||
s.jsx(n, {
|
|
||||||
onPrimary: !0,
|
|
||||||
name: "name",
|
|
||||||
control: e.control,
|
|
||||||
label: a("name"),
|
|
||||||
error: l.name,
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "flex flex-col lg:flex-row gap-6",
|
|
||||||
children: [
|
|
||||||
s.jsx(n, {
|
|
||||||
onPrimary: !0,
|
|
||||||
name: "email",
|
|
||||||
control: e.control,
|
|
||||||
label: "Email",
|
|
||||||
error: l.email,
|
|
||||||
}),
|
|
||||||
s.jsx(n, {
|
|
||||||
onPrimary: !0,
|
|
||||||
name: "phone",
|
|
||||||
control: e.control,
|
|
||||||
label: a("phone"),
|
|
||||||
error: l.phone,
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
s.jsx(n, {
|
|
||||||
onPrimary: !0,
|
|
||||||
name: "company",
|
|
||||||
control: e.control,
|
|
||||||
label: a("company"),
|
|
||||||
error: l.name,
|
|
||||||
}),
|
|
||||||
s.jsx(n, {
|
|
||||||
onPrimary: !0,
|
|
||||||
textArea: !0,
|
|
||||||
name: "msg",
|
|
||||||
label: a("message"),
|
|
||||||
control: e.control,
|
|
||||||
error: l.msg,
|
|
||||||
}),
|
|
||||||
s.jsx(g, {
|
|
||||||
disabled: e.formState.isSubmitting || c,
|
|
||||||
className: "w-full h-12 overflow-hidden",
|
|
||||||
variant: "secondary",
|
|
||||||
children: c
|
|
||||||
? a("submitted")
|
|
||||||
: e.formState.isSubmitting
|
|
||||||
? s.jsx(j, { className: "animate-spin text-white" })
|
|
||||||
: a("button"),
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
};
|
|
||||||
function _() {
|
|
||||||
C();
|
|
||||||
const { t: r } = m("contacts");
|
|
||||||
return s.jsxs("div", {
|
|
||||||
className: "flex flex-col gap-20 pt-10 md:pt-20",
|
|
||||||
children: [
|
|
||||||
s.jsx(N, {
|
|
||||||
children: s.jsxs("section", {
|
|
||||||
className: "grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",
|
|
||||||
children: [
|
|
||||||
s.jsx(L, {}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "p-6 bg-surface_container rounded-[8px]",
|
|
||||||
children: [
|
|
||||||
s.jsx("h2", {
|
|
||||||
className: "h2 mb-10 xl:mb-8",
|
|
||||||
children: r("title_2"),
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "flex flex-col gap-20",
|
|
||||||
children: [
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "flex items-center gap-6",
|
|
||||||
children: [
|
|
||||||
s.jsx("img", {
|
|
||||||
src: "/contacts/map.svg",
|
|
||||||
alt: "address",
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
children: [
|
|
||||||
s.jsx("h3", {
|
|
||||||
className: "text-xl mb-2",
|
|
||||||
children: r("address"),
|
|
||||||
}),
|
|
||||||
s.jsx("address", {
|
|
||||||
className: "text-base normal not-italic",
|
|
||||||
children: r("venue"),
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "flex items-center gap-6",
|
|
||||||
children: [
|
|
||||||
s.jsx("img", {
|
|
||||||
src: "/contacts/phone.svg",
|
|
||||||
alt: "phone",
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
children: [
|
|
||||||
s.jsx("h3", {
|
|
||||||
className: "text-xl mb-2",
|
|
||||||
children: r("phone"),
|
|
||||||
}),
|
|
||||||
s.jsx("h4", {
|
|
||||||
className: "text-base normal",
|
|
||||||
children: "+99371871812; 99363719588",
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
className: "flex items-center gap-6",
|
|
||||||
children: [
|
|
||||||
s.jsx("img", {
|
|
||||||
src: "/contacts/email.svg",
|
|
||||||
alt: "email",
|
|
||||||
}),
|
|
||||||
s.jsxs("div", {
|
|
||||||
children: [
|
|
||||||
s.jsx("h3", {
|
|
||||||
className: "text-xl mb-2",
|
|
||||||
children: "Email:",
|
|
||||||
}),
|
|
||||||
s.jsx("h4", {
|
|
||||||
className: "text-base normal",
|
|
||||||
children: "contact@turkmenexpo.com",
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
s.jsx("section", {
|
|
||||||
className:
|
|
||||||
"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",
|
|
||||||
children: s.jsx("iframe", {
|
|
||||||
src: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",
|
|
||||||
className: "absolute inset-0 w-full h-full ",
|
|
||||||
style: { border: 0 },
|
|
||||||
allowFullScreen: !0,
|
|
||||||
loading: "lazy",
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
});
|
|
||||||
}
|
|
||||||
export { _ as default };
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{z as t,Y as m,x as h,j as s,g as u,y as p,v as n,B as g,Z as j,G as f,_ as b,$ as N}from"./ui-library-SS_r3a4p.js";import{a as v}from"./react-vendor-OnsDvTPE.js";import{u as C}from"./use-scroll-top-ByehxtTO.js";const w=t.object({name:t.string().min(2,"error"),email:t.string().email(),phone:t.string().min(8,"error"),company:t.string().min(2,"error"),msg:t.string().min(5,"error")}),y={name:"",email:"",phone:"",company:"",msg:""},L=({className:r})=>{const{t:a}=m("contacts"),[c,i]=v.useState(!1),e=h({resolver:f(w),defaultValues:y});async function x(d){try{const o=await b(d);i(o)}catch(o){console.error("POST contact",o)}}const{errors:l}=e.formState;return s.jsx("div",{className:u("bg-primary rounded-[8px] py-8 px-6 ",r),children:s.jsx(p,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(x),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:a("title")}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(n,{onPrimary:!0,name:"name",control:e.control,label:a("name"),error:l.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(n,{onPrimary:!0,name:"email",control:e.control,label:"Email",error:l.email}),s.jsx(n,{onPrimary:!0,name:"phone",control:e.control,label:a("phone"),error:l.phone})]}),s.jsx(n,{onPrimary:!0,name:"company",control:e.control,label:a("company"),error:l.name}),s.jsx(n,{onPrimary:!0,textArea:!0,name:"msg",label:a("message"),control:e.control,error:l.msg}),s.jsx(g,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?a("submitted"):e.formState.isSubmitting?s.jsx(j,{className:"animate-spin text-white"}):a("button")})]})]})})})};function F(){C();const{t:r}=m("contacts");return s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(N,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(L,{}),s.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("address")}),s.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:r("phone")}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default};
|
||||||
|
|
@ -1 +1 @@
|
||||||
import{j as e,b as s,c as o,d as m,e as a,f as x}from"./ui-library-D_5HaVyj.js";import"./react-vendor-OnsDvTPE.js";function f(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{f as default};
|
import{j as e,b as s,c as o,d as m,e as a,f as x}from"./ui-library-SS_r3a4p.js";import"./react-vendor-OnsDvTPE.js";function f(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{f as default};
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
import{z as l,u as g,x as y,j as e,C as f,p as s,D as v,y as N,o as S,q as d,r as m,s as i,t as p,v as o,B as F,w as k,E as w,M as C,G as V}from"./ui-library-D_5HaVyj.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-lL0Eg9Ux.js";import{s as t}from"./stend.data-Dr6usuZY.js";const E=l.object({space_package:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.preprocess(a=>Number(a),l.number().min(1,"Укажите количество участников")),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:l.string().email({message:"Укажите корректный email"}),phone:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),visa_support:l.string().optional()}),R={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function T(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=y({resolver:V(E),defaultValues:R}),_=async n=>{await C(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(f,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(o,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(o,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(o,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(o,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(o,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(o,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(o,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(o,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{T as default};
|
import{z as l,u as g,x as y,j as e,C as f,p as s,D as v,y as N,o as S,q as d,r as m,s as i,t as p,v as o,B as F,w as k,E as w,M as C,G as V}from"./ui-library-SS_r3a4p.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-C5pxhYmY.js";import{s as t}from"./stend.data-Dr6usuZY.js";const E=l.object({space_package:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.preprocess(a=>Number(a),l.number().min(1,"Укажите количество участников")),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:l.string().email({message:"Укажите корректный email"}),phone:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),visa_support:l.string().optional()}),R={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function T(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=y({resolver:V(E),defaultValues:R}),_=async n=>{await C(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(f,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(o,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(o,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(o,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(o,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(o,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(o,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(o,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(o,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{T as default};
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
|
@ -5,10 +5,10 @@
|
||||||
<link rel="icon" type="image/svg+xml" href="/logo-icon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/logo-icon.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Turkmen Textile</title>
|
<title>Turkmen Textile</title>
|
||||||
<script type="module" crossorigin src="/assets/index-B9GO_PlB.js"></script>
|
<script type="module" crossorigin src="/assets/index-DDF6pI4x.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/react-vendor-OnsDvTPE.js">
|
<link rel="modulepreload" crossorigin href="/assets/react-vendor-OnsDvTPE.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/ui-library-D_5HaVyj.js">
|
<link rel="modulepreload" crossorigin href="/assets/ui-library-SS_r3a4p.js">
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-0bA_Jy5m.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DcOt0wB7.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script defer type="text/javascript">
|
<script defer type="text/javascript">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue