(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{7498:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return s},ACTION_SERVER_ACTION:function(){return u},isThenable:function(){return d}});let o="refresh",a="navigate",l="restore",i="server-patch",c="prefetch",s="fast-refresh",u="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(2866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(8754),o=r._(n(7294)),a=n(4450),l=n(2227),i=n(4364),c=n(109),s=n(3607),u=n(1823),d=n(9031),p=n(920),f=n(30),h=n(7192),m=n(7498),v=new Set;function _(e,t,n,r,o,a){if(!a&&!(0,l.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,a=t+"%"+n+"%"+o;if(v.has(a))return;v.add(a)}let i=a?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(i).catch(e=>{})}function g(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let n,r;let{href:i,as:v,children:y,prefetch:b=null,passHref:j,replace:x,shallow:C,scroll:k,locale:N,onClick:A,onMouseEnter:T,onTouchStart:O,legacyBehavior:$=!1,...w}=e;n=y,$&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let P=o.default.useContext(u.RouterContext),E=o.default.useContext(d.AppRouterContext),I=null!=P?P:E,L=!P,S=!1!==b,R=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:M,as:U}=o.default.useMemo(()=>{if(!P){let e=g(i);return{href:e,as:v?g(v):e}}let[e,t]=(0,a.resolveHref)(P,i,!0);return{href:e,as:v?(0,a.resolveHref)(P,v):t||e}},[P,i,v]),B=o.default.useRef(M),q=o.default.useRef(U);$&&(r=o.default.Children.only(n));let W=$?r&&"object"==typeof r&&r.ref:t,[z,F,Z]=(0,p.useIntersection)({rootMargin:"200px"}),D=o.default.useCallback(e=>{(q.current!==U||B.current!==M)&&(Z(),q.current=U,B.current=M),z(e),W&&("function"==typeof W?W(e):"object"==typeof W&&(W.current=e))},[U,W,M,Z,z]);o.default.useEffect(()=>{I&&F&&S&&_(I,M,U,{locale:N},{kind:R},L)},[U,M,F,N,S,null==P?void 0:P.locale,I,L,R]);let H={ref:D,onClick(e){$||"function"!=typeof A||A(e),$&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,n,r,a,i,c,s,u){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==c||c;"beforePopState"in t?t[a?"replace":"push"](n,r,{shallow:i,locale:s,scroll:e}):t[a?"replace":"push"](r||n,{scroll:e})};u?o.default.startTransition(f):f()}(e,I,M,U,x,C,k,N,L)},onMouseEnter(e){$||"function"!=typeof T||T(e),$&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),I&&(S||!L)&&_(I,M,U,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:R},L)},onTouchStart(e){$||"function"!=typeof O||O(e),$&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),I&&(S||!L)&&_(I,M,U,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:R},L)}};if((0,c.isAbsoluteUrl)(U))H.href=U;else if(!$||j||"a"===r.type&&!("href"in r.props)){let e=void 0!==N?N:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(U,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);H.href=t||(0,h.addBasePath)((0,s.addLocale)(U,e,null==P?void 0:P.defaultLocale))}return $?o.default.cloneElement(r,H):o.default.createElement("a",{...w,...H},n)}),b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});let r=n(7294),o=n(3436),a="function"==typeof IntersectionObserver,l=new Map,i=[];function c(e){let{rootRef:t,rootMargin:n,disabled:c}=e,s=c||!a,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);(0,r.useEffect)(()=>{if(a){if(s||u)return;let e=p.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=i.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:a,elements:o},i.push(n),l.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),l.delete(r);let e=i.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&i.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,u,p.current]);let h=(0,r.useCallback)(()=>{d(!1)},[]);return[f,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1664:function(e,t,n){e.exports=n(5170)},9036:function(e,t,n){"use strict";n.d(t,{C:function(){return _}});var r=n(5893),o=n(6535),a=n(5073),l=n(6010),i=n(7294),c=n(1069),s=n(9194),u=n(4941);let d=(0,u.g)("check-all","sc"),p=Object.freeze({wrapper:`${d}__wrapper`,link:`${d}__link`,icon:`${d}__icon`,iconGray:`${d}__icon--gray`}),f=({children:e,className:t,linkClassName:n,iconGrayBackground:o,Link:i=a.rU,event:c,href:u,dataLayerPush:d})=>(0,r.jsx)("div",{className:(0,l.Z)(p.wrapper,t),onClick:()=>{c&&d(c)},children:(0,r.jsxs)(i,{className:(0,l.Z)(p.link,n),href:u,children:[e,(0,r.jsx)("span",{className:(0,l.Z)(p.icon,{[p.iconGray]:o}),children:(0,r.jsx)(s.IconFdsArrowUpRightSmallO,{size:24})})]})}),h=(0,u.g)("faq-block","sc"),m=Object.freeze({faqBlock:h,titleWrapper:`${h}__title-wrapper`,title:`${h}__title`,accordionWrapper:`${h}__accordion-wrapper`,accordionItems:`${h}__accordion-items`,accordion:`${h}__accordion`,accordionItem:`${h}__accordion-item`,accordionItemContent:`${h}__accordion-item-content`,accordionActiveItemContent:`${h}__accordion-item-content--active`,accordionItemText:`${h}__accordion-item-text`,states:{primary:`${h}--primary`,secondary:`${h}--secondary`}}),v=({question:e,eventCategory:t,dataLayerPush:n,...o})=>(0,r.jsx)(a.Qd,{...o,title:e.title,outline:!1,className:(0,l.Z)(m.accordionItem),children:(0,r.jsx)("div",{className:(0,l.Z)(m.accordionItemContent,{[m.accordionActiveItemContent]:o.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:e.content})}),_=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:s,checkAllText:u,Link:d,className:p,eventCategory:h="cb-faq",multiple:_=!1,variant:g="secondary",dataLayerPush:y})=>{let b=_?n.map(e=>e.title):[],[j,x]=(0,i.useState)(b);return(0,r.jsx)("section",{className:(0,l.Z)(m.faqBlock,m.states[g],p),children:(0,r.jsxs)(o.W2,{children:[!t&&(0,r.jsx)("div",{className:m.titleWrapper,children:(0,r.jsx)(o.X6,{as:"h2",type:"display",className:m.title,children:e})}),(0,r.jsxs)("div",{className:m.accordionWrapper,children:[t&&(0,r.jsx)(o.X6,{as:"h3",type:"h1",className:(0,l.Z)(m.title,`${m.title}--inner`),children:t}),(0,r.jsx)("div",{className:m.accordionItems,children:(0,r.jsx)(a.UQ,{className:m.accordion,activeIndex:j,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==j?void 0:j.length),n=e.filter(e=>!j.includes(e))[0]||j.filter(t=>!e.includes(t))[0];x(e),y({event:"data-event",eventCategory:h,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,c.t)(String(n))})},multiple:_,children:n.map(e=>(0,r.jsx)(v,{id:e.title,question:e,dataLayerPush:y,eventCategory:h},e.title))})}),s&&u&&(0,r.jsx)(f,{href:s,event:{event:"data-event",eventCategory:h,eventAction:"сlick_link_answer-link",eventLabel:s},dataLayerPush:y,Link:d,iconGrayBackground:!0,children:u||"Читать все вопросы"})]})]})})}},6024:function(e,t,n){"use strict";n.d(t,{B:function(){return b}});var r=n(5893),o=n(6535),a=n(6010),l=n(9194),i=n(5073),c=n(3803),s=n(4941),u=n(7294);let d=(0,s.g)("support","sc"),p=Object.freeze({support:d,title:`${d}__title`,cardsContainer:`${d}__cards-container`}),f="cb-support",h=(0,s.g)("support-app-card","sc"),m=Object.freeze({supportAppCard:h,textWrapper:`${h}__text-wrapper`,imageContainer:`${h}__image-container`,title:`${h}__title`,description:`${h}__description`,icon:`${h}__icon`,imageWrapper:`${h}__image-wrapper`,image:`${h}__image`}),v=({title:e,linkUrl:t,s3Assets:n,description:o})=>{let a=(0,i.aF)("s");return(0,r.jsxs)("div",{className:m.supportAppCard,onClick:()=>{a&&((0,c.h)({eventCategory:f,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,r.jsx)(l.IconFdsArrowUpRightSmallO,{className:m.icon,size:32}),(0,r.jsxs)("div",{className:m.textWrapper,children:[(0,r.jsx)("div",{className:m.title,children:e}),!!o&&(0,r.jsx)("div",{className:m.description,children:o})]}),(0,r.jsx)("div",{className:m.imageContainer,children:(0,r.jsxs)("picture",{className:m.imageWrapper,children:[(0,r.jsx)("source",{media:"(max-width: 767px)",srcSet:`${n}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${n}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,r.jsx)("img",{className:m.image,loading:"lazy",src:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},_=(0,s.g)("support-phone-card","sc"),g=Object.freeze({supportPhoneCard:_,contacts:`${_}__contacts`,phone:`${_}__phone`,chat:`${_}__chat`,info:`${_}__info`,image:`${_}__image`}),y=({phones:e,description:t,s3Assets:n})=>{let o=(0,u.useCallback)(()=>{var e,t,n;null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||n.call(t),(0,c.h)({eventCategory:f,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),a=e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:f,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})};return(0,r.jsxs)("div",{className:g.supportPhoneCard,children:[(0,r.jsxs)("div",{className:g.contacts,children:[e.map(e=>(0,r.jsx)("a",{className:g.phone,href:e.href,onClick:()=>a(e.label),children:e.label},e.label)),(0,r.jsx)("span",{className:g.chat,onClick:o,children:"Онлайн чат"})]}),(0,r.jsx)("div",{className:g.info,children:t}),(0,r.jsx)("img",{className:g.image,src:`${n}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},b=({className:e,phoneCard:t,appCard:n,s3Assets:l})=>(0,r.jsx)("section",{className:(0,a.Z)(p.support,e),children:(0,r.jsxs)(o.W2,{children:[(0,r.jsx)(o.X6,{as:"h2",type:"display",weight:"bold",className:(0,a.Z)(p.title,"mb-6"),children:"Поддержка"}),(0,r.jsxs)("div",{className:p.cardsContainer,children:[(0,r.jsx)(y,{s3Assets:l,...t}),(0,r.jsx)(v,{s3Assets:l,...n})]})]})});b.displayName="Support"}}]);