PageSourceSearch

https://assets.madeeasy.in/prod/_next/static/chunks/658-5ebbab5b1c91ddf8.js

js madeeasy.in collected 2026-09-26 16:28:15 UTC 12,724 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[658],{30300:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RegisterQuestionReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entityType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentEntityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"questionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"imageKey"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bucket"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"registerQuestionReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"entityType"},value:{kind:"Variable",name:{kind:"Name",value:"entityType"}}},{kind:"Argument",name:{kind:"Name",value:"entityId"},value:{kind:"Variable",name:{kind:"Name",value:"entityId"}}},{kind:"Argument",name:{kind:"Name",value:"parentEntityId"},value:{kind:"Variable",name:{kind:"Name",value:"parentEntityId"}}},{kind:"Argument",name:{kind:"Name",value:"questionId"},value:{kind:"Variable",name:{kind:"Name",value:"questionId"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"Argument",name:{kind:"Name",value:"imageKey"},value:{kind:"Variable",name:{kind:"Name",value:"imageKey"}}},{kind:"Argument",name:{kind:"Name",value:"bucket"},value:{kind:"Variable",name:{kind:"Name",value:"bucket"}}}],directives:[]}]}}],loc:{start:0,end:389}};t.loc.source={body:"mutation RegisterQuestionReport($entityType: ID!, $entityId: ID!, $parentEntityId: ID!, $questionId: ID!, $type: String, $description: String, $imageKey: String, $bucket: String) {\n  registerQuestionReport(entityType: $entityType, entityId: $entityId, parentEntityId: $parentEntityId, questionId: $questionId, type: $type, description: $description, imageKey: $imageKey, bucket: $bucket)\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;(function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var a=t.type;"NamedType"===a.kind&&n.add(a.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})})(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.RegisterQuestionReport=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=n[t]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var d=l;l=new Set,d.forEach(function(e){s.has(e)||(s.add(e),(n[e]||new Set).forEach(function(e){l.add(e)}))})}
1return s.forEach(function(t){var n=a(e,t);n&&i.definitions.push(n)}),i}(t,"RegisterQuestionReport")},79576:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"https://assets.madeeasy.in/prod/_next/static/media/playicon.8095f705.svg",height:25,width:26,blurWidth:0,blurHeight:0}},95646:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(74848),i=n(5556),r=n.n(i);n(96540);var s=n(36802);function l(e){let{isOpen:t,message:n,onConfirm:i,onCancel:r,onClose:l,handleSubmit:d,buttonText1:o,buttonText2:c,btnYesCss:u,btnNoCss:m,msgCss:p,heading:b,headingCss:y,zIndex:f}=e;return t?(0,a.jsx)("div",{className:"".concat(f," fixed inset-0 z-[60] bg-black bg-opacity-50 flex items-center justify-center p-4"),children:(0,a.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-[340px] w-full text-center relative",children:[(l||r)&&(0,a.jsx)("button",{type:"button",onClick:l||r,className:"absolute top-3 right-3 text-[#94A3B8] hover:text-[#475569] transition-colors","aria-label":"Close",children:(0,a.jsx)(s.A,{className:"w-5 h-5"})}),b&&(0,a.jsx)("h3",{className:"".concat(y),children:b}),(0,a.jsx)("p",{className:" ".concat(p||"text-gray-800 mb-6"),children:n}),(0,a.jsxs)("div",{className:"flex gap-3 justify-center",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{i(),d&&d()},className:"".concat(u||"bg-customBlue text-white"," px-4 py-2 rounded"),children:o||"Confirm"}),(0,a.jsx)("button",{type:"button",onClick:r,className:"".concat(m||"text-gray-600 border  hover:bg-gray-50"," px-4 py-2 rounded"),children:c||"Cancel"})]})]})}):null}l.propTypes={isOpen:r().any,message:r().any,onConfirm:r().any,onCancel:r().any,onClose:r().any,handleSubmit:r().any,buttonText1:r().any,buttonText2:r().any,btnYesCss:r().any,btnNoCss:r().any,msgCss:r().any,headingCss:r().any,heading:r().any,zIndex:r().string};let d=l},81778:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(74848);n(96540);var i=n(5556),r=n.n(i);function s(e){let{error:t,fullPage:n=!1}=e;return(0,a.jsx)("div",{className:"".concat(n?"flex items-center justify-center h-screen":"p-4 bg-red-50 border-l-4 border-red-400 text-red-700"),children:(0,a.jsxs)("div",{className:"".concat(n?"text-center":""),children:[(0,a.jsx)("h1",{className:"font-bold ".concat(n?"text-2xl text-red-600":""),children:"Error"}),(0,a.jsx)("p",{className:"".concat(n?"mt-2 text-gray-700":""),children:t})]})})}s.propTypes={error:r().string.isRequired,fullPage:r().bool};let l=s},28359:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(74848),i=n(96540),r=n(5556),s=n.n(r),l=n(37246),d=n(95420),o=n(30300),c=n.n(o),u=n(34247);let m="".concat("https://apicore.madeeasy.in/api/v1","/auth/upload/single-File-Upload-S3/submit-feedback");function p(e){let{handleSuccessPopupOpen:t,linkId:n,questionId:r,mockTestId:s,msgContent:o,dailyTestType:p}=e,[b,{loading:y,error:f}]=(0,d.n)(c()),[g,h]=(0,i.useState)("Other"),[v,k]=(0,i.useState)(""),[x,N]=(0,i.useState)(!1),[j,w]=(0,i.useState)(["Incorrect Answer / Solution","Question Framing Issues","Technical Errors","Content Mismatch","Outdated or Irrelevant Content","Explanation Quality Issues","Other"]),S=p||"mock-test",[I,T]=(0,i.useState)(!1),[E,D]=(0,i.useState)(null),[V,C]=(0,i.useState)(""),[A,R]=(0,i.useState)(""),[$,O]=(0,i.useState)(""),q=()=>{let e=(0,u.hT)(),t=(0,u.c4)(),n=new Headers;return n.append("organization",(null==e?void 0:e.orgId)||"2410f924-6cc4-4e88-b490-ffd3bbc40d03"),n.append("device-type","4"),n.append("version-code","22"),n.append("account-role","student"),t&&n.append("Authorization","Bearer ".concat(t)),n},Q=async e=>{O(""),T(!0),D(e=>e),C(""),R("");let t=new FormData;t.append("file",e);try{let e=await fetch(m,{method:"POST",headers:q(),body:t,redirect:"follow"});if(!(null==e?void 0:e.ok)){let t=await e.json().catch(()=>({}));throw Error((null==t?void 0:t.message)||"Upload failed with status ".concat(e.status))}let n=await e.json();if(null==n?void 0:n.success){let{key:e,bucket:t}=n.data||{};C(e||""),R(t||"")}else throw Error((null==n?void 0:n.message)||"Upload failed, please try again.")}catch(e){console.error("Error uploading image:",e),O(e.message||"Failed to upload file.")}finally{T(!1)}};return(0,i.useEffect)(()=>{o&&w(o)},[]),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"border-[#93939380] border-t",children:[(0,a.jsx)("label",{className:"block text-lg font-medium text-gray-700 mb-2 py-2.5",children:"Issue Type"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("button",{type:"button",onClick:()=>N(!x),className:"w-full px-4 py-3 text-left bg-gray-50 border-2 border-blue-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-gray-700",children:g}),(0,a.jsx)(l.A,{className:"w-5 h-5 text-gray-400 transition-transform ".concat(x?"rotate-180":"")})]})}),x&&(0,a.jsx)("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:j.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{h(e),N(!1)},className:"w-full px-4 py-3 text-left hover:bg-gray-50 focus:bg-gray-50 focus:outline-none first:rounded-t-lg last:rounded-b-lg",children:(0,a.jsx)("span",{className:"text-gray-700",children:e})},e))})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-lg font-medium text-gray-700 mb-3",children:["Other"===g&&!v.trim()&&(0,a.jsx)("span",{className:"text-red-500 text-base",children:"*"}),"Description"," "]}
1),(0,a.jsx)("textarea",{value:v,onChange:e=>k(e.target.value),placeholder:"Type the issue here",rows:8,className:"w-full px-4 py-3 bg-gray-50 border-2 border-blue-200  rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors placeholder-gray-400"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-lg font-medium text-gray-700 mb-3",children:"Attach Screenshot (optional)"}),(0,a.jsx)("input",{type:"file",accept:"image/*",onChange:e=>{var t;let n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){try{let e=new FileReader;e.onloadend=()=>{D(e.result)},e.readAsDataURL(n)}catch(e){console.error("Error generating local preview",e)}Q(n)}},className:"block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100"}),$&&(0,a.jsx)("p",{className:"text-red-500 text-sm mt-2",children:$}),I&&(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Uploading image..."}),E&&!I&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)("img",{src:E,alt:"Uploaded preview",className:"w-full max-w-sm rounded-md border border-gray-200 object-contain"})})]}),y?(0,a.jsx)("button",{type:"button",disabled:"Other"===g&&!v.trim(),className:"w-full bg-tabBlue text-white font-medium py-4 px-6 rounded-lg transition-colors focus:outline-none focus:ring-2",children:"Submitting..."}):(0,a.jsx)("button",{type:"button",onClick:()=>{if("Other"===g&&!v.trim())return;let{data:e}=b({variables:{entityType:S||p,entityId:s,parentEntityId:n,questionId:r,type:g,description:v,imageKey:V||null,bucket:A||null}}).then(()=>{t()}).catch(e=>{console.error("Error submitting report:",e)})},disabled:"Other"===g&&!v.trim()||I,className:"w-full ".concat("Other"!==g||v.trim()?"bg-tabBlue hover:bg-tabBlue-700 text-white":"bg-gray-400 cursor-not-allowed"," ").concat(I?"cursor-progress opacity-80":""," hover:bg-tabBlue-700 text-white font-medium py-4 px-6 rounded-lg transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"),children:"Submit"})]})}p.propTypes={handleSuccessPopupOpen:s().func.isRequired,linkId:s().string.isRequired,questionId:s().string.isRequired,mockTestId:s().string.isRequired,msgContent:s().any,dailyTestType:s().any};let b=p},31603:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(74848);n(96540);var i=n(29965),r=n.n(i),s=n(5556),l=n.n(s);let d={src:"https://assets.madeeasy.in/prod/_next/static/media/success.09ecd7ac.svg",height:60,width:61,blurWidth:0,blurHeight:0};function o(e){let{msgTypeText:t}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center p-4  ",children:[(0,a.jsx)(r(),{src:d,alt:"Success",className:"lg:w-[60px] lg;h-[60px] ",width:100,height:100}),(0,a.jsx)("h1",{className:"text-2xl font-semibold text-center",children:"Success!"}),(0,a.jsx)("p",{className:"text-center text-gray-600 mt-2",children:t||"The solution has been successfully reported."})]})}o.propTypes={msgTypeText:l().string};let c=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.