PageSourceSearch

https://magicretake.app/_nuxt/Bgts_OSE.js

js magicretake.app collected 2026-10-09 16:54:03 UTC 6,454 bytes, 1 lines download raw bytes

1import{_ as L}from"./_SA84Ghv.js";import{B as R}from"./CRmEIWDb.js";import{e as D,p as E,q as H,s as d,f as K,x as O,c as o,o as a,a as t,d as u,t as m,g as T,F as f,k as I,b as h,h as c,w as N,K as M}from"#entry";import{u as $}from"./0bqHyAOj.js";import{P as W}from"./33DwDnWS.js";import{L as Y}from"./Dgyd19qE.js";import{I as z}from"./Clrl58ZK.js";import{_ as G}from"./DlAUqK2U.js";import"./OaRjpU2K.js";import"./BSMlXKon.js";import"./BkLtITBR.js";import"./C50x5zDf.js";import"./h-WEQA7d.js";import"./DxYjk6yg.js";const J={class:"flex-grow overflow-y-auto px-3 pt-3 flex flex-col items-center"},Q={class:"text-sm text-neutral-600 text-center mb-4"},X={key:0},Z={class:"font-semibold text-red-600"},ee={class:"text-neutral-500"},te={key:1},se={class:"font-semibold"},oe={class:"w-full max-w-[350px] mx-auto"},ae={class:"grid grid-cols-3 gap-2.5"},le={class:"relative w-full h-full rounded-xl overflow-hidden bg-neutral-100 border border-neutral-200"},ne={key:0,class:"absolute inset-0 bg-black bg-opacity-60 flex items-center justify-center"},ie={key:1,class:"absolute top-1 right-1"},re={class:"inline-flex p-1.5 items-center gap-2 rounded-full bg-neutral-800 backdrop-blur-[17.5px] transition-all duration-200 hover:bg-neutral-700 cursor-pointer",style:{background:"var(--Neutrals-800, #27272A)"}},de=["onChange","disabled"],ue={key:0,class:"w-[104px] h-[104px] flex-shrink-0"},ce={class:"w-full h-full rounded-xl border border-dashed border-neutral-300 bg-neutral-50 flex flex-col items-center justify-center cursor-pointer hover:border-primary-500 hover:bg-primary-50 transition-all"},pe=["disabled"],me={class:"sticky bottom-0 w-full px-4 pb-3 bg-transparent flex justify-between items-center gap-3"},fe=D({__name:"3",setup(he){const r=E(),b=H(),{pendingUploads:_,isUploading:v,uploadFiles:B,replaceFile:j,clearFinishedUploads:S}=$(),p=d(()=>b.minImages),k=d(()=>b.maxImages),g=d(()=>r.answers.uploadedImageData),n=d(()=>g.value.length),y=d(()=>n.value>=p.value),C=d(()=>n.value<k.value),x=d(()=>{const s=new Map;return _.value.forEach(e=>{e.isReplacementFor&&s.set(e.isReplacementFor,e)}),s}),w=d(()=>y.value&&!v.value);function A(s){const e=s.target;e.files&&e.files.length>0&&(B(e.files),e.value="")}function U(s,e){const i=e.target;i.files&&i.files.length>0&&(j(s,i.files),i.value="")}async function P(){if(!w.value){if(v.value)M.info("Please wait for uploads to complete.");else{const s=p.value-n.value;M.error(`Please upload ${s} more photo${s>1?"s":""}`)}return}await r.navigateNext("review_photos","/welcome/3",{final_photo_count:n.value})}async function V(){await r.navigatePrevious("/welcome/3")}return K(async()=>{r.setStep(3),await r.trackPageDisplayed("review_photos",{total_photos:g.value.length}),g.value.length===0&&r.fetchOnboardingData().catch(s=>{console.warn("[Welcome3] Background fetch failed:",s)})}),O(_,s=>{s.some(i=>i.status==="completed"||i.status==="error")&&setTimeout(()=>{S()},2e3)},{deep:!0}),(s,e)=>{const i=L,F=R;return a(),o(f,null,[t("main",J,[e[6]||(e[6]=t("h6",{class:"font-semibold text-neutral-950 text-center px-2 mb-2"}," Nice! Review your photos ",-1)),t("div",Q,[y.value?(a(),o("p",te,[e[1]||(e[1]=t("span",{class:"text-green-600"},"✓",-1)),e[2]||(e[2]=u(" You can replace any photo or add up to ",-1)),t("span",se,m(k.value),1),e[3]||(e[3]=u(" total ",-1))])):(a(),o("p",X,[e[0]||(e[0]=u(" Need ",-1)),t("span",Z,m(p.value-n.value),1),u(" more photo"+m(p.value-n.value>1?"s":"")+" ",1),t("span",ee,"("+m(n.value)+"/"+m(p.value)+" minimum)",1)]))]),t("div",oe,[t("div",ae,[(a(!0),o(f,null,I(g.value,l=>(a(),o("div",{key:l.id,class:"relative w-[104px] h-[104px] group animate-fadeIn flex-shrink-0"},[t("div",le,[h(i,{src:x.value.has(l.id)?x.value.get(l.id).previewUrl:l.imageUrl,alt:x.value.has(l.id)?x.value.get(l.id).file.name:l.originalFilename,class:"w-full h-full object-cover transition-opacity duration-200",format:"webp",quality:"80",width:"104",height:"104",densities:"1x 2x",preload:""},null,8,["src","alt"]),x.value.has(l.id)?(a(),o("div",ne,[h(c(Y),{class:"w-6 h-6 text-white animate-spin"})])):(a(),o("div",ie,[t("label",re,[t("input",{type:"file",onChange:q=>U(l.id,q),accept:"image/*",class:"hidden",disabled:c(v)},null,40,de),e[4]||(e[4]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[t("path",{d:"M13.416 2.33398V5.83398H9.91602",stroke:"white","stroke-width":"1.16667","stroke-linecap":"round","stroke-linejoin":"round"}),t("path",{d:"M0.583984 11.666V8.16602H4.08398",stroke:"white","stroke-width":"1.16667","stroke-linecap":"round","stroke-linejoin":"round"}),t("path",{d:"M2.04717 5.2496C2.34302 4.41355 2.84584 3.66608 3.5087 3.07692C4.17156 2.48777 4.97286 2.07613 5.83784 1.88041C6.70282 1.6847 7.60328 1.7113 8.4552 1.95771C9.30712 2.20413 
110.0827 2.66235 10.7097 3.2896L13.4163 5.83293M0.583008 8.16626L3.28967 10.7096C3.91661 11.3368 4.69223 11.7951 5.54415 12.0415C6.39607 12.2879 7.29653 12.3145 8.16151 12.1188C9.02649 11.9231 9.82779 11.5114 10.4907 10.9223C11.1535 10.3331 11.6563 9.58564 11.9522 8.7496",stroke:"white","stroke-width":"1.16667","stroke-linecap":"round","stroke-linejoin":"round"})],-1))])]))])]))),128)),C.value?(a(),o("div",ue,[t("label",ce,[h(c(W),{class:"w-6 h-6 text-neutral-400 mb-1"}),e[5]||(e[5]=t("span",{class:"text-xs text-neutral-500"},"Add More",-1)),t("input",{type:"file",onChange:A,accept:"image/*",multiple:!0,class:"hidden",disabled:c(v)},null,40,pe)])])):T("",!0),(a(!0),o(f,null,I(9-n.value-(C.value?1:0),l=>(a(),o("div",{key:"empty-"+l,class:"w-[104px] h-[104px] rounded-xl border border-dashed border-neutral-300 bg-neutral-50 flex items-center justify-center flex-shrink-0"},[h(c(z),{class:"w-6 h-6 text-neutral-300"})]))),128))])]),e[7]||(e[7]=t("div",{class:"mt-6 text-center max-w-[350px]"},[t("p",{class:"text-sm text-neutral-500"}," A few quick questions to craft AI based on your preferences and needs 🧙 ")],-1))]),t("footer",me,[h(F,{onClick:V,class:"h-[52px]",variant:"outline",disabled:c(r).isNavigating},{default:N(()=>[...e[8]||(e[8]=[u(" Back ",-1)])]),_:1},8,["disabled"]),h(F,{onClick:P,class:"flex-grow caption-l h-[52px]",variant:"default",disabled:!w.value||c(r).isNavigating},{default:N(()=>[c(v)?(a(),o(f,{key:0},[u("Uploading...")],64)):w.value?(a(),o(f,{key:1},[u("Next")],64)):(a(),o(f,{key:2},[u("Need "+m(Math.max(0,p.value-n.value))+" more",1)],64))]),_:1},8,["disabled"])])],64)}}}),je=G(fe,[["__scopeId","data-v-8d817753"]]);export{je 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.