1import{r as o,s as f,j as e,Q as j,G as b,H as g,I as N,J as t,U as w,bc as v,b6 as y,aX as _,h as T,K as r}from"./index-CuMcGkrh.js";import{B,a as C,P as L,b as S}from"./BrandLoraPanel-D7fSW0WS.js";import{B as P}from"./BrandBoardsTab-zRrAUsw7.js";import{T as k}from"./TenantEmailConfig-BnqKALjN.js";import{P as E}from"./package-D8tzotv_.js";import"./sanitize-O3xCC6Yi.js";import"./purify.es-pMfg-Su5.js";import"./ICPProfileCard-B8lj9MZs.js";import"./index-CimhTtbs.js";import"./parseICPProfiles-C6nLUTkj.js";import"./markdownToHtml-BwdY7y_V.js";import"./marked.esm-Dkpl6jqx.js";import"./AntiLookMaasyPanel-B-dPpez1.js";import"./camera-B8hP_oOI.js";import"./pen-DwnwkFn-.js";import"./volume-2-B1wt0nex.js";import"./message-square-quote-CCwyPxJ7.js";import"./images-pOQOCZfC.js";import"./award-Bx8KuJUn.js";import"./settings-2-Dgl4eNjH.js";import"./image-SkV5sC4d.js";import"./filter-TRY8ze7g.js";import"./smile-moyYodq0.js";import"./lightbulb-Cad6Pcoh.js";import"./collapsible-DkBuFU25.js";import"./index-CAPYjvwb.js";import"./shared-generation-cards-BcnYV8lQ.js";import"./sanitizeMarkdown-BKLTdyMt.js";import"./popover-Ct6GlC1w.js";import"./index-6Azjw9Lk.js";import"./mediaAssets-DkhlN-rV.js";import"./scroll-area-CNj6EK8I.js";import"./TikTokAdPreviewCard-BZ1-x86o.js";import"./GoogleAdPreviewCard-CFeWoOzV.js";import"./UsageLimitModal-C2c90czF.js";import"./bookmark-DC-aggmC.js";import"./music-Dp_lI__u.js";import"./mouse-pointer-click-Co28Cb-j.js";import"./dollar-sign-B2OY8-rg.js";import"./type-B82ed-Vx.js";import"./download-B1BTuZAS.js";import"./circle-check-big-Bv244657.js";import"./formatDistanceToNow-GsinHOiH.js";import"./en-US-xHSDCZDo.js";import"./endOfMonth-CmwZJ6b_.js";import"./es-WaaJgypT.js";import"./film-BkBQQH5K.js";import"./useProductLines-Cky7eIL7.js";import"./grip-vertical-BUkGb2pv.js";import"./pencil-gI0VEwT8.js";import"./useBrandLora-DCPVFH6j.js";import"./upload-C_miPARW.js";import"./BoardAssetDrawer-rAj47MuE.js";import"./checkbox-DpRQrWcn.js";import"./format-2IgJ5YnW.js";import"./calendar-kkyOfeY6.js";import"./startOfMonth-A91Y0RCS.js";import"./subDays-BmfBkRvv.js";import"./chevron-left-DHt1KnDq.js";import"./arrow-right-left-OEXdRCCS.js";import"./calendar-DL9Dxjqm.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="4a28cdc3-fb1a-424c-aefe-a9af5e341518",a._sentryDebugIdIdentifier="sentry-dbid-4a28cdc3-fb1a-424c-aefe-a9af5e341518")}catch{}})();function qe({canonicalId:a}){var n,c;const[s,l]=o.useState(null),[d,p]=o.useState(!0),[x,u]=o.useState("context");if(o.useEffect(()=>{let m=!1;if(a)return p(!0),(async()=>{const{data:h}=await f.from("projects").select("id, brand_name, website_url, brand_dna(logo_url, colors)").eq("id",a).maybeSingle();m||(l(h),p(!1))})(),()=>{m=!0}},[a]),d)return e.jsx("div",{className:"flex h-[60vh] items-center justify-center text-white/40",children:e.jsx(j,{className:"h-6 w-6 animate-spin"})});if(!s)return e.jsxs("div",{className:"flex h-[60vh] flex-col items-center justify-center gap-2 px-6 text-center text-white/45",children:[e.jsx("p",{className:"text-[13px]",children:"No se encontró la marca activa."}),e.jsx("p",{className:"text-[11px] text-white/30",children:a.slice(0,8)})]});const i=Array.isArray(s.brand_dna)?s.brand_dna[0]:s.brand_dna;return e.jsxs("div",{className:"px-5 pb-8 pt-4",children:[e.jsxs("div",{className:"mb-4 flex items-start gap-3",children:[i!=null&&i.logo_url?e.jsx("img",{src:i.logo_url,alt:s.brand_name,className:"h-10 w-10 shrink-0 rounded-lg bg-white/5 object-contain p-1"}):e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-primary text-sm font-bold text-primary-foreground",children:(c=(n=s.brand_name)==null?void 0:n.charAt(0))==null?void 0:c.toUpperCase()}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"truncate text-[13px] font-medium text-white/85",children:s.brand_name}),e.jsx("p",{className:"text-[11.5px] text-white/45",children:"Configuración de la marca"}),s.website_url&&e.jsxs("p",{className:"mt-0.5 flex items-center gap-1 text-[11px] text-white/40",children:[e.jsx(b,{className:"h-3 w-3"}),s.website_url.replace(/^https?:\/\//,"")]})]})]}),e.jsxs(g,{value:x,onValueChange:m=>u(m),className:"flex flex-col",children:[e.jsxs(N,{className:"mb-4 flex w-fit max-w-full flex-wrap gap-1 overflow-x-auto",children:[e.jsxs(t,{value:"context",className:"gap-1.5",children:[e.jsx(w,{className:"h-3.5 w-3.5"}),"Contexto"]}),e.jsxs(t,{value:"library",className:"gap-1.5",children:[e.jsx(v,{className:"h-3.5 w-3.5"}),"Library"]}),e.jsxs(t,{value:"boards",className:"gap-1.5",children:[e.jsx(y,{className:"h-3.5 w-3.5"}),"Boards"]}),e.jsxs(t,{value:"email",className:"gap-1.5",children:[e.jsx(_,{className:"h-3.5 w-3.5"}),"Email"]}),e.jsxs(t,{value:"products",className:"gap-1.5",children:[e.jsx(E,{className:"h-3.5 w-3.5"}),"Productos"]}),e.jsxs(t,{value:"visual-ai",className:"gap-1.5",children:[e.jsx(T,{className:"h-3.5 w-3.5"}),"IA Visual"]})]}),e.jsx(r,{value:"context",className:"mt-0",children:e.jsx(B,{projectId:a,brandName:s.brand_name,onGoToStep:()=>{}})}),e.jsx(r,{value:"library",className:"mt-0",children:e.jsx(C,{projectId:a})}),e.jsx(r,{value:"boards",className:"mt-0",children:e.jsx(P,{projectId:a})}),e.jsx(r,{value:"email",className:"mt-0",children:e.jsx("div",{className:"max-w-2xl py-2",children:e.jsx(k,{projectId:a})})}),e.jsx(r,{value:"products",className:"mt-0",children:e.jsx("div",{className:"max-w-2xl py-2",children:e.jsx(L,{projectId:a})})}),e.jsx(r,{value:"visual-ai",className:"mt-0",children:e.jsx(S,{projectId:a})})]})]})}export{qe as default}; 2//# sourceMappingURL=BrandSettingsSheet-CWC7pDcb.js.map
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.