"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingDirectCheckout-admin"],{XyRh:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n("oYSA"),o=n("qZpH"),l=n("ALIA"),i=wp.element.memo((function(e){var t=e.settingName,n=e.onChange,a=e.label,o=e.help,l=e.note,i=e.noticeCSS,c=wp.components,s=c.ToggleControl,r=c.Notice;return React.createElement(React.Fragment,null,React.createElement(s,{checked:t,onChange:n,label:a,help:o,className:l&&t&&"shopwp-toggle-has-note"}),l&&t&&React.createElement(r,{isDismissible:!1,css:i,status:"warning"},l))})),c={name:"1cirfju-noticeCSS",styles:"&&{margin-left:0!important;margin-right:0!important;margin-bottom:3em!important;};label:noticeCSS;"},s=wp.element.memo((function(e){var t=e.settingName,n=void 0!==t&&t,s=e.label,r=void 0!==s&&s,p=e.help,m=void 0!==p&&p,u=e.note,h=void 0!==u&&u,d=e.alsoChange,g=void 0!==d&&d,C=e.disable,w=void 0!==C&&C,b=React.useContext,S=wp.components.Disabled,f=b(l.Z),k=(0,a.Z)(f,2),v=k[0],y=k[1],E=c;function N(){y({type:"UPDATE_SETTING",payload:{key:n,value:!v[n]}}),g&&y({type:"UPDATE_SETTING",payload:{key:g,value:!v[g]}})}return(0,o.tZ)(React.Fragment,null,w?(0,o.tZ)(S,null,(0,o.tZ)(i,{settingName:v[n],onChange:N,label:r,help:m,note:h,noticeCSS:E})):(0,o.tZ)(i,{settingName:v[n],onChange:N,label:r,help:m,note:h,noticeCSS:E}))}))},"64C2":function(e,t,n){n.r(t);var a=n("XyRh");t.default=function(){return shopwp.misc.isPro?React.createElement(a.Z,{label:wp.i18n.__("Enable direct checkout","shopwp"),help:wp.i18n.__("When turned on, add to cart buttons will instead take users directly to the checkout.","shopwp"),settingName:"directCheckout"}):null}}}]);