"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingCartEnableTerms-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,r=wp.components,s=r.ToggleControl,c=r.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(c,{isDismissible:!1,css:i,status:"warning"},l))})),r={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,c=void 0!==s&&s,m=e.help,p=void 0!==m&&m,u=e.note,g=void 0!==u&&u,h=e.alsoChange,b=void 0!==h&&h,C=e.disable,d=void 0!==C&&C,S=React.useContext,f=wp.components.Disabled,v=S(l.Z),w=(0,a.Z)(v,2),E=w[0],N=w[1],y=r;function R(){N({type:"UPDATE_SETTING",payload:{key:n,value:!E[n]}}),b&&N({type:"UPDATE_SETTING",payload:{key:b,value:!E[b]}})}return(0,o.tZ)(React.Fragment,null,d?(0,o.tZ)(f,null,(0,o.tZ)(i,{settingName:E[n],onChange:R,label:c,help:p,note:g,noticeCSS:y})):(0,o.tZ)(i,{settingName:E[n],onChange:R,label:c,help:p,note:g,noticeCSS:y}))}))},bNf3:function(e,t,n){n.r(t);var a=n("XyRh");t.default=function(){return React.createElement(a.Z,{label:wp.i18n.__("Enable cart terms","shopwp"),settingName:"enableCartTerms"})}}}]);