1import{j as e}from"./vendor-query.DQOehcH3.js";import{u as r,a}from"./vendor-i18n.ChdCNsiW.js";import{a7 as s,u as t,h as d,m as i,aY as l,S as n,L as o,aZ as g,a$ as c,b0 as x,b1 as b}from"./index.Ce55TR3D.js";import{B as m}from"./branding.types.D0J4b9EB.js";import{S as y}from"./SafeHTML.tw_QZGqn.js";import{i as h,R as p,A as u,a$ as k,l as j,X as f,be as N,O as v,bd as w,u as C,S,$ as F,j as L,aX as D}from"./vendor-icons.DzQ8M4aj.js";import"./vendor-router.B75J36u8.js";import"./vendor-firebase.vR1Yp7hh.js";import"./vendor-sentry.D23RwCEz.js";import"./vendor-utils.Cas6A1_Q.js";import"./vendor-animation.BBJkThRM.js";import"./purify.es.BnEo15Vf.js";const E={team:0,business:1,enterprise:2};function z(e,r){return E[e]>=E[r]}function B({requiredTier:r,t:a}){return e.jsx("div",{className:"absolute inset-0 bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-xl z-10 flex items-center justify-center",children:e.jsxs("div",{className:"text-center px-6 py-4",children:[e.jsx(L,{className:"w-8 h-8 text-gray-400 dark:text-gray-500 mx-auto mb-3"}),e.jsx("p",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-1",children:a("branding.locked.title")}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-3",children:a("branding.locked.requiresPlan",{plan:r.charAt(0).toUpperCase()+r.slice(1)})}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-org-primary dark:text-org-accent bg-org-bg dark:bg-gray-700 rounded-full",children:[e.jsx(D,{className:"w-3.5 h-3.5"}),a("branding.locked.upgrade")]})]})})}function T(){const{navigateToOrg:L}=s(),{t:D}=r("organization"),{user:E}=t(),{organization:T,organizationId:A}=d(),R=i(),[q,P]=a.useState(null),[U,$]=a.useState(!0),[H,O]=a.useState(!1),[I,M]=a.useState(""),[X,Y]=a.useState(null),[Z,G]=a.useState({primary:"#2563EB",secondary:"#7C3AED",accent:"#10B981",background:"#F9FAFB",text:"#111827"}),[J,K]=a.useState(null),[Q,V]=a.useState(""),[W,_]=a.useState(!1),[ee,re]=a.useState(""),[ae,se]=a.useState(!1),[te,de]=a.useState([]),[ie,le]=a.useState(!1),ne=T?.subscription?.tier||"team",oe=z(ne,"business");async function ge(){if(A)try{$(!0),Y(null);const e=await l(A);e&&(P(e),e.colors&&G(e.colors),e.logo&&V(e.logo.url),e.customDomain&&(re(e.customDomain.domain),le(e.customDomain.verified),e.customDomain.dnsRecords&&de(e.customDomain.dnsRecords)),e.whiteLabel&&se(e.whiteLabel.enabled))}catch{Y(D("branding.errors.loadFailed"))}finally{$(!1)}}function ce(e){M(e),setTimeout(()=>M(""),3e3)}return z(ne,"enterprise"),a.useEffect(()=>{A&&E&&ge()},[A,E]),U?e.jsxs(e.Fragment,{children:[e.jsx(n,{title:D("branding.seo.title"),description:D("branding.seo.description"),noindex:!0}),e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-[#FEF3E6] dark:from-gray-900 dark:via-gray-800 dark:to-gray-900 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(o,{size:"lg",className:"mx-auto"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:D("branding.loading")})]})})]}):X?e.jsxs(e.Fragment,{children:[e.jsx(n,{title:D("branding.seo.title"),description:D("branding.seo.description"),noindex:!0}),e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-[#FEF3E6] dark:from-gray-900 dark:via-gray-800 dark:to-gray-900 flex items-center justify-center",children:e.jsxs("div",{className:"text-center max-w-md mx-auto px-4",children:[e.jsx(h,{className:"w-12 h-12 text-amber-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:X}),e.jsxs("button",{onClick:ge,className:"mt-4 inline-flex items-center gap-2 px-4 py-2 bg-org-primary dark:bg-org-secondary text-white rounded-lg hover:bg-org-text dark:hover:bg-[#0D5F58] transition-colors",children:[e.jsx(p,{className:"w-4 h-4"}),D("branding.retry")]})]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(n,{title:D("branding.seo.title"),description:D("branding.seo.description"),noindex:!0}),e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-[#FEF3E6] dark:from-gray-900 dark:via-gray-800 dark:to-gray-900",children:[e.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[e.jsxs("button",{onClick:()=>L("/organization"),className:"flex items-center gap-2 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 mb-4",children:[e.jsx(u,{className:"w-5 h-5"}),D("branding.backToDashboard")]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 bg-pink-100 dark:bg-pink-900/30 rounded-lg",children:e.jsx(k,{className:"w-8 h-8 text-pink-600 dark:text-pink-400"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:D("branding.title")}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:D("branding.subtitle")})]})]}),e.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 px-3 py-1.5 bg-gray-100 dark:bg-gray-700 rounded-full text-sm",children:[e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:[D("branding.currentPlan"),":"]}),e.jsx("span",{className:"font-semibold text-gray-900 dark:text-white capitalize",children:ne})]})]})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[I&&e.jsxs("div",{className:"mb-6 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-700 rounded-lg p-4 flex items-center gap-3",children:[e.jsx(j,{className:"w-5 h-5 text-green-600 dark:text-green-400 flex-shrink-0"}),e.jsx("p",{className:"text-green-700 dark:text-green-300 font-medium flex-1",children:I}),e.jsx("button",{onClick:()=>M(""),className:"text-green-600 dark:text-green-400 hover:text-green-800",children:e.jsx(f,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6 border border-gray-100 dark:border-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(N,{className:"w-6 h-6 text-gray-700 dark:text-gray-300"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:D("branding.logo.title")})]}),e.jsxs("div",{className:"space-y-4",children:[Q&&e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("img",{src:Q,alt:"Logo",className:"h-20 max-w-[200px] object-contain border border-gray-300 dark:border-gray-600 rounded p-2 bg-white dark:bg-gray-700"}),e.jsx("button",{onClick:function(){q?.logo&&A&&E&&_(!0)},disabled:H,className:"text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 text-sm",children:D("branding.logo.delete")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:D(Q?"branding.logo.replace":"branding.logo.upload")}),e.jsx("input",{type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",onChange:function(e){const r=e.target.files?.[0];if(r){if(!["image/png","image/jpeg","image/webp","image/gif"].includes(r.type))return R.error(D("branding.errors.invalidFileType")),void(e.target.value="");const a=2097152;if(r.size>a)return R.error(D("branding.errors.fileTooLarge")),void(e.target.value="");K(r);const s=new FileReader;s.onloadend=()=>{V(s.result)},s.readAsDataURL(r)}},className:"block w-full text-sm text-gray-600 dark:text-gray-400 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-org-bg dark:file:bg-gray-700 file:text-org-text dark:file:text-white hover:file:bg-org-accent dark:hover:file:bg-gray-600"}),e.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 mt-1",children:D("branding.logo.fileHelp")})]}),J&&e.jsxs("button",{onClick:async function(){if(J&&A&&E)try{O(!0);const{url:e}=await x(A,E.uid,J);V(e),K(null),await ge(),ce(D("branding.success.logoUploaded"))}catch(e){const r=e instanceof Error?e.message:D("branding.errors.logo");R.error(r)}finally{O(!1)}},disabled:H,className:"px-4 py-2 bg-org-primary dark:bg-org-secondary text-white rounded-lg hover:bg-org-text dark:hover:bg-[#0D5F58] transition-colors disabled:opacity-50",children:[e.jsx(v,{className:"w-4 h-4 inline mr-2"}),D(H?"branding.logo.uploading":"branding.logo.uploadButton")]})]})]}),e.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6 border border-gray-100 dark:border-gray-700",children:[!
1oe&&e.jsx(B,{requiredTier:"business",t:D}),e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(k,{className:"w-6 h-6 text-gray-700 dark:text-gray-300"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:D("branding.colors.title")}),!oe&&e.jsx("span",{className:"ml-auto text-xs font-medium text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/20 px-2 py-1 rounded-full",children:"Business+"})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-3",children:D("branding.colors.presetsLabel")}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:m.map(r=>e.jsxs("button",{onClick:()=>async function(e){if(!oe)return;const r=m.find(r=>r.id===e);if(r&&A&&E)try{O(!0),G(r.colors),await c(A,E.uid,r.colors),await ge(),ce(D("branding.success.presetApplied",{name:r.name}))}catch{R.error(D("branding.errors.preset"))}finally{O(!1)}}(r.id),disabled:!oe||H,className:"p-3 border-2 border-gray-200 dark:border-gray-600 rounded-lg hover:border-org-secondary dark:hover:border-teal-500 transition-colors text-left bg-white dark:bg-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:[e.jsxs("div",{className:"flex gap-1 mb-2",children:[e.jsx("div",{className:"w-6 h-6 rounded",style:{background:r.colors.primary}}),e.jsx("div",{className:"w-6 h-6 rounded",style:{background:r.colors.secondary}}),e.jsx("div",{className:"w-6 h-6 rounded",style:{background:r.colors.accent}})]}),e.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:r.name}),e.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:r.description})]},r.id))})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:D("branding.colors.primary")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"color",value:Z.primary,onChange:e=>G({...Z,primary:e.target.value}),disabled:!oe,className:"w-16 h-10 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 disabled:opacity-50"}),e.jsx("input",{type:"text",value:Z.primary,onChange:e=>G({...Z,primary:e.target.value}),disabled:!oe,className:"flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white disabled:opacity-50"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:D("branding.colors.secondary")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"color",value:Z.secondary,onChange:e=>G({...Z,secondary:e.target.value}),disabled:!oe,className:"w-16 h-10 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 disabled:opacity-50"}),e.jsx("input",{type:"text",value:Z.secondary,onChange:e=>G({...Z,secondary:e.target.value}),disabled:!oe,className:"flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white disabled:opacity-50"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:D("branding.colors.accent")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"color",value:Z.accent,onChange:e=>G({...Z,accent:e.target.value}),disabled:!oe,className:"w-16 h-10 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 disabled:opacity-50"}),e.jsx("input",{type:"text",value:Z.accent,onChange:e=>G({...Z,accent:e.target.value}),disabled:!oe,className:"flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white disabled:opacity-50"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:D("branding.colors.background")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"color",value:Z.background,onChange:e=>G({...Z,background:e.target.value}),disabled:!oe,className:"w-16 h-10 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 disabled:opacity-50"}),e.jsx("input",{type:"text",value:Z.background,onChange:e=>G({...Z,background:e.target.value}),disabled:!oe,className:"flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white disabled:opacity-50"})]})]}),e.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:D("branding.colors.text")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"color",value:Z.text,onChange:e=>G({...Z,text:e.target.value}),disabled:!oe,className:"w-16 h-10 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 disabled:opacity-50"}),e.jsx("input",{type:"text",value:Z.text,onChange:e=>G({...Z,text:e.target.value}),disabled:!oe,className:"flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white disabled:opacity-50"})]})]})]}),e.jsxs("button",{onClick:async function(){if(A&&E&&oe)try{O(!0),await c(A,E.uid,Z),await ge(),ce(D("branding.success.colors"))}catch{R.error(D("branding.errors.colors"))}finally{O(!1)}},disabled:H||!oe,className:"w-full px-4 py-3 bg-org-primary dark:bg-org-secondary text-white rounded-lg hover:bg-org-text dark:hover:bg-[#0D5F58] transition-colors disabled:opacity-50 flex items-center justify-center gap-2",children:[e.jsx(w,{className:"w-5 h-5"}),D(H?"branding.colors.saving":"branding.colors.saveButton")]})]})]}),e.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6 border border-gray-100 dark:border-gray-700 opacity-75",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(C,{className:"w-6 h-6 text-gray-400 dark:text-gray-500"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:D("branding.domain.title")}),e.jsx("span",{className:"ml-auto inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-700 rounded-full",children:D("branding.comingSoon","Coming Soon â Planned 2026")})]}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4",children:D("branding.domain.description")}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-400 dark:text-gray-500 mb-2",children:D("branding.domain.label")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"text",value:"",disabled:!0,placeholder:"eval.yourdomain.com",className:"flex-1 px-3 py-2 border border-gray-200 dark:border-gray-700 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-400 dark:text-gray-500 cursor-not-allowed"}),e.jsx("button",{disabled:!0,className:"px-4 py-2 bg-gray-300 dark:bg-gray-600 text-gray-500 dark:text-gray-400 rounded-lg cursor-not-allowed",children:D("branding.domain.configure")})]})]})})]}),e.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6 border border-gray-100 dark:border-gray-700 opacity-75",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(S,{className:"w-6 h-6 text-gray-400 dark:text-gray-500"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:D("branding.whiteLabel.title")}),e.jsx("span",{className:"ml-auto inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-700 rounded-full",children:D("branding.comingSoon","Coming Soon â Planned 2026")})]}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4",children:D("branding.whiteLabel.description")}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-100 dark:bg-gray-900/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:D("branding.whiteLabel.enableLabel")}),e.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:D("branding.whiteLabel.enableDescription")})]}),e.jsx("button",{disabled:!0,className:"relative inline-flex h-6 w-11 items-center rounded-full bg-gray-300 dark:bg-gray-600 cursor-not-allowed opacity-50",role:"switch","aria-checked":!1,"aria-disabled":"true",children:e.jsx("span",{className:"inline-block h-4 w-4 transform rounded-full bg-white translate-x-1"})})]})]})]}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm p-6 border border-gray-100 dark:border-gray-700 sticky top-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(F,{className:"w-6 h-6 text-gray-700 dark:text-gray-300"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:D("branding.preview.title")})]}),e.jsx(y,{html:g({colors:Z,logo:Q?{url:Q,fileName:"",uploadedAt:new Date,uploadedBy:""}:void 0}),className:"border-2 border-gray-300 dark:border-gray-600 rounded-lg p-4 bg-white dark:bg-gray-700",ariaLabel:D("branding.preview.ariaLabel")}),e.jsxs("div",{className:"mt-6 space-y-2",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:D("branding.preview.colorsUsed")}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded border border-gray-300 dark:border-gray-600",style:{background:Z.primary}}),e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:D("branding.preview.primary")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded border border-gray-300 dark:border-gray-600",style:{background:Z.secondary}}),e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:D("branding.preview.secondary")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded border border-gray-300 dark:border-gray-600",style:{background:Z.accent}}),e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:D("branding.preview.accent")})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded border border-gray-300 dark:border-gray-600",style:{background:Z.background}}),e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:D("branding.preview.background")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded border border-gray-300 dark:border-gray-600",style:{background:Z.text}}),e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:D("branding.preview.text")})]})]})]})]})})]})]}),W&&e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl max-w-md w-full p-6 shadow-2xl",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-4",children:D("branding.logo.delete")}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:D("branding.confirm.deleteLogo")}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{onClick:()=>_(!1),className:"flex-1 px-4 py-2 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:D("common.cancel","Cancel")}),e.jsx("button",{onClick:async function(){if(q?.logo&&A&&E){_(!1);try{O(!0),await b(A,E.uid,q.logo.fileName),V(""),await ge(),ce(D("branding.success.logoDeleted"))}catch{R.error(D("branding.errors.logoDelete"))}finally{O(!1)}}},className:"flex-1 px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors",children:D("branding.logo.delete")})]})]})})]})]})}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.