1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77705,e=>{"use strict";var t=e.i(211749);e.s(["EyeOff",()=>t.default])},940141,e=>{"use strict";var t=e.i(271645),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=t.default.createContext&&t.default.createContext(s),r=["attr","size","title"];function i(){return(i=Object.assign.bind()).apply(this,arguments)}function n(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,a)}return s}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){var a,r,i;a=e,r=t,i=s[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var a=s.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in a?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function l(e){var n=s=>{var a,{attr:n,size:l,title:c}=e,d=function(e,t){if(null==e)return{};var s,a,r=function(e,t){if(null==e)return{};var s={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;s[a]=e[a]}return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}(e,r),p=l||s.size||"1em";return s.className&&(a=s.className),e.className&&(a=(a?a+" ":"")+e.className),t.default.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,n,d,{className:a,style:o(o({color:e.color||s.color},s.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&t.default.createElement("title",null,c),e.children)};return void 0!==a?t.default.createElement(a.Consumer,null,e=>n(e)):n(s)}e.s(["GenIcon",0,function(e){return s=>t.default.createElement(l,i({attr:o({},e.attr)},s),function e(s){return s&&s.map((s,a)=>t.default.createElement(s.tag,o({key:a},s.attr),e(s.child)))}(e.child))}],940141)},955716,e=>{"use strict";var t=e.i(68426);e.s(["GitBranch",()=>t.default])},690749,e=>{"use strict";e.s(["IMPORT_ERROR_MESSAGES",0,{REPO_NOT_FOUND:"Repository not found or is private. Please ensure the repository is public and the URL is correct.",DOWNLOAD_TIMEOUT:e=>`Repository download timed out after ${e} seconds. The repository may be too large or the connection is slow.`,DOWNLOAD_EXCEEDED_LIMIT:e=>`Repository download exceeded ${e}MB limit during transfer. Download aborted to protect server resources.`,ZIP_TOO_LARGE:(e,t)=>`File size must be less than ${t}MB. Your file is ${e.toFixed(1)}MB.`,INVALID_GITHUB_URL:"Invalid GitHub URL. Please provide a URL in the format: https://github.com/owner/repo",GENERIC_DOWNLOAD_ERROR:"Failed to download repository. Please try again or contact support if the issue persists.",GENERIC_SIZE_CHECK_ERROR:"Failed to check repository size. Please try again or contact support if the issue persists.",PAYLOAD_TOO_LARGE:"This project is too large to upload â it was rejected before reaching our servers, so nothing was created. Remove large committed files (media, build output, vendored dependencies) and try again."},"IMPORT_LIMITS",0,{MAX_ZIP_FILE_SIZE_MB:100,MAX_ZIP_FILE_SIZE_BYTES:0x6400000,MAX_GITHUB_REPO_SIZE_MB:100,MAX_GITHUB_REPO_SIZE_BYTES:0x6400000,DOWNLOAD_TIMEOUT_MS:3e4,CHUNK_SIZE_BYTES:1048576,FILE_PROCESSING_BATCH_SIZE:10,MAX_ZIP_ENTRIES:1e4,MAX_DECOMPRESSED_BYTES:524288e3}])},690272,e=>{"use strict";var t=e.i(499607);e.s(["FolderGit2",()=>t.default])},2470,472023,814400,124207,650098,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(607486),r=e.i(690272),i=e.i(955716),n=e.i(531278),o=e.i(270756),l=e.i(511152),c=e.i(948148),d=e.i(283414),p=e.i(710055),u=e.i(519455),h=e.i(967489),m=e.i(705766),f=e.i(824606);async function x(){let e={"Content-Type":"application/json"};if(d.auth?.currentUser)try{e.Authorization=`Bearer ${await d.auth.currentUser.getIdToken()}`}catch(e){}return e}
1e.s(["GitHubRepoPicker",0,function({value:e,onChange:d,disabled:b=!1}){let g=(0,c.useTranslations)("migrations.github-picker"),j=(0,f.safeT)(g,"load-accounts-failed","Failed to load GitHub accounts"),y=(0,f.safeT)(g,"load-repos-failed","Failed to load repositories"),v=(0,f.safeT)(g,"load-branches-failed","Failed to load branches"),T=(0,f.safeT)(g,"config-error","GitHub App configuration error"),[w,N]=(0,s.useState)([]),[z,I]=(0,s.useState)([]),[S,_]=(0,s.useState)([]),[C,E]=(0,s.useState)(!0),[P,U]=(0,s.useState)(!1),[O,R]=(0,s.useState)(!1),[F,B]=(0,s.useState)(0),L=w.find(t=>t.login===e.owner)??null,A=z.find(t=>t.name===e.repo)??null;(0,s.useEffect)(()=>{let e=!1;return(async()=>{E(!0);try{let t=await fetch("/api/connect/github/organizations",{headers:await x(),credentials:"include"});if(!t.ok){if(401===t.status){e||N([]);return}throw Error(`HTTP ${t.status}`)}let s=await t.json();e||N(s)}catch(t){e||m.default.error(j)}finally{e||E(!1)}})(),()=>{e=!0}},[F,j]);let k=(0,s.useCallback)(async e=>{U(!0),I([]);try{let t=new URLSearchParams({connectionId:e.connection_id,owner:e.login,type:e.type});e.installation_id&&t.set("installationId",String(e.installation_id));let s=await fetch(`/api/connect/github/repositories?${t}`,{headers:await x(),credentials:"include"});if(!s.ok)throw Error(`HTTP ${s.status}`);let a=await s.json();I(a)}catch(e){m.default.error(y)}finally{U(!1)}},[y]),G=(0,s.useCallback)(async(e,t)=>{R(!0),_([]);try{let s=new URLSearchParams({connectionId:e.connection_id,owner:e.login,repo:t});e.installation_id&&s.set("installationId",String(e.installation_id));let a=await fetch(`/api/connect/github/branches?${s}`,{headers:await x(),credentials:"include"});if(!a.ok)throw Error(`HTTP ${a.status}`);let r=await a.json();_(Array.isArray(r?.branches)?r.branches:[])}catch(e){m.default.error(v)}finally{R(!1)}},[v]);return C?(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-muted/30 p-6 flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.Loader2,{className:"h-4 w-4 animate-spin"}),(0,f.safeT)(g,"loading-accounts","Loading your GitHub accountsâ¦")]}):0===w.length?(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-muted/30 p-6 flex flex-col items-center gap-3 text-center",children:[(0,t.jsx)("div",{className:"h-9 w-9 rounded-xl bg-foreground
1/5 flex items-center justify-center",children:(0,t.jsx)(l.FaGithub,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:(0,f.safeT)(g,"connect-title","Connect your GitHub")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,f.safeT)(g,"connect-desc","Install the Blink GitHub App to import any repository â public or private.")})]}),(0,t.jsxs)(u.Button,{size:"sm",onClick:()=>(function(e,t){let{url:s}=(0,p.getGitHubAppInstallUrl)();if(!s)return void m.default.error(t);let a=window.screenX+(window.outerWidth-600)/2,r=window.screenY+(window.outerHeight-700)/2;window.open(s,"github-install",`width=600,height=700,left=${a},top=${r},toolbar=no,menubar=no`);let i=t=>{t.origin===window.location.origin&&t.data?.type==="github-oauth-success"&&(window.removeEventListener("message",i),e())};window.addEventListener("message",i)})(()=>B(e=>e+1),T),disabled:b,className:"mt-1",children:[(0,t.jsx)(l.FaGithub,{className:"h-4 w-4 mr-2"}),(0,f.safeT)(g,"connect-cta","Connect GitHub")]})]}):(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-card p-4 space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,t.jsx)(l.FaGithub,{className:"h-4 w-4"}),"GitHub"]}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),(0,f.safeRich)(g.rich,"connected-as",{login:w[0].login,account:e=>(0,t.jsx)("span",{className:"text-foreground",children:e})},(0,t.jsxs)(t.Fragment,{children:["Connected as ",(0,t.jsxs)("span",{className:"text-foreground",children:["@",w[0].login]})]}))]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[(0,t.jsx)(a.Building2,{className:"h-3 w-3"}),(0,f.safeT)(g,"owner","Owner")]}),(0,t.jsxs)(h.Select,{value:L?.login??"",onValueChange:function(e){let t=w.find(t=>t.login===e);t&&(d({connectionId:t.connection_id,owner:t.login,repo:"",branch:""}),k(t))},disabled:b,children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full h-9 text-sm",children:(0,t.jsx)(h.SelectValue,{placeholder:(0,f.safeT)(g,"select-org","Select organization or account")})}),(0,t.jsx)(h.SelectContent,{children:w.map(e=>(0,t.jsx)(h.SelectItem,{value:e.login,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[e.avatar_url?(0,t.jsx)("img",{src:e.avatar_url,alt:"",className:"h-4 w-4 rounded-full"}):(0,t.jsx)(a.Building2,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:e.login})]})},`${e.connection_id}-${e.login}`))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[(0,t.jsx)(r.FolderGit2,{className:"h-3 w-3"}),(0,f.safeT)(g,"repository","Repository")]}),P?(0,t.jsxs)("div",{className:"h-9 rounded-md border border-border/60 bg-muted/30 px-3 flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.Loader2,{className:"h-3.5 w-3.5 animate-spin"}),(0,f.safeT)(g,"loading-repos","Loading repositoriesâ¦")]}):(0,t.jsxs)(h.Select,{value:A?.name??"",onValueChange:function(e){let t=z.find(t=>t.name===e);t&&L&&(d({connectionId:L.connection_id,owner:L.login,repo:t.name,branch:t.default_branch}),G(L,t.name))},disabled:b||!L,children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full h-9 text-sm",children:(0,t.jsx)(h.SelectValue,{placeholder:L?(0,f.safeT)(g,"select-repository","Select repository"):(0,f.safeT)(g,"select-owner-first","Select owner first")})}),(0,t.jsx)(h.SelectContent,{children:z.map(e=>(0,t.jsx)(h.SelectItem,{value:e.name,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:e.name}),e.private&&(0,t.jsx)(o.Lock,{className:"h-3 w-3 text-muted-foreground"})]})},e.id))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[(0,t.jsx)(i.GitBranch,{className:"h-3 w-3"}),(0,f.safeT)(g,"branch","Branch")]}),O?(0,t.jsxs)("div",{className:"h-9 rounded-md border border-border/60 bg-muted/30 px-3 flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.Loader2,{className:"h-3.5 w-3.5 animate-spin"}),(0,f.safeT)(g,"loading-branches","Loading branchesâ¦")]}):(0,t.jsxs)(h.Select,{value:e.branch??"",onValueChange:function(e){L&&A&&d({connectionId:L.connection_id,owner:L.login,repo:A.name,branch:e})},disabled:b||!A,children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full h-9 text-sm",children:(0,t.jsx)(h.SelectValue,{placeholder:A?(0,f.safeT)(g,"select-branch","Select branch"):(0,f.safeT)(g,"select-repository-first","Select repository first")})}),(0,t.jsx)(h.SelectContent,{children:S.map(e=>(0,t.jsx)(h.SelectItem,{value:e.name,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.GitBranch,{className:"h-3 w-3"}),(0,t.jsx)("span",{children:e.name})]})},e.name))})]})]})]})}],2470);var b=e.i(286536),g=e.i(77705),j=e.i(793479),y=e.i(110204);e.s(["SupabaseFields",0,function({url:e,serviceRoleKey:a,onUrlChange:r,onKeyChange:i,optional:n=!0}
1){let o=(0,c.useTranslations)("migrations.supabase-fields"),[l,d]=(0,s.useState)(!1),p=n?(0,t.jsxs)("span",{className:"text-muted-foreground font-normal",children:[" ",(0,f.safeT)(o,"optional","(optional)")]}):null;return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(y.Label,{htmlFor:"sb-url",className:"text-sm",children:[(0,f.safeT)(o,"url-label","Supabase URL"),p]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,f.safeT)(o,"url-help","Project Overview â Project URL (top of dashboard)")}),(0,t.jsx)(j.Input,{id:"sb-url",type:"url",placeholder:"https://abcdefghi.supabase.co",value:e,onChange:e=>r(e.target.value)})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(y.Label,{htmlFor:"sb-key",className:"text-sm",children:[(0,f.safeT)(o,"key-label","Service Role Key"),p]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,f.safeT)(o,"key-help","Project Settings â API Keys â Legacy anon, service_role API keys â service_role (secret)")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(j.Input,{id:"sb-key",type:l?"text":"password",placeholder:"eyJhbGci...",value:a,onChange:e=>i(e.target.value),className:"pr-9 font-mono text-xs"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":l?(0,f.safeT)(o,"hide-key","Hide service role key"):(0,f.safeT)(o,"show-key","Show service role key"),children:l?(0,t.jsx)(g.EyeOff,{className:"h-4 w-4"}):(0,t.jsx)(b.Eye,{className:"h-4 w-4"})})]})]})]})}],472023);var v=e.i(767205);e.s(["SafetyNote",0,function({source:e,persistsSecrets:s=!1}){let a=(0,c.useTranslations)("migrations.safety-note");return(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 bg-muted/30 p-3 flex gap-2.5",children:[(0,t.jsx)(v.Info,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0 mt-0.5"}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[(0,f.safeTP)(a,"read","We securely read your {source} during migration â nothing in your source platform is modified.",{source:e})," ",s?(0,f.safeT)(a,"persists","Supabase credentials are saved as encrypted project secrets so your migrated app can use them at runtime; one-shot credentials are wiped after import."):(0,f.safeT)(a,"wiped","One-shot credentials are wiped after import.")]})]})}],814400);var T=e.i(569074),w=e.i(37727),N=e.i(690749);let z=(0,s.createContext)(null);function I(){let e=(0,s.useContext)(z);if(!e)throw Error("ZipUploadField must be rendered inside ConnectModalShell");return e}class S extends Error{}async function _(e,t){try{return await C(e,t)}catch(e){throw e instanceof S?e:new S(e instanceof Error?e.message:String(e))}}async function C(e,t){let s={"Content-Type":"application/json"};t&&(s.Authorization=`Bearer ${t}`);let a=await fetch("/api/import/archive-url",{method:"POST",headers:s,body:"{}"});if(!a.ok)throw new S(`archive-url responded ${a.status}`);let{archiveId:r,uploadUrl:i}=await a.json(),n=await fetch(i,{method:"PUT",headers:{"Content-Type":"application/zip","x-goog-content-length-range":`0,${N.IMPORT_LIMITS.MAX_ZIP_FILE_SIZE_BYTES}`},body:e});if(!n.ok)throw new S(`storage responded ${n.status}`);return r}e.s(["ZipSourceContext",0,z,"ZipUploadError",0,S,"needsZipUpload",0,function(e,t){return!!t&&!!e.zipSizeBytes&&!e.zipArchiveId&&!e.repoUrl},"uploadArchive",0,_,"useZipSource",0,I],124207),e.s(["ZipUploadField",0,function({label:e,helpText:a,filename:r,onFile:i,onClear:n,idPrefix:o="zip"}){let l=(0,c.useTranslations)("migrations.zip"),d=I(),p=(0,s.useRef)(null),[h,m]=(0,s.useState)(null),x=h??(d.failed&&r?(0,f.safeT)(l,"upload-failed","Upload failed. Please try again."):null);return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:`${o}-file`,className:"text-sm",children:e}),a&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:a}),(0,t.jsx)("input",{ref:p,id:`${o}-file`,type:"file",accept:".zip,application/zip",onChange:function(e){let t=e.target,s=t.files?.[0];if(s){if(m(null),s.size>N.IMPORT_LIMITS.MAX_ZIP_FILE_SIZE_BYTES){m((0,f.safeTP)(l,"size-limit","File exceeds 100 MB limit (yours is {mb} MB).",{mb:(s.size/1024/1024).toFixed(1)})),t.value="";return}d.pick(s),i(s.size,s.name)}},className:"sr-only","aria-describedby":x?`${o}-error`:void 0,"aria-invalid":!!x}),r&&d.uploading?(0,t.jsx)("div",{className:"flex items-center rounded-xl border border-border/60 bg-muted/30 px-3 py-2","aria-busy":"true",children:(0,t.jsx)("p",{className:"text-sm truncate flex-1 text-muted-foreground",children:(0,f.safeTP)(l,"uploading","Uploading {name}â¦",{name:r})})}):r?(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-border/60 bg-muted/30 px-3 py-2",children:[(0,t.jsx)("p",{className:"text-sm truncate flex-1",children:r}),(0,t.jsx)(u.Button,{type:"button",variant:"ghost",size:"sm",onClick:function(){p.current&&(p.current.value=""),m(null),d.pick(null),n()},className:"h-7 px-2",children:(0,t.jsx)(w.X,{className:"h-3.5 w-3.5"})})]}):(0,t.jsxs)(u.Button,{type:"button",variant:"outline",onClick:()=>p.current?.click(),className:"w-full justify-start gap-2 h-9 font-normal",children:[(0,t.jsx)(T.Upload,{className:"h-3.5 w-3.5"}
1),(0,f.safeT)(l,"choose-file","Choose .zip file")]}),x&&(0,t.jsx)("p",{id:`${o}-error`,role:"alert",className:"text-xs text-destructive",children:x})]})}],650098)},532793,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(948148),r=e.i(677572),i=e.i(2470),n=e.i(472023),o=e.i(814400),l=e.i(650098),c=e.i(824606);e.s(["Base44InputForm",0,function({value:e,onChange:d}){let p=(0,a.useTranslations)("migrations.form"),[u,h]=(0,s.useState)(e.zipSizeBytes?"zip":"github");return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("section",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:(0,c.safeT)(p,"import-app-ui","Import app UI and structure")}),(0,t.jsxs)(r.Tabs,{value:u,onValueChange:function(t){let s="zip"===t?"zip":"github";h(s),"zip"===s?d({...e,repoUrl:"",owner:"",repo:"",branch:"",connectionId:""}):d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},className:"space-y-3",children:[(0,t.jsxs)(r.TabsList,{className:"grid grid-cols-2 w-full",children:[(0,t.jsx)(r.TabsTrigger,{value:"github",children:(0,c.safeT)(p,"github-repo","GitHub repo")}),(0,t.jsx)(r.TabsTrigger,{value:"zip",children:(0,c.safeT)(p,"upload-zip","Upload ZIP")})]}),(0,t.jsx)(r.TabsContent,{value:"github",className:"space-y-2",children:(0,t.jsx)(i.GitHubRepoPicker,{value:{connectionId:e.connectionId??"",owner:e.owner??"",repo:e.repo??"",branch:e.branch??""},onChange:function(t){d({...e,connectionId:t.connectionId,owner:t.owner,repo:t.repo,branch:t.branch,repoUrl:t.owner&&t.repo?`https://github.com/${t.owner}/${t.repo}`:""})}})}),(0,t.jsx)(r.TabsContent,{value:"zip",children:(0,t.jsx)(l.ZipUploadField,{label:(0,c.safeT)(p,"zip-label-base44","Base44 ZIP export"),helpText:(0,c.safeT)(p,"zip-help-base44","Upload a .zip of your Base44 project"),filename:e.zipFilename??"",onFile:function(t,s){d({...e,zipArchiveId:"",zipSizeBytes:String(t),zipFilename:s,repoUrl:""})},onClear:function(){d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},idPrefix:"base44-zip"})})]})]}),(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold",children:[(0,c.safeT)(p,"import-data-db","Import data and database")," ",(0,t.jsx)("span",{className:"text-muted-foreground font-normal",children:(0,c.safeT)(p,"optional","(optional)")})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:(0,c.safeT)(p,"supabase-line","Supabase URL + service role key.")})]}),(0,t.jsx)(n.SupabaseFields,{url:e.supabaseUrl??"",serviceRoleKey:e.serviceRoleKey??"",onUrlChange:t=>d({...e,supabaseUrl:t}),onKeyChange:t=>d({...e,serviceRoleKey:t}),optional:!0})]}),(0,t.jsx)(o.SafetyNote,{source:(0,c.safeT)(p,"source-code-database","code and database"),persistsSecrets:!0})]})}])},634937,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(948148),r=e.i(677572),i=e.i(2470),n=e.i(472023),o=e.i(814400),l=e.i(650098),c=e.i(824606);e.s(["BoltInputForm",0,function({value:e,onChange:d}){let p=(0,a.useTranslations)("migrations.form"),[u,h]=(0,s.useState)(e.zipSizeBytes?"zip":"github");return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("section",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:(0,c.safeT)(p,"import-app-ui","Import app UI and structure")}),(0,t.jsxs)(r.Tabs,{value:u,onValueChange:function(t){let s="zip"===t?"zip":"github";h(s),"zip"===s?d({...e,repoUrl:"",owner:"",repo:"",branch:"",connectionId:""}):d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},className:"space-y-3",children:[(0,t.jsxs)(r.TabsList,{className:"grid grid-cols-2 w-full",children:[(0,t.jsx)(r.TabsTrigger,{value:"github",children:(0,c.safeT)(p,"github-repo","GitHub repo")}),(0,t.jsx)(r.TabsTrigger,{value:"zip",children:(0,c.safeT)(p,"upload-zip","Upload ZIP")})]}),(0,t.jsx)(r.TabsContent,{value:"github",className:"space-y-2",children:(0,t.jsx)(i.GitHubRepoPicker,{value:{connectionId:e.connectionId??"",owner:e.owner??"",repo:e.repo??"",branch:e.branch??""},onChange:function(t){d({...e,connectionId:t.connectionId,owner:t.owner,repo:t.repo,branch:t.branch,repoUrl:t.owner&&t.repo?`https://github.com/${t.owner}/${t.repo}`:""})}})}),(0,t.jsx)(r.TabsContent,{value:"zip",children:(0,t.jsx)(l.ZipUploadField,{label:(0,c.safeT)(p,"zip-label-bolt","Bolt ZIP export"),helpText:(0,c.safeT)(p,"zip-help-bolt","Bolt â File â Download â .zip"),filename:e.zipFilename??"",onFile:function(t,s){d({...e,zipArchiveId:"",zipSizeBytes:String(t),zipFilename:s,repoUrl:""})},onClear:function(){d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},idPrefix:"bolt-zip"})})]})]}),(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold",children:[(0,c.safeT)(p,"import-data-db","Import data and database")," ",(0,t.jsx)("span",{className:"text-muted-foreground font-normal",children:(0,c.safeT)(p,"optional","(optional)")})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:(0,c.safeT)(p,"supabase-line","Supabase URL + service role key.")})]}),(0,t.jsx)(n.SupabaseFields,{url:e.supabaseUrl??"",serviceRoleKey:e.serviceRoleKey??"",onUrlChange:t=>d({...e,supabaseUrl:t}),onKeyChange:t=>d({...e,serviceRoleKey:t}),optional:!0})]}),(0,t.jsx)(o.SafetyNote,{source:(0,c.safeT)(p,"source-code-database","code and database"),persistsSecrets:!0})]})}])},311714,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(948148),r=e.i(677572),i=e.i(2470),n=e.i(472023),o=e.i(814400),l=e.i(650098),c=e.i(824606);
1e.s(["VibeInputForm",0,function({value:e,onChange:d}){let p=(0,a.useTranslations)("migrations.form"),[u,h]=(0,s.useState)(e.zipSizeBytes?"zip":"github");return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("section",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:(0,c.safeT)(p,"import-app-ui","Import app UI and structure")}),(0,t.jsxs)(r.Tabs,{value:u,onValueChange:function(t){let s="zip"===t?"zip":"github";h(s),"zip"===s?d({...e,repoUrl:"",owner:"",repo:"",branch:"",connectionId:""}):d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},className:"space-y-3",children:[(0,t.jsxs)(r.TabsList,{className:"grid grid-cols-2 w-full",children:[(0,t.jsx)(r.TabsTrigger,{value:"github",children:(0,c.safeT)(p,"github-repo","GitHub repo")}),(0,t.jsx)(r.TabsTrigger,{value:"zip",children:(0,c.safeT)(p,"upload-zip","Upload ZIP")})]}),(0,t.jsx)(r.TabsContent,{value:"github",className:"space-y-2",children:(0,t.jsx)(i.GitHubRepoPicker,{value:{connectionId:e.connectionId??"",owner:e.owner??"",repo:e.repo??"",branch:e.branch??""},onChange:function(t){d({...e,connectionId:t.connectionId,owner:t.owner,repo:t.repo,branch:t.branch,repoUrl:t.owner&&t.repo?`https://github.com/${t.owner}/${t.repo}`:""})}})}),(0,t.jsx)(r.TabsContent,{value:"zip",children:(0,t.jsx)(l.ZipUploadField,{label:(0,c.safeT)(p,"zip-label-vibe","Project export ZIP"),helpText:(0,c.safeT)(p,"zip-help-vibe","Export your project as a .zip from the source platform and upload here."),filename:e.zipFilename??"",onFile:function(t,s){d({...e,zipArchiveId:"",zipSizeBytes:String(t),zipFilename:s,repoUrl:""})},onClear:function(){d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},idPrefix:"vibe-zip"})})]})]}),(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold",children:[(0,c.safeT)(p,"import-data-db","Import data and database")," ",(0,t.jsx)("span",{className:"text-muted-foreground font-normal",children:(0,c.safeT)(p,"optional","(optional)")})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:(0,c.safeT)(p,"skip-supabase","Skip if you don't use Supabase or want to start with a fresh DB.")})]}),(0,t.jsx)(n.SupabaseFields,{url:e.supabaseUrl??"",serviceRoleKey:e.serviceRoleKey??"",onUrlChange:t=>d({...e,supabaseUrl:t}),onKeyChange:t=>d({...e,serviceRoleKey:t}),optional:!0})]}),(0,t.jsx)(o.SafetyNote,{source:(0,c.safeT)(p,"source-code-database","code and database"),persistsSecrets:!0})]})}])},508876,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(948148),r=e.i(677572),i=e.i(2470),n=e.i(472023),o=e.i(814400),l=e.i(650098),c=e.i(824606);e.s(["InputForm",0,function({value:e,onChange:d}){let p=(0,a.useTranslations)("migrations.form"),[u,h]=(0,s.useState)(e.zipSizeBytes?"zip":"github");return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("section",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold",children:(0,c.safeT)(p,"import-app-ui","Import app UI and structure")}),(0,t.jsxs)(r.Tabs,{value:u,onValueChange:function(t){let s="zip"===t?"zip":"github";h(s),"zip"===s?d({...e,repoUrl:"",owner:"",repo:"",branch:"",connectionId:""}):d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},className:"space-y-3",children:[(0,t.jsxs)(r.TabsList,{className:"grid grid-cols-2 w-full",children:[(0,t.jsx)(r.TabsTrigger,{value:"github",children:(0,c.safeT)(p,"github-repo","GitHub repo")}),(0,t.jsx)(r.TabsTrigger,{value:"zip",children:(0,c.safeT)(p,"upload-zip","Upload ZIP")})]}),(0,t.jsx)(r.TabsContent,{value:"github",className:"space-y-2",children:(0,t.jsx)(i.GitHubRepoPicker,{value:{connectionId:e.connectionId??"",owner:e.owner??"",repo:e.repo??"",branch:e.branch??""},onChange:function(t){d({...e,connectionId:t.connectionId,owner:t.owner,repo:t.repo,branch:t.branch,repoUrl:t.owner&&t.repo?`https://github.com/${t.owner}/${t.repo}`:""})}})}),(0,t.jsx)(r.TabsContent,{value:"zip",children:(0,t.jsx)(l.ZipUploadField,{label:(0,c.safeT)(p,"zip-label-replit","Replit ZIP export"),helpText:(0,c.safeT)(p,"zip-help-replit","Replit â ⯠menu â Download as zip"),filename:e.zipFilename??"",onFile:function(t,s){d({...e,zipArchiveId:"",zipSizeBytes:String(t),zipFilename:s,repoUrl:""})},onClear:function(){d({...e,zipArchiveId:"",zipSizeBytes:"",zipFilename:""})},idPrefix:"replit-zip"})})]})]}),(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold",children:[(0,c.safeT)(p,"import-data-db","Import data and database")," ",(0,t.jsx)("span",{className:"text-muted-foreground font-normal",children:(0,c.safeT)(p,"optional","(optional)")})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:(0,c.safeT)(p,"supabase-line","Supabase URL + service role key.")})]}),(0,t.jsx)(n.SupabaseFields,{url:e.supabaseUrl??"",serviceRoleKey:e.serviceRoleKey??"",onUrlChange:t=>d({...e,supabaseUrl:t}),onKeyChange:t=>d({...e,serviceRoleKey:t}),optional:!0})]}),(0,t.jsx)(o.SafetyNote,{source:(0,c.safeT)(p,"source-code-database","code and database"),persistsSecrets:!0})]})}])}]);
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.