"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingSelectiveSyncProducts-admin"],{"0Q9Y":function(e,c,t){t.d(c,{R:function(){return o}});var n=t("oYSA"),l=t("ALIA");function o(e){var c=e.label,t=e.checkboxSettingName,o=React,a=o.useContext,s=(o.useEffect,wp.components.CheckboxControl),p=a(l.Z),i=(0,n.Z)(p,2),u=i[0],r=i[1];return React.createElement(s,{label:c,checked:!!u.selectiveSyncAll||u[t],onChange:function(e){shopwp.general[t]=e,shopwp.general.selectiveSyncCollections||shopwp.general.selectiveSyncProducts?r({type:"UPDATE_SETTING",payload:{key:t,value:e}}):(r({type:"UPDATE_SETTING",payload:{key:"selectiveSyncCollections",value:!0}}),r({type:"UPDATE_SETTING",payload:{key:"selectiveSyncProducts",value:!0}}),shopwp.general.selectiveSyncCollections=!0,shopwp.general.selectiveSyncProducts=!0),e&&r({type:"UPDATE_SETTING",payload:{key:u.selectiveSyncAll,value:!1}})}})}},lx8c:function(e,c,t){t.r(c);var n=t("0Q9Y");c.default=function(){return React.createElement(n.R,{label:wp.i18n.__("Products","shopwp"),checkboxSettingName:"selectiveSyncProducts"})}}}]);