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