import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{u as t}from"./public.js?v=1763625242172";import{d as a}from"./site.js?v=1763625242172";import{u as s}from"./index238.js?v=1763625242172";import{a as i,_ as o}from"./index.vue_vue_type_script_setup_true_lang14.js?v=1763625242172";import{k as d,P as n,e as r,R as l,S as p,X as m,a3 as u,U as _,V as c}from"./vue.js?v=1763625242172";import{a4 as f,m as x,h as P}from"./common.js?v=1763625242172";import{a6 as j}from"./page_layout.js?v=1763625242172";import{dP as v}from"./naive.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const y={class:"p-20px"},w={class:"w-180px"},b=d({__name:"expired",props:{data:{}},setup(d,{expose:b}){const{t:h}=n(),H=d,{rows:S}=H.data,g=s(),k=r({edate:null}),R=new Date;R.setHours(0,0,0,0);const C=e=>f(e,x(R,1)),M=async e=>{const t=k.edate?P(k.edate,"yyyy-MM-dd"):"0000-00-00";return await a({id:e.id,edate:t},!1)},U=()=>{g.setRefresh(!0),t({title:h("Site.PHP.index_71"),width:440,footer:!0,component:o,data:{title:h("Site.PHP.index_70"),data:S,status:"done",columns:[{key:"name",title:h("Site.TableRow.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return b({onConfirm:({hide:e})=>{t({title:h("Site.PHP.index_70"),hideClose:!0,data:{title:h("Site.PHP.index_70"),api:M,data:S,callback:U},component:i}),e()}}),(t,a)=>{const s=j,i=v,o=e;return l(),p("div",y,[m(o,null,{default:u((()=>[m(i,{label:t.$t("Site.PHP.index_25"),"show-feedback":!1},{default:u((()=>[_("div",w,[m(s,{value:c(k).edate,"onUpdate:value":a[0]||(a[0]=e=>c(k).edate=e),type:"date",actions:null,"is-date-disabled":C},null,8,["value"])])])),_:1},8,["label"])])),_:1})])}}});export{b as default};
