!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"83ded2ab60bcc1ac1f22c358209ed7696de18e37"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="30086ff9-0ed6-4385-815e-43dcb945b4bb",e._sentryDebugIdIdentifier="sentry-dbid-30086ff9-0ed6-4385-815e-43dcb945b4bb")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6741,9850],{4708:()=>{},5726:()=>{},10286:(e,t,a)=>{"use strict";a.d(t,{W:()=>p,a:()=>s,b:()=>d,c:()=>o,d:()=>g,e:()=>c,f:()=>x,g:()=>v,h:()=>u,i:()=>A,j:()=>m,k:()=>l,s:()=>y,u:()=>C});var r=a(77773),i=a(12115);let l=`screen and (min-width: ${r.LO.l.minWidth}px)`,n=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","agent_id"],s=Object.freeze({placement:"header",type:"link"}),c=Object.freeze({placement:"header",type:"banner"}),o=Object.freeze({placement:"footer",type:"link"}),d=Object.freeze({placement:"footer",type:"button"}),p=Object.freeze({placement:"footer",type:"banner"}),u=Object.freeze({placement:"support",type:"banner"}),m=Object.freeze({placement:"support",type:"button"}),h=/^\{.*\}$/,f=e=>e.split(/[?#]/)[0].split("/").filter(Boolean),b=e=>{let[t]=f(e);return t?"vklady"===t?"vklady":"other":"mainpage"},g=({config:e,target:t,pathname:a,search:r,referrer:i,isDesktop:l})=>{var s;let c,o=null==(s=e.links)?void 0:s[b(a)],d=l?null==o?void 0:o.desktop:null==o?void 0:o.mobile;if(!d)return null;let p=(e=>{try{return new URL(e)}catch{return null}})(d);if(!p)return null;Array.from(p.searchParams.entries()).filter(([,e])=>h.test(e)).map(([e])=>e).forEach(e=>p.searchParams.delete(e));let u=new URLSearchParams(r);return n.forEach(e=>{let t=u.get(e);t&&p.searchParams.set(e,t)}),i&&p.searchParams.set("referer",i),p.searchParams.set("value",`${(c=f(a)).length?c.join("_"):"mainpage"}_${t.placement}_${t.type}`),p.toString()},v=(e,t)=>{var a;return(null==(a=e.qr)?void 0:a[b(t)])||null},x=()=>({pathname:window.location.pathname,search:window.location.search,referrer:document.referrer,isDesktop:window.matchMedia(l).matches}),_=null,j=new Set,$=()=>_,y=e=>{let t=e??null;t!==_&&(_=t,j.forEach(e=>e()))},k=e=>(j.add(e),()=>{j.delete(e)}),w=()=>()=>{},N=()=>null,A=(e=!0)=>(0,i.useSyncExternalStore)(e?k:w,e?$:N,N),C=({target:e,fallbackHref:t})=>{let a=A(!!e),r=()=>a&&e?g({config:a,target:e,...x()}):null,i=()=>r()??t;return{href:i(),getHref:i,onClick:e=>{let t=r();t&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.setAttribute("href",t)}}}},14560:()=>{},25069:(e,t,a)=>{"use strict";a.d(t,{B:()=>x});var r=a(95155),i=a(12115),l=a(29427),n=a(52951),s=a(17200),c=a(70735);function o(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"m10.28 19.03 6.5-6.5a.75.75 0 0 0 0-1.06l-6.5-6.5a.75.75 0 1 0-1.06 1.06L15.19 12l-5.97 5.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}var d=a(25501);a(5726);let p=(0,n.g)("breadcrumbs"),u={breadcrumbs:p,breadcrumbsEllipsis:`${p}--ellipsis`,displayOne:`${p}--display-one`,list:`${p}__list`,mobileList:`${p}__list--mobile`,desktopList:`${p}__list--desktop`,item:`${p}__item`,customItem:`${p}__item--custom`,link:`${p}__link`,linkLabel:`${p}__link-label`,text:`${p}__text`,separator:`${p}__separator`,backIcon:`${p}__back-icon`,iconMobile:`${p}__icon--mobile`,iconDesktop:`${p}__icon--desktop`},m=(e=[],t,a)=>{var r;return t||a?{label:t||"Назад",href:"object"!=typeof a?a||"#":void 0,customLink:"object"==typeof a?a:void 0}:e.length&&e.length>1?(null==(r=e[e.length-1])?void 0:r.href)?e[e.length-1]:e[e.length-2]:{label:e[0].label||"Назад",href:e[0].href||"#",customLink:e[0].customLink}};function h(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M8.22 12.53a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 1 1 1.06 1.06L9.81 12l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}function f(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"m11.28 17.03 4.5-4.5a.75.75 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let b=({as:e,item:t,isBackward:a=!1,isLast:i,dataQa:n,onClick:s})=>(0,r.jsx)(r.Fragment,{children:t.href||t.customLink?(0,r.jsxs)(r.Fragment,{children:[t.customLink?(0,r.jsx)(r.Fragment,{children:t.customLink}):(0,r.jsxs)(e||"a",{href:t.href,"data-qa":n,className:u.link,title:t.label,onClick:s?e=>s(e,t.href):void 0,children:[a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.P,{className:(0,l.A)(u.backIcon,u.iconDesktop),children:(0,r.jsx)(c.S,{})}),(0,r.jsx)(d.P,{className:(0,l.A)(u.backIcon,u.iconMobile),children:(0,r.jsx)(h,{})})]}),(0,r.jsx)("span",{className:u.linkLabel,children:t.label})]}),!a&&!i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.P,{className:(0,l.A)(u.separator,u.iconDesktop),children:(0,r.jsx)(o,{})}),(0,r.jsx)(d.P,{className:(0,l.A)(u.separator,u.iconMobile),children:(0,r.jsx)(f,{})})]})]}):(0,r.jsx)("span",{"aria-current":"page","data-qa":n,className:u.text,title:t.label,children:t.label})});b.displayName="BreadcrumbsLink";let g=({as:e,items:t=[],dataQa:a,backwardHref:n,backwardLabel:c,onClick:o})=>{let d=(0,i.useRef)(null),p=(0,i.useCallback)(e=>{let t=d.current;if(!t)return;let a=(null==e?void 0:e.target).closest("a");if(!a)return;let r=t.getBoundingClientRect(),i=a.getBoundingClientRect();t.scrollTo({left:i.left-r.left-8+(t.scrollLeft??0),behavior:"smooth"})},[]),h=m(t,c,n),f=(e,t)=>{p(e),null==o||o(e,t)};return(0,r.jsx)("ul",{ref:d,className:(0,l.A)(u.list,u.desktopList),"data-qa":(0,s.g)(`${a}-desktop-list`,!!a),children:1===t.length||n||c?(0,r.jsx)("li",{className:(0,l.A)(u.item),children:(0,r.jsx)(b,{as:e,isBackward:!0,dataQa:(0,s.g)(`${a}-link`,!!a),item:h,onClick:f})}):(0,r.jsx)(r.Fragment,{children:t.map((i,n)=>(0,r.jsx)("li",{className:(0,l.A)(u.item,{[u.customItem]:i.customLink}),children:(0,r.jsx)(b,{as:e,item:i,dataQa:(0,s.g)(`${a}-link-${++n}`,!!a),isLast:n===t.length,onClick:f})},`${i.label}--${n}`))})})};g.displayName="DesktopBreadcrumbs";let v=({as:e,items:t=[],backwardLabel:a,backwardHref:i,dataQa:n,onClick:c})=>{let o=m(t,a,i);return(0,r.jsx)("ul",{className:(0,l.A)(u.list,u.mobileList),"data-qa":(0,s.g)(`${n}-mobile-list`,!!n),children:(0,r.jsx)("li",{className:(0,l.A)(u.item),children:(0,r.jsx)(b,{as:e,isBackward:!0,dataQa:(0,s.g)(`${n}-link`,!!n),item:o,onClick:c})})})};v.displayName="MobileBreadcrumbs";let x=(0,i.forwardRef)(({items:e=[],as:t,isMobile:a,onClick:i,backwardLabel:n,backwardHref:s,style:c,className:o,ellipsis:d=!1,isFullView:p=!1,dataQa:m,dataId:h,...f},b)=>{let x=e.length||n||s;return(0,r.jsx)(r.Fragment,{children:x&&(0,r.jsxs)("nav",{ref:b,"aria-label":"breadcrumbs",className:(0,l.A)(u.breadcrumbs,{[u.displayOne]:void 0===a&&!p,[u.breadcrumbsEllipsis]:d},o),style:c,...f,"data-id":h,"data-qa":m,children:[!0!==a&&(0,r.jsx)(g,{as:t,items:e,dataQa:m,backwardLabel:n,backwardHref:s,onClick:i||void 0}),!1!==a&&!p&&(0,r.jsx)(v,{as:t,items:e,dataQa:m,backwardLabel:n,backwardHref:s,onClick:i||void 0})]})})});x.displayName="Breadcrumbs"},39318:(e,t,a)=>{"use strict";var r=a(22154);a.o(r,"notFound")&&a.d(t,{notFound:function(){return r.notFound}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}})},53294:(e,t,a)=>{"use strict";a.d(t,{nu:()=>o,qF:()=>d,qK:()=>p});var r=a(77773),i=a(12115);function l(){return"u"<typeof window}let n=l()?i.useLayoutEffect:i.useEffect;function s(e,t=!1){return l()?t:window.matchMedia(e).matches}function c(e,{defaultValue:t=!1,initializeWithValue:a=!0}={}){let[r,l]=(0,i.useState)(()=>a?s(e,t):t??!1);function o(){l(s(e))}return n(()=>{let t=window.matchMedia(e);return o(),"function"==typeof t.addListener?t.addListener(o):t.addEventListener("change",o),()=>{"function"==typeof t.removeListener?t.removeListener(o):t.removeEventListener("change",o)}},[e]),r}function o(e){let{maxWidth:t}=r.LO[e];return c(`screen and (max-width: ${t}px)`)}function d(e){let{minWidth:t}=r.LO[e];return c(`screen and (min-width: ${t}px)`)}function p(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>t(!0),[]),e}},55726:(e,t,a)=>{"use strict";a.d(t,{E:()=>w}),a(4708);var r=a(95155),i=a(42687),l=a(62031),n=a(29427),s=a(59092),c=a(13622),o=a(53294),d=a(48822),p=a(10286),u=a(70475),m=a(31117),h=a(12115);let f=(0,m.g)("support","sc"),b=Object.freeze({support:f,title:`${f}__title`,cardsContainer:`${f}__cards-container`}),g="cb-support",v=(0,m.g)("support-app-card","sc"),x=Object.freeze({supportAppCard:v,textWrapper:`${v}__text-wrapper`,imageContainer:`${v}__image-container`,title:`${v}__title`,description:`${v}__description`,button:`${v}__button`,imageWrapper:`${v}__image-wrapper`,image:`${v}__image`}),_=({title:e,linkUrl:t,s3Assets:a,description:i})=>{let l=(0,o.nu)("s"),n=(0,p.u)({target:p.h,fallbackHref:t}),m=(0,u.u)(),h=`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app`;return(0,r.jsxs)("div",{className:x.supportAppCard,onClick:()=>{if(!l)return;let a=n.getHref()??t;(0,d.h)({eventCategory:g,eventActionType:d.D.banner,eventActionText:e,eventLabel:a}),window.open(a,"_blank","noreferrer")},children:[(0,r.jsx)(c.$,{className:x.button,iconLeft:(0,r.jsx)(s.K,{size:24}),shape:"circle-icon",size:"xs"}),(0,r.jsxs)("div",{className:x.textWrapper,children:[(0,r.jsx)("div",{className:x.title,children:e}),!!i&&(0,r.jsx)("div",{className:x.description,children:i})]}),(0,r.jsx)("div",{className:x.imageContainer,children:(0,r.jsxs)("picture",{className:x.imageWrapper,children:[(0,r.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,r.jsx)("img",{className:x.image,loading:"lazy",src:m??`${h}.webp`,srcSet:m?void 0:`${h}.webp 1x, ${h}@2x.webp 2x`})]})})]})},j=(0,m.g)("support-phone-card","sc"),$=Object.freeze({supportPhoneCard:j,contacts:`${j}__contacts`,contactsExtra:`${j}__contacts-extra`,phone:`${j}__phone`,phonesExtra:`${j}__phones-extra`,phoneExtra:`${j}__phone-extra`,chat:`${j}__chat`,text:`${j}__text`,image:`${j}__image`}),y=({phones:e,phonesExtra:t,description:a,s3Assets:i})=>{let l=(0,h.useCallback)(()=>{var e,t,a;null==(a=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||a.call(t),(0,d.h)({eventCategory:g,eventActionType:d.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),n=e=>{let t=e.replace(/[\s-]/g,"");(0,d.h)({eventCategory:g,eventActionType:d.D.link,eventActionText:"phone",eventLabel:t})};return(0,r.jsxs)("div",{className:$.supportPhoneCard,children:[(0,r.jsxs)("div",{className:$.contacts,children:[e.map(e=>(0,r.jsx)("a",{className:$.phone,href:e.href,onClick:()=>n(e.label),children:e.label},e.label)),(0,r.jsx)("span",{className:$.chat,onClick:l,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,r.jsxs)("div",{className:$.contactsExtra,children:[(0,r.jsx)("p",{className:$.text,children:"Дополнительные телефоны"}),(0,r.jsx)("div",{className:$.phonesExtra,children:t.map(e=>(0,r.jsx)("a",{className:$.phoneExtra,href:e.href,onClick:()=>n(e.label),children:e.label},e.label))})]}),(0,r.jsx)("p",{className:$.text,children:a}),(0,r.jsx)("img",{className:$.image,src:`${i}/mp-assets/widgets/SupportBlock/bannerSupportGirl.webp`,loading:"lazy"})]})},k=({className:e,phoneCard:t,appCard:a,s3Assets:s})=>t&&a?(0,r.jsx)("section",{className:(0,n.A)(b.support,e),children:(0,r.jsxs)(i.m,{children:[(0,r.jsx)(l.D,{as:"h2",type:"display",weight:"bold",className:b.title,children:"Поддержка"}),(0,r.jsxs)("div",{className:b.cardsContainer,children:[(0,r.jsx)(y,{s3Assets:s,...t}),(0,r.jsx)(_,{s3Assets:s,...a})]})]})}):null;k.displayName="Support";let w=k},60773:(e,t,a)=>{"use strict";a.d(t,{default:()=>i.a});var r=a(93098),i=a.n(r)},70475:(e,t,a)=>{"use strict";a.d(t,{u:()=>i});var r=a(10286);let i=e=>{let t=(0,r.i)();return t?(0,r.g)(t,window.location.pathname)??e:e}},77773:(e,t,a)=>{"use strict";a.d(t,{LO:()=>r});let r=Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})}),i=Object.freeze(Object.keys(r));Object.freeze(i.filter(e=>"xs"!==e)),Object.freeze(i.filter(e=>"3xl"!==e))},78982:(e,t,a)=>{"use strict";a.d(t,{C:()=>v}),a(14560);var r=a(95155),i=a(12115),l=a(94923),n=a(42687),s=a(9013),c=a(53294),o=a(29427),d=a(48822),p=a(8407),u=a(93371),m=a(18271);let h=(0,a(31117).g)("journal","sc"),f=Object.freeze({wrapper:`${h}__wrapper`,title:`${h}__title`,subtitle:`${h}__subtitle`,scrollableWrapper:`${h}__scrollable-wrapper`,chipsWrapper:`${h}__chips-wrapper`,slider:`${h}__slider`,sliderItem:`${h}__slider-item`,article:`${h}__article`,imgWrapper:`${h}__img-wrapper`,articleBody:`${h}__article-body`,articleTitle:`${h}__article-title`,articleDate:`${h}__article-date`,checkAllLink:`${h}__check-all-link`}),b="finkit-widgets-sc-journal",g="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",v=({data:e,eventCategory:t=b,className:a})=>{var h;let v=(0,c.qF)("xl"),[x,_]=(0,i.useState)(!0),[j,$]=(0,i.useState)(0),y=Array.isArray(null==e?void 0:e.chips)?e.chips.filter(({items:e})=>!!(null!=e&&e.length)):[],k=y.some(({id:e})=>e===j)?j:null==(h=y[0])?void 0:h.id,w=y.find(({id:e})=>e===k),N=(null==w?void 0:w.items)||[];if((0,i.useEffect)(()=>{_(!v)},[v]),!y.length)return null;let A=e=>{e.target.src!==g&&(e.target.src=g)};return(0,r.jsxs)("div",{className:(0,o.A)(f.wrapper,a),children:[(0,r.jsxs)(n.m,{children:[(0,r.jsx)("h2",{className:f.title,children:null==e?void 0:e.title}),(0,r.jsx)("div",{className:f.subtitle,children:null==e?void 0:e.description})]}),(0,r.jsx)("div",{className:f.scrollableWrapper,children:(0,r.jsx)(n.m,{children:(0,r.jsx)("div",{className:f.chipsWrapper,children:y.length>1&&(0,r.jsx)(l.C,{chips:y,value:k,variant:"secondary",size:x?"m":"l",onChipClick:e=>{var a;let r=(null==(a=y.find(({id:t})=>t===e))?void 0:a.label)||"";(0,d.h)({eventCategory:t,eventActionType:d.D.tab,eventActionText:r}),$(e)}})})})}),(0,r.jsxs)(n.m,{children:[(0,r.jsx)(s.A,{className:f.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:N.map(e=>{let a,i;return(0,r.jsx)(s.D,{className:f.sliderItem,children:(0,r.jsxs)("a",{className:f.article,href:e.url,onClick:(a=e.title,i=e.url,()=>{(0,d.h)({eventCategory:t,eventActionType:d.D.block,eventActionText:a||"",eventLabel:i})}),children:[(0,r.jsx)("div",{className:f.imgWrapper,children:(0,r.jsx)("img",{src:e.img,alt:`изображение: ${e.title}`,loading:"lazy",onError:A})}),(0,r.jsxs)("div",{className:f.articleBody,children:[(0,r.jsx)("div",{className:f.articleTitle,children:e.title}),(0,r.jsx)("div",{className:f.articleDate,children:(e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let a=t.getDate(),r=t.getMonth();return`${a} ${["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][r]}`})(e.dt)})]})]})},e.title)})},k),(0,r.jsx)(m.C,{href:(null==e?void 0:e.url)||"",event:{event:"data-event",eventCategory:t,eventAction:`link_${(0,u.t)((null==e?void 0:e.urlText)||"Показать все статьи")}`,eventLabel:(null==e?void 0:e.url)||""},dataLayerPush:p.d,className:f.checkAllLink,children:(null==e?void 0:e.urlText)||"Показать все статьи"})]})]})}},89313:()=>{},93098:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return o}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let l=a(42174),n=a(51314),s=a(59642),c=l._(a(60658));function o(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:c.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let d=s.Image},94923:(e,t,a)=>{"use strict";a.d(t,{C:()=>d});var r=a(95155),i=a(12115),l=a(29427),n=a(17200),s=a(52951);a(89313);let c=(0,s.g)("chips"),o=Object.freeze({chips:c,chip:`${c}__item`,icon:`${c}__icon`,iconLeft:`${c}__icon-left`,iconRight:`${c}__icon-right`,label:`${c}__label`,variants:{primary:`${c}--primary`,secondary:`${c}--secondary`,tertiary:`${c}--tertiary`},activeVariants:{primary:`${c}--active-primary`,secondary:`${c}--active-secondary`},sizes:{s:`${c}--s`,m:`${c}--m`,l:`${c}--l`},selected:`${c}--selected`,indicator:`${c}__indicator`,indicatorVariant:{red:`${c}__indicator--red`,orange:`${c}__indicator--orange`,green:`${c}__indicator--green`,purple:`${c}__indicator--purple`,purpleSecondary:`${c}__indicator--purple-secondary`,blue:`${c}__indicator--blue`,pink:`${c}__indicator--pink`}}),d=(0,i.forwardRef)(({as:e,chips:t,value:a,variant:s="primary",activeVariant:c="primary",multiple:d,clearable:p,size:u="m",className:m,style:h,dataQa:f,dataId:b,onChipClick:g,...v},x)=>{let[_,j]=(0,i.useState)(d?[]:void 0),$=(0,i.useRef)(null);(0,i.useImperativeHandle)(x,()=>({getRoot:()=>$.current,getSelectedChips:()=>_})),(0,i.useEffect)(()=>{d?j(Array.isArray(a)?a:[]):j(a)},[a,d]);let y=d||p,k=e||"div",w=e=>d&&Array.isArray(_)?_.includes(e):_===e,N=(e,t,a)=>{j(a),null==g||g(e,t,a)},A=(e,t)=>{if(d&&Array.isArray(_))if(w(e)){let a=_.filter(t=>t!==e);N(e,t,a)}else N(e,t,[..._,e]);else{let a=p&&w(e)?void 0:e;N(e,t,a)}};return(0,r.jsx)("div",{ref:$,className:(0,l.A)(m,o.chips),style:h,...v,"data-id":b,"data-qa":f,children:t.map((e,t)=>(({id:e,label:t,href:a,iconLeft:i,iconRight:d,indicator:p},m)=>{let h=w(e),b=void 0!==a;return(0,r.jsxs)(k,{href:a,className:(0,l.A)(o.chip,o.sizes[u],o.activeVariants[c],o.variants[s],[{[o.selected]:h}]),role:b?void 0:y?"checkbox":"radio","aria-checked":b?void 0:h,"aria-label":t,tabIndex:b?void 0:0,"data-qa":(0,n.g)(`${f}-item-${++m}`,!!f),onClick:t=>{A(e,t)},onKeyDown:b?void 0:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),A(e,t))},children:[i&&(0,r.jsx)("span",{className:(0,l.A)(o.icon,o.iconLeft),"aria-hidden":"true",children:i}),(0,r.jsx)("span",{className:(0,l.A)(o.label),children:t}),p&&(0,r.jsx)("div",{className:(0,l.A)(o.indicator,o.indicatorVariant[p])}),d&&(0,r.jsx)("span",{className:(0,l.A)(o.icon,o.iconRight),"aria-hidden":"true",children:d})]},e)})(e,t))})});d.displayName="Chips"}}]);
//# debugId=30086ff9-0ed6-4385-815e-43dcb945b4bb