"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A completed field moves through submit into an approval station. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading GenXForm",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#4F46E5","--brand-loader-secondary":"#EC4899","--brand-loader-ink":"#201E48","--brand-loader-paper":"#F8F8FE","--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={"GenXForm"}>
 <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=\"genxform\" aria-hidden=\"true\"><defs><clipPath id=\"clear-genxform\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-genxform)\"><g class=\"identity-grammar\"><rect x=\"100\" y=\"110\" width=\"380\" height=\"650\" stroke=\"#4F46E5\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"intake-plane\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><path d=\"M180 240H400M180 380H400M180 520H350\" stroke=\"#201E48\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"form-fields\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><path d=\"M100 760L230 890H480V760\" stroke=\"#201E48\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"folded-continuation\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><path d=\"M480 690H650V350H860\" stroke=\"#EC4899\" fill=\"none\" stroke-width=\"24\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"after-submit-route\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><rect x=\"720\" y=\"190\" width=\"190\" height=\"160\" stroke=\"#4F46E5\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"work-packet\" 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;
