PageSourceSearch

https://3me.ai/_next/static/chunks/5252.bcf0d92104ac54b5.js

js 3me.ai collected 2026-10-05 12:56:48 UTC 1,935 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5252],{35252:(e,t,r)=>{async function o(e,t,r,o){let n,a=new FormData;for(let r of(a.set("brandId",e.brandId),a.set("role",e.role),a.set("family",e.family),a.set("licenceConfirmed",e.licenceConfirmed?"true":"false"),a.set("licenceNotes",e.licenceNotes||""),a.set("variants",JSON.stringify(function(e,t){if(!e)return{};let r={};for(let o of t){let t=e[o.name];t&&(r[o.name]=t)}return r}(e.variants,t))),t))a.append("files",r,r.name);let l=new AbortController,i=setTimeout(()=>l.abort(),9e4);try{n=await fetch("/api/storage/upload-font",{method:"POST",body:a,credentials:"include",signal:l.signal})}catch(e){if(e instanceof Error&&"AbortError"===e.name)throw Error("Upload timed out. Check your connection and try again.");throw e}finally{clearTimeout(i)}let s=await n.text().catch(()=>""),c={};if(s)try{c=JSON.parse(s)}catch{c={}}if(!n.ok){let e=String(c?.details||c?.error||"").trim(),t=o>1?` (batch ${r+1} of ${o})`:"";if(401===n.status)throw Error("SESSION_EXPIRED");if(413===n.status||!e&&/entity too large|payload too large/i.test(s))throw Error(`Upload too large for the server${t}. Try fewer files at once.`);throw Error(e||`Failed to upload font${t}`)}return{count:"number"==typeof c?.count?c.count:t.length}}async function n(e){let t=e.files||[];if(0===t.length)throw Error("Choose one or more font files to upload");let r=function(e){let t=[],r=[],o=0;for(let n of e){if(n.size>4194304)throw Error(`"${n.name}" is too large (${Math.round(n.size/1024/1024)}MB). Each file must be under 4MB.`);let e=o+n.size>1310720,a=r.length>=3;r.length>0&&(e||a)&&(t.push(r),r=[],o=0),r.push(n),o+=n.size}return r.length>0&&t.push(r),t.length>0?t:[e]}(t),n=0;for(let t=0;t<r.length;t++)e.onProgress?.({batchIndex:t+1,batchCount:r.length,filesInBatch:r[t].length}),n+=(await o(e,r[t],t,r.length)).count;return{count:n,batches:r.length}}r.d(t,{uploadBrandFonts:()=>n})}}]);

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.