@fynd-design-engineering/fynd-one-v2 3.3.42 → 3.3.43

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";(()=>{function u(t){let e=new URLSearchParams(window.location.search).get(t);return e?e.trim():null}function l(){return u("tag_equal")}window.getTagEqualFromURL=l;document.addEventListener("DOMContentLoaded",()=>{console.log("%csrc/filters/konnect.ts:2 working","color: #007acc;");let t=document.querySelectorAll("[konnect-filter-element]");if(t.length===0)return;setTimeout(d,200);let e=l();setInterval(()=>{let n=l();n!==e&&(console.log("tag_equal changed:",n),e=n,a())},100);let o=document.getElementById("konnect-filter");o&&o.addEventListener("change",()=>{console.log("Select changed \u2192 URL tag_equal is:",l())}),t.forEach(n=>{n.addEventListener("click",()=>{console.log("konnect-filter-element clicked:",n),n.getAttribute("konnect-filter-element")==="primary"?(setTimeout(a,100),document.querySelectorAll('[konnect-filter-element="secondary"]').forEach((c,s)=>{s==0?(c.click(),c.setAttribute("konnect-filter-active","true")):c.setAttribute("konnect-filter-active","false")})):setTimeout(f,100)})})});function f(){let t=new URLSearchParams(window.location.search).get("nest-tag_equal"),e=document.querySelectorAll('[konnect-filter-element="secondary"]');if(!t){e.forEach((n,r)=>{n.setAttribute("konnect-filter-active",r==0?"true":"false")});return}let o=t.trim().toLowerCase();e.length!==0&&e.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"),e[0].setAttribute("konnect-filter-active","false")):n.setAttribute("konnect-filter-active","false")})}function a(){let t=l(),e=document.getElementById("konnect-filter");if(!e){console.warn("Select element with id 'konnect-filter' not found.");return}t?Array.from(e.options).find(n=>n.value===t)?(e.value=t,console.log(`Selected option: ${t}`),m(t)):console.warn(`No matching option found for value: ${t}`):console.log("No 'tag_equal' parameter in URL.")}function d(){let t=l(),e=document.getElementById("konnect-filter");if(!e){console.warn("Select element with id 'konnect-filter' not found.");return}t?Array.from(e.options).find(n=>n.value===t)?(e.value=t,console.log(`Selected from URL param: ${t}`)):(console.warn(`No matching option found for value: ${t}. Defaulting to Marketplaces.`),e.value="Marketplaces"):(e.value="Marketplaces",console.log("No tag_equal param found. Defaulted to Marketplaces."))}function m(t){let e=document.querySelectorAll("[hidden-filter]");e&&e.forEach(o=>{o.style.display=t==="Marketplaces"?"flex":"none"})}})();
1
+ "use strict";(()=>{function d(e){let t=new URLSearchParams(window.location.search).get(e);return t?t.trim():null}function c(){return d("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(m,100)})})});function m(){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:["All","India"]},{primary:"OMS/WMS",show:["All"]},{primary:"ERP/POS",show:["All","India"]}];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"})}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fynd-design-engineering/fynd-one-v2",
3
- "version": "3.3.42",
3
+ "version": "3.3.43",
4
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",