PageSourceSearch

https://www.mvpaffiliate.io/_next/static/chunks/50522-25734dccabfbaee1.js

js mvpaffiliate.io collected 2026-10-02 01:58:24 UTC 7,238 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50522],{17603:(e,t,r)=>{r.d(t,{c:()=>o});function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(e||"New Short").replace(/\s+/g," ").trim().slice(0,100),o=new Set(["shorts"]),a=["#Shorts"];for(let e of t){let t=String(e).replace(/^#+/,"").replace(/\s+/g,"").trim();if(!t)continue;let r=t.toLowerCase();o.has(r)||(o.add(r),a.push("#".concat(t)))}let l=r;for(let e of a)if("".concat(l," ").concat(e).length<=100)l="".concat(l," ").concat(e);else break;return l.slice(0,100)}},18990:(e,t,r)=>{function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=new Set,o=[],l=e=>{let t=e.replace(/\s+/g," ").trim().toLowerCase();t.length<2||t.length>40||r.has(t)||(r.add(t),o.push(t))};for(let t of e||[]){let e=String(t).replace(/^#+/,"").trim();e&&l(e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim())}let s=(t||"").toLowerCase().replace(/[^a-z0-9\s]/g," ").split(/\s+/).filter(e=>e.length>3&&!a.has(e));s.length>=2&&l(s.slice(0,3).join(" "));let i=[],n=0;for(let e of o){if((n+=e.length+1)>450||i.length>=15)break;i.push(e)}return i}r.d(t,{J:()=>o});let a=new Set(["this","that","with","your","from","just","have","will","they","them","anymore","more","best","these","those","here"])},33443:(e,t,r)=>{r.d(t,{Jy:()=>n,gS:()=>i});var o=r(95155),a=r(12115);let l="#7C3AED",s="mvp:shorts-usage-changed";function i(){window.dispatchEvent(new CustomEvent(s))}function n(e){var t;let{className:r=""}=e,{usage:i}=function(){let[e,t]=(0,a.useState)(null),r=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/youtube/shorts/usage",{cache:"no-store"});e.ok&&t(await e.json())}catch(e){}},[]);return(0,a.useEffect)(()=>{r();let e=()=>{r()};return window.addEventListener(s,e),()=>window.removeEventListener(s,e)},[r]),{usage:e,reload:r}}();if(!i||null===i.limit)return null;let n=null!=(t=i.remaining)?t:Math.max(0,i.limit-i.used),c=n<=0?"spent":n<=5?"low":"ok",d="spent"===c,u="low"===c;return(0,o.jsx)("span",{className:"inline-flex items-center gap-1 text-[11px] font-semibold rounded-full px-2.5 py-0.5 border ".concat(r),style:d?{borderColor:"#ff3b30",color:"#ff3b30"}:u?{borderColor:"#ff9500",color:"#b45309"}:{borderColor:"".concat(l,"66"),color:l},title:i.resetLabel?"Resets ".concat(i.resetLabel):void 0,children:d?"No Shorts left this period".concat(i.resetLabel?" \xb7 resets ".concat(i.resetLabel):""):"".concat(n," of ").concat(i.limit," Shorts left").concat(u&&i.resetLabel?" \xb7 resets ".concat(i.resetLabel):"")})}},86482:(e,t,r)=>{r.d(t,{r:()=>c});var o=r(95155),a=r(12115),l=r(35299),s=r(21786),i=r(6132),n=r(8525);function c(e){let{videoId:t,onUploaded:r,compact:c=!1,targetColumn:d="instagram_video_url",extraFields:u,label:p,helpText:f}=e,[h,m]=(0,a.useState)(!1),[x,g]=(0,a.useState)(null),[v,b]=(0,a.useState)(!1),w=(0,a.useRef)(null),y=(0,n.k)(),k=(0,a.useCallback)(async e=>{var o;if(g(null),!e.type.startsWith("video/"))return void g("That doesn't look like a video file. MP4 works best.");if(e.size>0x12c00000)return void g("That file is ".concat((e.size/1024/1024).toFixed(1)," MB — keep it under 300 MB."));let a="source_video_url"===d,l=0;if(a){try{l=await new Promise(t=>{try{let r=URL.createObjectURL(e),o=document.createElement("video");o.preload="metadata";let a=e=>{URL.revokeObjectURL(r),t(Number.isFinite(e)&&e>0?e:0)};o.onloadedmetadata=()=>a(o.duration),o.onerror=()=>a(0),setTimeout(()=>a(o.duration),5e3),o.src=r}catch(e){t(0)}})}catch(e){}if(l>600)return void g("That video is ".concat(Math.round(l/60)," minutes. Clip Factory works on videos up to 10 minutes — trim it first."))}m(!0);try{let{data:{user:s}}=await y.auth.getUser();if(!s)throw Error("Not signed in.");let i=(null==(o=e.name.split(".").pop())?void 0:o.toLowerCase())||"mp4",n="".concat(s.id,"/").concat(a?"source":"short","-").concat(crypto.randomUUID(),".").concat(i),{error:c}=await y.storage.from("instagram-videos").upload(n,e,{cacheControl:"3600",upsert:!1,contentType:e.type||"video/mp4"});if(c)throw Error(c.message||"Storage upload failed.");let{data:p}=y.storage.from("instagram-videos").getPublicUrl(n),f=p.publicUrl;
1if(!f)throw Error("Storage did not return a public URL.");let{error:h}=await y.from("youtube_videos").update({[d]:f,...a&&l>0?{duration_seconds:Math.round(l)}:{},...null!=u?u:{}}).eq("id",t).eq("user_id",s.id);if(h)throw Error("Couldn't link the video: ".concat(h.message));await r()}catch(e){g(e instanceof Error?e.message:"Upload failed.")}finally{m(!1),w.current&&(w.current.value="")}},[t,y,r,d,u]),j=(0,a.useCallback)(e=>{var t;e.preventDefault(),b(!1);let r=null==(t=e.dataTransfer.files)?void 0:t[0];r&&k(r)},[k]);return c?(0,o.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,o.jsx)("input",{ref:w,type:"file",accept:"video/mp4,video/quicktime,video/webm",className:"hidden",onChange:e=>{var t;let r=null==(t=e.target.files)?void 0:t[0];r&&k(r)}}),(0,o.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=w.current)?void 0:e.click()},disabled:h,className:"text-[10px] text-[#86868b] hover:text-[#7C3AED] inline-flex items-center gap-1 disabled:opacity-50",title:"Upload the MP4 from your computer",children:h?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{size:10,className:"animate-spin"})," Uploading…"]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.A,{size:10})," Or upload a different MP4 from your computer"]})}),x&&(0,o.jsx)("p",{className:"text-[10px] text-[#ff3b30]",children:x})]}):(0,o.jsxs)("div",{onDragOver:e=>{e.preventDefault(),b(!0)},onDragLeave:()=>b(!1),onDrop:j,onClick:()=>{var e;return!h&&(null==(e=w.current)?void 0:e.click())},className:"rounded-lg border-2 border-dashed p-5 flex flex-col items-center gap-2 cursor-pointer transition-colors ".concat(v?"border-[#7C3AED] bg-[#7C3AED]/5":"border-gray-300 dark:border-white/15 hover:border-[#7C3AED]/60"," ").concat(h?"opacity-60 cursor-wait":""),children:[(0,o.jsx)("input",{ref:w,type:"file",accept:"video/mp4,video/quicktime,video/webm",className:"hidden",onChange:e=>{var t;let r=null==(t=e.target.files)?void 0:t[0];r&&k(r)}}),h?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{size:20,className:"text-[#7C3AED] animate-spin"}),(0,o.jsx)("p",{className:"text-sm text-[#1d1d1f] dark:text-[#f5f5f7]",children:"Uploading…"}),(0,o.jsx)("p",{className:"text-[11px] text-[#86868b]",children:"Don't close this window."})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.A,{size:20,className:"text-[#7C3AED]"}),(0,o.jsx)("p",{className:"text-sm font-semibold text-[#1d1d1f] dark:text-[#f5f5f7]",children:p||"Drop the MP4 here"}),(0,o.jsx)("p",{className:"text-[11px] text-[#86868b] text-center",children:f||(0,o.jsxs)(o.Fragment,{children:["or click to pick from your computer. 9:16 vertical, under 300 MB.",(0,o.jsx)("br",{}),"Probably already in your Downloads folder from when you uploaded to YouTube."]})})]}),x&&(0,o.jsxs)("p",{className:"text-[11px] text-[#ff3b30] flex items-center gap-1 mt-1",children:[(0,o.jsx)(i.A,{size:11})," ",x]})]})}},88560:(e,t,r)=>{r.d(t,{s:()=>o});let o=["bold-white","yellow-pop","outline","hype","brand"]}}]);

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.