hunk.code_window: if (isBrowser) {
     log("Embed SDK loaded", { isEmbed: window?.isEmbed?.() || false });
     // Exposes certain global variables/fns that are used by the app to get interface with the embed.
     embedInit();
     const url = new URL(document.URL);
     embedStore.theme = (window?.getEmbedTheme?.() || "auto") as UiConfig["theme"];
     if (url.searchParams.get("prerender") !== "true" && window?.isEmbed?.()) {
       log("Initializing embed-iframe");
       // HACK
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:   embedStore.theme = window?.getEmbedTheme?.() as UiConfig["theme"];
  
hunk.file_path: packages/embeds/embed-core/src/embed-iframe.ts
hunk.type: replace
file: import type { Prisma } from "@prisma/client";
  
  function isPrismaObj(obj: unknown): obj is Prisma.JsonObject {
    return typeof obj === "object" && !Array.isArray(obj);
  }
  
  export function isPrismaObjOrUndefined(obj: unknown) {
    return isPrismaObj(obj) ? obj : undefined;
  }
  
  export default isPrismaObj;
  