1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["SettingSyncingProductsQuery-admin"],{"./_tmp/admin/js/app/settings/syncing/products-query.jsx"(e,t,s){s.r(t),s.d(t,{default:()=>r});var n=s("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=s("./npm-packages/@shopwp/wp-ui/src/help-text/index.jsx"),l=s("./_tmp/admin/js/app/settings/_state/context.js"),c=s("./_tmp/admin/js/app/utils/utils-data.js"),i=s("./_tmp/admin/js/app/admin/_state/hooks.js");const r=function(){var e,t,s,r=wp.element.useContext,u=wp.components.TextControl,o=r(l.A),p=(0,n.A)(o,2),d=p[0],m=p[1],y=(0,i.G)();return React.createElement("div",{className:"swp-admin-setting-syncing-query"},null!=d&&null!==(e=d.syncByCollections)&&void 0!==e&&e.length?React.createElement(u,{label:y.t.a.productsSyncQuery,value:y.t.a.productsSyncQueryNotUsed,help:React.createElement(a.A,{text:"Determines which products to sync. By default, all products will sync with an asterisk * character",url:"https://docs.wpshop.io/getting-started/syncing#products-sync-query",urlText:"Learn how to customize this"}),disabled:(null==d||null===(t=d.syncByCollections)||void 0===t?void 0:t.length)||(0,c.M6)(d)}):React.createElement(u,{label:y.t.a.productsSyncQueryTwo,help:y.t.a.productsSyncQueryHelp,value:d.bulkProductsQuery,onChange:function(e){e||(e="*"),m({type:"UPDATE_SETTING",payload:{key:"bulkProductsQuery",value:e}})},disabled:(null==d||null===(s=d.syncByCollections)||void 0===s?void 0:s.length)||(0,c.M6)(d)}))}},"./_tmp/admin/js/app/utils/utils-data.js"(e,t,s){function n(e){var t=parseInt(e);return isNaN(t)||t<=0?"auto":t}function a(e){return!1===e.selectiveSyncImages&&!1===e.selectiveSyncMetafields&&!1===e.selectiveSyncOptions&&!1===e.selectiveSyncProducts&&!1===e.selectiveSyncTags&&!1===e.selectiveSyncVariants&&!1===e.selectiveSyncCollections}s.d(t,{M6:()=>a,mA:()=>n})},"./npm-packages/@shopwp/wp-ui/src/help-text/index.jsx"(e,t,s){s.d(t,{A:()=>n});const n=function(e){var t=e.text,s=e.urlText,n=void 0===s?"Learn more":s,a=e.url,l=void 0!==a&&a;return React.createElement("span",{className:"swp-admin-help-text"},t,l?React.createElement(React.Fragment,null," ",React.createElement("a",{href:l,target:"_blank",className:"swp-admin-learn-more-link"},n)):null)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.