import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{cg as k,p as r,cj as v,cM as H}from"./index-BTglIPU2.js?v=1773287522785";import{u as g}from"./index-CNMkGSax.js?v=1773287522785";import{a as C,_ as $}from"./index.vue_vue_type_script_setup_true_lang-zxYX_mVh.js?v=1773287522785";import{k as B,R as D,e as M,$ as E,Z as R,a0 as s,a9 as d,_ as N,S as c}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as V,ah as j}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{i as A}from"./startOfToday-CAr_5zlJ.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const I={class:"p-20px"},T={class:"w-180px"},O=B({__name:"expired",props:{data:{}},setup(l,{expose:_}){const{t}=D(),p=l,{rows:n}=p.data,m=g(),a=M({edate:null}),i=new Date;i.setHours(0,0,0,0);const u=e=>A(e,k(i,1)),f=async e=>{const o=a.edate?v(a.edate,"yyyy-MM-dd"):"0000-00-00";return await H({id:e.id,edate:o},!1)},x=()=>{r({title:t("Site.PHP.index_70"),hideClose:!0,data:{title:t("Site.PHP.index_70"),api:f,data:n,callback:S},component:C})},S=()=>{m.setRefresh(!0),r({title:t("Site.PHP.index_71"),width:440,footer:!0,component:$,data:{title:t("Site.PHP.index_70"),data:n,status:"done",columns:[{key:"name",title:t("Site.TableRow.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return _({onConfirm:({hide:e})=>{x(),e()}}),(e,o)=>{const P=j,w=V,y=h;return E(),R("div",I,[s(y,null,{default:d(()=>[s(w,{label:e.$t("Site.PHP.index_25"),"show-feedback":!1},{default:d(()=>[N("div",T,[s(P,{value:c(a).edate,"onUpdate:value":o[0]||(o[0]=b=>c(a).edate=b),type:"date",actions:null,"is-date-disabled":u},null,8,["value"])])]),_:1},8,["label"])]),_:1})])}}});export{O as default};
