"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** An SOP step moves between owner and automation lanes. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading Automate with Khushbu",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#087765","--brand-loader-secondary":"#C1A450","--brand-loader-ink":"#123B36","--brand-loader-paper":"#F5FAF9","--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={"Automate with Khushbu"}>
 <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=\"automatewithkhushbu\" aria-hidden=\"true\"><defs><clipPath id=\"clear-automatewithkhushbu\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-automatewithkhushbu)\"><g class=\"identity-grammar\"><path d=\"M100 200V800M900 200V800\" stroke=\"#123B36\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"process-boundary\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><path d=\"M90 300H910M90 700H910\" stroke=\"#087765\" fill=\"none\" stroke-width=\"20\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"ownership-lanes\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><rect x=\"315\" y=\"445\" width=\"110\" height=\"110\" stroke=\"#123B36\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"work-packet\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><path d=\"M200 300H370V700H630V300H820\" stroke=\"#C1A450\" fill=\"none\" stroke-width=\"26\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"documented-handoffs\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><circle cx=\"630\" cy=\"700\" r=\"42\" stroke=\"#C1A450\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"human-check\" class=\"identity-stroke\" style=\"--phase:0.380s\"/><circle class=\"identity-traveller\" r=\"19\" fill=\"#C1A450\" stroke=\"#F5FAF9\" stroke-width=\"6\"><animateMotion dur=\"1.46s\" repeatCount=\"indefinite\" path=\"M200 300H370V700H630V300H820\" 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;
