@ozdao/martyrs 0.2.454 → 0.2.456
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Media-DlEIDFaB.js → Media-1oukRVfv.js} +1 -1
- package/dist/{Media-DzQv7XkX.mjs → Media-q-XJSM_H.mjs} +3 -3
- package/dist/{main-CSphtCso.js → main-C7jGMDJC.js} +2 -2
- package/dist/{main-CjVIbgn3.mjs → main-yXkgrjj8.mjs} +3 -9
- package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs → Dropdown.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.js → Dropdown.vue2.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs.map → Dropdown.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.cjs +1 -1
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.cjs +2 -2
- package/dist/martyrs/src/components/Media/Media.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.js +2 -2
- package/dist/martyrs/src/components/Media/Media.vue.js.map +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue2.cjs → Menu.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs +229 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.js +229 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.js.map +1 -0
- package/dist/martyrs/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/martyrs/src/components/Slider/Slider.vue.js +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +3 -4
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +3 -4
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +29 -17
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +29 -17
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -23
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +5 -26
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +50 -132
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +66 -148
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +3 -33
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +3 -33
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.cjs +98 -0
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.js +98 -0
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.js.map +1 -0
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +4 -6
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +4 -6
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs +10 -8
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js +10 -8
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +4 -4
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +4 -4
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs +190 -0
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +190 -0
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/events/events.client.js +12 -12
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.cjs +15 -0
- package/dist/martyrs/src/modules/events/router/events.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.js +15 -0
- package/dist/martyrs/src/modules/events/router/events.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.cjs +2 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.js +1 -0
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/organizations.server.js +0 -1
- package/dist/organizations.server.mjs +0 -1
- package/dist/style.css +93 -6
- package/package.json +1 -1
- package/src/components/DatePicker/DatePicker.vue +1 -1
- package/src/components/EmptyState/EmptyState.vue +1 -1
- package/src/components/Media/Media.vue +1 -1
- package/src/components/Slider/Slider.native.vue +313 -0
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +2 -2
- package/src/modules/community/components/sections/HotPosts.vue +0 -1
- package/src/modules/events/components/blocks/CardEvent.vue +21 -7
- package/src/modules/events/components/pages/Event.vue +0 -20
- package/src/modules/events/components/pages/Events.vue +91 -141
- package/src/modules/events/components/pages/EventsBackoffice.vue +5 -3
- package/src/modules/events/components/pages/EventsSearch.vue +122 -0
- package/src/modules/events/components/sections/EventsHot.vue +3 -5
- package/src/modules/events/components/sections/FeaturedEvents.vue +45 -13
- package/src/modules/events/components/sections/List.vue +3 -3
- package/src/modules/events/components/sections/SelectDate.vue +217 -0
- package/src/modules/events/router/events.js +12 -0
- package/src/modules/globals/views/components/layouts/App.vue +1 -0
- package/src/modules/organizations/policies/organizations.policies.js +0 -1
- package/src/modules/products/components/pages/Product.old.vue +201 -0
- package/src/styles/base/all.scss +1 -0
- package/src/styles/typography.scss +22 -0
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { ref, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock, createVNode, createElementVNode, toDisplayString, unref, createCommentVNode, Fragment, renderList, Transition, withCtx, renderSlot, normalizeClass } from "vue";
|
|
2
|
+
import { useRouter } from "vue-router";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
import Loader from "../Loader/Loader.vue2.js";
|
|
5
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const _hoisted_1 = { class: "pos-relative" };
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "h-20r radius-semi pos-relative w-100 bg-light"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "bg-light radius-semi flex flex-center w-100 h-20r"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_4 = { class: "text-gray-500" };
|
|
16
|
+
const _hoisted_5 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "carousel__dots"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_6 = ["onClick"];
|
|
21
|
+
const _sfc_main = {
|
|
22
|
+
__name: "Slider.native",
|
|
23
|
+
props: {
|
|
24
|
+
showDots: Boolean,
|
|
25
|
+
store: Object,
|
|
26
|
+
options: Object,
|
|
27
|
+
text: Object,
|
|
28
|
+
user: Object
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
useRouter();
|
|
33
|
+
const carouselRef = ref(null);
|
|
34
|
+
const entitiesState = ref([]);
|
|
35
|
+
const isLoading = ref(true);
|
|
36
|
+
const selectedIndex = ref(0);
|
|
37
|
+
const autoplayInterval = ref(null);
|
|
38
|
+
const scrollTimeout = ref(null);
|
|
39
|
+
const { t } = useI18n({
|
|
40
|
+
messages: props.text
|
|
41
|
+
});
|
|
42
|
+
const scrollTo = (index) => {
|
|
43
|
+
if (!carouselRef.value) return;
|
|
44
|
+
const container = carouselRef.value.querySelector(".carousel__container");
|
|
45
|
+
const slides = container.querySelectorAll(".carousel__slide");
|
|
46
|
+
if (slides[index]) {
|
|
47
|
+
container.scrollTo({
|
|
48
|
+
left: slides[index].offsetLeft,
|
|
49
|
+
behavior: "smooth"
|
|
50
|
+
});
|
|
51
|
+
selectedIndex.value = index;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const handleScroll = () => {
|
|
55
|
+
if (scrollTimeout.value) {
|
|
56
|
+
clearTimeout(scrollTimeout.value);
|
|
57
|
+
}
|
|
58
|
+
scrollTimeout.value = setTimeout(() => {
|
|
59
|
+
updateSelectedIndex();
|
|
60
|
+
}, 50);
|
|
61
|
+
};
|
|
62
|
+
const updateSelectedIndex = () => {
|
|
63
|
+
if (!carouselRef.value) return;
|
|
64
|
+
const container = carouselRef.value.querySelector(".carousel__container");
|
|
65
|
+
const slides = container.querySelectorAll(".carousel__slide");
|
|
66
|
+
if (!slides.length) return;
|
|
67
|
+
const scrollPosition = container.scrollLeft;
|
|
68
|
+
const slideWidth = slides[0].offsetWidth;
|
|
69
|
+
const index = Math.round(scrollPosition / slideWidth);
|
|
70
|
+
const boundedIndex = Math.max(0, Math.min(index, entitiesState.value.length - 1));
|
|
71
|
+
selectedIndex.value = boundedIndex;
|
|
72
|
+
};
|
|
73
|
+
const setupAutoplay = () => {
|
|
74
|
+
if (autoplayInterval.value) {
|
|
75
|
+
clearInterval(autoplayInterval.value);
|
|
76
|
+
}
|
|
77
|
+
autoplayInterval.value = setInterval(() => {
|
|
78
|
+
const nextIndex = (selectedIndex.value + 1) % entitiesState.value.length;
|
|
79
|
+
scrollTo(nextIndex);
|
|
80
|
+
}, 2e3);
|
|
81
|
+
};
|
|
82
|
+
onMounted(async () => {
|
|
83
|
+
try {
|
|
84
|
+
entitiesState.value = await props.store.read(props.options);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
console.error("Error loading entities:", error);
|
|
87
|
+
entitiesState.value = [];
|
|
88
|
+
} finally {
|
|
89
|
+
isLoading.value = false;
|
|
90
|
+
}
|
|
91
|
+
if (entitiesState.value.length && carouselRef.value) {
|
|
92
|
+
const container = carouselRef.value.querySelector(".carousel__container");
|
|
93
|
+
const slides = container.querySelectorAll(".carousel__slide");
|
|
94
|
+
const observer = new IntersectionObserver((entries) => {
|
|
95
|
+
entries.forEach((entry) => {
|
|
96
|
+
if (entry.isIntersecting) {
|
|
97
|
+
const slideIndex = Array.from(slides).indexOf(entry.target);
|
|
98
|
+
if (slideIndex !== -1) {
|
|
99
|
+
selectedIndex.value = slideIndex;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}, {
|
|
104
|
+
root: container,
|
|
105
|
+
threshold: 0.7
|
|
106
|
+
// Consider slide visible when 70% is in view
|
|
107
|
+
});
|
|
108
|
+
slides.forEach((slide) => {
|
|
109
|
+
observer.observe(slide);
|
|
110
|
+
});
|
|
111
|
+
container.addEventListener("focusin", () => {
|
|
112
|
+
if (autoplayInterval.value) {
|
|
113
|
+
clearInterval(autoplayInterval.value);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
container.addEventListener("focusout", () => {
|
|
117
|
+
setupAutoplay();
|
|
118
|
+
});
|
|
119
|
+
container.addEventListener("mousedown", () => {
|
|
120
|
+
if (autoplayInterval.value) {
|
|
121
|
+
clearInterval(autoplayInterval.value);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
container.addEventListener("touchstart", () => {
|
|
125
|
+
if (autoplayInterval.value) {
|
|
126
|
+
clearInterval(autoplayInterval.value);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
container.addEventListener("mouseup", () => {
|
|
130
|
+
setupAutoplay();
|
|
131
|
+
});
|
|
132
|
+
container.addEventListener("touchend", () => {
|
|
133
|
+
setupAutoplay();
|
|
134
|
+
});
|
|
135
|
+
setupAutoplay();
|
|
136
|
+
carouselRef.value._observer = observer;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
onBeforeUnmount(() => {
|
|
140
|
+
if (carouselRef.value) {
|
|
141
|
+
if (carouselRef.value._observer) {
|
|
142
|
+
carouselRef.value._observer.disconnect();
|
|
143
|
+
}
|
|
144
|
+
const container = carouselRef.value.querySelector(".carousel__container");
|
|
145
|
+
if (container) {
|
|
146
|
+
container.removeEventListener("focusin", () => {
|
|
147
|
+
});
|
|
148
|
+
container.removeEventListener("focusout", () => {
|
|
149
|
+
});
|
|
150
|
+
container.removeEventListener("mousedown", () => {
|
|
151
|
+
});
|
|
152
|
+
container.removeEventListener("touchstart", () => {
|
|
153
|
+
});
|
|
154
|
+
container.removeEventListener("mouseup", () => {
|
|
155
|
+
});
|
|
156
|
+
container.removeEventListener("touchend", () => {
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (autoplayInterval.value) {
|
|
161
|
+
clearInterval(autoplayInterval.value);
|
|
162
|
+
}
|
|
163
|
+
if (scrollTimeout.value) {
|
|
164
|
+
clearTimeout(scrollTimeout.value);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
watch(entitiesState, (newValue) => {
|
|
168
|
+
if (newValue.length && carouselRef.value) {
|
|
169
|
+
selectedIndex.value = 0;
|
|
170
|
+
scrollTo(0);
|
|
171
|
+
setupAutoplay();
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
return (_ctx, _cache) => {
|
|
175
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
176
|
+
isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
177
|
+
createVNode(Loader)
|
|
178
|
+
])) : !entitiesState.value.length ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
179
|
+
createElementVNode("p", _hoisted_4, toDisplayString(unref(t)("title")), 1)
|
|
180
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
181
|
+
key: 2,
|
|
182
|
+
class: "carousel",
|
|
183
|
+
ref_key: "carouselRef",
|
|
184
|
+
ref: carouselRef
|
|
185
|
+
}, [
|
|
186
|
+
createElementVNode("div", {
|
|
187
|
+
class: "carousel__container",
|
|
188
|
+
onScroll: handleScroll
|
|
189
|
+
}, [
|
|
190
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(entitiesState.value, (entity, key, index) => {
|
|
191
|
+
return openBlock(), createElementBlock("div", {
|
|
192
|
+
class: "carousel__slide pd-nano",
|
|
193
|
+
key
|
|
194
|
+
}, [
|
|
195
|
+
createVNode(Transition, {
|
|
196
|
+
name: "fade",
|
|
197
|
+
mode: "out-in",
|
|
198
|
+
appear: ""
|
|
199
|
+
}, {
|
|
200
|
+
default: withCtx(() => [
|
|
201
|
+
renderSlot(_ctx.$slots, "default", {
|
|
202
|
+
item: entity,
|
|
203
|
+
user: __props.user
|
|
204
|
+
}, void 0, true)
|
|
205
|
+
]),
|
|
206
|
+
_: 2
|
|
207
|
+
}, 1024)
|
|
208
|
+
]);
|
|
209
|
+
}), 128))
|
|
210
|
+
], 32),
|
|
211
|
+
__props.showDots && entitiesState.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
212
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(entitiesState.value, (_, index) => {
|
|
213
|
+
return openBlock(), createElementBlock("button", {
|
|
214
|
+
key: index,
|
|
215
|
+
class: normalizeClass(["carousel__dot", { "carousel__dot--active": selectedIndex.value === index }]),
|
|
216
|
+
onClick: ($event) => scrollTo(index)
|
|
217
|
+
}, null, 10, _hoisted_6);
|
|
218
|
+
}), 128))
|
|
219
|
+
])) : createCommentVNode("", true)
|
|
220
|
+
], 512))
|
|
221
|
+
]);
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const SliderNative = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a766dedc"]]);
|
|
226
|
+
export {
|
|
227
|
+
SliderNative as default
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=Slider.native.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.native.vue.js","sources":["../../../../../src/components/Slider/Slider.native.vue"],"sourcesContent":["<template>\n <div class=\"pos-relative\">\n <!-- Loading State -->\n <div v-if=\"isLoading\" class=\"h-20r radius-semi pos-relative w-100 bg-light\">\n <Loader />\n </div>\n <!-- Empty State -->\n <div v-else-if=\"!entitiesState.length\" class=\"bg-light radius-semi flex flex-center w-100 h-20r\">\n <p class=\"text-gray-500\">{{t('title')}}</p>\n </div>\n <!-- Native Carousel -->\n <div v-else class=\"carousel\" ref=\"carouselRef\">\n <div class=\"carousel__container\" @scroll=\"handleScroll\">\n <div \n class=\"carousel__slide pd-nano\" \n v-for=\"(entity, key, index) in entitiesState\" \n :key=\"key\"\n >\n <transition name=\"fade\" mode=\"out-in\" appear>\n <slot\n :item=\"entity\"\n :user=\"user\"\n ></slot>\n </transition>\n </div>\n </div>\n \n <!-- Navigation Dots (optional) -->\n <div class=\"carousel__dots\" v-if=\"showDots && entitiesState.length > 1\">\n <button \n v-for=\"(_, index) in entitiesState\" \n :key=\"index\"\n class=\"carousel__dot\"\n :class=\"{ 'carousel__dot--active': selectedIndex === index }\"\n @click=\"scrollTo(index)\"\n ></button>\n </div>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, onBeforeUnmount, watch } from 'vue'\nimport { useRouter } from 'vue-router'\nimport { useI18n } from 'vue-i18n'\nimport Loader from '@martyrs/src/components/Loader/Loader.vue'\n\n// Props for customization\nconst props = defineProps({\n showDots: Boolean,\n store: Object,\n options: Object,\n text: Object,\n user: Object\n});\n\nconst router = useRouter()\nconst carouselRef = ref(null)\nconst entitiesState = ref([])\nconst isLoading = ref(true)\nconst selectedIndex = ref(0)\nconst autoplayInterval = ref(null)\nconst scrollTimeout = ref(null)\n\nconst { t } = useI18n({\n messages: props.text\n})\n\n// Scroll to specific slide\nconst scrollTo = (index) => {\n if (!carouselRef.value) return\n \n const container = carouselRef.value.querySelector('.carousel__container')\n const slides = container.querySelectorAll('.carousel__slide')\n \n if (slides[index]) {\n container.scrollTo({\n left: slides[index].offsetLeft,\n behavior: 'smooth'\n })\n \n selectedIndex.value = index\n }\n}\n\n// Handle scroll event with debounce\nconst handleScroll = () => {\n // Clear previous timeout\n if (scrollTimeout.value) {\n clearTimeout(scrollTimeout.value)\n }\n \n // Set a timeout to update the index when scrolling stops\n scrollTimeout.value = setTimeout(() => {\n updateSelectedIndex()\n }, 50) // Small delay to ensure scroll has completed\n}\n\n// Update selected index when scrolling\nconst updateSelectedIndex = () => {\n if (!carouselRef.value) return\n \n const container = carouselRef.value.querySelector('.carousel__container')\n const slides = container.querySelectorAll('.carousel__slide')\n \n if (!slides.length) return\n \n const scrollPosition = container.scrollLeft\n const slideWidth = slides[0].offsetWidth\n \n // Find current slide index based on scroll position\n const index = Math.round(scrollPosition / slideWidth)\n \n // Ensure index is within bounds\n const boundedIndex = Math.max(0, Math.min(index, entitiesState.value.length - 1))\n \n // Update selected index\n selectedIndex.value = boundedIndex\n}\n\n// Setup autoplay functionality\nconst setupAutoplay = () => {\n if (autoplayInterval.value) {\n clearInterval(autoplayInterval.value)\n }\n \n autoplayInterval.value = setInterval(() => {\n const nextIndex = (selectedIndex.value + 1) % entitiesState.value.length\n scrollTo(nextIndex)\n }, 2000) // 2 seconds interval like in original\n}\n\nonMounted(async() => {\n try {\n entitiesState.value = await props.store.read(props.options)\n } catch (error) {\n console.error('Error loading entities:', error)\n entitiesState.value = []\n } finally {\n isLoading.value = false\n }\n \n // Initialize native carousel after entities are loaded\n if (entitiesState.value.length && carouselRef.value) {\n // Listen for scroll end using intersection observer for better performance\n const container = carouselRef.value.querySelector('.carousel__container')\n const slides = container.querySelectorAll('.carousel__slide')\n \n // Create intersection observer to detect when slides are visible\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n // Find the index of the visible slide\n const slideIndex = Array.from(slides).indexOf(entry.target)\n if (slideIndex !== -1) {\n selectedIndex.value = slideIndex\n }\n }\n })\n }, {\n root: container,\n threshold: 0.7 // Consider slide visible when 70% is in view\n })\n \n // Observe all slides\n slides.forEach(slide => {\n observer.observe(slide)\n })\n \n // Add focus/blur events to pause autoplay on focus\n container.addEventListener('focusin', () => {\n if (autoplayInterval.value) {\n clearInterval(autoplayInterval.value)\n }\n })\n \n container.addEventListener('focusout', () => {\n setupAutoplay()\n })\n \n // Stop autoplay on touch/mouse interaction\n container.addEventListener('mousedown', () => {\n if (autoplayInterval.value) {\n clearInterval(autoplayInterval.value)\n }\n })\n \n container.addEventListener('touchstart', () => {\n if (autoplayInterval.value) {\n clearInterval(autoplayInterval.value)\n }\n })\n \n // Resume autoplay after interaction ends\n container.addEventListener('mouseup', () => {\n setupAutoplay()\n })\n \n container.addEventListener('touchend', () => {\n setupAutoplay()\n })\n \n // Initialize autoplay\n setupAutoplay()\n \n // Store observer for cleanup\n carouselRef.value._observer = observer\n }\n})\n\nonBeforeUnmount(() => {\n // Clean up all resources\n if (carouselRef.value) {\n // Clean up intersection observer\n if (carouselRef.value._observer) {\n carouselRef.value._observer.disconnect()\n }\n \n // Clean up event listeners\n const container = carouselRef.value.querySelector('.carousel__container')\n if (container) {\n container.removeEventListener('focusin', () => {})\n container.removeEventListener('focusout', () => {})\n container.removeEventListener('mousedown', () => {})\n container.removeEventListener('touchstart', () => {})\n container.removeEventListener('mouseup', () => {})\n container.removeEventListener('touchend', () => {})\n }\n }\n \n // Clear all timeouts and intervals\n if (autoplayInterval.value) {\n clearInterval(autoplayInterval.value)\n }\n \n if (scrollTimeout.value) {\n clearTimeout(scrollTimeout.value)\n }\n})\n\n// Watch for changes in entities to reinitialize if needed\nwatch(entitiesState, (newValue) => {\n if (newValue.length && carouselRef.value) {\n // Reset to first slide\n selectedIndex.value = 0\n scrollTo(0)\n \n // Reset autoplay\n setupAutoplay()\n }\n})\n</script>\n\n<style scoped>\n.carousel {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n.carousel__container {\n display: flex;\n scroll-snap-type: x mandatory;\n overflow-x: scroll;\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* IE and Edge */\n scroll-behavior: smooth;\n}\n\n.carousel__container::-webkit-scrollbar {\n display: none; /* Chrome, Safari, Opera */\n}\n\n.carousel__slide {\n flex: 0 0 100%;\n width: 100%;\n scroll-snap-align: start;\n scroll-snap-stop: always;\n}\n\n/* Navigation dots */\n.carousel__dots {\n display: flex;\n justify-content: center;\n gap: 0.5rem;\n margin-top: 1rem;\n}\n\n.carousel__dot {\n width: 0.625rem;\n height: 0.625rem;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.2);\n border: none;\n padding: 0;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.carousel__dot--active {\n background-color: rgba(0, 0, 0, 0.6);\n}\n\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity 0.3s ease;\n}\n\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n</style>"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
|
|
|
5
5
|
const vueI18n = require("vue-i18n");
|
|
6
6
|
const emblaCarouselVue_esm = require("../../../../node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs");
|
|
7
7
|
const emblaCarouselAutoplay_esm = require("../../../../node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");
|
|
8
|
-
const Loader = require("../Loader/Loader.
|
|
8
|
+
const Loader = require("../Loader/Loader.vue2.cjs");
|
|
9
9
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
10
10
|
const _hoisted_1 = { class: "pos-relative" };
|
|
11
11
|
const _hoisted_2 = {
|
|
@@ -3,7 +3,7 @@ import { useRouter } from "vue-router";
|
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
|
4
4
|
import emblaCarouselVue from "../../../../node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
|
|
5
5
|
import Autoplay from "../../../../node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
|
|
6
|
-
import Loader from "../Loader/Loader.
|
|
6
|
+
import Loader from "../Loader/Loader.vue2.js";
|
|
7
7
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
const _hoisted_1 = { class: "pos-relative" };
|
|
9
9
|
const _hoisted_2 = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const axios = require("axios");
|
|
5
|
-
const Loader = require("../Loader/Loader.
|
|
5
|
+
const Loader = require("../Loader/Loader.vue2.cjs");
|
|
6
6
|
const IconUpload = require("../../modules/icons/navigation/IconUpload.vue.cjs");
|
|
7
7
|
const _hoisted_1 = {
|
|
8
8
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, createElementBlock, openBlock, withModifiers, createVNode, createElementVNode, Transition, withCtx, createBlock, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import Loader from "../Loader/Loader.
|
|
3
|
+
import Loader from "../Loader/Loader.vue2.js";
|
|
4
4
|
import _sfc_main$1 from "../../modules/icons/navigation/IconUpload.vue.js";
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, withCtx, Transition, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "vue-i18n";
|
|
6
6
|
/* empty css */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
+
;/* empty css */
|
|
4
5
|
;/* empty css */
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const Menu = require("../../../../../components/Menu/Menu.vue2.cjs");
|
|
6
|
+
const Dropdown = require("../../../../../components/Dropdown/Dropdown.vue2.cjs");
|
|
7
|
+
const Menu = require("../../../../../components/Menu/Menu.vue.cjs");
|
|
8
8
|
const MenuItem = require("../../../../../components/Menu/MenuItem.vue.cjs");
|
|
9
9
|
const ButtonToggleMembership = require("../../../../organizations/components/elements/ButtonToggleMembership.vue.cjs");
|
|
10
10
|
const FormReport = require("../../../../reports/components/sections/FormReport.vue.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, inject, computed, onMounted, createElementBlock, createCommentVNode, openBlock, createElementVNode, createBlock, createVNode, unref, withCtx, toDisplayString, Fragment, renderList, normalizeClass, resolveDynamicComponent } from "vue";
|
|
2
|
+
/* empty css */
|
|
2
3
|
/* empty css */
|
|
3
|
-
|
|
4
|
-
import _sfc_main$
|
|
5
|
-
import _sfc_main$a from "../../../../../components/Menu/Menu.vue2.js";
|
|
4
|
+
import _sfc_main$5 from "../../../../../components/Dropdown/Dropdown.vue2.js";
|
|
5
|
+
import _sfc_main$a from "../../../../../components/Menu/Menu.vue.js";
|
|
6
6
|
import _sfc_main$b from "../../../../../components/Menu/MenuItem.vue.js";
|
|
7
7
|
import _sfc_main$7 from "../../../../organizations/components/elements/ButtonToggleMembership.vue.js";
|
|
8
8
|
import _sfc_main$6 from "../../../../reports/components/sections/FormReport.vue.js";
|
|
@@ -22,7 +22,7 @@ const _sfc_main = {
|
|
|
22
22
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
23
23
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
24
24
|
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "flex-center flex w-100" }, [
|
|
25
|
-
vue.createElementVNode("h2", { class: "t-center h2 w-max-
|
|
25
|
+
vue.createElementVNode("h2", { class: "t-center h2 w-max-50r mn-b-big" }, " Ask the hundreds shaping your entertainment for decades ")
|
|
26
26
|
], -1)),
|
|
27
27
|
vue.createVNode(Marquee.default, {
|
|
28
28
|
class: "mn-b-thin",
|
|
@@ -99,7 +99,7 @@ const _sfc_main = {
|
|
|
99
99
|
_cache[2] || (_cache[2] = vue.createElementVNode("p", { class: "w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big" }, " Together, we're shaping the future of the globals music community. ", -1)),
|
|
100
100
|
vue.createVNode(_component_router_link, {
|
|
101
101
|
to: { name: "Sign In" },
|
|
102
|
-
class: "bg-black mn-r-auto mn-l-auto t-medium t-white button"
|
|
102
|
+
class: "bg-black w-max mn-r-auto mn-l-auto t-medium t-white button"
|
|
103
103
|
}, {
|
|
104
104
|
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
105
105
|
vue.createTextVNode(" Join Now ")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeaturedUsers.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-
|
|
1
|
+
{"version":3,"file":"FeaturedUsers.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-50r mn-b-big\">\n Ask the hundreds shaping your entertainment for decades\n </h2>\n </div>\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(0,6)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'reverse'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(7,14)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-big\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(15,22)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <p class=\"w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big\">\n Together, we're shaping the future of the globals music community.\n </p>\n <router-link :to=\"{ name: 'Sign In' }\" class=\"bg-black w-max mn-r-auto mn-l-auto t-medium t-white button\">\n Join Now\n </router-link>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue';\n\nimport * as users from '@martyrs/src/modules/auth/views/store/users'\n\nimport Marquee from '@martyrs/src/components/Marquee/Marquee.vue'\n\nimport CardUser from '@martyrs/src/modules/auth/views/components/blocks/CardUser.vue'\n\nconst usersList = ref([])\n\nonMounted(async() => {\n usersList.value = await users.actions.read({\n limit: 25\n })\n});\n</script>\n\n<style lang=\"scss\">\n .selector {\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n }\n</style>\n"],"names":["ref","onMounted","users.actions"],"mappings":";;;;;;;;;;;;;;AAwFA,UAAM,YAAYA,IAAG,IAAC,CAAE,CAAA;AAExBC,QAAAA,UAAU,YAAW;AACnB,gBAAU,QAAQ,MAAMC,MAAa,QAAC,KAAK;AAAA,QACzC,OAAO;AAAA,MACR,CAAA;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -20,7 +20,7 @@ const _sfc_main = {
|
|
|
20
20
|
const _component_router_link = resolveComponent("router-link");
|
|
21
21
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
22
22
|
_cache[1] || (_cache[1] = createElementVNode("div", { class: "flex-center flex w-100" }, [
|
|
23
|
-
createElementVNode("h2", { class: "t-center h2 w-max-
|
|
23
|
+
createElementVNode("h2", { class: "t-center h2 w-max-50r mn-b-big" }, " Ask the hundreds shaping your entertainment for decades ")
|
|
24
24
|
], -1)),
|
|
25
25
|
createVNode(_sfc_main$1, {
|
|
26
26
|
class: "mn-b-thin",
|
|
@@ -97,7 +97,7 @@ const _sfc_main = {
|
|
|
97
97
|
_cache[2] || (_cache[2] = createElementVNode("p", { class: "w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big" }, " Together, we're shaping the future of the globals music community. ", -1)),
|
|
98
98
|
createVNode(_component_router_link, {
|
|
99
99
|
to: { name: "Sign In" },
|
|
100
|
-
class: "bg-black mn-r-auto mn-l-auto t-medium t-white button"
|
|
100
|
+
class: "bg-black w-max mn-r-auto mn-l-auto t-medium t-white button"
|
|
101
101
|
}, {
|
|
102
102
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
103
103
|
createTextVNode(" Join Now ")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeaturedUsers.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-
|
|
1
|
+
{"version":3,"file":"FeaturedUsers.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-50r mn-b-big\">\n Ask the hundreds shaping your entertainment for decades\n </h2>\n </div>\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(0,6)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'reverse'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(7,14)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-big\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(15,22)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <p class=\"w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big\">\n Together, we're shaping the future of the globals music community.\n </p>\n <router-link :to=\"{ name: 'Sign In' }\" class=\"bg-black w-max mn-r-auto mn-l-auto t-medium t-white button\">\n Join Now\n </router-link>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue';\n\nimport * as users from '@martyrs/src/modules/auth/views/store/users'\n\nimport Marquee from '@martyrs/src/components/Marquee/Marquee.vue'\n\nimport CardUser from '@martyrs/src/modules/auth/views/components/blocks/CardUser.vue'\n\nconst usersList = ref([])\n\nonMounted(async() => {\n usersList.value = await users.actions.read({\n limit: 25\n })\n});\n</script>\n\n<style lang=\"scss\">\n .selector {\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n }\n</style>\n"],"names":["users.actions"],"mappings":";;;;;;;;;;;;AAwFA,UAAM,YAAY,IAAI,CAAE,CAAA;AAExB,cAAU,YAAW;AACnB,gBAAU,QAAQ,MAAMA,QAAc,KAAK;AAAA,QACzC,OAAO;AAAA,MACR,CAAA;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vue_SixQ7xP = require("../../../../../../node_modules/.pnpm/@unhead_vue@1.11.20_vue@3.5.13_typescript@5.8.3_/node_modules/@unhead/vue/dist/shared/vue.-sixQ7xP.cjs");
|
|
5
|
-
;/* empty css
|
|
5
|
+
;/* empty css */
|
|
6
6
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
|
7
7
|
const CardBlogpost = require("../blocks/CardBlogpost.vue.cjs");
|
|
8
8
|
const SkeletonBlogpost = require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, ref, onServerPrefetch, onMounted, createElementBlock, openBlock, createVNode, TransitionGroup, withCtx, createCommentVNode, Fragment, renderList, Transition, createBlock } from "vue";
|
|
2
2
|
import { u as useHead } from "../../../../../../node_modules/.pnpm/@unhead_vue@1.11.20_vue@3.5.13_typescript@5.8.3_/node_modules/@unhead/vue/dist/shared/vue.-sixQ7xP.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../blocks/CardBlogpost.vue.js";
|
|
6
6
|
import SkeletonBlogpost from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
;/* empty css
|
|
5
|
-
;/* empty css
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
;/* empty css */
|
|
8
8
|
const Slider = require("../../../../components/Slider/Slider.vue.cjs");
|
|
@@ -26,8 +26,7 @@ const _sfc_main = {
|
|
|
26
26
|
default: () => auth.state.user._id
|
|
27
27
|
},
|
|
28
28
|
period: {
|
|
29
|
-
type: String
|
|
30
|
-
default: "year"
|
|
29
|
+
type: String
|
|
31
30
|
},
|
|
32
31
|
category: {
|
|
33
32
|
type: String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotPosts.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HotPosts.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createBlock, openBlock, withCtx } from "vue";
|
|
2
|
-
/* empty css
|
|
3
|
-
/* empty css
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import Slider from "../../../../components/Slider/Slider.vue.js";
|
|
@@ -24,8 +24,7 @@ const _sfc_main = {
|
|
|
24
24
|
default: () => state.user._id
|
|
25
25
|
},
|
|
26
26
|
period: {
|
|
27
|
-
type: String
|
|
28
|
-
default: "year"
|
|
27
|
+
type: String
|
|
29
28
|
},
|
|
30
29
|
category: {
|
|
31
30
|
type: String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotPosts.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HotPosts.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,7 @@ const _hoisted_2 = ["src"];
|
|
|
14
14
|
const _hoisted_3 = ["src"];
|
|
15
15
|
const _hoisted_4 = {
|
|
16
16
|
key: 0,
|
|
17
|
-
class: "t-semi uppercase"
|
|
17
|
+
class: "t-semi t-truncate uppercase"
|
|
18
18
|
};
|
|
19
19
|
const _hoisted_5 = {
|
|
20
20
|
key: 1,
|
|
@@ -30,15 +30,13 @@ const _hoisted_7 = {
|
|
|
30
30
|
};
|
|
31
31
|
const _hoisted_8 = {
|
|
32
32
|
key: 2,
|
|
33
|
-
class: "mn-b-small p-big"
|
|
33
|
+
class: "mn-b-small p-big t-trim-3"
|
|
34
34
|
};
|
|
35
|
-
const _hoisted_9 = {
|
|
36
|
-
const _hoisted_10 = {
|
|
35
|
+
const _hoisted_9 = {
|
|
37
36
|
key: 0,
|
|
38
37
|
class: "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-white"
|
|
39
38
|
};
|
|
40
|
-
const
|
|
41
|
-
const _hoisted_12 = {
|
|
39
|
+
const _hoisted_10 = {
|
|
42
40
|
key: 0,
|
|
43
41
|
class: "t-semi"
|
|
44
42
|
};
|
|
@@ -95,7 +93,7 @@ const _sfc_main = {
|
|
|
95
93
|
const endTime = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(end);
|
|
96
94
|
return `${startTime}-${endTime}`;
|
|
97
95
|
});
|
|
98
|
-
|
|
96
|
+
vue.computed(() => {
|
|
99
97
|
const eventName = props.event.name;
|
|
100
98
|
if (eventName.length > 26) {
|
|
101
99
|
return `${eventName.substring(0, 22)}…`;
|
|
@@ -140,7 +138,10 @@ const _sfc_main = {
|
|
|
140
138
|
}, null, 8, _hoisted_3)
|
|
141
139
|
])) : vue.createCommentVNode("", true),
|
|
142
140
|
vue.createElementVNode("section", {
|
|
143
|
-
class: vue.normalizeClass(["pos-relative w-100", {
|
|
141
|
+
class: vue.normalizeClass(["pos-relative w-100", {
|
|
142
|
+
"pd-t-zero pd-medium": __props.type !== "short",
|
|
143
|
+
"flex-nowrap flex flex-v-center": __props.type === "short"
|
|
144
|
+
}])
|
|
144
145
|
}, [
|
|
145
146
|
__props.user === __props.event.creator.target._id ? (vue.openBlock(), vue.createBlock(IconEdit.default, {
|
|
146
147
|
key: 0,
|
|
@@ -153,9 +154,12 @@ const _sfc_main = {
|
|
|
153
154
|
class: "z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
|
154
155
|
})) : vue.createCommentVNode("", true),
|
|
155
156
|
vue.createElementVNode("div", {
|
|
156
|
-
class: vue.normalizeClass([{
|
|
157
|
+
class: vue.normalizeClass([{
|
|
158
|
+
"mn-b-small": __props.type !== "short",
|
|
159
|
+
"order-2 mn-l-thin": __props.type === "short"
|
|
160
|
+
}, "flex-v-center flex-nowrap flex"])
|
|
157
161
|
}, [
|
|
158
|
-
__props.type === "short" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(
|
|
162
|
+
__props.type === "short" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(__props.event.name), 1)) : vue.createCommentVNode("", true)
|
|
159
163
|
], 2),
|
|
160
164
|
__props.type !== "short" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
161
165
|
__props.type !== "short" ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_6, vue.toDisplayString(__props.event.name), 1)) : vue.createCommentVNode("", true),
|
|
@@ -163,18 +167,26 @@ const _sfc_main = {
|
|
|
163
167
|
])) : vue.createCommentVNode("", true),
|
|
164
168
|
__props.type !== "short" ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_8, vue.toDisplayString(__props.event.description), 1)) : vue.createCommentVNode("", true),
|
|
165
169
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
166
|
-
vue.createElementVNode("div",
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
vue.createElementVNode("div", {
|
|
171
|
+
class: vue.normalizeClass(["flex-wrap flex-child-default gap-micro t-medium p-big justify-start align-center t-trim-2", {
|
|
172
|
+
"order-1": __props.type === "short"
|
|
173
|
+
}])
|
|
174
|
+
}, [
|
|
175
|
+
((_a = __props.event.date) == null ? void 0 : _a.start) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, [
|
|
176
|
+
vue.createElementVNode("span", {
|
|
177
|
+
class: vue.normalizeClass([{
|
|
178
|
+
"p-medium": __props.type === "short"
|
|
179
|
+
}, "t-semi"])
|
|
180
|
+
}, vue.toDisplayString(formattedDate.value), 3),
|
|
181
|
+
__props.type !== "short" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, " | " + vue.toDisplayString(formattedTimeRange.value), 1)) : vue.createCommentVNode("", true)
|
|
170
182
|
])) : vue.createCommentVNode("", true),
|
|
171
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment,
|
|
183
|
+
__props.type !== "short" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(__props.event.tags, (chip, index) => {
|
|
172
184
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
173
185
|
key: index,
|
|
174
186
|
class: "d-inline-flex pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small bg-main"
|
|
175
187
|
}, vue.toDisplayString(chip), 1);
|
|
176
|
-
}), 128))
|
|
177
|
-
])
|
|
188
|
+
}), 128)) : vue.createCommentVNode("", true)
|
|
189
|
+
], 2)
|
|
178
190
|
], 2)
|
|
179
191
|
], 2);
|
|
180
192
|
};
|