@fynd-design-engineering/fynd-one-v2 3.3.49 → 3.3.51

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.
@@ -1 +1 @@
1
- "use strict";(()=>{var u=window.matchMedia("(prefers-reduced-motion: reduce)").matches,f=new Swiper("[fynd-slider='testimonials']",{slidesPerView:"auto",spaceBetween:20,loop:!0,speed:5e3,allowTouchMove:!0,grabCursor:!0,autoplay:u?!1:{delay:0}}),p=new Swiper("[fynd-slider='incentive']",{slidesPerView:"auto",spaceBetween:20,loop:!1,allowTouchMove:!0,mousewheel:{forceToAxis:!0,sensitivity:1}}),m=new Date("2025-12-05T00:00:00Z");function r(){let s=new Date().getTime(),e=m.getTime()-s;if(e<=0){document.querySelectorAll("[fynd-timer]").forEach(o=>{o.textContent="00"}),clearInterval(w);return}let i=Math.floor(e/(1e3*60*60*24)),a=Math.floor(e/(1e3*60*60)%24),c=Math.floor(e/(1e3*60)%60),l=Math.floor(e/1e3%60),t=(o,d)=>{let n=document.querySelector(`[fynd-timer=${o}]`);n&&(n.textContent=d.toString().padStart(2,"0"))};t("day",i),t("hour",a),t("minute",c),t("second",l)}var w=setInterval(r,1e3);r();})();
1
+ "use strict";(()=>{var u=window.matchMedia("(prefers-reduced-motion: reduce)").matches,f=new Swiper("[fynd-slider='testimonials']",{slidesPerView:"auto",spaceBetween:20,loop:!0,speed:5e3,allowTouchMove:!0,grabCursor:!0,autoplay:u?!1:{delay:0}}),p=new Swiper("[fynd-slider='incentive']",{slidesPerView:3,spaceBetween:20,loop:!1,freeMode:!0,mousewheel:{forceToAxis:!0,sensitivity:1},breakpoints:{992:{slidesPerView:3},768:{slidesPerView:2.1},640:{slidesPerView:1.8},0:{slidesPerView:1.2}}}),w=new Date("2025-12-05T00:00:00Z");function s(){let r=new Date().getTime(),e=w.getTime()-r;if(e<=0){document.querySelectorAll("[fynd-timer]").forEach(o=>{o.textContent="00"}),clearInterval(m);return}let i=Math.floor(e/(1e3*60*60*24)),a=Math.floor(e/(1e3*60*60)%24),c=Math.floor(e/(1e3*60)%60),l=Math.floor(e/1e3%60),t=(o,d)=>{let n=document.querySelector(`[fynd-timer=${o}]`);n&&(n.textContent=d.toString().padStart(2,"0"))};t("day",i),t("hour",a),t("minute",c),t("second",l)}var m=setInterval(s,1e3);s();})();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../bin/live-reload.js", "../../src/hacktimus/2025.ts"],
4
- "sourcesContent": ["// Only enable live reload when running on localhost\nif (\n window.location.hostname === \"localhost\" ||\n window.location.hostname === \"127.0.0.1\"\n) {\n new EventSource(`${SERVE_ORIGIN}/esbuild`).addEventListener(\"change\", () =>\n location.reload()\n );\n} else {\n // console.log(\"Live reload disabled: not running on localhost\");\n}\n", "declare const Swiper: any;\n\nconst hasReducedMotion: boolean =\n window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n// Testimonials Swiper\nconst testimonialsSwiper = new Swiper(\"[fynd-slider='testimonials']\", {\n slidesPerView: 'auto',\n spaceBetween: 20,\n loop: true,\n speed: 5000,\n allowTouchMove: true,\n grabCursor: true,\n autoplay: hasReducedMotion\n ? false\n : {\n delay: 0,\n },\n});\n\n// Incentive Swiper\nconst incentiveSwiper = new Swiper(\"[fynd-slider='incentive']\", {\n slidesPerView: 'auto',\n spaceBetween: 20,\n loop: false,\n});\n\n\n// Simple countdown timer for elements with fynd-timer attributes\n// Date/time hardcoded in code itself\n\nconst targetDate = new Date(\"2025-12-05T00:00:00Z\"); // December 5th, 2025 UTC\n\nfunction updateTimer() {\n const now = new Date().getTime();\n const distance = targetDate.getTime() - now;\n\n if (distance <= 0) {\n document.querySelectorAll<HTMLElement>(\"[fynd-timer]\").forEach(el => {\n el.textContent = \"00\";\n });\n clearInterval(timer);\n return;\n }\n\n const days = Math.floor(distance / (1000 * 60 * 60 * 24));\n const hours = Math.floor((distance / (1000 * 60 * 60)) % 24);\n const minutes = Math.floor((distance / (1000 * 60)) % 60);\n const seconds = Math.floor((distance / 1000) % 60);\n\n const setText = (attr: string, val: number) => {\n const el = document.querySelector<HTMLElement>(`[fynd-timer=${attr}]`);\n if (el) el.textContent = val.toString().padStart(2, \"0\");\n };\n\n setText(\"day\", days);\n setText(\"hour\", hours);\n setText(\"minute\", minutes);\n setText(\"second\", seconds);\n}\n\nconst timer = setInterval(updateTimer, 1000);\nupdateTimer();"],
5
- "mappings": ";;;AACA,MACE,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,aAC7B;AACA,QAAI,YAAY,GAAG,uBAAY,UAAU,EAAE;AAAA,MAAiB;AAAA,MAAU,MACpE,SAAS,OAAO;AAAA,IAClB;AAAA,EACF,OAAO;AAAA,EAEP;;;ACRA,MAAM,mBACF,OAAO,WAAW,kCAAkC,EAAE;AAG1D,MAAM,qBAAqB,IAAI,OAAO,gCAAgC;AAAA,IAClE,eAAe;AAAA,IACf,cAAc;AAAA,IACd,MAAM;AAAA,IACN,OAAO;AAAA,IACP,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,UAAU,mBACJ,QACA;AAAA,MACE,OAAO;AAAA,IACX;AAAA,EACR,CAAC;AAGD,MAAM,kBAAkB,IAAI,OAAO,6BAA6B;AAAA,IAC5D,eAAe;AAAA,IACf,cAAc;AAAA,IACd,MAAM;AAAA,EACV,CAAC;AAMD,MAAM,aAAa,oBAAI,KAAK,sBAAsB;AAElD,WAAS,cAAc;AACnB,UAAM,OAAM,oBAAI,KAAK,GAAE,QAAQ;AAC/B,UAAM,WAAW,WAAW,QAAQ,IAAI;AAExC,QAAI,YAAY,GAAG;AACf,eAAS,iBAA8B,cAAc,EAAE,QAAQ,QAAM;AACjE,WAAG,cAAc;AAAA,MACrB,CAAC;AACD,oBAAc,KAAK;AACnB;AAAA,IACJ;AAEA,UAAM,OAAO,KAAK,MAAM,YAAY,MAAO,KAAK,KAAK,GAAG;AACxD,UAAM,QAAQ,KAAK,MAAO,YAAY,MAAO,KAAK,MAAO,EAAE;AAC3D,UAAM,UAAU,KAAK,MAAO,YAAY,MAAO,MAAO,EAAE;AACxD,UAAM,UAAU,KAAK,MAAO,WAAW,MAAQ,EAAE;AAEjD,UAAM,UAAU,CAAC,MAAc,QAAgB;AAC3C,YAAM,KAAK,SAAS,cAA2B,eAAe,IAAI,GAAG;AACrE,UAAI,GAAI,IAAG,cAAc,IAAI,SAAS,EAAE,SAAS,GAAG,GAAG;AAAA,IAC3D;AAEA,YAAQ,OAAO,IAAI;AACnB,YAAQ,QAAQ,KAAK;AACrB,YAAQ,UAAU,OAAO;AACzB,YAAQ,UAAU,OAAO;AAAA,EAC7B;AAEA,MAAM,QAAQ,YAAY,aAAa,GAAI;AAC3C,cAAY;",
4
+ "sourcesContent": ["// Only enable live reload when running on localhost\nif (\n window.location.hostname === \"localhost\" ||\n window.location.hostname === \"127.0.0.1\"\n) {\n new EventSource(`${SERVE_ORIGIN}/esbuild`).addEventListener(\"change\", () =>\n location.reload()\n );\n} else {\n // console.log(\"Live reload disabled: not running on localhost\");\n}\n", "declare const Swiper: any;\n\nconst hasReducedMotion: boolean =\n window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n// Testimonials Swiper\nconst testimonialsSwiper = new Swiper(\"[fynd-slider='testimonials']\", {\n slidesPerView: 'auto',\n spaceBetween: 20,\n loop: true,\n speed: 5000,\n allowTouchMove: true,\n grabCursor: true,\n autoplay: hasReducedMotion\n ? false\n : {\n delay: 0,\n },\n});\n\n// Incentive Swiper\nconst incentiveSwiper = new Swiper(\"[fynd-slider='incentive']\", {\n slidesPerView: 3,\n spaceBetween: 20,\n loop: false,\n freeMode: true,\n mousewheel: {\n forceToAxis: true,\n sensitivity: 1,\n },\n breakpoints: {\n // for tablet\n 992: {\n slidesPerView: 3,\n },\n 768: {\n slidesPerView: 2.1,\n },\n 640: {\n slidesPerView: 1.8,\n },\n // for mobile\n 0: {\n slidesPerView: 1.2,\n },\n },\n});\n\n\n// Simple countdown timer for elements with fynd-timer attributes\n// Date/time hardcoded in code itself\n\nconst targetDate = new Date(\"2025-12-05T00:00:00Z\"); // December 5th, 2025 UTC\n\nfunction updateTimer() {\n const now = new Date().getTime();\n const distance = targetDate.getTime() - now;\n\n if (distance <= 0) {\n document.querySelectorAll<HTMLElement>(\"[fynd-timer]\").forEach(el => {\n el.textContent = \"00\";\n });\n clearInterval(timer);\n return;\n }\n\n const days = Math.floor(distance / (1000 * 60 * 60 * 24));\n const hours = Math.floor((distance / (1000 * 60 * 60)) % 24);\n const minutes = Math.floor((distance / (1000 * 60)) % 60);\n const seconds = Math.floor((distance / 1000) % 60);\n\n const setText = (attr: string, val: number) => {\n const el = document.querySelector<HTMLElement>(`[fynd-timer=${attr}]`);\n if (el) el.textContent = val.toString().padStart(2, \"0\");\n };\n\n setText(\"day\", days);\n setText(\"hour\", hours);\n setText(\"minute\", minutes);\n setText(\"second\", seconds);\n}\n\nconst timer = setInterval(updateTimer, 1000);\nupdateTimer();"],
5
+ "mappings": ";;;AACA,MACE,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,aAC7B;AACA,QAAI,YAAY,GAAG,uBAAY,UAAU,EAAE;AAAA,MAAiB;AAAA,MAAU,MACpE,SAAS,OAAO;AAAA,IAClB;AAAA,EACF,OAAO;AAAA,EAEP;;;ACRA,MAAM,mBACF,OAAO,WAAW,kCAAkC,EAAE;AAG1D,MAAM,qBAAqB,IAAI,OAAO,gCAAgC;AAAA,IAClE,eAAe;AAAA,IACf,cAAc;AAAA,IACd,MAAM;AAAA,IACN,OAAO;AAAA,IACP,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,UAAU,mBACJ,QACA;AAAA,MACE,OAAO;AAAA,IACX;AAAA,EACR,CAAC;AAGD,MAAM,kBAAkB,IAAI,OAAO,6BAA6B;AAAA,IAC5D,eAAe;AAAA,IACf,cAAc;AAAA,IACd,MAAM;AAAA,IACN,UAAU;AAAA,IACV,YAAY;AAAA,MACR,aAAa;AAAA,MACb,aAAa;A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
4
  "description": "Updated CDN for fynd.com",
5
5
  "homepage": "https://github.com/Fynd-Design-Engineering/Fynd-Utils/blob/main/README.md",
6
6
  "license": "ISC",