import{d as g,m as f,n,l as t,q as x,v as w,x as l,y as C,u as o,z as m,A as D,F as k}from"./index.CPcBO1Os.js";import{F as T}from"./index.IU6dhWj-.js";import{C as _}from"./index.Dr7Zpwbo.js";import{T as b}from"./TextArea.fKKEiWxr.js";import"./index.DX3sx_CG.js";const F={class:"description"},z=g({__name:"DisclaimerField",props:{showDisclaimer:{},disclaimerText:{},fieldDescription:{default:null}},emits:{checkboxChange:s=>!0,textChange:s=>!0},setup(s,{emit:d}){const{Item:r}=T,{__:a}=window.wp.i18n,i=d,h=a("AI-generated content disclaimer text to be shown.","storeagent-ai-for-woocommerce"),p=e=>{i("checkboxChange",e)},u=e=>{i("textChange",e)};return(e,y)=>(n(),f(k,null,[t(o(r),{name:"showDisclaimer",class:"show-disclaimer-control product-questions-ai-control"},{default:l(()=>[t(o(_),{checked:e.showDisclaimer==="yes",size:"large",onChange:p},null,8,["checked"]),C(" "+m(o(a)("Show Disclaimer","storeagent-ai-for-woocommerce")),1)]),_:1}),e.showDisclaimer==="yes"?(n(),x(o(r),{key:0,label:o(a)("Disclaimer Text","storeagent-ai-for-woocommerce"),name:"disclaimerText",class:"disclaimer-text-control product-questions-ai-control"},{default:l(()=>{var c;return[t(o(b),{value:e.disclaimerText,size:"large",placeholder:e.disclaimerText,onChange:u},null,8,["value","placeholder"]),D("p",F,m((c=e.fieldDescription)!=null?c:o(h)),1)]}),_:1},8,["label"])):w("",!0)],64))}});export{z as _};
