@blogmcp/sdk 0.3.0 → 0.3.1

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.
Files changed (32) hide show
  1. package/dist/core/queries.d.ts +2 -2
  2. package/dist/core/queries.js +10 -4
  3. package/dist/core/types.d.ts +9 -0
  4. package/dist/node_modules/fflate/esm/browser.js +284 -0
  5. package/dist/node_modules/maplibre-gl/dist/maplibre-gl-shared.js +11606 -0
  6. package/dist/node_modules/maplibre-gl/dist/maplibre-gl.js +12289 -0
  7. package/dist/node_modules/pmtiles/dist/esm/index.js +441 -0
  8. package/dist/packages/mdx-render-vue/dist/composables/useTripMap.js +31 -0
  9. package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue.js +43 -0
  10. package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue2.js +4 -0
  11. package/dist/packages/mdx-render-vue/dist/registry.js +29 -22
  12. package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +169 -0
  13. package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue2.js +4 -0
  14. package/dist/packages/mdx-schema/dist/metadata/index.js +108 -6
  15. package/dist/packages/mdx-schema/dist/styles/index.js +29 -9
  16. package/dist/packages/mdx-schema/dist/tripmap.js +55 -0
  17. package/dist/packages/tripmap-core/dist/attribution.js +9 -0
  18. package/dist/packages/tripmap-core/dist/css.js +74 -0
  19. package/dist/packages/tripmap-core/dist/engine.js +255 -0
  20. package/dist/packages/tripmap-core/dist/filmstrip.js +46 -0
  21. package/dist/packages/tripmap-core/dist/framing.js +44 -0
  22. package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +4 -0
  23. package/dist/packages/tripmap-core/dist/index.js +90 -0
  24. package/dist/packages/tripmap-core/dist/line.js +34 -0
  25. package/dist/packages/tripmap-core/dist/markers.js +90 -0
  26. package/dist/packages/tripmap-core/dist/node_modules/maplibre-gl/dist/maplibre-gl.css.js +4 -0
  27. package/dist/packages/tripmap-core/dist/nodes.js +55 -0
  28. package/dist/packages/tripmap-core/dist/playback.js +25 -0
  29. package/dist/packages/tripmap-core/dist/theme.js +42 -0
  30. package/package.json +2 -2
  31. package/src/core/queries.ts +6 -0
  32. package/src/core/types.ts +9 -0
@@ -0,0 +1,169 @@
1
+ import { defineComponent as O, ref as g, onMounted as V, onBeforeUnmount as L, createElementBlock as n, openBlock as u, normalizeClass as a, unref as e, createCommentVNode as p, createElementVNode as d, toDisplayString as f, Fragment as B, renderList as E, normalizeStyle as P } from "vue";
2
+ import { tripMapStyles as r } from "../../../../mdx-schema/dist/styles/index.js";
3
+ import { useTripMap as $ } from "../../composables/useTripMap.js";
4
+ import { tripMapFormatTime as j } from "../../../../mdx-schema/dist/tripmap.js";
5
+ const D = ["aria-label"], G = ["src"], K = /* @__PURE__ */ O({
6
+ __name: "TripMapDefault",
7
+ props: {
8
+ slugs: {},
9
+ exclude: {},
10
+ nodes: {},
11
+ height: {},
12
+ line: { type: Boolean, default: !0 },
13
+ filmstrip: { type: Boolean, default: !0 },
14
+ playback: { type: Boolean, default: !0 },
15
+ cluster: { type: Boolean, default: !0 },
16
+ theme: { default: "auto" },
17
+ styleUrl: {},
18
+ center: {},
19
+ zoom: {},
20
+ title: {}
21
+ },
22
+ setup(v) {
23
+ const c = v, { handNodes: h, facadeThumbs: U, heightStyle: F, geoUrl: z, isConfigOnly: S, labels: _, texts: b } = $(c), x = g(null), k = g(null), i = g("facade"), A = g(0);
24
+ let T = null, m = null, w = !1;
25
+ async function C() {
26
+ try {
27
+ const t = await fetch(z.value, { headers: { accept: "application/json" } });
28
+ if (!t.ok) throw new Error(`media/geo ${t.status}`);
29
+ return await t.json();
30
+ } catch (t) {
31
+ if (S.value) return { nodes: [] };
32
+ throw t;
33
+ }
34
+ }
35
+ async function M() {
36
+ if (!w) {
37
+ w = !0, i.value = "loading";
38
+ try {
39
+ const [t, o] = await Promise.all([import("../../../../tripmap-core/dist/index.js"), C()]), l = (o.nodes ?? []).filter((s) => typeof s.latitude == "number" && typeof s.longitude == "number").map((s) => ({
40
+ id: s.slug,
41
+ lat: s.latitude,
42
+ lng: s.longitude,
43
+ capturedAt: s.capturedAt ?? void 0,
44
+ thumbnailUrl: s.thumbnailUrl ?? void 0,
45
+ imageUrl: s.url ?? void 0,
46
+ altText: s.altText ?? void 0,
47
+ title: s.placeName ?? void 0
48
+ })), y = t.buildTripNodes(l, h.value);
49
+ if (A.value = o.skipped ?? 0, y.length === 0 || !k.value) {
50
+ i.value = "empty";
51
+ return;
52
+ }
53
+ const N = new t.TripMap(k.value, {
54
+ styleUrl: c.styleUrl || o.config?.styleUrl || "",
55
+ darkStyleUrl: o.config?.darkStyleUrl,
56
+ theme: c.theme,
57
+ cluster: c.cluster,
58
+ showLine: c.line,
59
+ showFilmstrip: c.filmstrip,
60
+ showPlayback: c.playback,
61
+ extraAttribution: o.config?.attribution,
62
+ labels: _.value,
63
+ initialView: I(),
64
+ events: {}
65
+ });
66
+ N.setNodes(y), await N.init(), T = () => N.destroy(), i.value = "live";
67
+ } catch {
68
+ i.value = w && i.value === "loading" ? "facade" : i.value;
69
+ }
70
+ }
71
+ }
72
+ function I() {
73
+ if (!c.center) return;
74
+ const [t, o] = c.center.split(",").map((l) => Number.parseFloat(l.trim()));
75
+ if (!(!Number.isFinite(t) || !Number.isFinite(o)))
76
+ return { center: [o, t], zoom: c.zoom };
77
+ }
78
+ return V(() => {
79
+ const t = x.value;
80
+ if (t) {
81
+ if (typeof IntersectionObserver > "u") {
82
+ M();
83
+ return;
84
+ }
85
+ m = new IntersectionObserver(
86
+ (o) => {
87
+ o.some((l) => l.isIntersecting) && (m?.disconnect(), m = null, M());
88
+ },
89
+ { rootMargin: "300px" }
90
+ ), m.observe(t);
91
+ }
92
+ }), L(() => {
93
+ m?.disconnect(), T?.();
94
+ }), (t, o) => (u(), n("div", {
95
+ ref_key: "rootEl",
96
+ ref: x,
97
+ class: a(e(r).container),
98
+ "data-mdx-component": "TripMap",
99
+ "aria-label": v.title
100
+ }, [
101
+ v.title ? (u(), n("p", {
102
+ key: 0,
103
+ class: a(e(r).head)
104
+ }, f(v.title), 3)) : p("", !0),
105
+ e(U).length && i.value !== "live" ? (u(), n("ol", {
106
+ key: 1,
107
+ class: a(e(r).strip)
108
+ }, [
109
+ (u(!0), n(B, null, E(e(U), (l) => (u(), n("li", {
110
+ key: l.slug,
111
+ class: a(e(r).stripItem)
112
+ }, [
113
+ d("img", {
114
+ src: l.src,
115
+ alt: "",
116
+ width: "80",
117
+ height: "80",
118
+ loading: "lazy",
119
+ decoding: "async",
120
+ class: a(e(r).stripImg)
121
+ }, null, 10, G)
122
+ ], 2))), 128))
123
+ ], 2)) : p("", !0),
124
+ d("div", {
125
+ class: a(e(r).mapWrap),
126
+ style: P(e(F))
127
+ }, [
128
+ d("div", {
129
+ ref_key: "mapEl",
130
+ ref: k,
131
+ class: "absolute inset-0"
132
+ }, null, 512),
133
+ i.value !== "live" ? (u(), n("div", {
134
+ key: 0,
135
+ class: a([e(r).mapOverlay])
136
+ }, [
137
+ d("div", {
138
+ class: a(e(r).mapBox)
139
+ }, [
140
+ d("span", {
141
+ class: a(e(r).mapHint)
142
+ }, f(i.value === "empty" ? e(b).empty : e(b).hint), 3)
143
+ ], 2)
144
+ ], 2)) : p("", !0)
145
+ ], 6),
146
+ e(h).length && i.value !== "live" ? (u(), n("ol", {
147
+ key: 2,
148
+ class: a(e(r).stopList)
149
+ }, [
150
+ (u(!0), n(B, null, E(e(h), (l, y) => (u(), n("li", {
151
+ key: l.id || y
152
+ }, [
153
+ l.capturedAt ? (u(), n("span", {
154
+ key: 0,
155
+ class: a(e(r).stopTime)
156
+ }, f(e(j)(l.capturedAt)), 3)) : p("", !0),
157
+ d("span", null, f(l.title || `${l.lat}, ${l.lng}`), 1)
158
+ ]))), 128))
159
+ ], 2)) : p("", !0),
160
+ i.value !== "live" ? (u(), n("p", {
161
+ key: 3,
162
+ class: a(e(r).note)
163
+ }, f(e(b).unavailable), 3)) : p("", !0)
164
+ ], 10, D));
165
+ }
166
+ });
167
+ export {
168
+ K as default
169
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./TripMapDefault.vue.js";
2
+ export {
3
+ o as default
4
+ };
@@ -400,16 +400,118 @@ Read this carefully.
400
400
  </Tooltip>`,
401
401
  addedIn: "0.1.0",
402
402
  deprecated: []
403
+ },
404
+ {
405
+ name: "TripMap",
406
+ description: "Interactive trip map built from photo GPS + capture time: thumbnail markers, chronological route line, synced photo filmstrip, fly-through playback. Without props it maps every geotagged media attached to or embedded in the article (auto mode); only media with exposed location (geoExposed) appear. In article previews it renders as a static photo strip + stop list — the live map loads on the published page.",
407
+ icon: "🗺",
408
+ category: "media",
409
+ aliases: ["tripmap", "map", "trip", "route", "travelmap", "hike"],
410
+ props: [
411
+ {
412
+ name: "slugs",
413
+ type: "string",
414
+ required: !1,
415
+ description: 'Comma-separated media slugs to map (e.g. "img-a,img-b"). Omit for AUTO mode: all geotagged media of the article, sorted by capture time.'
416
+ },
417
+ {
418
+ name: "exclude",
419
+ type: "string",
420
+ required: !1,
421
+ description: "AUTO mode only: comma-separated media slugs to leave off the map."
422
+ },
423
+ {
424
+ name: "nodes",
425
+ type: "array",
426
+ required: !1,
427
+ description: 'Hand-made nodes merged chronologically with the photos. STRICT JSON with quoted keys: [{"lat": 49.35, "lng": 16.31, "title": "Níhov, nádraží", "capturedAt": "2025-04-20T08:52:00"}]. Entries without capturedAt render as markers but stay off the route line. Unquoted keys silently break the prop.'
428
+ },
429
+ {
430
+ name: "height",
431
+ type: "string",
432
+ required: !1,
433
+ default: '"420px"',
434
+ description: "CSS height of the map box."
435
+ },
436
+ {
437
+ name: "line",
438
+ type: "boolean",
439
+ required: !1,
440
+ default: "true",
441
+ description: "Draw the chronological route line between time-neighbouring nodes."
442
+ },
443
+ {
444
+ name: "filmstrip",
445
+ type: "boolean",
446
+ required: !1,
447
+ default: "true",
448
+ description: "Show the synced photo strip below the map."
449
+ },
450
+ {
451
+ name: "playback",
452
+ type: "boolean",
453
+ required: !1,
454
+ default: "true",
455
+ description: "Show the play button that flies the camera along the route."
456
+ },
457
+ {
458
+ name: "cluster",
459
+ type: "boolean",
460
+ required: !1,
461
+ default: "true",
462
+ description: "Cluster nearby markers at low zoom."
463
+ },
464
+ {
465
+ name: "theme",
466
+ type: "string",
467
+ required: !1,
468
+ default: '"auto"',
469
+ description: 'Map color scheme; "auto" follows the reader’s system preference.',
470
+ enum: ["light", "dark", "auto"]
471
+ },
472
+ {
473
+ name: "styleUrl",
474
+ type: "string",
475
+ required: !1,
476
+ description: "MapLibre style JSON URL override for this block (wins over tenant config)."
477
+ },
478
+ {
479
+ name: "center",
480
+ type: "string",
481
+ required: !1,
482
+ description: 'Initial center as "lat,lng" — overrides smart framing; pair with zoom.'
483
+ },
484
+ {
485
+ name: "zoom",
486
+ type: "number",
487
+ required: !1,
488
+ description: "Initial zoom level — overrides smart framing; pair with center.",
489
+ numericRange: [1, 19]
490
+ },
491
+ {
492
+ name: "title",
493
+ type: "string",
494
+ required: !1,
495
+ description: "Accessible label for the map region."
496
+ }
497
+ ],
498
+ hasChildren: !1,
499
+ selfClosing: !0,
500
+ defaultProps: 'title="Trasa výletu"',
501
+ defaultChildren: "",
502
+ example: '<TripMap title="Trasa údolím Libochovky" nodes={[{"lat": 49.3641, "lng": 16.3143, "title": "Níhov, nádraží", "capturedAt": "2025-04-20T08:52:00"}]} />',
503
+ addedIn: "0.3.0",
504
+ deprecated: []
403
505
  }
404
- ], i = new Map(t.map((e) => [e.name, e]));
405
- function a(e) {
406
- return i.get(e);
506
+ ], a = new Map(t.map((e) => [e.name, e]));
507
+ function i(e) {
508
+ return a.get(e);
407
509
  }
408
- function n() {
510
+ function r() {
409
511
  return t.map((e) => e.name);
410
512
  }
411
513
  export {
412
514
  t as componentMetadata,
413
- a as getComponentMetadata,
414
- n as getComponentNames
515
+ i as getComponentMetadata,
516
+ r as getComponentNames
415
517
  };
@@ -1,4 +1,23 @@
1
1
  const t = {
2
+ container: "my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3",
3
+ head: "text-sm font-medium text-gray-700 m-0",
4
+ /**
5
+ * Sized wrapper that hosts BOTH the engine div and the facade overlay.
6
+ * The engine host must be a plain absolutely-positioned child that the
7
+ * framework never re-patches (a reactive class binding on the engine's
8
+ * own container would clobber the classes the engine adds to it).
9
+ */
10
+ mapWrap: "relative w-full overflow-hidden rounded-lg",
11
+ mapOverlay: "absolute inset-0",
12
+ mapBox: "flex h-full w-full items-center justify-center overflow-hidden rounded-lg bg-gray-100",
13
+ mapHint: "text-sm text-gray-500",
14
+ strip: "flex gap-2 overflow-x-auto pb-1 m-0 p-0 list-none",
15
+ stripItem: "h-20 w-20 flex-none overflow-hidden rounded-lg bg-gray-100",
16
+ stripImg: "block h-full w-full object-cover",
17
+ stopList: "flex flex-col gap-0.5 text-sm text-gray-700 m-0 p-0 list-none",
18
+ stopTime: "mr-2 tabular-nums text-gray-500",
19
+ note: "text-xs text-gray-400 m-0"
20
+ }, a = {
2
21
  base: "inline-flex items-center justify-center font-medium border transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
3
22
  size: {
4
23
  sm: "px-2.5 py-1 text-sm rounded",
@@ -42,7 +61,7 @@ const t = {
42
61
  error: "text-red-700 hover:underline border-transparent bg-transparent"
43
62
  }
44
63
  }
45
- }, a = {
64
+ }, o = {
46
65
  base: "inline-flex items-center px-2 py-0.5 text-xs font-medium border rounded-full",
47
66
  variantColor: {
48
67
  solid: {
@@ -67,7 +86,7 @@ const t = {
67
86
  error: "border-red-500 text-red-700"
68
87
  }
69
88
  }
70
- }, b = {
89
+ }, n = {
71
90
  base: "mdx-alert flex gap-3 rounded-md border px-4 py-3 text-sm",
72
91
  severity: {
73
92
  info: { wrap: "bg-blue-50 border-blue-200 text-blue-900", icon: "lucide:info", iconClass: "text-blue-600" },
@@ -75,7 +94,7 @@ const t = {
75
94
  warning: { wrap: "bg-amber-50 border-amber-200 text-amber-900", icon: "lucide:alert-triangle", iconClass: "text-amber-600" },
76
95
  error: { wrap: "bg-red-50 border-red-200 text-red-900", icon: "lucide:alert-octagon", iconClass: "text-red-600" }
77
96
  }
78
- }, n = {
97
+ }, b = {
79
98
  default: {
80
99
  base: "callout my-6 p-4 rounded-lg border-l-4",
81
100
  type: {
@@ -102,7 +121,7 @@ const t = {
102
121
  danger: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
103
122
  }
104
123
  };
105
- function o(e) {
124
+ function l(e) {
106
125
  const r = e.aspectRatio || "1";
107
126
  return r === "auto" ? { tileStyle: {}, mediaStyle: {}, mediaSizeClass: "w-full h-auto" } : {
108
127
  tileStyle: { aspectRatio: r },
@@ -111,9 +130,10 @@ function o(e) {
111
130
  };
112
131
  }
113
132
  export {
114
- b as alertStyles,
115
- a as badgeStyles,
116
- t as buttonStyles,
117
- n as calloutStyles,
118
- o as galleryTileLayout
133
+ n as alertStyles,
134
+ o as badgeStyles,
135
+ a as buttonStyles,
136
+ b as calloutStyles,
137
+ l as galleryTileLayout,
138
+ t as tripMapStyles
119
139
  };
@@ -0,0 +1,55 @@
1
+ const s = "420px";
2
+ function r(t) {
3
+ return (t ?? "").split(",").map((e) => e.trim()).filter(Boolean);
4
+ }
5
+ function p(t) {
6
+ let e = t;
7
+ if (typeof e == "string")
8
+ try {
9
+ e = JSON.parse(e);
10
+ } catch {
11
+ return typeof console < "u" && console.warn('[TripMap] `nodes` prop is not valid JSON — use quoted keys: [{"lat":49.3,"lng":16.3}]'), [];
12
+ }
13
+ return Array.isArray(e) ? e.filter((a) => !!a && typeof a == "object" && typeof a.lat == "number" && typeof a.lng == "number") : [];
14
+ }
15
+ function u(t) {
16
+ const e = /T(\d{2}):(\d{2})/.exec(t);
17
+ return e ? `${e[1]}:${e[2]}` : "";
18
+ }
19
+ function l(t, e) {
20
+ const a = new URLSearchParams();
21
+ e?.language && a.set("lang", e.language);
22
+ const n = r(t.slugs);
23
+ if (n.length > 0)
24
+ return a.set("slugs", n.join(",")), `/api/media/geo?${a.toString()}`;
25
+ if (e?.filename) {
26
+ a.set("article", e.filename);
27
+ const o = r(t.exclude);
28
+ return o.length > 0 && a.set("exclude", o.join(",")), `/api/media/geo?${a.toString()}`;
29
+ }
30
+ const i = a.toString();
31
+ return i ? `/api/media/geo?${i}` : "/api/media/geo";
32
+ }
33
+ function c(t) {
34
+ return (t ?? "").toLowerCase().startsWith("cs") ? {
35
+ hint: "Interaktivní mapa výletu",
36
+ empty: "Žádná z fotek nemá zveřejněnou polohu.",
37
+ unavailable: "Mapa se zobrazí na publikovaném webu."
38
+ } : {
39
+ hint: "Interactive trip map",
40
+ empty: "No photos with public location data.",
41
+ unavailable: "The map is shown on the published page."
42
+ };
43
+ }
44
+ function f(t) {
45
+ return (t ?? "").toLowerCase().startsWith("cs") ? { play: "Přehrát trasu", stop: "Zastavit" } : void 0;
46
+ }
47
+ export {
48
+ s as TRIPMAP_DEFAULT_HEIGHT,
49
+ l as buildTripMapGeoUrl,
50
+ p as parseTripMapHandNodes,
51
+ r as splitTripMapList,
52
+ u as tripMapFormatTime,
53
+ f as tripMapPlaybackLabels,
54
+ c as tripMapUiTexts
55
+ };
@@ -0,0 +1,9 @@
1
+ const n = '© <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">OpenStreetMap</a> contributors';
2
+ function o(e) {
3
+ const t = [n], r = e?.trim();
4
+ return r && t.push(r), t;
5
+ }
6
+ export {
7
+ n as OSM_ATTRIBUTION,
8
+ o as buildAttributions
9
+ };
@@ -0,0 +1,74 @@
1
+ import t from "./node_modules/maplibre-gl/dist/maplibre-gl.css.js";
2
+ const r = "tripmap-core-css", e = `
3
+ .tripmap { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; }
4
+ .tripmap__map { position: relative; flex: 1 1 auto; width: 100%; min-height: 180px; border-radius: 12px; overflow: hidden; }
5
+ .tripmap__map .maplibregl-canvas { outline: none; }
6
+
7
+ .tripmap-marker {
8
+ display: block; padding: 0; border: 2px solid #ffffff; border-radius: 9999px;
9
+ background: #e5e7eb; cursor: pointer; width: 44px; height: 44px; overflow: hidden;
10
+ box-shadow: 0 1px 4px rgba(0,0,0,0.35);
11
+ transition: transform 120ms ease, border-color 120ms ease;
12
+ }
13
+ .tripmap-marker:hover { transform: scale(1.12); z-index: 3; }
14
+ .tripmap-marker--active { border-color: #2563eb; transform: scale(1.15); z-index: 4; }
15
+ .tripmap-marker__img { width: 100%; height: 100%; object-fit: cover; display: block; }
16
+ .tripmap-marker--dot { width: 18px; height: 18px; background: #2563eb; border-width: 3px; }
17
+ .tripmap-marker__dot { display: block; width: 100%; height: 100%; }
18
+ .tripmap-marker--cluster { position: relative; overflow: visible; }
19
+ .tripmap-marker--cluster .tripmap-marker__img { border-radius: 9999px; }
20
+ .tripmap-marker__count {
21
+ position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
22
+ padding: 0 5px; border-radius: 9999px; background: #1d4ed8; color: #fff;
23
+ font: 600 11px/20px system-ui, sans-serif; text-align: center; pointer-events: none;
24
+ }
25
+
26
+ .tripmap-popup .maplibregl-popup-content, .tripmap-popup { font: 13px/1.4 system-ui, sans-serif; }
27
+ .tripmap-popup { max-width: 260px; }
28
+ .tripmap-popup__img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
29
+ .tripmap-popup__meta { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
30
+ .tripmap-popup__title { font-weight: 600; }
31
+ .tripmap-popup__time { color: #6b7280; font-size: 12px; }
32
+ .tripmap-popup__desc { margin: 0; }
33
+
34
+ .tripmap-filmstrip {
35
+ display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px;
36
+ scrollbar-width: thin; -webkit-overflow-scrolling: touch;
37
+ }
38
+ .tripmap-filmstrip__item {
39
+ position: relative; flex: 0 0 auto; width: 64px; height: 64px; padding: 0;
40
+ border: 2px solid transparent; border-radius: 10px; overflow: hidden;
41
+ background: #f3f4f6; cursor: pointer;
42
+ }
43
+ .tripmap-filmstrip__item--active { border-color: #2563eb; }
44
+ .tripmap-filmstrip__img { width: 100%; height: 100%; object-fit: cover; display: block; }
45
+ .tripmap-filmstrip__item--waypoint { display: flex; align-items: center; justify-content: center; }
46
+ .tripmap-filmstrip__label {
47
+ font: 600 10px/1.2 system-ui, sans-serif; color: #374151; padding: 2px 3px 14px; text-align: center;
48
+ max-width: 100%; overflow-wrap: anywhere; hyphens: auto;
49
+ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
50
+ }
51
+ .tripmap-filmstrip__time {
52
+ position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0;
53
+ background: rgba(17,24,39,0.55); color: #fff; font: 10px/1.3 system-ui, sans-serif;
54
+ text-align: center; pointer-events: none;
55
+ }
56
+
57
+ .tripmap__controls { position: absolute; top: 10px; left: 10px; z-index: 5; display: flex; gap: 6px; }
58
+ .tripmap__play {
59
+ border: 0; border-radius: 8px; padding: 6px 10px; background: rgba(255,255,255,0.95);
60
+ color: #1f2937; font: 600 12px/1 system-ui, sans-serif; cursor: pointer;
61
+ box-shadow: 0 1px 3px rgba(0,0,0,0.3);
62
+ }
63
+ .tripmap__play:hover { background: #fff; }
64
+ `;
65
+ function a(p = document) {
66
+ if (p.getElementById(r)) return;
67
+ const i = p.createElement("style");
68
+ i.id = r, i.textContent = `${t}
69
+ ${e}`, p.head.appendChild(i);
70
+ }
71
+ export {
72
+ r as TRIPMAP_STYLE_ID,
73
+ a as injectTripMapCss
74
+ };