import{e as a,L as r}from"./livewire.esm-CJWicNdV.js";import{f as l,m as s}from"./fetch-SQBjdvMm.js";function d(i={text:null,message:"Copied!"}){return{onClipboard:!1,text:i.text,message:i.message||"Copied!",init(){this.message=this.$el.dataset.message||this.message},clipboard:{"@click"(){this.onClipboardClick()}},copy(){let e=this.text;typeof e=="function"&&(e=e()),typeof e=="object"&&(e=JSON.stringify(e));let n=()=>{setTimeout(()=>{this.onClipboard=!1},500)};window.navigator.clipboard.writeText(e).then(n),window.toastr.info(this.message)},onClipboardClick(){this.onClipboard=!0,this.copy()}}}window.fetchEventSource=l;const t=window.Alpine||a;window.Alpine=t;const o=window.Livewire||r;window.Livewire=o;t.plugin(s);console.log("chatbotApp yüklendi");document.addEventListener("alpine:init",()=>{t.data("clipboard",i=>d(i))});window.__livewireStarted||(window.__livewireStarted=!0,o.start());document.querySelectorAll("[magic-load]").forEach(function(i){i.removeAttribute("magic-load")});
