(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6111],{26111:(e,s,a)=>{"use strict";a.r(s),a.d(s,{Support:()=>w}),a(89190);var t=a(95155),l=a(66216),r=a(63959),i=a(29722),n=a(57349),p=a(24691),c=a(14347),o=a(20197),h=a(7596),d=a(12115);let m=(0,h.g)("support","sc"),x=Object.freeze({support:m,title:`${m}__title`,cardsContainer:`${m}__cards-container`}),u="cb-support",g=(0,h.g)("support-app-card","sc"),_=Object.freeze({supportAppCard:g,textWrapper:`${g}__text-wrapper`,imageContainer:`${g}__image-container`,title:`${g}__title`,description:`${g}__description`,button:`${g}__button`,imageWrapper:`${g}__image-wrapper`,image:`${g}__image`}),b=({title:e,linkUrl:s,s3Assets:a,description:l})=>{let r=(0,c.nu)("s");return(0,t.jsxs)("div",{className:_.supportAppCard,onClick:()=>{r&&((0,o.h)({eventCategory:u,eventActionType:o.D.banner,eventActionText:e,eventLabel:s}),window.open(s,"_blank","noreferrer"))},children:[(0,t.jsx)(p.$,{className:_.button,iconLeft:(0,t.jsx)(n.K,{size:24}),shape:"circle-icon",size:"xs"}),(0,t.jsxs)("div",{className:_.textWrapper,children:[(0,t.jsx)("div",{className:_.title,children:e}),!!l&&(0,t.jsx)("div",{className:_.description,children:l})]}),(0,t.jsx)("div",{className:_.imageContainer,children:(0,t.jsxs)("picture",{className:_.imageWrapper,children:[(0,t.jsx)("source",{media:"(max-width: 767px)",srcSet:`${a}/mp-assets/widgets/SupportBlock/mobile-app.webp 1x, ${a}/mp-assets/widgets/SupportBlock/mobile-app@2x.webp 2x`}),(0,t.jsx)("img",{className:_.image,loading:"lazy",src:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.webp`,srcSet:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.webp 1x, ${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.webp 2x`})]})})]})},v=(0,h.g)("support-phone-card","sc"),$=Object.freeze({supportPhoneCard:v,contacts:`${v}__contacts`,contactsExtra:`${v}__contacts-extra`,phone:`${v}__phone`,phonesExtra:`${v}__phones-extra`,phoneExtra:`${v}__phone-extra`,chat:`${v}__chat`,text:`${v}__text`,image:`${v}__image`}),j=({phones:e,phonesExtra:s,description:a,s3Assets:l})=>{let r=(0,d.useCallback)(()=>{var e,s,a;null==(a=null==(s=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:s.open)||a.call(s),(0,o.h)({eventCategory:u,eventActionType:o.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),i=e=>{let s=e.replace(/[\s-]/g,"");(0,o.h)({eventCategory:u,eventActionType:o.D.link,eventActionText:"phone",eventLabel:s})};return(0,t.jsxs)("div",{className:$.supportPhoneCard,children:[(0,t.jsxs)("div",{className:$.contacts,children:[e.map(e=>(0,t.jsx)("a",{className:$.phone,href:e.href,onClick:()=>i(e.label),children:e.label},e.label)),(0,t.jsx)("span",{className:$.chat,onClick:r,children:"Онлайн чат"})]}),(null==s?void 0:s.length)>0&&(0,t.jsxs)("div",{className:$.contactsExtra,children:[(0,t.jsx)("p",{className:$.text,children:"Дополнительные телефоны"}),(0,t.jsx)("div",{className:$.phonesExtra,children:s.map(e=>(0,t.jsx)("a",{className:$.phoneExtra,href:e.href,onClick:()=>i(e.label),children:e.label},e.label))})]}),(0,t.jsx)("p",{className:$.text,children:a}),(0,t.jsx)("img",{className:$.image,src:`${l}/mp-assets/widgets/SupportBlock/bannerSupportGirl.webp`,loading:"lazy"})]})},N=({className:e,phoneCard:s,appCard:a,s3Assets:n})=>s&&a?(0,t.jsx)("section",{className:(0,i.A)(x.support,e),children:(0,t.jsxs)(l.m,{children:[(0,t.jsx)(r.D,{as:"h2",type:"display",weight:"bold",className:x.title,children:"Поддержка"}),(0,t.jsxs)("div",{className:x.cardsContainer,children:[(0,t.jsx)(j,{s3Assets:n,...s}),(0,t.jsx)(b,{s3Assets:n,...a})]})]})}):null;N.displayName="Support";let w=N},56082:(e,s,a)=>{"use strict";a.d(s,{H:()=>o});var t=a(95155),l=a(29722),r=a(86253),i=a(83640);a(95124);let n={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},p=(0,i.g)("heading"),c=Object.freeze({heading:p,states:Object.freeze({display:`${p}--display`,hero:`${p}--hero`,h1:`${p}--h1`,h2:`${p}--h2`,h3:`${p}--h3`,h4:`${p}--h4`,h5:`${p}--h5`,h6:`${p}--h6`})}),o=({as:e,children:s,weight:a,type:i,lineClamp:p,className:o,style:h,dataQa:d,dataId:m,...x})=>{var u;let g=e||n[i]||"div",_=/^h[1-6]$/.test(g),b=(null==(u=i.match(/\d+/))?void 0:u[0])||1;return(0,t.jsx)(g,{className:(0,l.A)(c.heading,c.states[i],o),style:{...a?{fontWeight:`var(--font-weight-${a})`}:void 0,...p?{WebkitLineClamp:p,lineClamp:p,...r.l}:void 0,...h},role:_?null:"heading","aria-level":_?null:b,...x,"data-id":m,"data-qa":d,children:s})};o.displayName="Heading"},63959:(e,s,a)=>{"use strict";a.d(s,{D:()=>t.H});var t=a(56082)},89190:()=>{},95124:()=>{}}]);