1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5368],{24020:(e,s,t)=>{"use strict";t.d(s,{A:()=>h});var a=t(37876),l=t(14232),r=t(14514),n=t(12498),i=t(28069),c=t(92103),d=t(55751),x=t(35003),o=t(65754),m=t(36867);let h=e=>{let{id:s,rate:t}=e,{t:m}=(0,r.Bd)(),h=(0,l.useRef)(null),u=(0,l.useContext)(n.A),{ratingReview:f}=(0,c.Y)(),j=async()=>{var e;let s=Math.min(5,Math.max(1,Math.round(Number(g.rate)||0)));if(!Number.isFinite(s))return;let t={rate:s,comment:g.text.trim().slice(0,2e3),reviewerName:null==(e=g.fullName)?void 0:e.trim().slice(0,150),entityId:g.id};await f(t),y(),C(!0)},[b,N]=(0,l.useState)([1,2,3,4,5]),[g,v]=(0,l.useState)({fullName:"",text:"",rate:t||0,id:0}),y=()=>{v({fullName:"",text:"",rate:t||0,id:0})},A=(e,s)=>{v({fullName:null==u?void 0:u.fullName,text:"",rate:e,id:s}),k()},[w,C]=(0,l.useState)(!1),k=()=>{var e;C(!1),null==(e=h.current)||e.open()},R=()=>{var e;null==(e=h.current)||e.close()};return(0,a.jsxs)("div",{children:[(0,a.jsx)(e=>{let{id:s}=e,l=[];for(let e=1;e<6;e++)l.push((0,a.jsx)(d.A,{color:"#6A6DCD",onClick:()=>{A(e,s)},sx:{cursor:"pointer",bgcolor:"transparent",border:0},component:"button",title:null==e?void 0:e.toString(),type:"button",children:p(t>=e)},e));return(0,a.jsx)("div",{className:"stars",children:l})},{id:s}),(0,a.jsx)(i.A,{ref:h,handleClose:()=>{},children:w?(0,a.jsxs)("div",{children:[(0,a.jsx)(x.A,{variant:"h3",pt:5,children:m("СпаÑибо за Ð²Ð°Ñ Ð¾ÑзÑв")}),(0,a.jsx)("div",{className:"flex items-center justify-center m-5",children:(0,a.jsx)(o.A,{onClick:R,variant:"contained",children:m("OK")})})]}):(0,a.jsxs)("form",{className:"rating radius-16 py-6 px-5",children:[(0,a.jsx)("div",{className:"text-lg ff-bold text-left",children:m("Ðак Ð²Ñ Ð¾ÑениваеÑе ÑÑÐ¾Ñ Ð¿ÑоекÑ")}),(0,a.jsx)("div",{className:"flex my-6 text-center",children:b.map((e,s)=>(0,a.jsx)("button",{onClick:()=>{v({...g,rate:e})},className:"bg-transparent border-0",title:null==e?void 0:e.toString(),type:"button",children:p(g.rate>=e)},s))}),(0,a.jsx)("textarea",{className:"p-2 rounded-lg w-full border-gray-300",value:g.text,placeholder:m("SendText"),onChange:e=>{v({...g,text:e.target.value})}}),(0,a.jsx)("input",{type:"text",className:"p-2 px-3 my-4 w-full rounded-lg border border-gray-300 mb-5",placeholder:m("Fullname"),value:g.fullName||"",onChange:e=>{v({...g,fullName:e.target.value})}}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("button",{className:"text-gray-800 p-2 border hover:bg-gray-200 border-gray-600 px-4 rounded-lg",type:"button",onClick:R,children:m("Cancel")}),(0,a.jsx)(o.A,{variant:"contained",disabled:""===g.text,onClick:j,children:m("Send")})]})]})})]})},p=e=>(0,a.jsx)(m.A,{size:22,strokeWidth:1.8,color:e?"#F59E0B":"#9CA3AF",fill:e?"#F59E0B":"transparent"})},36867:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(17963).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},75368:(e,s,t)=>{"use strict";t.d(s,{A:()=>g});var a=t(37876),l=t(14514),r=t(89099),n=t(24020),i=t(14232),c=t(82758),d=t.n(c);let x=e=>{let{ratingReview:s}=e,[t,l]=(0,i.useState)(s.rateStars.sort((e,s)=>s.rate-e.rate));return(0,a.jsxs)("div",{className:"flex flex-col",children:[t&&t.length>0&&t.map((e,t)=>(0,a.jsxs)("div",{className:"flex justify-between items-center w-full px-5",children:[(0,a.jsx)("span",{className:d().star+" ff-bold",children:e.rate}),(0,a.jsx)("div",{className:d().bar+" ",children:(0,a.jsx)("div",{className:d().content+" content bgBlue",style:{width:100*e.count/s.totalReviews+"%"}})}),(0,a.jsx)("span",{className:d().number+" ff-bold",children:e.count})]},t)),(0,a.jsx)("br",{})]})};var o=t(39745),m=t(55751),h=t(35003),p=t(63356),u=t(65754);let f=(0,t(17963).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
10 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var j=t(8728),b=t(36867),N=t(12498);let g=e=>{var s;let{ratingReview:t,organizationId:c,registrationId:d,docStatus:g,aDocStatus:v,createdDate:y,orgName:A,ownerFirstName:w,ownerLastName:C,ownerMiddleName:k,isFront:R,rate:_,ms:D,projectPassportPersons:S}=e,{t:E}=(0,l.Bd)(),F=(0,r.useRouter)(),[M,z]=(0,i.useState)(!1),[I,O]=(0,i.useState)([1,2,3,4,5]),B=i.useContext(N.A);return(0,a.jsxs)("div",{className:"block box-shadow pb-2",children:[(0,a.jsx)("h3",{className:"text-xl ff-bold",children:E("Information")}),((null==B?void 0:B.role)==="AUTHOR"||(null==B?void 0:B.role)==="AUTHOR_HEAD")&&"CONFIRMED"!==g&&(null==F||null==(s=F.query)?void 0:s.type)==="passport"?null:(0,a.jsxs)("p",{children:[(0,a.jsxs)("span",{className:"ff-bold",children:[E("RegistrationId"),":"]}),(0,a.jsx)("span",{className:"text-info",children:d})]}),(0,a.jsxs)(m.A,{pl:3,display:"flex",gap:1,children:[g&&(0,a.jsxs)(h.A,{variant:"subtitle1",children:[E("Status"),": "]}),g?(0,a.jsx)(p.A,{label:E(g).toUpperCase(),color:"CONFIRMED"===g?"success":"DELETED"===g?"error":"primary"}):(0,a.jsx)("span",{className:"text-info",children:E(v)})]}),(0,a.jsxs)("p",{children:[(0,a.jsxs)("span",{className:"ff-bold",children:[E("CreatedDate"),":"]})," ",(0,o.i)(y,"D.M.Y, T")]}),(0,a.jsxs)("p",{children:[(0,a.jsxs)("span",{className:"ff-bold",children:[E("Organization"),":"]})," \xa0",(0,a.jsx)("span",{className:"cursor-pointer on-hover-underline",onClick:()=>{F.push({pathname:"/projects",query:{IsOrganization:!0,text:c}})},children:A})]}),S&&S.length>0?(0,a.jsxs)("div",{className:"mx-3 my-3 rounded-xl border border-[#d9dff5] bg-[#EEF1FB] p-3",children:[(0,a.jsx)("div",{className:"mb-3 text-sm ff-bold text-slate-600",children:E("ResponsibleImplementationProject")}),S.map((e,s)=>(0,a.jsxs)("div",{className:s>0?"mt-3 border-t border-[#d9dff5] pt-3":"",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 px-3",children:[(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#6A6DCD] text-base ff-bold text-white",children:String(e.fullName||"?").trim().charAt(0).toUpperCase()}),(0,a.jsx)("span",{className:"text-base leading-tight ff-bold text-slate-900",children:e.fullName})]}),e.phoneNumber&&(0,a.jsxs)("a",{href:"tel:"+String(e.phoneNumber).replace(/[^\d+]/g,""),className:"mt-2 flex items-center gap-3 rounded-lg bg-white px-3 py-2 transition hover:bg-[#e3e8fb]",children:[(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#6A6DCD] text-white",children:(0,a.jsx)(f,{size:18})}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-col leading-tight",children:[(0,a.jsx)("span",{className:"text-[11px] uppercase tracking-wide text-slate-500",children:E("phoneNumber")}),(0,a.jsx)("span",{className:"whitespace-nowrap text-lg ff-bold text-slate-900",children:e.phoneNumber})]})]}),e.email&&(0,a.jsxs)("a",{href:"mailto:".concat(e.email),className:"mt-2 flex items-center gap-3 rounded-lg bg-white px-3 py-2 transition hover:bg-[#e3e8fb]",children:[(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#dfe3fa] text-primary",children:(0,a.jsx)(j.A,{size:16})}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-col leading-tight",children:[(0,a.jsx)("span",{className:"text-[11px] uppercase tracking-wide text-slate-500",children:"Email"}),(0,a.jsx)("span",{className:"truncate text-sm ff-bold text-slate-900",children:e.email})]})]})]},s))]}):(0,a.jsxs)("p",{className:"ff-bold",children:[E("ResponsibleImplementationProject"),":"]}),R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-7",children:[(0,a.jsxs)("span",{className:"pt-1 pb-2 ff-bold",children:[E("Reyting"),":"]}),(0,a.jsx)(n.A,{id:d,rate:_}),(0,a.jsxs)("span",{children:[" ",(0,a.jsxs)("span",{className:"ff-bold",children:[" ",t.average," "]})," (",t.totalReviews,")"]})]}),D.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-right pr-5",children:(0,a.jsx)(u.A,{onClick:()=>{z(!M)},children:E("ReadMessages")})}),M&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{ratingReview:t}),(0,a.jsx)("div",{className:"flex flex-col messages",children:D.map((e,s)=>(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"ff-bold",children:"".concat(e.reviewerName?e.reviewerName:E("Anonim"))}),": ",(0,a.jsx)("br",{})," ",e.comment," ",(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"flex text-right my-2",children:I.map((s,t)=>(0,a.jsx)(m.A,{color:"#6A6DCD",children:e.rate>=s?(0,a.jsx)(b.A,{fontSize:"small"}):(0,a.jsx)(b.A,{size:20})},t))})]},s))})]})]})]}
1),!R&&(0,a.jsxs)("p",{suppressHydrationWarning:!0,children:[(0,a.jsxs)("span",{className:"ff-bold",children:[E("author"),":"]}),(0,a.jsxs)("span",{children:["\xa0",C,"\xa0",w&&w[0],". \xa0",k&&k[0],"."]})]})]})}},82758:e=>{e.exports={bar:"Rating_bar__P8MMp",content:"Rating_content__v1Ljv",star:"Rating_star__06gRp",number:"Rating_number__d8_bD"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.