@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.
- package/dist/composables/index.js +33 -30
- package/dist/index.js +2396 -1152
- package/dist/src/components/UiBanner.d.ts +1 -1
- package/dist/src/components/UiLoadingDots.d.ts +1 -1
- package/dist/src/components/UiMenu.d.ts +1 -1
- package/dist/src/components/UiModal.d.ts +1 -1
- package/dist/src/components/collection-editor/CollectionItemList.d.ts +42 -0
- package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +29 -0
- package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +26 -0
- package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +26 -0
- package/dist/src/components/collection-editor/index.d.ts +5 -0
- package/dist/src/components/forms/FormFieldWrapper.d.ts +1 -1
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/inputs/AddressInput.d.ts +1 -1
- package/dist/src/components/inputs/ComboboxInput.d.ts +2 -2
- package/dist/src/components/inputs/DatepickerInput.d.ts +12 -12
- package/dist/src/components/inputs/EmailInput.d.ts +2 -2
- package/dist/src/components/inputs/PhoneInput.d.ts +2 -2
- package/dist/src/components/inputs/RichTextInput.d.ts +2 -2
- package/dist/src/components/inputs/SelectInput.d.ts +2 -2
- package/dist/src/components/inputs/SelectTextInput.d.ts +4 -4
- package/dist/src/components/inputs/TagifyInput.d.ts +2 -2
- package/dist/src/components/inputs/TextInput.d.ts +3 -3
- package/dist/src/components/layouts/CardLayout.d.ts +1 -1
- package/dist/src/components/maps/UiInfoWindow.d.ts +2 -2
- package/dist/src/components/maps/UiMap.d.ts +1 -1
- package/dist/src/components/maps/UiMapAll.d.ts +6 -6
- package/dist/src/components/maps/UiMapMarker.d.ts +2 -2
- package/dist/src/components/modals/BaseModal.d.ts +1 -1
- package/dist/src/components/profiles/BentoProfileLayout.d.ts +9 -0
- package/dist/src/components/profiles/ProfileCard.d.ts +30 -0
- package/dist/src/components/profiles/ProfileContactCard.d.ts +12 -0
- package/dist/src/components/profiles/ProfileHeaderCard.d.ts +20 -0
- package/dist/src/components/profiles/ProfileLocationCard.d.ts +17 -0
- package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +11 -0
- package/dist/src/components/profiles/ProfilePersonalCard.d.ts +10 -0
- package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +11 -0
- package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +11 -0
- package/dist/src/components/profiles/index.d.ts +9 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/useCollectionEditor.d.ts +64 -0
- package/dist/src/composables/useNotifications.d.ts +4 -4
- package/dist/src/types/collection-editor.d.ts +134 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/profiles.d.ts +149 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/useCollectionEditor-BYyoAT0U.js +121 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,135 +1,139 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { a as
|
|
3
|
-
import { defineAsyncComponent as
|
|
4
|
-
import
|
|
5
|
-
import { useCalendar as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as
|
|
24
|
-
import { _ as
|
|
25
|
-
import { _ as
|
|
26
|
-
import { _ as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { _ as
|
|
29
|
-
import { _ as
|
|
30
|
-
import { _ as
|
|
31
|
-
import { _ as
|
|
32
|
-
import { _ as
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { _ as
|
|
36
|
-
import { _ as
|
|
37
|
-
import { _ as
|
|
38
|
-
import { _ as
|
|
39
|
-
import { _ as
|
|
40
|
-
import { _ as
|
|
41
|
-
import {
|
|
42
|
-
import { _ as
|
|
43
|
-
import { _ as
|
|
44
|
-
import { _ as
|
|
45
|
-
import { _ as
|
|
46
|
-
import { _ as
|
|
47
|
-
import { _ as
|
|
48
|
-
import { _ as
|
|
49
|
-
import { _ as
|
|
50
|
-
import { _ as
|
|
51
|
-
import { _ as
|
|
52
|
-
import { _ as
|
|
53
|
-
import { _ as
|
|
54
|
-
import { _ as
|
|
55
|
-
import { _ as
|
|
56
|
-
import { _ as
|
|
57
|
-
import { _ as
|
|
58
|
-
import { _ as
|
|
59
|
-
import { _ as
|
|
60
|
-
import { _ as
|
|
61
|
-
import { _ as
|
|
62
|
-
import { _ as
|
|
63
|
-
import { _ as
|
|
64
|
-
import { _ as
|
|
65
|
-
import { _ as
|
|
66
|
-
import { _ as
|
|
67
|
-
import { _ as
|
|
68
|
-
import { _ as
|
|
69
|
-
import { _ as
|
|
70
|
-
import { _ as
|
|
71
|
-
import { _ as
|
|
72
|
-
import { _ as
|
|
73
|
-
import { _ as
|
|
74
|
-
import {
|
|
75
|
-
import { _ as
|
|
76
|
-
import { _ as
|
|
77
|
-
import { _ as
|
|
78
|
-
import { _ as
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import
|
|
83
|
-
import { _ as
|
|
84
|
-
import { default as
|
|
85
|
-
import {
|
|
86
|
-
import
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import {
|
|
91
|
-
import
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
|
113
|
+
const Bt = {
|
|
110
114
|
text: {
|
|
111
115
|
component: "TextInput",
|
|
112
|
-
loader: () => Promise.resolve(
|
|
116
|
+
loader: () => Promise.resolve(R)
|
|
113
117
|
},
|
|
114
118
|
email: {
|
|
115
119
|
component: "TextInput",
|
|
116
|
-
loader: () => Promise.resolve(
|
|
120
|
+
loader: () => Promise.resolve(R)
|
|
117
121
|
},
|
|
118
122
|
password: {
|
|
119
123
|
component: "TextInput",
|
|
120
|
-
loader: () => Promise.resolve(
|
|
124
|
+
loader: () => Promise.resolve(R)
|
|
121
125
|
},
|
|
122
126
|
number: {
|
|
123
127
|
component: "TextInput",
|
|
124
|
-
loader: () => Promise.resolve(
|
|
128
|
+
loader: () => Promise.resolve(R)
|
|
125
129
|
},
|
|
126
130
|
tel: {
|
|
127
131
|
component: "TextInput",
|
|
128
|
-
loader: () => Promise.resolve(
|
|
132
|
+
loader: () => Promise.resolve(R)
|
|
129
133
|
},
|
|
130
134
|
url: {
|
|
131
135
|
component: "TextInput",
|
|
132
|
-
loader: () => Promise.resolve(
|
|
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
|
|
156
|
-
componentMap = { ...
|
|
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(
|
|
162
|
-
this.componentMap[
|
|
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(
|
|
168
|
-
const
|
|
169
|
-
if (!
|
|
170
|
-
return console.warn(`Component type "${
|
|
171
|
-
if (this.loadedComponents.has(
|
|
172
|
-
return this.loadedComponents.get(
|
|
173
|
-
const l =
|
|
174
|
-
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(
|
|
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(
|
|
183
|
-
return
|
|
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(
|
|
195
|
-
delete this.componentMap[
|
|
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
|
|
205
|
-
function
|
|
206
|
-
|
|
208
|
+
const Fe = new jt();
|
|
209
|
+
function tr(e, t, a) {
|
|
210
|
+
Fe.register(e, t, a);
|
|
207
211
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
212
|
+
function sr(e) {
|
|
213
|
+
return Fe.getComponent(e);
|
|
210
214
|
}
|
|
211
|
-
const
|
|
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
|
|
315
|
-
const
|
|
316
|
-
function l(
|
|
317
|
-
if (
|
|
318
|
-
for (const
|
|
319
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
320
|
-
const
|
|
321
|
-
|
|
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
|
|
328
|
+
return d;
|
|
325
329
|
}
|
|
326
|
-
return l(
|
|
330
|
+
return l(a, e);
|
|
327
331
|
}
|
|
328
|
-
function
|
|
329
|
-
let
|
|
332
|
+
function Rt(e) {
|
|
333
|
+
let t = `:root {
|
|
330
334
|
`;
|
|
331
|
-
return
|
|
332
|
-
typeof l == "object" && l !== null && Object.entries(l).forEach(([
|
|
333
|
-
const
|
|
334
|
-
|
|
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
|
|
337
|
-
|
|
340
|
+
const o = Ht(u);
|
|
341
|
+
o && (t += ` --sl-color-${n}-rgb: ${o};
|
|
338
342
|
`);
|
|
339
343
|
});
|
|
340
|
-
}),
|
|
341
|
-
|
|
344
|
+
}), e.spacing && Object.entries(e.spacing).forEach(([a, l]) => {
|
|
345
|
+
t += ` --sl-spacing-${a}: ${l};
|
|
342
346
|
`;
|
|
343
|
-
}),
|
|
344
|
-
const
|
|
345
|
-
|
|
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
|
-
}),
|
|
348
|
-
const
|
|
349
|
-
|
|
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
|
-
}),
|
|
352
|
-
|
|
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
|
-
}),
|
|
355
|
-
|
|
358
|
+
}), e.typography.fontSize && Object.entries(e.typography.fontSize).forEach(([a, l]) => {
|
|
359
|
+
t += ` --sl-font-size-${a}: ${l};
|
|
356
360
|
`;
|
|
357
|
-
})),
|
|
358
|
-
|
|
361
|
+
})), e.breakpoints && Object.entries(e.breakpoints).forEach(([a, l]) => {
|
|
362
|
+
t += ` --sl-breakpoint-${a}: ${l};
|
|
359
363
|
`;
|
|
360
|
-
}),
|
|
361
|
-
`,
|
|
362
|
-
`,
|
|
363
|
-
`,
|
|
364
|
-
`,
|
|
365
|
-
`,
|
|
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
|
-
`,
|
|
368
|
-
`,
|
|
369
|
-
`,
|
|
370
|
-
`,
|
|
371
|
-
`,
|
|
372
|
-
`,
|
|
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
|
|
375
|
-
let
|
|
378
|
+
function lr(e) {
|
|
379
|
+
let t = `export default {
|
|
376
380
|
`;
|
|
377
|
-
return
|
|
378
|
-
`,
|
|
379
|
-
`,
|
|
380
|
-
`,
|
|
381
|
-
`, Object.entries(
|
|
382
|
-
typeof l == "object" && l !== null && (
|
|
383
|
-
`, Object.entries(l).forEach(([
|
|
384
|
-
|
|
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
|
-
}),
|
|
390
|
+
}), t += ` },
|
|
387
391
|
`);
|
|
388
|
-
}),
|
|
389
|
-
`),
|
|
390
|
-
`, Object.entries(
|
|
391
|
-
|
|
392
|
+
}), t += ` },
|
|
393
|
+
`), e.spacing && (t += ` spacing: {
|
|
394
|
+
`, Object.entries(e.spacing).forEach(([a, l]) => {
|
|
395
|
+
t += ` "${a}": "${l}",
|
|
392
396
|
`;
|
|
393
|
-
}),
|
|
394
|
-
`),
|
|
395
|
-
`, Object.entries(
|
|
396
|
-
|
|
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
|
-
}),
|
|
399
|
-
`),
|
|
400
|
-
`, Object.entries(
|
|
401
|
-
|
|
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
|
-
}),
|
|
404
|
-
`),
|
|
405
|
-
`, Object.entries(
|
|
406
|
-
|
|
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
|
-
}),
|
|
409
|
-
`),
|
|
410
|
-
`, Object.entries(
|
|
411
|
-
|
|
412
|
+
}), t += ` },
|
|
413
|
+
`), e.typography.fontSize && (t += ` fontSize: {
|
|
414
|
+
`, Object.entries(e.typography.fontSize).forEach(([a, l]) => {
|
|
415
|
+
t += ` "${a}": "${l}",
|
|
412
416
|
`;
|
|
413
|
-
}),
|
|
414
|
-
`)),
|
|
415
|
-
`,
|
|
416
|
-
`,
|
|
417
|
-
`,
|
|
417
|
+
}), t += ` },
|
|
418
|
+
`)), t += ` },
|
|
419
|
+
`, t += ` },
|
|
420
|
+
`, t += `};
|
|
421
|
+
`, t;
|
|
418
422
|
}
|
|
419
|
-
function
|
|
420
|
-
if (typeof
|
|
421
|
-
let
|
|
422
|
-
if (!
|
|
423
|
-
const
|
|
424
|
-
return Number.isNaN(
|
|
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
|
|
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(
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
|
|
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
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
},
|
|
446
|
-
|
|
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 (
|
|
452
|
+
return (h, r) => (i(), D(_(fe), {
|
|
449
453
|
as: "template",
|
|
450
|
-
show:
|
|
454
|
+
show: e.modelValue
|
|
451
455
|
}, {
|
|
452
|
-
default:
|
|
453
|
-
|
|
456
|
+
default: T(() => [
|
|
457
|
+
C(_(kt), {
|
|
454
458
|
as: "div",
|
|
455
459
|
class: "sl-relative sl-z-[100]",
|
|
456
|
-
onClose:
|
|
460
|
+
onClose: v
|
|
457
461
|
}, {
|
|
458
|
-
default:
|
|
459
|
-
|
|
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:
|
|
469
|
-
|
|
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
|
-
|
|
474
|
-
|
|
475
|
-
|
|
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:
|
|
485
|
-
|
|
486
|
-
default:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
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:
|
|
496
|
+
style: O({ backgroundColor: n.value })
|
|
493
497
|
}, [
|
|
494
|
-
|
|
498
|
+
C(_(ct), { class: "sl-h-5 sl-w-5 sl-text-white" })
|
|
495
499
|
], 4),
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
default:
|
|
499
|
-
|
|
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
|
-
|
|
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
|
-
|
|
507
|
-
onClick:
|
|
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
|
-
|
|
514
|
+
C(_(ut), { class: "sl-h-5 sl-w-5" })
|
|
511
515
|
])
|
|
512
516
|
])
|
|
513
517
|
]),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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":
|
|
522
|
-
onInput:
|
|
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
|
-
[
|
|
529
|
+
[ve, n.value]
|
|
526
530
|
])
|
|
527
531
|
]),
|
|
528
|
-
|
|
529
|
-
|
|
532
|
+
s("div", Qt, [
|
|
533
|
+
me(s("input", {
|
|
530
534
|
type: "text",
|
|
531
|
-
"onUpdate:modelValue":
|
|
532
|
-
onInput:
|
|
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
|
-
[
|
|
540
|
+
[ve, n.value]
|
|
537
541
|
])
|
|
538
542
|
])
|
|
539
543
|
])
|
|
540
544
|
]),
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
(
|
|
545
|
-
key:
|
|
546
|
-
onClick: (
|
|
547
|
-
class:
|
|
548
|
-
style:
|
|
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
|
-
|
|
554
|
+
s("div", {
|
|
551
555
|
class: "sl-h-8 sl-w-8 sl-rounded-lg sl-shadow-sm sl-flex-shrink-0",
|
|
552
|
-
style:
|
|
556
|
+
style: O({ backgroundColor: c.color })
|
|
553
557
|
}, null, 4),
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
558
|
+
s("div", ss, [
|
|
559
|
+
s("p", ls, w(c.name), 1),
|
|
560
|
+
s("p", as, w(c.description), 1)
|
|
557
561
|
])
|
|
558
|
-
], 14,
|
|
562
|
+
], 14, ts))), 128))
|
|
559
563
|
])
|
|
560
564
|
]),
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
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:
|
|
570
|
-
|
|
573
|
+
default: T(() => [...r[7] || (r[7] = [
|
|
574
|
+
j("Primary", -1)
|
|
571
575
|
])]),
|
|
572
576
|
_: 1
|
|
573
577
|
}),
|
|
574
|
-
|
|
578
|
+
C(oe, {
|
|
575
579
|
theme: "primary",
|
|
576
580
|
size: "sm",
|
|
577
581
|
outlined: ""
|
|
578
582
|
}, {
|
|
579
|
-
default:
|
|
580
|
-
|
|
583
|
+
default: T(() => [...r[8] || (r[8] = [
|
|
584
|
+
j("Outlined", -1)
|
|
581
585
|
])]),
|
|
582
586
|
_: 1
|
|
583
587
|
}),
|
|
584
|
-
|
|
588
|
+
C(oe, {
|
|
585
589
|
theme: "secondary",
|
|
586
590
|
size: "sm"
|
|
587
591
|
}, {
|
|
588
|
-
default:
|
|
589
|
-
|
|
592
|
+
default: T(() => [...r[9] || (r[9] = [
|
|
593
|
+
j("Secondary", -1)
|
|
590
594
|
])]),
|
|
591
595
|
_: 1
|
|
592
596
|
})
|
|
593
597
|
]),
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
default:
|
|
597
|
-
|
|
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
|
-
|
|
602
|
-
default:
|
|
603
|
-
|
|
605
|
+
C(ue, { theme: "success" }, {
|
|
606
|
+
default: T(() => [...r[11] || (r[11] = [
|
|
607
|
+
j("Success", -1)
|
|
604
608
|
])]),
|
|
605
609
|
_: 1
|
|
606
610
|
}),
|
|
607
|
-
|
|
608
|
-
default:
|
|
609
|
-
|
|
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
|
-
|
|
615
|
-
|
|
616
|
-
|
|
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
|
-
|
|
619
|
-
|
|
622
|
+
s("div", ds, [
|
|
623
|
+
C(tt, {
|
|
620
624
|
name: "Theme Test",
|
|
621
625
|
size: "md"
|
|
622
626
|
}),
|
|
623
|
-
|
|
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
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
(
|
|
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:
|
|
637
|
+
style: O({ backgroundColor: `rgb(var(--sl-color-primary-${c}-rgb, 128 128 128))` })
|
|
634
638
|
}, [
|
|
635
|
-
|
|
636
|
-
class:
|
|
637
|
-
}, w(
|
|
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
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
onClick:
|
|
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
|
-
|
|
649
|
-
|
|
652
|
+
s("div", fs, [
|
|
653
|
+
C(oe, {
|
|
650
654
|
theme: "secondary",
|
|
651
655
|
size: "sm",
|
|
652
|
-
onButtonClick:
|
|
656
|
+
onButtonClick: v
|
|
653
657
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
|
|
658
|
+
default: T(() => [...r[17] || (r[17] = [
|
|
659
|
+
j(" Close ", -1)
|
|
656
660
|
])]),
|
|
657
661
|
_: 1
|
|
658
662
|
}),
|
|
659
|
-
|
|
663
|
+
C(oe, {
|
|
660
664
|
theme: "primary",
|
|
661
665
|
size: "sm",
|
|
662
|
-
onButtonClick:
|
|
666
|
+
onButtonClick: z
|
|
663
667
|
}, {
|
|
664
|
-
default:
|
|
665
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
704
|
-
const
|
|
705
|
-
width: `${
|
|
706
|
-
height: `${
|
|
707
|
-
})),
|
|
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
|
-
})[
|
|
716
|
-
return (
|
|
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:
|
|
722
|
+
style: O(l.value)
|
|
719
723
|
}, [
|
|
720
|
-
(
|
|
721
|
-
|
|
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":
|
|
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,
|
|
726
|
-
|
|
729
|
+
}, null, 8, ys),
|
|
730
|
+
s("path", {
|
|
727
731
|
class: "sl-fill-none sl-transition-all sl-duration-500 sl-ease-out",
|
|
728
|
-
stroke:
|
|
732
|
+
stroke: d.value,
|
|
729
733
|
"stroke-linecap": "round",
|
|
730
|
-
"stroke-dasharray": `${
|
|
731
|
-
"stroke-width":
|
|
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,
|
|
737
|
+
}, null, 8, hs)
|
|
734
738
|
])),
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
class:
|
|
738
|
-
}, w(
|
|
739
|
-
])) :
|
|
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
|
|
744
|
-
const
|
|
745
|
-
function
|
|
746
|
-
|
|
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
|
|
749
|
-
return
|
|
1393
|
+
function el() {
|
|
1394
|
+
return W !== null && !!W.apiKey;
|
|
750
1395
|
}
|
|
751
|
-
async function
|
|
752
|
-
if (!
|
|
753
|
-
if (
|
|
754
|
-
return
|
|
755
|
-
if (!
|
|
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
|
|
1404
|
+
return ee = (async () => {
|
|
760
1405
|
try {
|
|
761
|
-
await new
|
|
762
|
-
apiKey:
|
|
763
|
-
version:
|
|
1406
|
+
await new Ft({
|
|
1407
|
+
apiKey: W.apiKey,
|
|
1408
|
+
version: W.version || "weekly",
|
|
764
1409
|
id: "__stachelockGoogleMapsScriptId",
|
|
765
|
-
libraries:
|
|
766
|
-
}).load(),
|
|
767
|
-
} catch (
|
|
768
|
-
throw
|
|
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
|
-
})(),
|
|
1415
|
+
})(), ee;
|
|
771
1416
|
}
|
|
772
1417
|
}
|
|
773
|
-
function
|
|
774
|
-
return
|
|
1418
|
+
function Ue(e) {
|
|
1419
|
+
return e.trim().toLowerCase().replace(/\s+/g, " ");
|
|
775
1420
|
}
|
|
776
|
-
function
|
|
777
|
-
return typeof
|
|
1421
|
+
function Ve(e) {
|
|
1422
|
+
return typeof e == "string" ? `str:${Ue(e)}` : `pid:${e.placeId}`;
|
|
778
1423
|
}
|
|
779
|
-
function
|
|
780
|
-
const
|
|
781
|
-
return
|
|
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
|
|
1428
|
+
function je(e, t) {
|
|
784
1429
|
try {
|
|
785
|
-
if (
|
|
786
|
-
const
|
|
787
|
-
|
|
1430
|
+
if (te.size >= Js) {
|
|
1431
|
+
const a = te.keys().next().value;
|
|
1432
|
+
a && te.delete(a);
|
|
788
1433
|
}
|
|
789
|
-
|
|
1434
|
+
te.set(e, { result: t, ts: Date.now() });
|
|
790
1435
|
} catch {
|
|
791
1436
|
}
|
|
792
1437
|
}
|
|
793
|
-
function
|
|
794
|
-
if (!
|
|
795
|
-
const l =
|
|
796
|
-
center: `${
|
|
797
|
-
zoom:
|
|
798
|
-
size:
|
|
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|${
|
|
1445
|
+
markers: `color:red|${e.lat},${e.lng}`
|
|
801
1446
|
});
|
|
802
|
-
return `${
|
|
1447
|
+
return `${d}?${u.toString()}`;
|
|
803
1448
|
}
|
|
804
|
-
async function
|
|
805
|
-
if (!
|
|
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
|
|
811
|
-
const
|
|
812
|
-
return
|
|
813
|
-
if (!
|
|
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
|
-
|
|
821
|
-
if (
|
|
822
|
-
const
|
|
823
|
-
lat:
|
|
824
|
-
lng:
|
|
825
|
-
} : void 0,
|
|
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:
|
|
829
|
-
location:
|
|
830
|
-
formatted_address:
|
|
831
|
-
thumbnailUrl:
|
|
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
|
-
|
|
1478
|
+
je(t, g), l(g);
|
|
834
1479
|
} else
|
|
835
1480
|
l({
|
|
836
|
-
status:
|
|
837
|
-
message: `Unable to geocode place: ${
|
|
1481
|
+
status: u.toString(),
|
|
1482
|
+
message: `Unable to geocode place: ${u}`
|
|
838
1483
|
});
|
|
839
1484
|
});
|
|
840
1485
|
});
|
|
841
1486
|
}
|
|
842
|
-
function
|
|
843
|
-
const
|
|
844
|
-
if (
|
|
845
|
-
const
|
|
846
|
-
return (l ||
|
|
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
|
|
849
|
-
if (!
|
|
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 (!
|
|
1499
|
+
if (!sl(e))
|
|
855
1500
|
return {
|
|
856
1501
|
status: "INVALID_INPUT",
|
|
857
1502
|
message: "Insufficient address information for geocoding."
|
|
858
1503
|
};
|
|
859
|
-
await
|
|
860
|
-
const
|
|
861
|
-
return
|
|
862
|
-
if (!
|
|
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
|
-
|
|
870
|
-
if (
|
|
871
|
-
const
|
|
872
|
-
lat:
|
|
873
|
-
lng:
|
|
874
|
-
} : void 0,
|
|
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:
|
|
878
|
-
location:
|
|
879
|
-
formatted_address:
|
|
880
|
-
thumbnailUrl:
|
|
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
|
-
|
|
1527
|
+
je(t, g), l(g);
|
|
883
1528
|
} else
|
|
884
1529
|
l({
|
|
885
|
-
status:
|
|
886
|
-
message: `Unable to geocode address: ${
|
|
1530
|
+
status: u.toString(),
|
|
1531
|
+
message: `Unable to geocode address: ${u}`
|
|
887
1532
|
});
|
|
888
1533
|
});
|
|
889
1534
|
});
|
|
890
1535
|
}
|
|
891
|
-
async function
|
|
892
|
-
if (!
|
|
1536
|
+
async function al(e, t) {
|
|
1537
|
+
if (!e?.trim())
|
|
893
1538
|
return [];
|
|
894
|
-
if (await
|
|
1539
|
+
if (await xe(), !ie)
|
|
895
1540
|
return console.warn("[Geocoding] Places library not initialized"), [];
|
|
896
1541
|
try {
|
|
897
|
-
const { AutocompleteSuggestion:
|
|
898
|
-
input:
|
|
899
|
-
...
|
|
900
|
-
...
|
|
901
|
-
}, { suggestions:
|
|
902
|
-
return
|
|
903
|
-
(
|
|
904
|
-
).map((
|
|
905
|
-
const
|
|
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:
|
|
908
|
-
description:
|
|
909
|
-
mainText:
|
|
910
|
-
secondaryText:
|
|
911
|
-
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 (
|
|
915
|
-
return console.error("[Geocoding] Error fetching autocomplete suggestions:",
|
|
1559
|
+
} catch (a) {
|
|
1560
|
+
return console.error("[Geocoding] Error fetching autocomplete suggestions:", a), [];
|
|
916
1561
|
}
|
|
917
1562
|
}
|
|
918
|
-
function
|
|
919
|
-
const
|
|
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 (!
|
|
927
|
-
return
|
|
928
|
-
let
|
|
929
|
-
for (const
|
|
930
|
-
const
|
|
931
|
-
|
|
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
|
|
1578
|
+
return t.street = [a, l].filter(Boolean).join(" "), t;
|
|
934
1579
|
}
|
|
935
|
-
function
|
|
1580
|
+
function rl(e) {
|
|
936
1581
|
return [
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
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
|
|
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
|
-
},
|
|
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(
|
|
963
|
-
const l =
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
apiKey:
|
|
967
|
-
version:
|
|
968
|
-
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:
|
|
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
|
-
),
|
|
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
|
-
}),
|
|
986
|
-
switch (
|
|
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
|
-
}),
|
|
997
|
-
switch (
|
|
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
|
-
}),
|
|
1008
|
-
switch (
|
|
1652
|
+
}), N = b(() => {
|
|
1653
|
+
switch (f.value) {
|
|
1009
1654
|
case "verified":
|
|
1010
|
-
return
|
|
1655
|
+
return ft;
|
|
1011
1656
|
case "error":
|
|
1012
|
-
return
|
|
1657
|
+
return mt;
|
|
1013
1658
|
case "pending":
|
|
1014
|
-
return
|
|
1659
|
+
return $e;
|
|
1015
1660
|
default:
|
|
1016
|
-
return
|
|
1661
|
+
return $e;
|
|
1017
1662
|
}
|
|
1018
|
-
}),
|
|
1019
|
-
if (!
|
|
1020
|
-
|
|
1663
|
+
}), A = ze(async (S) => {
|
|
1664
|
+
if (!S || S.length < 3) {
|
|
1665
|
+
h.value = [];
|
|
1021
1666
|
return;
|
|
1022
1667
|
}
|
|
1023
|
-
|
|
1668
|
+
$.value = !0;
|
|
1024
1669
|
try {
|
|
1025
|
-
const
|
|
1026
|
-
|
|
1027
|
-
} catch (
|
|
1028
|
-
console.error("[AddressInput] Error fetching suggestions:",
|
|
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
|
-
|
|
1675
|
+
$.value = !1;
|
|
1031
1676
|
}
|
|
1032
1677
|
}, 300);
|
|
1033
|
-
function
|
|
1034
|
-
const
|
|
1035
|
-
|
|
1678
|
+
function U(S) {
|
|
1679
|
+
const I = S.target;
|
|
1680
|
+
c.value = I.value, A(I.value);
|
|
1036
1681
|
}
|
|
1037
|
-
function
|
|
1038
|
-
return
|
|
1682
|
+
function V(S) {
|
|
1683
|
+
return S ? S.description : o.value?.formattedAddress ? o.value.formattedAddress : "";
|
|
1039
1684
|
}
|
|
1040
|
-
async function
|
|
1041
|
-
if (
|
|
1042
|
-
|
|
1685
|
+
async function Re(S) {
|
|
1686
|
+
if (S) {
|
|
1687
|
+
f.value = "pending", h.value = [];
|
|
1043
1688
|
try {
|
|
1044
|
-
const
|
|
1045
|
-
if (
|
|
1046
|
-
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
const
|
|
1050
|
-
formattedAddress:
|
|
1051
|
-
street:
|
|
1052
|
-
suite:
|
|
1053
|
-
city:
|
|
1054
|
-
state:
|
|
1055
|
-
zipcode:
|
|
1056
|
-
country:
|
|
1057
|
-
geocode:
|
|
1058
|
-
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
|
-
|
|
1705
|
+
o.value = X, v(X), d("update:modelValue", X), p.value = !0;
|
|
1061
1706
|
} else
|
|
1062
|
-
|
|
1063
|
-
} catch (
|
|
1064
|
-
|
|
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
|
|
1069
|
-
const
|
|
1070
|
-
if (!
|
|
1071
|
-
|
|
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
|
-
|
|
1719
|
+
f.value = "pending";
|
|
1075
1720
|
try {
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
1079
|
-
const
|
|
1080
|
-
formattedAddress:
|
|
1081
|
-
street:
|
|
1082
|
-
suite:
|
|
1083
|
-
city:
|
|
1084
|
-
state:
|
|
1085
|
-
zipcode:
|
|
1086
|
-
country:
|
|
1087
|
-
geocode:
|
|
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
|
-
|
|
1736
|
+
o.value = L, v(L), d("update:modelValue", L);
|
|
1092
1737
|
} else
|
|
1093
|
-
|
|
1094
|
-
} catch (
|
|
1095
|
-
|
|
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
|
|
1099
|
-
const
|
|
1100
|
-
...
|
|
1101
|
-
street:
|
|
1102
|
-
suite:
|
|
1103
|
-
city:
|
|
1104
|
-
state:
|
|
1105
|
-
zipcode:
|
|
1106
|
-
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
|
-
|
|
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
|
|
1111
|
-
|
|
1755
|
+
function Ke(S) {
|
|
1756
|
+
d("focus", S);
|
|
1112
1757
|
}
|
|
1113
|
-
function
|
|
1114
|
-
|
|
1758
|
+
function We(S) {
|
|
1759
|
+
z(!0), d("blur", S);
|
|
1115
1760
|
}
|
|
1116
|
-
|
|
1761
|
+
de(
|
|
1117
1762
|
() => l.modelValue,
|
|
1118
|
-
(
|
|
1119
|
-
|
|
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
|
|
1124
|
-
|
|
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
|
|
1127
|
-
resetInput:
|
|
1128
|
-
geocodeStatus:
|
|
1129
|
-
meta:
|
|
1130
|
-
errorMessage:
|
|
1131
|
-
}), (
|
|
1132
|
-
|
|
1133
|
-
id:
|
|
1134
|
-
name:
|
|
1135
|
-
label:
|
|
1136
|
-
"tertiary-label":
|
|
1137
|
-
"error-message":
|
|
1138
|
-
"success-message":
|
|
1139
|
-
"is-valid":
|
|
1140
|
-
"is-touched":
|
|
1141
|
-
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:
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
modelValue:
|
|
1788
|
+
default: T(() => [
|
|
1789
|
+
s("div", il, [
|
|
1790
|
+
C(_($t), {
|
|
1791
|
+
modelValue: r.value,
|
|
1147
1792
|
"onUpdate:modelValue": [
|
|
1148
|
-
|
|
1149
|
-
|
|
1793
|
+
I[0] || (I[0] = (L) => r.value = L),
|
|
1794
|
+
Re
|
|
1150
1795
|
],
|
|
1151
|
-
disabled:
|
|
1796
|
+
disabled: e.disabled,
|
|
1152
1797
|
nullable: ""
|
|
1153
1798
|
}, {
|
|
1154
|
-
default:
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
id:
|
|
1158
|
-
"display-value":
|
|
1159
|
-
placeholder:
|
|
1160
|
-
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
|
-
|
|
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:
|
|
1166
|
-
onFocus:
|
|
1167
|
-
onBlur:
|
|
1810
|
+
onChange: U,
|
|
1811
|
+
onFocus: Ke,
|
|
1812
|
+
onBlur: We
|
|
1168
1813
|
}, null, 8, ["id", "placeholder", "disabled", "class"]),
|
|
1169
|
-
|
|
1170
|
-
default:
|
|
1171
|
-
|
|
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
|
-
})) : (
|
|
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
|
-
|
|
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:
|
|
1189
|
-
|
|
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:
|
|
1194
|
-
(
|
|
1195
|
-
key:
|
|
1196
|
-
value:
|
|
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:
|
|
1200
|
-
|
|
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
|
-
|
|
1848
|
+
X ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
|
|
1204
1849
|
])
|
|
1205
1850
|
}, [
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
class:
|
|
1209
|
-
}, w(
|
|
1210
|
-
|
|
1211
|
-
class:
|
|
1212
|
-
}, w(
|
|
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
|
-
|
|
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
|
-
|
|
1863
|
+
X ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"
|
|
1219
1864
|
])
|
|
1220
1865
|
}, [
|
|
1221
|
-
|
|
1866
|
+
C(_(Pt), {
|
|
1222
1867
|
class: "sl-h-5 sl-w-5",
|
|
1223
1868
|
"aria-hidden": "true"
|
|
1224
1869
|
})
|
|
1225
|
-
], 2)) :
|
|
1870
|
+
], 2)) : k("", !0)
|
|
1226
1871
|
], 2)
|
|
1227
1872
|
]),
|
|
1228
1873
|
_: 2
|
|
1229
1874
|
}, 1032, ["value"]))), 128))
|
|
1230
1875
|
]),
|
|
1231
1876
|
_: 1
|
|
1232
|
-
})) :
|
|
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
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
class:
|
|
1244
|
-
}, w(
|
|
1245
|
-
(
|
|
1246
|
-
class:
|
|
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
|
-
|
|
1894
|
+
p.value ? (i(), m("button", {
|
|
1250
1895
|
key: 1,
|
|
1251
1896
|
type: "button",
|
|
1252
|
-
onClick:
|
|
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
|
-
|
|
1256
|
-
|
|
1257
|
-
])) : (
|
|
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:
|
|
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
|
-
|
|
1264
|
-
|
|
1908
|
+
I[9] || (I[9] = j(" Edit address ", -1)),
|
|
1909
|
+
C(_(Et), { class: "sl-h-3 sl-w-3" })
|
|
1265
1910
|
]))
|
|
1266
|
-
])) :
|
|
1267
|
-
|
|
1268
|
-
show:
|
|
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:
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
name: `${
|
|
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:
|
|
1283
|
-
disabled:
|
|
1927
|
+
value: x.street,
|
|
1928
|
+
disabled: e.disabled,
|
|
1284
1929
|
"show-valid-check": !1,
|
|
1285
1930
|
"colorful-validation": !1,
|
|
1286
|
-
"onUpdate:value":
|
|
1287
|
-
|
|
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
|
-
|
|
1292
|
-
|
|
1293
|
-
name: `${
|
|
1936
|
+
s("div", null, [
|
|
1937
|
+
C(R, {
|
|
1938
|
+
name: `${e.name}_suite`,
|
|
1294
1939
|
label: "Suite / Apt",
|
|
1295
|
-
value:
|
|
1296
|
-
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":
|
|
1301
|
-
|
|
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
|
-
|
|
1306
|
-
|
|
1307
|
-
name: `${
|
|
1950
|
+
s("div", null, [
|
|
1951
|
+
C(R, {
|
|
1952
|
+
name: `${e.name}_city`,
|
|
1308
1953
|
label: "City",
|
|
1309
|
-
value:
|
|
1310
|
-
disabled:
|
|
1954
|
+
value: x.city,
|
|
1955
|
+
disabled: e.disabled,
|
|
1311
1956
|
"show-valid-check": !1,
|
|
1312
1957
|
"colorful-validation": !1,
|
|
1313
|
-
"onUpdate:value":
|
|
1314
|
-
|
|
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
|
-
|
|
1319
|
-
|
|
1320
|
-
name: `${
|
|
1963
|
+
s("div", null, [
|
|
1964
|
+
C(R, {
|
|
1965
|
+
name: `${e.name}_state`,
|
|
1321
1966
|
label: "State",
|
|
1322
|
-
value:
|
|
1323
|
-
disabled:
|
|
1967
|
+
value: x.state,
|
|
1968
|
+
disabled: e.disabled,
|
|
1324
1969
|
"show-valid-check": !1,
|
|
1325
1970
|
"colorful-validation": !1,
|
|
1326
|
-
"onUpdate:value":
|
|
1327
|
-
|
|
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
|
-
|
|
1332
|
-
|
|
1333
|
-
name: `${
|
|
1976
|
+
s("div", null, [
|
|
1977
|
+
C(R, {
|
|
1978
|
+
name: `${e.name}_zipcode`,
|
|
1334
1979
|
label: "ZIP Code",
|
|
1335
|
-
value:
|
|
1336
|
-
disabled:
|
|
1980
|
+
value: x.zipcode,
|
|
1981
|
+
disabled: e.disabled,
|
|
1337
1982
|
"show-valid-check": !1,
|
|
1338
1983
|
"colorful-validation": !1,
|
|
1339
|
-
"onUpdate:value":
|
|
1340
|
-
|
|
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
|
-
|
|
1345
|
-
|
|
1346
|
-
name: `${
|
|
1989
|
+
s("div", null, [
|
|
1990
|
+
C(R, {
|
|
1991
|
+
name: `${e.name}_country`,
|
|
1347
1992
|
label: "Country",
|
|
1348
|
-
value:
|
|
1349
|
-
disabled:
|
|
1993
|
+
value: x.country,
|
|
1994
|
+
disabled: e.disabled,
|
|
1350
1995
|
"show-valid-check": !1,
|
|
1351
1996
|
"colorful-validation": !1,
|
|
1352
|
-
"onUpdate:value":
|
|
1353
|
-
|
|
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
|
-
}),
|
|
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(
|
|
1370
|
-
const
|
|
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
|
-
}),
|
|
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
|
-
],
|
|
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 (
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
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:
|
|
1409
|
-
"onUpdate:value":
|
|
2053
|
+
value: t.text,
|
|
2054
|
+
"onUpdate:value": n[0] || (n[0] = (o) => t.text = o)
|
|
1410
2055
|
}, null, 8, ["value"])
|
|
1411
2056
|
]),
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
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:
|
|
1421
|
-
"onUpdate:modelValue":
|
|
2065
|
+
modelValue: t.textArea,
|
|
2066
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.textArea = o)
|
|
1422
2067
|
}, null, 8, ["modelValue"])
|
|
1423
2068
|
]),
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
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:
|
|
1430
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
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:
|
|
1441
|
-
"onUpdate:modelValue":
|
|
2085
|
+
modelValue: t.checkbox,
|
|
2086
|
+
"onUpdate:modelValue": n[3] || (n[3] = (o) => t.checkbox = o)
|
|
1442
2087
|
}, null, 8, ["modelValue"])
|
|
1443
2088
|
]),
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
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:
|
|
1452
|
-
modelValue:
|
|
1453
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
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:
|
|
1466
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
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:
|
|
1477
|
-
modelValue:
|
|
1478
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2145
|
+
}, zl = {
|
|
1501
2146
|
key: 1,
|
|
1502
2147
|
class: "sl-flex sl-items-center sl-gap-2 sl-flex-shrink-0"
|
|
1503
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2157
|
+
}, Dl = {
|
|
1513
2158
|
key: 1,
|
|
1514
2159
|
class: "sl-flex-1"
|
|
1515
|
-
},
|
|
2160
|
+
}, Fl = {
|
|
1516
2161
|
key: 2,
|
|
1517
2162
|
class: "sl-flex sl-items-center sl-gap-3 sl-flex-shrink-0"
|
|
1518
|
-
},
|
|
2163
|
+
}, Nl = {
|
|
1519
2164
|
key: 0,
|
|
1520
2165
|
class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
|
|
1521
|
-
},
|
|
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
|
-
},
|
|
2169
|
+
}, Bl = {
|
|
1525
2170
|
key: 1,
|
|
1526
2171
|
class: "sl-flex-1"
|
|
1527
|
-
},
|
|
2172
|
+
}, jl = {
|
|
1528
2173
|
key: 2,
|
|
1529
2174
|
class: "sl-flex sl-items-center sl-gap-3 sl-flex-shrink-0"
|
|
1530
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
1566
|
-
const l =
|
|
1567
|
-
|
|
1568
|
-
|
|
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
|
|
1571
|
-
|
|
1572
|
-
},
|
|
1573
|
-
const
|
|
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 &&
|
|
2223
|
+
switch (l.fullHeight && f.push("sl-h-full"), l.variant) {
|
|
1579
2224
|
case "elevated":
|
|
1580
|
-
|
|
2225
|
+
f.push("sl-bg-white", "dark:sl-bg-gray-800");
|
|
1581
2226
|
break;
|
|
1582
2227
|
case "outlined":
|
|
1583
|
-
|
|
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
|
-
|
|
2231
|
+
f.push("sl-bg-transparent");
|
|
1587
2232
|
break;
|
|
1588
2233
|
case "filled":
|
|
1589
|
-
|
|
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
|
|
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
|
-
|
|
2245
|
+
P[l.shadow] && f.push(P[l.shadow]);
|
|
1601
2246
|
}
|
|
1602
|
-
const
|
|
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
|
|
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 &&
|
|
1617
|
-
}),
|
|
1618
|
-
const
|
|
1619
|
-
return l.scrollable && l.maxHeight && (
|
|
1620
|
-
}),
|
|
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]),
|
|
2269
|
+
})[l.size]), c = b(() => [r.value.x, r.value.y]), p = b(() => {
|
|
1625
2270
|
if (l.noPadding)
|
|
1626
2271
|
return [];
|
|
1627
|
-
const
|
|
1628
|
-
return l.scrollable &&
|
|
1629
|
-
}),
|
|
1630
|
-
const
|
|
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 [
|
|
2280
|
+
return [r.value.x, f[l.size], "sl-bg-gray-50/50 dark:sl-bg-gray-800/50"];
|
|
1636
2281
|
});
|
|
1637
|
-
return
|
|
1638
|
-
toggleCollapse:
|
|
1639
|
-
isCollapsed:
|
|
1640
|
-
}), (
|
|
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
|
-
|
|
1644
|
-
{ "sl-cursor-pointer":
|
|
2288
|
+
z.value,
|
|
2289
|
+
{ "sl-cursor-pointer": e.hoverable }
|
|
1645
2290
|
]),
|
|
1646
|
-
style:
|
|
2291
|
+
style: O(h.value)
|
|
1647
2292
|
}, [
|
|
1648
|
-
|
|
2293
|
+
y.value ? (i(), m("div", {
|
|
1649
2294
|
key: 0,
|
|
1650
|
-
class:
|
|
2295
|
+
class: E([
|
|
1651
2296
|
"sl-card-header",
|
|
1652
|
-
|
|
1653
|
-
{ "sl-sticky sl-top-0 sl-z-10 sl-bg-inherit":
|
|
2297
|
+
c.value,
|
|
2298
|
+
{ "sl-sticky sl-top-0 sl-z-10 sl-bg-inherit": e.headerSticky && e.scrollable }
|
|
1654
2299
|
])
|
|
1655
2300
|
}, [
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
])) :
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
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
|
-
|
|
1667
|
-
|
|
1668
|
-
])) :
|
|
1669
|
-
])) :
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
])) :
|
|
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
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
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:
|
|
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": !
|
|
2326
|
+
"aria-expanded": !o.value,
|
|
1682
2327
|
"aria-label": "Toggle content"
|
|
1683
2328
|
}, [
|
|
1684
|
-
(
|
|
1685
|
-
class:
|
|
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
|
-
}, [...
|
|
1691
|
-
|
|
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,
|
|
1698
|
-
])) :
|
|
2342
|
+
], 8, Tl)) : k("", !0)
|
|
2343
|
+
])) : k("", !0)
|
|
1699
2344
|
])
|
|
1700
2345
|
], !0)
|
|
1701
|
-
], 2)) :
|
|
1702
|
-
|
|
1703
|
-
|
|
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:
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
class:
|
|
2357
|
+
default: T(() => [
|
|
2358
|
+
me(s("div", Ml, [
|
|
2359
|
+
s("div", {
|
|
2360
|
+
class: E([
|
|
1716
2361
|
"sl-card-body",
|
|
1717
|
-
|
|
1718
|
-
{ "sl-overflow-y-auto":
|
|
2362
|
+
p.value,
|
|
2363
|
+
{ "sl-overflow-y-auto": e.scrollable }
|
|
1719
2364
|
]),
|
|
1720
|
-
style:
|
|
2365
|
+
style: O(e.scrollable && e.maxHeight ? { maxHeight: e.maxHeight } : {})
|
|
1721
2366
|
}, [
|
|
1722
|
-
|
|
1723
|
-
|
|
2367
|
+
M(f.$slots, "body", {}, () => [
|
|
2368
|
+
M(f.$slots, "default", {}, void 0, !0)
|
|
1724
2369
|
], !0)
|
|
1725
2370
|
], 6),
|
|
1726
|
-
|
|
1727
|
-
|
|
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
|
-
|
|
1732
|
-
{ "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit":
|
|
2376
|
+
$.value,
|
|
2377
|
+
{ "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": e.footerSticky && e.scrollable }
|
|
1733
2378
|
])
|
|
1734
2379
|
}, [
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
])) : (
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
])) :
|
|
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)) :
|
|
2390
|
+
], 2)) : k("", !0)
|
|
1746
2391
|
], 512), [
|
|
1747
|
-
[
|
|
2392
|
+
[Ze, !o.value]
|
|
1748
2393
|
])
|
|
1749
2394
|
]),
|
|
1750
2395
|
_: 3
|
|
1751
|
-
})) : (
|
|
1752
|
-
|
|
1753
|
-
class:
|
|
2396
|
+
})) : (i(), m(G, { key: 3 }, [
|
|
2397
|
+
s("div", {
|
|
2398
|
+
class: E([
|
|
1754
2399
|
"sl-card-body",
|
|
1755
|
-
|
|
1756
|
-
{ "sl-overflow-y-auto":
|
|
2400
|
+
p.value,
|
|
2401
|
+
{ "sl-overflow-y-auto": e.scrollable }
|
|
1757
2402
|
]),
|
|
1758
|
-
style:
|
|
2403
|
+
style: O(e.scrollable && e.maxHeight ? { maxHeight: e.maxHeight } : {})
|
|
1759
2404
|
}, [
|
|
1760
|
-
|
|
1761
|
-
|
|
2405
|
+
M(f.$slots, "body", {}, () => [
|
|
2406
|
+
M(f.$slots, "default", {}, void 0, !0)
|
|
1762
2407
|
], !0)
|
|
1763
2408
|
], 6),
|
|
1764
|
-
|
|
1765
|
-
|
|
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
|
-
|
|
1770
|
-
{ "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit":
|
|
2414
|
+
$.value,
|
|
2415
|
+
{ "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": e.footerSticky && e.scrollable }
|
|
1771
2416
|
])
|
|
1772
2417
|
}, [
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
])) : (
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
])) :
|
|
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)) :
|
|
2428
|
+
], 2)) : k("", !0)
|
|
1784
2429
|
], 64)),
|
|
1785
|
-
|
|
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:
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
(
|
|
1798
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2457
|
+
e.loadingText ? (i(), m("span", Gl, w(e.loadingText), 1)) : k("", !0)
|
|
1813
2458
|
])
|
|
1814
2459
|
], !0)
|
|
1815
|
-
])) :
|
|
2460
|
+
])) : k("", !0)
|
|
1816
2461
|
]),
|
|
1817
2462
|
_: 3
|
|
1818
2463
|
})
|
|
1819
2464
|
], 6));
|
|
1820
2465
|
}
|
|
1821
|
-
}),
|
|
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(
|
|
1828
|
-
const
|
|
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
|
-
})[
|
|
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
|
-
}[
|
|
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
|
-
}[
|
|
1844
|
-
return (
|
|
2488
|
+
}[t.variant] }));
|
|
2489
|
+
return (u, n) => (i(), m("div", {
|
|
1845
2490
|
class: "sl-rounded-xl sl-border sl-p-4",
|
|
1846
|
-
style:
|
|
2491
|
+
style: O({ backgroundColor: a.value.bg, borderColor: a.value.border })
|
|
1847
2492
|
}, [
|
|
1848
|
-
|
|
2493
|
+
e.title ? (i(), m("h3", {
|
|
1849
2494
|
key: 0,
|
|
1850
2495
|
class: "sl-font-medium sl-mb-2",
|
|
1851
|
-
style:
|
|
1852
|
-
}, w(
|
|
1853
|
-
|
|
1854
|
-
class:
|
|
1855
|
-
style:
|
|
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
|
-
|
|
2502
|
+
M(u.$slots, "default")
|
|
1858
2503
|
], 4)
|
|
1859
2504
|
], 4));
|
|
1860
2505
|
}
|
|
1861
|
-
}),
|
|
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(
|
|
1868
|
-
const
|
|
1869
|
-
return (
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
class:
|
|
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
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
(
|
|
1882
|
-
key:
|
|
1883
|
-
class:
|
|
1884
|
-
}, w(
|
|
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
|
-
|
|
1888
|
-
(
|
|
1889
|
-
key:
|
|
2532
|
+
s("tbody", Ql, [
|
|
2533
|
+
(i(!0), m(G, null, Y(e.props, (d) => (i(), m("tr", {
|
|
2534
|
+
key: d.name
|
|
1890
2535
|
}, [
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2554
|
+
}, ra = {
|
|
1910
2555
|
class: "sl-text-lg sl-font-semibold",
|
|
1911
2556
|
style: { color: "var(--sl-text-primary)" }
|
|
1912
|
-
},
|
|
2557
|
+
}, na = {
|
|
1913
2558
|
key: 0,
|
|
1914
2559
|
class: "sl-text-sm sl-mt-1",
|
|
1915
2560
|
style: { color: "var(--sl-text-muted)" }
|
|
1916
|
-
},
|
|
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(
|
|
1925
|
-
const
|
|
2569
|
+
setup(e) {
|
|
2570
|
+
const t = e, a = b(() => {
|
|
1926
2571
|
const l = [];
|
|
1927
|
-
return
|
|
2572
|
+
return t.padded && l.push("sl-p-6"), t.contentClass && l.push(t.contentClass), l.join(" ");
|
|
1928
2573
|
});
|
|
1929
|
-
return (l,
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
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
|
-
])) :
|
|
1936
|
-
|
|
1937
|
-
class:
|
|
2580
|
+
])) : k("", !0),
|
|
2581
|
+
s("div", {
|
|
2582
|
+
class: E(a.value)
|
|
1938
2583
|
}, [
|
|
1939
|
-
|
|
2584
|
+
M(l.$slots, "default")
|
|
1940
2585
|
], 2)
|
|
1941
2586
|
]));
|
|
1942
2587
|
}
|
|
1943
|
-
}),
|
|
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
|
-
},
|
|
2591
|
+
}, ua = {
|
|
1947
2592
|
class: "sl-text-lg",
|
|
1948
2593
|
style: { color: "var(--sl-text-muted)" }
|
|
1949
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
1963
|
-
const
|
|
1964
|
-
l("update:modelValue",
|
|
1965
|
-
},
|
|
1966
|
-
backgroundColor:
|
|
1967
|
-
color:
|
|
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 (
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
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
|
-
|
|
1980
|
-
(
|
|
1981
|
-
key:
|
|
1982
|
-
onClick: (
|
|
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:
|
|
1985
|
-
}, w(
|
|
1986
|
-
])) :
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
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
|
-
|
|
2637
|
+
M(o.$slots, "footer")
|
|
1993
2638
|
]));
|
|
1994
2639
|
}
|
|
1995
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
2005
|
-
const
|
|
2006
|
-
return (l,
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
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
|
-
|
|
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 =
|
|
3253
|
+
this.designTokens = Ne;
|
|
2026
3254
|
}
|
|
2027
|
-
install(
|
|
2028
|
-
Object.keys(
|
|
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(
|
|
2031
|
-
|
|
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
|
|
3283
|
+
return Rt(this.designTokens);
|
|
2056
3284
|
}
|
|
2057
3285
|
injectCSSVariables() {
|
|
2058
|
-
const
|
|
2059
|
-
|
|
2060
|
-
const
|
|
2061
|
-
|
|
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
|
|
3292
|
+
const xr = new Io();
|
|
2065
3293
|
export {
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
rr as
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
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
|
};
|