@fynd-design-engineering/fynd-one-v2 3.4.63 → 3.4.64

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.
Files changed (79) hide show
  1. package/dist/accordians/dropdown.js +1 -95
  2. package/dist/accordians/index.js +1 -391
  3. package/dist/cms-listing/index.js +1 -24
  4. package/dist/filters/clear-search.js +1 -32
  5. package/dist/filters/konnect.js +1 -165
  6. package/dist/filters/show-count.js +1 -66
  7. package/dist/form/country-dropdown.css +1 -160
  8. package/dist/form/cs-gated-redirection.js +1 -40
  9. package/dist/form/download-file.js +1 -70
  10. package/dist/form/validation.css +1 -1019
  11. package/dist/form/validation.js +7 -10611
  12. package/dist/global/anchor-scroll.js +1 -174
  13. package/dist/global/auth.js +1 -87
  14. package/dist/global/chat.js +1 -185
  15. package/dist/global/console-links.js +1 -89
  16. package/dist/global/contact-popup.js +2 -83
  17. package/dist/global/css/in-page-embed.css +1 -1043
  18. package/dist/global/css/in-project-settings.css +1 -173
  19. package/dist/global/css/temp.css +1 -89
  20. package/dist/global/custom-bg-video.js +1 -40
  21. package/dist/global/footer-accordion.js +1 -44
  22. package/dist/global/lazy-loader.js +1 -135
  23. package/dist/global/loader.js +2 -166
  24. package/dist/global/media-card.js +1 -166
  25. package/dist/global/miscellaneous.js +1 -136
  26. package/dist/global/number-count.js +1 -82
  27. package/dist/global/popup-video.js +1 -276
  28. package/dist/global/progressive-scroll.js +1 -222
  29. package/dist/global/responsive-video.js +1 -321
  30. package/dist/global/style.css +1 -1065
  31. package/dist/global/video-card.js +1 -50
  32. package/dist/hacktimus/2025.js +1 -177
  33. package/dist/hacktimus/styles.css +1 -91
  34. package/dist/home/index.js +1 -17
  35. package/dist/marquee/index.js +1 -3104
  36. package/dist/marquee/marquee-swiper.js +1 -36
  37. package/dist/navigation/announcement/index.js +1 -5169
  38. package/dist/navigation/context-menu/index.js +1 -31
  39. package/dist/navigation/desktop/index.js +1 -4603
  40. package/dist/navigation/initialization.js +1 -602
  41. package/dist/navigation/main.js +1 -4911
  42. package/dist/navigation/mobile/index.js +1 -286
  43. package/dist/navigation/scroll/index.js +1 -62
  44. package/dist/navigation/secondary-navigation/index.js +1 -437
  45. package/dist/navigation/style.css +1 -154
  46. package/dist/navigation/temp.css +0 -2
  47. package/dist/navigation/theme.css +1 -69
  48. package/dist/navigation-v2/index.js +1 -4990
  49. package/dist/navigation-v2/styles.css +1 -233
  50. package/dist/others/feature-detail.js +1 -75
  51. package/dist/others/geolocation.js +1 -50
  52. package/dist/others/hero-aniamtion.js +1 -53
  53. package/dist/others/hero-india-animation-2.js +1 -70
  54. package/dist/others/hero-india-animation.js +1 -93
  55. package/dist/others/home-solution-tab.js +1 -115
  56. package/dist/others/storefront-chat/index.js +1 -487
  57. package/dist/others/storefront-chat/styles.css +1 -107
  58. package/dist/playbook-2026/hero-reveal.js +1 -47
  59. package/dist/playbook-2026/index.js +1 -536
  60. package/dist/playbook-2026/styles.css +1 -110
  61. package/dist/posthog-and-ga/attributes.js +1 -190
  62. package/dist/posthog-and-ga/main.js +1 -528
  63. package/dist/progressive-scroll/index.js +1 -147
  64. package/dist/quick-fix/reload.js +1 -22
  65. package/dist/seo/schema.js +1 -465
  66. package/dist/slider/freescroll.js +1 -34
  67. package/dist/test/sample.js +1 -15
  68. package/dist/testimonials/index.js +1 -2654
  69. package/dist/timeline/index.js +1 -160
  70. package/dist/timeline/style.css +1 -42
  71. package/dist/tracking/custom-id.js +1 -75
  72. package/dist/tracking/fill-form-fields.js +1 -238
  73. package/dist/tracking/form-tracker.js +1 -146
  74. package/dist/tracking/page-categories.js +1 -20
  75. package/dist/tracking/user-journey.js +1 -839
  76. package/dist/tracking/utm-links.js +1 -194
  77. package/dist/utils/sample.js +1 -17
  78. package/dist/validations/localhost.js +1 -221
  79. package/package.json +1 -1
@@ -1,190 +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/posthog-and-ga/attributes.ts
13
- var DEFAULT_TAGGING_CONFIG = [
14
- {
15
- attribute: "data-ph",
16
- attributeValue: "book-a-demo",
17
- condition: "href",
18
- conditionValue: "/contact-us"
19
- },
20
- {
21
- attribute: "data-ph",
22
- attributeValue: "sign-in",
23
- condition: "href",
24
- conditionValue: "https://console.fynd.com/auth/sign-in"
25
- },
26
- {
27
- attribute: "data-ph",
28
- attributeValue: "sign-up",
29
- condition: "href",
30
- conditionValue: "https://console.fynd.com/auth/sign-up"
31
- }
32
- ];
33
- function matchesCondition(anchor, condition, conditionValue) {
34
- switch (condition.toLowerCase()) {
35
- case "href":
36
- return matchesHref(anchor, conditionValue);
37
- case "text":
38
- return matchesText(anchor, conditionValue);
39
- case "class":
40
- return anchor.classList.contains(conditionValue);
41
- case "id":
42
- return anchor.id === conditionValue;
43
- default:
44
- return false;
45
- }
46
- }
47
- function matchesHref(anchor, conditionValue) {
48
- const href = anchor.getAttribute("href") || "";
49
- if (!href) return false;
50
- try {
51
- let url;
52
- if (href.startsWith("http://") || href.startsWith("https://")) {
53
- url = new URL(href);
54
- } else if (href.startsWith("/")) {
55
- url = new URL(href, window.location.origin);
56
- } else {
57
- url = new URL(href, window.location.href);
58
- }
59
- if (conditionValue.startsWith("http://") || conditionValue.startsWith("https://")) {
60
- try {
61
- const conditionUrl = new URL(conditionValue);
62
- return url.origin === conditionUrl.origin && url.pathname === conditionUrl.pathname;
63
- } catch {
64
- return href.includes(conditionValue);
65
- }
66
- }
67
- return url.pathname.includes(conditionValue);
68
- } catch (error) {
69
- return href.includes(conditionValue);
70
- }
71
- }
72
- function matchesText(anchor, conditionValue) {
73
- const textContent = anchor.textContent?.trim().toLowerCase() || "";
74
- const normalizedText = textContent.replace(/\s+/g, " ");
75
- const normalizedCondition = conditionValue.toLowerCase().replace(/\s+/g, " ");
76
- return normalizedText.includes(normalizedCondition);
77
- }
78
- function tagLinks(config = DEFAULT_TAGGING_CONFIG) {
79
- const anchorTags = document.querySelectorAll("a");
80
- anchorTags.forEach((anchor) => {
81
- config.forEach((rule) => {
82
- if (anchor.hasAttribute(rule.attribute) && anchor.getAttribute(rule.attribute) === rule.attributeValue) {
83
- return;
84
- }
85
- if (matchesCondition(anchor, rule.condition, rule.conditionValue)) {
86
- anchor.setAttribute(rule.attribute, rule.attributeValue);
87
- }
88
- });
89
- });
90
- }
91
- function tagLinksAdvanced(config = DEFAULT_TAGGING_CONFIG) {
92
- const anchorTags = document.querySelectorAll("a");
93
- anchorTags.forEach((anchor) => {
94
- config.forEach((rule) => {
95
- if (anchor.hasAttribute(rule.attribute) && anchor.getAttribute(rule.attribute) === rule.attributeValue) {
96
- return;
97
- }
98
- if (matchesCondition(anchor, rule.condition, rule.conditionValue)) {
99
- anchor.setAttribute(rule.attribute, rule.attributeValue);
100
- }
101
- });
102
- });
103
- }
104
- var GenericLinkTagger = class {
105
- constructor(config = DEFAULT_TAGGING_CONFIG) {
106
- this.observer = null;
107
- this.config = config;
108
- }
109
- updateConfig(config) {
110
- this.config = config;
111
- }
112
- tagExistingLinks() {
113
- const anchorTags = document.querySelectorAll("a");
114
- anchorTags.forEach((anchor) => {
115
- this.config.forEach((rule) => {
116
- if (this.shouldTagLink(anchor, rule)) {
117
- this.tagLink(anchor, rule);
118
- }
119
- });
120
- });
121
- }
122
- startObserving() {
123
- this.observer = new MutationObserver((mutations) => {
124
- mutations.forEach((mutation) => {
125
- mutation.addedNodes.forEach((node) => {
126
- if (node.nodeType === Node.ELEMENT_NODE) {
127
- const element = node;
128
- if (element.tagName === "A") {
129
- this.processAnchor(element);
130
- }
131
- const anchorTags = element.querySelectorAll("a");
132
- anchorTags.forEach((anchor) => {
133
- this.processAnchor(anchor);
134
- });
135
- }
136
- });
137
- });
138
- });
139
- this.observer.observe(document.body, {
140
- childList: true,
141
- subtree: true
142
- });
143
- }
144
- stopObserving() {
145
- if (this.observer) {
146
- this.observer.disconnect();
147
- this.observer = null;
148
- }
149
- }
150
- processAnchor(anchor) {
151
- this.config.forEach((rule) => {
152
- if (this.shouldTagLink(anchor, rule)) {
153
- this.tagLink(anchor, rule);
154
- }
155
- });
156
- }
157
- shouldTagLink(anchor, rule) {
158
- if (anchor.hasAttribute(rule.attribute) && anchor.getAttribute(rule.attribute) === rule.attributeValue) {
159
- return false;
160
- }
161
- return matchesCondition(anchor, rule.condition, rule.conditionValue);
162
- }
163
- tagLink(anchor, rule) {
164
- anchor.setAttribute(rule.attribute, rule.attributeValue);
165
- }
166
- };
167
- function initGenericLinkTagger(config) {
168
- if (document.readyState === "loading") {
169
- document.addEventListener("DOMContentLoaded", () => {
170
- tagLinksAdvanced(config);
171
- });
172
- } else {
173
- tagLinksAdvanced(config);
174
- }
175
- }
176
- function initGenericLinkTaggerWithObserver(config) {
177
- const runTagger = () => {
178
- const tagger = new GenericLinkTagger(config);
179
- tagger.tagExistingLinks();
180
- tagger.startObserving();
181
- };
182
- if (document.readyState === "loading") {
183
- document.addEventListener("DOMContentLoaded", runTagger);
184
- } else {
185
- runTagger();
186
- }
187
- }
188
- initGenericLinkTaggerWithObserver();
189
- })();
190
- //# sourceMappingURL=attributes.js.map
1
+ "use strict";(()=>{var o=[{attribute:"data-ph",attributeValue:"book-a-demo",condition:"href",conditionValue:"/contact-us"},{attribute:"data-ph",attributeValue:"sign-in",condition:"href",conditionValue:"https://console.fynd.com/auth/sign-in"},{attribute:"data-ph",attributeValue:"sign-up",condition:"href",conditionValue:"https://console.fynd.com/auth/sign-up"}];function s(n,e,t){switch(e.toLowerCase()){case"href":return u(n,t);case"text":return d(n,t);case"class":return n.classList.contains(t);case"id":return n.id===t;default:return!1}}function u(n,e){let t=n.getAttribute("href")||"";if(!t)return!1;try{let i;if(t.startsWith("http://")||t.startsWith("https://")?i=new URL(t):t.startsWith("/")?i=new URL(t,window.location.origin):i=new URL(t,window.location.href),e.startsWith("http://")||e.startsWith("https://"))try{let a=new URL(e);return i.origin===a.origin&&i.pathname===a.pathname}catch{return t.includes(e)}return i.pathname.includes(e)}catch{return t.includes(e)}}function d(n,e){let i=(n.textContent?.trim().toLowerCase()||"").replace(/\s+/g," "),a=e.toLowerCase().replace(/\s+/g," ");return i.includes(a)}function b(n=o){document.querySelectorAll("a").forEach(t=>{n.forEach(i=>{t.hasAttribute(i.attribute)&&t.getAttribute(i.attribute)===i.attributeValue||s(t,i.condition,i.conditionValue)&&t.setAttribute(i.attribute,i.attributeValue)})})}function c(n=o){document.querySelectorAll("a").forEach(t=>{n.forEach(i=>{t.hasAttribute(i.attribute)&&t.getAttribute(i.attribute)===i.attributeValue||s(t,i.condition,i.conditionValue)&&t.setAttribute(i.attribute,i.attributeValue)})})}var r=class{constructor(e=o){this.observer=null;this.config=e}updateConfig(e){this.config=e}tagExistingLinks(){document.querySelectorAll("a").forEach(t=>{this.config.forEach(i=>{this.shouldTagLink(t,i)&&this.tagLink(t,i)})})}startObserving(){this.observer=new MutationObserver(e=>{e.forEach(t=>{t.addedNodes.forEach(i=>{if(i.nodeType===Node.ELEMENT_NODE){let a=i;a.tagName==="A"&&this.processAnchor(a),a.querySelectorAll("a").forEach(g=>{this.processAnchor(g)})}})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}stopObserving(){this.observer&&(this.observer.disconnect(),this.observer=null)}processAnchor(e){this.config.forEach(t=>{this.shouldTagLink(e,t)&&this.tagLink(e,t)})}shouldTagLink(e,t){return e.hasAttribute(t.attribute)&&e.getAttribute(t.attribute)===t.attributeValue?!1:s(e,t.condition,t.conditionValue)}tagLink(e,t){e.setAttribute(t.attribute,t.attributeValue)}};function f(n){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{c(n)}):c(n)}function h(n){let e=()=>{let t=new r(n);t.tagExistingLinks(),t.startObserving()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}h();})();