System.register(["./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172"],(function(e,t){"use strict";var a,l,i,s,u,n,r,d,_,o,c,p,f,x,m,v,g,h,b,y,S,k;return{setters:[e=>{a=e._},e=>{l=e._},e=>{i=e.c},e=>{s=e.aG,u=e.Y},e=>{n=e.au,r=e.dP,d=e._,_=e.aC},e=>{o=e.k,c=e.P,p=e.t,f=e.r,x=e.e,m=e.R,v=e.S,g=e.X,h=e.a3,b=e.U,y=e.V,S=e.j,k=e.a4}],execute:function(){const t={class:"w-300px"},w={class:"w-300px"},$={class:"w-300px"},j={class:"flex flex-col"};e("_",o({__name:"form",props:{site:{}},emits:["changeHotlink"],setup(e,{expose:o,emit:C}){const{t:R}=c(),U=C,E=p(e,"site"),L=f(null),H=x({fix:"",domains:"",return_rule:"",status:!1,http_status:!1}),P={fix:{trigger:["blur","change"],validator:()=>""!==H.fix.trim()||new Error(R("Site.RulesError.index_330"))},return_rule:{trigger:["blur","change"],validator:()=>""!==H.return_rule.trim()||new Error(R("Site.RulesError.index_330"))}},z=()=>{V()},G=()=>{V()},V=async()=>{await(L.value?.validate()),await s({id:E.value.id,name:E.value.name,fix:H.fix,domains:H.domains.trim().split("\n").join(","),return_rule:H.return_rule,status:H.status,http_status:H.http_status}),U("changeHotlink",H.status),X()},X=async()=>{const{message:e}=await u({id:E.value.id,name:E.value.name});i(e)&&(H.fix=e.fix,H.domains=e.domains.split(",").join("\n"),H.return_rule=e.return_rule,H.status=e.status,H.http_status="true"===e.http_status||!0===e.http_status)};return X(),o({init:X}),(e,i)=>{const s=n,u=r,o=d,c=_,p=l,f=a;return m(),v("div",null,[g(p,{ref_key:"formRef",ref:L,class:"px-8px",model:y(H),rules:P},{default:h((()=>[g(u,{label:e.$t("Site.Lable.index_6"),path:"fix"},{default:h((()=>[b("div",t,[g(s,{value:y(H).fix,"onUpdate:value":i[0]||(i[0]=e=>y(H).fix=e),disabled:y(H).status,placeholder:""},null,8,["value","disabled"])])])),_:1},8,["label"]),g(u,{label:e.$t("Site.Lable.index_7")},{default:h((()=>[b("div",w,[g(s,{value:y(H).domains,"onUpdate:value":i[1]||(i[1]=e=>y(H).domains=e),type:"textarea",autosize:{minRows:6,maxRows:6},placeholder:""},null,8,["value"])])])),_:1},8,["label"]),g(u,{label:e.$t("Site.Lable.index_13"),path:"return_rule"},{default:h((()=>[b("div",$,[g(s,{value:y(H).return_rule,"onUpdate:value":i[2]||(i[2]=e=>y(H).return_rule=e),disabled:y(H).status,placeholder:""},null,8,["value","disabled"])])])),_:1},8,["label"]),g(u,{label:" "},{default:h((()=>[b("div",j,[g(o,{checked:y(H).status,"onUpdate:checked":[i[3]||(i[3]=e=>y(H).status=e),z]},{default:h((()=>[S(k(e.$t("Site.Config.index_94")),1)])),_:1},8,["checked"]),g(o,{checked:y(H).http_status,"onUpdate:checked":[i[4]||(i[4]=e=>y(H).http_status=e),G],class:"mt-16px"},{default:h((()=>[S(k(e.$t("Site.Config.index_95")),1)])),_:1},8,["checked"])])])),_:1}),g(u,{label:" ","show-feedback":!1},{default:h((()=>[g(c,{type:"primary",onClick:V},{default:h((()=>[S(k(e.$t("Site.Cert.index_60")),1)])),_:1})])),_:1})])),_:1},8,["model"]),g(f,{class:"mt-20px"},{default:h((()=>[b("li",null,[S(k(e.$t("Site.Config.index_96")),1),i[5]||(i[5]=b("br",null,null,-1)),S(" "+k(e.$t("Site.Config.index_97")),1)]),b("li",null,k(e.$t("Site.Config.index_98")),1),b("li",null,k(e.$t("Site.Config.index_99")),1)])),_:1})])}}}))}}}));
