1import{r as i,j as e}from"./vendor-react-PtCE6zzk.js";import{S as n}from"./SEO-BElrpxFi.js";import{u as m}from"./useDocumentTitle-BkoG-C1v.js";import{c as d,u as h,z as x,P as f,B as y}from"./index-Dx1RQjBj.js";import{r as g}from"./useActivePublisher-BFOmzVDp.js";import"./SurfaceCard-2lmBDovU.js";import{Z as l}from"./Zone-cRP3fkAM.js";import{S as j}from"./SubstackImportCard-CP24eZH8.js";import{M as b}from"./mail-DfIp2Tzf.js";import"./vendor-radix-DCv5VfO_.js";import"./vendor-supabase-Bcw6FzAw.js";import"./vendor-recharts-DzKtGs7j.js";import"./substack-ChCwQkJB.js";import"./chevron-up-CcmvHn_0.js";import"./triangle-alert-DLirsOPX.js";import"./circle-check-big-C6BaPr2z.js";import"./upload-y_2Doz9c.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const c=d("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]),v="mailto:[email protected]?subject=Full-archive%20licensing%20request";function z(){m("Import archive - Opedd");const{user:t}=h(),[a,o]=i.useState(null);return i.useEffect(()=>{if(!t)return;let s=!1;return(async()=>{try{const r=await g(t.id),{data:p}=await x.from("content_sources").select("source_type").eq("user_id",(r==null?void 0:r.ownerUserId)??t.id);s||o((p??[]).some(u=>u.source_type==="substack"))}catch{s||o(!1)}})(),()=>{s=!0}},[t]),e.jsxs(f,{title:"Import archive",children:[e.jsx(n,{title:"Import archive - Opedd",path:"/settings/archive",noindex:!0}),e.jsx("div",{className:"p-4 sm:p-8 max-w-[680px] w-full mx-auto",children:a===null?null:a?e.jsx(l,{icon:c,title:"Import your archive",sub:"Bring your published posts into your catalog.",children:e.jsxs("div",{className:"p-5 sm:p-7 space-y-4",children:[e.jsx("p",{className:"text-[15px] leading-relaxed text-gray-600",children:"Get your ZIP from Substack â Settings â Export data, then upload it here."}),e.jsx(j,{})]})}):e.jsx(l,{icon:c,title:"Import your archive",sub:"Bring your published posts into your catalog.",children:e.jsxs("div",{className:"p-5 sm:p-7",children:[e.jsx("p",{className:"text-[15px] leading-relaxed text-gray-600",children:"Want your full back catalogue licensable? Contact us and we'll set it up."}),e.jsx(y,{asChild:!0,className:"h-11 mt-5 bg-oxford text-white hover:bg-oxford-dark",children:e.jsxs("a",{href:v,className:"inline-flex items-center gap-1.5",children:[e.jsx(b,{size:16})," Contact us"]})})]})})})]})}export{z 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.