"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingSubscriptionsToggle-admin"],{XyRh:function(e,t,n){n.d(t,{Z:function(){return p}});var o=n("oYSA"),a=n("qZpH"),i=n("ALIA"),l=wp.element.memo((function(e){var t=e.settingName,n=e.onChange,o=e.label,a=e.help,i=e.note,l=e.noticeCSS,s=wp.components,p=s.ToggleControl,c=s.Notice;return React.createElement(React.Fragment,null,React.createElement(p,{checked:t,onChange:n,label:o,help:a,className:i&&t&&"shopwp-toggle-has-note"}),i&&t&&React.createElement(c,{isDismissible:!1,css:l,status:"warning"},i))})),s={name:"1cirfju-noticeCSS",styles:"&&{margin-left:0!important;margin-right:0!important;margin-bottom:3em!important;};label:noticeCSS;"},p=wp.element.memo((function(e){var t=e.settingName,n=void 0!==t&&t,p=e.label,c=void 0!==p&&p,r=e.help,m=void 0!==r&&r,u=e.note,h=void 0!==u&&u,g=e.alsoChange,b=void 0!==g&&g,d=e.disable,w=void 0!==d&&d,S=React.useContext,C=wp.components.Disabled,f=S(i.Z),v=(0,o.Z)(f,2),y=v[0],R=v[1],N=s;function Z(){R({type:"UPDATE_SETTING",payload:{key:n,value:!y[n]}}),b&&R({type:"UPDATE_SETTING",payload:{key:b,value:!y[b]}})}return(0,a.tZ)(React.Fragment,null,w?(0,a.tZ)(C,null,(0,a.tZ)(l,{settingName:y[n],onChange:Z,label:c,help:m,note:h,noticeCSS:N})):(0,a.tZ)(l,{settingName:y[n],onChange:Z,label:c,help:m,note:h,noticeCSS:N}))}))},RViB:function(e,t,n){n.r(t);var o=n("XyRh");t.default=function(){return React.createElement(o.Z,{label:wp.i18n.__("Show subscriptions by default","shopwp"),help:wp.i18n.__("Will show the subscriptions widget on every product.","shopwp"),settingName:"subscriptions"})}}}]);