"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A guide point visits three squad pods around the learning table. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading SquadBatch",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#0F2D5B","--brand-loader-secondary":"#14B8A6","--brand-loader-ink":"#0F2D5B","--brand-loader-paper":"#F5F7F8","--brand-loader-mark-size":"52px","--brand-loader-mark-pos":"74.0px"} as CSSProperties;
 return <div className={["brand-loader",fullscreen?"brand-loader--fullscreen":"brand-loader--inline",className].join(" ")} style={style} role="status" aria-live="polite" aria-busy="true" data-brand={"SquadBatch"}>
 <span className="brand-loader__stage" aria-hidden="true"><span className="brand-loader__scene" dangerouslySetInnerHTML={{__html:"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"200\" height=\"200\" viewBox=\"0 0 1000 1000\" data-motion-profile=\"squadbatch\" aria-hidden=\"true\"><defs><clipPath id=\"clear-squadbatch\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-squadbatch)\"><g class=\"identity-grammar\"><circle cx=\"500\" cy=\"500\" r=\"150\" stroke=\"#0F2D5B\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"shared-learning-table\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><circle cx=\"230\" cy=\"270\" r=\"90\" stroke=\"#14B8A6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"squad-one\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><circle cx=\"790\" cy=\"300\" r=\"90\" stroke=\"#14B8A6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"squad-two\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><circle cx=\"510\" cy=\"840\" r=\"90\" stroke=\"#14B8A6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"squad-three\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><path d=\"M300 330L400 410M710 350L610 420M510 750V650\" stroke=\"#14B8A6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"coordination-links\" class=\"identity-stroke\" style=\"--phase:0.380s\"/><path d=\"M170 570Q500 120 850 590\" stroke=\"#0F2D5B\" fill=\"none\" stroke-width=\"12\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"guide-path\" class=\"identity-stroke\" style=\"--phase:0.475s\"/></g></g></svg>"}}/><img className="brand-loader__mark" src={logoSrc} width={52} height={52} alt=""/></span><span className="brand-loader__label">{label}</span></div>;
}
export default BrandLoader;
