@krak-stack/registry 0.11.4 → 0.11.6

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 (175) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +23 -9
  3. package/dist/components/agent/react.js +226 -1072
  4. package/dist/components/app-switcher/html.js +10 -53
  5. package/dist/components/app-switcher/react.js +29 -139
  6. package/dist/components/async-action-button/html.js +3 -34
  7. package/dist/components/async-action-button/react.d.ts +1 -1
  8. package/dist/components/async-action-button/react.js +8 -54
  9. package/dist/components/audit-log-table/react.js +706 -1279
  10. package/dist/components/bulk-list-input/html.js +3 -40
  11. package/dist/components/bulk-list-input/react.d.ts +1 -1
  12. package/dist/components/bulk-list-input/react.js +6 -59
  13. package/dist/components/code-block/html.js +1 -35
  14. package/dist/components/code-block/react.js +12 -59
  15. package/dist/components/color-input/html.js +2 -19
  16. package/dist/components/color-input/react.js +6 -97
  17. package/dist/components/copy-button/html.js +1 -35
  18. package/dist/components/copy-button/react.d.ts +1 -1
  19. package/dist/components/copy-button/react.js +7 -54
  20. package/dist/components/copy-value/html.js +11 -52
  21. package/dist/components/copy-value/react.js +25 -165
  22. package/dist/components/cron-input/html.js +2 -18
  23. package/dist/components/cron-input/react.js +15 -30
  24. package/dist/components/danger-confirmation/html.js +11 -57
  25. package/dist/components/danger-confirmation/react.js +26 -187
  26. package/dist/components/data-table/classes.d.ts +9 -3
  27. package/dist/components/data-table/html.d.ts +93 -21
  28. package/dist/components/data-table/html.js +309 -196
  29. package/dist/components/data-table/index.d.ts +97 -9
  30. package/dist/components/data-table/react.d.ts +14 -3
  31. package/dist/components/data-table/react.js +700 -1273
  32. package/dist/components/data-table/schema.d.ts +175 -16
  33. package/dist/components/date-input/html.js +19 -74
  34. package/dist/components/date-input/react.d.ts +1 -1
  35. package/dist/components/date-input/react.js +28 -313
  36. package/dist/components/docs/classes.d.ts +15 -0
  37. package/dist/components/docs/html.d.ts +55 -0
  38. package/dist/components/docs/html.js +837 -0
  39. package/dist/components/docs/index.d.ts +49 -0
  40. package/dist/components/docs/react.d.ts +10 -0
  41. package/dist/components/docs/react.js +949 -0
  42. package/dist/components/docs/schema.d.ts +49 -0
  43. package/dist/components/editable-text/html.js +6 -52
  44. package/dist/components/editable-text/react.js +13 -83
  45. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  46. package/dist/components/editing-locale-switcher/html.js +13 -43
  47. package/dist/components/editing-locale-switcher/react.js +17 -141
  48. package/dist/components/effect-form/react.js +249 -812
  49. package/dist/components/email-composer/react.js +62 -279
  50. package/dist/components/email-editor/html.js +13 -58
  51. package/dist/components/email-editor/react.js +187 -483
  52. package/dist/components/error-component/html.js +2 -47
  53. package/dist/components/error-component/react.js +33 -137
  54. package/dist/components/file-input/html.js +9 -40
  55. package/dist/components/file-input/react.js +39 -208
  56. package/dist/components/form/react.js +212 -777
  57. package/dist/components/icon-input/html.js +9 -56
  58. package/dist/components/icon-input/react.js +43 -143
  59. package/dist/components/image-crop-editor/html.js +1 -35
  60. package/dist/components/image-crop-editor/react.js +21 -66
  61. package/dist/components/locale-switcher/html.js +8 -55
  62. package/dist/components/locale-switcher/react.js +21 -146
  63. package/dist/components/map-menu/html.d.ts +8 -8
  64. package/dist/components/map-menu/html.js +13 -72
  65. package/dist/components/map-menu/react.js +92 -309
  66. package/dist/components/markdown/html.js +1 -35
  67. package/dist/components/markdown/react.js +20 -64
  68. package/dist/components/notification-menu/html.js +14 -50
  69. package/dist/components/notification-menu/react.js +73 -343
  70. package/dist/components/pagination/html.js +17 -73
  71. package/dist/components/pagination/react.js +37 -200
  72. package/dist/components/phone-number-input/html.js +19 -57
  73. package/dist/components/phone-number-input/react.d.ts +1 -1
  74. package/dist/components/phone-number-input/react.js +43 -142
  75. package/dist/components/presence-transition/index.d.ts +2 -2
  76. package/dist/components/registry-previews/component-example.js +26 -126
  77. package/dist/components/rich-text-editor/html.d.ts +12 -12
  78. package/dist/components/rich-text-editor/html.js +12 -85
  79. package/dist/components/rich-text-editor/react.js +55 -272
  80. package/dist/components/search-menu/classes.d.ts +2 -0
  81. package/dist/components/search-menu/html.d.ts +2 -0
  82. package/dist/components/search-menu/html.js +40 -73
  83. package/dist/components/search-menu/index.d.ts +27 -2
  84. package/dist/components/search-menu/react.d.ts +1 -1
  85. package/dist/components/search-menu/react.js +59 -280
  86. package/dist/components/search-menu/schema.d.ts +1 -0
  87. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  88. package/dist/components/select-with-custom-input/html.js +13 -48
  89. package/dist/components/select-with-custom-input/react.js +22 -146
  90. package/dist/components/sidebar-layout/html.d.ts +16 -6
  91. package/dist/components/sidebar-layout/html.js +83 -69
  92. package/dist/components/sidebar-layout/index.d.ts +16 -0
  93. package/dist/components/sidebar-layout/react.js +105 -698
  94. package/dist/components/stats-card/react.js +13 -58
  95. package/dist/components/support/html.js +14 -69
  96. package/dist/components/support/react.js +74 -320
  97. package/dist/components/theme-switcher/html.js +11 -55
  98. package/dist/components/theme-switcher/react.js +28 -152
  99. package/dist/components/time-input/html.d.ts +2 -2
  100. package/dist/components/time-input/html.js +8 -53
  101. package/dist/components/time-input/react.js +34 -188
  102. package/dist/components/timezone-input/html.js +11 -67
  103. package/dist/components/timezone-input/react.js +41 -143
  104. package/dist/components/toast/html.d.ts +6 -6
  105. package/dist/components/toast/html.js +13 -46
  106. package/dist/components/tracking-notice/react.js +39 -188
  107. package/dist/components/unsaved-changes-guard/html.js +9 -43
  108. package/dist/components/unsaved-changes-guard/react.js +19 -169
  109. package/dist/components/upload-attachment/html.d.ts +4 -4
  110. package/dist/components/upload-attachment/html.js +4 -35
  111. package/dist/components/upload-attachment/react.js +25 -164
  112. package/dist/components/virtualized-combobox/html.js +10 -35
  113. package/dist/components/virtualized-combobox/react.js +28 -129
  114. package/dist/components/webhook-delivery-table/html.js +320 -206
  115. package/dist/components/webhook-delivery-table/react.js +736 -1376
  116. package/dist/lib/docs.integrations.server.js +150 -202
  117. package/dist/lib/docs.js +305 -1085
  118. package/dist/lib/docs.server.js +134 -186
  119. package/dist/lib/documentation-toolkit.js +144 -196
  120. package/dist/services/agent/client/index.js +226 -1072
  121. package/dist/services/notification/client/index.js +73 -343
  122. package/dist/services/notification/public.js +73 -343
  123. package/package.json +5 -13
  124. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  125. package/dist/components/effectcn/button.d.ts +0 -31
  126. package/dist/components/effectcn/calendar.d.ts +0 -12
  127. package/dist/components/effectcn/checkbox.d.ts +0 -10
  128. package/dist/components/effectcn/combobox.d.ts +0 -25
  129. package/dist/components/effectcn/dialog.d.ts +0 -19
  130. package/dist/components/effectcn/field.d.ts +0 -11
  131. package/dist/components/effectcn/file-drop.d.ts +0 -8
  132. package/dist/components/effectcn/input.d.ts +0 -26
  133. package/dist/components/effectcn/menu.d.ts +0 -85
  134. package/dist/components/effectcn/menubar.d.ts +0 -8
  135. package/dist/components/effectcn/popover.d.ts +0 -18
  136. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  137. package/dist/components/effectcn/select.d.ts +0 -68
  138. package/dist/components/effectcn/toast.d.ts +0 -29
  139. package/dist/components/ui/alert-dialog.d.ts +0 -18
  140. package/dist/components/ui/alert.d.ts +0 -10
  141. package/dist/components/ui/attachment.d.ts +0 -23
  142. package/dist/components/ui/badge.d.ts +0 -7
  143. package/dist/components/ui/bubble.d.ts +0 -16
  144. package/dist/components/ui/button.d.ts +0 -8
  145. package/dist/components/ui/calendar.d.ts +0 -10
  146. package/dist/components/ui/card.d.ts +0 -11
  147. package/dist/components/ui/checkbox.d.ts +0 -3
  148. package/dist/components/ui/collapsible.d.ts +0 -5
  149. package/dist/components/ui/command.d.ts +0 -18
  150. package/dist/components/ui/dialog.d.ts +0 -17
  151. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  152. package/dist/components/ui/empty.d.ts +0 -11
  153. package/dist/components/ui/field.d.ts +0 -24
  154. package/dist/components/ui/input-group.d.ts +0 -17
  155. package/dist/components/ui/input.d.ts +0 -3
  156. package/dist/components/ui/item.d.ts +0 -22
  157. package/dist/components/ui/label.d.ts +0 -3
  158. package/dist/components/ui/menubar.d.ts +0 -29
  159. package/dist/components/ui/message-scroller.d.ts +0 -10
  160. package/dist/components/ui/message.d.ts +0 -10
  161. package/dist/components/ui/popover.d.ts +0 -9
  162. package/dist/components/ui/scroll-area.d.ts +0 -4
  163. package/dist/components/ui/select.d.ts +0 -15
  164. package/dist/components/ui/select.js +0 -159
  165. package/dist/components/ui/separator.d.ts +0 -3
  166. package/dist/components/ui/sheet.d.ts +0 -14
  167. package/dist/components/ui/sidebar.d.ts +0 -63
  168. package/dist/components/ui/skeleton.d.ts +0 -2
  169. package/dist/components/ui/table.d.ts +0 -10
  170. package/dist/components/ui/tabs.d.ts +0 -10
  171. package/dist/components/ui/textarea.d.ts +0 -3
  172. package/dist/components/ui/tooltip.d.ts +0 -6
  173. package/dist/components/ui/trace.d.ts +0 -18
  174. package/dist/lib/effectcn-form.d.ts +0 -3
  175. package/dist/lib/effectcn-form.js +0 -54
@@ -1,118 +1,16 @@
1
1
  // ../../src/components/map-menu/react.tsx
2
- import { Dialog as DialogPrimitive2 } from "@base-ui/react/dialog";
2
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
3
3
  import { LocateFixed as LocateFixed2, MapPin, Search, X } from "lucide-react";
4
4
  import { useEffect as useEffect2, useId, useRef as useRef2, useState as useState2 } from "react";
5
-
6
- // ../../src/components/ui/button.tsx
7
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
8
- import { cva } from "class-variance-authority";
9
-
10
- // ../../src/lib/utils.ts
11
- import { cn } from "cn";
12
-
13
- // ../../src/components/ui/button.tsx
14
- import { jsx } from "react/jsx-runtime";
15
- var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
16
- variants: {
17
- variant: {
18
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
19
- outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
20
- secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
21
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
22
- destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
23
- link: "text-primary underline-offset-4 hover:underline"
24
- },
25
- size: {
26
- default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
27
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
28
- sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
29
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
30
- icon: "size-9",
31
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
32
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
33
- "icon-lg": "size-10"
34
- }
35
- },
36
- defaultVariants: {
37
- variant: "default",
38
- size: "default"
39
- }
40
- });
41
- function Button({
42
- className,
43
- variant = "default",
44
- size = "default",
45
- ...props
46
- }) {
47
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
48
- "data-slot": "button",
49
- className: cn(buttonVariants({ variant, size, className })),
50
- ...props
51
- });
52
- }
53
-
54
- // ../../src/components/ui/dialog.tsx
55
- import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
56
- import { cn as cn2 } from "cn";
57
- import { XIcon } from "lucide-react";
58
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
59
- function Dialog({ ...props }) {
60
- return /* @__PURE__ */ jsx2(DialogPrimitive.Root, {
61
- "data-slot": "dialog",
62
- ...props
63
- });
64
- }
65
- function DialogPortal({ ...props }) {
66
- return /* @__PURE__ */ jsx2(DialogPrimitive.Portal, {
67
- "data-slot": "dialog-portal",
68
- ...props
69
- });
70
- }
71
- function DialogOverlay({
72
- className,
73
- ...props
74
- }) {
75
- return /* @__PURE__ */ jsx2(DialogPrimitive.Backdrop, {
76
- "data-slot": "dialog-overlay",
77
- className: cn2("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", className),
78
- ...props
79
- });
80
- }
81
- function DialogHeader({ className, ...props }) {
82
- return /* @__PURE__ */ jsx2("div", {
83
- "data-slot": "dialog-header",
84
- className: cn2("flex flex-col gap-2", className),
85
- ...props
86
- });
87
- }
88
- function DialogFooter({
89
- className,
90
- showCloseButton = false,
91
- children,
92
- ...props
93
- }) {
94
- return /* @__PURE__ */ jsxs("div", {
95
- "data-slot": "dialog-footer",
96
- className: cn2("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
97
- ...props,
98
- children: [
99
- children,
100
- showCloseButton && /* @__PURE__ */ jsx2(DialogPrimitive.Close, {
101
- render: /* @__PURE__ */ jsx2(Button, {
102
- variant: "outline"
103
- }),
104
- children: "Close"
105
- })
106
- ]
107
- });
108
- }
109
- function DialogTitle({ className, ...props }) {
110
- return /* @__PURE__ */ jsx2(DialogPrimitive.Title, {
111
- "data-slot": "dialog-title",
112
- className: cn2("leading-none font-medium", className),
113
- ...props
114
- });
115
- }
5
+ import { Button } from "@/components/ui/button";
6
+ import {
7
+ Dialog,
8
+ DialogFooter,
9
+ DialogHeader,
10
+ DialogOverlay,
11
+ DialogPortal,
12
+ DialogTitle
13
+ } from "@/components/ui/dialog";
116
14
 
117
15
  // ../../src/components/map-menu/classes.ts
118
16
  var mapMenuClasses = {
@@ -136,6 +34,11 @@ import {
136
34
  useSyncExternalStore
137
35
  } from "react";
138
36
  import { Schema } from "effect";
37
+
38
+ // ../../src/lib/utils.ts
39
+ import { cn } from "cn";
40
+
41
+ // ../../src/components/map-menu/map.tsx
139
42
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
140
43
 
141
44
  // ../../src/components/map-menu/google-maps.ts
@@ -214,7 +117,7 @@ var mapOptions = (center, zoom, interactive, minZoom, maxZoom) => ({
214
117
  var mapPinIcon = (color) => `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="48" viewBox="0 0 40 48"><path d="M20 46s15-14.3 15-27A15 15 0 1 0 5 19c0 12.7 15 27 15 27Z" fill="${color.replace(/[&"'<>]/g, "")}" stroke="white" stroke-width="3"/><circle cx="20" cy="19" r="6" fill="white"/></svg>`)}`;
215
118
 
216
119
  // ../../src/components/map-menu/map.tsx
217
- import { jsx as jsx3, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
120
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
218
121
  var defaultMessages = {
219
122
  en: {
220
123
  mapLabel: "Google map",
@@ -506,82 +409,82 @@ var MapMenuMap = ({
506
409
  map.setZoom(nextZoom);
507
410
  setCurrentZoom(nextZoom);
508
411
  };
509
- return /* @__PURE__ */ jsxs2("div", {
412
+ return /* @__PURE__ */ jsxs("div", {
510
413
  "data-slot": "map-menu-renderer",
511
414
  className: cn("bg-muted relative isolate min-h-64 min-w-0 overflow-hidden rounded-lg border", className),
512
415
  children: [
513
- /* @__PURE__ */ jsx3("div", {
416
+ /* @__PURE__ */ jsx("div", {
514
417
  ref: mapElementRef,
515
418
  "data-slot": "map-menu-canvas",
516
419
  className: "h-full min-h-[inherit] w-full",
517
420
  role: "region",
518
421
  "aria-label": labels.mapLabel
519
422
  }),
520
- loadState === "ready" && zoomControls ? /* @__PURE__ */ jsxs2("div", {
423
+ loadState === "ready" && zoomControls ? /* @__PURE__ */ jsxs("div", {
521
424
  "data-slot": "map-menu-controls",
522
425
  className: cn("bg-background/95 absolute top-3 right-3 z-10 overflow-hidden rounded-md border shadow-sm backdrop-blur", controlsClassName),
523
426
  children: [
524
- fitRadius && radiusMeters !== undefined ? /* @__PURE__ */ jsxs2(Fragment, {
427
+ fitRadius && radiusMeters !== undefined ? /* @__PURE__ */ jsxs(Fragment, {
525
428
  children: [
526
- /* @__PURE__ */ jsx3("button", {
429
+ /* @__PURE__ */ jsx("button", {
527
430
  "data-slot": "map-menu-control",
528
431
  type: "button",
529
432
  onClick: showSelectedArea,
530
433
  "aria-label": labels.showArea,
531
434
  title: labels.showArea,
532
435
  className: "text-foreground hover:bg-accent focus-visible:ring-ring relative flex size-11 items-center justify-center focus-visible:z-10 focus-visible:ring-2 focus-visible:ring-inset",
533
- children: /* @__PURE__ */ jsx3(LocateFixed, {
436
+ children: /* @__PURE__ */ jsx(LocateFixed, {
534
437
  className: "size-4"
535
438
  })
536
439
  }),
537
- /* @__PURE__ */ jsx3("div", {
440
+ /* @__PURE__ */ jsx("div", {
538
441
  className: "bg-border h-px"
539
442
  })
540
443
  ]
541
444
  }) : null,
542
- /* @__PURE__ */ jsx3("button", {
445
+ /* @__PURE__ */ jsx("button", {
543
446
  "data-slot": "map-menu-control",
544
447
  type: "button",
545
448
  className: "text-foreground hover:bg-accent focus-visible:ring-ring relative flex size-11 items-center justify-center transition-colors focus-visible:z-10 focus-visible:ring-2 focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-50",
546
449
  disabled: currentZoom >= normalizedMaxZoom,
547
450
  onClick: () => changeZoom(1),
548
451
  "aria-label": labels.zoomIn,
549
- children: /* @__PURE__ */ jsx3(Plus, {
452
+ children: /* @__PURE__ */ jsx(Plus, {
550
453
  className: "size-4"
551
454
  })
552
455
  }),
553
- /* @__PURE__ */ jsx3("div", {
456
+ /* @__PURE__ */ jsx("div", {
554
457
  className: "bg-border h-px"
555
458
  }),
556
- /* @__PURE__ */ jsx3("button", {
459
+ /* @__PURE__ */ jsx("button", {
557
460
  "data-slot": "map-menu-control",
558
461
  type: "button",
559
462
  className: "text-foreground hover:bg-accent focus-visible:ring-ring relative flex size-11 items-center justify-center transition-colors focus-visible:z-10 focus-visible:ring-2 focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-50",
560
463
  disabled: currentZoom <= normalizedMinZoom,
561
464
  onClick: () => changeZoom(-1),
562
465
  "aria-label": labels.zoomOut,
563
- children: /* @__PURE__ */ jsx3(Minus, {
466
+ children: /* @__PURE__ */ jsx(Minus, {
564
467
  className: "size-4"
565
468
  })
566
469
  })
567
470
  ]
568
471
  }) : null,
569
- loadState === "loading" ? /* @__PURE__ */ jsx3("div", {
472
+ loadState === "loading" ? /* @__PURE__ */ jsx("div", {
570
473
  className: "bg-background/75 text-muted-foreground absolute inset-0 grid place-items-center text-sm font-medium backdrop-blur-sm",
571
474
  role: "status",
572
475
  children: labels.loading
573
476
  }) : null,
574
- loadState === "missing-key" || loadState === "error" ? /* @__PURE__ */ jsx3("div", {
477
+ loadState === "missing-key" || loadState === "error" ? /* @__PURE__ */ jsx("div", {
575
478
  className: "bg-background/85 absolute inset-0 grid place-items-center p-6 text-center backdrop-blur-sm",
576
- children: /* @__PURE__ */ jsxs2("div", {
479
+ children: /* @__PURE__ */ jsxs("div", {
577
480
  className: "bg-card text-card-foreground max-w-sm rounded-lg border p-5 shadow-sm",
578
481
  role: "alert",
579
482
  children: [
580
- /* @__PURE__ */ jsx3("p", {
483
+ /* @__PURE__ */ jsx("p", {
581
484
  className: "text-sm font-semibold",
582
485
  children: loadState === "missing-key" ? labels.missingKeyTitle : labels.errorTitle
583
486
  }),
584
- /* @__PURE__ */ jsx3("p", {
487
+ /* @__PURE__ */ jsx("p", {
585
488
  className: "text-muted-foreground mt-2 text-xs",
586
489
  children: loadState === "missing-key" ? labels.missingKeyBody : labels.errorBody
587
490
  })
@@ -592,135 +495,15 @@ var MapMenuMap = ({
592
495
  });
593
496
  };
594
497
 
595
- // ../../src/components/ui/input.tsx
596
- import { Input as InputPrimitive } from "@base-ui/react/input";
597
- import { jsx as jsx4 } from "react/jsx-runtime";
598
- function Input({ className, type, ...props }) {
599
- return /* @__PURE__ */ jsx4(InputPrimitive, {
600
- type,
601
- "data-slot": "input",
602
- className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
603
- ...props
604
- });
605
- }
606
-
607
- // ../../src/components/ui/select.tsx
608
- import { Select as SelectPrimitive } from "@base-ui/react/select";
609
- import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
610
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
611
- "use client";
612
- var Select = SelectPrimitive.Root;
613
- function SelectValue({ className, ...props }) {
614
- return /* @__PURE__ */ jsx5(SelectPrimitive.Value, {
615
- "data-slot": "select-value",
616
- className: cn("flex flex-1 text-left", className),
617
- ...props
618
- });
619
- }
620
- function SelectTrigger({
621
- className,
622
- size = "default",
623
- children,
624
- ...props
625
- }) {
626
- return /* @__PURE__ */ jsxs3(SelectPrimitive.Trigger, {
627
- "data-slot": "select-trigger",
628
- "data-size": size,
629
- className: cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
630
- ...props,
631
- children: [
632
- children,
633
- /* @__PURE__ */ jsx5(SelectPrimitive.Icon, {
634
- render: /* @__PURE__ */ jsx5(ChevronDownIcon, {
635
- className: "text-muted-foreground pointer-events-none size-4"
636
- })
637
- })
638
- ]
639
- });
640
- }
641
- function SelectContent({
642
- className,
643
- children,
644
- side = "bottom",
645
- sideOffset = 4,
646
- align = "start",
647
- alignOffset = 0,
648
- alignItemWithTrigger = false,
649
- ...props
650
- }) {
651
- return /* @__PURE__ */ jsx5(SelectPrimitive.Portal, {
652
- children: /* @__PURE__ */ jsx5(SelectPrimitive.Positioner, {
653
- side,
654
- sideOffset,
655
- align,
656
- alignOffset,
657
- alignItemWithTrigger,
658
- className: "isolate z-50",
659
- children: /* @__PURE__ */ jsxs3(SelectPrimitive.Popup, {
660
- "data-slot": "select-content",
661
- "data-align-trigger": alignItemWithTrigger,
662
- className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none", className),
663
- ...props,
664
- children: [
665
- /* @__PURE__ */ jsx5(SelectScrollUpButton, {}),
666
- /* @__PURE__ */ jsx5(SelectPrimitive.List, {
667
- children
668
- }),
669
- /* @__PURE__ */ jsx5(SelectScrollDownButton, {})
670
- ]
671
- })
672
- })
673
- });
674
- }
675
- function SelectItem({
676
- className,
677
- children,
678
- ...props
679
- }) {
680
- return /* @__PURE__ */ jsxs3(SelectPrimitive.Item, {
681
- "data-slot": "select-item",
682
- className: cn("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
683
- ...props,
684
- children: [
685
- /* @__PURE__ */ jsx5(SelectPrimitive.ItemText, {
686
- className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
687
- children
688
- }),
689
- /* @__PURE__ */ jsx5(SelectPrimitive.ItemIndicator, {
690
- render: /* @__PURE__ */ jsx5("span", {
691
- className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
692
- }),
693
- children: /* @__PURE__ */ jsx5(CheckIcon, {
694
- className: "pointer-events-none"
695
- })
696
- })
697
- ]
698
- });
699
- }
700
- function SelectScrollUpButton({
701
- className,
702
- ...props
703
- }) {
704
- return /* @__PURE__ */ jsx5(SelectPrimitive.ScrollUpArrow, {
705
- "data-slot": "select-scroll-up-button",
706
- className: cn("bg-popover top-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
707
- ...props,
708
- children: /* @__PURE__ */ jsx5(ChevronUpIcon, {})
709
- });
710
- }
711
- function SelectScrollDownButton({
712
- className,
713
- ...props
714
- }) {
715
- return /* @__PURE__ */ jsx5(SelectPrimitive.ScrollDownArrow, {
716
- "data-slot": "select-scroll-down-button",
717
- className: cn("bg-popover bottom-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
718
- ...props,
719
- children: /* @__PURE__ */ jsx5(ChevronDownIcon, {})
720
- });
721
- }
722
-
723
498
  // ../../src/components/map-menu/react.tsx
499
+ import { Input } from "@/components/ui/input";
500
+ import {
501
+ Select,
502
+ SelectContent,
503
+ SelectItem,
504
+ SelectTrigger,
505
+ SelectValue
506
+ } from "@/components/ui/select";
724
507
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
725
508
 
726
509
  // ../../src/components/map-menu/index.ts
@@ -977,7 +760,7 @@ var update = Component.define(mapMenuOptions).update({
977
760
  });
978
761
 
979
762
  // ../../src/components/map-menu/react.tsx
980
- import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment2 } from "react/jsx-runtime";
763
+ import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
981
764
  var MapMenu = (props) => {
982
765
  const mapMenuClasses = resolveMapMenuClasses(props.classes);
983
766
  const {
@@ -1083,16 +866,16 @@ var MapMenu = (props) => {
1083
866
  setApplying(false);
1084
867
  }
1085
868
  };
1086
- const content = /* @__PURE__ */ jsxs4(Fragment2, {
869
+ const content = /* @__PURE__ */ jsxs2(Fragment2, {
1087
870
  children: [
1088
- !inline ? /* @__PURE__ */ jsxs4(DialogHeader, {
871
+ !inline ? /* @__PURE__ */ jsxs2(DialogHeader, {
1089
872
  className: "shrink-0 px-5 pt-6 pr-16 pb-5 text-left sm:px-7 sm:pt-[25px] sm:pb-[22px] [@media(max-height:599px)]:py-4",
1090
873
  children: [
1091
- /* @__PURE__ */ jsx6(DialogTitle, {
874
+ /* @__PURE__ */ jsx2(DialogTitle, {
1092
875
  className: "text-2xl font-semibold",
1093
876
  children: labels.title
1094
877
  }),
1095
- /* @__PURE__ */ jsx6(Button, {
878
+ /* @__PURE__ */ jsx2(Button, {
1096
879
  type: "button",
1097
880
  variant: "ghost",
1098
881
  size: "icon",
@@ -1100,38 +883,38 @@ var MapMenu = (props) => {
1100
883
  disabled: applying,
1101
884
  "aria-label": labels.close,
1102
885
  onClick: () => changeOpen(false),
1103
- children: /* @__PURE__ */ jsx6(X, {})
886
+ children: /* @__PURE__ */ jsx2(X, {})
1104
887
  })
1105
888
  ]
1106
889
  }) : null,
1107
- /* @__PURE__ */ jsxs4("div", {
890
+ /* @__PURE__ */ jsxs2("div", {
1108
891
  className: inline ? "flex min-w-0 flex-col gap-4" : "flex min-h-0 min-w-0 flex-1 flex-col gap-[18px] overflow-y-auto px-5 pb-6 sm:px-7 [@media(max-height:599px)]:pb-3",
1109
892
  children: [
1110
- /* @__PURE__ */ jsxs4("fieldset", {
893
+ /* @__PURE__ */ jsxs2("fieldset", {
1111
894
  disabled: applying,
1112
895
  "data-slot": "map-menu-toolbar",
1113
896
  className: cn("grid min-w-0 shrink-0 grid-cols-1 items-end gap-3", onUseCurrentLocation && "sm:grid-cols-[minmax(0,1fr)_max-content]"),
1114
897
  children: [
1115
- /* @__PURE__ */ jsxs4("div", {
898
+ /* @__PURE__ */ jsxs2("div", {
1116
899
  className: "relative flex min-w-0 flex-col gap-2",
1117
900
  onBlur: (event) => {
1118
901
  if (!event.currentTarget.contains(event.relatedTarget))
1119
902
  setDropdownOpen(false);
1120
903
  },
1121
904
  children: [
1122
- /* @__PURE__ */ jsx6("label", {
905
+ /* @__PURE__ */ jsx2("label", {
1123
906
  htmlFor: `${id}-input`,
1124
907
  className: "text-sm font-medium",
1125
908
  children: labels.location
1126
909
  }),
1127
- /* @__PURE__ */ jsxs4("div", {
910
+ /* @__PURE__ */ jsxs2("div", {
1128
911
  className: "relative",
1129
912
  children: [
1130
- /* @__PURE__ */ jsx6(Search, {
913
+ /* @__PURE__ */ jsx2(Search, {
1131
914
  "aria-hidden": "true",
1132
915
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3.5 size-4 -translate-y-1/2"
1133
916
  }),
1134
- /* @__PURE__ */ jsx6(Input, {
917
+ /* @__PURE__ */ jsx2(Input, {
1135
918
  ref: inputRef,
1136
919
  id: `${id}-input`,
1137
920
  value: input,
@@ -1173,7 +956,7 @@ var MapMenu = (props) => {
1173
956
  }
1174
957
  }
1175
958
  }),
1176
- input ? /* @__PURE__ */ jsx6("button", {
959
+ input ? /* @__PURE__ */ jsx2("button", {
1177
960
  type: "button",
1178
961
  "aria-label": labels.clear,
1179
962
  className: "text-muted-foreground absolute top-[3px] right-1 grid size-11 cursor-pointer place-items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",
@@ -1183,20 +966,20 @@ var MapMenu = (props) => {
1183
966
  setActiveIndex(-1);
1184
967
  inputRef.current?.focus();
1185
968
  },
1186
- children: /* @__PURE__ */ jsx6(X, {
969
+ children: /* @__PURE__ */ jsx2(X, {
1187
970
  className: "size-4"
1188
971
  })
1189
972
  }) : null
1190
973
  ]
1191
974
  }),
1192
- dropdownOpen ? /* @__PURE__ */ jsxs4("div", {
975
+ dropdownOpen ? /* @__PURE__ */ jsxs2("div", {
1193
976
  id: `${id}-suggestions`,
1194
977
  role: "listbox",
1195
978
  "aria-label": labels.suggestions,
1196
979
  "aria-busy": loadingSuggestions,
1197
980
  className: "bg-popover text-popover-foreground absolute inset-x-0 top-full z-30 mt-1 max-h-[min(16rem,35dvh)] overflow-y-auto rounded-md border p-1 shadow-lg",
1198
981
  children: [
1199
- suggestions.map((location, index) => /* @__PURE__ */ jsxs4("button", {
982
+ suggestions.map((location, index) => /* @__PURE__ */ jsxs2("button", {
1200
983
  id: `${id}-option-${index}`,
1201
984
  type: "button",
1202
985
  role: "option",
@@ -1207,19 +990,19 @@ var MapMenu = (props) => {
1207
990
  onMouseDown: (event) => event.preventDefault(),
1208
991
  onClick: () => select(location),
1209
992
  children: [
1210
- /* @__PURE__ */ jsx6(MapPin, {
993
+ /* @__PURE__ */ jsx2(MapPin, {
1211
994
  "aria-hidden": "true",
1212
995
  className: "size-4 shrink-0",
1213
996
  style: { color: overlayColor }
1214
997
  }),
1215
- /* @__PURE__ */ jsxs4("span", {
998
+ /* @__PURE__ */ jsxs2("span", {
1216
999
  className: "min-w-0",
1217
1000
  children: [
1218
- /* @__PURE__ */ jsx6("span", {
1001
+ /* @__PURE__ */ jsx2("span", {
1219
1002
  className: mapMenuClasses.resultTitle,
1220
1003
  children: location.title ?? location.label
1221
1004
  }),
1222
- location.details ? /* @__PURE__ */ jsx6("span", {
1005
+ location.details ? /* @__PURE__ */ jsx2("span", {
1223
1006
  className: mapMenuClasses.resultDescription,
1224
1007
  children: location.details
1225
1008
  }) : null
@@ -1227,15 +1010,15 @@ var MapMenu = (props) => {
1227
1010
  })
1228
1011
  ]
1229
1012
  }, location.id)),
1230
- loadingSuggestions ? /* @__PURE__ */ jsx6("p", {
1013
+ loadingSuggestions ? /* @__PURE__ */ jsx2("p", {
1231
1014
  role: "status",
1232
1015
  className: mapMenuClasses.status,
1233
1016
  children: labels.loading
1234
- }) : suggestionsError ? /* @__PURE__ */ jsx6("p", {
1017
+ }) : suggestionsError ? /* @__PURE__ */ jsx2("p", {
1235
1018
  role: "alert",
1236
1019
  className: mapMenuClasses.error,
1237
1020
  children: suggestionsError
1238
- }) : !suggestions.length ? /* @__PURE__ */ jsx6("p", {
1021
+ }) : !suggestions.length ? /* @__PURE__ */ jsx2("p", {
1239
1022
  className: mapMenuClasses.status,
1240
1023
  children: labels.noResults
1241
1024
  }) : null
@@ -1243,7 +1026,7 @@ var MapMenu = (props) => {
1243
1026
  }) : null
1244
1027
  ]
1245
1028
  }),
1246
- onUseCurrentLocation ? /* @__PURE__ */ jsxs4(Button, {
1029
+ onUseCurrentLocation ? /* @__PURE__ */ jsxs2(Button, {
1247
1030
  type: "button",
1248
1031
  variant: "outline",
1249
1032
  "data-slot": "map-menu-current",
@@ -1251,30 +1034,30 @@ var MapMenu = (props) => {
1251
1034
  className: "bg-card h-[50px] w-max gap-[7px] justify-self-start px-3 shadow-none",
1252
1035
  onClick: onUseCurrentLocation,
1253
1036
  children: [
1254
- /* @__PURE__ */ jsx6(LocateFixed2, {
1037
+ /* @__PURE__ */ jsx2(LocateFixed2, {
1255
1038
  className: "text-foreground size-[17px]"
1256
1039
  }),
1257
1040
  labels.currentLocation
1258
1041
  ]
1259
1042
  }) : null,
1260
- /* @__PURE__ */ jsxs4("div", {
1043
+ /* @__PURE__ */ jsxs2("div", {
1261
1044
  className: "col-span-full grid text-xs leading-5",
1262
1045
  children: [
1263
- [labels.ipNotice, labels.browserNotice, labels.searchHint].map((text) => /* @__PURE__ */ jsx6("span", {
1046
+ [labels.ipNotice, labels.browserNotice, labels.searchHint].map((text) => /* @__PURE__ */ jsx2("span", {
1264
1047
  "aria-hidden": "true",
1265
1048
  className: "invisible col-start-1 row-start-1 pl-6",
1266
1049
  children: text
1267
1050
  }, text)),
1268
- notice ? /* @__PURE__ */ jsxs4("p", {
1051
+ notice ? /* @__PURE__ */ jsxs2("p", {
1269
1052
  role: "status",
1270
1053
  "data-slot": "map-menu-provenance",
1271
1054
  className: "text-muted-foreground col-start-1 row-start-1 flex items-start gap-2",
1272
1055
  children: [
1273
- /* @__PURE__ */ jsx6(MapPin, {
1056
+ /* @__PURE__ */ jsx2(MapPin, {
1274
1057
  "aria-hidden": "true",
1275
1058
  className: "text-foreground mt-0.5 size-4 shrink-0"
1276
1059
  }),
1277
- /* @__PURE__ */ jsx6("span", {
1060
+ /* @__PURE__ */ jsx2("span", {
1278
1061
  className: "wrap-anywhere",
1279
1062
  children: notice
1280
1063
  })
@@ -1282,15 +1065,15 @@ var MapMenu = (props) => {
1282
1065
  }) : null
1283
1066
  ]
1284
1067
  }),
1285
- radiusEnabled ? /* @__PURE__ */ jsxs4("div", {
1068
+ radiusEnabled ? /* @__PURE__ */ jsxs2("div", {
1286
1069
  className: "after:bg-border col-span-full flex flex-wrap items-center gap-3 after:h-px after:flex-1",
1287
1070
  children: [
1288
- /* @__PURE__ */ jsx6("label", {
1071
+ /* @__PURE__ */ jsx2("label", {
1289
1072
  htmlFor: `${id}-radius`,
1290
1073
  className: "text-sm font-medium",
1291
1074
  children: labels.searchWithin
1292
1075
  }),
1293
- /* @__PURE__ */ jsxs4(Select, {
1076
+ /* @__PURE__ */ jsxs2(Select, {
1294
1077
  value: radiusKm,
1295
1078
  items: radiusOptions.map((radius) => ({
1296
1079
  value: radius,
@@ -1302,14 +1085,14 @@ var MapMenu = (props) => {
1302
1085
  props.onRadiusChange(value);
1303
1086
  },
1304
1087
  children: [
1305
- /* @__PURE__ */ jsx6(SelectTrigger, {
1088
+ /* @__PURE__ */ jsx2(SelectTrigger, {
1306
1089
  id: `${id}-radius`,
1307
1090
  className: "bg-card min-w-24 shadow-none data-[size=default]:h-11",
1308
- children: /* @__PURE__ */ jsx6(SelectValue, {})
1091
+ children: /* @__PURE__ */ jsx2(SelectValue, {})
1309
1092
  }),
1310
- /* @__PURE__ */ jsx6(SelectContent, {
1093
+ /* @__PURE__ */ jsx2(SelectContent, {
1311
1094
  "data-map-menu-radius-popup": "",
1312
- children: radiusOptions.map((radius) => /* @__PURE__ */ jsxs4(SelectItem, {
1095
+ children: radiusOptions.map((radius) => /* @__PURE__ */ jsxs2(SelectItem, {
1313
1096
  value: radius,
1314
1097
  children: [
1315
1098
  radius,
@@ -1323,11 +1106,11 @@ var MapMenu = (props) => {
1323
1106
  }) : null
1324
1107
  ]
1325
1108
  }),
1326
- /* @__PURE__ */ jsxs4("div", {
1109
+ /* @__PURE__ */ jsxs2("div", {
1327
1110
  "data-slot": "map-menu-map",
1328
1111
  className: inline ? "relative h-80 min-w-0 sm:h-96" : "relative min-h-56 min-w-0 flex-[1_0_14rem] [@media(max-height:599px)]:min-h-[182px] [@media(max-height:599px)]:basis-[182px]",
1329
1112
  children: [
1330
- /* @__PURE__ */ jsx6(MapMenuMap, {
1113
+ /* @__PURE__ */ jsx2(MapMenuMap, {
1331
1114
  apiKey,
1332
1115
  center: selectedLocation?.center ?? { lat: 0, lng: 0 },
1333
1116
  zoom: !radiusEnabled && selectedLocation ? 15 : 4,
@@ -1348,7 +1131,7 @@ var MapMenu = (props) => {
1348
1131
  className: "h-full min-h-0 w-full rounded-md",
1349
1132
  controlsClassName: "bg-card rounded-md shadow-md"
1350
1133
  }),
1351
- radiusEnabled && selectedLocation ? /* @__PURE__ */ jsx6("p", {
1134
+ radiusEnabled && selectedLocation ? /* @__PURE__ */ jsx2("p", {
1352
1135
  className: "bg-card text-muted-foreground pointer-events-none absolute bottom-[25px] left-3 m-0 max-w-[calc(100%-24px)] rounded px-2.5 py-[7px] text-xs shadow-sm",
1353
1136
  children: labels.radiusHint
1354
1137
  }) : null
@@ -1356,18 +1139,18 @@ var MapMenu = (props) => {
1356
1139
  })
1357
1140
  ]
1358
1141
  }),
1359
- /* @__PURE__ */ jsxs4(DialogFooter, {
1142
+ /* @__PURE__ */ jsxs2(DialogFooter, {
1360
1143
  className: inline ? "gap-3 border-0 bg-transparent p-0" : "shrink-0 gap-3 border-0 bg-transparent px-5 pt-[18px] pb-[max(18px,env(safe-area-inset-bottom))] sm:px-7 [@media(max-height:599px)]:pt-3 [@media(max-height:599px)]:pb-[max(12px,env(safe-area-inset-bottom))]",
1361
1144
  children: [
1362
- error || confirmFailed ? /* @__PURE__ */ jsx6("p", {
1145
+ error || confirmFailed ? /* @__PURE__ */ jsx2("p", {
1363
1146
  role: "alert",
1364
1147
  className: "text-destructive w-full self-center text-sm sm:mr-auto sm:w-auto",
1365
1148
  children: error ?? labels.confirmError
1366
1149
  }) : null,
1367
- /* @__PURE__ */ jsxs4("div", {
1150
+ /* @__PURE__ */ jsxs2("div", {
1368
1151
  className: "flex gap-2",
1369
1152
  children: [
1370
- /* @__PURE__ */ jsx6(Button, {
1153
+ /* @__PURE__ */ jsx2(Button, {
1371
1154
  type: "button",
1372
1155
  variant: "outline",
1373
1156
  className: "bg-card min-h-11 flex-1",
@@ -1375,7 +1158,7 @@ var MapMenu = (props) => {
1375
1158
  onClick: () => changeOpen(false),
1376
1159
  children: labels.cancel
1377
1160
  }),
1378
- /* @__PURE__ */ jsx6(Button, {
1161
+ /* @__PURE__ */ jsx2(Button, {
1379
1162
  type: "button",
1380
1163
  "data-slot": "map-menu-confirm",
1381
1164
  className: cn("min-h-11 flex-[2] bg-[oklch(0.9247_0.0524_66.1732)] text-zinc-950 hover:bg-[oklch(0.9247_0.0524_66.1732)] hover:brightness-95", confirmClassName),
@@ -1390,7 +1173,7 @@ var MapMenu = (props) => {
1390
1173
  ]
1391
1174
  });
1392
1175
  if (inline) {
1393
- return /* @__PURE__ */ jsx6("section", {
1176
+ return /* @__PURE__ */ jsx2("section", {
1394
1177
  role: "group",
1395
1178
  "aria-label": labels.title,
1396
1179
  "data-slot": "map-menu",
@@ -1399,13 +1182,13 @@ var MapMenu = (props) => {
1399
1182
  children: content
1400
1183
  });
1401
1184
  }
1402
- return /* @__PURE__ */ jsx6(Dialog, {
1185
+ return /* @__PURE__ */ jsx2(Dialog, {
1403
1186
  open,
1404
1187
  onOpenChange: changeOpen,
1405
- children: /* @__PURE__ */ jsxs4(DialogPortal, {
1188
+ children: /* @__PURE__ */ jsxs2(DialogPortal, {
1406
1189
  children: [
1407
- /* @__PURE__ */ jsx6(DialogOverlay, {}),
1408
- /* @__PURE__ */ jsx6(DialogPrimitive2.Popup, {
1190
+ /* @__PURE__ */ jsx2(DialogOverlay, {}),
1191
+ /* @__PURE__ */ jsx2(DialogPrimitive.Popup, {
1409
1192
  ref: popupRef,
1410
1193
  initialFocus: inputRef,
1411
1194
  "aria-describedby": undefined,