/** Generated by create-exotel-gwt-app — do not edit by hand */ import { initAafClient, type AafClient } from "./gwtAafSdk"; function setStatus(el: HTMLElement | null, message: string, isError = false) { if (!el) return; el.textContent = message; if (isError) el.style.color = "#b00020"; else el.style.removeProperty("color"); } export async function registerAafSdk(statusEl: HTMLElement | null): Promise { let client: AafClient; try { client = initAafClient(); } catch (e) { setStatus( statusEl, "AmeyoClient not available — open inside the GWT iframe (parent loads aaf_sdk.js).", true ); console.warn(e); return; } setStatus( statusEl, "AAF client initialized (blank template — wire globalEvent / globalData in this file or gwtAafSdk helpers).", false ); void client; }