1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ctq7VWB4.js","./Q6C8zf6a.js"])))=>i.map(i=>d[i]); 2import{_ as T}from"./PPVm8Dsz.js";import M from"./BM7s4kII.js";import{w as L,T as q}from"./CYS1HB83.js";import A from"./sj6y3k22.js";import{u as B,a as j}from"./ClvvPbaP.js";import{l,m as N,N as f,x as V,f as v,o as i,e as o,a as $,b as _,i as H,u as a,w as d,h as u,d as O}from"./Q6C8zf6a.js";import"./D2yG2EH7.js";import"./CTVnN6IM.js";import"./DsD71Nu6.js";import"./CO_9lU0n.js";import"./Bp2H_QBv.js";const R={class:"flex h-full w-full items-center justify-center bg-black bg-opacity-70"},I={class:"pointer-events-auto relative min-h-[20rem] w-full max-w-xl bg-white"},P={class:"flex justify-end"},D={key:0,class:"pointer-events-none absolute top-0 flex h-full w-full items-center justify-center bg-white"},z={__name:"AppSnippetModal",props:{snippet:{required:!0,type:String},title:{type:String,default:null}},emits:["onSubmit"],setup(y,{emit:w}){const h=O(()=>T(()=>import("./Ctq7VWB4.js"),__vite__mapDeps([0,1]),import.meta.url)),n=l(!1),s=y,b=w,r=l(),p=l(!0),g=e=>e.origin==="https://calendly.com"&&e.data.event&&e.data.event.indexOf("calendly.")===0,c=e=>{g(e)&&e.data.event==="calendly.event_scheduled"&&b("onSubmit",{event:"calendly_event_scheduled",type:s.title??""})},x=()=>{f(()=>{r.value.innerHTML=s.snippet,r.value.querySelectorAll("script").forEach(e=>{const t=document.createElement("script");t.innerHTML=e.innerHTML,t.src=e.src,t.onload=()=>{p.value=!1},document.head.appendChild(t)}),window.addEventListener("message",c)})},C=B(),k=j(),{request_demo:m=!1}=k.query;return N(()=>{f(()=>{n.value=m&&s.title.toLowerCase().includes("request demo")})}),V(()=>n.value,()=>{s.snippet&&n.value?(x(),document.body.style.overflow="hidden"):(document.body.style.overflow="",window.removeEventListener("message",c),m&&C.replace({query:null}))}),(e,t)=>{const S=M;return i(),v("div",null,[o("div",{onClick:t[0]||(t[0]=L(E=>n.value=!0,["prevent","stop"]))},[H(e.$slots,"default")]),a(n)?(i(),$(A,{key:0,to:"#modalTarget"},{default:d(()=>[o("div",R,[o("div",I,[o("div",P,[u(S,{"icon-only":"",onClick:t[1]||(t[1]=E=>n.value=!1)},{default:d(()=>[u(a(h))]),_:1})]),u(q,{name:"fade"},{default:d(()=>[a(p)?(i(),v("div",D,[...t[2]||(t[2]=[o("div",{class:"h-20 w-20 animate-spin rounded-full border-8 border-primary-lightest border-t-transparent"},null,-1)])])):_("",!0)]),_:1}),o("div",{ref_key:"snippetContent",ref:r},null,512)])])]),_:1})):_("",!0)])}}},te=Object.assign(z,{__name:"AppSnippetModal"});export{te as default};
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.