@fynd-design-engineering/fynd-one-v2 3.4.63 → 3.4.65
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 +1 -95
- package/dist/accordians/index.js +1 -391
- package/dist/cms-listing/index.js +1 -24
- package/dist/filters/clear-search.js +1 -32
- package/dist/filters/konnect.js +1 -165
- package/dist/filters/show-count.js +1 -66
- package/dist/form/country-dropdown.css +1 -160
- package/dist/form/cs-gated-redirection.js +1 -40
- package/dist/form/download-file.js +1 -70
- package/dist/form/validation.css +1 -1019
- package/dist/form/validation.js +7 -10611
- package/dist/global/anchor-scroll.js +1 -174
- package/dist/global/auth.js +1 -87
- package/dist/global/chat.js +1 -185
- package/dist/global/console-links.js +1 -89
- package/dist/global/contact-popup.js +2 -83
- package/dist/global/css/in-page-embed.css +1 -1043
- package/dist/global/css/in-project-settings.css +1 -173
- package/dist/global/css/temp.css +1 -89
- package/dist/global/custom-bg-video.js +1 -40
- package/dist/global/footer-accordion.js +1 -44
- package/dist/global/lazy-loader.js +1 -135
- package/dist/global/loader.js +2 -166
- package/dist/global/media-card.js +1 -166
- package/dist/global/miscellaneous.js +1 -136
- package/dist/global/number-count.js +1 -82
- package/dist/global/popup-video.js +1 -276
- package/dist/global/progressive-scroll.js +1 -222
- package/dist/global/responsive-video.js +1 -321
- package/dist/global/style.css +1 -1065
- package/dist/global/video-card.js +1 -50
- package/dist/hacktimus/2025.js +1 -177
- package/dist/hacktimus/styles.css +1 -91
- package/dist/home/index.js +1 -17
- package/dist/marquee/index.js +1 -3104
- package/dist/marquee/marquee-swiper.js +1 -36
- package/dist/navigation/announcement/index.js +1 -5169
- package/dist/navigation/context-menu/index.js +1 -31
- package/dist/navigation/desktop/index.js +1 -4603
- package/dist/navigation/initialization.js +1 -602
- package/dist/navigation/main.js +1 -4911
- package/dist/navigation/mobile/index.js +1 -286
- package/dist/navigation/scroll/index.js +1 -62
- package/dist/navigation/secondary-navigation/index.js +1 -437
- package/dist/navigation/style.css +1 -154
- package/dist/navigation/temp.css +0 -2
- package/dist/navigation/theme.css +1 -69
- package/dist/navigation-v2/index.js +1 -4990
- package/dist/navigation-v2/styles.css +1 -233
- package/dist/others/feature-detail.js +1 -75
- package/dist/others/geolocation.js +1 -50
- package/dist/others/hero-aniamtion.js +1 -53
- package/dist/others/hero-india-animation-2.js +1 -70
- package/dist/others/hero-india-animation.js +1 -93
- package/dist/others/home-solution-tab.js +1 -115
- package/dist/others/storefront-chat/index.js +1 -487
- package/dist/others/storefront-chat/styles.css +1 -107
- package/dist/playbook-2026/hero-reveal.js +1 -47
- package/dist/playbook-2026/index.js +1 -536
- package/dist/playbook-2026/styles.css +1 -110
- package/dist/posthog-and-ga/attributes.js +1 -190
- package/dist/posthog-and-ga/main.js +1 -528
- package/dist/progressive-scroll/index.js +1 -147
- package/dist/quick-fix/reload.js +1 -22
- package/dist/seo/schema.js +1 -465
- package/dist/slider/freescroll.js +1 -34
- package/dist/test/sample.js +1 -15
- package/dist/testimonials/index.js +1 -2654
- package/dist/timeline/index.js +1 -160
- package/dist/timeline/style.css +1 -42
- package/dist/tracking/custom-id.js +1 -75
- package/dist/tracking/fill-form-fields.js +1 -238
- package/dist/tracking/form-tracker.js +1 -146
- package/dist/tracking/page-categories.js +1 -20
- package/dist/tracking/user-journey.js +1 -839
- package/dist/tracking/utm-links.js +1 -194
- package/dist/utils/sample.js +1 -17
- package/dist/validations/localhost.js +1 -221
- package/package.json +1 -1
|
@@ -1,233 +1 @@
|
|
|
1
|
-
|
|
2
|
-
:root {
|
|
3
|
-
--nav-height: 70px;
|
|
4
|
-
--nav-bg: rgba(255, 255, 255, 0.82);
|
|
5
|
-
--nav-blur: saturate(180%) blur(20px);
|
|
6
|
-
--nav-border: #1c1c1c0f;
|
|
7
|
-
--nav-text-muted: #0000009d;
|
|
8
|
-
--nav-text-active: #000000;
|
|
9
|
-
--nav-item-radius: 6px;
|
|
10
|
-
--nav-item-hover-bg: rgba(255, 255, 255, 0.06);
|
|
11
|
-
--nav-panel-bg: #fff;
|
|
12
|
-
--nav-panel-border: #1f1f1f;
|
|
13
|
-
--nav-panel-radius: 12px;
|
|
14
|
-
--nav-panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.159), 0 1px 0 rgba(255, 255, 255, 0.01);
|
|
15
|
-
}
|
|
16
|
-
@media (max-width: 991px) {
|
|
17
|
-
:root {
|
|
18
|
-
--nav-height: 48px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
@media (max-width: 600px) {
|
|
22
|
-
[data-nav-announcement-wrapper] {
|
|
23
|
-
transition-timing-function: linear !important;
|
|
24
|
-
align-items: center;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
[data-nav] {
|
|
28
|
-
position: sticky;
|
|
29
|
-
top: 0;
|
|
30
|
-
z-index: 200;
|
|
31
|
-
font-family:
|
|
32
|
-
-apple-system,
|
|
33
|
-
BlinkMacSystemFont,
|
|
34
|
-
"Inter",
|
|
35
|
-
"Segoe UI",
|
|
36
|
-
sans-serif;
|
|
37
|
-
}
|
|
38
|
-
[data-nav-bar] {
|
|
39
|
-
position: relative;
|
|
40
|
-
z-index: 2;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: space-between;
|
|
44
|
-
padding: 0 24px;
|
|
45
|
-
height: var(--nav-height);
|
|
46
|
-
background: var(--nav-bg);
|
|
47
|
-
backdrop-filter: var(--nav-blur);
|
|
48
|
-
-webkit-backdrop-filter: var(--nav-blur);
|
|
49
|
-
border-bottom: 1px solid transparent;
|
|
50
|
-
transition: border-color 0.2s;
|
|
51
|
-
}
|
|
52
|
-
[data-nav][data-menu-open] [data-nav-bar] {
|
|
53
|
-
border-bottom-color: var(--nav-border);
|
|
54
|
-
}
|
|
55
|
-
[data-nav-logo] {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: 8px;
|
|
59
|
-
font-size: 0.92rem;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
color: var(--nav-text-active);
|
|
62
|
-
text-decoration: none;
|
|
63
|
-
letter-spacing: -0.3px;
|
|
64
|
-
flex-shrink: 0;
|
|
65
|
-
}
|
|
66
|
-
[data-nav-links] {
|
|
67
|
-
list-style: none;
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
gap: 2px;
|
|
71
|
-
position: static;
|
|
72
|
-
}
|
|
73
|
-
[data-nav-item] {
|
|
74
|
-
position: relative;
|
|
75
|
-
height: var(--nav-height);
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
}
|
|
80
|
-
[data-nav-trigger],
|
|
81
|
-
[data-nav-link] {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
gap: 4px;
|
|
85
|
-
border-radius: var(--nav-item-radius);
|
|
86
|
-
color: var(--nav-text-muted);
|
|
87
|
-
background: transparent;
|
|
88
|
-
border: none;
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
transition: color 0.15s, background 0.15s;
|
|
92
|
-
}
|
|
93
|
-
[data-nav-trigger]:hover,
|
|
94
|
-
[data-nav-item][data-active] [data-nav-trigger] {
|
|
95
|
-
color: var(--nav-text-active);
|
|
96
|
-
background: var(--nav-item-hover-bg);
|
|
97
|
-
}
|
|
98
|
-
[data-nav-trigger] .nav-chevron {
|
|
99
|
-
width: 10px;
|
|
100
|
-
height: 6px;
|
|
101
|
-
flex-shrink: 0;
|
|
102
|
-
opacity: 0.45;
|
|
103
|
-
}
|
|
104
|
-
[data-nav-plain] {
|
|
105
|
-
color: var(--nav-text-muted);
|
|
106
|
-
text-decoration: none;
|
|
107
|
-
display: block;
|
|
108
|
-
transition: color 0.15s, background 0.15s;
|
|
109
|
-
}
|
|
110
|
-
[data-nav-plain]:hover {
|
|
111
|
-
color: var(--nav-text-active);
|
|
112
|
-
background: var(--nav-item-hover-bg);
|
|
113
|
-
}
|
|
114
|
-
[data-nav-right] {
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
gap: 6px;
|
|
118
|
-
flex-shrink: 0;
|
|
119
|
-
}
|
|
120
|
-
[data-nav-panel-stage] {
|
|
121
|
-
position: absolute;
|
|
122
|
-
top: 100%;
|
|
123
|
-
left: 0;
|
|
124
|
-
right: 0;
|
|
125
|
-
height: 0;
|
|
126
|
-
overflow: visible;
|
|
127
|
-
pointer-events: none;
|
|
128
|
-
z-index: 1;
|
|
129
|
-
}
|
|
130
|
-
[data-nav-panel] {
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: 8px;
|
|
133
|
-
left: 0;
|
|
134
|
-
background: var(--nav-panel-bg);
|
|
135
|
-
border: 1px solid var(--nav-panel-border);
|
|
136
|
-
border-radius: var(--nav-panel-radius);
|
|
137
|
-
padding: 16px;
|
|
138
|
-
pointer-events: auto;
|
|
139
|
-
box-shadow: var(--nav-panel-shadow);
|
|
140
|
-
overflow: hidden;
|
|
141
|
-
}
|
|
142
|
-
.btn-ghost {
|
|
143
|
-
padding: 5px 13px;
|
|
144
|
-
border-radius: 6px;
|
|
145
|
-
font-size: 0.8rem;
|
|
146
|
-
color: #888;
|
|
147
|
-
background: transparent;
|
|
148
|
-
border: 1px solid transparent;
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
transition: color 0.15s, border-color 0.15s;
|
|
151
|
-
}
|
|
152
|
-
.btn-ghost:hover {
|
|
153
|
-
color: #fff;
|
|
154
|
-
border-color: #333;
|
|
155
|
-
}
|
|
156
|
-
.btn-outline {
|
|
157
|
-
padding: 5px 13px;
|
|
158
|
-
border-radius: 6px;
|
|
159
|
-
font-size: 0.8rem;
|
|
160
|
-
color: #ccc;
|
|
161
|
-
background: transparent;
|
|
162
|
-
border: 1px solid #2e2e2e;
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
transition: border-color 0.15s, color 0.15s;
|
|
165
|
-
}
|
|
166
|
-
.btn-outline:hover {
|
|
167
|
-
border-color: #555;
|
|
168
|
-
color: #fff;
|
|
169
|
-
}
|
|
170
|
-
.btn-primary {
|
|
171
|
-
padding: 5px 13px;
|
|
172
|
-
border-radius: 6px;
|
|
173
|
-
font-size: 0.8rem;
|
|
174
|
-
font-weight: 500;
|
|
175
|
-
color: #000;
|
|
176
|
-
background: #fff;
|
|
177
|
-
border: none;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
transition: background 0.15s;
|
|
180
|
-
}
|
|
181
|
-
.btn-primary:hover {
|
|
182
|
-
background: #ddd;
|
|
183
|
-
}
|
|
184
|
-
.cols-3 {
|
|
185
|
-
display: grid;
|
|
186
|
-
grid-template-columns: repeat(3, 180px);
|
|
187
|
-
gap: 0 24px;
|
|
188
|
-
}
|
|
189
|
-
.cols-2 {
|
|
190
|
-
display: grid;
|
|
191
|
-
grid-template-columns: repeat(2, 200px);
|
|
192
|
-
gap: 0 24px;
|
|
193
|
-
}
|
|
194
|
-
.cols-1 {
|
|
195
|
-
display: grid;
|
|
196
|
-
grid-template-columns: 220px;
|
|
197
|
-
}
|
|
198
|
-
.col-label {
|
|
199
|
-
font-size: 0.67rem;
|
|
200
|
-
font-weight: 500;
|
|
201
|
-
letter-spacing: 0.07em;
|
|
202
|
-
text-transform: uppercase;
|
|
203
|
-
color: #333;
|
|
204
|
-
margin-bottom: 4px;
|
|
205
|
-
padding: 0 8px;
|
|
206
|
-
}
|
|
207
|
-
.menu-item {
|
|
208
|
-
display: block;
|
|
209
|
-
padding: 7px 8px;
|
|
210
|
-
border-radius: 6px;
|
|
211
|
-
text-decoration: none;
|
|
212
|
-
color: inherit;
|
|
213
|
-
transition: background 0.12s;
|
|
214
|
-
}
|
|
215
|
-
.menu-item:hover {
|
|
216
|
-
background: #161616;
|
|
217
|
-
}
|
|
218
|
-
.menu-item-title {
|
|
219
|
-
display: block;
|
|
220
|
-
font-size: 0.8rem;
|
|
221
|
-
font-weight: 500;
|
|
222
|
-
color: #ddd;
|
|
223
|
-
}
|
|
224
|
-
.menu-item-desc {
|
|
225
|
-
display: block;
|
|
226
|
-
font-size: 0.72rem;
|
|
227
|
-
color: #4a4a4a;
|
|
228
|
-
margin-top: 1px;
|
|
229
|
-
}
|
|
230
|
-
body {
|
|
231
|
-
background: red;
|
|
232
|
-
}
|
|
233
|
-
/*# sourceMappingURL=styles.css.map */
|
|
1
|
+
:root{--nav-height: 70px;--nav-bg: rgba(255, 255, 255, .82);--nav-blur: saturate(180%) blur(20px);--nav-border: #1c1c1c0f;--nav-text-muted: #0000009d;--nav-text-active: #000000;--nav-item-radius: 6px;--nav-item-hover-bg: rgba(255, 255, 255, .06);--nav-panel-bg: #fff;--nav-panel-border: #1f1f1f;--nav-panel-radius: 12px;--nav-panel-shadow: 0 8px 32px rgba(0, 0, 0, .159), 0 1px 0 rgba(255, 255, 255, .01)}@media (max-width: 991px){:root{--nav-height: 48px}}@media (max-width: 600px){[data-nav-announcement-wrapper]{transition-timing-function:linear!important;align-items:center}}[data-nav]{position:sticky;top:0;z-index:200;font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,sans-serif}[data-nav-bar]{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:var(--nav-height);background:var(--nav-bg);backdrop-filter:var(--nav-blur);-webkit-backdrop-filter:var(--nav-blur);border-bottom:1px solid transparent;transition:border-color .2s}[data-nav][data-menu-open] [data-nav-bar]{border-bottom-color:var(--nav-border)}[data-nav-logo]{display:flex;align-items:center;gap:8px;font-size:.92rem;font-weight:600;color:var(--nav-text-active);text-decoration:none;letter-spacing:-.3px;flex-shrink:0}[data-nav-links]{list-style:none;display:flex;align-items:center;gap:2px;position:static}[data-nav-item]{position:relative;height:var(--nav-height);display:flex;align-items:center;justify-content:center}[data-nav-trigger],[data-nav-link]{display:flex;align-items:center;gap:4px;border-radius:var(--nav-item-radius);color:var(--nav-text-muted);background:transparent;border:none;cursor:pointer;white-space:nowrap;transition:color .15s,background .15s}[data-nav-trigger]:hover,[data-nav-item][data-active] [data-nav-trigger]{color:var(--nav-text-active);background:var(--nav-item-hover-bg)}[data-nav-trigger] .nav-chevron{width:10px;height:6px;flex-shrink:0;opacity:.45}[data-nav-plain]{color:var(--nav-text-muted);text-decoration:none;display:block;transition:color .15s,background .15s}[data-nav-plain]:hover{color:var(--nav-text-active);background:var(--nav-item-hover-bg)}[data-nav-right]{display:flex;align-items:center;gap:6px;flex-shrink:0}[data-nav-panel-stage]{position:absolute;top:100%;left:0;right:0;height:0;overflow:visible;pointer-events:none;z-index:1}[data-nav-panel]{position:absolute;top:8px;left:0;background:var(--nav-panel-bg);border:1px solid var(--nav-panel-border);border-radius:var(--nav-panel-radius);padding:16px;pointer-events:auto;box-shadow:var(--nav-panel-shadow);overflow:hidden}.btn-ghost{padding:5px 13px;border-radius:6px;font-size:.8rem;color:#888;background:transparent;border:1px solid transparent;cursor:pointer;transition:color .15s,border-color .15s}.btn-ghost:hover{color:#fff;border-color:#333}.btn-outline{padding:5px 13px;border-radius:6px;font-size:.8rem;color:#ccc;background:transparent;border:1px solid #2e2e2e;cursor:pointer;transition:border-color .15s,color .15s}.btn-outline:hover{border-color:#555;color:#fff}.btn-primary{padding:5px 13px;border-radius:6px;font-size:.8rem;font-weight:500;color:#000;background:#fff;border:none;cursor:pointer;transition:background .15s}.btn-primary:hover{background:#ddd}.cols-3{display:grid;grid-template-columns:repeat(3,180px);gap:0 24px}.cols-2{display:grid;grid-template-columns:repeat(2,200px);gap:0 24px}.cols-1{display:grid;grid-template-columns:220px}.col-label{font-size:.67rem;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:#333;margin-bottom:4px;padding:0 8px}.menu-item{display:block;padding:7px 8px;border-radius:6px;text-decoration:none;color:inherit;transition:background .12s}.menu-item:hover{background:#161616}.menu-item-title{display:block;font-size:.8rem;font-weight:500;color:#ddd}.menu-item-desc{display:block;font-size:.72rem;color:#4a4a4a;margin-top:1px}body{background:red}
|
|
@@ -1,75 +1 @@
|
|
|
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/others/feature-detail.ts
|
|
13
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
14
|
-
const richtextBlocks = document.querySelectorAll(".feature-richtext");
|
|
15
|
-
richtextBlocks.forEach((block) => {
|
|
16
|
-
const h2 = block.querySelector("h2");
|
|
17
|
-
if (!h2) return;
|
|
18
|
-
const siblings = [];
|
|
19
|
-
let sibling = h2.nextElementSibling;
|
|
20
|
-
while (sibling) {
|
|
21
|
-
siblings.push(sibling);
|
|
22
|
-
sibling = sibling.nextElementSibling;
|
|
23
|
-
}
|
|
24
|
-
const outerWrapper = document.createElement("div");
|
|
25
|
-
outerWrapper.classList.add("features-outer-wrapper");
|
|
26
|
-
let innerDiv = null;
|
|
27
|
-
siblings.forEach((el) => {
|
|
28
|
-
if (el.tagName === "H3") {
|
|
29
|
-
innerDiv = document.createElement("div");
|
|
30
|
-
innerDiv.classList.add("feature-item");
|
|
31
|
-
innerDiv.appendChild(el);
|
|
32
|
-
outerWrapper.appendChild(innerDiv);
|
|
33
|
-
} else if (el.tagName === "P" && innerDiv) {
|
|
34
|
-
innerDiv.appendChild(el);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
h2.after(outerWrapper);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
41
|
-
const featureBlocks = document.querySelectorAll("[data-feature-block]");
|
|
42
|
-
const tocContainer = document.querySelector("[data-toc-links]");
|
|
43
|
-
if (!tocContainer || featureBlocks.length === 0) return;
|
|
44
|
-
featureBlocks.forEach((block) => {
|
|
45
|
-
const badge = block.querySelector("badge");
|
|
46
|
-
if (!badge || !badge.textContent) return;
|
|
47
|
-
const text = badge.textContent.trim();
|
|
48
|
-
const slug = text.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
|
|
49
|
-
block.id = slug;
|
|
50
|
-
const tocLink = document.createElement("a");
|
|
51
|
-
tocLink.className = "feature-toc-link";
|
|
52
|
-
tocLink.setAttribute("data-toc-link", slug);
|
|
53
|
-
tocLink.href = `#${slug}`;
|
|
54
|
-
tocContainer.addEventListener("click", (e) => {
|
|
55
|
-
const link = e.target.closest("a.feature-toc-link");
|
|
56
|
-
if (!link) return;
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
e.stopPropagation();
|
|
59
|
-
const slug2 = link.getAttribute("data-toc-link");
|
|
60
|
-
if (!slug2) return;
|
|
61
|
-
const target = document.getElementById(slug2);
|
|
62
|
-
console.log("slug:", slug2, "target:", target);
|
|
63
|
-
if (!target) return;
|
|
64
|
-
const top = target.getBoundingClientRect().top + window.scrollY - 100;
|
|
65
|
-
window.scrollTo({ top, behavior: "smooth" });
|
|
66
|
-
});
|
|
67
|
-
const tocText = document.createElement("div");
|
|
68
|
-
tocText.setAttribute("data-toc-link-text", slug);
|
|
69
|
-
tocText.textContent = text;
|
|
70
|
-
tocLink.appendChild(tocText);
|
|
71
|
-
tocContainer.appendChild(tocLink);
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
})();
|
|
75
|
-
//# sourceMappingURL=feature-detail.js.map
|
|
1
|
+
"use strict";(()=>{document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".feature-richtext").forEach(a=>{let r=a.querySelector("h2");if(!r)return;let l=[],o=r.nextElementSibling;for(;o;)l.push(o),o=o.nextElementSibling;let e=document.createElement("div");e.classList.add("features-outer-wrapper");let t=null;l.forEach(n=>{n.tagName==="H3"?(t=document.createElement("div"),t.classList.add("feature-item"),t.appendChild(n),e.appendChild(t)):n.tagName==="P"&&t&&t.appendChild(n)}),r.after(e)})});document.addEventListener("DOMContentLoaded",()=>{let c=document.querySelectorAll("[data-feature-block]"),a=document.querySelector("[data-toc-links]");!a||c.length===0||c.forEach(r=>{let l=r.querySelector("badge");if(!l||!l.textContent)return;let o=l.textContent.trim(),e=o.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");r.id=e;let t=document.createElement("a");t.className="feature-toc-link",t.setAttribute("data-toc-link",e),t.href=`#${e}`,a.addEventListener("click",i=>{let u=i.target.closest("a.feature-toc-link");if(!u)return;i.preventDefault(),i.stopPropagation();let s=u.getAttribute("data-toc-link");if(!s)return;let d=document.getElementById(s);if(console.log("slug:",s,"target:",d),!d)return;let m=d.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:m,behavior:"smooth"})});let n=document.createElement("div");n.setAttribute("data-toc-link-text",e),n.textContent=o,t.appendChild(n),a.appendChild(t)})});})();
|
|
@@ -1,50 +1 @@
|
|
|
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/others/geolocation.ts
|
|
13
|
-
var LOOKUP_URL = "https://ipwho.is/";
|
|
14
|
-
function runNonBlocking(fn) {
|
|
15
|
-
const start = () => {
|
|
16
|
-
if ("requestIdleCallback" in window) {
|
|
17
|
-
window.requestIdleCallback(fn, { timeout: 2e3 });
|
|
18
|
-
} else {
|
|
19
|
-
setTimeout(fn, 0);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
if (document.readyState === "loading") {
|
|
23
|
-
document.addEventListener("DOMContentLoaded", start, { once: true });
|
|
24
|
-
} else {
|
|
25
|
-
start();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
async function getCountryCode() {
|
|
29
|
-
try {
|
|
30
|
-
const res = await fetch(LOOKUP_URL);
|
|
31
|
-
if (!res.ok) throw new Error("HTTP " + res.status);
|
|
32
|
-
const data = await res.json();
|
|
33
|
-
return data.success && data.country_code ? data.country_code : null;
|
|
34
|
-
} catch {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
async function init() {
|
|
39
|
-
const code = await getCountryCode();
|
|
40
|
-
const el = document.querySelector("[fynd-geolocation]");
|
|
41
|
-
if (!el) return;
|
|
42
|
-
if (code === "IN") {
|
|
43
|
-
el.style.display = "block";
|
|
44
|
-
} else {
|
|
45
|
-
el.style.display = "none";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
runNonBlocking(init);
|
|
49
|
-
})();
|
|
50
|
-
//# sourceMappingURL=geolocation.js.map
|
|
1
|
+
"use strict";(()=>{var t="https://ipwho.is/";function o(n){let e=()=>{"requestIdleCallback"in window?window.requestIdleCallback(n,{timeout:2e3}):setTimeout(n,0)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()}async function s(){try{let n=await fetch(t);if(!n.ok)throw new Error("HTTP "+n.status);let e=await n.json();return e.success&&e.country_code?e.country_code:null}catch{return null}}async function c(){let n=await s(),e=document.querySelector("[fynd-geolocation]");e&&(n==="IN"?e.style.display="block":e.style.display="none")}o(c);})();
|
|
@@ -1,53 +1 @@
|
|
|
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/others/hero-aniamtion.ts
|
|
13
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
14
|
-
const elements = Array.from(
|
|
15
|
-
document.querySelectorAll("[fynd-animate]")
|
|
16
|
-
);
|
|
17
|
-
if (elements.length === 0) return;
|
|
18
|
-
const gsap = window.gsap;
|
|
19
|
-
if (!gsap) {
|
|
20
|
-
console.warn("GSAP not found on window.");
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const prefersReducedMotion = window.matchMedia(
|
|
24
|
-
"(prefers-reduced-motion: reduce)"
|
|
25
|
-
).matches;
|
|
26
|
-
if (prefersReducedMotion) {
|
|
27
|
-
elements.forEach((el) => {
|
|
28
|
-
el.style.opacity = "1";
|
|
29
|
-
el.style.transform = "translateY(0)";
|
|
30
|
-
el.style.filter = "none";
|
|
31
|
-
});
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
gsap.set(elements, { y: -10, opacity: 0, filter: "blur(6px)" });
|
|
35
|
-
setTimeout(() => {
|
|
36
|
-
gsap.to(elements, {
|
|
37
|
-
y: 0,
|
|
38
|
-
opacity: 1,
|
|
39
|
-
filter: "blur(0px)",
|
|
40
|
-
duration: 0.8,
|
|
41
|
-
ease: "expo.out",
|
|
42
|
-
stagger: 0.1,
|
|
43
|
-
overwrite: "auto",
|
|
44
|
-
onComplete: () => {
|
|
45
|
-
elements.forEach((el) => {
|
|
46
|
-
el.style.filter = "none";
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}, 150);
|
|
51
|
-
});
|
|
52
|
-
})();
|
|
53
|
-
//# sourceMappingURL=hero-aniamtion.js.map
|
|
1
|
+
"use strict";(()=>{document.addEventListener("DOMContentLoaded",()=>{let e=Array.from(document.querySelectorAll("[fynd-animate]"));if(e.length===0)return;let o=window.gsap;if(!o){console.warn("GSAP not found on window.");return}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){e.forEach(t=>{t.style.opacity="1",t.style.transform="translateY(0)",t.style.filter="none"});return}o.set(e,{y:-10,opacity:0,filter:"blur(6px)"}),setTimeout(()=>{o.to(e,{y:0,opacity:1,filter:"blur(0px)",duration:.8,ease:"expo.out",stagger:.1,overwrite:"auto",onComplete:()=>{e.forEach(t=>{t.style.filter="none"})}})},150)});})();
|
|
@@ -1,70 +1 @@
|
|
|
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/others/hero-india-animation-2.ts
|
|
13
|
-
var gsap = window.gsap;
|
|
14
|
-
var heroAnimatedText = [
|
|
15
|
-
"Online Selling",
|
|
16
|
-
"Omnichannel POS",
|
|
17
|
-
"Quick Commerce",
|
|
18
|
-
"Order Management",
|
|
19
|
-
"Supply Chain",
|
|
20
|
-
"Enriched Catalog",
|
|
21
|
-
"Photoshoot",
|
|
22
|
-
"Retail Insights"
|
|
23
|
-
];
|
|
24
|
-
function playChroma() {
|
|
25
|
-
const el = document.getElementById("chroma");
|
|
26
|
-
if (!el) return;
|
|
27
|
-
el.setAttribute("data-animate", "false");
|
|
28
|
-
void el.offsetWidth;
|
|
29
|
-
el.setAttribute("data-animate", "true");
|
|
30
|
-
}
|
|
31
|
-
function makeChromaHeading(text) {
|
|
32
|
-
const h1 = document.createElement("h1");
|
|
33
|
-
h1.id = "chroma";
|
|
34
|
-
h1.className = "chroma-text";
|
|
35
|
-
h1.setAttribute("data-animate", "false");
|
|
36
|
-
h1.textContent = text;
|
|
37
|
-
h1.style.opacity = "0";
|
|
38
|
-
return h1;
|
|
39
|
-
}
|
|
40
|
-
function startChromaLoop(texts = heroAnimatedText, { fadeDuration = 0.35, holdDuration = 3 } = {}) {
|
|
41
|
-
const slot = document.querySelector("[chroma-slot]");
|
|
42
|
-
if (!slot || !gsap) return null;
|
|
43
|
-
const slide = (text) => {
|
|
44
|
-
const el = makeChromaHeading(text);
|
|
45
|
-
const t = gsap.timeline({ defaults: { ease: "power1.out" } });
|
|
46
|
-
t.add(() => {
|
|
47
|
-
slot.appendChild(el);
|
|
48
|
-
});
|
|
49
|
-
t.to(el, {
|
|
50
|
-
duration: fadeDuration,
|
|
51
|
-
autoAlpha: 1,
|
|
52
|
-
// opacity + visibility
|
|
53
|
-
onStart: () => playChroma()
|
|
54
|
-
});
|
|
55
|
-
t.to(el, { duration: holdDuration, autoAlpha: 1 });
|
|
56
|
-
t.to(el, { duration: fadeDuration, autoAlpha: 0 });
|
|
57
|
-
t.add(() => {
|
|
58
|
-
el.remove();
|
|
59
|
-
});
|
|
60
|
-
return t;
|
|
61
|
-
};
|
|
62
|
-
const master = gsap.timeline({ repeat: -1 });
|
|
63
|
-
texts.forEach((txt) => master.add(slide(txt)));
|
|
64
|
-
return master;
|
|
65
|
-
}
|
|
66
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
67
|
-
startChromaLoop();
|
|
68
|
-
});
|
|
69
|
-
})();
|
|
70
|
-
//# sourceMappingURL=hero-india-animation-2.js.map
|
|
1
|
+
"use strict";(()=>{var r=window.gsap,m=["Online Selling","Omnichannel POS","Quick Commerce","Order Management","Supply Chain","Enriched Catalog","Photoshoot","Retail Insights"];function u(){let e=document.getElementById("chroma");e&&(e.setAttribute("data-animate","false"),e.offsetWidth,e.setAttribute("data-animate","true"))}function c(e){let t=document.createElement("h1");return t.id="chroma",t.className="chroma-text",t.setAttribute("data-animate","false"),t.textContent=e,t.style.opacity="0",t}function h(e=m,{fadeDuration:t=.35,holdDuration:d=3}={}){let i=document.querySelector("[chroma-slot]");if(!i||!r)return null;let l=a=>{let o=c(a),n=r.timeline({defaults:{ease:"power1.out"}});return n.add(()=>{i.appendChild(o)}),n.to(o,{duration:t,autoAlpha:1,onStart:()=>u()}),n.to(o,{duration:d,autoAlpha:1}),n.to(o,{duration:t,autoAlpha:0}),n.add(()=>{o.remove()}),n},s=r.timeline({repeat:-1});return e.forEach(a=>s.add(l(a))),s}document.addEventListener("DOMContentLoaded",()=>{h()});})();
|
|
@@ -1,93 +1 @@
|
|
|
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/others/hero-india-animation.ts
|
|
13
|
-
function startHeroTextRevealWithSplit(phrases, opts = {}) {
|
|
14
|
-
const {
|
|
15
|
-
selector = 'h1[hero-text-reveal="india"]',
|
|
16
|
-
delayMs = 2500,
|
|
17
|
-
perCharStagger = 0.035,
|
|
18
|
-
revealDuration = 0.6,
|
|
19
|
-
holdDuration = 0.9,
|
|
20
|
-
outDuration = 0.35,
|
|
21
|
-
yDistance = 2
|
|
22
|
-
} = opts;
|
|
23
|
-
const el = document.querySelector(selector);
|
|
24
|
-
if (!el) return;
|
|
25
|
-
const gsap = window.gsap;
|
|
26
|
-
const SplitText = window.SplitText || gsap && gsap.SplitText;
|
|
27
|
-
if (!gsap || !SplitText) return;
|
|
28
|
-
if (gsap.registerPlugin) gsap.registerPlugin(SplitText);
|
|
29
|
-
if (!Array.isArray(phrases) || phrases.length === 0) return;
|
|
30
|
-
const prefersReducedMotion = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
|
|
31
|
-
let index = 0;
|
|
32
|
-
el.textContent = phrases[index];
|
|
33
|
-
const triggerShimmer = () => {
|
|
34
|
-
const shimmerEl = document.getElementById("shimmerText");
|
|
35
|
-
if (!shimmerEl) return;
|
|
36
|
-
shimmerEl.setAttribute("data-shimmer", "false");
|
|
37
|
-
void shimmerEl.offsetWidth;
|
|
38
|
-
shimmerEl.setAttribute("data-shimmer", "true");
|
|
39
|
-
};
|
|
40
|
-
const animatePhrase = (text, onComplete) => {
|
|
41
|
-
el.textContent = text;
|
|
42
|
-
const split = new SplitText(el, { type: "chars" });
|
|
43
|
-
const chars = split.chars || [];
|
|
44
|
-
gsap.set(chars, { opacity: 0, y: yDistance });
|
|
45
|
-
const tl = gsap.timeline({
|
|
46
|
-
defaults: { ease: "power2.out" },
|
|
47
|
-
onComplete: () => {
|
|
48
|
-
split.revert();
|
|
49
|
-
onComplete();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
tl.to(chars, {
|
|
53
|
-
onStart: triggerShimmer,
|
|
54
|
-
opacity: 1,
|
|
55
|
-
y: 0,
|
|
56
|
-
duration: revealDuration,
|
|
57
|
-
stagger: perCharStagger
|
|
58
|
-
}).to({}, { duration: holdDuration }).to(chars, {
|
|
59
|
-
opacity: 0,
|
|
60
|
-
duration: outDuration,
|
|
61
|
-
stagger: perCharStagger * 0.6,
|
|
62
|
-
ease: "power1.in"
|
|
63
|
-
});
|
|
64
|
-
return tl;
|
|
65
|
-
};
|
|
66
|
-
if (prefersReducedMotion) {
|
|
67
|
-
const cycle = () => {
|
|
68
|
-
index = (index + 1) % phrases.length;
|
|
69
|
-
el.textContent = phrases[index];
|
|
70
|
-
setTimeout(cycle, 2e3);
|
|
71
|
-
};
|
|
72
|
-
setTimeout(cycle, delayMs);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const playLoop = () => {
|
|
76
|
-
index = (index + 1) % phrases.length;
|
|
77
|
-
animatePhrase(phrases[index], playLoop);
|
|
78
|
-
};
|
|
79
|
-
setTimeout(playLoop, delayMs);
|
|
80
|
-
}
|
|
81
|
-
var heroAnimatedText = [
|
|
82
|
-
"selling online",
|
|
83
|
-
"self-checkout in store",
|
|
84
|
-
"product photoshoot",
|
|
85
|
-
"multi-channel catalog",
|
|
86
|
-
"hyperlocal delivery",
|
|
87
|
-
"agentic support"
|
|
88
|
-
];
|
|
89
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
90
|
-
startHeroTextRevealWithSplit(heroAnimatedText);
|
|
91
|
-
});
|
|
92
|
-
})();
|
|
93
|
-
//# sourceMappingURL=hero-india-animation.js.map
|
|
1
|
+
"use strict";(()=>{function D(e,m={}){let{selector:g='h1[hero-text-reveal="india"]',delayMs:s=2500,perCharStagger:l=.035,revealDuration:p=.6,holdDuration:h=.9,outDuration:y=.35,yDistance:f=2}=m,r=document.querySelector(g);if(!r)return;let n=window.gsap,i=window.SplitText||n&&n.SplitText;if(!n||!i||(n.registerPlugin&&n.registerPlugin(i),!Array.isArray(e)||e.length===0))return;let x=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1,o=0;r.textContent=e[o];let v=()=>{let t=document.getElementById("shimmerText");t&&(t.setAttribute("data-shimmer","false"),t.offsetWidth,t.setAttribute("data-shimmer","true"))},T=(t,w)=>{r.textContent=t;let c=new i(r,{type:"chars"}),a=c.chars||[];n.set(a,{opacity:0,y:f});let d=n.timeline({defaults:{ease:"power2.out"},onComplete:()=>{c.revert(),w()}});return d.to(a,{onStart:v,opacity:1,y:0,duration:p,stagger:l}).to({},{duration:h}).to(a,{opacity:0,duration:y,stagger:l*.6,ease:"power1.in"}),d};if(x){let t=()=>{o=(o+1)%e.length,r.textContent=e[o],setTimeout(t,2e3)};setTimeout(t,s);return}let u=()=>{o=(o+1)%e.length,T(e[o],u)};setTimeout(u,s)}var S=["selling online","self-checkout in store","product photoshoot","multi-channel catalog","hyperlocal delivery","agentic support"];document.addEventListener("DOMContentLoaded",()=>{D(S)});})();
|