@fynd-design-engineering/fynd-one-v2 3.4.41 → 3.4.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{(function(){"use strict";let m="load",p=new Set;function s(...e){}function l(e,t=3e3){"requestIdleCallback"in window?window.requestIdleCallback(()=>e(),{timeout:t}):setTimeout(e,2e3)}function g(e){if(p.size===0)return!0;let t=e.getAttribute("data-group");return t!==null&&p.has(t)}function f(e,{async:t=!1,defer:o=!1,type:i="",crossOrigin:a="",referrerPolicy:c=""}={}){return new Promise((r,E)=>{let n=document.createElement("script");n.src=e,t&&(n.async=!0),o&&(n.defer=!0),i&&(n.type=i),a&&(n.crossOrigin=a),c&&(n.referrerPolicy=c),n.onload=()=>r(),n.onerror=()=>E(new Error("Failed to load: "+e)),document.head.appendChild(n)})}function L(e){let t=document.createElement("script");t.type="text/javascript",t.text=e,document.head.appendChild(t)}async function d(e){for(let t of e){if(!g(t))continue;let o=t.getAttribute("data-src"),i=t.getAttribute("data-async")==="true",a=t.getAttribute("data-crossorigin")||"",c=t.getAttribute("data-referrerpolicy")||"";try{if(o)s("Loading",o,"async=",i),await f(o,{async:i,crossOrigin:a,referrerPolicy:c});else{let r=t.textContent||"";r.trim()&&(s("Running inline lazy script"),L(r))}}catch(r){console.warn("[lazy-loader]",r)}finally{t.type="text/javascript",t.removeAttribute("data-src")}}}function u(){return Array.from(document.querySelectorAll('script[type="text/lazyjs"], script[data-lazy="true"]'))}function y(){let e=u();if(!e.length){s("No lazy scripts found.");return}s("Found",e.length,"lazy scripts"),l(()=>{d(e)})}document.readyState==="complete"?l(y):window.addEventListener(m,()=>l(y),{once:!0}),window.LazyLoader={loadNow:()=>d(u()),loadGroupNow:async e=>{let t=u().filter(o=>(o.getAttribute("data-group")||"")===e);await d(t)},loadScriptNow:(e,t)=>f(e,t)}})();})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var p=[{optionName:"Building a website",selectValues:["Storefront","Commerce"]},{optionName:"Supply chain solutions",selectValues:["WMS","OMS","TMS","Commerce"]},{optionName:"Retail store solutions",selectValues:["
|
|
1
|
+
"use strict";(()=>{var p=[{optionName:"Building a website",selectValues:["Storefront","Commerce"]},{optionName:"Supply chain solutions",selectValues:["WMS","OMS","TMS","Commerce"]},{optionName:"Retail store solutions",selectValues:["StoreOS","Commerce"]},{optionName:"Sell on Marketplaces",selectValues:["OMS","Commerce"]},{optionName:"AI solutions",selectValues:["Kaily","Boltic","Pixelbin"]},{optionName:"Fashion manufacturing solution",selectValues:["Create Sourcing","Create Design","Snap"]}],y=[{slug:"/solutions/transport-management-system",selectValues:["TMS","Commerce"]},{slug:"/solutions/storefront",selectValues:["Storefront","Commerce"]},{slug:"/solutions/wms",selectValues:["WMS","Commerce"]},{slug:"/solutions/order-management-system",selectValues:["OMS","Commerce"]},{slug:"/solutions/order-management-system",selectValues:["OMS","Commerce"]},{slug:"/solutions/fynd-quick",selectValues:["Quick Commerce","Commerce"]},{slug:"/solutions/b2b-commerce",selectValues:["Commerce B2B","Commerce"]},{slug:"/solutions/ai-pim",selectValues:["AI PIM","Commerce"]},{slug:"/solutions/konnect-integrations",selectValues:["OMS","Commerce"]},{slug:"/solutions/logistics",selectValues:["Fynd Logistics","Commerce"]},{slug:"/solutions/returns-management-system",selectValues:["StoreOS"]},{slug:"/solutions/pos",selectValues:["StoreOS","POS"]},{slug:"/solutions/endless-aisle",selectValues:["StoreOS","Endless Aisle"]},{slug:"/solutions/clienteling",selectValues:["StoreOS","Clienteling"]},{slug:"/solutions/self-checkout",selectValues:["StoreOS","Self Checkout Kiosk"]},{slug:"/solutions/engage",selectValues:["Engage","Commerce"]},{slug:"/solutions/forge",selectValues:["Forge"]},{slug:"/solutions/ai-photoshoots",selectValues:["Snap"]},{slug:"/solutions/ai-agent-builder",selectValues:["Kaily"]},{slug:"/solutions/workflow-automation",selectValues:["Boltic"]},{slug:"/solutions/3d-ar-vr-try-ons",selectValues:["GlamAR"]},{slug:"/solutions/ai-editing-for-commerce",selectValues:["Pixelbin"]},{slug:"/solutions/ai-photoshoots",selectValues:["Create Design"]}];function c(){try{let e=h(),s="Inbound Form",o="Inbound",r="Prospect";if(!e||e.userJourney.length===0)return;let t=e.userJourney[0],l=e.userJourney[e.userJourney.length-1];e.userJourney.length>1&&e.userJourney[e.userJourney.length-1].page==="/contact-us"&&(l=e.userJourney[e.userJourney.length-2]);let n={utm_source:t.utm.source,utm_medium:t.utm.medium,utm_campaign:t.utm.campaign,source:s,source_direction:o,contact_type:r,userjourney:JSON.stringify(e.userJourney),device:e.deviceCategory,browser:e.browser,refferer_domain:document.referrer?new URL(document.referrer).hostname:"",host_url:window.location.hostname,"current-page-url":window.location.href};Object.entries(n).forEach(([a,i])=>{S(a,i)})}catch(e){console.error("Error filling form with user journey data:",e)}}function h(){try{let e=localStorage.getItem("userJourney");return e?JSON.parse(e):null}catch(e){return console.error("Error getting user journey data:",e),null}}function S(e,s){try{let o=`[fynd-queryparam-name="${e}"]`,r=document.querySelectorAll(o);r.length>0&&r.forEach(t=>{t.value=s;let l=new Event("input",{bubbles:!0});t.dispatchEvent(l);let n=new Event("change",{bubbles:!0});t.dispatchEvent(n)})}catch(o){console.error(`Error filling field [${e}]:`,o)}}function m(e){return Array.isArray(e)?e.join("; "):""}function E(){return!window.location.pathname.startsWith("/solutions/")}function V(){let e=window.location.pathname,s=y.find(t=>t.slug===e);if(!s)return;let o=m(s.selectValues);document.querySelectorAll('[fynd-form-field="product-interested-input"]').forEach(t=>{t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?t.value=o:t.textContent=o})}function v(){let e='[fynd-wrapper-field="product-interested-select"]',s='[fynd-form-field="product-interested-select"]',o='[fynd-form-field="product-interested-input"]',r=document.querySelectorAll(s),t=document.querySelectorAll(o),l=document.querySelectorAll(e);if(!E()){V(),l.forEach(n=>{n.style.display="none"});return}l.forEach(n=>{n.style.display="flex"}),r.length&&r.forEach(n=>{n.addEventListener("change",()=>{let a=n.value,i=p.find(u=>u.optionName===a),g=i?m(i.selectValues):"";t.forEach(u=>{u.value=g;let d=new Event("input",{bubbles:!0});u.dispatchEvent(d);let f=new Event("change",{bubbles:!0});u.dispatchEvent(f)})})})}document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{c(),v()},500)});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{c()},500)}):setTimeout(()=>{c()},500);window.fillFormWithUserJourney=c;})();
|
package/package.json
CHANGED