PageSourceSearch

https://bgcutai.com/_next/static/chunks/a47e8529c2c8b4fe.js

js bgcutai.com collected 2026-10-08 02:00:51 UTC 28,505 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,634048,e=>{"use strict";var t=e.i(158218);e.s(["Check",()=>t.default])},433048,e=>{"use strict";e.s(["COUPON_CONFIG",0,{DEFAULT_CODE:"HW04ER6J",TRIGGER_REASONS:[]},"DELAY_TIMES",0,{JUST_RETURNED:500,INITIAL_LOAD:1500,FOCUS_GAINED:800,RECENT_RETURN_THRESHOLD:5e3},"SESSION_CONFIG",0,{EXPIRY_TIME:36e5,AUTO_CLOSE_DELAY:3e3},"STORAGE_KEYS",0,{PENDING_CHECKOUT:"pendingCheckout",HANDLED_FEEDBACK:"handledPaymentFeedback"}])},569381,e=>{"use strict";var t=e.i(152759);e.s(["Loader2Icon",()=>t.default])},763943,e=>{"use strict";function t(e,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:0}).format(e/100)}function a(e){let t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return`${t}/${a}/${r}`}e.s(["formatDate",()=>a,"formatPrice",()=>t])},669552,e=>{"use strict";var t=e.i(121773);e.s(["CheckoutAnalytics",0,{start(e){(0,t.trackEvent)(t.UmamiEvent.PricingCheckoutClick,e)},creditStart(e){(0,t.trackEvent)(t.UmamiEvent.CreditCheckoutStart,e)},methodViewed(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutMethodViewed,e)},methodSelected(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutMethodSelected,e)},sessionCreated(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutSessionCreated,e)},paid(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutPaid,e)},redirect(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutRedirect,e)},error(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutError,e)},status(e){(0,t.trackEvent)(t.UmamiEvent.CheckoutStatus,e)}}])},948699,241581,e=>{"use strict";var t=e.i(119584),a=e.i(712920);let r=(0,a.createServerReference)("7f867687e855e7d7772928e0d20c9cb6c3092af564",a.callServer,void 0,a.findSourceMapURL,"createAnywayPlanCheckoutAction"),i=(0,a.createServerReference)("7f16019e778eb01c5b46d22215564559caf5a96a72",a.callServer,void 0,a.findSourceMapURL,"createAnywayCreditCheckoutAction");var n=e.i(519455);e.i(442349);var l=e.i(945228),s=e.i(433048),o=e.i(669552),c=e.i(121773),d=e.i(763943),u=e.i(975157),m=e.i(569381),p=e.i(561980),x=e.i(807889),h=e.i(622989),f=e.i(637667);function g(e){let a=(0,p.useTranslations)("PricingPage.CheckoutButton");(0,x.useSearchParams)();let[g,b]=(0,h.useState)(!1),[v,w]=(0,h.useState)(!1),y="plan"===e.kind,k=a("loading"),j=a("checkoutFailed"),N=y?e.planId:e.packageId,I=y?e.planName||e.planId:e.packageName?.trim()||("number"==typeof e.credits?`${e.credits.toLocaleString()} Credits`:e.packageId),C=async()=>{let t={userId:e.userId,priceId:e.priceId,metadata:(()=>{let t=e.metadata?{...e.metadata}:{};
1if(l.websiteConfig.features.enablePromotekitAffiliate){let e=window.promotekit_referral;e&&(t.promotekit_referral=e)}if(l.websiteConfig.features.enableAffonsoAffiliate){let e,a="u">typeof document&&(e=document.cookie.match(/(?:^|; )affonso_referral=([^;]*)/))?decodeURIComponent(e[1]):null;a&&(t.affonso_referral=a)}return t})()},a=y?await r({...t,planId:e.planId}):await i({...t,packageId:e.packageId});return a?.data?.success&&a.data.data?.url?{url:a.data.data.url,id:a.data.data.id}:{error:j}},S=async t=>{try{if(b(!0),o.CheckoutAnalytics.methodSelected({kind:y?"plan":"credit",itemId:N,provider:t}),(t=>{if("u"<typeof sessionStorage)return;let a=window.location.href,r="u">typeof document&&document.referrer||void 0;y?sessionStorage.setItem("nbp_last_checkout",JSON.stringify({planId:e.planId,priceId:e.priceId,kind:"plan",provider:t,priceAmount:e.priceAmount,currency:e.currency,landingPage:a,referrer:r})):sessionStorage.setItem("nbp_last_checkout",JSON.stringify({packageId:e.packageId,priceId:e.priceId,credits:e.credits,kind:"credits",provider:t,priceAmount:e.priceAmount,currency:e.currency,landingPage:a,referrer:r}))})(t),"anyway"!==t)throw Error(j);let r=await C();if(r.url){if(r.id){var a;o.CheckoutAnalytics.sessionCreated({kind:y?"plan":"credit",itemId:N,provider:t}),(0,c.mirrorPaymentAttribution)("checkout_start",{sessionId:r.id,priceId:e.priceId,...y?{planId:e.planId}:{packageId:e.packageId,credits:e.credits},provider:t}),a=r.id,"u">typeof localStorage&&localStorage.setItem(s.STORAGE_KEYS.PENDING_CHECKOUT,JSON.stringify({sessionId:a,planId:N,planName:I,timestamp:Date.now(),provider:t}))}y&&o.CheckoutAnalytics.redirect({planId:e.planId,priceId:e.priceId,provider:t}),window.location.href=r.url;return}y&&o.CheckoutAnalytics.error({planId:e.planId,priceId:e.priceId}),f.toast.error(r.error||j)}catch(a){console.error(`[${t}] checkout error:`,a),y&&o.CheckoutAnalytics.error({planId:e.planId,priceId:e.priceId}),f.toast.error(j)}finally{b(!1)}};return"number"==typeof e.priceAmount&&e.currency&&(0,d.formatPrice)(e.priceAmount,e.currency),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.Button,{variant:e.variant??"default",size:e.size??"default",className:(0,u.cn)(e.className,!1),onClick:()=>{e.priceId?(y&&o.CheckoutAnalytics.start({planId:e.planId,priceId:e.priceId,source:"pricing"}),y||o.CheckoutAnalytics.creditStart({packageId:e.packageId,priceId:e.priceId,credits:e.credits}),S("anyway")):f.toast.error(a("checkoutUnavailable"))},disabled:g||e.disabled,children:g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Loader2Icon,{className:"mr-2 size-4 animate-spin"}),k]}):e.children})})}function b(e){return(0,t.jsx)(g,{kind:"credit",...e})}e.s(["PaymentCheckoutButton",()=>g],241581),e.s(["CreditCheckoutButton",()=>b],948699)},969753,e=>{"use strict";function t(){let e=navigator,t=e.connection||e.mozConnection||e.webkitConnection;return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,languages:[...navigator.languages],hardwareConcurrency:navigator.hardwareConcurrency||0,deviceMemory:e.deviceMemory??null,maxTouchPoints:navigator.maxTouchPoints||0,screenWidth:screen.width,screenHeight:screen.height,colorDepth:screen.colorDepth,pixelRatio:window.devicePixelRatio||1,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,timezoneOffset:new Date().getTimezoneOffset(),connectionType:t?.effectiveType??null,downlink:t?.downlink??null}}async function a(e){let t=[e.userAgent,e.platform,e.language,e.hardwareConcurrency,e.deviceMemory,e.screenWidth,e.screenHeight,e.colorDepth,e.pixelRatio,e.timezone,e.maxTouchPoints].join("|"),a=new TextEncoder().encode(t);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",a))).map(e=>e.toString(16).padStart(2,"0")).join("")}let r="app_client_fingerprint_v1";function i(){try{let e=localStorage.getItem(r);if(e)return e;let t=crypto.randomUUID?.()||`${Date.now()}_${Math.random().toString(36).slice(2,12)}`;return localStorage.setItem(r,t),t}catch{return null}}async function n(){let e=t(),[r,n]=await Promise.all([Promise.resolve(i()),a(e)]),l={};return r&&(l["x-client-fingerprint"]=r),n&&(l["x-device-hash"]=n),l}async function l(){return new Promise(e=>{let t=new Set,a=setTimeout(()=>{e({webrtcIPs:[...t],hasLeak:!1})},3e3);try{let r=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"}]});
1r.createDataChannel(""),r.onicecandidate=i=>{if(!i.candidate){clearTimeout(a),r.close(),e({webrtcIPs:[...t],hasLeak:t.size>0});return}let n=i.candidate.candidate.match(/(\d{1,3}\.){3}\d{1,3}|([a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/);if(n){let e=n[0];e.startsWith("10.")||e.startsWith("192.168.")||e.startsWith("172.")||e.startsWith("0.")||"0.0.0.0"===e||t.add(e)}},r.createOffer().then(e=>r.setLocalDescription(e)).catch(()=>{clearTimeout(a),e({webrtcIPs:[...t],hasLeak:!1})})}catch{clearTimeout(a),e({webrtcIPs:[],hasLeak:!1})}})}e.s(["collectDeviceInfo",()=>t,"detectWebRTCLeak",()=>l,"generateDeviceFingerprint",()=>a,"getAntiFreeloadRequestHeaders",()=>n,"getOrCreateClientFingerprint",()=>i])},907135,e=>{"use strict";let t=(0,e.i(360229).default)("ImageDown",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);e.s(["default",()=>t])},761777,e=>{"use strict";let t=(0,e.i(360229).default)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);e.s(["default",()=>t])},650345,e=>{"use strict";var t=e.i(119584),a=e.i(948699),r=e.i(519455),i=e.i(515288),n=e.i(945228),l=e.i(133713),s=e.i(763943),o=e.i(975157),c=e.i(652855),d=e.i(634048),u=e.i(907135),u=u,m=e.i(917595),p=e.i(561980);function x(){document.getElementById("hero-upload")?.scrollIntoView({behavior:"smooth",block:"start"})}function h(){let e=(0,p.useTranslations)("HomePage.pricing"),d=(0,l.useCurrentUser)(),{open:h}=(0,c.useSimpleLoginModalStore)(),g=Object.values(n.websiteConfig.credits.packages).filter(e=>!e.disabled);return(0,t.jsxs)("section",{id:"pricing",className:"relative overflow-hidden bg-slate-50 px-4 py-16 md:px-6 md:py-24",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-[radial-gradient(circle_at_top,rgba(79,70,229,0.10),transparent_42%)]"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-7xl",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,t.jsx)("span",{className:"inline-flex rounded-full border border-indigo-200 bg-white px-4 py-1.5 text-sm font-semibold text-indigo-700",children:e("badge")}),(0,t.jsx)("h2",{className:"mt-5 text-balance text-3xl font-bold tracking-tight text-slate-950 sm:text-4xl md:text-5xl",children:e("title")}),(0,t.jsx)("p",{className:"mx-auto mt-4 max-w-2xl text-pretty text-base leading-7 text-slate-600 md:text-lg",children:e("description")})]}),(0,t.jsxs)("div",{className:"mt-10 grid grid-cols-1 gap-5 sm:grid-cols-2 xl:grid-cols-4",children:[(0,t.jsx)(i.Card,{className:"border-slate-200 bg-white shadow-sm",children:(0,t.jsxs)(i.CardContent,{className:"flex h-full flex-col p-6",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-slate-950",children:e("freeName")}),(0,t.jsx)("p",{className:"mt-3 text-3xl font-bold text-slate-950",children:e("freePrice")})]}),(0,t.jsx)("span",{className:"rounded-2xl bg-indigo-50 p-3 text-indigo-600",children:(0,t.jsx)(m.Sparkles,{className:"h-5 w-5","aria-hidden":!0})})]}),(0,t.jsx)("p",{className:"mt-4 text-sm leading-6 text-slate-600",children:e("freeDescription")}),(0,t.jsx)(f,{items:[e("freeFeature1"),e("freeFeature2"),e("freeFeature3")]}),(0,t.jsx)(r.Button,{type:"button",variant:"outline",className:"mt-auto w-full rounded-xl",onClick:x,children:e("tryFree")})]})}),g.map(n=>{let l=Math.floor(n.amount/2),c=n.price.priceId||"";return(0,t.jsxs)(i.Card,{className:(0,o.cn)("relative bg-white shadow-sm",n.popular?"border-2 border-indigo-500 shadow-indigo-100":"border-slate-200"),children:[n.popular&&(0,t.jsx)("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 rounded-full bg-indigo-600 px-3 py-1 text-xs font-semibold text-white",children:e("popular")}),(0,t.jsxs)(i.CardContent,{className:"flex h-full flex-col p-6",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-slate-950",children:n.name}),(0,t.jsx)("p",{className:"mt-3 text-3xl font-bold text-slate-950",children:(0,s.formatPrice)(n.price.amount,n.price.currency)})]}),(0,t.jsx)("span",{className:"rounded-2xl bg-indigo-50 p-3 text-indigo-600",children:(0,t.jsx)(u.default,{className:"h-5 w-5","aria-hidden":!0})})]}),(0,t.jsx)("p",{className:"mt-4 text-lg font-semibold text-indigo-700",children:e("packageImages",{images:l.toLocaleStr
1ing()})}),(0,t.jsx)(f,{items:[e("includedCredits",{credits:n.amount.toLocaleString()}),e("creditsPerImage",{credits:2}),e("paidFeature")]}),(0,t.jsx)("div",{className:"mt-auto",children:d?(0,t.jsx)(a.CreditCheckoutButton,{userId:d.id,packageId:n.id,packageName:n.name,priceId:c,credits:n.amount,priceAmount:n.price.amount,currency:n.price.currency,metadata:{source:"nobg_home_pricing",returnTo:"/#hero-upload"},className:"w-full rounded-xl",variant:n.popular?"default":"outline",disabled:!c,children:c?e("buyAction"):e("paymentUnavailable")}):(0,t.jsx)(r.Button,{type:"button",variant:n.popular?"default":"outline",className:"w-full rounded-xl",onClick:()=>h("/#pricing",e("loginToBuy")),children:e("buyAction")})})]})]},n.id)})]}),(0,t.jsx)("p",{className:"mx-auto mt-6 max-w-3xl text-center text-xs leading-5 text-slate-500",children:e("pricingNote")})]})]})}function f({items:e}){return(0,t.jsx)("ul",{className:"my-6 space-y-3 text-sm text-slate-600",children:e.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(d.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600","aria-hidden":!0}),(0,t.jsx)("span",{children:e})]},e))})}e.s(["BackgroundRemovalPricing",()=>h],650345)},162561,e=>{"use strict";var t=e.i(119584),a=e.i(367033),r=e.i(622989);let i=(0,a.default)(()=>e.A(35163).then(e=>e.PageExposureTracker),{loadableGenerated:{modules:[72936]},ssr:!1});function n(e){let[a,n]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e,t=!1,a=()=>{t||n(!0)};return e="function"==typeof window.requestIdleCallback?window.requestIdleCallback(a,{timeout:2500}):window.setTimeout(a,1500),()=>{t=!0,void 0!==e&&("function"==typeof window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e))}},[]),a)?(0,t.jsx)(i,{...e}):null}e.s(["DeferredPageExposureTracker",()=>n])},706452,e=>{"use strict";var t=e.i(119584),a=e.i(519455),r=e.i(133713);async function i(e,t){t?.(10);let a=new FormData;a.set("file",e,e.name);let r=await fetch("/api/background-removal/upload",{method:"POST",body:a}),i=await r.json().catch(()=>({}));if(!r.ok||!i.key||!i.url)throw Error(i.error||"Failed to upload image input");return t?.(100),{key:i.key,url:i.url}}var n=e.i(969753),l=e.i(652855),s=e.i(696191),o=e.i(861475),c=e.i(636892),d=e.i(230245),u=e.i(761777),u=u,m=e.i(404638),p=e.i(917595),x=e.i(585796),h=e.i(288314),h=h,f=e.i(525819),g=e.i(256084),b=e.i(622989);let v=["image/jpeg","image/png","image/webp"],w="nobg_pending_clean_unlock";function y(){try{localStorage.removeItem(w)}catch{}}function k({translations:e}){let a=(0,r.useCurrentUser)(),{open:s}=(0,l.useSimpleLoginModalStore)(),o=(0,b.useRef)(null),[c,d]=(0,b.useState)("idle"),[u,m]=(0,b.useState)(null),[p,x]=(0,b.useState)(null),[h,f]=(0,b.useState)(0),[g,k]=(0,b.useState)(null),[E,A]=(0,b.useState)(null),[T,_]=(0,b.useState)(null),[R,D]=(0,b.useState)(null),[P,O]=(0,b.useState)("generic"),[L,F]=(0,b.useState)(!1);(0,b.useEffect)(()=>()=>{p&&URL.revokeObjectURL(p)},[p]),(0,b.useEffect)(()=>{if(a?.id)try{let e=localStorage.getItem(w);if(!e)return;let t=JSON.parse(e);if(!t.workId||!t.resultUrl||t.ownerId!==a.id||t.isUnlocked||!t.savedAt||Date.now()-t.savedAt>864e5)return void y();_(t),d("success")}catch{y()}},[a?.id]);let B=async t=>{if(d("validating"),D(null),O("generic"),_(null),k(null),A(null),f(0),await Promise.resolve(),!v.includes(t.type)){p&&URL.revokeObjectURL(p),x(null),m(null),d("error"),D(e.errorFormat);return}if(t.size>5242880){p&&URL.revokeObjectURL(p),x(null),m(null),d("error"),D(e.errorSize);return}p&&URL.revokeObjectURL(p),x(URL.createObjectURL(t)),m(t),A(crypto.randomUUID()),d("ready")},G=async t=>{d("validating"),D(null),O("generic");try{let a=await fetch(t.src);if(!a.ok)throw Error(e.errorGeneric);let r=await a.blob();await B(new File([r],t.filename,{type:t.mimeType||r.type||"image/png"}))}catch{p&&URL.revokeObjectURL(p),x(null),m(null),_(null),k(null),A(null),f(0),d("error"),D(e.errorGeneric)}},H=async()=>{if(!u)return void o.current?.click();try{D(null),O("generic");let l=E??crypto.randomUUID();E||A(l);let s=g;s||(d("uploading"),f(0),s=await i(u,f),k({url:s.url,key:s.key})),d("processing");let o=await (0,n.getAntiFreeloadRequestHeaders)(),c=null;for(let t=0;t<80;t+=1){let t=await fetch("/api/background-removal",{method:"POST",headers:{"Content-Type":"application/json",...o},body:JSON.stringify({imageUrl:s.url,imageKey:s.key,idempotencyKey:l})}),a=await t.json().catch(()=>({}));if(!t.ok){A(crypto.randomUUID()),M(t.status,a);return}if(202===t.status||"processing"===a.status){await new Promise(e=>setTimeout(e,1500));continue}if("success"!==a.status||"string"!=typeof a.resultUrl)throw Error(e.errorGeneric);c=a;break}if(!c)throw Error(e.errorGeneric);if(_(c),!c.isUnlocked&&a?.id&&c.workId){var t=c,r=a.id;try{localStorage.setItem(w,JSON.stringify({...t,ownerId:r,savedAt:Date.now()}))}catch{}}else y();d("success")}catch(t){d("error"),D(t instanceof Error&&t.message?t.message:e.errorGeneric)}},M=(t,a)=>{if(401===t){d(u&&p?"ready":"idle"),s("/#hero-upload",e.loginHint);return}if(402===t||"INSUFFICIENT_CREDITS"===a.code){d("error"),O("credits"),D(e.insufficientCredits),U();return}if(503===t||"PROVIDER_NOT_CONFIGURED"===a.code){d("error"),O("provider"),D(e.providerUnavailable);return}if("IMAGE_TOO_LARGE"===a.code){d("error"),O("generic"),D(e.errorSize);return}if("INVALID_IMAGE"===a.code){d("error"),O("generic"),D(e.errorDimensions);return}d("error"),O("generic"),D(a.message||a.error||e.errorGeneric)},z=async()=>
1{if(T&&!T.isUnlocked){if(!a||!T.workId)return void s("/#hero-upload",e.anonymousUnlockDescription);F(!0);try{let e=await fetch(`/api/background-removal/${encodeURIComponent(T.workId)}/unlock`,{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok){if(402===e.status||"INSUFFICIENT_CREDITS"===t.code)return void U();M(e.status,t);return}_(t),y()}catch{O("generic"),D(e.errorGeneric),d("error")}finally{F(!1)}}},K=()=>{p&&URL.revokeObjectURL(p),x(null),m(null),_(null),k(null),A(null),d("idle"),D(null),O("generic"),f(0),y()};return(0,t.jsx)("section",{id:"hero-upload",className:"relative overflow-hidden bg-white pb-20 pt-14 text-[#222] md:pb-28 md:pt-20",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl px-5 md:px-8",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center",children:[(0,t.jsxs)("h1",{className:"text-balance text-4xl font-semibold leading-[1.08] text-[#222] sm:text-5xl md:text-[3.5rem]",children:[e.heroTitle," ",(0,t.jsx)("span",{className:"text-[#222]",children:e.heroTitleAccent})]}),(0,t.jsx)("p",{className:"mx-auto mt-5 max-w-3xl text-balance text-base leading-7 text-[#5f5f63] md:text-lg",children:e.heroDescription})]}),(0,t.jsxs)("div",{className:"mt-12 grid items-center gap-8 md:mt-14 md:grid-cols-[0.82fr_1.18fr] md:gap-12",children:[(0,t.jsx)("div",{className:"relative mx-auto aspect-[4/5] w-full max-w-[390px] overflow-hidden rounded-[20px] bg-[#dff4ef]",children:(0,t.jsx)("video",{className:"h-full w-full object-cover",src:"/images/adobe-remove-background/hero-demo-loop.mp4",poster:"/images/adobe-remove-background/hero-demo-poster.png",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-label":e.selectedImageAlt})}),(0,t.jsx)("div",{onDrop:e=>{e.preventDefault();let t=e.dataTransfer.files?.[0];t&&B(t)},onDragOver:e=>e.preventDefault(),className:"rounded-[20px] border border-[#e4e4e7] bg-white p-3 shadow-[0_12px_35
1px_rgba(0,0,0,0.14)]",children:(0,t.jsxs)("div",{className:"flex min-h-[390px] items-center rounded-[14px] border-2 border-dashed border-[#b8b8bd] px-5 py-8 transition-colors hover:border-[#5252d4] md:px-8",children:[(0,t.jsxs)("div",{className:"w-full","aria-live":"polite",children:["idle"===c&&(0,t.jsx)(j,{t:e,onPick:()=>o.current?.click(),onSamplePick:e=>{G(e)}}),"validating"===c&&(0,t.jsx)(I,{label:e.validating}),"ready"===c&&p&&(0,t.jsx)(N,{previewUrl:p,t:e,onRemove:H,onReset:K}),"uploading"===c&&(0,t.jsx)(I,{label:e.uploading,progress:h}),"processing"===c&&(0,t.jsx)(I,{label:e.processing}),"success"===c&&T&&(0,t.jsx)(C,{result:T,t:e,isUnlocking:L,isAuthenticated:!!a,onUnlock:z,onReset:K}),"error"===c&&(0,t.jsx)(S,{t:e,message:R,kind:P,canRetry:!!u,onRetry:()=>u?d("ready"):K(),onChoose:()=>o.current?.click(),onReset:K})]}),(0,t.jsx)("input",{ref:o,type:"file",accept:v.join(","),className:"sr-only",onChange:e=>{let t=e.target.files?.[0];t&&B(t),e.target.value=""},"aria-label":e.cta})]})})]}),(0,t.jsx)("p",{className:"mt-5 text-center text-xs leading-5 text-[#77777c]",children:e.limitHint})]})})}function j({t:e,onPick:r,onSamplePick:i}){return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-[#ededff] p-4 text-[#5252d4]",children:(0,t.jsx)(x.Upload,{className:"h-8 w-8","aria-hidden":!0})}),(0,t.jsx)("p",{className:"max-w-md text-lg font-semibold leading-6 text-[#222]",children:e.dropHint}),(0,t.jsxs)(a.Button,{type:"button",size:"lg",onClick:r,className:"min-h-12 rounded-full bg-[#5252d4] px-8 text-white shadow-none hover:bg-[#4141b8]",children:[(0,t.jsx)(c.ImageIcon,{className:"h-5 w-5","aria-hidden":!0}),e.cta]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-[#5252d4]",children:[(0,t.jsx)(p.Sparkles,{className:"size-3.5","aria-hidden":!0}),e.freeTrialBadge]}),(0,t.jsxs)("div",{className:"mt-2 w-full max-w-sm",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-[#77777c]",children:e.sampleHint}),(0,t.jsx)("div",{className:"mt-3 grid grid-cols-4 gap-2",children:[{src:"/images/nobg/gallery/person-1.png",filename:"sample-person-1.png",mimeType:"image/png",label:e.samplePerson},{src:"/images/nobg/gallery/product-1.jpg",filename:"sample-product-1.jpg",mimeType:"image/jpeg",label:e.sampleProduct},{src:"/images/nobg/gallery/animal-1.png",filename:"sample-animal-1.png",mimeType:"image/png",label:e.sampleAnimal},{src:"/images/nobg/gallery/car-1.png",filename:"sample-car-1.png",mimeType:"image/png",label:e.sampleCar}].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>i(e),"aria-label":e.label,className:"group relative aspect-square overflow-hidden rounded-lg border border-[#dedee2] bg-[#f7f7f8] shadow-sm transition hover:-translate-y-0.5 hover:border-[#5252d4] hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#5252d4] focus-visible:ring-offset-2",children:(0,t.jsx)(g.default,{src:e.src,alt:"",fill:!0,sizes:"72px",className:"object-cover transition duration-300 group-hover:scale-105"})},e.src))})]})]})}function N({previewUrl:e,t:r,onRemove:i,onReset:n}){return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsx)("p",{className:"text-lg font-semibold text-[#222]",children:r.readyTitle}),(0,t.jsx)("div",{className:"relative h-44 w-full max-w-xs overflow-hidden rounded-2xl border border-slate-200 bg-slate-50",children:(0,t.jsx)(g.default,{src:e,alt:r.selectedImageAlt,fill:!0,className:"object-contain",unoptimized:!0})}),(0,t.jsxs)("div",{className:"flex w-full max-w-xs flex-col gap-3 sm:flex-row",children:[(0,t.jsxs)(a.Button,{type:"button",onClick:i,className:"min-h-11 flex-1 rounded-full bg-[#5252d4] text-white hover:bg-[#4141b8]",children:[(0,t.jsx)(h.default,{className:"h-4 w-4","aria-hidden":!0}),r.removeAction]}),(0,t.jsx)(a.Button,{type:"button",variant:"outline",onClick:n,className:"min-h-11 rounded-full",children:r.tryAnother})]}),(0,t.jsx)("p",{className:"max-w-sm text-xs leading-5 text-[#77777c]",children:r.loginHint})]})}function I({label:e,progress:a}){return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsx)(d.Loader2,{className:"h-10 w-10 animate-spin text-[#5252d4]","aria-hidden":!0}),(0,t.jsx)("p",{className:"font-medium text-[#3f3f43]",children:e}),"number"==typeof a&&(0,t.jsx)("div",{className:"h-2 w-full max-w-xs overflow-hidden rounded-full bg-slate-100",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-[#5252d4] transition-[width] duration-200",style:{width:`${Math.min(100,Math.max(0,a))}%`}})})]})}function C({result:e,t:r,isUnlocking:i,isAuthenticated:n,onUnlock:l,onReset:c}){let p="access"===e.resultType,x=p?r.successHint:e.isUnlocked?r.paidResultHint:r.unlockDescription;return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsxs)("div",{className:`flex items-center gap-2 ${p?"text-[#5252d4]":"text-emerald-700"}`,children:[p?(0,t.jsx)(u.default,{className:"h-6 w-6","aria-hidden":!0}):(0,t.jsx)(s.CheckCircle2,{className:"h-6 w-6","aria-hidden":!0}),(0,t.jsx)("span",{className:"text-lg font-semibold",children:p?r.anonymousUnlockTitle:r.successTitle})]}),(0,t.jsx)("div",{className:"relative h-56 w-full max-w-sm overflow-hidden rounded-2xl border border-slate-200 bg-[linear-gradient(45deg,#e5e7eb_25%,transparent_25%),linear-gradient(-45deg,#e5e7eb_25%,transparent_25%),linear-gradient(45deg,transparent_75%,#e5e7eb_75%),linear-gradient(-45deg,transparent_75%,#e5e7eb_75%)] bg-[length:20px_20px] bg-[position:0_0,0_10px,10px_-10px,-10px_0px]",children:(0,t.jsx)(g.default,{src:e.resultUrl,alt:r.resultImageAlt,fill:!0,className:"object-contain",unoptimized:!0})}),(0,t.jsx)("p",{className:"max-w-sm text-sm leading-6 text-[#5f5f63]",children:x}),e.isUnlocked?(0,t.jsxs)("div",{className:"flex w-full max-w-sm flex-col gap-3 sm:flex-row",children:[(0,t.jsx)(a.Button,{asChild:!0,className:"min-h-11 flex-1 rounded-full bg-[#5252d4] text-white hover:bg-[#4141b8]",children:(0,t.jsxs)("a",{href:e.resultUrl,download:!0,target:"_blank",rel:"noreferrer",children:[(0,t.jsx)(o.Download,{className:"h-4 w-4","aria-hidden":!0}),r.cleanDownload]})}),(0,t.jsxs)(a.Button,{type:"button",variant:"outline",onClick:c,className:"min-h-11 rounded-xl",children:[(0,t.jsx)(m.RotateCcw,{className:"h-4 w-4","aria-hidden":!0}),r.tryAnother]})]}):(0,t.jsxs)("div",{className:"w-full max-w-sm rounded-2xl border border-[#d7d7f5] bg-[#f5f5ff] p-4 text-left",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("span",{className:"rounded-xl bg-[#e7e7fb] p-2 text-[#5252d4] shadow-sm",children:(0,t.jsx)(u.default,{className:"h-5 w-5","aria-hidden":!0})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-[#222]",children:p?r.anonymousUnlockTitle:r.unlockTitle}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-5 text-[#5f5f63]",children:p?r.anonymousUnlockDescription:r.unlockDescription})]})]}),(0,t.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2",children:[p?(0,t.jsxs)(a.Button,{type:"button",variant:"outline",onClick:c,className:"min-h-11 rounded-xl",children:[(0,t.jsx)(m.RotateCcw,{className:"h-4 w-4","aria-hidden":!0}),r.tryAnother]}):(0,t.jsx)(a.Button,{asChild:!0,variant:"outline",className:"min-h-11 rounded-xl",children:(0,t.jsxs)("a",{href:e.resultUrl,download:!0,target:"_blank",rel:"noreferrer",children:[(0,t.jsx)(o.Download,{className:"h-4 w-4","aria-hidden":!0}),r.previewDownload]})}),(0,t.jsxs)(a.Button,{type:"button",onClick:l,disabled:i,className:"min-h-11 rounded-full bg-[#5252d4] text-white hover:bg-[#4141b8]",children:[i?(0,t.jsx)(d.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":!0}):(0,t.jsx)(u.default,{className:"h-4 w-4","aria-hidden":!0}),p&&!n?r.anonymousUnlockAction:r.unlockAction]})]})]})]})}function S({t:e,message:r,kind:i,canRetry:n,onRetry:l,onChoose:s,onReset:o}){return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-red-600",children:[(0,t.jsx)(f.XCircle,{className:"h-6 w-6","aria-hidden":!0}),(0,t.jsx)("span",{className:"text-lg font-semibold",children:e.errorTitle})]}),(0,t.jsx)("p",{className:"max-w-md text-sm leading-6 text-[#5f5f63]",role:"alert",children:r||e.errorGeneric}),(0,t.jsxs)("div",{className:"flex w-full max-w-xs flex-col gap-2 sm:flex-row",children:["credits"===i&&(0,t.jsx)(a.Button,{type:"button",onClick:U,className:"min-h-11 flex-1 rounded-full bg-[#5252d4] text-white hover:bg-[#4141b8]",children:e.buyCredits}),"provider"!==i&&n&&(0,t.jsxs)(a.Button,{type:"button",variant:"credits"===i?"outline":"default",onClick:l,className:"min-h-11 flex-1 rounded-xl",children:[(0,t.jsx)(m.RotateCcw,{className:"h-4 w-4","aria-hidden":!0}),e.retry]}),"provider"!==i&&!n&&(0,t.jsxs)(a.Button,{type:"button",onClick:s,className:"min-h-11 flex-1 rounded-xl",children:[(0,t.jsx)(c.ImageIcon,{className:"h-4 w-4","aria-hidden":!0}),e.cta]}),"provider"===i&&(0,t.jsxs)(a.Button,{type:"button",variant:"outline",onClick:o,className:"min-h-11 flex-1 rounded-xl",children:[(0,t.jsx)(m.RotateCcw,{className:"h-4 w-4","aria-hidden":!0}),e.tryAnother]})]})]})}function U(){document.getElementById("pricing")?.scrollIntoView({behavior:"smooth",block:"start"})}e.s(["default",()=>
1k],706452)},35163,e=>{e.v(t=>Promise.all(["static/chunks/fbb5f676cadabf7a.js"].map(t=>e.l(t))).then(()=>t(72936)))}]);

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.