PageSourceSearch

https://www.yeslawyer.com/_next/static/chunks/8933-e2164874b3702f96.js

js yeslawyer.com collected 2026-10-04 01:44:55 UTC 15,983 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f44c0b39-9a3f-4185-8411-8f8ebf75106e",e._sentryDebugIdIdentifier="sentry-dbid-f44c0b39-9a3f-4185-8411-8f8ebf75106e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8933],{40281:function(e,t,n){n.d(t,{ME:function(){return l},WZ:function(){return s}});var a=n(19072),i=n(83464);let r="https://server.deflection.ai",o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,timeout:15e3}},s=async(e,t)=>{try{let n=(0,a.f0)();return await i.Z.patch("".concat(r,"/api/v1/main/legal/case/").concat(e,"/consult/"),t,o(n))}catch(e){return console.error(e),null}},l=async(e,t,n)=>{try{let s=(0,a.f0)(n);return await i.Z.patch("".concat(r,"/api/v1/main/legal/case/").concat(e,"/"),t,o(s))}catch(e){return console.error(e),null}}},68933:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});
1var a=n(57437),i=n(2265),r=n(99376),o=n(7409),s=n(33287),l=n(17671),d=n(73509);let c=async e=>{let t=await (0,d.T)(e,{maxBytes:d.t9,timeoutMs:d.l8});return new Promise((e,n)=>{let a=new FileReader;a.onloadend=()=>e(a.result),a.onerror=n,a.readAsDataURL(t)})},u=async()=>{let e=await Promise.all([n.e(2505),n.e(9213),n.e(8758)]).then(n.bind(n,53375));return e.jsPDF||e.default},g=async function(e,t){var n,a,i,r,o;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=await u(),d="".concat(null!==(r=null==t?void 0:t.firstname)&&void 0!==r?r:""," ").concat(null!==(o=null==t?void 0:t.lastname)&&void 0!==o?o:"").trim(),g=s?"".concat(s.first_name," ").concat(s.last_name):(null==t?void 0:null===(n=t.case)||void 0===n?void 0:n.lawyer)?"".concat(t.case.lawyer.first_name," ").concat(t.case.lawyer.last_name):"[Attorney Name]",m=(null==s?void 0:s.email)||(null==t?void 0:null===(i=t.case)||void 0===i?void 0:null===(a=i.lawyer)||void 0===a?void 0:a.email)||"[email]",h=new Date().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),v=new l("p","pt","a4"),f=v.internal.pageSize.getWidth(),p=f-80,x=40,w=await c("/capitalright.jpg");v.addImage(w,"JPEG",(f-200)/2,x,200,47),x+=57;let y="169 Madison Ave STE 59197 | New York, NY 10016 | ",b="www.yeslawyer.com";v.setFontSize(9),v.setFont("helvetica","normal"),v.setTextColor("#666666");let E=v.getStringUnitWidth(y)*v.getFontSize()/v.internal.scaleFactor,N=(f-(E+v.getStringUnitWidth(b)*v.getFontSize()/v.internal.scaleFactor))/2;v.text(y,N,x),N+=E,v.setTextColor("#0000EE"),v.textWithLink(b,N,x,{url:"https://".concat(b)}),x+=20,v.setDrawColor("#888888"),v.setLineWidth(1),v.line(40,x,f-40,x),x+=30,v.setTextColor("#000000"),v.setFontSize(11),v.setFont("helvetica","normal"),v.text("RE: ".concat(d," EEOC Submission"),40,x),x+=33,v.text("Attorney Name: ".concat(g),40,x),x+=16.5,v.text("Attorney Email: ".concat(m),40,x),x+=33,v.splitTextToSize(e,p).forEach((e,t)=>{v.text(e,40,x),x+=16.5}),x+=16.5,v.splitTextToSize("I declare under penalty of perjury that the foregoing is true and correct to the best of my knowledge, information, and belief.",p).forEach((e,t)=>{v.text(e,40,x),x+=16.5}),x+=16.5;let j="Signature: ",k=v.getStringUnitWidth(j)*v.getFontSize()/v.internal.scaleFactor;return v.setFont("helvetica","normal"),v.text(j,40,x),v.setFont("helvetica","bold"),v.setTextColor("#FFFFFF"),v.text("{{sign|1}}",40+k,x),v.setTextColor("#000000"),x+=33,v.setFont("helvetica","normal"),v.text("".concat(d,", Charging Party"),40,x),x+=16.5,v.text("Date: ".concat(h),40,x),new File([v.output("blob")],"EEOC_charge_".concat(d,".pdf"),{type:"application/pdf"})};var m=n(43474),h=n(28142),v=n(40281),f=n(83464),p=n(19072);let x=async e=>{let{userEmail:t}=e,n={...(0,p.f0)(),params:{user_email:t},timeout:15e3};try{return(await f.Z.get("".concat("https://server.deflection.ai","/api/v1/main/legal/sign-document"),n)).data}catch(e){console.error("Error getting all sign documents:",e)}};var w=n(64131),y=n(15155);function b(e){var t;let{userData:n,caseId:d,userToken:c,onStepChange:u,currentStep:f}=e;(0,r.useRouter)();let[p,b]=(0,i.useState)(""),[E,N]=(0,i.useState)(!1),[j,k]=(0,i.useState)(""),[F,_]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[T,O]=(0,i.useState)(!1),[P,D]=(0,i.useState)("");(0,i.useEffect)(()=>{var e,t;1===f&&(null==n||null===(e=n.case)||void 0===e||!e.eeoc_signed_file)&&((null==n?void 0:n.category)!=="employment"||!((null==n?void 0:null===(t=n.allegations)||void 0===t?void 0:t.length)>0)||p||S||F||A())},[f,n,p,S,F]),(0,i.useEffect)(()=>{if(!P)return;let e=async e=>{if("https://app.boldsign.com"!==e.origin)return;let{action:t}=e.data;"onDocumentSigned"===t&&I()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[P]);let I=async()=>{await (0,s.Nq)({has_eeoc_filled:!0},null==n?void 0:n.id,c),await (0,v.ME)(d,{eeoc_signed_file:!0},c),u(y.Jn)},L=()=>
1{if(!(null==n?void 0:n.second_intake_response))return"";let e=n.second_intake_response,t="";return e.forEach(e=>{e.question&&e.answer&&(t+="Q: ".concat(e.question,"\nA: ").concat(e.answer,"\n\n"))}),t.trim()},A=async()=>{var e;if(null==n||null===(e=n.case)||void 0===e||!e.eeoc_signed_file){_(!0);try{let e=null==n?void 0:n.allegations;if(!e||0===e.length){o.toast.error("No allegations found to generate a narrative."),_(!1);return}let t=e&&0!==e.length?e.map((e,t)=>{let{Tier1:n,Tier2:a,Tier3:i,earliest_date:r,still_occurring:o}=e,s=i&&i.length>0?i.join(", "):"Not specified";return"".concat(t+1,". Allegation of discrimination based on ").concat(n," (").concat(a,"). The specific issues are: ").concat(s,". The earliest date of an incident was ").concat(r," ").concat(o?"and is ongoing":"",".")}).join("\n"):"No allegations provided.",a=L(),i="You are an employment-law specialist drafting the narrative section of an EEOC charge\n(Form 5).  Use ONLY the data I provide below—do not invent facts.\n────────────────────────────────────────────────────────────────────\nSECTION A  DATA YOU MUST RELY ON\nAllegations:\n".concat(t,"\n\nIntake transcript (first-person quotes, dates, names, events):\n<<<\n").concat(a,'\n>>>\n────────────────────────────────────────────────────────────────────\nSECTION B  WHAT YOU MUST WRITE\nReturn a single block of text that:\n• Is written **in the first person** ("I was fired…").\n• States **who** discriminated (full employer / union names) and **when** (specific\ndates or "around [month year]" if precise dates missing).\n• States **what happened** in chronological order, matching each event to the single\nEEOC issue code given in the allegation JSON.\n– If the JSON value is "Hiring," the text must say I was denied a job, etc.\n• States **why I believe it was illegal**, naming the protected basis terms that\nappear in the transcript (race, sex, pregnancy, disability, retaliation …).\n• Mentions **comparators or witnesses** if the transcript includes them, using\ninitials to preserve privacy.\n• Is concise—≈ 150–400 words—no citations, no legal boilerplate, no emoji.\nDO NOT:\n• Add statutes, case law, or definitions.\n• Add extra allegations not in the JSON.\n• Add intake-style questions or headers—just the narrative paragraph(s).\nNever write that info is missing or aspects are missing, never admit certain things are missing, just write based on what you have.".\nOutput only the final narrative.'),r=await (0,s.ii)({model:"gpt-5-nano",messages:[{role:"system",content:i},{role:"user",content:""}]});r&&"string"==typeof r?b(r):o.toast.error("Failed to generate narrative. Please try again.")}catch(e){console.error("Error generating narrative:",e),o.toast.error("Error generating narrative. Please try again.")}finally{_(!1)}}},z=async e=>{try{var t,a,i,r,s,h,v;let p;if(!e){o.toast.error("There was an error generating the narrative. Please try again."),A();return}let x=await g(e,n);if(!x)throw Error("Failed to create document with letterhead.");let w=await (0,l.s)(x);if(!w)throw Error("Failed to convert document to base64.");let y={signers:[{status:"pending",type:"user",email:null==n?void 0:n.email,phone:null==n?void 0:n.phone,case_ticket:d}],title:"EEOC Charge",message:"Please sign the EEOC Charge",document:w,status:"pending",title:"EEOC Personal Letter",message:"Please sign your EEOC personal letter."};if(!(null==n?void 0:n.email)||!(null==n?void 0:n.phone)||!d)throw Error("Missing required user data (email, phone, or case ID).");let b=await (0,m.QT)(y);if(!b||!b.id)throw Error("Failed to get document ID from signing service.");if(!await (0,m.ci)(b.id,c))throw Error("Failed to send document to BoldSign.");let E=0;for(;!(null==p?void 0:null===(a=p.signers)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.sign_link)&&E<10;)try{p=await (0,m.Rz)(b.id,c),E++,(null==p?void 0:null===(h=p.signers)||void 0===h?void 0:null===(s=h[0])||void 0===s?void 0:s.sign_link)||await new Promise(e=>setTimeout(e,2e3))}catch(e){if(console.error("Poll attempt ".concat(E," failed:"),e),++E>=10)throw Error("Failed to retrieve document details after multiple attempts.");await new Promise(e=>setTimeout(e,2e3))}if(null==p?void 0:null===(r=p.signers)||void 0===r?void 0:null===(i=r[0])||void 0===i?void 0:i.sign_link)D(
1p.signers[0].sign_link),!(f<=1.5)||(null==n?void 0:null===(v=n.case)||void 0===v?void 0:v.eeoc_signed_file)||u(1.5);else throw Error("Could not retrieve signature link after multiple attempts.")}catch(t){console.error("Error generating or signing document:",t);let e="Failed to process document.";e=t.message.includes("Failed to create document")?"Failed to generate document. Please try again.":t.message.includes("Failed to convert")?"Failed to process document format. Please try again.":t.message.includes("Missing required user data")?"Missing user information. Please check your profile details.":t.message.includes("Failed to get document ID")?"Failed to initialize document signing. Please try again.":t.message.includes("Failed to send document to BoldSign")?"Failed to send document for signing. Please try again.":t.message.includes("Could not retrieve signature link")?"Document sent successfully but signature link is not ready. Please check back later.":t.message.includes("Failed to retrieve document details")?"Unable to retrieve document status. Please try again.":"Failed to process document: ".concat(t.message),o.toast.error(e)}},M=async()=>{j.trim()&&b(j),N(!1)},U=async()=>{C(!0),O(!0),await z(p),O(!1),C(!1)},W=async()=>{var e,t,a,i,r,o;if((null==n?void 0:null===(e=n.case)||void 0===e?void 0:e.eeoc_signed_file)||f>1)return;let s=await x({userEmail:null==n?void 0:n.email}),l=null==s?void 0:s.results,d=null==l?void 0:l.find(e=>(null==e?void 0:e.title)==="EEOC Personal Letter"),c=w.default.get("token");if(d){let e=await (0,m.Rz)(null==d?void 0:d.id,c);(null==e?void 0:null===(a=e.signers)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.sign_link)&&(D(null==e?void 0:null===(r=e.signers)||void 0===r?void 0:null===(i=r[0])||void 0===i?void 0:i.sign_link),!(f<=1.5)||(null==n?void 0:null===(o=n.case)||void 0===o?void 0:o.eeoc_signed_file)||u(1.5))}};return((0,i.useEffect)(()=>{(null==n?void 0:n.email)&&W()},[null==n?void 0:n.email,f,null==n?void 0:null===(t=n.case)||void 0===t?void 0:t.eeoc_signed_file]),F)?(0,a.jsx)(h.Z,{isFullScreen:!0,show:!0,text:"Generating narrative..."}):S?(0,a.jsx)(h.Z,{isFullScreen:!0,show:!0,text:"Generating your EEOC charge, please wait. This could take up to 30 seconds."}):P&&1.5===f?(0,a.jsx)("div",{className:"mx-auto w-full max-w-4xl",children:(0,a.jsx)("div",{className:"h-[80vh] lg:h-[500px] w-full lg:w-[1000px] mx-[10px] lg:mx-auto mt-8",children:(0,a.jsx)("iframe",{id:"prepare_page",src:P,height:"100%",width:"100%",className:"frame border rounded-lg",title:"Document Signature"})})}):(0,a.jsxs)("div",{className:"mx-auto w-full max-w-4xl",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("p",{className:"text-gray-600",children:"Please review the generated narrative for your EEOC charge. You can edit it if needed before proceeding to sign."}),(0,a.jsx)("p",{className:"text-gray-600",children:"This will be submitted to the EEOC on your behalf and is required to start your claim"})]}),p&&(0,a.jsxs)("div",{className:"bg-white border border-gray-200 rounded-lg shadow-sm p-6 mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-800",children:"Your EEOC Narrative"}),!E&&(0,a.jsxs)("button",{onClick:()=>{k(p),N(!0)},className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-blue-600 bg-blue-50 border border-blue-200 rounded-lg hover:bg-blue-100 hover:border-blue-300 transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Edit Narrative"]})]}),E?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("textarea",{value:j,onChange:e=>k(e.target.value),className:"w-full min-h-[200px] p-4 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-vertical text-gray-700 leading-relaxed",placeholder:"Enter your narrative here..."}),(0,a.jsxs)("div",{className:"flex gap-3 justify-end",children:[(0,a.jsx)("button",{onClick:()=>{k(""),N(!1)},className:"px-4 py-2 text-sm font-medium text-gray-600 bg-gray-100 border border-gray-300 rounded-lg hover:bg-gray-200 transition-colors",children:"Cancel"}),(0,a.jsxs)("button",{onClick:M,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-[#F04E23] rounded-lg hover:bg-[#
1E03D1A] transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Save Narrative"]})]})]}):(0,a.jsx)("div",{className:"prose max-w-none",children:(0,a.jsxs)("p",{className:"text-gray-700 leading-relaxed whitespace-pre-wrap",children:['"',p,'"']})})]}),!E&&p&&(0,a.jsx)("div",{className:"text-center flex justify-center gap-4",children:(0,a.jsx)("button",{onClick:U,disabled:T||S,className:"px-8 py-3 bg-[#F04E23] text-white text-sm font-semibold rounded-xl hover:bg-[#d9441f] disabled:opacity-50 transition-colors shadow-md hover:shadow-lg",children:T?"Generating Document...":"Accept and Sign"})}),!p&&!F&&(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsxs)("div",{className:"text-gray-500 mb-6",children:[(0,a.jsx)("svg",{className:"h-16 w-16 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),(0,a.jsx)("h3",{className:"text-lg font-medium text-gray-500 mb-2",children:"No narrative generated yet"}),(0,a.jsx)("p",{className:"text-gray-400",children:"Click the button below to generate your EEOC narrative."})]}),(0,a.jsx)("button",{onClick:A,disabled:F,className:"px-8 py-3 bg-[#F04E23] text-white text-sm font-semibold rounded-xl hover:bg-[#d9441f] disabled:opacity-50 transition-colors shadow-md hover:shadow-lg",children:"Generate Narrative"})]})]})}},17671:function(e,t,n){n.d(t,{s:function(){return a}});let a=e=>new Promise((t,n)=>{let a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>n(e)})}}]);

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.