(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67638,e=>{"use strict";var t=e.i(47167);e.i(43476),e.i(10679);var a=e.i(8438);let l=(0,e.i(22468).g)("root-layout","sc");Object.freeze({layout:`${l}__layout`,body:`${l}__body`}),e.s(["getEnvValue",0,()=>{if(typeof window>"u")return{...t.default.env};let e=(0,a.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e}])},2753,21214,e=>{"use strict";e.s(["D",0,"finkit-dropdown","M",0,"finkit-modals","T",0,"finkit-tooltips"],2753);var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 7.22a.743.743 0 0 1 1.06 0L12 10.94l3.72-3.72a.743.743 0 0 1 1.06 0 .742.742 0 0 1 0 1.06L13.061 12l3.72 3.72a.743.743 0 0 1 0 1.06.743.743 0 0 1-1.061 0L12 13.06l-3.72 3.72a.743.743 0 0 1-1.06 0 .743.743 0 0 1 0-1.06L10.94 12 7.22 8.28a.743.743 0 0 1 0-1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}],21214)},3315,e=>{"use strict";var t=e.i(43476),a=e.i(7670),l=e.i(71645),s=e.i(2404),i=e.i(12569);function r(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),l.createElement("g",{clipPath:"url(#a)"},l.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm1.5 0a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Zm12.28-1.72-4.25 4.25a.722.722 0 0 1-.53.22.722.722 0 0 1-.53-.22l-2.25-2.25a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L11 12.94l3.72-3.72a.743.743 0 0 1 1.06 0 .743.743 0 0 1 0 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}function n(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.617 2.035a4.736 4.736 0 0 0-1.232 0c-1.28.167-2.263 1.01-3.216 2.25-.944 1.231-1.97 3.005-3.284 5.28l-.06.105c-1.316 2.277-2.342 4.053-2.937 5.487-.6 1.447-.838 2.72-.344 3.912.159.382.366.74.617 1.069.785 1.024 2.007 1.454 3.56 1.659 1.539.202 3.59.202 6.22.202h.12c2.63 0 4.681 0 6.22-.202 1.553-.204 2.775-.635 3.56-1.66a4.75 4.75 0 0 0 .617-1.068c.494-1.192.256-2.465-.344-3.912-.595-1.434-1.621-3.21-2.937-5.487l-.06-.105c-1.315-2.275-2.34-4.049-3.285-5.28-.952-1.24-1.935-2.083-3.215-2.25ZM11.58 3.522a3.23 3.23 0 0 1 .844 0c.678.089 1.343.535 2.22 1.677.877 1.143 1.854 2.83 3.205 5.169 1.352 2.34 2.328 4.031 2.88 5.364.552 1.331.606 2.13.344 2.762-.108.261-.25.507-.422.731-.415.543-1.135.897-2.564 1.085-1.43.188-3.382.189-6.085.189s-4.655-.001-6.085-.19c-1.43-.187-2.149-.54-2.564-1.084a3.249 3.249 0 0 1-.422-.73c-.262-.632-.208-1.432.344-2.763.552-1.333 1.528-3.023 2.88-5.364 1.351-2.338 2.328-4.026 3.205-5.17.877-1.141 1.543-1.587 2.22-1.676Zm1.173 5.227a.75.75 0 0 0-1.5 0v5.5a.75.75 0 1 0 1.5 0v-5.5Zm-1.75 8.253a1 1 0 1 1 2-.005 1 1 0 0 1-2 .005Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let o=(0,e.i(54061).g)("caption"),c=Object.freeze({caption:o,captionWithIcon:`${o}--with-icon`,content:`${o}__content`,icon:`${o}__icon`,text:`${o}__text`,size:{s:`${o}--s`,m:`${o}--m`},states:{success:`${o}--success`,error:`${o}--error`,warning:`${o}--warning`}});function d({as:e,children:l,state:o="default",size:u="m",text:p,withoutIcon:h=!1,lineClamp:m,role:f,dataQa:g,dataId:v,className:b,style:_,...x}){let y=p||l,$=!h&&["success","error","warning"].includes(o),w="success"===o?r:n,j=(0,a.default)(b,c.caption,c.size[u],{[c.captionWithIcon]:$,[c.states.success]:"success"===o,[c.states.error]:"error"===o,[c.states.warning]:"warning"===o});return(0,t.jsx)(e||"div",{className:j,style:_,role:f,...x,"data-id":v,"data-qa":g,children:(0,t.jsxs)("div",{className:c.content,children:[$&&y&&(0,t.jsx)(s.P,{className:c.icon,children:(0,t.jsx)(w,{})}),(0,t.jsx)("span",{className:(0,a.default)(c.text),style:{...m?{WebkitLineClamp:m,lineClamp:m,...i.l}:void 0},children:y})]})})}d.displayName="Caption",e.s(["C",0,d])},30083,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),t.createElement("g",{clipPath:"url(#a)"},t.createElement("path",{d:"m10.53 16.53 8.25-8.25a.743.743 0 0 0 0-1.06.743.743 0 0 0-1.06 0L10 14.94l-3.72-3.72a.743.743 0 0 0-1.06 0 .743.743 0 0 0 0 1.06l4.25 4.25c.146.147.323.22.53.22a.722.722 0 0 0 .53-.22Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))},"g",0,(e,t,a)=>{if(e)return"object"!=typeof e?a:"function"==typeof t?t(e):e[t]},"v",0,e=>{let{width:t,height:a}=e.getBoundingClientRect();return{x:{start:e.scrollLeft,end:Math.floor(e.scrollLeft+t)},y:{start:e.scrollTop,end:Math.floor(e.scrollTop+a)}}}])},10653,e=>{"use strict";e.s(["i",0,function(e){return void 0!==e}])},33329,e=>{"use strict";var t=e.i(43476),a=e.i(7670),l=e.i(71645),s=e.i(2404),i=e.i(54061);function r(e){return l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.836 6.466a1.5 1.5 0 0 1-.051 2.12l-9.45 9a1.5 1.5 0 0 1-2.07 0l-4.05-3.857a1.5 1.5 0 1 1 2.07-2.172L9.3 14.429l8.415-8.015a1.5 1.5 0 0 1 2.121.052Z"}))}function n(e){return l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}let o=["checkbox"],c=(0,i.g)("common-marker"),d={marker:c,icon:`${c}__icon`,states:{checkbox:`${c}--checkbox`,radio:`${c}--radio`,toggle:`${c}--toggle`,error:`${c}--error`,checked:`${c}--checked`,disabled:`${c}--disabled`,inverted:`${c}--inverted`,indeterminate:`${c}--indeterminate`}},u=({as:e,state:l="default",type:i="checkbox",className:c,checked:u,inverted:p,disabled:h,...m})=>(0,t.jsx)(e||"span",{...m,className:(0,a.default)(c,d.marker,{[d.states.checkbox]:"checkbox"===i,[d.states.radio]:"radio"===i,[d.states.toggle]:"toggle"===i,[d.states.checked]:!!u,[d.states.indeterminate]:"indeterminate"===u,[d.states.error]:"error"===l,[d.states.inverted]:p,[d.states.disabled]:h}),children:o.includes(i)&&(0,t.jsx)(s.P,{className:(0,a.default)(d.icon,{[d.states.checked]:u,[d.states.inverted]:p,[d.states.error]:"error"===l,[d.states.disabled]:h}),children:"indeterminate"===u?(0,t.jsx)(n,{}):(0,t.jsx)(r,{})})});u.displayName="CommonMarker",e.s(["C",0,u])},23179,e=>{"use strict";var t=e.i(43476),a=e.i(54061),l=e.i(71645),s=e.i(7670),i=e.i(43489),r=e.i(53760),n=e.i(58950),o=e.i(2753),c=e.i(89485),d=e.i(14044),u=e.i(21214),p=e.i(2404);function h(){return"u"<typeof window}let m=h()?l.useLayoutEffect:l.useEffect;function f(e,t=!1){return h()?t:window.matchMedia(e).matches}function g(e){let{minWidth:t}=c.a[e];return function(e,{defaultValue:t=!1,initializeWithValue:a=!0}={}){let[s,i]=(0,l.useState)(()=>a?f(e,t):t??!1);function r(){i(f(e))}return m(()=>{let t=window.matchMedia(e);return r(),"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},[e]),s}(`screen and (min-width: ${t}px)`)}let v=Object.freeze({divider:(0,a.g)("dropdown-divider")}),b=({...e})=>(0,t.jsx)("div",{...e,className:v.divider});b.displayName="DropdownDivider";let _=(0,a.g)("dropdown-group"),x=Object.freeze({group:_,title:`${_}__title`,content:`${_}__content`}),y=({title:e,children:a,...l})=>(0,t.jsxs)("div",{...l,className:x.group,children:[(0,t.jsx)("div",{className:x.title,children:e}),(0,t.jsx)("div",{className:x.content,children:a})]});y.displayName="DropdownGroup";let $=(0,a.g)("dropdown-option"),w=Object.freeze({option:$,slot:`${$}__slot`,iconSlot:`${$}__slot--icon`,wrapper:`${$}__wrapper`,label:`${$}__label`,caption:`${$}__caption`,states:{danger:`${$}--danger`,success:`${$}--success`,focused:`${$}--focused`,disabled:`${$}--disabled`}}),j=(0,l.createContext)(null),k=()=>{let e=(0,l.useContext)(j);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e};function N({placement:e="bottom",width:t="auto",desktopMaxHeight:a,mobileFullHeight:s=!1,title:o,description:c,opened:d,onToggle:u,heading:p,footer:h,dataQa:m,dataId:f}={}){let[g,v]=(0,l.useState)(!1),b=d??g,_=u??v,x=(0,i.useFloating)({open:b,onOpenChange:_,placement:e,whileElementsMounted:r.autoUpdate,middleware:[(0,n.offset)(8),(0,n.flip)({fallbackAxisSideDirection:"none"}),(0,n.shift)({crossAxis:!1,padding:8})]});return(0,l.useMemo)(()=>({open:b,setOpen:_,...x,width:t,desktopMaxHeight:a,title:o,description:c,heading:p,footer:h,mobileFullHeight:s,dataQa:m,dataId:f}),[b,_,x,t,a,o,c,p,h,s,m,f])}let C=({children:e,...a})=>{let l=N(a);return(0,t.jsx)(j.Provider,{value:l,children:e})};C.displayName="Dropdown";let L=(0,a.g)("dropdown"),E=Object.freeze({dropdown:L,overlay:`${L}__overlay`,mobileHeading:`${L}__mobile-heading`,heading:`${L}__heading`,title:`${L}__title`,description:`${L}__description`,content:`${L}__content`,contentInner:`${L}__content-inner`,footer:`${L}__footer`,close:`${L}__close`,closeIcon:`${L}__close-icon`,states:{auto:`${L}--auto`,fullHeight:`${L}--full-height`}}),T=({footer:e,...a})=>e?(0,t.jsx)("div",{...a,className:E.footer,children:e}):null;T.displayName="DropdownFooter";let I=({title:e,description:a,heading:s,isDesktop:i,setOpen:r,...n})=>{let o=(0,l.useMemo)(()=>s||(i&&(e||a)?(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)("div",{className:E.title,children:e}),a&&(0,t.jsx)("div",{className:E.description,children:a})]}):null),[a,s,i,e]);return(0,t.jsxs)(t.Fragment,{children:[!i&&(0,t.jsxs)("div",{...n,className:E.mobileHeading,children:[e&&(0,t.jsx)("div",{className:E.title,children:e}),a&&(0,t.jsx)("div",{className:E.description,children:a}),(0,t.jsx)("button",{className:E.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>r(!1),children:(0,t.jsx)(p.P,{"aria-hidden":"true",className:E.closeIcon,style:{display:"inline-flex"},children:(0,t.jsx)(u.S,{})})})]}),o&&(0,t.jsx)("div",{...n,className:E.heading,children:o})]})};I.displayName="DropdownHeader";let z=(0,l.forwardRef)(({style:e,contentInnerRef:a,...r},n)=>{var c,u;let{open:p,context:h,width:m,floatingStyles:f,refs:v,heading:b,title:_,description:x,footer:y,desktopMaxHeight:$,mobileFullHeight:w,dataQa:j,dataId:N,setOpen:C}=k(),L=(0,i.useMergeRefs)([v.setFloating,n]),z=(0,l.useRef)(null),A=g("s"),{isMounted:R,styles:S}=(0,i.useTransitionStyles)(h,{initial:{opacity:.2,transform:A?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,l.useEffect)(()=>{let e=({target:e})=>{!p||[z.current,v.reference.current].some(t=>t===e||t&&t.contains(e))||C(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,v.reference,C]),!R)return null;let B=(0,t.jsxs)("div",{ref:z,className:(0,s.default)(E.dropdown,{[E.states.fullHeight]:w}),role:A?"popup":"dialog","aria-modal":!A,"data-id":N,"data-qa":j,style:S,children:[(0,t.jsx)(I,{title:_,description:x,heading:b,isDesktop:A,setOpen:C,"data-qa":(0,d.g)(`${j}-header`,!!j)}),(0,t.jsx)("div",{...r,className:E.content,"data-qa":(0,d.g)(`${j}-content`,!!j),children:(0,t.jsx)("div",{className:E.contentInner,style:{maxHeight:A?$:void 0},ref:a,children:r.children})}),(0,t.jsx)(T,{"data-qa":(0,d.g)(`${j}-header`,!!j),footer:y})]});if(A){let a;return"inherit"===m?a=null==(u=null==(c=null==v?void 0:v.reference)?void 0:c.current)?void 0:u.clientWidth:"auto"===m?a=void 0:"number"==typeof m&&(a=m),(0,t.jsx)("div",{className:(0,s.default)(E.overlay,{[E.states.auto]:"auto"===m}),style:{...e,...f,...void 0!==a&&{width:a}},ref:L,children:B})}return(0,t.jsx)(i.FloatingPortal,{id:o.D,children:(0,t.jsx)(i.FloatingOverlay,{lockScroll:!0,className:(0,s.default)(E.overlay,{[E.states.auto]:"auto"===m}),style:e,ref:L,children:B})})});z.displayName="DropdownContent";let A=(0,l.forwardRef)(function({children:e,asChild:a=!1,disabled:s,...r},n){let{refs:o,open:c,setOpen:d}=k(),u=e.ref,p=(0,i.useMergeRefs)([o.setReference,n,u]),h=(0,l.useCallback)(()=>{s||d(!c)},[s,c,d]);return a&&(0,l.isValidElement)(e)?(0,l.cloneElement)(e,{ref:p,disabled:s,onClick:h,...r,...e.props}):(0,t.jsx)("button",{ref:p,onClick:h,disabled:s,...r,type:"button",children:e})});A.displayName="DropdownTrigger",e.s(["D",0,C,"a",0,z,"b",0,j,"c",0,b,"d",0,T,"e",0,y,"f",0,I,"g",0,function({as:e,label:a,caption:i,iconLeft:r,iconRight:n,prepend:o,append:c,variant:d="default",disabled:u=!1,focused:p=!1,className:h,onClick:m,...f}){let g=(0,s.default)(h,w.option,{[w.states.focused]:p,[w.states.success]:"success"===d,[w.states.danger]:"danger"===d,[w.states.disabled]:!!u}),v=(0,l.useCallback)(e=>{e.preventDefault(),u||null==m||m(e)},[u,m]);return(0,t.jsxs)(e||"div",{...f,className:g,"aria-disabled":u,onClick:v,children:[o&&(0,t.jsx)("span",{className:w.slot,children:o}),r&&(0,t.jsx)("span",{className:(0,s.default)(w.slot,w.iconSlot),children:r}),(0,t.jsxs)("div",{className:w.wrapper,children:[(0,t.jsx)("span",{className:w.label,children:a}),i&&(0,t.jsx)("span",{className:w.caption,children:i})]}),n&&(0,t.jsx)("span",{className:(0,s.default)(w.slot,w.iconSlot),children:n}),c&&(0,t.jsx)("span",{className:w.slot,children:c})]})},"h",0,A,"i",0,"div","j",0,k,"k",0,g,"u",0,N])},14087,e=>{"use strict";var t=e.i(43476),a=e.i(71645),l=e.i(7670),s=e.i(30083),i=e.i(2404),r=e.i(10653),n=e.i(33329),o=e.i(23179);function c(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"m19.03 10.28-6.5 6.5a.75.75 0 0 1-1.06 0l-6.5-6.5a.75.75 0 1 1 1.06-1.06L12 15.19l5.97-5.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let d=(0,e.i(54061).g)("select"),u={select:d,activator:`${d}__activator`,activatorWrapper:`${d}__activator-wrapper`,placeholder:`${d}__placeholder`,selected:`${d}__selected`,label:`${d}__label`,rightLabel:`${d}__right-label`,icon:`${d}__icon`,options:`${d}__options`,optionIcon:`${d}__option-icon`,caption:`${d}__caption`,states:{primary:`${d}--primary`,secondary:`${d}--secondary`,small:`${d}--s`,medium:`${d}--m`,large:`${d}--l`,opened:`${d}--opened`,error:`${d}--error`,success:`${d}--success`,selected:`${d}--selected`,disabled:`${d}--disabled`}};function p({value:e,label:d,options:h=[],optionValue:m="value",optionLabel:f="label",optionCaption:g="caption",optionDisabled:v="disabled",variant:b="primary",state:_,size:x="m",icon:y,rightLabel:$,clearable:w=!1,multiple:j=!1,disabled:k=!1,caption:N,placeholder:C,className:L,dataId:E,dataQa:T,isOpen:I=!1,classnameTrigger:z,selectedValue:A,onChange:R,onToggle:S,onSelect:B,onUnselect:P,onFocus:M,onBlur:O,...U}){let[D,W]=(0,a.useState)(!1),[F,H]=(0,a.useState)(),[V,Z]=(0,a.useState)(),[q,K]=(0,a.useState)(!1),G=(0,a.useRef)(null),X=(0,a.useId)(),J=(0,a.useId)(),Q=(0,a.useId)();(0,a.useEffect)(()=>{e?H(e):H(j?[]:void 0)},[j,e]);let Y=(0,a.useMemo)(()=>h.map((e,t)=>{let a=(0,s.g)(e,m,e),l=j&&Array.isArray(F)?F.map(e=>(0,s.g)(e,m,e)):(0,s.g)(F,m,F);return{index:t,value:a,label:(0,s.g)(e,f,e),caption:(0,s.g)(e,g),disabled:(0,s.g)(e,v,!1),selected:j?Array.isArray(l)&&l.includes(a):l===a,active:V===t,original:e,id:`${Q}-option-${t}`}}),[V,Q,F,j,g,v,f,m,h]),ee=(0,a.useMemo)(()=>Y.filter(e=>e.selected),[Y]),et=(0,a.useMemo)(()=>(0,r.i)(V)&&Y[V].id,[V]),ea=(0,a.useCallback)(e=>{H(e),null==R||R(e)},[R]),el=(0,a.useCallback)(()=>{if(G.current&&et){let{start:e,end:t}=(0,s.v)(G.current).y,a=document.getElementById(et);if(a){let l=a.offsetTop+a.clientHeight-t,s=e-a.offsetTop;l>0?G.current.scrollTop+=l+8:s>0&&(G.current.scrollTop-=s+8)}}},[et]),es=e=>{W(e),null==S||S(e)},ei=(0,a.useCallback)(e=>{if(!(0,r.i)(e))return 0;let t=0===e?Y.length-1:e-1;return Y[t].disabled?ei(t):t},[Y]),er=(0,a.useCallback)(e=>{if(!(0,r.i)(e))return 0;let t=e===Y.length-1?0:e+1;return Y[t].disabled?er(t):t},[Y]),en=(0,a.useCallback)(e=>{let t=e&&e.index!==Y.length-1?Y[e.index+1]:Y[0];return t.disabled?en(t):t},[Y]),eo=(0,a.useCallback)(e=>{let t=e&&0!==e.index?Y[e.index-1]:Y[Y.length-1];return t.disabled?eo(t):t},[Y]),ec=()=>{es(!0),Z(ee.length>0?ee[0].index:0)},ed=()=>{es(!1),Z(void 0)},eu=(0,a.useCallback)(e=>{if(!j){ea(w&&e.selected?void 0:e.original),ed();return}if(e.selected&&Array.isArray(F)){ea(F.filter(t=>(0,s.g)(t,m,t)!==e.value)),null==P||P(e.original);return}Array.isArray(F)&&(ea([...F,e.original]),null==B||B(e.original))},[w,ed,F,j,B,P,m,ea]),ep=(0,a.useCallback)(e=>{e.preventDefault(),D?ed():(w||j)&&(ee.forEach(e=>null==P?void 0:P(e.original)),ea(j?[]:void 0))},[w,ed,j,P,D,ee,ea]),eh=(0,a.useCallback)(()=>{D&&ed()},[ed,D]),em=(0,a.useCallback)(e=>{(e.preventDefault(),D)?Z(ei(V)):j||ea(eo(ee[0]).original)},[V,ei,eo,j,D,ee,ea]),ef=(0,a.useCallback)(e=>{(e.preventDefault(),D)?Z(er(V)):j?ec():ea(en(ee[0]).original)},[V,er,en,j,D,ec,ee,ea]),eg=(0,a.useCallback)(e=>{switch(K(!0),e.key){case"Escape":case"Esc":ep(e);break;case"Tab":eh();break;case"ArrowDown":ef(e);break;case"ArrowUp":em(e)}},[ef,em,ep,eh]),ev=(0,a.useCallback)(e=>{(e.preventDefault(),D)?((0,r.i)(V)&&eu(Y[V]),j||ed()):ec()},[V,ed,eu,Y,j,D,ec]),eb=(0,a.useCallback)(e=>{K(!0),(" "===e.key||"Enter"===e.key)&&ev(e)},[ev]);(0,a.useEffect)(()=>{I&&(()=>{es(!0);let{value:t,label:a}=(Array.isArray(e)?e[0]:e)??{},l=Y.find(e=>e.value===t&&e.label===a);Z((null==l?void 0:l.index)??0)})()},[I]),(0,a.useEffect)(()=>{D&&el()},[D,el]),(0,a.useEffect)(()=>{if(!D)return;let e=e=>{eg(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[eg,D]);let e_=(0,l.default)(z,u.activator,{[u.states.primary]:"primary"===b,[u.states.secondary]:"secondary"===b,[u.states.small]:"s"===x,[u.states.medium]:"m"===x,[u.states.large]:"l"===x,[u.states.error]:"error"===_,[u.states.success]:"success"===_,[u.states.opened]:D,[u.states.disabled]:k}),ex=(0,a.useMemo)(()=>ee.length>0?(0,t.jsxs)(t.Fragment,{children:["s"!==x&&(0,t.jsx)("div",{id:J,className:(0,l.default)(u.label,{[u.states.error]:"error"===_,[u.states.success]:"success"===_,[u.states.opened]:D,[u.states.disabled]:k}),children:d},"label"),(0,t.jsx)("div",{className:(0,l.default)(u.selected,{[u.states.disabled]:k}),children:(null==A?void 0:A(ee.map(e=>e.original)))||ee.map(({label:e})=>e).join(", ")})]}):(0,t.jsx)("div",{id:J,className:(0,l.default)(u.placeholder,{[u.states.error]:"error"===_,[u.states.success]:"success"===_,[u.states.opened]:D,[u.states.disabled]:k}),children:C||d},"placeholder"),[k,d,J,D,C,ee,A,x,_]);return(0,t.jsx)("div",{className:(0,l.default)(L,u.select),children:(0,t.jsxs)(o.D,{opened:D,onToggle:()=>{D?ed():ec()},width:"inherit",placement:"bottom",children:[(0,t.jsx)(o.h,{asChild:!0,disabled:k,children:(0,t.jsxs)("div",{className:e_,id:X,tabIndex:k?-1:0,role:"combobox","aria-haspopup":"listbox","aria-labelledby":J,"aria-controls":Q,"aria-disabled":k,"aria-expanded":D,...!k&&{onFocus:e=>{null==M||M(e)},onBlur:e=>{null==O||O(e)},onKeyDownCapture:eb,onKeyDown:D?void 0:eg},...U,"data-id":E,"data-qa":T,children:[(0,t.jsx)("div",{className:u.activatorWrapper,children:ex}),$&&(0,t.jsx)("div",{"aria-label":$,className:(0,l.default)(u.rightLabel,{[u.states.disabled]:k}),children:$}),y&&(0,t.jsx)("div",{"aria-hidden":"true",className:(0,l.default)(u.icon,{[u.states.disabled]:k}),children:y}),(0,t.jsx)("div",{className:(0,l.default)(u.icon,{[u.states.disabled]:k,[u.states.opened]:D}),children:(0,t.jsx)(i.P,{style:{fontSize:24},"aria-expanded":D,children:(0,t.jsx)(c,{})})})]})}),N&&(0,t.jsx)("div",{className:(0,l.default)(u.caption,{[u.states.error]:"error"===_,[u.states.success]:"success"===_,[u.states.secondary]:"secondary"===b,[u.states.disabled]:k}),children:N}),(0,t.jsx)(o.a,{contentInnerRef:G,children:(0,t.jsx)("ul",{role:"listbox",id:Q,className:u.options,onMouseOver:()=>{q&&K(!1)},children:Y.map(e=>(0,t.jsx)(o.g,{as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active&&q,onClick:()=>eu(e),prepend:j?(0,t.jsx)(n.C,{type:"checkbox",checked:e.selected,disabled:e.disabled}):void 0,append:j?void 0:(0,t.jsx)(i.P,{className:(0,l.default)(u.optionIcon,{[u.states.selected]:e.selected}),style:{fontSize:24},children:(0,t.jsx)(s.S,{})}),"aria-selected":e.selected,role:"option",id:e.id},JSON.stringify(e.value)))})})]})})}p.displayName="Select",e.s(["Select",0,p])},62798,e=>{"use strict";e.i(91402),e.s(["pluralize",0,(e,t,a,l)=>{let s=[t,a,l];return s[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||s[0]}])},91390,e=>{"use strict";var t=e.i(43476),a=e.i(71645),l=e.i(43489),s=e.i(7670),i=e.i(3315);e.i(89485);var r=e.i(14044),n=e.i(54061);let o=(...e)=>(...t)=>{e.forEach(e=>{null==e||e(...t)})},c=(0,n.g)("input-base"),d={wrapper:c,input:`${c}__input`,container:`${c}__container`,label:`${c}__label`,field:`${c}__field`,slotLeft:`${c}__slot-left`,rightLabel:`${c}__right-label`,caption:`${c}__caption`,placeholder:{visible:`${c}__placeholder`,hidden:`${c}__hidden`},states:{primary:`${c}--primary`,secondary:`${c}--secondary`,error:`${c}--error`,success:`${c}--success`,s:`${c}--s`,m:`${c}--m`,l:`${c}--l`,focused:`${c}--focused`,disabled:`${c}--disabled`,active:`${c}--active`,hasLabel:`${c}--has-label`,accent:`${c}--accent`}},u=(0,a.forwardRef)(({icon:e,rightLabel:n,slotLeft:c,disabled:u,state:p,size:h="m",variant:m="primary",label:f,value:g,placeholder:v,maskPlaceholder:b,autoFocus:_=!1,maskPlaceholderVariant:x="default",caption:y,type:$="text",inputMode:w="text",hasCaption:j,className:k,style:N,dataQa:C,dataId:L,inputRef:E,onChange:T,onFocus:I,onBlur:z,onKeyDown:A,...R},S)=>{let B=(0,a.useId)(),{value:P,show:M,hide:O}=((e=!1)=>{let[t,l]=(0,a.useState)(e),s=(0,a.useCallback)(()=>l(!0),[]);return{value:t,show:s,hide:(0,a.useCallback)(()=>l(!1),[]),toggle:(0,a.useCallback)(()=>l(e=>!e),[])}})(),U=(0,a.useRef)(null),D=(0,l.useMergeRefs)([E,U]),W=(0,a.useMemo)(()=>P||!!g||!!v,[g,P,v]),F=(0,a.useCallback)(()=>{var e;null==(e=U.current)||e.focus()},[]),H=(0,a.useMemo)(()=>{if(!b)return null;let e={hidden:g??"",visible:b.substring((null==g?void 0:g.length)??0)};return b.length===(null==g?void 0:g.length)?null:e},[b,g]);return(0,a.useEffect)(()=>{var e,t,a;if(!_)return;let l=(null==(e=U.current)?void 0:e.value.length)??0;null==(t=U.current)||t.focus(),null==(a=U.current)||a.setSelectionRange(l,l)},[_]),(0,t.jsxs)("div",{className:(0,s.default)(k,d.wrapper),style:N,"data-qa":C,"data-id":L,children:[(0,t.jsxs)("div",{className:(0,s.default)(d.input,d.states[m],d.states[h],{[d.states.focused]:P,[d.states.error]:"error"===p,[d.states.success]:"success"===p,[d.states.disabled]:!!u,[d.states.hasLabel]:f}),onClick:F,ref:S,children:[c&&(0,t.jsx)("div",{className:d.slotLeft,children:c}),(0,t.jsxs)("label",{htmlFor:B,className:d.container,children:[f&&(0,t.jsx)("span",{className:(0,s.default)(d.label,{[d.states.active]:W,[d.states.s]:"s"===h,[d.states.disabled]:u,[d.states.error]:"error"===p,[d.states.success]:"success"===p}),children:f}),H&&!!g&&(0,t.jsxs)("div",{className:(0,s.default)(d.placeholder.visible,{[d.states.accent]:"accent"===x}),children:[H.hidden&&(0,t.jsx)("span",{className:d.placeholder.hidden,children:H.hidden}),H.visible]}),(0,t.jsx)("input",{...R,id:B,ref:D,className:(0,s.default)(d.field,{[d.states.s]:"s"===h,[d.states.hasLabel]:f,[d.states.disabled]:u}),type:$,inputMode:w,autoComplete:"off",placeholder:v,value:g,disabled:u,onChange:e=>{null==T||T(e.target.value,e)},onFocus:o(M,I),onBlur:o(O,z),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==T||T("",{target:{value:""}})),null==A||A(e)}})]}),n&&(0,t.jsx)("div",{className:(0,s.default)(d.rightLabel,{[d.states.disabled]:u}),children:n}),e]}),(j||y)&&(0,t.jsx)(i.C,{dataQa:(0,r.g)(`${C}-caption`,!!C),className:(0,s.default)(d.caption,{[d.states.disabled]:u}),state:p,withoutIcon:!0,children:y})]})});u.displayName="InputBase",e.s(["I",0,u],91390)},80453,e=>{"use strict";let t=/[()\s\u007F-\uFFFF]/,a={"(":"%28",")":"%29"," ":"%20"};function l(e,l,s){if(!e)return"";if(e.startsWith("http")){if(!t.test(e))return e;let l=e.replace(/[()\s]/g,e=>a[e]??encodeURIComponent(e));try{return new URL(l).toString()}catch{return l}}return`${s}/img/posts/${l}/${e}`}e.s(["getImageUrl",0,l,"getImageVariantUrl",0,function(e,t,a){let s=e?.[t];return s?l(s,"original",""):a}])},84078,3241,e=>{"use strict";e.s(["generateBreadcrumbsJsonLd",0,e=>e?.length?JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map(({href:e,label:t},a)=>({"@type":"ListItem",position:a+1,name:t,...e&&{item:{"@id":e}}}))}):""],84078);var t=e.i(67638);let a=(e,t)=>{if(!t)return;let a=t.replace(/^\//,"");return a?`${e}/${a}`:e};e.s(["generateBredcrumbsPath",0,(e={})=>{let l=(0,t.getEnvValue)(),{includeBase:s=!0,baseLabel:i,tag:r,current:n}=e,o=[];return s&&o.push({href:a(l.NEXT_PUBLIC_BASE_URL,"/"),label:"Главная"},{href:r||n?a(l.NEXT_PUBLIC_BASE_URL,"/navigator"):void 0,label:i||"Журнал Финуслуги"}),r&&o.push({href:a(l.NEXT_PUBLIC_BASE_URL,r.href),label:r.label}),n&&o.push({href:a(l.NEXT_PUBLIC_BASE_URL,n.href),label:n.label}),o}],3241)},44323,e=>{"use strict";var t=e.i(43476),a=e.i(71645),l=e.i(43489),s=e.i(53760),i=e.i(58950),r=e.i(7670),n=e.i(2753),o=e.i(14044);let c=(0,e.i(54061).g)("tooltip"),d=Object.freeze({tooltip:c,text:`${c}__text`,wrapper:`${c}__wrapper`,inverted:`${c}--inverted`}),u=({children:e,moveToBody:a})=>a?(0,t.jsx)(l.FloatingPortal,{id:n.T,children:e}):(0,t.jsx)(t.Fragment,{children:e}),p=(0,a.forwardRef)(({position:e="top",text:n,zIndex:c=1,inverted:p,withoutTail:h,children:m,boundingOffset:f=12,boundaryPadding:g,moveToBody:v=!1,hideWhenOutOfBounds:b=!1,style:_,className:x,dataQa:y,dataId:$,...w},j)=>{let[k,N]=(0,a.useState)(!1),C=(0,a.useRef)(null),{refs:L,floatingStyles:E,context:T,middlewareData:I}=(0,l.useFloating)({open:k,onOpenChange:N,placement:e,whileElementsMounted:s.autoUpdate,middleware:[(0,i.offset)({mainAxis:f}),(0,i.flip)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==g&&{padding:g}}),(0,i.shift)({...void 0!==g&&{padding:g}}),(0,i.arrow)({element:C,padding:8}),...b?[(0,i.hide)({strategy:"escaped",padding:-24})]:[]]}),z=(0,l.useHover)(T,{delay:300}),{getReferenceProps:A,getFloatingProps:R}=(0,l.useInteractions)([z]),S=(0,l.useTransitionStyles)(T,{duration:300});return(0,a.useImperativeHandle)(j,()=>({getActivatorElement:L.reference,getTooltipElement:L.floating})),(0,a.useEffect)(()=>{var e;(null==(e=I.hide)?void 0:e.escaped)&&N(!1)},[I.hide]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-qa":(0,o.g)(`${y}-activator`,!!y),ref:L.setReference,...A,className:d.wrapper,children:m}),S.isMounted&&(0,t.jsx)(u,{moveToBody:v,children:(0,t.jsxs)("div",{role:"tooltip",ref:L.setFloating,style:{...E,...S.styles,..._,zIndex:c},className:(0,r.default)(d.tooltip,x,{[d.inverted]:p}),...R,...w,"data-qa":y,"data-id":$,children:[(0,t.jsx)("span",{className:(0,r.default)(d.text,{[d.inverted]:p}),children:n}),!h&&(0,t.jsx)(l.FloatingArrow,{ref:C,context:T,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:p?"var(--color-white)":"var(--color-black-500)"})]})})]})});p.displayName="Tooltip",e.s(["Tooltip",0,p],44323)},45756,e=>{"use strict";var t=e.i(71645);let a={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},l={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},s=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm8.872-4.977C13.657 7.18 15 8.15 15 9.761c0 .698-.179 1.238-.504 1.665-.307.401-.704.644-.98.812-.313.191-.477.293-.595.43-.083.096-.17.246-.17.584a.75.75 0 01-1.5 0c0-.66.193-1.164.531-1.558.28-.326.64-.544.89-.695l.062-.037c.287-.175.452-.29.568-.442.096-.126.198-.335.198-.759 0-.633-.532-1.158-1.309-1.252-.716-.087-1.454.236-1.717 1.2a.75.75 0 01-1.447-.394c.486-1.78 1.998-2.454 3.345-2.292zM11.999 15a1 1 0 10.002 2 1 1 0 00-.002-2z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function i({className:e,style:r,boxSize:n,size:o,onClick:c}){return t.default.createElement("span",{className:e,style:{...a,...c&&{cursor:"pointer"},...o&&{fontSize:`${o}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...r},...c?{role:"button",tabIndex:"0",onClick:c}:{}},t.default.createElement(s,{viewBox:"0 0 24 24",style:l}))}i.displayName="IconFdsQuestionCircleO",e.s(["k",0,i])},11864,e=>{"use strict";var t=e.i(43476),a=e.i(71645);e.i(21496);var l=e.i(62383),s=e.i(91390);let i=(0,a.forwardRef)(({maskOpts:e,value:i="",autoFocus:r=!1,onChange:n,onKeyDown:o,...c},d)=>{let[u,p]=(0,a.useState)(""),{ref:h,setValue:m,unmaskedValue:f}=(0,l.useIMask)(e,{onAccept:(e,t)=>{p(e),null==n||n(t.unmaskedValue,e)}});return(0,a.useEffect)(()=>{i!==f&&(m(i),p(i))},[i,m,f]),(0,a.useImperativeHandle)(d,()=>h.current),(0,t.jsx)(s.I,{...c,autoFocus:r,inputRef:h,value:u,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),m(""),p(""),null==n||n("","")),null==o||o(e)}})});i.displayName="InputMasked",e.s(["InputMasked",0,i])},8810,e=>{"use strict";let t;var a=e.i(43476),l=e.i(71645),s=e.i(60822);e.i(71666);var i=e.i(71469);e.i(8145);var r=e.i(13757),n=e.i(7670);let o=["credits","microCredits","autoCredits","cards"],c=(e,t)=>{if(typeof window>"u")return;let{pathname:a}=window.location;if("/"!==a&&"/home"!==a&&"/home/"!==a)return;let l=t=>{try{e({event:"data-event",eventCategory:t,eventAction:"click_button",eventLabel:"undefined",eventNameCard:"undefined",eventUrl:"undefined",eventValue:"undefined"})}catch{return}};"deposits"===t?l("ab_homepage_tolko_vklad"):(t&&o.includes(t)&&l("ab_homepage_tolko_kredit"),l("ab_homepage_krome_vkladov"))};var d=e.i(93562);e.i(46401);var u=e.i(34986),p=e.i(22468);let h=(0,p.g)("check-all","sc"),m=Object.freeze({wrapper:`${h}__wrapper`,link:`${h}__link`,icon:`${h}__icon`,iconGray:`${h}__icon--gray`}),f=({children:e,className:t,linkClassName:l,iconGrayBackground:s,Link:i,event:r,href:o,dataLayerPush:c,onClick:p})=>{let h=i??u.Link;return(0,a.jsx)("div",{className:(0,n.default)(m.wrapper,t),onClick:()=>{r&&c(r)},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(null==p||p())},children:(0,a.jsxs)(h,{className:(0,n.default)(m.link,l),href:o,children:[e,(0,a.jsx)("span",{className:(0,n.default)(m.icon,{[m.iconGray]:s}),children:(0,a.jsx)(d.K,{size:24})})]})})};var g=e.i(97052),v=e.i(57687);e.i(34348);var b=e.i(47611),_=e.i(56239),x=e.i(45756),y=e.i(44323);let $=(0,e.i(54061).g)("tag"),w=Object.freeze({tag:$,label:`${$}__label`,icon:`${$}__icon`,rounded:`${$}--rounded`,variant:{primary:`${$}--primary`,secondary:`${$}--secondary`,outline:`${$}--outline`,tertiary:`${$}--tertiary`,pink:`${$}--pink`,red:`${$}--red`,green:`${$}--green`,blue:`${$}--blue`,orange:`${$}--orange`,purple:`${$}--purple`,violet:`${$}--violet`,blur:`${$}--blur`},size:{s:`${$}--s`,m:`${$}--m`,l:`${$}--l`},iconMargin:{left:`${$}__icon--left`,right:`${$}__icon--right`}}),j=(0,l.forwardRef)(({label:e,size:t="m",rounded:l,variant:s="primary",iconLeft:i,iconRight:r,onIconLeftClick:o,onIconRightClick:c,className:d,style:u,dataQa:p,dataId:h,...m},f)=>(0,a.jsx)(a.Fragment,{children:e&&(0,a.jsxs)("div",{ref:f,className:(0,n.default)(w.tag,w.variant[s],w.size[t],{[w.rounded]:l},d),style:u,...m,"data-id":h,"data-qa":p,children:[i&&(0,a.jsx)("button",{type:"button",className:(0,n.default)(w.icon,w.iconMargin.left,{[w.size.l]:"l"===t}),onClick:e=>null==o?void 0:o(e),disabled:!o,children:i}),(0,a.jsx)("span",{className:(0,n.default)(w.label,w.size[t]),children:e}),r&&(0,a.jsx)("button",{type:"button",className:(0,n.default)(w.icon,w.iconMargin.right,{[w.size.l]:"l"===t}),onClick:e=>null==c?void 0:c(e),disabled:!c,children:r})]})}));j.displayName="Tag";var k=e.i(11864),N=e.i(14087),C=e.i(85900),L=((t=L||{}).light="light",t.gray="gray",t);let E=(0,p.g)("best-offers-banner","sc"),T=Object.freeze({bestOffersBaner:E,wrapper:`${E}__wrapper`,wideWrapper:`${E}__wrapper--wide`,whiteWrapper:`${E}__wrapper--white`,content:`${E}__content`,header:`${E}__header`,title:`${E}__title`,subtitle:`${E}__subtitle`,icon:`${E}__icon`,iconBlack:`${E}__icon--black`,iconWhite:`${E}__icon--white`,image:`${E}__image`}),I=({title:e,image:t,url:l,description:s,backgroundColor:i,textColor:o,wide:c,theme:u,handleBannerDataLayerPush:p,className:h})=>{let m=u===L.gray,f={"--bg-base":(null==i?void 0:i.base)??(m?"var(--color-white)":"var(--color-gray-400)"),"--bg-hover":(null==i?void 0:i.hover)??"var(--color-gray-500)"};return(0,a.jsxs)("div",{className:(0,n.default)(T.wrapper,h,{[T.wideWrapper]:c}),style:f,onClick:()=>{p(),window.open(l,"_blank")},children:[(0,a.jsxs)("div",{className:T.content,children:[(0,a.jsxs)("div",{className:T.header,children:[(0,a.jsx)(r.Text,{weight:"medium",size:"24",className:T.title,style:{color:o},children:e}),(0,a.jsx)("div",{className:(0,n.default)(T.icon,{[T.iconBlack]:m&&!(null!=o&&o.includes("color-white")),[T.iconWhite]:m&&!!(null!=o&&o.includes("color-white"))}),children:(0,a.jsx)(d.K,{size:32})})]}),s&&(0,a.jsx)(r.Text,{size:"16",style:{color:o},children:s})]}),(null==t?void 0:t.url)&&(0,a.jsx)("picture",{className:T.image,children:(0,a.jsx)("img",{src:t.url,width:t.width??150,height:t.height??"auto",alt:`Баннер ${e}`,loading:"lazy"})})]})},z=(0,p.g)("offer-card","sc"),A=Object.freeze({offerCard:z,wrapper:`${z}__wrapper`,whiteWrapper:`${z}__wrapper--white`,bankInfo:`${z}__bankInfo`,units:`${z}__units`,unitsColumn:`${z}__units--column`,unit:`${z}__unit`,unitRow:`${z}__unit--row`,unitTitleWrapper:`${z}__unitTitleWrapper`,unitTitle:`${z}__unitTitle`,tooltipIcon:`${z}__tooltipIcon`,unitValue:`${z}__unitValue`,bottomBlock:`${z}__bottomBlock`,tags:`${z}__tags`,tag:`${z}__tag`,button:`${z}__button`,buttonRounded:`${z}__button--rounded`,buttonAdditional:`${z}__button--additional`}),R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},S={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},B=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.328 2.869a1.444 1.444 0 00-2.65 0A694.174 694.174 0 008.47 7.85a648.96 648.96 0 00-5.196.656c-1.266.165-1.673 1.722-.823 2.553a641.289 641.289 0 003.856 3.748A704.06 704.06 0 005.29 20.22c-.214 1.16.995 2.24 2.15 1.572a650.04 650.04 0 004.562-2.66c1.504.887 3.346 1.956 4.564 2.66 1.154.667 2.363-.411 2.15-1.572a702.887 702.887 0 00-1.017-5.412 664.068 664.068 0 003.856-3.748c.85-.832.443-2.389-.824-2.553-1.383-.18-3.479-.45-5.195-.657a696.41 696.41 0 00-2.208-4.982z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function P({className:e,style:t,boxSize:a,size:s,onClick:i}){return l.default.createElement("span",{className:e,style:{...R,...i&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},l.default.createElement(B,{viewBox:"0 0 24 24",style:S}))}P.displayName="IconFdsStarF";let M=({title:e,value:t,tooltip:s,textColor:i,unitsAsColumn:o,isTitleUnit:c})=>{let d;return(0,a.jsxs)("div",{className:(0,n.default)(A.unit,{[A.unitRow]:o}),children:[(0,a.jsxs)("div",{className:A.unitTitleWrapper,children:[(0,a.jsx)(r.Text,{size:"14",className:A.unitTitle,children:e}),s&&(0,a.jsx)(y.Tooltip,{text:s,children:(0,a.jsx)(x.k,{className:A.tooltipIcon})})]}),(0,a.jsx)(r.Text,{weight:"medium",size:c?"18":o?"16":"24",className:A.unitValue,style:{color:i},children:e.includes("Рейтинг")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{size:16,style:{color:"var(--color-orange-400)"}}),t]}):(d=t.split("₽")).map((e,t)=>(0,a.jsxs)(l.Fragment,{children:[e,t<d.length-1&&(0,a.jsx)(r.Text,{weight:"regular",children:"₽"})]},`${e}-${t}`))})]})},O=({tags:e,isGrayTheme:t})=>{let l=t?"secondary":"primary";return(0,a.jsx)("div",{className:A.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,a.jsx)(j,{className:A.tag,label:e.label,variant:e.variant?e.variant:l,rounded:!0},e.label))})},U=({companyName:e,name:t,url:l,logo:s,units:i,tags:r,additionalButton:o,unitsAsColumn:d,dataLayerPush:u,eventCategory:p,productType:h,theme:m,buttonClassName:f,eventValueByUnitTitle:g})=>{let v=m===L.gray,x=a=>{c(u,h);let l={event:"data-event",eventCategory:p,eventAction:`click_button_${(0,_.t)(a)}_${h}`,eventLabel:(0,_.t)(`${e}_${t}`)};if(g){let e=i.find(e=>e.title.toLowerCase()===g.toLowerCase());e&&(l.eventValue=(0,_.t)(e.value))}u(l)};return(0,a.jsxs)("div",{className:(0,n.default)(A.wrapper,{[A.whiteWrapper]:v}),children:[(0,a.jsxs)("div",{className:A.bankInfo,children:[s&&(0,a.jsx)("img",{src:s,width:56,height:56,alt:`${e} logo`,loading:"lazy"}),(0,a.jsx)(M,{title:t,value:e,isTitleUnit:!0})]}),(0,a.jsx)("div",{className:(0,n.default)(A.units,{[A.unitsColumn]:d}),children:i.map(e=>(0,a.jsx)(M,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:d},`${e.title}-${e.value}`))}),(0,a.jsxs)("div",{className:A.bottomBlock,children:[r&&(0,a.jsx)(O,{tags:r,isGrayTheme:v}),o&&o.text.trim().length>0&&(0,a.jsx)(b.Button,{as:"a",className:(0,n.default)(A.button,A.buttonRounded,A.buttonAdditional),size:"xs",label:o.text,href:null==o?void 0:o.url,variant:v?"secondary":"white",onClick:()=>x(o.text)}),(0,a.jsx)(b.Button,{as:"a",className:(0,n.default)(A.button,f),size:"xs",label:"Подробнее",href:l,onClick:()=>x("podrobnee_o_kartochke_iz")})]})]})},D=(0,p.g)("offers-list","sc"),W=Object.freeze({offersList:D,wrapper:`${D}__wrapper`,sliderWrapper:`${D}__sliderWrapper`,offerItem:`${D}__offerItem`,compact:`${D}__offerItem--compact`,bannerItem:`${D}__bannerItem`}),F=({offers:e,banner:t,dataLayerPush:l,eventCategory:s,productType:i,theme:r,singleProduct:o})=>{let d=e.length<=2;return(0,a.jsxs)(v.Slider,{options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3e3,disableOnInteraction:!1}},breakpoints:{xl:{autoplay:!1}},className:W.sliderWrapper,pagination:!0,children:[e.slice(0,3).map(e=>(0,a.jsx)(v.SliderItem,{className:(0,n.default)(W.offerItem,{[W.compact]:o}),children:(0,a.jsx)(U,{...e,dataLayerPush:l,eventCategory:s,productType:i,theme:r})},e.id)),t&&(0,a.jsx)(v.SliderItem,{className:W.bannerItem,children:(0,a.jsx)(I,{...t,handleBannerDataLayerPush:()=>{c(l,i),l({event:"data-event",eventCategory:s,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:i})},wide:d,theme:r})})]},i)},H=(0,p.g)("osago-tab","sc"),V=Object.freeze({osagoTab:H,wrapper:`${H}__wrapper`,card:`${H}__card`,whiteCard:`${H}__card--white`,image:`${H}__image`,content:`${H}__content`,inputWrapper:`${H}__inputWrapper`,select:`${H}__select`,input:`${H}__input`,buttonLinkWrapper:`${H}__buttonLinkWrapper`,button:`${H}__button`,banner:`${H}__banner`}),Z={kasko:{title:"Рассчет Каско за минуту",description:"Выберите лучшие условия для оформления полиса",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}},osago:{title:"ОСАГО с экономией до 78%",description:"Предварительная цена после ввода номера ТС",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}}},q=[{label:"Мотоцикл",value:"moto"},{label:"Автомобиль",value:"auto"}],K=Object.fromEntries(q.map(e=>[e.value,e])),G={auto:{mask:"a 000 aa 00",placeholder:"A 000 AA 00"},moto:{mask:"0000 aa 00",placeholder:"0000 AA 00"}},X="АВЕКМНОРСТУХ",J=RegExp(`[${X}]`,"i"),Q=RegExp(`[^0-9${X}]`,"gi"),Y=({type:e,baseUrl:t,s3Assets:s,banner:o,dataLayerPush:d,eventCategory:p,theme:h})=>{let m="osago"===e,f=(0,C.joinURL)(t,"osago"),g=(0,C.joinURL)(f,"step-car"),v=(0,C.joinURL)(t,"kasko"),x=(0,C.joinURL)(v,"vehicle"),y=m?g:x,[$,w]=(0,l.useState)(""),[j,E]=(0,l.useState)("auto"),{mask:T,placeholder:z}=G[j],A=h===L.gray,R=`?${new URLSearchParams({type:m?j:"auto",license:$})}`,S=(0,C.joinURL)(y,R),B=o??{...Z[e],url:m?f:v,image:s?{url:(0,C.joinURL)(s,`widgets/BestOffers/${m?"icon_osago":"icons_car"}.png`),width:204,height:160}:void 0},P=K[j].label,M=(t,a)=>{d({event:"data-event",eventCategory:p,eventAction:t,eventLabel:a??e})};return(0,a.jsxs)("div",{className:V.wrapper,children:[(0,a.jsxs)("div",{className:(0,n.default)(V.card,{[V.whiteCard]:A}),children:[s&&(0,a.jsx)("picture",{children:(0,a.jsx)("img",{src:`${s}/widgets/BestOffers/auto_bg.png`,alt:"Автомобиль",loading:"lazy",className:V.image})}),(0,a.jsxs)("div",{className:V.content,children:[(0,a.jsxs)(i.Heading,{as:"h3",type:"h3",children:["Онлайн калькулятор ",m?"ОСАГО":"Каско"]}),(0,a.jsxs)("div",{className:V.inputWrapper,children:[m&&(0,a.jsx)(N.Select,{options:q,value:K[j],label:"Тип транспорта",variant:A?"primary":"secondary",className:V.select,onChange:e=>{w(""),E(e.value),M(`selector_item_${(0,_.t)(e.label)}`)}}),(0,a.jsx)(k.InputMasked,{label:"Госномер",variant:A?"primary":"secondary",maskOpts:{mask:T,definitions:{a:J}},maskPlaceholder:z,value:$,className:V.input,onChange:(e,t)=>{w(t.replace(Q,"").toUpperCase())},onClick:()=>M(`message_field_${(0,_.t)(P)}`),onBlur:()=>M(`on_message_field_${(0,_.t)(P)}`)}),(0,a.jsxs)(r.Text,{children:["У меня"," ",(0,a.jsx)(u.Link,{href:y,onClick:()=>{c(d),M("click_link_net_nomera",y)},children:"нет номера"})]})]}),(0,a.jsx)(b.Button,{as:"a",href:S,size:"s",className:V.button,onClick:()=>{c(d),M(`click_button_rasschitat_${(0,_.t)(P)}`,S)},children:"Рассчитать"})]})]}),(0,a.jsx)("div",{className:V.banner,children:(0,a.jsx)(I,{...B,theme:h,handleBannerDataLayerPush:()=>{c(d),M("click_bnr_banner_top_predlozheniy")}})})]})},ee=(0,p.g)("best-offers","sc"),et=Object.freeze({bestOffers:ee,graySection:`${ee}--gray`,singleProduct:`${ee}--singleProduct`,titleWrapper:`${ee}__title-wrapper`,singleProductTitleWrapper:`${ee}__title-wrapper--singleProduct`,title:`${ee}__title`,singleProductTitle:`${ee}__title--singleProduct`,chips:`${ee}__chips`,warning:`${ee}__warning`,allOffersLink:`${ee}__allOffersLink`}),ea={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам",фонды:"фондам"};e.s(["BestOffers",0,({tabs:e,baseUrl:t,s3Assets:o,eventCategory:d="best-offers",dataLayerPush:u,singleProduct:p=!1,theme:h=L.light,className:m,tagTitle:v="h2",initialActiveChipId:b})=>{var _;let x,y=h===L.gray,$=Array.isArray(e)?e.filter(({banner:e,offers:t,productType:a})=>!!e||!!(null!=t&&t.length)||"osago"===a||"kasko"===a).map(e=>({...e,offers:Array.isArray(e.offers)?e.offers:[]})):[],w=$.map(e=>({url:e.productType,title:e.name})),j=(null==(_=w[0])?void 0:_.url)??"",[k,N]=(0,l.useState)(b??j),C=k&&$.some(e=>e.productType===k)?k:j,E=$.find(e=>e.productType===C)??$[0];if(!E)return null;let T=ea[E.name.toLowerCase()],I=T?`по ${T}`:E.name,z=("kasko"===(x=null==E?void 0:E.productType)||"osago"===x)&&t?(0,a.jsx)(Y,{type:E.productType,banner:E.banner,baseUrl:t,s3Assets:o,dataLayerPush:u,eventCategory:d,theme:h}):null;return(0,a.jsx)("section",{className:(0,n.default)(et.bestOffers,m,{[et.singleProduct]:p,[et.graySection]:y}),children:(0,a.jsxs)(s.Container,{children:[(0,a.jsx)("div",{className:(0,n.default)(et.titleWrapper,p&&et.singleProductTitleWrapper),children:(0,a.jsxs)(i.Heading,{as:v,role:void 0,"aria-level":void 0,type:p?"h2":"display",className:(0,n.default)(et.title,p&&et.singleProductTitle),children:["Лучшие предложения ",p?I:"сегодня"]})}),!p&&(0,a.jsx)(g.N,{items:w,maxNumberOfLines:2,activeChipId:C,variant:y?"white":"gray",className:et.chips,onClick:e=>{c(u,e),N(e);let t=$.find(t=>t.productType===e);u({event:"data-event",eventCategory:d,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==t?void 0:t.productType})}}),(0,a.jsxs)("div",{children:[z??(0,a.jsx)(F,{offers:E.offers,banner:E.banner,dataLayerPush:u,eventCategory:d,productType:E.productType,theme:h,singleProduct:p}),E.hasWarning&&(0,a.jsx)(r.Text,{as:"p",size:"16",className:et.warning,children:E.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),E.checkAllUrl&&(0,a.jsx)(f,{href:E.checkAllUrl,onClick:()=>c(u,E.productType),event:{event:"data-event",eventCategory:d,eventAction:"link",eventLabel:`Показать все предложения ${E.productType}`},dataLayerPush:u,iconGrayBackground:!y,className:et.allOffersLink,linkClassName:E.checkAllLinkClassName,children:"Показать все предложения"})]})})}],8810)}]);