"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** Three specimen elements click into a shared registration corner. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading BrandVisualKit",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#723FD8","--brand-loader-secondary":"#F18B37","--brand-loader-ink":"#252330","--brand-loader-paper":"#F9F7FD","--brand-loader-mark-size":"70px","--brand-loader-mark-pos":"65.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={"BrandVisualKit"}>
 <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=\"brandvisualkit\" aria-hidden=\"true\"><defs><clipPath id=\"clear-brandvisualkit\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-brandvisualkit)\"><g class=\"identity-grammar\"><path d=\"M90 900H910M90 900V80\" stroke=\"#252330\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"registration-corner\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><rect x=\"110\" y=\"160\" width=\"220\" height=\"220\" stroke=\"#723FD8\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"colour-chip\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><path d=\"M400 160V380M400 270H780\" stroke=\"#252330\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"type-measure\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><rect x=\"110\" y=\"470\" width=\"440\" height=\"330\" stroke=\"#F18B37\" fill=\"none\" stroke-width=\"20\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"format-frame\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><rect x=\"650\" y=\"520\" width=\"210\" height=\"210\" stroke=\"#723FD8\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"asset-format\" class=\"identity-stroke\" style=\"--phase:0.380s\"/></g></g></svg>"}}/><img className="brand-loader__mark" src={logoSrc} width={70} height={70} alt=""/></span><span className="brand-loader__label">{label}</span></div>;
}
export default BrandLoader;
