PageSourceSearch

https://fortune.com/_next/static/chunks/3787.48906d3da7dd24f3.js

js fortune.com collected 2026-09-24 09:08:07 UTC 3,355 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3787],{73787:(e,t,o)=>{o.d(t,{generateSubmissionPdf:()=>f});var l=o(99711);let n=.55*170,s=(e,t)=>{e.y+t>272&&(e.doc.addPage(),e.y=20)},i=(e,t,o)=>{let l=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\t/g,"  ").replace(/[\u2022\u2023\u25E6\u2043\u2219\u25CF\u25CB\u25A0\u25A1\u25AA\u25AB]/g,"-").replace(/[\u2018\u2019\u201A\u201B]/g,"'").replace(/[\u201C\u201D\u201E\u201F]/g,'"').replace(/[\u2013\u2014]/g,"-").replace(/[\u00A0\u202F]/g," ").replace(/\u2026/g,"...").split("\n"),n=[];for(let t of l){if(""===t.trim()){n.push("");continue}n.push(...e.doc.splitTextToSize(t,o))}return n},a=(e,t,o,l)=>{for(let n of t)s(e,5),""!==n&&e.doc.text(n,o,e.y,l?.align?{align:l.align}:void 0),e.y+=5},c=e=>{e.doc.setDrawColor(200,200,200),e.doc.line(20,e.y,190,e.y),e.y+=3},r=(e,t)=>e.split(".").reduce((e,t)=>e?.[t],t),d=(e,t,o)=>{let l=170/(t.columns.length+1);s(e,(t.rows.length+1)*8+5+5),(t.label||t.shortLabel)&&(e.doc.setFontSize(10),e.doc.setFont("helvetica","bold"),e.doc.text(t.shortLabel??t.label??"",20,e.y),e.y+=7),e.doc.setFontSize(8),e.doc.setFont("helvetica","bold"),e.doc.text(t.rowHeader??"Line Item",20,e.y);for(let o=0;o<t.columns.length;o++)e.doc.text(t.columns[o].label,20+l*(o+1),e.y,{align:"left"});for(let n of(e.y+=2,c(e),e.y+=1,e.doc.setFont("helvetica","normal"),t.rows)){s(e,8),e.doc.text(n.shortLabel??n.label,20,e.y);for(let s=0;s<t.columns.length;s++){let i=o?.[n.key]?.[t.columns[s].key]||"—";e.doc.text(i,20+l*(s+1),e.y,{align:"left"})}e.y+=8}e.y+=3},y=(e,t,o)=>{s(e,9),e.doc.setFontSize(10),e.doc.setFont("helvetica","bold"),e.doc.setTextColor(0,0,0);let l=i(e,o,n);if(l.length>2){e.doc.setFont("helvetica","normal"),e.doc.setTextColor(100,100,100),e.doc.text(t??"",20,e.y),e.y+=7,e.doc.setTextColor(0,0,0),e.doc.setFont("helvetica","bold");let l=i(e,o,170);a(e,l,20),e.y+=1}else s(e,5+(l.length>1?5*l.length:0)+4),e.doc.setFont("helvetica","normal"),e.doc.setTextColor(100,100,100),e.doc.text(t??"",20,e.y),e.doc.setTextColor(0,0,0),e.doc.setFont("helvetica","bold"),a(e,l,190,{align:"right"}),e.y+=1;c(e),e.y+=2},u=(e,t,o,n)=>{for(let s of t.flat()){if("displayText"===s.type||"review"===s.type)continue;if("fieldset"===s.type){u(e,s.fields,`${o}.${s.key}`,n);continue}let t=r(`${o}.${s.key}`,n),i=(0,l.NB)(s.type,t),a=s.shortLabel??s.label;if("—"!==i){if("matrix"===s.type){d(e,s,t);continue}y(e,a,i)}}},f=async(e,t,l)=>{let{jsPDF:n}=await o.e(883).then(o.bind(o,20883)),i=new n({format:"a4",orientation:"portrait",unit:"mm"}),a={doc:i,y:20};for(let o of(i.setFontSize(18),i.setFont("helvetica","bold"),i.text(l,20,a.y),a.y+=8,i.setFontSize(10),i.setFont("helvetica","normal"),i.setTextColor(100,100,100),i.text("Submission Summary",20,a.y),a.y+=4,i.setTextColor(150,150,150),i.setFontSize(8),i.text(`Generated on ${new Date().toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})}`,20,a.y),a.y+=8,i.setTextColor(0,0,0),c(a),a.y+=5,e.sections))if(0!==o.fieldsets.length&&o.reviewable){for(let e of(s(a,20),i.setFontSize(14),i.setFont("helvetica","bold"),i.setTextColor(0,0,0),i.text(o.title,20,a.y),a.y+=8,o.fieldsets))s(a,15),i.setFontSize(11),i.setFont("helvetica","bold"),i.setTextColor(60,60,60),i.text(e.label,20,a.y),a.y+=6,i.setTextColor(0,0,0),u(a,e.fields,e.key,t),a.y+=3;a.y+=5}i.save(`${e.slug}-submission.pdf`)}}}]);

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.