(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[716],{7424:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(7437),a=r(2670),o=r(2265);let s="Поле обязательно к заполнению",i={required:s,pattern:{value:/^(http(s)?:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:\/?#[\]@!\$&'\(\)\*\+,;=.]+$/,message:"Неверный формат. Пример: https://example.com"}},l={required:s,pattern:{value:/^[А-ЯЁа-яёA-z\s]+$/,message:"Неверный формат. Пример: Иван"}};var d=r(568),c=r(1633);let u=e=>(0,d.D)({mutationKey:["askQuestion"],mutationFn:e=>(async e=>c.g.post("/system/feedback-form",e))(e),...e});var _=r(5310),p=r(6480),h=r.n(p);let m=e=>{let t=(0,o.useRef)(null);return(0,o.useEffect)(()=>{e&&("function"==typeof e?e(t.current):t.current=e.current)},[e]),t};var b=r(9523),g=r(6067),f=r.n(g),x=e=>{let{className:t,center:r,children:a}=e,[s,i]=(0,o.useState)(a);return(0,o.useEffect)(()=>{a&&i(a)},[a]),(0,n.jsx)(b.Z,{type:"caption2",className:h()(t,f().root,{[f().visible]:!!a,[f().center]:r}),children:s})},v=r(6140),y=r.n(v);let w=(0,o.forwardRef)((e,t)=>{let{className:r,label:a,error:s,type:i,onChange:l,...d}=e,[c,u]=(0,o.useState)(!1),_=m(t);return(0,o.useEffect)(()=>{var e;u(!!(null===(e=_.current)||void 0===e?void 0:e.value))}),(0,n.jsxs)("div",{className:h()(r,y().root,{[y().withError]:s,[y().withValue]:c}),children:[(0,n.jsxs)("label",{className:y().labelWrapper,children:[(0,n.jsx)("input",{ref:_,type:i,className:h()(y().input),onChange:e=>{u(!!e.target.value),null==l||l(e)},...d}),a&&(0,n.jsx)(b.Z,{className:y().label,type:"inputs",as:"span",children:a})]}),(0,n.jsx)(x,{children:s&&s})]})});w.displayName="Input";var A=r(703),j={src:"/_next/static/media/success.90e15f69.svg",height:80,width:80,blurWidth:0,blurHeight:0},E={src:"/_next/static/media/error.41e9865b.svg",height:80,width:80,blurWidth:0,blurHeight:0},T=r(1348),N=r(4539),Z=r(4887),k=r(8949);let I=(e,t)=>{let r=(0,o.useRef)(t);(0,o.useEffect)(()=>{r.current=t},[t]),(0,o.useEffect)(()=>{let t=t=>{t.key===e&&r.current(t)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])};var C={src:"/_next/static/media/close-icon.c2521fe9.svg",height:24,width:24,blurWidth:0,blurHeight:0},M=r(7034),F=r.n(M);let P={opened:{opacity:1},closed:{opacity:0}},Q={opened:{y:0,opacity:1},closed:{y:50,opacity:0}},B={duration:.3,type:"tween"};var W=e=>{let{className:t,isOpened:r,onClose:a,children:s}=e,[i,l]=(0,o.useState)(!1),{lockScroll:d,unlockScroll:c}=(0,k.P)();return I("Escape",a),(0,o.useEffect)(()=>(r?d():c(),c),[r,d,c]),(0,o.useEffect)(()=>{l(!0)},[]),i&&(0,Z.createPortal)((0,n.jsx)(T.M,{children:r&&(0,n.jsx)(N.E.div,{className:F().modal_shadow,onMouseDown:a,variants:P,initial:"closed",animate:"opened",exit:"closed",children:(0,n.jsxs)(N.E.div,{className:h()(t,F().modal__wrapper),transition:B,variants:Q,initial:"closed",animate:"opened",exit:"closed",onMouseDown:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{onClick:a,className:F().closeBtn,children:(0,n.jsx)(A.default,{src:C,alt:"Close Icon"})}),s]})})}),document.body)},z=r(9477),S=r.n(z);let D=e=>{let{isOpened:t,onClose:r,type:a,title:o,description:s}=e,i="success"===a;return(0,n.jsx)(W,{isOpened:t,onClose:r,children:(0,n.jsxs)("div",{className:S().modal__content,children:[(0,n.jsx)(A.default,{className:S().image,src:i?j:E,alt:i?"Success":"Error"}),(0,n.jsx)(b.Z,{type:"h3",children:o}),(0,n.jsx)(b.Z,{type:"bodyMedium",className:S().description,children:s})]})})};var H=r(5161),O=r.n(H);let R={pattern:{value:/^@[A-Za-z\d_]{5,32}$/,message:"Неверный формат. Пример: @example"},validate:(e,t)=>{if(!t.email&&!e)return"Заполните поле Email или Ник в Telegram"},deps:"email"},q={pattern:{value:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,16})+$/,message:"Неверный формат. Пример: example@mail.ru"},validate:(e,t)=>{if(!t.telegram&&!e)return"Заполните поле Email или Ник в Telegram"},deps:"telegram"};var L=()=>{var e,t,r,s;let[d,c]=(0,o.useState)(!1),{reset:p,register:h,handleSubmit:m,formState:{errors:b,isDirty:g,isValid:f}}=(0,a.cI)({mode:"onTouched"}),{mutate:x,isPending:v,isError:y}=u({onSettled:(e,t)=>{t||p(),c(!0)}}),A=y?"Произошла ошибка":(0,n.jsxs)(n.Fragment,{children:["Ваша заявка",(0,n.jsx)("br",{}),"успешно отправлена!"]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{className:O().form,onSubmit:m(e=>x(e)),children:[(0,n.jsxs)("div",{className:O().inputsContainer,children:[(0,n.jsx)(w,{label:"Ваше имя",autoComplete:"name",type:"text",inputMode:"text",error:null===(e=b.name)||void 0===e?void 0:e.message,...h("name",l)}),(0,n.jsx)(w,{label:"Ник в Telegram",type:"text",inputMode:"email",error:null===(t=b.telegram)||void 0===t?void 0:t.message,...h("telegram",R)}),(0,n.jsx)(w,{label:"E-mail",type:"text",inputMode:"email",autoComplete:"email",error:null===(r=b.email)||void 0===r?void 0:r.message,...h("email",q)}),(0,n.jsx)(w,{label:"Ссылка на ваш сайт",type:"text",inputMode:"url",autoComplete:"url",error:null===(s=b.site)||void 0===s?void 0:s.message,...h("site",i)})]}),(0,n.jsx)(_.Z,{type:"submit",variant:"secondary",disabled:v||!g||!f,children:"Отправить заявку"})]}),(0,n.jsx)(D,{type:y?"error":"success",isOpened:d,title:A,description:y?"Пожалуйста, попробуйте позже или обратитесь в нашу службу поддержки":"Наш менеджер свяжется с вами в ближайшее время",onClose:()=>c(!1)})]})}},9314:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return y}});var n=r(7437),a=r(9523),o=r(703),s=r(6480),i=r.n(s),l=r(2265),d={src:"/_next/static/media/arrow.a6d8d12a.svg",height:40,width:40,blurWidth:0,blurHeight:0},c=r(6276),u=r(8570),_=r.n(u),p=r(5739),h=r(9458),m=e=>{let{title:t,description:r}=e,[s,u]=(0,l.useState)(!1),m=(0,l.useRef)(null),[b,g]=(0,l.useState)(0),f=(0,c.a)("mobile");return(0,l.useEffect)(()=>{var e;m.current&&g((null===(e=m.current)||void 0===e?void 0:e.clientHeight)+64);let t=()=>{var e;m.current&&g((null===(e=m.current)||void 0===e?void 0:e.clientHeight)+64)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),(0,n.jsxs)("div",{className:_().wrapper,onClick:()=>u(e=>!e),itemScope:!0,itemProp:"mainEntity",itemType:"https://schema.org/Question",style:{paddingBottom:s?b+"px":f?"24px":"32px"},children:[(0,n.jsxs)("button",{className:_().header,children:[(0,n.jsx)(a.Z,{itemProp:"name",type:"h4",className:_().headerText,as:"span",children:t}),(0,n.jsx)(o.default,{alt:"arrow",src:d,className:i()(_().toggleDescription,{[_().active]:s})})]}),(0,n.jsx)("div",{itemScope:!0,itemProp:"acceptedAnswer",itemType:"https://schema.org/Answer",ref:m,className:i()(_().description,{[_().active]:s}),children:(0,n.jsx)(p.U,{remarkPlugins:[h.Z],components:{p:e=>(0,n.jsx)(a.Z,{type:"body",className:_().headerText,children:e.children}),ul:e=>(0,n.jsx)("ul",{className:_().list,children:e.children}),li:e=>(0,n.jsx)(a.Z,{as:"li",type:"body",children:e.children})},children:r})})]})},b=r(5324),g={src:"/_next/static/media/yellow-light.37e78ed3.svg",height:1159,width:1159,blurWidth:0,blurHeight:0},f={src:"/_next/static/media/blue-light.229622b2.svg",height:1159,width:1159,blurWidth:0,blurHeight:0},x=r(1027),v=r.n(x),y=e=>{let{data:t,variant:r="yellow",withBadge:s=!1}=e;return(0,n.jsx)("div",{className:v().faq,children:(0,n.jsxs)(b.Z,{id:"FAQ",children:[s&&(0,n.jsx)("div",{className:v().badge,children:(0,n.jsx)(a.Z,{type:"captionBold",children:"FAQ"})}),(0,n.jsx)(a.Z,{type:"h2",className:v().title,children:"Cписок частых вопросов"}),(0,n.jsx)("div",{className:v().list,children:null==t?void 0:t.map(e=>(0,n.jsx)(m,{title:e.question,description:e.answer},e.question))}),(0,n.jsx)("div",{className:i()(v().bgFAQ,v()[r]),children:(0,n.jsx)(o.default,{src:"yellow"===r?g:f,alt:"light"})})]})})}},5310:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n,a=r(7437),o=r(6480),s=r.n(o),i=r(8792),l=r(9523),d=r(2846);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=function(e){return d.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor"},e),n||(n=d.createElement("path",{d:"M10.3 8.05h4.24l-8.2 8.2-.7.7 1.41 1.41.7-.7 8.2-8.2v4.25h2V7.05l-1-1h-6.66v2Z"})))},_=r(4548),p=r.n(_);let h=e=>{let{className:t,variant:r="primary",size:n="default",type:o="button",fullWidth:i=!1,children:d,disabled:c,icon:_,...h}=e,m=s()(t,p().button,p()[r],p()[n],{[p().disabled]:c,[p().fullWidth]:i});return(0,a.jsxs)("button",{className:m,...h,children:[(0,a.jsx)(l.Z,{type:"buttons",as:"span",children:d}),null!=_?_:(0,a.jsx)(u,{})]})};h.Link=e=>{let{className:t,variant:r="primary",size:n="default",type:o="internal",fullWidth:d=!1,children:c,disabled:_,icon:h,...m}=e,b=s()(t,p().button,p()[r],p()[n],{[p().disabled]:_,[p().fullWidth]:d});return(0,a.jsxs)(i.default,{className:b,..."external"===o?{target:"_blank",rel:"noreferrer noopener"}:{},...m,children:[(0,a.jsx)(l.Z,{type:"buttons",as:"span",children:c}),null!=h?h:(0,a.jsx)(u,{})]})};var m=h},5324:function(e,t,r){"use strict";var n=r(7437),a=r(6480),o=r.n(a),s=r(7567),i=r.n(s);t.Z=e=>{let{as:t,className:r,...a}=e;return(0,n.jsx)(null!=t?t:"div",{className:o()(r,i().root),...a})}},9523:function(e,t,r){"use strict";var n=r(7437),a=r(6480),o=r.n(a),s=r(3364),i=r.n(s);t.Z=e=>{let{type:t="body",className:r,as:a,...s}=e;return(0,n.jsx)(null!=a?a:"p",{className:o()(r,i().root,i()[t]),...s})}},1633:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});let n=r(7908).Z.create({baseURL:"".concat("https://backend.morune.com","/api/v1"),headers:{Project:"morune"}});n.interceptors.request.use(e=>(e.data instanceof FormData||(e.headers["Content-Type"]="application/json"),e),e=>Promise.reject(e));let a=e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.data},o={get:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.get(...t).then(a)},post:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.post(...t).then(a)}}},6276:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var n=r(2265);let a={desktop:"(min-width: 1279px)",tablet:"(max-width: 1279px)",mobile:"(max-width: 767px)"},o=e=>{let[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=window.matchMedia(a[e]),n=()=>r(t.matches);return n(),t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),t}},8949:function(e,t,r){"use strict";r.d(t,{P:function(){return o}});var n=r(2265);let a=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPod","iPhone"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,o=()=>({lockScroll:(0,n.useCallback)(()=>{let e=window.innerWidth-document.body.offsetWidth;document.body.style.overflow="hidden",document.body.style.paddingRight="".concat(e,"px"),a()&&(document.body.style.top="-".concat(window.scrollY,"px"),document.body.style.position="fixed",document.body.style.width="100%")},[]),unlockScroll:(0,n.useCallback)(()=>{if(document.body.style.overflow="",document.body.style.paddingRight="",a()){let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scroll({top:-1*parseInt(e||"0"),behavior:"instant"})}},[])})},4334:function(e){e.exports={root:"AskQuestion_root__ZvTZa",wrapper:"AskQuestion_wrapper__NZTh_",header:"AskQuestion_header__WQpmO",badge:"AskQuestion_badge__g73jy",bg:"AskQuestion_bg__PnbIz"}},5161:function(e){e.exports={form:"AskQuestionForm_form__PlcTL",inputsContainer:"AskQuestionForm_inputsContainer__LuQAu"}},8570:function(e){e.exports={wrapper:"DropdownEl_wrapper__FHDYd",header:"DropdownEl_header__R2NUw",headerText:"DropdownEl_headerText__MByPG",toggleDescription:"DropdownEl_toggleDescription__I7iSI",active:"DropdownEl_active__cgIrr",description:"DropdownEl_description__Gy5_P",list:"DropdownEl_list__uyWzW"}},1027:function(e){e.exports={faq:"FAQ_faq__5vClH",title:"FAQ_title__AdcV_",badge:"FAQ_badge___VhfD",bgFAQ:"FAQ_bgFAQ__cpL4y",yellow:"FAQ_yellow__99czM",blue:"FAQ_blue__AGKI0"}},5645:function(e){e.exports={root:"Intro_root___eGGw",header:"Intro_header__aB6yR",description:"Intro_description__iow_0",buttons:"Intro_buttons__ZBoPT",appFlow:"Intro_appFlow__TWggl",appFlowEl:"Intro_appFlowEl__Pc9EQ",dash:"Intro_dash__ew5BG",text:"Intro_text___6ABH",bg:"Intro_bg__an0it"}},9477:function(e){e.exports={modal__content:"StatusModal_modal__content__GwVmF",description:"StatusModal_description__uSb7I",image:"StatusModal_image__9N0LH"}},4548:function(e){e.exports={button:"Button_button__5Fngg",default:"Button_default__2Ien7",small:"Button_small__AR0Cb",disabled:"Button_disabled__Cu6k9",fullWidth:"Button_fullWidth__EcevO",primary:"Button_primary__swzAa",secondary:"Button_secondary__pFIlL",primary_border:"Button_primary_border__nBkFr",secondary_border:"Button_secondary_border__zWXPI"}},7567:function(e){e.exports={root:"Container_root__e_PFY"}},6067:function(e){e.exports={root:"ErrorMessage_root__FxIft",visible:"ErrorMessage_visible__NMxs0",center:"ErrorMessage_center__bBYMa"}},6140:function(e){e.exports={root:"Input_root__ONHox",withError:"Input_withError__cUW19",input:"Input_input__5WxBl",label:"Input_label__q7b80",withValue:"Input_withValue__Ccq3c",labelWrapper:"Input_labelWrapper__p27Qf"}},7034:function(e){e.exports={modal_shadow:"Modal_modal_shadow__uu6Ap",modal__wrapper:"Modal_modal__wrapper__FRCq_",closeBtn:"Modal_closeBtn__eovzM"}},3364:function(e){e.exports={root:"Text_root__BVbCz",h1:"Text_h1__bzUnA",h2:"Text_h2__36k7Q",h3:"Text_h3__gND_e",h4:"Text_h4__mKc5U",h5:"Text_h5__2jwjX",special:"Text_special__QhVHs",subtitle:"Text_subtitle__K2c0l",body:"Text_body__aVpiO",bodyMedium:"Text_bodyMedium__4iuCo",caption:"Text_caption__rFBR7",captionBold:"Text_captionBold__KV68D",buttons:"Text_buttons__hozFj",buttonsRegular:"Text_buttonsRegular__CGjJv",inputs:"Text_inputs__QRE3m",caption2:"Text_caption2__qzzdz"}},2358:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/bg-1.b68d36b2.png",height:992,width:894,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAA10lEQVR42mNABlXt15hQBKaufCQ6afl95RUHb0v+/3+b5fn/m0z13dcYwZI1vffLm6fcbmmZdqOha+61kLNvbvK//X8HYsLkhed7Z6w6P23qyovT2mZemgrE4f//P2CtbrvMyLBi3bZFyzfvWzF/46lFk5efm1o34VzrzPUX5cE6t26ct2HD1rUbFm08uHzy8tPTavtOdzZMOmMEltyyZtrqteuWrZqzYu+8ztkne4qbTjZWdp7UBEsunL1g6qw5a6d0Tt3fWd52oja99Hh228yTvAwMDAwA2mxrUJjli7UAAAAASUVORK5CYII=",blurWidth:7,blurHeight:8}},4252:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/bg-2.aa22c2f6.png",height:777,width:656,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAvUlEQVR42mOAgHeM//8zMM6decuiq/dO5eQptxpBGCjxlxEkvW7RSZXunkt1c2ed7lq+6MykZYsuTIZLTuk/4Tt14sHu1Qt3TN64fO/8dcuPzQEKf4ZI9h3wnzphZ/fKeesnr1+yZc7KhftnAIV/gSXXzN6k09G2u3XmpI0d86Zt6Z42aW87AwjsnTObCegg1indOxzr6vZW19XvbaysPlDLAAPPdlaDTVgwaat4Tc1+/erqA1oMqOAPIzIPAPy1V2qfQgMfAAAAAElFTkSuQmCC",blurWidth:7,blurHeight:8}},3970:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/light.e226235b.svg",height:1185,width:1894,blurWidth:0,blurHeight:0}}}]);