1import C from"./chat.8682a188.js";import{v as g,k as y}from"./entry.1ceaf2d7.js";import{j as k,a as c,k as x,b as B,D as q,o as N,W as u,X as p,u as n,a7 as R,a1 as e,a6 as t,N as h,a8 as T,J as E}from"./swiper-vue.774ea002.js";import{_ as V}from"./_plugin-vue_export-helper.c27b6911.js";import"./nuxt-icon.6df70d1f.js";const I="robinhq-widget",S=k({__name:"CmRobin",setup(d){const m=y();function l(){window.__robin&&window.__robin.show()}const v=c(null),_=c(""),b=c(""),a=c(""),f=x(()=>a.value!=="online"?"Contact":"Chat"),{initiatedThirdParty:s}=g();B(s,()=>{w()});function w(){if(!(window!=null&&window.robin_settings)&&s.value){window.robin_settings={callback:(i,r)=>{i==="load"&&setTimeout(()=>{a.value=r.presence},10),i==="user"&&r&&(_.value=r.name,b.value=r.avatar128)}};const o=document.createElement("script");o.async=!0,o.src="https://selfservice.robinhq.com/external/robin/ie85749n.js",document.body.appendChild(o)}}return q(()=>{w()}),N(()=>{var o,i;(o=document==null?void 0:document.getElementById(I))==null||o.remove(),(i=document==null?void 0:document.getElementById("robin_tab"))==null||i.remove(),window.__robin&&delete window.__robin,window.robin_settings&&delete window.robin_settings}),(o,i)=>{const r=C;return u(),p("div",null,[n(s)?(u(),p("div",{key:0,class:R(["robin-hq",{"robin-hq--online":n(a)==="online","robin-hq--offline":n(a)==="offline"}])},[e("button",{id:"robin-button",type:"button",class:"button",onClick:l},[e("span",null,t(n(f)),1),h(r,{class:"icon icon--contact"})])],2)):T("",!0),e("pre",null,"initiatedThirdParty: "+t(n(s)),1),e("pre",null,"status: "+t(n(a)),1),e("pre",null,"data: "+t(n(v)),1),e("pre",null,"label: "+t(n(f)),1),e("pre",null,"name: "+t(n(_)),1),e("pre",null,"avatar: "+t(n(b)),1),e("pre",null,"config: "+t(n(m).public),1)])}}}),j={};function D(d,m){const l=S;return u(),p("div",null,[E(" Cm Robin "),h(l),e("pre",null,t(d.$config.public),1)])}const M=V(j,[["render",D]]);export{M 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.