import{_,k as h,I as D,w as E,j as c,c as p,b as r,n as l,t as g,a1 as k,q as B,v as S,r as i,S as b}from"./index-CIAVq8iD-1776148658686.js";const x={style:{padding:"16px 8px 30px"}},C={style:{height:"100%",display:"flex","align-items":"center","justify-content":"space-around",gap:"4px"}},I={__name:"historySalary",props:{type:{type:String,default:""},long:{type:Boolean,default:!1},date:{type:String,default:""}},emits:["showMore"],setup(u,{emit:f}){const{t:e,locale:d}=h();d.value&&D(d.value);const t=u,n=i(""),s=i(""),o=i(""),v=b(()=>{if(t.type=="In Progress"||t.type==e("in_progress"))return"background: linear-gradient(248deg, #759CFF 5.66%, #3D73FF 42.49%);";if(t.type=="Pending"||t.type==e("pending"))return"background: linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%), linear-gradient(248deg, #759CFF 5.66%, #3D73FF 42.49%);";if(t.type=="Completed"||t.type==e("completed"))return"background: linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%), linear-gradient(248deg, #759CFF 5.66%, #3D73FF 42.49%);";if(t.type=="Out of account"||t.type==e("out_of_account"))return"background: linear-gradient(248deg, #BDBDBD 5.66%, #AEAEAE 42.49%), linear-gradient(248deg, #759CFF 5.66%, #3D73FF 42.49%);"}),m=()=>{console.log("更新展示类型"),t.type=="In Progress"?o.value=e("in_progress"):t.type=="Pending"?o.value=e("pending"):t.type=="Completed"?o.value=e("completed"):t.type=="Out of account"&&(o.value=e("out_of_account"))},F=f,y=()=>{F("showMore")};return E(()=>t.type,a=>{console.log("newType:",a),m(),a=="In Progress"||a==e("in_progress")?(n.value="#EBF1FD",s.value="0.9em",o.value=e("in_progress")):a=="Pending"||a==e("pending")?(n.value="#FEEBEF",s.value="1em",o.value=e("pending")):a=="Completed"||a==e("completed")?(n.value="#E8FAED",s.value="1em",o.value=e("completed")):a=="Out of account"||a==e("out_of_account")?(n.value="#E9E9E9",s.value="0.7em",o.value=e("out_of_account")):(n.value="#EBF1FD",s.value="0.9em",o.value="")},{immediate:!0}),(a,P)=>(c(),p("div",{style:l([{position:"relative",width:"100%","border-radius":"8px"},{background:n.value}])},[r("div",{class:"status-background",style:l(v.value)},[r("div",{style:l([{color:"#fff","font-weight":"600"},{fontSize:s.value}])},g(o.value),5)],4),r("div",x,[r("div",C,[k(a.$slots,"content",{},void 0,!0)]),u.type=="Completed"?(c(),p("div",{key:0,class:"moreBt",onClick:y},g(B(e)("more")),1)):S("",!0)])],4))}},z=_(I,[["__scopeId","data-v-a410875e"]]);export{z as h};
