"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A section line traces the system boundary before a decision point pulses. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading Ajay Prajapat",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#2E68ED","--brand-loader-secondary":"#F1964A","--brand-loader-ink":"#132238","--brand-loader-paper":"#F7F9FE","--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={"Ajay Prajapat"}>
 <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=\"ajayprajapat\" aria-hidden=\"true\"><defs><clipPath id=\"clear-ajayprajapat\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-ajayprajapat)\"><g class=\"identity-grammar\"><path d=\"M140 820V180H800V360H620V820\" stroke=\"#132238\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"system-section\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><path d=\"M250 240V760M490 240V760\" stroke=\"#F1964A\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"service-boundaries\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><path d=\"M90 650L890 390\" stroke=\"#2E68ED\" fill=\"none\" stroke-width=\"34\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"decision-beam\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><circle cx=\"620\" cy=\"480\" r=\"44\" stroke=\"#F1964A\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"intervention-point\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><path d=\"M700 760H910M910 760V900\" stroke=\"#132238\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"annotation-tail\" class=\"identity-stroke\" style=\"--phase:0.380s\"/><circle class=\"identity-traveller\" r=\"19\" fill=\"#F1964A\" stroke=\"#F7F9FE\" stroke-width=\"6\"><animateMotion dur=\"1.46s\" repeatCount=\"indefinite\" path=\"M90 650L890 390\" calcMode=\"paced\"/></circle></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;
