(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2163],{96292:function(e,t,n){Promise.resolve().then(n.bind(n,82778)),Promise.resolve().then(n.bind(n,81523)),Promise.resolve().then(n.bind(n,70049)),Promise.resolve().then(n.bind(n,83352)),Promise.resolve().then(n.bind(n,66344))},41356:function(e,t,n){"use strict";n.d(t,{Jh:function(){return l},K1:function(){return o},e9:function(){return i}});var a=n(27163),r=n(24269);let l=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;if(l){var i,o,s,c;let d=(null===(i=(await (0,a.t)({url:"".concat(e,"&page=1&limit=1"),config:{signal:r}})).data)||void 0===i?void 0:i.result.count)||0,u=await (0,a.t)({url:"".concat(e,"&page=1&limit=").concat(d||1e4),config:{signal:r}}),m=((null===(o=u.data)||void 0===o?void 0:o.result.reviews)||[]).filter(e=>e.company_id.toString()===l),p=(t-1)*n;return{result:{reviews:m.slice(p,p+n),page:t,pages:Math.ceil(m.length/n),count:m.length,limit:n},services:(null===(s=u.data)||void 0===s?void 0:s.services)||[],servicesSk:(null===(c=u.data)||void 0===c?void 0:c.servicesSk)||[]}}return(await (0,a.t)({url:"".concat(e,"&page=").concat(t,"&limit=").concat(n),config:{signal:r}})).data||null},i=async e=>(await (0,a.t)({url:e})).data||null,o=e=>{let{regionId:t,type:n,companyIds:a,serviceId:l,rating:i,sort:o,orderDesc:s,includeCompany:c}=e,d=t?"&region=".concat(t):"",u="BANK";n===r.$.insurance?u="SK":n===r.$.mfo&&(u="MFO");let m=(null==a?void 0:a.length)?"&company=".concat(a.join(",")):"",p=l?"&service=".concat(l):"",_=i?"&rating=".concat(i):"",v="&sort=".concat(o||"created"),b=!1===s?"&order=ASC":"&order=DESC",h=c?"&includeCompany=true":"",f=e=>"/money_data/".concat(e,".json?type=").concat(u).concat(d).concat(m).concat(p).concat(_).concat(v).concat(b).concat(h);return{reviews:f("Reviews"),ratings:f("ReviewsInfo")}}},58560:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});var a=n(27163);let r=async function(){let{regions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;e&&t.append("regions","all");let n="/money_data/Root.json".concat(t.size?"?".concat(t):"");return(await (0,a.t)({url:n})).data}},28157:function(e,t,n){"use strict";n.d(t,{s:function(){return N}});var a=n(57437),r=n(2265),l=n(33145),i=n(75461),o=n(61994);let s={green:{src:"/directory/_next/static/media/green.1848d0ee.png",height:720,width:888,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAA0UlEQVR4nAHGADn/AdWslwIB/Pz+A/PxKef6/ylALz+5foSFRYK4ubAAAAAAAcEAAAIkAAD+4KKQbMy+x5PJAgrYUUE2/usyL0dIKijpAYeqoAZJVVEfwLS3WHBNWIJ8c20AaWheAOMCAXXgExOrAbnk1BYABwYyA/b3RMqhrm81KygEIysk8+ATDov3+/zGAb/o1x7u/v8yJwkHVfje5lrc3+H/CxcIASEvNJfW8PK1Abfg0BYFEhAv2La+ei4hJEAKDAb8BwT7BAkWGp3E9PagHPBXW7HFQjEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},yellow:{src:"/directory/_next/static/media/yellow.9e524c74.png",height:656,width:627,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABC0lEQVR42mMAgYLEMNYNWxaxgthfrnLy/3/DIPn3SoDM/3vWTIwgwf///zMVJCQ2/Rdc0D0xs1T162tOH27xI+f//+b5zvz5pCo/m/QP9juXWfuePBHJPr3ng5fIA04DKdcPG/99ZRRi4TG7/f3IRv5MfgkBjXn9uxhUfzEyMDt9u278jYOBkennLyZGRoZfMlJqlswMPAzeVho/bn59w3Cb4dcPBpa3n//9Y/7NAnYD9995UuKsoVGBThwWhhoMYmK80gxMb9mZGbd/ZgIpkGLlfqUvJ8YkryLBoKKt+UdIWkFs4dr/iYxyp1+BFbAoKprzqcsziAgK/GFkYmRmZmJiuHjnW3BfDQMvACWEWr1cytWCAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},red:{src:"/directory/_next/static/media/red.cbc8d848.png",height:720,width:888,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAA0UlEQVR4nAHGADn/AXFWYQHy8/f/DyATLFw3OOExX1z18uTYCA0HBvbds8gAAQAAAAIAAAD+oYuGgc/d4zg2BQ7xNh4c2BtYSpHpu8X0Ad6dqwILIA8vyufqspCirhzhusEAh3Zrt05VS5Tm5ejfAdmXpRAYNR9Q0OfwmbnAywOzusADgGJSy0o2M6jp7vDUAeW1tR4FBwgz9wX6heH1+Cnd6PQAFQoF8zEODZcFBQbEAeWvsRQCDgw6FzQgnuLm7BPP1+v96+3sAwTk4q5hTUmQSb5dwT6XheYAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6}};var c=n(66153),d=n(80684),u=n(79440),m=n.n(u);let p=e=>{let{footer:t}=e;return(0,a.jsx)("div",{className:m().footer,children:"function"==typeof t?t():t})};var _=n(97735),v=n.n(_);let b=e=>{let{onClose:t,onContentClick:n,children:r,width:l,title:i,titleAlign:s,isCloseable:c=!0,overflow:u=!1,footer:m,isOpen:_,contentClassName:b,contentStyle:h}=e;return(0,a.jsxs)("div",{style:{...h,maxWidth:"number"==typeof l?"".concat(l,"px"):"auto"},className:(0,o.Z)(v().container,{[v().open]:_,[v().close]:!_},b),children:[i||c?(0,a.jsxs)("div",{className:v().header,children:[c?(0,a.jsx)("button",{className:v().controlContainer,onClick:t,children:(0,a.jsx)(d.IconCross,{size:20})}):null,i?(0,a.jsx)("h4",{className:(0,o.Z)(v().title,{[v().center]:"center"===s,[v().left]:"left"===s,[v().right]:"right"===s}),children:i}):null]}):null,(0,a.jsx)("div",{className:(0,o.Z)(v().content,{[v().overflowVisible]:u}),onClick:n,children:r}),m&&(0,a.jsx)(p,{footer:m})]})};var h=n(17868),f=n(68307),g=n.n(f);let A=e=>{let{onClose:t,isOpen:n,children:l,width:i,title:s,titleAlign:d="center",isCloseable:u=!0,overflow:m=!1,footer:p,contentClassName:_,contentStyle:v,className:f}=e,A=(0,r.useCallback)(e=>e.stopPropagation(),[]);return(0,h.o)(n),(0,a.jsxs)("div",{"data-portal":!0,className:(0,o.Z)(g().window,f),children:[(0,a.jsx)(c.L,{onClose:t,isOpen:n}),(0,a.jsx)(b,{onContentClick:A,onClose:t,isCloseable:u,overflow:m,title:s,titleAlign:d,width:i,footer:p,isOpen:n,contentClassName:_,contentStyle:v,children:l})]})};var x=n(73564);let k=e=>{let{onClose:t,isOpen:n=!1,overflow:r=!1,width:l="auto",children:i,title:o,titleAlign:s="center",isCloseable:c=!0,footer:d,contentClassName:u,contentStyle:m,className:p}=e,{mounted:_}=(0,x.b)({opened:n});return _?(0,a.jsx)(A,{title:o,titleAlign:s,isCloseable:c,onClose:t,overflow:r,isOpen:n,width:l,footer:d,contentClassName:u,contentStyle:m,className:p,children:i}):null};k.displayName="DesktopModal";var j=n(49689),C=n(87743),y=n.n(C);let N=e=>{let{title:t,description:n,button:c,visible:d,onClose:u,color:m,className:p,contentClassName:_}=e,v=(0,i.aF)("s"),b=(0,r.useMemo)(()=>s[m],[m]),h=(0,a.jsxs)("div",{className:(0,o.Z)(_,y().wrap),children:[(0,a.jsxs)("div",{className:y().text,children:[t&&(0,a.jsx)("div",{className:y().title,children:t}),n&&(0,a.jsx)("div",{className:y().description,children:n}),c]}),(0,a.jsx)(l.default,{alt:"Cat",className:y().image,src:b,unoptimized:!0})]});return v?(0,a.jsx)(j.j,{className:(0,o.Z)(p,y().popup),isOpen:d,onClose:u,hasCloseButton:!1,full:!0,children:h}):(0,a.jsx)(k,{className:(0,o.Z)(p,y().modal),isOpen:d,onClose:u,isCloseable:!1,children:h})}},83352:function(e,t,n){"use strict";n.d(t,{FeedbackConfirmation:function(){return p}});var a=n(57437),r=n(2265),l=n(99376),i=n(75461),o=n(27163),s={checkToken:e=>(0,o.t)({url:"/api/v1/".concat(e.apiUrl,"/confirm?token=").concat(e.token),options:{isHeadlessCMS:!0}}).then(e=>{let{data:t,error:n}=e;return n?Promise.reject(n):t})},c=n(28157),d=n(42953),u=n(69764),m=n.n(u);let p=()=>{let e=(0,l.useSearchParams)(),t=(0,l.usePathname)(),[n,o]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let n=e.get("token");window.history.replaceState(null,"",t),n&&s.checkToken({token:n,apiUrl:"review"}).then(()=>{p(!0)}).catch(()=>{o(!0)})},[]);let _=()=>{o(!1)},v=()=>{p(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.s,{visible:n,color:"red",onClose:_,title:"Возникла техническая проблема",description:"Мы уже ее решаем. Попробуйте перейти по ссылке еще раз, если не сработает — напишите в наш чат поддержки",button:(0,a.jsx)(i.zx,{className:m().button,label:"Понятно",onClick:_})}),(0,a.jsx)(c.s,{visible:u,color:"green",onClose:v,title:"Ваш отзыв принят",description:(0,a.jsxs)("div",{children:["Спасибо, мы получили ваш отзыв. Он отправлен на модерацию и в течение 14 рабочих дней будет опубликован, если вами не были нарушены"," ",(0,a.jsx)("a",{className:m().text,target:"_blank",href:d.Bz,rel:"noreferrer",children:"правила публикации отзыва"})," ","на Финуслугах"]}),button:[(0,a.jsx)(i.zx,{className:m().submitButton,onClick:v,children:"Спасибо, понятно"},"close")]})]})}},66344:function(e,t,n){"use strict";n.d(t,{FeedbackContent:function(){return H}});var a,r,l=n(57437),i=n(2265),o=n(35563),s=n(75461),c=n(27163);let d=async e=>{let{error:t}=await (0,c.t)({url:"/api/v1/review",options:{isHeadlessCMS:!0},config:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"send_review",review:e})}});return{error:!!t}};var u=n(28157),m=n(29501),p=n(61994),_=n(41356),v=n(58560),b=n(24620);let h=[{href:"/",label:"Главная"},{href:"/otzyvy",label:"Отзывы о финансовых организациях"},{label:"Оставить отзыв"}],f="vyrazit_mnenie";(a=r||(r={})).Bank="BANK",a.Mfo="MFO",a.Sk="SK";let g=e=>{let{companies:t=[],mfos:n=[],insurance_companies:a=[]}=e;return{companies:t.filter(e=>!e.archive).map(e=>({label:e.name,value:"".concat(r.Bank,"-").concat(e.id)})),mfos:n.filter(e=>!e.archive).map(e=>({label:e.name,value:"".concat(r.Mfo,"-").concat(e.id)})),insurance_companies:a.filter(e=>!e.archive).map(e=>({label:e.name,value:"".concat(r.Sk,"-").concat(e.id)}))}};var A=n(51479),x=n(54550);let k=e=>{let{rootData:t,onChange:n,value:a,...r}=e,o=(0,s.aF)("s"),[c,d]=(0,i.useState)(null);(0,i.useEffect)(()=>{let{companies:e,mfos:n,insurance_companies:a}=g({companies:null==t?void 0:t.companies,mfos:null==t?void 0:t.mfos,insurance_companies:null==t?void 0:t.insurance_companies});d([...e,...n,...a])},[t]);let u=(0,i.useCallback)(e=>{(0,A.D)({eventCategory:f,eventActionType:A.i.select,eventActionText:(0,x.b)(r.label||""),eventLabel:(0,x.b)((null==e?void 0:e[0].label)||"")}),(null==e?void 0:e.length)&&(null==n||n(e[0]))},[n,r.label]);return(0,l.jsx)(b.H,{...r,isMobile:o,options:c||[],value:a?[a]:null,onChange:u,multiple:!1,search:!0})},j=e=>{let{children:t,control:n,name:a}=e;return(0,l.jsx)(m.Qr,{name:a,control:n,render:e=>{let{field:n,fieldState:{error:a}}=e;return(0,l.jsx)(l.Fragment,{children:i.Children.map(t,e=>i.isValidElement(e)?i.cloneElement(e,{...n,...e.props,state:a?"error":null,caption:a?a.message:null,message:a?a.message:null}):e)})}})},C=(e,t,n)=>{var a;let r=null!==(a=null==n?void 0:n.map(e=>+e))&&void 0!==a?a:[];return[...e].filter(e=>!t||!("target"in e)||e.target===t).sort((e,t)=>{let n=r.includes(Number(e.id)),a=r.includes(Number(t.id));return!n&&a?1:n&&!a?-1:0}).map(e=>({value:e.id,label:e.name}))},y=e=>{let{rootData:t,target:n,onChange:a,value:r,rootType:o,search:c,...d}=e,u=(0,s.aF)("s"),[m,p]=(0,i.useState)(r||void 0),[_,v]=(0,i.useState)([]);(0,i.useEffect)(()=>{(null==t?void 0:t[o])&&v(C(null==t?void 0:t[o],n,m?[m]:[])||[])},[t,m,o,n]);let h=e=>{(0,A.D)({eventCategory:f,eventActionType:A.i.select,eventActionText:(0,x.b)(d.label||""),eventLabel:(0,x.b)(e||"")})};return(0,l.jsxs)(l.Fragment,{children:[!c&&(0,l.jsx)(s.Ph,{...d,disabled:!_.length,options:_,value:_.find(e=>m===e.value)||null,onChange:e=>{h(null==e?void 0:e.label),e&&(p(Number(e.value)),null==a||a(Number(e.value)))}}),c&&(0,l.jsx)(b.H,{...d,isMobile:u,onChange:e=>{var t;h(null==e?void 0:null===(t=e[0])||void 0===t?void 0:t.label),(null==e?void 0:e[0].value)&&(null==a||a(Number(e[0].value)))},options:_,value:r?[{value:r,label:String(r)}]:null,multiple:!1,search:!0})]})};var N=n(80684),w=n(40257);let F=e=>"true"===w.env.NEXT_PUBLIC_PROD_STAND?void 0:e;var S=n(83979),D=n.n(S);let E=e=>{let{estimate:t=0,onSetEstimate:n,state:a}=e,r=e=>()=>{(0,A.D)({eventCategory:f,eventActionType:A.i.icon,eventActionText:(0,x.b)("star_".concat(e+1))}),n(e+1)};return(0,l.jsxs)("div",{className:D().wrapper,children:[(0,l.jsx)("div",{className:(0,p.Z)(D().label,{[D().errorText]:"error"===a}),children:"Ваша оценка полученной услуги"}),(0,l.jsx)("div",{className:D().icons,children:Array.from({length:5}).map((e,n)=>{let a=n<Math.round(t);return(0,l.jsx)("div",{onClick:r(n),"data-qa":F("star".concat(n+1)),children:(0,l.jsx)(N.IconStar,{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:(0,p.Z)(D().iconStar,a?D().activeIconStar:D().inactiveIconStar)})},n)})})]})},W={company_id:{value:0,label:""},service_id:0,region_id:0,title:"",review:"",name:"",email:"",rating:0,isSecurityPolicyAgree:!1};var M=n(67119);let B="Поле обязательно для заполнения",L=M.Ry({value:M.G0([M.Z_(),M.Rx()]),label:M.Z_()}),T=M.Ry({company_id:L.refine(e=>!!e.value&&!!e.label,{message:B}),service_id:M.Rx().min(1,{message:B}),region_id:M.Rx().min(1,{message:B}),title:M.Z_().min(5,{message:"Минимально ".concat(5," символов")}).max(100,{message:"Максимально ".concat(100," символов")}),review:M.Z_().min(250,{message:"Минимально ".concat(250," символов")}).max(3e3,{message:"Максимально ".concat("3000".replace(/\B(?=(\d{3})+(?!\d))/g," ")," символов")}),name:M.Z_().min(3,{message:"Минимально ".concat(3," символа")}).regex(/^[а-яёА-ЯЁa-zA-Z\s-']+$/,{message:"Имя может содержать только буквы, пробелы, тире и апострофы"}),email:M.Z_().email({message:"Некорректный email"}).regex(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,{message:"Некорректный формат email. Допустимы только латинские буквы, цифры, точки, дефисы, подчеркивания"}),rating:M.Rx().min(1,{message:B}),isSecurityPolicyAgree:M.O7().refine(e=>!0===e,{message:"Необходимо согласие с политикой безопасности"})});var z=n(24269),Z=n(42953),R=n(22870),P=n(44283),O=n.n(P);let I=e=>{let{control:t,name:n,maxLength:a,className:r}=e,i=(0,m.qo)({control:t,name:n});return(0,l.jsx)("div",{className:(0,p.Z)(r,O().textLength),children:a-((null==i?void 0:i.length)||0)})};var K=n(91115),Q=n.n(K);let U=e=>{let{onSend:t}=e,n=(0,s.aF)("s"),[a,r]=(0,i.useState)(null),[o,c]=(0,i.useState)(null),[d,u]=(0,i.useState)({[z.$.bank]:[],[z.$.mfo]:[],[z.$.insurance]:[]}),[h,g]=(0,i.useState)([]),{control:C,handleSubmit:N,setValue:w,formState:{isSubmitting:S,isValid:D},reset:M}=(0,m.cI)({defaultValues:{...W},resolver:e=>{let t=T.safeParse(e);if(t.success)return{values:t.data,errors:{}};let n={};return t.error.errors.forEach(e=>{n[e.path.join(".")]={message:e.message||B}}),{values:{},errors:n}},mode:"onTouched"}),[L]=String((0,m.qo)({control:C,name:"company_id"}).value).split("-"),P=async()=>{let e=(0,_.K1)({orderDesc:!0,type:z.$.insurance}),[t,n]=await Promise.allSettled([(0,v.s)(),(0,_.Jh)(e.reviews,1)]);return{root:"fulfilled"===t.status?t.value:null,reviews:"fulfilled"===n.status?n.value:null}};(0,i.useEffect)(()=>{L&&(r(L),w("service_id",0))},[L,w]),(0,i.useEffect)(()=>{P().then(e=>{let{root:t,reviews:n}=e;if(!t||!n)return;let{town_dublicates:a,deposits_count:r,...l}=t;c(l),u((0,R.c)(n))})},[]),(0,i.useEffect)(()=>{var e;a&&g((null===(e=d["SK"===a?z.$.insurance:a.toLowerCase()])||void 0===e?void 0:e.map(e=>({label:e.name,value:e.id})))||[])},[d,a]);let O=e=>{w("name",e.replace(/[^а-яёА-ЯЁ\s-']/g,""))},K=async e=>{var n;let{isSecurityPolicyAgree:a,...r}=e;if(!(null===(n=r.company_id)||void 0===n?void 0:n.value))return;let[l,i]=String(r.company_id.value).split("-");await t({...r,target:l,company_id:Number(i)})&&M(W)},U=e=>t=>{(0,A.D)({eventCategory:f,eventActionType:A.i.select,eventActionText:(0,x.b)("Услуга"),eventLabel:(0,x.b)((null==t?void 0:t[0].label)||"")}),(null==t?void 0:t[0].value)&&(null==e||e(Number(t[0].value)))},Y=()=>{(0,A.D)({eventCategory:f,eventActionType:A.i.checkbox,eventActionText:(0,x.b)("Я ознакомлен")})},q=()=>{(0,A.D)({eventCategory:f,eventActionType:A.i.link,eventActionText:(0,x.b)("Правилами публикации отзыва, политикой обработки персональных данных ПАО Московская Биржа"),eventLabel:Z.Bz})},H=()=>{(0,A.D)({eventCategory:f,eventActionType:A.i.link,eventActionText:(0,x.b)("и настоящим даю согласие на обработку ПАО Московская Биржа моих персональных данных"),eventLabel:Z.L2})};return(0,l.jsxs)("div",{className:Q().wrapper,children:[(0,l.jsxs)("div",{className:Q().formElementWrapper,children:[(0,l.jsx)("div",{className:Q().label,children:"Выберите финансовую организацию и тип услуги"}),(0,l.jsxs)("div",{className:Q().rowWrapper,children:[(0,l.jsx)(j,{name:"company_id",control:C,children:(0,l.jsx)(k,{rootData:o,className:(0,p.Z)(Q().formElement,Q().formSelect),label:"Финансовые организации","data-qa":F("organisation_input"),popupDataQa:F("organisation_popup"),itemDataQa:F("organisation_item")})}),(0,l.jsx)(m.Qr,{name:"service_id",control:C,render:e=>{let{field:{value:t,onChange:a},fieldState:{error:r}}=e;return(0,l.jsx)(b.H,{label:"Услуга",className:(0,p.Z)(Q().formElement,Q().formSelect),isMobile:n,onChange:U(a),message:r?r.message:"",disabled:!h.length,options:h,multiple:!1,value:t?[{value:t,label:String(t)}]:null,search:!0,state:r?"error":"default","data-qa":F("service_input"),popupDataQa:F("service_popup"),itemDataQa:F("service_item")})}})]})]}),(0,l.jsxs)("div",{className:Q().formElementWrapper,children:[(0,l.jsx)("div",{className:Q().label,children:"Укажите ваш регион"}),(0,l.jsx)(j,{name:"region_id",control:C,children:(0,l.jsx)(y,{rootData:o,className:(0,p.Z)(Q().formElement,Q().regionSelect),rootType:"regions",label:"Выбрать регион",search:!0,"data-qa":F("region_input"),popupDataQa:F("region_popup"),itemDataQa:F("region_item")})})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:Q().formElementWrapper,children:[(0,l.jsxs)("div",{className:Q().description,children:[(0,l.jsx)("div",{className:Q().label,children:"Поделитесь опытом взаимодействия с организацией"}),(0,l.jsx)("div",{className:Q().explanation,children:"Оставьте отзыв коротко и по сути: укажите ключевые факты и даты, пишите конструктивно, вежливо и о недавнем опыте"})]}),(0,l.jsxs)("div",{className:Q().fieldWithLengthWrapper,children:[(0,l.jsx)(j,{name:"title",control:C,children:(0,l.jsx)(s.MA,{size:"l",maxLength:100,label:"Заголовок отзыва","data-qa":F("theme_input")})}),(0,l.jsx)(I,{control:C,name:"title",maxLength:100,className:Q().explanation}),(0,l.jsxs)("div",{className:Q().fieldWithLengthWrapper,children:[(0,l.jsx)(m.Qr,{name:"review",control:C,render:e=>{let{field:t,fieldState:{error:n}}=e;return(0,l.jsx)(s.gx,{...t,caption:null==n?void 0:n.message,state:n&&"error",maxLength:3e3,rows:10,size:"l",label:"Напишите отзыв","data-qa":F("comment_input")})}}),(0,l.jsx)(I,{control:C,name:"review",maxLength:3e3,className:Q().explanation})]})]})]}),(0,l.jsxs)("div",{className:(0,p.Z)(Q().estimateElementWrapper,Q().personalDataWrapper),children:[(0,l.jsx)("div",{className:Q().label,children:"Укажите ваши данные"}),(0,l.jsx)("div",{className:Q().explanation,children:"Это нужно, чтобы проинформировать вас о статусе публикации отзыва. Ваша почта не будет опубликована на сайте"}),(0,l.jsxs)("div",{className:Q().rowWrapper,children:[(0,l.jsx)(m.Qr,{name:"name",control:C,render:e=>{let{field:t,fieldState:{error:n}}=e;return(0,l.jsx)(s.MA,{...t,size:"m",label:"Имя",type:"text","data-qa":F("name_input"),onChange:O,state:n?"error":"default",caption:n?n.message:null})}}),(0,l.jsx)(j,{name:"email",control:C,children:(0,l.jsx)(s.MA,{size:"m",label:"Электронная почта","data-qa":F("email_input")})})]})]})]}),(0,l.jsx)("div",{className:Q().estimateElementWrapper,children:(0,l.jsx)(m.Qr,{name:"rating",control:C,render:e=>{let{field:{value:t,onChange:n},fieldState:a}=e;return(0,l.jsx)(E,{estimate:t||0,state:a.error?"error":"default",onSetEstimate:e=>n(e)})}})}),(0,l.jsxs)("div",{className:Q().policyWrapper,children:[(0,l.jsx)(m.Qr,{name:"isSecurityPolicyAgree",control:C,render:e=>{let{field:t,fieldState:n}=e;return(0,l.jsx)(s.XZ,{...t,state:n.error?"error":"default",onClick:Y,"data-qa":F("consent_checkbox"),children:(0,l.jsxs)("div",{className:Q().securityLabel,children:["Я ознакомлен с"," ",(0,l.jsx)(s.rU,{target:"_blank",className:Q().securityLink,href:Z.Mo,onClick:q,"data-qa":F("review_pub_rules"),children:"Правилами публикации отзыва,"})," ",(0,l.jsx)(s.rU,{target:"_blank",className:Q().securityLink,href:Z.Bz,onClick:q,"data-qa":F("privacy_policy_link"),children:"политикой обработки персональных данных ПАО Московская Биржа"})," ","и настоящим даю"," ",(0,l.jsx)(s.rU,{target:"_blank",className:Q().securityLink,href:Z.L2,onClick:H,"data-qa":F("agreement_link"),children:"согласие на обработку"})," ","ПАО Московская Биржа моих персональных данных."]})})}}),(0,l.jsx)(s.zx,{size:"s",className:Q().sendButton,pending:S,disabled:S||!D,onClick:()=>{(0,A.D)({eventCategory:f,eventActionType:A.i.submit_button,eventActionText:(0,x.b)("Отправить на модерацию")}),N(K)()},dataQa:F("moderation_submit"),children:"Отправить на модерацию"})]})]})};var Y=n(93137),q=n.n(Y);let H=()=>{let[e,t]=(0,i.useState)(!1),[n,a]=(0,i.useState)(!1),r=async e=>{let{error:n}=await d(e);return t(!!n),!n&&(a(!0),setTimeout(()=>{a(!1)},1e4),!0)},c=()=>a(!1);return(0,l.jsx)("section",{className:q().section,children:(0,l.jsxs)(o.W2,{className:q().container,children:[(0,l.jsx)(s.Oo,{className:q().breadcrumbs,items:h}),(0,l.jsxs)("div",{className:q().wrapper,children:[(0,l.jsxs)("div",{className:q().headerWrapper,children:[(0,l.jsx)("h1",{className:q().title,"data-qa":F("heading"),children:"Ваш отзыв важен"}),(0,l.jsx)("div",{className:q().slogan,children:"Ваше мнение поможет улучшить качество услуг, а другим — сделать осознанный выбор"})]}),(0,l.jsx)(U,{onSend:r}),e&&(0,l.jsx)("div",{className:q().error,children:"Возникла ошибка при отправке Вашего отзыва. Пожалуйста, попробуйте позднее"}),(0,l.jsx)(u.s,{visible:n,color:"yellow",onClose:c,title:"Подтвердите почту",description:(0,l.jsxs)(l.Fragment,{children:["Чтобы зарегистрировать отзыв,",(0,l.jsx)("br",{}),"нам нужно подтвердить вашу почту.",(0,l.jsx)("br",{}),"Откройте письмо и перейдите по ссылке"]}),button:(0,l.jsx)(s.zx,{label:"Понятно",onClick:c,size:"s",className:q().modal_button})})]})]})})}},24269:function(e,t,n){"use strict";var a,r;n.d(t,{$:function(){return a}}),(r=a||(a={})).bank="bank",r.mfo="mfo",r.insurance="insurance"},42953:function(e,t,n){"use strict";n.d(t,{Bz:function(){return l},L2:function(){return a},Mo:function(){return i},fo:function(){return r}});let a="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",r="https://assets.finuslugi.ru/mp-assets/platform-rules.pdf",l="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf",i="https://assets.finuslugi.ru/mp-assets/review_publication_rules.pdf"},22870:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var a=n(24269);let r=e=>{var t,n;return{[a.$.bank]:(null==e?void 0:null===(t=e.services)||void 0===t?void 0:t.filter(e=>{let{target:t}=e;return"BANK"===t}))||[],[a.$.mfo]:(null==e?void 0:null===(n=e.services)||void 0===n?void 0:n.filter(e=>{let{target:t}=e;return"MFO"===t}))||[],[a.$.insurance]:(null==e?void 0:e.servicesSk)||[]}}},97735:function(e){e.exports={container:"DesktopModalContent_container__EK2ly",open:"DesktopModalContent_open__XkxcL","slide-up":"DesktopModalContent_slide-up__99zpp",close:"DesktopModalContent_close__u5SBd","slide-out":"DesktopModalContent_slide-out__RA1Vv",header:"DesktopModalContent_header__s8DfG",title:"DesktopModalContent_title__bEkHX",right:"DesktopModalContent_right__LTqNf",left:"DesktopModalContent_left__J_6SZ",controlContainer:"DesktopModalContent_controlContainer__MD8bp",icon:"DesktopModalContent_icon__1NDYt",content:"DesktopModalContent_content__8FJSs",overflowVisible:"DesktopModalContent_overflowVisible__9WwOg"}},79440:function(e){e.exports={footer:"DesktopModalFooter_footer__u0JXU"}},68307:function(e){e.exports={window:"DesktopModalLayout_window__ji08E"}},87743:function(e){e.exports={wrap:"NotificationModal_wrap__oRIjM",text:"NotificationModal_text__KR6Ci",title:"NotificationModal_title__Eo8N1",description:"NotificationModal_description__gcCoK",image:"NotificationModal_image__JPe46",modal:"NotificationModal_modal__Z_fVg"}},69764:function(e){e.exports={button:"FeedbackConfirmation_button__9AQ8l",loading:"FeedbackConfirmation_loading__TCKMp",content:"FeedbackConfirmation_content__1LrOB",title:"FeedbackConfirmation_title__yHZZV",load:"FeedbackConfirmation_load__SpA_O"}},93137:function(e){e.exports={title:"FeedbackContent_title__WdpgJ",section:"FeedbackContent_section__zZdrz",container:"FeedbackContent_container__CZIF8",breadcrumbs:"FeedbackContent_breadcrumbs__qRZb4",wrapper:"FeedbackContent_wrapper__HB7a3",headerWrapper:"FeedbackContent_headerWrapper__WgTd6",slogan:"FeedbackContent_slogan__lczNj",submitButton:"FeedbackContent_submitButton__evyPm",text:"FeedbackContent_text__HHkQb",modal_button:"FeedbackContent_modal_button__nchES",error:"FeedbackContent_error__OS_aa"}},83979:function(e){e.exports={wrapper:"FeedbackEstimate_wrapper__ssJ4R",icons:"FeedbackEstimate_icons__BVKn4",iconStar:"FeedbackEstimate_iconStar__U2tYg",activeIconStar:"FeedbackEstimate_activeIconStar__hVsMG",inactiveIconStar:"FeedbackEstimate_inactiveIconStar__2YtBf",label:"FeedbackEstimate_label__7sGmO",errorText:"FeedbackEstimate_errorText__GKFc2"}},91115:function(e){e.exports={wrapper:"FeedbackForm_wrapper__olOTU",rowWrapper:"FeedbackForm_rowWrapper__Od8BF",formElementWrapper:"FeedbackForm_formElementWrapper__N6r0K",regionSelect:"FeedbackForm_regionSelect__kYwfU",formElement:"FeedbackForm_formElement__mqODf",formSelect:"FeedbackForm_formSelect__boUcS",fieldWithLengthWrapper:"FeedbackForm_fieldWithLengthWrapper__bC36W",explanation:"FeedbackForm_explanation__YZP91",description:"FeedbackForm_description__W8gMi",personalDataWrapper:"FeedbackForm_personalDataWrapper__9Jpjx",label:"FeedbackForm_label__znwlv",policyWrapper:"FeedbackForm_policyWrapper__b_9J1",themeWrapper:"FeedbackForm_themeWrapper__XEAB_",estimateElementWrapper:"FeedbackForm_estimateElementWrapper__yQury",sendButton:"FeedbackForm_sendButton__tqsLZ",checkboxWrapper:"FeedbackForm_checkboxWrapper__NLBAC",securityLabel:"FeedbackForm_securityLabel__lhDEf",securityLink:"FeedbackForm_securityLink__efv3S"}},44283:function(e){e.exports={textLength:"styles_textLength__0gTbG"}}},function(e){e.O(0,[5295,1260,9206,1970,3544,5501,207,6989,3317,7082,2696,8946,2971,2117,1744],function(){return e(e.s=96292)}),_N_E=e.O()}]);