PageSourceSearch

https://www.flowzo.ai/chunk-OPHXOI3U.js

js flowzo.ai collected 2026-10-05 15:18:14 UTC 4,343 bytes, 1 lines download raw bytes

1import{b as l}from"./chunk-SAFBACLM.js";import{a as u}from"./chunk-I4A4GNAA.js";import{d as p}from"./chunk-RBFSWZ5W.js";import{a as S}from"./chunk-XPDBXCBV.js";import{H as f,N as h,S as m,W as o}from"./chunk-PESSSNMB.js";import{a as n}from"./chunk-HZ6M6AS2.js";var I={LANDING_URL:"landing_url",URL_FROM:"url_from",REFERRER_URL:"referrer_url",GCLID:"gclid",GBRAID:"gbraid",WBRAID:"wbraid",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content"},g=class a{constructor(r){this.browser=r}KEYS=I;captureLandingInfo(){if(!this.browser.isBrowserPlatform)return;let r=sessionStorage;if(!r.getItem(this.KEYS.LANDING_URL)){let e=this.browser.location,t=this.browser.document;r.setItem(this.KEYS.LANDING_URL,e.href),r.setItem(this.KEYS.URL_FROM,e.pathname+(e.search||"")),r.setItem(this.KEYS.REFERRER_URL,t.referrer||"")}}captureUtmParams(){if(!this.browser.isBrowserPlatform)return;let r=this.browser.location,e=new URLSearchParams(r.search);[{key:"UTM_SOURCE",param:"utm_source"},{key:"UTM_MEDIUM",param:"utm_medium"},{key:"UTM_CAMPAIGN",param:"utm_campaign"},{key:"UTM_TERM",param:"utm_term"},{key:"UTM_CONTENT",param:"utm_content"}].forEach(({key:i,param:s})=>{let c=e.get(s);if(!c)return;let E=this.KEYS[i];sessionStorage.setItem(E,c.trim())})}captureGoogleClickIds(){if(!this.browser.isBrowserPlatform)return;
1let r=this.browser.location,e=new URLSearchParams(r.search);[{key:"GCLID",param:"gclid"},{key:"GBRAID",param:"gbraid"},{key:"WBRAID",param:"wbraid"}].forEach(({key:i,param:s})=>{let c=e.get(s)?.trim();c&&localStorage.setItem(this.KEYS[i],c)})}appendUnique(r,e){let t=e.trim();if(!t)return r??"";let i=(r||"").split(",").map(s=>s.trim()).filter(s=>s.length>0);return i.includes(t)||i.push(t),i.join(",")}getTrackingData(){if(!this.browser.isBrowserPlatform)return{};let r=this.browser.location;return{landing_url:sessionStorage.getItem(this.KEYS.LANDING_URL)||void 0,url_from:sessionStorage.getItem(this.KEYS.URL_FROM)||void 0,referrer_url:sessionStorage.getItem(this.KEYS.REFERRER_URL)||void 0,current_url:r.href,gclid:localStorage.getItem(this.KEYS.GCLID)||void 0,gbraid:localStorage.getItem(this.KEYS.GBRAID)||void 0,wbraid:localStorage.getItem(this.KEYS.WBRAID)||void 0,utm_source:sessionStorage.getItem(this.KEYS.UTM_SOURCE)||void 0,utm_medium:sessionStorage.getItem(this.KEYS.UTM_MEDIUM)||void 0,utm_campaign:sessionStorage.getItem(this.KEYS.UTM_CAMPAIGN)||void 0,utm_term:sessionStorage.getItem(this.KEYS.UTM_TERM)||void 0,utm_content:sessionStorage.getItem(this.KEYS.UTM_CONTENT)||void 0}}mergeTrackingIntoPayload(r){if(!this.browser.isBrowserPlatform)return r;let e=this.getTrackingData();try{let t=r.value,i=typeof t=="string"?JSON.parse(t||"{}"):t||{},s=n(n({},i),e);r.value=JSON.stringify(s)}catch{r.tracking=e}return r}clearTrackingData(){if(!this.browser.isBrowserPlatform)return;[this.KEYS.LANDING_URL,this.KEYS.URL_FROM,this.KEYS.REFERRER_URL,this.KEYS.UTM_SOURCE,this.KEYS.UTM_MEDIUM,this.KEYS.UTM_CAMPAIGN,this.KEYS.UTM_TERM,this.KEYS.UTM_CONTENT].forEach(e=>sessionStorage.removeItem(e)),[this.KEYS.GCLID,this.KEYS.GBRAID,this.KEYS.WBRAID].forEach(e=>localStorage.removeItem(e))}static \u0275fac=function(e){return new(e||a)(o(u))};static \u0275prov=m({token:a,factory:a.\u0275fac,providedIn:"root"})};var d=class a{constructor(r,e,t){this.http=r;this.tracking=e;this.browserService=t}getDynamicForm;url1=l.serverAPI+"/api/catalog/form/lablel";url2=l.serverAPI+"/api/catalog/form/submission";createContact(r){return this.http.post(`${this.url1}`,r)}formCache=new Map;getDynmaicForm(r){let e=String(r);if(!this.formCache.has(e)){let t=this.http.get(`${this.url1}/${r}`).pipe(f({bufferSize:1,refCount:!1}));this.formCache.set(e,t)}return this.formCache.get(e)}saveForm(r){this.browserService.isBrowserPlatform&&this.tracking.mergeTrackingIntoPayload(r);let e=this.browserService.localStorageGetItem(S.COUNTRY_LOCATION);if(e!=null&&r.value!=null)try{let t=JSON.parse(e),i=typeof r.value=="string"?JSON.parse(r.value):r.value,s=n(n({},i),t);r.value=JSON.stringify(s)}catch{}return this.http.post(`${this.url2}`,r).pipe(h(()=>{this.browserService.isBrowserPlatform&&this.tracking.clearTrackingData()}))}static \u0275fac=function(e){return new(e||a)(o(p),o(g),o(u))};static \u0275prov=m({token:a,factory:a.\u0275fac,providedIn:"root"})};export{g as a,d as b};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.