import{B as e,Ot as t,Tt as n,g as r,x as i,y as a}from"./vue.esm-bundler-DcNPjsgv.js";import{t as o}from"./js/plugin-main-js-file-B1a1bVnR.js";var s={name:`CoffeeLoader`,props:{loading:{type:Boolean,default:!1}},data(){return{msgIndex:0,timer:null,messages:[`Brewing your data...`,`Pouring a fresh cup...`,`Warming things up...`,`Steaming ahead...`,`Almost ready to serve...`]}},watch:{loading(e){e?this.start():this.stop()}},methods:{start(){this.msgIndex=Math.floor(Math.random()*this.messages.length),this.timer=setInterval(()=>{this.msgIndex=(this.msgIndex+1)%this.messages.length},2400)},stop(){clearInterval(this.timer),this.timer=null}},mounted(){this.loading&&this.start()},beforeUnmount(){this.stop()}},c={class:`bmc-loader__inner`};function l(o,s,l,u,d,f){return e(),a(`div`,{class:n([`bmc-loader`,{"bmc-loader--visible":l.loading}])},[r(`div`,c,[s[0]||=i(`<div class="bmc-loader__cup" data-v-2ddc6295><svg width="90" height="90" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" data-v-2ddc6295><path class="bmc-steam bmc-steam--1" d="M38 38 C40 30 36 22 38 14" stroke="#C9BFB2" stroke-width="2.5" stroke-linecap="round" data-v-2ddc6295></path><path class="bmc-steam bmc-steam--2" d="M50 36 C52 28 48 20 50 12" stroke="#C9BFB2" stroke-width="2.5" stroke-linecap="round" data-v-2ddc6295></path><path class="bmc-steam bmc-steam--3" d="M62 38 C64 30 60 22 62 14" stroke="#C9BFB2" stroke-width="2.5" stroke-linecap="round" data-v-2ddc6295></path><ellipse cx="50" cy="90" rx="36" ry="5.5" fill="#E8E0D8" data-v-2ddc6295></ellipse><ellipse cx="50" cy="89" rx="30" ry="3.5" fill="#F0E8E0" data-v-2ddc6295></ellipse><path d="M25 42 L25 78 Q25 87 34 87 L66 87 Q75 87 75 78 L75 42 Z" fill="#FAFAF9" stroke="#D6D3D1" stroke-width="1.5" data-v-2ddc6295></path><path d="M27 48 L27 78 Q27 85 34 85 L66 85 Q73 85 73 78 L73 48 Z" fill="#5C3D2E" data-v-2ddc6295></path><path d="M27 48 Q38 44 50 48 Q62 52 73 48" fill="#7B5341" data-v-2ddc6295></path><path d="M47 63 C47 60 50 58 50 61 C50 58 53 60 53 63 C53 66 50 70 50 70 C50 70 47 66 47 63" fill="#7B5341" opacity="0.6" data-v-2ddc6295><animate attributeName="opacity" values="0.4;0.8;0.4" dur="2.5s" repeatCount="indefinite" data-v-2ddc6295></animate></path><path d="M75 50 Q91 50 91 64 Q91 78 75 78" stroke="#D6D3D1" stroke-width="2.5" stroke-linecap="round" data-v-2ddc6295></path></svg></div>`,1),(e(),a(`p`,{class:`bmc-loader__msg`,key:d.msgIndex},t(d.messages[d.msgIndex]),1))])],2)}var u=o(s,[[`render`,l],[`__scopeId`,`data-v-2ddc6295`]]);export{u as t};