@fynd-design-engineering/fynd-one-v2 3.4.61 → 3.4.63
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/accordians/dropdown.js +95 -1
- package/dist/accordians/index.js +391 -1
- package/dist/cms-listing/index.js +24 -1
- package/dist/filters/clear-search.js +32 -1
- package/dist/filters/konnect.js +165 -1
- package/dist/filters/show-count.js +66 -1
- package/dist/form/country-dropdown.css +160 -1
- package/dist/form/cs-gated-redirection.js +40 -1
- package/dist/form/download-file.js +70 -1
- package/dist/form/validation.css +1019 -1
- package/dist/form/validation.js +10611 -7
- package/dist/global/anchor-scroll.js +174 -1
- package/dist/global/auth.js +87 -1
- package/dist/global/chat.js +185 -1
- package/dist/global/console-links.js +89 -1
- package/dist/global/contact-popup.js +83 -2
- package/dist/global/css/in-page-embed.css +1043 -1
- package/dist/global/css/in-project-settings.css +173 -1
- package/dist/global/css/temp.css +89 -1
- package/dist/global/custom-bg-video.js +40 -1
- package/dist/global/footer-accordion.js +44 -1
- package/dist/global/lazy-loader.js +135 -1
- package/dist/global/loader.js +166 -2
- package/dist/global/media-card.js +166 -1
- package/dist/global/miscellaneous.js +136 -1
- package/dist/global/number-count.js +82 -1
- package/dist/global/popup-video.js +276 -1
- package/dist/global/progressive-scroll.js +222 -1
- package/dist/global/responsive-video.js +321 -1
- package/dist/global/style.css +1065 -1
- package/dist/global/video-card.js +50 -1
- package/dist/hacktimus/2025.js +177 -1
- package/dist/hacktimus/styles.css +91 -1
- package/dist/home/index.js +17 -1
- package/dist/marquee/index.js +3104 -1
- package/dist/marquee/marquee-swiper.js +36 -1
- package/dist/navigation/announcement/index.js +5169 -1
- package/dist/navigation/context-menu/index.js +31 -1
- package/dist/navigation/desktop/index.js +4603 -1
- package/dist/navigation/initialization.js +602 -1
- package/dist/navigation/main.js +4911 -1
- package/dist/navigation/mobile/index.js +286 -1
- package/dist/navigation/scroll/index.js +62 -1
- package/dist/navigation/secondary-navigation/index.js +437 -1
- package/dist/navigation/style.css +154 -1
- package/dist/navigation/temp.css +2 -0
- package/dist/navigation/theme.css +69 -1
- package/dist/navigation-v2/index.js +4990 -1
- package/dist/navigation-v2/styles.css +233 -1
- package/dist/others/feature-detail.js +75 -0
- package/dist/others/feature-detail.js.map +7 -0
- package/dist/others/geolocation.js +50 -1
- package/dist/others/hero-aniamtion.js +53 -1
- package/dist/others/hero-india-animation-2.js +70 -1
- package/dist/others/hero-india-animation.js +93 -1
- package/dist/others/home-solution-tab.js +115 -1
- package/dist/others/storefront-chat/index.js +487 -1
- package/dist/others/storefront-chat/styles.css +107 -1
- package/dist/playbook-2026/hero-reveal.js +47 -1
- package/dist/playbook-2026/index.js +536 -1
- package/dist/playbook-2026/styles.css +110 -1
- package/dist/posthog-and-ga/attributes.js +190 -1
- package/dist/posthog-and-ga/main.js +528 -1
- package/dist/progressive-scroll/index.js +147 -1
- package/dist/quick-fix/reload.js +22 -1
- package/dist/seo/schema.js +465 -1
- package/dist/slider/freescroll.js +34 -1
- package/dist/test/sample.js +15 -1
- package/dist/testimonials/index.js +2654 -1
- package/dist/timeline/index.js +160 -1
- package/dist/timeline/style.css +42 -1
- package/dist/tracking/custom-id.js +75 -1
- package/dist/tracking/fill-form-fields.js +238 -1
- package/dist/tracking/fill-form-fields.js.map +2 -2
- package/dist/tracking/form-tracker.js +146 -1
- package/dist/tracking/page-categories.js +20 -1
- package/dist/tracking/user-journey.js +839 -1
- package/dist/tracking/utm-links.js +194 -1
- package/dist/utils/sample.js +17 -1
- package/dist/validations/localhost.js +221 -1
- package/package.json +1 -1
|
@@ -1 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
// bin/live-reload.js
|
|
4
|
+
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
|
|
5
|
+
new EventSource(`${"http://localhost:3000"}/esbuild`).addEventListener(
|
|
6
|
+
"change",
|
|
7
|
+
() => location.reload()
|
|
8
|
+
);
|
|
9
|
+
} else {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/global/video-card.ts
|
|
13
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
14
|
+
const videoCards = document.querySelectorAll("[fynd-video-element]");
|
|
15
|
+
videoCards.forEach((card) => {
|
|
16
|
+
const video = card.querySelector("video");
|
|
17
|
+
const image = card.querySelector("img");
|
|
18
|
+
if (!video || !image) return;
|
|
19
|
+
const shouldLoop = video.getAttribute("video-on-loop") === "true";
|
|
20
|
+
if (shouldLoop) {
|
|
21
|
+
video.muted = true;
|
|
22
|
+
video.setAttribute("muted", "");
|
|
23
|
+
video.setAttribute("playsinline", "");
|
|
24
|
+
video.setAttribute("webkit-playsinline", "");
|
|
25
|
+
video.loop = true;
|
|
26
|
+
video.setAttribute("autoplay", "");
|
|
27
|
+
}
|
|
28
|
+
image.style.display = "block";
|
|
29
|
+
video.addEventListener("canplay", () => {
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
image.style.display = "none";
|
|
32
|
+
if (shouldLoop) {
|
|
33
|
+
const p = video.play();
|
|
34
|
+
if (p && typeof p.catch === "function") {
|
|
35
|
+
p.catch(() => {
|
|
36
|
+
const startOnTap = () => {
|
|
37
|
+
video.play().finally(() => {
|
|
38
|
+
video.removeEventListener("click", startOnTap);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
video.addEventListener("click", startOnTap, { once: true });
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}, 500);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
})();
|
|
50
|
+
//# sourceMappingURL=video-card.js.map
|
package/dist/hacktimus/2025.js
CHANGED
|
@@ -1 +1,177 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
// bin/live-reload.js
|
|
4
|
+
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
|
|
5
|
+
new EventSource(`${"http://localhost:3000"}/esbuild`).addEventListener(
|
|
6
|
+
"change",
|
|
7
|
+
() => location.reload()
|
|
8
|
+
);
|
|
9
|
+
} else {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/hacktimus/2025.ts
|
|
13
|
+
console.log("Hacktimus 2025 script loaded.");
|
|
14
|
+
var hasReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
15
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
16
|
+
const gsap = window.gsap;
|
|
17
|
+
const ScrollTrigger = window.ScrollTrigger;
|
|
18
|
+
if (gsap && ScrollTrigger) {
|
|
19
|
+
let setup2 = function() {
|
|
20
|
+
ScrollTrigger.getAll().forEach((st) => st.kill());
|
|
21
|
+
if (!viewport || !track) return;
|
|
22
|
+
const scrollDistance = track.scrollWidth - viewport.clientWidth;
|
|
23
|
+
if (scrollDistance <= 0) return;
|
|
24
|
+
gsap.set(track, { x: 0 });
|
|
25
|
+
gsap.to(track, {
|
|
26
|
+
x: -scrollDistance,
|
|
27
|
+
ease: "none",
|
|
28
|
+
scrollTrigger: {
|
|
29
|
+
trigger: section || viewport,
|
|
30
|
+
start: "top top",
|
|
31
|
+
end: () => "+=" + scrollDistance,
|
|
32
|
+
scrub: true,
|
|
33
|
+
pin: true,
|
|
34
|
+
anticipatePin: 1,
|
|
35
|
+
invalidateOnRefresh: true
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
ScrollTrigger.addEventListener("refreshInit", () => gsap.set(track, { x: 0 }));
|
|
39
|
+
ScrollTrigger.refresh();
|
|
40
|
+
};
|
|
41
|
+
var setup = setup2;
|
|
42
|
+
gsap.registerPlugin(ScrollTrigger);
|
|
43
|
+
const section = document.getElementById("h-scroll");
|
|
44
|
+
const viewport = document.getElementById("cardsViewport");
|
|
45
|
+
const track = document.getElementById("cardsTrack");
|
|
46
|
+
setup2();
|
|
47
|
+
let raf = 0;
|
|
48
|
+
window.addEventListener("resize", () => {
|
|
49
|
+
if (raf) cancelAnimationFrame(raf);
|
|
50
|
+
raf = requestAnimationFrame(() => setup2());
|
|
51
|
+
});
|
|
52
|
+
} else {
|
|
53
|
+
console.warn("GSAP or ScrollTrigger not found on window.");
|
|
54
|
+
}
|
|
55
|
+
const incentiveSwiper = new Swiper("[fynd-slider='incentive']", {
|
|
56
|
+
slidesPerView: 3,
|
|
57
|
+
spaceBetween: 20,
|
|
58
|
+
loop: false,
|
|
59
|
+
freeMode: false,
|
|
60
|
+
// mousewheel: {
|
|
61
|
+
// forceToAxis: true,
|
|
62
|
+
// sensitivity: 1,
|
|
63
|
+
// },
|
|
64
|
+
breakpoints: {
|
|
65
|
+
992: { slidesPerView: 3 },
|
|
66
|
+
768: { slidesPerView: 2.1 },
|
|
67
|
+
640: { slidesPerView: 1.8 },
|
|
68
|
+
0: { slidesPerView: 1.2 }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const targetDate = /* @__PURE__ */ new Date("2025-12-05T00:00:00Z");
|
|
72
|
+
function updateTimer() {
|
|
73
|
+
const now = Date.now();
|
|
74
|
+
const distance = targetDate.getTime() - now;
|
|
75
|
+
if (distance <= 0) {
|
|
76
|
+
document.querySelectorAll("[fynd-timer]").forEach((el) => {
|
|
77
|
+
el.textContent = "00";
|
|
78
|
+
});
|
|
79
|
+
clearInterval(timer);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const days = Math.floor(distance / (1e3 * 60 * 60 * 24));
|
|
83
|
+
const hours = Math.floor(distance / (1e3 * 60 * 60) % 24);
|
|
84
|
+
const minutes = Math.floor(distance / (1e3 * 60) % 60);
|
|
85
|
+
const seconds = Math.floor(distance / 1e3 % 60);
|
|
86
|
+
const setText = (attr, val) => {
|
|
87
|
+
const el = document.querySelector(`[fynd-timer=${attr}]`);
|
|
88
|
+
if (el) el.textContent = val.toString().padStart(2, "0");
|
|
89
|
+
};
|
|
90
|
+
setText("day", days);
|
|
91
|
+
setText("hour", hours);
|
|
92
|
+
setText("minute", minutes);
|
|
93
|
+
setText("second", seconds);
|
|
94
|
+
}
|
|
95
|
+
const timer = setInterval(updateTimer, 1e3);
|
|
96
|
+
updateTimer();
|
|
97
|
+
const VISIBLE_COUNT = 6;
|
|
98
|
+
const ITEM_ATTR = "accordian-clip";
|
|
99
|
+
const BUTTON_SELECTOR = "[accordian-view-more]";
|
|
100
|
+
function setupAccordionViewMore(visibleCount = VISIBLE_COUNT) {
|
|
101
|
+
const buttons = Array.from(
|
|
102
|
+
document.querySelectorAll(BUTTON_SELECTOR)
|
|
103
|
+
);
|
|
104
|
+
if (buttons.length === 0) return;
|
|
105
|
+
buttons.forEach((button) => {
|
|
106
|
+
const container = findContainerForButton(button);
|
|
107
|
+
if (!container) return;
|
|
108
|
+
const items = Array.from(
|
|
109
|
+
container.querySelectorAll(`div[${ITEM_ATTR}]`)
|
|
110
|
+
);
|
|
111
|
+
if (items.length === 0) {
|
|
112
|
+
button.hidden = true;
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
items.sort((a, b) => {
|
|
116
|
+
const pos = a.compareDocumentPosition(b);
|
|
117
|
+
if (pos & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
|
|
118
|
+
if (pos & Node.DOCUMENT_POSITION_PRECEDING) return 1;
|
|
119
|
+
return 0;
|
|
120
|
+
});
|
|
121
|
+
const group = {
|
|
122
|
+
container,
|
|
123
|
+
items,
|
|
124
|
+
button,
|
|
125
|
+
expanded: false,
|
|
126
|
+
visibleCount
|
|
127
|
+
};
|
|
128
|
+
button.setAttribute("aria-expanded", "false");
|
|
129
|
+
button.setAttribute("type", "button");
|
|
130
|
+
button.setAttribute("aria-controls", createAriaControlsFor(items));
|
|
131
|
+
if (items.length <= visibleCount) {
|
|
132
|
+
button.hidden = true;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
applyCollapsed(group);
|
|
136
|
+
button.addEventListener("click", () => {
|
|
137
|
+
if (group.expanded) applyCollapsed(group);
|
|
138
|
+
else applyExpanded(group);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function applyCollapsed(group) {
|
|
143
|
+
const { items, button, visibleCount } = group;
|
|
144
|
+
items.forEach((el, i) => {
|
|
145
|
+
el.hidden = i >= visibleCount;
|
|
146
|
+
});
|
|
147
|
+
button.textContent = "View more";
|
|
148
|
+
button.setAttribute("aria-expanded", "false");
|
|
149
|
+
group.expanded = false;
|
|
150
|
+
}
|
|
151
|
+
function applyExpanded(group) {
|
|
152
|
+
group.items.forEach((el) => el.hidden = false);
|
|
153
|
+
group.button.textContent = "View less";
|
|
154
|
+
group.button.setAttribute("aria-expanded", "true");
|
|
155
|
+
group.expanded = true;
|
|
156
|
+
}
|
|
157
|
+
function findContainerForButton(button) {
|
|
158
|
+
let el = button.parentElement;
|
|
159
|
+
while (el && el !== document.body) {
|
|
160
|
+
if (el.querySelector(`div[${ITEM_ATTR}]`)) return el;
|
|
161
|
+
el = el.parentElement;
|
|
162
|
+
}
|
|
163
|
+
if (document.querySelector(`div[${ITEM_ATTR}]`)) return document.body;
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
function createAriaControlsFor(els) {
|
|
167
|
+
const ids = [];
|
|
168
|
+
els.forEach((el, i) => {
|
|
169
|
+
if (!el.id) el.id = `wf-acc-item-${Math.random().toString(36).slice(2)}-${i}`;
|
|
170
|
+
ids.push(el.id);
|
|
171
|
+
});
|
|
172
|
+
return ids.join(" ");
|
|
173
|
+
}
|
|
174
|
+
setupAccordionViewMore();
|
|
175
|
+
});
|
|
176
|
+
})();
|
|
177
|
+
//# sourceMappingURL=2025.js.map
|
|
@@ -1 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
/* src/hacktimus/styles.css */
|
|
2
|
+
.section_incentive-scroll {
|
|
3
|
+
height: 100vh;
|
|
4
|
+
}
|
|
5
|
+
.cards-track {
|
|
6
|
+
display: inline-flex !important;
|
|
7
|
+
will-change: transform;
|
|
8
|
+
}
|
|
9
|
+
#bt_secure-items:hover > .bt_secure-item::after {
|
|
10
|
+
opacity: 1;
|
|
11
|
+
}
|
|
12
|
+
.bt_secure-item:hover::before {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
.bt_secure-item::before,
|
|
16
|
+
.bt_secure-item::after {
|
|
17
|
+
border-radius: inherit;
|
|
18
|
+
content: "";
|
|
19
|
+
height: 100%;
|
|
20
|
+
left: 0px;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0px;
|
|
24
|
+
transition: opacity 500ms;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
.bt_secure-item::before {
|
|
28
|
+
background:
|
|
29
|
+
radial-gradient(
|
|
30
|
+
800px circle at var(--mouse-x) var(--mouse-y),
|
|
31
|
+
rgba(255, 89, 47, 0.06),
|
|
32
|
+
transparent 40%);
|
|
33
|
+
z-index: 3;
|
|
34
|
+
}
|
|
35
|
+
.bt_secure-item::after {
|
|
36
|
+
background:
|
|
37
|
+
radial-gradient(
|
|
38
|
+
600px circle at var(--mouse-x) var(--mouse-y),
|
|
39
|
+
rgba(255, 89, 47),
|
|
40
|
+
transparent 40%);
|
|
41
|
+
z-index: 1;
|
|
42
|
+
}
|
|
43
|
+
[data-card] {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 70px;
|
|
46
|
+
perspective: 1000px;
|
|
47
|
+
outline: none;
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: 479px) {
|
|
50
|
+
[data-card] {
|
|
51
|
+
height: 80px;
|
|
52
|
+
}
|
|
53
|
+
[data-face] {
|
|
54
|
+
align-items: flex-start;
|
|
55
|
+
}
|
|
56
|
+
.hs-schedule_block {
|
|
57
|
+
align-items: flex-start !important;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
[data-flip] {
|
|
61
|
+
position: relative;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
transform-style: preserve-3d;
|
|
65
|
+
transition: transform 0.4s ease;
|
|
66
|
+
border-radius: 8px;
|
|
67
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 1px 6px rgba(0, 0, 0, .04);
|
|
68
|
+
}
|
|
69
|
+
[data-card]:hover [data-flip],
|
|
70
|
+
[data-card]:focus-within [data-flip] {
|
|
71
|
+
transform: rotateX(180deg);
|
|
72
|
+
}
|
|
73
|
+
[data-face] {
|
|
74
|
+
position: absolute;
|
|
75
|
+
inset: 0;
|
|
76
|
+
backface-visibility: hidden;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
user-select: none;
|
|
81
|
+
}
|
|
82
|
+
[data-face=back] {
|
|
83
|
+
transform: rotateX(180deg);
|
|
84
|
+
}
|
|
85
|
+
[data-text] {
|
|
86
|
+
transform: rotateX(180deg);
|
|
87
|
+
}
|
|
88
|
+
[data-face=front] [data-text] {
|
|
89
|
+
transform: none;
|
|
90
|
+
}
|
|
91
|
+
/*# sourceMappingURL=styles.css.map */
|
package/dist/home/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
// bin/live-reload.js
|
|
4
|
+
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
|
|
5
|
+
new EventSource(`${"http://localhost:3000"}/esbuild`).addEventListener(
|
|
6
|
+
"change",
|
|
7
|
+
() => location.reload()
|
|
8
|
+
);
|
|
9
|
+
} else {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/home/index.ts
|
|
13
|
+
function logMessage(message) {
|
|
14
|
+
console.log("Logged message:", message);
|
|
15
|
+
}
|
|
16
|
+
})();
|
|
17
|
+
//# sourceMappingURL=index.js.map
|