"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A build indicator advances through foundation, integration and ready states. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading BoilerplateCode",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#238E58","--brand-loader-secondary":"#2CB6C5","--brand-loader-ink":"#172D35","--brand-loader-paper":"#F6FAF8","--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={"BoilerplateCode"}>
 <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=\"boilerplatecode\" aria-hidden=\"true\"><defs><clipPath id=\"clear-boilerplatecode\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-boilerplatecode)\"><g class=\"identity-grammar\"><path d=\"M170 210H830V790H170V210\" stroke=\"#172D35\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"outer-scaffold\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><path d=\"M250 330H750M250 500H750M250 670H750\" stroke=\"#238E58\" fill=\"none\" stroke-width=\"26\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"foundation-layers\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><path d=\"M560 160V840\" stroke=\"#2CB6C5\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"extension-seam\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><path d=\"M80 410L170 500L80 590M920 410L830 500L920 590\" stroke=\"#172D35\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"build-opening\" class=\"identity-stroke\" style=\"--phase:0.285s\"/></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;
