import{_ as e}from"./index99.js?v=1763625242172";import{m as s,U as a,V as t,c as n,x as o,p as i}from"./page_layout.js?v=1763625242172";import{u as l}from"./public.js?v=1763625242172";import{L as r}from"./like.js?v=1763625242172";import{k as c,P as p,am as m,r as d,R as u,S as x,U as f,a4 as _,X as b,a3 as v,V as j,aj as y,j as k}from"./vue.js?v=1763625242172";import{aC as C}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const F={class:"banner"},w={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"},U=i(c({__name:"submit",props:{entryId:{}},emits:["close"],setup(i,{emit:c}){const{t:U}=p(),P=m(),R=c;let S="";const V=i,q=d(""),B=()=>{const e=P.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},H=async()=>{""!==q.value.trim()?(await a({questions:{[S]:q.value},submit_entry:V.entryId||B()}),R("close"),L()):s.error(U("Component.Feedback.index_5"))},L=()=>{const e=l({hideClose:!0,content:()=>b("div",{class:"flex-center flex-col w-230px h-124px bg-#F1F9F3"},[b("img",{class:"w-56px",src:r},null),b("div",{class:"mt-16px"},[U("Component.Feedback.index_6")])])});setTimeout((()=>{e.hide()}),3e3)};return(async()=>{const{message:e}=await t();n(e)&&o(e.res)&&e.res.length>0&&(S=e.res[0].id)})(),(s,a)=>{const t=e,n=C;return u(),x("div",null,[f("div",F,[f("div",w,[f("span",g,_(s.$t("Component.Feedback.index_1")),1)])]),f("div",h,[b(t,{value:j(q),"onUpdate:value":a[0]||(a[0]=e=>y(q)?q.value=e:null),rows:6},{default:v((()=>[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,[b(n,{type:"primary",class:"w-120px",onClick:H},{default:v((()=>[k(_(s.$t("Public.Btn.Submit")),1)])),_:1})])])])}}}),[["__scopeId","data-v-3be49a6f"]]);export{U as default};
