import{c as e,v as a,N as s,B as l,e as o,y as t,x as r,Q as d,C as n,z as m,A as u,D as p,ab as i,U as _,ae as f,a9 as c}from"./base-lib.js?v=1761009159";import{k as j}from"./utils-lib.js?v=1761009159";import{a2 as b,a3 as w,a4 as h,j as V,a5 as v,a6 as C,a7 as x,a8 as I,d as U,a9 as g}from"./index432.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index105.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController4.js?v=1761009159";import"./useController5.js?v=1761009159";import"./site.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController6.js?v=1761009159";import"./useMethod5.js?v=1761009159";const k={key:0},y={class:"mt-[1.6rem]"},z=e({__name:"setting-replace-add",setup:(e,{expose:z})=>(z({onConfirm:b}),(e,b)=>{const z=j,A=i,B=_,D=f,F=c;return a(),s(F,{ref_key:"replaceFormRef",ref:I,disabled:t(U),model:t(w),class:"p-[2rem] addfrom",rules:t(g),"label-width":"5rem"},{default:l(()=>[o(A,{label:"原关键词",prop:"oldstr"},{default:l(()=>[o(z,{modelValue:t(w).oldstr,"onUpdate:modelValue":b[0]||(b[0]=e=>t(w).oldstr=e),width:"40rem",placeholder:"请输入要被替换的内容，如：http://www.bt.cn",onInput:t(h)},null,8,["modelValue","onInput"])]),_:1}),o(A,{label:"替换词",prop:"newstr"},{default:l(()=>[o(z,{modelValue:t(w).newstr,"onUpdate:modelValue":b[1]||(b[1]=e=>t(w).newstr=e),width:"40rem",placeholder:"新的内容，如：https://www.bt.cn",onInput:t(h)},null,8,["modelValue","onInput"]),t(V).subs_filter?(a(),r("div",k,[o(D,{class:"mt-[1.6rem]",modelValue:t(v),"onUpdate:modelValue":b[2]||(b[2]=e=>d(v)?v.value=e:null),onChange:t(C)},{default:l(()=>[o(B,{value:"i"},{default:l(()=>b[3]||(b[3]=[n("不区分大小写(",-1),m("span",{class:"font-bold"},"i",-1),n(")",-1)])),_:1,__:[3]}),o(B,{value:"o"},{default:l(()=>b[4]||(b[4]=[n("只替换第一个(",-1),m("span",{class:"font-bold"},"o",-1),n(")",-1)])),_:1,__:[4]}),o(B,{value:"r"},{default:l(()=>b[5]||(b[5]=[n("正则表达式(",-1),m("span",{class:"font-bold"},"r",-1),n(")",-1)])),_:1,__:[5]})]),_:1},8,["modelValue","onChange"]),m("div",y,u(t(x)),1)])):p("",!0)]),_:1})]),_:1},8,["disabled","model","rules"])})});export{z as default};
