@stachelock/ui 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-hGa2MLyo.js → CalendarHeader.vue_vue_type_script_setup_true_lang-CA_C4dmn.js} +1 -1
- package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-BigvbBAU.js → ComboboxInput.vue_vue_type_script_setup_true_lang-D52gzkAa.js} +142 -120
- package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-B5w4yzcZ.js → InlineTabs.vue_vue_type_script_setup_true_lang-slNq2sot.js} +1 -1
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-COZuuSFS.js +320 -0
- package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-BsbiEA4E.js → TabGroup.vue_vue_type_script_setup_true_lang-pEKm-uUq.js} +1 -1
- package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-CPcp1-Za.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang--IKyRPkX.js} +1 -1
- package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-U5CdRL7s.js → TabsInPills.vue_vue_type_script_setup_true_lang-EG0nj4F6.js} +1 -1
- package/dist/calendars/CalendarDashboard.js +1 -1
- package/dist/calendars/CalendarHeader.js +1 -1
- package/dist/index.js +1533 -1300
- package/dist/inputs/ComboboxInput.js +1 -1
- package/dist/inputs/SelectInput.js +1 -1
- package/dist/src/components/inputs/ComboboxInput.d.ts +2 -0
- package/dist/src/components/inputs/DatepickerInput.d.ts +3 -3
- package/dist/src/components/inputs/SelectInput.d.ts +2 -0
- package/dist/src/components/profiles/BentoProfileLayoutSkeleton.d.ts +11 -0
- package/dist/src/components/profiles/ProfileSocialCard.d.ts +11 -0
- package/dist/src/components/profiles/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/tabs/InlineTabs.js +1 -1
- package/dist/tabs/TabGroup.js +1 -1
- package/dist/tabs/TabGroupUnderline.js +1 -1
- package/dist/tabs/TabsInPills.js +1 -1
- package/dist/tabs/index.js +4 -4
- package/package.json +1 -1
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-D4GNv0MY.js +0 -301
package/dist/index.js
CHANGED
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { defineAsyncComponent as
|
|
3
|
-
import
|
|
4
|
-
import { useCalendar as
|
|
1
|
+
import { a as en, g as tn, s as sn } from "./id-DafBB_QF.js";
|
|
2
|
+
import { defineAsyncComponent as Q, defineComponent as D, ref as te, watch as oe, createBlock as L, openBlock as o, unref as I, withCtx as C, createVNode as $, createElementVNode as s, normalizeStyle as F, createTextVNode as R, withDirectives as ae, vModelText as ie, createElementBlock as u, Fragment as U, renderList as H, normalizeClass as z, toDisplayString as k, computed as p, createCommentVNode as w, resolveDynamicComponent as J, toRefs as Ie, mergeProps as Se, withKeys as de, withModifiers as he, renderSlot as S, h as G, reactive as ze, useSlots as ye, Transition as ce, vShow as Le, inject as De, createStaticVNode as Me } from "vue";
|
|
3
|
+
import q from "./inputs/TextInput.js";
|
|
4
|
+
import { useCalendar as an } from "./composables/useCalendar.js";
|
|
5
5
|
import { u as Te, v as re } from "./useCollectionEditor-BYyoAT0U.js";
|
|
6
|
-
import { C as
|
|
7
|
-
import { c as
|
|
8
|
-
import { useFormValidation as
|
|
9
|
-
import { U as
|
|
10
|
-
import { useModal as
|
|
11
|
-
import { useNotifications as
|
|
12
|
-
import { g as
|
|
13
|
-
import { f as
|
|
14
|
-
import { useTabs as
|
|
15
|
-
import { useTheme as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
6
|
+
import { C as rn } from "./useCollectionEditor-BYyoAT0U.js";
|
|
7
|
+
import { c as dn, u as cn } from "./useEventSegments-B-r_8zCW.js";
|
|
8
|
+
import { useFormValidation as mn } from "./composables/useFormValidation.js";
|
|
9
|
+
import { U as pn, W as gn, d as hn, i as yn, u as xn } from "./useMap-BGg0H582.js";
|
|
10
|
+
import { useModal as vn } from "./composables/useModal.js";
|
|
11
|
+
import { useNotifications as wn } from "./composables/useNotifications.js";
|
|
12
|
+
import { g as _n, u as Cn } from "./useSimpleTabs-CSgkChEU.js";
|
|
13
|
+
import { f as Sn, i as zn, s as Ln, a as Dn, t as Mn, c as Tn, b as Bn, u as Pn } from "./useStringTransform-CSr7nZWg.js";
|
|
14
|
+
import { useTabs as An } from "./composables/useTabs.js";
|
|
15
|
+
import { useTheme as xe, presetThemes as Be } from "./composables/useTheme.js";
|
|
16
|
+
import { _ as Vn } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-C0R4ADBb.js";
|
|
17
|
+
import { _ as Pe } from "./UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js";
|
|
18
18
|
import { _ as le } from "./UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js";
|
|
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 { UserIcon as
|
|
29
|
-
import
|
|
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 { _ as
|
|
42
|
-
import { format as
|
|
43
|
-
import { _ as
|
|
44
|
-
import { _ as
|
|
45
|
-
import { _ as
|
|
19
|
+
import { _ as Fn } from "./UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js";
|
|
20
|
+
import { _ as Rn } from "./UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js";
|
|
21
|
+
import { _ as je } from "./UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js";
|
|
22
|
+
import { _ as On } from "./UiMenu.vue_vue_type_script_setup_true_lang-gnoIJm6x.js";
|
|
23
|
+
import { _ as Gn } from "./UiModal.vue_vue_type_script_setup_true_lang-BZC7aN7K.js";
|
|
24
|
+
import { _ as Yn } from "./UiNavLink.vue_vue_type_script_setup_true_lang-C5Gicm8o.js";
|
|
25
|
+
import { _ as Zn } from "./UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js";
|
|
26
|
+
import { _ as Xn } from "./UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js";
|
|
27
|
+
import { _ as ei } from "./UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js";
|
|
28
|
+
import { UserIcon as Ae, XMarkIcon as Ee, XCircleIcon as Ve } from "@heroicons/vue/24/solid";
|
|
29
|
+
import Ne from "./components/CloudinaryImage.js";
|
|
30
|
+
import { _ as si } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-CA_C4dmn.js";
|
|
31
|
+
import { _ as ai } from "./DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js";
|
|
32
|
+
import { _ as ri } from "./EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js";
|
|
33
|
+
import { _ as ii } from "./EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js";
|
|
34
|
+
import { _ as ci } from "./MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js";
|
|
35
|
+
import { _ as mi } from "./YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js";
|
|
36
|
+
import { _ as pi } from "./BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js";
|
|
37
|
+
import { _ as hi } from "./FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js";
|
|
38
|
+
import { _ as xi } from "./LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js";
|
|
39
|
+
import { _ as vi } from "./PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js";
|
|
40
|
+
import { _ as wi } from "./SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js";
|
|
41
|
+
import { _ as _i } from "./StatCard.vue_vue_type_script_setup_true_lang-B5SuaSXL.js";
|
|
42
|
+
import { format as Y, differenceInYears as se, differenceInMonths as be, isValid as K, parseISO as ee } from "date-fns";
|
|
43
|
+
import { _ as Fe } from "./AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-6taLcPq0.js";
|
|
44
|
+
import { _ as Ue } from "./DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js";
|
|
45
|
+
import { _ as Re } from "./AlertModal.vue_vue_type_script_setup_true_lang-DzhVQdx4.js";
|
|
46
46
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
47
|
-
import { _ as
|
|
48
|
-
import { _ as
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
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 ue } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
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 { _ as
|
|
75
|
-
import { _ as
|
|
76
|
-
import { _ as
|
|
77
|
-
import { _ as
|
|
78
|
-
import { _ as
|
|
79
|
-
import { _ as
|
|
80
|
-
import { SwatchIcon as
|
|
81
|
-
import { _ as
|
|
82
|
-
import { _ as
|
|
83
|
-
import { _ as
|
|
84
|
-
import { _ as
|
|
85
|
-
import { _ as
|
|
86
|
-
import { _ as
|
|
87
|
-
import { _ as
|
|
88
|
-
import { _ as
|
|
89
|
-
import { _ as
|
|
90
|
-
import { TransitionRoot as
|
|
91
|
-
import
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { areaChartConfig as
|
|
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
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
var
|
|
111
|
-
function
|
|
47
|
+
import { _ as Ii } from "./ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js";
|
|
48
|
+
import { _ as zi } from "./EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js";
|
|
49
|
+
import P from "dayjs";
|
|
50
|
+
import ve from "dayjs/plugin/utc";
|
|
51
|
+
import ke from "dayjs/plugin/timezone";
|
|
52
|
+
import He from "dayjs/plugin/relativeTime";
|
|
53
|
+
import { _ as Di } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js";
|
|
54
|
+
import { _ as Oe } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js";
|
|
55
|
+
import { _ as We } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-D52gzkAa.js";
|
|
56
|
+
import { _ as Ti } from "./DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js";
|
|
57
|
+
import { _ as Pi } from "./EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js";
|
|
58
|
+
import { _ as Ai } from "./EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js";
|
|
59
|
+
import { _ as Vi } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js";
|
|
60
|
+
import { _ as Fi } from "./HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js";
|
|
61
|
+
import { _ as Ri } from "./ImageDropzoneInput.vue_vue_type_script_setup_true_lang-7JWDfxD2.js";
|
|
62
|
+
import { _ as Ge } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js";
|
|
63
|
+
import { _ as qe } from "./SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js";
|
|
64
|
+
import { _ as ue } from "./SelectInput.vue_vue_type_script_setup_true_lang-COZuuSFS.js";
|
|
65
|
+
import { _ as Oi } from "./SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js";
|
|
66
|
+
import { _ as Gi } from "./SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js";
|
|
67
|
+
import { _ as Yi } from "./TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js";
|
|
68
|
+
import { _ as Zi } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js";
|
|
69
|
+
import { _ as Xi } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
|
|
70
|
+
import { _ as ed } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
|
|
71
|
+
import { _ as sd } from "./NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js";
|
|
72
|
+
import { _ as ad } from "./NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js";
|
|
73
|
+
import { _ as rd } from "./ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js";
|
|
74
|
+
import { _ as id } from "./ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js";
|
|
75
|
+
import { _ as cd } from "./SidebarLayout.vue_vue_type_script_setup_true_lang-CZ21EVcZ.js";
|
|
76
|
+
import { _ as md } from "./UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js";
|
|
77
|
+
import { _ as pd } from "./BaseModal.vue_vue_type_script_setup_true_lang--iGzFCnC.js";
|
|
78
|
+
import { _ as hd } from "./NotificationContainer.vue_vue_type_style_index_0_lang-CvJRwezr.js";
|
|
79
|
+
import { _ as xd } from "./NotificationToast.vue_vue_type_script_setup_true_lang-BBWpW4km.js";
|
|
80
|
+
import { SwatchIcon as Ye, XMarkIcon as Ke, PhoneIcon as me, EnvelopeIcon as Ze, GlobeAltIcon as we, CakeIcon as $e, CalendarDaysIcon as Je, BriefcaseIcon as Xe, BuildingOfficeIcon as Qe, LinkIcon as et, MapPinIcon as fe, BuildingLibraryIcon as tt, UserGroupIcon as st } from "@heroicons/vue/24/outline";
|
|
81
|
+
import { _ as vd } from "./StepperPanels.vue_vue_type_script_setup_true_lang-DPLQ9mQn.js";
|
|
82
|
+
import { _ as wd } from "./InlineTabs.vue_vue_type_script_setup_true_lang-slNq2sot.js";
|
|
83
|
+
import { _ as _d } from "./TabGroup.vue_vue_type_script_setup_true_lang-pEKm-uUq.js";
|
|
84
|
+
import { _ as Id } from "./TabGroupUnderline.vue_vue_type_script_setup_true_lang--IKyRPkX.js";
|
|
85
|
+
import { _ as zd } from "./TabsInPills.vue_vue_type_script_setup_true_lang-EG0nj4F6.js";
|
|
86
|
+
import { _ as Dd } from "./BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js";
|
|
87
|
+
import { _ as Td } from "./CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js";
|
|
88
|
+
import { _ as Pd } from "./DisclosureWrapper.vue_vue_type_script_setup_true_lang-CgHPOC-w.js";
|
|
89
|
+
import { _ as Ad } from "./FormErrorWrapper.vue_vue_type_script_setup_true_lang-D7ZAgfPs.js";
|
|
90
|
+
import { TransitionRoot as lt, Dialog as at, TransitionChild as pe, DialogPanel as ot, DialogTitle as rt } from "@headlessui/vue";
|
|
91
|
+
import X from "./components/Button.js";
|
|
92
|
+
import { default as Vd } from "./components/Banner.js";
|
|
93
|
+
import { default as Fd } from "./components/Breadcrumb.js";
|
|
94
|
+
import { default as Rd } from "./components/LoadingDots.js";
|
|
95
|
+
import { default as Od } from "./calendars/CalendarDashboard.js";
|
|
96
|
+
import { default as Gd } from "./calendars/WeekCalendar.js";
|
|
97
|
+
import { default as Yd } from "./charts/BaseChart.js";
|
|
98
|
+
import { areaChartConfig as Zd, barChartConfig as Jd, baseTheme as Xd, chartColors as Qd, chartTypography as e0, formatDuration as t0, formatNumber as s0, formatPercentage as l0, funnelChartConfig as a0, getAreaGradient as o0, hexToRgb as r0, lineChartConfig as n0, pieChartConfig as i0, stachelockColors as d0, toRgba as c0 } from "./charts/chartTheme.js";
|
|
99
|
+
import { default as m0 } from "./forms/FormFieldWrapper.js";
|
|
100
|
+
import { default as p0 } from "./inputs/AddressInput.js";
|
|
101
|
+
import { default as h0 } from "./inputs/PhoneInput.js";
|
|
102
|
+
import { default as x0 } from "./inputs/RichTextInput.js";
|
|
103
|
+
import { default as v0 } from "./loading/ContentSkeleton.js";
|
|
104
|
+
import { default as w0 } from "./loading/SmartLoadingIndicator.js";
|
|
105
|
+
import { default as _0 } from "./maps/GoogleMap.js";
|
|
106
|
+
import { default as I0 } from "./maps/UiInfoWindow.js";
|
|
107
|
+
import { default as z0 } from "./maps/UiMap.js";
|
|
108
|
+
import { default as D0 } from "./maps/UiMapMarker.js";
|
|
109
|
+
import { default as T0 } from "./modals/ImageCropperModal.js";
|
|
110
|
+
var nt = /* @__PURE__ */ ((t) => (t.Verified = "verified", t.Error = "error", t.Unverified = "unverified", t.Pending = "pending", t))(nt || {});
|
|
111
|
+
function Sr(t) {
|
|
112
112
|
return ["street", "city", "state", "zipcode", "country"].includes(t);
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const it = {
|
|
115
115
|
text: {
|
|
116
116
|
component: "TextInput",
|
|
117
|
-
loader: () => Promise.resolve(
|
|
117
|
+
loader: () => Promise.resolve(q)
|
|
118
118
|
},
|
|
119
119
|
email: {
|
|
120
120
|
component: "TextInput",
|
|
121
|
-
loader: () => Promise.resolve(
|
|
121
|
+
loader: () => Promise.resolve(q)
|
|
122
122
|
},
|
|
123
123
|
password: {
|
|
124
124
|
component: "TextInput",
|
|
125
|
-
loader: () => Promise.resolve(
|
|
125
|
+
loader: () => Promise.resolve(q)
|
|
126
126
|
},
|
|
127
127
|
number: {
|
|
128
128
|
component: "TextInput",
|
|
129
|
-
loader: () => Promise.resolve(
|
|
129
|
+
loader: () => Promise.resolve(q)
|
|
130
130
|
},
|
|
131
131
|
tel: {
|
|
132
132
|
component: "TextInput",
|
|
133
|
-
loader: () => Promise.resolve(
|
|
133
|
+
loader: () => Promise.resolve(q)
|
|
134
134
|
},
|
|
135
135
|
url: {
|
|
136
136
|
component: "TextInput",
|
|
137
|
-
loader: () => Promise.resolve(
|
|
137
|
+
loader: () => Promise.resolve(q)
|
|
138
138
|
},
|
|
139
139
|
textarea: {
|
|
140
140
|
component: "TextAreaInput",
|
|
@@ -157,8 +157,8 @@ const ot = {
|
|
|
157
157
|
loader: () => import("./inputs/SwitchInput.js")
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
-
class
|
|
161
|
-
componentMap = { ...
|
|
160
|
+
class dt {
|
|
161
|
+
componentMap = { ...it };
|
|
162
162
|
loadedComponents = /* @__PURE__ */ new Map();
|
|
163
163
|
/**
|
|
164
164
|
* Register a new component type
|
|
@@ -175,7 +175,7 @@ class rt {
|
|
|
175
175
|
return console.warn(`Component type "${e}" is not registered`), null;
|
|
176
176
|
if (this.loadedComponents.has(e))
|
|
177
177
|
return this.loadedComponents.get(e);
|
|
178
|
-
const l =
|
|
178
|
+
const l = Q({
|
|
179
179
|
loader: a.loader,
|
|
180
180
|
delay: 0
|
|
181
181
|
});
|
|
@@ -206,14 +206,14 @@ class rt {
|
|
|
206
206
|
this.loadedComponents.clear();
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
function
|
|
211
|
-
|
|
209
|
+
const _e = new dt();
|
|
210
|
+
function zr(t, e, a) {
|
|
211
|
+
_e.register(t, e, a);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function Lr(t) {
|
|
214
|
+
return _e.getComponent(t);
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const Ce = {
|
|
217
217
|
colors: {
|
|
218
218
|
primary: {
|
|
219
219
|
50: "#edeff9",
|
|
@@ -316,42 +316,42 @@ const we = {
|
|
|
316
316
|
"2xl": "1536px"
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
|
-
function
|
|
319
|
+
function ct(t, e = Ce) {
|
|
320
320
|
const a = { ...e };
|
|
321
|
-
function l(
|
|
321
|
+
function l(c, n) {
|
|
322
322
|
if (n && typeof n == "object" && !Array.isArray(n)) {
|
|
323
|
-
for (const
|
|
324
|
-
if (Object.prototype.hasOwnProperty.call(n,
|
|
325
|
-
const
|
|
326
|
-
|
|
323
|
+
for (const r in n)
|
|
324
|
+
if (Object.prototype.hasOwnProperty.call(n, r)) {
|
|
325
|
+
const i = c[r], y = n[r];
|
|
326
|
+
i && typeof i == "object" && !Array.isArray(i) && y && typeof y == "object" && !Array.isArray(y) ? c[r] = l(i, y) : c[r] = y;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return c;
|
|
330
330
|
}
|
|
331
331
|
return l(a, t);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function ut(t) {
|
|
334
334
|
let e = `:root {
|
|
335
335
|
`;
|
|
336
336
|
return t.colors && Object.entries(t.colors).forEach(([a, l]) => {
|
|
337
|
-
typeof l == "object" && l !== null && Object.entries(l).forEach(([
|
|
338
|
-
const
|
|
339
|
-
e += ` --sl-color-${
|
|
337
|
+
typeof l == "object" && l !== null && Object.entries(l).forEach(([c, n]) => {
|
|
338
|
+
const r = c === "DEFAULT" ? a : `${a}-${c}`;
|
|
339
|
+
e += ` --sl-color-${r}: ${n};
|
|
340
340
|
`;
|
|
341
|
-
const
|
|
342
|
-
|
|
341
|
+
const i = mt(n);
|
|
342
|
+
i && (e += ` --sl-color-${r}-rgb: ${i};
|
|
343
343
|
`);
|
|
344
344
|
});
|
|
345
345
|
}), t.spacing && Object.entries(t.spacing).forEach(([a, l]) => {
|
|
346
346
|
e += ` --sl-spacing-${a}: ${l};
|
|
347
347
|
`;
|
|
348
348
|
}), t.borderRadius && Object.entries(t.borderRadius).forEach(([a, l]) => {
|
|
349
|
-
const
|
|
350
|
-
e += ` --sl-${
|
|
349
|
+
const c = a === "DEFAULT" ? "radius" : `radius-${a}`;
|
|
350
|
+
e += ` --sl-${c}: ${l};
|
|
351
351
|
`;
|
|
352
352
|
}), t.shadows && Object.entries(t.shadows).forEach(([a, l]) => {
|
|
353
|
-
const
|
|
354
|
-
e += ` --sl-${
|
|
353
|
+
const c = a === "DEFAULT" ? "shadow" : `shadow-${a}`;
|
|
354
|
+
e += ` --sl-${c}: ${l};
|
|
355
355
|
`;
|
|
356
356
|
}), t.typography && (t.typography.fontFamily && Object.entries(t.typography.fontFamily).forEach(([a, l]) => {
|
|
357
357
|
e += ` --sl-font-family-${a}: ${l.join(", ")};
|
|
@@ -376,7 +376,7 @@ function it(t) {
|
|
|
376
376
|
`, e += `}
|
|
377
377
|
`, e;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Dr(t) {
|
|
380
380
|
let e = `export default {
|
|
381
381
|
`;
|
|
382
382
|
return e += ` prefix: "sl-",
|
|
@@ -385,8 +385,8 @@ function Xo(t) {
|
|
|
385
385
|
`, t.colors && (e += ` colors: {
|
|
386
386
|
`, Object.entries(t.colors).forEach(([a, l]) => {
|
|
387
387
|
typeof l == "object" && l !== null && (e += ` "${a}": {
|
|
388
|
-
`, Object.entries(l).forEach(([
|
|
389
|
-
e += ` "${
|
|
388
|
+
`, Object.entries(l).forEach(([c, n]) => {
|
|
389
|
+
e += ` "${c === "DEFAULT" ? "DEFAULT" : c}": "${n}",
|
|
390
390
|
`;
|
|
391
391
|
}), e += ` },
|
|
392
392
|
`);
|
|
@@ -408,7 +408,7 @@ function Xo(t) {
|
|
|
408
408
|
}), e += ` },
|
|
409
409
|
`), t.typography && (t.typography.fontFamily && (e += ` fontFamily: {
|
|
410
410
|
`, Object.entries(t.typography.fontFamily).forEach(([a, l]) => {
|
|
411
|
-
e += ` "${a}": [${l.map((
|
|
411
|
+
e += ` "${a}": [${l.map((c) => `"${c}"`).join(", ")}],
|
|
412
412
|
`;
|
|
413
413
|
}), e += ` },
|
|
414
414
|
`), t.typography.fontSize && (e += ` fontSize: {
|
|
@@ -421,47 +421,47 @@ function Xo(t) {
|
|
|
421
421
|
`, e += `};
|
|
422
422
|
`, e;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function mt(t) {
|
|
425
425
|
if (typeof t != "string") return null;
|
|
426
426
|
let e = t.trim();
|
|
427
427
|
if (!e.startsWith("#") || (e = e.slice(1), e.length === 3 && (e = e.split("").map((n) => n + n).join("")), e.length !== 6)) return null;
|
|
428
|
-
const a = parseInt(e.slice(0, 2), 16), l = parseInt(e.slice(2, 4), 16),
|
|
429
|
-
return Number.isNaN(a) || Number.isNaN(l) || Number.isNaN(
|
|
428
|
+
const a = parseInt(e.slice(0, 2), 16), l = parseInt(e.slice(2, 4), 16), c = parseInt(e.slice(4, 6), 16);
|
|
429
|
+
return Number.isNaN(a) || Number.isNaN(l) || Number.isNaN(c) ? null : `${a} ${l} ${c}`;
|
|
430
430
|
}
|
|
431
|
-
const
|
|
431
|
+
const ft = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto" }, pt = { class: "sl-flex sl-min-h-full sl-items-center sl-justify-center sl-p-4" }, gt = { class: "sl-bg-gradient-to-r sl-from-gray-900 sl-to-gray-800 sl-px-6 sl-py-4" }, ht = { class: "sl-flex sl-items-center sl-justify-between" }, yt = { class: "sl-flex sl-items-center sl-gap-3" }, xt = { class: "sl-p-6 sl-space-y-6" }, bt = { class: "sl-flex sl-items-center sl-gap-4" }, vt = { class: "sl-relative" }, kt = { class: "sl-flex-1" }, wt = { class: "sl-grid sl-grid-cols-2 sl-gap-2" }, $t = ["onClick"], _t = { class: "sl-min-w-0" }, Ct = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-white sl-truncate" }, It = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400 sl-truncate" }, St = { 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" }, zt = { class: "sl-flex sl-flex-wrap sl-gap-2" }, Lt = { class: "sl-flex sl-flex-wrap sl-gap-2" }, Dt = { class: "sl-flex sl-items-center sl-gap-4" }, Mt = { class: "sl-flex sl-items-center sl-gap-3" }, Tt = { class: "sl-flex sl-rounded-lg sl-overflow-hidden sl-shadow-sm dark:sl-shadow-slate-900/50" }, Bt = { 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" }, Pt = { class: "sl-flex sl-items-center sl-justify-between" }, jt = { class: "sl-flex sl-gap-3" }, At = /* @__PURE__ */ D({
|
|
432
432
|
__name: "ThemeDebugModal",
|
|
433
433
|
props: {
|
|
434
434
|
modelValue: { type: Boolean }
|
|
435
435
|
},
|
|
436
436
|
emits: ["update:modelValue"],
|
|
437
437
|
setup(t, { emit: e }) {
|
|
438
|
-
const a = e, { currentPrimaryColor: l, applyTheme:
|
|
438
|
+
const a = e, { currentPrimaryColor: l, applyTheme: c, resetTheme: n } = xe(), r = te(l.value);
|
|
439
439
|
oe(l, (v) => {
|
|
440
|
-
|
|
440
|
+
r.value = v;
|
|
441
441
|
});
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
n(),
|
|
442
|
+
const i = () => {
|
|
443
|
+
c(r.value);
|
|
444
|
+
}, y = (v) => {
|
|
445
|
+
r.value = v, c(v);
|
|
446
|
+
}, g = () => {
|
|
447
|
+
n(), r.value = "#3e4b9a";
|
|
448
448
|
}, m = () => {
|
|
449
449
|
a("update:modelValue", !1);
|
|
450
450
|
}, b = () => {
|
|
451
|
-
|
|
451
|
+
c(r.value), a("update:modelValue", !1);
|
|
452
452
|
};
|
|
453
|
-
return (v,
|
|
453
|
+
return (v, d) => (o(), L(I(lt), {
|
|
454
454
|
as: "template",
|
|
455
455
|
show: t.modelValue
|
|
456
456
|
}, {
|
|
457
|
-
default:
|
|
458
|
-
|
|
457
|
+
default: C(() => [
|
|
458
|
+
$(I(at), {
|
|
459
459
|
as: "div",
|
|
460
460
|
class: "sl-relative sl-z-[100]",
|
|
461
461
|
onClose: m
|
|
462
462
|
}, {
|
|
463
|
-
default:
|
|
464
|
-
|
|
463
|
+
default: C(() => [
|
|
464
|
+
$(I(pe), {
|
|
465
465
|
as: "template",
|
|
466
466
|
enter: "ease-out duration-300",
|
|
467
467
|
"enter-from": "opacity-0",
|
|
@@ -470,14 +470,14 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
470
470
|
"leave-from": "opacity-100",
|
|
471
471
|
"leave-to": "opacity-0"
|
|
472
472
|
}, {
|
|
473
|
-
default:
|
|
473
|
+
default: C(() => [...d[2] || (d[2] = [
|
|
474
474
|
s("div", { class: "sl-fixed sl-inset-0 sl-bg-gray-900/60 sl-backdrop-blur-sm sl-transition-opacity" }, null, -1)
|
|
475
475
|
])]),
|
|
476
476
|
_: 1
|
|
477
477
|
}),
|
|
478
|
-
s("div",
|
|
479
|
-
s("div",
|
|
480
|
-
|
|
478
|
+
s("div", ft, [
|
|
479
|
+
s("div", pt, [
|
|
480
|
+
$(I(pe), {
|
|
481
481
|
as: "template",
|
|
482
482
|
enter: "ease-out duration-300",
|
|
483
483
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -486,188 +486,188 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
486
486
|
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
487
487
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
488
488
|
}, {
|
|
489
|
-
default:
|
|
490
|
-
|
|
491
|
-
default:
|
|
492
|
-
s("div",
|
|
493
|
-
s("div",
|
|
494
|
-
s("div",
|
|
489
|
+
default: C(() => [
|
|
490
|
+
$(I(ot), { 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" }, {
|
|
491
|
+
default: C(() => [
|
|
492
|
+
s("div", gt, [
|
|
493
|
+
s("div", ht, [
|
|
494
|
+
s("div", yt, [
|
|
495
495
|
s("div", {
|
|
496
496
|
class: "sl-flex sl-h-10 sl-w-10 sl-items-center sl-justify-center sl-rounded-lg",
|
|
497
|
-
style:
|
|
497
|
+
style: F({ backgroundColor: r.value })
|
|
498
498
|
}, [
|
|
499
|
-
|
|
499
|
+
$(I(Ye), { class: "sl-h-5 sl-w-5 sl-text-white" })
|
|
500
500
|
], 4),
|
|
501
501
|
s("div", null, [
|
|
502
|
-
|
|
503
|
-
default:
|
|
504
|
-
|
|
502
|
+
$(I(rt), { class: "sl-text-lg sl-font-semibold sl-text-white" }, {
|
|
503
|
+
default: C(() => [...d[3] || (d[3] = [
|
|
504
|
+
R(" Theme Customizer ", -1)
|
|
505
505
|
])]),
|
|
506
506
|
_: 1
|
|
507
507
|
}),
|
|
508
|
-
|
|
508
|
+
d[4] || (d[4] = s("p", { class: "sl-text-xs sl-text-gray-400" }, "Preview how components adapt to different colors", -1))
|
|
509
509
|
])
|
|
510
510
|
]),
|
|
511
511
|
s("button", {
|
|
512
512
|
onClick: m,
|
|
513
513
|
class: "sl-rounded-lg sl-p-2 sl-text-gray-400 hover:sl-bg-gray-700 hover:sl-text-white sl-transition-colors"
|
|
514
514
|
}, [
|
|
515
|
-
|
|
515
|
+
$(I(Ke), { class: "sl-h-5 sl-w-5" })
|
|
516
516
|
])
|
|
517
517
|
])
|
|
518
518
|
]),
|
|
519
|
-
s("div",
|
|
519
|
+
s("div", xt, [
|
|
520
520
|
s("div", null, [
|
|
521
|
-
|
|
522
|
-
s("div",
|
|
523
|
-
s("div",
|
|
521
|
+
d[5] || (d[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)),
|
|
522
|
+
s("div", bt, [
|
|
523
|
+
s("div", vt, [
|
|
524
524
|
ae(s("input", {
|
|
525
525
|
type: "color",
|
|
526
|
-
"onUpdate:modelValue":
|
|
527
|
-
onInput:
|
|
526
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => r.value = f),
|
|
527
|
+
onInput: i,
|
|
528
528
|
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"
|
|
529
529
|
}, null, 544), [
|
|
530
|
-
[ie,
|
|
530
|
+
[ie, r.value]
|
|
531
531
|
])
|
|
532
532
|
]),
|
|
533
|
-
s("div",
|
|
533
|
+
s("div", kt, [
|
|
534
534
|
ae(s("input", {
|
|
535
535
|
type: "text",
|
|
536
|
-
"onUpdate:modelValue":
|
|
537
|
-
onInput:
|
|
536
|
+
"onUpdate:modelValue": d[1] || (d[1] = (f) => r.value = f),
|
|
537
|
+
onInput: i,
|
|
538
538
|
placeholder: "#3e4b9a",
|
|
539
539
|
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"
|
|
540
540
|
}, null, 544), [
|
|
541
|
-
[ie,
|
|
541
|
+
[ie, r.value]
|
|
542
542
|
])
|
|
543
543
|
])
|
|
544
544
|
])
|
|
545
545
|
]),
|
|
546
546
|
s("div", null, [
|
|
547
|
-
|
|
548
|
-
s("div",
|
|
549
|
-
(
|
|
547
|
+
d[6] || (d[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)),
|
|
548
|
+
s("div", wt, [
|
|
549
|
+
(o(!0), u(U, null, H(I(Be), (f) => (o(), u("button", {
|
|
550
550
|
key: f.name,
|
|
551
|
-
onClick: (
|
|
552
|
-
class:
|
|
553
|
-
style:
|
|
551
|
+
onClick: (h) => y(f.color),
|
|
552
|
+
class: z(["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": r.value.toLowerCase() === f.color.toLowerCase() }]),
|
|
553
|
+
style: F(r.value.toLowerCase() === f.color.toLowerCase() ? { "--tw-ring-color": f.color } : {})
|
|
554
554
|
}, [
|
|
555
555
|
s("div", {
|
|
556
556
|
class: "sl-h-8 sl-w-8 sl-rounded-lg sl-shadow-sm sl-flex-shrink-0",
|
|
557
|
-
style:
|
|
557
|
+
style: F({ backgroundColor: f.color })
|
|
558
558
|
}, null, 4),
|
|
559
|
-
s("div",
|
|
560
|
-
s("p",
|
|
561
|
-
s("p",
|
|
559
|
+
s("div", _t, [
|
|
560
|
+
s("p", Ct, k(f.name), 1),
|
|
561
|
+
s("p", It, k(f.description), 1)
|
|
562
562
|
])
|
|
563
|
-
], 14,
|
|
563
|
+
], 14, $t))), 128))
|
|
564
564
|
])
|
|
565
565
|
]),
|
|
566
566
|
s("div", null, [
|
|
567
|
-
|
|
568
|
-
s("div",
|
|
569
|
-
s("div",
|
|
570
|
-
|
|
567
|
+
d[15] || (d[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)),
|
|
568
|
+
s("div", St, [
|
|
569
|
+
s("div", zt, [
|
|
570
|
+
$(X, {
|
|
571
571
|
theme: "primary",
|
|
572
572
|
size: "sm"
|
|
573
573
|
}, {
|
|
574
|
-
default:
|
|
575
|
-
|
|
574
|
+
default: C(() => [...d[7] || (d[7] = [
|
|
575
|
+
R("Primary", -1)
|
|
576
576
|
])]),
|
|
577
577
|
_: 1
|
|
578
578
|
}),
|
|
579
|
-
|
|
579
|
+
$(X, {
|
|
580
580
|
theme: "primary",
|
|
581
581
|
size: "sm",
|
|
582
582
|
outlined: ""
|
|
583
583
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
584
|
+
default: C(() => [...d[8] || (d[8] = [
|
|
585
|
+
R("Outlined", -1)
|
|
586
586
|
])]),
|
|
587
587
|
_: 1
|
|
588
588
|
}),
|
|
589
|
-
|
|
589
|
+
$(X, {
|
|
590
590
|
theme: "secondary",
|
|
591
591
|
size: "sm"
|
|
592
592
|
}, {
|
|
593
|
-
default:
|
|
594
|
-
|
|
593
|
+
default: C(() => [...d[9] || (d[9] = [
|
|
594
|
+
R("Secondary", -1)
|
|
595
595
|
])]),
|
|
596
596
|
_: 1
|
|
597
597
|
})
|
|
598
598
|
]),
|
|
599
|
-
s("div",
|
|
600
|
-
|
|
601
|
-
default:
|
|
602
|
-
|
|
599
|
+
s("div", Lt, [
|
|
600
|
+
$(le, { theme: "primary" }, {
|
|
601
|
+
default: C(() => [...d[10] || (d[10] = [
|
|
602
|
+
R("Primary Badge", -1)
|
|
603
603
|
])]),
|
|
604
604
|
_: 1
|
|
605
605
|
}),
|
|
606
|
-
|
|
607
|
-
default:
|
|
608
|
-
|
|
606
|
+
$(le, { theme: "success" }, {
|
|
607
|
+
default: C(() => [...d[11] || (d[11] = [
|
|
608
|
+
R("Success", -1)
|
|
609
609
|
])]),
|
|
610
610
|
_: 1
|
|
611
611
|
}),
|
|
612
|
-
|
|
613
|
-
default:
|
|
614
|
-
|
|
612
|
+
$(le, { theme: "warning" }, {
|
|
613
|
+
default: C(() => [...d[12] || (d[12] = [
|
|
614
|
+
R("Warning", -1)
|
|
615
615
|
])]),
|
|
616
616
|
_: 1
|
|
617
617
|
})
|
|
618
618
|
]),
|
|
619
|
-
s("div",
|
|
620
|
-
|
|
621
|
-
|
|
619
|
+
s("div", Dt, [
|
|
620
|
+
$(je, { size: "sm" }),
|
|
621
|
+
d[13] || (d[13] = s("span", { class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400" }, "Loading indicator", -1))
|
|
622
622
|
]),
|
|
623
|
-
s("div",
|
|
624
|
-
|
|
623
|
+
s("div", Mt, [
|
|
624
|
+
$(Pe, {
|
|
625
625
|
name: "Theme Test",
|
|
626
626
|
size: "md"
|
|
627
627
|
}),
|
|
628
|
-
|
|
628
|
+
d[14] || (d[14] = s("span", { class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400" }, "Avatar with initials", -1))
|
|
629
629
|
])
|
|
630
630
|
])
|
|
631
631
|
]),
|
|
632
632
|
s("div", null, [
|
|
633
|
-
|
|
633
|
+
d[16] || (d[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)),
|
|
634
634
|
s("div", Tt, [
|
|
635
|
-
(
|
|
635
|
+
(o(), u(U, null, H([50, 100, 200, 300, 400, 500, 600, 700, 800, 900], (f) => s("div", {
|
|
636
636
|
key: f,
|
|
637
637
|
class: "sl-flex-1 sl-h-8 sl-relative sl-group",
|
|
638
|
-
style:
|
|
638
|
+
style: F({ backgroundColor: `rgb(var(--sl-color-primary-${f}-rgb, 128 128 128))` })
|
|
639
639
|
}, [
|
|
640
640
|
s("span", {
|
|
641
|
-
class:
|
|
641
|
+
class: z(["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", f < 500 ? "sl-text-gray-700" : "sl-text-white"])
|
|
642
642
|
}, k(f), 3)
|
|
643
643
|
], 4)), 64))
|
|
644
644
|
])
|
|
645
645
|
])
|
|
646
646
|
]),
|
|
647
|
-
s("div",
|
|
648
|
-
s("div",
|
|
647
|
+
s("div", Bt, [
|
|
648
|
+
s("div", Pt, [
|
|
649
649
|
s("button", {
|
|
650
|
-
onClick:
|
|
650
|
+
onClick: g,
|
|
651
651
|
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"
|
|
652
652
|
}, " Reset to Default "),
|
|
653
|
-
s("div",
|
|
654
|
-
|
|
653
|
+
s("div", jt, [
|
|
654
|
+
$(X, {
|
|
655
655
|
theme: "secondary",
|
|
656
656
|
size: "sm",
|
|
657
657
|
onButtonClick: m
|
|
658
658
|
}, {
|
|
659
|
-
default:
|
|
660
|
-
|
|
659
|
+
default: C(() => [...d[17] || (d[17] = [
|
|
660
|
+
R(" Close ", -1)
|
|
661
661
|
])]),
|
|
662
662
|
_: 1
|
|
663
663
|
}),
|
|
664
|
-
|
|
664
|
+
$(X, {
|
|
665
665
|
theme: "primary",
|
|
666
666
|
size: "sm",
|
|
667
667
|
onButtonClick: b
|
|
668
668
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
669
|
+
default: C(() => [...d[18] || (d[18] = [
|
|
670
|
+
R(" Apply Theme ", -1)
|
|
671
671
|
])]),
|
|
672
672
|
_: 1
|
|
673
673
|
})
|
|
@@ -689,13 +689,13 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
689
689
|
_: 1
|
|
690
690
|
}, 8, ["show"]));
|
|
691
691
|
}
|
|
692
|
-
}),
|
|
692
|
+
}), Mr = /* @__PURE__ */ A(At, [["__scopeId", "data-v-c9b3cc37"]]), Et = {
|
|
693
693
|
viewBox: "0 0 36 36",
|
|
694
694
|
class: "sl-transform -sl-rotate-90 sl-w-full sl-h-full"
|
|
695
|
-
},
|
|
695
|
+
}, Vt = ["stroke-width"], Nt = ["stroke", "stroke-dasharray", "stroke-width"], Ft = {
|
|
696
696
|
key: 0,
|
|
697
697
|
class: "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center"
|
|
698
|
-
},
|
|
698
|
+
}, Tr = /* @__PURE__ */ D({
|
|
699
699
|
__name: "UiRadialProgressBar",
|
|
700
700
|
props: {
|
|
701
701
|
value: { default: 0 },
|
|
@@ -709,7 +709,7 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
709
709
|
const e = t, a = p(() => Math.min(100, Math.max(0, e.value))), l = p(() => ({
|
|
710
710
|
width: `${e.size}px`,
|
|
711
711
|
height: `${e.size}px`
|
|
712
|
-
})),
|
|
712
|
+
})), c = p(() => ({
|
|
713
713
|
primary: "var(--sl-color-primary-600, #3e4b9a)",
|
|
714
714
|
success: "#22c55e",
|
|
715
715
|
// green-500
|
|
@@ -718,33 +718,33 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
718
718
|
danger: "#ef4444"
|
|
719
719
|
// red-500
|
|
720
720
|
})[e.color]), n = p(() => e.size < 48 ? "sl-text-xs sl-font-medium sl-text-slate-700 dark:sl-text-slate-300" : e.size < 80 ? "sl-text-sm sl-font-semibold sl-text-slate-700 dark:sl-text-slate-300" : e.size < 120 ? "sl-text-base sl-font-semibold sl-text-slate-700 dark:sl-text-slate-300" : "sl-text-lg sl-font-bold sl-text-slate-700 dark:sl-text-slate-300");
|
|
721
|
-
return (
|
|
721
|
+
return (r, i) => (o(), u("div", {
|
|
722
722
|
class: "sl-relative sl-inline-flex",
|
|
723
|
-
style:
|
|
723
|
+
style: F(l.value)
|
|
724
724
|
}, [
|
|
725
|
-
(
|
|
725
|
+
(o(), u("svg", Et, [
|
|
726
726
|
s("path", {
|
|
727
727
|
class: "sl-fill-none sl-stroke-gray-200 dark:sl-stroke-slate-600",
|
|
728
728
|
"stroke-width": t.trackWidth,
|
|
729
729
|
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"
|
|
730
|
-
}, null, 8,
|
|
730
|
+
}, null, 8, Vt),
|
|
731
731
|
s("path", {
|
|
732
732
|
class: "sl-fill-none sl-transition-all sl-duration-500 sl-ease-out",
|
|
733
|
-
stroke:
|
|
733
|
+
stroke: c.value,
|
|
734
734
|
"stroke-linecap": "round",
|
|
735
735
|
"stroke-dasharray": `${a.value}, 100`,
|
|
736
736
|
"stroke-width": t.trackWidth,
|
|
737
737
|
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"
|
|
738
|
-
}, null, 8,
|
|
738
|
+
}, null, 8, Nt)
|
|
739
739
|
])),
|
|
740
|
-
t.showLabel || t.label ? (
|
|
740
|
+
t.showLabel || t.label ? (o(), u("div", Ft, [
|
|
741
741
|
s("span", {
|
|
742
|
-
class:
|
|
742
|
+
class: z(n.value)
|
|
743
743
|
}, k(t.label || `${a.value}%`), 3)
|
|
744
|
-
])) :
|
|
744
|
+
])) : w("", !0)
|
|
745
745
|
], 4));
|
|
746
746
|
}
|
|
747
|
-
}),
|
|
747
|
+
}), Br = /* @__PURE__ */ D({
|
|
748
748
|
__name: "AvatarIcon",
|
|
749
749
|
props: {
|
|
750
750
|
size: {},
|
|
@@ -761,7 +761,7 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
761
761
|
"rounded-md": "sl-rounded-md",
|
|
762
762
|
"rounded-lg": "sl-rounded-lg",
|
|
763
763
|
"rounded-full": "sl-rounded-full"
|
|
764
|
-
}[e.rounded || "rounded-full"],
|
|
764
|
+
}[e.rounded || "rounded-full"], c = p(() => [
|
|
765
765
|
"sl-inline-flex",
|
|
766
766
|
"sl-p-1.5",
|
|
767
767
|
`sl-h-${e.size}`,
|
|
@@ -773,41 +773,41 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
773
773
|
e.classes || "sl-text-primary-600 dark:sl-text-primary-400",
|
|
774
774
|
`sl-h-${e.size}`,
|
|
775
775
|
`sl-w-${e.size}`
|
|
776
|
-
]),
|
|
777
|
-
let
|
|
776
|
+
]), r = p(() => {
|
|
777
|
+
let i = "sl-text-xs";
|
|
778
778
|
switch (e.size) {
|
|
779
779
|
case 8:
|
|
780
|
-
|
|
780
|
+
i = "sl-text-sm";
|
|
781
781
|
break;
|
|
782
782
|
case 10:
|
|
783
|
-
|
|
783
|
+
i = "sl-text-base";
|
|
784
784
|
break;
|
|
785
785
|
case 12:
|
|
786
|
-
|
|
786
|
+
i = "sl-text-lg";
|
|
787
787
|
break;
|
|
788
788
|
case 14:
|
|
789
|
-
|
|
789
|
+
i = "sl-text-xl";
|
|
790
790
|
break;
|
|
791
791
|
case 16:
|
|
792
|
-
|
|
792
|
+
i = "sl-text-2xl";
|
|
793
793
|
break;
|
|
794
794
|
}
|
|
795
|
-
return [
|
|
795
|
+
return [i, "sl-font-medium", "sl-leading-none", "sl-text-white"];
|
|
796
796
|
});
|
|
797
|
-
return (
|
|
798
|
-
class:
|
|
799
|
-
style:
|
|
797
|
+
return (i, y) => (o(), u("span", {
|
|
798
|
+
class: z(c.value),
|
|
799
|
+
style: F({ backgroundColor: t.color })
|
|
800
800
|
}, [
|
|
801
|
-
t.iconComponent ? (
|
|
801
|
+
t.iconComponent ? (o(), L(J(t.iconComponent), {
|
|
802
802
|
key: 0,
|
|
803
|
-
class:
|
|
804
|
-
}, null, 8, ["class"])) : (
|
|
803
|
+
class: z(n.value)
|
|
804
|
+
}, null, 8, ["class"])) : (o(), u("span", {
|
|
805
805
|
key: 1,
|
|
806
|
-
class:
|
|
806
|
+
class: z(r.value)
|
|
807
807
|
}, k(t.initials), 3))
|
|
808
808
|
], 6));
|
|
809
809
|
}
|
|
810
|
-
}),
|
|
810
|
+
}), Ut = ["src", "alt"], Pr = /* @__PURE__ */ D({
|
|
811
811
|
__name: "AvatarImage",
|
|
812
812
|
props: {
|
|
813
813
|
size: {},
|
|
@@ -819,57 +819,57 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
819
819
|
},
|
|
820
820
|
emits: ["error"],
|
|
821
821
|
setup(t, { emit: e }) {
|
|
822
|
-
const a =
|
|
823
|
-
const
|
|
824
|
-
if (!
|
|
825
|
-
let
|
|
826
|
-
return
|
|
827
|
-
}),
|
|
828
|
-
const
|
|
829
|
-
if (typeof
|
|
830
|
-
const
|
|
831
|
-
if (
|
|
832
|
-
const
|
|
833
|
-
for (const
|
|
834
|
-
if (
|
|
822
|
+
const a = Q(() => import("./AvatarIcon-kcEI0AWe.js")), l = e, c = t, n = p(() => c.image && c.image.url && c.image.url.startsWith("http")), r = p(() => {
|
|
823
|
+
const x = c.image?.public_id;
|
|
824
|
+
if (!x || typeof x != "string") return "";
|
|
825
|
+
let M = x.replace(/^v\d+\//, "");
|
|
826
|
+
return M = M.replace(/\.(png|jpg|jpeg|webp|gif)$/i, ""), M;
|
|
827
|
+
}), i = p(() => {
|
|
828
|
+
const x = r.value;
|
|
829
|
+
if (typeof x != "string") return !1;
|
|
830
|
+
const M = x.trim();
|
|
831
|
+
if (M.length === 0 || M.length < 8) return !1;
|
|
832
|
+
const N = [/^https?:\/\//, /\s+/, /^\//, /\/$/, /^[0-9a-f]{3,8}$/i];
|
|
833
|
+
for (const O of N)
|
|
834
|
+
if (O.test(M))
|
|
835
835
|
return !1;
|
|
836
836
|
return !0;
|
|
837
|
-
}),
|
|
838
|
-
|
|
839
|
-
},
|
|
837
|
+
}), y = (x) => {
|
|
838
|
+
c.image?.public_id && console.warn(`[AvatarImage] Failed to load image with public_id: ${c.image.public_id}`, x), l("error", x);
|
|
839
|
+
}, g = p(() => String(c.size)), m = p(() => Number(c.size)), b = p(() => `${Number(c.size) * 4}`), v = p(() => `${Number(c.size) * 4}`), d = {
|
|
840
840
|
square: "",
|
|
841
841
|
rounded: "sl-rounded",
|
|
842
842
|
"rounded-md": "sl-rounded-md",
|
|
843
843
|
"rounded-lg": "sl-rounded-lg",
|
|
844
844
|
"rounded-full": "sl-rounded-full"
|
|
845
|
-
}, f = p(() =>
|
|
846
|
-
`sl-h-${
|
|
847
|
-
`sl-w-${
|
|
845
|
+
}, f = p(() => d[c.rounded || "rounded-full"]), h = p(() => [
|
|
846
|
+
`sl-h-${c.size}`,
|
|
847
|
+
`sl-w-${c.size}`,
|
|
848
848
|
f.value,
|
|
849
|
-
|
|
850
|
-
]),
|
|
851
|
-
(
|
|
849
|
+
c.ring ?? ""
|
|
850
|
+
]), _ = p(() => [
|
|
851
|
+
(x) => x.resize(`c_thumb,g_face,w_${parseInt(g.value) * 4},h_${parseInt(g.value) * 4},z_0.8`).roundCorners(c.rounded === "rounded-full" ? "max" : "20")
|
|
852
852
|
]);
|
|
853
|
-
return (
|
|
854
|
-
n.value && t.image ? (
|
|
853
|
+
return (x, M) => (o(), u("div", null, [
|
|
854
|
+
n.value && t.image ? (o(), u("img", {
|
|
855
855
|
key: 0,
|
|
856
856
|
src: t.image.url,
|
|
857
857
|
alt: t.altText,
|
|
858
|
-
class:
|
|
859
|
-
onError:
|
|
860
|
-
}, null, 42,
|
|
858
|
+
class: z([h.value, "sl-object-cover"]),
|
|
859
|
+
onError: y
|
|
860
|
+
}, null, 42, Ut)) : t.image && i.value ? (o(), L(Ne, {
|
|
861
861
|
key: 1,
|
|
862
|
-
class:
|
|
863
|
-
"public-id":
|
|
864
|
-
transformations:
|
|
862
|
+
class: z(h.value),
|
|
863
|
+
"public-id": r.value,
|
|
864
|
+
transformations: _.value,
|
|
865
865
|
height: b.value,
|
|
866
866
|
width: v.value,
|
|
867
867
|
skeleton: t.skeleton || "user",
|
|
868
868
|
pulse: !1,
|
|
869
|
-
onError:
|
|
870
|
-
}, null, 8, ["class", "public-id", "transformations", "height", "width", "skeleton"])) : (
|
|
869
|
+
onError: y
|
|
870
|
+
}, null, 8, ["class", "public-id", "transformations", "height", "width", "skeleton"])) : (o(), L(I(a), {
|
|
871
871
|
key: 2,
|
|
872
|
-
"icon-component":
|
|
872
|
+
"icon-component": I(Ae),
|
|
873
873
|
size: m.value,
|
|
874
874
|
color: "sl-bg-transparent",
|
|
875
875
|
initials: "N/A",
|
|
@@ -877,7 +877,7 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
877
877
|
}, null, 8, ["icon-component", "size"]))
|
|
878
878
|
]));
|
|
879
879
|
}
|
|
880
|
-
}),
|
|
880
|
+
}), jr = /* @__PURE__ */ D({
|
|
881
881
|
__name: "AvatarInitials",
|
|
882
882
|
props: {
|
|
883
883
|
size: {},
|
|
@@ -887,20 +887,20 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
887
887
|
textColor: {}
|
|
888
888
|
},
|
|
889
889
|
setup(t) {
|
|
890
|
-
const e = t, { size: a, color: l, initials:
|
|
890
|
+
const e = t, { size: a, color: l, initials: c, rounded: n, textColor: r } = Ie(e), i = {
|
|
891
891
|
square: "",
|
|
892
892
|
rounded: "sl-rounded",
|
|
893
893
|
"rounded-md": "sl-rounded-md",
|
|
894
894
|
"rounded-lg": "sl-rounded-lg",
|
|
895
895
|
"rounded-full": "sl-rounded-full"
|
|
896
|
-
},
|
|
896
|
+
}, y = p(() => i[n?.value || "rounded-full"]), g = p(() => [
|
|
897
897
|
"sl-inline-flex",
|
|
898
898
|
`sl-h-${a.value}`,
|
|
899
899
|
`sl-w-${a.value}`,
|
|
900
900
|
"sl-items-center",
|
|
901
901
|
"sl-justify-center",
|
|
902
902
|
l.value,
|
|
903
|
-
|
|
903
|
+
y.value
|
|
904
904
|
]), m = p(() => {
|
|
905
905
|
let b = "sl-text-xs";
|
|
906
906
|
if (a.value > 16)
|
|
@@ -923,17 +923,17 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
923
923
|
b = "sl-text-xl";
|
|
924
924
|
break;
|
|
925
925
|
}
|
|
926
|
-
return [b, "sl-font-medium", "sl-leading-none",
|
|
926
|
+
return [b, "sl-font-medium", "sl-leading-none", r?.value || "sl-text-white"];
|
|
927
927
|
});
|
|
928
|
-
return (b, v) => (
|
|
929
|
-
class:
|
|
928
|
+
return (b, v) => (o(), u("span", {
|
|
929
|
+
class: z(g.value)
|
|
930
930
|
}, [
|
|
931
931
|
s("span", {
|
|
932
|
-
class:
|
|
933
|
-
}, k(
|
|
932
|
+
class: z(m.value)
|
|
933
|
+
}, k(I(c)), 3)
|
|
934
934
|
], 2));
|
|
935
935
|
}
|
|
936
|
-
}),
|
|
936
|
+
}), Rt = { class: "sl-group sl-block sl-flex-shrink-0" }, Ht = { class: "sl-flex sl-items-center" }, Ot = { class: "sl-ml-3 sl-text-left" }, Wt = { class: "sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-200 group-hover:sl-text-gray-800 dark:group-hover:sl-text-white" }, Gt = { class: "sl-text-xs sl-font-medium sl-text-gray-500 dark:sl-text-gray-400 group-hover:sl-text-gray-700 dark:group-hover:sl-text-gray-300" }, Ar = /* @__PURE__ */ D({
|
|
937
937
|
__name: "AvatarWithText",
|
|
938
938
|
props: {
|
|
939
939
|
/** Which avatar component to use */
|
|
@@ -975,54 +975,54 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
975
975
|
iconComponent: e.iconComponent,
|
|
976
976
|
rounded: e.rounded,
|
|
977
977
|
skeleton: e.skeleton
|
|
978
|
-
})), l = {},
|
|
978
|
+
})), l = {}, c = (n) => {
|
|
979
979
|
if (l[n])
|
|
980
980
|
return l[n];
|
|
981
|
-
let
|
|
981
|
+
let r;
|
|
982
982
|
switch (n) {
|
|
983
983
|
case "AvatarImage":
|
|
984
|
-
|
|
984
|
+
r = Q(() => import("./AvatarImage-YFR2etb8.js"));
|
|
985
985
|
break;
|
|
986
986
|
case "AvatarIcon":
|
|
987
|
-
|
|
987
|
+
r = Q(() => import("./AvatarIcon-kcEI0AWe.js"));
|
|
988
988
|
break;
|
|
989
989
|
case "AvatarInitials":
|
|
990
|
-
|
|
990
|
+
r = Q(() => import("./AvatarInitials-B7wCnBX9.js"));
|
|
991
991
|
break;
|
|
992
992
|
default:
|
|
993
993
|
return null;
|
|
994
994
|
}
|
|
995
|
-
return l[n] =
|
|
995
|
+
return l[n] = r, r;
|
|
996
996
|
};
|
|
997
|
-
return (n,
|
|
998
|
-
s("div",
|
|
997
|
+
return (n, r) => (o(), u("div", Rt, [
|
|
998
|
+
s("div", Ht, [
|
|
999
999
|
s("div", null, [
|
|
1000
|
-
(
|
|
1000
|
+
(o(), L(J(c(t.componentName)), Se({ class: "sl-inline-block" }, a.value), null, 16))
|
|
1001
1001
|
]),
|
|
1002
|
-
s("div",
|
|
1003
|
-
s("p",
|
|
1004
|
-
s("p",
|
|
1002
|
+
s("div", Ot, [
|
|
1003
|
+
s("p", Wt, k(t.title), 1),
|
|
1004
|
+
s("p", Gt, k(t.subtitle), 1)
|
|
1005
1005
|
])
|
|
1006
1006
|
])
|
|
1007
1007
|
]));
|
|
1008
1008
|
}
|
|
1009
|
-
}),
|
|
1009
|
+
}), qt = { class: "sl-w-full" }, Yt = { class: "sl-border-b sl-border-gray-200 dark:sl-border-gray-700 sl-py-5 sl-flex sl-justify-between" }, Kt = { class: "sl-text-base sl-font-semibold sl-leading-6 sl-text-gray-800 dark:sl-text-gray-200" }, Zt = {
|
|
1010
1010
|
key: 0,
|
|
1011
1011
|
class: "sl-text-xs sl-leading-6 sl-text-gray-500 dark:sl-text-gray-400"
|
|
1012
|
-
},
|
|
1012
|
+
}, Jt = {
|
|
1013
1013
|
key: 0,
|
|
1014
1014
|
role: "list",
|
|
1015
1015
|
class: "sl-divide-y sl-divide-gray-100 dark:sl-divide-gray-700"
|
|
1016
|
-
},
|
|
1016
|
+
}, Xt = {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
class: "sl-text-sm sl-font-semibold sl-leading-6 sl-text-gray-800 dark:sl-text-gray-200"
|
|
1019
|
-
},
|
|
1019
|
+
}, Qt = ["tabindex", "onClick", "onKeydown"], es = { class: "sl-col-span-12 sm:sl-col-span-7" }, ts = { class: "sl-py-1 sl-text-sm sl-leading-5 sl-text-gray-700 dark:sl-text-gray-300" }, ss = { class: "sl-col-span-12 sm:sl-col-span-5 sl-flex sl-justify-end sl-items-center" }, ls = {
|
|
1020
1020
|
key: 0,
|
|
1021
1021
|
class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400"
|
|
1022
|
-
},
|
|
1022
|
+
}, as = {
|
|
1023
1023
|
key: 1,
|
|
1024
1024
|
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"
|
|
1025
|
-
},
|
|
1025
|
+
}, os = /* @__PURE__ */ D({
|
|
1026
1026
|
__name: "CollectionItemList",
|
|
1027
1027
|
props: {
|
|
1028
1028
|
items: { default: () => [] },
|
|
@@ -1037,80 +1037,80 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1037
1037
|
},
|
|
1038
1038
|
emits: ["select"],
|
|
1039
1039
|
setup(t, { emit: e }) {
|
|
1040
|
-
const a = t, l = e,
|
|
1040
|
+
const a = t, l = e, c = p(() => a.items && a.items.length > 0), n = p(() => {
|
|
1041
1041
|
if (!a.items) return {};
|
|
1042
1042
|
if (!a.groupBy)
|
|
1043
1043
|
return { "": a.items };
|
|
1044
1044
|
const v = {};
|
|
1045
|
-
return a.items.forEach((
|
|
1046
|
-
const f =
|
|
1047
|
-
v[
|
|
1045
|
+
return a.items.forEach((d) => {
|
|
1046
|
+
const f = r(d, a.groupBy), h = i(f);
|
|
1047
|
+
v[h] || (v[h] = []), v[h].push(d);
|
|
1048
1048
|
}), v;
|
|
1049
|
-
}),
|
|
1049
|
+
}), r = (v, d) => d.split(".").reduce((f, h) => {
|
|
1050
1050
|
if (f && typeof f == "object")
|
|
1051
|
-
return f[
|
|
1052
|
-
}, v),
|
|
1051
|
+
return f[h];
|
|
1052
|
+
}, v), i = (v) => v == null ? "Other" : typeof v == "object" && v !== null && "name" in v ? v.name : String(v), y = (v) => {
|
|
1053
1053
|
if (a.primaryField) {
|
|
1054
|
-
const
|
|
1055
|
-
return typeof
|
|
1054
|
+
const d = r(v, a.primaryField);
|
|
1055
|
+
return typeof d == "object" && d !== null && "name" in d ? d.name : d ? String(d) : "";
|
|
1056
1056
|
}
|
|
1057
1057
|
return v.id;
|
|
1058
|
-
},
|
|
1058
|
+
}, g = (v) => {
|
|
1059
1059
|
if (!a.secondaryField) return "";
|
|
1060
|
-
const
|
|
1061
|
-
return typeof
|
|
1060
|
+
const d = r(v, a.secondaryField);
|
|
1061
|
+
return typeof d == "object" && d !== null && "name" in d ? d.name : d ? String(d) : "";
|
|
1062
1062
|
}, m = (v) => a.selected ? v.id === a.selected.id : !1, b = (v) => {
|
|
1063
1063
|
a.canEdit && l("select", v);
|
|
1064
1064
|
};
|
|
1065
|
-
return (v,
|
|
1066
|
-
s("div",
|
|
1067
|
-
s("h3",
|
|
1068
|
-
t.canEdit ? (
|
|
1065
|
+
return (v, d) => (o(), u("div", qt, [
|
|
1066
|
+
s("div", Yt, [
|
|
1067
|
+
s("h3", Kt, k(t.title), 1),
|
|
1068
|
+
t.canEdit ? (o(), u("p", Zt, " Select an item to edit ")) : w("", !0)
|
|
1069
1069
|
]),
|
|
1070
|
-
|
|
1071
|
-
(
|
|
1072
|
-
key: String(
|
|
1070
|
+
c.value ? (o(), u("ul", Jt, [
|
|
1071
|
+
(o(!0), u(U, null, H(n.value, (f, h) => (o(), u("li", {
|
|
1072
|
+
key: String(h),
|
|
1073
1073
|
class: "sl-gap-x-6 sl-py-5 sl-items-center sl-space-y-3"
|
|
1074
1074
|
}, [
|
|
1075
|
-
t.groupBy ? (
|
|
1076
|
-
(
|
|
1077
|
-
key:
|
|
1078
|
-
class:
|
|
1075
|
+
t.groupBy ? (o(), u("p", Xt, k(i(h)), 1)) : w("", !0),
|
|
1076
|
+
(o(!0), u(U, null, H(f, (_, x) => (o(), u("div", {
|
|
1077
|
+
key: _.id || x,
|
|
1078
|
+
class: z([
|
|
1079
1079
|
"sl-grid sl-grid-cols-12 sl-gap-x-4 sl-p-2 sl-rounded-md sl-transition-all",
|
|
1080
1080
|
t.canEdit && "hover:sl-ring-1 hover:sl-ring-primary-500 hover:sl-ring-offset-2 sl-cursor-pointer",
|
|
1081
|
-
m(
|
|
1081
|
+
m(_) && "sl-ring-1 sl-ring-primary-600 sl-ring-offset-2 sl-bg-white dark:sl-bg-gray-800"
|
|
1082
1082
|
]),
|
|
1083
1083
|
role: "button",
|
|
1084
1084
|
tabindex: t.canEdit ? 0 : -1,
|
|
1085
|
-
onClick: (
|
|
1085
|
+
onClick: (M) => b(_),
|
|
1086
1086
|
onKeydown: [
|
|
1087
|
-
de((
|
|
1088
|
-
de(
|
|
1087
|
+
de((M) => b(_), ["enter"]),
|
|
1088
|
+
de(he((M) => b(_), ["prevent"]), ["space"])
|
|
1089
1089
|
]
|
|
1090
1090
|
}, [
|
|
1091
|
-
s("div",
|
|
1092
|
-
|
|
1093
|
-
s("p",
|
|
1091
|
+
s("div", es, [
|
|
1092
|
+
S(v.$slots, "item-content", { item: _ }, () => [
|
|
1093
|
+
s("p", ts, k(y(_)), 1)
|
|
1094
1094
|
])
|
|
1095
1095
|
]),
|
|
1096
|
-
s("div",
|
|
1097
|
-
|
|
1098
|
-
|
|
1096
|
+
s("div", ss, [
|
|
1097
|
+
S(v.$slots, "item-secondary", { item: _ }, () => [
|
|
1098
|
+
g(_) ? (o(), u("span", ls, k(g(_)), 1)) : w("", !0)
|
|
1099
1099
|
])
|
|
1100
1100
|
])
|
|
1101
|
-
], 42,
|
|
1101
|
+
], 42, Qt))), 128))
|
|
1102
1102
|
]))), 128))
|
|
1103
|
-
])) : (
|
|
1104
|
-
|
|
1105
|
-
|
|
1103
|
+
])) : (o(), u("div", as, [
|
|
1104
|
+
S(v.$slots, "empty", {}, () => [
|
|
1105
|
+
R(k(t.emptyMessage), 1)
|
|
1106
1106
|
])
|
|
1107
1107
|
]))
|
|
1108
1108
|
]));
|
|
1109
1109
|
}
|
|
1110
|
-
}),
|
|
1110
|
+
}), rs = { class: "sl-collection-editor sl-flex sl-flex-row sl-flex-wrap sl--mx-3" }, ns = { class: "sl-w-full sm:sl-w-1/2 sl-px-3 sl-flex sl-flex-col" }, is = { class: "sl-mb-4 sl-flex sl-justify-between sl-items-center" }, ds = { class: "sl-flex sl-gap-2" }, cs = {
|
|
1111
1111
|
key: 0,
|
|
1112
1112
|
class: "sl-text-xs sl-uppercase sl-text-gray-500 dark:sl-text-gray-400 sl-truncate sl-text-right sl-font-semibold"
|
|
1113
|
-
},
|
|
1113
|
+
}, us = { class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700 sl-pt-4" }, ms = { class: "sl-w-full sm:sl-w-1/2 sl-px-3" }, fs = /* @__PURE__ */ D({
|
|
1114
1114
|
__name: "CollectionEditor",
|
|
1115
1115
|
props: {
|
|
1116
1116
|
name: {},
|
|
@@ -1130,21 +1130,21 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1130
1130
|
},
|
|
1131
1131
|
emits: ["update:modelValue", "item-added", "item-updated", "item-deleted", "item-selected", "update:form", "update:validity"],
|
|
1132
1132
|
setup(t, { expose: e, emit: a }) {
|
|
1133
|
-
const l = t,
|
|
1134
|
-
|
|
1133
|
+
const l = t, c = a, n = (T, ...B) => {
|
|
1134
|
+
c(T, ...B);
|
|
1135
1135
|
}, {
|
|
1136
|
-
items:
|
|
1137
|
-
activeItem:
|
|
1138
|
-
formValues:
|
|
1139
|
-
formRef:
|
|
1136
|
+
items: r,
|
|
1137
|
+
activeItem: i,
|
|
1138
|
+
formValues: y,
|
|
1139
|
+
formRef: g,
|
|
1140
1140
|
buttonAttributes: m,
|
|
1141
1141
|
showDeleteConfirm: b,
|
|
1142
1142
|
selectItem: v,
|
|
1143
|
-
handleButtonClick:
|
|
1143
|
+
handleButtonClick: d,
|
|
1144
1144
|
handleFormSubmit: f,
|
|
1145
|
-
handleFormUpdate:
|
|
1146
|
-
confirmDelete:
|
|
1147
|
-
cancelDelete:
|
|
1145
|
+
handleFormUpdate: h,
|
|
1146
|
+
confirmDelete: _,
|
|
1147
|
+
cancelDelete: x
|
|
1148
1148
|
} = Te(
|
|
1149
1149
|
{
|
|
1150
1150
|
initialItems: l.modelValue,
|
|
@@ -1156,91 +1156,91 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1156
1156
|
);
|
|
1157
1157
|
oe(
|
|
1158
1158
|
() => l.modelValue,
|
|
1159
|
-
(
|
|
1160
|
-
|
|
1159
|
+
(T) => {
|
|
1160
|
+
T && JSON.stringify(T) !== JSON.stringify(r.value) && (r.value = T.map((B) => l.explodeItem(B)));
|
|
1161
1161
|
},
|
|
1162
1162
|
{ deep: !0 }
|
|
1163
1163
|
);
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1166
|
-
},
|
|
1167
|
-
f(
|
|
1168
|
-
},
|
|
1169
|
-
|
|
1170
|
-
},
|
|
1171
|
-
|
|
1164
|
+
const M = p(() => r.value), N = (T) => {
|
|
1165
|
+
d(T);
|
|
1166
|
+
}, O = (T) => {
|
|
1167
|
+
f(T);
|
|
1168
|
+
}, W = (T) => {
|
|
1169
|
+
h(T), c("update:form", T);
|
|
1170
|
+
}, j = () => {
|
|
1171
|
+
_();
|
|
1172
1172
|
};
|
|
1173
1173
|
return e({
|
|
1174
|
-
getItems: () =>
|
|
1174
|
+
getItems: () => r.value.map((T) => l.implodeItem(T)),
|
|
1175
1175
|
resetForm: () => {
|
|
1176
|
-
|
|
1176
|
+
y.value = { ...l.emptyFormValues }, i.value = null;
|
|
1177
1177
|
}
|
|
1178
|
-
}), (
|
|
1179
|
-
s("div",
|
|
1180
|
-
s("div",
|
|
1181
|
-
s("span",
|
|
1182
|
-
|
|
1183
|
-
onButtonClicked:
|
|
1184
|
-
"button-attributes":
|
|
1178
|
+
}), (T, B) => (o(), u("div", rs, [
|
|
1179
|
+
s("div", ns, [
|
|
1180
|
+
s("div", is, [
|
|
1181
|
+
s("span", ds, [
|
|
1182
|
+
$(Fe, {
|
|
1183
|
+
onButtonClicked: N,
|
|
1184
|
+
"button-attributes": I(m)
|
|
1185
1185
|
}, null, 8, ["button-attributes"])
|
|
1186
1186
|
]),
|
|
1187
|
-
t.label ? (
|
|
1187
|
+
t.label ? (o(), u("span", cs, k(t.label), 1)) : w("", !0)
|
|
1188
1188
|
]),
|
|
1189
|
-
s("div",
|
|
1190
|
-
(
|
|
1189
|
+
s("div", us, [
|
|
1190
|
+
(o(), L(Ue, {
|
|
1191
1191
|
ref_key: "formRef",
|
|
1192
|
-
ref:
|
|
1192
|
+
ref: g,
|
|
1193
1193
|
schema: t.schema,
|
|
1194
|
-
"form-values":
|
|
1194
|
+
"form-values": I(y),
|
|
1195
1195
|
"form-name": t.name,
|
|
1196
1196
|
"box-shadow": !1,
|
|
1197
|
-
key:
|
|
1198
|
-
onSubmitForm:
|
|
1199
|
-
"onUpdate:form":
|
|
1197
|
+
key: I(y).id,
|
|
1198
|
+
onSubmitForm: O,
|
|
1199
|
+
"onUpdate:form": W
|
|
1200
1200
|
}, null, 8, ["schema", "form-values", "form-name"]))
|
|
1201
1201
|
])
|
|
1202
1202
|
]),
|
|
1203
|
-
s("div",
|
|
1204
|
-
|
|
1205
|
-
items:
|
|
1206
|
-
selected:
|
|
1207
|
-
onSelect:
|
|
1203
|
+
s("div", ms, [
|
|
1204
|
+
S(T.$slots, "list", {
|
|
1205
|
+
items: M.value,
|
|
1206
|
+
selected: I(i),
|
|
1207
|
+
onSelect: I(v)
|
|
1208
1208
|
}, () => [
|
|
1209
|
-
|
|
1210
|
-
items:
|
|
1211
|
-
selected:
|
|
1209
|
+
$(os, {
|
|
1210
|
+
items: M.value,
|
|
1211
|
+
selected: I(i),
|
|
1212
1212
|
"can-edit": !0,
|
|
1213
1213
|
title: t.title,
|
|
1214
1214
|
"group-by": t.groupBy,
|
|
1215
1215
|
"primary-field": t.primaryField,
|
|
1216
1216
|
"secondary-field": t.secondaryField,
|
|
1217
1217
|
"empty-message": t.emptyMessage,
|
|
1218
|
-
onSelect:
|
|
1218
|
+
onSelect: I(v)
|
|
1219
1219
|
}, {
|
|
1220
|
-
"item-content":
|
|
1221
|
-
|
|
1220
|
+
"item-content": C(({ item: E }) => [
|
|
1221
|
+
S(T.$slots, "item-content", { item: E }, void 0, !0)
|
|
1222
1222
|
]),
|
|
1223
|
-
"item-secondary":
|
|
1224
|
-
|
|
1223
|
+
"item-secondary": C(({ item: E }) => [
|
|
1224
|
+
S(T.$slots, "item-secondary", { item: E }, void 0, !0)
|
|
1225
1225
|
]),
|
|
1226
|
-
empty:
|
|
1227
|
-
|
|
1226
|
+
empty: C(() => [
|
|
1227
|
+
S(T.$slots, "empty", {}, void 0, !0)
|
|
1228
1228
|
]),
|
|
1229
1229
|
_: 3
|
|
1230
1230
|
}, 8, ["items", "selected", "title", "group-by", "primary-field", "secondary-field", "empty-message", "onSelect"])
|
|
1231
1231
|
], !0)
|
|
1232
1232
|
]),
|
|
1233
|
-
|
|
1233
|
+
I(b) ? (o(), L(Re, {
|
|
1234
1234
|
key: 0,
|
|
1235
1235
|
title: t.deleteConfirmTitle,
|
|
1236
1236
|
description: t.deleteConfirmMessage,
|
|
1237
1237
|
action: "Delete",
|
|
1238
|
-
onActionClicked:
|
|
1239
|
-
onClose:
|
|
1240
|
-
}, null, 8, ["title", "description", "onClose"])) :
|
|
1238
|
+
onActionClicked: j,
|
|
1239
|
+
onClose: I(x)
|
|
1240
|
+
}, null, 8, ["title", "description", "onClose"])) : w("", !0)
|
|
1241
1241
|
]));
|
|
1242
1242
|
}
|
|
1243
|
-
}), ne = /* @__PURE__ */ A(
|
|
1243
|
+
}), ne = /* @__PURE__ */ A(fs, [["__scopeId", "data-v-64df06ec"]]), ps = { class: "sl-py-1 sl-text-sm sl-leading-5 sl-text-gray-600 dark:sl-text-gray-300" }, gs = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, Er = /* @__PURE__ */ D({
|
|
1244
1244
|
__name: "OrganizationsEditor",
|
|
1245
1245
|
props: {
|
|
1246
1246
|
name: {},
|
|
@@ -1251,7 +1251,7 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1251
1251
|
},
|
|
1252
1252
|
emits: ["update:modelValue", "item-added", "item-updated", "item-deleted"],
|
|
1253
1253
|
setup(t, { emit: e }) {
|
|
1254
|
-
const a = t, l = e,
|
|
1254
|
+
const a = t, l = e, c = {
|
|
1255
1255
|
id: re(),
|
|
1256
1256
|
organization: null,
|
|
1257
1257
|
position: null,
|
|
@@ -1323,74 +1323,74 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1323
1323
|
innerLabel: "End Date"
|
|
1324
1324
|
}
|
|
1325
1325
|
]
|
|
1326
|
-
})),
|
|
1327
|
-
const f = typeof
|
|
1326
|
+
})), r = (d, f) => f ? d.find((h) => h.name === f) || { id: f, name: f } : null, i = (d) => {
|
|
1327
|
+
const f = typeof d.organization == "object" && d.organization?.name ? d.organization.name : d.organization, h = typeof d.position == "object" && d.position?.name ? d.position.name : d.position;
|
|
1328
1328
|
return {
|
|
1329
|
-
...
|
|
1330
|
-
organization:
|
|
1331
|
-
position:
|
|
1329
|
+
...d,
|
|
1330
|
+
organization: r(a.organizations, f) || d.organization,
|
|
1331
|
+
position: r(a.positions, h) || d.position
|
|
1332
1332
|
};
|
|
1333
|
-
},
|
|
1334
|
-
...
|
|
1335
|
-
organization: typeof
|
|
1336
|
-
position: typeof
|
|
1337
|
-
}),
|
|
1333
|
+
}, y = (d) => ({
|
|
1334
|
+
...d,
|
|
1335
|
+
organization: typeof d.organization == "object" && d.organization?.name ? d.organization.name : d.organization,
|
|
1336
|
+
position: typeof d.position == "object" && d.position?.name ? d.position.name : d.position
|
|
1337
|
+
}), g = (d) => {
|
|
1338
1338
|
const f = [];
|
|
1339
|
-
if (
|
|
1340
|
-
const
|
|
1341
|
-
|
|
1339
|
+
if (d.position_prefix && f.push(d.position_prefix), d.position) {
|
|
1340
|
+
const h = typeof d.position == "object" && d.position?.name ? d.position.name : d.position;
|
|
1341
|
+
h && f.push(h);
|
|
1342
1342
|
}
|
|
1343
|
-
return
|
|
1344
|
-
}, m = (
|
|
1345
|
-
if (!
|
|
1346
|
-
if (
|
|
1347
|
-
if (typeof
|
|
1348
|
-
const f =
|
|
1349
|
-
return
|
|
1343
|
+
return d.position_suffix && f.push(d.position_suffix), f.join(" ") || "No position";
|
|
1344
|
+
}, m = (d) => {
|
|
1345
|
+
if (!d) return null;
|
|
1346
|
+
if (d instanceof Date) return K(d) ? d : null;
|
|
1347
|
+
if (typeof d == "string") {
|
|
1348
|
+
const f = ee(d);
|
|
1349
|
+
return K(f) ? f : null;
|
|
1350
1350
|
}
|
|
1351
1351
|
return null;
|
|
1352
|
-
}, b = (
|
|
1353
|
-
const
|
|
1354
|
-
if (
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1352
|
+
}, b = (d, f) => {
|
|
1353
|
+
const h = m(d), _ = m(f), x = [];
|
|
1354
|
+
if (h && x.push(Y(h, "MMM yyyy")), x.push("–"), _ ? x.push(Y(_, "MMM yyyy")) : x.push("Present"), h) {
|
|
1355
|
+
const M = _ || /* @__PURE__ */ new Date(), N = se(M, h), O = be(M, h) % 12, W = [];
|
|
1356
|
+
N > 0 && W.push(`${N}y`), (O > 0 || N === 0) && W.push(`${O || 1}mo`), W.length > 0 && x.push("•", W.join(" "));
|
|
1357
1357
|
}
|
|
1358
|
-
return
|
|
1359
|
-
}, v = (
|
|
1360
|
-
l("update:modelValue",
|
|
1358
|
+
return x.join(" ");
|
|
1359
|
+
}, v = (d) => {
|
|
1360
|
+
l("update:modelValue", d);
|
|
1361
1361
|
};
|
|
1362
|
-
return (
|
|
1362
|
+
return (d, f) => (o(), L(ne, {
|
|
1363
1363
|
name: t.name,
|
|
1364
1364
|
"model-value": t.modelValue,
|
|
1365
1365
|
schema: n.value,
|
|
1366
|
-
"empty-form-values":
|
|
1366
|
+
"empty-form-values": c,
|
|
1367
1367
|
label: t.label,
|
|
1368
1368
|
title: "Organizations",
|
|
1369
1369
|
"group-by": "organization",
|
|
1370
1370
|
"primary-field": "position",
|
|
1371
|
-
"explode-item":
|
|
1372
|
-
"implode-item":
|
|
1371
|
+
"explode-item": i,
|
|
1372
|
+
"implode-item": y,
|
|
1373
1373
|
"delete-confirm-title": "Remove Position",
|
|
1374
1374
|
"delete-confirm-message": "Are you sure you want to remove this position? You will need to save your changes for this to take effect.",
|
|
1375
1375
|
"empty-message": "No organizations found. Click 'Add' to create one.",
|
|
1376
1376
|
"onUpdate:modelValue": v,
|
|
1377
|
-
onItemAdded: f[0] || (f[0] = (
|
|
1378
|
-
onItemUpdated: f[1] || (f[1] = (
|
|
1379
|
-
onItemDeleted: f[2] || (f[2] = (
|
|
1377
|
+
onItemAdded: f[0] || (f[0] = (h) => l("item-added", h)),
|
|
1378
|
+
onItemUpdated: f[1] || (f[1] = (h) => l("item-updated", h)),
|
|
1379
|
+
onItemDeleted: f[2] || (f[2] = (h) => l("item-deleted", h))
|
|
1380
1380
|
}, {
|
|
1381
|
-
"item-content":
|
|
1382
|
-
s("p",
|
|
1381
|
+
"item-content": C(({ item: h }) => [
|
|
1382
|
+
s("p", ps, k(g(h)), 1)
|
|
1383
1383
|
]),
|
|
1384
|
-
"item-secondary":
|
|
1385
|
-
s("span",
|
|
1384
|
+
"item-secondary": C(({ item: h }) => [
|
|
1385
|
+
s("span", gs, k(b(h.start_date, h.end_date)), 1)
|
|
1386
1386
|
]),
|
|
1387
1387
|
_: 1
|
|
1388
1388
|
}, 8, ["name", "model-value", "schema", "label"]));
|
|
1389
1389
|
}
|
|
1390
|
-
}),
|
|
1390
|
+
}), hs = { class: "sl-flex sl-items-center sl-gap-3" }, ys = { 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" }, xs = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100" }, bs = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, vs = {
|
|
1391
1391
|
key: 0,
|
|
1392
1392
|
class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400"
|
|
1393
|
-
},
|
|
1393
|
+
}, Vr = /* @__PURE__ */ D({
|
|
1394
1394
|
__name: "RelatedNamesEditor",
|
|
1395
1395
|
props: {
|
|
1396
1396
|
name: {},
|
|
@@ -1408,7 +1408,7 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1408
1408
|
},
|
|
1409
1409
|
emits: ["update:modelValue", "item-added", "item-updated", "item-deleted"],
|
|
1410
1410
|
setup(t, { emit: e }) {
|
|
1411
|
-
const a = t, l = e,
|
|
1411
|
+
const a = t, l = e, c = {
|
|
1412
1412
|
id: re(),
|
|
1413
1413
|
first_name: "",
|
|
1414
1414
|
last_name: "",
|
|
@@ -1455,69 +1455,69 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1455
1455
|
innerLabel: "Birthday"
|
|
1456
1456
|
}
|
|
1457
1457
|
]
|
|
1458
|
-
})),
|
|
1459
|
-
const
|
|
1458
|
+
})), r = (f, h) => h ? f.find((_) => _.name === h) || { id: h, name: h } : null, i = (f) => {
|
|
1459
|
+
const h = typeof f.label == "object" && f.label?.name ? f.label.name : f.label;
|
|
1460
1460
|
return {
|
|
1461
1461
|
...f,
|
|
1462
|
-
label:
|
|
1462
|
+
label: r(a.labels, h) || f.label
|
|
1463
1463
|
};
|
|
1464
|
-
},
|
|
1464
|
+
}, y = (f) => ({
|
|
1465
1465
|
...f,
|
|
1466
1466
|
label: typeof f.label == "object" && f.label?.name ? f.label.name : f.label
|
|
1467
|
-
}),
|
|
1467
|
+
}), g = (f) => {
|
|
1468
1468
|
if (f.name) return f.name;
|
|
1469
|
-
const
|
|
1470
|
-
return f.first_name &&
|
|
1469
|
+
const h = [];
|
|
1470
|
+
return f.first_name && h.push(f.first_name), f.last_name && h.push(f.last_name), h.join(" ") || "Unknown";
|
|
1471
1471
|
}, m = (f) => {
|
|
1472
|
-
const
|
|
1473
|
-
return
|
|
1472
|
+
const h = g(f), _ = h.split(" ").filter(Boolean);
|
|
1473
|
+
return _.length >= 2 ? `${_[0][0]}${_[_.length - 1][0]}`.toUpperCase() : h.substring(0, 2).toUpperCase();
|
|
1474
1474
|
}, b = (f) => f.label ? typeof f.label == "string" ? f.label : f.label.name || "" : f.relationship || "", v = (f) => {
|
|
1475
1475
|
if (!f) return "";
|
|
1476
|
-
let
|
|
1477
|
-
if (typeof f == "string" ?
|
|
1478
|
-
const
|
|
1479
|
-
return `${
|
|
1480
|
-
},
|
|
1476
|
+
let h;
|
|
1477
|
+
if (typeof f == "string" ? h = ee(f) : h = f, !K(h)) return "";
|
|
1478
|
+
const _ = se(/* @__PURE__ */ new Date(), h);
|
|
1479
|
+
return `${Y(h, "MMM d")} (${_}y)`;
|
|
1480
|
+
}, d = (f) => {
|
|
1481
1481
|
l("update:modelValue", f);
|
|
1482
1482
|
};
|
|
1483
|
-
return (f,
|
|
1483
|
+
return (f, h) => (o(), L(ne, {
|
|
1484
1484
|
name: t.name,
|
|
1485
1485
|
"model-value": t.modelValue,
|
|
1486
1486
|
schema: n.value,
|
|
1487
|
-
"empty-form-values":
|
|
1487
|
+
"empty-form-values": c,
|
|
1488
1488
|
label: t.label,
|
|
1489
1489
|
title: "Related Names",
|
|
1490
1490
|
"primary-field": "name",
|
|
1491
1491
|
"secondary-field": "label",
|
|
1492
|
-
"explode-item":
|
|
1493
|
-
"implode-item":
|
|
1492
|
+
"explode-item": i,
|
|
1493
|
+
"implode-item": y,
|
|
1494
1494
|
"delete-confirm-title": "Remove Related Name",
|
|
1495
1495
|
"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.",
|
|
1496
1496
|
"empty-message": "No related names found. Click 'Add' to create one.",
|
|
1497
|
-
"onUpdate:modelValue":
|
|
1498
|
-
onItemAdded:
|
|
1499
|
-
onItemUpdated:
|
|
1500
|
-
onItemDeleted:
|
|
1497
|
+
"onUpdate:modelValue": d,
|
|
1498
|
+
onItemAdded: h[0] || (h[0] = (_) => l("item-added", _)),
|
|
1499
|
+
onItemUpdated: h[1] || (h[1] = (_) => l("item-updated", _)),
|
|
1500
|
+
onItemDeleted: h[2] || (h[2] = (_) => l("item-deleted", _))
|
|
1501
1501
|
}, {
|
|
1502
|
-
"item-content":
|
|
1503
|
-
s("div",
|
|
1504
|
-
s("div",
|
|
1502
|
+
"item-content": C(({ item: _ }) => [
|
|
1503
|
+
s("div", hs, [
|
|
1504
|
+
s("div", ys, k(m(_)), 1),
|
|
1505
1505
|
s("div", null, [
|
|
1506
|
-
s("p",
|
|
1507
|
-
s("p",
|
|
1506
|
+
s("p", xs, k(g(_)), 1),
|
|
1507
|
+
s("p", bs, k(b(_)), 1)
|
|
1508
1508
|
])
|
|
1509
1509
|
])
|
|
1510
1510
|
]),
|
|
1511
|
-
"item-secondary":
|
|
1512
|
-
|
|
1511
|
+
"item-secondary": C(({ item: _ }) => [
|
|
1512
|
+
_.birthday ? (o(), u("span", vs, k(v(_.birthday)), 1)) : w("", !0)
|
|
1513
1513
|
]),
|
|
1514
1514
|
_: 1
|
|
1515
1515
|
}, 8, ["name", "model-value", "schema", "label"]));
|
|
1516
1516
|
}
|
|
1517
|
-
}),
|
|
1517
|
+
}), ks = { class: "sl-flex sl-items-center sl-gap-3" }, ws = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100" }, $s = {
|
|
1518
1518
|
key: 0,
|
|
1519
1519
|
class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400"
|
|
1520
|
-
},
|
|
1520
|
+
}, _s = ["href"], Nr = /* @__PURE__ */ D({
|
|
1521
1521
|
__name: "SocialLinksEditor",
|
|
1522
1522
|
props: {
|
|
1523
1523
|
name: {},
|
|
@@ -1536,15 +1536,15 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1536
1536
|
},
|
|
1537
1537
|
emits: ["update:modelValue", "item-added", "item-updated", "item-deleted"],
|
|
1538
1538
|
setup(t, { emit: e }) {
|
|
1539
|
-
const a = (
|
|
1539
|
+
const a = (B) => () => G("svg", { viewBox: "0 0 24 24", fill: "currentColor" }, [G("path", { d: B })]), 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"), c = 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"), n = 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"), r = 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"), i = 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"), y = 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"), g = 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"), m = 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"), b = {
|
|
1540
1540
|
linkedin: l,
|
|
1541
|
-
twitter:
|
|
1542
|
-
x:
|
|
1541
|
+
twitter: c,
|
|
1542
|
+
x: c,
|
|
1543
1543
|
facebook: n,
|
|
1544
|
-
instagram:
|
|
1545
|
-
youtube:
|
|
1546
|
-
tiktok:
|
|
1547
|
-
github:
|
|
1544
|
+
instagram: r,
|
|
1545
|
+
youtube: i,
|
|
1546
|
+
tiktok: y,
|
|
1547
|
+
github: g,
|
|
1548
1548
|
website: m
|
|
1549
1549
|
}, v = {
|
|
1550
1550
|
linkedin: "sl-text-[#0A66C2]",
|
|
@@ -1555,20 +1555,20 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1555
1555
|
youtube: "sl-text-[#FF0000]",
|
|
1556
1556
|
tiktok: "sl-text-gray-900 dark:sl-text-gray-100",
|
|
1557
1557
|
github: "sl-text-gray-900 dark:sl-text-gray-100"
|
|
1558
|
-
},
|
|
1558
|
+
}, d = t, f = e, h = {
|
|
1559
1559
|
id: re(),
|
|
1560
1560
|
platform: "",
|
|
1561
1561
|
handle: "",
|
|
1562
1562
|
url: "",
|
|
1563
1563
|
status: "new"
|
|
1564
|
-
},
|
|
1564
|
+
}, _ = p(() => ({
|
|
1565
1565
|
fields: [
|
|
1566
1566
|
{
|
|
1567
1567
|
name: "platform",
|
|
1568
1568
|
label: "Platform",
|
|
1569
1569
|
as: "SelectInput",
|
|
1570
1570
|
type: "select",
|
|
1571
|
-
items:
|
|
1571
|
+
items: d.platforms,
|
|
1572
1572
|
itemKey: "id",
|
|
1573
1573
|
itemText: "name",
|
|
1574
1574
|
hideLabel: !0,
|
|
@@ -1594,69 +1594,69 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1594
1594
|
placeholder: "https://..."
|
|
1595
1595
|
}
|
|
1596
1596
|
]
|
|
1597
|
-
})),
|
|
1598
|
-
const
|
|
1599
|
-
return b[
|
|
1600
|
-
},
|
|
1601
|
-
const
|
|
1602
|
-
return v[
|
|
1603
|
-
},
|
|
1604
|
-
f("update:modelValue",
|
|
1597
|
+
})), x = (B) => B, M = (B) => B, N = (B) => d.platforms.find((V) => V.id === B)?.name || B || "Unknown Platform", O = (B) => {
|
|
1598
|
+
const E = B?.toLowerCase() || "website";
|
|
1599
|
+
return b[E] || m;
|
|
1600
|
+
}, W = (B) => {
|
|
1601
|
+
const E = B?.toLowerCase() || "website";
|
|
1602
|
+
return v[E] || "sl-text-gray-500";
|
|
1603
|
+
}, j = (B) => B ? B.startsWith("http://") || B.startsWith("https://") ? B : `https://${B}` : "#", T = (B) => {
|
|
1604
|
+
f("update:modelValue", B);
|
|
1605
1605
|
};
|
|
1606
|
-
return (
|
|
1606
|
+
return (B, E) => (o(), L(ne, {
|
|
1607
1607
|
name: t.name,
|
|
1608
1608
|
"model-value": t.modelValue,
|
|
1609
|
-
schema:
|
|
1610
|
-
"empty-form-values":
|
|
1609
|
+
schema: _.value,
|
|
1610
|
+
"empty-form-values": h,
|
|
1611
1611
|
label: t.label,
|
|
1612
1612
|
title: "Social Links",
|
|
1613
1613
|
"primary-field": "platform",
|
|
1614
1614
|
"secondary-field": "handle",
|
|
1615
|
-
"explode-item":
|
|
1616
|
-
"implode-item":
|
|
1615
|
+
"explode-item": x,
|
|
1616
|
+
"implode-item": M,
|
|
1617
1617
|
"delete-confirm-title": "Remove Social Link",
|
|
1618
1618
|
"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.",
|
|
1619
1619
|
"empty-message": "No social links found. Click 'Add' to create one.",
|
|
1620
|
-
"onUpdate:modelValue":
|
|
1621
|
-
onItemAdded:
|
|
1622
|
-
onItemUpdated:
|
|
1623
|
-
onItemDeleted:
|
|
1620
|
+
"onUpdate:modelValue": T,
|
|
1621
|
+
onItemAdded: E[1] || (E[1] = (V) => f("item-added", V)),
|
|
1622
|
+
onItemUpdated: E[2] || (E[2] = (V) => f("item-updated", V)),
|
|
1623
|
+
onItemDeleted: E[3] || (E[3] = (V) => f("item-deleted", V))
|
|
1624
1624
|
}, {
|
|
1625
|
-
"item-content":
|
|
1626
|
-
s("div",
|
|
1627
|
-
(
|
|
1628
|
-
class:
|
|
1625
|
+
"item-content": C(({ item: V }) => [
|
|
1626
|
+
s("div", ks, [
|
|
1627
|
+
(o(), L(J(O(V.platform)), {
|
|
1628
|
+
class: z(["sl-w-5 sl-h-5 sl-flex-shrink-0", W(V.platform)])
|
|
1629
1629
|
}, null, 8, ["class"])),
|
|
1630
1630
|
s("div", null, [
|
|
1631
|
-
s("p",
|
|
1632
|
-
|
|
1631
|
+
s("p", ws, k(N(V.platform)), 1),
|
|
1632
|
+
V.handle ? (o(), u("p", $s, " @" + k(V.handle), 1)) : w("", !0)
|
|
1633
1633
|
])
|
|
1634
1634
|
])
|
|
1635
1635
|
]),
|
|
1636
|
-
"item-secondary":
|
|
1637
|
-
|
|
1636
|
+
"item-secondary": C(({ item: V }) => [
|
|
1637
|
+
V.url ? (o(), u("a", {
|
|
1638
1638
|
key: 0,
|
|
1639
|
-
href:
|
|
1639
|
+
href: j(V.url),
|
|
1640
1640
|
target: "_blank",
|
|
1641
1641
|
rel: "noopener noreferrer",
|
|
1642
1642
|
class: "sl-text-xs sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline",
|
|
1643
|
-
onClick:
|
|
1643
|
+
onClick: E[0] || (E[0] = he(() => {
|
|
1644
1644
|
}, ["stop"]))
|
|
1645
|
-
}, " View Profile ", 8,
|
|
1645
|
+
}, " View Profile ", 8, _s)) : w("", !0)
|
|
1646
1646
|
]),
|
|
1647
1647
|
_: 1
|
|
1648
1648
|
}, 8, ["name", "model-value", "schema", "label"]));
|
|
1649
1649
|
}
|
|
1650
|
-
}),
|
|
1650
|
+
}), Cs = { key: 0 }, Is = {
|
|
1651
1651
|
key: 1,
|
|
1652
1652
|
class: "sl-text-gray-700 dark:sl-text-gray-300"
|
|
1653
|
-
},
|
|
1653
|
+
}, Ss = {
|
|
1654
1654
|
key: 2,
|
|
1655
1655
|
class: "sl-text-gray-500 dark:sl-text-gray-400"
|
|
1656
|
-
},
|
|
1656
|
+
}, zs = {
|
|
1657
1657
|
key: 1,
|
|
1658
1658
|
class: "sl-flex sl-items-center"
|
|
1659
|
-
},
|
|
1659
|
+
}, Fr = /* @__PURE__ */ D({
|
|
1660
1660
|
__name: "DateFormatter",
|
|
1661
1661
|
props: {
|
|
1662
1662
|
/** The date to format */
|
|
@@ -1699,69 +1699,69 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1699
1699
|
}
|
|
1700
1700
|
},
|
|
1701
1701
|
setup(t) {
|
|
1702
|
-
|
|
1702
|
+
P.extend(ve), P.extend(ke), P.extend(He);
|
|
1703
1703
|
const e = t;
|
|
1704
1704
|
function a(n) {
|
|
1705
1705
|
if (n == null)
|
|
1706
1706
|
return null;
|
|
1707
|
-
if (
|
|
1707
|
+
if (P.isDayjs(n))
|
|
1708
1708
|
return n;
|
|
1709
1709
|
if (n instanceof Date)
|
|
1710
|
-
return
|
|
1710
|
+
return P(n);
|
|
1711
1711
|
if (n && typeof n == "object" && "toDate" in n && typeof n.toDate == "function")
|
|
1712
|
-
return
|
|
1712
|
+
return P(n.toDate());
|
|
1713
1713
|
if (typeof n == "number" || typeof n == "string")
|
|
1714
|
-
return typeof n == "string" && n.endsWith("Z") && (n = n.slice(0, -1)),
|
|
1714
|
+
return typeof n == "string" && n.endsWith("Z") && (n = n.slice(0, -1)), P(n);
|
|
1715
1715
|
if (n && typeof n == "object" && "_seconds" in n)
|
|
1716
|
-
return
|
|
1716
|
+
return P.unix(n._seconds);
|
|
1717
1717
|
if (n && typeof n == "object" && "seconds" in n)
|
|
1718
|
-
return
|
|
1718
|
+
return P.unix(n.seconds);
|
|
1719
1719
|
if (n && typeof n == "object" && "month" in n && "year" in n) {
|
|
1720
|
-
const
|
|
1721
|
-
return
|
|
1720
|
+
const r = n, i = typeof r.month == "number" && r.month >= 0 && r.month <= 11 ? r.month + 1 : r.month;
|
|
1721
|
+
return P(`${r.year}-${String(i).padStart(2, "0")}-01`);
|
|
1722
1722
|
}
|
|
1723
1723
|
return null;
|
|
1724
1724
|
}
|
|
1725
1725
|
const l = p(() => {
|
|
1726
1726
|
if (!e.date) return "Date unavailable";
|
|
1727
1727
|
let n = Array.isArray(e.date) ? e.date[0] : e.date;
|
|
1728
|
-
const
|
|
1729
|
-
return !
|
|
1730
|
-
}),
|
|
1728
|
+
const r = a(n);
|
|
1729
|
+
return !r || !r.isValid() ? "Invalid date" : r.format(e.format);
|
|
1730
|
+
}), c = p(() => {
|
|
1731
1731
|
if (!e.secondaryRelativeDate) return "";
|
|
1732
1732
|
let n = Array.isArray(e.secondaryRelativeDate) ? e.secondaryRelativeDate[0] : e.secondaryRelativeDate;
|
|
1733
|
-
const
|
|
1734
|
-
if (!
|
|
1733
|
+
const r = a(n);
|
|
1734
|
+
if (!r || !r.isValid())
|
|
1735
1735
|
return "Invalid Date";
|
|
1736
|
-
const
|
|
1737
|
-
return e.secondarySuffix ? `${
|
|
1736
|
+
const i = P().to(r, !0);
|
|
1737
|
+
return e.secondarySuffix ? `${i} ${e.secondarySuffix}` : i;
|
|
1738
1738
|
});
|
|
1739
|
-
return (n,
|
|
1739
|
+
return (n, r) => t.date || t.secondaryRelativeDate ? (o(), u("div", Cs, [
|
|
1740
1740
|
s("span", {
|
|
1741
|
-
class:
|
|
1741
|
+
class: z(["sl-flex sl-items-center", t.space ? "sl-space-x-1" : ""])
|
|
1742
1742
|
}, [
|
|
1743
|
-
|
|
1744
|
-
t.date && t.display.date && t.leadingIcon ? (
|
|
1743
|
+
S(n.$slots, "default"),
|
|
1744
|
+
t.date && t.display.date && t.leadingIcon ? (o(), L(J(t.leadingIcon), {
|
|
1745
1745
|
key: 0,
|
|
1746
1746
|
class: "sl-h-3 sl-w-3 sl-inline-block"
|
|
1747
|
-
})) :
|
|
1748
|
-
t.date && t.display.date ? (
|
|
1749
|
-
t.secondaryRelativeDate && t.display.secondaryRelativeDate ? (
|
|
1750
|
-
t.date && t.display.date ? (
|
|
1751
|
-
|
|
1752
|
-
], 64)) : (
|
|
1753
|
-
|
|
1747
|
+
})) : w("", !0),
|
|
1748
|
+
t.date && t.display.date ? (o(), u("span", Is, k(l.value), 1)) : w("", !0),
|
|
1749
|
+
t.secondaryRelativeDate && t.display.secondaryRelativeDate ? (o(), u("span", Ss, [
|
|
1750
|
+
t.date && t.display.date ? (o(), u(U, { key: 0 }, [
|
|
1751
|
+
R("(" + k(c.value) + ")", 1)
|
|
1752
|
+
], 64)) : (o(), u(U, { key: 1 }, [
|
|
1753
|
+
R(k(c.value), 1)
|
|
1754
1754
|
], 64))
|
|
1755
|
-
])) :
|
|
1755
|
+
])) : w("", !0)
|
|
1756
1756
|
], 2)
|
|
1757
|
-
])) : (
|
|
1757
|
+
])) : (o(), u("div", zs, [...r[0] || (r[0] = [
|
|
1758
1758
|
s("span", { class: "sl-text-gray-400 dark:sl-text-gray-500 sl-italic" }, "Date unavailable", -1)
|
|
1759
1759
|
])]));
|
|
1760
1760
|
}
|
|
1761
|
-
}),
|
|
1761
|
+
}), Ls = { key: 0 }, Ds = { class: "sl-mt-1 sl-text-xs sl-leading-5 sl-text-gray-500 dark:sl-text-gray-400" }, Ms = {
|
|
1762
1762
|
key: 0,
|
|
1763
1763
|
class: "sl-block sm:sl-inline sm:sl-ml-1"
|
|
1764
|
-
}, Ts = { key: 1 },
|
|
1764
|
+
}, Ts = { key: 1 }, Ur = /* @__PURE__ */ D({
|
|
1765
1765
|
__name: "DateRangeFormatter",
|
|
1766
1766
|
props: {
|
|
1767
1767
|
/** Start date of the range */
|
|
@@ -1786,28 +1786,28 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1786
1786
|
}
|
|
1787
1787
|
},
|
|
1788
1788
|
setup(t) {
|
|
1789
|
-
|
|
1789
|
+
P.extend(ve), P.extend(ke);
|
|
1790
1790
|
const e = t;
|
|
1791
1791
|
function a(m) {
|
|
1792
1792
|
if (m == null)
|
|
1793
1793
|
return null;
|
|
1794
|
-
if (
|
|
1794
|
+
if (P.isDayjs(m))
|
|
1795
1795
|
return m;
|
|
1796
1796
|
if (m instanceof Date)
|
|
1797
|
-
return
|
|
1797
|
+
return P(m);
|
|
1798
1798
|
if (m && typeof m == "object" && "toDate" in m && typeof m.toDate == "function")
|
|
1799
|
-
return
|
|
1799
|
+
return P(m.toDate());
|
|
1800
1800
|
if (typeof m == "number" || typeof m == "string")
|
|
1801
|
-
return typeof m == "string" && m.endsWith("Z") && (m = m.slice(0, -1)),
|
|
1801
|
+
return typeof m == "string" && m.endsWith("Z") && (m = m.slice(0, -1)), P(m);
|
|
1802
1802
|
if (Array.isArray(m) && m.length > 0)
|
|
1803
1803
|
return a(m[0]);
|
|
1804
1804
|
if (m && typeof m == "object" && "_seconds" in m)
|
|
1805
|
-
return
|
|
1805
|
+
return P.unix(m._seconds);
|
|
1806
1806
|
if (m && typeof m == "object" && "seconds" in m)
|
|
1807
|
-
return
|
|
1807
|
+
return P.unix(m.seconds);
|
|
1808
1808
|
if (m && typeof m == "object" && "month" in m && "year" in m) {
|
|
1809
1809
|
const b = m, v = typeof b.month == "number" && b.month >= 0 && b.month <= 11 ? b.month + 1 : b.month;
|
|
1810
|
-
return
|
|
1810
|
+
return P(`${b.year}-${String(v).padStart(2, "0")}-01`);
|
|
1811
1811
|
}
|
|
1812
1812
|
return null;
|
|
1813
1813
|
}
|
|
@@ -1815,63 +1815,63 @@ const ct = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1815
1815
|
const b = a(m);
|
|
1816
1816
|
return b && b.isValid() ? b.toDate() : null;
|
|
1817
1817
|
}
|
|
1818
|
-
const
|
|
1818
|
+
const c = p(() => l(e.startDate)), n = p(() => l(e.endDate)), r = p(() => c.value !== null && n.value !== null), i = p(() => {
|
|
1819
1819
|
try {
|
|
1820
|
-
return
|
|
1820
|
+
return c.value ? P(c.value).format(e.format) : "";
|
|
1821
1821
|
} catch (m) {
|
|
1822
1822
|
return console.error("Error formatting start date:", m), "";
|
|
1823
1823
|
}
|
|
1824
|
-
}),
|
|
1824
|
+
}), y = p(() => {
|
|
1825
1825
|
try {
|
|
1826
|
-
return n.value ?
|
|
1826
|
+
return n.value ? P(n.value).format(e.format) : "";
|
|
1827
1827
|
} catch (m) {
|
|
1828
1828
|
return console.error("Error formatting end date:", m), "";
|
|
1829
1829
|
}
|
|
1830
|
-
}),
|
|
1831
|
-
if (!
|
|
1830
|
+
}), g = p(() => {
|
|
1831
|
+
if (!c.value || !n.value) return "";
|
|
1832
1832
|
try {
|
|
1833
|
-
const m =
|
|
1833
|
+
const m = P(c.value), b = P(n.value), [v, d] = m.isAfter(b) ? [b, m] : [m, b], f = d.diff(v, "year");
|
|
1834
1834
|
if (f >= 1)
|
|
1835
1835
|
return `${f} year${f > 1 ? "s" : ""}`;
|
|
1836
|
-
const
|
|
1837
|
-
if (
|
|
1838
|
-
return `${
|
|
1839
|
-
const
|
|
1840
|
-
return `${
|
|
1836
|
+
const h = d.diff(v, "month");
|
|
1837
|
+
if (h >= 1)
|
|
1838
|
+
return `${h} month${h > 1 ? "s" : ""}`;
|
|
1839
|
+
const _ = d.diff(v, "day") + 1;
|
|
1840
|
+
return `${_} day${_ !== 1 ? "s" : ""}`;
|
|
1841
1841
|
} catch (m) {
|
|
1842
1842
|
return console.error("Error calculating time between dates:", m), "";
|
|
1843
1843
|
}
|
|
1844
1844
|
});
|
|
1845
|
-
return (m, b) =>
|
|
1846
|
-
s("p",
|
|
1847
|
-
s("span", null, k(
|
|
1848
|
-
t.useCalculateTimeBetween ? (
|
|
1845
|
+
return (m, b) => r.value ? (o(), u("div", Ls, [
|
|
1846
|
+
s("p", Ds, [
|
|
1847
|
+
s("span", null, k(i.value) + " – " + k(y.value), 1),
|
|
1848
|
+
t.useCalculateTimeBetween ? (o(), u("span", Ms, [
|
|
1849
1849
|
b[0] || (b[0] = s("span", { class: "sl-hidden sm:sl-inline sl-mr-1" }, "•", -1)),
|
|
1850
|
-
s("span", null, k(
|
|
1851
|
-
])) :
|
|
1850
|
+
s("span", null, k(g.value), 1)
|
|
1851
|
+
])) : w("", !0)
|
|
1852
1852
|
])
|
|
1853
|
-
])) : (
|
|
1853
|
+
])) : (o(), u("div", Ts, [...b[1] || (b[1] = [
|
|
1854
1854
|
s("p", { class: "sl-mt-1 sl-truncate sl-text-xs sl-leading-5 sl-text-gray-500 dark:sl-text-gray-400 sl-italic" }, " Dates unavailable ", -1)
|
|
1855
1855
|
])]));
|
|
1856
1856
|
}
|
|
1857
|
-
}),
|
|
1857
|
+
}), Bs = {}, Ps = {
|
|
1858
1858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1859
1859
|
viewBox: "0 0 24 24",
|
|
1860
1860
|
fill: "currentColor",
|
|
1861
1861
|
"aria-hidden": "true"
|
|
1862
1862
|
};
|
|
1863
|
-
function
|
|
1864
|
-
return
|
|
1863
|
+
function js(t, e) {
|
|
1864
|
+
return o(), u("svg", Ps, [...e[0] || (e[0] = [
|
|
1865
1865
|
s("path", { d: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" }, null, -1)
|
|
1866
1866
|
])]);
|
|
1867
1867
|
}
|
|
1868
|
-
const
|
|
1868
|
+
const As = /* @__PURE__ */ A(Bs, [["render", js]]), Es = {}, Vs = {
|
|
1869
1869
|
viewBox: "0 0 24 24",
|
|
1870
1870
|
fill: "currentColor",
|
|
1871
1871
|
"aria-hidden": "true"
|
|
1872
1872
|
};
|
|
1873
|
-
function
|
|
1874
|
-
return
|
|
1873
|
+
function Ns(t, e) {
|
|
1874
|
+
return o(), u("svg", Vs, [...e[0] || (e[0] = [
|
|
1875
1875
|
s("path", {
|
|
1876
1876
|
"fill-rule": "evenodd",
|
|
1877
1877
|
"clip-rule": "evenodd",
|
|
@@ -1879,13 +1879,13 @@ function Ps(t, e) {
|
|
|
1879
1879
|
}, null, -1)
|
|
1880
1880
|
])]);
|
|
1881
1881
|
}
|
|
1882
|
-
const
|
|
1882
|
+
const Fs = /* @__PURE__ */ A(Es, [["render", Ns]]), Us = {}, Rs = {
|
|
1883
1883
|
viewBox: "0 0 24 24",
|
|
1884
1884
|
fill: "currentColor",
|
|
1885
1885
|
"aria-hidden": "true"
|
|
1886
1886
|
};
|
|
1887
|
-
function
|
|
1888
|
-
return
|
|
1887
|
+
function Hs(t, e) {
|
|
1888
|
+
return o(), u("svg", Rs, [...e[0] || (e[0] = [
|
|
1889
1889
|
s("path", {
|
|
1890
1890
|
"fill-rule": "evenodd",
|
|
1891
1891
|
"clip-rule": "evenodd",
|
|
@@ -1893,13 +1893,13 @@ function Es(t, e) {
|
|
|
1893
1893
|
}, null, -1)
|
|
1894
1894
|
])]);
|
|
1895
1895
|
}
|
|
1896
|
-
const
|
|
1896
|
+
const Os = /* @__PURE__ */ A(Us, [["render", Hs]]), Ws = {}, Gs = {
|
|
1897
1897
|
viewBox: "0 0 24 24",
|
|
1898
1898
|
fill: "currentColor",
|
|
1899
1899
|
"aria-hidden": "true"
|
|
1900
1900
|
};
|
|
1901
|
-
function
|
|
1902
|
-
return
|
|
1901
|
+
function qs(t, e) {
|
|
1902
|
+
return o(), u("svg", Gs, [...e[0] || (e[0] = [
|
|
1903
1903
|
s("path", {
|
|
1904
1904
|
"fill-rule": "evenodd",
|
|
1905
1905
|
"clip-rule": "evenodd",
|
|
@@ -1907,95 +1907,95 @@ function Us(t, e) {
|
|
|
1907
1907
|
}, null, -1)
|
|
1908
1908
|
])]);
|
|
1909
1909
|
}
|
|
1910
|
-
const
|
|
1910
|
+
const Ys = /* @__PURE__ */ A(Ws, [["render", qs]]), Ks = {}, Zs = {
|
|
1911
1911
|
role: "img",
|
|
1912
1912
|
viewBox: "0 0 24 24",
|
|
1913
1913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1914
1914
|
fill: "currentColor",
|
|
1915
1915
|
"aria-hidden": "true"
|
|
1916
1916
|
};
|
|
1917
|
-
function
|
|
1918
|
-
return
|
|
1917
|
+
function Js(t, e) {
|
|
1918
|
+
return o(), u("svg", Zs, [...e[0] || (e[0] = [
|
|
1919
1919
|
s("title", null, "LinkedIn", -1),
|
|
1920
1920
|
s("path", { 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" }, null, -1)
|
|
1921
1921
|
])]);
|
|
1922
1922
|
}
|
|
1923
|
-
const
|
|
1923
|
+
const Xs = /* @__PURE__ */ A(Ks, [["render", Js]]), Qs = {}, el = {
|
|
1924
1924
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1925
1925
|
viewBox: "0 0 24 24",
|
|
1926
1926
|
fill: "currentColor",
|
|
1927
1927
|
"aria-hidden": "true"
|
|
1928
1928
|
};
|
|
1929
|
-
function
|
|
1930
|
-
return
|
|
1929
|
+
function tl(t, e) {
|
|
1930
|
+
return o(), u("svg", el, [...e[0] || (e[0] = [
|
|
1931
1931
|
s("path", { d: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z" }, null, -1)
|
|
1932
1932
|
])]);
|
|
1933
1933
|
}
|
|
1934
|
-
const
|
|
1934
|
+
const sl = /* @__PURE__ */ A(Qs, [["render", tl]]), ll = {}, al = {
|
|
1935
1935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1936
1936
|
viewBox: "0 0 24 24",
|
|
1937
1937
|
fill: "currentColor",
|
|
1938
1938
|
"aria-hidden": "true"
|
|
1939
1939
|
};
|
|
1940
|
-
function
|
|
1941
|
-
return
|
|
1940
|
+
function ol(t, e) {
|
|
1941
|
+
return o(), u("svg", al, [...e[0] || (e[0] = [
|
|
1942
1942
|
s("path", { d: "M12.206.793c.99 0 4.347.276 5.93 3.821.529 1.193.403 3.219.299 4.847l-.003.06c-.012.18-.022.345-.03.51.075.045.203.09.401.09.3-.016.659-.12 1.033-.301.165-.088.344-.104.464-.104.182 0 .359.029.509.09.45.149.734.479.734.838.015.449-.39.839-1.213 1.168-.089.029-.209.075-.344.119-.45.135-1.139.36-1.333.81-.09.224-.061.524.12.868l.015.015c.06.136 1.526 3.475 4.791 4.014.255.044.435.27.42.509 0 .075-.015.149-.045.225-.24.569-1.273.988-3.146 1.271-.059.091-.12.375-.164.57-.029.179-.074.36-.134.553-.076.271-.27.405-.555.405h-.03c-.135 0-.313-.031-.538-.074-.36-.075-.765-.135-1.273-.135-.3 0-.599.015-.913.074-.6.104-1.123.464-1.723.884-.853.599-1.826 1.288-3.294 1.288-.06 0-.119-.015-.18-.015h-.149c-1.468 0-2.427-.675-3.279-1.288-.599-.42-1.107-.779-1.707-.884-.314-.045-.629-.074-.928-.074-.54 0-.958.089-1.272.149-.211.043-.391.074-.54.074-.374 0-.523-.224-.583-.42-.061-.192-.09-.389-.135-.567-.046-.181-.105-.494-.166-.57-1.918-.222-2.95-.642-3.189-1.226-.031-.063-.052-.15-.055-.225-.015-.243.165-.465.42-.509 3.264-.54 4.73-3.879 4.791-4.02l.016-.029c.18-.345.224-.645.119-.869-.195-.434-.884-.658-1.332-.809-.121-.029-.24-.074-.346-.119-1.107-.435-1.257-.93-1.197-1.273.09-.479.674-.793 1.168-.793.146 0 .27.029.383.074.42.194.789.3 1.104.3.234 0 .384-.06.465-.105l-.046-.569c-.098-1.626-.225-3.651.307-4.837C7.392 1.077 10.739.807 11.727.807l.419-.015h.06z" }, null, -1)
|
|
1943
1943
|
])]);
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const rl = /* @__PURE__ */ A(ll, [["render", ol]]), nl = {}, il = {
|
|
1946
1946
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1947
1947
|
viewBox: "0 0 24 24",
|
|
1948
1948
|
fill: "currentColor",
|
|
1949
1949
|
"aria-hidden": "true"
|
|
1950
1950
|
};
|
|
1951
|
-
function
|
|
1952
|
-
return
|
|
1951
|
+
function dl(t, e) {
|
|
1952
|
+
return o(), u("svg", il, [...e[0] || (e[0] = [
|
|
1953
1953
|
s("path", { d: "M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.432 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.96-.065-1.182.408-2.256 1.332-3.024.9-.748 2.17-1.182 3.572-1.219 1.008-.027 1.952.089 2.829.348.012-.57.012-1.132-.01-1.686-.023-.547-.072-.89-.207-1.157a1.462 1.462 0 00-.712-.74c-.381-.2-.945-.297-1.727-.297-1.508.017-2.292.456-2.636.829-.336.364-.527.924-.57 1.666l-2.095-.046c.09-1.23.496-2.168 1.208-2.786.994-.866 2.36-1.3 4.058-1.28 1.079.011 1.963.183 2.627.511.647.319 1.127.766 1.427 1.328.286.535.427 1.096.47 1.87.043.773.03 1.648-.015 2.623-.013.29-.025.582-.035.877a7.87 7.87 0 012.098.96c.895.603 1.594 1.39 2.023 2.376.737 1.694.804 4.381-1.374 6.515-1.814 1.776-4.142 2.603-7.329 2.603zm1.26-7.134c-.088-.006-.176-.01-.265-.01-1.283-.027-2.255.245-2.818.717-.542.454-.81 1.014-.775 1.622.035.588.372 1.096.952 1.43.595.343 1.35.485 2.127.439 1.079-.058 1.893-.441 2.421-1.139.517-.683.823-1.64.906-2.848-.806-.165-1.654-.24-2.548-.21z" }, null, -1)
|
|
1954
1954
|
])]);
|
|
1955
1955
|
}
|
|
1956
|
-
const
|
|
1956
|
+
const cl = /* @__PURE__ */ A(nl, [["render", dl]]), ul = {}, ml = {
|
|
1957
1957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1958
1958
|
viewBox: "0 0 1024 1024",
|
|
1959
1959
|
fill: "currentColor",
|
|
1960
1960
|
"fill-rule": "evenodd",
|
|
1961
1961
|
"aria-hidden": "true"
|
|
1962
1962
|
};
|
|
1963
|
-
function
|
|
1964
|
-
return
|
|
1963
|
+
function fl(t, e) {
|
|
1964
|
+
return o(), u("svg", ml, [...e[0] || (e[0] = [
|
|
1965
1965
|
s("path", {
|
|
1966
1966
|
d: "M365.014.667C408.68 0 452.011.333 495.342 0c2.667 51 21 102.999 58.33 138.998 37.332 37 89.997 54 141.328 59.666v134.332c-47.998-1.667-96.33-11.667-139.994-32.333-19-8.667-36.665-19.667-53.998-31-.333 97.332.334 194.665-.666 291.663-2.667 46.666-18 93-44.998 131.332-43.665 64-119.328 105.665-196.992 106.999-47.664 2.666-95.329-10.334-135.994-34.333C55.028 725.658 7.696 652.992.697 574.993c-.667-16.667-1-33.333-.334-49.666 6-63.333 37.332-123.999 85.997-165.332 55.33-47.999 132.66-70.999 204.99-57.332.667 49.333-1.332 98.665-1.332 147.998-33-10.667-71.664-7.667-100.663 12.333-20.999 13.667-36.998 34.666-45.331 58.333-7 17-5 35.666-4.667 53.666 8 54.666 60.664 100.665 116.662 95.665 37.332-.333 72.997-22 92.33-53.666 6.332-11 13.332-22.333 13.665-35.333 3.334-59.666 2-118.998 2.334-178.664.333-134.332-.334-268.33.666-402.328",
|
|
1967
1967
|
transform: "translate(165 112)"
|
|
1968
1968
|
}, null, -1)
|
|
1969
1969
|
])]);
|
|
1970
1970
|
}
|
|
1971
|
-
const
|
|
1971
|
+
const pl = /* @__PURE__ */ A(ul, [["render", fl]]), gl = {}, hl = {
|
|
1972
1972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1973
1973
|
viewBox: "0 0 24 24",
|
|
1974
1974
|
fill: "currentColor",
|
|
1975
1975
|
"aria-hidden": "true"
|
|
1976
1976
|
};
|
|
1977
|
-
function
|
|
1978
|
-
return
|
|
1977
|
+
function yl(t, e) {
|
|
1978
|
+
return o(), u("svg", hl, [...e[0] || (e[0] = [
|
|
1979
1979
|
s("path", { d: "M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z" }, null, -1)
|
|
1980
1980
|
])]);
|
|
1981
1981
|
}
|
|
1982
|
-
const
|
|
1982
|
+
const xl = /* @__PURE__ */ A(gl, [["render", yl]]), bl = {}, vl = {
|
|
1983
1983
|
viewBox: "0 0 24 24",
|
|
1984
1984
|
fill: "currentColor",
|
|
1985
1985
|
"aria-hidden": "true"
|
|
1986
1986
|
};
|
|
1987
|
-
function
|
|
1988
|
-
return
|
|
1987
|
+
function kl(t, e) {
|
|
1988
|
+
return o(), u("svg", vl, [...e[0] || (e[0] = [
|
|
1989
1989
|
s("path", { d: "M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z" }, null, -1)
|
|
1990
1990
|
])]);
|
|
1991
1991
|
}
|
|
1992
|
-
const
|
|
1992
|
+
const ge = /* @__PURE__ */ A(bl, [["render", kl]]), wl = {}, $l = {
|
|
1993
1993
|
viewBox: "0 0 24 24",
|
|
1994
1994
|
fill: "currentColor",
|
|
1995
1995
|
"aria-hidden": "true"
|
|
1996
1996
|
};
|
|
1997
|
-
function
|
|
1998
|
-
return
|
|
1997
|
+
function _l(t, e) {
|
|
1998
|
+
return o(), u("svg", $l, [...e[0] || (e[0] = [
|
|
1999
1999
|
s("path", {
|
|
2000
2000
|
"fill-rule": "evenodd",
|
|
2001
2001
|
"clip-rule": "evenodd",
|
|
@@ -2003,10 +2003,10 @@ function ul(t, e) {
|
|
|
2003
2003
|
}, null, -1)
|
|
2004
2004
|
])]);
|
|
2005
2005
|
}
|
|
2006
|
-
const
|
|
2006
|
+
const Cl = /* @__PURE__ */ A(wl, [["render", _l]]), Il = { class: "sl-bg-white sl-rounded-lg sl-shadow sl-p-6" }, Sl = { class: "sl-space-y-8" }, zl = { class: "sl-grid sl-grid-cols-1 sl-md:grid-cols-2 sl-gap-6" }, Ll = { class: "sl-bg-gray-50 sl-rounded-md sl-p-4 sl-text-sm sl-text-gray-700" }, Dl = { class: "sl-whitespace-pre-wrap" }, Rr = /* @__PURE__ */ D({
|
|
2007
2007
|
__name: "InputsShowcase",
|
|
2008
2008
|
setup(t) {
|
|
2009
|
-
const e =
|
|
2009
|
+
const e = ze({
|
|
2010
2010
|
text: "",
|
|
2011
2011
|
textArea: "",
|
|
2012
2012
|
switchOn: !1,
|
|
@@ -2025,7 +2025,7 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2025
2025
|
{ id: 3, name: "Python" },
|
|
2026
2026
|
{ id: 4, name: "Go" },
|
|
2027
2027
|
{ id: 5, name: "Rust" }
|
|
2028
|
-
],
|
|
2028
|
+
], c = [
|
|
2029
2029
|
{ id: 1, name: "New York" },
|
|
2030
2030
|
{ id: 2, name: "San Francisco" },
|
|
2031
2031
|
{ id: 3, name: "Seattle" },
|
|
@@ -2035,66 +2035,66 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2035
2035
|
{ id: 7, name: "Miami" },
|
|
2036
2036
|
{ id: 8, name: "Boston" }
|
|
2037
2037
|
];
|
|
2038
|
-
return (n,
|
|
2039
|
-
|
|
2040
|
-
s("div",
|
|
2038
|
+
return (n, r) => (o(), u("section", Il, [
|
|
2039
|
+
r[15] || (r[15] = s("h2", { class: "sl-text-xl sl-font-semibold sl-mb-4" }, "All Inputs Showcase", -1)),
|
|
2040
|
+
s("div", Sl, [
|
|
2041
2041
|
s("div", null, [
|
|
2042
|
-
|
|
2043
|
-
|
|
2042
|
+
r[7] || (r[7] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Input", -1)),
|
|
2043
|
+
$(q, {
|
|
2044
2044
|
name: "demoText",
|
|
2045
2045
|
label: "Text Input",
|
|
2046
2046
|
placeholder: "Type something...",
|
|
2047
2047
|
value: e.text,
|
|
2048
|
-
"onUpdate:value":
|
|
2048
|
+
"onUpdate:value": r[0] || (r[0] = (i) => e.text = i)
|
|
2049
2049
|
}, null, 8, ["value"])
|
|
2050
2050
|
]),
|
|
2051
2051
|
s("div", null, [
|
|
2052
|
-
|
|
2053
|
-
|
|
2052
|
+
r[8] || (r[8] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Text Area", -1)),
|
|
2053
|
+
$(Ge, {
|
|
2054
2054
|
name: "demoTextArea",
|
|
2055
2055
|
label: "Text Area",
|
|
2056
2056
|
placeholder: "Write a longer message...",
|
|
2057
2057
|
rows: 4,
|
|
2058
2058
|
maxlength: 200,
|
|
2059
2059
|
modelValue: e.textArea,
|
|
2060
|
-
"onUpdate:modelValue":
|
|
2060
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => e.textArea = i)
|
|
2061
2061
|
}, null, 8, ["modelValue"])
|
|
2062
2062
|
]),
|
|
2063
2063
|
s("div", null, [
|
|
2064
|
-
|
|
2065
|
-
|
|
2064
|
+
r[9] || (r[9] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Switch", -1)),
|
|
2065
|
+
$(qe, {
|
|
2066
2066
|
name: "demoSwitch",
|
|
2067
2067
|
label: "Enable feature",
|
|
2068
2068
|
modelValue: e.switchOn,
|
|
2069
|
-
"onUpdate:modelValue":
|
|
2069
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => e.switchOn = i),
|
|
2070
2070
|
textTrue: "ON",
|
|
2071
2071
|
textFalse: "OFF"
|
|
2072
2072
|
}, null, 8, ["modelValue"])
|
|
2073
2073
|
]),
|
|
2074
2074
|
s("div", null, [
|
|
2075
|
-
|
|
2076
|
-
|
|
2075
|
+
r[10] || (r[10] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Checkbox", -1)),
|
|
2076
|
+
$(Oe, {
|
|
2077
2077
|
name: "demoCheckbox",
|
|
2078
2078
|
label: "I agree to the terms",
|
|
2079
2079
|
modelValue: e.checkbox,
|
|
2080
|
-
"onUpdate:modelValue":
|
|
2080
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => e.checkbox = i)
|
|
2081
2081
|
}, null, 8, ["modelValue"])
|
|
2082
2082
|
]),
|
|
2083
|
-
s("div",
|
|
2083
|
+
s("div", zl, [
|
|
2084
2084
|
s("div", null, [
|
|
2085
|
-
|
|
2086
|
-
|
|
2085
|
+
r[11] || (r[11] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Single)", -1)),
|
|
2086
|
+
$(ue, {
|
|
2087
2087
|
name: "demoSelect",
|
|
2088
2088
|
label: "Favorite Fruit",
|
|
2089
2089
|
placeholder: "Select a fruit",
|
|
2090
2090
|
items: a,
|
|
2091
2091
|
modelValue: e.selectedFruit,
|
|
2092
|
-
"onUpdate:modelValue":
|
|
2092
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => e.selectedFruit = i)
|
|
2093
2093
|
}, null, 8, ["modelValue"])
|
|
2094
2094
|
]),
|
|
2095
2095
|
s("div", null, [
|
|
2096
|
-
|
|
2097
|
-
|
|
2096
|
+
r[12] || (r[12] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Select (Multiple)", -1)),
|
|
2097
|
+
$(ue, {
|
|
2098
2098
|
name: "demoSelectMulti",
|
|
2099
2099
|
label: "Favorite Languages",
|
|
2100
2100
|
placeholder: "Select languages",
|
|
@@ -2102,82 +2102,82 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2102
2102
|
multiple: "",
|
|
2103
2103
|
showAll: "",
|
|
2104
2104
|
modelValue: e.selectedLanguages,
|
|
2105
|
-
"onUpdate:modelValue":
|
|
2105
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => e.selectedLanguages = i)
|
|
2106
2106
|
}, null, 8, ["modelValue"])
|
|
2107
2107
|
])
|
|
2108
2108
|
]),
|
|
2109
2109
|
s("div", null, [
|
|
2110
|
-
|
|
2111
|
-
|
|
2110
|
+
r[13] || (r[13] = s("h3", { class: "sl-text-sm sl-font-medium sl-text-gray-700 sl-mb-2" }, "Combobox", -1)),
|
|
2111
|
+
$(We, {
|
|
2112
2112
|
name: "demoCombobox",
|
|
2113
2113
|
label: "Search a City",
|
|
2114
2114
|
placeholder: "Start typing...",
|
|
2115
|
-
items:
|
|
2115
|
+
items: c,
|
|
2116
2116
|
modelValue: e.selectedCity,
|
|
2117
|
-
"onUpdate:modelValue":
|
|
2117
|
+
"onUpdate:modelValue": r[6] || (r[6] = (i) => e.selectedCity = i)
|
|
2118
2118
|
}, null, 8, ["modelValue"])
|
|
2119
2119
|
]),
|
|
2120
|
-
s("div",
|
|
2121
|
-
|
|
2122
|
-
s("pre",
|
|
2120
|
+
s("div", Ll, [
|
|
2121
|
+
r[14] || (r[14] = s("div", { class: "sl-font-semibold sl-mb-1" }, "State", -1)),
|
|
2122
|
+
s("pre", Dl, k(e), 1)
|
|
2123
2123
|
])
|
|
2124
2124
|
])
|
|
2125
2125
|
]));
|
|
2126
2126
|
}
|
|
2127
|
-
}),
|
|
2127
|
+
}), Ml = { class: "sl-flex sl-items-center sl-gap-4" }, Tl = {
|
|
2128
2128
|
key: 0,
|
|
2129
2129
|
class: "sl-flex-shrink-0 sl-flex sl-items-center sl-justify-center"
|
|
2130
|
-
},
|
|
2130
|
+
}, Bl = { class: "sl-flex-1 sl-min-w-0" }, Pl = {
|
|
2131
2131
|
key: 0,
|
|
2132
2132
|
class: "sl-flex sl-items-center sl-gap-2"
|
|
2133
|
-
},
|
|
2133
|
+
}, jl = { class: "sl-text-base sl-font-semibold sl-text-gray-900 dark:sl-text-white sl-truncate" }, Al = {
|
|
2134
2134
|
key: 0,
|
|
2135
2135
|
class: "sl-flex-shrink-0"
|
|
2136
|
-
},
|
|
2136
|
+
}, El = {
|
|
2137
2137
|
key: 1,
|
|
2138
2138
|
class: "sl-mt-0.5 sl-text-sm sl-text-gray-500 dark:sl-text-gray-300 sl-truncate"
|
|
2139
|
-
},
|
|
2139
|
+
}, Vl = {
|
|
2140
2140
|
key: 1,
|
|
2141
2141
|
class: "sl-flex sl-items-center sl-gap-2 sl-flex-shrink-0"
|
|
2142
|
-
},
|
|
2142
|
+
}, Nl = ["aria-expanded"], Fl = {
|
|
2143
2143
|
key: 1,
|
|
2144
2144
|
class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
|
|
2145
|
-
},
|
|
2145
|
+
}, Ul = { class: "sl-overflow-hidden" }, Rl = {
|
|
2146
2146
|
key: 0,
|
|
2147
2147
|
class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
|
|
2148
|
-
},
|
|
2148
|
+
}, Hl = { class: "sl-flex sl-items-center sl-justify-between sl-gap-4" }, Ol = {
|
|
2149
2149
|
key: 0,
|
|
2150
2150
|
class: "sl-flex-1 sl-min-w-0"
|
|
2151
|
-
},
|
|
2151
|
+
}, Wl = {
|
|
2152
2152
|
key: 1,
|
|
2153
2153
|
class: "sl-flex-1"
|
|
2154
|
-
},
|
|
2154
|
+
}, Gl = {
|
|
2155
2155
|
key: 2,
|
|
2156
2156
|
class: "sl-flex sl-items-center sl-gap-3 sl-flex-shrink-0"
|
|
2157
|
-
},
|
|
2157
|
+
}, ql = {
|
|
2158
2158
|
key: 0,
|
|
2159
2159
|
class: "sl-border-t sl-border-gray-200 dark:sl-border-gray-700"
|
|
2160
|
-
},
|
|
2160
|
+
}, Yl = { class: "sl-flex sl-items-center sl-justify-between sl-gap-4" }, Kl = {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
class: "sl-flex-1 sl-min-w-0"
|
|
2163
|
-
},
|
|
2163
|
+
}, Zl = {
|
|
2164
2164
|
key: 1,
|
|
2165
2165
|
class: "sl-flex-1"
|
|
2166
|
-
},
|
|
2166
|
+
}, Jl = {
|
|
2167
2167
|
key: 2,
|
|
2168
2168
|
class: "sl-flex sl-items-center sl-gap-3 sl-flex-shrink-0"
|
|
2169
|
-
},
|
|
2169
|
+
}, Xl = {
|
|
2170
2170
|
key: 0,
|
|
2171
2171
|
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"
|
|
2172
|
-
},
|
|
2172
|
+
}, Ql = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, ea = {
|
|
2173
2173
|
class: "sl-animate-spin sl-h-8 sl-w-8",
|
|
2174
2174
|
style: { color: "var(--sl-color-primary-600, #4f46e5)" },
|
|
2175
2175
|
fill: "none",
|
|
2176
2176
|
viewBox: "0 0 24 24"
|
|
2177
|
-
},
|
|
2177
|
+
}, ta = {
|
|
2178
2178
|
key: 0,
|
|
2179
2179
|
class: "sl-text-sm sl-font-medium sl-text-gray-600 dark:sl-text-gray-300"
|
|
2180
|
-
},
|
|
2180
|
+
}, sa = /* @__PURE__ */ D({
|
|
2181
2181
|
__name: "CardLayout",
|
|
2182
2182
|
props: {
|
|
2183
2183
|
variant: { default: "elevated" },
|
|
@@ -2202,43 +2202,43 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2202
2202
|
},
|
|
2203
2203
|
emits: ["update:collapsed", "expand", "collapse"],
|
|
2204
2204
|
setup(t, { expose: e, emit: a }) {
|
|
2205
|
-
const l = t,
|
|
2206
|
-
oe(() => l.collapsed, (
|
|
2207
|
-
|
|
2205
|
+
const l = t, c = a, n = ye(), r = te(l.collapsed);
|
|
2206
|
+
oe(() => l.collapsed, (x) => {
|
|
2207
|
+
r.value = x;
|
|
2208
2208
|
});
|
|
2209
|
-
const
|
|
2210
|
-
|
|
2211
|
-
},
|
|
2212
|
-
const
|
|
2209
|
+
const i = p(() => r.value), y = () => {
|
|
2210
|
+
r.value = !r.value, c("update:collapsed", r.value), r.value ? c("collapse") : c("expand");
|
|
2211
|
+
}, g = p(() => l.showHeader !== void 0 ? l.showHeader : !!(n.header || n["header-icon"] || n["header-title"] || n["header-subtitle"] || n["header-badge"] || n["header-actions"] || l.collapsible)), m = p(() => l.showFooter !== void 0 ? l.showFooter : !!(n.footer || n["footer-left"] || n["footer-actions"])), b = p(() => {
|
|
2212
|
+
const x = [
|
|
2213
2213
|
"sl-relative",
|
|
2214
2214
|
"sl-flex",
|
|
2215
2215
|
"sl-flex-col"
|
|
2216
2216
|
];
|
|
2217
|
-
switch (l.fullHeight &&
|
|
2217
|
+
switch (l.fullHeight && x.push("sl-h-full"), l.variant) {
|
|
2218
2218
|
case "elevated":
|
|
2219
|
-
|
|
2219
|
+
x.push("sl-bg-white", "dark:sl-bg-gray-800");
|
|
2220
2220
|
break;
|
|
2221
2221
|
case "outlined":
|
|
2222
|
-
|
|
2222
|
+
x.push("sl-bg-white", "dark:sl-bg-gray-800", "sl-border", "sl-border-gray-200", "dark:sl-border-gray-700");
|
|
2223
2223
|
break;
|
|
2224
2224
|
case "flat":
|
|
2225
|
-
|
|
2225
|
+
x.push("sl-bg-transparent");
|
|
2226
2226
|
break;
|
|
2227
2227
|
case "filled":
|
|
2228
|
-
|
|
2228
|
+
x.push("sl-bg-gray-50", "dark:sl-bg-gray-800/50");
|
|
2229
2229
|
break;
|
|
2230
2230
|
}
|
|
2231
2231
|
if (l.variant === "elevated") {
|
|
2232
|
-
const
|
|
2232
|
+
const N = {
|
|
2233
2233
|
none: "",
|
|
2234
2234
|
sm: "sl-shadow-sm",
|
|
2235
2235
|
md: "sl-shadow",
|
|
2236
2236
|
lg: "sl-shadow-lg",
|
|
2237
2237
|
xl: "sl-shadow-xl"
|
|
2238
2238
|
};
|
|
2239
|
-
|
|
2239
|
+
N[l.shadow] && x.push(N[l.shadow]);
|
|
2240
2240
|
}
|
|
2241
|
-
const
|
|
2241
|
+
const M = {
|
|
2242
2242
|
none: "",
|
|
2243
2243
|
sm: "sl-rounded-sm",
|
|
2244
2244
|
md: "sl-rounded-md",
|
|
@@ -2247,99 +2247,99 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2247
2247
|
"2xl": "sl-rounded-2xl",
|
|
2248
2248
|
full: "sl-rounded-3xl"
|
|
2249
2249
|
};
|
|
2250
|
-
return
|
|
2250
|
+
return M[l.rounded] && x.push(M[l.rounded]), l.hoverable && x.push(
|
|
2251
2251
|
"sl-transition-shadow",
|
|
2252
2252
|
"sl-duration-200",
|
|
2253
2253
|
"hover:sl-shadow-lg",
|
|
2254
2254
|
"dark:hover:sl-shadow-gray-900/30"
|
|
2255
|
-
), l.bgClass &&
|
|
2255
|
+
), l.bgClass && x.push(l.bgClass), l.scrollable && x.push("sl-overflow-hidden"), x;
|
|
2256
2256
|
}), v = p(() => {
|
|
2257
|
-
const
|
|
2258
|
-
return l.scrollable && l.maxHeight && (
|
|
2259
|
-
}),
|
|
2257
|
+
const x = {};
|
|
2258
|
+
return l.scrollable && l.maxHeight && (x.maxHeight = l.maxHeight), x;
|
|
2259
|
+
}), d = p(() => ({
|
|
2260
2260
|
compact: { x: "sl-px-3", y: "sl-py-2" },
|
|
2261
2261
|
default: { x: "sl-px-4 sm:sl-px-6", y: "sl-py-4" },
|
|
2262
2262
|
spacious: { x: "sl-px-6 sm:sl-px-8", y: "sl-py-5 sm:sl-py-6" }
|
|
2263
|
-
})[l.size]), f = p(() => [
|
|
2263
|
+
})[l.size]), f = p(() => [d.value.x, d.value.y]), h = p(() => {
|
|
2264
2264
|
if (l.noPadding)
|
|
2265
2265
|
return [];
|
|
2266
|
-
const
|
|
2267
|
-
return l.scrollable &&
|
|
2268
|
-
}),
|
|
2269
|
-
const
|
|
2266
|
+
const x = [d.value.x, d.value.y];
|
|
2267
|
+
return l.scrollable && x.push("sl-flex-1", "sl-min-h-0"), x;
|
|
2268
|
+
}), _ = p(() => {
|
|
2269
|
+
const x = {
|
|
2270
2270
|
compact: "sl-py-2",
|
|
2271
2271
|
default: "sl-py-3",
|
|
2272
2272
|
spacious: "sl-py-4"
|
|
2273
2273
|
};
|
|
2274
|
-
return [
|
|
2274
|
+
return [d.value.x, x[l.size], "sl-bg-gray-50/50 dark:sl-bg-gray-800/50"];
|
|
2275
2275
|
});
|
|
2276
2276
|
return e({
|
|
2277
|
-
toggleCollapse:
|
|
2278
|
-
isCollapsed:
|
|
2279
|
-
}), (
|
|
2280
|
-
class:
|
|
2277
|
+
toggleCollapse: y,
|
|
2278
|
+
isCollapsed: i
|
|
2279
|
+
}), (x, M) => (o(), u("div", {
|
|
2280
|
+
class: z([
|
|
2281
2281
|
"sl-card-layout",
|
|
2282
2282
|
b.value,
|
|
2283
2283
|
{ "sl-cursor-pointer": t.hoverable }
|
|
2284
2284
|
]),
|
|
2285
|
-
style:
|
|
2285
|
+
style: F(v.value)
|
|
2286
2286
|
}, [
|
|
2287
|
-
|
|
2287
|
+
g.value ? (o(), u("div", {
|
|
2288
2288
|
key: 0,
|
|
2289
|
-
class:
|
|
2289
|
+
class: z([
|
|
2290
2290
|
"sl-card-header",
|
|
2291
2291
|
f.value,
|
|
2292
2292
|
{ "sl-sticky sl-top-0 sl-z-10 sl-bg-inherit": t.headerSticky && t.scrollable }
|
|
2293
2293
|
])
|
|
2294
2294
|
}, [
|
|
2295
|
-
|
|
2296
|
-
s("div",
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
])) :
|
|
2300
|
-
s("div",
|
|
2301
|
-
|
|
2302
|
-
s("h3",
|
|
2303
|
-
|
|
2295
|
+
S(x.$slots, "header", {}, () => [
|
|
2296
|
+
s("div", Ml, [
|
|
2297
|
+
x.$slots["header-icon"] ? (o(), u("div", Tl, [
|
|
2298
|
+
S(x.$slots, "header-icon", {}, void 0, !0)
|
|
2299
|
+
])) : w("", !0),
|
|
2300
|
+
s("div", Bl, [
|
|
2301
|
+
x.$slots["header-title"] ? (o(), u("div", Pl, [
|
|
2302
|
+
s("h3", jl, [
|
|
2303
|
+
S(x.$slots, "header-title", {}, void 0, !0)
|
|
2304
2304
|
]),
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
])) :
|
|
2308
|
-
])) :
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
])) :
|
|
2305
|
+
x.$slots["header-badge"] ? (o(), u("div", Al, [
|
|
2306
|
+
S(x.$slots, "header-badge", {}, void 0, !0)
|
|
2307
|
+
])) : w("", !0)
|
|
2308
|
+
])) : w("", !0),
|
|
2309
|
+
x.$slots["header-subtitle"] ? (o(), u("p", El, [
|
|
2310
|
+
S(x.$slots, "header-subtitle", {}, void 0, !0)
|
|
2311
|
+
])) : w("", !0)
|
|
2312
2312
|
]),
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
t.collapsible ? (
|
|
2313
|
+
x.$slots["header-actions"] || t.collapsible ? (o(), u("div", Vl, [
|
|
2314
|
+
S(x.$slots, "header-actions", {}, void 0, !0),
|
|
2315
|
+
t.collapsible ? (o(), u("button", {
|
|
2316
2316
|
key: 0,
|
|
2317
2317
|
type: "button",
|
|
2318
|
-
onClick:
|
|
2318
|
+
onClick: y,
|
|
2319
2319
|
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",
|
|
2320
|
-
"aria-expanded": !
|
|
2320
|
+
"aria-expanded": !i.value,
|
|
2321
2321
|
"aria-label": "Toggle content"
|
|
2322
2322
|
}, [
|
|
2323
|
-
(
|
|
2324
|
-
class:
|
|
2323
|
+
(o(), u("svg", {
|
|
2324
|
+
class: z(["sl-h-5 sl-w-5 sl-transition-transform sl-duration-200", { "sl-rotate-180": !i.value }]),
|
|
2325
2325
|
fill: "none",
|
|
2326
2326
|
viewBox: "0 0 24 24",
|
|
2327
2327
|
stroke: "currentColor",
|
|
2328
2328
|
"stroke-width": "2"
|
|
2329
|
-
}, [...
|
|
2329
|
+
}, [...M[0] || (M[0] = [
|
|
2330
2330
|
s("path", {
|
|
2331
2331
|
"stroke-linecap": "round",
|
|
2332
2332
|
"stroke-linejoin": "round",
|
|
2333
2333
|
d: "M19 9l-7 7-7-7"
|
|
2334
2334
|
}, null, -1)
|
|
2335
2335
|
])], 2))
|
|
2336
|
-
], 8,
|
|
2337
|
-
])) :
|
|
2336
|
+
], 8, Nl)) : w("", !0)
|
|
2337
|
+
])) : w("", !0)
|
|
2338
2338
|
])
|
|
2339
2339
|
], !0)
|
|
2340
|
-
], 2)) :
|
|
2341
|
-
|
|
2342
|
-
t.collapsible ? (
|
|
2340
|
+
], 2)) : w("", !0),
|
|
2341
|
+
g.value && t.divided && !i.value ? (o(), u("div", Fl)) : w("", !0),
|
|
2342
|
+
t.collapsible ? (o(), L(ce, {
|
|
2343
2343
|
key: 2,
|
|
2344
2344
|
"enter-active-class": "sl-transition-all sl-duration-200 sl-ease-out",
|
|
2345
2345
|
"enter-from-class": "sl-opacity-0 sl-max-h-0",
|
|
@@ -2348,80 +2348,80 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2348
2348
|
"leave-from-class": "sl-opacity-100",
|
|
2349
2349
|
"leave-to-class": "sl-opacity-0 sl-max-h-0"
|
|
2350
2350
|
}, {
|
|
2351
|
-
default:
|
|
2352
|
-
ae(s("div",
|
|
2351
|
+
default: C(() => [
|
|
2352
|
+
ae(s("div", Ul, [
|
|
2353
2353
|
s("div", {
|
|
2354
|
-
class:
|
|
2354
|
+
class: z([
|
|
2355
2355
|
"sl-card-body",
|
|
2356
|
-
|
|
2356
|
+
h.value,
|
|
2357
2357
|
{ "sl-overflow-y-auto": t.scrollable }
|
|
2358
2358
|
]),
|
|
2359
|
-
style:
|
|
2359
|
+
style: F(t.scrollable && t.maxHeight ? { maxHeight: t.maxHeight } : {})
|
|
2360
2360
|
}, [
|
|
2361
|
-
|
|
2362
|
-
|
|
2361
|
+
S(x.$slots, "body", {}, () => [
|
|
2362
|
+
S(x.$slots, "default", {}, void 0, !0)
|
|
2363
2363
|
], !0)
|
|
2364
2364
|
], 6),
|
|
2365
|
-
m.value && t.divided ? (
|
|
2366
|
-
m.value ? (
|
|
2365
|
+
m.value && t.divided ? (o(), u("div", Rl)) : w("", !0),
|
|
2366
|
+
m.value ? (o(), u("div", {
|
|
2367
2367
|
key: 1,
|
|
2368
|
-
class:
|
|
2368
|
+
class: z([
|
|
2369
2369
|
"sl-card-footer",
|
|
2370
|
-
|
|
2370
|
+
_.value,
|
|
2371
2371
|
{ "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": t.footerSticky && t.scrollable }
|
|
2372
2372
|
])
|
|
2373
2373
|
}, [
|
|
2374
|
-
|
|
2375
|
-
s("div",
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
])) : (
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
])) :
|
|
2374
|
+
S(x.$slots, "footer", {}, () => [
|
|
2375
|
+
s("div", Hl, [
|
|
2376
|
+
x.$slots["footer-left"] ? (o(), u("div", Ol, [
|
|
2377
|
+
S(x.$slots, "footer-left", {}, void 0, !0)
|
|
2378
|
+
])) : (o(), u("div", Wl)),
|
|
2379
|
+
x.$slots["footer-actions"] ? (o(), u("div", Gl, [
|
|
2380
|
+
S(x.$slots, "footer-actions", {}, void 0, !0)
|
|
2381
|
+
])) : w("", !0)
|
|
2382
2382
|
])
|
|
2383
2383
|
], !0)
|
|
2384
|
-
], 2)) :
|
|
2384
|
+
], 2)) : w("", !0)
|
|
2385
2385
|
], 512), [
|
|
2386
|
-
[
|
|
2386
|
+
[Le, !i.value]
|
|
2387
2387
|
])
|
|
2388
2388
|
]),
|
|
2389
2389
|
_: 3
|
|
2390
|
-
})) : (
|
|
2390
|
+
})) : (o(), u(U, { key: 3 }, [
|
|
2391
2391
|
s("div", {
|
|
2392
|
-
class:
|
|
2392
|
+
class: z([
|
|
2393
2393
|
"sl-card-body",
|
|
2394
|
-
|
|
2394
|
+
h.value,
|
|
2395
2395
|
{ "sl-overflow-y-auto": t.scrollable }
|
|
2396
2396
|
]),
|
|
2397
|
-
style:
|
|
2397
|
+
style: F(t.scrollable && t.maxHeight ? { maxHeight: t.maxHeight } : {})
|
|
2398
2398
|
}, [
|
|
2399
|
-
|
|
2400
|
-
|
|
2399
|
+
S(x.$slots, "body", {}, () => [
|
|
2400
|
+
S(x.$slots, "default", {}, void 0, !0)
|
|
2401
2401
|
], !0)
|
|
2402
2402
|
], 6),
|
|
2403
|
-
m.value && t.divided ? (
|
|
2404
|
-
m.value ? (
|
|
2403
|
+
m.value && t.divided ? (o(), u("div", ql)) : w("", !0),
|
|
2404
|
+
m.value ? (o(), u("div", {
|
|
2405
2405
|
key: 1,
|
|
2406
|
-
class:
|
|
2406
|
+
class: z([
|
|
2407
2407
|
"sl-card-footer",
|
|
2408
|
-
|
|
2408
|
+
_.value,
|
|
2409
2409
|
{ "sl-sticky sl-bottom-0 sl-z-10 sl-bg-inherit": t.footerSticky && t.scrollable }
|
|
2410
2410
|
])
|
|
2411
2411
|
}, [
|
|
2412
|
-
|
|
2413
|
-
s("div",
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
])) : (
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
])) :
|
|
2412
|
+
S(x.$slots, "footer", {}, () => [
|
|
2413
|
+
s("div", Yl, [
|
|
2414
|
+
x.$slots["footer-left"] ? (o(), u("div", Kl, [
|
|
2415
|
+
S(x.$slots, "footer-left", {}, void 0, !0)
|
|
2416
|
+
])) : (o(), u("div", Zl)),
|
|
2417
|
+
x.$slots["footer-actions"] ? (o(), u("div", Jl, [
|
|
2418
|
+
S(x.$slots, "footer-actions", {}, void 0, !0)
|
|
2419
|
+
])) : w("", !0)
|
|
2420
2420
|
])
|
|
2421
2421
|
], !0)
|
|
2422
|
-
], 2)) :
|
|
2422
|
+
], 2)) : w("", !0)
|
|
2423
2423
|
], 64)),
|
|
2424
|
-
|
|
2424
|
+
$(ce, {
|
|
2425
2425
|
"enter-active-class": "sl-transition-opacity sl-duration-200",
|
|
2426
2426
|
"enter-from-class": "sl-opacity-0",
|
|
2427
2427
|
"enter-to-class": "sl-opacity-100",
|
|
@@ -2429,11 +2429,11 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2429
2429
|
"leave-from-class": "sl-opacity-100",
|
|
2430
2430
|
"leave-to-class": "sl-opacity-0"
|
|
2431
2431
|
}, {
|
|
2432
|
-
default:
|
|
2433
|
-
t.loading ? (
|
|
2434
|
-
|
|
2435
|
-
s("div",
|
|
2436
|
-
(
|
|
2432
|
+
default: C(() => [
|
|
2433
|
+
t.loading ? (o(), u("div", Xl, [
|
|
2434
|
+
S(x.$slots, "loading", {}, () => [
|
|
2435
|
+
s("div", Ql, [
|
|
2436
|
+
(o(), u("svg", ea, [...M[1] || (M[1] = [
|
|
2437
2437
|
s("circle", {
|
|
2438
2438
|
class: "sl-opacity-25",
|
|
2439
2439
|
cx: "12",
|
|
@@ -2448,16 +2448,16 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2448
2448
|
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"
|
|
2449
2449
|
}, null, -1)
|
|
2450
2450
|
])])),
|
|
2451
|
-
t.loadingText ? (
|
|
2451
|
+
t.loadingText ? (o(), u("span", ta, k(t.loadingText), 1)) : w("", !0)
|
|
2452
2452
|
])
|
|
2453
2453
|
], !0)
|
|
2454
|
-
])) :
|
|
2454
|
+
])) : w("", !0)
|
|
2455
2455
|
]),
|
|
2456
2456
|
_: 3
|
|
2457
2457
|
})
|
|
2458
2458
|
], 6));
|
|
2459
2459
|
}
|
|
2460
|
-
}),
|
|
2460
|
+
}), Hr = /* @__PURE__ */ A(sa, [["__scopeId", "data-v-a1ea2aac"]]), la = "sl-text-sm", Or = /* @__PURE__ */ D({
|
|
2461
2461
|
__name: "InfoCard",
|
|
2462
2462
|
props: {
|
|
2463
2463
|
title: { default: "" },
|
|
@@ -2474,30 +2474,30 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2474
2474
|
warning: "var(--warning-title)",
|
|
2475
2475
|
success: "var(--success-title)",
|
|
2476
2476
|
error: "var(--error-title)"
|
|
2477
|
-
}[e.variant] })),
|
|
2477
|
+
}[e.variant] })), c = p(() => ({ color: {
|
|
2478
2478
|
info: "var(--info-text)",
|
|
2479
2479
|
warning: "var(--warning-text)",
|
|
2480
2480
|
success: "var(--success-text)",
|
|
2481
2481
|
error: "var(--error-text)"
|
|
2482
2482
|
}[e.variant] }));
|
|
2483
|
-
return (n,
|
|
2483
|
+
return (n, r) => (o(), u("div", {
|
|
2484
2484
|
class: "sl-rounded-xl sl-border sl-p-4",
|
|
2485
|
-
style:
|
|
2485
|
+
style: F({ backgroundColor: a.value.bg, borderColor: a.value.border })
|
|
2486
2486
|
}, [
|
|
2487
|
-
t.title ? (
|
|
2487
|
+
t.title ? (o(), u("h3", {
|
|
2488
2488
|
key: 0,
|
|
2489
2489
|
class: "sl-font-medium sl-mb-2",
|
|
2490
|
-
style:
|
|
2491
|
-
}, k(t.title), 5)) :
|
|
2490
|
+
style: F(l.value)
|
|
2491
|
+
}, k(t.title), 5)) : w("", !0),
|
|
2492
2492
|
s("div", {
|
|
2493
|
-
class:
|
|
2494
|
-
style:
|
|
2493
|
+
class: z(la),
|
|
2494
|
+
style: F(c.value)
|
|
2495
2495
|
}, [
|
|
2496
|
-
|
|
2496
|
+
S(n.$slots, "default")
|
|
2497
2497
|
], 4)
|
|
2498
2498
|
], 4));
|
|
2499
2499
|
}
|
|
2500
|
-
}),
|
|
2500
|
+
}), aa = { class: "sl-space-y-4" }, oa = { class: "sl-text-xl sl-font-semibold sl-text-slate-900 dark:sl-text-white" }, ra = { class: "sl-overflow-x-auto" }, na = { class: "sl-min-w-full sl-divide-y sl-divide-slate-200 dark:sl-divide-slate-700" }, ia = { class: "sl-bg-slate-50 dark:sl-bg-slate-900" }, da = { class: "sl-divide-y sl-divide-slate-200 dark:sl-divide-slate-700" }, ca = { class: "sl-px-6 sl-py-4 sl-text-sm sl-font-mono sl-text-slate-900 dark:sl-text-slate-100" }, ua = { class: "sl-px-6 sl-py-4 sl-text-sm sl-text-slate-600 dark:sl-text-slate-300" }, ma = { class: "sl-px-6 sl-py-4 sl-text-sm sl-font-mono sl-text-slate-500 dark:sl-text-slate-300" }, fa = { class: "sl-px-6 sl-py-4 sl-text-sm sl-text-slate-600 dark:sl-text-slate-300" }, Wr = /* @__PURE__ */ D({
|
|
2501
2501
|
__name: "PropsTable",
|
|
2502
2502
|
props: {
|
|
2503
2503
|
title: { default: "Props" },
|
|
@@ -2505,32 +2505,32 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2505
2505
|
},
|
|
2506
2506
|
setup(t) {
|
|
2507
2507
|
const e = ["Prop", "Type", "Default", "Description"];
|
|
2508
|
-
return (a, l) => (
|
|
2509
|
-
s("h2",
|
|
2508
|
+
return (a, l) => (o(), u("section", aa, [
|
|
2509
|
+
s("h2", oa, k(t.title), 1),
|
|
2510
2510
|
s("div", {
|
|
2511
|
-
class:
|
|
2511
|
+
class: z(["sl-rounded-xl sl-shadow-sm sl-border sl-overflow-hidden", [
|
|
2512
2512
|
"sl-bg-white dark:sl-bg-slate-800",
|
|
2513
2513
|
"sl-border-slate-200 dark:sl-border-slate-700"
|
|
2514
2514
|
]])
|
|
2515
2515
|
}, [
|
|
2516
|
-
s("div",
|
|
2517
|
-
s("table",
|
|
2518
|
-
s("thead",
|
|
2516
|
+
s("div", ra, [
|
|
2517
|
+
s("table", na, [
|
|
2518
|
+
s("thead", ia, [
|
|
2519
2519
|
s("tr", null, [
|
|
2520
|
-
(
|
|
2521
|
-
key:
|
|
2522
|
-
class:
|
|
2523
|
-
}, k(
|
|
2520
|
+
(o(), u(U, null, H(e, (c) => s("th", {
|
|
2521
|
+
key: c,
|
|
2522
|
+
class: z(["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"])
|
|
2523
|
+
}, k(c), 1)), 64))
|
|
2524
2524
|
])
|
|
2525
2525
|
]),
|
|
2526
|
-
s("tbody",
|
|
2527
|
-
(
|
|
2528
|
-
key:
|
|
2526
|
+
s("tbody", da, [
|
|
2527
|
+
(o(!0), u(U, null, H(t.props, (c) => (o(), u("tr", {
|
|
2528
|
+
key: c.name
|
|
2529
2529
|
}, [
|
|
2530
|
-
s("td",
|
|
2531
|
-
s("td",
|
|
2532
|
-
s("td",
|
|
2533
|
-
s("td",
|
|
2530
|
+
s("td", ca, k(c.name), 1),
|
|
2531
|
+
s("td", ua, k(c.type), 1),
|
|
2532
|
+
s("td", ma, k(c.default), 1),
|
|
2533
|
+
s("td", fa, k(c.description), 1)
|
|
2534
2534
|
]))), 128))
|
|
2535
2535
|
])
|
|
2536
2536
|
])
|
|
@@ -2538,21 +2538,21 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2538
2538
|
])
|
|
2539
2539
|
]));
|
|
2540
2540
|
}
|
|
2541
|
-
}),
|
|
2541
|
+
}), pa = {
|
|
2542
2542
|
class: "sl-rounded-xl sl-shadow-sm sl-border sl-overflow-hidden",
|
|
2543
2543
|
style: { backgroundColor: "var(--sl-surface-elevated)", borderColor: "var(--sl-border-default)" }
|
|
2544
|
-
},
|
|
2544
|
+
}, ga = {
|
|
2545
2545
|
key: 0,
|
|
2546
2546
|
class: "sl-px-6 sl-py-4 sl-border-b",
|
|
2547
2547
|
style: { backgroundColor: "var(--sl-surface-sunken)", borderColor: "var(--sl-border-default)" }
|
|
2548
|
-
},
|
|
2548
|
+
}, ha = {
|
|
2549
2549
|
class: "sl-text-lg sl-font-semibold",
|
|
2550
2550
|
style: { color: "var(--sl-text-primary)" }
|
|
2551
|
-
},
|
|
2551
|
+
}, ya = {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
class: "sl-text-sm sl-mt-1",
|
|
2554
2554
|
style: { color: "var(--sl-text-muted)" }
|
|
2555
|
-
},
|
|
2555
|
+
}, Gr = /* @__PURE__ */ D({
|
|
2556
2556
|
__name: "ShowcaseCard",
|
|
2557
2557
|
props: {
|
|
2558
2558
|
title: { default: "" },
|
|
@@ -2565,31 +2565,31 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2565
2565
|
const l = [];
|
|
2566
2566
|
return e.padded && l.push("sl-p-6"), e.contentClass && l.push(e.contentClass), l.join(" ");
|
|
2567
2567
|
});
|
|
2568
|
-
return (l,
|
|
2569
|
-
t.title || l.$slots.header ? (
|
|
2570
|
-
|
|
2571
|
-
s("h2",
|
|
2572
|
-
t.description ? (
|
|
2568
|
+
return (l, c) => (o(), u("div", pa, [
|
|
2569
|
+
t.title || l.$slots.header ? (o(), u("div", ga, [
|
|
2570
|
+
S(l.$slots, "header", {}, () => [
|
|
2571
|
+
s("h2", ha, k(t.title), 1),
|
|
2572
|
+
t.description ? (o(), u("p", ya, k(t.description), 1)) : w("", !0)
|
|
2573
2573
|
])
|
|
2574
|
-
])) :
|
|
2574
|
+
])) : w("", !0),
|
|
2575
2575
|
s("div", {
|
|
2576
|
-
class:
|
|
2576
|
+
class: z(a.value)
|
|
2577
2577
|
}, [
|
|
2578
|
-
|
|
2578
|
+
S(l.$slots, "default")
|
|
2579
2579
|
], 2)
|
|
2580
2580
|
]));
|
|
2581
2581
|
}
|
|
2582
|
-
}),
|
|
2582
|
+
}), xa = { class: "sl-space-y-8" }, ba = { class: "sl-space-y-2" }, va = {
|
|
2583
2583
|
class: "sl-text-3xl sl-font-bold",
|
|
2584
2584
|
style: { color: "var(--sl-text-primary)" }
|
|
2585
|
-
},
|
|
2585
|
+
}, ka = {
|
|
2586
2586
|
class: "sl-text-lg",
|
|
2587
2587
|
style: { color: "var(--sl-text-muted)" }
|
|
2588
|
-
},
|
|
2588
|
+
}, wa = {
|
|
2589
2589
|
key: 0,
|
|
2590
2590
|
class: "sl-flex sl-flex-wrap sl-gap-2 sl-pb-4",
|
|
2591
2591
|
style: { borderBottom: "1px solid var(--sl-border-default)" }
|
|
2592
|
-
},
|
|
2592
|
+
}, $a = ["onClick"], _a = { class: "sl-space-y-8" }, qr = /* @__PURE__ */ D({
|
|
2593
2593
|
__name: "ShowcaseLayout",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
title: {},
|
|
@@ -2599,42 +2599,42 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2599
2599
|
},
|
|
2600
2600
|
emits: ["update:modelValue"],
|
|
2601
2601
|
setup(t, { emit: e }) {
|
|
2602
|
-
const a = t, l = e, { isDark:
|
|
2603
|
-
l("update:modelValue",
|
|
2604
|
-
},
|
|
2605
|
-
backgroundColor:
|
|
2606
|
-
color:
|
|
2602
|
+
const a = t, l = e, { isDark: c } = xe(), n = (i) => {
|
|
2603
|
+
l("update:modelValue", i);
|
|
2604
|
+
}, r = (i) => a.modelValue === i ? {
|
|
2605
|
+
backgroundColor: c.value ? "#ffffff" : "#0f172a",
|
|
2606
|
+
color: c.value ? "#0f172a" : "#ffffff",
|
|
2607
2607
|
boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)"
|
|
2608
2608
|
} : {
|
|
2609
2609
|
backgroundColor: "transparent",
|
|
2610
2610
|
color: "var(--sl-text-muted)"
|
|
2611
2611
|
};
|
|
2612
|
-
return (
|
|
2613
|
-
s("header",
|
|
2614
|
-
s("h1",
|
|
2615
|
-
s("p",
|
|
2616
|
-
|
|
2612
|
+
return (i, y) => (o(), u("div", xa, [
|
|
2613
|
+
s("header", ba, [
|
|
2614
|
+
s("h1", va, k(t.title), 1),
|
|
2615
|
+
s("p", ka, k(t.description), 1),
|
|
2616
|
+
S(i.$slots, "header-extra")
|
|
2617
2617
|
]),
|
|
2618
|
-
t.variants && t.variants.length > 0 ? (
|
|
2619
|
-
(
|
|
2620
|
-
key:
|
|
2621
|
-
onClick: (m) => n(
|
|
2618
|
+
t.variants && t.variants.length > 0 ? (o(), u("nav", wa, [
|
|
2619
|
+
(o(!0), u(U, null, H(t.variants, (g) => (o(), u("button", {
|
|
2620
|
+
key: g.id,
|
|
2621
|
+
onClick: (m) => n(g.id),
|
|
2622
2622
|
class: "sl-px-4 sl-py-2 sl-text-sm sl-font-medium sl-rounded-lg sl-transition-all sl-duration-150",
|
|
2623
|
-
style:
|
|
2624
|
-
}, k(
|
|
2625
|
-
])) :
|
|
2626
|
-
s("div",
|
|
2627
|
-
|
|
2628
|
-
|
|
2623
|
+
style: F(r(g.id))
|
|
2624
|
+
}, k(g.label || g.name), 13, $a))), 128))
|
|
2625
|
+
])) : w("", !0),
|
|
2626
|
+
s("div", _a, [
|
|
2627
|
+
S(i.$slots, "content", {}, () => [
|
|
2628
|
+
S(i.$slots, "default")
|
|
2629
2629
|
])
|
|
2630
2630
|
]),
|
|
2631
|
-
|
|
2631
|
+
S(i.$slots, "footer")
|
|
2632
2632
|
]));
|
|
2633
2633
|
}
|
|
2634
|
-
}),
|
|
2634
|
+
}), Ca = { class: "sl-space-y-4" }, Ia = {
|
|
2635
2635
|
class: "sl-text-xl sl-font-semibold",
|
|
2636
2636
|
style: { color: "var(--sl-text-primary)" }
|
|
2637
|
-
},
|
|
2637
|
+
}, Sa = { class: "sl-rounded-xl sl-p-4 sl-overflow-auto sl-bg-slate-800 dark:sl-bg-slate-900" }, za = { class: "sl-text-sm sl-text-slate-300 sl-font-mono" }, Yr = /* @__PURE__ */ D({
|
|
2638
2638
|
__name: "StateDisplay",
|
|
2639
2639
|
props: {
|
|
2640
2640
|
title: { default: "Current State" },
|
|
@@ -2642,26 +2642,26 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2642
2642
|
},
|
|
2643
2643
|
setup(t) {
|
|
2644
2644
|
const e = t, a = p(() => JSON.stringify(e.state, null, 2));
|
|
2645
|
-
return (l,
|
|
2646
|
-
s("h2",
|
|
2647
|
-
s("div",
|
|
2648
|
-
s("pre",
|
|
2645
|
+
return (l, c) => (o(), u("section", Ca, [
|
|
2646
|
+
s("h2", Ia, k(t.title), 1),
|
|
2647
|
+
s("div", Sa, [
|
|
2648
|
+
s("pre", za, k(a.value), 1)
|
|
2649
2649
|
])
|
|
2650
2650
|
]));
|
|
2651
2651
|
}
|
|
2652
|
-
}),
|
|
2652
|
+
}), La = { class: "sl-relative sl-z-10 sl-flex sl-flex-col sm:sl-flex-row sl-items-center sl-gap-6" }, Da = { class: "sl-flex-shrink-0" }, Ma = { class: "sl-relative" }, Ta = ["src", "alt"], Ba = {
|
|
2653
2653
|
key: 1,
|
|
2654
2654
|
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"
|
|
2655
|
-
},
|
|
2655
|
+
}, Pa = {
|
|
2656
2656
|
key: 0,
|
|
2657
2657
|
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"
|
|
2658
|
-
},
|
|
2658
|
+
}, ja = { class: "sl-text-center sm:sl-text-left" }, Aa = { class: "sl-text-3xl sl-font-bold sl-text-white sl-tracking-tight" }, Ea = {
|
|
2659
2659
|
key: 0,
|
|
2660
2660
|
class: "sl-mt-1 sl-text-lg sl-text-white/80"
|
|
2661
|
-
},
|
|
2661
|
+
}, Va = {
|
|
2662
2662
|
key: 1,
|
|
2663
2663
|
class: "sl-mt-3"
|
|
2664
|
-
},
|
|
2664
|
+
}, Na = { 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" }, Fa = /* @__PURE__ */ D({
|
|
2665
2665
|
__name: "ProfileHeaderCard",
|
|
2666
2666
|
props: {
|
|
2667
2667
|
name: {},
|
|
@@ -2672,17 +2672,17 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2672
2672
|
animationEnabled: { type: Boolean, default: !0 }
|
|
2673
2673
|
},
|
|
2674
2674
|
setup(t) {
|
|
2675
|
-
const e = t, a =
|
|
2675
|
+
const e = t, a = te(!1), l = p(() => e.status === "inactive"), c = p(() => a.value || !e.image ? null : typeof e.image == "string" ? e.image : e.image.secure_url || e.image.url || null), n = p(() => {
|
|
2676
2676
|
if (!e.name) return "?";
|
|
2677
|
-
const
|
|
2678
|
-
return
|
|
2679
|
-
}),
|
|
2677
|
+
const y = e.name.split(" ").filter(Boolean);
|
|
2678
|
+
return y.length >= 2 ? `${y[0][0]}${y[y.length - 1][0]}`.toUpperCase() : e.name.substring(0, 2).toUpperCase();
|
|
2679
|
+
}), r = p(() => e.animationEnabled ? {
|
|
2680
2680
|
animationDelay: `${e.animationIndex * 75}ms`
|
|
2681
|
-
} : {}),
|
|
2681
|
+
} : {}), i = () => {
|
|
2682
2682
|
a.value = !0;
|
|
2683
2683
|
};
|
|
2684
|
-
return (
|
|
2685
|
-
class:
|
|
2684
|
+
return (y, g) => (o(), u("div", {
|
|
2685
|
+
class: z([
|
|
2686
2686
|
"sl-profile-header-card",
|
|
2687
2687
|
"sl-relative sl-overflow-hidden",
|
|
2688
2688
|
"sl-rounded-2xl",
|
|
@@ -2690,53 +2690,53 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2690
2690
|
"sl-p-8",
|
|
2691
2691
|
t.animationEnabled && "sl-opacity-0 sl-animate-[fadeInUp_0.4s_ease-out_forwards]"
|
|
2692
2692
|
]),
|
|
2693
|
-
style:
|
|
2693
|
+
style: F(r.value)
|
|
2694
2694
|
}, [
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
s("div",
|
|
2699
|
-
s("div",
|
|
2700
|
-
s("div",
|
|
2695
|
+
g[1] || (g[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)),
|
|
2696
|
+
g[2] || (g[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)),
|
|
2697
|
+
g[3] || (g[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)),
|
|
2698
|
+
s("div", La, [
|
|
2699
|
+
s("div", Da, [
|
|
2700
|
+
s("div", Ma, [
|
|
2701
2701
|
s("div", {
|
|
2702
|
-
class:
|
|
2702
|
+
class: z([
|
|
2703
2703
|
"sl-w-24 sl-h-24 sl-rounded-full sl-overflow-hidden sl-shadow-xl",
|
|
2704
2704
|
l.value ? "sl-ring-4 sl-ring-red-400/50" : "sl-ring-4 sl-ring-white/30"
|
|
2705
2705
|
])
|
|
2706
2706
|
}, [
|
|
2707
|
-
|
|
2707
|
+
c.value ? (o(), u("img", {
|
|
2708
2708
|
key: 0,
|
|
2709
|
-
src:
|
|
2709
|
+
src: c.value,
|
|
2710
2710
|
alt: t.name,
|
|
2711
2711
|
class: "sl-w-full sl-h-full sl-object-cover",
|
|
2712
|
-
onError:
|
|
2713
|
-
}, null, 40,
|
|
2712
|
+
onError: i
|
|
2713
|
+
}, null, 40, Ta)) : (o(), u("div", Ba, k(n.value), 1))
|
|
2714
2714
|
], 2),
|
|
2715
|
-
l.value ? (
|
|
2716
|
-
|
|
2717
|
-
])) :
|
|
2715
|
+
l.value ? (o(), u("span", Pa, [
|
|
2716
|
+
$(I(Ee), { class: "sl-w-4 sl-h-4 sl-text-white" })
|
|
2717
|
+
])) : w("", !0)
|
|
2718
2718
|
])
|
|
2719
2719
|
]),
|
|
2720
|
-
s("div",
|
|
2721
|
-
s("h1",
|
|
2722
|
-
t.nickname ? (
|
|
2723
|
-
l.value ? (
|
|
2724
|
-
s("span",
|
|
2725
|
-
|
|
2726
|
-
|
|
2720
|
+
s("div", ja, [
|
|
2721
|
+
s("h1", Aa, k(t.name || "Unknown User"), 1),
|
|
2722
|
+
t.nickname ? (o(), u("p", Ea, k(t.nickname), 1)) : w("", !0),
|
|
2723
|
+
l.value ? (o(), u("div", Va, [
|
|
2724
|
+
s("span", Na, [
|
|
2725
|
+
$(I(Ve), { class: "sl-w-4 sl-h-4" }),
|
|
2726
|
+
g[0] || (g[0] = R(" Inactive ", -1))
|
|
2727
2727
|
])
|
|
2728
|
-
])) :
|
|
2728
|
+
])) : w("", !0)
|
|
2729
2729
|
])
|
|
2730
2730
|
])
|
|
2731
2731
|
], 6));
|
|
2732
2732
|
}
|
|
2733
|
-
}),
|
|
2733
|
+
}), Ua = /* @__PURE__ */ A(Fa, [["__scopeId", "data-v-a51f3fb7"]]), Ra = {
|
|
2734
2734
|
key: 0,
|
|
2735
2735
|
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"
|
|
2736
|
-
},
|
|
2736
|
+
}, Ha = {
|
|
2737
2737
|
key: 1,
|
|
2738
2738
|
class: "sl-text-sm sl-font-semibold sl-text-gray-900 dark:sl-text-gray-100"
|
|
2739
|
-
},
|
|
2739
|
+
}, Oa = /* @__PURE__ */ D({
|
|
2740
2740
|
__name: "ProfileCard",
|
|
2741
2741
|
props: {
|
|
2742
2742
|
title: {},
|
|
@@ -2747,46 +2747,46 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2747
2747
|
animationEnabled: { type: Boolean, default: !0 }
|
|
2748
2748
|
},
|
|
2749
2749
|
setup(t) {
|
|
2750
|
-
const e = t, a = ye(), l = p(() => e.title || e.icon || a.header),
|
|
2750
|
+
const e = t, a = ye(), l = p(() => e.title || e.icon || a.header), c = p(() => e.animationEnabled ? {
|
|
2751
2751
|
animationDelay: `${e.animationIndex * e.animationDelay}ms`
|
|
2752
2752
|
} : {});
|
|
2753
|
-
return (n,
|
|
2754
|
-
class:
|
|
2753
|
+
return (n, r) => (o(), u("div", {
|
|
2754
|
+
class: z([
|
|
2755
2755
|
"sl-profile-card",
|
|
2756
2756
|
"sl-relative sl-overflow-hidden",
|
|
2757
2757
|
"sl-rounded-xl sl-bg-white dark:sl-bg-gray-800",
|
|
2758
2758
|
"sl-shadow-sm sl-ring-1 sl-ring-gray-200 dark:sl-ring-gray-700",
|
|
2759
2759
|
t.animationEnabled && "sl-opacity-0 sl-animate-[fadeInUp_0.4s_ease-out_forwards]"
|
|
2760
2760
|
]),
|
|
2761
|
-
style:
|
|
2761
|
+
style: F(c.value)
|
|
2762
2762
|
}, [
|
|
2763
|
-
l.value ? (
|
|
2764
|
-
|
|
2765
|
-
t.icon ? (
|
|
2763
|
+
l.value ? (o(), u("div", Ra, [
|
|
2764
|
+
S(n.$slots, "header", {}, () => [
|
|
2765
|
+
t.icon ? (o(), L(J(t.icon), {
|
|
2766
2766
|
key: 0,
|
|
2767
2767
|
class: "sl-h-5 sl-w-5 sl-text-primary-600 dark:sl-text-primary-400",
|
|
2768
2768
|
"aria-hidden": "true"
|
|
2769
|
-
})) :
|
|
2770
|
-
t.title ? (
|
|
2769
|
+
})) : w("", !0),
|
|
2770
|
+
t.title ? (o(), u("h3", Ha, k(t.title), 1)) : w("", !0)
|
|
2771
2771
|
], !0)
|
|
2772
|
-
])) :
|
|
2772
|
+
])) : w("", !0),
|
|
2773
2773
|
s("div", {
|
|
2774
|
-
class:
|
|
2774
|
+
class: z([t.noPadding ? "" : "sl-p-5"])
|
|
2775
2775
|
}, [
|
|
2776
|
-
|
|
2776
|
+
S(n.$slots, "default", {}, void 0, !0)
|
|
2777
2777
|
], 2)
|
|
2778
2778
|
], 6));
|
|
2779
2779
|
}
|
|
2780
|
-
}),
|
|
2780
|
+
}), Z = /* @__PURE__ */ A(Oa, [["__scopeId", "data-v-1b6c2c74"]]), Wa = { class: "sl-space-y-4" }, Ga = {
|
|
2781
2781
|
key: 0,
|
|
2782
2782
|
class: "sl-flex sl-items-start sl-gap-3"
|
|
2783
|
-
},
|
|
2783
|
+
}, qa = ["href"], Ya = {
|
|
2784
2784
|
key: 1,
|
|
2785
2785
|
class: "sl-flex sl-items-start sl-gap-3"
|
|
2786
|
-
},
|
|
2786
|
+
}, Ka = ["href"], Za = {
|
|
2787
2787
|
key: 2,
|
|
2788
2788
|
class: "sl-flex sl-items-start sl-gap-3"
|
|
2789
|
-
},
|
|
2789
|
+
}, Ja = ["href"], Xa = /* @__PURE__ */ D({
|
|
2790
2790
|
__name: "ProfileContactCard",
|
|
2791
2791
|
props: {
|
|
2792
2792
|
email: {},
|
|
@@ -2800,53 +2800,53 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2800
2800
|
if (!e.phone) return "";
|
|
2801
2801
|
const n = e.phone.replace(/\D/g, "");
|
|
2802
2802
|
return n.length === 10 ? `(${n.slice(0, 3)}) ${n.slice(3, 6)}-${n.slice(6)}` : n.length === 11 && n.startsWith("1") ? `+1 (${n.slice(1, 4)}) ${n.slice(4, 7)}-${n.slice(7)}` : e.phone;
|
|
2803
|
-
}), l = p(() => e.website ? e.website.startsWith("http://") || e.website.startsWith("https://") ? e.website : `https://${e.website}` : ""),
|
|
2804
|
-
return (n,
|
|
2803
|
+
}), l = p(() => e.website ? e.website.startsWith("http://") || e.website.startsWith("https://") ? e.website : `https://${e.website}` : ""), c = p(() => e.website ? e.website.replace(/^https?:\/\//, "").replace(/\/$/, "") : "");
|
|
2804
|
+
return (n, r) => (o(), L(Z, {
|
|
2805
2805
|
title: "Contact",
|
|
2806
|
-
icon:
|
|
2806
|
+
icon: I(me),
|
|
2807
2807
|
"animation-index": t.animationIndex,
|
|
2808
2808
|
"animation-enabled": t.animationEnabled
|
|
2809
2809
|
}, {
|
|
2810
|
-
default:
|
|
2811
|
-
s("div",
|
|
2812
|
-
t.email ? (
|
|
2813
|
-
|
|
2810
|
+
default: C(() => [
|
|
2811
|
+
s("div", Wa, [
|
|
2812
|
+
t.email ? (o(), u("div", Ga, [
|
|
2813
|
+
$(I(Ze), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
|
|
2814
2814
|
s("div", null, [
|
|
2815
|
-
|
|
2815
|
+
r[0] || (r[0] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Email", -1)),
|
|
2816
2816
|
s("a", {
|
|
2817
2817
|
href: `mailto:${t.email}`,
|
|
2818
2818
|
class: "sl-text-sm sl-text-gray-900 dark:sl-text-gray-100 hover:sl-text-primary-600 dark:hover:sl-text-primary-400"
|
|
2819
|
-
}, k(t.email), 9,
|
|
2819
|
+
}, k(t.email), 9, qa)
|
|
2820
2820
|
])
|
|
2821
|
-
])) :
|
|
2822
|
-
t.phone ? (
|
|
2823
|
-
|
|
2821
|
+
])) : w("", !0),
|
|
2822
|
+
t.phone ? (o(), u("div", Ya, [
|
|
2823
|
+
$(I(me), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
|
|
2824
2824
|
s("div", null, [
|
|
2825
|
-
|
|
2825
|
+
r[1] || (r[1] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Phone", -1)),
|
|
2826
2826
|
s("a", {
|
|
2827
2827
|
href: `tel:${t.phone}`,
|
|
2828
2828
|
class: "sl-text-sm sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline"
|
|
2829
|
-
}, k(a.value), 9,
|
|
2829
|
+
}, k(a.value), 9, Ka)
|
|
2830
2830
|
])
|
|
2831
|
-
])) :
|
|
2832
|
-
t.website ? (
|
|
2833
|
-
|
|
2831
|
+
])) : w("", !0),
|
|
2832
|
+
t.website ? (o(), u("div", Za, [
|
|
2833
|
+
$(I(we), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
|
|
2834
2834
|
s("div", null, [
|
|
2835
|
-
|
|
2835
|
+
r[2] || (r[2] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Website", -1)),
|
|
2836
2836
|
s("a", {
|
|
2837
2837
|
href: l.value,
|
|
2838
2838
|
target: "_blank",
|
|
2839
2839
|
rel: "noopener noreferrer",
|
|
2840
2840
|
class: "sl-text-sm sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline"
|
|
2841
|
-
}, k(
|
|
2841
|
+
}, k(c.value), 9, Ja)
|
|
2842
2842
|
])
|
|
2843
|
-
])) :
|
|
2843
|
+
])) : w("", !0)
|
|
2844
2844
|
])
|
|
2845
2845
|
]),
|
|
2846
2846
|
_: 1
|
|
2847
2847
|
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
2848
2848
|
}
|
|
2849
|
-
}),
|
|
2849
|
+
}), Qa = { class: "sl-flex sl-items-center sl-gap-3" }, eo = { class: "sl-text-sm sl-text-gray-900 dark:sl-text-gray-100" }, to = /* @__PURE__ */ D({
|
|
2850
2850
|
__name: "ProfilePersonalCard",
|
|
2851
2851
|
props: {
|
|
2852
2852
|
birthday: {},
|
|
@@ -2857,39 +2857,39 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2857
2857
|
const e = t, a = p(() => {
|
|
2858
2858
|
if (!e.birthday) return "Not specified";
|
|
2859
2859
|
let l;
|
|
2860
|
-
return typeof e.birthday == "string" ? l =
|
|
2860
|
+
return typeof e.birthday == "string" ? l = ee(e.birthday) : l = e.birthday, K(l) ? Y(l, "MMMM d, yyyy") : "Not specified";
|
|
2861
2861
|
});
|
|
2862
|
-
return (l,
|
|
2862
|
+
return (l, c) => (o(), L(Z, {
|
|
2863
2863
|
title: "Personal",
|
|
2864
|
-
icon:
|
|
2864
|
+
icon: I($e),
|
|
2865
2865
|
"animation-index": t.animationIndex,
|
|
2866
2866
|
"animation-enabled": t.animationEnabled
|
|
2867
2867
|
}, {
|
|
2868
|
-
default:
|
|
2869
|
-
s("div",
|
|
2870
|
-
|
|
2868
|
+
default: C(() => [
|
|
2869
|
+
s("div", Qa, [
|
|
2870
|
+
$(I(Je), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500" }),
|
|
2871
2871
|
s("div", null, [
|
|
2872
|
-
|
|
2873
|
-
s("p",
|
|
2872
|
+
c[0] || (c[0] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "Birthday", -1)),
|
|
2873
|
+
s("p", eo, k(a.value), 1)
|
|
2874
2874
|
])
|
|
2875
2875
|
])
|
|
2876
2876
|
]),
|
|
2877
2877
|
_: 1
|
|
2878
2878
|
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
2879
2879
|
}
|
|
2880
|
-
}),
|
|
2880
|
+
}), so = { class: "sl-space-y-4" }, lo = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "sl-flex sl-items-start sl-gap-3"
|
|
2883
|
-
},
|
|
2883
|
+
}, ao = {
|
|
2884
2884
|
key: 0,
|
|
2885
2885
|
class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100"
|
|
2886
|
-
},
|
|
2886
|
+
}, oo = {
|
|
2887
2887
|
key: 1,
|
|
2888
2888
|
class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400"
|
|
2889
|
-
},
|
|
2889
|
+
}, ro = {
|
|
2890
2890
|
key: 1,
|
|
2891
2891
|
class: "sl-flex sl-items-center sl-gap-3"
|
|
2892
|
-
},
|
|
2892
|
+
}, no = ["href"], io = /* @__PURE__ */ D({
|
|
2893
2893
|
__name: "ProfileProfessionalCard",
|
|
2894
2894
|
props: {
|
|
2895
2895
|
professional: {},
|
|
@@ -2897,58 +2897,147 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2897
2897
|
animationEnabled: { type: Boolean, default: !0 }
|
|
2898
2898
|
},
|
|
2899
2899
|
setup(t) {
|
|
2900
|
-
const e = () =>
|
|
2900
|
+
const e = () => G("svg", {
|
|
2901
2901
|
viewBox: "0 0 24 24",
|
|
2902
2902
|
fill: "currentColor",
|
|
2903
2903
|
class: "sl-w-5 sl-h-5"
|
|
2904
2904
|
}, [
|
|
2905
|
-
|
|
2905
|
+
G("path", {
|
|
2906
2906
|
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"
|
|
2907
2907
|
})
|
|
2908
|
-
]), a = t, l = p(() => a.professional?.title || a.professional?.company),
|
|
2908
|
+
]), a = t, l = p(() => a.professional?.title || a.professional?.company), c = p(() => {
|
|
2909
2909
|
if (!a.professional?.linkedin) return "";
|
|
2910
2910
|
const n = a.professional.linkedin;
|
|
2911
2911
|
return n.startsWith("http") ? n : n.startsWith("linkedin.com") ? `https://${n}` : `https://linkedin.com/in/${n}`;
|
|
2912
2912
|
});
|
|
2913
|
-
return (n,
|
|
2913
|
+
return (n, r) => (o(), L(Z, {
|
|
2914
2914
|
title: "Professional",
|
|
2915
|
-
icon:
|
|
2915
|
+
icon: I(Xe),
|
|
2916
2916
|
"animation-index": t.animationIndex,
|
|
2917
2917
|
"animation-enabled": t.animationEnabled
|
|
2918
2918
|
}, {
|
|
2919
|
-
default:
|
|
2920
|
-
s("div",
|
|
2921
|
-
l.value ? (
|
|
2922
|
-
|
|
2919
|
+
default: C(() => [
|
|
2920
|
+
s("div", so, [
|
|
2921
|
+
l.value ? (o(), u("div", lo, [
|
|
2922
|
+
$(I(Qe), { class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-gray-500 sl-flex-shrink-0 sl-mt-0.5" }),
|
|
2923
2923
|
s("div", null, [
|
|
2924
|
-
t.professional?.title ? (
|
|
2925
|
-
t.professional?.company ? (
|
|
2924
|
+
t.professional?.title ? (o(), u("p", ao, k(t.professional.title), 1)) : w("", !0),
|
|
2925
|
+
t.professional?.company ? (o(), u("p", oo, k(t.professional.company), 1)) : w("", !0)
|
|
2926
2926
|
])
|
|
2927
|
-
])) :
|
|
2928
|
-
t.professional?.linkedin ? (
|
|
2929
|
-
|
|
2927
|
+
])) : w("", !0),
|
|
2928
|
+
t.professional?.linkedin ? (o(), u("div", ro, [
|
|
2929
|
+
$(e, { class: "sl-h-5 sl-w-5 sl-text-[#0A66C2]" }),
|
|
2930
2930
|
s("div", null, [
|
|
2931
|
-
|
|
2931
|
+
r[0] || (r[0] = s("p", { class: "sl-text-xs sl-font-medium sl-uppercase sl-text-gray-500 dark:sl-text-gray-400" }, "LinkedIn", -1)),
|
|
2932
2932
|
s("a", {
|
|
2933
|
-
href:
|
|
2933
|
+
href: c.value,
|
|
2934
2934
|
target: "_blank",
|
|
2935
2935
|
rel: "noopener noreferrer",
|
|
2936
2936
|
class: "sl-text-sm sl-text-primary-600 dark:sl-text-primary-400 hover:sl-underline"
|
|
2937
|
-
}, " View Profile ", 8,
|
|
2937
|
+
}, " View Profile ", 8, no)
|
|
2938
2938
|
])
|
|
2939
|
-
])) :
|
|
2939
|
+
])) : w("", !0)
|
|
2940
2940
|
])
|
|
2941
2941
|
]),
|
|
2942
2942
|
_: 1
|
|
2943
2943
|
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
2944
2944
|
}
|
|
2945
|
-
}),
|
|
2945
|
+
}), co = { class: "sl-flex sl-flex-wrap sl-gap-4" }, uo = ["href", "title"], mo = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400 sl-capitalize sl-text-center" }, fo = {
|
|
2946
|
+
key: 0,
|
|
2947
|
+
class: "sl-text-center sl-py-4 sl-text-sm sl-text-gray-500 dark:sl-text-gray-400"
|
|
2948
|
+
}, po = /* @__PURE__ */ D({
|
|
2949
|
+
__name: "ProfileSocialCard",
|
|
2950
|
+
props: {
|
|
2951
|
+
social: {},
|
|
2952
|
+
animationIndex: { default: 4 },
|
|
2953
|
+
animationEnabled: { type: Boolean, default: !0 }
|
|
2954
|
+
},
|
|
2955
|
+
setup(t) {
|
|
2956
|
+
const e = t, a = p(() => !e.social || !Array.isArray(e.social) ? [] : e.social.filter((r) => r.url && r.platform));
|
|
2957
|
+
function l(r) {
|
|
2958
|
+
const i = r.toLowerCase();
|
|
2959
|
+
return {
|
|
2960
|
+
instagram: Ys,
|
|
2961
|
+
facebook: Fs,
|
|
2962
|
+
x: ge,
|
|
2963
|
+
twitter: ge,
|
|
2964
|
+
linkedin: Xs,
|
|
2965
|
+
tiktok: pl,
|
|
2966
|
+
youtube: Cl,
|
|
2967
|
+
github: Os,
|
|
2968
|
+
discord: As,
|
|
2969
|
+
twitch: xl,
|
|
2970
|
+
pinterest: sl,
|
|
2971
|
+
snapchat: rl,
|
|
2972
|
+
threads: cl
|
|
2973
|
+
}[i] || et;
|
|
2974
|
+
}
|
|
2975
|
+
function c(r) {
|
|
2976
|
+
const i = r.toLowerCase();
|
|
2977
|
+
return {
|
|
2978
|
+
instagram: "sl-bg-gradient-to-br sl-from-purple-500 sl-to-pink-500",
|
|
2979
|
+
facebook: "sl-bg-blue-600",
|
|
2980
|
+
x: "sl-bg-black dark:sl-bg-white",
|
|
2981
|
+
twitter: "sl-bg-black dark:sl-bg-white",
|
|
2982
|
+
linkedin: "sl-bg-blue-700",
|
|
2983
|
+
tiktok: "sl-bg-black",
|
|
2984
|
+
youtube: "sl-bg-red-600",
|
|
2985
|
+
github: "sl-bg-gray-900 dark:sl-bg-white",
|
|
2986
|
+
discord: "sl-bg-indigo-500",
|
|
2987
|
+
twitch: "sl-bg-purple-600",
|
|
2988
|
+
pinterest: "sl-bg-red-600",
|
|
2989
|
+
snapchat: "sl-bg-yellow-400",
|
|
2990
|
+
threads: "sl-bg-black dark:sl-bg-white"
|
|
2991
|
+
}[i] || "sl-bg-gray-500";
|
|
2992
|
+
}
|
|
2993
|
+
function n(r) {
|
|
2994
|
+
const i = r.toLowerCase();
|
|
2995
|
+
return ["x", "twitter", "github", "threads"].includes(i) ? "sl-text-white dark:sl-text-black" : i === "snapchat" ? "sl-text-black" : "sl-text-white";
|
|
2996
|
+
}
|
|
2997
|
+
return (r, i) => (o(), L(Z, {
|
|
2998
|
+
title: "Social",
|
|
2999
|
+
icon: I(we),
|
|
3000
|
+
"animation-index": t.animationIndex,
|
|
3001
|
+
"animation-enabled": t.animationEnabled
|
|
3002
|
+
}, {
|
|
3003
|
+
default: C(() => [
|
|
3004
|
+
s("div", co, [
|
|
3005
|
+
(o(!0), u(U, null, H(a.value, (y) => (o(), u("a", {
|
|
3006
|
+
key: y.platform,
|
|
3007
|
+
href: y.url,
|
|
3008
|
+
target: "_blank",
|
|
3009
|
+
rel: "noopener noreferrer",
|
|
3010
|
+
title: y.platform,
|
|
3011
|
+
class: "sl-group sl-flex sl-flex-col sl-items-center sl-gap-2 sl-p-3 sl-rounded-xl hover:sl-bg-gray-50 dark:hover:sl-bg-gray-700/50 sl-transition-all sl-min-w-[72px]"
|
|
3012
|
+
}, [
|
|
3013
|
+
s("div", {
|
|
3014
|
+
class: z([
|
|
3015
|
+
"sl-w-11 sl-h-11 sl-rounded-xl sl-flex sl-items-center sl-justify-center sl-transition-transform group-hover:sl-scale-110",
|
|
3016
|
+
c(y.platform)
|
|
3017
|
+
])
|
|
3018
|
+
}, [
|
|
3019
|
+
(o(), L(J(l(y.platform)), {
|
|
3020
|
+
class: z([
|
|
3021
|
+
"sl-w-5 sl-h-5",
|
|
3022
|
+
n(y.platform)
|
|
3023
|
+
])
|
|
3024
|
+
}, null, 8, ["class"]))
|
|
3025
|
+
], 2),
|
|
3026
|
+
s("span", mo, k(y.platform), 1)
|
|
3027
|
+
], 8, uo))), 128))
|
|
3028
|
+
]),
|
|
3029
|
+
a.value.length ? w("", !0) : (o(), u("div", fo, " No social links available "))
|
|
3030
|
+
]),
|
|
3031
|
+
_: 1
|
|
3032
|
+
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
3033
|
+
}
|
|
3034
|
+
}), go = { class: "sl-p-5" }, ho = { class: "sl-text-sm sl-text-gray-700 dark:sl-text-gray-300" }, yo = {
|
|
2946
3035
|
key: 0,
|
|
2947
3036
|
class: "sl-h-40 sl-w-full sl-bg-gray-100 dark:sl-bg-gray-700 sl-relative"
|
|
2948
|
-
},
|
|
3037
|
+
}, xo = ["src"], bo = {
|
|
2949
3038
|
key: 1,
|
|
2950
3039
|
class: "sl-w-full sl-h-full sl-flex sl-items-center sl-justify-center"
|
|
2951
|
-
},
|
|
3040
|
+
}, vo = /* @__PURE__ */ D({
|
|
2952
3041
|
__name: "ProfileLocationCard",
|
|
2953
3042
|
props: {
|
|
2954
3043
|
address: {},
|
|
@@ -2958,8 +3047,8 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2958
3047
|
animationEnabled: { type: Boolean, default: !0 }
|
|
2959
3048
|
},
|
|
2960
3049
|
setup(t) {
|
|
2961
|
-
const e = t, a =
|
|
2962
|
-
const m =
|
|
3050
|
+
const e = t, a = De("googleMaps", {}), l = te(!1), c = p(() => e.address ? Array.isArray(e.address) ? e.address[0] || null : e.address : null), n = p(() => {
|
|
3051
|
+
const m = c.value;
|
|
2963
3052
|
if (!m) return "No address specified";
|
|
2964
3053
|
if (m.description) return m.description;
|
|
2965
3054
|
if (m.name) return m.name;
|
|
@@ -2967,54 +3056,54 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
2967
3056
|
m.street && b.push(m.street), m.suite && b.push(m.suite);
|
|
2968
3057
|
const v = [];
|
|
2969
3058
|
return m.city && v.push(m.city), m.state && v.push(m.state), m.zip && v.push(m.zip), v.length > 0 && b.push(v.join(", ")), m.country && b.push(m.country), b.length > 0 ? b.join(", ") : "No address specified";
|
|
2970
|
-
}),
|
|
3059
|
+
}), r = p(() => {
|
|
2971
3060
|
if (e.latLng?.lat && e.latLng?.lng)
|
|
2972
3061
|
return e.latLng;
|
|
2973
|
-
const m =
|
|
3062
|
+
const m = c.value;
|
|
2974
3063
|
return m?.geocode?.location?.lat && m?.geocode?.location?.lng ? m.geocode.location : null;
|
|
2975
|
-
}),
|
|
2976
|
-
if (l.value || !
|
|
3064
|
+
}), i = p(() => !!r.value), y = p(() => {
|
|
3065
|
+
if (l.value || !r.value) return null;
|
|
2977
3066
|
const m = a?.staticMapsApiKey || a?.apiKey;
|
|
2978
3067
|
if (!m) return null;
|
|
2979
|
-
const { lat: b, lng: v } =
|
|
3068
|
+
const { lat: b, lng: v } = r.value;
|
|
2980
3069
|
return `https://maps.googleapis.com/maps/api/staticmap?center=${b},${v}&zoom=14&size=400x200&maptype=roadmap&markers=color:blue%7C${b},${v}&key=${m}`;
|
|
2981
|
-
}),
|
|
3070
|
+
}), g = () => {
|
|
2982
3071
|
l.value = !0;
|
|
2983
3072
|
};
|
|
2984
|
-
return (m, b) => (
|
|
3073
|
+
return (m, b) => (o(), L(Z, {
|
|
2985
3074
|
title: "Location",
|
|
2986
|
-
icon:
|
|
3075
|
+
icon: I(fe),
|
|
2987
3076
|
"animation-index": t.animationIndex,
|
|
2988
3077
|
"animation-enabled": t.animationEnabled,
|
|
2989
3078
|
"no-padding": !0
|
|
2990
3079
|
}, {
|
|
2991
|
-
default:
|
|
2992
|
-
s("div",
|
|
2993
|
-
s("div",
|
|
3080
|
+
default: C(() => [
|
|
3081
|
+
s("div", go, [
|
|
3082
|
+
s("div", ho, k(n.value), 1)
|
|
2994
3083
|
]),
|
|
2995
|
-
t.showMap &&
|
|
2996
|
-
|
|
3084
|
+
t.showMap && i.value ? (o(), u("div", yo, [
|
|
3085
|
+
y.value ? (o(), u("img", {
|
|
2997
3086
|
key: 0,
|
|
2998
|
-
src:
|
|
3087
|
+
src: y.value,
|
|
2999
3088
|
alt: "Location map",
|
|
3000
3089
|
class: "sl-w-full sl-h-full sl-object-cover",
|
|
3001
|
-
onError:
|
|
3002
|
-
}, null, 40,
|
|
3003
|
-
|
|
3090
|
+
onError: g
|
|
3091
|
+
}, null, 40, xo)) : (o(), u("div", bo, [
|
|
3092
|
+
$(I(fe), { class: "sl-w-8 sl-h-8 sl-text-gray-400 dark:sl-text-gray-500" })
|
|
3004
3093
|
])),
|
|
3005
3094
|
b[0] || (b[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))
|
|
3006
|
-
])) :
|
|
3095
|
+
])) : w("", !0)
|
|
3007
3096
|
]),
|
|
3008
3097
|
_: 1
|
|
3009
3098
|
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
3010
3099
|
}
|
|
3011
|
-
}),
|
|
3100
|
+
}), ko = { class: "sl-space-y-4" }, wo = { class: "sl-relative sl-flex sl-flex-col sl-items-center" }, $o = {
|
|
3012
3101
|
key: 0,
|
|
3013
3102
|
class: "sl-w-0.5 sl-flex-1 sl-bg-gray-200 dark:sl-bg-gray-700 sl-min-h-[2rem]"
|
|
3014
|
-
},
|
|
3103
|
+
}, _o = { class: "sl-flex-1 sl-pb-4" }, Co = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100" }, Io = {
|
|
3015
3104
|
key: 0,
|
|
3016
3105
|
class: "sl-text-sm sl-text-gray-600 dark:sl-text-gray-400"
|
|
3017
|
-
},
|
|
3106
|
+
}, So = { class: "sl-mt-1 sl-text-xs sl-text-gray-500 dark:sl-text-gray-500" }, zo = /* @__PURE__ */ D({
|
|
3018
3107
|
__name: "ProfileOrganizationsCard",
|
|
3019
3108
|
props: {
|
|
3020
3109
|
organizations: {},
|
|
@@ -3022,43 +3111,43 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
3022
3111
|
animationEnabled: { type: Boolean, default: !0 }
|
|
3023
3112
|
},
|
|
3024
3113
|
setup(t) {
|
|
3025
|
-
const e = t, a = p(() => e.organizations || []), l = (
|
|
3026
|
-
if (!
|
|
3027
|
-
const
|
|
3028
|
-
return
|
|
3029
|
-
}, n = (
|
|
3030
|
-
if (!
|
|
3031
|
-
if (
|
|
3032
|
-
const
|
|
3033
|
-
return
|
|
3034
|
-
},
|
|
3035
|
-
const
|
|
3036
|
-
if (
|
|
3037
|
-
const v = m || /* @__PURE__ */ new Date(),
|
|
3038
|
-
|
|
3114
|
+
const e = t, a = p(() => e.organizations || []), l = (i) => i.organization ? typeof i.organization == "string" ? i.organization : i.organization.name || "Unknown Organization" : "Unknown Organization", c = (i) => {
|
|
3115
|
+
if (!i.position) return "";
|
|
3116
|
+
const y = typeof i.position == "string" ? i.position : i.position.name, g = [];
|
|
3117
|
+
return i.position_prefix && g.push(i.position_prefix), y && g.push(y), i.position_suffix && g.push(i.position_suffix), g.join(" ");
|
|
3118
|
+
}, n = (i) => {
|
|
3119
|
+
if (!i) return null;
|
|
3120
|
+
if (i instanceof Date) return K(i) ? i : null;
|
|
3121
|
+
const y = ee(i);
|
|
3122
|
+
return K(y) ? y : null;
|
|
3123
|
+
}, r = (i, y) => {
|
|
3124
|
+
const g = n(i), m = n(y), b = [];
|
|
3125
|
+
if (g && b.push(Y(g, "MMM yyyy")), b.push("–"), m ? b.push(Y(m, "MMM yyyy")) : b.push("Present"), g) {
|
|
3126
|
+
const v = m || /* @__PURE__ */ new Date(), d = se(v, g), f = be(v, g) % 12, h = [];
|
|
3127
|
+
d > 0 && h.push(`${d} yr${d > 1 ? "s" : ""}`), (f > 0 || d === 0) && h.push(`${f || 1} mo${f > 1 ? "s" : ""}`), h.length > 0 && b.push("•", h.join(" "));
|
|
3039
3128
|
}
|
|
3040
3129
|
return b.join(" ");
|
|
3041
3130
|
};
|
|
3042
|
-
return (
|
|
3131
|
+
return (i, y) => (o(), L(Z, {
|
|
3043
3132
|
title: "Organizations",
|
|
3044
|
-
icon:
|
|
3133
|
+
icon: I(tt),
|
|
3045
3134
|
"animation-index": t.animationIndex,
|
|
3046
3135
|
"animation-enabled": t.animationEnabled
|
|
3047
3136
|
}, {
|
|
3048
|
-
default:
|
|
3049
|
-
s("div",
|
|
3050
|
-
(
|
|
3051
|
-
key:
|
|
3137
|
+
default: C(() => [
|
|
3138
|
+
s("div", ko, [
|
|
3139
|
+
(o(!0), u(U, null, H(a.value, (g, m) => (o(), u("div", {
|
|
3140
|
+
key: g.id || m,
|
|
3052
3141
|
class: "sl-flex sl-items-start sl-gap-3"
|
|
3053
3142
|
}, [
|
|
3054
|
-
s("div",
|
|
3055
|
-
|
|
3056
|
-
m < a.value.length - 1 ? (
|
|
3143
|
+
s("div", wo, [
|
|
3144
|
+
y[0] || (y[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)),
|
|
3145
|
+
m < a.value.length - 1 ? (o(), u("div", $o)) : w("", !0)
|
|
3057
3146
|
]),
|
|
3058
|
-
s("div",
|
|
3059
|
-
s("p",
|
|
3060
|
-
|
|
3061
|
-
s("p",
|
|
3147
|
+
s("div", _o, [
|
|
3148
|
+
s("p", Co, k(l(g)), 1),
|
|
3149
|
+
c(g) ? (o(), u("p", Io, k(c(g)), 1)) : w("", !0),
|
|
3150
|
+
s("p", So, k(r(g.start_date, g.end_date)), 1)
|
|
3062
3151
|
])
|
|
3063
3152
|
]))), 128))
|
|
3064
3153
|
])
|
|
@@ -3066,10 +3155,10 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
3066
3155
|
_: 1
|
|
3067
3156
|
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
3068
3157
|
}
|
|
3069
|
-
}),
|
|
3158
|
+
}), Lo = { class: "sl-grid sl-grid-cols-2 sl-gap-4" }, Do = { 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" }, Mo = { class: "sl-min-w-0 sl-flex-1" }, To = { class: "sl-text-sm sl-font-medium sl-text-gray-900 dark:sl-text-gray-100 sl-truncate" }, Bo = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400 sl-truncate" }, Po = {
|
|
3070
3159
|
key: 0,
|
|
3071
3160
|
class: "sl-text-xs sl-text-gray-400 dark:sl-text-gray-500 sl-flex sl-items-center sl-gap-1"
|
|
3072
|
-
},
|
|
3161
|
+
}, jo = /* @__PURE__ */ D({
|
|
3073
3162
|
__name: "ProfileRelatedNamesCard",
|
|
3074
3163
|
props: {
|
|
3075
3164
|
relatedNames: {},
|
|
@@ -3077,40 +3166,40 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
3077
3166
|
animationEnabled: { type: Boolean, default: !0 }
|
|
3078
3167
|
},
|
|
3079
3168
|
setup(t) {
|
|
3080
|
-
const e = t, a = p(() => e.relatedNames || []), l = (
|
|
3081
|
-
if (
|
|
3082
|
-
const
|
|
3083
|
-
return
|
|
3084
|
-
},
|
|
3085
|
-
const
|
|
3086
|
-
return
|
|
3087
|
-
}, n = (
|
|
3088
|
-
if (!
|
|
3089
|
-
let
|
|
3090
|
-
if (typeof
|
|
3091
|
-
const
|
|
3092
|
-
return
|
|
3169
|
+
const e = t, a = p(() => e.relatedNames || []), l = (i) => {
|
|
3170
|
+
if (i.name) return i.name;
|
|
3171
|
+
const y = [];
|
|
3172
|
+
return i.first_name && y.push(i.first_name), i.last_name && y.push(i.last_name), y.join(" ") || "Unknown";
|
|
3173
|
+
}, c = (i) => {
|
|
3174
|
+
const y = l(i), g = y.split(" ").filter(Boolean);
|
|
3175
|
+
return g.length >= 2 ? `${g[0][0]}${g[g.length - 1][0]}`.toUpperCase() : y.substring(0, 2).toUpperCase();
|
|
3176
|
+
}, n = (i) => i.label ? typeof i.label == "string" ? i.label : i.label.name || "" : i.relationship || "", r = (i) => {
|
|
3177
|
+
if (!i.birthday) return "";
|
|
3178
|
+
let y;
|
|
3179
|
+
if (typeof i.birthday == "string" ? y = ee(i.birthday) : y = i.birthday, !K(y)) return "";
|
|
3180
|
+
const g = se(/* @__PURE__ */ new Date(), y);
|
|
3181
|
+
return g === 0 ? `${Y(y, "MMM d, yyyy")}` : g >= 1 && g < 2 ? "over 1 year old" : `${g > 0 ? "over " : "almost "}${Math.abs(g)} years old`;
|
|
3093
3182
|
};
|
|
3094
|
-
return (
|
|
3183
|
+
return (i, y) => (o(), L(Z, {
|
|
3095
3184
|
title: "Related Names",
|
|
3096
|
-
icon:
|
|
3185
|
+
icon: I(st),
|
|
3097
3186
|
"animation-index": t.animationIndex,
|
|
3098
3187
|
"animation-enabled": t.animationEnabled
|
|
3099
3188
|
}, {
|
|
3100
|
-
default:
|
|
3101
|
-
s("div",
|
|
3102
|
-
(
|
|
3103
|
-
key:
|
|
3189
|
+
default: C(() => [
|
|
3190
|
+
s("div", Lo, [
|
|
3191
|
+
(o(!0), u(U, null, H(a.value, (g, m) => (o(), u("div", {
|
|
3192
|
+
key: g.id || m,
|
|
3104
3193
|
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"
|
|
3105
3194
|
}, [
|
|
3106
|
-
s("div",
|
|
3107
|
-
s("div",
|
|
3108
|
-
s("p",
|
|
3109
|
-
s("p",
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
])) :
|
|
3195
|
+
s("div", Do, k(c(g)), 1),
|
|
3196
|
+
s("div", Mo, [
|
|
3197
|
+
s("p", To, k(l(g)), 1),
|
|
3198
|
+
s("p", Bo, k(n(g)), 1),
|
|
3199
|
+
r(g) ? (o(), u("p", Po, [
|
|
3200
|
+
$(I($e), { class: "sl-w-3 sl-h-3" }),
|
|
3201
|
+
R(" " + k(r(g)), 1)
|
|
3202
|
+
])) : w("", !0)
|
|
3114
3203
|
])
|
|
3115
3204
|
]))), 128))
|
|
3116
3205
|
])
|
|
@@ -3118,10 +3207,10 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
3118
3207
|
_: 1
|
|
3119
3208
|
}, 8, ["icon", "animation-index", "animation-enabled"]));
|
|
3120
3209
|
}
|
|
3121
|
-
}),
|
|
3210
|
+
}), Ao = { class: "sl-bento-profile-layout sl-min-h-screen sl-relative" }, Eo = { class: "sl-relative sl-max-w-4xl sl-mx-auto sl-px-4 sl-py-8 sl-space-y-6" }, Vo = {
|
|
3122
3211
|
key: 0,
|
|
3123
3212
|
class: "sl-space-y-6"
|
|
3124
|
-
},
|
|
3213
|
+
}, No = { class: "sl-space-y-6" }, Fo = /* @__PURE__ */ D({
|
|
3125
3214
|
__name: "BentoProfileLayout",
|
|
3126
3215
|
props: {
|
|
3127
3216
|
profile: {},
|
|
@@ -3138,102 +3227,244 @@ const kr = /* @__PURE__ */ A(dl, [["render", ul]]), ml = { class: "sl-bg-white s
|
|
|
3138
3227
|
}) }
|
|
3139
3228
|
},
|
|
3140
3229
|
setup(t) {
|
|
3141
|
-
const e = t, a = p(() => e.config?.showContact !== !1), l = p(() => e.config?.showLocation !== !1),
|
|
3230
|
+
const e = t, a = p(() => e.config?.showContact !== !1), l = p(() => e.config?.showLocation !== !1), c = p(() => e.config?.showProfessional !== !1), n = p(() => e.config?.showPersonal !== !1), r = p(() => e.config?.showOrganizations !== !1), i = p(() => e.config?.showRelatedNames !== !1), y = p(() => e.config?.showSocial !== !1), g = p(() => e.config?.animationEnabled !== !1), m = p(() => {
|
|
3142
3231
|
if (e.profile.name) return e.profile.name;
|
|
3143
|
-
const
|
|
3144
|
-
return e.profile.first_name &&
|
|
3145
|
-
}),
|
|
3146
|
-
const
|
|
3147
|
-
return
|
|
3148
|
-
}),
|
|
3149
|
-
const
|
|
3150
|
-
return
|
|
3151
|
-
}),
|
|
3232
|
+
const j = [];
|
|
3233
|
+
return e.profile.first_name && j.push(e.profile.first_name), e.profile.last_name && j.push(e.profile.last_name), j.join(" ") || "Unknown User";
|
|
3234
|
+
}), b = p(() => e.profile.profile_image || e.profile.image || null), v = p(() => e.profile.email || e.profile.phone || e.profile.website), d = p(() => {
|
|
3235
|
+
const j = e.profile.professional;
|
|
3236
|
+
return j ? j.title || j.company || j.linkedin : !1;
|
|
3237
|
+
}), f = p(() => {
|
|
3238
|
+
const j = e.profile.address;
|
|
3239
|
+
return j ? Array.isArray(j) ? j.length > 0 : !0 : !1;
|
|
3240
|
+
}), h = p(() => !!_.value), _ = p(() => {
|
|
3152
3241
|
if (e.profile.latLng?.lat && e.profile.latLng?.lng)
|
|
3153
3242
|
return e.profile.latLng;
|
|
3154
3243
|
if (e.profile._geoloc?.lat && e.profile._geoloc?.lng)
|
|
3155
3244
|
return e.profile._geoloc;
|
|
3156
|
-
const
|
|
3157
|
-
if (
|
|
3158
|
-
const
|
|
3159
|
-
if (
|
|
3160
|
-
return
|
|
3245
|
+
const j = e.profile.address;
|
|
3246
|
+
if (j) {
|
|
3247
|
+
const T = Array.isArray(j) ? j[0] : j;
|
|
3248
|
+
if (T?.geocode?.location?.lat && T?.geocode?.location?.lng)
|
|
3249
|
+
return T.geocode.location;
|
|
3161
3250
|
}
|
|
3162
3251
|
return null;
|
|
3163
|
-
}),
|
|
3164
|
-
return (
|
|
3165
|
-
|
|
3166
|
-
s("div",
|
|
3167
|
-
|
|
3168
|
-
name:
|
|
3252
|
+
}), x = p(() => l.value && (f.value || h.value)), M = p(() => e.profile.organizations || []), N = p(() => e.profile.relatedNames || e.profile.related_names || []), O = p(() => e.profile.social || []), W = p(() => O.value.length > 0);
|
|
3253
|
+
return (j, T) => (o(), u("div", Ao, [
|
|
3254
|
+
T[0] || (T[0] = s("div", { class: "sl-absolute sl-inset-0 sl-bg-gray-50 dark:sl-bg-gray-900 sl--z-10" }, null, -1)),
|
|
3255
|
+
s("div", Eo, [
|
|
3256
|
+
$(Ua, {
|
|
3257
|
+
name: m.value,
|
|
3169
3258
|
nickname: t.profile.nickname,
|
|
3170
|
-
image:
|
|
3259
|
+
image: b.value,
|
|
3171
3260
|
status: t.profile.status,
|
|
3172
3261
|
"animation-index": 0,
|
|
3173
|
-
"animation-enabled":
|
|
3262
|
+
"animation-enabled": g.value
|
|
3174
3263
|
}, null, 8, ["name", "nickname", "image", "status", "animation-enabled"]),
|
|
3175
3264
|
s("div", {
|
|
3176
|
-
class:
|
|
3265
|
+
class: z([
|
|
3177
3266
|
"sl-grid sl-gap-6",
|
|
3178
|
-
|
|
3267
|
+
x.value ? "sl-grid-cols-1 md:sl-grid-cols-2" : "sl-grid-cols-1"
|
|
3179
3268
|
])
|
|
3180
3269
|
}, [
|
|
3181
3270
|
s("div", {
|
|
3182
|
-
class:
|
|
3271
|
+
class: z([
|
|
3183
3272
|
"sl-space-y-6",
|
|
3184
|
-
|
|
3273
|
+
x.value ? "" : "sl-grid sl-grid-cols-1 md:sl-grid-cols-2 sl-gap-6"
|
|
3185
3274
|
])
|
|
3186
3275
|
}, [
|
|
3187
|
-
a.value &&
|
|
3276
|
+
a.value && v.value ? (o(), L(Xa, {
|
|
3188
3277
|
key: 0,
|
|
3189
3278
|
email: t.profile.email,
|
|
3190
3279
|
phone: t.profile.phone,
|
|
3191
3280
|
website: t.profile.website,
|
|
3192
3281
|
"animation-index": 1,
|
|
3193
|
-
"animation-enabled":
|
|
3194
|
-
}, null, 8, ["email", "phone", "website", "animation-enabled"])) :
|
|
3195
|
-
n.value && t.profile.birthday ? (
|
|
3282
|
+
"animation-enabled": g.value
|
|
3283
|
+
}, null, 8, ["email", "phone", "website", "animation-enabled"])) : w("", !0),
|
|
3284
|
+
n.value && t.profile.birthday ? (o(), L(to, {
|
|
3196
3285
|
key: 1,
|
|
3197
3286
|
birthday: t.profile.birthday,
|
|
3198
3287
|
"animation-index": 2,
|
|
3199
|
-
"animation-enabled":
|
|
3200
|
-
}, null, 8, ["birthday", "animation-enabled"])) :
|
|
3201
|
-
|
|
3288
|
+
"animation-enabled": g.value
|
|
3289
|
+
}, null, 8, ["birthday", "animation-enabled"])) : w("", !0),
|
|
3290
|
+
c.value && d.value ? (o(), L(io, {
|
|
3202
3291
|
key: 2,
|
|
3203
3292
|
professional: t.profile.professional,
|
|
3204
3293
|
"animation-index": 3,
|
|
3205
|
-
"animation-enabled":
|
|
3206
|
-
}, null, 8, ["professional", "animation-enabled"])) :
|
|
3294
|
+
"animation-enabled": g.value
|
|
3295
|
+
}, null, 8, ["professional", "animation-enabled"])) : w("", !0),
|
|
3296
|
+
y.value && W.value ? (o(), L(po, {
|
|
3297
|
+
key: 3,
|
|
3298
|
+
social: O.value,
|
|
3299
|
+
"animation-index": 4,
|
|
3300
|
+
"animation-enabled": g.value
|
|
3301
|
+
}, null, 8, ["social", "animation-enabled"])) : w("", !0)
|
|
3207
3302
|
], 2),
|
|
3208
|
-
|
|
3209
|
-
l.value && (
|
|
3303
|
+
x.value ? (o(), u("div", Vo, [
|
|
3304
|
+
l.value && (f.value || h.value) ? (o(), L(vo, {
|
|
3210
3305
|
key: 0,
|
|
3211
3306
|
address: t.profile.address,
|
|
3212
|
-
"lat-lng":
|
|
3307
|
+
"lat-lng": _.value,
|
|
3213
3308
|
"animation-index": 1,
|
|
3214
|
-
"animation-enabled":
|
|
3215
|
-
}, null, 8, ["address", "lat-lng", "animation-enabled"])) :
|
|
3216
|
-
])) :
|
|
3309
|
+
"animation-enabled": g.value
|
|
3310
|
+
}, null, 8, ["address", "lat-lng", "animation-enabled"])) : w("", !0)
|
|
3311
|
+
])) : w("", !0)
|
|
3217
3312
|
], 2),
|
|
3218
|
-
s("div",
|
|
3219
|
-
|
|
3313
|
+
s("div", No, [
|
|
3314
|
+
r.value && M.value.length > 0 ? (o(), L(zo, {
|
|
3220
3315
|
key: 0,
|
|
3221
|
-
organizations:
|
|
3316
|
+
organizations: M.value,
|
|
3222
3317
|
"animation-index": 5,
|
|
3223
|
-
"animation-enabled":
|
|
3224
|
-
}, null, 8, ["organizations", "animation-enabled"])) :
|
|
3225
|
-
|
|
3318
|
+
"animation-enabled": g.value
|
|
3319
|
+
}, null, 8, ["organizations", "animation-enabled"])) : w("", !0),
|
|
3320
|
+
i.value && N.value.length > 0 ? (o(), L(jo, {
|
|
3226
3321
|
key: 1,
|
|
3227
|
-
"related-names":
|
|
3322
|
+
"related-names": N.value,
|
|
3228
3323
|
"animation-index": 6,
|
|
3229
|
-
"animation-enabled":
|
|
3230
|
-
}, null, 8, ["related-names", "animation-enabled"])) :
|
|
3324
|
+
"animation-enabled": g.value
|
|
3325
|
+
}, null, 8, ["related-names", "animation-enabled"])) : w("", !0)
|
|
3326
|
+
])
|
|
3327
|
+
])
|
|
3328
|
+
]));
|
|
3329
|
+
}
|
|
3330
|
+
}), Kr = /* @__PURE__ */ A(Fo, [["__scopeId", "data-v-3144ceb6"]]), Uo = { class: "sl-bento-profile-skeleton sl-min-h-screen sl-relative" }, Ro = { class: "sl-relative sl-max-w-4xl sl-mx-auto sl-px-4 sl-py-8 sl-space-y-6" }, Ho = { class: "sl-space-y-4" }, Oo = { class: "sl-space-y-3" }, Wo = { class: "sl-space-y-3" }, Go = {
|
|
3331
|
+
key: 0,
|
|
3332
|
+
class: "sl-space-y-6"
|
|
3333
|
+
}, qo = { class: "sl-space-y-3" }, Yo = { class: "sl-space-y-6" }, Ko = { class: "sl-space-y-4" }, Zo = { class: "sl-flex-1 sl-space-y-1" }, Jo = { class: "sl-grid sl-grid-cols-2 sl-gap-4" }, Xo = { class: "sl-space-y-1" }, Qo = /* @__PURE__ */ D({
|
|
3334
|
+
__name: "BentoProfileLayoutSkeleton",
|
|
3335
|
+
props: {
|
|
3336
|
+
showLocation: { type: Boolean, default: !0 },
|
|
3337
|
+
showOrganizations: { type: Boolean, default: !0 },
|
|
3338
|
+
showRelatedNames: { type: Boolean, default: !0 }
|
|
3339
|
+
},
|
|
3340
|
+
setup(t) {
|
|
3341
|
+
const e = (l, { slots: c }) => G("div", {
|
|
3342
|
+
class: [
|
|
3343
|
+
"sl-rounded-xl sl-bg-white dark:sl-bg-gray-800",
|
|
3344
|
+
"sl-shadow-sm sl-ring-1 sl-ring-gray-200 dark:sl-ring-gray-700",
|
|
3345
|
+
"sl-p-5",
|
|
3346
|
+
l.class
|
|
3347
|
+
].filter(Boolean).join(" ")
|
|
3348
|
+
}, [
|
|
3349
|
+
// Header skeleton
|
|
3350
|
+
G("div", { class: "sl-flex sl-items-center sl-gap-3 sl-mb-4" }, [
|
|
3351
|
+
G("div", { class: "sl-w-5 sl-h-5 sl-rounded sl-bg-gray-200 dark:sl-bg-gray-700 sl-animate-pulse" }),
|
|
3352
|
+
G("div", { class: "sl-h-4 sl-w-24 sl-rounded sl-bg-gray-200 dark:sl-bg-gray-700 sl-animate-pulse" })
|
|
3353
|
+
]),
|
|
3354
|
+
// Content
|
|
3355
|
+
c.default?.()
|
|
3356
|
+
]), a = (l) => G("div", {
|
|
3357
|
+
class: "sl-rounded sl-bg-gray-200 dark:sl-bg-gray-700 sl-animate-pulse",
|
|
3358
|
+
style: {
|
|
3359
|
+
width: l.width || "100%",
|
|
3360
|
+
height: l.height || "16px"
|
|
3361
|
+
}
|
|
3362
|
+
});
|
|
3363
|
+
return (l, c) => (o(), u("div", Uo, [
|
|
3364
|
+
c[4] || (c[4] = s("div", { class: "sl-absolute sl-inset-0 sl-bg-gray-50 dark:sl-bg-gray-900 sl--z-10" }, null, -1)),
|
|
3365
|
+
s("div", Ro, [
|
|
3366
|
+
c[3] || (c[3] = Me('<div class="sl-rounded-2xl sl-bg-gradient-to-r sl-from-primary-600 sl-to-primary-700 sl-p-6 sl-animate-pulse" data-v-dbce0c6a><div class="sl-flex sl-items-center sl-gap-4" data-v-dbce0c6a><div class="sl-w-20 sl-h-20 sl-rounded-full sl-bg-white/20" data-v-dbce0c6a></div><div class="sl-space-y-2" data-v-dbce0c6a><div class="sl-h-6 sl-w-48 sl-bg-white/20 sl-rounded" data-v-dbce0c6a></div><div class="sl-h-4 sl-w-24 sl-bg-white/20 sl-rounded" data-v-dbce0c6a></div></div></div></div>', 1)),
|
|
3367
|
+
s("div", {
|
|
3368
|
+
class: z([
|
|
3369
|
+
"sl-grid sl-gap-6",
|
|
3370
|
+
t.showLocation ? "sl-grid-cols-1 md:sl-grid-cols-2" : "sl-grid-cols-1"
|
|
3371
|
+
])
|
|
3372
|
+
}, [
|
|
3373
|
+
s("div", {
|
|
3374
|
+
class: z([
|
|
3375
|
+
"sl-space-y-6",
|
|
3376
|
+
t.showLocation ? "" : "sl-grid sl-grid-cols-1 md:sl-grid-cols-2 sl-gap-6"
|
|
3377
|
+
])
|
|
3378
|
+
}, [
|
|
3379
|
+
$(e, null, {
|
|
3380
|
+
default: C(() => [
|
|
3381
|
+
s("div", Ho, [
|
|
3382
|
+
$(a, { width: "60%" }),
|
|
3383
|
+
$(a, { width: "80%" }),
|
|
3384
|
+
$(a, { width: "70%" })
|
|
3385
|
+
])
|
|
3386
|
+
]),
|
|
3387
|
+
_: 1
|
|
3388
|
+
}),
|
|
3389
|
+
$(e, null, {
|
|
3390
|
+
default: C(() => [
|
|
3391
|
+
s("div", Oo, [
|
|
3392
|
+
$(a, { width: "40%" }),
|
|
3393
|
+
$(a, { width: "55%" })
|
|
3394
|
+
])
|
|
3395
|
+
]),
|
|
3396
|
+
_: 1
|
|
3397
|
+
}),
|
|
3398
|
+
$(e, null, {
|
|
3399
|
+
default: C(() => [
|
|
3400
|
+
s("div", Wo, [
|
|
3401
|
+
$(a, { width: "70%" }),
|
|
3402
|
+
$(a, { width: "50%" }),
|
|
3403
|
+
$(a, { width: "60%" })
|
|
3404
|
+
])
|
|
3405
|
+
]),
|
|
3406
|
+
_: 1
|
|
3407
|
+
})
|
|
3408
|
+
], 2),
|
|
3409
|
+
t.showLocation ? (o(), u("div", Go, [
|
|
3410
|
+
$(e, { class: "sl-h-64" }, {
|
|
3411
|
+
default: C(() => [
|
|
3412
|
+
s("div", qo, [
|
|
3413
|
+
$(a, { width: "50%" }),
|
|
3414
|
+
c[0] || (c[0] = s("div", { class: "sl-h-40 sl-bg-gray-200 dark:sl-bg-gray-700 sl-rounded-lg sl-animate-pulse" }, null, -1))
|
|
3415
|
+
])
|
|
3416
|
+
]),
|
|
3417
|
+
_: 1
|
|
3418
|
+
})
|
|
3419
|
+
])) : w("", !0)
|
|
3420
|
+
], 2),
|
|
3421
|
+
s("div", Yo, [
|
|
3422
|
+
t.showOrganizations ? (o(), L(e, { key: 0 }, {
|
|
3423
|
+
default: C(() => [
|
|
3424
|
+
s("div", Ko, [
|
|
3425
|
+
(o(), u(U, null, H(3, (n) => s("div", {
|
|
3426
|
+
key: n,
|
|
3427
|
+
class: "sl-flex sl-items-center sl-gap-3"
|
|
3428
|
+
}, [
|
|
3429
|
+
c[1] || (c[1] = s("div", { class: "sl-w-2 sl-h-2 sl-rounded-full sl-bg-gray-200 dark:sl-bg-gray-700" }, null, -1)),
|
|
3430
|
+
s("div", Zo, [
|
|
3431
|
+
$(a, { width: "60%" }),
|
|
3432
|
+
$(a, {
|
|
3433
|
+
width: "40%",
|
|
3434
|
+
height: "12px"
|
|
3435
|
+
})
|
|
3436
|
+
])
|
|
3437
|
+
])), 64))
|
|
3438
|
+
])
|
|
3439
|
+
]),
|
|
3440
|
+
_: 1
|
|
3441
|
+
})) : w("", !0),
|
|
3442
|
+
t.showRelatedNames ? (o(), L(e, { key: 1 }, {
|
|
3443
|
+
default: C(() => [
|
|
3444
|
+
s("div", Jo, [
|
|
3445
|
+
(o(), u(U, null, H(4, (n) => s("div", {
|
|
3446
|
+
key: n,
|
|
3447
|
+
class: "sl-flex sl-items-center sl-gap-3"
|
|
3448
|
+
}, [
|
|
3449
|
+
c[2] || (c[2] = s("div", { class: "sl-w-10 sl-h-10 sl-rounded-full sl-bg-gray-200 dark:sl-bg-gray-700 sl-animate-pulse" }, null, -1)),
|
|
3450
|
+
s("div", Xo, [
|
|
3451
|
+
$(a, { width: "80px" }),
|
|
3452
|
+
$(a, {
|
|
3453
|
+
width: "60px",
|
|
3454
|
+
height: "12px"
|
|
3455
|
+
})
|
|
3456
|
+
])
|
|
3457
|
+
])), 64))
|
|
3458
|
+
])
|
|
3459
|
+
]),
|
|
3460
|
+
_: 1
|
|
3461
|
+
})) : w("", !0)
|
|
3231
3462
|
])
|
|
3232
3463
|
])
|
|
3233
3464
|
]));
|
|
3234
3465
|
}
|
|
3235
|
-
}),
|
|
3236
|
-
class
|
|
3466
|
+
}), Zr = /* @__PURE__ */ A(Qo, [["__scopeId", "data-v-dbce0c6a"]]);
|
|
3467
|
+
class er {
|
|
3237
3468
|
designTokens;
|
|
3238
3469
|
prefix = "sl-";
|
|
3239
3470
|
injectCSS = !0;
|
|
@@ -3244,13 +3475,13 @@ class $o {
|
|
|
3244
3475
|
phoneInputConfig;
|
|
3245
3476
|
datepickerConfig;
|
|
3246
3477
|
constructor() {
|
|
3247
|
-
this.designTokens =
|
|
3478
|
+
this.designTokens = Ce;
|
|
3248
3479
|
}
|
|
3249
3480
|
install(e, a = {}) {
|
|
3250
3481
|
Object.keys(a).length > 0 && this.configure(a), this.injectCSS && this.injectCSSVariables(), e.config.globalProperties.$stachelockUI = this, e.provide("stachelockUI", this), this.cloudinaryConfig && e.provide("cloudinary", this.cloudinaryConfig), this.googleMapsConfig && e.provide("googleMaps", this.googleMapsConfig), this.lottieConfig && e.provide("lottie", this.lottieConfig), this.richTextConfig && e.provide("richText", this.richTextConfig), this.phoneInputConfig && e.provide("phoneInput", this.phoneInputConfig), this.datepickerConfig && e.provide("datepicker", this.datepickerConfig);
|
|
3251
3482
|
}
|
|
3252
3483
|
configure(e) {
|
|
3253
|
-
e.designTokens && (this.designTokens =
|
|
3484
|
+
e.designTokens && (this.designTokens = ct(e.designTokens, this.designTokens)), e.prefix !== void 0 && (this.prefix = e.prefix), e.injectCSS !== void 0 && (this.injectCSS = e.injectCSS), e.cloudinary && (this.cloudinaryConfig = e.cloudinary), e.googleMaps && (this.googleMapsConfig = e.googleMaps), e.lottie && (this.lottieConfig = e.lottie), e.richText && (this.richTextConfig = e.richText), e.phoneInput && (this.phoneInputConfig = e.phoneInput), e.datepicker && (this.datepickerConfig = e.datepicker);
|
|
3254
3485
|
}
|
|
3255
3486
|
getDesignTokens() {
|
|
3256
3487
|
return this.designTokens;
|
|
@@ -3274,7 +3505,7 @@ class $o {
|
|
|
3274
3505
|
return this.datepickerConfig;
|
|
3275
3506
|
}
|
|
3276
3507
|
generateCSS() {
|
|
3277
|
-
return
|
|
3508
|
+
return ut(this.designTokens);
|
|
3278
3509
|
}
|
|
3279
3510
|
injectCSSVariables() {
|
|
3280
3511
|
const e = document.createElement("style");
|
|
@@ -3283,189 +3514,191 @@ class $o {
|
|
|
3283
3514
|
a && a.remove(), document.head.appendChild(e);
|
|
3284
3515
|
}
|
|
3285
3516
|
}
|
|
3286
|
-
const
|
|
3517
|
+
const Jr = new er();
|
|
3287
3518
|
export {
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3519
|
+
Fe as AddDeleteButtonGroup,
|
|
3520
|
+
p0 as AddressInput,
|
|
3521
|
+
Re as AlertModal,
|
|
3522
|
+
Pe as Avatar,
|
|
3523
|
+
Br as AvatarIcon,
|
|
3524
|
+
Pr as AvatarImage,
|
|
3525
|
+
jr as AvatarInitials,
|
|
3526
|
+
Ar as AvatarWithText,
|
|
3527
|
+
Dd as BackgroundGradientWrapper,
|
|
3297
3528
|
le as Badge,
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3529
|
+
Vd as Banner,
|
|
3530
|
+
pi as BarChart,
|
|
3531
|
+
Yd as BaseChart,
|
|
3532
|
+
pd as BaseModal,
|
|
3533
|
+
Kr as BentoProfileLayout,
|
|
3534
|
+
Zr as BentoProfileLayoutSkeleton,
|
|
3535
|
+
Fd as Breadcrumb,
|
|
3536
|
+
X as Button,
|
|
3537
|
+
Fn as ButtonGroup,
|
|
3538
|
+
Od as CalendarDashboard,
|
|
3539
|
+
si as CalendarHeader,
|
|
3540
|
+
Hr as CardLayout,
|
|
3541
|
+
Td as CardWrapper,
|
|
3542
|
+
Rn as Checkbox,
|
|
3543
|
+
Oe as CheckboxInput,
|
|
3544
|
+
Ne as CloudinaryImage,
|
|
3313
3545
|
ne as CollectionEditor,
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3546
|
+
os as CollectionItemList,
|
|
3547
|
+
rn as CollectionItemStatus,
|
|
3548
|
+
We as ComboboxInput,
|
|
3549
|
+
Ii as ComingSoon,
|
|
3550
|
+
dt as ComponentRegistry,
|
|
3551
|
+
v0 as ContentSkeleton,
|
|
3552
|
+
Zi as DashboardLayout,
|
|
3553
|
+
Fr as DateFormatter,
|
|
3554
|
+
Ur as DateRangeFormatter,
|
|
3555
|
+
Ti as DatepickerInput,
|
|
3556
|
+
ai as DayCalendar,
|
|
3557
|
+
Xi as DefaultLayout,
|
|
3558
|
+
Pd as DisclosureWrapper,
|
|
3559
|
+
As as DiscordBrandIcon,
|
|
3560
|
+
Ue as DynamicForm,
|
|
3561
|
+
Pi as EmailInput,
|
|
3562
|
+
Ai as EmptyInput,
|
|
3563
|
+
zi as EmptyState,
|
|
3564
|
+
ri as EventCard,
|
|
3565
|
+
ii as EventsList,
|
|
3566
|
+
Fs as FacebookBrandIcon,
|
|
3567
|
+
Vi as FileDropzoneInput,
|
|
3568
|
+
Ad as FormErrorWrapper,
|
|
3569
|
+
Di as FormField,
|
|
3570
|
+
m0 as FormFieldWrapper,
|
|
3571
|
+
hi as FunnelChart,
|
|
3572
|
+
nt as GeocodeStatus,
|
|
3573
|
+
Os as GitHubBrandIcon,
|
|
3574
|
+
_0 as GoogleMap,
|
|
3575
|
+
ed as HeaderLayout,
|
|
3576
|
+
Fi as HiddenInput,
|
|
3577
|
+
T0 as ImageCropperModal,
|
|
3578
|
+
Ri as ImageDropzoneInput,
|
|
3579
|
+
Or as InfoCard,
|
|
3580
|
+
I0 as InfoWindow,
|
|
3581
|
+
wd as InlineTabs,
|
|
3582
|
+
Rr as InputsShowcase,
|
|
3583
|
+
Ys as InstagramBrandIcon,
|
|
3584
|
+
xi as LineChart,
|
|
3585
|
+
Xs as LinkedInBrandIcon,
|
|
3586
|
+
je as Loading,
|
|
3587
|
+
Rd as LoadingDots,
|
|
3588
|
+
Vn as LottieAnimation,
|
|
3589
|
+
z0 as Map,
|
|
3590
|
+
md as MapAll,
|
|
3591
|
+
D0 as MapMarker,
|
|
3592
|
+
On as Menu,
|
|
3593
|
+
Gn as Modal,
|
|
3594
|
+
ci as MonthCalendar,
|
|
3595
|
+
Yn as NavLink,
|
|
3596
|
+
sd as NavigationGroup,
|
|
3597
|
+
ad as NavigationItem,
|
|
3598
|
+
hd as NotificationContainer,
|
|
3599
|
+
xd as NotificationToast,
|
|
3600
|
+
Er as OrganizationsEditor,
|
|
3601
|
+
h0 as PhoneInput,
|
|
3602
|
+
vi as PieChart,
|
|
3603
|
+
sl as PinterestBrandIcon,
|
|
3604
|
+
Z as ProfileCard,
|
|
3605
|
+
Xa as ProfileContactCard,
|
|
3606
|
+
rd as ProfileHeaderAvatar,
|
|
3607
|
+
Ua as ProfileHeaderCard,
|
|
3608
|
+
vo as ProfileLocationCard,
|
|
3609
|
+
zo as ProfileOrganizationsCard,
|
|
3610
|
+
to as ProfilePersonalCard,
|
|
3611
|
+
io as ProfileProfessionalCard,
|
|
3612
|
+
jo as ProfileRelatedNamesCard,
|
|
3613
|
+
po as ProfileSocialCard,
|
|
3614
|
+
Zn as ProgressBar,
|
|
3615
|
+
id as ProjectLogo,
|
|
3616
|
+
Wr as PropsTable,
|
|
3617
|
+
Tr as RadialProgressBar,
|
|
3618
|
+
Vr as RelatedNamesEditor,
|
|
3619
|
+
x0 as RichTextInput,
|
|
3387
3620
|
ue as SelectInput,
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3621
|
+
Oi as SelectTextInput,
|
|
3622
|
+
Gr as ShowcaseCard,
|
|
3623
|
+
qr as ShowcaseLayout,
|
|
3624
|
+
cd as SidebarLayout,
|
|
3625
|
+
w0 as SmartLoadingIndicator,
|
|
3626
|
+
rl as SnapchatBrandIcon,
|
|
3627
|
+
Nr as SocialLinksEditor,
|
|
3628
|
+
wi as SparklineChart,
|
|
3629
|
+
Jr as StachelockUI,
|
|
3630
|
+
_i as StatCard,
|
|
3631
|
+
Yr as StateDisplay,
|
|
3632
|
+
vd as StepperPanels,
|
|
3633
|
+
qe as SwitchInput,
|
|
3634
|
+
Gi as SwitchInputGroup,
|
|
3635
|
+
_d as TabGroup,
|
|
3636
|
+
Id as TabGroupUnderline,
|
|
3637
|
+
Xn as Table,
|
|
3638
|
+
zd as TabsInPills,
|
|
3639
|
+
Yi as TagifyInput,
|
|
3640
|
+
Ge as TextAreaInput,
|
|
3641
|
+
q as TextInput,
|
|
3642
|
+
Mr as ThemeDebugModal,
|
|
3643
|
+
cl as ThreadsBrandIcon,
|
|
3644
|
+
pl as TikTokBrandIcon,
|
|
3645
|
+
ei as Transition,
|
|
3646
|
+
xl as TwitchBrandIcon,
|
|
3647
|
+
pn as US_CENTER,
|
|
3648
|
+
gn as WORLD_CENTER,
|
|
3649
|
+
Gd as WeekCalendar,
|
|
3650
|
+
ge as XBrandIcon,
|
|
3651
|
+
mi as YearCalendar,
|
|
3652
|
+
Cl as YouTubeBrandIcon,
|
|
3653
|
+
Zd as areaChartConfig,
|
|
3654
|
+
Jd as barChartConfig,
|
|
3655
|
+
Xd as baseTheme,
|
|
3656
|
+
dn as calculateEventLanes,
|
|
3657
|
+
Qd as chartColors,
|
|
3658
|
+
e0 as chartTypography,
|
|
3659
|
+
_e as componentRegistry,
|
|
3660
|
+
Jr as default,
|
|
3661
|
+
it as defaultComponentMap,
|
|
3662
|
+
hn as defaultCoordinateExtractor,
|
|
3663
|
+
Ce as defaultDesignTokens,
|
|
3664
|
+
t0 as formatDuration,
|
|
3665
|
+
s0 as formatNumber,
|
|
3666
|
+
l0 as formatPercentage,
|
|
3667
|
+
Sn as formatUid,
|
|
3668
|
+
a0 as funnelChartConfig,
|
|
3669
|
+
ut as generateCSSVariables,
|
|
3670
|
+
en as generateDeterministicId,
|
|
3671
|
+
tn as generateId,
|
|
3672
|
+
Dr as generateTailwindConfig,
|
|
3673
|
+
o0 as getAreaGradient,
|
|
3674
|
+
Lr as getComponent,
|
|
3675
|
+
_n as getTabBadgeClasses,
|
|
3676
|
+
r0 as hexToRgb,
|
|
3677
|
+
Sr as isFundamentalField,
|
|
3678
|
+
zn as isUidLike,
|
|
3679
|
+
yn as isValidCoordinate,
|
|
3680
|
+
n0 as lineChartConfig,
|
|
3681
|
+
ct as mergeDesignTokens,
|
|
3682
|
+
i0 as pieChartConfig,
|
|
3683
|
+
Be as presetThemes,
|
|
3684
|
+
zr as registerComponent,
|
|
3685
|
+
sn as sanitizeId,
|
|
3686
|
+
Ln as slugToReadable,
|
|
3687
|
+
d0 as stachelockColors,
|
|
3688
|
+
c0 as toRgba,
|
|
3689
|
+
Dn as toSentenceCase,
|
|
3690
|
+
Mn as toTitleCase,
|
|
3691
|
+
Tn as transformString,
|
|
3692
|
+
Bn as truncateString,
|
|
3693
|
+
an as useCalendar,
|
|
3461
3694
|
Te as useCollectionEditor,
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3695
|
+
cn as useEventSegments,
|
|
3696
|
+
mn as useFormValidation,
|
|
3697
|
+
xn as useMap,
|
|
3698
|
+
vn as useModal,
|
|
3699
|
+
wn as useNotifications,
|
|
3700
|
+
Cn as useSimpleTabs,
|
|
3701
|
+
Pn as useStringTransform,
|
|
3702
|
+
An as useTabs,
|
|
3703
|
+
xe as useTheme
|
|
3471
3704
|
};
|