PageSourceSearch

https://oasi.ai/_next/static/chunks/7722.b833bb3e166750f0.js

js oasi.ai collected 2026-10-05 12:52:04 UTC 1,013 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7722],{97722:(r,e,a)=>{a.r(e),a.d(e,{uploadMediaToSupabase:()=>o});var t=a(61975),l=a(514);function o(r,e){return(0,t._)(function*(){try{var t=r;if(r.type.startsWith("image/"))try{var{default:o}=yield a.e(1963).then(a.bind(a,71963));t=yield o(r,{maxWidthOrHeight:1080,maxSizeMB:5,useWebWorker:!1,fileType:"image/webp"})}catch(r){console.warn("Image compression failed, uploading original file:",r)}var i=Date.now(),n=t.name.split(".").pop()||("image/webp"===t.type?"webp":"bin"),u=e.replace(/[^a-zA-Z0-9]/g,"_"),s="".concat(u,"/").concat(i,".").concat(n),p=t.type.startsWith("image/")?"31536000":"86400",{error:c}=yield l.ND.storage.from("user-uploads").upload(s,t,{cacheControl:p,upsert:!1});if(c)return{url:null,error:c.message};var{data:g,error:d}=l.ND.storage.from("user-uploads").getPublicUrl(s);if(d)return{url:null,error:d.message};return{url:g.publicUrl,error:null}}catch(r){return{url:null,error:r.message||"Unknown error"}}})()}}}]);

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.