PageSourceSearch

https://uploadtourl.com/static/js/3.5fc793d3.chunk.js

js uploadtourl.com collected 2026-10-05 02:39:30 UTC 31,826 bytes, 3 lines download raw bytes

1/*! For license information please see 3.5fc793d3.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[3],{2464(e,t,s){s.d(t,{A:()=>S});var r=s(5043),a=s(5847),l=s(3866),o=s(4107),n=s(4379),d=s(5731),i=s(6376),c=s(2626),x=s(8306),m=s(797),h=s(8326),u=s(9463),p=s(3390),f=s(9766),b=s(1002),g=s(6328),j=s(2024),w=s(579);const v=`${{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CLERK_PUBLISHABLE_KEY:"pk_live_Y2xlcmsudXBsb2FkdG91cmwuY29tJA"}.REACT_APP_BACKEND_URL||""}/api`,N="idle",y="uploading",k="success";function A(){const{getToken:e}=(0,l.As)(),{userData:t}=(0,o.J)(),[s,a]=(0,r.useState)(N),[n,d]=(0,r.useState)(""),[i,c]=(0,r.useState)(!1),x=(0,r.useRef)(null),h=(0,r.useCallback)(async s=>{a(y),d(s.name);try{let l=((null===t||void 0===t?void 0:t.api_keys)||[]).find(e=>e.is_active);if(!l){var r;const t=await e(),s=await fetch(`${v}/dashboard`,{headers:{Authorization:`Bearer ${t}`}});if(!s.ok)throw new Error("Failed to fetch account data.");l=((null===(r=(await s.json()).user)||void 0===r?void 0:r.api_keys)||[]).find(e=>e.is_active)}if(!l)throw new Error("No active API key found. Generate one from Overview.");const o=new FormData;o.append("file",s),o.append("expiry_days","1"),o.append("source","dashboard-sidebar");const n=await fetch(`${v}/upload`,{method:"POST",headers:{"x-api-key":l.key},body:o});if(!n.ok){const e=await n.json().catch(()=>({}));throw new Error(e.detail||`Upload failed (${n.status})`)}const d=await n.json();await navigator.clipboard.writeText(d.url),g.oR.success("Uploaded! URL copied to clipboard",{description:d.url}),a(k)}catch(l){return g.oR.error(l.message||"Upload failed"),a(N),void d("")}setTimeout(()=>{a(N),d("")},2500)},[e,t]),u=(0,r.useCallback)(e=>{e.preventDefault(),c(!0)},[]),p=(0,r.useCallback)(e=>{e.preventDefault(),c(!1)},[]),f=(0,r.useCallback)(e=>{var t;e.preventDefault(),c(!1);const r=null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0];r&&s===N&&h(r)},[s,h]);return(0,w.jsxs)("div",{className:"bg-[#1D202C] rounded-[14px] p-4","data-testid":"sidebar-quick-upload",children:[(0,w.jsx)("p",{className:"text-[12.5px] font-bold text-white mb-1",children:"Quick Upload"}),(0,w.jsx)("p",{className:"text-[11.5px] text-[#9497A1] mb-3 leading-relaxed",children:"Drop a file without leaving this menu."}),(0,w.jsx)("input",{ref:x,type:"file",className:"hidden",onChange:e=>{var t;const s=null===(t=e.target.files)||void 0===t?void 0:t[0];s&&h(s),e.target.value=""},"data-testid":"sidebar-quick-upload-input"}),(0,w.jsx)("button",{onClick:()=>{var e;return s===N&&(null===(e=x.current)||void 0===e?void 0:e.click())},onDragOver:u,onDragLeave:p,onDrop:f,disabled:s!==N,className:`w-full border-[1.5px] border-dashed rounded-[10px] py-4 px-2 text-center transition-colors ${i?"border-brand bg-brand/10":"border-[#3A3D4C] hover:border-brand/60"} ${s!==N?"cursor-default":"cursor-pointer"}`,children:s===y?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(j.A,{className:"w-4 h-4 text-brand animate-spin mx-auto mb-1.5"}),(0,w.jsx)("p",{className:"text-[11.5px] text-[#9497A1] truncate px-2",children:n})]}):s===k?(0,w.jsx)("p",{className:"text-[11.5px] text-success font-bold",children:"Copied to clipboard!"}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.A,{className:"w-4 h-4 text-brand mx-auto mb-1.5"}),(0,w.jsx)("p",{className:"text-[11.5px] text-brand font-bold",children:"Click or drop file"})]})})]})}const C=[{name:"Overview",icon:n.A,path:"/dashboard"},{name:"Custom Domain",icon:d.A,path:"/dashboard/custom-domain",proOnly:!0},{name:"Billing",icon:i.A,path:"/billing"},{name:"API Docs",icon:c.A,path:"/dashboard/api-docs"},{name:"Integrations",icon:x.A,path:"/dashboard/integrations"}];function P(e){var t;let{collapsed:s,setCollapsed:r}=e;const{openUserProfile:n}=(0,l.ho)(),{userData:d}=(0,o.J)(),i=(null===d||void 0===d||null===(t=d.user)||void 0===t?void 0:t.plan)||(null===d||void 0===d?void 0:d.plan)||"free",c=["pro","business"].includes(i);return(0,w.jsxs)("aside",{className:(0,f.cn)("fixed left-0 top-0 h-screen bg-[#14161F] border-r border-white/10 transition-all duration-300 z-50 flex flex-col overflow-y-auto overflow-x-hidden",s?"w-20":"w-64"),children:[(0,w.jsxs)("div",{className:"p-6 flex items-center gap-3",children:[(0,w.jsxs)(a.N_,{to:"/",className:"flex items-center gap-3 hover:opacity-80 transition-opacity shrink-0",children:[(0,w.jsx)("div",{className:"w-9 h-9 rounded-[10px] bg-gradient-to-br from-brand-from to-brand-to flex items-center justify-center shadow-glow shrink-0",children:(0,w.jsx)(m.A,{className:"w-4 h-4 text-white"})}),!s&&(0,w.jsx)("span",{className:"text-[15.5px] font-extrabold text-white whitespace-nowrap",children:"Upload to URL"})]}),(0,w.jsx)("div",{className:(0,f.cn)("ml-auto",s&&"hidden"),children:(0,w.jsx)(b.U,{})})]}),!s&&(0,w.jsx)("div",{className:"text-[10.5px] font-bold tracking-wider text-[#6C6F7C] px-6 pb-2",children:"MENU"}),(0,w.jsx)("nav",{className:"flex-1 px-3 py-1 space-y-1",children:C.map(e=>(0,w.jsxs)(a.k2,{to:e.path,end:"/dashboard"===e.path,className:e=>{let{isActive:t}=e;return(0,f.cn)("flex items-center gap-3 px-3 py-2.5 rounded-[10px] transition-all group text-[13.5px] font-semibold",t?"bg-brand text-white shadow-glow":"text-[#B7B9C4] hover:text-white hover:bg-white/5")},children:[(0,w.jsx)(e.icon,{className:(0,f.cn)("w-4 h-4 shrink-0",s&&"mx-auto")}),!s&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{children:e.name}),e.proOnly&&!c&&(0,w.jsx)("span",{className:"ml-auto text-[9px] font-extrabold tracking-wider px-1.5 py-0.5 rounded bg-brand/20 text-brand border border-brand/30",children:"PRO"})]})]},e.path))}),!s&&(0,w.jsx)("div",{className:"px-3 pb-3",children:(0,w.jsx)(A,{})}),(0,w.jsxs)("div",{className:"p-4 border-t border-white/10",children:[(0,w.jsxs)("div",{className:(0,f.cn)("flex items-center gap-3 px-2 py-2",s&&"justify-center"),children:[(0,w.jsx)(l.uF,{afterSignOutUrl:"/"}),!s&&(0,w.jsxs)("div",{className:"flex flex-col min-w-0 cursor-pointer group",onClick:()=>n(),children:[(0,w.jsx)("span",{className:"text-[12.5px] font-bold text-white truncate group-hover:text-white/80 transition-colors",children:"Account"}),(0,w.jsx)("span",{className:"text-[11px] text-[#6C6F7C] truncate group-hover:text-[#9497A1] transition-colors",children:"Settings"})]})]}),s&&(0,w.jsx)("div",{className:"flex justify-center mt-2",children:(0,w.jsx)(b.U,{})}),(0,w.jsxs)(p.$,{variant:"ghost",size:"sm",onClick:()=>r(!s),className:"w-full mt-4 text-[#6C6F7C] hover:text-white hover:bg-white/5 flex items-center justify-center transition-colors",children:[s?(0,w.jsx)(h.A,{className:"w-4 h-4"}):(0,w.jsx)(u.A,{className:"w-4 h-4 mr-2"}),!s&&"Collapse"]})]})]})}var _=s(614),F=s(2983);function S(e){let{children:t}=e;const[s,a]=(0,r.useState)(!1),[l,o]=(0,r.useState)(!1);return(0,w.jsxs)("div",{className:"min-h-screen bg-background flex",children:[(0,w.jsx)("div",{className:"hidden md:block",children:(0,w.jsx)(P,{collapsed:s,setCollapsed:a})}),l&&(0,w.jsx)("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[60] md:hidden",onClick:()=>o(!1)}),(0,w.jsxs)("div",{className:(0,f.cn)("fixed inset-y-0 left-0 w-64 bg-[#14161F] z-[70] transition-transform duration-300 transform md:hidden",l?"translate-x-0":"-translate-x-full"),children:[(0,w.jsx)(P,{collapsed:!1,setCollapsed:()=>o(!1)}),(0,w.jsx)(p.$,{variant:"ghost",size:"icon",className:"absolute top-4 right-4 text-[#B7B9C4] hover:text-white hover:bg-white/10",onClick:()=>o(!1),children:(0,w.jsx)(_.A,{className:"w-6 h-6"})})]}),(0,w.jsxs)("div",{className:(0,f.cn)("flex-1 min-w-0 flex flex-col transition-all duration-300",s?"md:pl-20":"md:pl-64"),children:[(0,w.jsxs)("header",{className:"md:hidden flex items-center justify-between p-4 border-b border-border bg-card/90 backdrop-blur-md sticky top-0 z-40",children:[(0,w.jsxs)("div",{className:"flex items-center gap-3",children:[(0,w.jsx)("div",{className:"w-9 h-9 rounded-[10px] bg-gradient-to-br from-brand-from to-brand-to flex items-center justify-center shadow-glow",children:(0,w.jsx)(m.A,{className:"w-4 h-4 text-white"})}),(0,w.jsx)("span",{className:"font-extrabold text-foreground tracking-tight text-lg",children:"Upload to URL"})]}),(0,w.jsxs)("div",{className:"flex items-center gap-2",children:[(0,w.jsx)(b.U,{}),(0,w.jsx)(p.$,{variant:"ghost",size:"icon",className:"text-muted-foreground hover:text-foreground hover:bg-accent rounded-xl",onClick:()=>o(!0),children:(0,w.jsx)(F.A,{className:"w-6 h-6"})})]})]}),(0,w.jsx)("main",{className:"flex-1 p-2 md:p-3 lg:p-4 overflow-x-hidden",children:(0,w.jsx)("div",{className:"w-full mx-auto",children:t})})]})]})}},1140(e,t,s){s.d(t,{Zp:()=>o});var r=s(5043),a=s(9766),l=s(579);const o=r.forwardRef((e,t)=>
2{let{className:s,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...r})});o.displayName="Card";r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",s),...r})}).displayName="CardHeader";r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",s),...r})}).displayName="CardTitle";r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",s),...r})}).displayName="CardDescription";r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",s),...r})}).displayName="CardContent";r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,l.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",s),...r})}).displayName="CardFooter"},8003(e,t,s){s.r(t),s.d(t,{default:()=>C});var r=s(5043),a=s(3866),l=s(5847),o=s(3390),n=s(1140),d=s(5949),i=s(6328),c=s(6833),x=s(6955),m=s(2024),h=s(6210),u=s(6376),p=s(5731),f=s(7856),b=s(2489),g=s(73),j=s(8996),w=s(5844),v=s(2464),N=s(4107),y=s(8654),k=s(579);const A=`${{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CLERK_PUBLISHABLE_KEY:"pk_live_Y2xlcmsudXBsb2FkdG91cmwuY29tJA"}.REACT_APP_BACKEND_URL||""}/api`;function C(){const{getToken:e}=(0,a.As)(),{userData:t,refreshUser:s}=(0,N.J)(),C=(0,l.Zp)(),[P]=(0,l.ok)(),[_,F]=(0,r.useState)(!1),[S,E]=(0,r.useState)(!1),[R,$]=(0,r.useState)(null),[D,U]=(0,r.useState)("annual");(0,r.useEffect)(()=>{const e=P.get("session_id");e&&T(e)},[P]);const T=async function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(r>=5)return i.oR.error("Payment status check timed out. Please refresh the page."),void E(!1);E(!0);try{const a=await e(),l=await fetch(`${A}/checkout/status/${t}`,{headers:{Authorization:`Bearer ${a}`}});if(!l.ok)throw new Error("Failed to check payment status");const o=await l.json();if("paid"===o.payment_status)return i.oR.success("Payment successful! Your plan has been upgraded."),E(!1),s(),void setTimeout(()=>C("/dashboard"),2e3);if("expired"===o.status)return i.oR.error("Payment session expired. Please try again."),void E(!1);setTimeout(()=>T(t,r+1),2e3)}catch(a){console.error("Error checking payment status:",a),E(!1)}},B=async t=>{if(_)return;const s=`${t}_${D}`;F(!0),$(t);try{const t=await e(),r=window.location.origin,a=await fetch(`${A}/checkout/session?package_id=${s}&origin_url=${encodeURIComponent(r)}`,{method:"POST",headers:{Authorization:`Bearer ${t}`}});if(!a.ok){const e=await a.json();throw new Error(e.detail||"Failed to create checkout session")}const l=await a.json();if(!l.url)throw new Error("No checkout URL received");window.location.href=l.url}catch(r){console.error("Payment error:",r),i.oR.error(r.message||"Failed to initiate payment"),F(!1),$(null)}},z=e=>null!==t&&void 0!==t&&t.plan?t.plan.toLowerCase()===e.toLowerCase():"free"===e,O=e=>{let{children:t,tooltip:s,dark:r=!1}=e;return(0,k.jsxs)("li",{className:"flex items-start gap-3",children:[(0,k.jsx)("div",{className:`w-5 h-5 rounded-full ${r?"bg-brand-tint/20":"bg-success-bg"} flex items-center justify-center flex-shrink-0 mt-0.5`,children:(0,k.jsx)(h.A,{className:"w-3 h-3 "+(r?"text-brand":"text-success")})}),(0,k.jsxs)("span",{className:"flex items-center gap-1.5 "+(r?"text-white/85":"text-foreground/80"),children:[t,s&&(0,k.jsxs)(w.m_,{children:[(0,k.jsx)(w.k$,{asChild:!0,children:(0,k.jsx)(f.A,{className:"w-3.5 h-3.5 cursor-help flex-shrink-0 "+(r?"text-white/40 hover:text-white/70":"text-muted-foreground hover:text-foreground")})}),(0,k.jsx)(w.ZI,{className:"max-w-xs bg-popover text-popover-foreground border border-border",children:(0,k.jsx)("p",{children:s})})]})]})]})},I="annual"===D,L=Math.floor(8.25),M=Math.round(25),W=Math.floor(29.25),K=(Math.round(25),Math.floor(74.25));Math.round(25);return(0,k.jsxs)(v.A,{children:[S&&(0,k.jsx)(n.Zp,{className:"bg-brand-tint border-brand/20 rounded-2xl p-6 mb-8","data-testid":"payment-processing-card",children:(0,k.jsxs)("div",{className:"flex items-center gap-3",children:[(0,k.jsx)(m.A,{className:"w-5 h-5 text-brand animate-spin"}),(0,k.jsx)("p",{className:"text-brand font-semibold",children:"Processing your payment..."})]})}),(0,k.jsxs)("div",{className:"text-center py-6 mb-4 relative overflow-hidden bg-background border-b border-border -mx-6 px-6",children:[(0,k.jsx)("div",{className:"absolute inset-0 grid-pattern opacity-20"}),(0,k.jsxs)("div",{className:"max-w-4xl mx-auto px-4 relative z-10",children:[(0,k.jsxs)("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight mb-2 text-foreground leading-tight",children:["Upgrade your ",(0,k.jsx)("span",{className:"text-brand",children:"Workflow"})]}),(0,k.jsxs)("p",{className:"text-base md:text-lg text-muted-foreground mb-4 max-w-2xl mx-auto leading-relaxed",children:["All plans include ",(0,k.jsx)("b",{className:"text-foreground",children:"full API access"}),", lightning-fast CDN, and secure storage."]}),(0,k.jsxs)("div",{className:"inline-flex items-center bg-muted rounded-full p-1 border border-border shadow-soft","data-testid":"billing-toggle",children:[(0,k.jsx)("button",{onClick:()=>U("monthly"),className:"px-8 py-2.5 rounded-full text-sm font-bold transition-all "+("monthly"===D?"bg-brand text-brand-foreground shadow-soft":"text-muted-foreground hover:text-foreground"),children:"Monthly"}),(0,k.jsxs)("button",{onClick:()=>U("annual"),className:"px-8 py-2.5 rounded-full text-sm font-bold transition-all flex items-center gap-2 "+("annual"===D?"bg-brand text-brand-foreground shadow-soft":"text-muted-foreground hover:text-foreground"),children:["Annual",(0,k.jsx)("span",{className:"px-2 py-0.5 rounded-full text-[10px] uppercase font-bold tracking-wider "+("annual"===D?"bg-white/20 text-white":"bg-success-bg text-success"),children:"3 Months Free"})]})]})]})]}
2),(0,k.jsxs)(w.Bc,{delayDuration:0,children:[(0,k.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 w-full max-w-6xl mx-auto px-4 mb-12",children:[(0,k.jsxs)(n.Zp,{className:"border rounded-2xl p-8 relative flex flex-col transition-all duration-300 shadow-soft hover:shadow-card "+(z("starter")?"bg-card border-brand/40 ring-1 ring-brand/10":"bg-card border-border hover:border-brand/40"),children:[I&&(0,k.jsxs)("div",{className:"absolute top-0 right-0 bg-success text-white px-4 py-1.5 text-[10px] font-bold rounded-bl-xl shadow-soft uppercase tracking-wider z-20",children:["Save ",M,"%"]}),(0,k.jsxs)("div",{className:"mb-8",children:[(0,k.jsx)("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Starter"}),I?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,k.jsxs)("span",{className:"text-5xl font-extrabold text-foreground",children:["$",L]}),(0,k.jsx)("span",{className:"text-muted-foreground font-medium",children:"/month"})]}),(0,k.jsxs)("p",{className:"text-xs font-bold text-brand mt-2 uppercase tracking-tight",children:["$",99,"/year"]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,k.jsxs)("span",{className:"text-5xl font-extrabold text-foreground",children:["$",11]}),(0,k.jsx)("span",{className:"text-muted-foreground font-medium",children:"/month"})]}),(0,k.jsx)("p",{className:"text-xs text-muted-foreground font-bold mt-2 uppercase tracking-tight",children:"Billed monthly"})]})]}),(0,k.jsxs)("ul",{className:"space-y-4 mb-10 flex-grow",children:[(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"1000"})," uploads/month"]}),(0,k.jsx)(O,{tooltip:"Default 90-day retention. Set files to never expire.",children:"Customizable retention"}),(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"16 MB"})," max size (per upload)"]}),(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"10 GB"})," total storage"]}),(0,k.jsx)(O,{children:"Priority Email support"}),(0,k.jsx)(O,{children:"Full API access"})]}),(0,k.jsx)(o.$,{onClick:()=>B("starter"),disabled:_||z("starter"),className:"w-full rounded-xl py-6 text-lg font-bold transition-all "+(z("starter")?"bg-muted text-muted-foreground border border-border cursor-default":"bg-foreground hover:bg-foreground
2/90 text-background hover:scale-[1.02]"),children:z("starter")?"Current Plan":(0,k.jsxs)(k.Fragment,{children:[_&&"starter"===R?(0,k.jsx)(m.A,{className:"w-5 h-4 mr-2 animate-spin"}):(0,k.jsx)(u.A,{className:"w-5 h-5 mr-2"}),"Upgrade to Starter"]})})]}),(0,k.jsxs)(n.Zp,{className:"border border-white/10 rounded-2xl p-8 relative flex flex-col transition-all duration-300 shadow-elevated md:-translate-y-2 z-10 "+(z("pro")?"bg-[#12141C] ring-1 ring-brand/40":"bg-[#12141C]"),children:[(0,k.jsx)("div",{className:"absolute top-0 right-0 bg-brand text-white px-5 py-2 text-[10px] font-black rounded-bl-xl shadow-soft uppercase tracking-widest z-20",children:"Most Popular"}),(0,k.jsxs)("div",{className:"mb-8",children:[(0,k.jsx)("h3",{className:"text-xl font-bold text-[#FF9C63] mb-2",children:"Pro"}),I?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,k.jsxs)("span",{className:"text-5xl font-extrabold text-white",children:["$",W]}),(0,k.jsx)("span",{className:"text-white/50 font-medium",children:"/month"})]}),(0,k.jsxs)("p",{className:"text-xs font-bold text-[#FF9C63] mt-2 uppercase tracking-tight",children:["$",351,"/year"]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,k.jsxs)("span",{className:"text-5xl font-extrabold text-white",children:["$",39]}),(0,k.jsx)("span",{className:"text-white/50 font-medium",children:"/month"})]}),(0,k.jsx)("p",{className:"text-xs text-white/40 font-bold mt-2 uppercase tracking-tight",children:"Billed monthly"})]})]}),(0,k.jsxs)("ul",{className:"space-y-4 mb-10 flex-grow",children:[(0,k.jsxs)(O,{dark:!0,children:[(0,k.jsx)("strong",{className:"text-white",children:"6000"})," uploads/month"]}),(0,k.jsx)(O,{dark:!0,tooltip:"Default 365-day retention. Set files to never expire.",children:"Unlimited retention"}),(0,k.jsxs)(O,{dark:!0,tooltip:"Serve all your file links from your own custom subdomain (e.g. files.yourbrand.com)",children:[(0,k.jsx)("strong",{className:"text-white",children:"Custom Domain"})," (files.yourbrand.com)"]}),(0,k.jsxs)(O,{dark:!0,tooltip:"Specify custom filenames and clean URLs for your files",children:[(0,k.jsx)("strong",{className:"text-white",children:"Custom File Names"})," (/my-file.pdf)"]}),(0,k.jsxs)(O,{dark:!0,children:[(0,k.jsx)("strong",{className:"text-white",children:"32 MB"})," max size (per upload)"]}),(0,k.jsxs)(O,{dark:!0,children:[(0,k.jsx)("strong",{className:"text-white",children:"50 GB"})," total storage"]}),(0,k.jsx)(O,{dark:!0,children:"Priority Support (Chat & Email)"}),(0,k.jsx)(O,{dark:!0,children:"Full API access"})]}),(0,k.jsx)(o.$,{onClick:()=>B("pro"),disabled:_||z("pro"),className:"w-full rounded-xl py-6 text-lg font-bold transition-all shadow-glow "+(z("pro")?"bg-white/10 text-white/40 border border-white/10 cursor-default":"bg-brand hover:bg-brand/90 text-brand-foreground hover:scale-[1.02]"),children:z("pro")?"Current Plan":(0,k.jsxs)(k.Fragment,{children:[_&&"pro"===R?(0,k.jsx)(m.A,{className:"w-5 h-4 mr-2 animate-spin"}):(0,k.jsx)(g.A,{className:"w-5 h-5 mr-2"}),"Upgrade to Pro"]})})]}),(0,k.jsxs)(n.Zp,{className:"border rounded-2xl p-8 relative flex flex-col transition-all duration-300 shadow-soft hover:shadow-card "+(z("business")?"bg-card border-brand/40 ring-1 ring-brand/10":"bg-card border-border hover:border-brand/40"),children:[(0,k.jsxs)("div",{className:"mb-8",children:[(0,k.jsx)("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Business"}),I?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,k.jsxs)("span",{className:"text-5xl font-extrabold text-foreground",children:["$",K]}),(0,k.jsx)("span",{className:"text-muted-foreground font-medium",children:"/month"})]}),(0,k.jsxs)("p",{className:"text-xs font-bold text-brand mt-2 uppercase tracking-tight",children:["$",891,"/year"]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,k.jsxs)("span",{className:"text-5xl font-extrabold text-foreground",children:["$",99]}),(0,k.jsx)("span",{className:"text-muted-foreground font-medium",children:"/month"})]}),(0,k.jsx)("p",{className:"text-xs text-muted-foreground font-bold mt-2 uppercase tracking-tight",children:"Billed monthly"})]})]}),(0,k.jsxs)("ul",{className:"space-y-4 mb-10 flex-grow",children:[(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"15000"})," uploads/month"]}),(0,k.jsx)(O,{tooltip:"Permanent storage for all files.",children:"Unlimited retention"}),(0,k.jsx)(O,{tooltip:"Full white-label branding with custom domain and custom filenames",children:(0,k.jsx)("strong",{children:"Custom Domain & File Names"})}),(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"100 MB"})," max size (per upload)"]}),(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"500 GB"})," total storage"]}
2),(0,k.jsx)(O,{children:"Elite Support (24/7 Priority)"}),(0,k.jsx)(O,{children:"Full API access"})]}),(0,k.jsx)(o.$,{onClick:()=>B("business"),disabled:_||z("business"),className:"w-full rounded-xl py-6 text-lg font-bold transition-all "+(z("business")?"bg-muted text-muted-foreground border border-border cursor-default":"bg-foreground hover:bg-foreground/90 text-background hover:scale-[1.02]"),children:z("business")?"Current Plan":(0,k.jsxs)(k.Fragment,{children:[_&&"business"===R?(0,k.jsx)(m.A,{className:"w-5 h-4 mr-2 animate-spin"}):(0,k.jsx)(p.A,{className:"w-5 h-5 mr-2"}),"Upgrade to Business"]})})]})]}),(0,k.jsx)("div",{className:"max-w-6xl mx-auto px-4 mb-16",children:(0,k.jsxs)(n.Zp,{className:"border rounded-2xl p-8 relative flex flex-col md:flex-row items-center justify-between gap-8 transition-all duration-300 shadow-soft "+(z("free")?"bg-card border-brand/20 ring-1 ring-brand/10":"bg-card border-border hover:border-brand/40 hover:shadow-card"),children:[(0,k.jsxs)("div",{className:"flex-1",children:[(0,k.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,k.jsx)("h3",{className:"text-2xl font-bold text-foreground",children:"Free Plan"}),z("free")&&(0,k.jsx)(d.E,{className:"bg-success-bg text-success border-success/20 px-3 py-1",children:"Active Now"})]}),(0,k.jsx)("p",{className:"text-muted-foreground mb-6 max-w-xl",children:"Perfect for side projects and developers just getting started."}),(0,k.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-y-4 gap-x-8",children:[(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"15"})," uploads / month"]}),(0,k.jsx)(O,{tooltip:"Files are automatically deleted after 7 days.",children:"7-day file retention"}),(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"5 MB"})," max size (per upload)"]}),(0,k.jsxs)(O,{children:[(0,k.jsx)("strong",{children:"500 MB"})," total storage"]}),(0,k.jsx)(O,{children:"Full API access"}),(0,k.jsx)(O,{children:"Community support"})]})]}),(0,k.jsxs)("div",{className:"flex flex-col items-center justify-center p-6 bg-background rounded-2xl border border-border shadow-soft min-w-[200px]",children:[(0,k.jsx)("div",{className:"text-4xl font-black text-foreground mb-1",children:"$0"}),(0,k.jsx)("div",{className:"text-muted-foreground text-sm font-medium mb-6",children:"Always free"}),(0,k.jsx)(o.$,{disabled:!0,className:"w-full rounded-xl py-4 font-bold bg-muted text-muted-foreground border border-border",children:z("free")?"Current Plan":"Free Tier"})]})]})})]}),"dodopayments"===(null===t||void 0===t?void 0:t.payment_gateway)&&(null===t||void 0===t?void 0:t.customer_id)&&(0,k.jsx)("div",{className:"mt-10 mb-2",children:(0,k.jsxs)("button",{onClick:async()=>{try{const t=await e(),s=await fetch(`${A}/checkout/portal`,{method:"POST",headers:{Authorization:`Bearer ${t}`}}),r=await s.json();r.url?window.location.href=r.url:i.oR.error("Could not open subscription management.")}catch(t){console.error("Portal error:",t),i.oR.error("Failed to connect to billing portal.")}},className:"text-sm font-bold text-muted-foreground hover:text-brand flex items-center justify-center gap-2 mx-auto transition-all p-4 bg-card rounded-2xl border border-border hover:border-brand/30 shadow-soft",children:[(0,k.jsx)(u.A,{className:"w-4 h-4"}),"Manage your current subscription & billing details"]})}),(0,k.jsx)("div",{className:"mt-16 mb-24 max-w-6xl mx-auto px-4",children:(0,k.jsxs)("div",{className:"bg-card rounded-2xl p-8 md:p-12 border border-border relative overflow-hidden shadow-soft",children:[(0,k.jsx)("div",{className:"absolute inset-0 grid-pattern opacity-5"}),(0,k.jsxs)("div",{className:"relative z-10 flex flex-col md:flex-row items-center justify-between gap-8",children:[(0,k.jsxs)("div",{className:"flex flex-col items-center md:items-start text-center md:text-left max-w-md",children:[(0,k.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,k.jsx)("div",{className:"flex -space-x-2",children:[1,2,3,4].map(e=>(0,k.jsx)("img",{className:"inline-block h-8 w-8 rounded-full border-2 border-card object-cover ring-1 ring-border",src:`/assets/avatars/
2avatar${e}.webp`,alt:`User ${e}`},e))}),(0,k.jsx)("p",{className:"text-sm font-bold text-foreground uppercase tracking-wider",children:"Trusted by 500+ Experts"})]}),(0,k.jsx)("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Enterprise Grade Infrastructure"}),(0,k.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Join thousands of developers using our secure, low-latency CDN to serve files globally. Built on AWS and Supabase for ultimate reliability."})]}),(0,k.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 w-full md:w-auto",children:[{icon:c.A,title:"No Commitment",desc:"Pay as you go, cancel anytime"},{icon:g.A,title:"Instant Access",desc:"Activation in seconds"},{icon:b.A,title:"Risk Free",desc:"7-day payment promise"}].map((e,t)=>(0,k.jsxs)("div",{className:"flex flex-col items-center md:items-start text-center md:text-left",children:[(0,k.jsx)(e.icon,{className:"w-6 h-6 text-brand mb-3"}),(0,k.jsx)("h4",{className:"text-sm font-bold text-foreground mb-1 uppercase tracking-tight",children:e.title}),(0,k.jsx)("p",{className:"text-[11px] text-muted-foreground leading-tight",children:e.desc})]},t))})]}),(0,k.jsxs)("div",{className:"mt-12 pt-8 border-t border-border flex flex-wrap items-center justify-center gap-8 opacity-70",children:[(0,k.jsx)("p",{className:"text-[10px] font-bold text-muted-foreground uppercase tracking-[0.2em] w-full text-center mb-2",children:"Native Integrations"}),(0,k.jsx)("img",{src:y.Ay.n8n.logoPath,className:"h-5 w-auto grayscale hover:grayscale-0 transition-all",alt:"n8n"}),(0,k.jsx)("img",{src:y.Ay.zapier.logoPath,className:"h-5 w-auto grayscale hover:grayscale-0 transition-all",alt:"Zapier"}),(0,k.jsx)("img",{src:y.Ay.make.logoPath,className:"h-5 w-auto grayscale hover:grayscale-0 transition-all",alt:"Make"}),(0,k.jsx)("img",{src:y.Ay.pipedream.logoPath,className:"h-5 w-auto grayscale hover:grayscale-0 transition-all",alt:"Pipedream"})]})]})}),(0,k.jsxs)("div",{className:"mt-20 w-full mx-auto",children:[(0,k.jsxs)("div",{className:"text-center mb-10",children:[(0,k.jsxs)("div",{className:"inline-flex items-center gap-2 mb-4",children:[(0,k.jsx)(x.A,{className:"w-5 h-5 text-brand"}),(0,k.jsx)("span",{className:"text-sm font-bold text-brand tracking-wide uppercase",children:"FAQ"})]}),(0,k.jsx)("h3",{className:"text-3xl font-extrabold text-foreground mb-3",children:"Frequently Asked Questions"})]}),(0,k.jsx)(j.nD,{type:"single",collapsible:!0,className:"space-y-4",children:[{value:"cancel",question:"Can I cancel my subscription anytime?",answer:"Absolutely. You can cancel your subscription with a single click from your billing dashboard. There are no long-term contracts or commitments. After cancellation, you will continue to have full access to your plan until the end of your current billing cycle."},{value:"refund",question:"Do you offer refunds?",answer:"We want you to be happy with Upload to URL. If the tool does not meet what is promised within the first 7 days of your subscription, we offer a full refund. Just reach out to our support team and we will handle it for you."},{value:"usage",question:"What happens if I reach my monthly upload limit?",answer:"Once you hit your monthly limit, you'll need to upgrade to a higher tier to continue uploading files. Your existing file URLs will remain active and accessible. We'll send you email notifications when you reach 80% and 100% of your usage."},{value:"security",question:"Is my data secure?",answer:"Yes, security is our top priority. All files are stored on enterprise-grade AWS infrastructure with server-side encryption. Every file is delivered via HTTPS through a global CDN. We are fully GDPR compliant and never sell or share your data."},{value:"support",question:"How do I contact support?",answer:"We typically respond within 24 hours. You can email us at [email protected] or use the chat widget on the bottom right of the page. All users have access to our support team."}].map(e=>(0,k.jsxs)(j.As,{value:e.value,className:"bg-card border border-border rounded-2xl px-8 overflow-hidden data-[state=open]:border-brand/40 shadow-soft transition-all",children:[(0,k.jsx)(j.$m,{className:"text-lg font-bold text-foreground hover:no-underline hover:text-brand py-6 text-left",children:e.question}),(0,k.jsx)(j.ub,{className:"text-muted-foreground text-base leading-relaxed pb-6",children:e.answer})]},e.value))})]})]})}},9463(e,t,s){s.d(t,{A:()=>r});const r=(0,s(1212).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])}
2,6833(e,t,s){s.d(t,{A:()=>r});const r=(0,s(1212).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},6955(e,t,s){s.d(t,{A:()=>r});const r=(0,s(1212).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},6376(e,t,s){s.d(t,{A:()=>r});const r=(0,s(1212).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},4379(e,t,s){s.d(t,{A:()=>r});const r=(0,s(1212).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},2024(e,t,s){s.d(t,{A:()=>r});const r=(0,s(1212).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}}]);
3//# sourceMappingURL=3.5fc793d3.chunk.js.map

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.