import{P as c}from"./app-Doj30F-n.js";import{i as f,c as h}from"./app-a6cKceqE.js";import{_ as k}from"./app-CQ-vNlMj.js";import{_ as y,a as r}from"./app-DxbU-QrX.js";import{_ as v}from"./app-Ufpj4Ll4.js";import{_ as V}from"./app-P3j8-l6V.js";import{_ as T}from"./app-DwtlHtUX.js";import{_ as x}from"./app-CignoBaV.js";import{D as w}from"./app-7GBSHA5C.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-BYcXwl4U.js";import"./app-Ceh-tphd.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-CNARLpXE.js";import"./app-SxAW7vhf.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-BDgR0DSb.js";import"./app-iaXXZg9Y.js";import"./app-D2Wz0BUQ.js";import"./app-D3zbrzdO.js";import"./app-CrjU8lgK.js";import"./app-DY-0PadZ.js";import"./app-0YmIdYYs.js";import"./app-BHl80pFw.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};
