PageSourceSearch

https://www.darmankade.com/_next/static/chunks/pages/report-2a9f3cf687927349.js

js darmankade.com collected 2026-10-02 20:42:34 UTC 7,704 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[686],{25954:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/report",function(){return r(97970)}])},53552:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893),s=r(81222),a=r(22358),i=r.n(a),o=r(78957);function l(e){let{width:t=192,height:r=192}=e;return(0,n.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,n.jsx)(s.Z,{useSkeleton:!0,src:(0,o.R)("logo-loading.svg"),width:t,height:r,alt:"Icon",className:`cursor-pointer ${i().animateInfinity}`})})}},39993:function(e,t,r){"use strict";function n(e,t,r){let n=!0,s=(e,t,s)=>{s||(n=!1),r&&r(r=>({...r,[`${t}ErrorMessage`]:s?"":e.errorMessage}))};for(let r in e){let n=e[r],a=t[r];if(a){if(n){if(a.maxLength&&(null==n?void 0:n.length)>a.maxLength||a.minLength&&(null==n?void 0:n.length)<a.minLength||a.pattern&&!(null==n?void 0:n.match(a.pattern))){s(a,r);continue}}else if(null==a?void 0:a.required){s(a,r);continue}s(a,r,!0)}}return n}r.d(t,{s:function(){return n}}),t.Z={firstName:{maxLength:90,minLength:2,pattern:/^[\u0600-\u06FF\s]+$/,required:!0},lastName:{maxLength:90,minLength:2,pattern:/^[\u0600-\u06FF\s]+$/,required:!0},mobile:{maxLength:11,minLength:11,pattern:/^09/gm,required:!0},messageText:{maxLength:250,minLength:5,required:!0},certificate:{maxLength:10,minLength:5,required:!0},score:{required:!0},city:{maxLength:90,minLength:2,pattern:/^[\u0600-\u06FF\s]+$/,required:!0},subject:{maxLength:90,minLength:2,pattern:/^[\u0600-\u06FF\s]+$/,required:!0},description:{maxLength:90,minLength:2,pattern:/^[\u0600-\u06FF0-9\s]+$/,required:!0},personnelCount:{maxLength:4,minLength:1,pattern:/^\d+$/,required:!0},postOrganization:{maxLength:70,minLength:2,required:!0}}},97970:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var n=r(85893),s=r(11163),a=r(67294),i=r(88767),o=r(55678),l=r(76206),u=r(47442),d=r(93710),m=r(56878),c=r(85801),p=r(27600),g=r(92594),f=r(18644),x=r(12028),h=r(49401),N=r(55238);let b={...N.y};function j(e){let{inputReport:t,inputReportErrorMessage:r,setInputReport:s,patientInfo:a}=e,i=(0,d.v0)(),o=!!(null==a?void 0:a.FirstName),l=e=>{let{name:t,value:r}=e.target;s(e=>({...e,[t]:r,auth:i})),o&&s(e=>({...e,fullName:`${null==a?void 0:a.FirstName} ${null==a?void 0:a.LastName}`,auth:i}))},u=[{type:"text",containerClassName:"w-full py-2",className:"mt-0  w-full border-none outline-none placeholder:text-gray-400 focus:border-transparent focus:ring-0",Icon:g.fzv,placeholder:`${b.firstNameLastName}*`,required:!0,id:"fullName",name:"fullName",value:o?`${null==a?void 0:a.FirstName} ${null==a?void 0:a.LastName}`:t.fullName,disabled:o,errorMessage:r.fullNameErrorMessage},{type:"text",containerClassName:"w-full py-2",className:"mt-0 w-full border-none outline-none placeholder:text-gray-400 focus:border-transparent focus:ring-0 mx-auto",Icon:g.IC0,placeholder:`${b.subjectReport}*`,required:!0,id:"subjectReport",name:"subjectReport",value:t.subjectReport,disabled:!1,errorMessage:r.subjectReportErrorMessage},{type:"textarea",iconClassName:"mt-1",containerClassName:"w-full py-2 md:h-full md:max-h-[143px]",className:"mt-0 w-full border-none outline-none placeholder:text-gray-400 focus:border-transparent focus:ring-0 mx-auto md:h-full md:flex md:items-center",Icon:f.jyt,placeholder:`${b.reportMassage}*`,required:!0,id:"descriptionReport",name:"descriptionReport",value:t.descriptionReport,disabled:!1,errorMessage:r.descriptionReportErrorMessage}];return(0,n.jsx)(n.Fragment,{children:u.map((e,t)=>(0,n.jsx)("div",{className:`${(0,x.Z)("w-full",1===t&&"row-span-2")} ${0===t?"md:order-1":""} ${1===t?"md:order-3":""} ${2===t?"md:order-2 md:row-span-2":""}`,children:(0,n.jsx)(h.Z,{type:e.type,containerClassName:`${e.containerClassName}  ${o&&0===t?"bg-gray-100 rounded-base":""}`,className:`${e.className}`,Icon:()=>(0,n.jsx)(e.Icon,{size:24,className:(0,x.Z)("text-gray-400",null==e?void 0:e.iconClassName)}),placeholder:e.placeholder,required:e.required,id:e.id,name:e.name,value:e.value,disabled:e.disabled,onChange:l,errorMessage:e.errorMessage})},t))})}var y=r(53552);function v(){return(0,n.jsx)(y.Z,{})}var L=r(54582);let M={...N.y};function R(e){let{handleSendMessageToSite:t}=e;return(0,n.jsx)(L.Z,{className:"mt-4 flex h-14 w-full items-center justify-center rounded-base bg-primary-600 px-1 text-base text-white md:mt-0 md:w-1/2",onClick:()=>{t()},children:M.reportButton})}var $=r(86781),F=r(90318);let w=async(e,t)=>{let{data:r}=await $.o.post(`${F.rY}/User/UserMessage/AddUserErrorReport`,e,(0,d.aH)(t));return r},_={metaTitle:"شکایت از درمانکده",metaDescription:"پلتفرم درمانکده به عنوان سیستم نوبت دهی مطب پزشکان این فرصت را برای شما فراهم می‌سازد تا به سادگی و تنها با چند کلیک درخواست نوبت دهی آنلاین خود را برای تخصص ‌‌های مختلف ثبت کنید.",sendReportTitle:"شکایات خود را برای ما ارسال کنید",sendReportDescription:"کارشناسان درمانکده در سریع ترین زمان ممکن شکایات شما را بررسی کرده و با شما تماس خواهند گرفت",errorMessageFieldName:"لطفا نام و نام خانوادگی خود را تکمیل نمایید",errorMassageFieldSubject:"لطفا موضوع شکایت خود را وارد نمایید",errorMassageFieldDescription:"لطفا متن شکایت خود را وارد نمایید"};var q=r(39993);let I={fullName:{...q.Z.firstName,errorMessage:_.errorMessageFieldName},subjectReport:{...q.Z.subject,errorMessage:_.errorMassageFieldSubject},descriptionReport:{...q.Z.description,errorMessage:_.errorMassageFieldDescription}},C={...N.y};function Z(){let e;let[t,r]=(0,a.useState)(!1),g=(0,l.SZ)(),f=(0,s.useRouter)(),[x,h,N,b,y,L]=(0,u.Z)(["fullName","subjectReport","descriptionReport"]),M=(0,d.v0)();e=localStorage.getItem("userId");let{legacy:$}=(0,c.lm)(),F=()=>{r(!0),Z(),(0,o.Am)(C.pleaseLogin,{hideProgressBar:!0})},Z=()=>{L(),r(!1),(0,p.default)(g,{open:!0,onSuccessLogin(){L(),setTimeout(()=>{f.push("/report")},500)}})},{mutate:E}=(0,i.useMutation)({mutationFn:e=>w(e,(0,d.v0)()),mutationKey:["send-report"],onSuccess:()=>{(0,o.Am)(C.successMessage,{hideProgressBar:!0})}});return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(v,{}):(0,n.jsxs)(m.Z,{className:"mx-4 mb-8 mt-6 px-4 py-6 md:mb-24 md:mt-14 md:p-8",children:[(0,n.jsx)("h2",{className:"mb-2 mt-6 text-base font-semibold text-gray-500 md:text-xxl",children:_.sendReportTitle}),(0,n.jsx)("div",{className:"mb-6 text-ml leading-loose text-gray-500 md:mb-[68px] md:text-l",children:_.sendReportDescription}),(0,n.jsx)("div",{className:`flex flex-col justify-items-end gap-4 md:grid md:grid-cols-2  md:grid-rows-2 ${N.fullNameErrorMessage?"md:gap-x-6 md:gap-y-2":"md:gap-6"}`,children:(0,n.jsx)(j,{inputReport:x,inputReportErrorMessage:N,setInputReport:h,patientInfo:$})}),(0,n.jsx)("div",{className:"mt-8 flex justify-end gap-x-4 md:mr-4",children:(0,n.jsx)(R,{handleSendMessageToSite:()=>{(0,q.s)(x,I,b)&&e&&M?(E({userId:e,title:x.subjectReport,description:x.descriptionReport,inputChannels:1,userErrorReportTypeId:2}),y(),L()):M||e||(F(),L())}})})]})})}function E(){return(0,n.jsx)(Z,{})}var T=r(65203);function S(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.Z,{templateTitle:_.metaTitle,de
1scription:_.metaDescription}),(0,n.jsx)(E,{})]})}},22358:function(e){e.exports={animateInfinity:"loading_animateInfinity__0Pip4","spin-infinity":"loading_spin-infinity__CdtL5"}}},function(e){e.O(0,[5660,3305,9351,9700,9278,4581,7858,9329,640,2888,5105,179],function(){return e(e.s=25954)}),_N_E=e.O()}]);

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.