PageSourceSearch

https://www.newsroomar.com/_next/static/chunks/7573.5bf36f693b95391e.js

js newsroomar.com collected 2026-10-05 23:27:32 UTC 814 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7573],{87573:(e,a,i)=>{i.d(a,{uploadImage:()=>l});let t=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml"];async function l(e){if(e.size>0xa00000)throw Error("حجم الملف يتجاوز الحد المسموح (10 ميغابايت)");if(!t.includes(e.type))throw Error("نوع الملف غير مدعوم — استخدم JPEG أو PNG أو GIF أو WebP");let a=e.name.replace(/<[^>]*>/g,"").replace(/\.[^/.]+$/,"").replace(/[/\\:*?"<>|]/g,"").slice(0,100),i=new FormData;i.append("file",e),i.append("alt",a);let l=await fetch("/api/media",{method:"POST",credentials:"include",body:i});if(!l.ok)throw Error("Upload failed: ".concat(l.status));let r=await l.json();return{id:r.doc.id,url:r.doc.url,alt:r.doc.alt||""}}}}]);

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.