1import{q as l,r as i,j as t,m as x,f as d}from"./index-sMz8beI_.js";import{A as u}from"./AdminOutfitForm-J9mdhhRS.js";import{c as f}from"./outfitsClient-CbTqGp-A.js";import{u as h}from"./Toast-a1q_w8Yo.js";import{A as b}from"./arrow-left-_w9msQIg.js";import"./ChromaCanvas-DlW8344w.js";import"./AuthContext-BRWjlb3Z.js";import"./palette-IQs6-9dD.js";import"./check-B9MUDmOr.js";import"./x-Bd_Kqijs.js";import"./upload-CVJNNg5X.js";import"./sparkles-_kTspJLC.js";import"./circle-alert-CCLPKmBn.js";const T=()=>{const m=l(),s=h(),[n,a]=i.useState(!1),[r,o]=i.useState(null),c=async p=>{a(!0),o(null);try{const e=await f(p);s("Outfit created.","success"),m(`/outfits/manage/edit/${e.id}`)}catch(e){o(e.message),s(e.message,"error")}finally{a(!1)}};return t.jsx("div",{className:"max-w-3xl mx-auto px-6 py-12",children:t.jsxs(x.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5},children:[t.jsxs(d,{to:"/outfits/manage",className:"inline-flex items-center gap-2 text-xs text-sophey-cream/40 hover:text-sophey-cream/70 mb-6 transition-colors",children:[t.jsx(b,{className:"w-3.5 h-3.5"})," Back to dashboard"]}),t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx("span",{className:"w-8 h-px bg-sophey-cream/30"}),t.jsx("span",{className:"text-[10px] tracking-[0.3em] uppercase text-sophey-cream/40 font-medium",children:"New outfit"})]}),t.jsx("h1",{className:"font-display font-bold text-sophey-cream tracking-[-0.04em] text-4xl mb-10",children:"Upload a look."}),r&&t.jsx("div",{className:"mb-6 text-xs text-red-300/90 border border-red-400/30 bg-red-400/5 px-3 py-2",style:{borderRadius:"2px"},children:r}),t.jsx(u,{onSubmit:c,submitting:n,submitLabel:"Create outfit"})]})})};export{T 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.