1/**
2 * Muse Code's client definition: settings form, label, badge, and glyph.
3 * Browser- and React Native-safe.
4 *
5 * @module provider-muse/client
6 */
7import { ProviderDriverKind } from "@t3tools/contracts";
8import { defineProviderClient } from "@t3tools/provider-core/client";
9
10import { MuseSettings } from "./settings.ts";
11
12export const museClient = defineProviderClient({
13 driverKind: ProviderDriverKind.make("muse"),
14 label: "Muse Code",
15 settingsSchema: MuseSettings,
16 badgeLabel: "Beta",
17 // Meta's symbol (https://commons.wikimedia.org/wiki/File:Meta_Platforms_Inc._logo_(cropped).svg).
18 icon: {
19 viewBox: "0 0 287.56 191",
20 fill: { light: "#0081fb", dark: "#0081fb" },
21 paths: [
22 {
23 d: "m31.06,125.96c0,10.98 2.41,19.41 5.56,24.51 4.13,6.68 10.29,9.51 16.57,9.51 8.1,0 15.51-2.01 29.79-21.76 11.44-15.83 24.92-38.05 33.99-51.98l15.36-23.6c10.67-16.39 23.02-34.61 37.18-46.96 11.56-10.08 24.03-15.68 36.58-15.68 21.07,0 41.14,12.21 56.5,35.11 16.81,25.08 24.97,56.67 24.97,89.27 0,19.38-3.82,33.62-10.32,44.87-6.28,10.88-18.52,21.75-39.11,21.75l0-31.02c17.63,0 22.03-16.2 22.03-34.74 0-26.42-6.16-55.74-19.73-76.69-9.63-14.86-22.11-23.94-35.84-23.94-14.85,0-26.8,11.2-40.23,31.17-7.14,10.61-14.47,23.54-22.7,38.13l-9.06,16.05c-18.2,32.27-22.81,39.62-31.91,51.75-15.95,21.24-29.57,29.29-47.5,29.29-21.27,0-34.72-9.21-43.05-23.09-6.8-11.31-10.14-26.15-10.14-43.06z",
24 },
25 {
26 d: "m24.49,37.3c14.24-21.95 34.79-37.3 58.36-37.3 13.65,0 27.22,4.04 41.39,15.61 15.5,12.65 32.02,33.48 52.63,67.81l7.39,12.32c17.84,29.72 27.99,45.01 33.93,52.22 7.64,9.26 12.99,12.02 19.94,12.02 17.63,0 22.03-16.2 22.03-34.74l27.4-.86c0,19.38-3.82,33.62-10.32,44.87-6.28,10.88-18.52,21.75-39.11,21.75-12.8,0-24.14-2.78-36.68-14.61-9.64-9.08-20.91-25.21-29.58-39.71l-25.79-43.08c-12.94-21.62-24.81-37.74-31.68-45.04-7.39-7.85-16.89-17.33-32.05-17.33-12.27,0-22.69,8.61-31.41,21.78z",
27 gradient: {
28 x1: 61,
29 y1: 117,
30 x2: 259,
31 y2: 127,
32 stops: [
33 { offset: 0, color: "#0064e1" },
34 { offset: 0.4, color: "#0064e1" },
35 { offset: 0.83, color: "#0073ee" },
36 { offset: 1, color: "#0082fb" },
37 ],
38 },
39 },
40 {
41 d: "m82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78-12.33,18.61-19.88,46.33-19.88,72.95 0,10.98 2.41,19.41 5.56,24.51l-26.48,17.44c-6.8-11.31-10.14-26.15-10.14-43.06 0-30.75 8.44-62.8 24.49-87.55 14.24-21.95 34.79-37.3 58.36-37.3z",
42 gradient: {
43 x1: 45,
44 y1: 139,
45 x2: 45,
46 y2: 66,
47 stops: [
48 { offset: 0, color: "#0082fb" },
49 { offset: 1, color: "#0064e0" },
50 ],
51 },
52 },
53 ],
54 },
55});