!function(){function e(e,l){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);l&&(n=n.filter((function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable}))),o.push.apply(o,n)}return o}function l(l){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?e(Object(t),!0).forEach((function(e){o(l,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):e(Object(t)).forEach((function(e){Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(t,e))}))}return l}function o(e,l,o){return(l=function(e){var l=function(e,l){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,l||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(e)}(e,"string");return"symbol"==typeof l?l:l+""}(l))in e?Object.defineProperty(e,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[l]=o,e}System.register(["../../../../../common/index-legacy.sLMPZLm9.js","../../index-legacy.DvuPgGlN.js","../controls/SaveSettingsButton-legacy.BQr5NYJy.js","../../../../../common/index-legacy.DHtJIoVo.js","../../../../../common/index-legacy.C8qPBgfJ.js","../../../../../common/_plugin-vue_export-helper-legacy.DgAO6S8O.js","../../../../../common/vue-router-legacy.BDEEsdoO.js","../../../../../common/index-legacy.DjPCm-Xr.js","../../../../../common/index-legacy.NSn_Zdym.js","../../../../../common/index-legacy.DWOuG56R.js","../../../../../common/index-legacy.5srSrAru.js","../../../../../common/_getTag-legacy.CG1mexpa.js","../../../../../common/useState-legacy.VsKoz4di.js","../../../../../common/devWarning-legacy.QuSHKYiX.js","../../../../../common/compact-item-legacy.3e1PWnds.js","../../../../../common/Compact-legacy.f4toi_Qn.js","../../../../../common/FormItem-legacy.DRu7Mn0x.js","../../../../../common/CloseCircleFilled-legacy.BtcBil9y.js","../../../../../common/ExclamationCircleFilled-legacy.DVIetP3f.js","../../../../../common/index-legacy.C24Ds00T.js","../../../../../common/zoom-legacy.CFu7WACM.js","../../../../../common/Portal-legacy.CTGz0EZY.js","../../../../../common/hasIn-legacy.C01pVUrr.js","../../../../../common/isPlainObject-legacy.b9Xnwzab.js","../../../../../common/responsiveObserve-legacy.Cp4ckrH0.js","../../../../../common/useFlexGapSupport-legacy.Cqw9vJNn.js","../../../../../common/styleChecker-legacy.DbF8pppQ.js","../../../../../common/collapseMotion-legacy.CQR8omUZ.js","../../../../../common/toNumber-legacy.CH-qXa3F.js","../../../../../common/QuestionCircleOutlined-legacy.DWOoL2Tg.js","../../../../../common/FormItemContext-legacy.DK_xJlQ4.js","../../../../../common/_arrayIncludes-legacy.b4_s4n0c.js","../../../../../common/_flatRest-legacy.MZIlKOPG.js","../../../../../common/debounce-legacy.BaL6IDHJ.js","../../../../../common/Checkbox-legacy.BHggdcsI.js"],(function(e,o){"use strict";var n,t,a,c,r,i,s,m,u,g,d,y,f,p,j,v,b;return{setters:[e=>{n=e.d,t=e.e,a=e.R,c=e.q,r=e.n,i=e.x,s=e.l,m=e.u,u=e.A,g=e.z},e=>{d=e.u,y=e.s,f=e.c},e=>{p=e.default},e=>{j=e.F},e=>{v=e.C},e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var o=document.createElement("style");o.textContent=".image-alt-tags-ai[data-v-220f77d1] .ant-checkbox-group{display:flex;flex-direction:column;gap:12px}.image-alt-tags-ai[data-v-220f77d1] .ant-checkbox-group .ant-checkbox-wrapper{margin:0}\n/*$vite$:1*/",document.head.appendChild(o);const h={class:"description"};e("default",b(n({__name:"ImageAltTagsAi",setup(e){const{Item:o}=j,{__:n}=window.wp.i18n,b=d(),{agent:x}=y(b),w=t(l(l({},x.value.settings),{},{default_fields:x.value.settings.default_fields||["alt"]})),O=t(a.IDLE),_=[{label:n("Alt Text","storeagent-ai-for-woocommerce"),value:"alt"},{label:n("Caption","storeagent-ai-for-woocommerce"),value:"caption"},{label:n("Title","storeagent-ai-for-woocommerce"),value:"title"},{label:n("Description","storeagent-ai-for-woocommerce"),value:"description"}],{onFinish:P}=f(O),C=e=>{P(e)};return(e,l)=>(r(),c(m(j),{model:w.value,layout:"vertical",class:"image-alt-tags-ai",onFinish:C},{default:i((()=>[s(m(o),{label:m(n)("Default Fields to Generate","storeagent-ai-for-woocommerce"),name:"default_fields",class:"default-fields-control image-alt-tags-ai-control"},{default:i((()=>[s(m(v).Group,{value:w.value.default_fields,"onUpdate:value":l[0]||(l[0]=e=>w.value.default_fields=e),options:_},null,8,["value"]),u("p",h,g(m(n)("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"]),s(p,{saving:O.value},null,8,["saving"])])),_:1},8,["model"]))}}),[["__scopeId","data-v-220f77d1"]]))}}}))}();
