@smarter.sh/ui-widgets 0.0.0-stage → 0.36.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1308 @@
1
+ import "./ui-widgets.css";
2
+ import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Fragment as r } from "react";
4
+ //#region ../smarter-common/dist/lib/i18n.js
5
+ var i = /%\(([A-Za-z_][A-Za-z0-9_]*)\)s/g, a = () => typeof window > "u" ? void 0 : window.django;
6
+ function o(e) {
7
+ let t = a();
8
+ return t?.gettext ? t.gettext(e) : e;
9
+ }
10
+ function s(n, a) {
11
+ let o = [], s = 0;
12
+ for (let e of n.matchAll(i)) {
13
+ let [t, r] = e, i = e.index ?? 0;
14
+ i > s && o.push(n.slice(s, i)), o.push(r in a ? a[r] : t), s = i + t.length;
15
+ }
16
+ return s < n.length && o.push(n.slice(s)), t(e, { children: o.map((e, n) => t(r, { children: e }, n)) });
17
+ }
18
+ var c = {
19
+ name: "@smarter/common",
20
+ private: !0,
21
+ version: "0.2.0",
22
+ type: "module",
23
+ main: "./dist/index.js",
24
+ types: "./dist/index.d.ts",
25
+ exports: { ".": {
26
+ import: "./dist/index.js",
27
+ require: "./dist/index.js",
28
+ types: "./dist/index.d.ts"
29
+ } },
30
+ files: ["dist"],
31
+ scripts: {
32
+ clean: "rm -rf dist",
33
+ build: "npm run clean && tsc -p tsconfig.build.json && rsync -a --prune-empty-dirs --include='/' --include='.css' --exclude='*' src/ dist/",
34
+ "build:dist-manifest": "node --input-type=module -e \"import fs from 'node:fs'; const pkg = JSON.parse(fs.readFileSync('package.json','utf8')); const out = { name: pkg.name, version: pkg.version, type: pkg.type, main: './index.js', types: './index.d.ts', peerDependencies: pkg.peerDependencies ?? {}, dependencies: pkg.dependencies ?? {} }; fs.writeFileSync('dist/package.json', JSON.stringify(out, null, 2) + '\\n');\"",
35
+ "pack:tgz": "npm pack --ignore-scripts",
36
+ lint: "eslint .",
37
+ storybook: "storybook dev -p 6006",
38
+ "build-storybook": "storybook build",
39
+ typecheck: "tsc -b",
40
+ test: "vitest run",
41
+ "test:watch": "vitest"
42
+ },
43
+ peerDependencies: {
44
+ react: "^19",
45
+ "react-dom": "^19"
46
+ },
47
+ dependencies: { "date-fns": "^4.4.0" },
48
+ devDependencies: {
49
+ "@eslint/js": "^10.0.1",
50
+ "@storybook/addon-a11y": "^10.6.1",
51
+ "@storybook/addon-docs": "^10.6.1",
52
+ "@storybook/react-vite": "^10.6.1",
53
+ "@types/node": "^26.6.3",
54
+ "@types/react": "^19.3.0",
55
+ "@types/react-dom": "^19.3.0",
56
+ eslint: "^10.11.0",
57
+ "eslint-plugin-react-hooks": "^7.1.1",
58
+ "eslint-plugin-storybook": "^10.6.1",
59
+ globals: "^17.13.0",
60
+ react: "^19.3.0",
61
+ "react-dom": "^19.3.0",
62
+ storybook: "^10.6.1",
63
+ typescript: "~6.0.2",
64
+ "typescript-eslint": "^8.71.0",
65
+ vitest: "^5.0.3"
66
+ }
67
+ }, l = c.name, u = c.version;
68
+ `${l}${u}`, `${l}${u}`, `${l}${u}`;
69
+ //#endregion
70
+ //#region src/components/Cli/Component.tsx
71
+ var d = [
72
+ {
73
+ command: "brew install smarter",
74
+ comment: o("or apt, choco, docker")
75
+ },
76
+ { command: "smarter configure" },
77
+ { command: "smarter apply -f llmclient.yaml" },
78
+ { command: "smarter deploy llmclient customer_support" },
79
+ { command: "smarter get llmclients" }
80
+ ];
81
+ function f({ className: r = "col-xl-4" }) {
82
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
83
+ id: "cli",
84
+ "aria-label": o("CLI"),
85
+ className: `${r} mb-5 mb-xl-10`,
86
+ children: /* @__PURE__ */ t("div", {
87
+ className: "card border-transparent h-100 cli-card",
88
+ "data-bs-theme": "light",
89
+ children: /* @__PURE__ */ n("div", {
90
+ className: "card-body d-flex flex-column ps-xl-15 h-100",
91
+ children: [
92
+ /* @__PURE__ */ t("div", {
93
+ className: "fs-2x fw-bold text-white mb-2",
94
+ children: s(o("Smarter %(span)s"), { span: /* @__PURE__ */ t("span", {
95
+ className: "position-relative d-inline-block",
96
+ children: s(o("CLI%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute opacity-50 bottom-0 start-0 border-4 border-success border-bottom w-100" }) })
97
+ }) })
98
+ }),
99
+ /* @__PURE__ */ t("p", {
100
+ className: "text-gray-400 fs-6 mb-7",
101
+ children: o("Powerful tools for managing your AI resources.")
102
+ }),
103
+ /* @__PURE__ */ n("div", {
104
+ className: "cli-terminal",
105
+ "aria-label": o("Example CLI session"),
106
+ children: [/* @__PURE__ */ n("div", {
107
+ className: "cli-terminal-bar",
108
+ children: [
109
+ /* @__PURE__ */ t("span", { className: "cli-dot cli-dot-red" }),
110
+ /* @__PURE__ */ t("span", { className: "cli-dot cli-dot-yellow" }),
111
+ /* @__PURE__ */ t("span", { className: "cli-dot cli-dot-green" })
112
+ ]
113
+ }), /* @__PURE__ */ n("pre", {
114
+ className: "cli-terminal-body",
115
+ children: [d.map((e) => /* @__PURE__ */ n("div", { children: [
116
+ /* @__PURE__ */ t("span", {
117
+ className: "cli-prompt",
118
+ children: "$ "
119
+ }),
120
+ e.command,
121
+ e.comment && /* @__PURE__ */ n("span", {
122
+ className: "cli-comment",
123
+ children: [" # ", e.comment]
124
+ })
125
+ ] }, e.command)), /* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("span", {
126
+ className: "cli-prompt",
127
+ children: "$ "
128
+ }), /* @__PURE__ */ t("span", { className: "cli-cursor" })] })]
129
+ })]
130
+ }),
131
+ /* @__PURE__ */ n("div", {
132
+ className: "mt-auto pt-7",
133
+ children: [/* @__PURE__ */ t("a", {
134
+ href: "https://smarter.sh/cli/",
135
+ target: "_blank",
136
+ className: "btn btn-sm btn-success fw-semibold me-2",
137
+ children: o("Download")
138
+ }), /* @__PURE__ */ t("a", {
139
+ href: "https://docs.smarter.sh/en/latest/smarter-framework/smarter-cli.html",
140
+ target: "_blank",
141
+ className: "btn btn-sm btn-light fw-semibold",
142
+ children: o("Documentation")
143
+ })]
144
+ })
145
+ ]
146
+ })
147
+ })
148
+ }) });
149
+ }
150
+ //#endregion
151
+ //#region src/components/Contribute/Component.tsx
152
+ var p = [
153
+ o("Fix a bug"),
154
+ o("Improve the docs"),
155
+ o("Write a test"),
156
+ o("Build an extension")
157
+ ], m = [
158
+ {
159
+ href: "https://github.com/smarter-sh/smarter/releases",
160
+ src: "https://img.shields.io/github/v/release/smarter-sh/smarter?style=flat&color=ea580c",
161
+ alt: o("Latest Release")
162
+ },
163
+ {
164
+ href: "https://github.com/smarter-sh/smarter/stargazers",
165
+ src: "https://img.shields.io/github/stars/smarter-sh/smarter?style=flat&color=ea580c",
166
+ alt: o("GitHub Stars")
167
+ },
168
+ {
169
+ href: "https://github.com/smarter-sh/smarter/network/members",
170
+ src: "https://img.shields.io/github/forks/smarter-sh/smarter?style=flat&color=ea580c",
171
+ alt: o("GitHub Forks")
172
+ }
173
+ ];
174
+ function h() {
175
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
176
+ id: "contribute",
177
+ "aria-label": o("Contribute"),
178
+ className: "card border-transparent h-100 contribute-card",
179
+ "data-bs-theme": "light",
180
+ children: /* @__PURE__ */ n("div", {
181
+ className: "card-body d-flex flex-column ps-xl-15 h-100 position-relative",
182
+ children: [
183
+ /* @__PURE__ */ t("img", {
184
+ src: "/static/assets/media/illustrations/dozzy-1/13.png",
185
+ className: "position-absolute bottom-0 end-0 me-3 h-250px d-none d-md-block contribute-illustration",
186
+ alt: ""
187
+ }),
188
+ /* @__PURE__ */ t("div", {
189
+ className: "position-relative fs-2x fw-bold text-gray-900 mb-2 z-index-2",
190
+ children: s(o("Contribute to %(span)s"), { span: /* @__PURE__ */ t("span", {
191
+ className: "position-relative d-inline-block",
192
+ children: s(o("Smarter%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute bottom-0 start-0 border-4 border-bottom w-100 contribute-underline" }) })
193
+ }) })
194
+ }),
195
+ /* @__PURE__ */ t("p", {
196
+ className: "text-gray-700 fs-6 mb-5 z-index-2 contribute-lede",
197
+ children: o("Start small, learn by doing, and help improve Smarter while you discover how real Python projects work.")
198
+ }),
199
+ /* @__PURE__ */ t("ul", {
200
+ className: "contribute-chips z-index-2",
201
+ "aria-label": o("Ways to help"),
202
+ children: p.map((e) => /* @__PURE__ */ t("li", {
203
+ className: "contribute-chip",
204
+ children: e
205
+ }, e))
206
+ }),
207
+ /* @__PURE__ */ t("ul", {
208
+ className: "contribute-badges z-index-2",
209
+ children: m.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("a", {
210
+ href: e.href,
211
+ target: "_blank",
212
+ rel: "noopener noreferrer",
213
+ children: /* @__PURE__ */ t("img", {
214
+ src: e.src,
215
+ alt: e.alt
216
+ })
217
+ }) }, e.alt))
218
+ }),
219
+ /* @__PURE__ */ n("div", {
220
+ className: "mt-auto pt-7 z-index-2",
221
+ children: [/* @__PURE__ */ t("a", {
222
+ href: "https://docs.smarter.sh/en/latest/smarter-framework/guides/contributing.html",
223
+ target: "_blank",
224
+ className: "btn btn-sm fw-semibold me-2 contribute-btn",
225
+ children: o("Contributing guide")
226
+ }), /* @__PURE__ */ t("a", {
227
+ href: "https://github.com/smarter-sh/smarter/issues",
228
+ target: "_blank",
229
+ className: "btn btn-sm btn-light fw-semibold",
230
+ children: o("Open issues")
231
+ })]
232
+ })
233
+ ]
234
+ })
235
+ }) });
236
+ }
237
+ //#endregion
238
+ //#region src/components/Extensions/Component.tsx
239
+ var g = "https://docs.smarter.sh/en/latest", _ = [
240
+ {
241
+ slug: "weather",
242
+ name: "Weather",
243
+ description: o("Current weather and a 24-hour forecast for any location."),
244
+ icon: "ki-cloud"
245
+ },
246
+ {
247
+ slug: "calculator",
248
+ name: "Calculator",
249
+ description: o("Evaluates math expressions exactly, so that LLMs don't guess."),
250
+ icon: "ki-calculator"
251
+ },
252
+ {
253
+ slug: "date-calculator",
254
+ name: "Date Calculator",
255
+ description: o("Date arithmetic: differences, adding and subtracting days."),
256
+ icon: "ki-calendar"
257
+ }
258
+ ], v = [
259
+ o("Browse the registry"),
260
+ o("Install, signature-checked"),
261
+ o("Enable, then list it in a manifest")
262
+ ];
263
+ function y() {
264
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
265
+ id: "extensions",
266
+ "aria-label": o("Extensions"),
267
+ className: "card border-transparent extensions-card",
268
+ children: /* @__PURE__ */ t("div", {
269
+ className: "card-body ps-xl-15",
270
+ children: /* @__PURE__ */ n("div", {
271
+ className: "row g-7 align-items-center",
272
+ children: [/* @__PURE__ */ n("div", {
273
+ className: "col-md-6",
274
+ children: [
275
+ /* @__PURE__ */ t("span", {
276
+ className: "extensions-eyebrow",
277
+ children: o("New in 0.27")
278
+ }),
279
+ /* @__PURE__ */ t("div", {
280
+ className: "fs-2x fw-bold text-gray-900 mt-3 mb-2",
281
+ children: s(o("Add tools with %(span)s"), { span: /* @__PURE__ */ t("span", {
282
+ className: "position-relative d-inline-block",
283
+ children: s(o("Extensions%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute bottom-0 start-0 border-4 border-bottom w-100 extensions-underline" }) })
284
+ }) })
285
+ }),
286
+ /* @__PURE__ */ t("p", {
287
+ className: "text-gray-700 fs-6 mb-4",
288
+ children: o("Python packages that give your LLMs new tools, installed from the signed Smarter Extension registry without a redeploy.")
289
+ }),
290
+ /* @__PURE__ */ t("ol", {
291
+ className: "extensions-steps",
292
+ children: v.map((e, r) => /* @__PURE__ */ n("li", { children: [/* @__PURE__ */ t("span", {
293
+ className: "extensions-step-number",
294
+ children: r + 1
295
+ }), e] }, e))
296
+ }),
297
+ /* @__PURE__ */ n("div", {
298
+ className: "d-flex flex-wrap gap-2 mt-5",
299
+ children: [
300
+ /* @__PURE__ */ t("a", {
301
+ href: `${g}/smarter-platform/extensions.html`,
302
+ target: "_blank",
303
+ className: "btn btn-sm fw-semibold extensions-btn",
304
+ children: o("How extensions work")
305
+ }),
306
+ /* @__PURE__ */ t("a", {
307
+ href: "https://github.com/smarter-sh/extensions-registry",
308
+ target: "_blank",
309
+ className: "btn btn-sm btn-light fw-semibold",
310
+ children: o("Browse the registry")
311
+ }),
312
+ /* @__PURE__ */ t("a", {
313
+ href: `${g}/smarter-framework/smarter-extensions.html`,
314
+ target: "_blank",
315
+ className: "align-self-center fw-semibold extensions-link",
316
+ children: o("Build one →")
317
+ })
318
+ ]
319
+ })
320
+ ]
321
+ }), /* @__PURE__ */ n("div", {
322
+ className: "col-md-6",
323
+ children: [/* @__PURE__ */ t("ul", {
324
+ className: "extensions-list",
325
+ "aria-label": o("Official extensions"),
326
+ children: _.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ n("a", {
327
+ href: `https://github.com/smarter-sh/smarter-extension-${e.slug}`,
328
+ target: "_blank",
329
+ rel: "noreferrer",
330
+ className: "extensions-item",
331
+ children: [/* @__PURE__ */ t("span", {
332
+ className: "extensions-icon",
333
+ children: /* @__PURE__ */ t("i", { className: `ki-outline ${e.icon} fs-2` })
334
+ }), /* @__PURE__ */ n("span", {
335
+ className: "extensions-text",
336
+ children: [/* @__PURE__ */ n("span", {
337
+ className: "extensions-name",
338
+ children: [e.name, /* @__PURE__ */ t("span", {
339
+ className: "extensions-badge",
340
+ children: o("Official")
341
+ })]
342
+ }), /* @__PURE__ */ t("span", {
343
+ className: "extensions-description",
344
+ children: e.description
345
+ })]
346
+ })]
347
+ }) }, e.slug))
348
+ }), /* @__PURE__ */ n("pre", {
349
+ className: "extensions-manifest",
350
+ "aria-label": o("An LLMClient manifest that uses an extension"),
351
+ children: [
352
+ /* @__PURE__ */ t("span", {
353
+ className: "extensions-key",
354
+ children: "kind"
355
+ }),
356
+ ": ",
357
+ /* @__PURE__ */ t("span", {
358
+ className: "extensions-str",
359
+ children: "LLMClient"
360
+ }),
361
+ "\n",
362
+ /* @__PURE__ */ t("span", {
363
+ className: "extensions-key",
364
+ children: "spec"
365
+ }),
366
+ ":",
367
+ "\n",
368
+ " ",
369
+ /* @__PURE__ */ t("span", {
370
+ className: "extensions-key",
371
+ children: "extensions"
372
+ }),
373
+ ":",
374
+ "\n",
375
+ " ",
376
+ "- ",
377
+ /* @__PURE__ */ t("span", {
378
+ className: "extensions-str",
379
+ children: "weather"
380
+ })
381
+ ]
382
+ })]
383
+ })]
384
+ })
385
+ })
386
+ }) });
387
+ }
388
+ //#endregion
389
+ //#region src/components/Instructors/Component.tsx
390
+ var b = "https://docs.smarter.sh", x = `${b}/smarter-instructors/example-courses`, S = [
391
+ {
392
+ value: "21",
393
+ label: o("course designs")
394
+ },
395
+ {
396
+ value: "19",
397
+ label: o("micro courses")
398
+ },
399
+ {
400
+ value: "2",
401
+ label: o("master classes")
402
+ },
403
+ {
404
+ value: "$0",
405
+ label: o("license fees")
406
+ }
407
+ ], C = [
408
+ {
409
+ name: o("Prompt Engineering"),
410
+ path: "micro-courses/prompt-engineering"
411
+ },
412
+ {
413
+ name: o("Building AI Applications"),
414
+ path: "micro-courses/ai-applications"
415
+ },
416
+ {
417
+ name: o("Agentic Development"),
418
+ path: "micro-courses/agentic-development"
419
+ },
420
+ {
421
+ name: "Kubernetes",
422
+ path: "micro-courses/kubernetes"
423
+ },
424
+ {
425
+ name: o("Django Master Class"),
426
+ path: "master-classes/django-master-class"
427
+ },
428
+ {
429
+ name: o("The Economics of AI"),
430
+ path: "micro-courses/ai-economics"
431
+ },
432
+ {
433
+ name: o("AI Governance"),
434
+ path: "micro-courses/ai-governance"
435
+ },
436
+ {
437
+ name: o("API Design"),
438
+ path: "micro-courses/api-design"
439
+ },
440
+ {
441
+ name: o("Backend Development"),
442
+ path: "micro-courses/backend-development"
443
+ },
444
+ {
445
+ name: "Docker",
446
+ path: "micro-courses/docker"
447
+ },
448
+ {
449
+ name: o("AI Application Development Master Class"),
450
+ path: "master-classes/ai-application-development"
451
+ },
452
+ {
453
+ name: o("Extension Development"),
454
+ path: "micro-courses/extension-development"
455
+ },
456
+ {
457
+ name: o("Front End Development"),
458
+ path: "micro-courses/frontend-development"
459
+ },
460
+ {
461
+ name: o("Full Stack Development"),
462
+ path: "micro-courses/full-stack-development"
463
+ },
464
+ {
465
+ name: o("Infrastructure as Code"),
466
+ path: "micro-courses/infrastructure-as-code"
467
+ },
468
+ {
469
+ name: o("Open Source Participation"),
470
+ path: "micro-courses/open-source"
471
+ },
472
+ {
473
+ name: o("Secure Software"),
474
+ path: "micro-courses/secure-software"
475
+ },
476
+ {
477
+ name: o("Self-Hosting Open Models"),
478
+ path: "micro-courses/self-hosted-models"
479
+ },
480
+ {
481
+ name: o("Software Architecture"),
482
+ path: "micro-courses/software-architecture"
483
+ },
484
+ {
485
+ name: o("Software Quality"),
486
+ path: "micro-courses/software-quality"
487
+ },
488
+ {
489
+ name: o("Documentation with Sphinx"),
490
+ path: "micro-courses/sphinx-documentation"
491
+ }
492
+ ], w = [
493
+ {
494
+ value: "8 hours",
495
+ label: o("classroom bootcamp")
496
+ },
497
+ {
498
+ value: "2 weeks",
499
+ label: o("online course")
500
+ },
501
+ {
502
+ value: "4 weeks",
503
+ label: o("online course")
504
+ }
505
+ ];
506
+ function T({ courses: e, hidden: n }) {
507
+ return /* @__PURE__ */ t("ul", {
508
+ className: "instructors-ribbon-set",
509
+ "aria-hidden": n || void 0,
510
+ children: e.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("a", {
511
+ href: `${x}/${e.path}.html`,
512
+ target: "_blank",
513
+ className: "instructors-chip",
514
+ tabIndex: n ? -1 : void 0,
515
+ children: e.name
516
+ }) }, e.path))
517
+ });
518
+ }
519
+ function E({ className: r = "col-xl-6" }) {
520
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
521
+ id: "instructors",
522
+ "aria-label": o("Instructors"),
523
+ className: `${r} mb-5 mb-xl-10`,
524
+ children: /* @__PURE__ */ t("div", {
525
+ className: "card border-transparent h-100 instructors-card",
526
+ "data-bs-theme": "light",
527
+ children: /* @__PURE__ */ n("div", {
528
+ className: "card-body d-flex flex-column ps-xl-15 h-100 position-relative",
529
+ children: [
530
+ /* @__PURE__ */ t("img", {
531
+ src: "/static/assets/media/illustrations/sigma-1/2.png",
532
+ className: "position-absolute top-0 end-0 h-175px me-5 mt-5 d-none d-md-block instructors-illustration",
533
+ alt: ""
534
+ }),
535
+ /* @__PURE__ */ t("span", {
536
+ className: "instructors-eyebrow z-index-2",
537
+ children: o("Free for instructors")
538
+ }),
539
+ /* @__PURE__ */ t("div", {
540
+ className: "fs-2x fw-bold text-white mt-3 mb-2 z-index-2 instructors-headline",
541
+ children: s(o("Teach AI with a %(span)s"), { span: /* @__PURE__ */ t("span", {
542
+ className: "position-relative d-inline-block",
543
+ children: s(o("real platform%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute bottom-0 start-0 border-4 border-bottom w-100 instructors-underline" }) })
544
+ }) })
545
+ }),
546
+ /* @__PURE__ */ t("p", {
547
+ className: "fs-6 mb-6 z-index-2 instructors-lede",
548
+ children: o("Ready-to-teach course designs, from prompt engineering for non-programmers to Kubernetes for platform engineers, with schedules, graded assignments, rubrics and capstone projects.")
549
+ }),
550
+ /* @__PURE__ */ t("dl", {
551
+ className: "instructors-stats z-index-2",
552
+ children: S.map((e) => /* @__PURE__ */ n("div", {
553
+ className: "instructors-stat",
554
+ children: [/* @__PURE__ */ t("dt", { children: e.label }), /* @__PURE__ */ t("dd", { children: e.value })]
555
+ }, e.label))
556
+ }),
557
+ /* @__PURE__ */ t("nav", {
558
+ className: "instructors-ribbons z-index-2",
559
+ "aria-label": o("Free courses"),
560
+ children: [C.slice(0, 11), C.slice(11)].map((e, r) => /* @__PURE__ */ t("div", {
561
+ className: "instructors-ribbon",
562
+ children: /* @__PURE__ */ n("div", {
563
+ className: `instructors-ribbon-track${r ? " instructors-ribbon-reverse" : ""}`,
564
+ children: [/* @__PURE__ */ t(T, { courses: e }), /* @__PURE__ */ t(T, {
565
+ courses: e,
566
+ hidden: !0
567
+ })]
568
+ })
569
+ }, r))
570
+ }),
571
+ /* @__PURE__ */ n("div", {
572
+ className: "instructors-formats z-index-2",
573
+ children: [/* @__PURE__ */ t("span", {
574
+ className: "instructors-formats-label",
575
+ children: o("Every micro course, three ways")
576
+ }), /* @__PURE__ */ t("ul", { children: w.map((e) => /* @__PURE__ */ n("li", { children: [
577
+ /* @__PURE__ */ t("strong", { children: e.value }),
578
+ " ",
579
+ e.label
580
+ ] }, e.value)) })]
581
+ }),
582
+ /* @__PURE__ */ n("div", {
583
+ className: "mt-auto pt-7 z-index-2",
584
+ children: [/* @__PURE__ */ t("a", {
585
+ href: `${x}/index.html`,
586
+ target: "_blank",
587
+ className: "btn btn-sm fw-semibold me-2 instructors-btn",
588
+ children: o("Browse the free courses")
589
+ }), /* @__PURE__ */ t("a", {
590
+ href: `${b}/smarter-instructor.html`,
591
+ target: "_blank",
592
+ className: "btn btn-sm btn-light fw-semibold",
593
+ children: o("Instructor Guide")
594
+ })]
595
+ })
596
+ ]
597
+ })
598
+ })
599
+ }) });
600
+ }
601
+ //#endregion
602
+ //#region src/assets/docusaurus.svg
603
+ var D = "data:image/svg+xml,%3csvg%20fill='%233ECC5F'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDocusaurus%3c/title%3e%3cpath%20d='M2.462%2022.201h12.321a2.466%202.466%200%200%200%202.369-1.854c.026.004.052.008.079.008a.621.621%200%200%200%20.615-.615.621.621%200%200%200-.615-.615c-.027%200-.053.004-.079.007l-.014-.055a.62.62%200%200%200%20.378-.568.621.621%200%200%200-.615-.615.608.608%200%200%200-.371.127l-.042-.041a.606.606%200%200%200%20.125-.368c0-.67-.919-.858-1.181-.241l-.055-.014c.003-.026.008-.052.008-.079a.622.622%200%200%200-.616-.615.621.621%200%200%200-.615.615h-.096a.617.617%200%200%200-1.033%200h-.717v-2.461h2.461c.115%200%20.226-.017.331-.047a.307.307%200%201%200%20.529-.304l.02-.021c.052.04.116.064.186.064h.002c.337%200%20.428-.463.117-.591l.007-.028c.013.001.026.004.039.004a.31.31%200%200%200%20.308-.308.31.31%200%200%200-.308-.308c-.013%200-.026.003-.039.004a.28.28%200%200%201-.007-.027c.327-.13-.028-.745-.305-.528l-.02-.021a.307.307%200%200%200%20.062-.184c-.011-.326-.454-.416-.591-.12a1.238%201.238%200%200%200-.32-.047h-2.143a2.465%202.465%200%200%201%202.132-1.23h7.385V9.894l-8.618-.539a1.315%201.315%200%200%201-1.229-1.308c0-.688.542-1.265%201.229-1.307l8.618-.539v-1.23a2.473%202.473%200%200%200-2.462-2.462H8.615l-.307-.533a.356.356%200%200%200-.616%200l-.307.533-.308-.533a.355.355%200%200%200-.615%200l-.308.533-.308-.533a.355.355%200%200%200-.615%200l-.308.533-.008.001-.51-.51a.354.354%200%200%200-.594.159l-.168.628-.639-.171a.357.357%200%200%200-.436.435l.172.639-.628.169a.356.356%200%200%200-.16.594l.51.51v.008l-.533.307a.356.356%200%200%200%200%20.616l.533.307-.533.308a.356.356%200%200%200%200%20.616l.533.307-.533.308a.355.355%200%200%200%200%20.615l.533.308-.533.308a.355.355%200%200%200%200%20.615l.533.308-.533.307a.356.356%200%200%200%200%20.616l.533.308-.533.307a.356.356%200%200%200%200%20.616l.533.307-.533.308a.355.355%200%200%200%200%20.615l.533.308-.533.308a.355.355%200%200%200%200%20.615l.533.308-.533.308a.355.355%200%200%200%200%20.615l.533.308-.533.307a.356.356%200%200%200%200%20.616l.533.307-.533.308a.355.355%200%200%200%200%20.615l.533.308-.533.308a.355.355%200%200%200%200%20.615l.533.308a2.463%202.463%200%200%201-2.13-1.231A2.465%202.465%200%200%200%200%2019.74c0%201.35%201.112%202.46%202.462%202.461zm19.692-5.204v2.743a2.473%202.473%200%200%201-2.461%202.461h-.001%201.231a2.466%202.466%200%200%200%202.383-1.854c.026.004.052.008.079.008A.621.621%200%200%200%2024%2019.74a.621.621%200%200%200-.615-.615c-.027%200-.053.004-.079.007l-.014-.055a.62.62%200%200%200%20.378-.568.621.621%200%200%200-.615-.615.608.608%200%200%200-.371.127l-.042-.041a.612.612%200%200%200%20.125-.368.623.623%200%200%200-.613-.615zm-4.067%202.62h2.223c.067%200%20.123.056.123.123a.124.124%200%200%201-.123.123h-2.223a.845.845%200%200%200%200-.246zm-.33-1.231h2.553c.067%200%20.123.056.123.123a.124.124%200%200%201-.123.123h-2.553a.845.845%200%200%200%200-.246zm-1.026-1.231h3.579c.067%200%20.123.056.123.123a.124.124%200%200%201-.123.123h-3.474a.85.85%200%200%200-.105-.246zm3.579-.984h-6.159a.126.126%200%200%201-.123-.123c0-.068.056-.123.123-.123h6.159c.067%200%20.123.056.123.123a.124.124%200%200%201-.123.123zm1.844-3.816v2.462c.115%200%20.225-.017.331-.047a.308.308%200%201%200%20.528-.304l.021-.021c.052.04.116.064.186.064a.312.312%200%200%200%20.307-.308.306.306%200%200%200-.189-.283l.007-.028c.013.001.026.004.04.004a.312.312%200%200%200%20.307-.308.312.312%200%200%200-.307-.308c-.014%200-.027.003-.04.004l-.007-.027a.31.31%200%200%200-.118-.592.306.306%200%200%200-.186.064l-.021-.021a.3.3%200%200%200%20.063-.184c-.011-.326-.454-.416-.591-.12a1.24%201.24%200%200%200-.321-.047zm-6.059%202.339h4.215c.067%200%20.123.056.123.123a.124.124%200%200%201-.123.123h-4.451a.564.564%200%200%200%20.073-.19.553.553%200%200%200%20.163-.056zm.454-1.208h3.761c.067%200%20.123.056.123.123a.124.124%200%200%201-.123.123h-3.772a.552.552%200%200%200%20.011-.246zm5.605-6.225h-.004c-.381.013-.561.393-.719.729-.166.35-.294.578-.504.572-.233-.009-.366-.271-.506-.549-.162-.32-.347-.682-.734-.668-.375.013-.556.344-.715.636-.169.311-.285.5-.507.491-.237-.008-.363-.222-.509-.469-.163-.275-.351-.585-.731-.574-.368.013-.549.294-.709.542-.169.262-.287.421-.513.412-.243-.009-.368-.186-.513-.391-.163-.231-.347-.491-.726-.479-.36.013-.541.243-.701.446-.151.192-.27.344-.52.335h-.005a.126.126%200%200%200-.123.123c0%20.066.053.121.119.123.371.012.559-.222.723-.429.145-.184.27-.343.516-.352.237-.01.348.138.516.375.16.226.341.482.705.495.382.013.566-.273.729-.525.145-.226.271-.421.511-.429.22-.008.34.166.51.453.159.271.34.577.712.59.385.014.57-.322.732-.619.14-.257.273-.5.507-.508.221-.005.336.196.506.533.159.314.339.67.717.684h.021c.377%200%20.556-.378.714-.713.14-.297.273-.576.501-.588zM7.385%206.509a.312.312%200%200%201-.308-.308c-.01-.532-.378-.911-.927-.922-.528-.011-.888.432-.919.922-.011.168-.139.307-.308.308a.31.31%200%200%201-.308-.308c0-.848.69-1.538%201.539-1.538.848%200%201.538.69%201.538%201.538a.312.312%200%200%201-.307.308zm9.846-2.308a.31.31%200%200%201%20.308.308.31.31%200%200%201-.308.308.31.31%200%200%201-.308-.308.31.31%200%200%201%20.308-.308zm2.461-.153a.31.31%200%200%201%20.307.308.31.31%200%200%201-.308.308h-.001a.31.31%200%200%201-.307-.308.31.31%200%200%201%20.308-.308z'/%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20fill='%230678BE'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDrupal%3c/title%3e%3cpath%20d='M15.78%205.113C14.09%203.425%2012.48%201.815%2011.998%200c-.48%201.815-2.09%203.425-3.778%205.113-2.534%202.53-5.405%205.4-5.405%209.702a9.184%209.185%200%201018.368%200c0-4.303-2.871-7.171-5.405-9.702M6.72%2016.954c-.563-.019-2.64-3.6%201.215-7.416l2.55%202.788a.218.218%200%2001-.016.325c-.61.625-3.204%203.227-3.527%204.126-.066.186-.164.18-.222.177M12%2021.677a3.158%203.158%200%2001-3.158-3.159%203.291%203.291%200%2001.787-2.087c.57-.696%202.37-2.655%202.37-2.655s1.774%201.988%202.367%202.649a3.09%203.09%200%2001.792%202.093A3.158%203.158%200%200112%2021.677m6.046-5.123c-.068.15-.223.398-.431.405-.371.014-.411-.177-.686-.583-.604-.892-5.864-6.39-6.848-7.455-.866-.935-.122-1.595.223-1.94C10.736%206.547%2012%205.285%2012%205.285s3.766%203.574%205.336%206.016c1.57%202.443%201.029%204.556.71%205.253'/%3e%3c/svg%3e", k = "data:image/svg+xml,%3csvg%20fill='%23526CFE'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMaterial%20for%20MkDocs%3c/title%3e%3cpath%20d='m17.029%2018.772.777%201.166-5.417%202.709L0%2016.451V4.063l5.417-2.709%205.298%207.948%207.867-5.24L24%201.354V16.84l-5.417%202.709zm2.023-13.827v13.253l3.949-1.975V2.97zM5.076%202.642%201.458%204.45%2012.73%2021.358l3.618-1.809z'/%3e%3c/svg%3e", A = "data:image/svg+xml,%3csvg%20fill='%237AB55C'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eShopify%3c/title%3e%3cpath%20d='M15.337%2023.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914%2021.104h.023zM11.71%2011.305s-.81-.424-1.774-.424c-1.447%200-1.504.906-1.504%201.141%200%201.232%203.24%201.715%203.24%204.629%200%202.295-1.44%203.76-3.406%203.76-2.354%200-3.54-1.465-3.54-1.465l.646-2.086s1.245%201.066%202.28%201.066c.675%200%20.975-.545.975-.932%200-1.619-2.654-1.694-2.654-4.359-.034-2.237%201.571-4.416%204.827-4.416%201.257%200%201.875.361%201.875.361l-.945%202.715-.02.01zM11.17.83c.136%200%20.271.038.405.135-.984.465-2.064%201.639-2.508%203.992-.656.213-1.293.405-1.889.578C7.697%203.75%208.951.84%2011.17.84V.83zm1.235%202.949v.135c-.754.232-1.583.484-2.394.736.466-1.777%201.333-2.645%202.085-2.971.193.501.309%201.176.309%202.1zm.539-2.234c.694.074%201.141.867%201.429%201.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992%201.289c-.02%200-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209%2011.669%200%2011.265%200%208.159%200%206.675%203.877%206.21%205.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83%2014.063-1.83%2014.063L15.009%2024l.927-21.166z'/%3e%3c/svg%3e", j = "data:image/svg+xml,%3csvg%20fill='%23000000'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eSphinx%3c/title%3e%3cpath%20d='M16.284%2019.861c0-.654.177-1.834.393-2.623.499-1.822.774-4.079.497-4.079-.116%200-.959.762-1.873%201.694-3.472%203.54-7.197%205.543-10.312%205.543-1.778%200-2.987-.45-4.154-1.545C.128%2018.186%200%2017.858%200%2016.703c0-1.188.117-1.468.909-2.175.718-.642%201.171-.813%202.157-.813.76.171%201.21.16%201.457.461.251.296.338%201.265.035%201.832-.162.303-.585.491-1.105.491-.49%200-.77-.116-.669-.278.315-.511-.135-.857-.713-.548-.699.374-.711%201.698-.021%202.322.969.878%203.65%201.208%205.262.648%201.743-.605%204.022-2.061%205.841-3.732l1.6-1.469-2.088-.013c-2.186-.012-3.608-.273-8.211-1.506-1.531-.41-3.003-.765-3.271-.789-.304-.026-.503-.274-.487-.656.027-.646.378-1.127.793-1.308.249-.109%201.977-.274%203.809-.761%207.136-1.898%207.569-1.629%2012.323-.426%201.553.393%203.351.821%204.147.835%201.227.022%201.493.124%201.74.666.16.351.291.686.291.745%200%20.058-.695.424-1.545.813-3.12%201.428-4.104%202.185-3.088%203.635.421.602.412.666-.14%201.052-.323.227-.59.687-.593%201.022-.009.908-.583%202.856-1.417%203.624l-.732.675v-1.189Zm1.594-8.328c1.242-.346%201.994-.738%203.539-1.562-1.272-.372-4.462-.895-4.462-.895-2.354-.472-2.108-.448-2.214.071a3.475%203.475%200%200%201-.45%201.105c-.541.848-2.521%201.026-3.656.483-.356-.171-.714-.821-.709-1.283.007-.65-.362-.801-.598-.714-.191.07-.813.079-2.179.448-4.514%201.217-5.132%201.078-2.189%201.495.353.05%202.223.572%203.136.815%202.239.597%202.658.641%205.556.581%202.015-.042%202.858-.163%204.226-.544ZM.732%206.258c.056-.577.088-.702%201.692-1.025.919-.185%203.185-.785%205.036-1.333%204.254-1.26%205.462-1.263%209.873-.026%201.904.535%204.037.973%204.74.975%201.097.002%201.668.487%201.668.487.505%201.16.412%201.24-1.558%201.24-1.374%200-2.558-.232-4.385-.857-1.389-.476-3.369-.923-4.451-1.004-1.974-.149-1.971-.15-8.072%201.529-1.072.295-2.553.624-3.29.732l-1.342.196.089-.914Z'/%3e%3c/svg%3e", M = "data:image/svg+xml,%3csvg%20fill='%235C73E7'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eVitePress%3c/title%3e%3cpath%20d='M17.029.0014a1.8382%201.8382%200%200%200-.1875.0176L4.0845%201.8334C3.0779%201.9767%202.3767%202.9196%202.518%203.939l2.5604%2018.457c.1415%201.0193%201.0735%201.7292%202.08%201.586l12.757-1.8165c1.0066-.1433%201.7078-1.0861%201.5664-2.1054L18.9215%201.6049C18.7889.6493%2017.961-.035%2017.029.0014Zm.127.9316c.4271.027.7915.3549.8534.8008l2.5604%2018.457c.0707.5097-.28.9812-.7831%201.0528L7.0296%2023.058c-.5033.0717-.9683-.2833-1.039-.793L3.4302%203.81c-.0707-.5097.2799-.9811.7832-1.0528L16.9704.9408A.9066.9066%200%200%201%2017.156.933zm-3.6443%205.3541L9.9668%207.5215a.1364.1364%200%200%200-.0898.1406l.3183%203.8692c.0075.0911.0994.1497.1836.1171l.9824-.3789c.092-.0355.1894.0373.1836.1368l-.0898%201.539c-.006.1036.1005.1763.1933.1328l.5997-.2812c.093-.0435.1976.031.1914.1347l-.1465%202.418c-.0092.1513.195.2037.2578.0664l.041-.0918%202.123-6.4238c.0355-.1076-.0658-.2104-.1718-.1738l-1.0176.3515c-.0955.033-.1917-.0491-.1777-.1504l.3437-2.4902a.1368.1368%200%200%200-.1426-.1562c-.016-.001-.0422.0084-.037.0058zm2.8223.7988a.2717.2717%200%200%200-.0801.0137L14%207.8496l-.0762.5606.4551-.1563c.5074-.1627.973.2955.8106.8027l-2.131%206.4493-.0526.1171c-.1268.2776-.4416.4304-.7383.3516-.2904-.077-.4911-.353-.4727-.6562l.1094-1.8086c-.5057.2578-.9731-.1473-.9473-.5938l.0567-.9765-.4532.1757c-.4144.1536-.8298-.1366-.8632-.543L9.453%208.5997l-3.0625-.123c-.2294-.0093-.3635.2552-.2226.4394l6.291%208.2305c.1293.169.391.1302.4668-.0684l3.668-9.6191c.072-.1889-.0765-.377-.2598-.373z'/%3e%3c/svg%3e", N = "data:image/svg+xml,%3csvg%20fill='%2321759B'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eWordPress%3c/title%3e%3cpath%20d='M21.469%206.825c.84%201.537%201.318%203.3%201.318%205.175%200%203.979-2.156%207.456-5.363%209.325l3.295-9.527c.615-1.54.82-2.771.82-3.864%200-.405-.026-.78-.07-1.11m-7.981.105c.647-.03%201.232-.105%201.232-.105.582-.075.514-.93-.067-.899%200%200-1.755.135-2.88.135-1.064%200-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885%200%200%20.54.061%201.125.09l1.68%204.605-2.37%207.08L5.354%206.9c.649-.03%201.234-.1%201.234-.1.585-.075.516-.93-.065-.896%200%200-1.746.138-2.874.138-.2%200-.438-.008-.69-.015C4.911%203.15%208.235%201.215%2012%201.215c2.809%200%205.365%201.072%207.286%202.833-.046-.003-.091-.009-.141-.009-1.06%200-1.812.923-1.812%201.914%200%20.89.513%201.643%201.06%202.531.411.72.89%201.643.89%202.977%200%20.915-.354%201.994-.821%203.479l-1.075%203.585-3.9-11.61.001.014zM12%2022.784c-1.059%200-2.081-.153-3.048-.437l3.237-9.406%203.315%209.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211%2012c0-1.564.336-3.05.935-4.39L7.29%2021.709C3.694%2019.96%201.212%2016.271%201.211%2012M12%200C5.385%200%200%205.385%200%2012s5.385%2012%2012%2012%2012-5.385%2012-12S18.615%200%2012%200'/%3e%3c/svg%3e", P = "https://docs.smarter.sh/en/latest/smarter-framework", F = [
604
+ {
605
+ name: "WordPress",
606
+ logo: N,
607
+ docs: `${P}/smarter-wordpress.html`
608
+ },
609
+ {
610
+ name: "Drupal",
611
+ logo: O,
612
+ docs: `${P}/smarter-drupal.html`
613
+ },
614
+ {
615
+ name: "Shopify",
616
+ logo: A,
617
+ docs: `${P}/smarter-shopify.html`
618
+ },
619
+ {
620
+ name: "Google Tag Manager",
621
+ logo: "/static/assets/media/svg/brand-logos/google-tag-manager.svg",
622
+ docs: `${P}/smarter-gtm.html`
623
+ },
624
+ {
625
+ name: "Docusaurus",
626
+ logo: D,
627
+ docs: `${P}/smarter-docs-sites.html`
628
+ },
629
+ {
630
+ name: "MkDocs",
631
+ logo: k,
632
+ docs: `${P}/smarter-docs-sites.html`
633
+ },
634
+ {
635
+ name: "Sphinx",
636
+ logo: j,
637
+ docs: `${P}/smarter-docs-sites.html`
638
+ },
639
+ {
640
+ name: "VitePress",
641
+ logo: M,
642
+ docs: `${P}/smarter-docs-sites.html`
643
+ }
644
+ ];
645
+ function I({ className: r = "col-xl-4" }) {
646
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
647
+ id: "integrations",
648
+ "aria-label": o("Integrations"),
649
+ className: `${r} mb-5 mb-xl-10`,
650
+ children: /* @__PURE__ */ t("div", {
651
+ className: "card border-transparent h-100 integrations-card",
652
+ "data-bs-theme": "light",
653
+ children: /* @__PURE__ */ n("div", {
654
+ className: "card-body d-flex flex-column ps-xl-15 h-100 position-relative",
655
+ children: [
656
+ /* @__PURE__ */ t("img", {
657
+ src: "/static/assets/media/illustrations/sketchy-1/17-dark.png",
658
+ className: "position-absolute top-0 end-0 h-125px me-3 mt-3 integrations-illustration",
659
+ alt: ""
660
+ }),
661
+ /* @__PURE__ */ t("div", {
662
+ className: "position-relative fs-2x fw-bold text-white mb-2 z-index-2",
663
+ children: s(o("Put your chatbot %(span)s"), { span: /* @__PURE__ */ t("span", {
664
+ className: "position-relative d-inline-block",
665
+ children: s(o("everywhere%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute opacity-50 bottom-0 start-0 border-4 border-warning border-bottom w-100" }) })
666
+ }) })
667
+ }),
668
+ /* @__PURE__ */ t("p", {
669
+ className: "text-white opacity-75 fs-6 mb-7 z-index-2 integrations-lede",
670
+ children: o("Add Smarter Chat to the sites your users already visit, with one setting.")
671
+ }),
672
+ /* @__PURE__ */ t("ul", {
673
+ className: "integrations-grid z-index-2",
674
+ children: F.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ n("a", {
675
+ href: e.docs,
676
+ target: "_blank",
677
+ className: "integrations-tile hover-elevate-up",
678
+ title: e.name,
679
+ children: [/* @__PURE__ */ t("span", {
680
+ className: "integrations-logo",
681
+ children: /* @__PURE__ */ t("img", {
682
+ src: e.logo,
683
+ alt: ""
684
+ })
685
+ }), /* @__PURE__ */ t("span", {
686
+ className: "integrations-name",
687
+ children: e.name
688
+ })]
689
+ }) }, e.name))
690
+ }),
691
+ /* @__PURE__ */ n("div", {
692
+ className: "mt-auto pt-7 z-index-2",
693
+ children: [/* @__PURE__ */ t("a", {
694
+ href: `${P}/smarter-chat/embedding.html`,
695
+ target: "_blank",
696
+ className: "btn btn-sm btn-warning fw-semibold me-2",
697
+ children: o("Embedding guide")
698
+ }), /* @__PURE__ */ t("a", {
699
+ href: "https://github.com/smarter-sh",
700
+ target: "_blank",
701
+ className: "btn btn-sm btn-light fw-semibold",
702
+ "aria-label": o("Integrations source code"),
703
+ children: o("GitHub")
704
+ })]
705
+ })
706
+ ]
707
+ })
708
+ })
709
+ }) });
710
+ }
711
+ //#endregion
712
+ //#region src/components/McpServer/Component.tsx
713
+ var L = "/api/v1/mcp/smarter-project/", R = [
714
+ "search_documentation",
715
+ "search_code",
716
+ "read_file"
717
+ ], z = () => typeof window > "u" ? L : `${window.location.origin}${L}`;
718
+ function B({ serverUrl: r = z() }) {
719
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
720
+ id: "mcp-server",
721
+ "aria-label": o("MCP Server"),
722
+ className: "card border-transparent h-100 mcp-card",
723
+ children: /* @__PURE__ */ n("div", {
724
+ className: "card-body d-flex flex-column ps-xl-15 h-100",
725
+ children: [
726
+ /* @__PURE__ */ t("span", {
727
+ className: "mcp-eyebrow",
728
+ children: o("Smarter MCP Server")
729
+ }),
730
+ /* @__PURE__ */ t("div", {
731
+ className: "fs-2x fw-bold mt-3 mb-2 mcp-headline",
732
+ children: s(o("Ask your %(span)s"), { span: /* @__PURE__ */ t("span", {
733
+ className: "position-relative d-inline-block",
734
+ children: s(o("AI assistant%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute bottom-0 start-0 border-4 border-bottom w-100 mcp-underline" }) })
735
+ }) })
736
+ }),
737
+ /* @__PURE__ */ t("p", {
738
+ className: "fs-6 mb-5 mcp-lede",
739
+ children: o("This platform answers questions about itself from its own code and docs, for any MCP client.")
740
+ }),
741
+ /* @__PURE__ */ n("pre", {
742
+ className: "mcp-command",
743
+ "aria-label": o("Add this platform's MCP server to Claude Code"),
744
+ children: [
745
+ /* @__PURE__ */ t("span", {
746
+ className: "mcp-prompt",
747
+ children: "$ "
748
+ }),
749
+ "claude mcp add --transport http smarter-project ",
750
+ r
751
+ ]
752
+ }),
753
+ /* @__PURE__ */ t("ul", {
754
+ className: "mcp-tools",
755
+ "aria-label": o("Tools"),
756
+ children: R.map((e) => /* @__PURE__ */ t("li", { children: e }, e))
757
+ }),
758
+ /* @__PURE__ */ t("div", {
759
+ className: "mt-auto pt-6",
760
+ children: /* @__PURE__ */ t("a", {
761
+ href: "https://docs.smarter.sh/en/latest/smarter-platform/smarter-project-mcp-server.html",
762
+ target: "_blank",
763
+ className: "btn btn-sm fw-semibold mcp-btn",
764
+ children: o("Documentation")
765
+ })
766
+ })
767
+ ]
768
+ })
769
+ }) });
770
+ }
771
+ //#endregion
772
+ //#region src/assets/go.svg
773
+ var V = "data:image/svg+xml,%3csvg%20fill='%2300ADD8'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGo%3c/title%3e%3cpath%20d='M1.811%2010.231c-.047%200-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046%200%20.058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047%2011.306c-.047%200-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047%200%20.07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828%201.075c-.047%200-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047%200%20.07.035.07.082l-.023.28c0%20.047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204%201.274-1.192%202.22.011.935.654%201.706%201.577%201.835.795.105%201.46-.175%201.987-.77.105-.13.198-.27.315-.434H10.47c-.245%200-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315%200%2001.292-.187h4.253c-.023.316-.023.631-.07.947a4.983%204.983%200%2001-.958%202.29c-.841%201.11-1.94%201.8-3.33%201.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086%201.928-1.776%203.272-2.02%201.098-.2%202.15-.07%203.096.571.62.41%201.063.97%201.356%201.648.07.105.023.164-.117.2m3.868%206.461c-1.064-.024-2.034-.328-2.852-1.029a3.665%203.665%200%2001-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122%201.881-1.706%203.272-1.95%201.192-.21%202.314-.095%203.33.595.923.63%201.496%201.484%201.648%202.605.198%201.578-.257%202.863-1.344%203.962-.771.783-1.718%201.273-2.805%201.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045%202.033-.21.912.234%201.835%201.075%202.21.643.28%201.285.244%201.905-.07.923-.48%201.425-1.228%201.484-2.233z'/%3e%3c/svg%3e", H = "data:image/svg+xml,%3csvg%20fill='%235FA04E'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eNode.js%3c/title%3e%3cpath%20d='M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383%20c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076%20c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0%20L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392%20c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021%20c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921%20c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603%20v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z%20M19.099,13.993%20c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233%20c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081%20c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833%20c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402%20c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253%20c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z'/%3e%3c/svg%3e", U = "/docs/openapi/", W = [
774
+ {
775
+ name: "smarter-chat NPM Package",
776
+ href: "https://www.npmjs.com/package/@smarter.sh/ui-chat",
777
+ logo: "/static/assets/media/svg/brand-logos/react.svg",
778
+ install: "npm install @smarter.sh/ui-chat"
779
+ },
780
+ {
781
+ name: "Node.js SDK",
782
+ href: "https://www.npmjs.com/package/@smarter.sh/api",
783
+ logo: H,
784
+ install: "npm install @smarter.sh/api"
785
+ },
786
+ {
787
+ name: "Python PyPi Library",
788
+ href: "https://pypi.org/project/smarter-api/",
789
+ logo: "/static/assets/media/svg/brand-logos/python-5.svg",
790
+ install: "pip install smarter-api"
791
+ },
792
+ {
793
+ name: "Go SDK",
794
+ href: "https://pkg.go.dev/github.com/smarter-sh/smarter-golang",
795
+ logo: V,
796
+ install: "go get github.com/smarter-sh/smarter-golang"
797
+ }
798
+ ];
799
+ function G({ openapiUrl: r = U, className: i = "col-xl-4" }) {
800
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
801
+ id: "sdk",
802
+ "aria-label": o("SDK"),
803
+ className: `${i} mb-5 mb-xl-10`,
804
+ children: /* @__PURE__ */ t("div", {
805
+ className: "card border-transparent h-100 sdk-card",
806
+ "data-bs-theme": "light",
807
+ children: /* @__PURE__ */ n("div", {
808
+ className: "card-body d-flex flex-column ps-xl-15 h-100 position-relative",
809
+ children: [
810
+ /* @__PURE__ */ t("img", {
811
+ src: "/static/assets/media/illustrations/dozzy-1/4.png",
812
+ className: "position-absolute top-0 end-0 h-100px me-1 mt-1",
813
+ alt: ""
814
+ }),
815
+ /* @__PURE__ */ t("div", {
816
+ className: "position-relative fs-2x fw-bold text-gray-900 mb-2 z-index-2",
817
+ children: s(o("Build with the %(span)s"), { span: /* @__PURE__ */ t("span", {
818
+ className: "position-relative d-inline-block",
819
+ children: s(o("SDKs%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute opacity-50 bottom-0 start-0 border-4 border-danger border-bottom w-100" }) })
820
+ }) })
821
+ }),
822
+ /* @__PURE__ */ t("p", {
823
+ className: "text-gray-700 fs-6 mb-7 z-index-2 sdk-lede",
824
+ children: o("Typed access to your Smarter resources, in the language you already use.")
825
+ }),
826
+ /* @__PURE__ */ t("ul", {
827
+ className: "sdk-list z-index-2",
828
+ children: W.map((e) => /* @__PURE__ */ n("li", {
829
+ className: "sdk-item",
830
+ children: [/* @__PURE__ */ t("span", {
831
+ className: "sdk-logo",
832
+ children: /* @__PURE__ */ t("img", {
833
+ src: e.logo,
834
+ alt: ""
835
+ })
836
+ }), /* @__PURE__ */ n("span", {
837
+ className: "sdk-text",
838
+ children: [/* @__PURE__ */ t("a", {
839
+ href: e.href,
840
+ target: "_blank",
841
+ className: "sdk-name",
842
+ children: e.name
843
+ }), /* @__PURE__ */ t("span", {
844
+ className: "sdk-install",
845
+ children: e.install
846
+ })]
847
+ })]
848
+ }, e.name))
849
+ }),
850
+ /* @__PURE__ */ n("div", {
851
+ className: "d-flex flex-wrap gap-2 mt-auto pt-7 z-index-2",
852
+ children: [
853
+ /* @__PURE__ */ t("a", {
854
+ href: "https://docs.smarter.sh/en/latest/smarter-framework/apis-and-sdks.html",
855
+ target: "_blank",
856
+ className: "btn btn-sm btn-danger fw-semibold",
857
+ children: o("Documentation")
858
+ }),
859
+ /* @__PURE__ */ t("a", {
860
+ href: r,
861
+ className: "btn btn-sm btn-light-danger fw-semibold",
862
+ children: o("API reference")
863
+ }),
864
+ /* @__PURE__ */ t("a", {
865
+ href: "https://github.com/smarter-sh",
866
+ target: "_blank",
867
+ className: "btn btn-sm btn-dark fw-semibold",
868
+ "aria-label": o("SDK source code"),
869
+ children: o("GitHub")
870
+ })
871
+ ]
872
+ })
873
+ ]
874
+ })
875
+ })
876
+ }) });
877
+ }
878
+ //#endregion
879
+ //#region src/components/SelfHost/Component.tsx
880
+ var K = [
881
+ {
882
+ name: "Docker",
883
+ where: o("Your laptop"),
884
+ description: o("Quick Start with Docker Compose"),
885
+ logo: "data:image/svg+xml,%3csvg%20fill='%232496ED'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDocker%3c/title%3e%3cpath%20d='M13.983%2011.078h2.119a.186.186%200%2000.186-.185V9.006a.186.186%200%2000-.186-.186h-2.119a.185.185%200%2000-.185.185v1.888c0%20.102.083.185.185.185m-2.954-5.43h2.118a.186.186%200%2000.186-.186V3.574a.186.186%200%2000-.186-.185h-2.118a.185.185%200%2000-.185.185v1.888c0%20.102.082.185.185.185m0%202.716h2.118a.187.187%200%2000.186-.186V6.29a.186.186%200%2000-.186-.185h-2.118a.185.185%200%2000-.185.185v1.887c0%20.102.082.185.185.186m-2.93%200h2.12a.186.186%200%2000.184-.186V6.29a.185.185%200%2000-.185-.185H8.1a.185.185%200%2000-.185.185v1.887c0%20.102.083.185.185.186m-2.964%200h2.119a.186.186%200%2000.185-.186V6.29a.185.185%200%2000-.185-.185H5.136a.186.186%200%2000-.186.185v1.887c0%20.102.084.185.186.186m5.893%202.715h2.118a.186.186%200%2000.186-.185V9.006a.186.186%200%2000-.186-.186h-2.118a.185.185%200%2000-.185.185v1.888c0%20.102.082.185.185.185m-2.93%200h2.12a.185.185%200%2000.184-.185V9.006a.185.185%200%2000-.184-.186h-2.12a.185.185%200%2000-.184.185v1.888c0%20.102.083.185.185.185m-2.964%200h2.119a.185.185%200%2000.185-.185V9.006a.185.185%200%2000-.184-.186h-2.12a.186.186%200%2000-.186.186v1.887c0%20.102.084.185.186.185m-2.92%200h2.12a.185.185%200%2000.184-.185V9.006a.185.185%200%2000-.184-.186h-2.12a.185.185%200%2000-.184.185v1.888c0%20.102.082.185.185.185M23.763%209.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612%201.43-.23.97-.09%201.882.403%202.661-.595.332-1.55.413-1.744.42H.751a.751.751%200%2000-.75.748%2011.376%2011.376%200%2000.692%204.062c.545%201.428%201.355%202.48%202.41%203.124%201.18.723%203.1%201.137%205.275%201.137.983.003%201.963-.086%202.93-.266a12.248%2012.248%200%20003.823-1.389c.98-.567%201.86-1.288%202.61-2.136%201.252-1.418%201.998-2.997%202.553-4.4h.221c1.372%200%202.215-.549%202.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z'/%3e%3c/svg%3e",
886
+ href: "https://github.com/smarter-sh/smarter-deploy"
887
+ },
888
+ {
889
+ name: "Kubernetes",
890
+ where: o("Your cluster"),
891
+ description: o("The official Helm chart"),
892
+ logo: "data:image/svg+xml,%3csvg%20fill='%23326CE5'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eKubernetes%3c/title%3e%3cpath%20d='M10.204%2014.35l.007.01-.999%202.413a5.171%205.171%200%200%201-2.075-2.597l2.578-.437.004.005a.44.44%200%200%201%20.484.606zm-.833-2.129a.44.44%200%200%200%20.173-.756l.002-.011L7.585%209.7a5.143%205.143%200%200%200-.73%203.255l2.514-.725.002-.009zm1.145-1.98a.44.44%200%200%200%20.699-.337l.01-.005.15-2.62a5.144%205.144%200%200%200-3.01%201.442l2.147%201.523.004-.002zm.76%202.75l.723.349.722-.347.18-.78-.5-.623h-.804l-.5.623.179.779zm1.5-3.095a.44.44%200%200%200%20.7.336l.008.003%202.134-1.513a5.188%205.188%200%200%200-2.992-1.442l.148%202.615.002.001zm10.876%205.97l-5.773%207.181a1.6%201.6%200%200%201-1.248.594l-9.261.003a1.6%201.6%200%200%201-1.247-.596l-5.776-7.18a1.583%201.583%200%200%201-.307-1.34L2.1%205.573c.108-.47.425-.864.863-1.073L11.305.513a1.606%201.606%200%200%201%201.385%200l8.345%203.985c.438.209.755.604.863%201.073l2.062%208.955c.108.47-.005.963-.308%201.34zm-3.289-2.057c-.042-.01-.103-.026-.145-.034-.174-.033-.315-.025-.479-.038-.35-.037-.638-.067-.895-.148-.105-.04-.18-.165-.216-.216l-.201-.059a6.45%206.45%200%200%200-.105-2.332%206.465%206.465%200%200%200-.936-2.163c.052-.047.15-.133.177-.159.008-.09.001-.183.094-.282.197-.185.444-.338.743-.522.142-.084.273-.137.415-.242.032-.024.076-.062.11-.089.24-.191.295-.52.123-.736-.172-.216-.506-.236-.745-.045-.034.027-.08.062-.111.088-.134.116-.217.23-.33.35-.246.25-.45.458-.673.609-.097.056-.239.037-.303.033l-.19.135a6.545%206.545%200%200%200-4.146-2.003l-.012-.223c-.065-.062-.143-.115-.163-.25-.022-.268.015-.557.057-.905.023-.163.061-.298.068-.475.001-.04-.001-.099-.001-.142%200-.306-.224-.555-.5-.555-.275%200-.499.249-.499.555l.001.014c0%20.041-.002.092%200%20.128.006.177.044.312.067.475.042.348.078.637.056.906a.545.545%200%200%201-.162.258l-.012.211a6.424%206.424%200%200%200-4.166%202.003%208.373%208.373%200%200%201-.18-.128c-.09.012-.18.04-.297-.029-.223-.15-.427-.358-.673-.608-.113-.12-.195-.234-.329-.349-.03-.026-.077-.062-.111-.088a.594.594%200%200%200-.348-.132.481.481%200%200%200-.398.176c-.172.216-.117.546.123.737l.007.005.104.083c.142.105.272.159.414.242.299.185.546.338.743.522.076.082.09.226.1.288l.16.143a6.462%206.462%200%200%200-1.02%204.506l-.208.06c-.055.072-.133.184-.215.217-.257.081-.546.11-.895.147-.164.014-.305.006-.48.039-.037.007-.09.02-.133.03l-.004.002-.007.002c-.295.071-.484.342-.423.608.061.267.349.429.645.365l.007-.001.01-.003.129-.029c.17-.046.294-.113.448-.172.33-.118.604-.217.87-.256.112-.009.23.069.288.101l.217-.037a6.5%206.5%200%200%200%202.88%203.596l-.09.218c.033.084.069.199.044.282-.097.252-.263.517-.452.813-.091.136-.185.242-.268.399-.02.037-.045.095-.064.134-.128.275-.034.591.213.71.248.12.556-.007.69-.282v-.002c.02-.039.046-.09.062-.127.07-.162.094-.301.144-.458.132-.332.205-.68.387-.897.05-.06.13-.082.215-.105l.113-.205a6.453%206.453%200%200%200%204.609.012l.106.192c.086.028.18.042.256.155.136.232.229.507.342.84.05.156.074.295.145.457.016.037.043.09.062.129.133.276.442.402.69.282.247-.118.341-.435.213-.71-.02-.039-.045-.096-.065-.134-.083-.156-.177-.261-.268-.398-.19-.296-.346-.541-.443-.793-.04-.13.007-.21.038-.294-.018-.022-.059-.144-.083-.202a6.499%206.499%200%200%200%202.88-3.622c.064.01.176.03.213.038.075-.05.144-.114.28-.104.266.039.54.138.87.256.154.06.277.128.448.173.036.01.088.019.13.028l.009.003.007.001c.297.064.584-.098.645-.365.06-.266-.128-.537-.423-.608zM16.4%209.701l-1.95%201.746v.005a.44.44%200%200%200%20.173.757l.003.01%202.526.728a5.199%205.199%200%200%200-.108-1.674A5.208%205.208%200%200%200%2016.4%209.7zm-4.013%205.325a.437.437%200%200%200-.404-.232.44.44%200%200%200-.372.233h-.002l-1.268%202.292a5.164%205.164%200%200%200%203.326.003l-1.27-2.296h-.01zm1.888-1.293a.44.44%200%200%200-.27.036.44.44%200%200%200-.214.572l-.003.004%201.01%202.438a5.15%205.15%200%200%200%202.081-2.615l-2.6-.44-.004.005z'/%3e%3c/svg%3e",
893
+ href: "https://artifacthub.io/packages/helm/project-smarter/smarter"
894
+ },
895
+ {
896
+ name: "Terraform",
897
+ where: o("Your AWS cloud"),
898
+ description: o("The official Terraform modules"),
899
+ logo: "data:image/svg+xml,%3csvg%20fill='%23844FBA'%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eTerraform%3c/title%3e%3cpath%20d='M1.44%200v7.575l6.561%203.79V3.787zm21.12%204.227l-6.561%203.791v7.574l6.56-3.787zM8.72%204.23v7.575l6.561%203.787V8.018zm0%208.405v7.575L15.28%2024v-7.578z'/%3e%3c/svg%3e",
900
+ href: "https://github.com/smarter-sh/smarter-infrastructure"
901
+ }
902
+ ];
903
+ function q() {
904
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("section", {
905
+ id: "self-host",
906
+ "aria-label": o("Self Host"),
907
+ className: "card border-transparent h-100 selfhost-card",
908
+ "data-bs-theme": "light",
909
+ children: /* @__PURE__ */ n("div", {
910
+ className: "card-body d-flex flex-column ps-xl-15 h-100",
911
+ children: [
912
+ /* @__PURE__ */ t("span", {
913
+ className: "selfhost-eyebrow",
914
+ children: o("Self-host Smarter")
915
+ }),
916
+ /* @__PURE__ */ t("div", {
917
+ className: "fs-2x fw-bold text-white mt-3 mb-2",
918
+ children: s(o("Run it %(span)s"), { span: /* @__PURE__ */ t("span", {
919
+ className: "position-relative d-inline-block",
920
+ children: s(o("anywhere%(span)s"), { span: /* @__PURE__ */ t("span", { className: "position-absolute bottom-0 start-0 border-4 border-bottom w-100 selfhost-underline" }) })
921
+ }) })
922
+ }),
923
+ /* @__PURE__ */ t("p", {
924
+ className: "fs-6 mb-7 selfhost-lede",
925
+ children: o("The same open source platform, from your laptop to production. No license fees, no seat counts.")
926
+ }),
927
+ /* @__PURE__ */ t("ol", {
928
+ className: "selfhost-steps",
929
+ children: K.map((e, r) => /* @__PURE__ */ t("li", {
930
+ className: "selfhost-step",
931
+ children: /* @__PURE__ */ n("a", {
932
+ href: e.href,
933
+ target: "_blank",
934
+ className: "selfhost-step-link hover-elevate-up",
935
+ children: [
936
+ /* @__PURE__ */ n("span", {
937
+ className: "selfhost-logo",
938
+ children: [/* @__PURE__ */ t("img", {
939
+ src: e.logo,
940
+ alt: ""
941
+ }), /* @__PURE__ */ t("span", {
942
+ className: "selfhost-number",
943
+ children: r + 1
944
+ })]
945
+ }),
946
+ /* @__PURE__ */ t("span", {
947
+ className: "selfhost-where",
948
+ children: e.where
949
+ }),
950
+ /* @__PURE__ */ t("span", {
951
+ className: "selfhost-name",
952
+ children: e.name
953
+ }),
954
+ /* @__PURE__ */ t("span", {
955
+ className: "selfhost-description",
956
+ children: e.description
957
+ })
958
+ ]
959
+ })
960
+ }, e.name))
961
+ }),
962
+ /* @__PURE__ */ n("div", {
963
+ className: "d-flex flex-wrap align-items-center gap-3 mt-auto pt-7",
964
+ children: [/* @__PURE__ */ t("a", {
965
+ href: "https://docs.smarter.sh/en/latest/smarter-platform/installation.html",
966
+ target: "_blank",
967
+ className: "btn btn-sm fw-semibold selfhost-btn",
968
+ children: o("Installation Guide")
969
+ }), /* @__PURE__ */ t("span", {
970
+ className: "selfhost-license",
971
+ children: o("Open source · AGPL-3.0")
972
+ })]
973
+ })
974
+ ]
975
+ })
976
+ }) });
977
+ }
978
+ //#endregion
979
+ //#region src/components/VSCodeExtension/Component.tsx
980
+ var J = "https://marketplace.visualstudio.com/items?itemName=Querium.smarter-manifest", Y = [
981
+ o("Validation as you type"),
982
+ o("Quick fixes for misspelled keys"),
983
+ o("Completion and hover help"),
984
+ o("Apply and deploy from the editor")
985
+ ];
986
+ function X() {
987
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("div", {
988
+ id: "vscode-extension",
989
+ "aria-label": o("VS Code Extension"),
990
+ className: "card border-transparent h-100 vscode-card",
991
+ "data-bs-theme": "light",
992
+ children: /* @__PURE__ */ t("div", {
993
+ className: "card-body ps-xl-15",
994
+ children: /* @__PURE__ */ n("div", {
995
+ className: "row g-7 align-items-center",
996
+ children: [/* @__PURE__ */ n("div", {
997
+ className: "col-md-6",
998
+ children: [
999
+ /* @__PURE__ */ t("div", {
1000
+ className: "fs-2x fw-bold text-white mb-2",
1001
+ children: s(o("Get the %(span)s"), { span: /* @__PURE__ */ n("span", {
1002
+ className: "position-relative d-inline-block",
1003
+ children: [/* @__PURE__ */ t("a", {
1004
+ href: J,
1005
+ className: "vscode-title-link",
1006
+ children: o("VS Code Extension")
1007
+ }), /* @__PURE__ */ t("span", { className: "position-absolute bottom-0 start-0 border-4 border-bottom w-100 vscode-underline" })]
1008
+ }) })
1009
+ }),
1010
+ /* @__PURE__ */ t("p", {
1011
+ className: "text-gray-400 fs-6 mb-5",
1012
+ children: s(o("Write Smarter manifests with the same validation that %(code)s uses, before you apply them."), { code: /* @__PURE__ */ t("code", {
1013
+ className: "vscode-inline",
1014
+ children: "smarter apply"
1015
+ }) })
1016
+ }),
1017
+ /* @__PURE__ */ t("ul", {
1018
+ className: "vscode-features",
1019
+ "aria-label": o("Features"),
1020
+ children: Y.map((e) => /* @__PURE__ */ n("li", { children: [/* @__PURE__ */ t("span", {
1021
+ className: "vscode-check",
1022
+ children: "✓"
1023
+ }), e] }, e))
1024
+ }),
1025
+ /* @__PURE__ */ n("div", {
1026
+ className: "d-flex flex-wrap align-items-center gap-2 mt-6",
1027
+ children: [
1028
+ /* @__PURE__ */ t("a", {
1029
+ href: J,
1030
+ target: "_blank",
1031
+ className: "btn btn-sm fw-semibold vscode-btn",
1032
+ children: o("Install")
1033
+ }),
1034
+ /* @__PURE__ */ t("a", {
1035
+ href: "https://docs.smarter.sh/en/latest/smarter-framework/vs-code-extension.html",
1036
+ target: "_blank",
1037
+ className: "btn btn-sm btn-light fw-semibold",
1038
+ children: o("Documentation")
1039
+ }),
1040
+ /* @__PURE__ */ t("a", {
1041
+ href: J,
1042
+ target: "_blank",
1043
+ className: "ms-2",
1044
+ children: /* @__PURE__ */ t("img", {
1045
+ src: "https://vsmarketplacebadges.dev/installs-short/Querium.smarter-manifest.svg",
1046
+ alt: o("Installs")
1047
+ })
1048
+ })
1049
+ ]
1050
+ })
1051
+ ]
1052
+ }), /* @__PURE__ */ t("div", {
1053
+ className: "col-md-6",
1054
+ children: /* @__PURE__ */ n("div", {
1055
+ className: "vscode-editor",
1056
+ "aria-label": o("Example manifest with a validation problem"),
1057
+ children: [/* @__PURE__ */ n("div", {
1058
+ className: "vscode-editor-bar",
1059
+ children: [
1060
+ /* @__PURE__ */ t("span", { className: "vscode-dot vscode-dot-red" }),
1061
+ /* @__PURE__ */ t("span", { className: "vscode-dot vscode-dot-yellow" }),
1062
+ /* @__PURE__ */ t("span", { className: "vscode-dot vscode-dot-green" }),
1063
+ /* @__PURE__ */ n("span", {
1064
+ className: "vscode-tab",
1065
+ children: [/* @__PURE__ */ t("img", {
1066
+ src: "/static/images/vs-code-logo.png",
1067
+ alt: ""
1068
+ }), o("secret.yaml")]
1069
+ })
1070
+ ]
1071
+ }), /* @__PURE__ */ n("pre", {
1072
+ className: "vscode-code",
1073
+ children: [
1074
+ /* @__PURE__ */ n("div", { children: [
1075
+ /* @__PURE__ */ t("span", {
1076
+ className: "vscode-ln",
1077
+ children: "1"
1078
+ }),
1079
+ /* @__PURE__ */ t("span", {
1080
+ className: "vscode-key",
1081
+ children: "apiVersion"
1082
+ }),
1083
+ ": ",
1084
+ /* @__PURE__ */ t("span", {
1085
+ className: "vscode-str",
1086
+ children: "smarter.sh/v1"
1087
+ })
1088
+ ] }),
1089
+ /* @__PURE__ */ n("div", { children: [
1090
+ /* @__PURE__ */ t("span", {
1091
+ className: "vscode-ln",
1092
+ children: "2"
1093
+ }),
1094
+ /* @__PURE__ */ t("span", {
1095
+ className: "vscode-key",
1096
+ children: "kind"
1097
+ }),
1098
+ ": ",
1099
+ /* @__PURE__ */ t("span", {
1100
+ className: "vscode-str",
1101
+ children: "Secret"
1102
+ })
1103
+ ] }),
1104
+ /* @__PURE__ */ n("div", { children: [
1105
+ /* @__PURE__ */ t("span", {
1106
+ className: "vscode-ln",
1107
+ children: "3"
1108
+ }),
1109
+ /* @__PURE__ */ t("span", {
1110
+ className: "vscode-key",
1111
+ children: "metadata"
1112
+ }),
1113
+ ":"
1114
+ ] }),
1115
+ /* @__PURE__ */ n("div", { children: [
1116
+ /* @__PURE__ */ t("span", {
1117
+ className: "vscode-ln",
1118
+ children: "4"
1119
+ }),
1120
+ " ",
1121
+ /* @__PURE__ */ t("span", {
1122
+ className: "vscode-key",
1123
+ children: "name"
1124
+ }),
1125
+ ": ",
1126
+ /* @__PURE__ */ t("span", {
1127
+ className: "vscode-str",
1128
+ children: "openai_api_key"
1129
+ })
1130
+ ] }),
1131
+ /* @__PURE__ */ n("div", { children: [
1132
+ /* @__PURE__ */ t("span", {
1133
+ className: "vscode-ln",
1134
+ children: "5"
1135
+ }),
1136
+ " ",
1137
+ /* @__PURE__ */ t("span", {
1138
+ className: "vscode-key vscode-squiggle",
1139
+ children: "descripton"
1140
+ }),
1141
+ ":",
1142
+ " ",
1143
+ /* @__PURE__ */ t("span", {
1144
+ className: "vscode-str",
1145
+ children: "The OpenAI API key"
1146
+ }),
1147
+ /* @__PURE__ */ t("span", {
1148
+ className: "vscode-hover",
1149
+ role: "note",
1150
+ children: "Unknown key 'descripton' in metadata. Did you mean 'description'?"
1151
+ })
1152
+ ] }),
1153
+ /* @__PURE__ */ n("div", { children: [
1154
+ /* @__PURE__ */ t("span", {
1155
+ className: "vscode-ln",
1156
+ children: "6"
1157
+ }),
1158
+ " ",
1159
+ /* @__PURE__ */ t("span", {
1160
+ className: "vscode-key",
1161
+ children: "version"
1162
+ }),
1163
+ ": ",
1164
+ /* @__PURE__ */ t("span", {
1165
+ className: "vscode-str",
1166
+ children: "1.0.0"
1167
+ })
1168
+ ] }),
1169
+ /* @__PURE__ */ n("div", { children: [
1170
+ /* @__PURE__ */ t("span", {
1171
+ className: "vscode-ln",
1172
+ children: "7"
1173
+ }),
1174
+ /* @__PURE__ */ t("span", {
1175
+ className: "vscode-key",
1176
+ children: "spec"
1177
+ }),
1178
+ ":"
1179
+ ] })
1180
+ ]
1181
+ })]
1182
+ })
1183
+ })]
1184
+ })
1185
+ })
1186
+ }) });
1187
+ }
1188
+ //#endregion
1189
+ //#region src/components/WhatsNew/Component.tsx
1190
+ var Z = "https://docs.smarter.sh", Q = [
1191
+ {
1192
+ name: o("Extensions"),
1193
+ version: "0.27",
1194
+ description: o("Install signed, third-party LLM tools from the Smarter Extension registry"),
1195
+ docsPath: "smarter-platform/extensions.html"
1196
+ },
1197
+ {
1198
+ name: "Smarter MCP Server",
1199
+ version: "0.24",
1200
+ description: o("Answers about The Smarter Project, from its own code and docs, for any MCP client"),
1201
+ docsPath: "smarter-platform/smarter-project-mcp-server.html"
1202
+ },
1203
+ {
1204
+ name: "OpenAPI",
1205
+ version: "0.22",
1206
+ description: o("An OpenAPI document and JSON Schemas for the Smarter api, served by every platform"),
1207
+ docsPath: "smarter-framework/smarter-openapi.html"
1208
+ },
1209
+ {
1210
+ name: o("Themable Chat"),
1211
+ version: "0.21",
1212
+ description: o("Brand your LLMClient's chat with your own logo, colors, fonts and avatar"),
1213
+ docsPath: "smarter-resources/llmclient/styles.html"
1214
+ },
1215
+ {
1216
+ name: "ImageSearchPlugin",
1217
+ version: "0.19",
1218
+ description: o("Let LLMs find and show images from the web"),
1219
+ docsPath: "smarter-resources/llmtool/plugin/image-search.html"
1220
+ },
1221
+ {
1222
+ name: o("Infrastructure Manager"),
1223
+ version: "0.18",
1224
+ description: o("Manage and monitor your cloud infrastructure from the web console"),
1225
+ docsPath: "smarter-framework/technologies/infrastructure.html"
1226
+ },
1227
+ {
1228
+ name: o("Custom Domains"),
1229
+ version: "0.18",
1230
+ description: o("Serve LLMClients from your own branded domain, managed with a SAM manifest"),
1231
+ docsPath: "smarter-resources/smarter-custom-domain.html"
1232
+ },
1233
+ {
1234
+ name: o("Manifest Editor"),
1235
+ version: "0.17",
1236
+ description: o("Edit, validate, save, clone and delete manifests in the web console"),
1237
+ docsPath: "smarter-platform/smarter-web-console.html"
1238
+ },
1239
+ {
1240
+ name: o("Budgets"),
1241
+ version: "0.16",
1242
+ description: o("Enforce spending limits on any resource, with budget vs actual charts"),
1243
+ docsPath: "smarter-resources/smarter-budget.html"
1244
+ },
1245
+ {
1246
+ name: "LLMHosts",
1247
+ version: "0.16",
1248
+ description: o("Run open-weight LLMs on your own Kubernetes cluster"),
1249
+ docsPath: "smarter-resources/smarter-llmhost.html"
1250
+ },
1251
+ {
1252
+ name: o("Proxies"),
1253
+ version: "0.16",
1254
+ description: o("Pass requests through to LLM provider APIs, with keys kept as Smarter Secrets"),
1255
+ docsPath: "smarter-resources/smarter-proxy.html"
1256
+ },
1257
+ {
1258
+ name: "VectorStores",
1259
+ version: "0.16",
1260
+ description: o("Manage RAG vector databases: self-hosted Qdrant, Qdrant Cloud and Pinecone"),
1261
+ docsPath: "smarter-resources/smarter-vectorstore.html"
1262
+ }
1263
+ ];
1264
+ function $() {
1265
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ n("section", {
1266
+ id: "whats-new",
1267
+ "aria-label": o("What's New"),
1268
+ className: "card border-transparent h-xl-100",
1269
+ children: [/* @__PURE__ */ t("div", {
1270
+ className: "card-header border-0 pt-5",
1271
+ children: /* @__PURE__ */ n("h3", {
1272
+ className: "card-title align-items-start flex-column",
1273
+ children: [/* @__PURE__ */ t("span", {
1274
+ className: "card-label fw-bold text-gray-900",
1275
+ children: o("What's New")
1276
+ }), /* @__PURE__ */ t("span", {
1277
+ className: "text-muted mt-1 fw-semibold fs-7",
1278
+ children: o("Recently added Smarter features")
1279
+ })]
1280
+ })
1281
+ }), /* @__PURE__ */ t("div", {
1282
+ className: "card-body pt-3",
1283
+ children: /* @__PURE__ */ t("ul", {
1284
+ className: "whats-new-list list-unstyled row g-4 mb-0",
1285
+ children: Q.map((e) => /* @__PURE__ */ n("li", {
1286
+ className: "col-md-6 d-flex align-items-start",
1287
+ children: [/* @__PURE__ */ t("span", {
1288
+ className: "badge badge-light-primary fw-bold me-3 mt-1",
1289
+ children: e.version
1290
+ }), /* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("a", {
1291
+ href: `${Z}/${e.docsPath}`,
1292
+ target: "_blank",
1293
+ rel: "noopener noreferrer",
1294
+ className: "text-gray-900 text-hover-primary fw-bold fs-6",
1295
+ children: e.name
1296
+ }), /* @__PURE__ */ t("div", {
1297
+ className: "text-gray-600 fs-7",
1298
+ children: e.description
1299
+ })] })]
1300
+ }, e.name))
1301
+ })
1302
+ })]
1303
+ }) });
1304
+ }
1305
+ //#endregion
1306
+ export { f as Cli, h as Contribute, y as Extensions, E as Instructors, I as Integrations, B as McpServer, G as Sdk, q as SelfHost, X as VSCodeExtension, $ as WhatsNew };
1307
+
1308
+ //# sourceMappingURL=ui-widgets.es.js.map