1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3458],{2095:(t,e,n)=>{"use strict";n.d(e,{LinkInterceptor:()=>i});var o=n(73321),a=n(12115),r=n(55344);function i(){let t=(0,o.useRouter)(),e=(0,o.useSearchParams)();return(0,a.useEffect)(()=>{let t=t=>{let n=t.target,o=new URLSearchParams(e),a=n.closest("a");if(!a)return;let i=a.getAttribute("href"),l={};if(a.dataset.uiYmAction&&(l[r.N.uiYmAction]=a.dataset.uiYmAction),a.dataset.uiTmrEvent&&(l[r.N.uiTmrEvent]=a.dataset.uiTmrEvent),i?.startsWith("?modal=")){t.preventDefault();let e=new URLSearchParams(i),n=new URLSearchParams({...Object.fromEntries(o),...Object.fromEntries(e)});window.history.pushState({},"",`?${n.toString()}`),window.dispatchEvent(new CustomEvent("openModal",{detail:{modalType:i,dataset:l}}))}};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[t]),null}},2740:(t,e,n)=>{"use strict";n.d(e,{FormSubmitProviderClient:()=>p});var o=n(95155),a=n(60173),r=n(83109),i=n(72167),l=n(31272),s=n(63698),d=n(50676);let c={positionInCompany:!0,formFillTime:!0},u=async t=>{let e=await t.text();try{return JSON.parse(e)}catch{throw Error(`ÐекоÑÑекÑнÑй оÑÐ²ÐµÑ ÑеÑвеÑа пÑи оÑпÑавке ÑоÑÐ¼Ñ (${t.status}): ${e}`)}},m=async(t,e)=>{var n;let o,{formId:a,templateId:m,direction:h,locale:p}=e,f=(0,i.E)()??(0,s.c)(),g=await fetch("/api/v-s/bitrixLeadAdd",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({formId:a,direction:h,locale:p,payload:t,ymId:(0,r.getCookie)(d.b.ymUID),lvid:(0,l.w)(),utm:f,sourceDescription:document.URL})});if(!g.ok){let t=await g.text();throw Error(`ÐÑибка оÑпÑавки ÑоÑÐ¼Ñ (${g.status}): ${t}`)}if(n=await u(g),"string"==typeof(o=n?.data?.reason??n?.reason)&&!0===c[o])return;let _=e=>{let n=t[`form-field.${e}`];return"string"==typeof n?.value?n.value:""},b=_("email");if(!m||!b)return;let E=await fetch("/api/v-s/receiver",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({promoDocId:m,utm:{source:f?.utm_source,medium:f?.utm_medium,campaign:f?.utm_campaign,content:f?.utm_content,term:f?.utm_term},recipient:{name:_("name"),email:b,phone:_("phone"),company:_("company")}})});if(!E.ok){let t=await E.text();throw Error(`ÐÑибка оÑпÑавки recipient (${E.status}): ${t}`)}};var h=n(99047);function p({children:t}){let{locale:e}=(0,h.Y)();return(0,o.jsx)(a.uX,{onSubmit:(t,n)=>m(t,{...n,locale:e}),children:t})}},6089:t=>{t.exports={additionalButtons:"TarantoolHeader_additionalButtons__6tZFT"}},25255:(t,e,n)=>{"use strict";n.d(e,{TarantoolFooter:()=>a});var o=n(60173);function a({apiData:t,theme:e}){return t&&o.LW.getComponent({...t,theme:e})}},27551:(t,e,n)=>{"use strict";n.d(e,{ActionInterceptor:()=>s});var o=n(12115),a=n(34535),r=n(48211),i=n(55344);let l=[i.N.uiAction,i.N.uiYmAction,i.N.uiTmrEvent,i.N.formId];function s({allowedElements:t=["a","button"]}){return(0,o.useEffect)(()=>{let e=async e=>{try{let n=e.target.closest(t.flatMap(t=>l.map(e=>`${t}[${e}]`)).join(","));if(!n)return;let o=n.getAttribute(i.N.uiYmAction),s=n.getAttribute(i.N.uiTmrEvent),d=n.getAttribute(i.N.formId);o&&a.n.ym({action:o}),s&&a.n.tmr({goal:s}),d&&r.e.setFormId(d)}catch(t){console.error(`[ActionInterceptor] ${t.message}`,{name:t.name,stack:t.stack,timestamp:new Date().toISOString()})}};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[t]),null}},30648:(t,e,n)=>{"use strict";n.d(e,{ModalProvider:()=>w});var o,a=n(95155),r=n(60173),i=n(84040),l=n(63888),s=n(95386),d=n(50356),c=n(12115),u=n(69730),m=n.n(u),h=n(18398),p=n(59887),f=n(86581),g=n(48211),_=n(46202),b=n.n(_);let E=(0,h.PA)(({fields:t,submitButton:e,className:n,initialValues:o,toggleModal:i,isModalOpen:l,onCancel:d,actionForm:u})=>{let[h,_]=(0,c.useState)(!1),{t:E}=(0,f.B)();return(0,a.jsx)(s.aFV,{title:!h&&(0,a.jsx)("header",{className:b().header,children:(0,a.jsx)(r.o5,{mod:"titleM",children:E("modal.title")})}),centered:!0,open:l,width:660,footer:null,onCancel:()=>{d&&d(),i()},className:m()(b().modal,n),children:h?(0,a.jsxs)("div",{className:b().succes,children:[(0,a.jsx)(r.o5,{mod:"titleM",className:b().successTitle,children:E("modal.success.title")}),(0,a.jsx)(r.o5,{mod:"bodyS",className:b().successText,children:E("modal.success.text")})]}):(0,a.jsx)(p.P,{initialValues:o,submitButton:e,type:"modal",fields:t,onSuccess:_,actionForm:u,formId:g.e.formId})})});var v=n(31360),x=((o={}).feedbackSales="?modal=feedback-sales",o);function w({theme:t}){let[e,n]=(0,c.useState)(()=>{let t=new URLSearchParams(window.location.search).get("modal");return t?`?modal=${t}`:null}),[o,u]=(0,c.useState)(null),[m,h]=(0,c.useState)(null),{t:p,locale:_}=(0,f.B)();(0,c.useEffect)(()=>{let t=t=>{n(t.detail.modalType),u({type:t.detail.modalType,data:t.detail.dataset||{}})},e=()=>{n(null),u(null),h(null)};return window.addEventListener("openModal",t),window.addEventListener("popstate",e),()=>{window.removeEventListener("openModal",t),window.removeEventListener("popstate",e)}},[]);let b=()=>{n(null),u(null);let t=new URL(window.location.href);t.searchParams.delete("modal"),window.history.pushState(null,"",t),h(null),g.e.setFormId("")},k=e?.replace("?modal=","")||null,y=e===x.feedbackSales;return(0,c.useEffect)(()=>
1{k&&!y&&fetch(`/api/v-s/form-builder-config/${k}?locale=${_}`).then(t=>t.json()).then(t=>h(t)).catch(()=>h(null))},[k,y,_]),(0,a.jsxs)(a.Fragment,{children:[k&&!y&&m&&(0,a.jsx)(s.sGw,{customTheme:i.d,children:(0,a.jsx)(r.pD,{...(0,r.$t)(m),formId:k,open:!0,onCancel:b})}),y&&(0,a.jsx)(s.sGw,{customTheme:t===d.E.Light?l.v:i.d,children:(0,a.jsx)(E,{toggleModal:b,isModalOpen:!0,...(0,v.g)(p),initialValues:{privacy:!0},actionForm:o?.data??{}})})]})}},46202:t=>{t.exports={successTitle:"FosModalForm_successTitle__x5jkB",successText:"FosModalForm_successText__rgKVw"}},48211:(t,e,n)=>{"use strict";n.d(e,{e:()=>r});var o=n(88074);class a{constructor(){this.formId="",(0,o.l_)(this)}setFormId(t){this.formId=t}}let r=new a},64152:(t,e,n)=>{"use strict";n.d(e,{TarantoolHeader:()=>m});var o=n(95155),a=n(60173),r=n(50356),i=n(73321),l=n(12115),s=n(18116),d=n(99047),c=n(6089),u=n.n(c);function m({apiData:t,theme:e=r.E.Dark,mod:n}){var c,h,p;let{locale:f}=(0,d.Y)(),g=(0,i.useRouter)(),_=(0,i.usePathname)(),b=(c={...t,theme:e},{logo:{logo:c?.theme===r.E.Light?(0,a.aM)(c.logo_dark):(0,a.aM)(c.logo),logoMobile:c?.theme===r.E.Light?(0,a.aM)(c.logo_mobile_dark):(0,a.aM)(c.logo_mobile),secondLogo:c?.theme===r.E.Light?(0,a.aM)(c.second_logo_dark):(0,a.aM)(c.second_logo),secondLogoMobile:c?.theme===r.E.Light?(0,a.aM)(c.second_logo_mobile_dark):(0,a.aM)(c.second_logo_mobile),href:c?.href&&(0,a.E0)(c.href)?.url},items:c?.items&&(h=c?.items,p=c?.theme,h?h.map(t=>{switch(t.__component){case"header.header-dropdown":return{type:"dropdown",id:t.id,title:t.title,leftPosition:t.left_position,firstButton:t.first_button?.text?{href:(0,a.E0)(t.first_button?.url)?.url,text:t.first_button?.text,mod:t.first_button?.mod,iconStart:t.first_button?.icon_start&&(0,a.aM)(t.first_button?.icon_start),iconEnd:t.first_button?.icon_end&&(0,a.aM)(t.first_button?.icon_end)}:null,secondButton:t.second_button?.text?{href:(0,a.E0)(t.second_button?.url)?.url,text:t.second_button?.text,mod:t.second_button?.mod,iconStart:t.second_button?.icon_start&&(0,a.aM)(t.second_button?.icon_start),iconEnd:t.second_button?.icon_end&&(0,a.aM)(t.second_button?.icon_end)}:null,columns:t.columns&&t.columns.map(t=>({id:t.id,items:t.items&&t.items.map(t=>({id:t.id,title:t.title,subtitle:t.text,href:(0,a.E0)(t.url)?.url,target:(0,a.E0)(t.url)?.target})),buttons:t.buttons?.map(t=>({id:t.id,tag:"a",href:(0,a.E0)(t.url)?.url,target:(0,a.E0)(t.url)?.target,text:t.text,mod:t.mod,iconEnd:t.icon_end&&(0,o.jsx)(a._V,{alt:(0,a.aM)(t.icon_end)?.alt,src:(0,a.aM)(t.icon_end)?.src||""}),iconStart:t.icon_start&&(0,o.jsx)(a._V,{alt:(0,a.aM)(t.icon_start)?.alt,src:(0,a.aM)(t.icon_start)?.src||""})}))}))};case"header.header-link":return{type:"link",id:t.id,title:t.title,href:(0,a.E0)(t.url)?.url,target:(0,a.E0)(t.url)?.target};case"header.header-menu":return{type:"menu",id:t.id,title:t.title||"",titleMenu:t.title_menu,allServicesLink:{href:(0,a.E0)(t.all_services_link?.url)?.url,text:t.all_services_link?.text},items:t.items&&t.items.map(t=>({title:t.title,id:t.id,dropdown:t.dropdown_items?.map(t=>({id:t.id,image:p===r.E.Light&&t.image_dark?(0,a.aM)(t.image_dark):t.image&&(0,a.aM)(t.image),title:t.title||"",text:t.text,link:{href:(0,a.E0)(t.url)?.url,target:(0,a.E0)(t.url)?.target}})),banner:t.banner?.title?{title:t.banner?.title,text:t.banner?.text,image:t.banner?.image&&(0,a.aM)(t.banner?.image),link:{text:t.banner?.link?.text,href:(0,a.E0)(t.banner?.link?.url)?.url}}:null,cases:t.cases?.length?t.cases?.map(t=>({id:t.id,logo:t.logo,href:(0,a.E0)(t.href)?.url,description:t.description})):null}))}}}):[]),additionalButtonsData:c?.additional_buttons?.map(t=>({id:t.id,href:(0,a.E0)(t.url)?.url,text:t.text,mod:t.mod})),additionalBlockData:c?.additional_block?.map(t=>({id:t.id,href:(0,a.E0)(t.url)?.url,text:t.text,mod:t.mod}))}),[E,v]=(0,l.useState)(!1),[x,w]=(0,l.useState)(!1),k=(0,l.useCallback)(t=>{g.push(t),g.refresh()},[g]),y=(0,s.l1)(_),M=s.dI.map(t=>{let e=s.Yy[t],n=t===s.Xn?y:`/${t}${y}`;return{localeName:e.name,localeNameShort:e.shortName,onClick:()=>k(n),id:t}}),S={locales:M,currentLocale:M.find(t=>t.id===f)},T=t=>{if(t?.length)return(0,o.jsx)("div",{className:u().additionalButtons,children:t.map(t=>(0,o.jsx)(a.$n,{tag:"a",...t,size:"s"},t.id))})},j=T(b?.additionalBlockData),L=T(b?.additionalButtonsData);return(0,o.jsx)(a.Y9,{mod:n,isOpen:E,stickyTarget:"both",disabledScrollEffects:!1,stickyStartFrom:'[data-id="hero"]',...b,onClose:()=>{w(!1),v(!1)},onToggle:()=>{v(t=>!t),x&&w(!1)},openMenu:()=>{w(!0)},additionalBlock:j,additionalButtons:L,langDropdown:S})}},71221:(t,e,n)=>{"use strict";n.d(e,{PopupManager:()=>h});var o=n(95155),a=n(60173),r=n(84040),i=n(63888),l=n(95386),s=n(50356),d=n(12115),c=n(73321),u=n(18116),m=n(34535);function h({locale:t,theme:e}){let n,{activePopup:p,closePopup:f,handleTargetAction:g}=(n=(0,u.l1)((0,c.usePathname)()),(0,a.n3)({fetchPopups:({segment:e,path:n})=>fetch(`/api/v-s/getPopups?locale=${t}&segment=${e}&path=${encodeURIComponent(n)}`).then(t=>t.json()),path:n,isBlocked:!1,storageKeyPrefix:"tarantool",onShow:t=>{m.n.ym({action:"popup_shown",category:"popup",label:t}),m.n.tmr({goal:`popup_shown_${t}`})},onTargetAction:(t,e,n)=>{n?.ymEvent&&m.n.ym({action:n.ymEvent,category:"popup",label:`${t}:${e}`}),n?.tmrEvent&&m.n.tmr({goal:n.tmrEvent})}})),_=(0,d.useCallback)(()=>f(),[f]);if(!p)return null;let b=e===s.E.Light?i.v:r.d;return(0,o.jsx)(l.sGw,{customTheme:b,children:(0,o.jsx)(a.Pm,{...p.props,active:!0,onClose:_,onTargetAction:(t,e,n)=>g(p.id,t,{shouldClose:e,events:n})})})}}}]); 2//# sourceMappingURL=3458-718a5b9748638bb7.js.map
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.