1import{p as f,gM as l,gL as b,r as c,j as e,aQ as u,B as y,L as x,t as h}from"./index-6-emiM3G.js";import{B as v}from"./booking-setup-shell-BXNetaWL.js";import{L as C,C as j}from"./logo-upload-BKnOIavu.js";import{u as N}from"./use-update-organization-DPFJOg05.js";import{P as w}from"./palette-CC2jgyQS.js";import"./arrow-left-BWhqHMer.js";import"./upload-org-image-aC9sGAbH.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"b7d40744cb59f53e5c17d7e34c2c30a6c8782406"},a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=(function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];if(o!=null)for(var s in o)o.hasOwnProperty(s)&&(r[s]=o[s])}return r})({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:getdriive-app":!0});var t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="c1fc48e7-0e14-4b53-bd7e-926a3de5382d",a._sentryDebugIdIdentifier="sentry-dbid-c1fc48e7-0e14-4b53-bd7e-926a3de5382d")}catch{}})();function I(){const a=f(),{orgSlug:t}=l.useParams(),{activeOrganization:r}=l.useRouteContext(),{setBrandingConfigured:n}=b(t),[o,s]=c.useState(r.logoUrl),[d,g]=c.useState(r.brandColor||"#1a73e8"),i=N(r.id,t),m=async()=>{try{await i.mutateAsync({logoUrl:o,brandColor:d}),n(!0),a({to:`/app/${t}/setup/booking/calendar`})}catch(p){h.error("Failed to save branding"),console.error("Failed to save branding:",p)}};return e.jsx(v,{title:"Customize Your Branding",description:"Make your booking page match your brand",icon:e.jsx(w,{className:"w-10 h-10 text-primary"}),children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx(u,{className:"text-sm font-medium",children:"Logo (Optional)"}),e.jsx(C,{organizationId:r.id,currentLogoUrl:o,onUploadComplete:s,className:"items-center"})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"brandColor",className:"text-sm font-medium",children:"Brand Color"}),e.jsx(j,{id:"brandColor",name:"brandColor",value:d,onChange:g})]})})]}),e.jsx(y,{onClick:m,disabled:i.isPending,className:"w-full",children:i.isPending?e.jsxs(e.Fragment,{children:[e.jsx(x,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Continue"})]})})}export{I as component};
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.