1import{aH as ye,b2 as Pe,aY as Fe,aK as Me,aI as pe,aX as Se,bL as Z,b1 as Ke,aQ as Re}from"./BhNUNWqD.js";import{k as we,a as l,b as me,l as ue,F as xe,o as ke,a1 as s,G as u,a2 as i,u as r,a9 as y,ah as q,M as te,a7 as ae,_ as je,at as $e,B as _e,as as ce,L as Ue,a6 as Ce,a4 as ge,a8 as fe,n as ee,I as ze,aa as Ee,ab as Ne}from"./Du2SeD3-.js";import{u as Ve}from"./Dtd9dWk8.js";import{r as he}from"./C7qx1x2V.js";import"./Dhrk-ZvH.js";import{X as ve}from"./BJLaggHo.js";import{L as Ge}from"./Boy6siYv.js";import{A as Be}from"./7vIXaxte.js";import{b as He}from"./bH0EtKLK.js";import{u as be}from"./M80zn3FW.js";import{u as Le}from"./B5gDzzfA.js";import{u as We}from"./BLOBOz0x.js";import{_ as Oe}from"./D0-PbSNx.js";import"./D1quPY2h.js";import"./sjmwbjgO.js";import"./Dw6rq8ws.js";import"./BESfydFK.js";import"./CtnAkPhP.js";import"./Bngnq6Xa.js";import"./DAjpvbPz.js";(function(){try{var w=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},R=new w.Error().stack;R&&(w._sentryDebugIds=w._sentryDebugIds||{},w._sentryDebugIds[R]="96cea45f-a2d1-4c9b-b02b-8933616b26fa",w._sentryDebugIdIdentifier="sentry-dbid-96cea45f-a2d1-4c9b-b02b-8933616b26fa")}catch{}})();const qe=["staging modern style bedroom","staging modern style living room","staging minimalist living room","staging contemporary bedroom","staging luxury master bedroom","staging cozy Scandinavian living room","staging modern dining room","staging elegant dining room","staging home office modern style","staging minimalist home office","staging modern guest bedroom","staging kids bedroom modern style","staging open concept living space","staging luxury apartment living room","staging condo living room modern","staging small space studio apartment","staging modern loft interior","staging beachy style living room","staging modern coastal bedroom","staging neutral tone living room","staging modern outdoor patio","staging backyard outdoor furniture","staging modern balcony seating","staging luxury poolside furniture","staging rooftop terrace modern style","staging outdoor dining area","staging modern garden seating","staging coastal style outdoor space","staging minimal outdoor lounge","staging backyard relaxation area","remove furniture from living room","remove furniture from bedroom","remove clutter from interior space","remove personal items from room","remove decorations from walls","remove objects from highlighted area","remove furniture within marked region","remove desk and accessories","remove sofa and chairs","remove wall art and decor","add sofa to living room","add bed to empty bedroom","add dining table and chairs","add modern desk setup","add outdoor seating furniture","add minimal decor accents","add coffee table to living room","add rug and floor decor","add bedside tables and lamps","add modern shelving unit","change wall color to neutral","change wall color to white","change wall color to warm beige","replace TV screen content","replace wall art with abstract art","replace picture frames modern style","replace decor with minimalist style","replace furniture style to modern","replace furniture with coastal style","replace desk with modern design","enhance natural interior lighting","adjust lighting to warm tone","adjust lighting to soft daylight","convert night scene to daytime","convert cloudy scene to sunny","rain to shine outdoor scene","enhance sunlight in living room","add soft ambient lighting","enhance window light realism","balance indoor lighting naturally","generate natural twilight exterior","generate virtual twilight scene","enhance sunset sky background","enhance blue sky realism","replace overcast sky with clear sky","enhance exterior evening lighting","add warm window glow at dusk","enhance exterior curb appeal","enhance exterior shadows and reflections","enhance golden hour ambiance","remove car from driveway","remove leaves from driveway","enhance lawn greenery","replace lawn grass naturally","add water to empty pool","enhance pool water clarity","clean refrigerator surface","remove stains from surfaces","clean kitchen counters","remove minor visual distractions","generate professional headshot portrait","generate lifestyle portrait photo","enhance portrait lighting naturally","generate social media poster image","generate marketing visual scene","enhance image realism quality","upscale image resolution naturally","preserve original architecture exactly","maintain original perspective and scale","photorealistic real estate image enhancement","preserve original room layout","preserve architectural structure","keep original camera angle","maintain original field of view","preserve ceiling height proportions","keep doors and walkways unobstructed","preserve window visibility","maintain realistic furniture scale","edit only selected area","remove objects from selected regi
1on","add furniture within selected area","keep unselected areas unchanged","clean selected area naturally","replace items in marked zone","preserve surrounding textures","remove stains from walls","remove stains from flooring","clean carpet surface","clean hardwood floor","remove surface scratches","smooth wall imperfections","remove wall marks","clean glass surfaces","enhance window clarity","remove window glare","preserve exterior view through windows","enhance window reflections","balance interior and exterior exposure","fix overexposed windows","adjust furniture positioning","align furniture symmetrically","rotate furniture for better flow","space furniture evenly","improve furniture layout balance","refine furniture composition","refine modern style consistency","soften overall interior style","reduce visual clutter","unify furniture color palette","enhance minimalist aesthetic","improve visual harmony","neutralize overly saturated colors","soften image contrast","balance warm and cool tones","enhance material texture realism","preserve fabric details","enhance wood grain texture","refine metal surface reflections","enhance natural interior lighting","adjust lighting to warm tone","add soft ambient lighting","balance indoor lighting naturally","enhance sunlight realism","soften harsh shadows","generate natural twilight scene","generate virtual twilight exterior","enhance sunset sky","replace overcast sky with clear sky","enhance golden hour ambiance","add warm window glow","remove car from driveway","remove leaves from driveway","enhance lawn greenery","replace lawn grass naturally","add water to empty pool","enhance pool water clarity","clean refrigerator surface","clean kitchen countertops","generate photorealistic output","match real estate photography standards","avoid visual artifacts","prevent image distortion","prevent object hallucination","generate clean edges","ensure consistent shadows","generate professional headshot portrait","generate lifestyle portrait image","enhance portrait lighting naturally","generate social media marketing image","generate promotional visual asset","preserve original image composition","maintain original perspective","keep original framing unchanged","avoid cropping or resizing","preserve image aspect ratio","enhance image realism","upscale image resolution naturally","refine overall image quality","generate clean final output","improve visual clarity","maintain spatial accuracy","preserve original scene integrity","generate high-resolution output","maintain natural lighting balance","professional real estate image enhancement"],Ye={class:"w-full rounded-[12px] shadow-[0px_4px_8px_0px_rgba(0,0,0,0.06)] border-0 md:border !md:border-gray-200 bg-white relative transition-colors h-[276px] md:h-[180px] p-2.5 flex flex-col md:flex-row items-start"},Je={key:0,class:"absolute inset-0 w-full h-full bg-blue-50/90 flex items-center justify-center z-30 pointer-events-none"},Qe=i("div",{class:"text-center"},[i("div",{class:"text-blue-600 text-lg font-medium mb-2"}," Drop your image here "),i("div",{class:"text-blue-500 text-sm"},"JPEG, PNG, or WEBP")],-1),Xe=[Qe],Ze={key:1,class:"absolute inset-0 w-full h-full"},et=["src"],tt={class:"p-2 bg-white/80 rounded-3xl inline-flex justify-center items-center cursor-pointer hover:bg-white/90 transition-colors"},at={key:2,class:"flex flex-col items-center justify-center h-full relative z-10"},nt={key:0,class:"flex flex-col items-center justify-center"},ot=i("div",{class:"w-8 h-8 border-4 border-gray-300 border-t-gray-900 rounded-full animate-spin mb-4"},null,-1),rt=i("p",{class:"!text-[14px] font-medium !text-gray-900"},"Uploading...",-1),lt=[ot,rt],st={key:1,class:"flex flex-col items-center justify-center group"},it=ze('<div class="relative w-16 h-12 mb-2"><img class="absolute inset-0 w-full h-full object-contain group-hover:hidden" src="https://d37vt2dds2nfmk.cloudfront.net/20251230/76431368-83f9-4dda-8b0e-aca98b077fc9.png" alt="Upload icon"><img class="absolute inset-0 w-full h-full object-contain hidden group-hover:block" src="https://d37vt2dds2nfmk.cloudfront.net/20260106/349f755c-d7e3-4f99-9eb4-b5b169039f33.png" alt="Upload icon hover"></div><div class="flex flex-col items-center gap-1.5"><div class="text-center !text-zinc-900 text-sm font-medium font-['Inter']"> Upload your photo </div><div class="w-32 text-center !text-zinc-400 !text-[8px] font-normal font-['Inter'] leading-3"> JPG, JPEG, PNG, and WEBP formats recommended. </div></div>',2),dt=[it],ct={class:"ml-0 md:ml-2.5 w-full md:w-[calc(100%-160px)] !h-[130px] md:!h-[160px] rounded-[8px] md:rounded-[12px] md:border-none border border-gray-200 mt-[18px] md:mt-0 relative"},ut=["disabled","placeholder","onKeydown"],ft={key:0,class:"absolute left-0 bottom-full mb-[8px] md:bottom-auto md:top-[40px] w-full md:w-auto md:min-w-0 flex flex-col gap-[9px] z-50 p-4 md:p-0 bg-white rounded-xl md:rounded-none outline md:outline-none outline-1 outline-offset-[-1px] outline-black/10 md:bg-transparent"},pt=["onClick"],mt=["disabled"],gt={key:1,class:"absolute left-2.5 bottom-2.5 md:left-0 md:bottom-0 pl-1 pr-2 py-1 rounded-lg outline outline-1 outline-offset-[-1px] outline-neutral-200 inline-flex items-center gap-2"},ht=["src","alt"],vt={class:"text-zinc-900 text-[12px] font-medium font-['Inter'] leading-6"},bt=we({__name:"DaInput",props:{modelValue:{},placeholder:{default:"How can I help you today? Describe your idea here."},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selectedCard:{default:null}},emits:["update:modelValue","submit","file-selected","clear-card"],setup(w,{expose:R,emit:Y}){const{errorToast:oe}=ye(),m=w,j=Y,g=l(m.modelValue||""),D=l(null),z=l(null),C=l(!1),P=l(null),E=l(null),S=l(!1),N=l(null),_=l(!1),F=l([]),V=l(!1);let I=null;function J(e){if(!e.trim())return[];const a=e.toLowerCase().trim(),n=[],o=[];for(const x of qe){const W=x.toLowerCase();if(W.includes(a))n.includes(x)||n.push(x);else if(W.split(" ").some(O=>O.startsWith(a)))!o.includes(x)&&!n.includes(x)&&o.push(x);else if(a.length>=2){const O=a.substring(0,Math.max(2,a.length-1));W.includes(O)&&!o.includes(x)&&!n.includes(x)&&o.push(x)}}return[...n,...o].slice(0,3)}me(g,e=>{j("update:modelValue",e),ee(()=>{$()}),I&&clearTimeout(I),I=setTimeout(()=>{e.trim().length>0&&V.value?(F.value=J(e),_.value=F.value.length>0):(_.value=!1,F.value=[])},200)});function re(e){g.value=e,_.value=!1,ee(()=>{var a;(a=D.value)==null||a.focus()})}function le(){V.value=!0,g.value.trim().length>0&&(F.value=J(g.value),_.value=F.value.length>0)}function v(){setTimeout(()=>{V.value=!1,_.value=!1},200)}const{mutateAsync:M}=Ve(),G=ue(()=>g.value.trim().length>0),h=ue(()=>{var e;return!(G.value||m.selectedCard&&((e=m.selectedCard.prompt)==null?void 0:e.length)===0)||!E.value||m.loading||m.disabled});me(()=>m.modelValue,e=>{e!==g.value&&(g.value=e||"",ee(()=>{$()}))});function b(){console.log(m.selectedCard,g.value),h.value||j("submit",g.value)}function $(){D.value&&(D.value.style.height="auto",D.value.style.height=`${D.value.scrollHeight}px`)}function Q(){g.value="",ee(()=>{$()})}const B=async e=>{const a=new FormData;a.append("uploadFile",e);const n=await M(a),{url:o,id:A}=n.data;return{url:o,id:A}};function U(e={}){const{$heic2any:a}=Pe();return{files:[],accept:"image/*",maxCount:1,uploadAction:B,preprocessOptions:{thresholdMB:2,quality:.8,heic2any:a,onHeicWarning:n=>oe(n),useExifCanvasWebp:!0,exifCanvasMaxLongEdge:2048},onInvalidFiles:(n,o,A)=>oe(o,{title:A==null?void 0:A.title}),onSuccess:(n,o)=>{P.value=o.url,E.value=o.id,j("file-selected",n)},onError:(n,o)=>{console.error("Upload failed:",o)},...e}}async function H(e){var o;const a=e.target;if(!((o=a.files)!=null&&o.length))return;const n=a.files[0];N.value=n,C.value=!0;try{await he(U({files:[n]}))}finally{C.value=!1,a.value=""}}function f(){var e;(e=z.value)==null||e.click()}function L(e){e&&e.stopPropagation(),P.value=null,E.value=null,N.value=null,z.value&&(z.value.value="")}function se(e){e.preventDefault(),e.stopPropagation(),S.value=!0}function T(e){e.preventDefault(),e.stopPropagation();const a=e.currentTarget.getBoundingClientRect(),n=e.clientX,o=e.clientY;(n<a.left||n>=a.right||o<a.top||o>=a.bottom)&&(S.value=!1)}async function ie(e){var o;e.preventDefault(),e.stopPropagation(),S.value=!1;const a=(o=e.dataTransfer)==null?void 0:o.files;if(!(a!=null&&a.length))return;const n=a[0];N.value=n,C.value=!0;try{await he(U({files:[n]}))}finally{C.value=!1}}function de(e){e&&e.stopPropagation(),j("clear-card")}return xe(()=>{$()}),ke(()=>{I&&clearTimeout(I)}),R({clearInput:Q,focus:()=>{var e;return(e=D.value)==null?void 0:e.focus()},clearUpload:L,uploadedImageUrl:P,uploadedFileId:E}),(e,a)=>(s(),u("div",Ye,[i("div",{class:ae(["w-full md:w-[160px] h-[130px] md:h-[160px] bg-gradient-to-b from-stone-50 to-stone-50 rounded-[8px] md:rounded-[12px] curs
1or-pointer hover:opacity-90 transition-all relative overflow-hidden",{"ring-2 ring-blue-500 ring-offset-2":r(S)}]),onClick:f,onDragover:se,onDragleave:T,onDrop:ie},[i("input",{ref_key:"fileInputRef",ref:z,type:"file",accept:"image/jpeg,image/png,image/webp",class:"hidden",onChange:H},null,544),r(S)?(s(),u("div",Je,Xe)):y("",!0),r(P)&&!r(C)?(s(),u("div",Ze,[i("img",{src:r(P),alt:"Uploaded photo",class:"w-full h-full object-cover"},null,8,et),i("div",{class:"absolute top-2 right-2 z-20",onClick:q(L,["stop"])},[i("div",tt,[te(r(ve),{size:20,class:"text-zinc-700"})])])])):y("",!0),!r(P)||r(C)?(s(),u("div",at,[r(C)?(s(),u("div",nt,lt)):(s(),u("div",st,dt))])):y("",!0)],34),i("div",ct,[je(i("textarea",{ref_key:"textareaRef",ref:D,"onUpdate:modelValue":a[0]||(a[0]=n=>_e(g)?g.value=n:null),disabled:e.disabled||e.loading,placeholder:e.placeholder,rows:"1",class:"text-[#8D9399] bg-transparent w-full !h-[65px] md:!h-[120px] text-sm font-normal !border-0 !outline-none !focus:outline-none !focus:ring-0 !focus:border-0 placeholder:text-zinc-400 placeholder:text-[14px] resize-none disabled:opacity-50 disabled:cursor-not-allowed overflow-y-auto",style:{"font-size":"14px !important",border:"none !important"},onFocus:le,onBlur:v,onKeydown:[ce(q(b,["shift","exact","prevent"]),["enter"]),ce(q(b,["ctrl","exact","prevent"]),["enter"]),ce(q(b,["meta","exact","prevent"]),["enter"])]},null,40,ut),[[$e,r(g)]]),r(_)&&r(F).length>0?(s(),u("div",ft,[(s(!0),u(Ue,null,Ce(r(F),(n,o)=>(s(),u("div",{key:o,class:"px-3 py-2 bg-stone-50 rounded-[33px] !text-gray-500 text-[14px] md:!text-[12px] font-normal font-['Inter'] cursor-pointer hover:bg-gray-600 hover:!text-white transition-colors md:whitespace-nowrap w-fit md:self-start",onClick:q(A=>re(n),["stop"])},fe(n),9,pt))),128))])):y("",!0),i("button",{disabled:r(h)||e.loading,class:ae(["w-10 h-10 right-2.5 md:right-0 bottom-2.5 md:bottom-0 absolute rounded-md transition-colors flex items-center justify-center",[!r(h)&&!e.loading?"bg-black hover:bg-black hover:bg-opacity-80 cursor-pointer":"bg-gray-100 cursor-not-allowed"]]),onClick:b},[e.loading?(s(),ge(r(Ge),{key:0,color:"white",class:"w-5 h-5 md:w-6 md:h-6 animate-spin"})):(s(),ge(r(Be),{key:1,color:"white",class:"w-5 h-5 md:w-6 md:h-6"}))],10,mt),m.selectedCard?(s(),u("div",gt,[m.selectedCard.beforeUrl?(s(),u("img",{key:0,class:"w-8 h-8 rounded object-cover",src:m.selectedCard.beforeUrl,alt:m.selectedCard.name},null,8,ht)):y("",!0),i("div",vt,fe(m.selectedCard.name),1),te(r(ve),{size:20,class:"text-zinc-700 cursor-pointer hover:text-zinc-900 transition-colors",onClick:de})])):y("",!0)])]))}}),ne=w=>(Ee("data-v-7da32305"),w=w(),Ne(),w),yt={class:"w-full h-auto bg-[#FCFCFD] flex flex-col items-center relative"},wt={key:0,class:"absolute top-2 left-[18px] md:left-[22px] z-20"},xt={class:"flex-1 w-full max-w-6xl px-[18px] md:px-[22px] flex flex-col items-center justify-center py-8 relative bg-[#FCFCFD]"},kt={key:0,class:"flex flex-col items-center mb-5 mt-[36px] md:mt-[78px]"},_t=ne(()=>i("div",{class:"mb-6"},[i("img",{src:"https://d37vt2dds2nfmk.cloudfront.net/20251120/42cbca2b-967f-4dc6-834c-32af897d5cc8.gif",alt:"Transform Your Vision",class:"w-16 h-16 object-contain"})],-1)),Ut=ne(()=>i("h1",{class:"!text-zinc-900 !text-2xl !font-medium mb-2.5 text-center"}," The World's First AI Agent for Real Estate ",-1)),Ct=ne(()=>i("p",{class:"!text-zinc-400 !text-sm font-normal text-center"}," Design stunning listing photos and marketing visuals with AI. ",-1)),It=[_t,Ut,Ct],Tt={key:1,class:"w-full max-w-3xl mb-5 flex items-center gap-3"},At={class:"flex-1"},Dt=["onClick"],Pt=["src","alt"],Ft={key:1,class:"after-image-wrapper absolute inset-0 overflow-hidden"},Mt=["src","alt"],St=ne(()=>i("div",{class:"after-divider absolute top-0 bottom-0 w-[2px] bg-white z-10"},null,-1)),Kt={class:"absolute bottom-0 left-0 right-0 z-10 p-3 h-20 flex flex-col justify-end"},Rt={class:"!text-[14px] !font-normal !text-white drop-shadow-lg"},jt=["src"],$t=["src"],K="Ask Collov AI to ",zt=we({__name:"index",setup(w){const{guardFreeCredit:R}=be(),{isTrialAccount:Y,freePhotoNumber:oe,canUseAdvancedFeatures:m,refreshUserAuthInfo:j,userPhotoNumber:g}=Fe(),{showNoFreeCreditModal:D,showNoMonthlyCreditModal:z,handleGenerationError:C,showHighDemandAlert:P}=be(),{showKeepUsingDesignAgentModal:E,showAdvancedFeaturePreviewModal:S}=Le(),{mutate:N}=He(),_=l(null),{successToast:F,warningToast:V}=ye(),I=l(!1),{isLogin:J}=Me(pe()),{toggleLogin:re}=pe(),le=Se(),v=l("");l(!1);const M=l(null),G=l(null),h=l(""),b=l(!1),{listAgentPromptApi:$}=We(),Q=["Ask Collov AI to stage this space...","Ask Collov AI to change the sofa color...","Ask Collov AI to replace the wallpaper...","Ask Collov AI to create a twilight effect...","Ask Collov AI to remove objects...","Ask Collov AI to enhance this photo...","Ask Collov AI to redesign this room...","Ask Collov AI to design a home gym..."],B=l(0),U=l(""),H=l(null),f=l(null);function L(){f.value&&clearInterval(f.value);const c=Q[B.value].replace(K,""),t=U.value;if(t&&t.length>K.length){let p=t.length;f.value=Z(()=>
1{if(p>K.length)U.value=t.substring(0,p-1),p--;else{f.value&&(clearInterval(f.value),f.value=null),U.value=K;let k=0;f.value=Z(()=>{k<c.length?(U.value=K+c.substring(0,k+1),k++):f.value&&(clearInterval(f.value),f.value=null)},60)}},30)}else{U.value=K;let p=0;f.value=Z(()=>{p<c.length?(U.value=K+c.substring(0,p+1),p++):f.value&&(clearInterval(f.value),f.value=null)},60)}}function se(){B.value=(B.value+1)%Q.length,L()}l([{id:"1",title:"Chat History Title",userInput:"User Input 1"},{id:"2",title:"Chat History Title",userInput:"User Input 1"},{id:"3",title:"Chat History Title",userInput:"User Input 1"},{id:"4",title:"Chat History Title",userInput:"User Input 1"},{id:"5",title:"Chat History Title",userInput:"User Input 1"},{id:"6",title:"Chat History Title",userInput:"User Input 1"},{id:"7",title:"Chat History Title",userInput:"User Input 1"},{id:"8",title:"Chat History Title",userInput:"User Input 1"}]);const T=l([{name:"Headshots & Portraits Generator",prompt:"Generate a high-quality professional headshot with natural lighting, clean background, sharp facial details, realistic skin texture, confident expression, and modern corporate portrait style.",promptKey:"HeadshotsPortraitsGenerator",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/bf346c7c-f7c9-47e8-ae32-b80a4e1e31a7.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/04e379d5-c6ce-4398-8f6a-f386175a4619.png"},{name:"Social Media Poster Design",prompt:"Text to add on the poster: ",promptKey:"SocialMediaPosterDesign",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/a88dc30d-4b5d-4a19-95d8-2b4af013ce9b.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/19377160-23ac-4c38-9ebe-ee1d2cf7e880.png"},{name:"Sky Enhancement",prompt:"Enhance the sky with natural clouds and balanced lighting, realistic color tones, smooth gradients, and seamless blending, while preserving the original landscape, buildings, and overall photo realism.",promptKey:"SkyEnhancement",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/333d4f38-dedf-4689-b0ac-6c46fda14871.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/0af2d459-fcfc-4670-ba25-d9098bb1c7f8.png"},{name:"Fireplace Ignition",prompt:"Ignite the fireplace with realistic, warm flames and natural glow, preserving the original fireplace structure, materials, and surroundings, with soft lighting, subtle reflections, and photorealistic indoor ambiance.",promptKey:"FireplaceIgnition",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/7df5d555-aa7e-4249-81fe-75f5377cd494.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/bdb3f54d-2aaa-4112-94c1-00bef12458ec.png"},{name:"TV Screen Content Replacement",prompt:"The enhancement must ONLY update the pixels inside the visible TV screen area based on the user-provided content description:",promptKey:"TVScreenContentReplacement",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/dd6cff64-7a3d-44e9-85d9-0ae21f3d6595.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/4bedc72d-5af2-41de-a877-ee68cb2251f2.png"},{name:"Driveway Leaf Removal",prompt:"Remove all leaves from the driveway completely, restoring a clean, natural surface while preserving driveway texture, edges, lighting, and surroundings with seamless blending and realistic outdoor appearance.",promptKey:"DrivewayLeafRemoval",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/383be342-2ff1-48ad-8e56-382c187a3705.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/c359c726-9378-4b77-a1f9-e1920ca38415.png"},{name:"Driveway Car Removal",prompt:"Remove the car from the driveway completely, restoring a clean, empty driveway while preserving surface texture, shadows, lighting, and surrounding environment with seamless blending and realistic outdoor appearance.",promptKey:"DrivewayCarRemoval",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/20b4d0b1-4a2a-4415-84fc-0468b7d8d67f.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/faf4bb35-7fe7-4236-b9b2-fb1f3648dd89.png"},{name:"Refrigerator Surface Cleanup",prompt:"Clean up the refrigerator surface by removing stains, fingerprints, and smudges, restoring a smooth, natural finish while preserving material texture, reflections, lighting, and surrounding kitchen details realistically.",promptKey:"RefrigeratorSurfaceCleanup",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/f8ee9d50-f2e4-4ec3-940b-297ed8035005.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260102/2debcc6e-e4eb-417b-bd78-086aa9d8e28b.png"},{name:"Add Furniture",prompt:"Describe the furniture you want to add with:",promptKey:"AddFurniture",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/d0bd9ebc-c2a0-45ba-8716-c895afc603e4.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/6a5cca66-2849-4e90-ab23-aa4f1c83d858.png"},{name:"Material Overlay",prompt:"Describe the materials you want to replace with:",promptKey:"MaterialOverlay",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/7f2b0e7a-91e0-422f-b864-bd71287f819a.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/512e8fc2-dbe4-4760-97aa-c8bee1ce8743.png"},{name:"Natural Twilight",prompt:"Convert the scene into natural twilight with warm sunset lighting, balanced sky tone
1s, soft interior glow, and realistic reflections, while preserving all architectural details and overall photo realism.",promptKey:"NaturalTwilight",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/37090cb2-5ae0-4ef4-9c69-887599fabd42.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/bcf4ee34-f3dc-4c4b-a77f-4cb2dabcf12d.png"},{name:"Virtual Twilight",prompt:"Transform the photo into a virtual twilight scene with dramatic dusk sky, warm interior lights, balanced contrast, and realistic reflections, while preserving all architecture, landscape, and photorealistic details. ",promptKey:"VirtualTwilight",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/629484cc-e40d-46fb-885d-7ae1af58cc2b.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/5016cc47-c4bb-46a9-aa81-3c0d0cdad173.png"},{name:"Pool Water Enhancement",prompt:"Enhance the pool water with a clean, vibrant appearance, adding natural clarity, realistic reflections, subtle ripples, and balanced lighting while preserving pool structure, surroundings, and overall photo realism. ",promptKey:"PoolWaterEnhancement",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/dd03ab95-9f42-4356-bc21-513aec6e5c34.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/20aa73e9-bf41-4363-8985-b534f457632f.png"},{name:"Add Water to Empty Pool",prompt:"Fill the empty pool with clean, realistic water, adding natural reflections, depth, and light ripples while preserving pool structure, materials, lighting, and surrounding environment with seamless realism.",promptKey:"AddWaterToEmptyPool",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/d254e1d2-58b8-4aad-90f6-0474670dd2ba.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/53a4d376-d89f-494b-a4e3-e118cf649d74.png"},{name:"Lawn Replacement",prompt:"Replace the lawn with healthy, lush green grass, ensuring natural texture, color variation, and realistic shadows, while preserving ground contours, walkways, plants, and overall outdoor photorealism.",promptKey:"LawnReplacement",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/5a1bfaa9-1602-49bf-9c2c-79090c18c0eb.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/d6df08e3-1f5a-473c-be29-ccb6265475c1.png"},{name:"Night to Day",prompt:"Transform the nighttime scene into bright daytime with natural sunlight, clear skies, and balanced shadows, while preserving original architecture, materials, reflections, and realistic outdoor appearance. ",promptKey:"NightToDay",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/b219401d-3a34-4a73-b6a5-4f0607cd7762.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/c04ff007-e81b-4ee9-97ad-02655bcd9cd4.png"},{name:"Rain to Shine",prompt:"",promptKey:"RainToShine",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/774136ad-f96f-4a82-8b6c-3f605ab528bb.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/59ebb17a-4d20-4576-af27-45a95c44bcb0.png"},{name:"Changing Seasons",prompt:"Describe the weather you want to change to:",promptKey:"ChangingSeasons",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/de22b50c-8683-44f8-9498-c8b3e960ddfc.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/5481a4b3-2942-4a7e-b927-ee4fbc489ed3.png"},{name:"More",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/351cdd2b-7885-4269-a124-bd7a5cb06602.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/f2b326fe-af16-4f1a-9d19-e269e93cf059.png"}]),ie=ue(()=>{if(b.value)return T.value.filter(d=>d.name!=="More");{const d=T.value.slice(0,9),c=T.value.find(t=>t.name==="More");return c?[...d,c]:d}});xe(async()=>{const d=await $();console.log(d),d.success&&(T.value=d.data.map(t=>({name:t.name,promptKey:t.promptKey,prompt:t.variablePrompt,beforeUrl:t.beforeUrl||"",afterUrl:t.afterUrl||""})),console.log(T.value),T.value.push({name:"More",beforeUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/351cdd2b-7885-4269-a124-bd7a5cb06602.png",afterUrl:"https://d37vt2dds2nfmk.cloudfront.net/20260106/f2b326fe-af16-4f1a-9d19-e269e93cf059.png"}));const c=le.query.promptKey;if(c){const t=T.value.find(p=>p.promptKey===c);t&&(M.value=t,t.prompt&&(v.value=t.prompt,h.value=t.prompt))}L(),H.value=Z(se,4e3)}),ke(()=>{H.value&&clearInterval(H.value),f.value&&clearInterval(f.value)});function de(d){var p,k,X;const c=((p=G.value)==null?void 0:p.uploadedImageUrl)||null,t=((k=G.value)==null?void 0:k.uploadedFileId)||null;e({prompt:v.value===((X=M.value)==null?void 0:X.prompt)?"":v.value,file:null,card:M.value,uploadedImageUrl:c,uploadedFileId:t})}async function e(d){var p;if(!J.value){re();return}if(!await R("design-agent"))return;console.log("Generate with:",d),n();const t={prompt:d.prompt,imgId:d.uploadedFileId||0,mode:"DESIGN_AGENT",agentType:((p=d.card)==null?void 0:p.promptKey)||""};N(t,{onSuccess:async k=>{const{data:X,success:Te,message:Ae}=k,{uuid:De}=X||{};if(o(),Te){_.value=De,A(),await j(),!Y.value&&!m.value&&setTimeout(()=>{S()},2e3);return}a(),V(Ae)},onError:k=>{o(),C(k)},onSettled:()=>{}})}function a(){P()}function n(){I.value=!0}function o(){I.value=!1}function A(){console.log("Progress completed!"),_.value&&Ke(`/design-center/virtual-staging/${_.value}`)}function x(d){b.value=!1,M.value=d;let c=v.value;h.value&&c.startsWith(h.value)&&(c=c.substring(h.value.length).trim()),d.prompt?(v.value=d.prompt+(c?` ${c}`:""),h.value=d.prompt):(v.value=c,h.value="")}function W(){if(M.value=null,h.value){const d=v.value;d.startsWith(h.value)&&(v.value=d.substring(h.value.length).trim()),h.value=""}}function O(){b.value=!1}function Ie(){b.value=!0}return(d,c)=>(s(),u("div",yt,[r(b)?(s(),u("div",wt,[te(Oe,{onBack:O,text:"Back"})])):y("",!0),i("div",xt,[r(b)?y("",!0):(s(),u("div",kt,It)),r(b)?y("",!0):(s(),u("div",Tt,[i("div",At,[te(bt,{ref_key:"daInputRef",ref:G,modelValue:r(v),"onUpdate:modelValue":c[0]||(c[0]=t=>_e(v)?v.value=t:null),"selected-card":r(M),loading:r(I),placeholder:r(U),onSubmit:de,onClearCard:W},null,8,["modelValue","selected-card","loading","placeholder"])])])),i("div",{class:ae(["w-full max-w-3xl grid grid-cols-2 lg:grid-cols-5 ga
1p-4",{"mt-6":r(b)}])},[(s(!0),u(Ue,null,Ce(r(ie),(t,p)=>(s(),u("div",{key:p,class:"feature-card bg-white border border-gray-200 rounded-[12px] overflow-hidden cursor-pointer hover:shadow-lg transition-shadow relative min-h-[200px] group"},[t.name!=="More"?(s(),u("div",{key:0,onClick:k=>x(t)},[t.beforeUrl?(s(),u("img",{key:0,src:t.beforeUrl,alt:t.name,class:"absolute inset-0 w-full h-full object-cover"},null,8,Pt)):y("",!0),t.afterUrl?(s(),u("div",Ft,[i("img",{src:t.afterUrl,alt:`${t.name} after`,class:"after-image w-full h-full object-cover"},null,8,Mt),St])):y("",!0),i("div",Kt,[i("div",Rt,fe(t.name),1)])],8,Dt)):(s(),u("div",{key:1,onClick:Ie,class:"group"},[t.beforeUrl?(s(),u("img",{key:0,src:t.beforeUrl,class:ae(["absolute inset-0 w-full h-full object-cover rounded-[12px] transition-opacity duration-300",t.afterUrl?"opacity-100 group-hover:opacity-0":"opacity-100"]),alt:"More"},null,10,jt)):y("",!0),t.afterUrl?(s(),u("img",{key:1,src:t.afterUrl,class:"absolute inset-0 w-full h-full object-cover rounded-[12px] transition-opacity duration-300 opacity-0 group-hover:opacity-100",alt:"More"},null,8,$t)):y("",!0)]))]))),128))],2)])]))}}),ra=Re(zt,[["__scopeId","data-v-7da32305"]]);export{ra as default};
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.