PageSourceSearch

https://atonom.ai/_next/static/chunks/6762-6a8ffc23db95fc41.js

js atonom.ai collected 2026-09-30 04:22:42 UTC 28,185 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6762],{295:(e,t,n)=>{n.d(t,{l4:()=>L,D3:()=>T,M6:()=>R,D0:()=>C,eB:()=>r.eB,ob:()=>r.ob,Zk:()=>r.Zk,TZ:()=>r.TZ,o9:()=>D,Tp:()=>k,ar:()=>q,mL:()=>A,n:()=>u,eT:()=>S,lh:()=>I,Ar:()=>w,_s:()=>o._s,oQ:()=>i.oQ,Wj:()=>i.Wj,l8:()=>d,Hk:()=>y,o8:()=>E,mn:()=>i.mn,D_:()=>v,SM:()=>h,CJ:()=>c,kf:()=>l.kf,Oi:()=>i.Oi,eL:()=>s,cp:()=>x,YF:()=>P,Rv:()=>O});var r=n(66295),o=n(16062),i=n(85158),a=n(40633),l=n(25883);function s(e){let t=new WeakSet,n=n=>{t.has(n)||(t.add(n),e({...n.detail,source:"custom-event"}))},o=t=>{var n;let o=t.data;"string"==typeof(n=null==o?void 0:o.command)&&n.startsWith("webcall:")&&(t.source===window||t.origin===window.location.origin||t.origin===r.TZ)&&e({evt_type:o.command,evt_data:o,source:"post-message"})};return document.addEventListener("signals:webcall",n),window.addEventListener("message",o),()=>{document.removeEventListener("signals:webcall",n),window.removeEventListener("message",o)}}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!await (0,a._)())return console.warn("startSignalsVoiceCall: Signals SDK failed to load"),!1;let n=t.commAgentID?{...t}:{...t,agentID:e};return(0,l.Wh)(n)}function u(){(0,l.kf)()}function d(){window.cf_chat_loader=()=>({packet_code:r.Zk,disabled:!0,hideMode:!0})}var m=n(12115),f=n(55855),_=n(23456),p=n(98780);function g(e){return"cf-visitor-".concat(e)}function v(e){let t=e.startsWith("?")?e.slice(1):e;return"/api/chat-proxy?".concat(t)}function h(e){let t=e.startsWith("?")?e.slice(1):e;return"".concat(r.TZ,"/api/core/web/chat_client/index?").concat(t)}function w(e){if(e)try{return new URL(e,window.location.origin).origin}catch(e){}return window.location.origin}function y(e){return e===window.location.origin||e===r.TZ}function b(){return"".concat(window.location.host).concat("/zoey-chat/api/chat-service/a")}function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.Zk,t="stored-convo-".concat(e);try{localStorage.removeItem(t)}catch(e){}try{sessionStorage.removeItem(t)}catch(e){}}function S(e){let t="home-agent-chat-visitor-".concat(e),n=(0,f._A)(t);if(n)return n;let r=(0,f.nw)(16);return(0,f.YZ)(t,r),r}function A(){return(0,f.nw)(4)}function E(e,t){var n,o,i,a,l,s,c,u,d,m;let _=null!=(i=t.targetOrigin)?i:w(null!=(o=t.frameSrc)?o:null==e?void 0:e.src);t.clearStoredConversation&&k(),null==e||null==(n=e.contentWindow)||n.postMessage({type:"id",id:null!=(a=t.visitorId)?a:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.Zk;return function(e){let t=g(e);if("granted"===(0,p.$m)()){let e=(0,f.zn)(t);if(e)return e;let n=(0,f._A)(t);if(n)return(0,f.bl)(t,n),n;let r=(0,f.nw)(32);return(0,f.bl)(t,r),r}let n=(0,f._A)(t);if(n)return n;let r=(0,f.nw)(32);return(0,f.YZ)(t,r),r}(e)}(),packet_code:r.Zk,prefix:"",page_url:null!=(l=t.pageUrl)?l:window.location.href,referrer:null!=(s=t.referrer)?s:null!=(m=function(){let e=(0,f._A)("referrer");if(e)return"Direct"===e?"":e;let t=document.referrer||"Direct";return(0,f.YZ)("referrer",t),"Direct"===t?"":t}())?m:"",page_title:null!=(c=t.pageTitle)?c:document.title,screen:{x:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,y:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},active_conversation_id:null!=(u=t.activeConversationId)?u:null,meta:{},chatServiceUrl:function(e){if(!e)return b();try{if(new URL(e,window.location.origin).origin===r.TZ)try{return"".concat(new URL(r.TZ).host,"/api/chat-service/a")}catch(e){return"beta.atonom.ai/api/chat-service/a"}}catch(e){}return b()}(t.frameSrc),page_load_id:t.pageLoadId,debug:!1,hide_mode:!1,mode:"normal",submissionID:null,auto_load_bot_id:null!=(d=t.autoLoadBotId)?d:null,preventCriteriaPrompts:!1,supportBot:!1,identity:{},user_id:null},_);let v=t.triggerCloudEmployeeId;null!=v&&(null==e?void 0:e.contentWindow)&&e.contentWindow.postMessage({type:"bot_trigger_id",botID:v,preview:!0},_)}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enabled:n=!0,autoLoadBotId:r=null,pageUrl:o,pageTitle:i,referrer:a,visitorId:l,frameSrc:s=null,targetOrigin:c,triggerCloudEmployeeId:u=null,clearStoredConversation:d=!1,onActivated:f}=t,_=(0,m.useMemo)(()=>A(),[r,o,l,u,s]),p=(0,m.useCallback)(()=>{E(e.current,{pageLoadId:_,autoLoadBotId:r,pageUrl:o,pageTitle:i,referrer:a,visitorId:l,frameSrc:s,targetOrigin:c,triggerCloudEmployeeId:u,clearStoredConversation:d,activeConversationId:null}),null==f||f()},[e,_,r,o,i,a,l,s,c,u,d,f]);return(0,m.useEffect)(()=>
1{if(!n)return;let t=t=>{var n,r;(null==(n=t.data)?void 0:n.command)==="activate"&&t.source===(null==(r=e.current)?void 0:r.contentWindow)&&y(t.origin)&&p()};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)},[n,e,p]),{pageLoadId:_,sendActivation:p}}(0,_.tQ)(function(){let e=g(r.Zk),t=(0,f._A)(e);t&&((0,f.zn)(e)||(0,f.bl)(e,t))});let L="Patti",C="Apply to Partner | Atonom",T=null;function I(){return"https://atonom.ai/partners/apply"}let R=new URLSearchParams({variant:"1",p:r.Zk,comm_agent_id:String(638)}).toString();function q(){var e,t;null==(e=(t=window).formPrefill)||e.call(t)}function D(e,t){let n=n=>{let r=n.detail;(null==r?void 0:r.successful)&&(0,i.oQ)(n,e)&&(q(),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:150;return new Promise(t=>setTimeout(t,e))})().then(t))};return document.addEventListener("htmx:afterRequest",n),()=>document.removeEventListener("htmx:afterRequest",n)}var F=n(38354);function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"static";(0,m.useLayoutEffect)(()=>{(0,i.Wj)();let t=e.current;if(!t)return;(0,i.mn)(t),(0,a._)().then(()=>(0,i.mn)(t));let n=()=>(0,i.mn)(t),r=window.setTimeout(n,400);return window.addEventListener("signals:sdk:ready",n),()=>{for(let e of(window.clearTimeout(r),window.removeEventListener("signals:sdk:ready",n),t instanceof HTMLFormElement?[t]:Array.from((t instanceof Element?t:document).querySelectorAll("form.signals-form"))))e.isConnected||e.removeAttribute("data-signals-form-setup")}},[t,e])}function O(){(0,m.useEffect)(()=>{let e=null,t=()=>{null!==e&&window.clearTimeout(e),e=window.setTimeout(()=>{e=null,(0,F.vn)(),(0,F.DK)()},200)};t(),window.addEventListener("signals:sdk:ready",t);let n="undefined"!=typeof MutationObserver?new MutationObserver(t):null;return null==n||n.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{null!==e&&window.clearTimeout(e),window.removeEventListener("signals:sdk:ready",t),null==n||n.disconnect()}},[])}},16062:(e,t,n)=>{n.d(t,{Hz:()=>l,IF:()=>o,Tk:()=>i,_s:()=>a});var r=n(66295);let o={250:"Demo Request",271:"Pricing Request",261:"AISDR Live Email Capture",239:"AICX Summit Registration",283:"Autonomous Sales Summit Registration",243:"AICX Awards Email Capture",273:"AICX 2026 Awards Vote",280:"AICX 2026 Live Check-in",264:"Autonomous Newsletter Signup",265:"TalkAI Newsletter Signup",274:"SMS Reminders",275:"Hire First AI Employee",278:"AI Support Employee",279:"Playground Build",281:"KSL Listener Special",282:"AI Receptionist"};function i(e){return e?e.replace(r.ao,""):e}function a(e){return i("".concat(r.ao,"/api/core/web/forms/").concat(e,"/submit"))}function l(e){return e?e.startsWith("".concat(r.ao,"/api/core/web/forms/"))?e.slice(r.ao.length):e.startsWith("http")||e.startsWith("/")?e:"https://".concat(e):e}},25883:(e,t,n)=>{n.d(t,{E3:()=>o,WB:()=>s,Wh:()=>c,YL:()=>a,kf:()=>u,we:()=>l});var r=n(55855);function o(){var e;return null!=(e=window.SignalsSDK)?e:window.SignalsChatClient}function i(){return!!o()}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12e3;return(0,r.a0)(i,e)}function l(e){var t;let n=null==(t=o())?void 0:t.setupForm;return"function"==typeof n&&(n(e),!0)}function s(e,t){var n;let r=null==(n=o())?void 0:n.initFormFollowup;return"function"==typeof r&&(r(e,t),!0)}async function c(e){var t;let n=null==(t=o())?void 0:t.startVoiceCall;if("function"!=typeof n)return!1;try{return!!await n(e)}catch(e){return console.warn("Signals voice call failed to start.",e),!1}}async function u(){var e;let t=null==(e=o())?void 0:e.stopVoiceCall;if("function"==typeof t)try{await t()}catch(e){console.warn("Signals voice call failed to stop.",e)}}},38354:(e,t,n)=>{n.d(t,{DK:()=>c,vn:()=>l});let r=/launcher|chat_button|chat-button|bubble|widget-button|minimized/i,o='[data-signals-launcher], [data-cf-launcher], [id*="signals-launcher"], [id*="chat-launcher"], [class*="signals-launcher"], [class*="chat-launcher"], [id^="cf-launcher"], [id*="cf_launcher"]',i="data-atonom-signals-protected";function a(e){return!!e.closest("[".concat(i,"]"))}function l(){"undefined"!=typeof document&&document.querySelectorAll('iframe[id^="cf_"]').forEach(e
1=>{if(r.test(e.id)||e.closest(o))return;let t=e.getBoundingClientRect();(t.width>=120||t.height>=120)&&function(e){e.setAttribute(i,"true");let t=e.parentElement;for(;t&&t!==document.body;)t.setAttribute(i,"true"),t=t.parentElement}(e)})}function s(e){a(e)||!function(e){try{return!!e.closest('[id*="calendar"], [class*="calendar"], [id*="scheduling"], [class*="scheduling"], [data-signals-scheduling]')}catch(e){return!1}}(e)&&(e.classList.add("atonom-signals-legacy-hidden"),e.setAttribute("aria-hidden","true"))}function c(){"undefined"!=typeof document&&(l(),document.querySelectorAll('iframe[id^="cf_"]').forEach(e=>{(function(e){if(!e.id.startsWith("cf_")||a(e))return!1;if(r.test(e.id)||e.closest(o))return!0;if(a(e))return!1;let t=e.getBoundingClientRect();return(0!==t.width||0!==t.height)&&!(t.width>=120)&&!(t.height>=120)&&t.width>0&&t.width<=96&&t.height>0&&t.height<=96&&function(e){let t=e;for(;t&&t!==document.body;){if("fixed"!==window.getComputedStyle(t).position){t=t.parentElement;continue}let e=t.getBoundingClientRect();if(e.width<=0||e.height<=0)break;let n=e.bottom>=window.innerHeight-160,r=e.right>=window.innerWidth-160;return n&&r}return!1}(e)})(e)&&s(e)}),document.querySelectorAll(o).forEach(e=>{s(e)}))}},40633:(e,t,n)=>{let r;n.d(t,{_:()=>_});var o=n(66295),i=n(25883),a=n(38354);let l=o.O7.map(e=>e.split("?")[0]),s=!1,c=null;function u(){(0,a.vn)(),(0,a.DK)()}function d(){s||(r=window.cf_chat_loader,s=!0),window.cf_chat_loader=()=>{var e;return{...null!=(e=null==r?void 0:r())?e:{},packet_code:o.Zk,disabled:!0,hideMode:!0}}}function m(){return c||(c=(async()=>{for(let e of(d(),o.O7))if((0,i.E3)()||await function(e){return new Promise(t=>{let n=document.createElement("script");n.src=e,n.defer=!0,n.onload=()=>{u(),t(!0)},n.onerror=e=>{console.error("Failed to load Signals SDK loader.",e),n.remove(),t(!1)},document.head.appendChild(n)})}(e))return!0;return!1})())}let f=()=>{if(!(0,i.E3)())return void console.error("Signals SDK loader completed, but no SDK object is available on window.");try{window.dispatchEvent(new CustomEvent("signals:sdk:ready"))}catch(e){console.error("Error initializing Signals SDK.",e)}},_=async()=>{if(d(),u(),(0,i.E3)())return f(),u(),!0;let e=!!document.querySelector([...l.map(e=>'script[src*="'.concat(e,'"]')),'script[src*="chat-loader.js"]'].join(", "));if(!e&&!await m())return!1;let t=await (0,i.YL)(12e3);if(!t&&e){if(document.querySelectorAll('script[src*="chat-loader.js"]').forEach(e=>e.remove()),c=null,!await m())return!1;let e=await (0,i.YL)(12e3);return e&&f(),u(),e}return t&&f(),u(),t}},55855:(e,t,n)=>{function r(e){try{return localStorage.getItem(e)}catch(e){return null}}function o(e,t){try{localStorage.setItem(e,t)}catch(e){}}function i(e){try{return sessionStorage.getItem(e)}catch(e){return null}}function a(e,t){try{sessionStorage.setItem(e,t)}catch(e){}}function l(e){let t=new Uint8Array(e);return!function(e){let t=globalThis.crypto;if(null==t?void 0:t.getRandomValues)return t.getRandomValues(e);for(let t=0;t<e.length;t+=1)e[t]=Math.floor(256*Math.random())}(t),Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return new Promise(r=>{if(e())return void r(!0);let o=Date.now(),i=()=>e()?void r(!0):Date.now()-o>=t?void r(!1):void globalThis.setTimeout(i,n);i()})}n.d(t,{YZ:()=>a,_A:()=>i,a0:()=>s,bl:()=>o,nw:()=>l,zn:()=>r})},64269:(e,t,n)=>{n.d(t,{cn:()=>i});var r=n(2821);let o=(0,n(75889).zu)({extend:{classGroups:{"font-size":[{text:["caption","post-title","post-lead","post-body","post-excerpt","post-author-name","post-cta-heading","post-card-featured","location-section","marketing-h1","marketing-h2","marketing-h3","marketing-h4","marketing-h5","marketing-h6","marketing-body","marketing-small","marketing-caption","marketing-caption-sm"]}]}}});function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o((0,r.$)(t))}},66295:(e,t,n)=>{n.d(t,{O7:()=>u,TZ:()=>i,Zk:()=>o,ao:()=>a,bx:()=>d,eB:()=>f,ob:()=>m});var r=n(95704);let o=r.env.NEXT_PUBLIC_SIGNALS_PACKET_CODE||"cb6dbb20bfbeee14b104c353779772ef78d549b2",i=r.env.NEXT_PUBLIC_SIGNALS_UPSTREAM_ORIGIN||"https://beta.atonom.ai",a=i,l="true"===r.env.NEXT_PUBLIC_USE_LOCAL_CHAT_LOADER,s="".concat(i,"/chat-client/chat-loader.js?p=").concat(o),c="".concat("http://localhost:2000","/chat-client/chat-loader.js?p=").concat(o),u=l?[c,s]:[s],d={job:"playground_job_a96aacb4",preset:"playground_preset_9c695dac"},m={playground:279,demo:250,pricingConsult:271,aisdrEmail:261,aicxSummit:239,autonomousSalesSummit:283,aicxAwardsFollowup:243,aicx26AwardsVote:273,aicx26LiveCheckin:280,autonomousNewsletter:264,talkaiNewsletter:265,smsReminders:274,firstAiEmployee:275,aiSupportEmployee:278,ksl:281,receptionistLanding:282},f={279:{formContext:"playgroundv2_create_employee",formType:"playground_lead"},250:{formContext:"demo_request",formType:"demo_request"},271:{formContext:"pricing_consult",formType:"pricing_consult"},261:{formContext:"aisdr_live_email",formType:"event_email_capture"},239:{formContext:"aicx_summit_registration",formType:"event_registration"},283:{formContext:"autonomous_sales_summit_registration",formType:"event_registration"},243:{formContext:"aicx_awards_vote_email_capture",formType:"event_email_capture"},273:{formContext:"aicx26_awards_vote",formType:"award_vote"},280:{formContext:"aicx26_live_checkin",formType:"event_email_capture"},264:{formContext:"autonomous_newsletter",formType:"newsletter_signup"},265:{formContext:"talkai_newsletter",formType:"newsletter_signup"},274:{formContext:"sms_reminders",formType:"sms_opt_in"},275:{formContext:"first_ai_employee",formType:"demo_request"}
1,278:{formContext:"ai_support_employee",formType:"demo_request"},281:{formContext:"ksl_landing",formType:"demo_request"},282:{formContext:"receptionist_landing",formType:"demo_request"}}},66556:(e,t,n)=>{n.d(t,{a:()=>o});var r=n(66295);let o={[r.ob.playground]:{form_name:"Playground Build",offer_type:"playground_access",org_source:"marketing",offer:"Playground",content_type:"landing_page"},[r.ob.demo]:{form_name:"Demo Request",offer_type:"demo_request",org_source:"marketing",offer:"Demo Request",content_type:"landing_page"},[r.ob.pricingConsult]:{form_name:"Pricing Request",offer_type:"pricing_request",org_source:"marketing",offer:"Pricing Consult",content_type:"landing_page"},[r.ob.aicxSummit]:{form_name:"AICX Summit Registration",offer_type:"virtual_event_registration",org_source:"marketing",offer:"AICX Summit Registration",content_type:"event_page"},[r.ob.autonomousSalesSummit]:{form_name:"Autonomous Sales Summit Registration",offer_type:"virtual_event_registration",org_source:"marketing",offer:"Autonomous Sales Summit",content_type:"event_page"},[r.ob.aisdrEmail]:{form_name:"AISDR Live Email Capture",offer_type:"virtual_event_registration",org_source:"marketing",offer:"AISDR Live Check-in",content_type:"event_page"},[r.ob.aicxAwardsFollowup]:{form_name:"AICX Awards Email Capture",offer_type:"award_submission",org_source:"marketing",offer:"AICX Awards Vote Follow-up",content_type:"event_page"},[r.ob.aicx26AwardsVote]:{form_name:"AICX 2026 Awards Vote",offer_type:"award_submission",org_source:"marketing",offer:"AICX 2026 Awards Vote",content_type:"event_page"},[r.ob.aicx26LiveCheckin]:{form_name:"AICX 2026 Live Check-in",offer_type:"virtual_event_registration",org_source:"marketing",offer:"AICX 26 Live",content_type:"event_page"},[r.ob.autonomousNewsletter]:{form_name:"Autonomous Newsletter Signup",offer_type:"newsletter_autonomous",org_source:"marketing",offer:"Autonomous Newsletter",content_type:"landing_page"},[r.ob.talkaiNewsletter]:{form_name:"TalkAI Newsletter Signup",offer_type:"newsletter_talkai",org_source:"marketing",offer:"TalkAI Newsletter",content_type:"landing_page"},[r.ob.smsReminders]:{form_name:"SMS Reminders",offer_type:"sms_opt_in",org_source:"marketing",offer:"Meeting Reminders SMS",content_type:"landing_page"},[r.ob.firstAiEmployee]:{form_name:"Hire First AI Employee",offer_type:"demo_request",org_source:"marketing",offer:"Hire First AI Employee",content_type:"landing_page"},[r.ob.aiSupportEmployee]:{form_name:"AI Support Employee",offer_type:"demo_request",org_source:"marketing",offer:"AI Support Employee",content_type:"landing_page"},[r.ob.ksl]:{form_name:"KSL Listener Special",offer_type:"demo_request",org_source:"marketing",offer:"KSL Listener Special",content_type:"landing_page"},[r.ob.receptionistLanding]:{form_name:"AI Receptionist",offer_type:"demo_request",org_source:"marketing",offer:"AI Receptionist",content_type:"landing_page"}}},70280:(e,t,n)=>{n.d(t,{V:()=>i});var r=n(12115);function o(e){return Array.from(e.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")&&"-1"!==e.getAttribute("tabindex"))}function i(e,t){let{active:n,initialFocusSelector:i,onEscape:a}=t;(0,r.useEffect)(()=>{if(!n)return;let t=e.current;if(!t)return;let r=document.activeElement instanceof HTMLElement?document.activeElement:null,l=e=>{if("Escape"===e.key){null==a||a();return}if("Tab"!==e.key)return;let n=o(t);if(0===n.length){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),r.focus())},s=window.requestAnimationFrame(()=>{var e;let n=i?t.querySelector(i):null;(null!=(e=null!=n?n:o(t)[0])?e:t).focus()});return document.addEventListener("keydown",l),()=>{window.cancelAnimationFrame(s),document.removeEventListener("keydown",l),null==r||r.focus()}},[n,e,i,a])}},85158:(e,t,n)=>{n.d(t,{F_:()=>P,Oi:()=>A,Wj:()=>g,mn:()=>_,oQ:()=>S});var r=n(16062),o=n(66556),i=n(98780),a=n(66295),l=n(29225),s=n(62863),c=n(88179),u=n(25883),d=n(40633),m=n(55855);let f=!1;function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(e instanceof Element&&e.matches(".signals-form")||e.querySelector(".signals-form")){try{(function(e){for(let t of p(e))t.querySelectorAll('input[name*="phone" i], input.signals-phone-field').forEach(e
1=>{e.hasAttribute("style")||e.setAttribute("style","")})})(e),(0,u.we)()}catch(t){(function(e){for(let t of p(e))"pending"===t.getAttribute("data-signals-form-setup")&&t.removeAttribute("data-signals-form-setup")})(e),console.warn("Signals form setup failed:",t)}try{var t;null!=(t=window.htmx)&&t.process&&window.htmx.process(e)}catch(e){console.warn("HTMX form processing failed:",e)}}}function p(e){return Array.from(new Set(e instanceof Element?[...e.matches("form.signals-form")?[e]:[],...Array.from(e.querySelectorAll("form.signals-form"))]:Array.from(e.querySelectorAll("form.signals-form")))).filter(e=>e instanceof HTMLFormElement)}function g(){f||"undefined"==typeof document||(f=!0,document.addEventListener("htmx:beforeRequest",h),document.addEventListener("htmx:configRequest",v),document.addEventListener("htmx:afterRequest",y),document.addEventListener("htmx:responseError",w),document.addEventListener("htmx:sendError",w),document.addEventListener("htmx:timeout",w))}function v(e){let t=k(e);t&&e.detail&&(e.detail.path=(0,r.Hz)(e.detail.path),e.detail.parameters=function(e,t){var n,i,u,d,m;let f=L(t),_=String(x(e).packet_code||f.packet_code||a.Zk),p=T(_),g="visitor_".concat(p,"_").concat(_),v=function(e,t){for(let[e,n]of Object.entries((0,l.I)({refresh:!0})))t[e]||(t[e]=n);let n=(0,s.t0)();n&&!t.ga_client_id&&(t.ga_client_id=n);let i=(0,s.gR)();i&&!t.ga_session_id&&(t.ga_session_id=i),t.session_id||(t.session_id=(0,s.u0)()),t.event_id||(t.event_id=(0,c._V)("lead_server"));let a=function(e){var t,n;let r=e.id.match(/^signals-form-(\d+)/),o=(null!=(t=e.getAttribute("hx-post"))?t:"").match(/\/forms\/(\d+)\//),i=null!=(n=null==r?void 0:r[1])?n:null==o?void 0:o[1];if(!i)return null;let a=Number(i);return Number.isFinite(a)?a:null}(e),u=a?o.a[a]:void 0;if(u)t.form_name||(t.form_name=u.form_name),t.offer_type||(t.offer_type=u.offer_type),t.org_source||(t.org_source=u.org_source),t.content_type||(t.content_type=u.content_type),t.offer||(t.offer=u.offer);else{var d,m;let n=(null!=(d=e.getAttribute("hx-post"))?d:"").match(/\/forms\/(\d+)\//),o=n&&null!=(m=r.IF[n[1]])?m:null;!t.form_name&&o&&(t.form_name=o)}return t}(e,function(e,t){let n=L(t);if("string"==typeof n.form_data)try{let e=JSON.parse(n.form_data);if(e&&"object"==typeof e)return{...e}}catch(e){}if(n.form_data&&"object"==typeof n.form_data&&!Array.isArray(n.form_data))return{...n.form_data};if(Object.keys(n).length>0){let e={};for(let[t,r]of Object.entries(n))E.has(t)||(e[t]=r);if(Object.keys(e).length>0)return e}return x(e)}(e,t));return{...f,...v,form_data:v,recaptcha_assessment_ok:null!=(n=f.recaptcha_assessment_ok)?n:function(e){var t;if("true"!==q("recaptcha-enabled")||"true"===q("recaptcha-assessment"))return!0;let n=document.getElementById("".concat(e.id,"-captcha-checkbox")),r=null==n?void 0:n.dataset.widgetId,o=window.grecaptcha;return!!(n&&(null==o||null==(t=o.getResponse)?void 0:t.call(o,r)))}(e),visitor_cookie:null!=(i=f.visitor_cookie)?i:g,session_cookie:null!=(u=f.session_cookie)?u:p,packet_code:_,visitor_token:null!=(d=f.visitor_token)?d:g,site_visitor_token:null!=(m=f.site_visitor_token)?m:g,submission_url:window.location.href,referrer:I(),timezone:"string"==typeof f.timezone?f.timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}}(t,e.detail.parameters))}function h(e){if(e.defaultPrevented)return;let t=k(e);t&&b(t,!0)}function w(e){var t,n,r,o,i,a,l,s,c,u,d,m;let f=k(e);if(!f)return;b(f,!1);let _=null==(t=e.detail)?void 0:t.xhr,p=null!=(c=null==(n=e.detail)?void 0:n.parameters)?c:null==(o=e.detail)||null==(r=o.requestConfig)?void 0:r.parameters;console.error("[Signals form] Submission failed.",{formId:f.id||void 0,action:f.getAttribute("hx-post")||f.getAttribute("action")||void 0,path:null!=(u=null==(i=e.detail)?void 0:i.path)?u:null==(l=e.detail)||null==(a=l.requestConfig)?void 0:a.path,status:null==_?void 0:_.status,statusText:null==_?void 0:_.statusText,response:C(null==_?void 0:_.responseText),parameterKeys:(d=p)?d instanceof FormData?Array.from(d.keys()):Object.keys(d):[],hasProviderFormData:!!(m=p)&&(m instanceof FormData?m.has("form_data"):Object.prototype.hasOwnProperty.call(m,"form_data")),hxTrigger:null==_?void 0:_.getResponseHeader("HX-Trigger"),error:null==(s=e.detail)?void 0:s.error})}function y(e){let t=k(e);t&&b(t,!1)}function b(e,t){let n=e.querySelector('[type="submit"]');
1n&&(n.disabled=t)}function k(e){var t,n;for(let r of[null==(t=e.detail)?void 0:t.elt,null==(n=e.detail)?void 0:n.target,e.target instanceof Element?e.target:null].filter(Boolean)){let e=r instanceof HTMLFormElement?r:r.closest("form.signals-form");if(null==e?void 0:e.classList.contains("signals-form"))return e}return null}function S(e,t){return k(e)===t}async function A(e){let{form:t,formId:n,formElementId:r,setupDelayMs:o=400,followupDelayMs:i=200}=e;await (0,d._)(),await (0,u.YL)(2e3);try{(0,u.we)()}catch(e){console.error("Failed to prepare Signals follow-up form.",e)}return o>0&&await new Promise(e=>setTimeout(e,o)),(0,u.WB)(n,r),i>0&&await new Promise(e=>setTimeout(e,i)),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e4;return new Promise(n=>{let r=!1,o=e=>{r||(r=!0,i(),n(e))},i=()=>{window.clearTimeout(s),document.removeEventListener("htmx:afterRequest",a),document.removeEventListener("htmx:sendError",l),document.removeEventListener("htmx:responseError",l),document.removeEventListener("htmx:timeout",l)},a=t=>{if(!S(t,e))return;let n=t.detail;o(!!(null==n?void 0:n.successful))},l=t=>{S(t,e)&&o(!1)},s=window.setTimeout(()=>o(!1),t);document.addEventListener("htmx:afterRequest",a),document.addEventListener("htmx:sendError",l),document.addEventListener("htmx:responseError",l),document.addEventListener("htmx:timeout",l);try{e.requestSubmit?e.requestSubmit():e.dispatchEvent(new Event("submit",{bubbles:!0}))}catch(e){o(!1)}})}(t)}let E=new Set(["form_data","recaptcha_assessment_ok","visitor_cookie","session_cookie","packet_code","visitor_token","site_visitor_token","submission_url","referrer","timezone"]);function x(e){let t={};for(let[n,r]of new FormData(e).entries())if(Object.prototype.hasOwnProperty.call(t,n)){let e=t[n];t[n]=Array.isArray(e)?[...e,r]:[e,r]}else t[n]=r;return t}function L(e){if(!e)return{};if(e instanceof FormData){let t={};for(let[n,r]of e.entries())t[n]=r;return t}return e}function C(e){return e&&e.length>500?"".concat(e.slice(0,500),"..."):e}function T(e){let t="".concat(e.slice(0,16),"_cfid");if("granted"!==(0,i.$m)()){let e=q(t);if(e)return e;let n=F();return D(t,n),n}let n=R("".concat(e.slice(0,16),"_cfid")),r=R("_cfid"),o=n||r;if(o)return o;let a=F();return function(e,t){let n="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(encodeURIComponent(e),"=").concat(t,"; Path=/; SameSite=Lax; Max-Age=63072000").concat(n)}(t,a),a}function I(){let e=q("referrer");if(e)return"Direct"===e?"":e;let t=document.referrer||"Direct";return D("referrer",t),"Direct"===t?"":t}function R(e){var t;let n="".concat(encodeURIComponent(e),"=");return null==(t=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(n)))?void 0:t.slice(n.length)}function q(e){try{return window.sessionStorage.getItem(e)}catch(e){return null}}function D(e,t){try{window.sessionStorage.setItem(e,t)}catch(e){}}function F(){return(0,m.nw)(32)}async function P(e,t){var n,i,u;let d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{newsletterKey:m,mailerliteFormId:f,offerType:_,offerLabel:p,formContext:g,formPlacement:v,leadType:h="subscriber",sourceType:w="newsletter_signup",contentType:y,eventId:b,extraFields:k}=d,S=a.Zk,A=T(S),E="visitor_".concat(A,"_").concat(S),x=(0,l.I)({refresh:!0}),L=o.a[t],R=null!=(n=null==L?void 0:L.form_name)?n:r.IF[String(t)],q=window.location.href,D=I()||void 0,F=(0,s.t0)(),P=(0,s.gR)(),O={email:e,lead_type:h,source_type:w,org_source:null!=(i=null==L?void 0:L.org_source)?i:"marketing",content_type:null!=(u=null!=y?y:null==L?void 0:L.content_type)?u:"landing_page",page_url:q,submission_url:q,...D&&{referrer:D},...m&&{newsletter:m},...f&&{mailerlite_form_id:f},...R&&{form_name:R},...F&&{ga_client_id:F},...P&&{ga_session_id:P},session_id:(0,s.u0)(),event_id:null!=b?b:(0,c._V)("newsletter_signup"),...x,offer_type:null!=_?_:null==L?void 0:L.offer_type,offer:null!=p?p:null==L?void 0:L.offer,...g&&{form_context:g},...v&&{form_placement:v},...k},Z=new URLSearchParams;Z.set("form_data",JSON.stringify(O)),Z.set("recaptcha_assessment_ok","true"),Z.set("packet_code",S),Z.set("visitor_cookie",E),Z.set("visitor_token",E),Z.set("site_visitor_token",E),Z.set("session_cookie",A),Z.set("submission_url",q),D&&Z.set("referrer",D),Z.set("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);let W=(0,r.Tk)("".concat(a.ao,"/api/core/web/forms/").concat(t,"/submit"));try{let e=await fetch(W,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Z,keepalive:!0});if(!e.ok)return console.error("[Signals newsletter mirror] Submission rejected.",{formId:t,status:e.status,statusText:e.statusText,response:C(await e.text().catch(()=>void 0))}),!1;return!0}catch(e){return console.error("[Signals newsletter mirror] Submission failed.",{formId:t,error:e}),!1}}}}]);

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.