import{P as c}from"./app-BGgVpkqZ.js";import{i as f,c as h}from"./app-Ba7ZqSpq.js";import{_ as k}from"./app-DFulsyXy.js";import{_ as y,a as r}from"./app-PrSv7rSt.js";import{_ as v}from"./app-CVQkwzlf.js";import{_ as V}from"./app-BvNab7uU.js";import{_ as T}from"./app-FlPLZh9D.js";import{_ as x}from"./app-DWUwCFNm.js";import{D as w}from"./app-ZeVDYyDS.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-SC54XQDl.js";import"./app-yUrwy8EY.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-DgoEZtNT.js";import"./app-Ch8j4za4.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-CCkWSX4Q.js";import"./app-Ciy_QwIW.js";import"./app-DoVkxbmA.js";import"./app-C2mBgI5Z.js";import"./app-CNHjdV6U.js";import"./app-T1ysvErZ.js";import"./app-BxWqoSpr.js";import"./app-DZaelcLs.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};
