PageSourceSearch

https://thedataface.com/_app/immutable/chunks/BDDXIiP2.js

js thedataface.com collected 2026-10-02 05:03:43 UTC 2,589 bytes, 1 lines download raw bytes

1import{t as S,b as v}from"./DbfNEfTj.js";import{p as j,j as $,f as A,t as g,a as W,s as b,g as n,l as h,d as w,c as k,r as C,k as L,n as D}from"./DkmZHVNP.js";import{i as I}from"./V8rEgMwB.js";import{a as E}from"./CBDI0X57.js";import{b as O}from"./CBqj6qq8.js";import{o as q}from"./Dnn-F7yo.js";import{S as B}from"./BKFMpz2K.js";import{h as F,c as G,a as H}from"./1Bq5VeIp.js";var R=S(`<p class="body-2">The scheduler didn't load. You can <a class="underline">book on Calendly directly</a>.</p>`),U=S('<div class="calendly-embed w-full svelte-xco3l6"><noscript></noscript></div> <!>',1);function Z(x,c){j(c,!0);const m=w(()=>c.data.calendly),u=w(()=>c.data.booking_type??"discovery");let i=h(void 0),p=h(!1);const f="https://assets.calendly.com/assets/external/widget.js";function M(){return window.Calendly?Promise.resolve():new Promise((e,a)=>{const r=document.querySelector(`script[src="${f}"]`),t=r||document.createElement("script");t.addEventListener("load",()=>e()),t.addEventListener("error",()=>a(new Error("Calendly widget failed to load"))),r||(t.src=f,t.async=!0,document.head.appendChild(t))})}function _(e){const a=window;a.dataLayer=a.dataLayer||[],a.dataLayer.push(e)}function y(e){var r,t,d,l,o;if(e.origin!=="https://calendly.com")return;const a=(r=e.data)==null?void 0:r.event;if(a==="calendly.event_scheduled"){if(F()){const s=location.protocol==="https:"?"; Secure":"";document.cookie=`df_booking_tracked=1; Max-Age=600; Path=/; SameSite=Lax${s}`}_({event:"calendly_booking_complete",booking_type:n(u),calendly:{event_uri:(d=(t=e.data.payload)==null?void 0:t.event)==null?void 0:d.uri,invitee_uri:(o=(l=e.data.payload)==null?void 0:l.invitee)==null?void 0:o.uri}})}else a==="calendly.date_and_time_selected"&&_({event:"calendly_time_selected",booking_type:n(u)})}async function P(){if(!n(i))return;G();const e=H();try{await M()}catch{L(p,!0);return}n(i).innerHTML="",window.Calendly.initInlineWidget({url:`${n(m).url}?primary_color=00ccb3&hide_gdpr_banner=1`,parentElement:n(i),utm:Object.fromEntries(Object.entries({utmSource:e.utm_source,utmMedium:e.utm_medium,utmCampaign:e.utm_campaign,utmContent:e.utm_content,utmTerm:e.utm_term}).filter(([,a])=>a))})}q(()=>(window.addEventListener("message",y),()=>window.removeEventListener("message",y))),$(()=>{n(i)&&P()}),B(x,{padBottom:!0,children:(e,a)=>{var r=U(),t=A(r);k(t),C(t),O(t,o=>L(i,o),()=>n(i));var d=b(t,2);{var l=o=>{var s=R(),T=b(k(s));D(),C(s),g(()=>E(T,"href",n(m).url)),v(o,s)};I(d,o=>{n(p)&&o(l)})}g(()=>E(t,"aria-label",`${n(m).label??""} scheduling`)),v(e,r)},$$slots:{default:!0}}),W()}export{Z as _};

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.