import{_ as e}from"./index100.js?v=1753954525509";import{m as s,du as a,dv as t,c as n,w as o,e as i}from"./page_layout.js?v=1753954525509";import{u as l}from"./public.js?v=1753954525509";import{L as r}from"./like.js?v=1753954525509";import{k as c,P as p,aj as m,r as d,U as u,V as x,W as f,a3 as _,Q as v,a2 as b,X as j,ah as y,j as k}from"./vue.js?v=1753954525509";import{ay as w}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const F={class:"banner"},C={class:"banner-title"},g={class:"ml-8px"},h={class:"pt-24px px-32px"},$={class:"mt-16px text-primary"},I={class:"flex justify-center mt-20px"},P=i(c({__name:"submit",props:{entryId:{}},emits:["close"],setup(i,{emit:c}){const{t:P}=p(),U=m(),q=c;let B="";const H=i,L=d(""),Q=()=>{const e=U.currentRoute.value.path,s={site:502,wp:503,ftp:504,database:505,docker:506,security:507,waf:508,mail:509,files:510,logs:511,ssl_domain:512,aapanelsub:513,terminal:514,crontab:515,softs:516,setting:517,control:518};for(const a in s)if(e.includes(a))return s[a];return 501},R=async()=>{""!==L.value.trim()?(await a({questions:{[B]:L.value},submit_entry:H.entryId||Q()}),q("close"),S()):s.error(P("Component.Feedback.index_5"))},S=()=>{const e=l({hideClose:!0,content:()=>v("div",{class:"flex-center flex-col w-230px h-124px bg-#F1F9F3"},[v("img",{class:"w-56px",src:r},null),v("div",{class:"mt-16px"},[P("Component.Feedback.index_6")])])});setTimeout((()=>{e.hide()}),3e3)};return(async()=>{const{message:e}=await t();n(e)&&o(e.res)&&e.res.length>0&&(B=e.res[0].id)})(),(s,a)=>{const t=e,n=w;return u(),x("div",null,[f("div",F,[f("div",C,[f("span",g,_(s.$t("Component.Feedback.index_1")),1)])]),f("div",h,[v(t,{value:j(L),"onUpdate:value":a[0]||(a[0]=e=>y(L)?L.value=e:null),rows:6},{default:b((()=>[f("p",null,_(s.$t("Component.Feedback.index_2")),1),f("p",null,_(s.$t("Component.Feedback.index_3")),1)])),_:1},8,["value"]),f("div",$,_(s.$t("Component.Feedback.index_4")),1),f("div",I,[v(n,{type:"primary",class:"w-120px",onClick:R},{default:b((()=>[k(_(s.$t("Public.Btn.Submit")),1)])),_:1})])])])}}}),[["__scopeId","data-v-a01f03a2"]]);export{P as default};
