(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39028,e=>{"use strict";var t=e.i(43476);e.i(51966);var s=e.i(74006),a=e.i(53900),i=e.i(7670),l=e.i(62965),r=e.i(12716),n=e.i(28133),o=e.i(22468),d=e.i(71645);let u=(0,o.g)("support","sc"),c=Object.freeze({support:u,title:`${u}__title`,cardsContainer:`${u}__cards-container`}),m="cb-support",_=(0,o.g)("support-app-card","sc"),p=Object.freeze({supportAppCard:_,textWrapper:`${_}__text-wrapper`,imageContainer:`${_}__image-container`,title:`${_}__title`,description:`${_}__description`,button:`${_}__button`,imageWrapper:`${_}__image-wrapper`,image:`${_}__image`}),v=({title:e,linkUrl:s,s3Assets:a,description:i})=>{let o=(0,r.useBreakpointDown)("s");return(0,t.jsxs)("div",{className:p.supportAppCard,onClick:()=>{o&&((0,n.h)({eventCategory:m,eventActionType:n.D.banner,eventActionText:e,eventLabel:s}),window.open(s,"_blank","noreferrer"))},children:[(0,t.jsx)(r.Button,{className:p.button,iconLeft:(0,t.jsx)(l.IconFdsArrowUpRightSmallO,{size:24}),shape:"circle-icon",size:"xs"}),(0,t.jsxs)("div",{className:p.textWrapper,children:[(0,t.jsx)("div",{className:p.title,children:e}),!!i&&(0,t.jsx)("div",{className:p.description,children:i})]}),(0,t.jsx)("div",{className:p.imageContainer,children:(0,t.jsxs)("picture",{className:p.imageWrapper,children:[(0,t.jsx)("source",{media:"(max-width: 767px)",srcSet:`${a}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${a}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,t.jsx)("img",{className:p.image,loading:"lazy",src:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},g=(0,o.g)("support-phone-card","sc"),h=Object.freeze({supportPhoneCard:g,contacts:`${g}__contacts`,contactsExtra:`${g}__contacts-extra`,phone:`${g}__phone`,phonesExtra:`${g}__phones-extra`,phoneExtra:`${g}__phone-extra`,chat:`${g}__chat`,text:`${g}__text`,image:`${g}__image`}),f=({phones:e,phonesExtra:s,description:a,s3Assets:i})=>{let l=(0,d.useCallback)(()=>{var e,t,s;null==(s=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||s.call(t),(0,n.h)({eventCategory:m,eventActionType:n.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),r=e=>{let t=e.replace(/[\s-]/g,"");(0,n.h)({eventCategory:m,eventActionType:n.D.link,eventActionText:"phone",eventLabel:t})};return(0,t.jsxs)("div",{className:h.supportPhoneCard,children:[(0,t.jsxs)("div",{className:h.contacts,children:[e.map(e=>(0,t.jsx)("a",{className:h.phone,href:e.href,onClick:()=>r(e.label),children:e.label},e.label)),(0,t.jsx)("span",{className:h.chat,onClick:l,children:"Онлайн чат"})]}),(null==s?void 0:s.length)>0&&(0,t.jsxs)("div",{className:h.contactsExtra,children:[(0,t.jsx)("p",{className:h.text,children:"Дополнительные телефоны"}),(0,t.jsx)("div",{className:h.phonesExtra,children:s.map(e=>(0,t.jsx)("a",{className:h.phoneExtra,href:e.href,onClick:()=>r(e.label),children:e.label},e.label))})]}),(0,t.jsx)("p",{className:h.text,children:a}),(0,t.jsx)("img",{className:h.image,src:`${i}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},y=({className:e,phoneCard:l,appCard:r,s3Assets:n})=>l&&r?(0,t.jsx)("section",{className:(0,i.default)(c.support,e),children:(0,t.jsxs)(s.Container,{children:[(0,t.jsx)(a.Heading,{as:"h2",type:"display",weight:"bold",className:c.title,children:"Поддержка"}),(0,t.jsxs)("div",{className:c.cardsContainer,children:[(0,t.jsx)(f,{s3Assets:n,...l}),(0,t.jsx)(v,{s3Assets:n,...r})]})]})}):null;y.displayName="Support",e.s(["Support",0,y])},1677,70746,e=>{"use strict";function t(e,s=2){return+e.toFixed(s)}e.s(["toFixedNumber",0,t],70746),e.s(["formatRating",0,e=>(e||0===e)&&"number"==typeof e?t(e,2):null],1677)},52679,e=>{e.v({divider:"SortRadios-module-scss-module__B2k4CG__divider",newSortRadioSortTypeButton:"SortRadios-module-scss-module__B2k4CG__newSortRadioSortTypeButton",newSortRadioSortTypeContainer:"SortRadios-module-scss-module__B2k4CG__newSortRadioSortTypeContainer",newSortRadioSortTypeHead:"SortRadios-module-scss-module__B2k4CG__newSortRadioSortTypeHead",sortType:"SortRadios-module-scss-module__B2k4CG__sortType",sortTypeButton:"SortRadios-module-scss-module__B2k4CG__sortTypeButton",sortTypeContainer:"SortRadios-module-scss-module__B2k4CG__sortTypeContainer",sortTypeHead:"SortRadios-module-scss-module__B2k4CG__sortTypeHead",sortTypeRadio:"SortRadios-module-scss-module__B2k4CG__sortTypeRadio",sortTypeTooltip:"SortRadios-module-scss-module__B2k4CG__sortTypeTooltip",sortTypeTrigger:"SortRadios-module-scss-module__B2k4CG__sortTypeTrigger"})},6886,e=>{e.v({action:"ListFilter-module-scss-module__e0TxWG__action",actionButton:"ListFilter-module-scss-module__e0TxWG__actionButton",actionText:"ListFilter-module-scss-module__e0TxWG__actionText",actionsWrapper:"ListFilter-module-scss-module__e0TxWG__actionsWrapper",chip:"ListFilter-module-scss-module__e0TxWG__chip",chips:"ListFilter-module-scss-module__e0TxWG__chips",chipsContainer:"ListFilter-module-scss-module__e0TxWG__chipsContainer",chipsContainerClosed:"ListFilter-module-scss-module__e0TxWG__chipsContainerClosed",chipsContainerModal:"ListFilter-module-scss-module__e0TxWG__chipsContainerModal",container:"ListFilter-module-scss-module__e0TxWG__container",filter:"ListFilter-module-scss-module__e0TxWG__filter",icon:"ListFilter-module-scss-module__e0TxWG__icon",iconButton:"ListFilter-module-scss-module__e0TxWG__iconButton",iconInverted:"ListFilter-module-scss-module__e0TxWG__iconInverted",mainContainer:"ListFilter-module-scss-module__e0TxWG__mainContainer",modal:"ListFilter-module-scss-module__e0TxWG__modal",modalButton:"ListFilter-module-scss-module__e0TxWG__modalButton",newSortRadioModal:"ListFilter-module-scss-module__e0TxWG__newSortRadioModal",newSortRadiosFilter:"ListFilter-module-scss-module__e0TxWG__newSortRadiosFilter",sortTypeDesktop:"ListFilter-module-scss-module__e0TxWG__sortTypeDesktop",stuck:"ListFilter-module-scss-module__e0TxWG__stuck"})},88260,85913,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(62965);e.i(51966);var i=e.i(74006),l=e.i(12716),r=e.i(7670);e.i(38886);var n=e.i(86969),o=e.i(52679);let d=({isMobile:e,onChangeSort:s,isIncreaseSort:i})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("p",{className:(0,r.default)(o.default.sortTypeHead),children:[(0,t.jsx)("button",{style:{marginLeft:"0px",marginRight:e?"0px":"8px"},className:(0,r.default)(o.default.sortTypeButton),onClick:s,children:(0,t.jsx)(a.IconFdsSortDescendingO,{className:(0,r.default)(!i&&o.default.iconInverted)})}),"Сортировать"]})}),u=(0,s.memo)(({isMobile:e,onChangeSort:s,isIncreaseSort:a,onChangeSortType:i,sortTypeItems:n,sortTypeValue:u,isNewSortRadios:c})=>(0,t.jsxs)(t.Fragment,{children:[!c&&e&&(0,t.jsx)(d,{onChangeSort:s,isMobile:e,isIncreaseSort:a}),(0,t.jsxs)("div",{className:(0,r.default)(o.default.sortTypeContainer,c&&o.default.newSortRadioSortTypeContainer),onClick:e=>e.stopPropagation(),children:[c&&(0,t.jsx)(d,{onChangeSort:s,isMobile:e,isIncreaseSort:a}),n.map(e=>(0,t.jsx)("div",{"data-qa":`${e.value}_radio`,className:o.default.sortType,children:(0,t.jsx)(l.Radio,{onChange:()=>{i(e.value)},name:`${e.value}_radio`,label:e.label,checked:e.value===u,className:o.default.sortTypeRadio,value:e.value})},e.value))]})]}));u.displayName="SortRadios",e.i(75182);var c=e.i(64457);let m=12;var _=e.i(6886);let p=(0,s.memo)(({isClose:e,chips:o,onClickParams:d,isIncreaseSort:p,onChangeIncreaseSort:v,sortTypeItems:g,sortTypeValue:h,onChangeSortType:f,isFixed:y,portalId:T,onClickChip:w,className:x,isNewSortRadios:S})=>{let N=(0,l.useBreakpointDown)("m"),{containerRef:b,isOverflow:R,minLength:j,handleCompute:C}=(({length:e,isActive:t=!0,gap:a=m,rows:i=1})=>{let[l,r]=(0,s.useState)(!1),n=(0,s.useRef)([]),o=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,s.useRef)(()=>null),c=(0,s.useRef)(0),[_,p]=(0,s.useState)(e),v=(0,s.useRef)(((e=300)=>{let t=null;return s=>{t&&clearInterval(t),t=setTimeout(s,e)}})(700)),g=(0,s.useCallback)(()=>{r(!1),setTimeout(()=>{let t=d.current?.getBoundingClientRect().width??0,s=1,l=0,o=0;for(let e=0;e<=n.current.length;e++){let r=n.current[e];if(!r)continue;let d=r.getBoundingClientRect().width+a;if(d>=t&&(d=t),(l+=d)>=t*s){if(s>=i){l-=d;break}l>t*s&&(l+=t*s-(l-d)),s++}o++}r(e>o),p(o),c.current=l})},[a,e,i]);return(0,s.useEffect)(()=>{if(window.removeEventListener("resize",u.current),t)return u.current=()=>v.current(g),u.current(),window.addEventListener("resize",u.current),()=>window.removeEventListener("resize",u.current)},[g,t]),(0,s.useEffect)(()=>{if(l){let e=(d.current?.getBoundingClientRect().width??0)*i,t=(o.current?.getBoundingClientRect().width??0)+c.current-e;t>0&&p(e=>{let s=0;for(let i=e;i>=0;i--){let e=n.current[i],l=e?.getBoundingClientRect().width;if(e&&l&&(s++,(t-=l+a)<=0))break}return e-s})}},[a,l,i]),{isOverflow:l,minLength:_,chipsRef:n,buttonRef:o,containerRef:d,handleCompute:g}})({length:o.length,isActive:!N}),[O,k]=(0,s.useState)(!1),A=N?j:4,L=N?R:O,[I,E]=(0,s.useState)(!1),[W,B]=(0,s.useState)(!1),[P,D]=(0,s.useState)(!1),F=o.length-A,z=(0,s.useMemo)(()=>[{id:"overflow",label:`${I?"Скрыть":"Ещё"} ${F}`}],[I,F]),G=(0,s.useCallback)(()=>{N?B(e=>!e):E(e=>!e)},[N]),$=(0,s.useRef)(void 0);(0,s.useEffect)(()=>{let t=$.current;if(void 0===e)return;let s=N?W:I;if(!s||t===e){$.current=e;return}(t!==e||s)&&(G(),$.current=e)},[G,e,N,W,I]);let Y=(0,s.useCallback)(()=>{B(!1),setTimeout(()=>d?.(),300)},[d]),U=()=>D(e=>!e),M=(0,s.useCallback)(()=>v?.(!p),[p,v]);(0,s.useEffect)(()=>{N&&(k(!1),k(o.length>4))},[o.length,N]),(0,s.useEffect)(()=>{C()},[C,y]);let V=(0,t.jsx)("div",{className:(0,r.default)(!N&&S&&_.default.sortTypeDesktop),children:(0,t.jsx)(u,{isMobile:N,isIncreaseSort:p,onChangeSort:M,onChangeSortType:f,sortTypeItems:g,sortTypeValue:h,isNewSortRadios:S,portalId:T})}),H=g.find(e=>e.value===h);return(0,t.jsxs)("div",{className:(0,r.default)(_.default.filter,S&&_.default.newSortRadiosFilter,y&&_.default.stuck,x),children:[(0,t.jsx)(i.Container,{className:_.default.mainContainer,children:(0,t.jsxs)("div",{className:_.default.container,children:[(0,t.jsxs)("div",{className:(0,r.default)(_.default.chipsContainer,!I&&_.default.chipsContainerClosed),ref:b,children:[(0,t.jsx)(l.Chips,{size:"l",onChipClick:e=>w?.(e),className:_.default.chips,variant:"secondary",chips:o.slice(0,N||I||!L?o.length:A)}),!N&&R&&F>0&&(0,t.jsx)(l.Chips,{size:"l",className:_.default.chips,variant:"secondary",chips:z,onChipClick:G})]}),(0,t.jsxs)("div",{className:_.default.actionsWrapper,children:[(0,t.jsxs)("button",{className:(0,r.default)(_.default.action,_.default.actionButton),onClick:d,children:[(0,t.jsx)(a.IconFilter,{size:22,className:_.default.icon}),(0,t.jsx)("span",{className:_.default.actionText,children:"Все параметры"})]}),(0,t.jsxs)("div",{className:_.default.action,children:[(0,t.jsx)("button",{className:(0,r.default)(_.default.icon,_.default.iconButton,!p&&_.default.iconInverted),onClick:N&&y?U:M,children:(0,t.jsx)(a.IconFdsSortDescendingO,{size:22})}),(0,t.jsxs)(l.Dropdown,{opened:!N&&P,placement:"bottom-end",onToggle:U,children:[(0,t.jsx)(l.DropdownTrigger,{children:(0,t.jsx)("span",{className:(0,r.default)(_.default.actionText,_.default.actionButton),"data-qa":`${h}_order`,children:H?.shortLabel||H?.label||"Сортировка"})}),(0,t.jsx)(l.DropdownContent,{children:V})]})]})]})]})}),(0,t.jsxs)(n.Portal,{id:T,children:[(0,t.jsx)(c.UiMobilePopup,{footer:(0,t.jsx)(l.Button,{className:_.default.modalButton,onClick:Y,label:"Изменить параметры"}),className:(0,r.default)(_.default.modal,S&&_.default.newSortRadioModal),isOpen:W,onClose:G,children:(0,t.jsx)("div",{className:_.default.chipsContainerModal,children:(0,t.jsx)(l.Chips,{chips:o,className:_.default.chips,size:"l",variant:"secondary",onChipClick:Y})})}),(0,t.jsx)(c.UiMobilePopup,{className:(0,r.default)(_.default.modal,S&&_.default.newSortRadioModal),isSmallPopup:S,onClose:U,isOpen:!!(P&&N),footer:(0,t.jsx)(l.Button,{size:S?"s":"m",className:_.default.modalButton,label:"Применить",onClick:U}),children:V})]})]})});p.displayName="ListFilter",e.s(["ListFilter",0,p],85913),e.s([],88260)},22609,e=>{"use strict";e.s(["throttle",0,function(e,t){let s=Date.now();return function(){Date.now()>=s+t&&(e(),s=Date.now())}}])},97454,e=>{"use strict";var t=e.i(67638);let s="/new",a=()=>"true"!==(0,t.getEnvValue)().NEXT_PUBLIC_USE_MP_SC_ORGANIZATION,i=(e,t=a())=>{if(!t||e===s||e.startsWith(`${s}/`))return e;if(e.startsWith("http://")||e.startsWith("https://"))try{let t=new URL(e);return t.pathname=i(t.pathname,!0),`${t.origin}${t.pathname}${t.search}${t.hash}`}catch{return e}let l=e.startsWith("/")?e:`/${e}`;return`${s}${l}`};e.s(["isMpScNewPathname",0,e=>e===s||e.startsWith(`${s}/`),"stripMpScNewPrefix",0,e=>e===s||e===`${s}/`?"/":e.startsWith(`${s}/`)?e.slice(s.length):e,"withMpScNewPrefix",0,i])},58114,36729,e=>{"use strict";var t,s=e.i(82372);let a={total:0,page:0,size:0,content:[]},i=async({from:e=0,size:t=8,type:i="bank",sortBy:l="name.keyword",sortOrder:r="asc",organizationIds:n,regionIds:o}={})=>{let d=new URLSearchParams({from:String(e),size:String(t),type:i,sortBy:l,sortOrder:r});return n?.length&&d.set("organizationIds",n.join(",")),o?.length&&d.set("regionIds",o.join(",")),(await (0,s.callApi)({url:`/organizations?${d.toString()}`,options:{isOrganizationApi:!0}})).data??a};e.s(["getOrganizations",0,i],58114);var l=e.i(47614);l.OrganizationTypeEnum.bank,l.OrganizationTypeEnum.mfo,l.OrganizationTypeEnum.insurance;let r={[l.OrganizationTypeEnum.bank]:"banki",[l.OrganizationTypeEnum.mfo]:"mfo",[l.OrganizationTypeEnum.insurance]:"strahovanie_kompanija"},n={[l.OrganizationTypeEnum.bank]:"Банки",[l.OrganizationTypeEnum.mfo]:"Микрофинансовые организации",[l.OrganizationTypeEnum.insurance]:"Страховые"};var o=((t={}).name="name",t.rating="rating",t.reviews="reviews",t);let d=[{label:"Банки",value:l.OrganizationTypeEnum.bank},{label:"МФО",value:l.OrganizationTypeEnum.mfo},{label:"Страховые",value:l.OrganizationTypeEnum.insurance}];e.s(["DOSSIER_METRICS_CATEGORY",0,"dossier","DOSSIER_ORDER_OPTIONS",0,[{label:"Возрастанию",id:!1},{label:"Убыванию",id:!0}],"DOSSIER_ORGANISATION_OPTIONS",0,d,"DOSSIER_SORT_OPTIONS",0,[{label:"Алфавиту",id:"name"},{label:"Отзывам",id:"reviews"}],"DossierPageUrlsByType",0,r,"DossierSortType",()=>o,"OrganisationTypeNames",0,n],36729)},63740,e=>{"use strict";var t=e.i(71645),s=e.i(4250),a=e.i(231);e.s(["usePageRegion",0,({initialRegion:e,initialTown:i})=>{let l=(0,s.useCitySelectContext)(),[{region:r,town:n},o]=(0,t.useState)({region:e,town:i});return(0,t.useEffect)(()=>{let t=a.appLocalStorage.getItem("user_region"),s=a.appLocalStorage.getItem("user_town"),r=e||t||null,n=i||s||null;o({region:r,town:n}),l.selectCity(r,n),document.addEventListener("onRegionChange",e=>{o({region:e?.detail?.region,town:e?.detail?.town})})},[e,i]),{region:r,town:n,handleOpenCityModal:()=>{l.handleToggleModal(!0)}}}])},231,e=>{"use strict";let t={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let s=t.getItemRaw(e);if(s&&"undefined"!==s)try{return JSON.parse(s)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}};e.s(["appLocalStorage",0,t])},4414,e=>{"use strict";e.s(["getBic",0,e=>"object"==typeof e&&null!==e&&"bic"in e&&e.bic?String(e.bic):null])},43775,e=>{"use strict";var t=e.i(82372);let s=async({regions:e}={})=>{let s=new URLSearchParams;e&&s.append("regions","all");let a=`/money_data/Root.json${s.size?`?${s}`:""}`;return(await (0,t.callApi)({url:a})).data};e.s(["getRootData",0,s])},87491,e=>{"use strict";var t=e.i(85098);e.s(["getOrganizationsByType",0,({data:e,type:s})=>{if(!e)return[];switch(s){case t.OrganizationType.mfo:return e.mfos;case t.OrganizationType.insurance:return e.insurance_companies;default:return e.companies}}])},73228,e=>{"use strict";var t,s=e.i(85098);let a={banki:s.OrganizationType.bank,mfo:s.OrganizationType.mfo,strahovanie_kompanija:s.OrganizationType.insurance},i={[s.OrganizationType.bank]:"banki",[s.OrganizationType.mfo]:"mfo",[s.OrganizationType.insurance]:"strahovanie_kompanija"},l={[s.OrganizationType.bank]:"Банки",[s.OrganizationType.mfo]:"Микрофинансовые организации",[s.OrganizationType.insurance]:"Страховые"};var r=((t={}).name="name",t.rating="rating",t.reviews="reviews",t);let n=[{label:"Банки",value:s.OrganizationType.bank},{label:"МФО",value:s.OrganizationType.mfo},{label:"Страховые",value:s.OrganizationType.insurance}];e.s(["DOSSIER_METRICS_CATEGORY",0,"dossier","DOSSIER_ORDER_OPTIONS",0,[{label:"Возрастанию",id:!1},{label:"Убыванию",id:!0}],"DOSSIER_ORGANISATION_OPTIONS",0,n,"DOSSIER_SORT_OPTIONS",0,[{label:"Алфавиту",id:"name"},{label:"Отзывам",id:"reviews"}],"DOSSIER_TOP_BANKS",0,["sberbank","vtb","alfabank","gazprombank","tbank","rosselhozbank","promsvyazbank","sovcombank","mkb","vbrr"],"DossierOrganisationType",0,a,"DossierPageUrlsByType",0,i,"DossierSortType",()=>r,"OrganisationTypeNames",0,l])},37809,e=>{e.v({active:"ReviewsFilter-module-scss-module__b5Y2yW__active",allParametersButton:"ReviewsFilter-module-scss-module__b5Y2yW__allParametersButton",buttons:"ReviewsFilter-module-scss-module__b5Y2yW__buttons",checkboxes:"ReviewsFilter-module-scss-module__b5Y2yW__checkboxes",checkboxesWrapper:"ReviewsFilter-module-scss-module__b5Y2yW__checkboxesWrapper",chips:"ReviewsFilter-module-scss-module__b5Y2yW__chips",filter:"ReviewsFilter-module-scss-module__b5Y2yW__filter",input:"ReviewsFilter-module-scss-module__b5Y2yW__input",radiosWrapper:"ReviewsFilter-module-scss-module__b5Y2yW__radiosWrapper",selectors:"ReviewsFilter-module-scss-module__b5Y2yW__selectors",showButton:"ReviewsFilter-module-scss-module__b5Y2yW__showButton",sortingPanel:"ReviewsFilter-module-scss-module__b5Y2yW__sortingPanel",subtitle:"ReviewsFilter-module-scss-module__b5Y2yW__subtitle"})},51196,e=>{e.v({customFilter:"ReviewsStickyFilter-module-scss-module__FfKKlW__customFilter",innerWrapper:"ReviewsStickyFilter-module-scss-module__FfKKlW__innerWrapper",overflow:"ReviewsStickyFilter-module-scss-module__FfKKlW__overflow",visible:"ReviewsStickyFilter-module-scss-module__FfKKlW__visible",wrapper:"ReviewsStickyFilter-module-scss-module__FfKKlW__wrapper"})},45786,e=>{e.v({button:"Reviews-module-scss-module__4ujDkq__button",left:"Reviews-module-scss-module__4ujDkq__left",page:"Reviews-module-scss-module__4ujDkq__page",subtitle:"Reviews-module-scss-module__4ujDkq__subtitle",text:"Reviews-module-scss-module__4ujDkq__text",title:"Reviews-module-scss-module__4ujDkq__title",topBannerImg:"Reviews-module-scss-module__4ujDkq__topBannerImg",topBannerSection:"Reviews-module-scss-module__4ujDkq__topBannerSection"})},4560,e=>{"use strict";var t,s=e.i(43476),a=e.i(71645),i=e.i(57688),l=e.i(18566);e.i(51966);var r=e.i(74006),n=e.i(12716),o=e.i(8810),d=e.i(67638),u=e.i(39028),c=e.i(58114),m=e.i(82487);e.i(25318);var _=e.i(30332),p=e.i(63740),v=e.i(67795),g=e.i(22609),h=e.i(59775),f=e.i(36368),y=e.i(51884),T=e.i(7670),w=e.i(95349);e.i(47359);var x=e.i(37201),S=e.i(36729),N=e.i(47614);let b={[N.OrganizationTypeEnum.bank]:{name:"Банк",name_p:"банках",name_r:"банков",any:"Любой",url:"/polzovatelskij_rejting_bankov"},[N.OrganizationTypeEnum.mfo]:{name:"МФО",name_p:"мфо",name_r:"мфо",any:"Любая",url:"/polzovatelskij_rejting_mfo"},[N.OrganizationTypeEnum.insurance]:{name:"Страховая",name_p:"страховых компаниях",name_r:"страховых",any:"Любая",url:"/strahovanie_otzyvy"}},R="newest",j=[{label:"Все отзывы",value:""},{label:"С высокой оценкой",value:"good"},{label:"С низкой оценкой",value:"bad"},{label:"Сначала новые",value:R}];(t={}).rating="rating",t.date="created";let C=[{label:"По дате",id:"created"}],O="otzyvy";var k=e.i(37809);let A=({filter:e,fkOptions:t,onSubmit:a})=>{let i=(0,n.useBreakpointDown)("l"),l=w.REVIEW_SERVICE_TYPE_OPTIONS[e.orgType.value]||[],r=e.serviceType?[{label:"Любой",value:""},...l]:l;return(0,s.jsxs)("div",{className:k.default.filter,children:[(0,s.jsxs)("div",{className:k.default.selectors,children:[(0,s.jsx)(n.Select,{className:k.default.input,size:"m",label:"Тип организации",options:S.DOSSIER_ORGANISATION_OPTIONS,value:e.orgType,onChange:t=>{(0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.select,eventActionText:(0,y.translit)("Тип организации"),eventLabel:(0,y.translit)(t.label||"")}),e.setOrgType(t)}}),(0,s.jsx)(x.UiSelect,{className:k.default.input,size:"middle",label:"Название организации",options:t,value:e.orgName||null,onChange:t=>{let s=t?.map(e=>e.label).join(",");(0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.select,eventActionText:(0,y.translit)("Название организации"),eventLabel:(0,y.translit)(s||"")}),e.setOrgName(t)},multiple:!0,search:!0,isMobile:i}),(0,s.jsx)(x.UiSelect,{className:k.default.input,size:"middle",label:"Тип услуги",options:r,value:e.serviceType?[e.serviceType]:null,onChange:t=>{let s=t?.[0].value?t[0]:null;(0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.select,eventActionText:(0,y.translit)("Тип услуги"),eventLabel:(0,y.translit)(s?.label||"")}),e.setServiceType(s)},search:!0,isMobile:i})]}),(0,s.jsx)("div",{className:k.default.buttons,children:(0,s.jsx)(n.Button,{className:k.default.showButton,label:"Показать",onClick:a})}),(0,s.jsx)("div",{className:k.default.chips,children:j.map(t=>(0,s.jsx)("div",{className:(0,T.default)({[k.default.active]:e.ratingOption===t.value}),onClick:()=>{(0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.chip,eventActionText:(0,y.translit)(t.label||"")}),e.setRatingOption(t.value)},children:t.label},t.value))})]})};e.i(37928);var L=e.i(86098);e.i(88260);var I=e.i(85913),E=e.i(51196);let W=e=>{let[t,i]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(e.isVisible){let e=setTimeout(()=>i(!0),500);return()=>clearTimeout(e)}i(!1)},[e.isVisible]);let l=b[e.filter.orgType.value],r=((e.filter.orgName?.length||0)>1?`Выбрано ${e.filter.orgName?.length}`:e.filter.orgName?.[0]?.label)||l.any,n=C.map(({id:e,label:t})=>({value:e,label:t,shortLabel:"Сортировка"}));return(0,s.jsx)("div",{className:(0,T.default)(E.default.wrapper,{[E.default.visible]:e.isVisible}),children:(0,s.jsx)("div",{className:(0,T.default)(E.default.innerWrapper,{[E.default.overflow]:t}),children:(0,s.jsx)(I.ListFilter,{className:E.default.customFilter,onClickParams:e.onOpen,onClickChip:e.onOpen,chips:[{id:"orgType",label:`${l.name}: ${r}`},{id:"orgName",label:`Тип услуги: ${e.filter.serviceType?.label||"Любой"}`}],sortTypeItems:n,sortTypeValue:C[0].id,onChangeSortType:()=>null,isIncreaseSort:e.filter.orderDesc,onChangeIncreaseSort:e.filter.setOrderDesc})})})};var B=e.i(71887),P=e.i(16129),D=e.i(45786);e.s(["Reviews",0,({initialState:e,reviews:t,maxPage:T,initialPage:w,serverSelectOptions:x,bestOffersData:S,supportBlockData:C})=>{var k;let I=(0,d.getEnvValue)(),E=(0,l.usePathname)(),F=(0,a.useRef)(null),{region:z,town:G,handleOpenCityModal:$}=(0,p.usePageRegion)({initialRegion:null,initialTown:null}),Y=(({orgType:e,orgName:t,serviceType:s})=>{let[i,l]=(0,a.useState)(e),[r,n]=(0,a.useState)(t),[o,d]=(0,a.useState)(s),[u,c]=(0,a.useState)(j[0].value),[m,_]=(0,a.useState)(!1);return{orgType:i,setOrgType:e=>{l(e),n(null),d(null)},orgName:r,setOrgName:n,serviceType:o,setServiceType:d,ratingOption:u,setRatingOption:c,withBankReply:m,setWithBankReply:_,orderDesc:u===R,setOrderDesc:e=>c(e?R:"")}})(e),[U,M]=(0,a.useState)(!1),[V,H]=(0,a.useState)(t),[q,K]=(0,a.useState)(x),X=(0,a.useRef)(!0),[J,Z]=(0,a.useState)(t.length<T),Q=(0,a.useRef)(w||1),[ee,et]=(0,a.useState)(!1),[es,ea]=(0,a.useState)(!1),ei=(0,a.useRef)(!0),el=(0,a.useRef)(e.isDefaultState),er=(0,a.useRef)(""),en=(0,a.useRef)(null),eo=G?.name_p||z?.name_p||"",ed=b[Y.orgType.value]?.name_p||"",eu=`${I.NEXT_PUBLIC_S3_ASSETS}/mp-assets/images/reviews/reviews_cat_d2.png`;(0,a.useEffect)(()=>{let e=()=>{if(F.current){let e=F.current.offsetTop+F.current.offsetHeight+150;M(window.scrollY>e)}};e();let t=(0,g.throttle)(e,100);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]);let ec=Y.orgName?.map(({value:e})=>String(e)),em=Y.serviceType?.value?String(Y.serviceType.value):void 0,e_={type:Y.orgType.value,com:ec,service:em},ep=(0,P.getReviewsUrlFromProps)(e_);(0,a.useEffect)(()=>{ep!==er.current&&el.current&&(er.current=ep,window.history.replaceState(null,"",ep)),el.current||setTimeout(()=>{el.current=!0},1e3)},[ep]);let ev=(0,a.useCallback)(()=>{if((0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.button,eventActionText:(0,y.translit)("Показать")}),F.current){let e=F.current.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}},[]),eg=ec?.[0],eh=Y.orgType.value||void 0,ef="good"===(k=Y.ratingOption)?N.OrganizationReviewsSortVariantEnum.ratingDesc:"bad"===k?N.OrganizationReviewsSortVariantEnum.ratingAsc:N.OrganizationReviewsSortVariantEnum.dateDesc,ey=Y.serviceType?.value,eT=`${eh||""}|${eg||""}|${ey||""}|${Y.ratingOption}`,ew=[{href:"/",label:"Главная"},{label:`Отзывы о ${ed}`}],ex=(e=1)=>{Q.current=e,1===e?et(!0):ea(!0),en.current&&en.current.abort();let t=new AbortController;en.current=t,(0,m.getOrganizationReviews)({url:eg,type:eh?String(eh):void 0,serviceId:ey,from:(e-1)*4,size:4,sort:ef,signal:t.signal}).then(s=>{t.signal.aborted||(H(t=>e>1?[...t,...s.content]:s.content),Z(4*e<s.total))}).finally(()=>{et(!1),ea(!1)})};return(0,a.useEffect)(()=>{if(ei.current){ei.current=!1;return}ex()},[eT]),(0,a.useEffect)(()=>{if(X.current){X.current=!1;return}(0,c.getOrganizations)({from:0,size:1e3,type:String(Y.orgType.value),sortBy:"name.keyword",sortOrder:"asc"}).then(e=>{K(e.content.map(e=>({label:e.name,value:e.url})).sort(B.sortAlphabetically))})},[Y.orgType.value]),(0,s.jsxs)("div",{className:D.default.page,children:[(0,s.jsx)("div",{ref:F,children:(0,s.jsxs)(r.Container,{children:[(0,s.jsxs)("div",{className:D.default.topBannerSection,children:[(0,s.jsxs)("div",{className:D.default.left,children:[(0,s.jsx)(n.Breadcrumbs,{style:{paddingTop:"16px"},items:ew}),(0,s.jsx)(_.MetaSchema,{data:(0,v.formatBreadcrumbsItems)(ew,I.NEXT_PUBLIC_BASE_URL,E)}),(0,s.jsxs)("div",{className:D.default.text,children:[(0,s.jsxs)("h1",{className:D.default.title,children:["Отзывы о финансовых организациях",eo?" в ":" по ",(0,s.jsx)("p",{onClick:()=>{(0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.link,eventActionText:(0,y.translit)(eo||"всей России")}),$()},children:eo||"всей России"})]}),(0,s.jsxs)("div",{className:D.default.subtitle,children:["Собираем мнения клиентов о банках",(0,s.jsx)("br",{className:"desktopOnly"})," и финансовых организациях, представленных на Финуслугах"]})]})]}),(0,s.jsx)(i.default,{width:486,height:216,className:D.default.topBannerImg,src:eu,alt:"banner image"})]}),(0,s.jsx)(A,{filter:Y,fkOptions:q,onSubmit:ev})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(W,{isVisible:U,onOpen:()=>{if(F.current){let e=F.current.getBoundingClientRect();window.scrollTo({top:e.top+window.scrollY,behavior:"smooth"})}},filter:Y}),(0,s.jsx)(L.ReviewsList,{reviews:V,onShowMore:J?()=>{(0,h.handelDataLayerPush)({eventCategory:O,eventActionType:h.DataLayerActionType.button,eventActionText:(0,y.translit)("Показать еще")}),ex(Q.current+1)}:void 0,loading:ee,loadingMore:es,eventCategory:O,initialMaxPage:T,initialPage:w})]}),S&&(0,s.jsx)(o.BestOffers,{tabs:S,baseUrl:I.NEXT_PUBLIC_BASE_URL,s3Assets:`${I.NEXT_PUBLIC_S3_ASSETS}/mp-assets`,dataLayerPush:f.dataLayerPush}),C&&(0,s.jsx)(u.Support,{...C,s3Assets:I.NEXT_PUBLIC_S3_ASSETS})]})}],4560)},80273,e=>{e.v({content:"HowReviewsWork-module-scss-module__xHB69a__content",item:"HowReviewsWork-module-scss-module__xHB69a__item",text:"HowReviewsWork-module-scss-module__xHB69a__text",title:"HowReviewsWork-module-scss-module__xHB69a__title",wrapper:"HowReviewsWork-module-scss-module__xHB69a__wrapper"})},5845,e=>{e.v({head:"ReviewsFeedbackBanner-module-scss-module__gUf5vW__head",icon:"ReviewsFeedbackBanner-module-scss-module__gUf5vW__icon",subtitle:"ReviewsFeedbackBanner-module-scss-module__gUf5vW__subtitle",wrapper:"ReviewsFeedbackBanner-module-scss-module__gUf5vW__wrapper"})},91747,e=>{e.v({authorInfo:"ReviewsList-module-scss-module__OA-YNW__authorInfo",authorName:"ReviewsList-module-scss-module__OA-YNW__authorName",bannerWrapper:"ReviewsList-module-scss-module__OA-YNW__bannerWrapper",buttonWrapper:"ReviewsList-module-scss-module__OA-YNW__buttonWrapper",clickable:"ReviewsList-module-scss-module__OA-YNW__clickable",commentsIcon:"ReviewsList-module-scss-module__OA-YNW__commentsIcon",commentsLabel:"ReviewsList-module-scss-module__OA-YNW__commentsLabel",container:"ReviewsList-module-scss-module__OA-YNW__container",date:"ReviewsList-module-scss-module__OA-YNW__date",empty:"ReviewsList-module-scss-module__OA-YNW__empty",expanded:"ReviewsList-module-scss-module__OA-YNW__expanded",gray:"ReviewsList-module-scss-module__OA-YNW__gray",image:"ReviewsList-module-scss-module__OA-YNW__image",list:"ReviewsList-module-scss-module__OA-YNW__list",loading:"ReviewsList-module-scss-module__OA-YNW__loading",notFound:"ReviewsList-module-scss-module__OA-YNW__notFound",notFoundTitle:"ReviewsList-module-scss-module__OA-YNW__notFoundTitle",overlay:"ReviewsList-module-scss-module__OA-YNW__overlay",paginationNext:"ReviewsList-module-scss-module__OA-YNW__paginationNext",rating:"ReviewsList-module-scss-module__OA-YNW__rating",ratingStars:"ReviewsList-module-scss-module__OA-YNW__ratingStars",ratingValue:"ReviewsList-module-scss-module__OA-YNW__ratingValue",readAllButton:"ReviewsList-module-scss-module__OA-YNW__readAllButton",review:"ReviewsList-module-scss-module__OA-YNW__review",reviewAuthor:"ReviewsList-module-scss-module__OA-YNW__reviewAuthor",reviewContent:"ReviewsList-module-scss-module__OA-YNW__reviewContent",reviewContentBottom:"ReviewsList-module-scss-module__OA-YNW__reviewContentBottom",reviewHeader:"ReviewsList-module-scss-module__OA-YNW__reviewHeader",reviewHeaderTop:"ReviewsList-module-scss-module__OA-YNW__reviewHeaderTop",reviewText:"ReviewsList-module-scss-module__OA-YNW__reviewText",reviewTitle:"ReviewsList-module-scss-module__OA-YNW__reviewTitle",star:"ReviewsList-module-scss-module__OA-YNW__star",tags:"ReviewsList-module-scss-module__OA-YNW__tags",wrapper:"ReviewsList-module-scss-module__OA-YNW__wrapper"})},26350,51692,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(57688);e.i(51966);var i=e.i(74006),l=e.i(12716),r=e.i(7670);e.i(25318);var n=e.i(30332);e.i(49884);var o=e.i(12556),d=e.i(62965),u=e.i(80273);let c=()=>(0,t.jsxs)("div",{className:u.default.wrapper,children:[(0,t.jsxs)("div",{className:u.default.title,children:["Как мы работаем",(0,t.jsx)("br",{}),"с отзывами"]}),(0,t.jsxs)("div",{className:u.default.content,children:[(0,t.jsxs)("div",{className:u.default.item,children:[(0,t.jsx)(d.IconFdsOctostarCheckO,{size:24}),(0,t.jsx)("div",{className:u.default.text,children:"Отзывы проходят модерацию"})]}),(0,t.jsxs)("div",{className:u.default.item,children:[(0,t.jsx)(d.IconFdsThumbDownO,{size:24}),(0,t.jsx)("div",{className:u.default.text,children:"Подозрительные — не публикуются и не влияют на рейтинг"})]}),(0,t.jsxs)("div",{className:u.default.item,children:[(0,t.jsx)(d.IconFdsClockO,{size:24}),(0,t.jsxs)("div",{className:u.default.text,children:["Чем старше отзыв, тем меньше",(0,t.jsx)("br",{}),"он влияет на рейтинг"]})]})]})]});var m=e.i(67638),_=e.i(59775),p=e.i(51884),v=e.i(5845);let g=({company:e,orgType:s,eventCategory:a})=>{let i=(0,m.getEnvValue)(),r=`${i.NEXT_PUBLIC_BASE_URL}/vyrazit_mnenie${e&&s?`?${s}=${e}`:""}`;return(0,t.jsxs)("a",{className:v.default.wrapper,href:r,onClick:()=>{(0,_.handelDataLayerPush)({eventCategory:a||"",eventActionType:_.DataLayerActionType.banner,eventActionText:(0,p.translit)("Оставить отзыв"),eventLabel:(0,p.translit)(e||"")})},children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:v.default.head,children:[(0,t.jsx)("div",{className:v.default.icon,children:(0,t.jsx)(d.IconFdsChatDotsSquareO,{size:24})}),"Оставьте отзыв"]}),(0,t.jsx)("p",{className:v.default.subtitle,children:"Расскажите о своём опыте использования банковских услуг"})]}),(0,t.jsx)(l.Button,{label:"Написать",size:"s"})]})};var h=e.i(45336),f=e.i(14667),y=e.i(65822),T=e.i(17313);let w=e=>{let s=(0,l.useBreakpointDown)("m"),a=e.forceMobile||s,i="ReviewDetail"===e.type,n=i?a?18:21:a?16:21;return(0,t.jsx)(f.Skeleton,{className:(0,r.default)(T.default.avatar,{[T.default.desktop]:!a,[T.default.reviewDetail]:i}),children:(0,t.jsx)("div",{className:T.default.companyLogoWrapper,children:(0,t.jsx)(y.CompanyLogoSkeleton,{width:n,height:n})})})};var x=e.i(91747);let S=()=>(0,t.jsx)(t.Fragment,{children:[1,2,3,4].map(e=>(0,t.jsxs)("a",{className:(0,r.default)(x.default.review),children:[(0,t.jsxs)("div",{className:x.default.reviewHeader,children:[(0,t.jsxs)("div",{className:x.default.reviewHeaderTop,children:[(0,t.jsxs)("div",{className:x.default.reviewAuthor,children:[(0,t.jsx)(w,{}),(0,t.jsxs)("div",{className:x.default.authorInfo,children:[(0,t.jsx)(f.Skeleton,{className:x.default.authorName,width:80,height:24}),(0,t.jsx)(f.Skeleton,{className:x.default.rating,width:125,height:24})]})]}),(0,t.jsx)(f.Skeleton,{className:x.default.date,width:70,height:24})]}),(0,t.jsxs)("div",{className:x.default.badges,children:[(0,t.jsx)(f.Skeleton,{className:x.default.badge,width:70,height:28}),(0,t.jsx)(f.Skeleton,{className:x.default.badge,width:70,height:28})]}),(0,t.jsx)(f.Skeleton,{className:x.default.date,width:70,height:20})]}),(0,t.jsxs)("div",{className:(0,r.default)(x.default.reviewContent),children:[(0,t.jsx)(f.Skeleton,{className:x.default.reviewTitle,height:24}),(0,t.jsx)(f.Skeleton,{className:(0,r.default)(x.default.reviewText,{[x.default.overlay]:!0}),height:120}),(0,t.jsx)("div",{className:x.default.reviewContentBottom,children:(0,t.jsx)(f.Skeleton,{className:x.default.readAllButton,width:123,height:24})})]})]},e))});e.i(25226);var N=e.i(30831),b=e.i(85098),R=e.i(96934),j=e.i(93583),C=e.i(4414);let O=({review:e})=>{let[a,i]=(0,s.useState)(!1),l=(0,s.useRef)(null),n=(0,h.useIsOverflowing)(l);return(0,t.jsxs)("div",{className:(0,r.default)(x.default.reviewContent,{[x.default.expanded]:a}),children:[(0,t.jsx)("div",{className:x.default.reviewTitle,children:e.title}),(0,t.jsx)("div",{ref:l,className:(0,r.default)(x.default.reviewText,{[x.default.overlay]:n}),children:e.review}),(0,t.jsxs)("div",{className:x.default.reviewContentBottom,children:[n?(0,t.jsx)("button",{className:x.default.readAllButton,onClick:()=>i(!0),children:"Читать полностью"}):(0,t.jsx)("div",{}),e.answers_count>0&&(0,t.jsxs)("button",{className:x.default.commentsIcon,children:[(0,t.jsx)(d.IconFdsChatDotsCircleO,{size:20}),(0,t.jsx)("p",{className:x.default.commentsLabel,children:e.answers_count})]})]})]})},k=e=>{let t=e.fkType===b.OrganizationType.insurance?"/otzyv":e.fkType===b.OrganizationType.mfo?"/mfo":"/banki",s=e.fkType===b.OrganizationType.insurance?"":"/otzyvy";return`${t}/${e.fkUrl}${s}/${e.url}`},A=({reviews:e,loading:s,onClick:a,eventCategory:i})=>s?(0,t.jsx)(S,{}):(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>(0,t.jsxs)("a",{className:(0,r.default)(x.default.review,x.default.clickable),href:k(e),onClick:t=>{let s;t.preventDefault(),s=k(e),(0,_.handelDataLayerPush)({eventCategory:i||"",eventActionType:_.DataLayerActionType.offer,eventActionText:(0,p.translit)(e.title||""),eventLabel:(0,p.translit)(s||"")}),a({...e,text:e.review,orgType:e.fkType,product_type:[e.fkName||"",e.serviceName||""],publ_date:(0,R.formatDate)(e.date||"").toString(),bank_logo:e.fkLogo||void 0,bank_url:(0,C.getBic)(e)||e.fkUrl,url:s})},children:[(0,t.jsxs)("div",{className:x.default.reviewHeader,children:[(0,t.jsxs)("div",{className:x.default.reviewHeaderTop,children:[(0,t.jsxs)("div",{className:x.default.reviewAuthor,children:[(0,t.jsx)(N.UserReviewAvatar,{user:e.name,...e}),(0,t.jsxs)("div",{className:x.default.authorInfo,children:[(0,t.jsx)("div",{className:x.default.authorName,children:e.name}),(0,t.jsxs)("div",{className:x.default.rating,children:[(0,t.jsx)("div",{className:x.default.ratingValue,children:(0,j.formatRatingValue)(e.rating)}),(0,t.jsx)("div",{className:x.default.ratingStars,children:[1,2,3,4,5].map(s=>(0,t.jsx)(d.IconFdsStarF,{className:(0,r.default)(x.default.star,s>e.rating&&x.default.gray)},s))})]})]})]}),(0,t.jsx)("div",{className:x.default.date,children:(0,R.formatDate)(e.date||"").toString()})]}),(0,t.jsxs)("div",{className:x.default.tags,children:[!!e.fkName&&(0,t.jsx)(l.Tag,{label:e.fkName,variant:"secondary"}),!!e.serviceName&&(0,t.jsx)(l.Tag,{label:e.serviceName,variant:"secondary"}),!!e.answers_count&&(0,t.jsx)(l.Tag,{label:"Есть ответ банка",variant:"purple"})]}),(0,t.jsx)("div",{className:x.default.date,children:(0,R.formatDate)(e.date||"").toString()})]}),(0,t.jsx)(O,{review:e})]},s))});e.i(95451);var L=e.i(55144),I=e.i(35812);e.s(["ReviewsList",0,({reviews:e,onShowMore:d,loading:u,loadingMore:m,eventCategory:_,initialMaxPage:p,initialPage:v,company:h})=>{let[f,y]=(0,s.useState)(!1),[T,w]=(0,s.useState)(null);return(0,t.jsxs)(i.Container,{children:[(0,t.jsxs)("div",{className:x.default.wrapper,children:[(0,t.jsxs)("div",{className:x.default.container,children:[(0,t.jsxs)("div",{className:(0,r.default)(x.default.list,{[x.default.loading]:u,[x.default.empty]:!e.length&&!u}),children:[(0,t.jsx)(A,{reviews:e,loading:u,eventCategory:_,onClick:e=>{w(e),y(!0)}}),(0,t.jsx)(o.SeoPagination,{page:v,totalPage:p,url:"/otzyvy"})]}),d&&(0,t.jsx)("div",{className:x.default.buttonWrapper,children:(0,t.jsx)(l.Button,{variant:"secondary",size:"s",onClick:d,pending:u||m,children:"Показать еще"})}),(0,t.jsx)(n.MetaSchema,{data:((e,t)=>{let s;if(t){let{legal_entities:e}=t;if(Array.isArray(e)&&e.length>0){let t=e[0];"legal_address"in t&&t.legal_address?s=t.legal_address:"address"in t&&(s=t.address)}}return{"@context":"https://schema.org","@type":"ItemList",name:"Отзывы о финансовых организациях",description:"Собираем мнения клиентов о банках и финансовых организациях представленных на Финуслугах",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@type":"Review",itemReviewed:{"@type":e.fkType===b.OrganizationType.insurance?"InsuranceAgency":"BankOrCreditUnion",name:e.fkName,...s&&{address:{"@type":"PostalAddress",addressLocality:s}}},reviewRating:{"@type":"Rating",ratingValue:e.rating},author:{"@type":"Person",name:e.name||"Аноним"},datePublished:e.date,reviewBody:e.review}}))}})(e,h)}),!e.length&&(0,t.jsxs)("div",{className:x.default.notFound,children:[(0,t.jsx)(a.default,{className:x.default.image,width:300,height:200,loading:"lazy",src:I.default,alt:"Изображение - К сожалению, мы ничего не нашли"}),(0,t.jsx)("div",{className:x.default.notFoundTitle,children:"К сожалению, мы ничего не нашли"})]})]}),(0,t.jsxs)("div",{className:x.default.bannerWrapper,children:[(0,t.jsx)(g,{eventCategory:_||""}),(0,t.jsx)(c,{})]})]}),(0,t.jsx)(L.ReviewSliderModal,{data:T,buttonData:{link:"",text:""},showAllStars:!0,isOpen:f,onClose:()=>y(!1)})]})}],51692),e.s([],26350)},66763,e=>{"use strict";var t=e.i(85098);e.s(["getReviewsUrlFromProps",0,e=>{let{type:s,com:a,service:i}=e,l=s===t.OrganizationType.insurance?"sk":s===t.OrganizationType.mfo?"mfo":"",r="",n="";r=window.location.search,n=window.location.hash;let o=new URLSearchParams(r);l?o.set("type",l):o.delete("type"),a?.length?o.set("com",a.join("~")):o.delete("com"),i?o.set("service",i):o.delete("service");let d=o.toString();return`/otzyvy${d?`?${d}`:""}${n}`}])},36376,e=>{e.v({active:"ReviewsFilter-module-scss-module__GycA2G__active",allParametersButton:"ReviewsFilter-module-scss-module__GycA2G__allParametersButton",buttons:"ReviewsFilter-module-scss-module__GycA2G__buttons",checkboxes:"ReviewsFilter-module-scss-module__GycA2G__checkboxes",checkboxesWrapper:"ReviewsFilter-module-scss-module__GycA2G__checkboxesWrapper",chips:"ReviewsFilter-module-scss-module__GycA2G__chips",filter:"ReviewsFilter-module-scss-module__GycA2G__filter",input:"ReviewsFilter-module-scss-module__GycA2G__input",radiosWrapper:"ReviewsFilter-module-scss-module__GycA2G__radiosWrapper",selectors:"ReviewsFilter-module-scss-module__GycA2G__selectors",showButton:"ReviewsFilter-module-scss-module__GycA2G__showButton",sortingPanel:"ReviewsFilter-module-scss-module__GycA2G__sortingPanel",subtitle:"ReviewsFilter-module-scss-module__GycA2G__subtitle"})},96986,e=>{e.v({customFilter:"ReviewsStickyFilter-module-scss-module__ho_Ugq__customFilter",innerWrapper:"ReviewsStickyFilter-module-scss-module__ho_Ugq__innerWrapper",overflow:"ReviewsStickyFilter-module-scss-module__ho_Ugq__overflow",visible:"ReviewsStickyFilter-module-scss-module__ho_Ugq__visible",wrapper:"ReviewsStickyFilter-module-scss-module__ho_Ugq__wrapper"})},68710,e=>{e.v({fullInfoLink:"TopPeopleRating-module-scss-module__2-NNGW__fullInfoLink",rating:"TopPeopleRating-module-scss-module__2-NNGW__rating",ratingItem:"TopPeopleRating-module-scss-module__2-NNGW__ratingItem",ratingItemHeader:"TopPeopleRating-module-scss-module__2-NNGW__ratingItemHeader",ratingItemList:"TopPeopleRating-module-scss-module__2-NNGW__ratingItemList",ratingItemTitle:"TopPeopleRating-module-scss-module__2-NNGW__ratingItemTitle",ratingItemWrapper:"TopPeopleRating-module-scss-module__2-NNGW__ratingItemWrapper",ratingList:"TopPeopleRating-module-scss-module__2-NNGW__ratingList",subtitle:"TopPeopleRating-module-scss-module__2-NNGW__subtitle",title:"TopPeopleRating-module-scss-module__2-NNGW__title",wrapper:"TopPeopleRating-module-scss-module__2-NNGW__wrapper"})},91957,e=>{e.v({button:"Reviews-module-scss-module__TAPwxa__button",left:"Reviews-module-scss-module__TAPwxa__left",page:"Reviews-module-scss-module__TAPwxa__page",subtitle:"Reviews-module-scss-module__TAPwxa__subtitle",text:"Reviews-module-scss-module__TAPwxa__text",title:"Reviews-module-scss-module__TAPwxa__title",topBannerImg:"Reviews-module-scss-module__TAPwxa__topBannerImg",topBannerSection:"Reviews-module-scss-module__TAPwxa__topBannerSection"})},34417,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(57688),i=e.i(18566);e.i(51966);var l=e.i(74006),r=e.i(12716),n=e.i(8810),o=e.i(67638),d=e.i(39028),u=e.i(32789),c=e.i(43775);e.i(25318);var m=e.i(30332),_=e.i(63740),p=e.i(88564),v=e.i(7670);e.i(47359);var g=e.i(37201),h=e.i(73228),f=e.i(33157),y=e.i(59775),T=e.i(51884),w=e.i(36376);let x=({filter:e,fkOptions:s,onSubmit:a,servicesTypes:i})=>{let l=(0,r.useBreakpointDown)("l"),n=i[e.orgType.value].map(e=>({label:e.name,value:e.id})),o=e.serviceType?[{label:"Любой",value:""},...n]:n;return(0,t.jsxs)("div",{className:w.default.filter,children:[(0,t.jsxs)("div",{className:w.default.selectors,children:[(0,t.jsx)(r.Select,{className:w.default.input,size:"m",label:"Тип организации",options:h.DOSSIER_ORGANISATION_OPTIONS,value:e.orgType,onChange:t=>{(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.select,eventActionText:(0,T.translit)("Тип организации"),eventLabel:(0,T.translit)(t.label||"")}),e.setOrgType(t)}}),(0,t.jsx)(g.UiSelect,{className:w.default.input,size:"middle",label:"Название организации",options:s,value:e.orgName||null,onChange:t=>{let s=t?.map(e=>e.label).join(",");(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.select,eventActionText:(0,T.translit)("Название организации"),eventLabel:(0,T.translit)(s||"")}),e.setOrgName(t)},multiple:!0,search:!0,isMobile:l}),(0,t.jsx)(g.UiSelect,{className:w.default.input,size:"middle",label:"Тип услуги",options:o,value:e.serviceType?[e.serviceType]:null,onChange:t=>{let s=t?.[0].value?t[0]:null;(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.select,eventActionText:(0,T.translit)("Тип услуги"),eventLabel:(0,T.translit)(s?.label||"")}),e.setServiceType(s)},search:!0,isMobile:l})]}),(0,t.jsx)("div",{className:w.default.buttons,children:(0,t.jsx)(r.Button,{className:w.default.showButton,label:"Показать",onClick:a})}),(0,t.jsxs)("div",{className:w.default.chips,children:[f.REVIEWS_RATING_FILTER_OPTIONS.map(s=>(0,t.jsx)("div",{className:(0,v.default)({[w.default.active]:e.ratingOption===s.value}),onClick:()=>{(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.chip,eventActionText:(0,T.translit)(s.label||"")}),e.setRatingOption(s.value)},children:s.label},s.value)),(0,t.jsx)("div",{className:(0,v.default)({[w.default.active]:e.orderDesc}),onClick:()=>{(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.chip,eventActionText:(0,T.translit)("Сначала новые")}),e.setOrderDesc(!e.orderDesc)},children:"Сначала новые"})]})]})};e.i(26350);var S=e.i(51692);e.i(88260);var N=e.i(85913),b=e.i(96986);let R=e=>{let[a,i]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(e.isVisible){let e=setTimeout(()=>i(!0),500);return()=>clearTimeout(e)}i(!1)},[e.isVisible]);let l=f.REVIEWS_CONSTS_BY_ORG_TYPES[e.filter.orgType.value],r=((e.filter.orgName?.length||0)>1?`Выбрано ${e.filter.orgName?.length}`:e.filter.orgName?.[0]?.label)||l.any,n=f.REVIEWS_SORT_OPTIONS.map(({id:e,label:t})=>({value:e,label:t,shortLabel:"Сортировка"}));return(0,t.jsx)("div",{className:(0,v.default)(b.default.wrapper,{[b.default.visible]:e.isVisible}),children:(0,t.jsx)("div",{className:(0,v.default)(b.default.innerWrapper,{[b.default.overflow]:a}),children:(0,t.jsx)(N.ListFilter,{className:b.default.customFilter,onClickParams:e.onOpen,onClickChip:e.onOpen,chips:[{id:"orgType",label:`${l.name}: ${r}`},{id:"orgName",label:`Тип услуги: ${e.filter.serviceType?.label||"Любой"}`}],sortTypeItems:n,sortTypeValue:f.REVIEWS_SORT_OPTIONS[0].id,onChangeSortType:()=>null,isIncreaseSort:e.filter.orderDesc,onChangeIncreaseSort:e.filter.setOrderDesc})})})};var j=e.i(35832);e.i(65895);var C=e.i(37563);e.i(99869);var O=e.i(33890),k=e.i(93583),A=e.i(68710);let L=e=>{let s=(0,o.getEnvValue)(),a=f.REVIEWS_CONSTS_BY_ORG_TYPES[e.type];return(0,t.jsx)(l.Container,{children:(0,t.jsxs)("div",{className:A.default.wrapper,children:[(0,t.jsx)("h2",{className:A.default.title,dangerouslySetInnerHTML:{__html:e.data.title}}),(0,t.jsx)("div",{className:A.default.subtitle,dangerouslySetInnerHTML:{__html:e.data.subtitle}}),(0,t.jsx)("div",{className:A.default.ratingList,children:e.data[e.type].map((s,a)=>(0,t.jsx)("div",{className:A.default.ratingItemWrapper,children:(0,t.jsxs)("div",{className:A.default.ratingItem,children:[(0,t.jsxs)("div",{className:A.default.ratingItemHeader,children:[(0,t.jsx)(O.CompanyLogo,{url:s.bic||s.url,type:e.type,width:48,height:48,companyName:s.name}),(0,t.jsx)("div",{className:A.default.rating,children:(0,k.formatRatingValue)(s.rating)})]}),(0,t.jsx)("div",{className:A.default.ratingItemTitle,children:s.name}),(0,t.jsxs)("ul",{className:A.default.ratingItemList,children:[(0,t.jsxs)("li",{children:[s.place," место"]}),(0,t.jsxs)("li",{children:[s.reviewsNum," ",(0,j.pluralize)(s.reviewsNum,"отзыв","отзыва","отзывов")]}),(0,t.jsxs)("li",{children:[s.most_discussed," - самый обсуждаемый тип продукта"]})]})]})},a))}),(0,t.jsx)(C.CheckFullInfoLink,{className:A.default.fullInfoLink,mainPageUrl:s.NEXT_PUBLIC_BASE_URL,href:a.url,target:"_self",text:`Показать рейтинг ${a.name_r}`,iconColor:"white"})]})})};var I=e.i(85098),E=e.i(4414),W=e.i(66763),B=e.i(67795),P=e.i(87491),D=e.i(22609),F=e.i(36368),z=e.i(91957);e.s(["Reviews",0,({initialState:e,servicesTypes:v,reviews:g,maxPage:h,userRatingLayout:w,serverSelectOptions:N,initialPage:b,bestOffersData:j,supportBlockData:C})=>{let O=(0,o.getEnvValue)(),k=(0,i.usePathname)(),A=(0,s.useRef)(null),{region:G,town:$,handleOpenCityModal:Y}=(0,_.usePageRegion)({initialRegion:null,initialTown:null}),[U,M]=(0,s.useState)(null),V=(({orgType:e,orgName:t,serviceType:a})=>{let[i,l]=(0,s.useState)(e),[r,n]=(0,s.useState)(t),[o,d]=(0,s.useState)(a),[u,c]=(0,s.useState)(f.REVIEWS_RATING_FILTER_OPTIONS[0].value),[m,_]=(0,s.useState)(!1),[p,v]=(0,s.useState)(!0);return{orgType:i,setOrgType:e=>{l(e),n(null),d(null)},orgName:r,setOrgName:n,serviceType:o,setServiceType:d,ratingOption:u,setRatingOption:c,withBankReply:m,setWithBankReply:_,orderDesc:p,setOrderDesc:v}})(e),[H,q]=(0,s.useState)(!1),[K,X]=(0,s.useState)(g),[J,Z]=(0,s.useState)(h>1),Q=(0,s.useRef)(b),[ee,et]=(0,s.useState)(!1),[es,ea]=(0,s.useState)(!1),ei=(0,s.useRef)(!0),el=(0,s.useRef)(e.isDefaultState),er=U?K.map(e=>{let t,s="SK"===e.target?I.OrganizationType.insurance:"MFO"===e.target?I.OrganizationType.mfo:I.OrganizationType.bank;t=s===I.OrganizationType.insurance?U?.insurance_companies.find(t=>t.id===e.company_id):s===I.OrganizationType.mfo?U?.mfos.find(t=>t.id===e.company_id):U?.companies.find(t=>t.id===e.company_id);let a=v?.[s],i=a?.find(t=>t.id===e.service_id);return{...e,fkType:s,fkLogo:t?.logo_mob,fkName:t?.name,fkUrl:t?.url,bic:(0,E.getBic)(t)||void 0,serviceName:i?.name_sing||i?.name}}):g,en=(0,s.useRef)(""),eo=(0,s.useRef)(""),ed=(0,s.useRef)(null),eu=(0,s.useMemo)(()=>{if(!U)return N;let e=(0,P.getOrganizationsByType)({data:U,type:V.orgType.value});return(0,p.getCompaniesSelectOptions)(e||[])},[U,V.orgType.value,N]).sort((e,t)=>e.label.localeCompare(t.label)),ec=$?.name_p||G?.name_p||"",em=f.REVIEWS_CONSTS_BY_ORG_TYPES[V.orgType.value]?.name_p||"",e_=`${O.NEXT_PUBLIC_S3_ASSETS}/mp-assets/images/reviews/reviews_cat_d2.png`;(0,s.useEffect)(()=>{ea(!0),(async()=>{M(await (0,c.getRootData)()),ea(!1)})()},[]),(0,s.useEffect)(()=>{let e=()=>{if(A.current){let e=A.current.offsetTop+A.current.offsetHeight+150;q(window.scrollY>e)}};e();let t=(0,D.throttle)(e,100);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,s.useEffect)(()=>{e.isDefaultState||(V.setOrgType(e.orgType),V.setOrgName(e.orgName),V.setServiceType(e.serviceType))},[]);let ep=V.orgName?.map(({value:e})=>String(e)),ev=V.serviceType?.value?String(V.serviceType.value):void 0,eg={type:V.orgType.value,com:ep,service:ev},eh=(0,W.getReviewsUrlFromProps)(eg);(0,s.useEffect)(()=>{eh!==en.current&&el.current&&(en.current=eh,window.history.replaceState(null,"",eh)),el.current||setTimeout(()=>{el.current=!0},1e3)},[eh]);let ef=(0,s.useCallback)(()=>{if((0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.button,eventActionText:(0,T.translit)("Показать")}),A.current){let e=A.current.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}},[]),ey={type:V.orgType.value,regionId:G?.id,companyIds:ep,serviceId:ev,rating:V.ratingOption,orderDesc:V.orderDesc},eT=(0,u.getReviewsDataUrl)(ey),ew=[{href:"/",label:"Главная"},{label:`Отзывы о ${em}`}],ex=(e=1)=>{Q.current=e,1===e?et(!0):ea(!0),ed.current&&ed.current.abort();let t=new AbortController;ed.current=t,eo.current=eT.reviews,(0,u.getReviews)(eT.reviews,e,4,t.signal).then(s=>{t.signal.aborted||(X([...e>1?K:[],...s?.result?.reviews||[]]),Z(e+1<=(s?.result?.pages||0)))}).finally(()=>{et(!1),ea(!1)})};return(0,s.useEffect)(()=>{if(ei.current||eo.current===eT.reviews){ei.current=!1;return}ex()},[V.orgType,G,V.orgName,V.serviceType,V.ratingOption,V.orderDesc]),(0,t.jsxs)("div",{className:z.default.page,children:[(0,t.jsx)("div",{ref:A,children:(0,t.jsxs)(l.Container,{children:[(0,t.jsxs)("div",{className:z.default.topBannerSection,children:[(0,t.jsxs)("div",{className:z.default.left,children:[(0,t.jsx)(r.Breadcrumbs,{style:{paddingTop:"16px"},items:ew}),(0,t.jsx)(m.MetaSchema,{data:(0,B.formatBreadcrumbsItems)(ew,O.NEXT_PUBLIC_BASE_URL,k)}),(0,t.jsxs)("div",{className:z.default.text,children:[(0,t.jsxs)("h1",{className:z.default.title,children:["Отзывы о финансовых организациях",ec?" в ":" по ",(0,t.jsx)("p",{onClick:()=>{(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.link,eventActionText:(0,T.translit)(ec||"всей России")}),Y()},children:ec||"всей России"})]}),(0,t.jsxs)("div",{className:z.default.subtitle,children:["Собираем мнения клиентов о банках",(0,t.jsx)("br",{className:"desktopOnly"})," и финансовых организациях, представленных на Финуслугах"]})]})]}),(0,t.jsx)(a.default,{width:486,height:216,className:z.default.topBannerImg,src:e_,alt:"banner image"})]}),(0,t.jsx)(x,{filter:V,fkOptions:eu,servicesTypes:v,onSubmit:ef})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(R,{isVisible:H,onOpen:()=>{if(A.current){let e=A.current.getBoundingClientRect();window.scrollTo({top:e.top+window.scrollY,behavior:"smooth"})}},filter:V}),(0,t.jsx)(S.ReviewsList,{reviews:er,onShowMore:J?()=>{(0,y.handelDataLayerPush)({eventCategory:f.REVIEWS_METRICS_CATEGORY,eventActionType:y.DataLayerActionType.button,eventActionText:(0,T.translit)("Показать еще")}),ex(Q.current+1)}:void 0,loading:ee,loadingMore:es,eventCategory:f.REVIEWS_METRICS_CATEGORY,initialMaxPage:h,initialPage:b})]}),w&&(0,t.jsx)(L,{type:V.orgType.value,data:w}),j&&(0,t.jsx)(n.BestOffers,{tabs:j,baseUrl:O.NEXT_PUBLIC_BASE_URL,s3Assets:`${O.NEXT_PUBLIC_S3_ASSETS}/mp-assets`,dataLayerPush:F.dataLayerPush}),C&&(0,t.jsx)(d.Support,{...C,s3Assets:O.NEXT_PUBLIC_S3_ASSETS})]})}],34417)}]);