"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingSelectiveSyncCollections-admin"],{"0Q9Y":function(e,t,c){c.d(t,{R:function(){return o}});var n=c("oYSA"),l=c("ALIA");function o(e){var t=e.label,c=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:t,checked:!!u.selectiveSyncAll||u[c],onChange:function(e){shopwp.general[c]=e,shopwp.general.selectiveSyncCollections||shopwp.general.selectiveSyncProducts?r({type:"UPDATE_SETTING",payload:{key:c,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}})}})}},AfG0:function(e,t,c){c.r(t);var n=c("0Q9Y");t.default=function(){return React.createElement(n.R,{label:wp.i18n.__("Collections","shopwp"),checkboxSettingName:"selectiveSyncCollections"})}}}]);