"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A control point travels along the experience curve. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading DesignXperia",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#098F88","--brand-loader-secondary":"#F0AC62","--brand-loader-ink":"#192E36","--brand-loader-paper":"#F5FBFA","--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={"DesignXperia"}>
 <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=\"designxperia\" aria-hidden=\"true\"><defs><clipPath id=\"clear-designxperia\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-designxperia)\"><g class=\"identity-grammar\"><circle cx=\"240\" cy=\"100\" r=\"28\" stroke=\"#F0AC62\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"first-handle\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><circle cx=\"760\" cy=\"900\" r=\"28\" stroke=\"#F0AC62\" fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"second-handle\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><path d=\"M120 800L240 100M880 200L760 900\" stroke=\"#192E36\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"bezier-handles\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><path d=\"M120 800C240 100 760 900 880 200\" stroke=\"#098F88\" fill=\"none\" stroke-width=\"28\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"experience-curve\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><rect x=\"350\" y=\"340\" width=\"300\" height=\"300\" stroke=\"#F0AC62\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"interaction-plane\" class=\"identity-stroke\" style=\"--phase:0.380s\"/><circle class=\"identity-traveller\" r=\"19\" fill=\"#F0AC62\" stroke=\"#F5FBFA\" stroke-width=\"6\"><animateMotion dur=\"1.34s\" repeatCount=\"indefinite\" path=\"M120 800C240 100 760 900 880 200\" 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;
