1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3085],{26739:function(e,t,n){n.d(t,{Bm:function(){return isExternalLink},Es:function(){return hrefToString},K2:function(){return isValidURL},WD:function(){return addUtmToExterntalLink},Wi:function(){return getStyles},lx:function(){return customLinkOnClick},tY:function(){return delSlugFromQuery},wS:function(){return getHref}});var r=n(63282),i=n(78949),a=n(11340),l=n(15695),c=n(45077);let delSlugFromQuery=e=>{let{slug:t,...n}=e;return n},isExternalLink=e=>e.includes("http"),isValidURL=e=>{try{return new URL(e),!0}catch(e){return!1}},correctHref=e=>(0,c.H)(e.includes("http")||(null==e?void 0:e[0])==="/"||e.includes(":")||e.includes(".")?e:"/".concat(e)),queryToString=e=>{let t=Object.keys(e);return null==t?void 0:t.reduce((t,n,r)=>0===r?"".concat(n,"=").concat(e[n]):"".concat(t,"&").concat(n,"=").concat(e[n]),"")},hrefToString=e=>{if("string"==typeof e)return e;let t=Object.keys(null==e?void 0:e.query),n=t.length?"?"+queryToString(null==e?void 0:e.query):"",r=(null==e?void 0:e.hash)?"#"+e.hash:"";return"".concat(e.pathname).concat(n).concat(r)},addUtmToExterntalLink=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.PB)(t),r=new URL(e),a=Object.fromEntries(new URLSearchParams(r.
1search));return{pathname:r.origin+r.pathname,query:{...a,...n},hash:r.hash.slice(1)}},getHref=e=>{let{href:t,withCurrentPath:n,currentQuery:r,asPath:i,query:l}=e;if("string"==typeof t){let e=(0,c.H)(t);if(isExternalLink(e)&&isValidURL(e))return addUtmToExterntalLink(e,l);if(e.split("#")[1]||e.includes("?"))return e;let o={...l},s=Object.keys(r||{}).reduce((e,t)=>(o.hasOwnProperty(t)&&delete o[t],void 0===r[t])?e:{[t]:r[t],...e},{});return{pathname:n?(0,a.u)(i):correctHref(e)||"",query:n?{...delSlugFromQuery(o),...s}:{}}}return t||""},analitics=(e,t)=>{let{customHref:n,customHrefString:i}=e,{postfixHrefForAnalytics:a,idAnalytic:c}=t;(0,l.B)({action:l.yk.CLICK,label:"string"!=typeof n?null==n?void 0:n.pathname:i,category:l.pN.LINK,urlPostfix:a}),c&&(0,r.ZP)("reachGoal",c)},normalizeHref=e=>{if(!e)return"";try{let t=window.location.origin,n=new URL(e,t);return"".concat(n.pathname).concat(n.search).concat(n.hash)}catch(t){return e}},customLinkOnClick=(e,t)=>{let{customHrefString:n,routerReplace:r,push:i,customHref:a,asPath:l,onClick:c,isExternal:o,replace:s,disabled:u,preventNavigation:p,postfixHrefForAnalytics:d,idAnalytic:h}=t;if(e.preventDefault(),!u&&(analitics({customHref:a,customHrefString:n},{postfixHrefForAnalytics:d,idAnalytic:h}),c&&c(e),!p)){if(o){window.open(n,"_blank");return}normalizeHref(n)!==normalizeHref(l)&&(s?r(a):i(a))}},getStyles=e=>{let{getActiveStyles:t,withCurrentPath:n,currentQuery:r,as:i,activeStyles:a,query:l,asPath:c,currentHref:o}=e;if(t)return t();if(n){let e=Object.keys(r||{}).every(e=>l.hasOwnProperty(e)&&(l[e]||"")===(r[e]||""));return e?a:{}}return c===o||c===i?a:{}}},26710:function(e,t,n){n.d(t,{Z:function(){return HTMLContent}});var r=n(85893),i=n(23100),a=n(11163),l=n(67294),c=n(26739),o=n(15695);let s=/<a\s+([^>]*?)href=["']([^"']+)["']([^>]*)>/g,useDeclareMetrics=e=>{let t=(0,a.useRouter)();(0,l.useEffect)(()=>{e&&(null==e?void 0:e.indexOf("<a"))!==-1&&void 0!==e&&(window.metricFunc=function(e){if((0,c.Bm)(e.href)&&(0,c.K2)(e.href)){let n=(0,c.WD)(e.href,t.query),r=(0,c.Es)(n);e.href=r}(0,o.B)({action:o.yk.CLICK,label:null==e?void 0:e.href,category:o.pN.LINK})})},[]);let n=null==e?void 0:e.replace(s,(e,t,n,r)=>"<a ".concat(t,' href="').concat(n,'" ').concat(r,' onclick="metricFunc(this);">'));return n};var u=n(33295),p=n(45077);let d={enrichLinks:!0,enrichImages:!0,enrichLists:!0};var HTMLContent_enrichHtmlWithSchema=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(!e)return"";let n=e;return t.enrichLinks&&(n=n.replace(/<a\s+(?![^>]*itemprop)([^>]*)>/gi,'<a itemprop="relatedLink" $1>')),t.enrichImages&&(n=n.replace(/<img\s+(?![^>]*itemprop)([^>]*)(\/?)>/gi,(e,t,n)=>'<span itemprop="thumbnail" itemscope itemtype="https://schema.org/ImageObject"><img itemprop="contentUrl" '.concat(t).concat(n,"></span>"))),t.enrichLists&&(n=n.replace(/<ul\s*(?![^>]*itemscope)([^>]*)>/gi,'<ul itemprop="accessModeSufficient" itemscope itemtype="https://schema.org/ItemList" $1>').replace(/<ol\s*(?![^>]*itemscope)([^>]*)>/gi,'<ol itemprop="accessModeSufficient" itemscope itemtype="https://schema.org/ItemList" $1>').replace(/<li\s*(?![^>]*itemprop)([^>]*)>/gi,'<li itemprop="itemListElement" $1>')),n};let HTMLContent=e=>{let{children:t,sx:n,withSchemaMarkup:a,schemaOptions:l,...c}=e,o=useDeclareMetrics(t),s=a?HTMLContent_enrichHtmlWithSchema(o,l):o,d=(0,p.X)(s);return(0,r.jsx)(i.xu,{overflow:"auto",dangerouslySetInnerHTML:{__html:d},sx:{flexDirection:"column","*":{":last-child":{mb:"0"}},img:{borderRadius:"16px"},".image":{display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"center",figcaption:{maxWidth:{base:"calc(100vw - 30px)",sm:"300px"},textAlign:"center",wordWrap:"break-word"}},".image-style-side":{float:"right"},p:{mb:"20px"},h1:{mb:"20px"},h2:{mb:"20px"},h3:{mb:"20px"},h4:{mb:"20px"},h5:{mb:"20px"},h6:{mb:"20px"},ul:{pl:"40px"},ol:{pl:"40px"},".table":{width:"100%",display:"flex",flexDirection:"column-reverse",figcaption:{display:"flex",justifyContent:"center",border:"1px solid ".concat(u.default.grayBase[70])}},".ck-table-resized":{width:"100%"},"th, td":{border:"1px solid ".concat(u.default.grayBase[70]),padding:"5px"},td:{borderColor:"".concat(u.default.grayBase[40])},blockquote:{position:"relative",display:"block",pt:{base:"20px",sm:"40px"},pl:{base:"30px",sm:"70px"}
1,pr:{base:"20px",sm:"80px"},pb:{base:"20px",sm:"30px"},mb:{base:"",sm:"30px"},boxSizing:"border-box",_before:{position:"absolute",boxSizing:"border-box",content:"''",borderRadius:"2px",left:{base:"10px",sm:"50px"},w:"2px",h:{base:"calc(100% - 20px - 20px)",sm:"calc(100% - 40px - 30px)"},bg:"gray.dark"}},...n},...c})}},27197:function(e,t,n){n.d(t,{X:function(){return Heading}});var r=n(85893),i=n(23100);n(67294);var a=n(72151),l=n(27455);let Heading=e=>{let t,{variant:n,children:c,accent:o=!1,defaultSpace:s,...u}=e,p=(0,a.vZ)(l.default.text.accent);return!0===s||"lg"===s?t={base:"space.32",sm:"space.40"}:"sm"===s&&(t={base:"space.20",sm:"space.40"}),(0,r.jsx)(i.xu,{as:n,textStyle:n,color:o&&p,mb:t,...u,children:c})};t.Z=Heading},12102:function(e,t,n){n.d(t,{Z:function(){return r}});let r={FaqPageSchemaAttr:{itemScope:!0,itemType:"https://schema.org/FAQPage"},QuestionSchemaAttr:{itemScope:!0,itemType:"https://schema.org/Question",itemProp:"mainEntity"},AnswerSchemaAttr:{itemScope:!0,itemType:"https://schema.org/Answer",itemProp:"acceptedAnswer"},fields:{text:{itemProp:"text"},name:{itemProp:"name"},headline:{itemProp:"headline"},alternativeHeadline:{itemProp:"alternativeHeadline"}}}},87341:function(e,t,n){n.d(t,{R:function(){return ChevronDown20Icon}});var r=n(85893),i=n(56877);let ChevronDown20Icon=e=>(0,r.jsx)(i.J,{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M15.88 9.29L12 13.17L8.11998 9.29C7.72998 8.9 7.09998 8.9 6.70998 9.29C6.31998 9.68 6.31998 10.31 6.70998 10.7L11.3 15.29C11.69 15.68 12.32 15.68 12.71 15.29L17.3 10.7C17.69 10.31 17.69 9.68 17.3 9.29C16.91 8.91 16.27 8.9 15.88 9.29Z",fill:"currentColor"})});t.Z=ChevronDown20Icon},3085:function(e,t,n){n.r(t),n.d(t,{default:function(){return FAQCardSection}});var r=n(85893),i=n(36979),a=n(36024),l=n(5077),c=n(77484),o=n(88911),s=n(64657),u=n(12102),p=n(67294),d=n(27197),h=n(26710),m=n(87341),f=n(15695);let FAQCardSection=e=>{let{isFirstSection:t,title:n,list:x}=e,[g,b]=(0,p.useState)([]),handleClick=e=>{b(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])};return(0,r.jsxs)(i.W,{variant:"p-inside",style:{paddingTop:t&&"0"},...u.Z.FaqPageSchemaAttr,children:[(0,r.jsx)(d.Z,{variant:"h2",defaultSpace:!0,...u.Z.fields.headline,children:n}),(0,r.jsx)(a.U,{allowMultiple:!0,allowToggle:!0,variant:"default",children:null==x?void 0:x.map((e,t)=>(0,r.jsxs)(l.Q,{onClick:()=>{(0,f.B)({action:f.yk.CLICK,label:"faq_card_".concat(e.title),category:f.pN.BUTTON})},...u.Z.QuestionSchemaAttr,children:[(0,r.jsxs)(c.K,{onClick:()=>handleClick(t),children:[(0,r.jsx)(o.x,{as:"h3",textStyle:{base:"h4",sm:"h3"},textAlign:"left",pr:"20px",...u.Z.fields.name,children:e.title}),(null==e?void 0:e.title)&&(0,r.jsx)(o.x,{as:"span",display:"none",...u.Z.fields.alternativeHeadline,children:e.title}),(0,r.jsx)(m.Z,{transformOrigin:"center",color:"icon.grey",transform:"rotate(".concat(g.includes(t)?"-180deg":"0deg",")"),transition:".2s"},t)]}),(0,r.jsx)(s.H,{...u.Z.AnswerSchemaAttr,children:(0,r.jsx)(h.Z,{...u.Z.fields.text,withSchemaMarkup:!0,schemaOptions:{enrichLinks:!0,enrichImages:!0,enrichLists:!0},children:e.description})})]},"accordion-item-".concat(t)))})]})}},45077:function(e,t,n){n.d(t,{H:function(){return normalizeInternalUrl},X:function(){return normalizeInternalLinksInHtml}});let r=["www.bspb.ru","bspb.ru"],normalizeInternalUrl=e=>{if(!e||!/^https?:\/\//i.test(e))return e;try{let t=new URL(e);if(!r.includes(t.host))return e;return"".concat(t.pathname).concat(t.search).concat(t.hash)||"/"}catch(t){return e}},normalizeInternalLinksInHtml=e=>null==e?void 0:e.replace(/href="(https?:\/\/[^\"]+)"/gi,(e,t)=>'href="'.concat(normalizeInternalUrl(t),'"'))}}]);
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.