/*
 * This file belongs to Hoist, an application development toolkit
 * developed by Extremely Heavy Industries (www.xh.io | info@xh.io)
 *
 * Copyright © 2026 Extremely Heavy Industries Inc.
 */
import {hoistCmp, XH} from '@xh/hoist/core';
import {getLayoutProps} from '@xh/hoist/utils/react';
import React from 'react';

/**
 * The Extremely Heavy corporate XH logo and word mark, in SVG form.
 */
export const xhLogo = hoistCmp.factory({
    model: false,

    render(props) {
        const layoutProps = getLayoutProps(props),
            style = {
                fill: XH.darkTheme ? 'white' : 'black',
                stroke: XH.darkTheme ? 'white' : 'black',
                ...layoutProps
            };

        return (
            <svg
                className="xh-corp-logo"
                data-name="xh-corp-logo"
                xmlns="http://www.w3.org/2000/svg"
                viewBox="0 0 669.79 390.46"
                style={style as any}
            >
                <path
                    d="M450.79,335.79h11.07v24.77h29.06V335.79H502V398H490.92V370.57H461.86V398H450.79Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M520.31,380.58A10.71,10.71,0,0,0,524,388a11.57,11.57,0,0,0,7.64,2.63,12.53,12.53,0,0,0,6.63-1.63,18.45,18.45,0,0,0,4.7-4.08l7.55,5.71a21.45,21.45,0,0,1-8.26,6.5,24.42,24.42,0,0,1-9.57,1.93,25.44,25.44,0,0,1-9-1.58,21.69,21.69,0,0,1-7.28-4.48,21.25,21.25,0,0,1-4.88-7,23.85,23.85,0,0,1,0-18.18,21.25,21.25,0,0,1,4.88-7,21.69,21.69,0,0,1,7.28-4.48,25.44,25.44,0,0,1,9-1.58,20.57,20.57,0,0,1,8,1.54,17.28,17.28,0,0,1,6.23,4.43,20.58,20.58,0,0,1,4,7.16,30.24,30.24,0,0,1,1.45,9.79v2.9Zm21.6-7.9a9.92,9.92,0,0,0-2.9-7.34q-2.81-2.67-7.81-2.67a10.23,10.23,0,0,0-7.51,2.72,12.15,12.15,0,0,0-3.38,7.29Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M587.46,392.17h-.27a13.52,13.52,0,0,1-5.79,5.22,18.12,18.12,0,0,1-7.73,1.63,20.36,20.36,0,0,1-5.66-.79,15.39,15.39,0,0,1-4.92-2.37,12.21,12.21,0,0,1-3.47-3.95,11.24,11.24,0,0,1-1.32-5.54,12.78,12.78,0,0,1,1.23-5.84,12,12,0,0,1,3.29-4,16.83,16.83,0,0,1,4.79-2.6,32.93,32.93,0,0,1,5.67-1.44,51,51,0,0,1,5.92-.62c2-.09,3.87-.13,5.62-.13h2.64v-1.14a6.84,6.84,0,0,0-2.73-5.93,11.46,11.46,0,0,0-6.93-2,16.35,16.35,0,0,0-6.24,1.18,15.67,15.67,0,0,0-5,3.21L561,361.52a20.43,20.43,0,0,1,8.21-5.18,30.29,30.29,0,0,1,9.7-1.58,24.55,24.55,0,0,1,7.55,1,16.74,16.74,0,0,1,5.09,2.59A11.44,11.44,0,0,1,594.7,362a16.74,16.74,0,0,1,1.58,4.17,23,23,0,0,1,.57,4.08c.06,1.32.09,2.47.09,3.47V398h-9.48Zm-.62-13.08h-2.19c-1.47,0-3.11.05-4.92.17a25.91,25.91,0,0,0-5.14.84,11.53,11.53,0,0,0-4.08,1.93,4.22,4.22,0,0,0-1.67,3.55,4.51,4.51,0,0,0,.66,2.51,6.05,6.05,0,0,0,1.71,1.71,7.2,7.2,0,0,0,2.37,1,11.89,11.89,0,0,0,2.64.31c3.63,0,6.3-.87,8-2.59a9.56,9.56,0,0,0,2.59-7.07Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M600.22,355.82h11.5L623,385.32h.17l11.33-29.5h10.8L628.67,398H617.43Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M650,355.82h11.59l11.76,29.24h.18l10.54-29.24h11L675.15,407a31.78,31.78,0,0,1-2.5,5.22,14.88,14.88,0,0,1-3.21,3.78,12,12,0,0,1-4.34,2.28,21.18,21.18,0,0,1-6,.75A31.37,31.37,0,0,1,651,418l1.32-9.49a23.8,23.8,0,0,0,2.59.75,12.85,12.85,0,0,0,2.77.31,12.57,12.57,0,0,0,3.25-.36,5.64,5.64,0,0,0,3.77-3c.41-.79.85-1.75,1.32-2.86l2-5Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M701.71,355.19a11,11,0,0,1,.92-4.49,11.61,11.61,0,0,1,2.48-3.66,11.8,11.8,0,0,1,3.67-2.49,11.42,11.42,0,0,1,9,0,11.84,11.84,0,0,1,6.15,6.15,11.42,11.42,0,0,1,0,9,11.75,11.75,0,0,1-6.15,6.15,11.42,11.42,0,0,1-9,0,11.94,11.94,0,0,1-3.67-2.48,11.77,11.77,0,0,1-2.48-3.67A10.93,10.93,0,0,1,701.71,355.19Zm1.68,0a9.82,9.82,0,0,0,.77,3.86,10,10,0,0,0,5.25,5.25,10,10,0,0,0,7.71,0,9.91,9.91,0,0,0,5.25-5.25,9.92,9.92,0,0,0,0-7.71,9.83,9.83,0,0,0-5.25-5.25,9.92,9.92,0,0,0-7.71,0,9.91,9.91,0,0,0-5.25,5.25A9.77,9.77,0,0,0,703.39,355.19Zm7.36,6.62h-1.68V348.48h5.13a4.52,4.52,0,0,1,3.23.95,3.7,3.7,0,0,1,1,2.75,4.12,4.12,0,0,1-.26,1.58,3.2,3.2,0,0,1-.73,1.11,3.7,3.7,0,0,1-1.07.71A5.66,5.66,0,0,1,715,356l4,5.84h-1.9l-4-5.84h-2.39Zm0-7.33h2.14c.46,0,.92,0,1.37-.05a3.58,3.58,0,0,0,1.23-.28,2.06,2.06,0,0,0,.88-.68,2.09,2.09,0,0,0,.35-1.29,1.93,1.93,0,0,0-.27-1.07,1.9,1.9,0,0,0-.68-.67,2.87,2.87,0,0,0-1-.36,5.55,5.55,0,0,0-1.07-.11h-3Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M55.17,334.65H94.49v5.44H61.17V363H92.41v5.45H61.17v25.06H96v5.45H55.17Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M116.53,376.24l-15-19.25h7l11.63,15.89L131.7,357h6.81l-14.8,19.25,18,22.7H134.6L120,380l-14.34,19H99.1Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M169.43,361.89h-12v27.33a5.89,5.89,0,0,0,1.55,4.36,5.74,5.74,0,0,0,4.26,1.54,12.7,12.7,0,0,0,3.14-.4,20.18,20.18,0,0,0,3-1.05l.45,4.91a32.43,32.43,0,0,1-3.54,1,15.78,15.78,0,0,1-3.54.46,13,13,0,0,1-5-.87,8.71,8.71,0,0,1-3.35-2.31,9.14,9.14,0,0,1-1.87-3.41,14.59,14.59,0,0,1-.59-4.22V361.89h-9.08V357H152V344.91h5.45V357h12Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M179.55,368.79c0-.79,0-1.74-.09-2.86s-.1-2.26-.13-3.41-.08-2.22-.14-3.22-.09-1.77-.09-2.31h5.45c.06,1.57.1,3.08.13,4.54a14.17,14.17,0,0,0,.23,2.81,18.55,18.55,0,0,1,5.36-6.08,13.24,13.24,0,0,1,8-2.37,9.31,9.31,0,0,1,1.59.14c.51.09,1,.2,1.59.32l-.64,5.36a6.68,6.68,0,0,0-2.09-.37,15.06,15.06,0,0,0-6.12,1.14,11.54,11.54,0,0,0-4.27,3.13,13,13,0,0,0-2.5,4.68,19.49,19.49,0,0,0-.82,5.77v22.88h-5.45Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M242.45,391a18.38,18.38,0,0,1-7.85,6.9A25.06,25.06,0,0,1,224.29,400a22.4,22.4,0,0,1-8.72-1.64,19.67,19.67,0,0,1-6.72-4.58,20.15,20.15,0,0,1-4.31-7,25.58,25.58,0,0,1-1.5-8.95,24.21,24.21,0,0,1,1.54-8.72,20.86,20.86,0,0,1,4.36-6.94A20.41,20.41,0,0,1,224,355.89a20.14,20.14,0,0,1,8.49,1.69,18.41,18.41,0,0,1,9.94,10.76,21,21,0,0,1,1.27,7.17v3.81H208.49a18.32,18.32,0,0,0,.68,4.41,15.54,15.54,0,0,0,2.5,5.22,15.73,15.73,0,0,0,4.86,4.36,15.13,15.13,0,0,0,7.85,1.81,17.54,17.54,0,0,0,8.08-2,14.55,14.55,0,0,0,6-5.45Zm-4.18-16.62a12.5,12.5,0,0,0-1.13-5.27,14.2,14.2,0,0,0-3.09-4.31,14.44,14.44,0,0,0-4.63-2.95,14.87,14.87,0,0,0-5.67-1.09,13.93,13.93,0,0,0-7.41,1.81,16.47,16.47,0,0,0-4.67,4.18,17,17,0,0,0-2.46,4.59,12.16,12.16,0,0,0-.72,3Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M250.83,368.79c0-.79,0-1.74-.09-2.86s-.11-2.26-.13-3.41-.08-2.22-.14-3.22-.09-1.77-.09-2.31h5.45c.06,1.57.1,3.08.13,4.54a14.17,14.17,0,0,0,.23,2.81h.27a14.77,14.77,0,0,1,5.45-5.95,15.91,15.91,0,0,1,8.9-2.5,14.26,14.26,0,0,1,7.63,2.14,12.1,12.1,0,0,1,5,7,13.59,13.59,0,0,1,5.95-6.9,16.87,16.87,0,0,1,8.31-2.19,17.87,17.87,0,0,1,8,1.55,12.81,12.81,0,0,1,4.86,4,15.19,15.19,0,0,1,2.45,5.77,33.16,33.16,0,0,1,.68,6.72v25h-5.45v-24.7a26.81,26.81,0,0,0-.45-4.95,13,13,0,0,0-1.59-4.31,8.33,8.33,0,0,0-3.18-3.05,11,11,0,0,0-5.31-1.13,12.49,12.49,0,0,0-6.27,1.41,11.11,11.11,0,0,0-3.86,3.58,14.78,14.78,0,0,0-2,4.72,21.06,21.06,0,0,0-.59,4.82v23.61h-5.45V373.69a18,18,0,0,0-2.14-9.35,7.14,7.14,0,0,0-6.58-3.54,15.64,15.64,0,0,0-5.68,1A12.32,12.32,0,0,0,260.5,365a15.45,15.45,0,0,0-3.09,5.36,23,23,0,0,0-1.13,7.58v21h-5.45Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M359.58,391a18.35,18.35,0,0,1-7.86,6.9,25,25,0,0,1-10.3,2.09,22.36,22.36,0,0,1-8.72-1.64,19.58,19.58,0,0,1-6.72-4.58,20.15,20.15,0,0,1-4.31-7,25.58,25.58,0,0,1-1.5-8.95,24,24,0,0,1,1.54-8.72,20.7,20.7,0,0,1,4.36-6.94,20.4,20.4,0,0,1,15.07-6.32,20.07,20.07,0,0,1,8.49,1.69,18.65,18.65,0,0,1,6.18,4.44,18.94,18.94,0,0,1,3.77,6.32,21,21,0,0,1,1.27,7.17v3.81H325.62a18.32,18.32,0,0,0,.68,4.41,15.51,15.51,0,0,0,2.49,5.22,15.84,15.84,0,0,0,4.86,4.36,15.19,15.19,0,0,0,7.86,1.81,17.54,17.54,0,0,0,8.08-2,14.55,14.55,0,0,0,6-5.45Zm-4.18-16.62a12.5,12.5,0,0,0-1.13-5.27,14.2,14.2,0,0,0-3.09-4.31,14.55,14.55,0,0,0-4.63-2.95,14.88,14.88,0,0,0-5.68-1.09,13.9,13.9,0,0,0-7.4,1.81,16.38,16.38,0,0,0-4.68,4.18,16.91,16.91,0,0,0-2.45,4.59,12.16,12.16,0,0,0-.72,3Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path d="M368.86,330.29h5.45v68.65h-5.45Z" transform="translate(-55.03 -30.27)" />
                <path
                    d="M398.35,411.92a15.56,15.56,0,0,1-4.27,6.45,10.69,10.69,0,0,1-7.26,2.36,16.75,16.75,0,0,1-2.73-.22c-.9-.16-1.78-.35-2.63-.59l.55-5.09c.78.24,1.58.47,2.4.68a10,10,0,0,0,2.5.32,5.16,5.16,0,0,0,2.59-.64,7,7,0,0,0,1.95-1.63,11.72,11.72,0,0,0,1.41-2.23,25.67,25.67,0,0,0,1-2.49l3.81-9.72L380.64,357h6.09l13.89,35.32L414.15,357H420Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M249.76,30.27,212.19,143,174.62,30.27H55L96.79,155.58,55,280.9H174.62l37.57-112.74L249.76,280.9H369.35L327.59,155.58,369.35,30.27Zm-81,242.48H66.34l39.05-117.17-39-117.16H168.75l39,117.16Zm189.29,0H255.64l-39-117.17,39-117.16H358L319,155.58Z"
                    transform="translate(-55.03 -30.27)"
                />
                <path
                    d="M577,30.27,539.39,143,501.82,30.27h-118V280.9h118l37.57-112.74L577,280.9H695V30.27Zm-81,242.48H392V38.42h104l39,117.16Zm190.87,0h-104l-39-117.17,39-117.16h104Z"
                    transform="translate(-55.03 -30.27)"
                />
            </svg>
        );
    }
});
