1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{70666:function(e,a,l){l.d(a,{Footer:function(){return h}});var s=l(57437),t=l(89832),i=l(4086),n=l(49321),r=l(87138),o=l(16463),c=l(18087),d=l(2265),m=l(38159),p=l(26343),x=l(71513);let h=()=>{let e=(0,c.useTranslations)();return(0,s.jsx)("footer",{className:"w-full bg-abu_primary",children:(0,s.jsxs)("div",{className:"max-w-[1200px] mx-auto p-10",children:[(0,s.jsxs)("div",{className:"grid gap-6 md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] items-start mb-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 text-white",children:[(0,s.jsx)("h2",{className:"text-2xl",children:e("home.contacts.our")}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,s.jsx)(t.Z,{}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("a",{href:"tel:+77222423224",children:e("home.contacts.phone_main")}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("div",{className:"font-semibold",children:e("home.contacts.callCenter.title")}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{children:e("home.contacts.callCenter.line1")}),(0,s.jsx)("span",{children:e("home.contacts.callCenter.line2")}),(0,s.jsx)("span",{children:e("home.contacts.callCenter.line3")})]})]})]})]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(i.Z,{}),(0,s.jsx)("a",{href:"mailto:".concat(e("home.contacts.email")),children:e("home.contacts.email")})]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(n.Z,{}),(0,s.jsx)("a",{href:"https://go.2gis.com/Xu2HU",target:"_blank",rel:"noreferrer",children:(0,s.jsx)("span",{children:e("home.contacts.geo")})})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start md:items-end gap-3 text-white",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold",children:e("home.contacts.social")}),(0,s.jsx)(p.WG,{})]})]}),(0,s.jsx)(p.Z0,{}),(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-4 items-start md:flex-row md:items-center md:justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1 text-white",children:[(0,s.jsxs)("span",{children:["\xa9",new Date().getFullYear()," ",e("all_rights"),"."]}),(0,s.jsx)("span",{className:"text-sm text-white/80",children:e("home.created_by")})]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(u,{}),(0,s.jsx)(f,{})]})]})]})})},u=()=>{let e=(0,c.useTranslations)(),a=(0,o.useParams)().locale;return(0,s.jsx)(r.default,{href:"/".concat(a,"/rector-blog"),children:(0,s.jsx)(p.zx,{variant:"ghost",size:"lg",className:"border border-white text-white px-10 rounded-full hover:bg-white/10",children:e("rectorBlog.button")})})},f=()=>{let e=(0,c.useTranslations)();return(0,s.jsx)(p.u_,{headerSlot:e("appeal.modal.title"),modalSlot:(0,s.jsx)(j,{}),children:(0,s.jsx)(p.zx,{variant:"ghost",size:"lg",className:"border border-white text-white px-10 rounded-full hover:bg-white/10",children:e("appeal.button")})})},j=()=>{let e=(0,c.useTranslations)(),[a,l]=(0,d.useState)(1),[t,i]=(0,d.useState)(null),[n,r]=(0,d.useState)({fullName:"",email:"",phone:"",message:"",answerType:"phone"}),[o,h]=(0,d.useState)({}),u=e=>a=>{let{value:l}=a.target,s="phone"===e?(0,m.nw)(l):l;r(a=>({...a,[e]:s})),o[e]&&h(a=>({...a,[e]:void 0}))},f=e=>{i(e),l(2)};return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(g,{step:a}),1===a?(0,s.jsxs)("div",{className:"flex flex-col gap-4 ",children:[(0,s.jsx)(b,{title:e("appeal.modal.types.appeal.title"),description:e("appeal.modal.types.appeal.description"),onClick:()=>f("appeal")}),(0,s.jsx)(b,{title:e("appeal.modal.types.claim.title"),description:e("appeal.modal.types.claim.description"),onClick:()=>f("claim")}),(0,s.jsx)(b,{title:e("appeal.modal.types.corruption.title"),description:e("appeal.modal.types.corruption.description"),onClick:()=>f("corruption")})]}):(0,s.jsxs)("form",{onSubmit:a=>{if(a.preventDefault(),!t)return;let s=n.message.trim();if("corruption"===t){if(!s){(0,x.toast)({variant:"destructive",title:e("appeal.modal.validation.messageRequired")});return}}else{let a=n.fullName.trim(),l=n.email.trim(),t=n.phone.trim(),i=!!l||!!t;if(!a||!s||!i){(0,x.toast)({variant:"destructive",title:e("appeal.modal.validation.requiredFields")});return}let r={};if(l&&!(0,m.oH)(l)&&(r.email=e("appeal.modal.validation.invalidEmail")),t&&!(0,m.a$)(t)&&(r.phone=e("appeal.modal.validation.invalidPhone")),Object.keys(r).length>0){h(r);return}h({})}fetch("/api/mail_send.ts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appeal_type:t,fullName:n.fullName,email:n.email,phone:n.phone,message:n.message,answer_type:n.answerType})}).then(a=>{if(!a.ok)throw Error("Failed to send appeal");(0,x.toast)({title:e("appeal.modal.successTitle"),description:e("appeal.modal.successDescription")}),l(1),i(null),h({}
1),r({fullName:"",email:"",phone:"",message:"",answerType:"phone"})}).catch(()=>{(0,x.toast)({variant:"destructive",title:e("appeal.modal.errorTitle"),description:e("appeal.modal.errorDescription")})})},className:"space-y-4",children:["corruption"!==t&&(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,s.jsx)(p.II,{label:e("appeal.modal.fields.fullName"),value:n.fullName,onChange:u("fullName"),required:!0}),(0,s.jsx)(p.II,{type:"email",label:e("appeal.modal.fields.email"),value:n.email,onChange:u("email"),error:o.email}),(0,s.jsx)(p.II,{type:"tel",label:e("appeal.modal.fields.phone"),value:n.phone,onChange:u("phone"),error:o.phone}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-[18px]",children:e("appeal.modal.fields.answerType")}),(0,s.jsxs)(p.OC,{value:n.answerType,onValueChange:e=>{r(a=>({...a,answerType:e}))},children:[(0,s.jsx)(p.i4,{children:(0,s.jsx)(p.ki,{})}),(0,s.jsxs)(p.Bw,{children:[(0,s.jsx)(p.Ql,{value:"phone",children:e("appeal.modal.fields.answerOptions.phone")}),(0,s.jsx)(p.Ql,{value:"email",children:e("appeal.modal.fields.answerOptions.email")}),(0,s.jsx)(p.Ql,{value:"no_answer",children:e("appeal.modal.fields.answerOptions.noAnswer")})]})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"mb-1 block text-[18px]",children:e("appeal.modal.fields.message")}),(0,s.jsx)(p.gx,{label:e("appeal.modal.fields.message"),rows:5,value:n.message,onChange:u("message"),required:!0})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,s.jsx)(p.zx,{type:"button",variant:"outline",onClick:()=>l(1),children:e("appeal.modal.back")}),(0,s.jsx)(p.zx,{type:"submit",children:e("appeal.modal.submit")})]})]})]})},g=e=>{let{step:a}=e,l=(0,c.useTranslations)(),t=[{id:1,label:l("appeal.modal.step1Title")},{id:2,label:l("appeal.modal.step2Title")}];return(0,s.jsx)("div",{className:"flex items-center gap-4",children:t.map((e,l)=>(0,s.jsxs)(d.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full border text-sm font-medium ".concat(a>=e.id?"bg-abu_primary text-white border-abu_primary":"bg-muted text-muted-foreground"),children:e.id}),(0,s.jsx)("span",{className:"text-sm ".concat(a>=e.id?"font-medium":"text-muted-foreground"),children:e.label})]}),l<t.length-1&&(0,s.jsx)("div",{className:"h-px flex-1 bg-border"})]},e.id))})},b=e=>{let{title:a,description:l,onClick:t}=e;return(0,s.jsx)("button",{type:"button",onClick:t,className:"flex h-full flex-col justify-between rounded-lg border bg-white p-4 text-left shadow-sm transition hover:shadow-md",children:(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h3",{className:"text-base font-semibold text-abu_primary",children:a}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:l})]})})}},38159:function(e,a,l){l.d(a,{a$:function(){return i},nw:function(){return t},oH:function(){return r}});let s=/^8\(\d{3}\)\d{7}$/;function t(e){let a=(function(e){let a=e.replace(/\D/g,"");return a.startsWith("7")?"8"+a:a.startsWith("8")?a:"8"+a})(e).slice(0,11);return a.length<=1?a?"8":"":a.length<=4?"8(".concat(a.slice(1)):"8(".concat(a.slice(1,4),")").concat(a.slice(4))}function i(e){return s.test(e.trim())}let n=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function r(e){return n.test(e.trim())}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.