import{s as i,c as n,d,v as m,u as t,b as e,t as c,F as _,o as a}from"./app-13978987.js";import{u as h}from"./publishStore-a6d0eb83.js";const p=e("label",{class:"label my-3 text-lg"},"Text ",-1),x={class:"text-end text-xs"},u={class:"mt-4 flex items-center gap-3"},b=["disabled"],f={key:0,class:"my-1.5 mr-px h-5 w-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},C=e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),g=e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),w=[C,g],y={key:1,class:"bx bx-refresh text-2xl"},P=e("span",null,"Regenerate",-1),V={__name:"TextTab",setup(v){const{countWordsAndChars:l}=i(),s=h();return(k,o)=>(a(),n(_,null,[p,d(e("textarea",{"onUpdate:modelValue":o[0]||(o[0]=r=>t(s).brandPostContentPlatform.content=r),class:"textarea min-h-[20rem]",placeholder:"Text"},null,512),[[m,t(s).brandPostContentPlatform.content]]),e("p",x," Characters: "+c(t(l)(t(s).brandPostContentPlatform.content).characters)+" / Words: "+c(t(l)(t(s).brandPostContentPlatform.content).words),1),e("div",u,[e("button",{disabled:t(s).loading.content,type:"button",onClick:o[1]||(o[1]=r=>t(s).generateContent("content")),class:"btn btn-soft-primary w-full"},[t(s).loading.content?(a(),n("svg",f,w)):(a(),n("i",y)),P],8,b)])],64))}};export{V as default};
