import{b as v,_,l as b}from"./queues-DTF-OYKT.js";import"./live2d-zip-loader-B0dHqi7c.js";import{d as k,g as r,c as o,o as s,a as e,b as y,e as x,D as i,bx as p,by as c}from"./index-3zUf4P5r.js";import"./index-DnzAb4Lk.js";import"./queue-DplNDf53.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},h={flex:"","flex-row":"","gap-2":""},M={"rounded-lg":"",bg:"neutral-100 dark:neutral-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},D={"w-full":"","rounded-lg":"",bg:"neutral-100 dark:neutral-700","p-2":""},E={"w-full":"","rounded-lg":"",bg:"neutral-100 dark:neutral-700","p-2":""},Q=k({__name:"delays",setup(S){const t=r(""),m=r([]),f=r([]),u=r(!1),d=v();d.onHandlerEvent("delay",a=>{f.value.push(a)});function g(){u.value=!0;const a=t.value.split("");for(const l of a)d.add(l);d.add(b),t.value="",u.value=!1}return(a,l)=>(s(),o("div",w,[e("div",h,[y(x(_),{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=n=>t.value=n),placeholder:"Message",p:"2",bg:"neutral-100 dark:neutral-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:g},null,8,["modelValue"]),e("button",M,i(u.value?"Processing...":"Send"),1)]),e("div",V,[e("div",D,[l[1]||(l[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(s(!0),o(p,null,c(m.value,n=>(s(),o("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",E,[l[2]||(l[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(s(!0),o(p,null,c(f.value,n=>(s(),o("div",{key:n},[e("div",null,i(n)+"s",1)]))),128))])])]))}});export{Q as default}; | |