"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A support request advances toward a named human handoff. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading APPNEURAL India",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#E57E27","--brand-loader-secondary":"#159672","--brand-loader-ink":"#143D49","--brand-loader-paper":"#FEFAF6","--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={"APPNEURAL India"}>
 <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=\"appneural-in\" aria-hidden=\"true\"><defs><clipPath id=\"clear-appneural-in\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-appneural-in)\"><g class=\"identity-grammar\"><path d=\"M120 760V470L280 340L440 470V760\" stroke=\"#E57E27\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"business-front\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><rect x=\"560\" y=\"570\" width=\"100\" height=\"100\" stroke=\"#143D49\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"build-stop\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><circle cx=\"610\" cy=\"320\" r=\"38\" stroke=\"#159672\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"automate-stop\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><path d=\"M440 650H610V320H850\" stroke=\"#159672\" fill=\"none\" stroke-width=\"24\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"local-support-route\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><circle cx=\"850\" cy=\"320\" r=\"65\" stroke=\"#159672\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"support-stop\" class=\"identity-stroke\" style=\"--phase:0.380s\"/><circle class=\"identity-traveller\" r=\"19\" fill=\"#159672\" stroke=\"#FEFAF6\" stroke-width=\"6\"><animateMotion dur=\"1.46s\" repeatCount=\"indefinite\" path=\"M440 650H610V320H850\" 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;
