1import{_ as n,t as i}from"./Truncate.7cbeefbf.js";import{openBlock as r,createElementBlock as a,createElementVNode as c,normalizeClass as s,toDisplayString as p}from"vue";import"./vendor.44c95208.js";import"./lodash.1527dcd2.js";const l="Chat button clicked",C={name:"CmpChatButton",props:{label:{type:String,required:!0},buttonType:{type:String,default:""}},methods:{isChatAvailable(){return typeof window.FIVN<"u"},openChat(){window.FIVN.open(),i(null,l)},openCookieConsent(){window.Cookiebot.renew(),window.addEventListener("CookiebotOnAccept",this.cookieBotOnAcceptListener)},cookieBotOnAcceptListener(){window.Cookiebot.consent.marketing&&(this.openChat(),window.removeEventListener("CookiebotOnAccept",this.cookieBotOnAcceptListener))}}},d={class:"cmp-chat-button"};function u(m,e,o,b,k,t){return r(),a("div",d,[c("button",{class:s([o.buttonType,"elm-button"]),type:"button",onClick:e[0]||(e[0]=h=>t.isChatAvailable()?t.openChat():t.openCookieConsent())},p(o.label),3)])}const B=n(C,[["render",u]]);export{B 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.