import{d as v,e as m,R as h,q as w,n as b,x as n,l as a,u as t,A as S,z as A}from"../../../../../common/index.CPcBO1Os.js";import{u as F,s as x,c as C}from"../../index.CjI1uML7.js";import I from"../controls/SaveSettingsButton.o1rTzwsp.js";import{F as p}from"../../../../../common/index.IU6dhWj-.js";import{C as T}from"../../../../../common/index.Dr7Zpwbo.js";import{_ as k}from"../../../../../common/_plugin-vue_export-helper.DlAUqK2U.js";import"../../../../../common/vue-router.jJOaD9p9.js";import"../../../../../common/index.TkDYtvUB.js";import"../../../../../common/index.BA7kDUNA.js";import"../../../../../common/index.B1jVoQr7.js";import"../../../../../common/index.B91jMiUk.js";import"../../../../../common/_getTag.5j88QV3u.js";import"../../../../../common/useState.DXwtWea_.js";import"../../../../../common/devWarning.DpJYEIzv.js";import"../../../../../common/compact-item.BK6dH04p.js";import"../../../../../common/Compact.B3btkLRg.js";import"../../../../../common/FormItem.NydyFVv4.js";import"../../../../../common/CloseCircleFilled.DsHyRhur.js";import"../../../../../common/ExclamationCircleFilled.CnnwVzET.js";import"../../../../../common/index.hZKuveGx.js";import"../../../../../common/zoom.DosRZx44.js";import"../../../../../common/Portal.B2TrUL41.js";import"../../../../../common/hasIn.DnK4nlor.js";import"../../../../../common/isPlainObject.BQqFxvSi.js";import"../../../../../common/responsiveObserve.DNGOudTN.js";import"../../../../../common/useFlexGapSupport.D-9C83pe.js";import"../../../../../common/styleChecker.BitQvUMr.js";import"../../../../../common/collapseMotion.PLgfPpML.js";import"../../../../../common/toNumber.DNMdcsO5.js";import"../../../../../common/QuestionCircleOutlined.CUT5E8l_.js";import"../../../../../common/FormItemContext.Bd2ze9Fn.js";import"../../../../../common/_arrayIncludes.BXKtlcwP.js";import"../../../../../common/_flatRest.CRlGMFOI.js";import"../../../../../common/debounce.vmjPqLDa.js";import"../../../../../common/Checkbox.D1KoUtHv.js";const B={class:"description"},D=v({__name:"ImageAltTagsAi",setup(y){const{Item:c}=p,{__:e}=window.wp.i18n,u=F(),{agent:i}=x(u),o=m({...i.value.settings,default_fields:i.value.settings.default_fields||["alt"]}),r=m(h.IDLE),f=[{label:e("Alt Text","storeagent-ai-for-woocommerce"),value:"alt"},{label:e("Caption","storeagent-ai-for-woocommerce"),value:"caption"},{label:e("Title","storeagent-ai-for-woocommerce"),value:"title"},{label:e("Description","storeagent-ai-for-woocommerce"),value:"description"}],{onFinish:d}=C(r),g=s=>{d(s)};return(s,l)=>(b(),w(t(p),{model:o.value,layout:"vertical",class:"image-alt-tags-ai",onFinish:g},{default:n(()=>[a(t(c),{label:t(e)("Default Fields to Generate","storeagent-ai-for-woocommerce"),name:"default_fields",class:"default-fields-control image-alt-tags-ai-control"},{default:n(()=>[a(t(T).Group,{value:o.value.default_fields,"onUpdate:value":l[0]||(l[0]=_=>o.value.default_fields=_),options:f},null,8,["value"]),S("p",B,A(t(e)("Select which fields should be checked by default when generating image metadata. Users can still change these selections in the generation modal.","storeagent-ai-for-woocommerce")),1)]),_:1},8,["label"]),a(I,{saving:r.value},null,8,["saving"])]),_:1},8,["model"]))}}),fe=k(D,[["__scopeId","data-v-220f77d1"]]);export{fe as default};
