"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** An enquiry point moves around an open profile orbit. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading AliveProfile",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#6F4BF2","--brand-loader-secondary":"#5530D6","--brand-loader-ink":"#1F1B34","--brand-loader-paper":"#F9F8FE","--brand-loader-mark-size":"52px","--brand-loader-mark-pos":"74.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={"AliveProfile"}>
 <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=\"aliveprofile\" aria-hidden=\"true\"><defs><clipPath id=\"clear-aliveprofile\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-aliveprofile)\"><g class=\"identity-grammar\"><path d=\"M180 830V250Q180 110 320 110H560\" stroke=\"#6F4BF2\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"profile-portal\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><rect x=\"320\" y=\"340\" width=\"210\" height=\"330\" stroke=\"#1F1B34\" fill=\"none\" stroke-width=\"12\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"profile-window\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><circle cx=\"580\" cy=\"180\" r=\"28\" stroke=\"#5530D6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"service\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><circle cx=\"875\" cy=\"500\" r=\"40\" stroke=\"#5530D6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"evidence\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><circle cx=\"580\" cy=\"820\" r=\"28\" stroke=\"#5530D6\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"enquiry\" class=\"identity-stroke\" style=\"--phase:0.380s\"/><path d=\"M560 110Q900 180 900 500Q900 820 560 890\" stroke=\"#5530D6\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"open-orbit\" class=\"identity-stroke\" style=\"--phase:0.475s\"/><circle class=\"identity-traveller\" r=\"19\" fill=\"#5530D6\" stroke=\"#F9F8FE\" stroke-width=\"6\"><animateMotion dur=\"1.46s\" repeatCount=\"indefinite\" path=\"M560 110Q900 180 900 500Q900 820 560 890\" calcMode=\"paced\"/></circle></g></g></svg>"}}/><img className="brand-loader__mark" src={logoSrc} width={52} height={52} alt=""/></span><span className="brand-loader__label">{label}</span></div>;
}
export default BrandLoader;
