@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
package/dist/filters/konnect.js
CHANGED
|
@@ -1,165 +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/filters/konnect.ts
|
|
13
|
-
function getQueryParam(name) {
|
|
14
|
-
const val = new URLSearchParams(window.location.search).get(name);
|
|
15
|
-
return val ? val.trim() : null;
|
|
16
|
-
}
|
|
17
|
-
function getTagEqualFromURL() {
|
|
18
|
-
return getQueryParam("tag_equal");
|
|
19
|
-
}
|
|
20
|
-
window.getTagEqualFromURL = getTagEqualFromURL;
|
|
21
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
22
|
-
console.log("%csrc/filters/konnect.ts:2 working", "color: #007acc;");
|
|
23
|
-
const elements = document.querySelectorAll(
|
|
24
|
-
"[konnect-filter-element]"
|
|
25
|
-
);
|
|
26
|
-
if (elements.length === 0) return;
|
|
27
|
-
setTimeout(updateMobileSelectOnLoad, 200);
|
|
28
|
-
let lastTagEqual = getTagEqualFromURL();
|
|
29
|
-
setInterval(() => {
|
|
30
|
-
const current = getTagEqualFromURL();
|
|
31
|
-
if (current !== lastTagEqual) {
|
|
32
|
-
console.log("tag_equal changed:", current);
|
|
33
|
-
lastTagEqual = current;
|
|
34
|
-
updateMobileSelect();
|
|
35
|
-
}
|
|
36
|
-
}, 100);
|
|
37
|
-
const select = document.getElementById(
|
|
38
|
-
"konnect-filter"
|
|
39
|
-
);
|
|
40
|
-
if (select) {
|
|
41
|
-
select.addEventListener("change", () => {
|
|
42
|
-
console.log("Select changed \u2192 URL tag_equal is:", getTagEqualFromURL());
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
elements.forEach((el) => {
|
|
46
|
-
el.addEventListener("click", () => {
|
|
47
|
-
console.log("konnect-filter-element clicked:", el);
|
|
48
|
-
const type = el.getAttribute("konnect-filter-element");
|
|
49
|
-
if (type === "primary") {
|
|
50
|
-
setTimeout(updateMobileSelect, 100);
|
|
51
|
-
const items = document.querySelectorAll(
|
|
52
|
-
'[konnect-filter-element="secondary"]'
|
|
53
|
-
);
|
|
54
|
-
items.forEach((el2, index) => {
|
|
55
|
-
if (index == 0) {
|
|
56
|
-
el2.click();
|
|
57
|
-
el2.setAttribute("konnect-filter-active", "true");
|
|
58
|
-
} else {
|
|
59
|
-
el2.setAttribute("konnect-filter-active", "false");
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
setTimeout(updateSecondaryFilterTabs, 100);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
function updateSecondaryFilterTabs() {
|
|
69
|
-
const raw = new URLSearchParams(window.location.search).get("nest-tag_equal");
|
|
70
|
-
const items = document.querySelectorAll(
|
|
71
|
-
'[konnect-filter-element="secondary"]'
|
|
72
|
-
);
|
|
73
|
-
if (!raw) {
|
|
74
|
-
items.forEach((el, index) => {
|
|
75
|
-
el.setAttribute("konnect-filter-active", index == 0 ? "true" : "false");
|
|
76
|
-
});
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const target = raw.trim().toLowerCase();
|
|
80
|
-
if (items.length === 0) return;
|
|
81
|
-
items.forEach((el) => {
|
|
82
|
-
const input = el.querySelector("[fs-list-value]");
|
|
83
|
-
if (!input) return;
|
|
84
|
-
const valFromAttr = input.getAttribute("fs-list-value")?.trim().toLowerCase();
|
|
85
|
-
if (valFromAttr === target) {
|
|
86
|
-
el.setAttribute("konnect-filter-active", "true");
|
|
87
|
-
items[0].setAttribute("konnect-filter-active", "false");
|
|
88
|
-
} else {
|
|
89
|
-
el.setAttribute("konnect-filter-active", "false");
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function updateMobileSelect() {
|
|
94
|
-
const raw = getTagEqualFromURL();
|
|
95
|
-
const select = document.getElementById(
|
|
96
|
-
"konnect-filter"
|
|
97
|
-
);
|
|
98
|
-
if (!select) {
|
|
99
|
-
console.warn("Select element with id 'konnect-filter' not found.");
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
if (raw) {
|
|
103
|
-
const matchedOption = Array.from(select.options).find(
|
|
104
|
-
(option) => option.value === raw
|
|
105
|
-
);
|
|
106
|
-
if (matchedOption) {
|
|
107
|
-
select.value = raw;
|
|
108
|
-
console.log(`Selected option: ${raw}`);
|
|
109
|
-
toggleSecondaryFilter(raw);
|
|
110
|
-
} else {
|
|
111
|
-
console.warn(`No matching option found for value: ${raw}`);
|
|
112
|
-
}
|
|
113
|
-
} else {
|
|
114
|
-
console.log("No 'tag_equal' parameter in URL.");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
function updateMobileSelectOnLoad() {
|
|
118
|
-
const raw = getTagEqualFromURL();
|
|
119
|
-
const select = document.getElementById(
|
|
120
|
-
"konnect-filter"
|
|
121
|
-
);
|
|
122
|
-
if (!select) {
|
|
123
|
-
console.warn("Select element with id 'konnect-filter' not found.");
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (raw) {
|
|
127
|
-
const matchedOption = Array.from(select.options).find(
|
|
128
|
-
(option) => option.value === raw
|
|
129
|
-
);
|
|
130
|
-
if (matchedOption) {
|
|
131
|
-
select.value = raw;
|
|
132
|
-
console.log(`Selected from URL param: ${raw}`);
|
|
133
|
-
} else {
|
|
134
|
-
console.warn(
|
|
135
|
-
`No matching option found for value: ${raw}. Defaulting to Marketplaces.`
|
|
136
|
-
);
|
|
137
|
-
select.value = "Marketplaces";
|
|
138
|
-
}
|
|
139
|
-
} else {
|
|
140
|
-
select.value = "Marketplaces";
|
|
141
|
-
console.log("No tag_equal param found. Defaulted to Marketplaces.");
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
var RULES = [
|
|
145
|
-
{ primary: "Marketplaces", show: ["*"] },
|
|
146
|
-
{ primary: "Storefront", show: ["*"] },
|
|
147
|
-
{ primary: "OMS/WMS", show: ["All"] },
|
|
148
|
-
{ primary: "ERP/POS", show: ["All"] }
|
|
149
|
-
];
|
|
150
|
-
function toggleSecondaryFilter(raw) {
|
|
151
|
-
const primary = (raw ?? "").trim().toLowerCase();
|
|
152
|
-
const rule = RULES.find((r) => r.primary.toLowerCase() === primary);
|
|
153
|
-
const allowed = rule ? rule.show : [];
|
|
154
|
-
const showAll = allowed.includes("*");
|
|
155
|
-
const allowSet = new Set(allowed.map((v) => v.toLowerCase()));
|
|
156
|
-
const hiddenFilters = document.querySelectorAll("[hidden-filter]");
|
|
157
|
-
if (!hiddenFilters) return;
|
|
158
|
-
hiddenFilters.forEach((el) => {
|
|
159
|
-
const tag = (el.getAttribute("hidden-filter") ?? "").trim().toLowerCase();
|
|
160
|
-
const visible = showAll || allowSet.has(tag);
|
|
161
|
-
el.style.display = visible ? "flex" : "none";
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
})();
|
|
165
|
-
//# sourceMappingURL=konnect.js.map
|
|
1
|
+
"use strict";(()=>{function m(e){let t=new URLSearchParams(window.location.search).get(e);return t?t.trim():null}function c(){return m("tag_equal")}window.getTagEqualFromURL=c;document.addEventListener("DOMContentLoaded",()=>{console.log("%csrc/filters/konnect.ts:2 working","color: #007acc;");let e=document.querySelectorAll("[konnect-filter-element]");if(e.length===0)return;setTimeout(g,200);let t=c();setInterval(()=>{let n=c();n!==t&&(console.log("tag_equal changed:",n),t=n,s())},100);let o=document.getElementById("konnect-filter");o&&o.addEventListener("change",()=>{console.log("Select changed \u2192 URL tag_equal is:",c())}),e.forEach(n=>{n.addEventListener("click",()=>{console.log("konnect-filter-element clicked:",n),n.getAttribute("konnect-filter-element")==="primary"?(setTimeout(s,100),document.querySelectorAll('[konnect-filter-element="secondary"]').forEach((a,l)=>{l==0?(a.click(),a.setAttribute("konnect-filter-active","true")):a.setAttribute("konnect-filter-active","false")})):setTimeout(d,100)})})});function d(){let e=new URLSearchParams(window.location.search).get("nest-tag_equal"),t=document.querySelectorAll('[konnect-filter-element="secondary"]');if(!e){t.forEach((n,r)=>{n.setAttribute("konnect-filter-active",r==0?"true":"false")});return}let o=e.trim().toLowerCase();t.length!==0&&t.forEach(n=>{let r=n.querySelector("[fs-list-value]");if(!r)return;r.getAttribute("fs-list-value")?.trim().toLowerCase()===o?(n.setAttribute("konnect-filter-active","true"),t[0].setAttribute("konnect-filter-active","false")):n.setAttribute("konnect-filter-active","false")})}function s(){let e=c(),t=document.getElementById("konnect-filter");if(!t){console.warn("Select element with id 'konnect-filter' not found.");return}e?Array.from(t.options).find(n=>n.value===e)?(t.value=e,console.log(`Selected option: ${e}`),w(e)):console.warn(`No matching option found for value: ${e}`):console.log("No 'tag_equal' parameter in URL.")}function g(){let e=c(),t=document.getElementById("konnect-filter");if(!t){console.warn("Select element with id 'konnect-filter' not found.");return}e?Array.from(t.options).find(n=>n.value===e)?(t.value=e,console.log(`Selected from URL param: ${e}`)):(console.warn(`No matching option found for value: ${e}. Defaulting to Marketplaces.`),t.value="Marketplaces"):(t.value="Marketplaces",console.log("No tag_equal param found. Defaulted to Marketplaces."))}var p=[{primary:"Marketplaces",show:["*"]},{primary:"Storefront",show:["*"]},{primary:"OMS/WMS",show:["All"]},{primary:"ERP/POS",show:["All"]}];function w(e){let t=(e??"").trim().toLowerCase(),o=p.find(l=>l.primary.toLowerCase()===t),n=o?o.show:[],r=n.includes("*"),i=new Set(n.map(l=>l.toLowerCase())),a=document.querySelectorAll("[hidden-filter]");a&&a.forEach(l=>{let u=(l.getAttribute("hidden-filter")??"").trim().toLowerCase(),f=r||i.has(u);l.style.display=f?"flex":"none"})}})();
|
|
@@ -1,66 +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/filters/show-count.ts
|
|
13
|
-
function logUrlParams() {
|
|
14
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
15
|
-
const geography = urlParams.get("geography")?.split(",").filter(Boolean) || [];
|
|
16
|
-
const tags = urlParams.get("tag")?.split(",").filter(Boolean) || [];
|
|
17
|
-
const products = urlParams.get("product")?.split(",").filter(Boolean) || [];
|
|
18
|
-
const solutions = urlParams.get("solution")?.split(",").filter(Boolean) || [];
|
|
19
|
-
const category = urlParams.get("category")?.split(",").filter(Boolean) || [];
|
|
20
|
-
const verified = urlParams.get("verified") === "true";
|
|
21
|
-
let totalCount = geography.length + tags.length + products.length + solutions.length + category.length + (verified ? 1 : 0);
|
|
22
|
-
const filters = {
|
|
23
|
-
geography,
|
|
24
|
-
tags,
|
|
25
|
-
products,
|
|
26
|
-
solutions,
|
|
27
|
-
verified,
|
|
28
|
-
category
|
|
29
|
-
};
|
|
30
|
-
console.log(JSON.stringify(filters, null, 2));
|
|
31
|
-
return totalCount;
|
|
32
|
-
}
|
|
33
|
-
function updateCountText(totalCount) {
|
|
34
|
-
const totalCountText = document.querySelector("[fynd-filters-count]");
|
|
35
|
-
const clearAllButton = document.querySelector("[fynd-clear-all]");
|
|
36
|
-
if (!totalCountText) return;
|
|
37
|
-
if (totalCount > 0) {
|
|
38
|
-
totalCountText.innerHTML = totalCount.toString();
|
|
39
|
-
totalCountText.style.display = "flex";
|
|
40
|
-
if (clearAllButton) {
|
|
41
|
-
clearAllButton.style.display = "block";
|
|
42
|
-
}
|
|
43
|
-
} else {
|
|
44
|
-
totalCountText.innerHTML = "0";
|
|
45
|
-
totalCountText.style.display = "none";
|
|
46
|
-
if (clearAllButton) {
|
|
47
|
-
clearAllButton.style.display = "none";
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
let totalCount = logUrlParams();
|
|
54
|
-
updateCountText(totalCount);
|
|
55
|
-
}, 200);
|
|
56
|
-
document.querySelectorAll("[fynd-filter-box]").forEach((div) => {
|
|
57
|
-
div.addEventListener("click", () => {
|
|
58
|
-
setTimeout(() => {
|
|
59
|
-
let totalCount = logUrlParams();
|
|
60
|
-
updateCountText(totalCount);
|
|
61
|
-
}, 200);
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
})();
|
|
66
|
-
//# sourceMappingURL=show-count.js.map
|
|
1
|
+
"use strict";(()=>{function s(){let t=new URLSearchParams(window.location.search),e=t.get("geography")?.split(",").filter(Boolean)||[],o=t.get("tag")?.split(",").filter(Boolean)||[],n=t.get("product")?.split(",").filter(Boolean)||[],l=t.get("solution")?.split(",").filter(Boolean)||[],i=t.get("category")?.split(",").filter(Boolean)||[],r=t.get("verified")==="true",c=e.length+o.length+n.length+l.length+i.length+(r?1:0);return console.log(JSON.stringify({geography:e,tags:o,products:n,solutions:l,verified:r,category:i},null,2)),c}function a(t){let e=document.querySelector("[fynd-filters-count]"),o=document.querySelector("[fynd-clear-all]");e&&(t>0?(e.innerHTML=t.toString(),e.style.display="flex",o&&(o.style.display="block")):(e.innerHTML="0",e.style.display="none",o&&(o.style.display="none")))}document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{let t=s();a(t)},200),document.querySelectorAll("[fynd-filter-box]").forEach(t=>{t.addEventListener("click",()=>{setTimeout(()=>{let e=s();a(e)},200)})})});})();
|
|
@@ -1,160 +1 @@
|
|
|
1
|
-
|
|
2
|
-
.iti {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
.iti__country-container {
|
|
8
|
-
position: absolute;
|
|
9
|
-
z-index: 2;
|
|
10
|
-
height: 38px;
|
|
11
|
-
top: 1px;
|
|
12
|
-
left: 1px;
|
|
13
|
-
}
|
|
14
|
-
.iti input,
|
|
15
|
-
.iti input[type=tel],
|
|
16
|
-
.iti input[type=text] {
|
|
17
|
-
z-index: 1;
|
|
18
|
-
}
|
|
19
|
-
button.iti__selected-country {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
gap: 8px;
|
|
23
|
-
height: 100%;
|
|
24
|
-
padding-left: 10px;
|
|
25
|
-
padding-right: 20px;
|
|
26
|
-
border-radius: 7px;
|
|
27
|
-
}
|
|
28
|
-
.iti__arrow {
|
|
29
|
-
margin-left: 6px;
|
|
30
|
-
width: 0;
|
|
31
|
-
height: 0;
|
|
32
|
-
border-left: 3px solid transparent;
|
|
33
|
-
border-right: 3px solid transparent;
|
|
34
|
-
border-top: 4px solid #555;
|
|
35
|
-
position: absolute;
|
|
36
|
-
right: 6px;
|
|
37
|
-
top: 19px;
|
|
38
|
-
}
|
|
39
|
-
.iti__dropdown-content {
|
|
40
|
-
background: white;
|
|
41
|
-
top: 6px;
|
|
42
|
-
position: relative;
|
|
43
|
-
border: 1px solid #E3E3E3;
|
|
44
|
-
border-radius: 10px;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
}
|
|
47
|
-
span.iti__search-icon {
|
|
48
|
-
display: none;
|
|
49
|
-
}
|
|
50
|
-
span.iti__a11y-text {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
input.iti__search-input {
|
|
54
|
-
border: 1px solid var(--_color-palette---button--secondary--button-border-default);
|
|
55
|
-
background-color: var(--background--background-light);
|
|
56
|
-
color: var(--_primitives---neutral--neutral-100);
|
|
57
|
-
border-radius: .5rem;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 2rem;
|
|
60
|
-
margin-bottom: 0;
|
|
61
|
-
padding: .5rem .75rem;
|
|
62
|
-
font-weight: 400;
|
|
63
|
-
transition: all .3s;
|
|
64
|
-
position: relative;
|
|
65
|
-
z-index: 1;
|
|
66
|
-
font-size: 0.85rem;
|
|
67
|
-
}
|
|
68
|
-
.iti__search-input-wrapper {
|
|
69
|
-
position: relative;
|
|
70
|
-
z-index: 2;
|
|
71
|
-
padding: 12px;
|
|
72
|
-
border-bottom: 1px solid #E3E3E3;
|
|
73
|
-
}
|
|
74
|
-
button.iti__search-clear {
|
|
75
|
-
position: absolute;
|
|
76
|
-
right: 16px;
|
|
77
|
-
top: 16px;
|
|
78
|
-
opacity: 0.4;
|
|
79
|
-
z-index: 3;
|
|
80
|
-
background: #ffffff00;
|
|
81
|
-
}
|
|
82
|
-
input#phone-number {
|
|
83
|
-
padding-left: 102px !important;
|
|
84
|
-
}
|
|
85
|
-
.iti__arrow.iti__arrow--up {
|
|
86
|
-
display: none;
|
|
87
|
-
}
|
|
88
|
-
.iti__country-list {
|
|
89
|
-
width: 100%;
|
|
90
|
-
position: static;
|
|
91
|
-
z-index: 2;
|
|
92
|
-
list-style: none;
|
|
93
|
-
text-align: left;
|
|
94
|
-
padding: 0;
|
|
95
|
-
margin: 0px;
|
|
96
|
-
box-shadow: none;
|
|
97
|
-
background-color: #fff;
|
|
98
|
-
border: 0px solid #ccc;
|
|
99
|
-
white-space: nowrap;
|
|
100
|
-
max-height: 200px;
|
|
101
|
-
overflow-y: scroll;
|
|
102
|
-
-webkit-overflow-scrolling: touch;
|
|
103
|
-
}
|
|
104
|
-
.iti__no-results {
|
|
105
|
-
padding-top: 40px;
|
|
106
|
-
padding-bottom: 40px;
|
|
107
|
-
padding-right: 16px;
|
|
108
|
-
padding-left: 16px;
|
|
109
|
-
text-align: center;
|
|
110
|
-
background: #0000000a;
|
|
111
|
-
}
|
|
112
|
-
.iti__country {
|
|
113
|
-
padding: 5px 14px;
|
|
114
|
-
outline: 0;
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
gap: 10px;
|
|
118
|
-
}
|
|
119
|
-
.iti__country-name,
|
|
120
|
-
.iti__flag-box {
|
|
121
|
-
margin-right: 0px;
|
|
122
|
-
}
|
|
123
|
-
@media (max-width:500px) {
|
|
124
|
-
.iti--fullscreen-popup {
|
|
125
|
-
padding: 0px !important;
|
|
126
|
-
z-index: 1000000000;
|
|
127
|
-
position: fixed;
|
|
128
|
-
top: 0px;
|
|
129
|
-
left: 0px;
|
|
130
|
-
}
|
|
131
|
-
.iti__country-list {
|
|
132
|
-
position: static;
|
|
133
|
-
}
|
|
134
|
-
.iti--fullscreen-popup .iti__dropdown-content {
|
|
135
|
-
height: 100vh;
|
|
136
|
-
width: 100vw;
|
|
137
|
-
}
|
|
138
|
-
.iti--flexible-dropdown-width .iti__country-list {
|
|
139
|
-
height: calc(100vh - 60px);
|
|
140
|
-
max-height: none;
|
|
141
|
-
}
|
|
142
|
-
.iti input,
|
|
143
|
-
.iti input[type=tel],
|
|
144
|
-
.iti input[type=text] {
|
|
145
|
-
height: 40px;
|
|
146
|
-
}
|
|
147
|
-
.iti__dropdown-content {
|
|
148
|
-
background: white;
|
|
149
|
-
top: 0px;
|
|
150
|
-
border: 0px solid #E3E3E3;
|
|
151
|
-
border-radius: 0px;
|
|
152
|
-
overflow: hidden;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
@media (max-width: 768px) {
|
|
156
|
-
.iti .iti--container .iti--fullscreen-popup {
|
|
157
|
-
width: 100vw !important;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
/*# sourceMappingURL=country-dropdown.css.map */
|
|
1
|
+
.iti{position:relative;display:flex;width:100%}.iti__country-container{position:absolute;z-index:2;height:38px;top:1px;left:1px}.iti input,.iti input[type=tel],.iti input[type=text]{z-index:1}button.iti__selected-country{display:flex;align-items:center;gap:8px;height:100%;padding-left:10px;padding-right:20px;border-radius:7px}.iti__arrow{margin-left:6px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #555;position:absolute;right:6px;top:19px}.iti__dropdown-content{background:#fff;top:6px;position:relative;border:1px solid #E3E3E3;border-radius:10px;overflow:hidden}span.iti__search-icon,span.iti__a11y-text{display:none}input.iti__search-input{border:1px solid var(--_color-palette---button--secondary--button-border-default);background-color:var(--background--background-light);color:var(--_primitives---neutral--neutral-100);border-radius:.5rem;width:100%;height:2rem;margin-bottom:0;padding:.5rem .75rem;font-weight:400;transition:all .3s;position:relative;z-index:1;font-size:.85rem}.iti__search-input-wrapper{position:relative;z-index:2;padding:12px;border-bottom:1px solid #E3E3E3}button.iti__search-clear{position:absolute;right:16px;top:16px;opacity:.4;z-index:3;background:#fff0}input#phone-number{padding-left:102px!important}.iti__arrow.iti__arrow--up{display:none}.iti__country-list{width:100%;position:static;z-index:2;list-style:none;text-align:left;padding:0;margin:0;box-shadow:none;background-color:#fff;border:0px solid #ccc;white-space:nowrap;max-height:200px;overflow-y:scroll;-webkit-overflow-scrolling:touch}.iti__no-results{padding:40px 16px;text-align:center;background:#0000000a}.iti__country{padding:5px 14px;outline:0;display:flex;align-items:center;gap:10px}.iti__country-name,.iti__flag-box{margin-right:0}@media (max-width:500px){.iti--fullscreen-popup{padding:0!important;z-index:1000000000;position:fixed;top:0;left:0}.iti__country-list{position:static}.iti--fullscreen-popup .iti__dropdown-content{height:100vh;width:100vw}.iti--flexible-dropdown-width .iti__country-list{height:calc(100vh - 60px);max-height:none}.iti input,.iti input[type=tel],.iti input[type=text]{height:40px}.iti__dropdown-content{background:#fff;top:0;border:0px solid #E3E3E3;border-radius:0;overflow:hidden}}@media (max-width: 768px){.iti .iti--container .iti--fullscreen-popup{width:100vw!important}}
|
|
@@ -1,40 +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/form/cs-gated-redirection.ts
|
|
13
|
-
document.addEventListener("DOMContentLoaded", function() {
|
|
14
|
-
const currentSlug = window.location.pathname;
|
|
15
|
-
const form = document.querySelector('[fynd-webflow-form="cs-gated-redirection"]');
|
|
16
|
-
const redirectionCheckboxes = form?.querySelectorAll("input[type=radio]");
|
|
17
|
-
redirectionCheckboxes?.forEach((checkbox) => {
|
|
18
|
-
const redirectionSlug = "/" + checkbox.getAttribute("data-redirection-slug");
|
|
19
|
-
if (redirectionSlug === currentSlug) {
|
|
20
|
-
checkbox.checked = true;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
if (form) {
|
|
24
|
-
form.addEventListener("submit", function(e) {
|
|
25
|
-
setTimeout(function() {
|
|
26
|
-
const selectedRadio = form.querySelector("input[type=radio]:checked");
|
|
27
|
-
const selectedRedirectionSlug = "/" + selectedRadio?.getAttribute("data-redirection-slug");
|
|
28
|
-
const fallbackButtonLink = document.querySelector("[data-redirection-fallback-link]");
|
|
29
|
-
if (fallbackButtonLink) {
|
|
30
|
-
fallbackButtonLink.setAttribute("href", selectedRedirectionSlug);
|
|
31
|
-
}
|
|
32
|
-
if (selectedRedirectionSlug) {
|
|
33
|
-
window.location.href = selectedRedirectionSlug;
|
|
34
|
-
}
|
|
35
|
-
}, 500);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
})();
|
|
40
|
-
//# sourceMappingURL=cs-gated-redirection.js.map
|
|
1
|
+
"use strict";(()=>{document.addEventListener("DOMContentLoaded",function(){let i=window.location.pathname,e=document.querySelector('[fynd-webflow-form="cs-gated-redirection"]');e?.querySelectorAll("input[type=radio]")?.forEach(t=>{"/"+t.getAttribute("data-redirection-slug")===i&&(t.checked=!0)}),e&&e.addEventListener("submit",function(t){setTimeout(function(){let n="/"+e.querySelector("input[type=radio]:checked")?.getAttribute("data-redirection-slug"),o=document.querySelector("[data-redirection-fallback-link]");o&&o.setAttribute("href",n),n&&(window.location.href=n)},500)})});})();
|
|
@@ -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/form/download-file.ts
|
|
13
|
-
function checkDownloadURL(url) {
|
|
14
|
-
const driveFileRegex = /https:\/\/drive\.google\.com\/file\/d\/([a-zA-Z0-9_-]+)\//;
|
|
15
|
-
const directDownloadRegex = /https:\/\/drive\.google\.com\/uc\?export=download&id=([a-zA-Z0-9_-]+)/;
|
|
16
|
-
if (directDownloadRegex.test(url)) {
|
|
17
|
-
return url;
|
|
18
|
-
}
|
|
19
|
-
const match = url.match(driveFileRegex);
|
|
20
|
-
if (match && match[1]) {
|
|
21
|
-
const fileId = match[1];
|
|
22
|
-
return `https://drive.google.com/uc?export=download&id=${fileId}`;
|
|
23
|
-
}
|
|
24
|
-
return url;
|
|
25
|
-
}
|
|
26
|
-
function updateDownloadLinks(url) {
|
|
27
|
-
const container = document.getElementById("asset-success-richtext");
|
|
28
|
-
if (!container) return;
|
|
29
|
-
const links = container.getElementsByTagName("a");
|
|
30
|
-
for (const link of links) {
|
|
31
|
-
if (link.textContent && link.textContent.toLowerCase().includes("download")) {
|
|
32
|
-
link.href = url;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function isSuccessVisible(successEl) {
|
|
37
|
-
if (!successEl) return false;
|
|
38
|
-
const computedStyle = window.getComputedStyle(successEl);
|
|
39
|
-
const display = computedStyle.display;
|
|
40
|
-
const visibility = computedStyle.visibility;
|
|
41
|
-
const opacity = computedStyle.opacity;
|
|
42
|
-
const isHidden = display === "none" || visibility === "hidden" || opacity === "0" || successEl.classList.contains("hidden") || successEl.classList.contains("d-none");
|
|
43
|
-
return !isHidden;
|
|
44
|
-
}
|
|
45
|
-
document.addEventListener("DOMContentLoaded", function() {
|
|
46
|
-
const submitButton = document.getElementById("asset-form-submit");
|
|
47
|
-
if (!submitButton) {
|
|
48
|
-
console.error("Submit button not found");
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
submitButton.addEventListener("click", function() {
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
const successEl = document.getElementById("asset-form-success");
|
|
54
|
-
if (isSuccessVisible(successEl)) {
|
|
55
|
-
const downloadLink = document.getElementById("asset-download");
|
|
56
|
-
const checkedDownloadURL = checkDownloadURL(downloadLink?.href || "");
|
|
57
|
-
downloadLink?.setAttribute("href", checkedDownloadURL);
|
|
58
|
-
updateDownloadLinks(checkedDownloadURL);
|
|
59
|
-
if (downloadLink) {
|
|
60
|
-
downloadLink.click();
|
|
61
|
-
}
|
|
62
|
-
console.log("Download link updated:", checkedDownloadURL);
|
|
63
|
-
} else {
|
|
64
|
-
console.warn("Please fill the form correctly before downloading the asset.");
|
|
65
|
-
}
|
|
66
|
-
}, 1500);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
})();
|
|
70
|
-
//# sourceMappingURL=download-file.js.map
|
|
1
|
+
"use strict";(()=>{function s(e){let n=/https:\/\/drive\.google\.com\/file\/d\/([a-zA-Z0-9_-]+)\//;if(/https:\/\/drive\.google\.com\/uc\?export=download&id=([a-zA-Z0-9_-]+)/.test(e))return e;let t=e.match(n);return t&&t[1]?`https://drive.google.com/uc?export=download&id=${t[1]}`:e}function d(e){let n=document.getElementById("asset-success-richtext");if(!n)return;let o=n.getElementsByTagName("a");for(let t of o)t.textContent&&t.textContent.toLowerCase().includes("download")&&(t.href=e)}function c(e){if(!e)return!1;let n=window.getComputedStyle(e),o=n.display,t=n.visibility,i=n.opacity;return!(o==="none"||t==="hidden"||i==="0"||e.classList.contains("hidden")||e.classList.contains("d-none"))}document.addEventListener("DOMContentLoaded",function(){let e=document.getElementById("asset-form-submit");if(!e){console.error("Submit button not found");return}e.addEventListener("click",function(){setTimeout(()=>{let n=document.getElementById("asset-form-success");if(c(n)){let o=document.getElementById("asset-download"),t=s(o?.href||"");o?.setAttribute("href",t),d(t),o&&o.click(),console.log("Download link updated:",t)}else console.warn("Please fill the form correctly before downloading the asset.")},1500)})});})();
|