(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5850],{7666:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Manager/Notifications/Edit/[id]",function(){return t(2856)}])},9821:function(e,l,t){"use strict";var a=t(5893);let i=e=>{let{label:l,type:t,placeholder:i,onChange:n,onClick:s,defaultValue:r,value:d,name:u,id:o,onFocus:c,disabled:f}=e,p={div:"flex flex-col mb-2",label:"mb-2",input:"border border-gray-500 rounded-lg px-3 py-2"},b=e=>{let l=e.target.value;e.target.value=l.replace(/[^-a-zA-Z0-9-آ-ی\s+]+/gi,"").replace(/\s+/gi,"-").toLowerCase()};return(0,a.jsxs)("div",{className:p.div,children:[(0,a.jsx)("label",{className:p.label,htmlFor:u,children:l}),(0,a.jsx)("input",{type:t,placeholder:i,className:p.input,onChange:n,onClick:s,onFocus:c,name:u,id:o,disabled:!!f&&f,readOnly:!!f&&f,autoComplete:"off",onKeyUp:"slug"===t?b:void 0,defaultValue:r||d||void 0})]})};l.Z=i},1734:function(e,l,t){"use strict";var a=t(5893);let i=e=>{let{label:l,placeholder:t,onChange:i,defaultValue:n,name:s,disabled:r,id:d}=e,u={div:"flex flex-col mb-2",label:"mb-2",input:"border border-gray-500 rounded-lg px-3 py-2"};return(0,a.jsxs)("div",{className:u.div,children:[(0,a.jsx)("label",{className:u.label,htmlFor:s,children:l}),(0,a.jsx)("textarea",{placeholder:t,className:u.input,onChange:i,name:s,id:d,disabled:!!r&&r,readOnly:!!r&&r,autoComplete:"off",defaultValue:n})]})};l.Z=i},2856:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return o}});var a=t(5893),i=t(4184),n=t(9413),s=t(9821),r=t(1734),d=t(9852);let u=e=>{let{status:l,data:t}=e;return(0,a.jsx)(i.Z,{title:"اعلانات - ویرایش: "+t.title,children:(0,a.jsxs)(n.Z,{title:"ویرایش",children:[(0,a.jsx)(s.Z,{type:"text",label:"عنوان",defaultValue:t.title,id:"name",disabled:!0,name:"name"}),(0,a.jsx)(r.Z,{type:"text",label:"محتوا",defaultValue:t.content,id:"description",disabled:!0,name:"description"}),(0,a.jsx)(d.Z,{rows:t.Notification_Receiver,cols:[{field:"user.userDetail.first_name",use:"نام"},{field:"user.userDetail.last_name",use:"نام خانوادگی"},{field:"isRead",use:"مشاهده شده"}]})]})})};var o=!0;l.default=u}},function(e){e.O(0,[4617,1057,3874,4885,1228,699,7038,8289,4700,4184,332,9774,2888,179],function(){return e(e.s=7666)}),_N_E=e.O()}]);