PageSourceSearch

https://shuru.co.in/_next/static/chunks/pages/app/report-e51e88580bf873b6.js

js shuru.co.in collected 2026-10-01 15:17:07 UTC 13,383 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[221],{53119:function(e,t,r){"use strict";r(67294);var n=r(85893);t.Z=function(e){var t=e.children,r=e.className,s=void 0===r?"":r,o=e.style;return(0,n.jsx)("div",{style:o,className:"flex flex-col min-h-screen ".concat(s),children:t})}},65098:function(e,t,r){"use strict";r.d(t,{_:function(){return n.Z},J:function(){return i}});var n=r(53119),s=r(86010),o=(r(67294),r(85893)),i=function(e){var t=e.children,r=e.className,n=e.wrapperClassName;return(0,o.jsx)("div",{className:(0,s.Z)("flex-1 flex flex-col items-center",r),children:(0,o.jsx)("div",{className:(0,s.Z)("w-full max-w-5xl",n),children:t})})}},17016:function(e,t,r){"use strict";var n=r(59499),s=r(67294),o=r(37797),i=r(21190),a=r(17070),c=r(2277),l=r(5208),d=r(43949),u=r(85893),m=(0,s.forwardRef)((function(e,t){var r=e.children,o=e.onDismiss,a=e.onDismissBackpress,m=e.onDismissByBackdrop,x=e.className,_=e.disableRoutePush,f=(0,c.Am)(),h=f.pushActionToRoute,N=f.popActionFromRoute,E=f.router,b=(0,s.useState)(!1),j=b[0],S=b[1],v=(0,s.useState)(!1),g=v[0],O=v[1];(0,s.useImperativeHandle)(t,(function(){return{present:I,dismiss:C,isPresented:function(){return g}}})),(0,s.useEffect)((function(){var e=(0,n.Z)({},l.iw.sheet,{name:l.iw.sheet,callback:function(){a?a():(O(!1),o&&o())}}),t=function(t){var r,n,s;if(!_){var o=null===t||void 0===t||null===(r=t.oldURL)||void 0===r||null===(n=r.split("#"))||void 0===n||null===(s=n[1])||void 0===s?void 0:s.replace(/\//g,""),i=null===o||void 0===o?void 0:o.split("=")[1];e[i]&&e[i].callback&&e[i].callback()}};return window.addEventListener("hashchange",t),function(){window.removeEventListener("hashchange",t)}}),[_,o,a,h,E.asPath]);var C=function(){S(!0),_||N(),O(!1),o&&o()},I=function(){E.asPath.includes("sheet")||_||h(l.iw.sheet),O(!0),S(!1)};return(0,u.jsx)(i.M,{children:g?(0,u.jsx)(d.Z,{onClose:j?function(){return null}:m||C,children:(0,u.jsxs)(p,{initial:{transform:"translateY(100%)"},animate:{transform:"translateY(0%)"},exit:{transform:"translateY(100%)"},transition:{type:"tween"},onClick:function(e){return e.stopPropagation()},className:x,children:[(0,u.jsx)("div",{className:"handle center",onClick:j?function(){return null}:C}),r||""]})}):null})}));m.displayName="BottomSheet",t.Z=m;var p=(0,o.ZP)(a.E.div).withConfig({displayName:"ShuruBottomSheet__Container",componentId:"sc-rchz29-0"})(['background-color:white;border-top-left-radius:0.75rem;border-top-right-radius:0.75rem;width:clamp(10%,600px,100%);margin:0 auto;overflow:hidden;position:fixed;left:0;right:0;bottom:0;z-index:101;padding:0.75rem 0;.handle{position:absolute;top:0;left:50%;transform:translateX(-50%);width:20%;padding:0.5rem 0;&::after{content:"";width:100%;height:5px;border-radius:100vmax;background-color:rgba(0,0,0,0.15);}}'])},52525:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return O},default:function(){return C}});var n,s,o,i=r(50029),a=r(87794),c=r.n(a),l=r(67294),d=r(65098),u=r(87685),m=r(9008),p=r(47497);!function(e){e.Profile="profile",e.Post="post"}(n||(n={})),function(e){e.Reported="reported",e.Resolved="resolved",e.Rejected="rejected"}(s||(s={})),function(e){e.SELF_PROFILE="SELF_PROFILE",e.SOMEONE_ELSES_PROFILE="SOMEONE_ELSES_PROFILE",e.NOT_A_REAL_PERSON="NOT_A_REAL_PERSON",e.PROMOTES_HATE_SPEECH_AND_VIOLENCE="PROMOTES_HATE_SPEECH_AND_VIOLENCE",e.POSTING_SOMEONE_ELSES_CONTENT="POSTING_SOMEONE_ELSES_CONTENT",e.SUSPICIOUS_SPAM_FAKE="SUSPICIOUS_SPAM_FAKE",e.VIOLENCE_PHYSICAL_HARM="VIOLENCE_PHYSICAL_HARM",e.ADULT_CONTENT="ADULT_CONTENT",e.INTELLECTUAL_PROPERTY_COPYRIGHT="INTELLECTUAL_PROPERTY_COPYRIGHT",e.RACIST_HARRASS_GENDER_DISCRIMINATION="RACIST_HARRASS_GENDER_DISCRIMINATION",e.LOCATION_SENSITIVE_SECURITY_CONCERNS="LOCATION_SENSITIVE_SECURITY_CONCERNS"}(o||(o={}));var x=r(37797),_=r(86010),f=r(17016),h=r(30080),N=r(9669),E=r.n(N),b=r(91575),j=r(86501),S=r(1922),v=r(5208),g=r(85893),O=!0,C=function(e){var t=e.user,r=e.lang,a=e.uid,x=(0,l.useState)(!1),N=x[0],O=x[1],C=(0,l.useState)(""),T=C[0],R=C[1],y=(0,l.useState)("generate"),P=y[0],w=y[1],A=(0,l.useState)(""),k=A[0],L=A[1],F=(0,l.useState)(!1),D=F[0],M=F[1],H=(0,l.useState)(0),Z=H[0],z=H[1],U=(0,S.$G)("local").i18n.getFixedT(r,"local"),K=[{id:o.SELF_PROFILE,title:U("report_reason_1")},{id:o.SOMEONE_ELSES_PROFILE,title:U("report_reason_2")},{id:o.NOT_A_REAL_PERSON,title:U("report_reason_3")},{id:o.PROMOTES_HATE_SPEECH_AND_VIOLENCE,title:U("report_reason_4")},{id:o.POSTING_SOMEONE_ELSES_CONTENT,title:U("report_reason_5")}],Y=function(){var e=(0,i.Z)(c().mark((function e(){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={reportedBy:a,itemId:t.user_id,reportedItemType:n.Profile,complaintNumber:"",status:s.Reported,termsAccepted:N,reasonId:T,feedback:""},"/api/user/generateComplaint",e.next=5,E().post("/api/user/generateComplaint",r);case 5:if((o=e.sent).data._id){e.next=8;break}throw"Some error occured.";case 8:return e.next=10,X();case 10:return e.next=12,G();case 12:if(e.sent){e.next=15;break}throw"Some error occured while reporting.";case 15:w(B?"email":"complete"),L(o.data.complaintNumber),window.scrollTo({top:0,behavior:"smooth"}),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),j.Am.error("Some error occured.");case 23:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=(0,i.Z)(c().mark((function e(){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().post("/api/report",{userId:t.user_id,type:v.Wv.USER,reason:T},{headers:{uid:a,token:u.z.getToken()}});case 3:return r=e.sent,e.abrupt("return",r.data);case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=(0,i.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E().get("/api/user/block?userId=".concat(t.user_id),{headers:{uid:a,token:u.z.getToken()}});case 3:e.sent,e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),V=(0,l.useRef)(null),B=!!T&&function(e){switch(e){case o.SELF_PROFILE:case o.POSTING_SOMEONE_ELSES_CONTENT:return!0;default:return!1}}(T),J=function(){if(T){if(N);else if(Z<=0)return z((function(e){return e+1})),M(!0),void setTimeout((function(){M(!1)}),1e3);confirm(U("report_areyousure_msg"))&&Y()}else j.Am.error(U("report_selectreason_msg"),{id:"report_reason_error"})};return(0,g.jsxs)(d._,{children:[(0,g.jsx)(m.default,{children:(0,g.jsx)("title",{children:"Report | Shuru"})}
1),"ANDROID"!==u.z.getPlatform()?(0,g.jsx)(p.h4,{hideHellobar:!0}):null,(0,g.jsx)(I,{className:"p-4",children:function(){switch(P){case"generate":return(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)("h1",{className:"text-xl font-semibold text-center mt-4",children:U("report_pagetitle")}),(0,g.jsxs)("main",{className:"mt-8",children:[(0,g.jsxs)("h2",{className:"text-zinc-800 text-lg font-semibold",children:[U("report_section_1_title"),":"]}),(0,g.jsx)("div",{className:"mt-4 text-zinc-700 text-sm [&_a]:underline",children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_section_1_desc",components:{a:(0,g.jsx)("a",{href:"https:shuru.co.in/terms-and-conditions#shuru-platform-content-policy"})}})})]}),(0,g.jsx)(f.Z,{onDismiss:function(){},ref:V,children:(0,g.jsxs)("div",{className:"relative flex flex-col justify-center p-4 px-6 rounded-md",children:[(0,g.jsx)("button",{onClick:function(){var e;null===(e=V.current)||void 0===e||e.dismiss()},className:"absolute top-0 right-1 w-[2em] h-[2em] flex items-center justify-center text-lg text-slate-500",children:(0,g.jsx)(h.FU5,{})}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("h3",{className:"font-medium mb-4",children:[U("report_sheet_title"),":"]}),(0,g.jsxs)("ul",{className:"list-decimal max-h-[40vh] overflow-auto text-sm font-light border border-zinc-200 rounded-lg p-4 flex flex-col gap-2.5",children:[(0,g.jsx)("li",{className:"ml-4 pl-2",children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_sheet_term1"})}),(0,g.jsx)("li",{className:"ml-4 pl-2 [&_a]:underline",children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_sheet_term2",components:{a:(0,g.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://shuru.co.in/terms-and-conditions"})}})}),(0,g.jsx)("li",{className:"ml-4 pl-2",children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_sheet_term3"})})]})]}),(0,g.jsx)("div",{className:"actions mt-8 my-2 flex justify-center",children:(0,g.jsx)("button",{onClick:function(){var e;O(!0),null===(e=V.current)||void 0===e||e.dismiss()},className:(0,_.Z)("bg-rose-600 text-white text-sm px-4 py-2 min-w-[180px] rounded-md transition-all","disabled:!bg-gray-300 disabled:text-gray-500"),children:U("report_acceptterms")})})]})}),(0,g.jsxs)("form",{action:"#",className:"mt-12 mb-12",children:[(0,g.jsxs)("section",{children:[(0,g.jsxs)("h3",{className:"font-medium mb-4",children:[U("report_section_2_title"),":"]}),(0,g.jsx)("ul",{className:"flex flex-col gap-4",children:K.map((function(e){var t=e.title,r=e.id;return(0,g.jsxs)("li",{className:(0,_.Z)("bg-zinc-50 p-2 px-3 rounded-lg text-sm flex border border-zinc-200 accent-rose-500 transition-all",T===r&&"!bg-rose-50 border-rose-200 text-rose-900"),children:[(0,g.jsx)("div",{className:"flex items-center justify-center h-5",children:(0,g.jsx)("input",{value:r,checked:T===r,type:"radio",name:"reasonId",id:r,onChange:function(){return R(r)}})}),(0,g.jsx)("label",{htmlFor:r,className:"ml-2 flex-1",children:t})]},r)}))})]}),(0,g.jsxs)("section",{className:"mt-12",children:[(0,g.jsx)("h3",{className:"font-medium mb-4",children:U("report_section_3_title")}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("button",{type:"button",onClick:function(){O((function(e){return!e}))},className:(0,_.Z)("bg-zinc-50 p-2 px-3 rounded-lg text-sm flex border border-zinc-200 accent-rose-500 transition-all",N&&"!bg-rose-50 border-rose-200 text-rose-900",D&&"shake"),children:[(0,g.jsx)("div",{className:"flex items-center justify-center h-5",children:N?(0,g.jsx)(h.y5A,{className:"text-lg text-rose-500"}):(0,g.jsx)(h.hrt,{className:"text-lg"})}),(0,g.jsx)("label",{htmlFor:"termsAccepted",className:"ml-2 text-left [&_a]:underline",children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_section_3_tnc_msg",components:{a:(0,g.jsx)("a",{href:"#",onClick:function(e){var t;e.preventDefault(),e.stopPropagation(),null===(t=V.current)||void 0===t||t.present()}})}})})]}),(0,g.jsx)("button",{type:"button",onClick:J,className:"border bg-rose-500 border-rose-500 text-white hover:bg-rose-600 active:bg-rose-600 px-3 py-2 rounded-md text-sm min-w-[100px] w-full mt-8",children:U("report_submit")})]})]})]})]});case"email":return(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)("h1",{className:"text-xl font-semibold text-center mt-4 flex items-center justify-center gap-2",children:U("report_e_complaintgenerated")}),(0,g.jsxs)("section",{className:"mb-16",children:[(0,g.jsxs)("div",{className:"p-2 px-3 rounded-lg text-sm flex flex-col mt-4 border transition-all !bg-rose-50 border-rose-200 text-rose-900 text-center items-center justify-center relative mb-12",children:[U("report_e_refnumber"),(0,g.jsx)("div",{className:"text-2xl font-bold",children:k}),(0,g.jsx)("button",{onClick:function(){(0,b.vQ)(k),j.Am.success(U("report_copied"),{id:"copy"})},className:"absolute bottom-0 translate-y-full bg-rose-50 text-rose-900 text-xs px-3 py-1 rounded-b-lg uppercase border border-rose-200",children:U("report_e_copy")})]}),(0,g.jsxs)("div",{className:"text-sm mt-16 [&_strong]:font-semibold [&_strong]:text-primary",children:[(0,g.jsx)("h1",{className:"text-xl font-semibold text-center mt-4 flex items-center justify-center gap-2 mb-4",children:U("report_e_submit_complaint_details")}),(0,g.jsx)(S.cC,{t:U,i18nKey:"report_e_generatedmsg",components:{a:(0,g.jsx)("a",{className:"underline font-semibold",target:"_blank",rel:"noopener noreferrer",href:"[email protected]"})}}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsxs)("ul",{className:"ml-4 list-disc gap-2.5",children:[(0,g.jsx)("li",{children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_e_doc_1"})}),(0,g.jsx)("li",{children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_e_doc_2"})}),(0,g.jsx)("li",{children:(0,g.jsx)(S.cC,{t:U,i18nKey:"report_e_doc_3"})})]}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),U("report_e_proofmsg")]})]})]});case"complete":return(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)("h1",{className:"text-xl font-semibold text-center mt-4 flex items-center justify-center gap-2",children:U("report_c_submitted")}),(0,g.jsx)("section",{className:"mb-16 mt-4",children:(0,g.jsx)("p",{children:U("report_c_msg")})})]})}}()}
1),"ANDROID"!==u.z.getPlatform()?(0,g.jsx)(p.$_,{}):null]})},I=(0,x.ZP)(d.J).withConfig({displayName:"report__Container",componentId:"sc-cuemwi-0"})(['*{font-family:"Poppins" !important;}.shake{animation:shake 0.5s infinite;}@keyframes shake{0%{transform:translateX(0);}25%{transform:translateX(-5px);background:#fff0f2;}50%{transform:translateX(5px);}75%{transform:translateX(-5px);background:#fff0f2;}100%{transform:translateX(0);}}'])},99793:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/report",function(){return r(52525)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=99793,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.