import{P as c}from"./app-CyTk3GnO.js";import{i as f,c as h}from"./app-DckefXYL.js";import{_ as k}from"./app-MnSDCF4P.js";import{_ as y,a as r}from"./app-DntYVxd7.js";import{_ as v}from"./app-DPkDcD7h.js";import{_ as V}from"./app-CK7oTdUW.js";import{_ as T}from"./app-BbRQPmFH.js";import{_ as x}from"./app-COct4tsy.js";import{D as w}from"./app-Cx7ENVlu.js";import{o,c as p,w as i,b as n,a as t,u as s,g as d,f as u,F as D,D as N,t as _,h as m}from"./app-DnroACXc.js";import"./app-CUqfl6on.js";import"./app-BJhJ7lM8.js";import"./app-Dd07dUxy.js";import"./app-CYYQ_Zep.js";import"./app-Dpl5YSiv.js";import"./app-CF8nmC-F.js";import"./app-NVAx7Sc3.js";import"./app-CF0qXH5Q.js";import"./app-xECxwo4T.js";import"./app-Do8DhyKT.js";import"./app-B8VsrFxM.js";import"./app-B09rlSqG.js";import"./app-LqsmzyUT.js";import"./app-DFWP-E91.js";import"./app-z7Z_Uo-k.js";import"./app-B4bUdtyo.js";function $(){f(this)}const P=t("header",null,"修改申请任务",-1),S=["value"],g=["value"],U=["value"],B={key:0},C=t("td",{class:"title"},"选择DNS服务商 *",-1),R={key:0},b=t("p",{class:"comment"},"用于自动创建域名解析记录。",-1),I={key:1},F=t("td",null,"顶级域名 *",-1),L=t("p",{class:"comment"},"用于在DNS服务商账号中操作解析记录的域名，比如 example.com，不要输入二级或别的多级域名。",-1),E=t("td",null,"证书域名列表 *",-1),H={class:"comment"},J={key:0},O={key:1},j=t("td",null,"自动续期",-1),q=t("p",{class:"comment"},"选中后，表示在免费证书临近到期之前尝试自动续期。",-1),yt={__name:"updateTaskPopup",setup(z){const e=h(new $);return(A,l)=>(o(),p(c,null,{default:i(()=>[P,n(k,{action:"$",onSuccess:s(e).success},{default:i(()=>[t("input",{type:"hidden",name:"taskId",value:s(e).task.id},null,8,S),t("input",{type:"hidden",name:"acmeUserId",value:s(e).task.acmeUser.id},null,8,g),t("input",{type:"hidden",name:"authType",value:s(e).task.authType},null,8,U),n(w,null,{default:i(()=>[t("tbody",null,[s(e).task.authType=="dns"?(o(),d("tr",B,[C,t("td",null,[s(e).providers.length>0?(o(),d("div",R,[n(y,{name:"dnsProviderId",modelValue:s(e).task.dnsProvider.id,"onUpdate:modelValue":l[0]||(l[0]=a=>s(e).task.dnsProvider.id=a)},{default:i(()=>[n(r,{value:"0"},{default:i(()=>[u("[请选择]")]),_:1}),(o(!0),d(D,null,N(s(e).providers,a=>(o(),p(r,{value:a.id},{default:i(()=>[u(_(a.name)+"（"+_(a.typeName)+"）",1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])])):m("",!0),b])])):m("",!0),s(e).task.authType=="dns"?(o(),d("tr",I,[F,t("td",null,[n(v,{maxlength:"100",name:"dnsDomain",modelValue:s(e).task.dnsDomain,"onUpdate:modelValue":l[1]||(l[1]=a=>s(e).task.dnsDomain=a),class:"w-full"},null,8,["modelValue"]),L])])):m("",!0),t("tr",null,[E,t("td",null,[n(V,{name:"domainsJSON","v-domains":s(e).task.domains,"v-support-wildcard":s(e).task.authType=="dns"},null,8,["v-domains","v-support-wildcard"]),t("p",H,[u("需要申请的证书中包含的域名列表"),s(e).task.authType=="dns"?(o(),d("span",J,"，所有域名必须是同一个顶级域名")):m("",!0),s(e).task.authType=="http"?(o(),d("span",O,"使用HTTP认证方式时，域名中不能含有通配符")):m("",!0),u("。")])])]),t("tr",null,[j,t("td",null,[n(T,{name:"autoRenew",modelValue:s(e).task.autoRenew,"onUpdate:modelValue":l[2]||(l[2]=a=>s(e).task.autoRenew=a)},null,8,["modelValue"]),q])])])]),_:1}),n(x)]),_:1},8,["onSuccess"])]),_:1}))}};export{yt as default};
