PageSourceSearch

https://paraphrasetool.com/_next/static/chunks/4500.1ed436cf4d32482f.js

js paraphrasetool.com collected 2026-09-25 20:30:58 UTC 3,662 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4500],{14500:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var s=a(85893),n=a(67294),r=a(46920),l=a(30775),i=a(12227),c=a(75761);let d=e=>{let t=e.trim(),a=t.replace(/"/g,'""'),s=/^[=+\-@]/.test(t)?"'":"";return/[",\n\r]/.test(a)||s?`"${s}${a}"`:a},o=e=>{try{return e.split("\n").map(e=>e.split(",").map(e=>d(e)))}catch(e){throw console.error("Error parsing CSV:",e),Error("Failed to parse CSV file.")}},h=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-cloud-download",...e},n.createElement("path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"}),n.createElement("path",{d:"M12 12v9"}),n.createElement("path",{d:"m8 17 4 4 4-4"})),m=({name:e,url:t,fileIcon:a})=>{let[d,m]=(0,n.useState)(!0),[u,x]=(0,n.useState)([]),[p,f]=(0,n.useState)(null),[g,j]=(0,n.useState)(!1),v=(0,n.useRef)(null);(0,n.useEffect)(()=>{(async()=>{try{m(!0);let e=await fetch(t),a=o(await e.text());x(a)}catch{f("Failed to load CSV file.")}finally{m(!1)}})()},[t]);let y=e=>{v.current&&!v.current.contains(e.target)&&j(!1)};(0,n.useEffect)(()=>(g?document.addEventListener("mousedown",y):document.removeEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}),[g]);let b=(e,t)=>(0,s.jsxs)(r.E.table,{layout:!0,className:"w-full",transition:{type:"spring",stiffness:100,damping:20},children:[(0,s.jsx)("thead",{className:"sticky top-0 bg-gray-200 dark:bg-gray-800 z-10",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"py-4 px-6",children:"#"}),e[0].map((e,t)=>(0,s.jsx)("th",{className:"py-4 px-6",children:e},`header-${t}`))]})}),(0,s.jsx)("tbody",{children:e.slice(1,t).map((e,t)=>(0,s.jsxs)("tr",{className:"border-b border-panel-accent light:border-gray-700 hover:bg-panel-accent hover:light:bg-gray-700/40 transition-colors text-base",children:[(0,s.jsx)("td",{className:"py-4 px-6",children:t+1}),e.map((e,a)=>(0,s.jsx)("td",{className:"py-4 px-6",children:e},`cell-${t}-${a}`))]},`row-${t}`))})]});return(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center gap-4",children:[(0,s.jsxs)("div",{className:"csv-icon flex items-center",children:[a,e&&(0,s.jsx)("figcaption",{className:"ml-1",children:e})]}),(0,s.jsxs)("div",{className:"csv-icon flex items-center gap-6",children:[(0,s.jsx)(c.hU,{size:"small",variant:"text",onClick:()=>{if(0===u.length)return;let t=new Blob([u.map(e=>e.join(",")).join("\n")],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(t),s=document.createElement("a");s.href=a,s.setAttribute("download",`${e||"data"}`),document.body.appendChild(s),s.click(),document.body.removeChild(s)},children:(0,s.jsx)(h,{})}),(0,s.jsx)(c.hU,{size:"small",variant:"text",onClick:()=>{j(e=>!e)},children:(0,s.jsx)(i.a,{})})]})]}),p&&(0,s.jsx)("div",{className:"error-message",children:p}),d&&!u&&(0,s.jsx)("div",{className:"text-text-secondary",children:"Loading..."}),(0,s.jsx)("div",{className:"flex justify-between",children:!p&&u.length>0&&b(u,6)}),(0,s.jsx)(l.M,{children:g&&(0,s.jsx)(r.E.div,{className:"fixed inset-0 bg-black/70 flex justify-center items-center z-50",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(r.E.div,{ref:v,className:"bg-white dark:bg-gray-900 rounded-md w-11/12 h-5/6 overflow-auto",initial:{scale:.8},animate:{scale:1},exit:{scale:.8},transition:{duration:.3},children:!p&&u.length>0&&b(u)})})})]})}}}]);

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.