@stachelock/ui 0.6.1 → 0.6.2

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 (49) hide show
  1. package/dist/composables/index.js +33 -30
  2. package/dist/index.js +2396 -1152
  3. package/dist/src/components/UiBanner.d.ts +1 -1
  4. package/dist/src/components/UiLoadingDots.d.ts +1 -1
  5. package/dist/src/components/UiMenu.d.ts +1 -1
  6. package/dist/src/components/UiModal.d.ts +1 -1
  7. package/dist/src/components/collection-editor/CollectionItemList.d.ts +42 -0
  8. package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +29 -0
  9. package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +26 -0
  10. package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +26 -0
  11. package/dist/src/components/collection-editor/index.d.ts +5 -0
  12. package/dist/src/components/forms/FormFieldWrapper.d.ts +1 -1
  13. package/dist/src/components/index.d.ts +2 -0
  14. package/dist/src/components/inputs/AddressInput.d.ts +1 -1
  15. package/dist/src/components/inputs/ComboboxInput.d.ts +2 -2
  16. package/dist/src/components/inputs/DatepickerInput.d.ts +12 -12
  17. package/dist/src/components/inputs/EmailInput.d.ts +2 -2
  18. package/dist/src/components/inputs/PhoneInput.d.ts +2 -2
  19. package/dist/src/components/inputs/RichTextInput.d.ts +2 -2
  20. package/dist/src/components/inputs/SelectInput.d.ts +2 -2
  21. package/dist/src/components/inputs/SelectTextInput.d.ts +4 -4
  22. package/dist/src/components/inputs/TagifyInput.d.ts +2 -2
  23. package/dist/src/components/inputs/TextInput.d.ts +3 -3
  24. package/dist/src/components/layouts/CardLayout.d.ts +1 -1
  25. package/dist/src/components/maps/UiInfoWindow.d.ts +2 -2
  26. package/dist/src/components/maps/UiMap.d.ts +1 -1
  27. package/dist/src/components/maps/UiMapAll.d.ts +6 -6
  28. package/dist/src/components/maps/UiMapMarker.d.ts +2 -2
  29. package/dist/src/components/modals/BaseModal.d.ts +1 -1
  30. package/dist/src/components/profiles/BentoProfileLayout.d.ts +9 -0
  31. package/dist/src/components/profiles/ProfileCard.d.ts +30 -0
  32. package/dist/src/components/profiles/ProfileContactCard.d.ts +12 -0
  33. package/dist/src/components/profiles/ProfileHeaderCard.d.ts +20 -0
  34. package/dist/src/components/profiles/ProfileLocationCard.d.ts +17 -0
  35. package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +11 -0
  36. package/dist/src/components/profiles/ProfilePersonalCard.d.ts +10 -0
  37. package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +11 -0
  38. package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +11 -0
  39. package/dist/src/components/profiles/index.d.ts +9 -0
  40. package/dist/src/composables/index.d.ts +1 -0
  41. package/dist/src/composables/useCollectionEditor.d.ts +64 -0
  42. package/dist/src/composables/useNotifications.d.ts +4 -4
  43. package/dist/src/types/collection-editor.d.ts +134 -0
  44. package/dist/src/types/index.d.ts +2 -0
  45. package/dist/src/types/profiles.d.ts +149 -0
  46. package/dist/style.css +1 -1
  47. package/dist/ui.css +1 -1
  48. package/dist/useCollectionEditor-BYyoAT0U.js +121 -0
  49. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,135 +1,139 @@
1
- import { g as Ee } from "./id-DafBB_QF.js";
2
- import { a as ql, s as eo } from "./id-DafBB_QF.js";
3
- import { defineAsyncComponent as Le, defineComponent as D, ref as F, watch as ee, createBlock as U, openBlock as c, unref as x, withCtx as k, createVNode as y, createElementVNode as t, normalizeStyle as z, createTextVNode as E, withDirectives as Y, vModelText as ae, createElementBlock as f, Fragment as V, renderList as R, normalizeClass as _, toDisplayString as w, computed as C, createCommentVNode as b, inject as Pe, onMounted as De, reactive as ue, resolveDynamicComponent as Fe, useSlots as Be, renderSlot as v, Transition as re, vShow as Ue } from "vue";
4
- import M from "./inputs/TextInput.js";
5
- import { useCalendar as to } from "./composables/useCalendar.js";
6
- import { c as oo, u as ao } from "./useEventSegments-B-r_8zCW.js";
7
- import { useFormValidation as no } from "./composables/useFormValidation.js";
8
- import { U as co, W as uo, d as fo, i as mo, u as po } from "./useMap-BGg0H582.js";
9
- import { useModal as yo } from "./composables/useModal.js";
10
- import { useNotifications as xo } from "./composables/useNotifications.js";
11
- import { g as bo, u as ko } from "./useSimpleTabs-CSgkChEU.js";
12
- import { f as wo, i as $o, s as So, a as _o, t as To, c as Io, b as Ao, u as Mo } from "./useStringTransform-CSr7nZWg.js";
13
- import { useTabs as Eo } from "./composables/useTabs.js";
14
- import { useTheme as fe, presetThemes as Ve } from "./composables/useTheme.js";
15
- import { _ as Po } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-C0R4ADBb.js";
16
- import { _ as je } from "./UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js";
17
- import { _ as X } from "./UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js";
18
- import { _ as Fo } from "./UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js";
19
- import { _ as Uo } from "./UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js";
20
- import { _ as Oe } from "./UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js";
21
- import { _ as jo } from "./UiMenu.vue_vue_type_script_setup_true_lang-gnoIJm6x.js";
22
- import { _ as No } from "./UiModal.vue_vue_type_script_setup_true_lang-BZC7aN7K.js";
23
- import { _ as Go } from "./UiNavLink.vue_vue_type_script_setup_true_lang-C5Gicm8o.js";
24
- import { _ as Ho } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js";
25
- import { _ as Zo } from "./UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js";
26
- import { _ as Xo } from "./UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js";
27
- import { _ as Qo } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-hGa2MLyo.js";
28
- import { _ as ea } from "./DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js";
29
- import { _ as ta } from "./EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js";
30
- import { _ as oa } from "./EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js";
31
- import { _ as ra } from "./MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js";
32
- import { _ as ia } from "./YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js";
33
- import { _ as ca } from "./BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js";
34
- import { _ as fa } from "./FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js";
35
- import { _ as pa } from "./LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js";
36
- import { _ as ya } from "./PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js";
37
- import { _ as xa } from "./SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js";
38
- import { _ as ba } from "./StatCard.vue_vue_type_script_setup_true_lang-B5SuaSXL.js";
39
- import { _ as Ca } from "./ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js";
40
- import { _ as $a } from "./EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js";
41
- import { _ as _a } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js";
42
- import { _ as Ia } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js";
43
- import { _ as Ma } from "./AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-6taLcPq0.js";
44
- import { _ as Ne } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js";
45
- import { _ as Re } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-BigvbBAU.js";
46
- import { _ as Ea } from "./DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js";
47
- import { _ as Pa } from "./EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js";
48
- import { _ as Fa } from "./EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js";
49
- import { _ as Ua } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js";
50
- import { _ as ja } from "./HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js";
51
- import { _ as Ge } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js";
52
- import { _ as Ke } from "./SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js";
53
- import { _ as ne } from "./SelectInput.vue_vue_type_script_setup_true_lang-D4GNv0MY.js";
54
- import { _ as Na } from "./SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js";
55
- import { _ as Ga } from "./SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js";
56
- import { _ as Ha } from "./TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js";
57
- import { _ as Za } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js";
58
- import { _ as Xa } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
59
- import { _ as Qa } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
60
- import { _ as er } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js";
61
- import { _ as tr } from "./NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js";
62
- import { _ as or } from "./ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js";
63
- import { _ as rr } from "./ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js";
64
- import { _ as ir } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-CZ21EVcZ.js";
65
- import { _ as cr } from "./UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js";
66
- import { _ as fr } from "./AlertModal.vue_vue_type_script_setup_true_lang-DzhVQdx4.js";
67
- import { _ as pr } from "./BaseModal.vue_vue_type_script_setup_true_lang--iGzFCnC.js";
68
- import { _ as yr } from "./NotificationContainer.vue_vue_type_style_index_0_lang-CvJRwezr.js";
69
- import { _ as xr } from "./NotificationToast.vue_vue_type_script_setup_true_lang-BBWpW4km.js";
70
- import { _ as br } from "./StepperPanels.vue_vue_type_script_setup_true_lang-DPLQ9mQn.js";
71
- import { _ as Cr } from "./InlineTabs.vue_vue_type_script_setup_true_lang-B5w4yzcZ.js";
72
- import { _ as $r } from "./TabGroup.vue_vue_type_script_setup_true_lang-BsbiEA4E.js";
73
- import { _ as _r } from "./TabGroupUnderline.vue_vue_type_script_setup_true_lang-CPcp1-Za.js";
74
- import { _ as Ir } from "./TabsInPills.vue_vue_type_script_setup_true_lang-U5CdRL7s.js";
75
- import { _ as Mr } from "./BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js";
76
- import { _ as Er } from "./CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js";
77
- import { _ as Pr } from "./DisclosureWrapper.vue_vue_type_script_setup_true_lang-CgHPOC-w.js";
78
- import { _ as Fr } from "./FormErrorWrapper.vue_vue_type_script_setup_true_lang-D7ZAgfPs.js";
79
- import { default as Ur } from "./components/CloudinaryImage.js";
80
- import { TransitionRoot as Q, Dialog as He, TransitionChild as ie, DialogPanel as We, DialogTitle as Ze, Combobox as Je, ComboboxInput as Xe, ComboboxButton as Ye, ComboboxOptions as Qe, ComboboxOption as qe } from "@headlessui/vue";
81
- import { SwatchIcon as es, XMarkIcon as ss, ClockIcon as de, ExclamationCircleIcon as ts, CheckCircleIcon as ls } from "@heroicons/vue/24/outline";
82
- import Z from "./components/Button.js";
83
- import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
84
- import { default as jr } from "./components/Banner.js";
85
- import { default as Nr } from "./components/Breadcrumb.js";
86
- import { default as Gr } from "./components/LoadingDots.js";
87
- import { default as Hr } from "./calendars/CalendarDashboard.js";
88
- import { default as Zr } from "./calendars/WeekCalendar.js";
89
- import { default as Xr } from "./charts/BaseChart.js";
90
- import { areaChartConfig as Qr, barChartConfig as qr, baseTheme as en, chartColors as sn, chartTypography as tn, formatDuration as ln, formatNumber as on, formatPercentage as an, funnelChartConfig as rn, getAreaGradient as nn, hexToRgb as dn, lineChartConfig as cn, pieChartConfig as un, stachelockColors as fn, toRgba as mn } from "./charts/chartTheme.js";
91
- import os from "./forms/FormFieldWrapper.js";
92
- import { LockClosedIcon as as, MagnifyingGlassIcon as rs, CheckIcon as ns, ChevronDownIcon as is, ChevronUpIcon as ds } from "@heroicons/vue/20/solid";
93
- import { useField as cs } from "vee-validate";
94
- import { debounce as ce } from "lodash-es";
95
- import { Loader as us } from "@googlemaps/js-api-loader";
96
- import { default as gn } from "./inputs/PhoneInput.js";
97
- import { default as hn } from "./inputs/RichTextInput.js";
98
- import { default as vn } from "./loading/ContentSkeleton.js";
99
- import { default as kn } from "./loading/SmartLoadingIndicator.js";
100
- import { default as wn } from "./maps/GoogleMap.js";
101
- import { default as Sn } from "./maps/UiInfoWindow.js";
102
- import { default as Tn } from "./maps/UiMap.js";
103
- import { default as An } from "./maps/UiMapMarker.js";
104
- import { default as zn } from "./modals/ImageCropperModal.js";
105
- var fs = /* @__PURE__ */ ((s) => (s.Verified = "verified", s.Error = "error", s.Unverified = "unverified", s.Pending = "pending", s))(fs || {});
106
- function Fl(s) {
107
- return ["street", "city", "state", "zipcode", "country"].includes(s);
1
+ import { g as Xe } from "./id-DafBB_QF.js";
2
+ import { a as kr, s as wr } from "./id-DafBB_QF.js";
3
+ import { defineAsyncComponent as qe, defineComponent as F, ref as K, watch as de, createBlock as D, openBlock as i, unref as _, withCtx as T, createVNode as C, createElementVNode as s, normalizeStyle as O, createTextVNode as j, withDirectives as me, vModelText as ve, createElementBlock as m, Fragment as G, renderList as Y, normalizeClass as E, toDisplayString as w, computed as b, createCommentVNode as k, withKeys as ke, withModifiers as Te, renderSlot as M, resolveDynamicComponent as ge, h as ne, inject as Le, onMounted as Je, reactive as Me, useSlots as Pe, Transition as we, vShow as Ze } from "vue";
4
+ import R from "./inputs/TextInput.js";
5
+ import { useCalendar as $r } from "./composables/useCalendar.js";
6
+ import { u as Qe, v as ye } from "./useCollectionEditor-BYyoAT0U.js";
7
+ import { C as Ir } from "./useCollectionEditor-BYyoAT0U.js";
8
+ import { c as zr, u as Tr } from "./useEventSegments-B-r_8zCW.js";
9
+ import { useFormValidation as Mr } from "./composables/useFormValidation.js";
10
+ import { U as Er, W as Ar, d as Dr, i as Fr, u as Nr } from "./useMap-BGg0H582.js";
11
+ import { useModal as Vr } from "./composables/useModal.js";
12
+ import { useNotifications as jr } from "./composables/useNotifications.js";
13
+ import { g as Rr, u as Hr } from "./useSimpleTabs-CSgkChEU.js";
14
+ import { f as Kr, i as Wr, s as Yr, a as Xr, t as qr, c as Jr, b as Zr, u as Qr } from "./useStringTransform-CSr7nZWg.js";
15
+ import { useTabs as tn } from "./composables/useTabs.js";
16
+ import { useTheme as Ee, presetThemes as et } from "./composables/useTheme.js";
17
+ import { _ as ln } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-C0R4ADBb.js";
18
+ import { _ as tt } from "./UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js";
19
+ import { _ as ue } from "./UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js";
20
+ import { _ as on } from "./UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js";
21
+ import { _ as nn } from "./UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js";
22
+ import { _ as st } from "./UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js";
23
+ import { _ as cn } from "./UiMenu.vue_vue_type_script_setup_true_lang-gnoIJm6x.js";
24
+ import { _ as mn } from "./UiModal.vue_vue_type_script_setup_true_lang-BZC7aN7K.js";
25
+ import { _ as pn } from "./UiNavLink.vue_vue_type_script_setup_true_lang-C5Gicm8o.js";
26
+ import { _ as yn } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js";
27
+ import { _ as xn } from "./UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js";
28
+ import { _ as vn } from "./UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js";
29
+ import { _ as wn } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-hGa2MLyo.js";
30
+ import { _ as $n } from "./DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js";
31
+ import { _ as In } from "./EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js";
32
+ import { _ as zn } from "./EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js";
33
+ import { _ as Ln } from "./MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js";
34
+ import { _ as Pn } from "./YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js";
35
+ import { _ as An } from "./BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js";
36
+ import { _ as Fn } from "./FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js";
37
+ import { _ as Un } from "./LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js";
38
+ import { _ as Bn } from "./PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js";
39
+ import { _ as On } from "./SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js";
40
+ import { _ as Hn } from "./StatCard.vue_vue_type_script_setup_true_lang-B5SuaSXL.js";
41
+ import { format as q, differenceInYears as ce, differenceInMonths as Ae, isValid as J, parseISO as re } from "date-fns";
42
+ import { _ as lt } from "./AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-6taLcPq0.js";
43
+ import { _ as at } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js";
44
+ import { _ as ot } from "./AlertModal.vue_vue_type_script_setup_true_lang-DzhVQdx4.js";
45
+ import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
46
+ import { _ as Kn } from "./ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js";
47
+ import { _ as Yn } from "./EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js";
48
+ import { _ as qn } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js";
49
+ import { _ as rt } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js";
50
+ import { _ as nt } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-BigvbBAU.js";
51
+ import { _ as Zn } from "./DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js";
52
+ import { _ as ei } from "./EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js";
53
+ import { _ as si } from "./EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js";
54
+ import { _ as ai } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js";
55
+ import { _ as ri } from "./HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js";
56
+ import { _ as it } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js";
57
+ import { _ as dt } from "./SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js";
58
+ import { _ as Ce } from "./SelectInput.vue_vue_type_script_setup_true_lang-D4GNv0MY.js";
59
+ import { _ as ii } from "./SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js";
60
+ import { _ as ci } from "./SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js";
61
+ import { _ as mi } from "./TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js";
62
+ import { _ as pi } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js";
63
+ import { _ as yi } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
64
+ import { _ as xi } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
65
+ import { _ as vi } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js";
66
+ import { _ as wi } from "./NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js";
67
+ import { _ as $i } from "./ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js";
68
+ import { _ as Ii } from "./ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js";
69
+ import { _ as zi } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-CZ21EVcZ.js";
70
+ import { _ as Li } from "./UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js";
71
+ import { _ as Pi } from "./BaseModal.vue_vue_type_script_setup_true_lang--iGzFCnC.js";
72
+ import { _ as Ai } from "./NotificationContainer.vue_vue_type_style_index_0_lang-CvJRwezr.js";
73
+ import { _ as Fi } from "./NotificationToast.vue_vue_type_script_setup_true_lang-BBWpW4km.js";
74
+ import { SwatchIcon as ct, XMarkIcon as ut, ClockIcon as $e, ExclamationCircleIcon as mt, CheckCircleIcon as ft, PhoneIcon as _e, EnvelopeIcon as pt, GlobeAltIcon as gt, CakeIcon as De, CalendarDaysIcon as yt, BriefcaseIcon as ht, BuildingOfficeIcon as xt, MapPinIcon as Ie, BuildingLibraryIcon as bt, UserGroupIcon as vt } from "@heroicons/vue/24/outline";
75
+ import { _ as Ui } from "./StepperPanels.vue_vue_type_script_setup_true_lang-DPLQ9mQn.js";
76
+ import { _ as Bi } from "./InlineTabs.vue_vue_type_script_setup_true_lang-B5w4yzcZ.js";
77
+ import { _ as Oi } from "./TabGroup.vue_vue_type_script_setup_true_lang-BsbiEA4E.js";
78
+ import { _ as Hi } from "./TabGroupUnderline.vue_vue_type_script_setup_true_lang-CPcp1-Za.js";
79
+ import { _ as Ki } from "./TabsInPills.vue_vue_type_script_setup_true_lang-U5CdRL7s.js";
80
+ import { _ as Yi } from "./BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js";
81
+ import { _ as qi } from "./CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js";
82
+ import { _ as Zi } from "./DisclosureWrapper.vue_vue_type_script_setup_true_lang-CgHPOC-w.js";
83
+ import { _ as ed } from "./FormErrorWrapper.vue_vue_type_script_setup_true_lang-D7ZAgfPs.js";
84
+ import { default as sd } from "./components/CloudinaryImage.js";
85
+ import { TransitionRoot as fe, Dialog as kt, TransitionChild as Se, DialogPanel as wt, DialogTitle as Ct, Combobox as $t, ComboboxInput as _t, ComboboxButton as It, ComboboxOptions as St, ComboboxOption as zt } from "@headlessui/vue";
86
+ import oe from "./components/Button.js";
87
+ import { default as ad } from "./components/Banner.js";
88
+ import { default as rd } from "./components/Breadcrumb.js";
89
+ import { default as id } from "./components/LoadingDots.js";
90
+ import { default as cd } from "./calendars/CalendarDashboard.js";
91
+ import { default as md } from "./calendars/WeekCalendar.js";
92
+ import { default as pd } from "./charts/BaseChart.js";
93
+ import { areaChartConfig as yd, barChartConfig as hd, baseTheme as xd, chartColors as bd, chartTypography as vd, formatDuration as kd, formatNumber as wd, formatPercentage as Cd, funnelChartConfig as $d, getAreaGradient as _d, hexToRgb as Id, lineChartConfig as Sd, pieChartConfig as zd, stachelockColors as Td, toRgba as Ld } from "./charts/chartTheme.js";
94
+ import Tt from "./forms/FormFieldWrapper.js";
95
+ import { LockClosedIcon as Lt, MagnifyingGlassIcon as Mt, CheckIcon as Pt, ChevronDownIcon as Et, ChevronUpIcon as At } from "@heroicons/vue/20/solid";
96
+ import { useField as Dt } from "vee-validate";
97
+ import { debounce as ze } from "lodash-es";
98
+ import { Loader as Ft } from "@googlemaps/js-api-loader";
99
+ import { default as Pd } from "./inputs/PhoneInput.js";
100
+ import { default as Ad } from "./inputs/RichTextInput.js";
101
+ import { default as Fd } from "./loading/ContentSkeleton.js";
102
+ import { default as Ud } from "./loading/SmartLoadingIndicator.js";
103
+ import { default as Bd } from "./maps/GoogleMap.js";
104
+ import { default as Od } from "./maps/UiInfoWindow.js";
105
+ import { default as Hd } from "./maps/UiMap.js";
106
+ import { default as Kd } from "./maps/UiMapMarker.js";
107
+ import { default as Yd } from "./modals/ImageCropperModal.js";
108
+ import { XMarkIcon as Nt, XCircleIcon as Ut } from "@heroicons/vue/24/solid";
109
+ var Vt = /* @__PURE__ */ ((e) => (e.Verified = "verified", e.Error = "error", e.Unverified = "unverified", e.Pending = "pending", e))(Vt || {});
110
+ function er(e) {
111
+ return ["street", "city", "state", "zipcode", "country"].includes(e);
108
112
  }
109
- const ms = {
113
+ const Bt = {
110
114
  text: {
111
115
  component: "TextInput",
112
- loader: () => Promise.resolve(M)
116
+ loader: () => Promise.resolve(R)
113
117
  },
114
118
  email: {
115
119
  component: "TextInput",
116
- loader: () => Promise.resolve(M)
120
+ loader: () => Promise.resolve(R)
117
121
  },
118
122
  password: {
119
123
  component: "TextInput",
120
- loader: () => Promise.resolve(M)
124
+ loader: () => Promise.resolve(R)
121
125
  },
122
126
  number: {
123
127
  component: "TextInput",
124
- loader: () => Promise.resolve(M)
128
+ loader: () => Promise.resolve(R)
125
129
  },
126
130
  tel: {
127
131
  component: "TextInput",
128
- loader: () => Promise.resolve(M)
132
+ loader: () => Promise.resolve(R)
129
133
  },
130
134
  url: {
131
135
  component: "TextInput",
132
- loader: () => Promise.resolve(M)
136
+ loader: () => Promise.resolve(R)
133
137
  },
134
138
  textarea: {
135
139
  component: "TextAreaInput",
@@ -152,35 +156,35 @@ const ms = {
152
156
  loader: () => import("./inputs/SwitchInput.js")
153
157
  }
154
158
  };
155
- class ps {
156
- componentMap = { ...ms };
159
+ class jt {
160
+ componentMap = { ...Bt };
157
161
  loadedComponents = /* @__PURE__ */ new Map();
158
162
  /**
159
163
  * Register a new component type
160
164
  */
161
- register(e, o, l) {
162
- this.componentMap[e] = { component: o, loader: l }, this.loadedComponents.delete(e);
165
+ register(t, a, l) {
166
+ this.componentMap[t] = { component: a, loader: l }, this.loadedComponents.delete(t);
163
167
  }
164
168
  /**
165
169
  * Get a component for a field type
166
170
  */
167
- getComponent(e) {
168
- const o = this.componentMap[e];
169
- if (!o)
170
- return console.warn(`Component type "${e}" is not registered`), null;
171
- if (this.loadedComponents.has(e))
172
- return this.loadedComponents.get(e);
173
- const l = Le({
174
- loader: o.loader,
171
+ getComponent(t) {
172
+ const a = this.componentMap[t];
173
+ if (!a)
174
+ return console.warn(`Component type "${t}" is not registered`), null;
175
+ if (this.loadedComponents.has(t))
176
+ return this.loadedComponents.get(t);
177
+ const l = qe({
178
+ loader: a.loader,
175
179
  delay: 0
176
180
  });
177
- return this.loadedComponents.set(e, l), l;
181
+ return this.loadedComponents.set(t, l), l;
178
182
  }
179
183
  /**
180
184
  * Check if a component type is registered
181
185
  */
182
- hasComponent(e) {
183
- return e in this.componentMap;
186
+ hasComponent(t) {
187
+ return t in this.componentMap;
184
188
  }
185
189
  /**
186
190
  * Get all registered component types
@@ -191,8 +195,8 @@ class ps {
191
195
  /**
192
196
  * Unregister a component type
193
197
  */
194
- unregister(e) {
195
- delete this.componentMap[e], this.loadedComponents.delete(e);
198
+ unregister(t) {
199
+ delete this.componentMap[t], this.loadedComponents.delete(t);
196
200
  }
197
201
  /**
198
202
  * Clear all cached components
@@ -201,14 +205,14 @@ class ps {
201
205
  this.loadedComponents.clear();
202
206
  }
203
207
  }
204
- const me = new ps();
205
- function Bl(s, e, o) {
206
- me.register(s, e, o);
208
+ const Fe = new jt();
209
+ function tr(e, t, a) {
210
+ Fe.register(e, t, a);
207
211
  }
208
- function Ul(s) {
209
- return me.getComponent(s);
212
+ function sr(e) {
213
+ return Fe.getComponent(e);
210
214
  }
211
- const pe = {
215
+ const Ne = {
212
216
  colors: {
213
217
  primary: {
214
218
  50: "#edeff9",
@@ -311,152 +315,152 @@ const pe = {
311
315
  "2xl": "1536px"
312
316
  }
313
317
  };
314
- function gs(s, e = pe) {
315
- const o = { ...e };
316
- function l(r, d) {
317
- if (d && typeof d == "object" && !Array.isArray(d)) {
318
- for (const a in d)
319
- if (Object.prototype.hasOwnProperty.call(d, a)) {
320
- const n = r[a], S = d[a];
321
- n && typeof n == "object" && !Array.isArray(n) && S && typeof S == "object" && !Array.isArray(S) ? r[a] = l(n, S) : r[a] = S;
318
+ function Ot(e, t = Ne) {
319
+ const a = { ...t };
320
+ function l(d, u) {
321
+ if (u && typeof u == "object" && !Array.isArray(u)) {
322
+ for (const n in u)
323
+ if (Object.prototype.hasOwnProperty.call(u, n)) {
324
+ const o = d[n], g = u[n];
325
+ o && typeof o == "object" && !Array.isArray(o) && g && typeof g == "object" && !Array.isArray(g) ? d[n] = l(o, g) : d[n] = g;
322
326
  }
323
327
  }
324
- return r;
328
+ return d;
325
329
  }
326
- return l(o, s);
330
+ return l(a, e);
327
331
  }
328
- function ys(s) {
329
- let e = `:root {
332
+ function Rt(e) {
333
+ let t = `:root {
330
334
  `;
331
- return s.colors && Object.entries(s.colors).forEach(([o, l]) => {
332
- typeof l == "object" && l !== null && Object.entries(l).forEach(([r, d]) => {
333
- const a = r === "DEFAULT" ? o : `${o}-${r}`;
334
- e += ` --sl-color-${a}: ${d};
335
+ return e.colors && Object.entries(e.colors).forEach(([a, l]) => {
336
+ typeof l == "object" && l !== null && Object.entries(l).forEach(([d, u]) => {
337
+ const n = d === "DEFAULT" ? a : `${a}-${d}`;
338
+ t += ` --sl-color-${n}: ${u};
335
339
  `;
336
- const n = hs(d);
337
- n && (e += ` --sl-color-${a}-rgb: ${n};
340
+ const o = Ht(u);
341
+ o && (t += ` --sl-color-${n}-rgb: ${o};
338
342
  `);
339
343
  });
340
- }), s.spacing && Object.entries(s.spacing).forEach(([o, l]) => {
341
- e += ` --sl-spacing-${o}: ${l};
344
+ }), e.spacing && Object.entries(e.spacing).forEach(([a, l]) => {
345
+ t += ` --sl-spacing-${a}: ${l};
342
346
  `;
343
- }), s.borderRadius && Object.entries(s.borderRadius).forEach(([o, l]) => {
344
- const r = o === "DEFAULT" ? "radius" : `radius-${o}`;
345
- e += ` --sl-${r}: ${l};
347
+ }), e.borderRadius && Object.entries(e.borderRadius).forEach(([a, l]) => {
348
+ const d = a === "DEFAULT" ? "radius" : `radius-${a}`;
349
+ t += ` --sl-${d}: ${l};
346
350
  `;
347
- }), s.shadows && Object.entries(s.shadows).forEach(([o, l]) => {
348
- const r = o === "DEFAULT" ? "shadow" : `shadow-${o}`;
349
- e += ` --sl-${r}: ${l};
351
+ }), e.shadows && Object.entries(e.shadows).forEach(([a, l]) => {
352
+ const d = a === "DEFAULT" ? "shadow" : `shadow-${a}`;
353
+ t += ` --sl-${d}: ${l};
350
354
  `;
351
- }), s.typography && (s.typography.fontFamily && Object.entries(s.typography.fontFamily).forEach(([o, l]) => {
352
- e += ` --sl-font-family-${o}: ${l.join(", ")};
355
+ }), e.typography && (e.typography.fontFamily && Object.entries(e.typography.fontFamily).forEach(([a, l]) => {
356
+ t += ` --sl-font-family-${a}: ${l.join(", ")};
353
357
  `;
354
- }), s.typography.fontSize && Object.entries(s.typography.fontSize).forEach(([o, l]) => {
355
- e += ` --sl-font-size-${o}: ${l};
358
+ }), e.typography.fontSize && Object.entries(e.typography.fontSize).forEach(([a, l]) => {
359
+ t += ` --sl-font-size-${a}: ${l};
356
360
  `;
357
- })), s.breakpoints && Object.entries(s.breakpoints).forEach(([o, l]) => {
358
- e += ` --sl-breakpoint-${o}: ${l};
361
+ })), e.breakpoints && Object.entries(e.breakpoints).forEach(([a, l]) => {
362
+ t += ` --sl-breakpoint-${a}: ${l};
359
363
  `;
360
- }), e += ` --sl-ring-color: var(--sl-color-stachelock-600, #3e4b9a);
361
- `, e += ` --sl-ring-offset-color: #ffffff;
362
- `, e += ` --sl-ring-width: 2px;
363
- `, e += ` --sl-outline-color: var(--sl-color-stachelock-600, #3e4b9a);
364
- `, e += ` --sl-outline-width: 2px;
365
- `, e += `}
364
+ }), t += ` --sl-ring-color: var(--sl-color-stachelock-600, #3e4b9a);
365
+ `, t += ` --sl-ring-offset-color: #ffffff;
366
+ `, t += ` --sl-ring-width: 2px;
367
+ `, t += ` --sl-outline-color: var(--sl-color-stachelock-600, #3e4b9a);
368
+ `, t += ` --sl-outline-width: 2px;
369
+ `, t += `}
366
370
 
367
- `, e += `@media (prefers-color-scheme: dark) {
368
- `, e += ` :root {
369
- `, e += ` --sl-ring-color: var(--sl-color-stachelock-600, #3e4b9a);
370
- `, e += ` }
371
- `, e += `}
372
- `, e;
371
+ `, t += `@media (prefers-color-scheme: dark) {
372
+ `, t += ` :root {
373
+ `, t += ` --sl-ring-color: var(--sl-color-stachelock-600, #3e4b9a);
374
+ `, t += ` }
375
+ `, t += `}
376
+ `, t;
373
377
  }
374
- function Vl(s) {
375
- let e = `export default {
378
+ function lr(e) {
379
+ let t = `export default {
376
380
  `;
377
- return e += ` prefix: "sl-",
378
- `, e += ` theme: {
379
- `, e += ` extend: {
380
- `, s.colors && (e += ` colors: {
381
- `, Object.entries(s.colors).forEach(([o, l]) => {
382
- typeof l == "object" && l !== null && (e += ` "${o}": {
383
- `, Object.entries(l).forEach(([r, d]) => {
384
- e += ` "${r === "DEFAULT" ? "DEFAULT" : r}": "${d}",
381
+ return t += ` prefix: "sl-",
382
+ `, t += ` theme: {
383
+ `, t += ` extend: {
384
+ `, e.colors && (t += ` colors: {
385
+ `, Object.entries(e.colors).forEach(([a, l]) => {
386
+ typeof l == "object" && l !== null && (t += ` "${a}": {
387
+ `, Object.entries(l).forEach(([d, u]) => {
388
+ t += ` "${d === "DEFAULT" ? "DEFAULT" : d}": "${u}",
385
389
  `;
386
- }), e += ` },
390
+ }), t += ` },
387
391
  `);
388
- }), e += ` },
389
- `), s.spacing && (e += ` spacing: {
390
- `, Object.entries(s.spacing).forEach(([o, l]) => {
391
- e += ` "${o}": "${l}",
392
+ }), t += ` },
393
+ `), e.spacing && (t += ` spacing: {
394
+ `, Object.entries(e.spacing).forEach(([a, l]) => {
395
+ t += ` "${a}": "${l}",
392
396
  `;
393
- }), e += ` },
394
- `), s.borderRadius && (e += ` borderRadius: {
395
- `, Object.entries(s.borderRadius).forEach(([o, l]) => {
396
- e += ` "${o === "DEFAULT" ? "DEFAULT" : o}": "${l}",
397
+ }), t += ` },
398
+ `), e.borderRadius && (t += ` borderRadius: {
399
+ `, Object.entries(e.borderRadius).forEach(([a, l]) => {
400
+ t += ` "${a === "DEFAULT" ? "DEFAULT" : a}": "${l}",
397
401
  `;
398
- }), e += ` },
399
- `), s.shadows && (e += ` boxShadow: {
400
- `, Object.entries(s.shadows).forEach(([o, l]) => {
401
- e += ` "${o === "DEFAULT" ? "DEFAULT" : o}": "${l}",
402
+ }), t += ` },
403
+ `), e.shadows && (t += ` boxShadow: {
404
+ `, Object.entries(e.shadows).forEach(([a, l]) => {
405
+ t += ` "${a === "DEFAULT" ? "DEFAULT" : a}": "${l}",
402
406
  `;
403
- }), e += ` },
404
- `), s.typography && (s.typography.fontFamily && (e += ` fontFamily: {
405
- `, Object.entries(s.typography.fontFamily).forEach(([o, l]) => {
406
- e += ` "${o}": [${l.map((r) => `"${r}"`).join(", ")}],
407
+ }), t += ` },
408
+ `), e.typography && (e.typography.fontFamily && (t += ` fontFamily: {
409
+ `, Object.entries(e.typography.fontFamily).forEach(([a, l]) => {
410
+ t += ` "${a}": [${l.map((d) => `"${d}"`).join(", ")}],
407
411
  `;
408
- }), e += ` },
409
- `), s.typography.fontSize && (e += ` fontSize: {
410
- `, Object.entries(s.typography.fontSize).forEach(([o, l]) => {
411
- e += ` "${o}": "${l}",
412
+ }), t += ` },
413
+ `), e.typography.fontSize && (t += ` fontSize: {
414
+ `, Object.entries(e.typography.fontSize).forEach(([a, l]) => {
415
+ t += ` "${a}": "${l}",
412
416
  `;
413
- }), e += ` },
414
- `)), e += ` },
415
- `, e += ` },
416
- `, e += `};
417
- `, e;
417
+ }), t += ` },
418
+ `)), t += ` },
419
+ `, t += ` },
420
+ `, t += `};
421
+ `, t;
418
422
  }
419
- function hs(s) {
420
- if (typeof s != "string") return null;
421
- let e = s.trim();
422
- if (!e.startsWith("#") || (e = e.slice(1), e.length === 3 && (e = e.split("").map((d) => d + d).join("")), e.length !== 6)) return null;
423
- const o = parseInt(e.slice(0, 2), 16), l = parseInt(e.slice(2, 4), 16), r = parseInt(e.slice(4, 6), 16);
424
- return Number.isNaN(o) || Number.isNaN(l) || Number.isNaN(r) ? null : `${o} ${l} ${r}`;
423
+ function Ht(e) {
424
+ if (typeof e != "string") return null;
425
+ let t = e.trim();
426
+ if (!t.startsWith("#") || (t = t.slice(1), t.length === 3 && (t = t.split("").map((u) => u + u).join("")), t.length !== 6)) return null;
427
+ const a = parseInt(t.slice(0, 2), 16), l = parseInt(t.slice(2, 4), 16), d = parseInt(t.slice(4, 6), 16);
428
+ return Number.isNaN(a) || Number.isNaN(l) || Number.isNaN(d) ? null : `${a} ${l} ${d}`;
425
429
  }
426
- const xs = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto" }, vs = { class: "sl-flex sl-min-h-full sl-items-center sl-justify-center sl-p-4" }, bs = { class: "sl-bg-gradient-to-r sl-from-gray-900 sl-to-gray-800 sl-px-6 sl-py-4" }, ks = { class: "sl-flex sl-items-center sl-justify-between" }, Cs = { class: "sl-flex sl-items-center sl-gap-3" }, ws = { class: "sl-p-6 sl-space-y-6" }, $s = { class: "sl-flex sl-items-center sl-gap-4" }, Ss = { class: "sl-relative" }, _s = { class: "sl-flex-1" }, Ts = { class: "sl-grid sl-grid-cols-2 sl-gap-2" }, Is = ["onClick"], As = { class: "sl-min-w-0" }, Ms = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-white sl-truncate" }, zs = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400 sl-truncate" }, Es = { class: "sl-rounded-xl sl-border sl-border-gray-200 dark:sl-border-slate-600 sl-bg-gray-50 dark:sl-bg-slate-900 sl-p-4 sl-space-y-4" }, Ls = { class: "sl-flex sl-flex-wrap sl-gap-2" }, Ps = { class: "sl-flex sl-flex-wrap sl-gap-2" }, Ds = { class: "sl-flex sl-items-center sl-gap-4" }, Fs = { class: "sl-flex sl-items-center sl-gap-3" }, Bs = { class: "sl-flex sl-rounded-lg sl-overflow-hidden sl-shadow-sm dark:sl-shadow-slate-900/50" }, Us = { class: "sl-border-t sl-border-gray-200 dark:sl-border-slate-700 sl-bg-gray-50 dark:sl-bg-slate-900 sl-px-6 sl-py-4" }, Vs = { class: "sl-flex sl-items-center sl-justify-between" }, js = { class: "sl-flex sl-gap-3" }, Os = /* @__PURE__ */ D({
430
+ const Gt = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto" }, Kt = { class: "sl-flex sl-min-h-full sl-items-center sl-justify-center sl-p-4" }, Wt = { class: "sl-bg-gradient-to-r sl-from-gray-900 sl-to-gray-800 sl-px-6 sl-py-4" }, Yt = { class: "sl-flex sl-items-center sl-justify-between" }, Xt = { class: "sl-flex sl-items-center sl-gap-3" }, qt = { class: "sl-p-6 sl-space-y-6" }, Jt = { class: "sl-flex sl-items-center sl-gap-4" }, Zt = { class: "sl-relative" }, Qt = { class: "sl-flex-1" }, es = { class: "sl-grid sl-grid-cols-2 sl-gap-2" }, ts = ["onClick"], ss = { class: "sl-min-w-0" }, ls = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-white sl-truncate" }, as = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400 sl-truncate" }, os = { class: "sl-rounded-xl sl-border sl-border-gray-200 dark:sl-border-slate-600 sl-bg-gray-50 dark:sl-bg-slate-900 sl-p-4 sl-space-y-4" }, rs = { class: "sl-flex sl-flex-wrap sl-gap-2" }, ns = { class: "sl-flex sl-flex-wrap sl-gap-2" }, is = { class: "sl-flex sl-items-center sl-gap-4" }, ds = { class: "sl-flex sl-items-center sl-gap-3" }, cs = { class: "sl-flex sl-rounded-lg sl-overflow-hidden sl-shadow-sm dark:sl-shadow-slate-900/50" }, us = { class: "sl-border-t sl-border-gray-200 dark:sl-border-slate-700 sl-bg-gray-50 dark:sl-bg-slate-900 sl-px-6 sl-py-4" }, ms = { class: "sl-flex sl-items-center sl-justify-between" }, fs = { class: "sl-flex sl-gap-3" }, ps = /* @__PURE__ */ F({
427
431
  __name: "ThemeDebugModal",
428
432
  props: {
429
433
  modelValue: { type: Boolean }
430
434
  },
431
435
  emits: ["update:modelValue"],
432
- setup(s, { emit: e }) {
433
- const o = e, { currentPrimaryColor: l, applyTheme: r, resetTheme: d } = fe(), a = F(l.value);
434
- ee(l, (T) => {
435
- a.value = T;
436
+ setup(e, { emit: t }) {
437
+ const a = t, { currentPrimaryColor: l, applyTheme: d, resetTheme: u } = Ee(), n = K(l.value);
438
+ de(l, (h) => {
439
+ n.value = h;
436
440
  });
437
- const n = () => {
438
- r(a.value);
439
- }, S = (T) => {
440
- a.value = T, r(T);
441
- }, I = () => {
442
- d(), a.value = "#3e4b9a";
443
- }, A = () => {
444
- o("update:modelValue", !1);
445
- }, K = () => {
446
- r(a.value), o("update:modelValue", !1);
441
+ const o = () => {
442
+ d(n.value);
443
+ }, g = (h) => {
444
+ n.value = h, d(h);
445
+ }, y = () => {
446
+ u(), n.value = "#3e4b9a";
447
+ }, v = () => {
448
+ a("update:modelValue", !1);
449
+ }, z = () => {
450
+ d(n.value), a("update:modelValue", !1);
447
451
  };
448
- return (T, m) => (c(), U(x(Q), {
452
+ return (h, r) => (i(), D(_(fe), {
449
453
  as: "template",
450
- show: s.modelValue
454
+ show: e.modelValue
451
455
  }, {
452
- default: k(() => [
453
- y(x(He), {
456
+ default: T(() => [
457
+ C(_(kt), {
454
458
  as: "div",
455
459
  class: "sl-relative sl-z-[100]",
456
- onClose: A
460
+ onClose: v
457
461
  }, {
458
- default: k(() => [
459
- y(x(ie), {
462
+ default: T(() => [
463
+ C(_(Se), {
460
464
  as: "template",
461
465
  enter: "ease-out duration-300",
462
466
  "enter-from": "opacity-0",
@@ -465,14 +469,14 @@ const xs = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
465
469
  "leave-from": "opacity-100",
466
470
  "leave-to": "opacity-0"
467
471
  }, {
468
- default: k(() => [...m[2] || (m[2] = [
469
- t("div", { class: "sl-fixed sl-inset-0 sl-bg-gray-900/60 sl-backdrop-blur-sm sl-transition-opacity" }, null, -1)
472
+ default: T(() => [...r[2] || (r[2] = [
473
+ s("div", { class: "sl-fixed sl-inset-0 sl-bg-gray-900/60 sl-backdrop-blur-sm sl-transition-opacity" }, null, -1)
470
474
  ])]),
471
475
  _: 1
472
476
  }),
473
- t("div", xs, [
474
- t("div", vs, [
475
- y(x(ie), {
477
+ s("div", Gt, [
478
+ s("div", Kt, [
479
+ C(_(Se), {
476
480
  as: "template",
477
481
  enter: "ease-out duration-300",
478
482
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -481,188 +485,188 @@ const xs = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
481
485
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
482
486
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
483
487
  }, {
484
- default: k(() => [
485
- y(x(We), { class: "sl-relative sl-transform sl-overflow-hidden sl-rounded-2xl sl-bg-white dark:sl-bg-slate-800 sl-shadow-2xl sl-transition-all sl-w-full sm:sl-max-w-lg" }, {
486
- default: k(() => [
487
- t("div", bs, [
488
- t("div", ks, [
489
- t("div", Cs, [
490
- t("div", {
488
+ default: T(() => [
489
+ C(_(wt), { class: "sl-relative sl-transform sl-overflow-hidden sl-rounded-2xl sl-bg-white dark:sl-bg-slate-800 sl-shadow-2xl sl-transition-all sl-w-full sm:sl-max-w-lg" }, {
490
+ default: T(() => [
491
+ s("div", Wt, [
492
+ s("div", Yt, [
493
+ s("div", Xt, [
494
+ s("div", {
491
495
  class: "sl-flex sl-h-10 sl-w-10 sl-items-center sl-justify-center sl-rounded-lg",
492
- style: z({ backgroundColor: a.value })
496
+ style: O({ backgroundColor: n.value })
493
497
  }, [
494
- y(x(es), { class: "sl-h-5 sl-w-5 sl-text-white" })
498
+ C(_(ct), { class: "sl-h-5 sl-w-5 sl-text-white" })
495
499
  ], 4),
496
- t("div", null, [
497
- y(x(Ze), { class: "sl-text-lg sl-font-semibold sl-text-white" }, {
498
- default: k(() => [...m[3] || (m[3] = [
499
- E(" Theme Customizer ", -1)
500
+ s("div", null, [
501
+ C(_(Ct), { class: "sl-text-lg sl-font-semibold sl-text-white" }, {
502
+ default: T(() => [...r[3] || (r[3] = [
503
+ j(" Theme Customizer ", -1)
500
504
  ])]),
501
505
  _: 1
502
506
  }),
503
- m[4] || (m[4] = t("p", { class: "sl-text-xs sl-text-gray-400" }, "Preview how components adapt to different colors", -1))
507
+ r[4] || (r[4] = s("p", { class: "sl-text-xs sl-text-gray-400" }, "Preview how components adapt to different colors", -1))
504
508
  ])
505
509
  ]),
506
- t("button", {
507
- onClick: A,
510
+ s("button", {
511
+ onClick: v,
508
512
  class: "sl-rounded-lg sl-p-2 sl-text-gray-400 hover:sl-bg-gray-700 hover:sl-text-white sl-transition-colors"
509
513
  }, [
510
- y(x(ss), { class: "sl-h-5 sl-w-5" })
514
+ C(_(ut), { class: "sl-h-5 sl-w-5" })
511
515
  ])
512
516
  ])
513
517
  ]),
514
- t("div", ws, [
515
- t("div", null, [
516
- m[5] || (m[5] = t("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Primary Color ", -1)),
517
- t("div", $s, [
518
- t("div", Ss, [
519
- Y(t("input", {
518
+ s("div", qt, [
519
+ s("div", null, [
520
+ r[5] || (r[5] = s("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Primary Color ", -1)),
521
+ s("div", Jt, [
522
+ s("div", Zt, [
523
+ me(s("input", {
520
524
  type: "color",
521
- "onUpdate:modelValue": m[0] || (m[0] = ($) => a.value = $),
522
- onInput: n,
525
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => n.value = c),
526
+ onInput: o,
523
527
  class: "sl-h-14 sl-w-14 sl-cursor-pointer sl-rounded-xl sl-border-2 sl-border-gray-200 dark:sl-border-slate-600 sl-p-1 sl-shadow-sm hover:sl-border-gray-300 dark:hover:sl-border-slate-500 sl-transition-colors"
524
528
  }, null, 544), [
525
- [ae, a.value]
529
+ [ve, n.value]
526
530
  ])
527
531
  ]),
528
- t("div", _s, [
529
- Y(t("input", {
532
+ s("div", Qt, [
533
+ me(s("input", {
530
534
  type: "text",
531
- "onUpdate:modelValue": m[1] || (m[1] = ($) => a.value = $),
532
- onInput: n,
535
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => n.value = c),
536
+ onInput: o,
533
537
  placeholder: "#3e4b9a",
534
538
  class: "sl-block sl-w-full sl-rounded-lg sl-border sl-border-gray-300 dark:sl-border-slate-600 sl-bg-white dark:sl-bg-slate-700 sl-px-4 sl-py-3 sl-text-sm sl-font-mono sl-text-gray-900 dark:sl-text-white sl-shadow-sm focus:sl-border-primary-500 focus:sl-ring-2 focus:sl-ring-primary-500/20 sl-transition-all"
535
539
  }, null, 544), [
536
- [ae, a.value]
540
+ [ve, n.value]
537
541
  ])
538
542
  ])
539
543
  ])
540
544
  ]),
541
- t("div", null, [
542
- m[6] || (m[6] = t("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Preset Themes ", -1)),
543
- t("div", Ts, [
544
- (c(!0), f(V, null, R(x(Ve), ($) => (c(), f("button", {
545
- key: $.name,
546
- onClick: (L) => S($.color),
547
- class: _(["sl-group sl-relative sl-flex sl-items-center sl-gap-3 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-600 sl-bg-white dark:sl-bg-slate-700 sl-p-3 sl-text-left sl-transition-all hover:sl-border-gray-300 dark:hover:sl-border-slate-500 hover:sl-shadow-sm", { "sl-ring-2 sl-ring-offset-2 dark:sl-ring-offset-slate-800": a.value.toLowerCase() === $.color.toLowerCase() }]),
548
- style: z(a.value.toLowerCase() === $.color.toLowerCase() ? { "--tw-ring-color": $.color } : {})
545
+ s("div", null, [
546
+ r[6] || (r[6] = s("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Preset Themes ", -1)),
547
+ s("div", es, [
548
+ (i(!0), m(G, null, Y(_(et), (c) => (i(), m("button", {
549
+ key: c.name,
550
+ onClick: (p) => g(c.color),
551
+ class: E(["sl-group sl-relative sl-flex sl-items-center sl-gap-3 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-600 sl-bg-white dark:sl-bg-slate-700 sl-p-3 sl-text-left sl-transition-all hover:sl-border-gray-300 dark:hover:sl-border-slate-500 hover:sl-shadow-sm", { "sl-ring-2 sl-ring-offset-2 dark:sl-ring-offset-slate-800": n.value.toLowerCase() === c.color.toLowerCase() }]),
552
+ style: O(n.value.toLowerCase() === c.color.toLowerCase() ? { "--tw-ring-color": c.color } : {})
549
553
  }, [
550
- t("div", {
554
+ s("div", {
551
555
  class: "sl-h-8 sl-w-8 sl-rounded-lg sl-shadow-sm sl-flex-shrink-0",
552
- style: z({ backgroundColor: $.color })
556
+ style: O({ backgroundColor: c.color })
553
557
  }, null, 4),
554
- t("div", As, [
555
- t("p", Ms, w($.name), 1),
556
- t("p", zs, w($.description), 1)
558
+ s("div", ss, [
559
+ s("p", ls, w(c.name), 1),
560
+ s("p", as, w(c.description), 1)
557
561
  ])
558
- ], 14, Is))), 128))
562
+ ], 14, ts))), 128))
559
563
  ])
560
564
  ]),
561
- t("div", null, [
562
- m[15] || (m[15] = t("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Live Preview ", -1)),
563
- t("div", Es, [
564
- t("div", Ls, [
565
- y(Z, {
565
+ s("div", null, [
566
+ r[15] || (r[15] = s("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Live Preview ", -1)),
567
+ s("div", os, [
568
+ s("div", rs, [
569
+ C(oe, {
566
570
  theme: "primary",
567
571
  size: "sm"
568
572
  }, {
569
- default: k(() => [...m[7] || (m[7] = [
570
- E("Primary", -1)
573
+ default: T(() => [...r[7] || (r[7] = [
574
+ j("Primary", -1)
571
575
  ])]),
572
576
  _: 1
573
577
  }),
574
- y(Z, {
578
+ C(oe, {
575
579
  theme: "primary",
576
580
  size: "sm",
577
581
  outlined: ""
578
582
  }, {
579
- default: k(() => [...m[8] || (m[8] = [
580
- E("Outlined", -1)
583
+ default: T(() => [...r[8] || (r[8] = [
584
+ j("Outlined", -1)
581
585
  ])]),
582
586
  _: 1
583
587
  }),
584
- y(Z, {
588
+ C(oe, {
585
589
  theme: "secondary",
586
590
  size: "sm"
587
591
  }, {
588
- default: k(() => [...m[9] || (m[9] = [
589
- E("Secondary", -1)
592
+ default: T(() => [...r[9] || (r[9] = [
593
+ j("Secondary", -1)
590
594
  ])]),
591
595
  _: 1
592
596
  })
593
597
  ]),
594
- t("div", Ps, [
595
- y(X, { theme: "primary" }, {
596
- default: k(() => [...m[10] || (m[10] = [
597
- E("Primary Badge", -1)
598
+ s("div", ns, [
599
+ C(ue, { theme: "primary" }, {
600
+ default: T(() => [...r[10] || (r[10] = [
601
+ j("Primary Badge", -1)
598
602
  ])]),
599
603
  _: 1
600
604
  }),
601
- y(X, { theme: "success" }, {
602
- default: k(() => [...m[11] || (m[11] = [
603
- E("Success", -1)
605
+ C(ue, { theme: "success" }, {
606
+ default: T(() => [...r[11] || (r[11] = [
607
+ j("Success", -1)
604
608
  ])]),
605
609
  _: 1
606
610
  }),
607
- y(X, { theme: "warning" }, {
608
- default: k(() => [...m[12] || (m[12] = [
609
- E("Warning", -1)
611
+ C(ue, { theme: "warning" }, {
612
+ default: T(() => [...r[12] || (r[12] = [
613
+ j("Warning", -1)
610
614
  ])]),
611
615
  _: 1
612
616
  })
613
617
  ]),
614
- t("div", Ds, [
615
- y(Oe, { size: "sm" }),
616
- m[13] || (m[13] = t("span", { class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400" }, "Loading indicator", -1))
618
+ s("div", is, [
619
+ C(st, { size: "sm" }),
620
+ r[13] || (r[13] = s("span", { class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400" }, "Loading indicator", -1))
617
621
  ]),
618
- t("div", Fs, [
619
- y(je, {
622
+ s("div", ds, [
623
+ C(tt, {
620
624
  name: "Theme Test",
621
625
  size: "md"
622
626
  }),
623
- m[14] || (m[14] = t("span", { class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400" }, "Avatar with initials", -1))
627
+ r[14] || (r[14] = s("span", { class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400" }, "Avatar with initials", -1))
624
628
  ])
625
629
  ])
626
630
  ]),
627
- t("div", null, [
628
- m[16] || (m[16] = t("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Generated Palette ", -1)),
629
- t("div", Bs, [
630
- (c(), f(V, null, R([50, 100, 200, 300, 400, 500, 600, 700, 800, 900], ($) => t("div", {
631
- key: $,
631
+ s("div", null, [
632
+ r[16] || (r[16] = s("label", { class: "sl-block sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-300 sl-mb-3" }, " Generated Palette ", -1)),
633
+ s("div", cs, [
634
+ (i(), m(G, null, Y([50, 100, 200, 300, 400, 500, 600, 700, 800, 900], (c) => s("div", {
635
+ key: c,
632
636
  class: "sl-flex-1 sl-h-8 sl-relative sl-group",
633
- style: z({ backgroundColor: `rgb(var(--sl-color-primary-${$}-rgb, 128 128 128))` })
637
+ style: O({ backgroundColor: `rgb(var(--sl-color-primary-${c}-rgb, 128 128 128))` })
634
638
  }, [
635
- t("span", {
636
- class: _(["sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-text-[9px] sl-font-medium sl-opacity-0 group-hover:sl-opacity-100 sl-transition-opacity", $ < 500 ? "sl-text-gray-700" : "sl-text-white"])
637
- }, w($), 3)
639
+ s("span", {
640
+ class: E(["sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-text-[9px] sl-font-medium sl-opacity-0 group-hover:sl-opacity-100 sl-transition-opacity", c < 500 ? "sl-text-gray-700" : "sl-text-white"])
641
+ }, w(c), 3)
638
642
  ], 4)), 64))
639
643
  ])
640
644
  ])
641
645
  ]),
642
- t("div", Us, [
643
- t("div", Vs, [
644
- t("button", {
645
- onClick: I,
646
+ s("div", us, [
647
+ s("div", ms, [
648
+ s("button", {
649
+ onClick: y,
646
650
  class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400 hover:sl-text-gray-900 dark:hover:sl-text-white sl-font-medium sl-transition-colors"
647
651
  }, " Reset to Default "),
648
- t("div", js, [
649
- y(Z, {
652
+ s("div", fs, [
653
+ C(oe, {
650
654
  theme: "secondary",
651
655
  size: "sm",
652
- onButtonClick: A
656
+ onButtonClick: v
653
657
  }, {
654
- default: k(() => [...m[17] || (m[17] = [
655
- E(" Close ", -1)
658
+ default: T(() => [...r[17] || (r[17] = [
659
+ j(" Close ", -1)
656
660
  ])]),
657
661
  _: 1
658
662
  }),
659
- y(Z, {
663
+ C(oe, {
660
664
  theme: "primary",
661
665
  size: "sm",
662
- onButtonClick: K
666
+ onButtonClick: z
663
667
  }, {
664
- default: k(() => [...m[18] || (m[18] = [
665
- E(" Apply Theme ", -1)
668
+ default: T(() => [...r[18] || (r[18] = [
669
+ j(" Apply Theme ", -1)
666
670
  ])]),
667
671
  _: 1
668
672
  })
@@ -684,13 +688,13 @@ const xs = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
684
688
  _: 1
685
689
  }, 8, ["show"]));
686
690
  }
687
- }), jl = /* @__PURE__ */ se(Os, [["__scopeId", "data-v-c9b3cc37"]]), Ns = {
691
+ }), ar = /* @__PURE__ */ Z(ps, [["__scopeId", "data-v-c9b3cc37"]]), gs = {
688
692
  viewBox: "0 0 36 36",
689
693
  class: "sl-transform -sl-rotate-90 sl-w-full sl-h-full"
690
- }, Rs = ["stroke-width"], Gs = ["stroke", "stroke-dasharray", "stroke-width"], Ks = {
694
+ }, ys = ["stroke-width"], hs = ["stroke", "stroke-dasharray", "stroke-width"], xs = {
691
695
  key: 0,
692
696
  class: "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center"
693
- }, Ol = /* @__PURE__ */ D({
697
+ }, or = /* @__PURE__ */ F({
694
698
  __name: "UiRadialProgressBar",
695
699
  props: {
696
700
  value: { default: 0 },
@@ -700,11 +704,11 @@ const xs = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
700
704
  color: { default: "primary" },
701
705
  trackWidth: { default: 3.8 }
702
706
  },
703
- setup(s) {
704
- const e = s, o = C(() => Math.min(100, Math.max(0, e.value))), l = C(() => ({
705
- width: `${e.size}px`,
706
- height: `${e.size}px`
707
- })), r = C(() => ({
707
+ setup(e) {
708
+ const t = e, a = b(() => Math.min(100, Math.max(0, t.value))), l = b(() => ({
709
+ width: `${t.size}px`,
710
+ height: `${t.size}px`
711
+ })), d = b(() => ({
708
712
  primary: "var(--sl-color-primary-600, #3e4b9a)",
709
713
  success: "#22c55e",
710
714
  // green-500
@@ -712,238 +716,879 @@ const xs = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
712
716
  // yellow-500
713
717
  danger: "#ef4444"
714
718
  // red-500
715
- })[e.color]), d = C(() => e.size < 48 ? "sl-text-xs sl-font-medium sl-text-slate-700 dark:sl-text-slate-300" : e.size < 80 ? "sl-text-sm sl-font-semibold sl-text-slate-700 dark:sl-text-slate-300" : e.size < 120 ? "sl-text-base sl-font-semibold sl-text-slate-700 dark:sl-text-slate-300" : "sl-text-lg sl-font-bold sl-text-slate-700 dark:sl-text-slate-300");
716
- return (a, n) => (c(), f("div", {
719
+ })[t.color]), u = b(() => t.size < 48 ? "sl-text-xs sl-font-medium sl-text-slate-700 dark:sl-text-slate-300" : t.size < 80 ? "sl-text-sm sl-font-semibold sl-text-slate-700 dark:sl-text-slate-300" : t.size < 120 ? "sl-text-base sl-font-semibold sl-text-slate-700 dark:sl-text-slate-300" : "sl-text-lg sl-font-bold sl-text-slate-700 dark:sl-text-slate-300");
720
+ return (n, o) => (i(), m("div", {
717
721
  class: "sl-relative sl-inline-flex",
718
- style: z(l.value)
722
+ style: O(l.value)
719
723
  }, [
720
- (c(), f("svg", Ns, [
721
- t("path", {
724
+ (i(), m("svg", gs, [
725
+ s("path", {
722
726
  class: "sl-fill-none sl-stroke-gray-200 dark:sl-stroke-slate-600",
723
- "stroke-width": s.trackWidth,
727
+ "stroke-width": e.trackWidth,
724
728
  d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
725
- }, null, 8, Rs),
726
- t("path", {
729
+ }, null, 8, ys),
730
+ s("path", {
727
731
  class: "sl-fill-none sl-transition-all sl-duration-500 sl-ease-out",
728
- stroke: r.value,
732
+ stroke: d.value,
729
733
  "stroke-linecap": "round",
730
- "stroke-dasharray": `${o.value}, 100`,
731
- "stroke-width": s.trackWidth,
734
+ "stroke-dasharray": `${a.value}, 100`,
735
+ "stroke-width": e.trackWidth,
732
736
  d: "M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
733
- }, null, 8, Gs)
737
+ }, null, 8, hs)
734
738
  ])),
735
- s.showLabel || s.label ? (c(), f("div", Ks, [
736
- t("span", {
737
- class: _(d.value)
738
- }, w(s.label || `${o.value}%`), 3)
739
- ])) : b("", !0)
739
+ e.showLabel || e.label ? (i(), m("div", xs, [
740
+ s("span", {
741
+ class: E(u.value)
742
+ }, w(e.label || `${a.value}%`), 3)
743
+ ])) : k("", !0)
740
744
  ], 4));
741
745
  }
746
+ }), bs = { class: "sl-w-full" }, vs = { class: "sl-border-b sl-border-gray-200 dark:sl-border-gray-700 sl-py-5 sl-flex sl-justify-between" }, ks = { class: "sl-text-base sl-font-semibold sl-leading-6 sl-text-gray-800 dark:sl-text-gray-200" }, ws = {
747
+ key: 0,
748
+ class: "sl-text-xs sl-leading-6 sl-text-gray-500 dark:sl-text-gray-400"
749
+ }, Cs = {
750
+ key: 0,
751
+ role: "list",
752
+ class: "sl-divide-y sl-divide-gray-100 dark:sl-divide-gray-700"
753
+ }, $s = {
754
+ key: 0,
755
+ class: "sl-text-sm sl-font-semibold sl-leading-6 sl-text-gray-800 dark:sl-text-gray-200"
756
+ }, _s = ["tabindex", "onClick", "onKeydown"], Is = { class: "sl-col-span-12 sm:sl-col-span-7" }, Ss = { class: "sl-py-1 sl-text-sm sl-leading-5 sl-text-gray-700 dark:sl-text-gray-300" }, zs = { class: "sl-col-span-12 sm:sl-col-span-5 sl-flex sl-justify-end sl-items-center" }, Ts = {
757
+ key: 0,
758
+ class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400"
759
+ }, Ls = {
760
+ key: 1,
761
+ class: "sl-relative sl-cursor-default sl-select-none sl-px-4 sl-py-8 sl-text-gray-500 dark:sl-text-gray-400 sl-text-sm sl-text-center"
762
+ }, Ms = /* @__PURE__ */ F({
763
+ __name: "CollectionItemList",
764
+ props: {
765
+ items: { default: () => [] },
766
+ selected: {},
767
+ canEdit: { type: Boolean, default: !1 },
768
+ groupBy: {},
769
+ title: { default: "Items" },
770
+ emptyMessage: { default: "No items found." },
771
+ primaryField: { default: "name" },
772
+ secondaryField: {},
773
+ displayFields: {}
774
+ },
775
+ emits: ["select"],
776
+ setup(e, { emit: t }) {
777
+ const a = e, l = t, d = b(() => a.items && a.items.length > 0), u = b(() => {
778
+ if (!a.items) return {};
779
+ if (!a.groupBy)
780
+ return { "": a.items };
781
+ const h = {};
782
+ return a.items.forEach((r) => {
783
+ const c = n(r, a.groupBy), p = o(c);
784
+ h[p] || (h[p] = []), h[p].push(r);
785
+ }), h;
786
+ }), n = (h, r) => r.split(".").reduce((c, p) => {
787
+ if (c && typeof c == "object")
788
+ return c[p];
789
+ }, h), o = (h) => h == null ? "Other" : typeof h == "object" && h !== null && "name" in h ? h.name : String(h), g = (h) => {
790
+ if (a.primaryField) {
791
+ const r = n(h, a.primaryField);
792
+ return typeof r == "object" && r !== null && "name" in r ? r.name : r ? String(r) : "";
793
+ }
794
+ return h.id;
795
+ }, y = (h) => {
796
+ if (!a.secondaryField) return "";
797
+ const r = n(h, a.secondaryField);
798
+ return typeof r == "object" && r !== null && "name" in r ? r.name : r ? String(r) : "";
799
+ }, v = (h) => a.selected ? h.id === a.selected.id : !1, z = (h) => {
800
+ a.canEdit && l("select", h);
801
+ };
802
+ return (h, r) => (i(), m("div", bs, [
803
+ s("div", vs, [
804
+ s("h3", ks, w(e.title), 1),
805
+ e.canEdit ? (i(), m("p", ws, " Select an item to edit ")) : k("", !0)
806
+ ]),
807
+ d.value ? (i(), m("ul", Cs, [
808
+ (i(!0), m(G, null, Y(u.value, (c, p) => (i(), m("li", {
809
+ key: String(p),
810
+ class: "sl-gap-x-6 sl-py-5 sl-items-center sl-space-y-3"
811
+ }, [
812
+ e.groupBy ? (i(), m("p", $s, w(o(p)), 1)) : k("", !0),
813
+ (i(!0), m(G, null, Y(c, ($, f) => (i(), m("div", {
814
+ key: $.id || f,
815
+ class: E([
816
+ "sl-grid sl-grid-cols-12 sl-gap-x-4 sl-p-2 sl-rounded-md sl-transition-all",
817
+ e.canEdit && "hover:sl-ring-1 hover:sl-ring-primary-500 hover:sl-ring-offset-2 sl-cursor-pointer",
818
+ v($) && "sl-ring-1 sl-ring-primary-600 sl-ring-offset-2 sl-bg-white dark:sl-bg-gray-800"
819
+ ]),
820
+ role: "button",
821
+ tabindex: e.canEdit ? 0 : -1,
822
+ onClick: (x) => z($),
823
+ onKeydown: [
824
+ ke((x) => z($), ["enter"]),
825
+ ke(Te((x) => z($), ["prevent"]), ["space"])
826
+ ]
827
+ }, [
828
+ s("div", Is, [
829
+ M(h.$slots, "item-content", { item: $ }, () => [
830
+ s("p", Ss, w(g($)), 1)
831
+ ])
832
+ ]),
833
+ s("div", zs, [
834
+ M(h.$slots, "item-secondary", { item: $ }, () => [
835
+ y($) ? (i(), m("span", Ts, w(y($)), 1)) : k("", !0)
836
+ ])
837
+ ])
838
+ ], 42, _s))), 128))
839
+ ]))), 128))
840
+ ])) : (i(), m("div", Ls, [
841
+ M(h.$slots, "empty", {}, () => [
842
+ j(w(e.emptyMessage), 1)
843
+ ])
844
+ ]))
845
+ ]));
846
+ }
847
+ }), Ps = { class: "sl-collection-editor sl-flex sl-flex-row sl-flex-wrap sl--mx-3" }, Es = { class: "sl-w-full sm:sl-w-1/2 sl-px-3 sl-flex sl-flex-col" }, As = { class: "sl-mb-4 sl-flex sl-justify-between sl-items-center" }, Ds = { class: "sl-flex sl-gap-2" }, Fs = {
848
+ key: 0,
849
+ class: "sl-text-xs sl-uppercase sl-text-gray-500 dark:sl-text-gray-400 sl-truncate sl-text-right sl-font-semibold"
850
+ }, Ns = { class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700 sl-pt-4" }, Us = { class: "sl-w-full sm:sl-w-1/2 sl-px-3" }, Vs = /* @__PURE__ */ F({
851
+ __name: "CollectionEditor",
852
+ props: {
853
+ name: {},
854
+ modelValue: { default: () => [] },
855
+ schema: {},
856
+ emptyFormValues: {},
857
+ label: {},
858
+ title: { default: "Items" },
859
+ groupBy: {},
860
+ primaryField: {},
861
+ secondaryField: {},
862
+ emptyMessage: { default: 'No items found. Click "Add" to create one.' },
863
+ deleteConfirmTitle: { default: "Delete Item" },
864
+ deleteConfirmMessage: { default: "Are you sure you want to delete this item? This action cannot be undone." },
865
+ explodeItem: { type: Function, default: (e) => e },
866
+ implodeItem: { type: Function, default: (e) => e }
867
+ },
868
+ emits: ["update:modelValue", "item-added", "item-updated", "item-deleted", "item-selected", "update:form", "update:validity"],
869
+ setup(e, { expose: t, emit: a }) {
870
+ const l = e, d = a, u = (N, ...A) => {
871
+ d(N, ...A);
872
+ }, {
873
+ items: n,
874
+ activeItem: o,
875
+ formValues: g,
876
+ formRef: y,
877
+ buttonAttributes: v,
878
+ showDeleteConfirm: z,
879
+ selectItem: h,
880
+ handleButtonClick: r,
881
+ handleFormSubmit: c,
882
+ handleFormUpdate: p,
883
+ confirmDelete: $,
884
+ cancelDelete: f
885
+ } = Qe(
886
+ {
887
+ initialItems: l.modelValue,
888
+ emptyFormValues: l.emptyFormValues,
889
+ explodeItem: l.explodeItem,
890
+ implodeItem: l.implodeItem
891
+ },
892
+ u
893
+ );
894
+ de(
895
+ () => l.modelValue,
896
+ (N) => {
897
+ N && JSON.stringify(N) !== JSON.stringify(n.value) && (n.value = N.map((A) => l.explodeItem(A)));
898
+ },
899
+ { deep: !0 }
900
+ );
901
+ const x = b(() => n.value), P = (N) => {
902
+ r(N);
903
+ }, B = (N) => {
904
+ c(N);
905
+ }, H = (N) => {
906
+ p(N), d("update:form", N);
907
+ }, ae = () => {
908
+ $();
909
+ };
910
+ return t({
911
+ getItems: () => n.value.map((N) => l.implodeItem(N)),
912
+ resetForm: () => {
913
+ g.value = { ...l.emptyFormValues }, o.value = null;
914
+ }
915
+ }), (N, A) => (i(), m("div", Ps, [
916
+ s("div", Es, [
917
+ s("div", As, [
918
+ s("span", Ds, [
919
+ C(lt, {
920
+ onButtonClicked: P,
921
+ "button-attributes": _(v)
922
+ }, null, 8, ["button-attributes"])
923
+ ]),
924
+ e.label ? (i(), m("span", Fs, w(e.label), 1)) : k("", !0)
925
+ ]),
926
+ s("div", Ns, [
927
+ (i(), D(at, {
928
+ ref_key: "formRef",
929
+ ref: y,
930
+ schema: e.schema,
931
+ "form-values": _(g),
932
+ "form-name": e.name,
933
+ "box-shadow": !1,
934
+ key: _(g).id,
935
+ onSubmitForm: B,
936
+ "onUpdate:form": H
937
+ }, null, 8, ["schema", "form-values", "form-name"]))
938
+ ])
939
+ ]),
940
+ s("div", Us, [
941
+ M(N.$slots, "list", {
942
+ items: x.value,
943
+ selected: _(o),
944
+ onSelect: _(h)
945
+ }, () => [
946
+ C(Ms, {
947
+ items: x.value,
948
+ selected: _(o),
949
+ "can-edit": !0,
950
+ title: e.title,
951
+ "group-by": e.groupBy,
952
+ "primary-field": e.primaryField,
953
+ "secondary-field": e.secondaryField,
954
+ "empty-message": e.emptyMessage,
955
+ onSelect: _(h)
956
+ }, {
957
+ "item-content": T(({ item: U }) => [
958
+ M(N.$slots, "item-content", { item: U }, void 0, !0)
959
+ ]),
960
+ "item-secondary": T(({ item: U }) => [
961
+ M(N.$slots, "item-secondary", { item: U }, void 0, !0)
962
+ ]),
963
+ empty: T(() => [
964
+ M(N.$slots, "empty", {}, void 0, !0)
965
+ ]),
966
+ _: 3
967
+ }, 8, ["items", "selected", "title", "group-by", "primary-field", "secondary-field", "empty-message", "onSelect"])
968
+ ], !0)
969
+ ]),
970
+ _(z) ? (i(), D(ot, {
971
+ key: 0,
972
+ title: e.deleteConfirmTitle,
973
+ description: e.deleteConfirmMessage,
974
+ action: "Delete",
975
+ onActionClicked: ae,
976
+ onClose: _(f)
977
+ }, null, 8, ["title", "description", "onClose"])) : k("", !0)
978
+ ]));
979
+ }
980
+ }), he = /* @__PURE__ */ Z(Vs, [["__scopeId", "data-v-64df06ec"]]), Bs = { class: "sl-py-1 sl-text-sm sl-leading-5 sl-text-gray-600 dark:sl-text-gray-300" }, js = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, rr = /* @__PURE__ */ F({
981
+ __name: "OrganizationsEditor",
982
+ props: {
983
+ name: {},
984
+ modelValue: { default: () => [] },
985
+ organizations: { default: () => [] },
986
+ positions: { default: () => [] },
987
+ label: {}
988
+ },
989
+ emits: ["update:modelValue", "item-added", "item-updated", "item-deleted"],
990
+ setup(e, { emit: t }) {
991
+ const a = e, l = t, d = {
992
+ id: ye(),
993
+ organization: null,
994
+ position: null,
995
+ position_prefix: "",
996
+ position_suffix: "",
997
+ start_date: null,
998
+ end_date: null,
999
+ status: "new"
1000
+ }, u = b(() => ({
1001
+ fields: [
1002
+ {
1003
+ name: "organization",
1004
+ label: "Organization",
1005
+ as: "ComboboxInput",
1006
+ type: "autocomplete",
1007
+ items: a.organizations,
1008
+ itemKey: "id",
1009
+ itemText: "name",
1010
+ hideLabel: !0,
1011
+ innerLabel: "Organization",
1012
+ tertiaryLabel: "Required"
1013
+ },
1014
+ {
1015
+ name: "position_prefix",
1016
+ label: "Prefix",
1017
+ as: "TextInput",
1018
+ type: "text",
1019
+ hideLabel: !0,
1020
+ innerLabel: "Prefix",
1021
+ placeholder: "e.g., Vice"
1022
+ },
1023
+ {
1024
+ name: "position",
1025
+ label: "Position",
1026
+ as: "ComboboxInput",
1027
+ type: "autocomplete",
1028
+ items: a.positions,
1029
+ itemKey: "id",
1030
+ itemText: "name",
1031
+ hideLabel: !0,
1032
+ innerLabel: "Position",
1033
+ tertiaryLabel: "Required"
1034
+ },
1035
+ {
1036
+ name: "position_suffix",
1037
+ label: "Suffix",
1038
+ as: "TextInput",
1039
+ type: "text",
1040
+ hideLabel: !0,
1041
+ innerLabel: "Suffix",
1042
+ placeholder: "e.g., Emeritus"
1043
+ },
1044
+ {
1045
+ name: "start_date",
1046
+ label: "Start Date",
1047
+ as: "DatepickerInput",
1048
+ type: "datepicker",
1049
+ monthPicker: !0,
1050
+ hideLabel: !0,
1051
+ innerLabel: "Start Date"
1052
+ },
1053
+ {
1054
+ name: "end_date",
1055
+ label: "End Date",
1056
+ as: "DatepickerInput",
1057
+ type: "datepicker",
1058
+ monthPicker: !0,
1059
+ hideLabel: !0,
1060
+ innerLabel: "End Date"
1061
+ }
1062
+ ]
1063
+ })), n = (r, c) => c ? r.find((p) => p.name === c) || { id: c, name: c } : null, o = (r) => {
1064
+ const c = typeof r.organization == "object" && r.organization?.name ? r.organization.name : r.organization, p = typeof r.position == "object" && r.position?.name ? r.position.name : r.position;
1065
+ return {
1066
+ ...r,
1067
+ organization: n(a.organizations, c) || r.organization,
1068
+ position: n(a.positions, p) || r.position
1069
+ };
1070
+ }, g = (r) => ({
1071
+ ...r,
1072
+ organization: typeof r.organization == "object" && r.organization?.name ? r.organization.name : r.organization,
1073
+ position: typeof r.position == "object" && r.position?.name ? r.position.name : r.position
1074
+ }), y = (r) => {
1075
+ const c = [];
1076
+ if (r.position_prefix && c.push(r.position_prefix), r.position) {
1077
+ const p = typeof r.position == "object" && r.position?.name ? r.position.name : r.position;
1078
+ p && c.push(p);
1079
+ }
1080
+ return r.position_suffix && c.push(r.position_suffix), c.join(" ") || "No position";
1081
+ }, v = (r) => {
1082
+ if (!r) return null;
1083
+ if (r instanceof Date) return J(r) ? r : null;
1084
+ if (typeof r == "string") {
1085
+ const c = re(r);
1086
+ return J(c) ? c : null;
1087
+ }
1088
+ return null;
1089
+ }, z = (r, c) => {
1090
+ const p = v(r), $ = v(c), f = [];
1091
+ if (p && f.push(q(p, "MMM yyyy")), f.push("–"), $ ? f.push(q($, "MMM yyyy")) : f.push("Present"), p) {
1092
+ const x = $ || /* @__PURE__ */ new Date(), P = ce(x, p), B = Ae(x, p) % 12, H = [];
1093
+ P > 0 && H.push(`${P}y`), (B > 0 || P === 0) && H.push(`${B || 1}mo`), H.length > 0 && f.push("•", H.join(" "));
1094
+ }
1095
+ return f.join(" ");
1096
+ }, h = (r) => {
1097
+ l("update:modelValue", r);
1098
+ };
1099
+ return (r, c) => (i(), D(he, {
1100
+ name: e.name,
1101
+ "model-value": e.modelValue,
1102
+ schema: u.value,
1103
+ "empty-form-values": d,
1104
+ label: e.label,
1105
+ title: "Organizations",
1106
+ "group-by": "organization",
1107
+ "primary-field": "position",
1108
+ "explode-item": o,
1109
+ "implode-item": g,
1110
+ "delete-confirm-title": "Remove Position",
1111
+ "delete-confirm-message": "Are you sure you want to remove this position? You will need to save your changes for this to take effect.",
1112
+ "empty-message": "No organizations found. Click 'Add' to create one.",
1113
+ "onUpdate:modelValue": h,
1114
+ onItemAdded: c[0] || (c[0] = (p) => l("item-added", p)),
1115
+ onItemUpdated: c[1] || (c[1] = (p) => l("item-updated", p)),
1116
+ onItemDeleted: c[2] || (c[2] = (p) => l("item-deleted", p))
1117
+ }, {
1118
+ "item-content": T(({ item: p }) => [
1119
+ s("p", Bs, w(y(p)), 1)
1120
+ ]),
1121
+ "item-secondary": T(({ item: p }) => [
1122
+ s("span", js, w(z(p.start_date, p.end_date)), 1)
1123
+ ]),
1124
+ _: 1
1125
+ }, 8, ["name", "model-value", "schema", "label"]));
1126
+ }
1127
+ }), Os = { class: "sl-flex sl-items-center sl-gap-3" }, Rs = { class: "sl-w-8 sl-h-8 sl-rounded-full sl-flex sl-items-center sl-justify-center sl-bg-primary-100 dark:sl-bg-primary-900/50 sl-text-primary-600 dark:sl-text-primary-400 sl-text-xs sl-font-semibold sl-flex-shrink-0" }, Hs = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100" }, Gs = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, Ks = {
1128
+ key: 0,
1129
+ class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400"
1130
+ }, nr = /* @__PURE__ */ F({
1131
+ __name: "RelatedNamesEditor",
1132
+ props: {
1133
+ name: {},
1134
+ modelValue: { default: () => [] },
1135
+ labels: { default: () => [
1136
+ { id: "spouse", name: "Spouse" },
1137
+ { id: "child", name: "Child" },
1138
+ { id: "parent", name: "Parent" },
1139
+ { id: "sibling", name: "Sibling" },
1140
+ { id: "partner", name: "Partner" },
1141
+ { id: "friend", name: "Friend" },
1142
+ { id: "other", name: "Other" }
1143
+ ] },
1144
+ label: {}
1145
+ },
1146
+ emits: ["update:modelValue", "item-added", "item-updated", "item-deleted"],
1147
+ setup(e, { emit: t }) {
1148
+ const a = e, l = t, d = {
1149
+ id: ye(),
1150
+ first_name: "",
1151
+ last_name: "",
1152
+ label: null,
1153
+ birthday: null,
1154
+ status: "new"
1155
+ }, u = b(() => ({
1156
+ fields: [
1157
+ {
1158
+ name: "first_name",
1159
+ label: "First Name",
1160
+ as: "TextInput",
1161
+ type: "text",
1162
+ hideLabel: !0,
1163
+ innerLabel: "First Name",
1164
+ tertiaryLabel: "Required"
1165
+ },
1166
+ {
1167
+ name: "last_name",
1168
+ label: "Last Name",
1169
+ as: "TextInput",
1170
+ type: "text",
1171
+ hideLabel: !0,
1172
+ innerLabel: "Last Name"
1173
+ },
1174
+ {
1175
+ name: "label",
1176
+ label: "Relationship",
1177
+ as: "ComboboxInput",
1178
+ type: "autocomplete",
1179
+ items: a.labels,
1180
+ itemKey: "id",
1181
+ itemText: "name",
1182
+ hideLabel: !0,
1183
+ innerLabel: "Relationship",
1184
+ tertiaryLabel: "Required"
1185
+ },
1186
+ {
1187
+ name: "birthday",
1188
+ label: "Birthday",
1189
+ as: "DatepickerInput",
1190
+ type: "datepicker",
1191
+ hideLabel: !0,
1192
+ innerLabel: "Birthday"
1193
+ }
1194
+ ]
1195
+ })), n = (c, p) => p ? c.find(($) => $.name === p) || { id: p, name: p } : null, o = (c) => {
1196
+ const p = typeof c.label == "object" && c.label?.name ? c.label.name : c.label;
1197
+ return {
1198
+ ...c,
1199
+ label: n(a.labels, p) || c.label
1200
+ };
1201
+ }, g = (c) => ({
1202
+ ...c,
1203
+ label: typeof c.label == "object" && c.label?.name ? c.label.name : c.label
1204
+ }), y = (c) => {
1205
+ if (c.name) return c.name;
1206
+ const p = [];
1207
+ return c.first_name && p.push(c.first_name), c.last_name && p.push(c.last_name), p.join(" ") || "Unknown";
1208
+ }, v = (c) => {
1209
+ const p = y(c), $ = p.split(" ").filter(Boolean);
1210
+ return $.length >= 2 ? `${$[0][0]}${$[$.length - 1][0]}`.toUpperCase() : p.substring(0, 2).toUpperCase();
1211
+ }, z = (c) => c.label ? typeof c.label == "string" ? c.label : c.label.name || "" : c.relationship || "", h = (c) => {
1212
+ if (!c) return "";
1213
+ let p;
1214
+ if (typeof c == "string" ? p = re(c) : p = c, !J(p)) return "";
1215
+ const $ = ce(/* @__PURE__ */ new Date(), p);
1216
+ return `${q(p, "MMM d")} (${$}y)`;
1217
+ }, r = (c) => {
1218
+ l("update:modelValue", c);
1219
+ };
1220
+ return (c, p) => (i(), D(he, {
1221
+ name: e.name,
1222
+ "model-value": e.modelValue,
1223
+ schema: u.value,
1224
+ "empty-form-values": d,
1225
+ label: e.label,
1226
+ title: "Related Names",
1227
+ "primary-field": "name",
1228
+ "secondary-field": "label",
1229
+ "explode-item": o,
1230
+ "implode-item": g,
1231
+ "delete-confirm-title": "Remove Related Name",
1232
+ "delete-confirm-message": "Are you sure you want to remove this related name? You will need to save your changes for this to take effect.",
1233
+ "empty-message": "No related names found. Click 'Add' to create one.",
1234
+ "onUpdate:modelValue": r,
1235
+ onItemAdded: p[0] || (p[0] = ($) => l("item-added", $)),
1236
+ onItemUpdated: p[1] || (p[1] = ($) => l("item-updated", $)),
1237
+ onItemDeleted: p[2] || (p[2] = ($) => l("item-deleted", $))
1238
+ }, {
1239
+ "item-content": T(({ item: $ }) => [
1240
+ s("div", Os, [
1241
+ s("div", Rs, w(v($)), 1),
1242
+ s("div", null, [
1243
+ s("p", Hs, w(y($)), 1),
1244
+ s("p", Gs, w(z($)), 1)
1245
+ ])
1246
+ ])
1247
+ ]),
1248
+ "item-secondary": T(({ item: $ }) => [
1249
+ $.birthday ? (i(), m("span", Ks, w(h($.birthday)), 1)) : k("", !0)
1250
+ ]),
1251
+ _: 1
1252
+ }, 8, ["name", "model-value", "schema", "label"]));
1253
+ }
1254
+ }), Ws = { class: "sl-flex sl-items-center sl-gap-3" }, Ys = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100" }, Xs = {
1255
+ key: 0,
1256
+ class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400"
1257
+ }, qs = ["href"], ir = /* @__PURE__ */ F({
1258
+ __name: "SocialLinksEditor",
1259
+ props: {
1260
+ name: {},
1261
+ modelValue: { default: () => [] },
1262
+ platforms: { default: () => [
1263
+ { id: "linkedin", name: "LinkedIn" },
1264
+ { id: "twitter", name: "Twitter/X" },
1265
+ { id: "facebook", name: "Facebook" },
1266
+ { id: "instagram", name: "Instagram" },
1267
+ { id: "youtube", name: "YouTube" },
1268
+ { id: "tiktok", name: "TikTok" },
1269
+ { id: "github", name: "GitHub" },
1270
+ { id: "website", name: "Website" }
1271
+ ] },
1272
+ label: {}
1273
+ },
1274
+ emits: ["update:modelValue", "item-added", "item-updated", "item-deleted"],
1275
+ setup(e, { emit: t }) {
1276
+ const a = (A) => () => ne("svg", { viewBox: "0 0 24 24", fill: "currentColor" }, [ne("path", { d: A })]), l = a("M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"), d = a("M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"), u = a("M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"), n = a("M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"), o = a("M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"), g = a("M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"), y = a("M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"), v = a("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"), z = {
1277
+ linkedin: l,
1278
+ twitter: d,
1279
+ x: d,
1280
+ facebook: u,
1281
+ instagram: n,
1282
+ youtube: o,
1283
+ tiktok: g,
1284
+ github: y,
1285
+ website: v
1286
+ }, h = {
1287
+ linkedin: "sl-text-[#0A66C2]",
1288
+ twitter: "sl-text-gray-900 dark:sl-text-gray-100",
1289
+ x: "sl-text-gray-900 dark:sl-text-gray-100",
1290
+ facebook: "sl-text-[#1877F2]",
1291
+ instagram: "sl-text-[#E4405F]",
1292
+ youtube: "sl-text-[#FF0000]",
1293
+ tiktok: "sl-text-gray-900 dark:sl-text-gray-100",
1294
+ github: "sl-text-gray-900 dark:sl-text-gray-100"
1295
+ }, r = e, c = t, p = {
1296
+ id: ye(),
1297
+ platform: "",
1298
+ handle: "",
1299
+ url: "",
1300
+ status: "new"
1301
+ }, $ = b(() => ({
1302
+ fields: [
1303
+ {
1304
+ name: "platform",
1305
+ label: "Platform",
1306
+ as: "SelectInput",
1307
+ type: "select",
1308
+ items: r.platforms,
1309
+ itemKey: "id",
1310
+ itemText: "name",
1311
+ hideLabel: !0,
1312
+ innerLabel: "Platform",
1313
+ tertiaryLabel: "Required"
1314
+ },
1315
+ {
1316
+ name: "handle",
1317
+ label: "Handle/Username",
1318
+ as: "TextInput",
1319
+ type: "text",
1320
+ hideLabel: !0,
1321
+ innerLabel: "Handle/Username",
1322
+ placeholder: "@username"
1323
+ },
1324
+ {
1325
+ name: "url",
1326
+ label: "Profile URL",
1327
+ as: "TextInput",
1328
+ type: "url",
1329
+ hideLabel: !0,
1330
+ innerLabel: "Profile URL",
1331
+ placeholder: "https://..."
1332
+ }
1333
+ ]
1334
+ })), f = (A) => A, x = (A) => A, P = (A) => r.platforms.find((V) => V.id === A)?.name || A || "Unknown Platform", B = (A) => {
1335
+ const U = A?.toLowerCase() || "website";
1336
+ return z[U] || v;
1337
+ }, H = (A) => {
1338
+ const U = A?.toLowerCase() || "website";
1339
+ return h[U] || "sl-text-gray-500";
1340
+ }, ae = (A) => A ? A.startsWith("http://") || A.startsWith("https://") ? A : `https://${A}` : "#", N = (A) => {
1341
+ c("update:modelValue", A);
1342
+ };
1343
+ return (A, U) => (i(), D(he, {
1344
+ name: e.name,
1345
+ "model-value": e.modelValue,
1346
+ schema: $.value,
1347
+ "empty-form-values": p,
1348
+ label: e.label,
1349
+ title: "Social Links",
1350
+ "primary-field": "platform",
1351
+ "secondary-field": "handle",
1352
+ "explode-item": f,
1353
+ "implode-item": x,
1354
+ "delete-confirm-title": "Remove Social Link",
1355
+ "delete-confirm-message": "Are you sure you want to remove this social link? You will need to save your changes for this to take effect.",
1356
+ "empty-message": "No social links found. Click 'Add' to create one.",
1357
+ "onUpdate:modelValue": N,
1358
+ onItemAdded: U[1] || (U[1] = (V) => c("item-added", V)),
1359
+ onItemUpdated: U[2] || (U[2] = (V) => c("item-updated", V)),
1360
+ onItemDeleted: U[3] || (U[3] = (V) => c("item-deleted", V))
1361
+ }, {
1362
+ "item-content": T(({ item: V }) => [
1363
+ s("div", Ws, [
1364
+ (i(), D(ge(B(V.platform)), {
1365
+ class: E(["sl-w-5 sl-h-5 sl-flex-shrink-0", H(V.platform)])
1366
+ }, null, 8, ["class"])),
1367
+ s("div", null, [
1368
+ s("p", Ys, w(P(V.platform)), 1),
1369
+ V.handle ? (i(), m("p", Xs, " @" + w(V.handle), 1)) : k("", !0)
1370
+ ])
1371
+ ])
1372
+ ]),
1373
+ "item-secondary": T(({ item: V }) => [
1374
+ V.url ? (i(), m("a", {
1375
+ key: 0,
1376
+ href: ae(V.url),
1377
+ target: "_blank",
1378
+ rel: "noopener noreferrer",
1379
+ class: "sl-text-xs sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline",
1380
+ onClick: U[0] || (U[0] = Te(() => {
1381
+ }, ["stop"]))
1382
+ }, " View Profile ", 8, qs)) : k("", !0)
1383
+ ]),
1384
+ _: 1
1385
+ }, 8, ["name", "model-value", "schema", "label"]));
1386
+ }
742
1387
  });
743
- let P = null, G = null, J = null, O = null, q = !1;
744
- const N = /* @__PURE__ */ new Map(), Hs = 1e3, Ws = 1e3 * 60 * 60 * 24;
745
- function Zs(s) {
746
- P = s, q = !1, O = null, J = null, G = null;
1388
+ let W = null, se = null, ie = null, ee = null, pe = !1;
1389
+ const te = /* @__PURE__ */ new Map(), Js = 1e3, Zs = 1e3 * 60 * 60 * 24;
1390
+ function Qs(e) {
1391
+ W = e, pe = !1, ee = null, ie = null, se = null;
747
1392
  }
748
- function Js() {
749
- return P !== null && !!P.apiKey;
1393
+ function el() {
1394
+ return W !== null && !!W.apiKey;
750
1395
  }
751
- async function te() {
752
- if (!q) {
753
- if (O)
754
- return O;
755
- if (!P?.apiKey)
1396
+ async function xe() {
1397
+ if (!pe) {
1398
+ if (ee)
1399
+ return ee;
1400
+ if (!W?.apiKey)
756
1401
  throw new Error(
757
1402
  '[Geocoding] API key not configured. Call configureGeocoding({ apiKey: "..." }) first, or configure via StachelockUI plugin with googleMaps.apiKey option.'
758
1403
  );
759
- return O = (async () => {
1404
+ return ee = (async () => {
760
1405
  try {
761
- await new us({
762
- apiKey: P.apiKey,
763
- version: P.version || "weekly",
1406
+ await new Ft({
1407
+ apiKey: W.apiKey,
1408
+ version: W.version || "weekly",
764
1409
  id: "__stachelockGoogleMapsScriptId",
765
- libraries: P.libraries || ["places", "maps", "geometry"]
766
- }).load(), J = await google.maps.importLibrary("places"), G = new google.maps.Geocoder(), q = !0;
767
- } catch (s) {
768
- throw O = null, console.error("[Geocoding] Error loading Google Maps API:", s), s;
1410
+ libraries: W.libraries || ["places", "maps", "geometry"]
1411
+ }).load(), ie = await google.maps.importLibrary("places"), se = new google.maps.Geocoder(), pe = !0;
1412
+ } catch (e) {
1413
+ throw ee = null, console.error("[Geocoding] Error loading Google Maps API:", e), e;
769
1414
  }
770
- })(), O;
1415
+ })(), ee;
771
1416
  }
772
1417
  }
773
- function ge(s) {
774
- return s.trim().toLowerCase().replace(/\s+/g, " ");
1418
+ function Ue(e) {
1419
+ return e.trim().toLowerCase().replace(/\s+/g, " ");
775
1420
  }
776
- function ye(s) {
777
- return typeof s == "string" ? `str:${ge(s)}` : `pid:${s.placeId}`;
1421
+ function Ve(e) {
1422
+ return typeof e == "string" ? `str:${Ue(e)}` : `pid:${e.placeId}`;
778
1423
  }
779
- function he(s) {
780
- const e = N.get(s);
781
- return e ? Date.now() - e.ts > Ws ? (N.delete(s), null) : e.result : null;
1424
+ function Be(e) {
1425
+ const t = te.get(e);
1426
+ return t ? Date.now() - t.ts > Zs ? (te.delete(e), null) : t.result : null;
782
1427
  }
783
- function xe(s, e) {
1428
+ function je(e, t) {
784
1429
  try {
785
- if (N.size >= Hs) {
786
- const o = N.keys().next().value;
787
- o && N.delete(o);
1430
+ if (te.size >= Js) {
1431
+ const a = te.keys().next().value;
1432
+ a && te.delete(a);
788
1433
  }
789
- N.set(s, { result: e, ts: Date.now() });
1434
+ te.set(e, { result: t, ts: Date.now() });
790
1435
  } catch {
791
1436
  }
792
1437
  }
793
- function ve(s, e = 15, o = "200x200") {
794
- if (!P?.apiKey) return "";
795
- const l = P.staticMapsApiKey || P.apiKey, r = "https://maps.googleapis.com/maps/api/staticmap", d = new URLSearchParams({
796
- center: `${s.lat},${s.lng}`,
797
- zoom: e.toString(),
798
- size: o,
1438
+ function Oe(e, t = 15, a = "200x200") {
1439
+ if (!W?.apiKey) return "";
1440
+ const l = W.staticMapsApiKey || W.apiKey, d = "https://maps.googleapis.com/maps/api/staticmap", u = new URLSearchParams({
1441
+ center: `${e.lat},${e.lng}`,
1442
+ zoom: t.toString(),
1443
+ size: a,
799
1444
  key: l,
800
- markers: `color:red|${s.lat},${s.lng}`
1445
+ markers: `color:red|${e.lat},${e.lng}`
801
1446
  });
802
- return `${r}?${d.toString()}`;
1447
+ return `${d}?${u.toString()}`;
803
1448
  }
804
- async function Xs(s) {
805
- if (!s?.trim())
1449
+ async function tl(e) {
1450
+ if (!e?.trim())
806
1451
  return {
807
1452
  status: "INVALID_INPUT",
808
1453
  message: "No placeId provided for geocoding."
809
1454
  };
810
- await te();
811
- const e = ye({ placeId: s }), o = he(e);
812
- return o || new Promise((l) => {
813
- if (!G) {
1455
+ await xe();
1456
+ const t = Ve({ placeId: e }), a = Be(t);
1457
+ return a || new Promise((l) => {
1458
+ if (!se) {
814
1459
  l({
815
1460
  status: "ERROR",
816
1461
  message: "Geocoder service not initialized."
817
1462
  });
818
1463
  return;
819
1464
  }
820
- G.geocode({ placeId: s }, (r, d) => {
821
- if (d === google.maps.GeocoderStatus.OK && r && r.length > 0) {
822
- const a = r[0], n = a.geometry ? {
823
- lat: a.geometry.location.lat(),
824
- lng: a.geometry.location.lng()
825
- } : void 0, S = {
1465
+ se.geocode({ placeId: e }, (d, u) => {
1466
+ if (u === google.maps.GeocoderStatus.OK && d && d.length > 0) {
1467
+ const n = d[0], o = n.geometry ? {
1468
+ lat: n.geometry.location.lat(),
1469
+ lng: n.geometry.location.lng()
1470
+ } : void 0, g = {
826
1471
  status: "OK",
827
1472
  message: "Found address",
828
- address_components: a.address_components || [],
829
- location: n,
830
- formatted_address: a.formatted_address || "",
831
- thumbnailUrl: n ? ve(n) : void 0
1473
+ address_components: n.address_components || [],
1474
+ location: o,
1475
+ formatted_address: n.formatted_address || "",
1476
+ thumbnailUrl: o ? Oe(o) : void 0
832
1477
  };
833
- xe(e, S), l(S);
1478
+ je(t, g), l(g);
834
1479
  } else
835
1480
  l({
836
- status: d.toString(),
837
- message: `Unable to geocode place: ${d}`
1481
+ status: u.toString(),
1482
+ message: `Unable to geocode place: ${u}`
838
1483
  });
839
1484
  });
840
1485
  });
841
1486
  }
842
- function Ys(s) {
843
- const e = ge(s);
844
- if (e.length < 10) return !1;
845
- const o = /\d/.test(e), l = e.includes(","), r = /\b([A-Z]{2})\b/i.test(s), d = /\b\d{5}(?:-\d{4})?\b/.test(e);
846
- return (l || r || d) && o;
1487
+ function sl(e) {
1488
+ const t = Ue(e);
1489
+ if (t.length < 10) return !1;
1490
+ const a = /\d/.test(t), l = t.includes(","), d = /\b([A-Z]{2})\b/i.test(e), u = /\b\d{5}(?:-\d{4})?\b/.test(t);
1491
+ return (l || d || u) && a;
847
1492
  }
848
- async function Qs(s) {
849
- if (!s?.trim())
1493
+ async function ll(e) {
1494
+ if (!e?.trim())
850
1495
  return {
851
1496
  status: "INVALID_INPUT",
852
1497
  message: "No address provided for geocoding."
853
1498
  };
854
- if (!Ys(s))
1499
+ if (!sl(e))
855
1500
  return {
856
1501
  status: "INVALID_INPUT",
857
1502
  message: "Insufficient address information for geocoding."
858
1503
  };
859
- await te();
860
- const e = ye(s), o = he(e);
861
- return o || new Promise((l) => {
862
- if (!G) {
1504
+ await xe();
1505
+ const t = Ve(e), a = Be(t);
1506
+ return a || new Promise((l) => {
1507
+ if (!se) {
863
1508
  l({
864
1509
  status: "ERROR",
865
1510
  message: "Geocoder service not initialized."
866
1511
  });
867
1512
  return;
868
1513
  }
869
- G.geocode({ address: s }, (r, d) => {
870
- if (d === google.maps.GeocoderStatus.OK && r && r.length > 0) {
871
- const a = r[0], n = a.geometry ? {
872
- lat: a.geometry.location.lat(),
873
- lng: a.geometry.location.lng()
874
- } : void 0, S = {
1514
+ se.geocode({ address: e }, (d, u) => {
1515
+ if (u === google.maps.GeocoderStatus.OK && d && d.length > 0) {
1516
+ const n = d[0], o = n.geometry ? {
1517
+ lat: n.geometry.location.lat(),
1518
+ lng: n.geometry.location.lng()
1519
+ } : void 0, g = {
875
1520
  status: "OK",
876
1521
  message: "Found address",
877
- address_components: a.address_components || [],
878
- location: n,
879
- formatted_address: a.formatted_address || "",
880
- thumbnailUrl: n ? ve(n) : void 0
1522
+ address_components: n.address_components || [],
1523
+ location: o,
1524
+ formatted_address: n.formatted_address || "",
1525
+ thumbnailUrl: o ? Oe(o) : void 0
881
1526
  };
882
- xe(e, S), l(S);
1527
+ je(t, g), l(g);
883
1528
  } else
884
1529
  l({
885
- status: d.toString(),
886
- message: `Unable to geocode address: ${d}`
1530
+ status: u.toString(),
1531
+ message: `Unable to geocode address: ${u}`
887
1532
  });
888
1533
  });
889
1534
  });
890
1535
  }
891
- async function qs(s, e) {
892
- if (!s?.trim())
1536
+ async function al(e, t) {
1537
+ if (!e?.trim())
893
1538
  return [];
894
- if (await te(), !J)
1539
+ if (await xe(), !ie)
895
1540
  return console.warn("[Geocoding] Places library not initialized"), [];
896
1541
  try {
897
- const { AutocompleteSuggestion: o } = J, l = {
898
- input: s,
899
- ...e?.includedPrimaryTypes && { includedPrimaryTypes: e.includedPrimaryTypes },
900
- ...e?.includedRegionCodes && { includedRegionCodes: e.includedRegionCodes }
901
- }, { suggestions: r } = await o.fetchAutocompleteSuggestions(l);
902
- return r.filter(
903
- (a) => a.placePrediction !== null
904
- ).map((a) => {
905
- const n = a.placePrediction;
1542
+ const { AutocompleteSuggestion: a } = ie, l = {
1543
+ input: e,
1544
+ ...t?.includedPrimaryTypes && { includedPrimaryTypes: t.includedPrimaryTypes },
1545
+ ...t?.includedRegionCodes && { includedRegionCodes: t.includedRegionCodes }
1546
+ }, { suggestions: d } = await a.fetchAutocompleteSuggestions(l);
1547
+ return d.filter(
1548
+ (n) => n.placePrediction !== null
1549
+ ).map((n) => {
1550
+ const o = n.placePrediction;
906
1551
  return {
907
- placeId: n.placeId,
908
- description: n.text.toString(),
909
- mainText: n.mainText?.toString() || n.text.toString(),
910
- secondaryText: n.secondaryText?.toString() || "",
911
- types: n.types || []
1552
+ placeId: o.placeId,
1553
+ description: o.text.toString(),
1554
+ mainText: o.mainText?.toString() || o.text.toString(),
1555
+ secondaryText: o.secondaryText?.toString() || "",
1556
+ types: o.types || []
912
1557
  };
913
1558
  });
914
- } catch (o) {
915
- return console.error("[Geocoding] Error fetching autocomplete suggestions:", o), [];
1559
+ } catch (a) {
1560
+ return console.error("[Geocoding] Error fetching autocomplete suggestions:", a), [];
916
1561
  }
917
1562
  }
918
- function et(s) {
919
- const e = {
1563
+ function ol(e) {
1564
+ const t = {
920
1565
  street: "",
921
1566
  city: "",
922
1567
  state: "",
923
1568
  zipcode: "",
924
1569
  country: ""
925
1570
  };
926
- if (!s?.address_components)
927
- return e;
928
- let o = "", l = "";
929
- for (const r of s.address_components) {
930
- const d = r.types;
931
- d.includes("street_number") ? o = r.long_name : d.includes("route") ? l = r.long_name : d.includes("locality") ? e.city = r.long_name : d.includes("administrative_area_level_1") ? e.state = r.short_name : d.includes("postal_code") ? e.zipcode = r.long_name : d.includes("country") && (e.country = r.short_name);
1571
+ if (!e?.address_components)
1572
+ return t;
1573
+ let a = "", l = "";
1574
+ for (const d of e.address_components) {
1575
+ const u = d.types;
1576
+ u.includes("street_number") ? a = d.long_name : u.includes("route") ? l = d.long_name : u.includes("locality") ? t.city = d.long_name : u.includes("administrative_area_level_1") ? t.state = d.short_name : u.includes("postal_code") ? t.zipcode = d.long_name : u.includes("country") && (t.country = d.short_name);
932
1577
  }
933
- return e.street = [o, l].filter(Boolean).join(" "), e;
1578
+ return t.street = [a, l].filter(Boolean).join(" "), t;
934
1579
  }
935
- function st(s) {
1580
+ function rl(e) {
936
1581
  return [
937
- s.street,
938
- s.city,
939
- s.state && s.zipcode ? `${s.state} ${s.zipcode}` : s.state || s.zipcode,
940
- s.country
1582
+ e.street,
1583
+ e.city,
1584
+ e.state && e.zipcode ? `${e.state} ${e.zipcode}` : e.state || e.zipcode,
1585
+ e.country
941
1586
  ].filter(Boolean).join(", ");
942
1587
  }
943
- const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = { class: "sl-relative" }, at = { class: "sl-flex sl-flex-col" }, rt = {
1588
+ const nl = { class: "sl-address-input" }, il = { class: "sl-space-y-3" }, dl = { class: "sl-relative" }, cl = { class: "sl-flex sl-flex-col" }, ul = {
944
1589
  key: 0,
945
1590
  class: "sl-flex sl-items-center sl-justify-between"
946
- }, nt = { class: "sl-flex sl-items-center sl-gap-2" }, it = { class: "sl-grid sl-grid-cols-1 sm:sl-grid-cols-2 sl-gap-3 sl-p-3 sl-bg-gray-50 dark:sl-bg-slate-800/50 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-700" }, dt = { class: "sm:sl-col-span-2" }, ct = /* @__PURE__ */ D({
1591
+ }, ml = { class: "sl-flex sl-items-center sl-gap-2" }, fl = { class: "sl-grid sl-grid-cols-1 sm:sl-grid-cols-2 sl-gap-3 sl-p-3 sl-bg-gray-50 dark:sl-bg-slate-800/50 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-700" }, pl = { class: "sm:sl-col-span-2" }, gl = /* @__PURE__ */ F({
947
1592
  __name: "AddressInput",
948
1593
  props: {
949
1594
  name: {},
@@ -959,31 +1604,31 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
959
1604
  validateOnMount: { type: Boolean, default: !1 }
960
1605
  },
961
1606
  emits: ["update:modelValue", "blur", "focus"],
962
- setup(s, { expose: e, emit: o }) {
963
- const l = s, r = o, d = Ee(l.name || "address-input"), a = Pe("googleMaps", void 0);
964
- De(() => {
965
- a?.apiKey && !Js() && Zs({
966
- apiKey: a.apiKey,
967
- version: a.version,
968
- libraries: a.libraries
1607
+ setup(e, { expose: t, emit: a }) {
1608
+ const l = e, d = a, u = Xe(l.name || "address-input"), n = Le("googleMaps", void 0);
1609
+ Je(() => {
1610
+ n?.apiKey && !el() && Qs({
1611
+ apiKey: n.apiKey,
1612
+ version: n.version,
1613
+ libraries: n.libraries
969
1614
  });
970
1615
  });
971
- const { value: n, errorMessage: S, meta: I, handleChange: A, setTouched: K } = cs(
1616
+ const { value: o, errorMessage: g, meta: y, handleChange: v, setTouched: z } = Dt(
972
1617
  () => l.name,
973
1618
  l.rules,
974
1619
  {
975
1620
  validateOnMount: l.validateOnMount,
976
1621
  initialValue: l.modelValue
977
1622
  }
978
- ), T = F([]), m = F(null), $ = F(""), L = F(!1), H = F(!1), i = F("unverified"), u = ue({
1623
+ ), h = K([]), r = K(null), c = K(""), p = K(!1), $ = K(!1), f = K("unverified"), x = Me({
979
1624
  street: "",
980
1625
  suite: "",
981
1626
  city: "",
982
1627
  state: "",
983
1628
  zipcode: "",
984
1629
  country: ""
985
- }), W = C(() => !!(n.value?.formattedAddress || n.value?.street)), be = C(() => l.showSuggestionCount && T.value.length > 0 ? `${T.value.length} suggestions` : l.tertiaryLabel), le = C(() => {
986
- switch (i.value) {
1630
+ }), P = b(() => !!(o.value?.formattedAddress || o.value?.street)), B = b(() => l.showSuggestionCount && h.value.length > 0 ? `${h.value.length} suggestions` : l.tertiaryLabel), H = b(() => {
1631
+ switch (f.value) {
987
1632
  case "verified":
988
1633
  return "sl-text-green-600 dark:sl-text-green-400";
989
1634
  case "error":
@@ -993,8 +1638,8 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
993
1638
  default:
994
1639
  return "sl-text-gray-500 dark:sl-text-slate-400";
995
1640
  }
996
- }), ke = C(() => {
997
- switch (i.value) {
1641
+ }), ae = b(() => {
1642
+ switch (f.value) {
998
1643
  case "verified":
999
1644
  return "Verified";
1000
1645
  case "error":
@@ -1004,175 +1649,175 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1004
1649
  default:
1005
1650
  return "Unverified";
1006
1651
  }
1007
- }), Ce = C(() => {
1008
- switch (i.value) {
1652
+ }), N = b(() => {
1653
+ switch (f.value) {
1009
1654
  case "verified":
1010
- return ls;
1655
+ return ft;
1011
1656
  case "error":
1012
- return ts;
1657
+ return mt;
1013
1658
  case "pending":
1014
- return de;
1659
+ return $e;
1015
1660
  default:
1016
- return de;
1661
+ return $e;
1017
1662
  }
1018
- }), we = ce(async (g) => {
1019
- if (!g || g.length < 3) {
1020
- T.value = [];
1663
+ }), A = ze(async (S) => {
1664
+ if (!S || S.length < 3) {
1665
+ h.value = [];
1021
1666
  return;
1022
1667
  }
1023
- H.value = !0;
1668
+ $.value = !0;
1024
1669
  try {
1025
- const p = await qs(g);
1026
- T.value = p;
1027
- } catch (p) {
1028
- console.error("[AddressInput] Error fetching suggestions:", p), T.value = [];
1670
+ const I = await al(S);
1671
+ h.value = I;
1672
+ } catch (I) {
1673
+ console.error("[AddressInput] Error fetching suggestions:", I), h.value = [];
1029
1674
  } finally {
1030
- H.value = !1;
1675
+ $.value = !1;
1031
1676
  }
1032
1677
  }, 300);
1033
- function $e(g) {
1034
- const p = g.target;
1035
- $.value = p.value, we(p.value);
1678
+ function U(S) {
1679
+ const I = S.target;
1680
+ c.value = I.value, A(I.value);
1036
1681
  }
1037
- function Se(g) {
1038
- return g ? g.description : n.value?.formattedAddress ? n.value.formattedAddress : "";
1682
+ function V(S) {
1683
+ return S ? S.description : o.value?.formattedAddress ? o.value.formattedAddress : "";
1039
1684
  }
1040
- async function _e(g) {
1041
- if (g) {
1042
- i.value = "pending", T.value = [];
1685
+ async function Re(S) {
1686
+ if (S) {
1687
+ f.value = "pending", h.value = [];
1043
1688
  try {
1044
- const p = await Xs(g.placeId);
1045
- if (p.status === "OK") {
1046
- i.value = "verified";
1047
- const h = et(p);
1048
- u.street = h.street, u.city = h.city, u.state = h.state, u.zipcode = h.zipcode, u.country = h.country;
1049
- const B = {
1050
- formattedAddress: p.formatted_address,
1051
- street: h.street,
1052
- suite: u.suite,
1053
- city: h.city,
1054
- state: h.state,
1055
- zipcode: h.zipcode,
1056
- country: h.country,
1057
- geocode: p,
1058
- placeId: g.placeId
1689
+ const I = await tl(S.placeId);
1690
+ if (I.status === "OK") {
1691
+ f.value = "verified";
1692
+ const L = ol(I);
1693
+ x.street = L.street, x.city = L.city, x.state = L.state, x.zipcode = L.zipcode, x.country = L.country;
1694
+ const X = {
1695
+ formattedAddress: I.formatted_address,
1696
+ street: L.street,
1697
+ suite: x.suite,
1698
+ city: L.city,
1699
+ state: L.state,
1700
+ zipcode: L.zipcode,
1701
+ country: L.country,
1702
+ geocode: I,
1703
+ placeId: S.placeId
1059
1704
  };
1060
- n.value = B, A(B), r("update:modelValue", B), L.value = !0;
1705
+ o.value = X, v(X), d("update:modelValue", X), p.value = !0;
1061
1706
  } else
1062
- i.value = "error", console.warn("[AddressInput] Geocoding failed:", p.message);
1063
- } catch (p) {
1064
- i.value = "error", console.error("[AddressInput] Geocoding error:", p);
1707
+ f.value = "error", console.warn("[AddressInput] Geocoding failed:", I.message);
1708
+ } catch (I) {
1709
+ f.value = "error", console.error("[AddressInput] Geocoding error:", I);
1065
1710
  }
1066
1711
  }
1067
1712
  }
1068
- const Te = ["street", "city", "state", "zipcode", "country"], Ie = ce(async () => {
1069
- const g = st(u);
1070
- if (!g || g.length < 10) {
1071
- i.value = "unverified";
1713
+ const He = ["street", "city", "state", "zipcode", "country"], Ge = ze(async () => {
1714
+ const S = rl(x);
1715
+ if (!S || S.length < 10) {
1716
+ f.value = "unverified";
1072
1717
  return;
1073
1718
  }
1074
- i.value = "pending";
1719
+ f.value = "pending";
1075
1720
  try {
1076
- const p = await Qs(g);
1077
- if (p.status === "OK") {
1078
- i.value = "verified";
1079
- const h = {
1080
- formattedAddress: p.formatted_address,
1081
- street: u.street,
1082
- suite: u.suite,
1083
- city: u.city,
1084
- state: u.state,
1085
- zipcode: u.zipcode,
1086
- country: u.country,
1087
- geocode: p,
1721
+ const I = await ll(S);
1722
+ if (I.status === "OK") {
1723
+ f.value = "verified";
1724
+ const L = {
1725
+ formattedAddress: I.formatted_address,
1726
+ street: x.street,
1727
+ suite: x.suite,
1728
+ city: x.city,
1729
+ state: x.state,
1730
+ zipcode: x.zipcode,
1731
+ country: x.country,
1732
+ geocode: I,
1088
1733
  placeId: void 0
1089
1734
  // Clear placeId since we re-geocoded
1090
1735
  };
1091
- n.value = h, A(h), r("update:modelValue", h);
1736
+ o.value = L, v(L), d("update:modelValue", L);
1092
1737
  } else
1093
- i.value = "unverified";
1094
- } catch (p) {
1095
- i.value = "error", console.error("[AddressInput] Re-geocoding error:", p);
1738
+ f.value = "unverified";
1739
+ } catch (I) {
1740
+ f.value = "error", console.error("[AddressInput] Re-geocoding error:", I);
1096
1741
  }
1097
1742
  }, 600);
1098
- function j(g) {
1099
- const p = {
1100
- ...n.value,
1101
- street: u.street,
1102
- suite: u.suite,
1103
- city: u.city,
1104
- state: u.state,
1105
- zipcode: u.zipcode,
1106
- country: u.country
1743
+ function Q(S) {
1744
+ const I = {
1745
+ ...o.value,
1746
+ street: x.street,
1747
+ suite: x.suite,
1748
+ city: x.city,
1749
+ state: x.state,
1750
+ zipcode: x.zipcode,
1751
+ country: x.country
1107
1752
  };
1108
- Te.includes(g) && (i.value = "unverified", p.geocode = void 0, Ie()), n.value = p, A(p), r("update:modelValue", p);
1753
+ He.includes(S) && (f.value = "unverified", I.geocode = void 0, Ge()), o.value = I, v(I), d("update:modelValue", I);
1109
1754
  }
1110
- function Ae(g) {
1111
- r("focus", g);
1755
+ function Ke(S) {
1756
+ d("focus", S);
1112
1757
  }
1113
- function Me(g) {
1114
- K(!0), r("blur", g);
1758
+ function We(S) {
1759
+ z(!0), d("blur", S);
1115
1760
  }
1116
- ee(
1761
+ de(
1117
1762
  () => l.modelValue,
1118
- (g) => {
1119
- g && (g.geocode?.status === "OK" ? i.value = "verified" : g.geocode?.status === "ERROR" && (i.value = "error"), g !== n.value && (n.value = g, g.street !== void 0 && (u.street = g.street), g.suite !== void 0 && (u.suite = g.suite), g.city !== void 0 && (u.city = g.city), g.state !== void 0 && (u.state = g.state), g.zipcode !== void 0 && (u.zipcode = g.zipcode), g.country !== void 0 && (u.country = g.country)));
1763
+ (S) => {
1764
+ S && (S.geocode?.status === "OK" ? f.value = "verified" : S.geocode?.status === "ERROR" && (f.value = "error"), S !== o.value && (o.value = S, S.street !== void 0 && (x.street = S.street), S.suite !== void 0 && (x.suite = S.suite), S.city !== void 0 && (x.city = S.city), S.state !== void 0 && (x.state = S.state), S.zipcode !== void 0 && (x.zipcode = S.zipcode), S.country !== void 0 && (x.country = S.country)));
1120
1765
  },
1121
1766
  { immediate: !0, deep: !0 }
1122
1767
  );
1123
- function ze() {
1124
- n.value = void 0, m.value = null, $.value = "", T.value = [], L.value = !1, i.value = "unverified", u.street = "", u.suite = "", u.city = "", u.state = "", u.zipcode = "", u.country = "";
1768
+ function Ye() {
1769
+ o.value = void 0, r.value = null, c.value = "", h.value = [], p.value = !1, f.value = "unverified", x.street = "", x.suite = "", x.city = "", x.state = "", x.zipcode = "", x.country = "";
1125
1770
  }
1126
- return e({
1127
- resetInput: ze,
1128
- geocodeStatus: i,
1129
- meta: I,
1130
- errorMessage: S
1131
- }), (g, p) => (c(), f("div", tt, [
1132
- y(os, {
1133
- id: x(d),
1134
- name: s.name,
1135
- label: s.label,
1136
- "tertiary-label": be.value,
1137
- "error-message": x(S),
1138
- "success-message": s.successMessage,
1139
- "is-valid": x(I).valid,
1140
- "is-touched": x(I).touched,
1141
- disabled: s.disabled
1771
+ return t({
1772
+ resetInput: Ye,
1773
+ geocodeStatus: f,
1774
+ meta: y,
1775
+ errorMessage: g
1776
+ }), (S, I) => (i(), m("div", nl, [
1777
+ C(Tt, {
1778
+ id: _(u),
1779
+ name: e.name,
1780
+ label: e.label,
1781
+ "tertiary-label": B.value,
1782
+ "error-message": _(g),
1783
+ "success-message": e.successMessage,
1784
+ "is-valid": _(y).valid,
1785
+ "is-touched": _(y).touched,
1786
+ disabled: e.disabled
1142
1787
  }, {
1143
- default: k(() => [
1144
- t("div", lt, [
1145
- y(x(Je), {
1146
- modelValue: m.value,
1788
+ default: T(() => [
1789
+ s("div", il, [
1790
+ C(_($t), {
1791
+ modelValue: r.value,
1147
1792
  "onUpdate:modelValue": [
1148
- p[0] || (p[0] = (h) => m.value = h),
1149
- _e
1793
+ I[0] || (I[0] = (L) => r.value = L),
1794
+ Re
1150
1795
  ],
1151
- disabled: s.disabled,
1796
+ disabled: e.disabled,
1152
1797
  nullable: ""
1153
1798
  }, {
1154
- default: k(() => [
1155
- t("div", ot, [
1156
- y(x(Xe), {
1157
- id: x(d),
1158
- "display-value": Se,
1159
- placeholder: s.placeholder || "Search for an address...",
1160
- disabled: s.disabled,
1161
- class: _([
1799
+ default: T(() => [
1800
+ s("div", dl, [
1801
+ C(_(_t), {
1802
+ id: _(u),
1803
+ "display-value": V,
1804
+ placeholder: e.placeholder || "Search for an address...",
1805
+ disabled: e.disabled,
1806
+ class: E([
1162
1807
  "sl-block sl-w-full sl-rounded-lg sl-border sl-py-2.5 sl-pl-3 sl-pr-10 sl-text-sm focus:sl-outline-none",
1163
- s.disabled ? "sl-border-gray-200 dark:sl-border-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-border-gray-300 dark:sl-border-slate-600 sl-bg-white dark:sl-bg-slate-900 sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 focus:sl-border-stachelock-500 focus:sl-ring-2 focus:sl-ring-stachelock-500"
1808
+ e.disabled ? "sl-border-gray-200 dark:sl-border-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-border-gray-300 dark:sl-border-slate-600 sl-bg-white dark:sl-bg-slate-900 sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 focus:sl-border-stachelock-500 focus:sl-ring-2 focus:sl-ring-stachelock-500"
1164
1809
  ]),
1165
- onChange: $e,
1166
- onFocus: Ae,
1167
- onBlur: Me
1810
+ onChange: U,
1811
+ onFocus: Ke,
1812
+ onBlur: We
1168
1813
  }, null, 8, ["id", "placeholder", "disabled", "class"]),
1169
- y(x(Ye), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
1170
- default: k(() => [
1171
- s.disabled ? (c(), U(x(as), {
1814
+ C(_(It), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
1815
+ default: T(() => [
1816
+ e.disabled ? (i(), D(_(Lt), {
1172
1817
  key: 0,
1173
1818
  class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-500",
1174
1819
  "aria-hidden": "true"
1175
- })) : (c(), U(x(rs), {
1820
+ })) : (i(), D(_(Mt), {
1176
1821
  key: 1,
1177
1822
  class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-400",
1178
1823
  "aria-hidden": "true"
@@ -1180,56 +1825,56 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1180
1825
  ]),
1181
1826
  _: 1
1182
1827
  }),
1183
- y(x(Q), {
1828
+ C(_(fe), {
1184
1829
  leave: "sl-transition sl-ease-in sl-duration-100",
1185
1830
  "leave-from": "sl-opacity-100",
1186
1831
  "leave-to": "sl-opacity-0"
1187
1832
  }, {
1188
- default: k(() => [
1189
- T.value.length > 0 ? (c(), U(x(Qe), {
1833
+ default: T(() => [
1834
+ h.value.length > 0 ? (i(), D(_(St), {
1190
1835
  key: 0,
1191
1836
  class: "sl-absolute sl-z-50 sl-mt-1 sl-max-h-60 sl-w-full sl-overflow-auto sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-py-1 sl-text-base sl-shadow-lg dark:sl-shadow-slate-900/50 sl-ring-1 sl-ring-black sl-ring-opacity-5 dark:sl-ring-slate-700 focus:sl-outline-none sm:sl-text-sm"
1192
1837
  }, {
1193
- default: k(() => [
1194
- (c(!0), f(V, null, R(T.value, (h) => (c(), U(x(qe), {
1195
- key: h.placeId,
1196
- value: h,
1838
+ default: T(() => [
1839
+ (i(!0), m(G, null, Y(h.value, (L) => (i(), D(_(zt), {
1840
+ key: L.placeId,
1841
+ value: L,
1197
1842
  as: "template"
1198
1843
  }, {
1199
- default: k(({ active: B, selected: oe }) => [
1200
- t("li", {
1201
- class: _([
1844
+ default: T(({ active: X, selected: be }) => [
1845
+ s("li", {
1846
+ class: E([
1202
1847
  "sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-10 sl-pr-4",
1203
- B ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
1848
+ X ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
1204
1849
  ])
1205
1850
  }, [
1206
- t("div", at, [
1207
- t("span", {
1208
- class: _(["sl-block sl-truncate", oe ? "sl-font-medium" : "sl-font-normal"])
1209
- }, w(h.mainText), 3),
1210
- t("span", {
1211
- class: _(["sl-text-xs", B ? "sl-text-stachelock-100" : "sl-text-gray-500 dark:sl-text-slate-400"])
1212
- }, w(h.secondaryText), 3)
1851
+ s("div", cl, [
1852
+ s("span", {
1853
+ class: E(["sl-block sl-truncate", be ? "sl-font-medium" : "sl-font-normal"])
1854
+ }, w(L.mainText), 3),
1855
+ s("span", {
1856
+ class: E(["sl-text-xs", X ? "sl-text-stachelock-100" : "sl-text-gray-500 dark:sl-text-slate-400"])
1857
+ }, w(L.secondaryText), 3)
1213
1858
  ]),
1214
- oe ? (c(), f("span", {
1859
+ be ? (i(), m("span", {
1215
1860
  key: 0,
1216
- class: _([
1861
+ class: E([
1217
1862
  "sl-absolute sl-inset-y-0 sl-left-0 sl-flex sl-items-center sl-pl-3",
1218
- B ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"
1863
+ X ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"
1219
1864
  ])
1220
1865
  }, [
1221
- y(x(ns), {
1866
+ C(_(Pt), {
1222
1867
  class: "sl-h-5 sl-w-5",
1223
1868
  "aria-hidden": "true"
1224
1869
  })
1225
- ], 2)) : b("", !0)
1870
+ ], 2)) : k("", !0)
1226
1871
  ], 2)
1227
1872
  ]),
1228
1873
  _: 2
1229
1874
  }, 1032, ["value"]))), 128))
1230
1875
  ]),
1231
1876
  _: 1
1232
- })) : b("", !0)
1877
+ })) : k("", !0)
1233
1878
  ]),
1234
1879
  _: 1
1235
1880
  })
@@ -1237,35 +1882,35 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1237
1882
  ]),
1238
1883
  _: 1
1239
1884
  }, 8, ["modelValue", "disabled"]),
1240
- W.value && !s.disabled ? (c(), f("div", rt, [
1241
- t("div", nt, [
1242
- t("span", {
1243
- class: _(["sl-text-xs sl-uppercase sl-font-medium", le.value])
1244
- }, w(ke.value), 3),
1245
- (c(), U(Fe(Ce.value), {
1246
- class: _(["sl-h-4 sl-w-4", le.value])
1885
+ P.value && !e.disabled ? (i(), m("div", ul, [
1886
+ s("div", ml, [
1887
+ s("span", {
1888
+ class: E(["sl-text-xs sl-uppercase sl-font-medium", H.value])
1889
+ }, w(ae.value), 3),
1890
+ (i(), D(ge(N.value), {
1891
+ class: E(["sl-h-4 sl-w-4", H.value])
1247
1892
  }, null, 8, ["class"]))
1248
1893
  ]),
1249
- L.value ? (c(), f("button", {
1894
+ p.value ? (i(), m("button", {
1250
1895
  key: 1,
1251
1896
  type: "button",
1252
- onClick: p[2] || (p[2] = (h) => L.value = !1),
1897
+ onClick: I[2] || (I[2] = (L) => p.value = !1),
1253
1898
  class: "sl-text-xs sl-text-gray-500 dark:sl-text-slate-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
1254
1899
  }, [
1255
- p[10] || (p[10] = E(" Collapse ", -1)),
1256
- y(x(ds), { class: "sl-h-3 sl-w-3" })
1257
- ])) : (c(), f("button", {
1900
+ I[10] || (I[10] = j(" Collapse ", -1)),
1901
+ C(_(At), { class: "sl-h-3 sl-w-3" })
1902
+ ])) : (i(), m("button", {
1258
1903
  key: 0,
1259
1904
  type: "button",
1260
- onClick: p[1] || (p[1] = (h) => L.value = !0),
1905
+ onClick: I[1] || (I[1] = (L) => p.value = !0),
1261
1906
  class: "sl-text-xs sl-text-stachelock-600 dark:sl-text-stachelock-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
1262
1907
  }, [
1263
- p[9] || (p[9] = E(" Edit address ", -1)),
1264
- y(x(is), { class: "sl-h-3 sl-w-3" })
1908
+ I[9] || (I[9] = j(" Edit address ", -1)),
1909
+ C(_(Et), { class: "sl-h-3 sl-w-3" })
1265
1910
  ]))
1266
- ])) : b("", !0),
1267
- y(x(Q), {
1268
- show: L.value && W.value && !s.disabled,
1911
+ ])) : k("", !0),
1912
+ C(_(fe), {
1913
+ show: p.value && P.value && !e.disabled,
1269
1914
  enter: "sl-transition sl-ease-out sl-duration-200",
1270
1915
  "enter-from": "sl-opacity-0 sl-transform sl--translate-y-2",
1271
1916
  "enter-to": "sl-opacity-100 sl-transform sl-translate-y-0",
@@ -1273,84 +1918,84 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1273
1918
  "leave-from": "sl-opacity-100 sl-transform sl-translate-y-0",
1274
1919
  "leave-to": "sl-opacity-0 sl-transform sl--translate-y-2"
1275
1920
  }, {
1276
- default: k(() => [
1277
- t("div", it, [
1278
- t("div", dt, [
1279
- y(M, {
1280
- name: `${s.name}_street`,
1921
+ default: T(() => [
1922
+ s("div", fl, [
1923
+ s("div", pl, [
1924
+ C(R, {
1925
+ name: `${e.name}_street`,
1281
1926
  label: "Street Address",
1282
- value: u.street,
1283
- disabled: s.disabled,
1927
+ value: x.street,
1928
+ disabled: e.disabled,
1284
1929
  "show-valid-check": !1,
1285
1930
  "colorful-validation": !1,
1286
- "onUpdate:value": p[3] || (p[3] = (h) => {
1287
- u.street = h, j("street");
1931
+ "onUpdate:value": I[3] || (I[3] = (L) => {
1932
+ x.street = L, Q("street");
1288
1933
  })
1289
1934
  }, null, 8, ["name", "value", "disabled"])
1290
1935
  ]),
1291
- t("div", null, [
1292
- y(M, {
1293
- name: `${s.name}_suite`,
1936
+ s("div", null, [
1937
+ C(R, {
1938
+ name: `${e.name}_suite`,
1294
1939
  label: "Suite / Apt",
1295
- value: u.suite,
1296
- disabled: s.disabled,
1940
+ value: x.suite,
1941
+ disabled: e.disabled,
1297
1942
  placeholder: "Optional",
1298
1943
  "show-valid-check": !1,
1299
1944
  "colorful-validation": !1,
1300
- "onUpdate:value": p[4] || (p[4] = (h) => {
1301
- u.suite = h, j("suite");
1945
+ "onUpdate:value": I[4] || (I[4] = (L) => {
1946
+ x.suite = L, Q("suite");
1302
1947
  })
1303
1948
  }, null, 8, ["name", "value", "disabled"])
1304
1949
  ]),
1305
- t("div", null, [
1306
- y(M, {
1307
- name: `${s.name}_city`,
1950
+ s("div", null, [
1951
+ C(R, {
1952
+ name: `${e.name}_city`,
1308
1953
  label: "City",
1309
- value: u.city,
1310
- disabled: s.disabled,
1954
+ value: x.city,
1955
+ disabled: e.disabled,
1311
1956
  "show-valid-check": !1,
1312
1957
  "colorful-validation": !1,
1313
- "onUpdate:value": p[5] || (p[5] = (h) => {
1314
- u.city = h, j("city");
1958
+ "onUpdate:value": I[5] || (I[5] = (L) => {
1959
+ x.city = L, Q("city");
1315
1960
  })
1316
1961
  }, null, 8, ["name", "value", "disabled"])
1317
1962
  ]),
1318
- t("div", null, [
1319
- y(M, {
1320
- name: `${s.name}_state`,
1963
+ s("div", null, [
1964
+ C(R, {
1965
+ name: `${e.name}_state`,
1321
1966
  label: "State",
1322
- value: u.state,
1323
- disabled: s.disabled,
1967
+ value: x.state,
1968
+ disabled: e.disabled,
1324
1969
  "show-valid-check": !1,
1325
1970
  "colorful-validation": !1,
1326
- "onUpdate:value": p[6] || (p[6] = (h) => {
1327
- u.state = h, j("state");
1971
+ "onUpdate:value": I[6] || (I[6] = (L) => {
1972
+ x.state = L, Q("state");
1328
1973
  })
1329
1974
  }, null, 8, ["name", "value", "disabled"])
1330
1975
  ]),
1331
- t("div", null, [
1332
- y(M, {
1333
- name: `${s.name}_zipcode`,
1976
+ s("div", null, [
1977
+ C(R, {
1978
+ name: `${e.name}_zipcode`,
1334
1979
  label: "ZIP Code",
1335
- value: u.zipcode,
1336
- disabled: s.disabled,
1980
+ value: x.zipcode,
1981
+ disabled: e.disabled,
1337
1982
  "show-valid-check": !1,
1338
1983
  "colorful-validation": !1,
1339
- "onUpdate:value": p[7] || (p[7] = (h) => {
1340
- u.zipcode = h, j("zipcode");
1984
+ "onUpdate:value": I[7] || (I[7] = (L) => {
1985
+ x.zipcode = L, Q("zipcode");
1341
1986
  })
1342
1987
  }, null, 8, ["name", "value", "disabled"])
1343
1988
  ]),
1344
- t("div", null, [
1345
- y(M, {
1346
- name: `${s.name}_country`,
1989
+ s("div", null, [
1990
+ C(R, {
1991
+ name: `${e.name}_country`,
1347
1992
  label: "Country",
1348
- value: u.country,
1349
- disabled: s.disabled,
1993
+ value: x.country,
1994
+ disabled: e.disabled,
1350
1995
  "show-valid-check": !1,
1351
1996
  "colorful-validation": !1,
1352
- "onUpdate:value": p[8] || (p[8] = (h) => {
1353
- u.country = h, j("country");
1997
+ "onUpdate:value": I[8] || (I[8] = (L) => {
1998
+ x.country = L, Q("country");
1354
1999
  })
1355
2000
  }, null, 8, ["name", "value", "disabled"])
1356
2001
  ])
@@ -1364,10 +2009,10 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1364
2009
  }, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "disabled"])
1365
2010
  ]));
1366
2011
  }
1367
- }), Nl = /* @__PURE__ */ se(ct, [["__scopeId", "data-v-d65320d7"]]), ut = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, ft = { class: "sl-space-y-8" }, mt = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, pt = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, gt = { class: "sl-whitespace-pre-wrap" }, Rl = /* @__PURE__ */ D({
2012
+ }), dr = /* @__PURE__ */ Z(gl, [["__scopeId", "data-v-d65320d7"]]), yl = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, hl = { class: "sl-space-y-8" }, xl = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, bl = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, vl = { class: "sl-whitespace-pre-wrap" }, cr = /* @__PURE__ */ F({
1368
2013
  __name: "InputsShowcase",
1369
- setup(s) {
1370
- const e = ue({
2014
+ setup(e) {
2015
+ const t = Me({
1371
2016
  text: "",
1372
2017
  textArea: "",
1373
2018
  switchOn: !1,
@@ -1375,7 +2020,7 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1375
2020
  selectedFruit: null,
1376
2021
  selectedLanguages: [],
1377
2022
  selectedCity: null
1378
- }), o = [
2023
+ }), a = [
1379
2024
  { id: 1, name: "Apple" },
1380
2025
  { id: 2, name: "Banana" },
1381
2026
  { id: 3, name: "Cherry" },
@@ -1386,7 +2031,7 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1386
2031
  { id: 3, name: "Python" },
1387
2032
  { id: 4, name: "Go" },
1388
2033
  { id: 5, name: "Rust" }
1389
- ], r = [
2034
+ ], d = [
1390
2035
  { id: 1, name: "New York" },
1391
2036
  { id: 2, name: "San Francisco" },
1392
2037
  { id: 3, name: "Seattle" },
@@ -1396,149 +2041,149 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1396
2041
  { id: 7, name: "Miami" },
1397
2042
  { id: 8, name: "Boston" }
1398
2043
  ];
1399
- return (d, a) => (c(), f("section", ut, [
1400
- a[15] || (a[15] = t("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
1401
- t("div", ft, [
1402
- t("div", null, [
1403
- a[7] || (a[7] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
1404
- y(M, {
2044
+ return (u, n) => (i(), m("section", yl, [
2045
+ n[15] || (n[15] = s("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
2046
+ s("div", hl, [
2047
+ s("div", null, [
2048
+ n[7] || (n[7] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
2049
+ C(R, {
1405
2050
  name: "demoText",
1406
2051
  label: "Text Input",
1407
2052
  placeholder: "Type something...",
1408
- value: e.text,
1409
- "onUpdate:value": a[0] || (a[0] = (n) => e.text = n)
2053
+ value: t.text,
2054
+ "onUpdate:value": n[0] || (n[0] = (o) => t.text = o)
1410
2055
  }, null, 8, ["value"])
1411
2056
  ]),
1412
- t("div", null, [
1413
- a[8] || (a[8] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
1414
- y(Ge, {
2057
+ s("div", null, [
2058
+ n[8] || (n[8] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
2059
+ C(it, {
1415
2060
  name: "demoTextArea",
1416
2061
  label: "Text Area",
1417
2062
  placeholder: "Write a longer message...",
1418
2063
  rows: 4,
1419
2064
  maxlength: 200,
1420
- modelValue: e.textArea,
1421
- "onUpdate:modelValue": a[1] || (a[1] = (n) => e.textArea = n)
2065
+ modelValue: t.textArea,
2066
+ "onUpdate:modelValue": n[1] || (n[1] = (o) => t.textArea = o)
1422
2067
  }, null, 8, ["modelValue"])
1423
2068
  ]),
1424
- t("div", null, [
1425
- a[9] || (a[9] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
1426
- y(Ke, {
2069
+ s("div", null, [
2070
+ n[9] || (n[9] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
2071
+ C(dt, {
1427
2072
  name: "demoSwitch",
1428
2073
  label: "Enable feature",
1429
- modelValue: e.switchOn,
1430
- "onUpdate:modelValue": a[2] || (a[2] = (n) => e.switchOn = n),
2074
+ modelValue: t.switchOn,
2075
+ "onUpdate:modelValue": n[2] || (n[2] = (o) => t.switchOn = o),
1431
2076
  textTrue: "ON",
1432
2077
  textFalse: "OFF"
1433
2078
  }, null, 8, ["modelValue"])
1434
2079
  ]),
1435
- t("div", null, [
1436
- a[10] || (a[10] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
1437
- y(Ne, {
2080
+ s("div", null, [
2081
+ n[10] || (n[10] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
2082
+ C(rt, {
1438
2083
  name: "demoCheckbox",
1439
2084
  label: "I agree to the terms",
1440
- modelValue: e.checkbox,
1441
- "onUpdate:modelValue": a[3] || (a[3] = (n) => e.checkbox = n)
2085
+ modelValue: t.checkbox,
2086
+ "onUpdate:modelValue": n[3] || (n[3] = (o) => t.checkbox = o)
1442
2087
  }, null, 8, ["modelValue"])
1443
2088
  ]),
1444
- t("div", mt, [
1445
- t("div", null, [
1446
- a[11] || (a[11] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
1447
- y(ne, {
2089
+ s("div", xl, [
2090
+ s("div", null, [
2091
+ n[11] || (n[11] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
2092
+ C(Ce, {
1448
2093
  name: "demoSelect",
1449
2094
  label: "Favorite Fruit",
1450
2095
  placeholder: "Select a fruit",
1451
- items: o,
1452
- modelValue: e.selectedFruit,
1453
- "onUpdate:modelValue": a[4] || (a[4] = (n) => e.selectedFruit = n)
2096
+ items: a,
2097
+ modelValue: t.selectedFruit,
2098
+ "onUpdate:modelValue": n[4] || (n[4] = (o) => t.selectedFruit = o)
1454
2099
  }, null, 8, ["modelValue"])
1455
2100
  ]),
1456
- t("div", null, [
1457
- a[12] || (a[12] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
1458
- y(ne, {
2101
+ s("div", null, [
2102
+ n[12] || (n[12] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
2103
+ C(Ce, {
1459
2104
  name: "demoSelectMulti",
1460
2105
  label: "Favorite Languages",
1461
2106
  placeholder: "Select languages",
1462
2107
  items: l,
1463
2108
  multiple: "",
1464
2109
  showAll: "",
1465
- modelValue: e.selectedLanguages,
1466
- "onUpdate:modelValue": a[5] || (a[5] = (n) => e.selectedLanguages = n)
2110
+ modelValue: t.selectedLanguages,
2111
+ "onUpdate:modelValue": n[5] || (n[5] = (o) => t.selectedLanguages = o)
1467
2112
  }, null, 8, ["modelValue"])
1468
2113
  ])
1469
2114
  ]),
1470
- t("div", null, [
1471
- a[13] || (a[13] = t("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
1472
- y(Re, {
2115
+ s("div", null, [
2116
+ n[13] || (n[13] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
2117
+ C(nt, {
1473
2118
  name: "demoCombobox",
1474
2119
  label: "Search a City",
1475
2120
  placeholder: "Start typing...",
1476
- items: r,
1477
- modelValue: e.selectedCity,
1478
- "onUpdate:modelValue": a[6] || (a[6] = (n) => e.selectedCity = n)
2121
+ items: d,
2122
+ modelValue: t.selectedCity,
2123
+ "onUpdate:modelValue": n[6] || (n[6] = (o) => t.selectedCity = o)
1479
2124
  }, null, 8, ["modelValue"])
1480
2125
  ]),
1481
- t("div", pt, [
1482
- a[14] || (a[14] = t("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
1483
- t("pre", gt, w(e), 1)
2126
+ s("div", bl, [
2127
+ n[14] || (n[14] = s("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
2128
+ s("pre", vl, w(t), 1)
1484
2129
  ])
1485
2130
  ])
1486
2131
  ]));
1487
2132
  }
1488
- }), yt = { class: "sl-flex sl-items-center sl-gap-4" }, ht = {
2133
+ }), kl = { class: "sl-flex sl-items-center sl-gap-4" }, wl = {
1489
2134
  key: 0,
1490
2135
  class: "sl-flex-shrink-0 sl-flex sl-items-center sl-justify-center"
1491
- }, xt = { class: "sl-flex-1 sl-min-w-0" }, vt = {
2136
+ }, Cl = { class: "sl-flex-1 sl-min-w-0" }, $l = {
1492
2137
  key: 0,
1493
2138
  class: "sl-flex sl-items-center sl-gap-2"
1494
- }, bt = { class: "sl-text-base sl-font-semibold sl-text-gray-900 dark:sl-text-white sl-truncate" }, kt = {
2139
+ }, _l = { class: "sl-text-base sl-font-semibold sl-text-gray-900 dark:sl-text-white sl-truncate" }, Il = {
1495
2140
  key: 0,
1496
2141
  class: "sl-flex-shrink-0"
1497
- }, Ct = {
2142
+ }, Sl = {
1498
2143
  key: 1,
1499
2144
  class: "sl-mt-0.5 sl-text-sm sl-text-gray-500 dark:sl-text-gray-300 sl-truncate"
1500
- }, wt = {
2145
+ }, zl = {
1501
2146
  key: 1,
1502
2147
  class: "sl-flex sl-items-center sl-gap-2 sl-flex-shrink-0"
1503
- }, $t = ["aria-expanded"], St = {
2148
+ }, Tl = ["aria-expanded"], Ll = {
1504
2149
  key: 1,
1505
2150
  class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
1506
- }, _t = { class: "sl-overflow-hidden" }, Tt = {
2151
+ }, Ml = { class: "sl-overflow-hidden" }, Pl = {
1507
2152
  key: 0,
1508
2153
  class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
1509
- }, It = { class: "sl-flex sl-items-center sl-justify-between sl-gap-4" }, At = {
2154
+ }, El = { class: "sl-flex sl-items-center sl-justify-between sl-gap-4" }, Al = {
1510
2155
  key: 0,
1511
2156
  class: "sl-flex-1 sl-min-w-0"
1512
- }, Mt = {
2157
+ }, Dl = {
1513
2158
  key: 1,
1514
2159
  class: "sl-flex-1"
1515
- }, zt = {
2160
+ }, Fl = {
1516
2161
  key: 2,
1517
2162
  class: "sl-flex sl-items-center sl-gap-3 sl-flex-shrink-0"
1518
- }, Et = {
2163
+ }, Nl = {
1519
2164
  key: 0,
1520
2165
  class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
1521
- }, Lt = { class: "sl-flex sl-items-center sl-justify-between sl-gap-4" }, Pt = {
2166
+ }, Ul = { class: "sl-flex sl-items-center sl-justify-between sl-gap-4" }, Vl = {
1522
2167
  key: 0,
1523
2168
  class: "sl-flex-1 sl-min-w-0"
1524
- }, Dt = {
2169
+ }, Bl = {
1525
2170
  key: 1,
1526
2171
  class: "sl-flex-1"
1527
- }, Ft = {
2172
+ }, jl = {
1528
2173
  key: 2,
1529
2174
  class: "sl-flex sl-items-center sl-gap-3 sl-flex-shrink-0"
1530
- }, Bt = {
2175
+ }, Ol = {
1531
2176
  key: 0,
1532
2177
  class: "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-bg-white/80 dark:sl-bg-gray-900/80 sl-rounded-[inherit] sl-z-20 sl-backdrop-blur-sm"
1533
- }, Ut = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Vt = {
2178
+ }, Rl = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Hl = {
1534
2179
  class: "sl-animate-spin sl-h-8 sl-w-8",
1535
2180
  style: { color: "var(--sl-color-primary-600, #4f46e5)" },
1536
2181
  fill: "none",
1537
2182
  viewBox: "0 0 24 24"
1538
- }, jt = {
2183
+ }, Gl = {
1539
2184
  key: 0,
1540
2185
  class: "sl-text-sm sl-font-medium sl-text-gray-600 dark:sl-text-gray-300"
1541
- }, Ot = /* @__PURE__ */ D({
2186
+ }, Kl = /* @__PURE__ */ F({
1542
2187
  __name: "CardLayout",
1543
2188
  props: {
1544
2189
  variant: { default: "elevated" },
@@ -1562,44 +2207,44 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1562
2207
  noPadding: { type: Boolean, default: !1 }
1563
2208
  },
1564
2209
  emits: ["update:collapsed", "expand", "collapse"],
1565
- setup(s, { expose: e, emit: o }) {
1566
- const l = s, r = o, d = Be(), a = F(l.collapsed);
1567
- ee(() => l.collapsed, (i) => {
1568
- a.value = i;
2210
+ setup(e, { expose: t, emit: a }) {
2211
+ const l = e, d = a, u = Pe(), n = K(l.collapsed);
2212
+ de(() => l.collapsed, (f) => {
2213
+ n.value = f;
1569
2214
  });
1570
- const n = C(() => a.value), S = () => {
1571
- a.value = !a.value, r("update:collapsed", a.value), a.value ? r("collapse") : r("expand");
1572
- }, I = C(() => l.showHeader !== void 0 ? l.showHeader : !!(d.header || d["header-icon"] || d["header-title"] || d["header-subtitle"] || d["header-badge"] || d["header-actions"] || l.collapsible)), A = C(() => l.showFooter !== void 0 ? l.showFooter : !!(d.footer || d["footer-left"] || d["footer-actions"])), K = C(() => {
1573
- const i = [
2215
+ const o = b(() => n.value), g = () => {
2216
+ n.value = !n.value, d("update:collapsed", n.value), n.value ? d("collapse") : d("expand");
2217
+ }, y = b(() => l.showHeader !== void 0 ? l.showHeader : !!(u.header || u["header-icon"] || u["header-title"] || u["header-subtitle"] || u["header-badge"] || u["header-actions"] || l.collapsible)), v = b(() => l.showFooter !== void 0 ? l.showFooter : !!(u.footer || u["footer-left"] || u["footer-actions"])), z = b(() => {
2218
+ const f = [
1574
2219
  "sl-relative",
1575
2220
  "sl-flex",
1576
2221
  "sl-flex-col"
1577
2222
  ];
1578
- switch (l.fullHeight && i.push("sl-h-full"), l.variant) {
2223
+ switch (l.fullHeight && f.push("sl-h-full"), l.variant) {
1579
2224
  case "elevated":
1580
- i.push("sl-bg-white", "dark:sl-bg-gray-800");
2225
+ f.push("sl-bg-white", "dark:sl-bg-gray-800");
1581
2226
  break;
1582
2227
  case "outlined":
1583
- i.push("sl-bg-white", "dark:sl-bg-gray-800", "sl-border", "sl-border-gray-200", "dark:sl-border-gray-700");
2228
+ f.push("sl-bg-white", "dark:sl-bg-gray-800", "sl-border", "sl-border-gray-200", "dark:sl-border-gray-700");
1584
2229
  break;
1585
2230
  case "flat":
1586
- i.push("sl-bg-transparent");
2231
+ f.push("sl-bg-transparent");
1587
2232
  break;
1588
2233
  case "filled":
1589
- i.push("sl-bg-gray-50", "dark:sl-bg-gray-800/50");
2234
+ f.push("sl-bg-gray-50", "dark:sl-bg-gray-800/50");
1590
2235
  break;
1591
2236
  }
1592
2237
  if (l.variant === "elevated") {
1593
- const W = {
2238
+ const P = {
1594
2239
  none: "",
1595
2240
  sm: "sl-shadow-sm",
1596
2241
  md: "sl-shadow",
1597
2242
  lg: "sl-shadow-lg",
1598
2243
  xl: "sl-shadow-xl"
1599
2244
  };
1600
- W[l.shadow] && i.push(W[l.shadow]);
2245
+ P[l.shadow] && f.push(P[l.shadow]);
1601
2246
  }
1602
- const u = {
2247
+ const x = {
1603
2248
  none: "",
1604
2249
  sm: "sl-rounded-sm",
1605
2250
  md: "sl-rounded-md",
@@ -1608,99 +2253,99 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1608
2253
  "2xl": "sl-rounded-2xl",
1609
2254
  full: "sl-rounded-3xl"
1610
2255
  };
1611
- return u[l.rounded] && i.push(u[l.rounded]), l.hoverable && i.push(
2256
+ return x[l.rounded] && f.push(x[l.rounded]), l.hoverable && f.push(
1612
2257
  "sl-transition-shadow",
1613
2258
  "sl-duration-200",
1614
2259
  "hover:sl-shadow-lg",
1615
2260
  "dark:hover:sl-shadow-gray-900/30"
1616
- ), l.bgClass && i.push(l.bgClass), l.scrollable && i.push("sl-overflow-hidden"), i;
1617
- }), T = C(() => {
1618
- const i = {};
1619
- return l.scrollable && l.maxHeight && (i.maxHeight = l.maxHeight), i;
1620
- }), m = C(() => ({
2261
+ ), l.bgClass && f.push(l.bgClass), l.scrollable && f.push("sl-overflow-hidden"), f;
2262
+ }), h = b(() => {
2263
+ const f = {};
2264
+ return l.scrollable && l.maxHeight && (f.maxHeight = l.maxHeight), f;
2265
+ }), r = b(() => ({
1621
2266
  compact: { x: "sl-px-3", y: "sl-py-2" },
1622
2267
  default: { x: "sl-px-4 sm:sl-px-6", y: "sl-py-4" },
1623
2268
  spacious: { x: "sl-px-6 sm:sl-px-8", y: "sl-py-5 sm:sl-py-6" }
1624
- })[l.size]), $ = C(() => [m.value.x, m.value.y]), L = C(() => {
2269
+ })[l.size]), c = b(() => [r.value.x, r.value.y]), p = b(() => {
1625
2270
  if (l.noPadding)
1626
2271
  return [];
1627
- const i = [m.value.x, m.value.y];
1628
- return l.scrollable && i.push("sl-flex-1", "sl-min-h-0"), i;
1629
- }), H = C(() => {
1630
- const i = {
2272
+ const f = [r.value.x, r.value.y];
2273
+ return l.scrollable && f.push("sl-flex-1", "sl-min-h-0"), f;
2274
+ }), $ = b(() => {
2275
+ const f = {
1631
2276
  compact: "sl-py-2",
1632
2277
  default: "sl-py-3",
1633
2278
  spacious: "sl-py-4"
1634
2279
  };
1635
- return [m.value.x, i[l.size], "sl-bg-gray-50/50 dark:sl-bg-gray-800/50"];
2280
+ return [r.value.x, f[l.size], "sl-bg-gray-50/50 dark:sl-bg-gray-800/50"];
1636
2281
  });
1637
- return e({
1638
- toggleCollapse: S,
1639
- isCollapsed: n
1640
- }), (i, u) => (c(), f("div", {
1641
- class: _([
2282
+ return t({
2283
+ toggleCollapse: g,
2284
+ isCollapsed: o
2285
+ }), (f, x) => (i(), m("div", {
2286
+ class: E([
1642
2287
  "sl-card-layout",
1643
- K.value,
1644
- { "sl-cursor-pointer": s.hoverable }
2288
+ z.value,
2289
+ { "sl-cursor-pointer": e.hoverable }
1645
2290
  ]),
1646
- style: z(T.value)
2291
+ style: O(h.value)
1647
2292
  }, [
1648
- I.value ? (c(), f("div", {
2293
+ y.value ? (i(), m("div", {
1649
2294
  key: 0,
1650
- class: _([
2295
+ class: E([
1651
2296
  "sl-card-header",
1652
- $.value,
1653
- { "sl-sticky sl-top-0 sl-z-10 sl-bg-inherit": s.headerSticky && s.scrollable }
2297
+ c.value,
2298
+ { "sl-sticky sl-top-0 sl-z-10 sl-bg-inherit": e.headerSticky && e.scrollable }
1654
2299
  ])
1655
2300
  }, [
1656
- v(i.$slots, "header", {}, () => [
1657
- t("div", yt, [
1658
- i.$slots["header-icon"] ? (c(), f("div", ht, [
1659
- v(i.$slots, "header-icon", {}, void 0, !0)
1660
- ])) : b("", !0),
1661
- t("div", xt, [
1662
- i.$slots["header-title"] ? (c(), f("div", vt, [
1663
- t("h3", bt, [
1664
- v(i.$slots, "header-title", {}, void 0, !0)
2301
+ M(f.$slots, "header", {}, () => [
2302
+ s("div", kl, [
2303
+ f.$slots["header-icon"] ? (i(), m("div", wl, [
2304
+ M(f.$slots, "header-icon", {}, void 0, !0)
2305
+ ])) : k("", !0),
2306
+ s("div", Cl, [
2307
+ f.$slots["header-title"] ? (i(), m("div", $l, [
2308
+ s("h3", _l, [
2309
+ M(f.$slots, "header-title", {}, void 0, !0)
1665
2310
  ]),
1666
- i.$slots["header-badge"] ? (c(), f("div", kt, [
1667
- v(i.$slots, "header-badge", {}, void 0, !0)
1668
- ])) : b("", !0)
1669
- ])) : b("", !0),
1670
- i.$slots["header-subtitle"] ? (c(), f("p", Ct, [
1671
- v(i.$slots, "header-subtitle", {}, void 0, !0)
1672
- ])) : b("", !0)
2311
+ f.$slots["header-badge"] ? (i(), m("div", Il, [
2312
+ M(f.$slots, "header-badge", {}, void 0, !0)
2313
+ ])) : k("", !0)
2314
+ ])) : k("", !0),
2315
+ f.$slots["header-subtitle"] ? (i(), m("p", Sl, [
2316
+ M(f.$slots, "header-subtitle", {}, void 0, !0)
2317
+ ])) : k("", !0)
1673
2318
  ]),
1674
- i.$slots["header-actions"] || s.collapsible ? (c(), f("div", wt, [
1675
- v(i.$slots, "header-actions", {}, void 0, !0),
1676
- s.collapsible ? (c(), f("button", {
2319
+ f.$slots["header-actions"] || e.collapsible ? (i(), m("div", zl, [
2320
+ M(f.$slots, "header-actions", {}, void 0, !0),
2321
+ e.collapsible ? (i(), m("button", {
1677
2322
  key: 0,
1678
2323
  type: "button",
1679
- onClick: S,
2324
+ onClick: g,
1680
2325
  class: "sl-p-1.5 sl-rounded-md sl-text-gray-400 hover:sl-text-gray-600 hover:sl-bg-gray-100 dark:hover:sl-bg-gray-700 dark:hover:sl-text-gray-300 sl-transition-colors",
1681
- "aria-expanded": !n.value,
2326
+ "aria-expanded": !o.value,
1682
2327
  "aria-label": "Toggle content"
1683
2328
  }, [
1684
- (c(), f("svg", {
1685
- class: _(["sl-h-5 sl-w-5 sl-transition-transform sl-duration-200", { "sl-rotate-180": !n.value }]),
2329
+ (i(), m("svg", {
2330
+ class: E(["sl-h-5 sl-w-5 sl-transition-transform sl-duration-200", { "sl-rotate-180": !o.value }]),
1686
2331
  fill: "none",
1687
2332
  viewBox: "0 0 24 24",
1688
2333
  stroke: "currentColor",
1689
2334
  "stroke-width": "2"
1690
- }, [...u[0] || (u[0] = [
1691
- t("path", {
2335
+ }, [...x[0] || (x[0] = [
2336
+ s("path", {
1692
2337
  "stroke-linecap": "round",
1693
2338
  "stroke-linejoin": "round",
1694
2339
  d: "M19 9l-7 7-7-7"
1695
2340
  }, null, -1)
1696
2341
  ])], 2))
1697
- ], 8, $t)) : b("", !0)
1698
- ])) : b("", !0)
2342
+ ], 8, Tl)) : k("", !0)
2343
+ ])) : k("", !0)
1699
2344
  ])
1700
2345
  ], !0)
1701
- ], 2)) : b("", !0),
1702
- I.value && s.divided && !n.value ? (c(), f("div", St)) : b("", !0),
1703
- s.collapsible ? (c(), U(re, {
2346
+ ], 2)) : k("", !0),
2347
+ y.value && e.divided && !o.value ? (i(), m("div", Ll)) : k("", !0),
2348
+ e.collapsible ? (i(), D(we, {
1704
2349
  key: 2,
1705
2350
  "enter-active-class": "sl-transition-all sl-duration-200 sl-ease-out",
1706
2351
  "enter-from-class": "sl-opacity-0 sl-max-h-0",
@@ -1709,80 +2354,80 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1709
2354
  "leave-from-class": "sl-opacity-100",
1710
2355
  "leave-to-class": "sl-opacity-0 sl-max-h-0"
1711
2356
  }, {
1712
- default: k(() => [
1713
- Y(t("div", _t, [
1714
- t("div", {
1715
- class: _([
2357
+ default: T(() => [
2358
+ me(s("div", Ml, [
2359
+ s("div", {
2360
+ class: E([
1716
2361
  "sl-card-body",
1717
- L.value,
1718
- { "sl-overflow-y-auto": s.scrollable }
2362
+ p.value,
2363
+ { "sl-overflow-y-auto": e.scrollable }
1719
2364
  ]),
1720
- style: z(s.scrollable && s.maxHeight ? { maxHeight: s.maxHeight } : {})
2365
+ style: O(e.scrollable && e.maxHeight ? { maxHeight: e.maxHeight } : {})
1721
2366
  }, [
1722
- v(i.$slots, "body", {}, () => [
1723
- v(i.$slots, "default", {}, void 0, !0)
2367
+ M(f.$slots, "body", {}, () => [
2368
+ M(f.$slots, "default", {}, void 0, !0)
1724
2369
  ], !0)
1725
2370
  ], 6),
1726
- A.value && s.divided ? (c(), f("div", Tt)) : b("", !0),
1727
- A.value ? (c(), f("div", {
2371
+ v.value && e.divided ? (i(), m("div", Pl)) : k("", !0),
2372
+ v.value ? (i(), m("div", {
1728
2373
  key: 1,
1729
- class: _([
2374
+ class: E([
1730
2375
  "sl-card-footer",
1731
- H.value,
1732
- { "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": s.footerSticky && s.scrollable }
2376
+ $.value,
2377
+ { "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": e.footerSticky && e.scrollable }
1733
2378
  ])
1734
2379
  }, [
1735
- v(i.$slots, "footer", {}, () => [
1736
- t("div", It, [
1737
- i.$slots["footer-left"] ? (c(), f("div", At, [
1738
- v(i.$slots, "footer-left", {}, void 0, !0)
1739
- ])) : (c(), f("div", Mt)),
1740
- i.$slots["footer-actions"] ? (c(), f("div", zt, [
1741
- v(i.$slots, "footer-actions", {}, void 0, !0)
1742
- ])) : b("", !0)
2380
+ M(f.$slots, "footer", {}, () => [
2381
+ s("div", El, [
2382
+ f.$slots["footer-left"] ? (i(), m("div", Al, [
2383
+ M(f.$slots, "footer-left", {}, void 0, !0)
2384
+ ])) : (i(), m("div", Dl)),
2385
+ f.$slots["footer-actions"] ? (i(), m("div", Fl, [
2386
+ M(f.$slots, "footer-actions", {}, void 0, !0)
2387
+ ])) : k("", !0)
1743
2388
  ])
1744
2389
  ], !0)
1745
- ], 2)) : b("", !0)
2390
+ ], 2)) : k("", !0)
1746
2391
  ], 512), [
1747
- [Ue, !n.value]
2392
+ [Ze, !o.value]
1748
2393
  ])
1749
2394
  ]),
1750
2395
  _: 3
1751
- })) : (c(), f(V, { key: 3 }, [
1752
- t("div", {
1753
- class: _([
2396
+ })) : (i(), m(G, { key: 3 }, [
2397
+ s("div", {
2398
+ class: E([
1754
2399
  "sl-card-body",
1755
- L.value,
1756
- { "sl-overflow-y-auto": s.scrollable }
2400
+ p.value,
2401
+ { "sl-overflow-y-auto": e.scrollable }
1757
2402
  ]),
1758
- style: z(s.scrollable && s.maxHeight ? { maxHeight: s.maxHeight } : {})
2403
+ style: O(e.scrollable && e.maxHeight ? { maxHeight: e.maxHeight } : {})
1759
2404
  }, [
1760
- v(i.$slots, "body", {}, () => [
1761
- v(i.$slots, "default", {}, void 0, !0)
2405
+ M(f.$slots, "body", {}, () => [
2406
+ M(f.$slots, "default", {}, void 0, !0)
1762
2407
  ], !0)
1763
2408
  ], 6),
1764
- A.value && s.divided ? (c(), f("div", Et)) : b("", !0),
1765
- A.value ? (c(), f("div", {
2409
+ v.value && e.divided ? (i(), m("div", Nl)) : k("", !0),
2410
+ v.value ? (i(), m("div", {
1766
2411
  key: 1,
1767
- class: _([
2412
+ class: E([
1768
2413
  "sl-card-footer",
1769
- H.value,
1770
- { "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": s.footerSticky && s.scrollable }
2414
+ $.value,
2415
+ { "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": e.footerSticky && e.scrollable }
1771
2416
  ])
1772
2417
  }, [
1773
- v(i.$slots, "footer", {}, () => [
1774
- t("div", Lt, [
1775
- i.$slots["footer-left"] ? (c(), f("div", Pt, [
1776
- v(i.$slots, "footer-left", {}, void 0, !0)
1777
- ])) : (c(), f("div", Dt)),
1778
- i.$slots["footer-actions"] ? (c(), f("div", Ft, [
1779
- v(i.$slots, "footer-actions", {}, void 0, !0)
1780
- ])) : b("", !0)
2418
+ M(f.$slots, "footer", {}, () => [
2419
+ s("div", Ul, [
2420
+ f.$slots["footer-left"] ? (i(), m("div", Vl, [
2421
+ M(f.$slots, "footer-left", {}, void 0, !0)
2422
+ ])) : (i(), m("div", Bl)),
2423
+ f.$slots["footer-actions"] ? (i(), m("div", jl, [
2424
+ M(f.$slots, "footer-actions", {}, void 0, !0)
2425
+ ])) : k("", !0)
1781
2426
  ])
1782
2427
  ], !0)
1783
- ], 2)) : b("", !0)
2428
+ ], 2)) : k("", !0)
1784
2429
  ], 64)),
1785
- y(re, {
2430
+ C(we, {
1786
2431
  "enter-active-class": "sl-transition-opacity sl-duration-200",
1787
2432
  "enter-from-class": "sl-opacity-0",
1788
2433
  "enter-to-class": "sl-opacity-100",
@@ -1790,12 +2435,12 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1790
2435
  "leave-from-class": "sl-opacity-100",
1791
2436
  "leave-to-class": "sl-opacity-0"
1792
2437
  }, {
1793
- default: k(() => [
1794
- s.loading ? (c(), f("div", Bt, [
1795
- v(i.$slots, "loading", {}, () => [
1796
- t("div", Ut, [
1797
- (c(), f("svg", Vt, [...u[1] || (u[1] = [
1798
- t("circle", {
2438
+ default: T(() => [
2439
+ e.loading ? (i(), m("div", Ol, [
2440
+ M(f.$slots, "loading", {}, () => [
2441
+ s("div", Rl, [
2442
+ (i(), m("svg", Hl, [...x[1] || (x[1] = [
2443
+ s("circle", {
1799
2444
  class: "sl-opacity-25",
1800
2445
  cx: "12",
1801
2446
  cy: "12",
@@ -1803,95 +2448,95 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1803
2448
  stroke: "currentColor",
1804
2449
  "stroke-width": "4"
1805
2450
  }, null, -1),
1806
- t("path", {
2451
+ s("path", {
1807
2452
  class: "sl-opacity-75",
1808
2453
  fill: "currentColor",
1809
2454
  d: "m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
1810
2455
  }, null, -1)
1811
2456
  ])])),
1812
- s.loadingText ? (c(), f("span", jt, w(s.loadingText), 1)) : b("", !0)
2457
+ e.loadingText ? (i(), m("span", Gl, w(e.loadingText), 1)) : k("", !0)
1813
2458
  ])
1814
2459
  ], !0)
1815
- ])) : b("", !0)
2460
+ ])) : k("", !0)
1816
2461
  ]),
1817
2462
  _: 3
1818
2463
  })
1819
2464
  ], 6));
1820
2465
  }
1821
- }), Gl = /* @__PURE__ */ se(Ot, [["__scopeId", "data-v-a1ea2aac"]]), Nt = "sl-text-sm", Kl = /* @__PURE__ */ D({
2466
+ }), ur = /* @__PURE__ */ Z(Kl, [["__scopeId", "data-v-a1ea2aac"]]), Wl = "sl-text-sm", mr = /* @__PURE__ */ F({
1822
2467
  __name: "InfoCard",
1823
2468
  props: {
1824
2469
  title: { default: "" },
1825
2470
  variant: { default: "info" }
1826
2471
  },
1827
- setup(s) {
1828
- const e = s, o = C(() => ({
2472
+ setup(e) {
2473
+ const t = e, a = b(() => ({
1829
2474
  info: { bg: "var(--info-bg, #eff6ff)", border: "var(--info-border, #bfdbfe)" },
1830
2475
  warning: { bg: "var(--warning-bg, #fffbeb)", border: "var(--warning-border, #fcd34d)" },
1831
2476
  success: { bg: "var(--success-bg, #f0fdf4)", border: "var(--success-border, #86efac)" },
1832
2477
  error: { bg: "var(--error-bg, #fef2f2)", border: "var(--error-border, #fca5a5)" }
1833
- })[e.variant]), l = C(() => ({ color: {
2478
+ })[t.variant]), l = b(() => ({ color: {
1834
2479
  info: "var(--info-title)",
1835
2480
  warning: "var(--warning-title)",
1836
2481
  success: "var(--success-title)",
1837
2482
  error: "var(--error-title)"
1838
- }[e.variant] })), r = C(() => ({ color: {
2483
+ }[t.variant] })), d = b(() => ({ color: {
1839
2484
  info: "var(--info-text)",
1840
2485
  warning: "var(--warning-text)",
1841
2486
  success: "var(--success-text)",
1842
2487
  error: "var(--error-text)"
1843
- }[e.variant] }));
1844
- return (d, a) => (c(), f("div", {
2488
+ }[t.variant] }));
2489
+ return (u, n) => (i(), m("div", {
1845
2490
  class: "sl-rounded-xl sl-border sl-p-4",
1846
- style: z({ backgroundColor: o.value.bg, borderColor: o.value.border })
2491
+ style: O({ backgroundColor: a.value.bg, borderColor: a.value.border })
1847
2492
  }, [
1848
- s.title ? (c(), f("h3", {
2493
+ e.title ? (i(), m("h3", {
1849
2494
  key: 0,
1850
2495
  class: "sl-font-medium sl-mb-2",
1851
- style: z(l.value)
1852
- }, w(s.title), 5)) : b("", !0),
1853
- t("div", {
1854
- class: _(Nt),
1855
- style: z(r.value)
2496
+ style: O(l.value)
2497
+ }, w(e.title), 5)) : k("", !0),
2498
+ s("div", {
2499
+ class: E(Wl),
2500
+ style: O(d.value)
1856
2501
  }, [
1857
- v(d.$slots, "default")
2502
+ M(u.$slots, "default")
1858
2503
  ], 4)
1859
2504
  ], 4));
1860
2505
  }
1861
- }), Rt = { class: "sl-space-y-4" }, Gt = { class: "sl-text-xl sl-font-semibold sl-text-slate-900 dark:sl-text-white" }, Kt = { class: "sl-overflow-x-auto" }, Ht = { class: "sl-min-w-full sl-divide-y sl-divide-slate-200 dark:sl-divide-slate-700" }, Wt = { class: "sl-bg-slate-50 dark:sl-bg-slate-900" }, Zt = { class: "sl-divide-y sl-divide-slate-200 dark:sl-divide-slate-700" }, Jt = { class: "sl-px-6 sl-py-4 sl-text-sm sl-font-mono sl-text-slate-900 dark:sl-text-slate-100" }, Xt = { class: "sl-px-6 sl-py-4 sl-text-sm sl-text-slate-600 dark:sl-text-slate-300" }, Yt = { class: "sl-px-6 sl-py-4 sl-text-sm sl-font-mono sl-text-slate-500 dark:sl-text-slate-300" }, Qt = { class: "sl-px-6 sl-py-4 sl-text-sm sl-text-slate-600 dark:sl-text-slate-300" }, Hl = /* @__PURE__ */ D({
2506
+ }), Yl = { class: "sl-space-y-4" }, Xl = { class: "sl-text-xl sl-font-semibold sl-text-slate-900 dark:sl-text-white" }, ql = { class: "sl-overflow-x-auto" }, Jl = { class: "sl-min-w-full sl-divide-y sl-divide-slate-200 dark:sl-divide-slate-700" }, Zl = { class: "sl-bg-slate-50 dark:sl-bg-slate-900" }, Ql = { class: "sl-divide-y sl-divide-slate-200 dark:sl-divide-slate-700" }, ea = { class: "sl-px-6 sl-py-4 sl-text-sm sl-font-mono sl-text-slate-900 dark:sl-text-slate-100" }, ta = { class: "sl-px-6 sl-py-4 sl-text-sm sl-text-slate-600 dark:sl-text-slate-300" }, sa = { class: "sl-px-6 sl-py-4 sl-text-sm sl-font-mono sl-text-slate-500 dark:sl-text-slate-300" }, la = { class: "sl-px-6 sl-py-4 sl-text-sm sl-text-slate-600 dark:sl-text-slate-300" }, fr = /* @__PURE__ */ F({
1862
2507
  __name: "PropsTable",
1863
2508
  props: {
1864
2509
  title: { default: "Props" },
1865
2510
  props: {}
1866
2511
  },
1867
- setup(s) {
1868
- const e = ["Prop", "Type", "Default", "Description"];
1869
- return (o, l) => (c(), f("section", Rt, [
1870
- t("h2", Gt, w(s.title), 1),
1871
- t("div", {
1872
- class: _(["sl-rounded-xl sl-shadow-sm sl-border sl-overflow-hidden", [
2512
+ setup(e) {
2513
+ const t = ["Prop", "Type", "Default", "Description"];
2514
+ return (a, l) => (i(), m("section", Yl, [
2515
+ s("h2", Xl, w(e.title), 1),
2516
+ s("div", {
2517
+ class: E(["sl-rounded-xl sl-shadow-sm sl-border sl-overflow-hidden", [
1873
2518
  "sl-bg-white dark:sl-bg-slate-800",
1874
2519
  "sl-border-slate-200 dark:sl-border-slate-700"
1875
2520
  ]])
1876
2521
  }, [
1877
- t("div", Kt, [
1878
- t("table", Ht, [
1879
- t("thead", Wt, [
1880
- t("tr", null, [
1881
- (c(), f(V, null, R(e, (r) => t("th", {
1882
- key: r,
1883
- class: _(["sl-px-6 sl-py-3 sl-text-left sl-text-xs sl-font-medium sl-uppercase sl-tracking-wider", "sl-text-slate-500 dark:sl-text-slate-300"])
1884
- }, w(r), 1)), 64))
2522
+ s("div", ql, [
2523
+ s("table", Jl, [
2524
+ s("thead", Zl, [
2525
+ s("tr", null, [
2526
+ (i(), m(G, null, Y(t, (d) => s("th", {
2527
+ key: d,
2528
+ class: E(["sl-px-6 sl-py-3 sl-text-left sl-text-xs sl-font-medium sl-uppercase sl-tracking-wider", "sl-text-slate-500 dark:sl-text-slate-300"])
2529
+ }, w(d), 1)), 64))
1885
2530
  ])
1886
2531
  ]),
1887
- t("tbody", Zt, [
1888
- (c(!0), f(V, null, R(s.props, (r) => (c(), f("tr", {
1889
- key: r.name
2532
+ s("tbody", Ql, [
2533
+ (i(!0), m(G, null, Y(e.props, (d) => (i(), m("tr", {
2534
+ key: d.name
1890
2535
  }, [
1891
- t("td", Jt, w(r.name), 1),
1892
- t("td", Xt, w(r.type), 1),
1893
- t("td", Yt, w(r.default), 1),
1894
- t("td", Qt, w(r.description), 1)
2536
+ s("td", ea, w(d.name), 1),
2537
+ s("td", ta, w(d.type), 1),
2538
+ s("td", sa, w(d.default), 1),
2539
+ s("td", la, w(d.description), 1)
1895
2540
  ]))), 128))
1896
2541
  ])
1897
2542
  ])
@@ -1899,21 +2544,21 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1899
2544
  ])
1900
2545
  ]));
1901
2546
  }
1902
- }), qt = {
2547
+ }), aa = {
1903
2548
  class: "sl-rounded-xl sl-shadow-sm sl-border sl-overflow-hidden",
1904
2549
  style: { backgroundColor: "var(--sl-surface-elevated)", borderColor: "var(--sl-border-default)" }
1905
- }, el = {
2550
+ }, oa = {
1906
2551
  key: 0,
1907
2552
  class: "sl-px-6 sl-py-4 sl-border-b",
1908
2553
  style: { backgroundColor: "var(--sl-surface-sunken)", borderColor: "var(--sl-border-default)" }
1909
- }, sl = {
2554
+ }, ra = {
1910
2555
  class: "sl-text-lg sl-font-semibold",
1911
2556
  style: { color: "var(--sl-text-primary)" }
1912
- }, tl = {
2557
+ }, na = {
1913
2558
  key: 0,
1914
2559
  class: "sl-text-sm sl-mt-1",
1915
2560
  style: { color: "var(--sl-text-muted)" }
1916
- }, Wl = /* @__PURE__ */ D({
2561
+ }, pr = /* @__PURE__ */ F({
1917
2562
  __name: "ShowcaseCard",
1918
2563
  props: {
1919
2564
  title: { default: "" },
@@ -1921,36 +2566,36 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1921
2566
  contentClass: { default: "" },
1922
2567
  padded: { type: Boolean, default: !0 }
1923
2568
  },
1924
- setup(s) {
1925
- const e = s, o = C(() => {
2569
+ setup(e) {
2570
+ const t = e, a = b(() => {
1926
2571
  const l = [];
1927
- return e.padded && l.push("sl-p-6"), e.contentClass && l.push(e.contentClass), l.join(" ");
2572
+ return t.padded && l.push("sl-p-6"), t.contentClass && l.push(t.contentClass), l.join(" ");
1928
2573
  });
1929
- return (l, r) => (c(), f("div", qt, [
1930
- s.title || l.$slots.header ? (c(), f("div", el, [
1931
- v(l.$slots, "header", {}, () => [
1932
- t("h2", sl, w(s.title), 1),
1933
- s.description ? (c(), f("p", tl, w(s.description), 1)) : b("", !0)
2574
+ return (l, d) => (i(), m("div", aa, [
2575
+ e.title || l.$slots.header ? (i(), m("div", oa, [
2576
+ M(l.$slots, "header", {}, () => [
2577
+ s("h2", ra, w(e.title), 1),
2578
+ e.description ? (i(), m("p", na, w(e.description), 1)) : k("", !0)
1934
2579
  ])
1935
- ])) : b("", !0),
1936
- t("div", {
1937
- class: _(o.value)
2580
+ ])) : k("", !0),
2581
+ s("div", {
2582
+ class: E(a.value)
1938
2583
  }, [
1939
- v(l.$slots, "default")
2584
+ M(l.$slots, "default")
1940
2585
  ], 2)
1941
2586
  ]));
1942
2587
  }
1943
- }), ll = { class: "sl-space-y-8" }, ol = { class: "sl-space-y-2" }, al = {
2588
+ }), ia = { class: "sl-space-y-8" }, da = { class: "sl-space-y-2" }, ca = {
1944
2589
  class: "sl-text-3xl sl-font-bold",
1945
2590
  style: { color: "var(--sl-text-primary)" }
1946
- }, rl = {
2591
+ }, ua = {
1947
2592
  class: "sl-text-lg",
1948
2593
  style: { color: "var(--sl-text-muted)" }
1949
- }, nl = {
2594
+ }, ma = {
1950
2595
  key: 0,
1951
2596
  class: "sl-flex sl-flex-wrap sl-gap-2 sl-pb-4",
1952
2597
  style: { borderBottom: "1px solid var(--sl-border-default)" }
1953
- }, il = ["onClick"], dl = { class: "sl-space-y-8" }, Zl = /* @__PURE__ */ D({
2598
+ }, fa = ["onClick"], pa = { class: "sl-space-y-8" }, gr = /* @__PURE__ */ F({
1954
2599
  __name: "ShowcaseLayout",
1955
2600
  props: {
1956
2601
  title: {},
@@ -1959,59 +2604,642 @@ const tt = { class: "sl-address-input" }, lt = { class: "sl-space-y-3" }, ot = {
1959
2604
  modelValue: { default: "" }
1960
2605
  },
1961
2606
  emits: ["update:modelValue"],
1962
- setup(s, { emit: e }) {
1963
- const o = s, l = e, { isDark: r } = fe(), d = (n) => {
1964
- l("update:modelValue", n);
1965
- }, a = (n) => o.modelValue === n ? {
1966
- backgroundColor: r.value ? "#ffffff" : "#0f172a",
1967
- color: r.value ? "#0f172a" : "#ffffff",
2607
+ setup(e, { emit: t }) {
2608
+ const a = e, l = t, { isDark: d } = Ee(), u = (o) => {
2609
+ l("update:modelValue", o);
2610
+ }, n = (o) => a.modelValue === o ? {
2611
+ backgroundColor: d.value ? "#ffffff" : "#0f172a",
2612
+ color: d.value ? "#0f172a" : "#ffffff",
1968
2613
  boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)"
1969
2614
  } : {
1970
2615
  backgroundColor: "transparent",
1971
2616
  color: "var(--sl-text-muted)"
1972
2617
  };
1973
- return (n, S) => (c(), f("div", ll, [
1974
- t("header", ol, [
1975
- t("h1", al, w(s.title), 1),
1976
- t("p", rl, w(s.description), 1),
1977
- v(n.$slots, "header-extra")
2618
+ return (o, g) => (i(), m("div", ia, [
2619
+ s("header", da, [
2620
+ s("h1", ca, w(e.title), 1),
2621
+ s("p", ua, w(e.description), 1),
2622
+ M(o.$slots, "header-extra")
1978
2623
  ]),
1979
- s.variants && s.variants.length > 0 ? (c(), f("nav", nl, [
1980
- (c(!0), f(V, null, R(s.variants, (I) => (c(), f("button", {
1981
- key: I.id,
1982
- onClick: (A) => d(I.id),
2624
+ e.variants && e.variants.length > 0 ? (i(), m("nav", ma, [
2625
+ (i(!0), m(G, null, Y(e.variants, (y) => (i(), m("button", {
2626
+ key: y.id,
2627
+ onClick: (v) => u(y.id),
1983
2628
  class: "sl-px-4 sl-py-2 sl-text-sm sl-font-medium sl-rounded-lg sl-transition-all sl-duration-150",
1984
- style: z(a(I.id))
1985
- }, w(I.label || I.name), 13, il))), 128))
1986
- ])) : b("", !0),
1987
- t("div", dl, [
1988
- v(n.$slots, "content", {}, () => [
1989
- v(n.$slots, "default")
2629
+ style: O(n(y.id))
2630
+ }, w(y.label || y.name), 13, fa))), 128))
2631
+ ])) : k("", !0),
2632
+ s("div", pa, [
2633
+ M(o.$slots, "content", {}, () => [
2634
+ M(o.$slots, "default")
1990
2635
  ])
1991
2636
  ]),
1992
- v(n.$slots, "footer")
2637
+ M(o.$slots, "footer")
1993
2638
  ]));
1994
2639
  }
1995
- }), cl = { class: "sl-space-y-4" }, ul = {
2640
+ }), ga = { class: "sl-space-y-4" }, ya = {
1996
2641
  class: "sl-text-xl sl-font-semibold",
1997
2642
  style: { color: "var(--sl-text-primary)" }
1998
- }, fl = { class: "sl-rounded-xl sl-p-4 sl-overflow-auto sl-bg-slate-800 dark:sl-bg-slate-900" }, ml = { class: "sl-text-sm sl-text-slate-300 sl-font-mono" }, Jl = /* @__PURE__ */ D({
2643
+ }, ha = { class: "sl-rounded-xl sl-p-4 sl-overflow-auto sl-bg-slate-800 dark:sl-bg-slate-900" }, xa = { class: "sl-text-sm sl-text-slate-300 sl-font-mono" }, yr = /* @__PURE__ */ F({
1999
2644
  __name: "StateDisplay",
2000
2645
  props: {
2001
2646
  title: { default: "Current State" },
2002
2647
  state: {}
2003
2648
  },
2004
- setup(s) {
2005
- const e = s, o = C(() => JSON.stringify(e.state, null, 2));
2006
- return (l, r) => (c(), f("section", cl, [
2007
- t("h2", ul, w(s.title), 1),
2008
- t("div", fl, [
2009
- t("pre", ml, w(o.value), 1)
2649
+ setup(e) {
2650
+ const t = e, a = b(() => JSON.stringify(t.state, null, 2));
2651
+ return (l, d) => (i(), m("section", ga, [
2652
+ s("h2", ya, w(e.title), 1),
2653
+ s("div", ha, [
2654
+ s("pre", xa, w(a.value), 1)
2010
2655
  ])
2011
2656
  ]));
2012
2657
  }
2013
- });
2014
- class pl {
2658
+ }), ba = { class: "sl-relative sl-z-10 sl-flex sl-flex-col sm:sl-flex-row sl-items-center sl-gap-6" }, va = { class: "sl-flex-shrink-0" }, ka = { class: "sl-relative" }, wa = ["src", "alt"], Ca = {
2659
+ key: 1,
2660
+ class: "sl-w-full sl-h-full sl-flex sl-items-center sl-justify-center sl-bg-white/20 sl-text-white sl-text-2xl sl-font-bold"
2661
+ }, $a = {
2662
+ key: 0,
2663
+ class: "sl-absolute sl--bottom-1 sl--right-1 sl-flex sl-items-center sl-justify-center sl-w-8 sl-h-8 sl-rounded-full sl-bg-red-500 sl-ring-4 sl-ring-white dark:sl-ring-gray-800"
2664
+ }, _a = { class: "sl-text-center sm:sl-text-left" }, Ia = { class: "sl-text-3xl sl-font-bold sl-text-white sl-tracking-tight" }, Sa = {
2665
+ key: 0,
2666
+ class: "sl-mt-1 sl-text-lg sl-text-white/80"
2667
+ }, za = {
2668
+ key: 1,
2669
+ class: "sl-mt-3"
2670
+ }, Ta = { class: "sl-inline-flex sl-items-center sl-gap-1.5 sl-px-3 sl-py-1 sl-rounded-full sl-text-sm sl-font-medium sl-bg-red-500/20 sl-text-white sl-border sl-border-red-400/30" }, La = /* @__PURE__ */ F({
2671
+ __name: "ProfileHeaderCard",
2672
+ props: {
2673
+ name: {},
2674
+ nickname: {},
2675
+ image: {},
2676
+ status: {},
2677
+ animationIndex: { default: 0 },
2678
+ animationEnabled: { type: Boolean, default: !0 }
2679
+ },
2680
+ setup(e) {
2681
+ const t = e, a = K(!1), l = b(() => t.status === "inactive"), d = b(() => a.value || !t.image ? null : typeof t.image == "string" ? t.image : t.image.secure_url || t.image.url || null), u = b(() => {
2682
+ if (!t.name) return "?";
2683
+ const g = t.name.split(" ").filter(Boolean);
2684
+ return g.length >= 2 ? `${g[0][0]}${g[g.length - 1][0]}`.toUpperCase() : t.name.substring(0, 2).toUpperCase();
2685
+ }), n = b(() => t.animationEnabled ? {
2686
+ animationDelay: `${t.animationIndex * 75}ms`
2687
+ } : {}), o = () => {
2688
+ a.value = !0;
2689
+ };
2690
+ return (g, y) => (i(), m("div", {
2691
+ class: E([
2692
+ "sl-profile-header-card",
2693
+ "sl-relative sl-overflow-hidden",
2694
+ "sl-rounded-2xl",
2695
+ "sl-shadow-lg",
2696
+ "sl-p-8",
2697
+ e.animationEnabled && "sl-opacity-0 sl-animate-[fadeInUp_0.4s_ease-out_forwards]"
2698
+ ]),
2699
+ style: O(n.value)
2700
+ }, [
2701
+ y[1] || (y[1] = s("div", { class: "sl-absolute sl-inset-0 sl-bg-gradient-to-br sl-from-primary-500 sl-via-primary-600 sl-to-primary-700 dark:sl-from-primary-600 dark:sl-via-primary-700 dark:sl-to-primary-800" }, null, -1)),
2702
+ y[2] || (y[2] = s("div", { class: "sl-absolute sl-top-0 sl-right-0 sl-w-64 sl-h-64 sl-bg-white/5 sl-rounded-full sl--translate-y-1/2 sl-translate-x-1/2" }, null, -1)),
2703
+ y[3] || (y[3] = s("div", { class: "sl-absolute sl-bottom-0 sl-left-0 sl-w-48 sl-h-48 sl-bg-white/5 sl-rounded-full sl-translate-y-1/2 sl--translate-x-1/2" }, null, -1)),
2704
+ s("div", ba, [
2705
+ s("div", va, [
2706
+ s("div", ka, [
2707
+ s("div", {
2708
+ class: E([
2709
+ "sl-w-24 sl-h-24 sl-rounded-full sl-overflow-hidden sl-shadow-xl",
2710
+ l.value ? "sl-ring-4 sl-ring-red-400/50" : "sl-ring-4 sl-ring-white/30"
2711
+ ])
2712
+ }, [
2713
+ d.value ? (i(), m("img", {
2714
+ key: 0,
2715
+ src: d.value,
2716
+ alt: e.name,
2717
+ class: "sl-w-full sl-h-full sl-object-cover",
2718
+ onError: o
2719
+ }, null, 40, wa)) : (i(), m("div", Ca, w(u.value), 1))
2720
+ ], 2),
2721
+ l.value ? (i(), m("span", $a, [
2722
+ C(_(Nt), { class: "sl-w-4 sl-h-4 sl-text-white" })
2723
+ ])) : k("", !0)
2724
+ ])
2725
+ ]),
2726
+ s("div", _a, [
2727
+ s("h1", Ia, w(e.name || "Unknown User"), 1),
2728
+ e.nickname ? (i(), m("p", Sa, w(e.nickname), 1)) : k("", !0),
2729
+ l.value ? (i(), m("div", za, [
2730
+ s("span", Ta, [
2731
+ C(_(Ut), { class: "sl-w-4 sl-h-4" }),
2732
+ y[0] || (y[0] = j(" Inactive ", -1))
2733
+ ])
2734
+ ])) : k("", !0)
2735
+ ])
2736
+ ])
2737
+ ], 6));
2738
+ }
2739
+ }), Ma = /* @__PURE__ */ Z(La, [["__scopeId", "data-v-a51f3fb7"]]), Pa = {
2740
+ key: 0,
2741
+ class: "sl-flex sl-items-center sl-gap-3 sl-border-b sl-border-gray-100 dark:sl-border-gray-700 sl-px-5 sl-py-4"
2742
+ }, Ea = {
2743
+ key: 1,
2744
+ class: "sl-text-sm sl-font-semibold sl-text-gray-900 dark:sl-text-gray-100"
2745
+ }, Aa = /* @__PURE__ */ F({
2746
+ __name: "ProfileCard",
2747
+ props: {
2748
+ title: {},
2749
+ icon: {},
2750
+ animationIndex: { default: 0 },
2751
+ animationDelay: { default: 75 },
2752
+ noPadding: { type: Boolean, default: !1 },
2753
+ animationEnabled: { type: Boolean, default: !0 }
2754
+ },
2755
+ setup(e) {
2756
+ const t = e, a = Pe(), l = b(() => t.title || t.icon || a.header), d = b(() => t.animationEnabled ? {
2757
+ animationDelay: `${t.animationIndex * t.animationDelay}ms`
2758
+ } : {});
2759
+ return (u, n) => (i(), m("div", {
2760
+ class: E([
2761
+ "sl-profile-card",
2762
+ "sl-relative sl-overflow-hidden",
2763
+ "sl-rounded-xl sl-bg-white dark:sl-bg-gray-800",
2764
+ "sl-shadow-sm sl-ring-1 sl-ring-gray-200 dark:sl-ring-gray-700",
2765
+ e.animationEnabled && "sl-opacity-0 sl-animate-[fadeInUp_0.4s_ease-out_forwards]"
2766
+ ]),
2767
+ style: O(d.value)
2768
+ }, [
2769
+ l.value ? (i(), m("div", Pa, [
2770
+ M(u.$slots, "header", {}, () => [
2771
+ e.icon ? (i(), D(ge(e.icon), {
2772
+ key: 0,
2773
+ class: "sl-h-5 sl-w-5 sl-text-primary-600 dark:sl-text-primary-400",
2774
+ "aria-hidden": "true"
2775
+ })) : k("", !0),
2776
+ e.title ? (i(), m("h3", Ea, w(e.title), 1)) : k("", !0)
2777
+ ], !0)
2778
+ ])) : k("", !0),
2779
+ s("div", {
2780
+ class: E([e.noPadding ? "" : "sl-p-5"])
2781
+ }, [
2782
+ M(u.$slots, "default", {}, void 0, !0)
2783
+ ], 2)
2784
+ ], 6));
2785
+ }
2786
+ }), le = /* @__PURE__ */ Z(Aa, [["__scopeId", "data-v-1b6c2c74"]]), Da = { class: "sl-space-y-4" }, Fa = {
2787
+ key: 0,
2788
+ class: "sl-flex sl-items-start sl-gap-3"
2789
+ }, Na = ["href"], Ua = {
2790
+ key: 1,
2791
+ class: "sl-flex sl-items-start sl-gap-3"
2792
+ }, Va = ["href"], Ba = {
2793
+ key: 2,
2794
+ class: "sl-flex sl-items-start sl-gap-3"
2795
+ }, ja = ["href"], Oa = /* @__PURE__ */ F({
2796
+ __name: "ProfileContactCard",
2797
+ props: {
2798
+ email: {},
2799
+ phone: {},
2800
+ website: {},
2801
+ animationIndex: { default: 1 },
2802
+ animationEnabled: { type: Boolean, default: !0 }
2803
+ },
2804
+ setup(e) {
2805
+ const t = e, a = b(() => {
2806
+ if (!t.phone) return "";
2807
+ const u = t.phone.replace(/\D/g, "");
2808
+ return u.length === 10 ? `(${u.slice(0, 3)}) ${u.slice(3, 6)}-${u.slice(6)}` : u.length === 11 && u.startsWith("1") ? `+1 (${u.slice(1, 4)}) ${u.slice(4, 7)}-${u.slice(7)}` : t.phone;
2809
+ }), l = b(() => t.website ? t.website.startsWith("http://") || t.website.startsWith("https://") ? t.website : `https://${t.website}` : ""), d = b(() => t.website ? t.website.replace(/^https?:\/\//, "").replace(/\/$/, "") : "");
2810
+ return (u, n) => (i(), D(le, {
2811
+ title: "Contact",
2812
+ icon: _(_e),
2813
+ "animation-index": e.animationIndex,
2814
+ "animation-enabled": e.animationEnabled
2815
+ }, {
2816
+ default: T(() => [
2817
+ s("div", Da, [
2818
+ e.email ? (i(), m("div", Fa, [
2819
+ C(_(pt), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
2820
+ s("div", null, [
2821
+ n[0] || (n[0] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Email", -1)),
2822
+ s("a", {
2823
+ href: `mailto:${e.email}`,
2824
+ class: "sl-text-sm sl-text-gray-900 dark:sl-text-gray-100 hover:sl-text-primary-600 dark:hover:sl-text-primary-400"
2825
+ }, w(e.email), 9, Na)
2826
+ ])
2827
+ ])) : k("", !0),
2828
+ e.phone ? (i(), m("div", Ua, [
2829
+ C(_(_e), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
2830
+ s("div", null, [
2831
+ n[1] || (n[1] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Phone", -1)),
2832
+ s("a", {
2833
+ href: `tel:${e.phone}`,
2834
+ class: "sl-text-sm sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline"
2835
+ }, w(a.value), 9, Va)
2836
+ ])
2837
+ ])) : k("", !0),
2838
+ e.website ? (i(), m("div", Ba, [
2839
+ C(_(gt), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
2840
+ s("div", null, [
2841
+ n[2] || (n[2] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Website", -1)),
2842
+ s("a", {
2843
+ href: l.value,
2844
+ target: "_blank",
2845
+ rel: "noopener noreferrer",
2846
+ class: "sl-text-sm sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline"
2847
+ }, w(d.value), 9, ja)
2848
+ ])
2849
+ ])) : k("", !0)
2850
+ ])
2851
+ ]),
2852
+ _: 1
2853
+ }, 8, ["icon", "animation-index", "animation-enabled"]));
2854
+ }
2855
+ }), Ra = { class: "sl-flex sl-items-center sl-gap-3" }, Ha = { class: "sl-text-sm sl-text-gray-900 dark:sl-text-gray-100" }, Ga = /* @__PURE__ */ F({
2856
+ __name: "ProfilePersonalCard",
2857
+ props: {
2858
+ birthday: {},
2859
+ animationIndex: { default: 2 },
2860
+ animationEnabled: { type: Boolean, default: !0 }
2861
+ },
2862
+ setup(e) {
2863
+ const t = e, a = b(() => {
2864
+ if (!t.birthday) return "Not specified";
2865
+ let l;
2866
+ return typeof t.birthday == "string" ? l = re(t.birthday) : l = t.birthday, J(l) ? q(l, "MMMM d, yyyy") : "Not specified";
2867
+ });
2868
+ return (l, d) => (i(), D(le, {
2869
+ title: "Personal",
2870
+ icon: _(De),
2871
+ "animation-index": e.animationIndex,
2872
+ "animation-enabled": e.animationEnabled
2873
+ }, {
2874
+ default: T(() => [
2875
+ s("div", Ra, [
2876
+ C(_(yt), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500" }),
2877
+ s("div", null, [
2878
+ d[0] || (d[0] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Birthday", -1)),
2879
+ s("p", Ha, w(a.value), 1)
2880
+ ])
2881
+ ])
2882
+ ]),
2883
+ _: 1
2884
+ }, 8, ["icon", "animation-index", "animation-enabled"]));
2885
+ }
2886
+ }), Ka = { class: "sl-space-y-4" }, Wa = {
2887
+ key: 0,
2888
+ class: "sl-flex sl-items-start sl-gap-3"
2889
+ }, Ya = {
2890
+ key: 0,
2891
+ class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100"
2892
+ }, Xa = {
2893
+ key: 1,
2894
+ class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400"
2895
+ }, qa = {
2896
+ key: 1,
2897
+ class: "sl-flex sl-items-center sl-gap-3"
2898
+ }, Ja = ["href"], Za = /* @__PURE__ */ F({
2899
+ __name: "ProfileProfessionalCard",
2900
+ props: {
2901
+ professional: {},
2902
+ animationIndex: { default: 3 },
2903
+ animationEnabled: { type: Boolean, default: !0 }
2904
+ },
2905
+ setup(e) {
2906
+ const t = () => ne("svg", {
2907
+ viewBox: "0 0 24 24",
2908
+ fill: "currentColor",
2909
+ class: "sl-w-5 sl-h-5"
2910
+ }, [
2911
+ ne("path", {
2912
+ d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
2913
+ })
2914
+ ]), a = e, l = b(() => a.professional?.title || a.professional?.company), d = b(() => {
2915
+ if (!a.professional?.linkedin) return "";
2916
+ const u = a.professional.linkedin;
2917
+ return u.startsWith("http") ? u : u.startsWith("linkedin.com") ? `https://${u}` : `https://linkedin.com/in/${u}`;
2918
+ });
2919
+ return (u, n) => (i(), D(le, {
2920
+ title: "Professional",
2921
+ icon: _(ht),
2922
+ "animation-index": e.animationIndex,
2923
+ "animation-enabled": e.animationEnabled
2924
+ }, {
2925
+ default: T(() => [
2926
+ s("div", Ka, [
2927
+ l.value ? (i(), m("div", Wa, [
2928
+ C(_(xt), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
2929
+ s("div", null, [
2930
+ e.professional?.title ? (i(), m("p", Ya, w(e.professional.title), 1)) : k("", !0),
2931
+ e.professional?.company ? (i(), m("p", Xa, w(e.professional.company), 1)) : k("", !0)
2932
+ ])
2933
+ ])) : k("", !0),
2934
+ e.professional?.linkedin ? (i(), m("div", qa, [
2935
+ C(t, { class: "sl-h-5 sl-w-5 sl-text-[#0A66C2]" }),
2936
+ s("div", null, [
2937
+ n[0] || (n[0] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "LinkedIn", -1)),
2938
+ s("a", {
2939
+ href: d.value,
2940
+ target: "_blank",
2941
+ rel: "noopener noreferrer",
2942
+ class: "sl-text-sm sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline"
2943
+ }, " View Profile ", 8, Ja)
2944
+ ])
2945
+ ])) : k("", !0)
2946
+ ])
2947
+ ]),
2948
+ _: 1
2949
+ }, 8, ["icon", "animation-index", "animation-enabled"]));
2950
+ }
2951
+ }), Qa = { class: "sl-p-5" }, eo = { class: "sl-text-sm sl-text-gray-700 dark:sl-text-gray-300" }, to = {
2952
+ key: 0,
2953
+ class: "sl-h-40 sl-w-full sl-bg-gray-100 dark:sl-bg-gray-700 sl-relative"
2954
+ }, so = ["src"], lo = {
2955
+ key: 1,
2956
+ class: "sl-w-full sl-h-full sl-flex sl-items-center sl-justify-center"
2957
+ }, ao = /* @__PURE__ */ F({
2958
+ __name: "ProfileLocationCard",
2959
+ props: {
2960
+ address: {},
2961
+ latLng: {},
2962
+ showMap: { type: Boolean, default: !0 },
2963
+ animationIndex: { default: 1 },
2964
+ animationEnabled: { type: Boolean, default: !0 }
2965
+ },
2966
+ setup(e) {
2967
+ const t = e, a = Le("googleMaps", {}), l = K(!1), d = b(() => t.address ? Array.isArray(t.address) ? t.address[0] || null : t.address : null), u = b(() => {
2968
+ const v = d.value;
2969
+ if (!v) return "No address specified";
2970
+ if (v.description) return v.description;
2971
+ if (v.name) return v.name;
2972
+ const z = [];
2973
+ v.street && z.push(v.street), v.suite && z.push(v.suite);
2974
+ const h = [];
2975
+ return v.city && h.push(v.city), v.state && h.push(v.state), v.zip && h.push(v.zip), h.length > 0 && z.push(h.join(", ")), v.country && z.push(v.country), z.length > 0 ? z.join(", ") : "No address specified";
2976
+ }), n = b(() => {
2977
+ if (t.latLng?.lat && t.latLng?.lng)
2978
+ return t.latLng;
2979
+ const v = d.value;
2980
+ return v?.geocode?.location?.lat && v?.geocode?.location?.lng ? v.geocode.location : null;
2981
+ }), o = b(() => !!n.value), g = b(() => {
2982
+ if (l.value || !n.value) return null;
2983
+ const v = a?.staticMapsApiKey || a?.apiKey;
2984
+ if (!v) return null;
2985
+ const { lat: z, lng: h } = n.value;
2986
+ return `https://maps.googleapis.com/maps/api/staticmap?center=${z},${h}&zoom=14&size=400x200&maptype=roadmap&markers=color:blue%7C${z},${h}&key=${v}`;
2987
+ }), y = () => {
2988
+ l.value = !0;
2989
+ };
2990
+ return (v, z) => (i(), D(le, {
2991
+ title: "Location",
2992
+ icon: _(Ie),
2993
+ "animation-index": e.animationIndex,
2994
+ "animation-enabled": e.animationEnabled,
2995
+ "no-padding": !0
2996
+ }, {
2997
+ default: T(() => [
2998
+ s("div", Qa, [
2999
+ s("div", eo, w(u.value), 1)
3000
+ ]),
3001
+ e.showMap && o.value ? (i(), m("div", to, [
3002
+ g.value ? (i(), m("img", {
3003
+ key: 0,
3004
+ src: g.value,
3005
+ alt: "Location map",
3006
+ class: "sl-w-full sl-h-full sl-object-cover",
3007
+ onError: y
3008
+ }, null, 40, so)) : (i(), m("div", lo, [
3009
+ C(_(Ie), { class: "sl-w-8 sl-h-8 sl-text-gray-400 dark:sl-text-gray-500" })
3010
+ ])),
3011
+ z[0] || (z[0] = s("div", { class: "sl-absolute sl-bottom-1 sl-right-1 sl-text-[10px] sl-text-gray-500 sl-bg-white/80 sl-px-1 sl-rounded" }, " Map Data ", -1))
3012
+ ])) : k("", !0)
3013
+ ]),
3014
+ _: 1
3015
+ }, 8, ["icon", "animation-index", "animation-enabled"]));
3016
+ }
3017
+ }), oo = { class: "sl-space-y-4" }, ro = { class: "sl-relative sl-flex sl-flex-col sl-items-center" }, no = {
3018
+ key: 0,
3019
+ class: "sl-w-0.5 sl-flex-1 sl-bg-gray-200 dark:sl-bg-gray-700 sl-min-h-[2rem]"
3020
+ }, io = { class: "sl-flex-1 sl-pb-4" }, co = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100" }, uo = {
3021
+ key: 0,
3022
+ class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400"
3023
+ }, mo = { class: "sl-mt-1 sl-text-xs sl-text-gray-500 dark:sl-text-gray-500" }, fo = /* @__PURE__ */ F({
3024
+ __name: "ProfileOrganizationsCard",
3025
+ props: {
3026
+ organizations: {},
3027
+ animationIndex: { default: 5 },
3028
+ animationEnabled: { type: Boolean, default: !0 }
3029
+ },
3030
+ setup(e) {
3031
+ const t = e, a = b(() => t.organizations || []), l = (o) => o.organization ? typeof o.organization == "string" ? o.organization : o.organization.name || "Unknown Organization" : "Unknown Organization", d = (o) => {
3032
+ if (!o.position) return "";
3033
+ const g = typeof o.position == "string" ? o.position : o.position.name, y = [];
3034
+ return o.position_prefix && y.push(o.position_prefix), g && y.push(g), o.position_suffix && y.push(o.position_suffix), y.join(" ");
3035
+ }, u = (o) => {
3036
+ if (!o) return null;
3037
+ if (o instanceof Date) return J(o) ? o : null;
3038
+ const g = re(o);
3039
+ return J(g) ? g : null;
3040
+ }, n = (o, g) => {
3041
+ const y = u(o), v = u(g), z = [];
3042
+ if (y && z.push(q(y, "MMM yyyy")), z.push("–"), v ? z.push(q(v, "MMM yyyy")) : z.push("Present"), y) {
3043
+ const h = v || /* @__PURE__ */ new Date(), r = ce(h, y), c = Ae(h, y) % 12, p = [];
3044
+ r > 0 && p.push(`${r} yr${r > 1 ? "s" : ""}`), (c > 0 || r === 0) && p.push(`${c || 1} mo${c > 1 ? "s" : ""}`), p.length > 0 && z.push("•", p.join(" "));
3045
+ }
3046
+ return z.join(" ");
3047
+ };
3048
+ return (o, g) => (i(), D(le, {
3049
+ title: "Organizations",
3050
+ icon: _(bt),
3051
+ "animation-index": e.animationIndex,
3052
+ "animation-enabled": e.animationEnabled
3053
+ }, {
3054
+ default: T(() => [
3055
+ s("div", oo, [
3056
+ (i(!0), m(G, null, Y(a.value, (y, v) => (i(), m("div", {
3057
+ key: y.id || v,
3058
+ class: "sl-flex sl-items-start sl-gap-3"
3059
+ }, [
3060
+ s("div", ro, [
3061
+ g[0] || (g[0] = s("div", { class: "sl-w-3 sl-h-3 sl-rounded-full sl-bg-primary-600 dark:sl-bg-primary-400 sl-ring-4 sl-ring-white dark:sl-ring-gray-800" }, null, -1)),
3062
+ v < a.value.length - 1 ? (i(), m("div", no)) : k("", !0)
3063
+ ]),
3064
+ s("div", io, [
3065
+ s("p", co, w(l(y)), 1),
3066
+ d(y) ? (i(), m("p", uo, w(d(y)), 1)) : k("", !0),
3067
+ s("p", mo, w(n(y.start_date, y.end_date)), 1)
3068
+ ])
3069
+ ]))), 128))
3070
+ ])
3071
+ ]),
3072
+ _: 1
3073
+ }, 8, ["icon", "animation-index", "animation-enabled"]));
3074
+ }
3075
+ }), po = { class: "sl-grid sl-grid-cols-2 sl-gap-4" }, go = { class: "sl-w-10 sl-h-10 sl-rounded-full sl-flex sl-items-center sl-justify-center sl-bg-primary-100 dark:sl-bg-primary-900/50 sl-text-primary-600 dark:sl-text-primary-400 sl-text-sm sl-font-semibold sl-flex-shrink-0" }, yo = { class: "sl-min-w-0 sl-flex-1" }, ho = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100 sl-truncate" }, xo = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400 sl-truncate" }, bo = {
3076
+ key: 0,
3077
+ class: "sl-text-xs sl-text-gray-400 dark:sl-text-gray-500 sl-flex sl-items-center sl-gap-1"
3078
+ }, vo = /* @__PURE__ */ F({
3079
+ __name: "ProfileRelatedNamesCard",
3080
+ props: {
3081
+ relatedNames: {},
3082
+ animationIndex: { default: 6 },
3083
+ animationEnabled: { type: Boolean, default: !0 }
3084
+ },
3085
+ setup(e) {
3086
+ const t = e, a = b(() => t.relatedNames || []), l = (o) => {
3087
+ if (o.name) return o.name;
3088
+ const g = [];
3089
+ return o.first_name && g.push(o.first_name), o.last_name && g.push(o.last_name), g.join(" ") || "Unknown";
3090
+ }, d = (o) => {
3091
+ const g = l(o), y = g.split(" ").filter(Boolean);
3092
+ return y.length >= 2 ? `${y[0][0]}${y[y.length - 1][0]}`.toUpperCase() : g.substring(0, 2).toUpperCase();
3093
+ }, u = (o) => o.label ? typeof o.label == "string" ? o.label : o.label.name || "" : o.relationship || "", n = (o) => {
3094
+ if (!o.birthday) return "";
3095
+ let g;
3096
+ if (typeof o.birthday == "string" ? g = re(o.birthday) : g = o.birthday, !J(g)) return "";
3097
+ const y = ce(/* @__PURE__ */ new Date(), g);
3098
+ return y === 0 ? `${q(g, "MMM d, yyyy")}` : y >= 1 && y < 2 ? "over 1 year old" : `${y > 0 ? "over " : "almost "}${Math.abs(y)} years old`;
3099
+ };
3100
+ return (o, g) => (i(), D(le, {
3101
+ title: "Related Names",
3102
+ icon: _(vt),
3103
+ "animation-index": e.animationIndex,
3104
+ "animation-enabled": e.animationEnabled
3105
+ }, {
3106
+ default: T(() => [
3107
+ s("div", po, [
3108
+ (i(!0), m(G, null, Y(a.value, (y, v) => (i(), m("div", {
3109
+ key: y.id || v,
3110
+ class: "sl-flex sl-items-center sl-gap-3 sl-p-3 sl-rounded-lg sl-bg-gray-50 dark:sl-bg-gray-700/50"
3111
+ }, [
3112
+ s("div", go, w(d(y)), 1),
3113
+ s("div", yo, [
3114
+ s("p", ho, w(l(y)), 1),
3115
+ s("p", xo, w(u(y)), 1),
3116
+ n(y) ? (i(), m("p", bo, [
3117
+ C(_(De), { class: "sl-w-3 sl-h-3" }),
3118
+ j(" " + w(n(y)), 1)
3119
+ ])) : k("", !0)
3120
+ ])
3121
+ ]))), 128))
3122
+ ])
3123
+ ]),
3124
+ _: 1
3125
+ }, 8, ["icon", "animation-index", "animation-enabled"]));
3126
+ }
3127
+ }), ko = { class: "sl-bento-profile-layout sl-min-h-screen sl-relative" }, wo = { class: "sl-relative sl-max-w-4xl sl-mx-auto sl-px-4 sl-py-8 sl-space-y-6" }, Co = {
3128
+ key: 0,
3129
+ class: "sl-space-y-6"
3130
+ }, $o = { class: "sl-space-y-6" }, _o = /* @__PURE__ */ F({
3131
+ __name: "BentoProfileLayout",
3132
+ props: {
3133
+ profile: {},
3134
+ config: { default: () => ({
3135
+ showContact: !0,
3136
+ showLocation: !0,
3137
+ showProfessional: !0,
3138
+ showPersonal: !0,
3139
+ showOrganizations: !0,
3140
+ showRelatedNames: !0,
3141
+ showSocial: !0,
3142
+ animationEnabled: !0,
3143
+ animationDelay: 75
3144
+ }) }
3145
+ },
3146
+ setup(e) {
3147
+ const t = e, a = b(() => t.config?.showContact !== !1), l = b(() => t.config?.showLocation !== !1), d = b(() => t.config?.showProfessional !== !1), u = b(() => t.config?.showPersonal !== !1), n = b(() => t.config?.showOrganizations !== !1), o = b(() => t.config?.showRelatedNames !== !1), g = b(() => t.config?.animationEnabled !== !1), y = b(() => {
3148
+ if (t.profile.name) return t.profile.name;
3149
+ const P = [];
3150
+ return t.profile.first_name && P.push(t.profile.first_name), t.profile.last_name && P.push(t.profile.last_name), P.join(" ") || "Unknown User";
3151
+ }), v = b(() => t.profile.profile_image || t.profile.image || null), z = b(() => t.profile.email || t.profile.phone || t.profile.website), h = b(() => {
3152
+ const P = t.profile.professional;
3153
+ return P ? P.title || P.company || P.linkedin : !1;
3154
+ }), r = b(() => {
3155
+ const P = t.profile.address;
3156
+ return P ? Array.isArray(P) ? P.length > 0 : !0 : !1;
3157
+ }), c = b(() => !!p.value), p = b(() => {
3158
+ if (t.profile.latLng?.lat && t.profile.latLng?.lng)
3159
+ return t.profile.latLng;
3160
+ if (t.profile._geoloc?.lat && t.profile._geoloc?.lng)
3161
+ return t.profile._geoloc;
3162
+ const P = t.profile.address;
3163
+ if (P) {
3164
+ const B = Array.isArray(P) ? P[0] : P;
3165
+ if (B?.geocode?.location?.lat && B?.geocode?.location?.lng)
3166
+ return B.geocode.location;
3167
+ }
3168
+ return null;
3169
+ }), $ = b(() => l.value && (r.value || c.value)), f = b(() => t.profile.organizations || []), x = b(() => t.profile.relatedNames || t.profile.related_names || []);
3170
+ return (P, B) => (i(), m("div", ko, [
3171
+ B[0] || (B[0] = s("div", { class: "sl-absolute sl-inset-0 sl-bg-gray-50 dark:sl-bg-gray-900 sl--z-10" }, null, -1)),
3172
+ s("div", wo, [
3173
+ C(Ma, {
3174
+ name: y.value,
3175
+ nickname: e.profile.nickname,
3176
+ image: v.value,
3177
+ status: e.profile.status,
3178
+ "animation-index": 0,
3179
+ "animation-enabled": g.value
3180
+ }, null, 8, ["name", "nickname", "image", "status", "animation-enabled"]),
3181
+ s("div", {
3182
+ class: E([
3183
+ "sl-grid sl-gap-6",
3184
+ $.value ? "sl-grid-cols-1 md:sl-grid-cols-2" : "sl-grid-cols-1"
3185
+ ])
3186
+ }, [
3187
+ s("div", {
3188
+ class: E([
3189
+ "sl-space-y-6",
3190
+ $.value ? "" : "sl-grid sl-grid-cols-1 md:sl-grid-cols-2 sl-gap-6"
3191
+ ])
3192
+ }, [
3193
+ a.value && z.value ? (i(), D(Oa, {
3194
+ key: 0,
3195
+ email: e.profile.email,
3196
+ phone: e.profile.phone,
3197
+ website: e.profile.website,
3198
+ "animation-index": 1,
3199
+ "animation-enabled": g.value
3200
+ }, null, 8, ["email", "phone", "website", "animation-enabled"])) : k("", !0),
3201
+ u.value && e.profile.birthday ? (i(), D(Ga, {
3202
+ key: 1,
3203
+ birthday: e.profile.birthday,
3204
+ "animation-index": 2,
3205
+ "animation-enabled": g.value
3206
+ }, null, 8, ["birthday", "animation-enabled"])) : k("", !0),
3207
+ d.value && h.value ? (i(), D(Za, {
3208
+ key: 2,
3209
+ professional: e.profile.professional,
3210
+ "animation-index": 3,
3211
+ "animation-enabled": g.value
3212
+ }, null, 8, ["professional", "animation-enabled"])) : k("", !0)
3213
+ ], 2),
3214
+ $.value ? (i(), m("div", Co, [
3215
+ l.value && (r.value || c.value) ? (i(), D(ao, {
3216
+ key: 0,
3217
+ address: e.profile.address,
3218
+ "lat-lng": p.value,
3219
+ "animation-index": 1,
3220
+ "animation-enabled": g.value
3221
+ }, null, 8, ["address", "lat-lng", "animation-enabled"])) : k("", !0)
3222
+ ])) : k("", !0)
3223
+ ], 2),
3224
+ s("div", $o, [
3225
+ n.value && f.value.length > 0 ? (i(), D(fo, {
3226
+ key: 0,
3227
+ organizations: f.value,
3228
+ "animation-index": 5,
3229
+ "animation-enabled": g.value
3230
+ }, null, 8, ["organizations", "animation-enabled"])) : k("", !0),
3231
+ o.value && x.value.length > 0 ? (i(), D(vo, {
3232
+ key: 1,
3233
+ "related-names": x.value,
3234
+ "animation-index": 6,
3235
+ "animation-enabled": g.value
3236
+ }, null, 8, ["related-names", "animation-enabled"])) : k("", !0)
3237
+ ])
3238
+ ])
3239
+ ]));
3240
+ }
3241
+ }), hr = /* @__PURE__ */ Z(_o, [["__scopeId", "data-v-6dd771fc"]]);
3242
+ class Io {
2015
3243
  designTokens;
2016
3244
  prefix = "sl-";
2017
3245
  injectCSS = !0;
@@ -2022,13 +3250,13 @@ class pl {
2022
3250
  phoneInputConfig;
2023
3251
  datepickerConfig;
2024
3252
  constructor() {
2025
- this.designTokens = pe;
3253
+ this.designTokens = Ne;
2026
3254
  }
2027
- install(e, o = {}) {
2028
- Object.keys(o).length > 0 && this.configure(o), this.injectCSS && this.injectCSSVariables(), e.config.globalProperties.$stachelockUI = this, e.provide("stachelockUI", this), this.cloudinaryConfig && e.provide("cloudinary", this.cloudinaryConfig), this.googleMapsConfig && e.provide("googleMaps", this.googleMapsConfig), this.lottieConfig && e.provide("lottie", this.lottieConfig), this.richTextConfig && e.provide("richText", this.richTextConfig), this.phoneInputConfig && e.provide("phoneInput", this.phoneInputConfig), this.datepickerConfig && e.provide("datepicker", this.datepickerConfig);
3255
+ install(t, a = {}) {
3256
+ Object.keys(a).length > 0 && this.configure(a), this.injectCSS && this.injectCSSVariables(), t.config.globalProperties.$stachelockUI = this, t.provide("stachelockUI", this), this.cloudinaryConfig && t.provide("cloudinary", this.cloudinaryConfig), this.googleMapsConfig && t.provide("googleMaps", this.googleMapsConfig), this.lottieConfig && t.provide("lottie", this.lottieConfig), this.richTextConfig && t.provide("richText", this.richTextConfig), this.phoneInputConfig && t.provide("phoneInput", this.phoneInputConfig), this.datepickerConfig && t.provide("datepicker", this.datepickerConfig);
2029
3257
  }
2030
- configure(e) {
2031
- e.designTokens && (this.designTokens = gs(e.designTokens, this.designTokens)), e.prefix !== void 0 && (this.prefix = e.prefix), e.injectCSS !== void 0 && (this.injectCSS = e.injectCSS), e.cloudinary && (this.cloudinaryConfig = e.cloudinary), e.googleMaps && (this.googleMapsConfig = e.googleMaps), e.lottie && (this.lottieConfig = e.lottie), e.richText && (this.richTextConfig = e.richText), e.phoneInput && (this.phoneInputConfig = e.phoneInput), e.datepicker && (this.datepickerConfig = e.datepicker);
3258
+ configure(t) {
3259
+ t.designTokens && (this.designTokens = Ot(t.designTokens, this.designTokens)), t.prefix !== void 0 && (this.prefix = t.prefix), t.injectCSS !== void 0 && (this.injectCSS = t.injectCSS), t.cloudinary && (this.cloudinaryConfig = t.cloudinary), t.googleMaps && (this.googleMapsConfig = t.googleMaps), t.lottie && (this.lottieConfig = t.lottie), t.richText && (this.richTextConfig = t.richText), t.phoneInput && (this.phoneInputConfig = t.phoneInput), t.datepicker && (this.datepickerConfig = t.datepicker);
2032
3260
  }
2033
3261
  getDesignTokens() {
2034
3262
  return this.designTokens;
@@ -2052,163 +3280,179 @@ class pl {
2052
3280
  return this.datepickerConfig;
2053
3281
  }
2054
3282
  generateCSS() {
2055
- return ys(this.designTokens);
3283
+ return Rt(this.designTokens);
2056
3284
  }
2057
3285
  injectCSSVariables() {
2058
- const e = document.createElement("style");
2059
- e.textContent = this.generateCSS(), e.setAttribute("data-stachelock-ui", "true");
2060
- const o = document.querySelector('style[data-stachelock-ui="true"]');
2061
- o && o.remove(), document.head.appendChild(e);
3286
+ const t = document.createElement("style");
3287
+ t.textContent = this.generateCSS(), t.setAttribute("data-stachelock-ui", "true");
3288
+ const a = document.querySelector('style[data-stachelock-ui="true"]');
3289
+ a && a.remove(), document.head.appendChild(t);
2062
3290
  }
2063
3291
  }
2064
- const Xl = new pl();
3292
+ const xr = new Io();
2065
3293
  export {
2066
- Ma as AddDeleteButtonGroup,
2067
- Nl as AddressInput,
2068
- fr as AlertModal,
2069
- je as Avatar,
2070
- Mr as BackgroundGradientWrapper,
2071
- X as Badge,
2072
- jr as Banner,
2073
- ca as BarChart,
2074
- Xr as BaseChart,
2075
- pr as BaseModal,
2076
- Nr as Breadcrumb,
2077
- Z as Button,
2078
- Fo as ButtonGroup,
2079
- Hr as CalendarDashboard,
2080
- Qo as CalendarHeader,
2081
- Gl as CardLayout,
2082
- Er as CardWrapper,
2083
- Uo as Checkbox,
2084
- Ne as CheckboxInput,
2085
- Ur as CloudinaryImage,
2086
- Re as ComboboxInput,
2087
- Ca as ComingSoon,
2088
- ps as ComponentRegistry,
2089
- vn as ContentSkeleton,
2090
- Za as DashboardLayout,
2091
- Ea as DatepickerInput,
2092
- ea as DayCalendar,
2093
- Xa as DefaultLayout,
2094
- Pr as DisclosureWrapper,
2095
- _a as DynamicForm,
2096
- Pa as EmailInput,
2097
- Fa as EmptyInput,
2098
- $a as EmptyState,
2099
- ta as EventCard,
2100
- oa as EventsList,
2101
- Ua as FileDropzoneInput,
2102
- Fr as FormErrorWrapper,
2103
- Ia as FormField,
2104
- os as FormFieldWrapper,
2105
- fa as FunnelChart,
2106
- fs as GeocodeStatus,
2107
- wn as GoogleMap,
2108
- Qa as HeaderLayout,
2109
- ja as HiddenInput,
2110
- zn as ImageCropperModal,
2111
- Kl as InfoCard,
2112
- Sn as InfoWindow,
2113
- Cr as InlineTabs,
2114
- Rl as InputsShowcase,
2115
- pa as LineChart,
2116
- Oe as Loading,
2117
- Gr as LoadingDots,
2118
- Po as LottieAnimation,
2119
- Tn as Map,
2120
- cr as MapAll,
2121
- An as MapMarker,
2122
- jo as Menu,
2123
- No as Modal,
2124
- ra as MonthCalendar,
2125
- Go as NavLink,
2126
- er as NavigationGroup,
2127
- tr as NavigationItem,
2128
- yr as NotificationContainer,
2129
- xr as NotificationToast,
2130
- gn as PhoneInput,
2131
- ya as PieChart,
2132
- or as ProfileHeaderAvatar,
2133
- Ho as ProgressBar,
2134
- rr as ProjectLogo,
2135
- Hl as PropsTable,
2136
- Ol as RadialProgressBar,
2137
- hn as RichTextInput,
2138
- ne as SelectInput,
2139
- Na as SelectTextInput,
2140
- Wl as ShowcaseCard,
2141
- Zl as ShowcaseLayout,
2142
- ir as SidebarLayout,
2143
- kn as SmartLoadingIndicator,
2144
- xa as SparklineChart,
2145
- Xl as StachelockUI,
2146
- ba as StatCard,
2147
- Jl as StateDisplay,
2148
- br as StepperPanels,
2149
- Ke as SwitchInput,
2150
- Ga as SwitchInputGroup,
2151
- $r as TabGroup,
2152
- _r as TabGroupUnderline,
2153
- Zo as Table,
2154
- Ir as TabsInPills,
2155
- Ha as TagifyInput,
2156
- Ge as TextAreaInput,
2157
- M as TextInput,
2158
- jl as ThemeDebugModal,
2159
- Xo as Transition,
2160
- co as US_CENTER,
2161
- uo as WORLD_CENTER,
2162
- Zr as WeekCalendar,
2163
- ia as YearCalendar,
2164
- Qr as areaChartConfig,
2165
- qr as barChartConfig,
2166
- en as baseTheme,
2167
- oo as calculateEventLanes,
2168
- sn as chartColors,
2169
- tn as chartTypography,
2170
- me as componentRegistry,
2171
- Xl as default,
2172
- ms as defaultComponentMap,
2173
- fo as defaultCoordinateExtractor,
2174
- pe as defaultDesignTokens,
2175
- ln as formatDuration,
2176
- on as formatNumber,
2177
- an as formatPercentage,
2178
- wo as formatUid,
2179
- rn as funnelChartConfig,
2180
- ys as generateCSSVariables,
2181
- ql as generateDeterministicId,
2182
- Ee as generateId,
2183
- Vl as generateTailwindConfig,
2184
- nn as getAreaGradient,
2185
- Ul as getComponent,
2186
- bo as getTabBadgeClasses,
2187
- dn as hexToRgb,
2188
- Fl as isFundamentalField,
2189
- $o as isUidLike,
2190
- mo as isValidCoordinate,
2191
- cn as lineChartConfig,
2192
- gs as mergeDesignTokens,
2193
- un as pieChartConfig,
2194
- Ve as presetThemes,
2195
- Bl as registerComponent,
2196
- eo as sanitizeId,
2197
- So as slugToReadable,
2198
- fn as stachelockColors,
2199
- mn as toRgba,
2200
- _o as toSentenceCase,
2201
- To as toTitleCase,
2202
- Io as transformString,
2203
- Ao as truncateString,
2204
- to as useCalendar,
2205
- ao as useEventSegments,
2206
- no as useFormValidation,
2207
- po as useMap,
2208
- yo as useModal,
2209
- xo as useNotifications,
2210
- ko as useSimpleTabs,
2211
- Mo as useStringTransform,
2212
- Eo as useTabs,
2213
- fe as useTheme
3294
+ lt as AddDeleteButtonGroup,
3295
+ dr as AddressInput,
3296
+ ot as AlertModal,
3297
+ tt as Avatar,
3298
+ Yi as BackgroundGradientWrapper,
3299
+ ue as Badge,
3300
+ ad as Banner,
3301
+ An as BarChart,
3302
+ pd as BaseChart,
3303
+ Pi as BaseModal,
3304
+ hr as BentoProfileLayout,
3305
+ rd as Breadcrumb,
3306
+ oe as Button,
3307
+ on as ButtonGroup,
3308
+ cd as CalendarDashboard,
3309
+ wn as CalendarHeader,
3310
+ ur as CardLayout,
3311
+ qi as CardWrapper,
3312
+ nn as Checkbox,
3313
+ rt as CheckboxInput,
3314
+ sd as CloudinaryImage,
3315
+ he as CollectionEditor,
3316
+ Ms as CollectionItemList,
3317
+ Ir as CollectionItemStatus,
3318
+ nt as ComboboxInput,
3319
+ Kn as ComingSoon,
3320
+ jt as ComponentRegistry,
3321
+ Fd as ContentSkeleton,
3322
+ pi as DashboardLayout,
3323
+ Zn as DatepickerInput,
3324
+ $n as DayCalendar,
3325
+ yi as DefaultLayout,
3326
+ Zi as DisclosureWrapper,
3327
+ at as DynamicForm,
3328
+ ei as EmailInput,
3329
+ si as EmptyInput,
3330
+ Yn as EmptyState,
3331
+ In as EventCard,
3332
+ zn as EventsList,
3333
+ ai as FileDropzoneInput,
3334
+ ed as FormErrorWrapper,
3335
+ qn as FormField,
3336
+ Tt as FormFieldWrapper,
3337
+ Fn as FunnelChart,
3338
+ Vt as GeocodeStatus,
3339
+ Bd as GoogleMap,
3340
+ xi as HeaderLayout,
3341
+ ri as HiddenInput,
3342
+ Yd as ImageCropperModal,
3343
+ mr as InfoCard,
3344
+ Od as InfoWindow,
3345
+ Bi as InlineTabs,
3346
+ cr as InputsShowcase,
3347
+ Un as LineChart,
3348
+ st as Loading,
3349
+ id as LoadingDots,
3350
+ ln as LottieAnimation,
3351
+ Hd as Map,
3352
+ Li as MapAll,
3353
+ Kd as MapMarker,
3354
+ cn as Menu,
3355
+ mn as Modal,
3356
+ Ln as MonthCalendar,
3357
+ pn as NavLink,
3358
+ vi as NavigationGroup,
3359
+ wi as NavigationItem,
3360
+ Ai as NotificationContainer,
3361
+ Fi as NotificationToast,
3362
+ rr as OrganizationsEditor,
3363
+ Pd as PhoneInput,
3364
+ Bn as PieChart,
3365
+ le as ProfileCard,
3366
+ Oa as ProfileContactCard,
3367
+ $i as ProfileHeaderAvatar,
3368
+ Ma as ProfileHeaderCard,
3369
+ ao as ProfileLocationCard,
3370
+ fo as ProfileOrganizationsCard,
3371
+ Ga as ProfilePersonalCard,
3372
+ Za as ProfileProfessionalCard,
3373
+ vo as ProfileRelatedNamesCard,
3374
+ yn as ProgressBar,
3375
+ Ii as ProjectLogo,
3376
+ fr as PropsTable,
3377
+ or as RadialProgressBar,
3378
+ nr as RelatedNamesEditor,
3379
+ Ad as RichTextInput,
3380
+ Ce as SelectInput,
3381
+ ii as SelectTextInput,
3382
+ pr as ShowcaseCard,
3383
+ gr as ShowcaseLayout,
3384
+ zi as SidebarLayout,
3385
+ Ud as SmartLoadingIndicator,
3386
+ ir as SocialLinksEditor,
3387
+ On as SparklineChart,
3388
+ xr as StachelockUI,
3389
+ Hn as StatCard,
3390
+ yr as StateDisplay,
3391
+ Ui as StepperPanels,
3392
+ dt as SwitchInput,
3393
+ ci as SwitchInputGroup,
3394
+ Oi as TabGroup,
3395
+ Hi as TabGroupUnderline,
3396
+ xn as Table,
3397
+ Ki as TabsInPills,
3398
+ mi as TagifyInput,
3399
+ it as TextAreaInput,
3400
+ R as TextInput,
3401
+ ar as ThemeDebugModal,
3402
+ vn as Transition,
3403
+ Er as US_CENTER,
3404
+ Ar as WORLD_CENTER,
3405
+ md as WeekCalendar,
3406
+ Pn as YearCalendar,
3407
+ yd as areaChartConfig,
3408
+ hd as barChartConfig,
3409
+ xd as baseTheme,
3410
+ zr as calculateEventLanes,
3411
+ bd as chartColors,
3412
+ vd as chartTypography,
3413
+ Fe as componentRegistry,
3414
+ xr as default,
3415
+ Bt as defaultComponentMap,
3416
+ Dr as defaultCoordinateExtractor,
3417
+ Ne as defaultDesignTokens,
3418
+ kd as formatDuration,
3419
+ wd as formatNumber,
3420
+ Cd as formatPercentage,
3421
+ Kr as formatUid,
3422
+ $d as funnelChartConfig,
3423
+ Rt as generateCSSVariables,
3424
+ kr as generateDeterministicId,
3425
+ Xe as generateId,
3426
+ lr as generateTailwindConfig,
3427
+ _d as getAreaGradient,
3428
+ sr as getComponent,
3429
+ Rr as getTabBadgeClasses,
3430
+ Id as hexToRgb,
3431
+ er as isFundamentalField,
3432
+ Wr as isUidLike,
3433
+ Fr as isValidCoordinate,
3434
+ Sd as lineChartConfig,
3435
+ Ot as mergeDesignTokens,
3436
+ zd as pieChartConfig,
3437
+ et as presetThemes,
3438
+ tr as registerComponent,
3439
+ wr as sanitizeId,
3440
+ Yr as slugToReadable,
3441
+ Td as stachelockColors,
3442
+ Ld as toRgba,
3443
+ Xr as toSentenceCase,
3444
+ qr as toTitleCase,
3445
+ Jr as transformString,
3446
+ Zr as truncateString,
3447
+ $r as useCalendar,
3448
+ Qe as useCollectionEditor,
3449
+ Tr as useEventSegments,
3450
+ Mr as useFormValidation,
3451
+ Nr as useMap,
3452
+ Vr as useModal,
3453
+ jr as useNotifications,
3454
+ Hr as useSimpleTabs,
3455
+ Qr as useStringTransform,
3456
+ tn as useTabs,
3457
+ Ee as useTheme
2214
3458
  };