PageSourceSearch

https://www.kaizenedge.ai/_next/static/chunks/433-72e5ddf9c29d8064.js

js kaizenedge.ai collected 2026-10-05 15:36:50 UTC 13,078 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[433],{9433:function(e,n,t){async function o(e){try{const n=await fetch("/api/facebook-conversions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),t=await n.json();return n.ok?(console.log("Server event sent successfully:",t),!0):(console.error("Server event failed:",t),!1)}catch(n){return console.error("Server event request failed:",n),!1}}function a(e,n){switch(e.toLowerCase()){case"contact":case"contact_form":return function(e){if(!e)return 1e3;let n=1e3;if(e.monthlyRevenue)switch(e.monthlyRevenue){case"$1M+":n=5e3;break;case"$500K-$1M":n=3e3;break;case"$100K-$500K":n=2e3;break;case"$50K-$100K":n=1500;break;default:n=1e3}e.solutionInterest&&(e.solutionInterest.includes("AI agents")?n*=1.5:e.solutionInterest.includes("consulting")&&(n*=1.3));return Math.round(n)}(n);case"qualification_form":case"qualification":return function(e){if(!e)return 1500;let n=1500;if(!0===e.qualified){var t,o;if(n=6e3,e.monthlyRevenue)switch(e.monthlyRevenue){case"$500K+":n=12e3;break;case"$100K+":n=9e3;break;case"$50K+":n=6e3}"ASAP"===e.timeline?n*=1.8:"30 days"===e.timeline&&(n*=1.4),((null===(t=e.bottleneck)||void 0===t?void 0:t.includes("Lead generation"))||(null===(o=e.bottleneck)||void 0===o?void 0:o.includes("Sales")))&&(n*=1.3)}else n=400;return Math.round(n)}(n);case"roi_calculator":return function(e){if(!e)return 1500;const n=parseInt(e.hoursSpentOnTasks)||20,t=parseInt(e.hourlyRate)||50,o=n*t*.7*52;return Math.min(.1*o,1e4)}(n);case"consultation":case"demo_request":return 2500;case"consultation_booking":case"booking":return 5e3;case"facebook_lead_form":case"facebook_lead":return function(e){if(!e)return 2e3;let n=2e3;if(e.monthlyRevenue)switch(e.monthlyRevenue){case"$1M+":n=6e3;break;case"$500K+":n=4e3;break;case"$100K+":n=3e3;break;default:n=2e3}e.timeline&&("ASAP"===e.timeline?n*=1.5:"Within 30 days"===e.timeline&&(n*=1.3));e.challenge&&(e.challenge.includes("Sales automation")||e.challenge.includes("Lead generation"))&&(n*=1.2);return Math.round(n)}(n);case"facebook_lead_ads_completion":return 3500;default:return 500}}function i(e){var n,t;if(!e)return 1;let o=1;return"ASAP"===e.timeline?o+=5:"30 days"===e.timeline?o+=3:"90 days"===e.timeline&&(o+=1),"$500K+"===e.monthlyRevenue?o+=5:"$100K+"===e.monthlyRevenue?o+=3:"$50K+"===e.monthlyRevenue&&(o+=2),((null===(n=e.bottleneck)||void 0===n?void 0:n.includes("Lead generation"))||(null===(t=e.bottleneck)||void 0===t?void 0:t.includes("Sales")))&&(o+=2),Math.min(o,10)}function c(e){var n,t,o,a,i;if(!e)return 1;let c=0;switch(e.monthlyRevenue){case"$500K+":c+=40;break;case"$100K+":c+=30;break;case"$50K+":c+=20;break;default:c+=5}switch(e.timeline){case"ASAP":c+=30;break;case"30 days":c+=20;break;case"90 days":c+=10;break;default:c+=2}return(null===(n=e.bottleneck)||void 0===n?void 0:n.includes("Lead generation"))?c+=20:(null===(t=e.bottleneck)||void 0===t?void 0:t.includes("Sales"))?c+=15:(null===(o=e.bottleneck)||void 0===o?void 0:o.includes("Manual"))?c+=10:c+=5,(null===(a=e.source)||void 0===a?void 0:a.includes("hero"))?c+=10:(null===(i=e.source)||void 0===i?void 0:i.includes("vsl"))?c+=8:c+=3,Math.min(c,100)}function r(){return"".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9))}function u(e,n){if(window.fbq)try{const t=!0===(null===n||void 0===n?void 0:n.qualified),u=function(e,n){switch(e.toLowerCase()){case"contact":case"contact_form":return function(e){if(!e)return 1e3;let n=1e3;if(e.monthlyRevenue)switch(e.monthlyRevenue){case"$1M+":n=5e3;break;case"$500K-$1M":n=3e3;break;case"$100K-$500K":n=2e3;break;case"$50K-$100K":n=1500;break;default:n=1e3}e.solutionInterest&&(e.solutionInterest.includes("AI agents")?n*=1.5:e.solutionInterest.includes("consulting")&&(n*=1.3));return Math.round(n)}(n);case"qualification_form":case"qualification":return function(e){if(!e)return 1500;let n=1500;if(!0===e.qualified){var t,o;if(n=6e3,e.monthlyRevenue)switch(e.monthlyRevenue){case"$500K+":n=12e3;break;case"$100K+":n=9e3;break;case"$50K+":n=6e3}"ASAP"===e.timeline?n*=1.8:"30 days"===e.timeline&&(n*=1.4),((null===(t=e.bottleneck)||void 0===t?void 0:t.includes("Lead generation"))||(null===(o=e.bottleneck)||void 0===o?void 0:o.includes("Sales")))&&(n*=1.3)}else n=400;return Math.round(n)}(n);case"roi_calculator":return function(e){if(!e)return 1500;const n=parseInt(e.hoursSpentOnTasks)||20,t=parseInt(e.hourlyRate)||50,o=n*t*.7*52;return Math.min(.1*o,1e4)}(n);case"consultation":case"demo_request":return 2500;case"consultation_booking":case"booking":return 5e3;case"facebook_lead_form":case"facebook_lead":return function(e){if(!e)return 2e3;let n=2e3;if(e.monthlyRevenue)switch(e.monthlyRevenue){case"$1M+":n=6e3;break;case"$500K+":n=4e3;break;case"$100K+":n=3e3;break;default:n=2e3}e.timeline&&("ASAP"===e.timeline?n*=1.5:"Within 30 days"===e.timeline&&(n*=1.3));e.challenge&&(e.challenge.includes("Sales automation")||e.challenge.includes("Lead generation"))&&(n*=1.2);return Math.round(n)}(n);case"facebook_lead_ads_completion":return 3500;default:return 500}}(e,n),l=r();t?(window.fbq("track","Lead",{content_name:"Qualified_Lead",content_category:"qualified_form_submission",value:3*u,currency:"USD",custom_data:{qualification_status:"qualified",monthly_revenue:n.monthlyRevenue,timeline:n.timeline,urgency_score:_(n),lead_quality:"high"}},{eventID:l}),window.fbq("trackCustom","Qualified_Lead_Generated",{content_name:e,source:n.source,monthly_revenue:n.monthlyRevenue,timeline:n.timeline,urgency_score:_(n),value:3*u,currency:"USD",lead_score:v(n)},{eventID:r()}
1),console.log("\ud83c\udfaf QUALIFIED LEAD TRACKED: ".concat(e," - VALUE: $").concat(3*u," - Training FB algorithm"))):(window.fbq("track","Lead",{content_name:e,content_category:"unqualified_form_submission",value:Math.round(.3*u),currency:"USD",custom_data:{qualification_status:"unqualified",lead_quality:"low"}},{eventID:l}),console.log("\ud83d\udcdd Standard lead tracked: ".concat(e," - VALUE: $").concat(Math.round(.3*u)))),window.fbq("trackCustom","".concat(e,"_Submitted"),{content_name:e,qualified:t,source:(null===n||void 0===n?void 0:n.source)||"unknown",timestamp:(new Date).toISOString()},{eventID:r()}),async function(e,n,t){const r=t||"".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9)),u={event_name:"Lead",event_id:r,user_data:{},custom_data:{content_name:e,qualification_status:(null===n||void 0===n?void 0:n.qualified)?"qualified":"unqualified",form_type:e,source:(null===n||void 0===n?void 0:n.source)||"unknown"}};if((null===n||void 0===n?void 0:n.email)&&(u.user_data.email=n.email),(null===n||void 0===n?void 0:n.phone)&&(u.user_data.phone=n.phone),(null===n||void 0===n?void 0:n.firstName)&&(u.user_data.first_name=n.firstName),(null===n||void 0===n?void 0:n.lastName)&&(u.user_data.last_name=n.lastName),null===n||void 0===n?void 0:n.qualified){const t=a(e,n);u.custom_data={...u.custom_data,content_category:"qualified_form_submission",value:3*t,currency:"USD",monthly_revenue:n.monthlyRevenue,timeline:n.timeline,urgency_score:i(n),lead_quality:"high",lead_score:c(n)}}else{const t=a(e,n);u.custom_data={...u.custom_data,content_category:"unqualified_form_submission",value:Math.round(.3*t),currency:"USD",lead_quality:"low"}}await o(u),(null===n||void 0===n?void 0:n.qualified)&&await o({event_name:"Qualified_Lead_Generated",event_id:"".concat(r,"_qualified"),user_data:u.user_data,custom_data:{content_name:e,source:n.source,monthly_revenue:n.monthlyRevenue,timeline:n.timeline,urgency_score:i(n),value:3*a(e,n),currency:"USD",lead_score:c(n)}})}(e,n,l).catch((e=>{console.error("Server event failed:",e)}))}catch(t){console.error("Error tracking form submission:",t)}}function l(e,n){if(window.fbq)try{const t=function(e){return{"/contact":1e3,"/roi-calculator":1500,"/services":750,"/services/sales-systems-development":2e3,"/consultation":2500,"/demo":2e3,"/pricing":1200,"/book-consultation":8e3,"/facebook-lead":3e3,"/facebook-thank-you":3500}[e]||500}(e),a=r();if("/book-consultation"===e){window.fbq("track","Purchase",{content_name:"Consultation_Booking_Intent",content_category:"high_intent_conversion",value:t,currency:"USD",custom_data:{intent_level:"booking_ready",funnel_stage:"bottom"}},{eventID:a});"qualified_lead"===new URLSearchParams(window.location.search).get("source")&&(window.fbq("trackCustom","Qualified_Lead_Booking",{content_name:"Qualified_Lead_to_Booking",value:2*t,currency:"USD",conversion_stage:"final"},{eventID:r()}),console.log("\ud83d\udd25 QUALIFIED LEAD BOOKING: $".concat(2*t," - Premium conversion signal")))}else window.fbq("track","ViewContent",{content_name:n,content_category:"route_conversion",value:t,currency:"USD"},{eventID:a});window.fbq("trackCustom","Route_Conversion_".concat(n),{route:e,conversion_type:n,timestamp:(new Date).toISOString()},{eventID:r()}),async function(e,n,t){const a=t||"".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9)),i=function(e){return{"/contact":1e3,"/roi-calculator":1500,"/services":750,"/services/sales-systems-development":2e3,"/consultation":2500,"/demo":2e3,"/pricing":1200,"/book-consultation":8e3,"/facebook-lead":3e3,"/facebook-thank-you":3500}[e]||500}(e);let c="ViewContent",r={content_name:n,content_category:"route_conversion",value:i,currency:"USD",route:e,conversion_type:n};"/book-consultation"===e&&(c="Purchase",r={content_name:"Consultation_Booking_Intent",content_category:"high_intent_conversion",value:i,currency:"USD",intent_level:"booking_ready",funnel_stage:"bottom"}),await o({event_name:c,event_id:a,custom_data:r}),"/book-consultation"===e&&"qualified_lead"===new URLSearchParams(window.location.search).get("source")&&await o({event_name:"Qualified_Lead_Booking",event_id:"".concat(a,"_qual
1ified_booking"),custom_data:{content_name:"Qualified_Lead_to_Booking",value:2*i,currency:"USD",conversion_stage:"final"}})}(e,n,a).catch((e=>{console.error("Server route event failed:",e)})),console.log("Facebook tracking: Route conversion ".concat(n," at ").concat(e," (Browser + Server)"))}catch(t){console.error("Error tracking route conversion:",t)}}function s(e,n){if(window.fbq)try{const t=r();window.fbq("track","PageView",{content_name:e,content_category:n||"page_view"},{eventID:t}),window.fbq("track","ViewContent",{content_name:e,content_category:n||"page_view"},{eventID:r()}),async function(e,n,t){const a=t||"".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9));await o({event_name:"PageView",event_id:a,custom_data:{content_name:e,content_category:n||"page_view"}})}(e,n,t).catch((e=>{console.error("Server page view failed:",e)})),console.log("Facebook tracking: Page view ".concat(e," (Browser + Server)"))}catch(t){console.error("Error tracking page view:",t)}}function d(e,n){if(window.fbq)try{let t=750;"hero"!==e&&"qualified_traffic"!==e||(t=1200),window.fbq("trackCustom","VSL_Engagement",{content_name:"Sales_System_VSL",engagement_type:n,source:e,value:t,currency:"USD",timestamp:(new Date).toISOString()},{eventID:r()}),"play"===n&&window.fbq("track","ViewContent",{content_name:"Sales_System_VSL",content_category:"vsl_video",value:t,currency:"USD"},{eventID:r()}),async function(e,n,t){const a=t||"".concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9));let i=750;"hero"!==e&&"qualified_traffic"!==e||(i=1200),await o({event_name:"VSL_Engagement",event_id:a,custom_data:{content_name:"Sales_System_VSL",engagement_type:n,source:e,value:i,currency:"USD"}}),"play"===n&&await o({event_name:"ViewContent",event_id:"".concat(a,"_viewcontent"),custom_data:{content_name:"Sales_System_VSL",content_category:"vsl_video",value:i,currency:"USD"}})}(e,n).catch((e=>{console.error("Server VSL event failed:",e)})),console.log("Facebook tracking: VSL ".concat(n," from ").concat(e," - Value: $").concat(t," (Browser + Server)"))}catch(t){console.error("Error tracking VSL engagement:",t)}}function _(e){var n,t;if(!e)return 1;let o=1;return"ASAP"===e.timeline?o+=5:"30 days"===e.timeline?o+=3:"90 days"===e.timeline&&(o+=1),"$500K+"===e.monthlyRevenue?o+=5:"$100K+"===e.monthlyRevenue?o+=3:"$50K+"===e.monthlyRevenue&&(o+=2),((null===(n=e.bottleneck)||void 0===n?void 0:n.includes("Lead generation"))||(null===(t=e.bottleneck)||void 0===t?void 0:t.includes("Sales")))&&(o+=2),Math.min(o,10)}function v(e){var n,t,o,a,i;if(!e)return 1;let c=0;switch(e.monthlyRevenue){case"$500K+":c+=40;break;case"$100K+":c+=30;break;case"$50K+":c+=20;break;default:c+=5}switch(e.timeline){case"ASAP":c+=30;break;case"30 days":c+=20;break;case"90 days":c+=10;break;default:c+=2}return(null===(n=e.bottleneck)||void 0===n?void 0:n.includes("Lead generation"))?c+=20:(null===(t=e.bottleneck)||void 0===t?void 0:t.includes("Sales"))?c+=15:(null===(o=e.bottleneck)||void 0===o?void 0:o.includes("Manual"))?c+=10:c+=5,(null===(a=e.source)||void 0===a?void 0:a.includes("hero"))?c+=10:(null===(i=e.source)||void 0===i?void 0:i.includes("vsl"))?c+=8:c+=3,Math.min(c,100)}t.d(n,{Pv:function(){return u},Z0:function(){return s},it:function(){return l},jL:function(){return d}})}}]);

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.