1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,789841,e=>{e.v({bg:"ModalNotification-module-scss-module__JiPnrW__bg",closeBox:"ModalNotification-module-scss-module__JiPnrW__closeBox",errorHeadText:"ModalNotification-module-scss-module__JiPnrW__errorHeadText",headIcon:"ModalNotification-module-scss-module__JiPnrW__headIcon",iconFillColor:"ModalNotification-module-scss-module__JiPnrW__iconFillColor",iconWarningFillColor:"ModalNotification-module-scss-module__JiPnrW__iconWarningFillColor",infoTextBox:"ModalNotification-module-scss-module__JiPnrW__infoTextBox",modalPage:"ModalNotification-module-scss-module__JiPnrW__modalPage"})},263298,e=>{"use strict";var t,i=e.i(999161);function a(){return(a=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,e=>i.createElement("svg",a({width:22,height:21,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=i.createElement("path",{d:"M11 2.375C8.07031 2.375 5.41406 3.9375 3.92969 6.4375C2.48438 8.97656 2.48438 12.0625 3.92969 14.5625C5.41406 17.1016 8.07031 18.625 11 18.625C13.8906 18.625 16.5469 17.1016 18.0312 14.5625C19.4766 12.0625 19.4766 8.97656 18.0312 6.4375C16.5469 3.9375 13.8906 2.375 11 2.375ZM11 20.5C7.40625 20.5 4.125 18.625 2.32812 15.5C0.53125 12.4141 0.53125 8.625 2.32812 5.5C4.125 2.41406 7.40625 0.5 11 0.5C14.5547 0.5 17.8359 2.41406 19.6328 5.5C21.4297 8.625 21.4297 12.4141 19.6328 15.5C17.8359 18.625 14.5547 20.5 11 20.5ZM11 5.5C11.5078 5.5 11.9375 5.92969 11.9375 6.4375V10.8125C11.9375 11.3594 11.5078 11.75 11 11.75C10.4531 11.75 10.0625 11.3594 10.0625 10.8125V6.4375C10.0625 5.92969 10.4531 5.5 11 5.5ZM12.25 14.25C12.25 14.9531 11.6641 15.5 11 15.5C10.2969 15.5 9.75 14.9531 9.75 14.25C9.75 13.5859 10.2969 13 11 13C11.6641 13 12.25 13.5859 12.25 14.25Z",fill:"#B35106"})))])},678082,638064,e=>{"use strict";var t=e.i(380447),i=e.i(789841),a=e.i(926525),s=e.i(367634),l=e.i(742732),o=e.i(605460),n=e.i(952208),r=e.i(524668),d=e.i(263298);e.s(["ModalNotification",0,e=>{let u=(0,r.useTranslations)();return(0,t.jsx)("div",{children:(0,t.jsx)(s.Modal,{open:e.open,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,t.jsxs)(a.Box,{sx:o.styleModal,className:i.default.modalPage,children:[(0,t.jsx)("div",{className:i.default.headIcon,children:e?.warning?(0,t.jsx)(d.default,{width:78,className:i.default.iconWarningFillColor}):(0,t.jsx)(n.default,{width:78,className:i.default.iconFillColor})}),(0,t.jsx)("div",{className:`flex items-center justify-center ${i.default.errorHeadText}`,children:(0,t.jsx)("h2",{children:e?.headText??u("Common.ConfirmDialog.errorText")})}),(0,t.jsx)("div",{className:i.default.infoTextBox,children:(0,t.jsx)(l.Typography,{component:"p",id:"modal-modal-description",children:e?.errorText})}),(0,t.jsx)("div",{className:i.default.closeBox,children:(0,t.jsx)("button",{type:"button",onClick:e.close,children:u("Common.ConfirmDialog.close")})})]})})})}],638064),e.s([],678082)},786892,e=>{e.v({errorText:"FileUploaderForRin-module-scss-module__QW78PW__errorText",fileUploaderContainer:"FileUploaderForRin-module-scss-module__QW78PW__fileUploaderContainer",filesBox:"FileUploaderForRin-module-scss-module__QW78PW__filesBox",label:"FileUploaderForRin-module-scss-module__QW78PW__label",selectedFilesBox:"FileUploaderForRin-module-scss-module__QW78PW__selectedFilesBox"})},800305,e=>{e.v({addNewButton:"NotificationsContainer-module-scss-module__pAxuUa__addNewButton",commentsFileUploaderBox:"NotificationsContainer-module-scss-module__pAxuUa__commentsFileUploaderBox",default_status:"NotificationsContainer-module-scss-module__pAxuUa__default_status",detailListTd:"NotificationsContainer-module-scss-module__pAxuUa__detailListTd",detailListTh:"NotificationsContainer-module-scss-module__pAxuUa__detailListTh",downloadButton:"NotificationsContainer-module-scss-module__pAxuUa__downloadButton",downloadButtonBox:"NotificationsContainer-module-scss-module__pAxuUa__downloadButtonBox",err_input_counter:"NotificationsContainer-module-scss-module__pAxuUa__err_input_counter",error_text:"NotificationsContainer-module-scss-module__pAxuUa__error_text",feedbackBox:"NotificationsContainer-module-scss-module__pAxuUa__feedbackBox",feedbackBoxTitle:"NotificationsContainer-module-scss-module__pAxuUa__feedbackBoxTitle",feedbackContainer:"NotificationsContainer-module-scss-module__pAxuUa__feedbackContainer",feedbackRatingModalHeader:"NotificationsContainer-module-scss-module__pAxuUa__feedbackRatingModalHeader",feedback_detail_icon:"NotificationsContainer-module-scss-module__pAxuUa__feedback_detail_icon",fileNameBox:"NotificationsContainer-module-scss-module__pAxuUa__fileNameBox",filterButton:"NotificationsContainer-module-scss-module__pAxuUa__filterButton",input_counter:"NotificationsContainer-module-scss-module__pAxuUa__input_counter",isRead:"NotificationsContainer-module-scss-module__pAxuUa__isRead",link:"NotificationsContainer-module-scss-module__pAxuUa__link",
1nameSurnameLg:"NotificationsContainer-module-scss-module__pAxuUa__nameSurnameLg",nameSurnameLgUser:"NotificationsContainer-module-scss-module__pAxuUa__nameSurnameLgUser",newAppBtn:"NotificationsContainer-module-scss-module__pAxuUa__newAppBtn",notRead:"NotificationsContainer-module-scss-module__pAxuUa__notRead",operatorInfoBox:"NotificationsContainer-module-scss-module__pAxuUa__operatorInfoBox",operatorNameTime:"NotificationsContainer-module-scss-module__pAxuUa__operatorNameTime",rightButtons:"NotificationsContainer-module-scss-module__pAxuUa__rightButtons",root:"NotificationsContainer-module-scss-module__pAxuUa__root",sendFeedbackRatingButton:"NotificationsContainer-module-scss-module__pAxuUa__sendFeedbackRatingButton",status_cancelled:"NotificationsContainer-module-scss-module__pAxuUa__status_cancelled",status_info:"NotificationsContainer-module-scss-module__pAxuUa__status_info",status_success:"NotificationsContainer-module-scss-module__pAxuUa__status_success",status_warning:"NotificationsContainer-module-scss-module__pAxuUa__status_warning",submit_button:"NotificationsContainer-module-scss-module__pAxuUa__submit_button",tab:"NotificationsContainer-module-scss-module__pAxuUa__tab",table_items:"NotificationsContainer-module-scss-module__pAxuUa__table_items"})},362597,146445,e=>{"use strict";var t,i,a=e.i(999161);function s(){return(s=Object.assign.bind()).apply(null,arguments)}function l(){return(l=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,e=>a.createElement("svg",s({width:16,height:16,viewBox:"0 0 16 16",fill:"#e5e7eb",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=a.createElement("path",{d:"M11.6668 3.50392V11C11.6668 13.0251 10.0252 14.6667 8.00016 14.6667C5.97512 14.6667 4.3335 13.0251 4.3335 11V3.77782C4.3335 2.42779 5.42791 1.33337 6.77794 1.33337C8.12797 1.33337 9.22239 2.42779 9.22239 3.77782V10.9639C9.22239 11.6389 8.67518 12.1861 8.00016 12.1861C7.32515 12.1861 6.77794 11.6389 6.77794 10.9639V4.43415",stroke:"#e5e7eb",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))],362597),e.s(["default",0,e=>a.createElement("svg",l({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("path",{d:"M11.6668 3.50392V11C11.6668 13.0251 10.0252 14.6667 8.00016 14.6667C5.97512 14.6667 4.3335 13.0251 4.3335 11V3.77782C4.3335 2.42779 5.42791 1.33337 6.77794 1.33337C8.12797 1.33337 9.22239 2.42779 9.22239 3.77782V10.9639C9.22239 11.6389 8.67518 12.1861 8.00016 12.1861C7.32515 12.1861 6.77794 11.6389 6.77794 10.9639V4.43415",stroke:"#1072DE",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))],146445)},793854,e=>{"use strict";e.s([]),e.i(738723)},120700,416875,109550,e=>{"use strict";var t,i,a,s,l,o,n,r=e.i(999161);function d(){return(d=Object.assign.bind()).apply(null,arguments)}function u(){return(u=Object.assign.bind()).apply(null,arguments)}function c(){return(c=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,e=>r.createElement("svg",d({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0003 9.16667C11.8387 9.16667 13.3337 7.67167 13.3337 5.83333C13.3337 3.995 11.8387 2.5 10.0003 2.5C8.16199 2.5 6.66699 3.995 6.66699 5.83333C6.66699 7.67167 8.16199 9.16667 10.0003 9.16667Z",fill:"white"})),i||(i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0003 17.5C15.4612 17.5 15.8337 17.1267 15.8337 16.6667C15.8337 13.45 13.2162 10.8333 10.0003 10.8333C6.78449 10.8333 4.16699 13.45 4.16699 16.6667C4.16699 17.1267 4.53949 17.5 5.00033 17.5H15.0003Z",fill:"white"})))],120700),e.s(["default",0,e=>r.createElement("svg",u({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.50016 9.33331C2.86835 9.33331 3.16683 9.63179 3.16683 9.99998V12.6666C3.16683 12.8435 3.23707 13.013 3.36209 13.1381C3.48712 13.2631 3.65669 13.3333 3.8335 13.3333H13.1668C13.3436 13.3333 13.5132 13.2631 13.6382 13.1381C13.7633 13.013 13.8335 12.8435 13.8335 12.6666V9.99998C13.8335 9.63179 14.132 9.33331 14.5002 9.33331C14.8684 9.33331 15.1668 9.63179 15.1668 9.99998V12.6666C15.1668 13.1971 14.9561 13.7058 14.581 14.0809C14.206 14.4559 13.6973 14.6666 13.1668 14.6666H3.8335C3.30306 14.6666 2.79435 14.4559 2.41928 14.0809C2.04421 13.7058 1.8335 13.1971 1.8335 12.6666V9.99998C1.8335 9.63179 2.13197 9.33331 2.50016 9.33331Z",fill:"#71839B"})),s||(s=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.69526 6.19526C4.95561 5.93491 5.37772 5.93491 5.63807 6.19526L8.5 9.05719L11.3619 6.19526C11.6223 5.93491 12.0444 5.93491 12.3047 6.19526C12.5651 6.45561 12.5651 6.87772 12.3047 7.13807L8.9714 10.4714C8.71106 10.7318 8.28894 10.7318 8.0286 10.4714L4.69526 7.13807C4.43491 6.87772 4.43491 6.45
1561 4.69526 6.19526Z",fill:"#71839B"})),l||(l=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.50016 1.33331C8.86835 1.33331 9.16683 1.63179 9.16683 1.99998V9.99998C9.16683 10.3682 8.86835 10.6666 8.50016 10.6666C8.13197 10.6666 7.8335 10.3682 7.8335 9.99998V1.99998C7.8335 1.63179 8.13197 1.33331 8.50016 1.33331Z",fill:"#71839B"})))],416875),e.s(["default",0,e=>r.createElement("svg",c({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=r.createElement("g",{clipPath:"url(#clip0_444_193)"},r.createElement("path",{opacity:.4,d:"M5.5 5.5C5.5 3.56953 7.06953 2 9 2H17.75V9C17.75 9.96797 18.532 10.75 19.5 10.75H26.5V26.5C26.5 28.4305 24.9305 30 23 30H9C7.06953 30 5.5 28.4305 5.5 26.5V5.5ZM11.625 16C11.1438 16 10.75 16.3938 10.75 16.875C10.75 17.3562 11.1438 17.75 11.625 17.75H20.375C20.8562 17.75 21.25 17.3562 21.25 16.875C21.25 16.3938 20.8562 16 20.375 16H11.625ZM11.625 19.5C11.1438 19.5 10.75 19.8937 10.75 20.375C10.75 20.8563 11.1438 21.25 11.625 21.25H20.375C20.8562 21.25 21.25 20.8563 21.25 20.375C21.25 19.8937 20.8562 19.5 20.375 19.5H11.625ZM11.625 23C11.1438 23 10.75 23.3937 10.75 23.875C10.75 24.3563 11.1438 24.75 11.625 24.75H20.375C20.8562 24.75 21.25 24.3563 21.25 23.875C21.25 23.3937 20.8562 23 20.375 23H11.625Z",fill:"#99968D"}),r.createElement("path",{d:"M26.25 10.75L17.5 2V9C17.5 9.96797 18.282 10.75 19.25 10.75H26.25ZM11.375 16C10.8937 16 10.5 16.3938 10.5 16.875C10.5 17.3562 10.8937 17.75 11.375 17.75H20.125C20.6062 17.75 21 17.3562 21 16.875C21 16.3938 20.6062 16 20.125 16H11.375ZM11.375 19.5C10.8937 19.5 10.5 19.8937 10.5 20.375C10.5 20.8563 10.8937 21.25 11.375 21.25H20.125C20.6062 21.25 21 20.8563 21 20.375C21 19.8937 20.6062 19.5 20.125 19.5H11.375ZM11.375 23C10.8937 23 10.5 23.3937 10.5 23.875C10.5 24.3563 10.8937 24.75 11.375 24.75H20.125C20.6062 24.75 21 24.3563 21 23.875C21 23.3937 20.6062 23 20.125 23H11.375Z",fill:"#99968D"}))),n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_444_193"},r.createElement("rect",{width:21,height:28,fill:"white",transform:"translate(5.5 2)"})))))],109550)},263273,e=>{e.v({link:"ListOfFeadBack-module-scss-module__4IqHqW__link",subtitle:"ListOfFeadBack-module-scss-module__4IqHqW__subtitle",table_head_items:"ListOfFeadBack-module-scss-module__4IqHqW__table_head_items",table_items:"ListOfFeadBack-module-scss-module__4IqHqW__table_items",table_items_title:"ListOfFeadBack-module-scss-module__4IqHqW__table_items_title",title:"ListOfFeadBack-module-scss-module__4IqHqW__title",title_cell:"ListOfFeadBack-module-scss-module__4IqHqW__title_cell"})},120521,e=>{e.v({buttonsBox:"CitizenSupportForm-module-scss-module__Ni-GQq__buttonsBox",errorTextFile:"CitizenSupportForm-module-scss-module__Ni-GQq__errorTextFile",fileUploaderBox:"CitizenSupportForm-module-scss-module__Ni-GQq__fileUploaderBox",formBox:"CitizenSupportForm-module-scss-module__Ni-GQq__formBox",formBtn:"CitizenSupportForm-module-scss-module__Ni-GQq__formBtn",formInputBox:"CitizenSupportForm-module-scss-module__Ni-GQq__formInputBox",infoErrorText:"CitizenSupportForm-module-scss-module__Ni-GQq__infoErrorText",infoText:"CitizenSupportForm-module-scss-module__Ni-GQq__infoText",infoWarning:"CitizenSupportForm-module-scss-module__Ni-GQq__infoWarning",inputBox:"CitizenSupportForm-module-scss-module__Ni-GQq__inputBox",loadingBox:"CitizenSupportForm-module-scss-module__Ni-GQq__loadingBox",textArea:"CitizenSupportForm-module-scss-module__Ni-GQq__textArea",titleInput:"CitizenSupportForm-module-scss-module__Ni-GQq__titleInput"})},381547,515817,83055,267455,e=>{"use strict";e.s([],381547),e.s(["ListOfFeadBack",()=>P,"formatDateFromStrForCitizenBox",()=>$],267455);var t=e.i(380447),i=e.i(263273),a=e.i(778432),s=e.i(389916),l=e.i(269107),o=e.i(562810),n=e.i(752455),r=e.i(184218),d=e.i(672437),u=e.i(929673),c=e.i(573120),m=e.i(693774),x=e.i(599478),p=e.i(252645),f=e.i(524668);e.i(716471);var h=e.i(216722);e.i(762104);var _=e.i(844947);e.s([],83055),e.s(["CitizenSupportForm",()=>q,"allowedFileTypes",()=>D,"fileSizeLimit",()=>L,"handleBlockFirstSpaceSymbolInput",()=>A,"useFileErrorModal",()=>I],515817);var g=e.i(452616),C=e.i(999161),b=e.i(120521),N=e.i(602911),j=e.i(480364),v=e.i(297228),F=e.i(239502),w=e.i(773589);e.i(933044);var S=e.i(356675),y=e.i(708922);e.i(793854);var B=e.i(738723);e.i(678082);var T=e.i(638064),E=e.i(772738),M=e.i(620161);let k=E.z.object({phone:E.z.string({error:e=>void 0===e.input?"phoneErrorMessage":void 0}).min(17,{error:"phoneNumberFormatError"}),title:E.z.string({error:e=>void 0===e.input?"titleErrorMessage":void 0}).min(1,{error:"titleErrorMessage"}),description:E.z.string({error:e=>void 0===e.input?"descriptionErrorMessage":void 0}).min(15,{error:"minLenghtFifteen"})}),R=(0,M.toFormikValidationSchema)(k);e.i(939753);var U=e.i(826593),z=e.i(929694);let L=0xa00000,A=(e,t,i)=>{1===i.length&&i.startsWith(" ")||t(e)},D=["image/jpeg","image/jpg","image/png","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain","video/mp4"],H=C.default.forwardRef(function({onChange:e,name:i,...a},s){return(0,t.jsx)(S.IMaskInput,{...a,mask:"+994 00 000 00 00",definitions:{0:/[0-9]/},inputRef:s,onAccept:t=>e({target:{name:i,value:t}}),overwrite:!0})}),q=({handleCloseModal:e,setOpenNewAppModal:i,getListIssues:a,setPage:s})=>{let{notificationModalHasWarning:l,notificationModalHeadText:o,errorFileNotificationModal:n,errorFileNotificationModalText:r,hasSumSizeError:d,showFileErrorModal:u,setErrorFileNotificationModal:c}=I(),m=(0,f.useTranslations)("notifications"),{data:x,trigger:p,isMutating:h}=(0,y.useRequestMutation)("citizenSupportFileUpload",{module:"citizenSupportFileUpload",method:"POST",headers:{"Content-Type":"multipart/form-data"},noErrorPopup:!0}),{trigger:_,isMutating:S}=(0,y.useRequestMutation)("createIssue",{module:"citizenSupport",method:"POST",noErrorPopup:!1}),[,E]=(0,C.useState)(null),[M,k]=(0,C.useState)([]),[q,W]=(0,C.useState)(!1),[$,P]=(0,C.useState)(),[O,V]=(0,C.useState)(null),[Q,G]=(0,C.useState)(""),[Y,Z]=(0,C.useState)([]),[,X]=(0,C.useState)(!0),[J,K]=(0,C.useState)(0),[ee,et]=(0,C.useState)(0),ei=(0,C.useRef)(null),ea=async e=>await p({body:e}),es=(e,t)=>0===t||t>0&&!e,el=async(e,t,i)=>{if(E(e),e){if(!D.includes(e.type)||e?.size===0)return void u(!0,"fileTypeError");
1if(e?.size>L)return void u(!0,"fileSizeError10mb");let t=new FormData;t.append("file",e);try{let a=await ea(t);k(t=>[...t,{fileId:a?.service_file_id,size:e?.size/1e3}]),G(a?.service_file_id),i(a?.service_file_id)}catch(e){u(!1,e?.response?.data?.description)}}},eo=e=>{null!==e&&(V(e),Z(t=>t?.filter(t=>t!==e)),k(t=>t?.filter(t=>t?.fileId!==e)),X(!0))};(0,C.useEffect)(()=>{P(()=>M?.reduce((e,t)=>e+t.size,0))},[M]),(0,C.useEffect)(()=>{$&&$>1e4?(u(!0,"totalFileError"),eo(Q)):V(null)},[$]),(0,C.useEffect)(()=>{x&&Z([...Y,x?.service_file_id])},[x]);let en=(e,t)=>{e?K(t?.length):et(t?.length)},er=async(e,t)=>{W(!0),s(1);let l={phone:e.phone.replace(/\s+/g,""),title:e?.title,body:e?.description,attachments:Y||null};try{await _({body:l}),i(!1),(0,z.enqueueSnackbar)(m("successToastForCreate"),{variant:"success",transitionDuration:{enter:240,exit:150},style:{backgroundColor:"#EDF6FF",color:"#3B474D",borderRadius:"12px",maxWidth:"400px",padding:"20px"}}),a(),Z([]),P(0),k([])}catch(e){}X(!0),t()};return(0,t.jsxs)("div",{className:`${b.default.formBox} `,children:[(0,t.jsx)(g.Formik,{initialValues:{phone:"",title:"",description:""},validationSchema:R,onSubmit:(e,{resetForm:t})=>{er(e,t)},innerRef:ei,validateOnChange:!0,children:({handleSubmit:i,handleChange:a,values:s,errors:l,touched:o,submitCount:n})=>(0,t.jsxs)(g.Form,{onSubmit:e=>{O?e.preventDefault():i(e)},className:"w-full",children:[(0,t.jsxs)("div",{className:`${b.default.formInputBox} ${Y?.length>0?"pb-[16px]":"pb-[21px]"}`,children:[(0,t.jsxs)(j.FormControl,{className:b.default.inputBox,children:[(0,t.jsx)(F.FormLabel,{className:b.default.label,children:m("phoneNUmber")}),(0,t.jsx)(w.TextField,{onChange:e=>{a(e)},value:s?.phone,name:"phone",placeholder:"+994 XX XXX XX XX",slotProps:{input:{inputComponent:H}}}),l?.phone&&o?.phone?(0,t.jsxs)(v.FormHelperText,{className:`${b.default.infoErrorText} text-[#f03d3d]`,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),m(l?.phone)]}):(0,t.jsxs)(v.FormHelperText,{className:b.default.infoErrorText,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),m("phoneInfoMessage")]})]}),(0,t.jsxs)(j.FormControl,{className:b.default.inputBox,children:[(0,t.jsx)(F.FormLabel,{className:b.default.label,children:m("appealTitle")}),(0,t.jsx)(w.TextField,{placeholder:`${m("placeholderEnter")}`,autoComplete:"off",onChange:e=>{let t=e.target.value;en(!0,t),A(e,a,t)},value:s?.title,name:"title",className:b.default.titleInput,slotProps:{htmlInput:{maxLength:100}}}),l?.title&&o?.title&&(0,t.jsxs)(v.FormHelperText,{className:`${b.default.infoErrorText} text-[#f03d3d]`,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),m(l?.title)]}),es(l?.title,n)&&(0,t.jsxs)(v.FormHelperText,{className:`${b.default.infoErrorText} ${100===J?b.default.infoWarning:""}`,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),100===J?`${J}/100 ${m("symbolErrorsMore100")}`:`${J}/100`]})]}),(0,t.jsxs)(j.FormControl,{className:b.default.inputBox,children:[(0,t.jsx)(F.FormLabel,{className:b.default.label,children:m("requestDesc")}),(0,t.jsx)(w.TextField,{className:b.default.textArea,placeholder:`${m("placeholderEnter")}`,autoComplete:"off",onChange:e=>{let t=e.target.value;en(!1,t),A(e,a,t)},value:s?.description,name:"description",multiline:!0,rows:4,slotProps:{htmlInput:{maxLength:1500}}}),l?.description&&o?.description&&(0,t.jsxs)(v.FormHelperText,{className:`${b.default.infoErrorText} text-[#f03d3d]`,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),m(l?.description)]}),es(l?.description,n)&&(0,t.jsx)(t.Fragment,{children:0===ee?(0,t.jsxs)(v.FormHelperText,{className:`${b.default.infoErrorText} ${b.default.infoText} bottom-[-18px] flex`,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),(0,t.jsx)("div",{children:m("descInfoMessage")})]}):(0,t.jsxs)(v.FormHelperText,{className:`${b.default.infoErrorText} ${1500===ee?b.default.infoWarning:""}`,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),1500===ee?`${ee}/1500 ${m("symbolErrorsMore1500")}`:`${ee}/1500`]})})]}),(0,t.jsx)(j.FormControl,{fullWidth:!0,className:`${b.default.inputBox} ${es(l?.description,n)?"mt-[26px]":"mt-[16px]"}`,children:(0,t.jsx)("div",{className:b.default.fileUploaderBox,children:(0,t.jsx)(B.FileUploaderForRin,{fileSizeLimit:10,disabled:Y?.length===3||!!h,isMultiple:!0,uploadText:`${m("uploadFile")}`,uploadSpanColor:Y?.length===3||h?"text-[#e5e7eb]":"text-[#315AB5]",uploadSpanWeight:"font-semibold",formSubmitted:q,hasErrorSumFileSize:d,maxSelectedFile:3,onClear:eo,onFileChange:el,deletedFileId:O,fileTypes:D,showFileErrorModal:u})})})]}),(0,t.jsxs)("div",{className:`${b.default.buttonsBox} sticky bottom-[-20px] z-100 w-full bg-white py-2`,children:[(0,t.jsx)(N.Button,{variant:"default",onClick:e,className:`${b.default.formBtn} mt-2`,children:m("cancel")}),(0,t.jsx)(N.Button,{type:"submit",variant:"primary",className:`${b.default.formBtn} mt-2`,disabled:S||h,children:m("send")})]})]})}),(0,t.jsx)(T.ModalNotification,{open:n,errorText:r,close:()=>{c(!1)},headText:o,warning:l}),(S||h)&&(0,t.jsx)("div",{className:b.default.loadingBox,children:(0,t.jsx)(U.CustomLoading,{})})]})},I=()=>{let e=(0,f.useTranslations)("notifications"),[t,i]=(0,C.useState)(!1),[a,s]=(0,C.useState)(""),[l,o]=(0,C.useState)(!1),[n,r]=(0,C.useState)(""),[d,u]=(0,C.useState)(!1);return{notificationModalHasWarning:t,notificationModalHeadText:a,errorFileNotificationModal:l,errorFileNotificationModalText:n,hasSumSizeError:d,showFileErrorModal:(t,a,l="",n=!1)=>{i(n),s(l?e(l):""),o(!0),r(t?e(a):a),u(t)},setErrorFileNotificationModal:o}};var W=e.i(307687);let $=(e,t=!1,i=!1)=>e?p.default.utc(e,"DD.MM.YYYY HH:mm").local().format(t?i?"DD.MM.YYYY - HH:mm":"DD.MM.YYYY HH:mm":"DD.MM.YYYY"):"",P=({openNewAppModal:e,setOpenNewAppModal:p})=>{let g=(0,f.useTranslations)("notifications"),b=(0,f.useTranslations)("Common");(0,W.useRouter)();let[N,j]=(0,C.useState)(1),{trigger:v,data:F,isMutating:w,error:S}=(0,y.useRequestMutation)("getIssuesList",{module:"citizenSupport",method:"GET",params:{pageNumber:N-1,pageSize:10}}),B=()=>{try{v()}catch(e){}};(0,C.useEffect)(()=>{B()},[N]);let T=()=>{p(!1)};return w?(0,t.jsxs)("div",{className:"section_notification container mx-auto",children:[(0,t.jsx)(u.Skeleton,{height:120}),(0,t.jsx)(u.Skeleton,{height:120}),(0,t.jsx)(u.Skeleton,{height:120})]}):(0,t.jsxs)(t.Fragment,{children:[S&&S?.response?.status===404||F?.data?.length===0?(0,t.jsx)(h.CustomNotFoundContainer,{agency:[],containerWidth:"100%",title:g("notFoundRequest")}):(0,t.jsxs)("div",{children:[" ",(0,t.jsx)(c.TableContainer,{className:"overflow-x-auto",children:(0,t.jsxs)(a.default,{className:"max-xl:w-[1200px] max-md:w-[900px]",children:[(0,t.jsx)(o.default,{children:(0,t.jsxs)(n.default,{className:"grid grid-cols-6",children:[(0,t.jsx)(l.default,{component:"td",className:`${i.default.table_head_items} col-span-2`,colSpan:2,children:g("title")}),(0,t.jsx)(l.default,{component:"td",className:i.default.table_head_items,children:g("date")}),(0,t.jsxs)(l.default,{component:"td",className:i.default.table_head_items,children:[g("requestNumber"),""]}),(0,t.jsx)(l.default,{component:"td",className:i.default.table_head_items,children:"Status"})]})}),(0,t.jsx)(s.default,{children:F?.data?.map((e,a)=>(0,t.jsxs)(n.default,{className:"mb-4 grid grid-cols-6 items-center rounded-[20px] border border-solid text-left",children:[(0,t.jsx)(l.default,{className:`${i.default.table_items} ${i.default.table_items_title} col-span-2`,component:"td",colSpan:2,children:(0,t.jsxs)("div",{className:i.default.title_cell,children:[(0,t.jsx)("span",{className:i.default.title,children:e?.category?.name}),(0,t.jsx)("span",{className:i.default.subtitle,children:e?.body})]})}),(0,t.jsx)(l.default,{className:`${i.default.table_items} `,component:"td",children:$(e?.create_at,!0,!1)}),(0,t.jsx)(l.default,{className:`${i.default.table_items}`,component:"td",children:e?.issue_number}),(0,t.jsx)(l.default,{className:`${i.default.table_items} `,component:"td",children:(0,t.jsx)(r.Chip,{label:b(`Statusses.${e?.status?.toLocaleLowerCase()}`),variant:x.statuses[String(e?.status).toLocaleLowerCase()]?.type})}),(0,t.jsx)(l.default,{className:`${i.default.link} `,component:"td",children:(0,t.jsx)(m.default,{href:`${e?.issue_number?`/applications/${e?.issue_number}`:"#"}`,children:g("more")})})]},a))})]})}),F?.total_pages>1&&(0,t.jsx)("div",{className:"my-[40px] flex justify-center",children:(0,t.jsx)(d.Pagination,{count:F?.total_pages,color:"primary",page:N,onChange:(e,t)=>
1{j(t)}})})]}),(0,t.jsx)(_.CustomModal,{width:"sm",rounded:"1rem",blur:"1px",header:`${g("newAppeal")}`,isOpen:!!e,onClose:T,customClass:!0,children:(0,t.jsx)(q,{handleCloseModal:T,setOpenNewAppModal:p,getListIssues:B,setPage:j})})]})}},136788,706627,891866,e=>{"use strict";e.s(["FeedbackDetail",()=>O,"getSafeFileName",()=>P],136788),e.i(707633);var t=e.i(380447),i=e.i(708922),a=e.i(307687),s=e.i(999161),l=e.i(800305),o=e.i(362597),n=e.i(146445);e.i(793854);var r=e.i(738723),d=e.i(120700),u=e.i(602911),c=e.i(184218),m=e.i(929673),x=e.i(92572),p=e.i(572036),f=e.i(573120),h=e.i(181726),_=e.i(157692),g=e.i(742732),C=e.i(452616),b=e.i(772738);e.i(811495);var N=e.i(715124),j=e.i(620161),v=e.i(389916);e.i(716471);var F=e.i(216722),w=e.i(929694),S=e.i(416875),y=e.i(233153),B=e.i(109550),T=e.i(599478);e.i(381547);var E=e.i(267455),M=e.i(524668);e.i(939753);var k=e.i(826593);e.i(678082);var R=e.i(638064);e.i(83055);var U=e.i(515817),z=e.i(778089),L=e.i(43147),A=e.i(944849),D=e.i(78948);e.i(762104);var H=e.i(844947),q=e.i(653219);let I=({data:e,getApi:a,goHomeBack:o})=>{let n,[r,d]=s.default.useState(0),u=(0,M.useTranslations)("notifications"),{notifySuccess:c,notifyError:m}=(n=(0,M.useTranslations)("notifications"),{notifySuccess:()=>{(0,w.enqueueSnackbar)(n("successToast"),{variant:"success",transitionDuration:{enter:240,exit:150},style:{backgroundColor:"#EDF6FF",color:"#3B474D",borderRadius:"12px",maxWidth:"400px",padding:"20px"}})},notifyError:e=>{let t=e?.response?.data?.description||n("errorToast");(0,w.enqueueSnackbar)(t,{variant:"error",transitionDuration:{enter:240,exit:150},style:{backgroundColor:"#FAE8E7",maxWidth:"400px",padding:"20px",color:"#3B474D",borderRadius:"12px"}})}}
1),[x,p]=(0,s.useState)(0),[f,h]=(0,s.useState)(!1),_=D.object().shape({rating:D.number().required(u("PleaseAddRating")).min(1,u("PleaseAddRating")),text:D.string().when("rating",{is:e=>e<=3,then:e=>e.required(u("addNote")).min(1,u("addNote")).max(500,u("MaxSymbolCount",{count:500})),otherwise:e=>e.notRequired().max(500,u("MaxSymbolCount",{count:500}))})}),{trigger:g,isMutating:b}=(0,i.useRequestMutation)("createFeedbackRating",{method:"POST",module:"citizenSupport"},{onSuccess:()=>{h(!1),a(),c(),o??o()},onError:e=>{console.error("Error submitting feedback:",e),m(e)}}),N=(0,C.useFormik)({initialValues:{text:"",rating:x},enableReinitialize:!0,validationSchema:_,onSubmit:async t=>{if(!t.rating||t.rating&&t.rating<=3)try{await g({body:{text:t.text,result:t.rating,service_label:`SUPPORT_${e?.issue_number}`}})}catch(e){console.error("Error submitting feedback:",e);return}else await g({body:{text:t.text||null,result:t.rating,service_label:`SUPPORT_${e?.issue_number}`}})}});return(0,s.useEffect)(()=>{N.values.rating!==x&&N.setFieldValue("rating",x)},[x]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:l.default.feedbackContainer,children:(0,t.jsxs)("div",{className:l.default.feedbackBox,children:[(0,t.jsx)("p",{className:l.default.feedbackBoxTitle,children:u("ratingText")}),(0,t.jsx)(z.default,{sx:{"& > legend":{mt:2}},children:(0,t.jsx)(L.default,{name:"rating",value:N.values.rating,className:`${l.default.stars}`,sx:{"& .MuiRating-icon":{marginRight:"16px"},"& .MuiRating-icon:last-of-type":{marginRight:0},"& .MuiRating-iconEmpty":{color:"#7D8FB2",stroke:"#7D8FB2",strokeWidth:.5},fontSize:"2rem"},onChange:(e,t)=>
1{p(t??0),h(!0)}},`${N.values.rating}`)})]})}),(0,t.jsx)(H.CustomModal,{isOpen:f,onClose:()=>h(!1),width:"xs",children:(0,t.jsxs)("form",{onSubmit:N.handleSubmit,children:[(0,t.jsx)("h2",{className:l.default.feedbackRatingModalHeader,children:u("ratingText")}),(0,t.jsxs)(z.default,{sx:{display:"flex",flexDirection:"column",alignItems:"center",margin:"20px 0"},children:[(0,t.jsx)(L.default,{name:"rating",value:N.values.rating,className:l.default.stars,unselectable:"off",sx:{"& .MuiRating-icon":{marginRight:"16px"},"& .MuiRating-icon:last-of-type":{marginRight:0},"& .MuiRating-iconEmpty":{color:"#7D8FB2",stroke:"#7D8FB2",strokeWidth:.5},fontSize:"2rem"},onChange:(e,t)=>{null!==t&&(N.setFieldValue("rating",t),p(t))}}),N.errors.rating&&(0,t.jsx)("p",{className:l.default.error_text,children:N.errors.rating})]}),(0,t.jsx)(A.MinHeightTextarea,{placeholder:u("moreNote"),rows:3,width:"100%",name:"text",value:N.values.text,onChange:e=>{let{value:t}=e.target;d(t.length),t.length<500&&N.setFieldValue("text",t)}}),N.errors.text&&(0,t.jsx)("p",{className:l.default.error_text,children:N.errors.text}),(0,t.jsxs)("p",{className:500===r?l.default.err_input_counter:l.default.input_counter,children:[u("SymvolCount"),": ",r," / ",500]}),(0,t.jsx)(q.LoadingButton,{sx:{"& .MuiLoadingButton-loadingIndicator":{color:"#fff"}},loading:b,type:"submit",className:l.default.sendFeedbackRatingButton,children:N.isSubmitting?"":u("send")})]})})]})};function W(e){return e.split(" ").map(e=>e.charAt(0).toUpperCase()).join("")}function $(e,t){return e?.status==="DONE"&&!!e.rated||e?.status==="DENIED"&&!!e.rated||!t||e?.status==="WAITING"&&(!!e.rated||!t)||!1}e.s(["FeedbackRating",0,I],706627),e.s(["CheckStatusWithComment",0,$,"getInitials",0,W],891866);let P=(e,t)=>e.length>t?e.slice(0,t)+"...":e,O=()=>{let{notificationModalHasWarning:e,notificationModalHeadText:z,errorFileNotificationModal:L,errorFileNotificationModalText:A,hasSumSizeError:D,showFileErrorModal:H,setErrorFileNotificationModal:q}=(0,U.useFileErrorModal)(),O=(0,M.useTranslations)("Common"),[V,Q]=(0,s.use
1State)([]),[G,Y]=(0,s.useState)(!1),[Z,X]=(0,s.useState)(0),[J,K]=(0,s.useState)(""),[ee,et]=(0,s.useState)([]),[,ei]=(0,s.useState)(null),[ea,es]=(0,s.useState)(null),{data:el,trigger:eo,isMutating:en}=(0,i.useRequestMutation)("citizenSupportFileUpload",{module:"citizenSupportFileUpload",method:"POST",headers:{"Content-Type":"multipart/form-data"},noErrorPopup:!0}),er=(0,M.useTranslations)("notifications"),ed=(0,M.useTranslations)(),{push:eu,query:{id:ec}}=(0,a.useRouter)(),{data:em,error:ex,isMutating:ep,trigger:ef}=(0,i.useRequestMutation)("getIssueById",{module:"citizenSupport",method:"GET",noErrorPopup:!1}),{trigger:eh,isMutating:e_}=(0,i.useRequestMutation)("createIssueComment",{module:"citizenSupport",method:"POST",noErrorPopup:!0}),eg=async e=>{await ef({dynamicValue:e})};(0,s.useEffect)(()=>{eg(ec),Q([])},[]),(0,s.useEffect)(()=>{ex&&eu("/applications")},[ex]);let eC=async e=>await eo({body:e}),eb=async(e,t,i)=>{if(ei(e),e){if(!U.allowedFileTypes.includes(e.type)||e?.size===0)return void H(!0,"fileTypeError");if(e?.size>U.fileSizeLimit)return void H(!0,"fileSizeError10mb");let t=new FormData;t.append("file",e);try{let a=await eC(t);et(t=>[...t,{fileId:a?.service_file_id,size:e?.size/1e3}]),K(a?.service_file_id),i(a?.service_file_id)}catch(e){H(!1,e?.response?.data?.description)}}},eN=e=>{null!==e&&(es(e),Q(t=>t?.filter(t=>t!==e)),et(t=>t?.filter(t=>t?.fileId!==e)))};(0,s.useEffect)(()=>{X(()=>ee?.reduce((e,t)=>e+t.size,0))},[ee]),(0,s.useEffect)(()=>{Z&&Z>1e4?(H(!0,"totalFileError"),eN(J)):es(null)},[Z]),(0,s.useEffect)(()=>{el&&Q([...V,el?.service_file_id])},[el]);let ej=b.z.object({comment:b.z.string().nonempty(er("commentCantBeEmpty")).trim().min(2,er("commentShouldBeMinimum2Symbols")).max(1024,er("commentShouldBeMax1024Symbols")).refine(e=>e.trim().length>0,er("commentCantBeEmpty2"))});return ep?(0,t.jsxs)("div",{children:[(0,t.jsx)(m.Skeleton,{height:120}),(0,t.jsx)(m.Skeleton,{height:120}),(0,t.jsx)(m.Skeleton,{height:120})]}):ex?(0,t.jsx)(F.CustomNotFoundContainer,{agency:[],containerWidth:"100%"}):(0,t.jsxs)("div",{className:"container mx-auto",children:[(0,t.jsx)("div",{className:"mt-[20px] rounded-[20px] border border-[#DAE2FF] py-[16px]",children:(0,t.jsx)(f.TableContainer,{children:(0,t.jsxs)(x.Table,{className:"max-xl:w-[1200px] max-md:w-[900px]",children:[(0,t.jsx)(h.TableHead,{children:(0,t.jsxs)(_.TableRow,{children:[(0,t.jsx)(p.TableCell,{className:l.default.detailListTh,children:er("appealTitle")}),(0,t.jsxs)(p.TableCell,{className:l.default.detailListTh,children:[er("date")," "]}),(0,t.jsx)(p.TableCell,{className:l.default.detailListTh,children:er("requestNumber")}),(0,t.jsx)(p.TableCell,{className:l.default.detailListTh,children:"Status"})]})}),(0,t.jsx)(v.default,{children:(0,t.jsxs)(_.TableRow,{className:"w-full",children:[(0,t.jsx)(p.TableCell,{className:l.default.detailListTd,children:em?.title}),(0,t.jsx)(p.TableCell,{className:l.default.detailListTd,children:(0,E.formatDateFromStrForCitizenBox)(em?.create_at,!0,!1)}),(0,t.jsx)(p.TableCell,{className:l.default.detailListTd,children:em?.issue_number||"---"}),(0,t.jsx)(p.TableCell,{children:(0,t.jsx)(c.Chip,{label:ed(`Common.Statusses.${em?.status?.toLocaleLowerCase()}`),variant:T.statuses[String(em?.status).toLocaleLowerCase()]?.type})})]})})]})})}),(0,t.jsxs)("div",{className:"my-[24px] rounded-[20px] border border-[#DAE2FF] px-[24px] py-[20px]",children:[(0,t.jsxs)(g.Typography,{className:"text mb-[15px] font-semibold",children:[er("requestDescDetail")," "]}),(0,t.jsx)(g.Typography,{className:"text-sm font-medium break-all text-[##45464F]",children:em?.body}),em&&em?.attachments?.length>0&&(0,t.jsx)("div",{className:l.default.downloadButtonBox,children:em.attachments.map((e,i)=>(0,t.jsxs)("button",{className:l.default.downloadButton,onClick:t=>{var i,a;let s;i=e?.path,a=e?.name,s=a?.substring(0,a?.lastIndexOf(".")),t.stopPropagation(),(0,w.enqueueSnackbar)(O("Misc.downloadingDocsPleaseWait"),{variant:"info",autoHideDuration:2e3}),(0,y.fileFetcher)(i,s)},children:[(0,t.jsxs)("div",{className:l.default.fileNameBox,children:[(0,t.jsx)(B.default,{width:28,height:28}),(0,t.jsx)("div",{className:"my-auto self-stretch",children:e?.name&&P(e.name,15)})]}),(0,t.jsx)(S.default,{width:16,height:16})]},i))})]}
1),(0,t.jsx)("hr",{className:` ${em?.comments?.length===0?"mb-[27px]":""}`}),(0,t.jsxs)("div",{className:"mt-[24px]",children:[(0,t.jsxs)("div",{className:"flex flex-col px-[24px] py-3 max-md:pr-5",children:[(0,t.jsx)("div",{className:"text-base leading-6 font-medium text-black max-md:max-w-full",children:em?.comments?.length>0?er("comments"):""}),(0,t.jsx)("div",{className:`${em?.comments?.length>0?"mb-[105px]":""}`,children:em&&em.comments.map((e,i)=>(0,t.jsx)("div",{className:"mt-[11px] mb-[22px] flex flex-col items-start",children:"ticketinguser"!==e.author?(0,t.jsxs)("div",{className:l.default.operatorInfoBox,children:[(0,t.jsx)("div",{className:l.default.nameSurnameLg,children:W(e?.author)}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:l.default.operatorNameTime,children:[(0,t.jsx)("p",{children:e?.author}),(0,t.jsxs)("span",{children:[" ",(0,E.formatDateFromStrForCitizenBox)(e?.date,!0,!0)]})," "]}),(0,t.jsx)("div",{className:"text-opacity-60 mt-[12px] flex w-fit flex-col justify-end gap-2 rounded-xl bg-[#F7F7F7] p-4 text-sm leading-5 font-medium break-all text-zinc-900 max-md:max-w-full",children:(0,t.jsx)("p",{className:"text-sm leading-[22px] font-semibold text-[#1B1B1F99]",children:e?.body})})]})]}):(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("div",{className:l.default.nameSurnameLgUser,children:(0,t.jsx)(d.default,{width:20,height:20})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:l.default.operatorNameTime,children:[(0,t.jsx)("p",{children:"Siz"}),(0,t.jsxs)("span",{children:[" ",(0,E.formatDateFromStrForCitizenBox)(e?.date,!0,!0)]})," "]}),(0,t.jsx)("div",{className:"text-opacity-60 mt-[12px] flex w-fit flex-col justify-end gap-2 rounded-xl bg-[#F7F7F7] p-4 text-sm leading-5 font-medium break-all text-zinc-900 max-md:max-w-full",children:(0,t.jsx)("p",{className:"text-sm leading-[22px] font-semibold text-[#1B1B1F99]",children:e?.body})})]})]})},i))}),$(em,em?.can_add_comment)?(0,t.jsxs)(t.Fragment,{children:[em?.status==="DONE"&&em?.rated&&(0,t.jsx)("h1",{className:"my-5 p-3 text-center font-semibold",children:er("requestEnded")}),em?.status==="DENIED"&&em?.rated&&(0,t.jsx)("h1",{className:"my-5 p-3 text-center font-semibold",children:er("requestDenied")}),em?.status==="WAITING"&&!em?.rated&&(0,t.jsx)("h1",{className:"my-5 p-3 text-center font-semibold",children:er("waitingWarning")})]}):(0,t.jsx)(C.Formik,{onSubmit:(e,{resetForm:t})=>{Y(!0),eh({dynamicValue:ec,body:{body:e.comment?.trim(),attachments:V||null}}).then(()=>{eg(ec),Q([]),X(0),et([]),t()}).catch(e=>{(0,w.enqueueSnackbar)("XÉta var!",{variant:"error",autoHideDuration:5e3})})},initialValues:{comment:""},validationSchema:(0,j.toFormikValidationSchema)(ej),children:({errors:e,handleChange:i,handleSubmit:a,handleReset:s,touched:d})=>(0,t.jsx)(C.Form,{onSubmit:e=>{ea?e.preventDefault():a(e)},onReset:s,autoComplete:"off",className:"mt-[20px]",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex w-full items-start justify-start gap-4 max-md:w-full max-md:flex-wrap",children:[(0,t.jsx)(C.FastField,{component:N.CustomInput,multiline:!0,onChange:i,name:"comment",placeholder:er("comment"),minRows:3,maxRows:5,error:e.comment&&d.comment}),(0,t.jsx)("div",{className:"flex justify-end max-md:w-full max-md:flex-wrap",children:(0,t.jsx)(u.Button,{disabled:e_||Object.keys(e).length>0||en,type:"submit",variant:"primary",className:"px-[45px] py-[12px] disabled:cursor-not-allowed",children:er("send")})})]}),(0,t.jsx)("div",{className:l.default.commentsFileUploaderBox,children:(0,t.jsx)(r.FileUploaderForRin,{customIcon:V?.length===3||en?o.default:n.default,fileSizeLimit:10,disabled:V?.length===3||!!en,isMultiple:!0,uploadText:`${er("uploadCommentFile")}`,uploadSpanColor:V?.length===3||en?"text-[#e5e7eb]":"text-[#315AB5]",uploadSpanWeight:"font-semibold",formSubmitted:G,hasErrorSumFileSize:D,maxSelectedFile:3,onClear:eN,onFileChange:eb,deletedFileId:ea,fileTypes:U.allowedFileTypes,showFileErrorModal:H})})]})})})]}),!em?.can_add_comment&&!em?.rated&&(em?.status==="DONE"||em?.status==="DENIED")&&(0,t.jsx)(I,{getApi:async()=>{eg(ec)},data:em,goHomeBack:function(){eu("/applications")}}),(e_||en)&&(0,t.jsx)("div",{className:l.default.loadingBox,children:(0,t.jsx)(k.CustomLoading,{})}),(0,t.jsx)(R.ModalNotification,{open:L,errorText:A,close:()=>{q(!1)},headText:z,warning:e})]})]})}},738723,e=>{"use strict";e.s(["FileUploaderForRin",()=>r,"fileUploaderRequiredMessage",()=>n]);var t=e.i(380447),i=e.i(999161),a=e.i(197649),s=e.i(786892),l=e.i(297228),o=e.i(136788);let n="SÉnÉdi yüklÉyin",r=({onFileChange:e,onClear:n,initialFile:r=null,fileTypes:d,uploadText:u="YüklÉ",uploadSpanColor:c="",uploadSpanWeight:m="font-normal",selectedFilesArray:x=[],isMultiple:p=!1,maxSelectedFile:f=5,formSubmitted:h,hasErrorSumFileSize:_,fileUploaderIndex:g,deletedFileId:C,disabled:b=!1,fileSizeLimit:N=10,customIcon:j,hideArrayFiles:v=!1,showFileErrorModal:F})=>{let[w,S]=(0,i.useState)([]),[y,B]=(0,i.useState)(!1),[T,E]=(0,i.useState)(!1),[M,k]=(0,i.useState)(!1),R=(0,i.useRef)(null),U=1024*N*1024;(0,i.useEffect)(()=>{h&&S([])},[h]),(0,i.useEffect)(()=>{(_||C)&&D(C)},[_,C]),(0,i.useEffect)(()=>{w?.length<=f&&E(!1)},[w,f]);let z=async(t,i)=>{if(i.size>U){k(!0),t.target.value="";return}k(!1),await e(i,g,e=>{S(t=>[...t,{selectedFile:i,id:e}])})},L=async e=>{let t=e.target.files;if(t&&t.length){if(w.length+t.length>f){F?E(!1):E(!0),F?.(!0,"uploadedFilesLength","warning",!0),e.target.value="";return}for(let i of(k(!1),p?Array.from(t).slice(0,f-w.length):[t[0]]))await z(e,i);e.target.value=""}},A=async e=>{e.preventDefault(),B(!1);let t=e.dataTransfer.files;if(t.length){if(w.length+t.length>f){F?E(!1):E(!0),F?.(!0,"uploadedFilesLength","warning",!0);return}for(let i of(k(!1),p?Array.from(t).slice(0,f-w.length):[t[0]]))await z(e,i)}},D=e=>{R.current&&(R.current.value=""),n(e),S(t=>t.filter(t=>t?.id!==e))};return(0,t.jsxs)("div",{className:(0,a.default)(s.default.fileUploaderContainer,"flex flex-row items-center gap-5 sm:flex-col sm:items-start",y&&"bg-slate-200",x?.length>
10&&s.default.selectedFilesBox),onDrop:A,onDragOver:e=>{e.preventDefault(),B(!0)},onDragLeave:e=>{e.preventDefault(),B(!1)},children:[(0,t.jsxs)("label",{className:(0,a.default)(b?"border-[#e5e7eb]":"border-[#315ab5]",j?"flex pr-0 pl-0":"border-2 border-dashed","w-full cursor-pointer rounded-xl bg-transparent px-10 py-3 text-center"),children:[j?(0,t.jsx)(j,{width:16,className:"mr-[8px]"}):(0,t.jsx)("i",{className:(0,a.default)("ri-upload-2-line mr-3",b?"text-[#e5e7eb]":"text-blue-500")}),(0,t.jsx)("span",{className:`text-[14px] ${c} ${m}`,children:u}),(0,t.jsx)("input",{type:"file",ref:R,hidden:!0,onChange:L,accept:Array.isArray(d)?d.join(","):d,multiple:p,disabled:b})]}),T&&(0,t.jsxs)(l.FormHelperText,{className:s.default.errorText,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),"Maksimum ",f," fayl seçilÉ bilÉr"]}),M&&(0,t.jsxs)(l.FormHelperText,{className:s.default.errorText,children:[(0,t.jsx)("i",{className:"ri-information-line mr-2 text-sm"}),"Faylın hÉcmi ",N," MB-dan böyük olmamalıdır"]}),w.length>0&&!v&&(0,t.jsx)("div",{className:`${s.default.filesBox} grid gap-4`,children:w.map((e,i)=>(0,t.jsxs)("div",{className:"flex max-h-[66px] w-full items-center rounded-xl bg-gray-100 px-5 py-3 sm:w-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("i",{className:"ri-file-3-line text-2xl text-blue-500"}),(0,t.jsxs)("div",{className:"flex w-full flex-col",children:[(0,t.jsx)("span",{className:"xs:w-full w-[100px] overflow-hidden text-[12px] font-normal text-ellipsis whitespace-nowrap",children:(0,o.getSafeFileName)(e?.selectedFile?.name,15)}),(0,t.jsxs)("span",{className:"text-[10px] font-normal",children:[(e?.selectedFile?.size/1e3).toFixed(1)," kb"]})]})]}),(0,t.jsx)("button",{className:"ml-5 h-6 w-6 rounded-full bg-white",onClick:()=>D(e?.id),children:(0,t.jsx)("i",{className:"ri-close-line text-blue-500"})})]},i))}),x?.length>0&&v&&(0,t.jsx)("div",{className:`${s.default.filesBox} grid gap-4`,children:x.map((e,i)=>(0,t.jsxs)("div",{className:"flex max-h-[66px] w-full items-center rounded-xl bg-gray-100 px-5 py-3 sm:w-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("i",{className:"ri-file-3-line text-2xl text-blue-500"}),(0,t.jsx)("div",{className:"flex w-full flex-col",children:(0,t.jsx)("span",{className:"xs:w-full w-[100px] overflow-hidden text-[12px] font-normal text-ellipsis whitespace-nowrap",children:(0,o.getSafeFileName)(e?.name,15)})})]}),(0,t.jsx)("button",{className:"ml-5 h-6 w-6 rounded-full bg-white",onClick:()=>D(e?.id),children:(0,t.jsx)("i",{className:"ri-close-line text-blue-500"})})]},i))})]})}}]);
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.