PageSourceSearch

https://ventbird.com/_nuxt/iYYl_WCL.js

js ventbird.com collected 2026-09-25 20:14:14 UTC 2,346 bytes, 1 lines download raw bytes

1import{u as E}from"./DAAEaN0I.js";import{aD as C,aE as y,aF as a,aG as u,bp as S,J as k,o as _,aA as h,a7 as R,q as O,i as P,g as D,ay as p,e as b,f as g,C as v}from"./DEyb-Cjd.js";y({id:u(),runtimeConfig:a(y({locale:a(u())})),tokenId:a(u()),cookieDomain:a(u()),cookieExpiry:a(S())});function $(f){let c=Promise.resolve();return C("crisp",r=>({scriptInput:{src:"https://client.crisp.chat/l.js"},schema:void 0,scriptOptions:{use(){const e=i=>{var n;return((n=window.$crisp)==null?void 0:n[i])||((...s)=>{c.then(()=>window.$crisp[i](...s))})};return{push:window.$crisp.push,do:e("do"),set:e("set"),get:e("get"),on:e("on"),off:e("off"),config:e("config"),help:e("help")}}},clientInit:()=>{var e;window.$crisp=[],window.CRISP_WEBSITE_ID=r.id,(e=r.runtimeConfig)!=null&&e.locale&&(window.CRISP_RUNTIME_CONFIG={locale:r.runtimeConfig.locale}),r.cookieDomain&&(window.CRISP_COOKIE_DOMAIN=r.cookieDomain),r.cookieExpiry&&(window.CRISP_COOKIE_EXPIRATION=r.cookieExpiry),r.tokenId&&(window.CRISP_TOKEN_ID=r.tokenId),c=new Promise(i=>{window.CRISP_READY_TRIGGER=i})}}),f)}const x={__name:"ScriptCrisp",props:{trigger:{type:[String,Array,Boolean],required:!1,default:"click"},id:{type:String,required:!0},runtimeConfig:{type:Object,required:!1},tokenId:{type:String,required:!1},cookieDomain:{type:String,required:!1},cookieExpiry:{type:Number,required:!1}},emits:["ready","error"],setup(f,{expose:c,emit:r}){const e=f,i=r,n=k(null),s=E({trigger:e.trigger,el:n}),d=k(!1),m=$({id:e.id,runtimeConfig:e.runtimeConfig,tokenId:e.tokenId,cookieDomain:e.cookieDomain,cookieExpiry:e.cookieExpiry,scriptOptions:{trigger:s}}),{onLoaded:w,status:l}=m;e.trigger==="click"&&w(o=>{o.do("chat:open")}),c({crisp:m});let t;_(()=>{h(l,o=>{o==="loaded"?(t=new MutationObserver(()=>{document.getElementById("crisp-chatbox")&&(d.value=!0,i("ready",m),t.disconnect())}),t.observe(document.body,{childList:!0,subtree:!0})):o==="error"&&i("error")})}),R(()=>{t==null||t.disconnect()});const I=O(()=>({...s instanceof Promise?s.ssrAttrs||{}:{}}));return(o,q)=>(D(),P("div",v({ref_key:"rootEl",ref:n,style:{display:d.value?"none":"block"}},I.value),[p(o.$slots,"default",{ready:d.value}),g(l)==="awaitingLoad"?p(o.$slots,"awaitingLoad",{key:0}):g(l)==="loading"||!d.value?p(o.$slots,"loading",{key:1}):g(l)==="error"?p(o.$slots,"error",{key:2}):b("",!0)],16))}};export{x 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.