hunk.code_window: }
   export const useEmbedTheme = () => {
     const router = useRouter();
     const [theme, setTheme] = useState(embedStore.theme || (router.query.theme as string));
     useEffect(() => {
       router.events.on("routeChangeComplete", () => {
         sdkActionManager?.fire("__routeChanged", {});
       });
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:   const [theme, setTheme] = useState(embedStore.theme || (router.query.theme as typeof embedStore.theme));
  
hunk.file_path: packages/embeds/embed-core/src/embed-iframe.ts
hunk.type: replace
file: import { WEBSITE_URL } from "@calcom/lib/constants";
  import slugify from "@calcom/lib/slugify";
  
  interface ResponseUsernameApi {
    available: boolean;
    premium: boolean;
    message?: string;
    suggestion?: string;
  }
  
  export async function checkPremiumUsername(_username: string): Promise<ResponseUsernameApi> {
    const username = slugify(_username);
    const response = await fetch(`${WEBSITE_URL}/api/username`, {
      credentials: "include",
      headers: {
        "Content-Type": "application/json",
      },
      body: JSON.stringify({ username }),
      method: "POST",
      mode: "cors",
    });
  
    const json = await response.json();
    return json;
  }
  