import{o as r,c as s,b as t,t as i,a4 as c,e as d,n as m}from"./app-13978987.js";const b=t("div",{class:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full bg-primary-400 bg-opacity-10 text-primary-500"},[t("i",{class:"bx bx-plus text-2xl"})],-1),p={class:"mt-2 font-semibold lg:text-lg"},u={key:0,class:"absolute bottom-2 mx-auto w-11/12"},g={class:"whitespace-nowrap text-[10px] leading-3"},f={__name:"CreatePostCard",props:{classes:{type:String,default:"h-96 min-w-[18rem]"},text:{type:String,default:"Create Post"},percentage:{type:Number,default:0}},emits:["action"],setup(e,{emit:n}){const o=n;return(l,a)=>(r(),s("button",{onClick:a[0]||(a[0]=x=>o("action")),class:m([e.classes,"relative flex flex-col items-center justify-center rounded-2xl border border-dashed border-primary-200 bg-primary-400/10 dark:bg-primary-700/10"])},[b,t("p",p,i(e.percentage>0?l.trans("Uploading..."):e.text),1),e.percentage>0?(r(),s("div",u,[t("div",{style:c({width:`${e.percentage}%`}),class:"h-3 w-1/2 rounded-full border border-dashed border-white bg-primary-600 transition-width"},[t("p",g,i(e.percentage)+" %",1)],4)])):d("",!0)],2))}};export{f as _};
